@gbmtech/aurora-ui 0.7.6 → 0.7.7
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/components/app-layout/index.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/index.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/intl/messages.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/intl/messages.d.ts +3 -0
- package/dist/cjs/components/app-layout/sidebar/intl/messages.d.ts.map +1 -1
- package/dist/cjs/components/app-layout/sidebar/sidebar-icons.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/sidebar-icons.d.ts +2 -1
- package/dist/cjs/components/app-layout/sidebar/sidebar-icons.d.ts.map +1 -1
- package/dist/cjs/components/app-layout/sidebar/system-switcher.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/system-switcher.d.ts.map +1 -1
- package/dist/cjs/components/data-table/index.cjs +1 -1
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/cjs/types/sidebar.d.ts +1 -0
- package/dist/cjs/types/sidebar.d.ts.map +1 -1
- package/dist/esm/components/app-layout/sidebar/intl/messages.d.ts +3 -0
- package/dist/esm/components/app-layout/sidebar/intl/messages.d.ts.map +1 -1
- package/dist/esm/components/app-layout/sidebar/intl/messages.js +1 -1
- package/dist/esm/components/app-layout/sidebar/sidebar-icons.d.ts +2 -1
- package/dist/esm/components/app-layout/sidebar/sidebar-icons.d.ts.map +1 -1
- package/dist/esm/components/app-layout/sidebar/sidebar-icons.js +1 -1
- package/dist/esm/components/app-layout/sidebar/system-switcher.d.ts.map +1 -1
- package/dist/esm/components/app-layout/sidebar/system-switcher.js +1 -1
- package/dist/esm/types/sidebar.d.ts +1 -0
- package/dist/esm/types/sidebar.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/app-layout-breadcrumb":function(e){e.exports=require("./app-layout-breadcrumb.cjs")},"@/components/app-layout/app-layout-content":function(e){e.exports=require("./app-layout-content.cjs")},"@/components/app-layout/app-layout-filters":function(e){e.exports=require("./app-layout-filters.cjs")},"@/components/app-layout/app-layout-header":function(e){e.exports=require("./app-layout-header.cjs")},"@/components/app-layout/app-layout-provider":function(e){e.exports=require("./app-layout-provider.cjs")},"@/components/app-layout/app-layout":function(e){e.exports=require("./app-layout.cjs")},"@/components/app-layout/sidebar":function(e){e.exports=require("./sidebar/index.cjs")},"@/components/app-layout/sidebar/sidebar-icons
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/app-layout-breadcrumb":function(e){e.exports=require("./app-layout-breadcrumb.cjs")},"@/components/app-layout/app-layout-content":function(e){e.exports=require("./app-layout-content.cjs")},"@/components/app-layout/app-layout-filters":function(e){e.exports=require("./app-layout-filters.cjs")},"@/components/app-layout/app-layout-header":function(e){e.exports=require("./app-layout-header.cjs")},"@/components/app-layout/app-layout-provider":function(e){e.exports=require("./app-layout-provider.cjs")},"@/components/app-layout/app-layout":function(e){e.exports=require("./app-layout.cjs")},"@/components/app-layout/sidebar":function(e){e.exports=require("./sidebar/index.cjs")},"@/components/app-layout/sidebar/sidebar-icons":function(e){e.exports=require("./sidebar/sidebar-icons.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("@/components/app-layout/app-layout"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/app-layout/app-layout-breadcrumb"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("@/components/app-layout/app-layout-content"),_={};for(var r in p)"default"!==r&&(_[r]=(function(e){return p[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/app-layout/app-layout-filters"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/app-layout/app-layout-header"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("@/components/app-layout/app-layout-provider"),_={};for(var r in u)"default"!==r&&(_[r]=(function(e){return u[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/app-layout/sidebar"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("@/components/app-layout/sidebar/sidebar-icons"),_={};for(var r in c)"default"!==r&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/sidebar/app-sidebar":function(e){e.exports=require("./app-sidebar.cjs")},"@/components/app-layout/sidebar/nav-modules":function(e){e.exports=require("./nav-modules.cjs")},"
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/sidebar/app-sidebar":function(e){e.exports=require("./app-sidebar.cjs")},"@/components/app-layout/sidebar/nav-modules":function(e){e.exports=require("./nav-modules.cjs")},"./nav-sub-item":function(e){e.exports=require("./nav-sub-item.cjs")},"@/components/app-layout/sidebar/nav-user":function(e){e.exports=require("./nav-user.cjs")},"./sidebar-icons":function(e){e.exports=require("./sidebar-icons.cjs")},"./sidebar":function(e){e.exports=require("./sidebar.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("@/components/app-layout/sidebar/app-sidebar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/app-layout/sidebar/nav-modules"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./nav-sub-item"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("@/components/app-layout/sidebar/nav-user"),_={};for(var r in p)"default"!==r&&(_[r]=(function(e){return p[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./sidebar"),_={};for(var r in i)"default"!==r&&(_[r]=(function(e){return i[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./sidebar-icons"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{messages:()=>messages});let messages={"pt-br":{home:"P\xe1gina Inicial",language:"Idioma","terms-of-use":"Termos de Uso","privacy-policy":"Pol\xedtica de Privacidade","sign-out":"Sair",theme:{label:"Tema",light:"Claro",dark:"Escuro",system:"Sistema"}},"en-us":{home:"Home",language:"Language","terms-of-use":"Terms of Use","privacy-policy":"Privacy Policy","sign-out":"Sign Out",theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"}},es:{home:"P\xe1gina de inicio",language:"Idioma","terms-of-use":"T\xe9rminos de uso","privacy-policy":"Pol\xedtica de privacidad","sign-out":"Cerrar sesi\xf3n",theme:{label:"Tema",light:"Claro",dark:"Oscuro",system:"Sistema"}}};for(var __webpack_i__ in exports.messages=__webpack_exports__.messages,__webpack_exports__)-1===["messages"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{messages:()=>messages});let messages={"pt-br":{systems:"Sistemas",home:"P\xe1gina Inicial",language:"Idioma","terms-of-use":"Termos de Uso","privacy-policy":"Pol\xedtica de Privacidade","sign-out":"Sair",theme:{label:"Tema",light:"Claro",dark:"Escuro",system:"Sistema"}},"en-us":{systems:"Systems",home:"Home",language:"Language","terms-of-use":"Terms of Use","privacy-policy":"Privacy Policy","sign-out":"Sign Out",theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"}},es:{systems:"Sistemas",home:"P\xe1gina de inicio",language:"Idioma","terms-of-use":"T\xe9rminos de uso","privacy-policy":"Pol\xedtica de privacidad","sign-out":"Cerrar sesi\xf3n",theme:{label:"Tema",light:"Claro",dark:"Oscuro",system:"Sistema"}}};for(var __webpack_i__ in exports.messages=__webpack_exports__.messages,__webpack_exports__)-1===["messages"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const messages: {
|
|
2
2
|
'pt-br': {
|
|
3
|
+
systems: string;
|
|
3
4
|
home: string;
|
|
4
5
|
language: string;
|
|
5
6
|
'terms-of-use': string;
|
|
@@ -13,6 +14,7 @@ declare const messages: {
|
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
'en-us': {
|
|
17
|
+
systems: string;
|
|
16
18
|
home: string;
|
|
17
19
|
language: string;
|
|
18
20
|
'terms-of-use': string;
|
|
@@ -26,6 +28,7 @@ declare const messages: {
|
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
es: {
|
|
31
|
+
systems: string;
|
|
29
32
|
home: string;
|
|
30
33
|
language: string;
|
|
31
34
|
'terms-of-use': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/components/app-layout/sidebar/intl/messages.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/components/app-layout/sidebar/intl/messages.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cb,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@phosphor-icons/react":function(e){e.exports=import("@phosphor-icons/react").then(function(e){return e})},"lucide-react":function(e){e.exports=import("lucide-react").then(function(e){return e})}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var o=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](o,o.exports,__webpack_require__),o.exports}__webpack_require__.d=(e,r)=>{for(var o in r)__webpack_require__.o(r,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{iconCache:()=>i,SidebarIcons:()=>t});let e=require("react/jsx-runtime"),r=require("../../custom-icons/fips.cjs"),o=require("../../custom-icons/rumo.cjs"),c=require("../../custom-icons/vli.cjs");class _{iconCache=new Map;phosphorModule=null;lucideModule=null;isLucideLoaded=!1;isPhosphorLoaded=!1;customIcons={Rumo:o.Rumo,VLI:c.VLI,FIPS:r.FIPS};toPascalCase(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")}async loadPhosphorIcons(){if(!this.phosphorModule)try{this.phosphorModule=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"@phosphor-icons/react")),this.isPhosphorLoaded=!0}catch(e){console.error("[SidebarIcons] Erro ao carregar \xedcones Phosphor:",e)}}async loadLucideIcons(){if(!this.lucideModule)try{this.lucideModule=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"lucide-react")),this.isLucideLoaded=!0}catch(e){console.error("[SidebarIcons] Erro ao carregar \xedcones Lucide:",e)}}getIcon(e){if(this.iconCache.has(e))return this.iconCache.get(e)||null;if(this.customIcons[e]){let r=this.customIcons[e];return this.iconCache.set(e,r),r}let r=this.toPascalCase(e),o=`${r}Icon`;if(this.phosphorModule?.[o]){let r=this.phosphorModule[o];return this.iconCache.set(e,r),r}if(this.phosphorModule?.[r]){let o=this.phosphorModule[r];return this.iconCache.set(e,o),o}if(this.lucideModule?.[r]){let o=this.lucideModule[r];return this.iconCache.set(e,o),o}return this.iconCache.set(e,null),console.warn(`[SidebarIcons] \xcdcone n\xe3o encontrado: ${e}`),null}async ensureLibrariesLoaded(){this.isPhosphorLoaded||await this.loadPhosphorIcons(),this.isLucideLoaded||await this.loadLucideIcons()}clear(){this.iconCache.clear()}}let i=new _;function t({icon:r}){if(!r)return null;let
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@phosphor-icons/react":function(e){e.exports=import("@phosphor-icons/react").then(function(e){return e})},"lucide-react":function(e){e.exports=import("lucide-react").then(function(e){return e})}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var o=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](o,o.exports,__webpack_require__),o.exports}__webpack_require__.d=(e,r)=>{for(var o in r)__webpack_require__.o(r,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{iconCache:()=>i,SidebarIcons:()=>t});let e=require("react/jsx-runtime"),r=require("../../custom-icons/fips.cjs"),o=require("../../custom-icons/rumo.cjs"),c=require("../../custom-icons/vli.cjs");class _{iconCache=new Map;phosphorModule=null;lucideModule=null;isLucideLoaded=!1;isPhosphorLoaded=!1;customIcons={Rumo:o.Rumo,VLI:c.VLI,FIPS:r.FIPS};toPascalCase(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")}async loadPhosphorIcons(){if(!this.phosphorModule)try{this.phosphorModule=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"@phosphor-icons/react")),this.isPhosphorLoaded=!0}catch(e){console.error("[SidebarIcons] Erro ao carregar \xedcones Phosphor:",e)}}async loadLucideIcons(){if(!this.lucideModule)try{this.lucideModule=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"lucide-react")),this.isLucideLoaded=!0}catch(e){console.error("[SidebarIcons] Erro ao carregar \xedcones Lucide:",e)}}getIcon(e){if(this.iconCache.has(e))return this.iconCache.get(e)||null;if(this.customIcons[e]){let r=this.customIcons[e];return this.iconCache.set(e,r),r}let r=this.toPascalCase(e),o=`${r}Icon`;if(this.phosphorModule?.[o]){let r=this.phosphorModule[o];return this.iconCache.set(e,r),r}if(this.phosphorModule?.[r]){let o=this.phosphorModule[r];return this.iconCache.set(e,o),o}if(this.lucideModule?.[r]){let o=this.lucideModule[r];return this.iconCache.set(e,o),o}return this.iconCache.set(e,null),console.warn(`[SidebarIcons] \xcdcone n\xe3o encontrado: ${e}`),null}async ensureLibrariesLoaded(){this.isPhosphorLoaded||await this.loadPhosphorIcons(),this.isLucideLoaded||await this.loadLucideIcons()}clear(){this.iconCache.clear()}}let i=new _;function t({icon:r,className:o}){if(!r)return null;let c=i.getIcon(r);return c?(0,e.jsx)(c,{className:o}):null}i.ensureLibrariesLoaded()})(),exports.SidebarIcons=__webpack_exports__.SidebarIcons,exports.iconCache=__webpack_exports__.iconCache,__webpack_exports__)-1===["SidebarIcons","iconCache"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -2,6 +2,7 @@ import type { ComponentProps, ComponentType } from 'react';
|
|
|
2
2
|
type IconComponent = ComponentType<ComponentProps<'svg'>>;
|
|
3
3
|
interface IconProps {
|
|
4
4
|
icon: string | null;
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
7
|
declare class IconCache {
|
|
7
8
|
private iconCache;
|
|
@@ -18,6 +19,6 @@ declare class IconCache {
|
|
|
18
19
|
clear(): void;
|
|
19
20
|
}
|
|
20
21
|
declare const iconCache: IconCache;
|
|
21
|
-
declare function SidebarIcons({ icon }: IconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare function SidebarIcons({ icon, className }: IconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
23
|
export { SidebarIcons, iconCache };
|
|
23
24
|
//# sourceMappingURL=sidebar-icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-icons.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/sidebar-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAK1D,KAAK,aAAa,GAAG,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;AAEzD,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"sidebar-icons.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/sidebar-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAK1D,KAAK,aAAa,GAAG,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;AAEzD,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,cAAM,SAAS;IACb,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,gBAAgB,CAAQ;IAEhC,OAAO,CAAC,WAAW,CAIlB;IAED,OAAO,CAAC,YAAY;IAOd,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAWlC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAWtC,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAqCzC,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU5C,KAAK,IAAI,IAAI;CAGd;AAED,QAAA,MAAM,SAAS,WAAkB,CAAA;AAIjC,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,SAAS,kDAQnD;AAED,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,s)=>{for(var _ in s)__webpack_require__.o(s,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:s[_]})},__webpack_require__.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SystemSwitcher:()=>SystemSwitcher});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),index_cjs_namespaceObject=require("../../aurora-provider/index.cjs"),external_dropdown_menu_cjs_namespaceObject=require("../../dropdown-menu.cjs"),external_nstech_index_cjs_namespaceObject=require("../../nstech/index.cjs"),external_hooks_index_cjs_namespaceObject=require("../../../hooks/index.cjs"),messages_cjs_namespaceObject=require("./intl/messages.cjs"),external_sidebar_cjs_namespaceObject=require("./sidebar.cjs"),external_sidebar_icons_cjs_namespaceObject=require("./sidebar-icons.cjs"),SIDEBAR_SYSTEM_SWITCHER_NAME="SystemSwitcher";function SystemSwitcher(){let{activeSystem:e,onSystemChange:s,systems:_}=(0,external_sidebar_cjs_namespaceObject.useSidebar)("SystemSwitcher"),{environment:r,locale:a}=(0,index_cjs_namespaceObject.useAurora)(),n=(0,external_hooks_index_cjs_namespaceObject.useIsMobile)();return(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenu,{children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_cjs_namespaceObject.SidebarMenuItem,{children:(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_sidebar_cjs_namespaceObject.SidebarMenuButton,{size:"lg",children:[(0,jsx_runtime_namespaceObject.jsx)("div",{"data-environment":r,className:"flex aspect-square size-10 items-center justify-center rounded-lg text-sidebar-primary-foreground data-[environment=develop]:bg-eclipse-600 data-[environment=homolog]:bg-violet-500 data-[environment=production]:bg-primary",children:(0,jsx_runtime_namespaceObject.jsx)(external_nstech_index_cjs_namespaceObject.TnsLogo,{})}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"grid flex-1 gap-0.5",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"truncate text-left font-semibold leading-tight",children:e.name}),(0,jsx_runtime_namespaceObject.jsx)(external_nstech_index_cjs_namespaceObject.ByNstechLogo,{})]}),(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretUpDownIcon,{className:"ml-auto size-5"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuContent,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"start",side:n?"bottom":"right",sideOffset:4,children:[(0,jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuLabel,{className:"text-muted-foreground text-xs",children:messages_cjs_namespaceObject.messages[a].systems}),_.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem,{onClick:()=>s(e.id),className:"gap-2 p-2",children:[(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex size-6 items-center justify-center rounded-md border",children:(0,jsx_runtime_namespaceObject.jsx)(external_sidebar_icons_cjs_namespaceObject.SidebarIcons,{icon:e.icon,className:"size-4 shrink-0 text-primary"})}),e.name]},e.id))]})]})})})}for(var __webpack_i__ in exports.SystemSwitcher=__webpack_exports__.SystemSwitcher,__webpack_exports__)-1===["SystemSwitcher"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/system-switcher.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/system-switcher.tsx"],"names":[],"mappings":"AA0BA,iBAAS,cAAc,4CA6DtB;AAMD,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"./data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"./data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"@/components/data-table/data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"./data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"./data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"./data-table-view-options":function(e){e.exports=require("./data-table-view-options.cjs")},"./data-table":function(e){e.exports=require("./data-table.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table"),_={};for(var a in e)"default"!==a&&(_[a]=(function(_){return e[_]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./data-table-action-bar"),_={};for(var a in r)"default"!==a&&(_[a]=(function(e){return r[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./data-table-advanced-toolbar"),_={};for(var a in t)"default"!==a&&(_[a]=(function(e){return t[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./data-table-column-header"),_={};for(var a in i)"default"!==a&&(_[a]=(function(e){return i[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./data-table-date-filter"),_={};for(var a in n)"default"!==a&&(_[a]=(function(e){return n[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./data-table-faceted-filter"),_={};for(var a in o)"default"!==a&&(_[a]=(function(e){return o[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./data-table-filter-list"),_={};for(var a in u)"default"!==a&&(_[a]=(function(e){return u[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./data-table-filter-menu"),_={};for(var a in c)"default"!==a&&(_[a]=(function(e){return c[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var b=__webpack_require__("@/components/data-table/data-table-pagination"),_={};for(var a in b)"default"!==a&&(_[a]=(function(e){return b[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var d=__webpack_require__("./data-table-range-filter"),_={};for(var a in d)"default"!==a&&(_[a]=(function(e){return d[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./data-table-skeleton"),_={};for(var a in p)"default"!==a&&(_[a]=(function(e){return p[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var l=__webpack_require__("./data-table-slider-filter"),_={};for(var a in l)"default"!==a&&(_[a]=(function(e){return l[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var f=__webpack_require__("./data-table-sort-list"),_={};for(var a in f)"default"!==a&&(_[a]=(function(e){return f[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("./data-table-toolbar"),_={};for(var a in s)"default"!==a&&(_[a]=(function(e){return s[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var w=__webpack_require__("./data-table-view-options"),_={};for(var a in w)"default"!==a&&(_[a]=(function(e){return w[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/cjs/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table":function(e){e.exports=require("./data-table.cjs")},"./locale":function(e){e.exports=require("./locale.cjs")},"
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table":function(e){e.exports=require("./data-table.cjs")},"./locale":function(e){e.exports=require("./locale.cjs")},"./sidebar":function(e){e.exports=require("./sidebar.cjs")},"./user":function(e){e.exports=require("./user.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("./locale"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./sidebar"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./user"),_={};for(var r in c)"default"!==r&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/types/sidebar.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB"}
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/types/sidebar.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const messages: {
|
|
2
2
|
'pt-br': {
|
|
3
|
+
systems: string;
|
|
3
4
|
home: string;
|
|
4
5
|
language: string;
|
|
5
6
|
'terms-of-use': string;
|
|
@@ -13,6 +14,7 @@ declare const messages: {
|
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
'en-us': {
|
|
17
|
+
systems: string;
|
|
16
18
|
home: string;
|
|
17
19
|
language: string;
|
|
18
20
|
'terms-of-use': string;
|
|
@@ -26,6 +28,7 @@ declare const messages: {
|
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
es: {
|
|
31
|
+
systems: string;
|
|
29
32
|
home: string;
|
|
30
33
|
language: string;
|
|
31
34
|
'terms-of-use': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/components/app-layout/sidebar/intl/messages.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/components/app-layout/sidebar/intl/messages.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cb,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e={"pt-br":{home:"P\xe1gina Inicial",language:"Idioma","terms-of-use":"Termos de Uso","privacy-policy":"Pol\xedtica de Privacidade","sign-out":"Sair",theme:{label:"Tema",light:"Claro",dark:"Escuro",system:"Sistema"}},"en-us":{home:"Home",language:"Language","terms-of-use":"Terms of Use","privacy-policy":"Privacy Policy","sign-out":"Sign Out",theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"}},es:{home:"P\xe1gina de inicio",language:"Idioma","terms-of-use":"T\xe9rminos de uso","privacy-policy":"Pol\xedtica de privacidad","sign-out":"Cerrar sesi\xf3n",theme:{label:"Tema",light:"Claro",dark:"Oscuro",system:"Sistema"}}};export{e as messages};
|
|
1
|
+
let e={"pt-br":{systems:"Sistemas",home:"P\xe1gina Inicial",language:"Idioma","terms-of-use":"Termos de Uso","privacy-policy":"Pol\xedtica de Privacidade","sign-out":"Sair",theme:{label:"Tema",light:"Claro",dark:"Escuro",system:"Sistema"}},"en-us":{systems:"Systems",home:"Home",language:"Language","terms-of-use":"Terms of Use","privacy-policy":"Privacy Policy","sign-out":"Sign Out",theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"}},es:{systems:"Sistemas",home:"P\xe1gina de inicio",language:"Idioma","terms-of-use":"T\xe9rminos de uso","privacy-policy":"Pol\xedtica de privacidad","sign-out":"Cerrar sesi\xf3n",theme:{label:"Tema",light:"Claro",dark:"Oscuro",system:"Sistema"}}};export{e as messages};
|
|
@@ -2,6 +2,7 @@ import type { ComponentProps, ComponentType } from 'react';
|
|
|
2
2
|
type IconComponent = ComponentType<ComponentProps<'svg'>>;
|
|
3
3
|
interface IconProps {
|
|
4
4
|
icon: string | null;
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
7
|
declare class IconCache {
|
|
7
8
|
private iconCache;
|
|
@@ -18,6 +19,6 @@ declare class IconCache {
|
|
|
18
19
|
clear(): void;
|
|
19
20
|
}
|
|
20
21
|
declare const iconCache: IconCache;
|
|
21
|
-
declare function SidebarIcons({ icon }: IconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare function SidebarIcons({ icon, className }: IconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
23
|
export { SidebarIcons, iconCache };
|
|
23
24
|
//# sourceMappingURL=sidebar-icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-icons.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/sidebar-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAK1D,KAAK,aAAa,GAAG,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;AAEzD,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"sidebar-icons.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/sidebar-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAK1D,KAAK,aAAa,GAAG,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;AAEzD,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,cAAM,SAAS;IACb,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,gBAAgB,CAAQ;IAEhC,OAAO,CAAC,WAAW,CAIlB;IAED,OAAO,CAAC,YAAY;IAOd,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAWlC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAWtC,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAqCzC,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU5C,KAAK,IAAI,IAAI;CAGd;AAED,QAAA,MAAM,SAAS,WAAkB,CAAA;AAIjC,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,SAAS,kDAQnD;AAED,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{FIPS as e}from"../../custom-icons/fips.js";import{Rumo as s}from"../../custom-icons/rumo.js";import{VLI as i}from"../../custom-icons/vli.js";class r{iconCache=new Map;phosphorModule=null;lucideModule=null;isLucideLoaded=!1;isPhosphorLoaded=!1;customIcons={Rumo:s,VLI:i,FIPS:e};toPascalCase(o){return o.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")}async loadPhosphorIcons(){if(!this.phosphorModule)try{this.phosphorModule=await import("@phosphor-icons/react"),this.isPhosphorLoaded=!0}catch(o){console.error("[SidebarIcons] Erro ao carregar \xedcones Phosphor:",o)}}async loadLucideIcons(){if(!this.lucideModule)try{this.lucideModule=await import("lucide-react"),this.isLucideLoaded=!0}catch(o){console.error("[SidebarIcons] Erro ao carregar \xedcones Lucide:",o)}}getIcon(o){if(this.iconCache.has(o))return this.iconCache.get(o)||null;if(this.customIcons[o]){let e=this.customIcons[o];return this.iconCache.set(o,e),e}let e=this.toPascalCase(o),s=`${e}Icon`;if(this.phosphorModule?.[s]){let e=this.phosphorModule[s];return this.iconCache.set(o,e),e}if(this.phosphorModule?.[e]){let s=this.phosphorModule[e];return this.iconCache.set(o,s),s}if(this.lucideModule?.[e]){let s=this.lucideModule[e];return this.iconCache.set(o,s),s}return this.iconCache.set(o,null),console.warn(`[SidebarIcons] \xcdcone n\xe3o encontrado: ${o}`),null}async ensureLibrariesLoaded(){this.isPhosphorLoaded||await this.loadPhosphorIcons(),this.isLucideLoaded||await this.loadLucideIcons()}clear(){this.iconCache.clear()}}let c=new r;function t({icon:e}){if(!e)return null;let
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{FIPS as e}from"../../custom-icons/fips.js";import{Rumo as s}from"../../custom-icons/rumo.js";import{VLI as i}from"../../custom-icons/vli.js";class r{iconCache=new Map;phosphorModule=null;lucideModule=null;isLucideLoaded=!1;isPhosphorLoaded=!1;customIcons={Rumo:s,VLI:i,FIPS:e};toPascalCase(o){return o.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")}async loadPhosphorIcons(){if(!this.phosphorModule)try{this.phosphorModule=await import("@phosphor-icons/react"),this.isPhosphorLoaded=!0}catch(o){console.error("[SidebarIcons] Erro ao carregar \xedcones Phosphor:",o)}}async loadLucideIcons(){if(!this.lucideModule)try{this.lucideModule=await import("lucide-react"),this.isLucideLoaded=!0}catch(o){console.error("[SidebarIcons] Erro ao carregar \xedcones Lucide:",o)}}getIcon(o){if(this.iconCache.has(o))return this.iconCache.get(o)||null;if(this.customIcons[o]){let e=this.customIcons[o];return this.iconCache.set(o,e),e}let e=this.toPascalCase(o),s=`${e}Icon`;if(this.phosphorModule?.[s]){let e=this.phosphorModule[s];return this.iconCache.set(o,e),e}if(this.phosphorModule?.[e]){let s=this.phosphorModule[e];return this.iconCache.set(o,s),s}if(this.lucideModule?.[e]){let s=this.lucideModule[e];return this.iconCache.set(o,s),s}return this.iconCache.set(o,null),console.warn(`[SidebarIcons] \xcdcone n\xe3o encontrado: ${o}`),null}async ensureLibrariesLoaded(){this.isPhosphorLoaded||await this.loadPhosphorIcons(),this.isLucideLoaded||await this.loadLucideIcons()}clear(){this.iconCache.clear()}}let c=new r;function t({icon:e,className:s}){if(!e)return null;let i=c.getIcon(e);return i?o(i,{className:s}):null}c.ensureLibrariesLoaded();export{t as SidebarIcons,c as iconCache};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/system-switcher.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-layout/sidebar/system-switcher.tsx"],"names":[],"mappings":"AA0BA,iBAAS,cAAc,4CA6DtB;AAMD,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{CaretUpDownIcon as i}from"@phosphor-icons/react";import{useAurora as t}from"../../aurora-provider/index.js";import{DropdownMenu as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{CaretUpDownIcon as i}from"@phosphor-icons/react";import{useAurora as t}from"../../aurora-provider/index.js";import{DropdownMenu as s,DropdownMenuContent as n,DropdownMenuItem as o,DropdownMenuLabel as d,DropdownMenuTrigger as m}from"../../dropdown-menu.js";import{ByNstechLogo as a,TnsLogo as c}from"../../nstech/index.js";import{useIsMobile as l}from"../../../hooks/index.js";import{messages as p}from"./intl/messages.js";import{SidebarMenu as h,SidebarMenuButton as f,SidebarMenuItem as g,useSidebar as u}from"./sidebar.js";import{SidebarIcons as x}from"./sidebar-icons.js";function j(){let{activeSystem:j,onSystemChange:v,systems:b}=u("SystemSwitcher"),{environment:N,locale:y}=t(),w=l();return e(h,{children:e(g,{children:r(s,{children:[e(m,{asChild:!0,children:r(f,{size:"lg",children:[e("div",{"data-environment":N,className:"flex aspect-square size-10 items-center justify-center rounded-lg text-sidebar-primary-foreground data-[environment=develop]:bg-eclipse-600 data-[environment=homolog]:bg-violet-500 data-[environment=production]:bg-primary",children:e(c,{})}),r("div",{className:"grid flex-1 gap-0.5",children:[e("span",{className:"truncate text-left font-semibold leading-tight",children:j.name}),e(a,{})]}),e(i,{className:"ml-auto size-5"})]})}),r(n,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"start",side:w?"bottom":"right",sideOffset:4,children:[e(d,{className:"text-muted-foreground text-xs",children:p[y].systems}),b.map(i=>r(o,{onClick:()=>v(i.id),className:"gap-2 p-2",children:[e("div",{className:"flex size-6 items-center justify-center rounded-md border",children:e(x,{icon:i.icon,className:"size-4 shrink-0 text-primary"})}),i.name]},i.id))]})]})})})}export{j as SystemSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/types/sidebar.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB"}
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/types/sidebar.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB"}
|