PageSourceSearch

https://primariapalatca.ro/_nuxt/BunHat9I.js

js primariapalatca.ro collected 2026-09-25 12:30:57 UTC 4,041 bytes, 1 lines download raw bytes

1import{a as V,m as h,f as u}from"./CqawAVUb.js";import q from"./D2A-cuOJ.js";import B from"./Cq6d0fYR.js";import{d as C}from"./DdMfNbGx.js";import{bf as s,b2 as p,O as _,$ as e,bW as t,G as n,br as c,Y as l,aK as b,M as I,F as P,bd as U,I as N}from"./yzds40HC.js";import"./BgqE2USM.js";import"./C8Dppsyt.js";import"./CbO2Rjsj.js";import"./DhlRdtTC.js";import"./Dz0mkqCC.js";import"./DkpuU7u1.js";import"./DtS_aP2E.js";const R={name:"Index",components:{ResetFiltersButton:B,TextFieldFilter:q},mixins:[C],data(){return{headers:[{title:this.$t("fields.name"),align:"start",key:"name"},{title:this.$t("fields.permissions"),key:"permissions"},{title:"",sortable:!1,align:"end",key:"action"}]}},async mounted(){await this.fetchInitialData()},head(){return{title:"Roluri Utilizatori"}},computed:{...u("roles",["roles"]),...u("loader",["loading"]),...u("query",["queryParams"]),currentScope(){return"roles"}},methods:{...h("resources",["deleteResource","getData"]),...h("query",["resetScopeFilters","setVuetifyPagination"]),async fetchInitialData(){await this.getData(this.currentScope)},handleOptionsUpdate(o){this.setVuetifyPagination({scope:this.currentScope,pagination:o}),this.getData(this.currentScope)}}},O={class:"d-flex flex-column flex-grow-1"},T={class:"text-h5 text-md-h4"},E={class:"filter-row"},j={class:"text-end"},A={class:"permission-chips"},G={key:0,class:"d-flex no-wrap justify-end"},H={class:"font-weight-bold"},K={class:"font-weight-bold"};function L(o,a,M,W,y,d){const x=s("v-divider"),k=s("v-spacer"),m=s("v-btn"),S=s("v-card-title"),f=s("text-field-filter"),w=s("reset-filters-button"),z=s("v-chip"),v=s("v-icon"),g=s("v-tooltip"),$=s("v-data-table"),D=s("v-card-text"),F=s("v-card");return p(),_("div",O,[e(F,{elevation:"5"},{default:t(()=>[e(S,{class:"d-flex align-center"},{default:t(()=>[n("div",T,c(o.$t("menu.roles")),1),e(x,{class:"mx-2 d-none d-md-inline",vertical:""}),e(k),e(m,{class:"mt-2 mt-md-0 create-button",color:"primary",size:"large",to:"/roles/create"},{default:t(()=>[l(c(o.$t("buttons.create_role")),1)]),_:1})]),_:1}),e(D,null,{default:t(()=>[e($,{options:o.pagination,"onUpdate:options":[a[0]||(a[0]=i=>o.pagination=i),d.handleOptionsUpdate],headers:y.headers,items:o.roles,"items-length":o.queryParams[d.currentScope]?.pagination?.total||0,"items-per-page-options":[10,15,30,60],loading:o.loading,class:"flex-grow-1 v2-style-table"},{"body.prepend":t(()=>[n("tr",E,[n("td",null,[e(f,{label:o.$t("fields.name"),scope:d.currentScope,class:"filter-field","hide-details":"","scope-key":"name"},null,8,["label","scope"])]),n("td",null,[e(f,{label:o.$t("fields.name"),scope:d.currentScope,class:"filter-field","hide-details":"","scope-key":"perm"},null,8,["label","scope"])]),n("td",j,[e(w,{class:"filter-reset-button",scope:"users"})])])]),"item.permissions":t(({item:i})=>[n("div",A,[(p(!0),_(P,null,U(i.permissions,r=>(p(),N(z,{key:r.id,class:"mr-2 mb-2",size:"small"},{default:t(()=>[l(c(r.name),1)]),_:2},1024))),128))])]),"item.action":t(({item:i})=>[i.id!==1?(p(),_("div",G,[e(g,{location:"bottom"},{activator:t(({props:r})=>[e(m,b({to:`/roles/edit/${i.id}`,density:"compact",icon:"",size:"medium"},r,{variant:"text",style:{color:"rgba(0, 0, 0, 0.7) !important"}}),{default:t(()=>[e(v,{size:"large"},{default:t(()=>[...a[1]||(a[1]=[l("mdi-square-edit-outline",-1)])]),_:1})]),_:1},16,["to"])]),default:t(()=>[n("span",null,[a[2]||(a[2]=l(" Editează rolul ",-1)),n("i",H,c(i.name),1)])]),_:2},1024),e(g,{location:"bottom"},{activator:t(({props:r})=>[e(m,b({density:"compact",icon:"",size:"medium"},r,{variant:"text",onClick:Y=>o.deleteResource({data:i,scope:d.currentScope})}),{default:t(()=>[e(v,{size:"large"},{default:t(()=>[...a[3]||(a[3]=[l("mdi-delete",-1)])]),_:1})]),_:1},16,["onClick"])]),default:t(()=>[n("span",null,[a[4]||(a[4]=l(" Șterge rolul ",-1)),n("i",K,c(i.name),1)])]),_:2},1024)])):I("",!0)]),_:1},8,["options","headers","items","items-length","loading","onUpdate:options"])]),_:1})]),_:1})])}const le=V(R,[["render",L],["__scopeId","data-v-b5659509"]]);export{le as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.