@betha-plataforma/estrutura-componentes
Version:
Coleção de Web Components para compor a estrutura de uma aplicação front-end da Betha Sistemas.
1 lines • 3.51 kB
JavaScript
System.register(["./p-19f6bf1a.system.js"],(function(t){"use strict";var e,a,s;return{setters:[function(t){e=t.r;a=t.h;s=t.H}],execute:function(){var i="*,*:after,*:before{padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.5}*{font-family:var(--bth-app-font-family-primary)}a:focus{outline:1px dotted var(--bth-app-gray-dark-30)}::-webkit-scrollbar{-webkit-appearance:none;height:6px;width:6px}::-webkit-scrollbar-track{background:var(--bth-app-gray-light-30)}::-webkit-scrollbar-corner{background:var(--bth-app-gray-light-40)}::-webkit-scrollbar-thumb{background-color:var(--bth-app-gray);border-radius:1px}::-webkit-scrollbar-thumb:hover{background-color:rgba(255, 255, 255, 0.3)}:host{display:block}.empty-state{display:none;background-color:transparent;text-align:center;padding:20px 5px}.empty-state--show{display:block}.empty-state img,.empty-state ::slotted(img){width:230px;margin:20px 0}.empty-state h4,.empty-state ::slotted(h4){font-size:1.5rem;margin-bottom:0.5rem;font-weight:500;line-height:1.2}.empty-state--small img,.empty-state--small ::slotted(img){width:125px;margin:20px 0}.empty-state--small h4,.empty-state--small ::slotted(h4){font-size:1.15rem;margin-bottom:0.5rem;font-weight:500;line-height:1.2}@media (min-width: 576px){.empty-state img,.empty-state ::slotted(img){width:250px}.empty-state--small img,.empty-state--small ::slotted(img){width:140px}}@media (min-width: 992px){.empty-state img,.empty-state ::slotted(img){width:270px}.empty-state--small img,.empty-state--small ::slotted(img){width:150px}}@media (min-width: 1200px){.empty-state img,.empty-state ::slotted(img){width:280px}.empty-state--small img,.empty-state--small ::slotted(img){width:155px}}";var o=t("bth_empty_state",function(){function t(t){e(this,t);this.show=false;this.registros=false;this.registrosPesquisa=false;this.online=false;this.offline=false;this.paginaNaoEncontrada=false;this.pequeno=false}t.prototype.render=function(){return a(s,null,a("section",{class:"empty-state "+(this.pequeno?"empty-state--small":"")+" "+(this.show?"empty-state--show":"")},a("slot",null,this.registros&&[a("img",{src:"https://cdn.betha.cloud/plataforma/design/kare/framework/0.1.6/assets/images/records.svg",alt:"Ainda não há registros por aqui"}),a("h4",null,"Ainda não há registros por aqui")],this.registrosPesquisa&&[a("img",{src:"https://cdn.betha.cloud/plataforma/design/kare/framework/0.1.6/assets/images/list.svg",alt:"Nenhum resultado encontrado. Os filtros ou a ortografia dos termos utilizados na pesquisa podem ser revisados."}),a("h4",null,"Nenhum resultado encontrado para sua pesquisa"),a("p",null,"- Tente utilizar uma combinação diferente de filtros",a("br",null),"- Revise a ortografia dos termos digitados")],this.online&&[a("img",{src:"https://cdn.betha.cloud/plataforma/design/kare/framework/0.1.6/assets/images/online.svg",alt:"Conexão com a Internet estável"}),a("h4",null,"Sua conexão está estável")],this.offline&&[a("img",{src:"https://cdn.betha.cloud/plataforma/design/kare/framework/0.1.6/assets/images/offline.svg",alt:"Desconectado da Internet"}),a("h4",null,"Você está offline"),a("p",null,"Isso pode prejudicar as suas atividades no sistema")],this.paginaNaoEncontrada&&[a("img",{src:"https://cdn.betha.cloud/plataforma/design/kare/framework/0.1.6/assets/images/404.svg",alt:"Página não encontrada"}),a("h4",null,"Ops! Ocorreu um erro"),a("p",null,"A página que você tentou acessar não foi encontrada")])))};return t}());o.style=i}}}));