tkbt-fox-erp-ui-package 1.0.3
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 +5 -0
- package/dist/f-erp-ui-package.cjs.js +1 -0
- package/dist/f-erp-ui-package.es.js +512 -0
- package/dist/f-erp-ui-package.umd.js +2 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/src/assets/index.d.ts +5 -0
- package/dist/src/components/containment/FERPButton.vue.d.ts +41 -0
- package/dist/src/components/containment/FERPButtonIcon.vue.d.ts +30 -0
- package/dist/src/components/containment/FERPCard.vue.d.ts +27 -0
- package/dist/src/components/containment/FERPChip.vue.d.ts +3 -0
- package/dist/src/components/containment/FERPDialog.vue.d.ts +86 -0
- package/dist/src/components/feedback/FERPPopup.vue.d.ts +35 -0
- package/dist/src/components/forminputs/FERPTextField.vue.d.ts +67 -0
- package/dist/src/components/index.d.ts +15 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/plugins/vuetify/themes/DarkTheme.d.ts +27 -0
- package/dist/src/plugins/vuetify/themes/LightTheme.d.ts +27 -0
- package/dist/src/plugins/vuetify/themes/index.d.ts +2 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vuetify/components");var r=typeof document<"u"?document.currentScript:null;const C=e.defineComponent({__name:"FERPButton",props:{color:{default:"primary"},variant:{default:"flat"},text:{},loading:{type:Boolean,default:!1},prependIcon:{},appendIcon:{},disabled:{type:Boolean,default:!1}},setup(t){const l=t;return(o,n)=>(e.openBlock(),e.createBlock(e.unref(a.VBtn),{class:"text-none f-erp-button",rounded:"lg",variant:l.variant,color:l.color,loading:l.loading,"prepend-icon":l.prependIcon,"append-icon":l.appendIcon,disabled:l.loading==!0||l.disabled==!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.text),1)]),_:1},8,["variant","color","loading","prepend-icon","append-icon","disabled"]))}}),f=e.defineComponent({__name:"FERPButtonIcon",props:{icon:{},density:{default:"default"},size:{},color:{},variant:{default:"text"}},setup(t){const l=t;return(o,n)=>(e.openBlock(),e.createBlock(e.unref(a.VBtn),{icon:l.icon,density:l.density,size:l.size,elevation:"0",color:l.color,variant:l.variant},null,8,["icon","density","size","color","variant"]))}}),y={key:0,class:"f-erp-card-title-prepend-icon"},B={class:"f-erp-card-title-content"},w={class:"f-erp-card-title-text"},V={key:0,class:"f-erp-card-sub-title-text"},k={key:1,class:"f-erp-card-sub-title-content"},b={key:0,class:"pa-4"},L=e.defineComponent({__name:"FERPCard",props:{prependIcon:{},title:{},subTitle:{},content:{},contentProps:{}},setup(t){const l=t;return(o,n)=>(e.openBlock(),e.createBlock(e.unref(a.VCard),{elevation:"2",rounded:"lg",flat:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCardTitle),{class:"f-erp-card-title"},{default:e.withCtx(()=>[t.prependIcon?.length>0?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(e.unref(a.VIcon),{icon:t.prependIcon},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",B,[e.createElementVNode("div",w,[e.createElementVNode("span",null,e.toDisplayString(l.title),1)]),typeof l.subTitle=="string"?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("span",null,e.toDisplayString(l.subTitle),1)])):(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.subTitle)))]))])]),_:1}),e.createVNode(e.unref(a.VDivider)),e.createVNode(e.unref(a.VCardText),{class:"pa-0"},{default:e.withCtx(()=>[typeof l.content=="string"?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.content),e.normalizeProps(e.mergeProps({key:1},l.contentProps)),null,16))]),_:1})]),_:1}))}}),x={key:0,class:"f-erp-card-title-prepend-icon"},E={class:"f-erp-card-title-content"},D={key:0,class:"f-erp-card-title-text"},P={key:1,class:"f-erp-card-sub-title-text"},N={key:2,class:"f-erp-card-sub-title-content"},M={key:0},h=e.defineComponent({__name:"FERPDialog",props:{icon:{},title:{},subTitle:{},content:{},contentProps:{},show:{type:Boolean,default:!1},submitVisible:{type:Boolean,default:!1},submitText:{default:"Cập nhật"},submitLoading:{type:Boolean,default:!1},cancelVisible:{type:Boolean,default:!1},cancelIconVisible:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},width:{},maxwidth:{type:[Boolean,String],default:!1},persistent:{type:Boolean,default:!1}},emits:["update:show","close","submit"],setup(t,{emit:l}){const o=e.ref(!1),n=t,c=e.computed(()=>{switch(n.maxwidth){case!1:return null;case"extra-large":return"var(--f-erp-max-width-extra-large)";case"large":return"var(--f-erp-max-width-large)";case"medium":return"var(--f-erp-max-width-medium)";case"small":return"var(--f-erp-max-width-small)";case"extra-small":return"var(--f-erp-max-width-extra-small)"}}),s=l;e.watch(()=>n.show,u=>{o.value=u});const d=()=>{o.value=!1,s("update:show",!1),s("close")},m=()=>{s("submit")},F=()=>{o.value==!1&&d()};return(u,i)=>(e.openBlock(),e.createBlock(e.unref(a.VDialog),{modelValue:o.value,"onUpdate:modelValue":[i[0]||(i[0]=p=>o.value=p),i[1]||(i[1]=p=>F())],persistent:t.persistent,"max-width":c.value,width:t.width,scrollable:!0},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCard),{elevation:"2",rounded:"lg",flat:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCardTitle),{class:"f-erp-card-title"},{default:e.withCtx(()=>[t.icon?.length>0?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(e.unref(a.VIcon),{icon:t.icon},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",E,[t.title?.length>0?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("span",null,e.toDisplayString(n.title),1)])):e.createCommentVNode("",!0),typeof n.subTitle=="string"?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("span",null,e.toDisplayString(n.subTitle),1)])):(e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.subTitle)))]))]),e.withDirectives(e.createVNode(f,{icon:"mdi-close",onClick:d,color:"surface",variant:"flat",size:"small",density:"compact"},null,512),[[e.vShow,t.cancelIconVisible]])]),_:1}),e.createVNode(e.unref(a.VDivider)),e.createVNode(e.unref(a.VCardText),{class:"pa-4"},{default:e.withCtx(()=>[typeof n.content=="string"?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("span",null,e.toDisplayString(n.content),1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.content),e.normalizeProps(e.mergeProps({key:1},n.contentProps)),null,16))]),_:1}),e.createVNode(e.unref(a.VDivider)),e.withDirectives(e.createVNode(e.unref(a.VCardActions),null,{default:e.withCtx(()=>[e.withDirectives(e.createVNode(C,{text:"Cập nhật",onClick:m,loading:n.submitLoading},null,8,["loading"]),[[e.vShow,t.submitVisible]]),e.withDirectives(e.createVNode(C,{text:"Hủy",variant:"outlined",onClick:d},null,512),[[e.vShow,t.cancelVisible]])]),_:1},512),[[e.vShow,t.submitVisible||t.cancelVisible]])]),_:1})]),_:1},8,["modelValue","persistent","max-width","width"]))}}),v=e.defineComponent({__name:"FERPTextField",props:{label:{},placeholder:{},persistentPlaceholder:{type:Boolean,default:!1},variant:{default:"solo-outlined"},clearable:{type:Boolean},persistentClear:{type:Boolean,default:!1},density:{default:"comfortable"},value:{},loading:{type:Boolean},loadingColor:{default:"primary"},hint:{},persistentHint:{type:Boolean,default:!1},counter:{type:[String,Number,Boolean],default:!1},persistentCounter:{type:Boolean,default:!1}},setup(t){const l=t;return(o,n)=>{const c=e.resolveComponent("v-progress-linear");return e.openBlock(),e.createBlock(e.unref(a.VTextField),{modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=s=>l.value=s),class:e.normalizeClass({"ferp-field--variant-solo-outlined":l.variant=="solo-outlined"}),variant:t.variant=="solo-outlined"?"solo":t.variant,label:t.label,clearable:t.clearable,"persistent-clear":t.persistentClear,placeholder:t.placeholder,density:t.density,loading:t.loading,hint:t.hint,"persistent-hint":t.persistentHint,"hide-details":"auto",counter:t.counter,"persistent-counter":t.persistentCounter},{loader:e.withCtx(()=>[e.createVNode(c,{active:t.loading,color:t.loadingColor,indeterminate:""},null,8,["active","color"])]),_:1},8,["modelValue","class","variant","label","clearable","persistent-clear","placeholder","density","loading","hint","persistent-hint","counter","persistent-counter"])}}}),R=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%238FFA93'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%2336BF00'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%2336BF00'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.1561%2027.2921C56.3644%2025.6857%2056.0705%2023.3817%2054.4998%2022.146C52.9291%2020.9104%2050.6763%2021.2109%2049.468%2022.8172L40.9522%2034.1395L35.7454%2028.6742C34.3624%2027.2227%2032.0908%2027.1924%2030.6715%2028.6068C29.2521%2030.0213%2029.2227%2032.3445%2030.6056%2033.7961L38.7018%2042.2942C39.428%2043.0565%2040.4421%2043.4588%2041.481%2043.3967C42.5199%2043.3347%2043.4813%2042.8143%2044.1158%2041.9708L55.1561%2027.2921Z'%20fill='%2336BF00'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.cjs.js",document.baseURI).href).href,S=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7198%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7198%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%23F6C5C3'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M33.5532%2023.3152C35.1153%2021.7531%2037.6484%2021.7531%2039.2105%2023.3152L43.5806%2027.6854L47.8228%2023.4432C49.3849%2021.8811%2051.9179%2021.8811%2053.48%2023.4432C55.0421%2025.0053%2055.0421%2027.5383%2053.48%2029.1004L49.2378%2033.3426L53.3521%2037.4568C54.9142%2039.0189%2054.9142%2041.552%2053.3521%2043.1141C51.79%2044.6762%2049.2569%2044.6762%2047.6948%2043.1141L43.5806%2038.9998L39.3384%2043.242C37.7763%2044.8041%2035.2433%2044.8041%2033.6812%2043.242C32.1191%2041.6799%2032.1191%2039.1469%2033.6812%2037.5848L37.9234%2033.3426L33.5532%2028.9725C31.9911%2027.4104%2031.9911%2024.8773%2033.5532%2023.3152Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.cjs.js",document.baseURI).href).href,T=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%238FBFFA'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%232859C5'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%232859C5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.6975%2020.2816C41.1824%2020.1984%2041.7439%2020.1437%2042.3817%2020.1437C43.0194%2020.1437%2043.5808%2020.1984%2044.0658%2020.2816C45.739%2020.5687%2046.5044%2022.2996%2046.3657%2023.9264C46.19%2025.9868%2045.9092%2028.949%2045.6016%2030.879C45.4284%2031.9666%2044.7293%2032.9311%2043.6097%2033.0728C43.2705%2033.1157%2042.8643%2033.1437%2042.3817%2033.1437C41.8989%2033.1437%2041.4928%2033.1157%2041.1536%2033.0728C40.034%2032.9311%2039.3349%2031.9666%2039.1616%2030.879C38.8541%2028.949%2038.5733%2025.9868%2038.3976%2023.9264C38.2589%2022.2996%2039.0242%2020.5687%2040.6975%2020.2816ZM38.6698%2040.1437C38.6698%2037.9346%2040.3318%2036.1437%2042.3818%2036.1437C44.4318%2036.1437%2046.0937%2037.9346%2046.0937%2040.1437C46.0937%2042.3528%2044.4318%2044.1437%2042.3818%2044.1437C40.3318%2044.1437%2038.6698%2042.3528%2038.6698%2040.1437Z'%20fill='%232859C5'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.cjs.js",document.baseURI).href).href,Z=new URL("data:image/svg+xml,%3csvg%20width='79'%20height='57'%20viewBox='0%200%2079%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3319%2029.9482C15.0605%2028.6492%2017.7147%2027.8568%2019.3983%2027.3964C21.0823%2026.936%2022.8144%2027.6992%2023.5291%2029.2804C24.1432%2030.6388%2025.0025%2032.7127%2026.0235%2035.6431C27.0445%2038.5736%2027.6599%2040.7325%2028.0229%2042.1784C28.4454%2043.8613%2027.5625%2045.5357%2025.9569%2046.2213C25.2608%2046.5186%2024.3829%2046.8803%2023.3077%2047.3007L24.0848%2049.531C24.4528%2050.5872%2023.3895%2051.5966%2022.3333%2051.1938L17.603%2049.3898C14.109%2050.597%2011.6002%2051.3443%209.98485%2051.786C8.3009%2052.2465%206.56868%2051.4832%205.85398%2049.9021C5.23996%2048.5437%204.38061%2046.4698%203.35963%2043.5393C2.33865%2040.6089%201.72327%2038.45%201.36026%2037.0041C0.937768%2035.3212%201.82067%2033.6468%203.42618%2032.9612C5.03131%2032.2757%207.60328%2031.2473%2011.3319%2029.9482Z'%20fill='%238FBFFA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1164%2034.0198C12.3299%2033.8963%2012.5846%2033.7746%2012.8852%2033.6681C13.1857%2033.5616%2013.4602%2033.4958%2013.7038%2033.4573C14.5444%2033.3245%2015.2182%2034.0804%2015.4471%2034.9341C15.737%2036.0154%2016.1406%2037.5747%2016.3448%2038.6114C16.4599%2039.1957%2016.3049%2039.8048%2015.8029%2040.0642C15.6508%2040.1427%2015.4644%2040.2248%2015.237%2040.3054C15.0094%2040.386%2014.813%2040.4396%2014.6453%2040.4743C14.092%2040.5889%2013.5881%2040.2132%2013.3097%2039.6869C12.8156%2038.7528%2012.1474%2037.2873%2011.6918%2036.2647C11.3322%2035.4573%2011.3797%2034.4458%2012.1164%2034.0198ZM14.7539%2044.4992C14.3543%2043.3713%2014.8136%2042.1794%2015.7797%2041.8371C16.7459%2041.4948%2017.8531%2042.1316%2018.2528%2043.2595C18.6524%2044.3874%2018.1931%2045.5793%2017.227%2045.9216C16.2608%2046.2639%2015.1536%2045.6271%2014.7539%2044.4992Z'%20fill='%232859C5'/%3e%3cpath%20d='M60.5213%208.14933C54.6244%205.46791%2050.4053%203.77879%2047.7223%202.77757C45.0386%201.77609%2042.078%202.79898%2040.6517%205.32261C39.4262%207.4908%2037.6832%2010.812%2035.5369%2015.5321C33.3905%2020.2522%2032.0333%2023.7489%2031.2049%2026.0976C30.2406%2028.8313%2031.4158%2031.7349%2033.9346%2033.099C35.0266%2033.6905%2036.406%2034.4146%2038.0991%2035.2637L36.4656%2038.8561C35.6919%2040.5574%2037.2701%2042.3825%2039.0653%2041.8627L47.1048%2039.5348C52.6322%2042.0308%2056.6205%2043.6246%2059.1947%2044.5853C61.8784%2045.5868%2064.839%2044.5639%2066.2654%2042.0403C67.4908%2039.8721%2069.2339%2036.5509%2071.3802%2031.8308C73.5265%2027.1107%2074.8837%2023.614%2075.7122%2021.2653C76.6764%2018.5315%2075.5012%2015.628%2072.9825%2014.2639C70.4644%2012.9%2066.4181%2010.8307%2060.5213%208.14933Z'%20fill='%238FBFFA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.5676%2013.2131C57.014%2013.3361%2057.5158%2013.5116%2058.0632%2013.7605C58.6106%2014.0094%2059.0726%2014.2722%2059.4588%2014.5277C60.791%2015.4095%2060.821%2017.0868%2060.1127%2018.3285C59.2156%2019.901%2057.9017%2022.1509%2056.9387%2023.5681C56.3961%2024.3668%2055.4467%2024.8622%2054.4344%2024.5381C54.1277%2024.4399%2053.769%2024.3037%2053.3547%2024.1153C52.9404%2023.9269%2052.6019%2023.746%2052.3263%2023.5795C51.4166%2023.0296%2051.1659%2021.9885%2051.4111%2021.0546C51.8462%2019.3973%2052.678%2016.9283%2053.2735%2015.2186C53.7437%2013.8686%2055.0274%2012.7887%2056.5676%2013.2131ZM47.6334%2028.2422C48.4335%2026.4826%2050.5086%2025.7047%2052.2682%2026.5049C54.0278%2027.305%2054.8056%2029.3801%2054.0055%2031.1397C53.2054%2032.8993%2051.1303%2033.6771%2049.3707%2032.877C47.6111%2032.0769%2046.8332%2030.0018%2047.6334%2028.2422Z'%20fill='%232859C5'/%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.cjs.js",document.baseURI).href).href,_=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%23FEE089'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%23D89C2B'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%23D89C2B'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.51%2022.1009C40.06%2019.4912%2043.8378%2019.4913%2045.3879%2022.1009L53.9494%2036.5169C55.5328%2039.1832%2053.611%2042.5598%2050.51%2042.5598H33.3879C30.2869%2042.5597%2028.3651%2039.1832%2029.9485%2036.5169L38.51%2022.1009ZM41.9494%2033.9768C40.9245%2033.9768%2040.0931%2034.9463%2040.093%2036.1429C40.093%2037.3395%2040.9244%2038.3098%2041.9494%2038.3098C42.9743%2038.3096%2043.8049%2037.3393%2043.8049%2036.1429C43.8048%2034.9465%2042.9742%2033.9771%2041.9494%2033.9768ZM41.9494%2025.3098C41.6305%2025.3098%2041.3491%2025.339%2041.1067%2025.3841C40.2702%2025.5397%2039.8879%2026.4776%2039.9572%2027.3587C40.0451%2028.4746%2040.1853%2030.0789%2040.3391%2031.1243C40.4257%2031.7134%2040.7754%2032.236%2041.3352%2032.3128C41.5047%2032.336%2041.7081%2032.3518%2041.9494%2032.3518C42.1904%2032.3518%2042.3933%2032.336%2042.5627%2032.3128C43.1225%2032.236%2043.4722%2031.7134%2043.5588%2031.1243C43.7126%2030.0789%2043.8528%2028.4746%2043.9406%2027.3587C44.01%2026.4775%2043.6278%2025.5396%2042.7912%2025.3841C42.5489%2025.339%2042.2681%2025.3099%2041.9494%2025.3098Z'%20fill='%23D89C2B'/%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.cjs.js",document.baseURI).href).href,U={class:"f-erp-popup-message-title"},I={key:0,class:"f-erp-popup-message-text"},g=e.defineComponent({__name:"FERPPopup",props:{visible:{type:Boolean},severity:{},title:{},content:{type:[Object,Function,String]},contentProps:{},options:{}},emits:["update:visible","close","submit"],setup(t,{emit:l}){const o=l,n=e.ref(!1),c=t,s=e.computed(()=>{switch(c.severity){case"normal":return{ImageSrc:Z,CssClass:"f-erp-popup-message--v-severity-normal",Title:"Thông tin"};case"info":return{ImageSrc:T,CssClass:"f-erp-popup-message--v-severity-info",Title:"Thông báo"};case"success":return{ImageSrc:R,CssClass:"f-erp-popup-message--v-severity-success",Title:"Thành công"};case"warning":return{ImageSrc:_,CssClass:"f-erp-popup-message--v-severity-warning",Title:"Cảnh báo"};case"error":return{ImageSrc:S,CssClass:"f-erp-popup-message--v-severity-error",Title:"Lỗi"}}});e.watch(()=>c.visible,u=>{n.value=u});const d=()=>{n.value=!1,o("update:visible",!1),o("close")},m=()=>{o("submit")},F=()=>{n.value==!1&&d()};return(u,i)=>(e.openBlock(),e.createBlock(e.unref(a.VDialog),{modelValue:n.value,"onUpdate:modelValue":[i[0]||(i[0]=p=>n.value=p),i[1]||(i[1]=p=>F())],"max-width":"var(--f-erp-max-width-small)",scrollable:!0},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCard),{elevation:"2",rounded:"lg",flat:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCardTitle),{class:"f-erp-card-title"},{default:e.withCtx(()=>[i[2]||(i[2]=e.createElementVNode("div",{class:"f-erp-card-title-content"},null,-1)),e.createVNode(f,{icon:"mdi-close",onClick:d,color:"surface",variant:"flat",size:"small",density:"compact"})]),_:1}),e.createVNode(e.unref(a.VDivider)),e.createVNode(e.unref(a.VCardText),{class:"pa-4"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"f-erp-popup-message-content":!0},s.value.CssClass])},[e.createElementVNode("span",U,e.toDisplayString(t.title?.length>0?t.title:s.value.Title),1),typeof c.content=="string"?(e.openBlock(),e.createElementBlock("span",I,e.toDisplayString(c.content),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.content),e.normalizeProps(e.mergeProps({key:1},t.contentProps)),null,16)),e.createVNode(e.unref(a.VImg),{"aspect-ratio":"1/1",cover:"",src:s.value.ImageSrc,width:"6rem"},null,8,["src"])],2)]),_:1}),e.createVNode(e.unref(a.VDivider)),t.options=="confrim"?(e.openBlock(),e.createBlock(e.unref(a.VCardActions),{key:0},{default:e.withCtx(()=>[e.createVNode(C,{text:"Xác nhận",onClick:m}),e.createVNode(C,{text:"Hủy",variant:"outlined",onClick:d})]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"]))}}),A=Object.freeze(Object.defineProperty({__proto__:null,FERPButton:C,FERPButtonIcon:f,FERPCard:L,FERPDialog:h,FERPPopup:g,FERPTextField:v},Symbol.toStringTag,{value:"Module"})),$={dark:!1,colors:{primary:"#0051B6","on-primary":"#FFFFFF",secondary:"#42CAF7","on-secondary":"#FFFFFF",tertiary:"#FF742E","on-tertiary":"#FFFFFF",danger:"#F44829","on-danger":"#FFFFFF",delay:"#FCBF3C","on-delay":"#FFFFFF",success:"#76DD30","on-success":"#FFFFFF",background:"#ECEFF1","on-background":"#263238",surface:"#FFFFFF","on-surface":"#263238"},variables:{"neutral-18":"#CFCFCF","gray-02":"#D5DEE9","success-darken-001":"#58BE23","success-light-001":"#A0EA60"}},j={dark:!0,colors:{primary:"#0051B6","on-primary":"#FFFFFF",secondary:"#42CAF7","on-secondary":"#FFFFFF",tertiary:"#FF742E","on-tertiary":"#FFFFFF",danger:"#F44829","on-danger":"#FFFFFF",delay:"#FCBF3C","on-delay":"#FFFFFF",success:"#76DD30","on-success":"#FFFFFF",background:"#263238","on-background":"#FFFFFF",surface:"#192124","on-surface":"#FFFFFF"},variables:{"neutral-18":"#CFCFCF","gray-02":"#D5DEE9","success-darken-001":"#58BE23","success-light-001":"#A0EA60"}},O={install(t){for(const[l,o]of Object.entries(A)){const n=o.default||o;t.component(l,n)}}};exports.DarkTheme=j;exports.FERPButton=C;exports.FERPButtonIcon=f;exports.FERPCard=L;exports.FERPDialog=h;exports.FERPPopup=g;exports.FERPTextField=v;exports.LightTheme=$;exports.default=O;
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { defineComponent as L, createBlock as c, openBlock as s, unref as n, withCtx as i, createTextVNode as O, toDisplayString as F, createVNode as a, createElementBlock as d, createCommentVNode as x, createElementVNode as r, resolveDynamicComponent as h, normalizeProps as E, mergeProps as P, ref as T, computed as R, watch as S, withDirectives as b, vShow as w, resolveComponent as N, normalizeClass as _ } from "vue";
|
|
2
|
+
import { VBtn as I, VCard as Z, VCardTitle as D, VIcon as A, VDivider as g, VCardText as V, VDialog as U, VCardActions as $, VTextField as z, VImg as G } from "vuetify/components";
|
|
3
|
+
const y = /* @__PURE__ */ L({
|
|
4
|
+
__name: "FERPButton",
|
|
5
|
+
props: {
|
|
6
|
+
color: { default: "primary" },
|
|
7
|
+
variant: { default: "flat" },
|
|
8
|
+
text: {},
|
|
9
|
+
loading: { type: Boolean, default: !1 },
|
|
10
|
+
prependIcon: {},
|
|
11
|
+
appendIcon: {},
|
|
12
|
+
disabled: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
const t = e;
|
|
16
|
+
return (o, l) => (s(), c(n(I), {
|
|
17
|
+
class: "text-none f-erp-button",
|
|
18
|
+
rounded: "lg",
|
|
19
|
+
variant: t.variant,
|
|
20
|
+
color: t.color,
|
|
21
|
+
loading: t.loading,
|
|
22
|
+
"prepend-icon": t.prependIcon,
|
|
23
|
+
"append-icon": t.appendIcon,
|
|
24
|
+
disabled: t.loading == !0 || t.disabled == !0
|
|
25
|
+
}, {
|
|
26
|
+
default: i(() => [
|
|
27
|
+
O(F(t.text), 1)
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["variant", "color", "loading", "prepend-icon", "append-icon", "disabled"]));
|
|
31
|
+
}
|
|
32
|
+
}), k = /* @__PURE__ */ L({
|
|
33
|
+
__name: "FERPButtonIcon",
|
|
34
|
+
props: {
|
|
35
|
+
icon: {},
|
|
36
|
+
density: { default: "default" },
|
|
37
|
+
size: {},
|
|
38
|
+
color: {},
|
|
39
|
+
variant: { default: "text" }
|
|
40
|
+
},
|
|
41
|
+
setup(e) {
|
|
42
|
+
const t = e;
|
|
43
|
+
return (o, l) => (s(), c(n(I), {
|
|
44
|
+
icon: t.icon,
|
|
45
|
+
density: t.density,
|
|
46
|
+
size: t.size,
|
|
47
|
+
elevation: "0",
|
|
48
|
+
color: t.color,
|
|
49
|
+
variant: t.variant
|
|
50
|
+
}, null, 8, ["icon", "density", "size", "color", "variant"]));
|
|
51
|
+
}
|
|
52
|
+
}), H = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "f-erp-card-title-prepend-icon"
|
|
55
|
+
}, j = { class: "f-erp-card-title-content" }, W = { class: "f-erp-card-title-text" }, X = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "f-erp-card-sub-title-text"
|
|
58
|
+
}, q = {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: "f-erp-card-sub-title-content"
|
|
61
|
+
}, J = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "pa-4"
|
|
64
|
+
}, K = /* @__PURE__ */ L({
|
|
65
|
+
__name: "FERPCard",
|
|
66
|
+
props: {
|
|
67
|
+
prependIcon: {},
|
|
68
|
+
title: {},
|
|
69
|
+
subTitle: {},
|
|
70
|
+
content: {},
|
|
71
|
+
contentProps: {}
|
|
72
|
+
},
|
|
73
|
+
setup(e) {
|
|
74
|
+
const t = e;
|
|
75
|
+
return (o, l) => (s(), c(n(Z), {
|
|
76
|
+
elevation: "2",
|
|
77
|
+
rounded: "lg",
|
|
78
|
+
flat: ""
|
|
79
|
+
}, {
|
|
80
|
+
default: i(() => [
|
|
81
|
+
a(n(D), { class: "f-erp-card-title" }, {
|
|
82
|
+
default: i(() => [
|
|
83
|
+
e.prependIcon?.length > 0 ? (s(), d("div", H, [
|
|
84
|
+
a(n(A), { icon: e.prependIcon }, null, 8, ["icon"])
|
|
85
|
+
])) : x("", !0),
|
|
86
|
+
r("div", j, [
|
|
87
|
+
r("div", W, [
|
|
88
|
+
r("span", null, F(t.title), 1)
|
|
89
|
+
]),
|
|
90
|
+
typeof t.subTitle == "string" ? (s(), d("div", X, [
|
|
91
|
+
r("span", null, F(t.subTitle), 1)
|
|
92
|
+
])) : (s(), d("div", q, [
|
|
93
|
+
(s(), c(h(t.subTitle)))
|
|
94
|
+
]))
|
|
95
|
+
])
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
a(n(g)),
|
|
100
|
+
a(n(V), { class: "pa-0" }, {
|
|
101
|
+
default: i(() => [
|
|
102
|
+
typeof t.content == "string" ? (s(), d("div", J, [
|
|
103
|
+
r("span", null, F(t.content), 1)
|
|
104
|
+
])) : (s(), c(h(t.content), E(P({ key: 1 }, t.contentProps)), null, 16))
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
}), Q = {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "f-erp-card-title-prepend-icon"
|
|
115
|
+
}, Y = { class: "f-erp-card-title-content" }, e2 = {
|
|
116
|
+
key: 0,
|
|
117
|
+
class: "f-erp-card-title-text"
|
|
118
|
+
}, t2 = {
|
|
119
|
+
key: 1,
|
|
120
|
+
class: "f-erp-card-sub-title-text"
|
|
121
|
+
}, l2 = {
|
|
122
|
+
key: 2,
|
|
123
|
+
class: "f-erp-card-sub-title-content"
|
|
124
|
+
}, a2 = { key: 0 }, n2 = /* @__PURE__ */ L({
|
|
125
|
+
__name: "FERPDialog",
|
|
126
|
+
props: {
|
|
127
|
+
icon: {},
|
|
128
|
+
title: {},
|
|
129
|
+
subTitle: {},
|
|
130
|
+
content: {},
|
|
131
|
+
contentProps: {},
|
|
132
|
+
show: { type: Boolean, default: !1 },
|
|
133
|
+
submitVisible: { type: Boolean, default: !1 },
|
|
134
|
+
submitText: { default: "Cập nhật" },
|
|
135
|
+
submitLoading: { type: Boolean, default: !1 },
|
|
136
|
+
cancelVisible: { type: Boolean, default: !1 },
|
|
137
|
+
cancelIconVisible: { type: Boolean, default: !1 },
|
|
138
|
+
fullscreen: { type: Boolean, default: !1 },
|
|
139
|
+
width: {},
|
|
140
|
+
maxwidth: { type: [Boolean, String], default: !1 },
|
|
141
|
+
persistent: { type: Boolean, default: !1 }
|
|
142
|
+
},
|
|
143
|
+
emits: ["update:show", "close", "submit"],
|
|
144
|
+
setup(e, { emit: t }) {
|
|
145
|
+
const o = T(!1), l = e, u = R(() => {
|
|
146
|
+
switch (l.maxwidth) {
|
|
147
|
+
case !1:
|
|
148
|
+
return null;
|
|
149
|
+
case "extra-large":
|
|
150
|
+
return "var(--f-erp-max-width-extra-large)";
|
|
151
|
+
case "large":
|
|
152
|
+
return "var(--f-erp-max-width-large)";
|
|
153
|
+
case "medium":
|
|
154
|
+
return "var(--f-erp-max-width-medium)";
|
|
155
|
+
case "small":
|
|
156
|
+
return "var(--f-erp-max-width-small)";
|
|
157
|
+
case "extra-small":
|
|
158
|
+
return "var(--f-erp-max-width-extra-small)";
|
|
159
|
+
}
|
|
160
|
+
}), p = t;
|
|
161
|
+
S(() => l.show, (m) => {
|
|
162
|
+
o.value = m;
|
|
163
|
+
});
|
|
164
|
+
const f = () => {
|
|
165
|
+
o.value = !1, p("update:show", !1), p("close");
|
|
166
|
+
}, M = () => {
|
|
167
|
+
p("submit");
|
|
168
|
+
}, B = () => {
|
|
169
|
+
o.value == !1 && f();
|
|
170
|
+
};
|
|
171
|
+
return (m, C) => (s(), c(n(U), {
|
|
172
|
+
modelValue: o.value,
|
|
173
|
+
"onUpdate:modelValue": [
|
|
174
|
+
C[0] || (C[0] = (v) => o.value = v),
|
|
175
|
+
C[1] || (C[1] = (v) => B())
|
|
176
|
+
],
|
|
177
|
+
persistent: e.persistent,
|
|
178
|
+
"max-width": u.value,
|
|
179
|
+
width: e.width,
|
|
180
|
+
scrollable: !0
|
|
181
|
+
}, {
|
|
182
|
+
default: i(() => [
|
|
183
|
+
a(n(Z), {
|
|
184
|
+
elevation: "2",
|
|
185
|
+
rounded: "lg",
|
|
186
|
+
flat: ""
|
|
187
|
+
}, {
|
|
188
|
+
default: i(() => [
|
|
189
|
+
a(n(D), { class: "f-erp-card-title" }, {
|
|
190
|
+
default: i(() => [
|
|
191
|
+
e.icon?.length > 0 ? (s(), d("div", Q, [
|
|
192
|
+
a(n(A), { icon: e.icon }, null, 8, ["icon"])
|
|
193
|
+
])) : x("", !0),
|
|
194
|
+
r("div", Y, [
|
|
195
|
+
e.title?.length > 0 ? (s(), d("div", e2, [
|
|
196
|
+
r("span", null, F(l.title), 1)
|
|
197
|
+
])) : x("", !0),
|
|
198
|
+
typeof l.subTitle == "string" ? (s(), d("div", t2, [
|
|
199
|
+
r("span", null, F(l.subTitle), 1)
|
|
200
|
+
])) : (s(), d("div", l2, [
|
|
201
|
+
(s(), c(h(l.subTitle)))
|
|
202
|
+
]))
|
|
203
|
+
]),
|
|
204
|
+
b(a(k, {
|
|
205
|
+
icon: "mdi-close",
|
|
206
|
+
onClick: f,
|
|
207
|
+
color: "surface",
|
|
208
|
+
variant: "flat",
|
|
209
|
+
size: "small",
|
|
210
|
+
density: "compact"
|
|
211
|
+
}, null, 512), [
|
|
212
|
+
[w, e.cancelIconVisible]
|
|
213
|
+
])
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}),
|
|
217
|
+
a(n(g)),
|
|
218
|
+
a(n(V), { class: "pa-4" }, {
|
|
219
|
+
default: i(() => [
|
|
220
|
+
typeof l.content == "string" ? (s(), d("div", a2, [
|
|
221
|
+
r("span", null, F(l.content), 1)
|
|
222
|
+
])) : (s(), c(h(l.content), E(P({ key: 1 }, l.contentProps)), null, 16))
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
a(n(g)),
|
|
227
|
+
b(a(n($), null, {
|
|
228
|
+
default: i(() => [
|
|
229
|
+
b(a(y, {
|
|
230
|
+
text: "Cập nhật",
|
|
231
|
+
onClick: M,
|
|
232
|
+
loading: l.submitLoading
|
|
233
|
+
}, null, 8, ["loading"]), [
|
|
234
|
+
[w, e.submitVisible]
|
|
235
|
+
]),
|
|
236
|
+
b(a(y, {
|
|
237
|
+
text: "Hủy",
|
|
238
|
+
variant: "outlined",
|
|
239
|
+
onClick: f
|
|
240
|
+
}, null, 512), [
|
|
241
|
+
[w, e.cancelVisible]
|
|
242
|
+
])
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
}, 512), [
|
|
246
|
+
[w, e.submitVisible || e.cancelVisible]
|
|
247
|
+
])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
})
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["modelValue", "persistent", "max-width", "width"]));
|
|
254
|
+
}
|
|
255
|
+
}), s2 = /* @__PURE__ */ L({
|
|
256
|
+
__name: "FERPTextField",
|
|
257
|
+
props: {
|
|
258
|
+
label: {},
|
|
259
|
+
placeholder: {},
|
|
260
|
+
persistentPlaceholder: { type: Boolean, default: !1 },
|
|
261
|
+
variant: { default: "solo-outlined" },
|
|
262
|
+
clearable: { type: Boolean },
|
|
263
|
+
persistentClear: { type: Boolean, default: !1 },
|
|
264
|
+
density: { default: "comfortable" },
|
|
265
|
+
value: {},
|
|
266
|
+
loading: { type: Boolean },
|
|
267
|
+
loadingColor: { default: "primary" },
|
|
268
|
+
hint: {},
|
|
269
|
+
persistentHint: { type: Boolean, default: !1 },
|
|
270
|
+
counter: { type: [String, Number, Boolean], default: !1 },
|
|
271
|
+
persistentCounter: { type: Boolean, default: !1 }
|
|
272
|
+
},
|
|
273
|
+
setup(e) {
|
|
274
|
+
const t = e;
|
|
275
|
+
return (o, l) => {
|
|
276
|
+
const u = N("v-progress-linear");
|
|
277
|
+
return s(), c(n(z), {
|
|
278
|
+
modelValue: t.value,
|
|
279
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
|
|
280
|
+
class: _({ "ferp-field--variant-solo-outlined": t.variant == "solo-outlined" }),
|
|
281
|
+
variant: e.variant == "solo-outlined" ? "solo" : e.variant,
|
|
282
|
+
label: e.label,
|
|
283
|
+
clearable: e.clearable,
|
|
284
|
+
"persistent-clear": e.persistentClear,
|
|
285
|
+
placeholder: e.placeholder,
|
|
286
|
+
density: e.density,
|
|
287
|
+
loading: e.loading,
|
|
288
|
+
hint: e.hint,
|
|
289
|
+
"persistent-hint": e.persistentHint,
|
|
290
|
+
"hide-details": "auto",
|
|
291
|
+
counter: e.counter,
|
|
292
|
+
"persistent-counter": e.persistentCounter
|
|
293
|
+
}, {
|
|
294
|
+
loader: i(() => [
|
|
295
|
+
a(u, {
|
|
296
|
+
active: e.loading,
|
|
297
|
+
color: e.loadingColor,
|
|
298
|
+
indeterminate: ""
|
|
299
|
+
}, null, 8, ["active", "color"])
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["modelValue", "class", "variant", "label", "clearable", "persistent-clear", "placeholder", "density", "loading", "hint", "persistent-hint", "counter", "persistent-counter"]);
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
}), o2 = new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%238FFA93'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%2336BF00'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%2336BF00'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.1561%2027.2921C56.3644%2025.6857%2056.0705%2023.3817%2054.4998%2022.146C52.9291%2020.9104%2050.6763%2021.2109%2049.468%2022.8172L40.9522%2034.1395L35.7454%2028.6742C34.3624%2027.2227%2032.0908%2027.1924%2030.6715%2028.6068C29.2521%2030.0213%2029.2227%2032.3445%2030.6056%2033.7961L38.7018%2042.2942C39.428%2043.0565%2040.4421%2043.4588%2041.481%2043.3967C42.5199%2043.3347%2043.4813%2042.8143%2044.1158%2041.9708L55.1561%2027.2921Z'%20fill='%2336BF00'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e", import.meta.url).href, i2 = new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7198%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7198%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%23F6C5C3'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M33.5532%2023.3152C35.1153%2021.7531%2037.6484%2021.7531%2039.2105%2023.3152L43.5806%2027.6854L47.8228%2023.4432C49.3849%2021.8811%2051.9179%2021.8811%2053.48%2023.4432C55.0421%2025.0053%2055.0421%2027.5383%2053.48%2029.1004L49.2378%2033.3426L53.3521%2037.4568C54.9142%2039.0189%2054.9142%2041.552%2053.3521%2043.1141C51.79%2044.6762%2049.2569%2044.6762%2047.6948%2043.1141L43.5806%2038.9998L39.3384%2043.242C37.7763%2044.8041%2035.2433%2044.8041%2033.6812%2043.242C32.1191%2041.6799%2032.1191%2039.1469%2033.6812%2037.5848L37.9234%2033.3426L33.5532%2028.9725C31.9911%2027.4104%2031.9911%2024.8773%2033.5532%2023.3152Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e", import.meta.url).href, r2 = new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%238FBFFA'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%232859C5'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%232859C5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.6975%2020.2816C41.1824%2020.1984%2041.7439%2020.1437%2042.3817%2020.1437C43.0194%2020.1437%2043.5808%2020.1984%2044.0658%2020.2816C45.739%2020.5687%2046.5044%2022.2996%2046.3657%2023.9264C46.19%2025.9868%2045.9092%2028.949%2045.6016%2030.879C45.4284%2031.9666%2044.7293%2032.9311%2043.6097%2033.0728C43.2705%2033.1157%2042.8643%2033.1437%2042.3817%2033.1437C41.8989%2033.1437%2041.4928%2033.1157%2041.1536%2033.0728C40.034%2032.9311%2039.3349%2031.9666%2039.1616%2030.879C38.8541%2028.949%2038.5733%2025.9868%2038.3976%2023.9264C38.2589%2022.2996%2039.0242%2020.5687%2040.6975%2020.2816ZM38.6698%2040.1437C38.6698%2037.9346%2040.3318%2036.1437%2042.3818%2036.1437C44.4318%2036.1437%2046.0937%2037.9346%2046.0937%2040.1437C46.0937%2042.3528%2044.4318%2044.1437%2042.3818%2044.1437C40.3318%2044.1437%2038.6698%2042.3528%2038.6698%2040.1437Z'%20fill='%232859C5'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e", import.meta.url).href, c2 = new URL("data:image/svg+xml,%3csvg%20width='79'%20height='57'%20viewBox='0%200%2079%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3319%2029.9482C15.0605%2028.6492%2017.7147%2027.8568%2019.3983%2027.3964C21.0823%2026.936%2022.8144%2027.6992%2023.5291%2029.2804C24.1432%2030.6388%2025.0025%2032.7127%2026.0235%2035.6431C27.0445%2038.5736%2027.6599%2040.7325%2028.0229%2042.1784C28.4454%2043.8613%2027.5625%2045.5357%2025.9569%2046.2213C25.2608%2046.5186%2024.3829%2046.8803%2023.3077%2047.3007L24.0848%2049.531C24.4528%2050.5872%2023.3895%2051.5966%2022.3333%2051.1938L17.603%2049.3898C14.109%2050.597%2011.6002%2051.3443%209.98485%2051.786C8.3009%2052.2465%206.56868%2051.4832%205.85398%2049.9021C5.23996%2048.5437%204.38061%2046.4698%203.35963%2043.5393C2.33865%2040.6089%201.72327%2038.45%201.36026%2037.0041C0.937768%2035.3212%201.82067%2033.6468%203.42618%2032.9612C5.03131%2032.2757%207.60328%2031.2473%2011.3319%2029.9482Z'%20fill='%238FBFFA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1164%2034.0198C12.3299%2033.8963%2012.5846%2033.7746%2012.8852%2033.6681C13.1857%2033.5616%2013.4602%2033.4958%2013.7038%2033.4573C14.5444%2033.3245%2015.2182%2034.0804%2015.4471%2034.9341C15.737%2036.0154%2016.1406%2037.5747%2016.3448%2038.6114C16.4599%2039.1957%2016.3049%2039.8048%2015.8029%2040.0642C15.6508%2040.1427%2015.4644%2040.2248%2015.237%2040.3054C15.0094%2040.386%2014.813%2040.4396%2014.6453%2040.4743C14.092%2040.5889%2013.5881%2040.2132%2013.3097%2039.6869C12.8156%2038.7528%2012.1474%2037.2873%2011.6918%2036.2647C11.3322%2035.4573%2011.3797%2034.4458%2012.1164%2034.0198ZM14.7539%2044.4992C14.3543%2043.3713%2014.8136%2042.1794%2015.7797%2041.8371C16.7459%2041.4948%2017.8531%2042.1316%2018.2528%2043.2595C18.6524%2044.3874%2018.1931%2045.5793%2017.227%2045.9216C16.2608%2046.2639%2015.1536%2045.6271%2014.7539%2044.4992Z'%20fill='%232859C5'/%3e%3cpath%20d='M60.5213%208.14933C54.6244%205.46791%2050.4053%203.77879%2047.7223%202.77757C45.0386%201.77609%2042.078%202.79898%2040.6517%205.32261C39.4262%207.4908%2037.6832%2010.812%2035.5369%2015.5321C33.3905%2020.2522%2032.0333%2023.7489%2031.2049%2026.0976C30.2406%2028.8313%2031.4158%2031.7349%2033.9346%2033.099C35.0266%2033.6905%2036.406%2034.4146%2038.0991%2035.2637L36.4656%2038.8561C35.6919%2040.5574%2037.2701%2042.3825%2039.0653%2041.8627L47.1048%2039.5348C52.6322%2042.0308%2056.6205%2043.6246%2059.1947%2044.5853C61.8784%2045.5868%2064.839%2044.5639%2066.2654%2042.0403C67.4908%2039.8721%2069.2339%2036.5509%2071.3802%2031.8308C73.5265%2027.1107%2074.8837%2023.614%2075.7122%2021.2653C76.6764%2018.5315%2075.5012%2015.628%2072.9825%2014.2639C70.4644%2012.9%2066.4181%2010.8307%2060.5213%208.14933Z'%20fill='%238FBFFA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.5676%2013.2131C57.014%2013.3361%2057.5158%2013.5116%2058.0632%2013.7605C58.6106%2014.0094%2059.0726%2014.2722%2059.4588%2014.5277C60.791%2015.4095%2060.821%2017.0868%2060.1127%2018.3285C59.2156%2019.901%2057.9017%2022.1509%2056.9387%2023.5681C56.3961%2024.3668%2055.4467%2024.8622%2054.4344%2024.5381C54.1277%2024.4399%2053.769%2024.3037%2053.3547%2024.1153C52.9404%2023.9269%2052.6019%2023.746%2052.3263%2023.5795C51.4166%2023.0296%2051.1659%2021.9885%2051.4111%2021.0546C51.8462%2019.3973%2052.678%2016.9283%2053.2735%2015.2186C53.7437%2013.8686%2055.0274%2012.7887%2056.5676%2013.2131ZM47.6334%2028.2422C48.4335%2026.4826%2050.5086%2025.7047%2052.2682%2026.5049C54.0278%2027.305%2054.8056%2029.3801%2054.0055%2031.1397C53.2054%2032.8993%2051.1303%2033.6771%2049.3707%2032.877C47.6111%2032.0769%2046.8332%2030.0018%2047.6334%2028.2422Z'%20fill='%232859C5'/%3e%3c/svg%3e", import.meta.url).href, C2 = new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%23FEE089'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%23D89C2B'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%23D89C2B'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.51%2022.1009C40.06%2019.4912%2043.8378%2019.4913%2045.3879%2022.1009L53.9494%2036.5169C55.5328%2039.1832%2053.611%2042.5598%2050.51%2042.5598H33.3879C30.2869%2042.5597%2028.3651%2039.1832%2029.9485%2036.5169L38.51%2022.1009ZM41.9494%2033.9768C40.9245%2033.9768%2040.0931%2034.9463%2040.093%2036.1429C40.093%2037.3395%2040.9244%2038.3098%2041.9494%2038.3098C42.9743%2038.3096%2043.8049%2037.3393%2043.8049%2036.1429C43.8048%2034.9465%2042.9742%2033.9771%2041.9494%2033.9768ZM41.9494%2025.3098C41.6305%2025.3098%2041.3491%2025.339%2041.1067%2025.3841C40.2702%2025.5397%2039.8879%2026.4776%2039.9572%2027.3587C40.0451%2028.4746%2040.1853%2030.0789%2040.3391%2031.1243C40.4257%2031.7134%2040.7754%2032.236%2041.3352%2032.3128C41.5047%2032.336%2041.7081%2032.3518%2041.9494%2032.3518C42.1904%2032.3518%2042.3933%2032.336%2042.5627%2032.3128C43.1225%2032.236%2043.4722%2031.7134%2043.5588%2031.1243C43.7126%2030.0789%2043.8528%2028.4746%2043.9406%2027.3587C44.01%2026.4775%2043.6278%2025.5396%2042.7912%2025.3841C42.5489%2025.339%2042.2681%2025.3099%2041.9494%2025.3098Z'%20fill='%23D89C2B'/%3e%3c/svg%3e", import.meta.url).href, d2 = { class: "f-erp-popup-message-title" }, u2 = {
|
|
306
|
+
key: 0,
|
|
307
|
+
class: "f-erp-popup-message-text"
|
|
308
|
+
}, p2 = /* @__PURE__ */ L({
|
|
309
|
+
__name: "FERPPopup",
|
|
310
|
+
props: {
|
|
311
|
+
visible: { type: Boolean },
|
|
312
|
+
severity: {},
|
|
313
|
+
title: {},
|
|
314
|
+
content: { type: [Object, Function, String] },
|
|
315
|
+
contentProps: {},
|
|
316
|
+
options: {}
|
|
317
|
+
},
|
|
318
|
+
emits: ["update:visible", "close", "submit"],
|
|
319
|
+
setup(e, { emit: t }) {
|
|
320
|
+
const o = t, l = T(!1), u = e, p = R(() => {
|
|
321
|
+
switch (u.severity) {
|
|
322
|
+
case "normal":
|
|
323
|
+
return {
|
|
324
|
+
ImageSrc: c2,
|
|
325
|
+
CssClass: "f-erp-popup-message--v-severity-normal",
|
|
326
|
+
Title: "Thông tin"
|
|
327
|
+
};
|
|
328
|
+
case "info":
|
|
329
|
+
return {
|
|
330
|
+
ImageSrc: r2,
|
|
331
|
+
CssClass: "f-erp-popup-message--v-severity-info",
|
|
332
|
+
Title: "Thông báo"
|
|
333
|
+
};
|
|
334
|
+
case "success":
|
|
335
|
+
return {
|
|
336
|
+
ImageSrc: o2,
|
|
337
|
+
CssClass: "f-erp-popup-message--v-severity-success",
|
|
338
|
+
Title: "Thành công"
|
|
339
|
+
};
|
|
340
|
+
case "warning":
|
|
341
|
+
return {
|
|
342
|
+
ImageSrc: C2,
|
|
343
|
+
CssClass: "f-erp-popup-message--v-severity-warning",
|
|
344
|
+
Title: "Cảnh báo"
|
|
345
|
+
};
|
|
346
|
+
case "error":
|
|
347
|
+
return {
|
|
348
|
+
ImageSrc: i2,
|
|
349
|
+
CssClass: "f-erp-popup-message--v-severity-error",
|
|
350
|
+
Title: "Lỗi"
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
S(() => u.visible, (m) => {
|
|
355
|
+
l.value = m;
|
|
356
|
+
});
|
|
357
|
+
const f = () => {
|
|
358
|
+
l.value = !1, o("update:visible", !1), o("close");
|
|
359
|
+
}, M = () => {
|
|
360
|
+
o("submit");
|
|
361
|
+
}, B = () => {
|
|
362
|
+
l.value == !1 && f();
|
|
363
|
+
};
|
|
364
|
+
return (m, C) => (s(), c(n(U), {
|
|
365
|
+
modelValue: l.value,
|
|
366
|
+
"onUpdate:modelValue": [
|
|
367
|
+
C[0] || (C[0] = (v) => l.value = v),
|
|
368
|
+
C[1] || (C[1] = (v) => B())
|
|
369
|
+
],
|
|
370
|
+
"max-width": "var(--f-erp-max-width-small)",
|
|
371
|
+
scrollable: !0
|
|
372
|
+
}, {
|
|
373
|
+
default: i(() => [
|
|
374
|
+
a(n(Z), {
|
|
375
|
+
elevation: "2",
|
|
376
|
+
rounded: "lg",
|
|
377
|
+
flat: ""
|
|
378
|
+
}, {
|
|
379
|
+
default: i(() => [
|
|
380
|
+
a(n(D), { class: "f-erp-card-title" }, {
|
|
381
|
+
default: i(() => [
|
|
382
|
+
C[2] || (C[2] = r("div", { class: "f-erp-card-title-content" }, null, -1)),
|
|
383
|
+
a(k, {
|
|
384
|
+
icon: "mdi-close",
|
|
385
|
+
onClick: f,
|
|
386
|
+
color: "surface",
|
|
387
|
+
variant: "flat",
|
|
388
|
+
size: "small",
|
|
389
|
+
density: "compact"
|
|
390
|
+
})
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
}),
|
|
394
|
+
a(n(g)),
|
|
395
|
+
a(n(V), { class: "pa-4" }, {
|
|
396
|
+
default: i(() => [
|
|
397
|
+
r("div", {
|
|
398
|
+
class: _([{ "f-erp-popup-message-content": !0 }, p.value.CssClass])
|
|
399
|
+
}, [
|
|
400
|
+
r("span", d2, F(e.title?.length > 0 ? e.title : p.value.Title), 1),
|
|
401
|
+
typeof u.content == "string" ? (s(), d("span", u2, F(u.content), 1)) : (s(), c(h(u.content), E(P({ key: 1 }, e.contentProps)), null, 16)),
|
|
402
|
+
a(n(G), {
|
|
403
|
+
"aspect-ratio": "1/1",
|
|
404
|
+
cover: "",
|
|
405
|
+
src: p.value.ImageSrc,
|
|
406
|
+
width: "6rem"
|
|
407
|
+
}, null, 8, ["src"])
|
|
408
|
+
], 2)
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}),
|
|
412
|
+
a(n(g)),
|
|
413
|
+
e.options == "confrim" ? (s(), c(n($), { key: 0 }, {
|
|
414
|
+
default: i(() => [
|
|
415
|
+
a(y, {
|
|
416
|
+
text: "Xác nhận",
|
|
417
|
+
onClick: M
|
|
418
|
+
}),
|
|
419
|
+
a(y, {
|
|
420
|
+
text: "Hủy",
|
|
421
|
+
variant: "outlined",
|
|
422
|
+
onClick: f
|
|
423
|
+
})
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
})) : x("", !0)
|
|
427
|
+
]),
|
|
428
|
+
_: 1
|
|
429
|
+
})
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
}, 8, ["modelValue"]));
|
|
433
|
+
}
|
|
434
|
+
}), F2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
435
|
+
__proto__: null,
|
|
436
|
+
FERPButton: y,
|
|
437
|
+
FERPButtonIcon: k,
|
|
438
|
+
FERPCard: K,
|
|
439
|
+
FERPDialog: n2,
|
|
440
|
+
FERPPopup: p2,
|
|
441
|
+
FERPTextField: s2
|
|
442
|
+
}, Symbol.toStringTag, { value: "Module" })), m2 = {
|
|
443
|
+
dark: !1,
|
|
444
|
+
colors: {
|
|
445
|
+
primary: "#0051B6",
|
|
446
|
+
"on-primary": "#FFFFFF",
|
|
447
|
+
secondary: "#42CAF7",
|
|
448
|
+
"on-secondary": "#FFFFFF",
|
|
449
|
+
tertiary: "#FF742E",
|
|
450
|
+
"on-tertiary": "#FFFFFF",
|
|
451
|
+
danger: "#F44829",
|
|
452
|
+
"on-danger": "#FFFFFF",
|
|
453
|
+
delay: "#FCBF3C",
|
|
454
|
+
"on-delay": "#FFFFFF",
|
|
455
|
+
success: "#76DD30",
|
|
456
|
+
"on-success": "#FFFFFF",
|
|
457
|
+
background: "#ECEFF1",
|
|
458
|
+
"on-background": "#263238",
|
|
459
|
+
surface: "#FFFFFF",
|
|
460
|
+
"on-surface": "#263238"
|
|
461
|
+
},
|
|
462
|
+
variables: {
|
|
463
|
+
"neutral-18": "#CFCFCF",
|
|
464
|
+
"gray-02": "#D5DEE9",
|
|
465
|
+
"success-darken-001": "#58BE23",
|
|
466
|
+
"success-light-001": "#A0EA60"
|
|
467
|
+
}
|
|
468
|
+
}, v2 = {
|
|
469
|
+
dark: !0,
|
|
470
|
+
colors: {
|
|
471
|
+
primary: "#0051B6",
|
|
472
|
+
"on-primary": "#FFFFFF",
|
|
473
|
+
secondary: "#42CAF7",
|
|
474
|
+
"on-secondary": "#FFFFFF",
|
|
475
|
+
tertiary: "#FF742E",
|
|
476
|
+
"on-tertiary": "#FFFFFF",
|
|
477
|
+
danger: "#F44829",
|
|
478
|
+
"on-danger": "#FFFFFF",
|
|
479
|
+
delay: "#FCBF3C",
|
|
480
|
+
"on-delay": "#FFFFFF",
|
|
481
|
+
success: "#76DD30",
|
|
482
|
+
"on-success": "#FFFFFF",
|
|
483
|
+
background: "#263238",
|
|
484
|
+
"on-background": "#FFFFFF",
|
|
485
|
+
surface: "#192124",
|
|
486
|
+
"on-surface": "#FFFFFF"
|
|
487
|
+
},
|
|
488
|
+
variables: {
|
|
489
|
+
"neutral-18": "#CFCFCF",
|
|
490
|
+
"gray-02": "#D5DEE9",
|
|
491
|
+
"success-darken-001": "#58BE23",
|
|
492
|
+
"success-light-001": "#A0EA60"
|
|
493
|
+
}
|
|
494
|
+
}, h2 = {
|
|
495
|
+
install(e) {
|
|
496
|
+
for (const [t, o] of Object.entries(F2)) {
|
|
497
|
+
const l = o.default || o;
|
|
498
|
+
e.component(t, l);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
export {
|
|
503
|
+
v2 as DarkTheme,
|
|
504
|
+
y as FERPButton,
|
|
505
|
+
k as FERPButtonIcon,
|
|
506
|
+
K as FERPCard,
|
|
507
|
+
n2 as FERPDialog,
|
|
508
|
+
p2 as FERPPopup,
|
|
509
|
+
s2 as FERPTextField,
|
|
510
|
+
m2 as LightTheme,
|
|
511
|
+
h2 as default
|
|
512
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuetify/components")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o["f-fox-erp-ui-package"]={},o.Vue,o.VuetifyComponents))})(this,(function(o,e,a){"use strict";var g=document.createElement("style");g.textContent=`@import"https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap";:root{--f-erp-width: .390625vw;--f-erp-font-family: "Manrope", sans-serif;--f-erp-font-size: calc(9pt * var(--f-erp-width))}body,*{font-family:var(--f-erp-font-family)!important;font-size:var(--f-erp-font-size)}.f-erp-button{--v-btn-height: 2.6rem}.f-erp-button-loading{gap:.4em;display:flex;align-items:center}:root{--f-erp-max-width-extra-large: 90vw;--f-erp-max-width-large: 75vw;--f-erp-max-width-medium: 50vw;--f-erp-max-width-small: 25vw;--f-erp-max-width-extra-small: 20vw}.f-erp-card-title{display:flex;align-items:center;gap:.6em;padding:.4em .8em}.f-erp-card-title-prepend-icon{display:flex;border:1px solid rgb(var(--v-neutral-18));align-items:center;justify-content:center;border-radius:.4em;padding:.2em;font-size:1rem}.f-erp-card-title-content{display:flex;flex-direction:column;gap:.2em;flex:1 0 0}.f-erp-card-title-text{font-size:1rem;font-weight:700;line-height:1.1rem}.f-erp-card-sub-title-text{font-size:.825rem;font-weight:400}.ferp-field--variant-solo-outlined .v-input__control .v-field--variant-solo{border:.1em solid rgb(var(--v-gray-02));box-shadow:none;border-radius:.6em}.f-erp-popup-message-content{display:flex;flex-direction:column;gap:1em;justify-content:center;align-items:center}.f-erp-popup-message-title{font-size:1rem;font-weight:700;text-align:center}.f-erp-popup-message-text{font-weight:400;text-align:center;font-size:.875rem}.f-erp-popup-message--v-severity-normal .f-erp-popup-message-title{color:rgba(var(--v-theme-on-surface),.9)}.f-erp-popup-message--v-severity-info .f-erp-popup-message-title{color:rgba(var(--v-theme-info),1)}.f-erp-popup-message--v-severity-success .f-erp-popup-message-title{color:rgb(var(--v-success-darken-001))}.f-erp-popup-message--v-severity-error .f-erp-popup-message-title{color:rgba(var(--v-theme-error),1)}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(g);var r=typeof document<"u"?document.currentScript:null;const p=e.defineComponent({__name:"FERPButton",props:{color:{default:"primary"},variant:{default:"flat"},text:{},loading:{type:Boolean,default:!1},prependIcon:{},appendIcon:{},disabled:{type:Boolean,default:!1}},setup(t){const l=t;return(i,n)=>(e.openBlock(),e.createBlock(e.unref(a.VBtn),{class:"text-none f-erp-button",rounded:"lg",variant:l.variant,color:l.color,loading:l.loading,"prepend-icon":l.prependIcon,"append-icon":l.appendIcon,disabled:l.loading==!0||l.disabled==!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.text),1)]),_:1},8,["variant","color","loading","prepend-icon","append-icon","disabled"]))}}),u=e.defineComponent({__name:"FERPButtonIcon",props:{icon:{},density:{default:"default"},size:{},color:{},variant:{default:"text"}},setup(t){const l=t;return(i,n)=>(e.openBlock(),e.createBlock(e.unref(a.VBtn),{icon:l.icon,density:l.density,size:l.size,elevation:"0",color:l.color,variant:l.variant},null,8,["icon","density","size","color","variant"]))}}),B={key:0,class:"f-erp-card-title-prepend-icon"},b={class:"f-erp-card-title-content"},V={class:"f-erp-card-title-text"},k={key:0,class:"f-erp-card-sub-title-text"},E={key:1,class:"f-erp-card-sub-title-content"},D={key:0,class:"pa-4"},L=e.defineComponent({__name:"FERPCard",props:{prependIcon:{},title:{},subTitle:{},content:{},contentProps:{}},setup(t){const l=t;return(i,n)=>(e.openBlock(),e.createBlock(e.unref(a.VCard),{elevation:"2",rounded:"lg",flat:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCardTitle),{class:"f-erp-card-title"},{default:e.withCtx(()=>[t.prependIcon?.length>0?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(e.unref(a.VIcon),{icon:t.prependIcon},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",b,[e.createElementVNode("div",V,[e.createElementVNode("span",null,e.toDisplayString(l.title),1)]),typeof l.subTitle=="string"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("span",null,e.toDisplayString(l.subTitle),1)])):(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.subTitle)))]))])]),_:1}),e.createVNode(e.unref(a.VDivider)),e.createVNode(e.unref(a.VCardText),{class:"pa-0"},{default:e.withCtx(()=>[typeof l.content=="string"?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.content),e.normalizeProps(e.mergeProps({key:1},l.contentProps)),null,16))]),_:1})]),_:1}))}}),P={key:0,class:"f-erp-card-title-prepend-icon"},M={class:"f-erp-card-title-content"},N={key:0,class:"f-erp-card-title-text"},R={key:1,class:"f-erp-card-sub-title-text"},T={key:2,class:"f-erp-card-sub-title-content"},S={key:0},y=e.defineComponent({__name:"FERPDialog",props:{icon:{},title:{},subTitle:{},content:{},contentProps:{},show:{type:Boolean,default:!1},submitVisible:{type:Boolean,default:!1},submitText:{default:"Cập nhật"},submitLoading:{type:Boolean,default:!1},cancelVisible:{type:Boolean,default:!1},cancelIconVisible:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},width:{},maxwidth:{type:[Boolean,String],default:!1},persistent:{type:Boolean,default:!1}},emits:["update:show","close","submit"],setup(t,{emit:l}){const i=e.ref(!1),n=t,c=e.computed(()=>{switch(n.maxwidth){case!1:return null;case"extra-large":return"var(--f-erp-max-width-extra-large)";case"large":return"var(--f-erp-max-width-large)";case"medium":return"var(--f-erp-max-width-medium)";case"small":return"var(--f-erp-max-width-small)";case"extra-small":return"var(--f-erp-max-width-extra-small)"}}),d=l;e.watch(()=>n.show,f=>{i.value=f});const C=()=>{i.value=!1,d("update:show",!1),d("close")},F=()=>{d("submit")},h=()=>{i.value==!1&&C()};return(f,s)=>(e.openBlock(),e.createBlock(e.unref(a.VDialog),{modelValue:i.value,"onUpdate:modelValue":[s[0]||(s[0]=m=>i.value=m),s[1]||(s[1]=m=>h())],persistent:t.persistent,"max-width":c.value,width:t.width,scrollable:!0},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCard),{elevation:"2",rounded:"lg",flat:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCardTitle),{class:"f-erp-card-title"},{default:e.withCtx(()=>[t.icon?.length>0?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(e.unref(a.VIcon),{icon:t.icon},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[t.title?.length>0?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("span",null,e.toDisplayString(n.title),1)])):e.createCommentVNode("",!0),typeof n.subTitle=="string"?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("span",null,e.toDisplayString(n.subTitle),1)])):(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.subTitle)))]))]),e.withDirectives(e.createVNode(u,{icon:"mdi-close",onClick:C,color:"surface",variant:"flat",size:"small",density:"compact"},null,512),[[e.vShow,t.cancelIconVisible]])]),_:1}),e.createVNode(e.unref(a.VDivider)),e.createVNode(e.unref(a.VCardText),{class:"pa-4"},{default:e.withCtx(()=>[typeof n.content=="string"?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("span",null,e.toDisplayString(n.content),1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.content),e.normalizeProps(e.mergeProps({key:1},n.contentProps)),null,16))]),_:1}),e.createVNode(e.unref(a.VDivider)),e.withDirectives(e.createVNode(e.unref(a.VCardActions),null,{default:e.withCtx(()=>[e.withDirectives(e.createVNode(p,{text:"Cập nhật",onClick:F,loading:n.submitLoading},null,8,["loading"]),[[e.vShow,t.submitVisible]]),e.withDirectives(e.createVNode(p,{text:"Hủy",variant:"outlined",onClick:C},null,512),[[e.vShow,t.cancelVisible]])]),_:1},512),[[e.vShow,t.submitVisible||t.cancelVisible]])]),_:1})]),_:1},8,["modelValue","persistent","max-width","width"]))}}),w=e.defineComponent({__name:"FERPTextField",props:{label:{},placeholder:{},persistentPlaceholder:{type:Boolean,default:!1},variant:{default:"solo-outlined"},clearable:{type:Boolean},persistentClear:{type:Boolean,default:!1},density:{default:"comfortable"},value:{},loading:{type:Boolean},loadingColor:{default:"primary"},hint:{},persistentHint:{type:Boolean,default:!1},counter:{type:[String,Number,Boolean],default:!1},persistentCounter:{type:Boolean,default:!1}},setup(t){const l=t;return(i,n)=>{const c=e.resolveComponent("v-progress-linear");return e.openBlock(),e.createBlock(e.unref(a.VTextField),{modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=d=>l.value=d),class:e.normalizeClass({"ferp-field--variant-solo-outlined":l.variant=="solo-outlined"}),variant:t.variant=="solo-outlined"?"solo":t.variant,label:t.label,clearable:t.clearable,"persistent-clear":t.persistentClear,placeholder:t.placeholder,density:t.density,loading:t.loading,hint:t.hint,"persistent-hint":t.persistentHint,"hide-details":"auto",counter:t.counter,"persistent-counter":t.persistentCounter},{loader:e.withCtx(()=>[e.createVNode(c,{active:t.loading,color:t.loadingColor,indeterminate:""},null,8,["active","color"])]),_:1},8,["modelValue","class","variant","label","clearable","persistent-clear","placeholder","density","loading","hint","persistent-hint","counter","persistent-counter"])}}}),_=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%238FFA93'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%2336BF00'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%2336BF00'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.1561%2027.2921C56.3644%2025.6857%2056.0705%2023.3817%2054.4998%2022.146C52.9291%2020.9104%2050.6763%2021.2109%2049.468%2022.8172L40.9522%2034.1395L35.7454%2028.6742C34.3624%2027.2227%2032.0908%2027.1924%2030.6715%2028.6068C29.2521%2030.0213%2029.2227%2032.3445%2030.6056%2033.7961L38.7018%2042.2942C39.428%2043.0565%2040.4421%2043.4588%2041.481%2043.3967C42.5199%2043.3347%2043.4813%2042.8143%2044.1158%2041.9708L55.1561%2027.2921Z'%20fill='%2336BF00'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.umd.js",document.baseURI).href).href,Z=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7198%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7198%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%23F6C5C3'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M33.5532%2023.3152C35.1153%2021.7531%2037.6484%2021.7531%2039.2105%2023.3152L43.5806%2027.6854L47.8228%2023.4432C49.3849%2021.8811%2051.9179%2021.8811%2053.48%2023.4432C55.0421%2025.0053%2055.0421%2027.5383%2053.48%2029.1004L49.2378%2033.3426L53.3521%2037.4568C54.9142%2039.0189%2054.9142%2041.552%2053.3521%2043.1141C51.79%2044.6762%2049.2569%2044.6762%2047.6948%2043.1141L43.5806%2038.9998L39.3384%2043.242C37.7763%2044.8041%2035.2433%2044.8041%2033.6812%2043.242C32.1191%2041.6799%2032.1191%2039.1469%2033.6812%2037.5848L37.9234%2033.3426L33.5532%2028.9725C31.9911%2027.4104%2031.9911%2024.8773%2033.5532%2023.3152Z'%20fill='%23FF5F57'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.umd.js",document.baseURI).href).href,U=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%238FBFFA'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%232859C5'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%232859C5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.6975%2020.2816C41.1824%2020.1984%2041.7439%2020.1437%2042.3817%2020.1437C43.0194%2020.1437%2043.5808%2020.1984%2044.0658%2020.2816C45.739%2020.5687%2046.5044%2022.2996%2046.3657%2023.9264C46.19%2025.9868%2045.9092%2028.949%2045.6016%2030.879C45.4284%2031.9666%2044.7293%2032.9311%2043.6097%2033.0728C43.2705%2033.1157%2042.8643%2033.1437%2042.3817%2033.1437C41.8989%2033.1437%2041.4928%2033.1157%2041.1536%2033.0728C40.034%2032.9311%2039.3349%2031.9666%2039.1616%2030.879C38.8541%2028.949%2038.5733%2025.9868%2038.3976%2023.9264C38.2589%2022.2996%2039.0242%2020.5687%2040.6975%2020.2816ZM38.6698%2040.1437C38.6698%2037.9346%2040.3318%2036.1437%2042.3818%2036.1437C44.4318%2036.1437%2046.0937%2037.9346%2046.0937%2040.1437C46.0937%2042.3528%2044.4318%2044.1437%2042.3818%2044.1437C40.3318%2044.1437%2038.6698%2042.3528%2038.6698%2040.1437Z'%20fill='%232859C5'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.umd.js",document.baseURI).href).href,I=new URL("data:image/svg+xml,%3csvg%20width='79'%20height='57'%20viewBox='0%200%2079%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3319%2029.9482C15.0605%2028.6492%2017.7147%2027.8568%2019.3983%2027.3964C21.0823%2026.936%2022.8144%2027.6992%2023.5291%2029.2804C24.1432%2030.6388%2025.0025%2032.7127%2026.0235%2035.6431C27.0445%2038.5736%2027.6599%2040.7325%2028.0229%2042.1784C28.4454%2043.8613%2027.5625%2045.5357%2025.9569%2046.2213C25.2608%2046.5186%2024.3829%2046.8803%2023.3077%2047.3007L24.0848%2049.531C24.4528%2050.5872%2023.3895%2051.5966%2022.3333%2051.1938L17.603%2049.3898C14.109%2050.597%2011.6002%2051.3443%209.98485%2051.786C8.3009%2052.2465%206.56868%2051.4832%205.85398%2049.9021C5.23996%2048.5437%204.38061%2046.4698%203.35963%2043.5393C2.33865%2040.6089%201.72327%2038.45%201.36026%2037.0041C0.937768%2035.3212%201.82067%2033.6468%203.42618%2032.9612C5.03131%2032.2757%207.60328%2031.2473%2011.3319%2029.9482Z'%20fill='%238FBFFA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1164%2034.0198C12.3299%2033.8963%2012.5846%2033.7746%2012.8852%2033.6681C13.1857%2033.5616%2013.4602%2033.4958%2013.7038%2033.4573C14.5444%2033.3245%2015.2182%2034.0804%2015.4471%2034.9341C15.737%2036.0154%2016.1406%2037.5747%2016.3448%2038.6114C16.4599%2039.1957%2016.3049%2039.8048%2015.8029%2040.0642C15.6508%2040.1427%2015.4644%2040.2248%2015.237%2040.3054C15.0094%2040.386%2014.813%2040.4396%2014.6453%2040.4743C14.092%2040.5889%2013.5881%2040.2132%2013.3097%2039.6869C12.8156%2038.7528%2012.1474%2037.2873%2011.6918%2036.2647C11.3322%2035.4573%2011.3797%2034.4458%2012.1164%2034.0198ZM14.7539%2044.4992C14.3543%2043.3713%2014.8136%2042.1794%2015.7797%2041.8371C16.7459%2041.4948%2017.8531%2042.1316%2018.2528%2043.2595C18.6524%2044.3874%2018.1931%2045.5793%2017.227%2045.9216C16.2608%2046.2639%2015.1536%2045.6271%2014.7539%2044.4992Z'%20fill='%232859C5'/%3e%3cpath%20d='M60.5213%208.14933C54.6244%205.46791%2050.4053%203.77879%2047.7223%202.77757C45.0386%201.77609%2042.078%202.79898%2040.6517%205.32261C39.4262%207.4908%2037.6832%2010.812%2035.5369%2015.5321C33.3905%2020.2522%2032.0333%2023.7489%2031.2049%2026.0976C30.2406%2028.8313%2031.4158%2031.7349%2033.9346%2033.099C35.0266%2033.6905%2036.406%2034.4146%2038.0991%2035.2637L36.4656%2038.8561C35.6919%2040.5574%2037.2701%2042.3825%2039.0653%2041.8627L47.1048%2039.5348C52.6322%2042.0308%2056.6205%2043.6246%2059.1947%2044.5853C61.8784%2045.5868%2064.839%2044.5639%2066.2654%2042.0403C67.4908%2039.8721%2069.2339%2036.5509%2071.3802%2031.8308C73.5265%2027.1107%2074.8837%2023.614%2075.7122%2021.2653C76.6764%2018.5315%2075.5012%2015.628%2072.9825%2014.2639C70.4644%2012.9%2066.4181%2010.8307%2060.5213%208.14933Z'%20fill='%238FBFFA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.5676%2013.2131C57.014%2013.3361%2057.5158%2013.5116%2058.0632%2013.7605C58.6106%2014.0094%2059.0726%2014.2722%2059.4588%2014.5277C60.791%2015.4095%2060.821%2017.0868%2060.1127%2018.3285C59.2156%2019.901%2057.9017%2022.1509%2056.9387%2023.5681C56.3961%2024.3668%2055.4467%2024.8622%2054.4344%2024.5381C54.1277%2024.4399%2053.769%2024.3037%2053.3547%2024.1153C52.9404%2023.9269%2052.6019%2023.746%2052.3263%2023.5795C51.4166%2023.0296%2051.1659%2021.9885%2051.4111%2021.0546C51.8462%2019.3973%2052.678%2016.9283%2053.2735%2015.2186C53.7437%2013.8686%2055.0274%2012.7887%2056.5676%2013.2131ZM47.6334%2028.2422C48.4335%2026.4826%2050.5086%2025.7047%2052.2682%2026.5049C54.0278%2027.305%2054.8056%2029.3801%2054.0055%2031.1397C53.2054%2032.8993%2051.1303%2033.6771%2049.3707%2032.877C47.6111%2032.0769%2046.8332%2030.0018%2047.6334%2028.2422Z'%20fill='%232859C5'/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.umd.js",document.baseURI).href).href,v=new URL("data:image/svg+xml,%3csvg%20width='94'%20height='62'%20viewBox='0%200%2094%2062'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7438%2055.0234C33.6159%2055.0234%2027.2571%2054.43%2023.4315%2053.9084C20.0088%2053.4418%2017.3694%2050.7843%2016.8785%2047.2809C16.3795%2043.7199%2015.8329%2038.0984%2015.8329%2030.559C15.8329%2023.0196%2016.3795%2017.3981%2016.8785%2013.8371C17.3694%2010.3337%2020.0088%207.67617%2023.4315%207.20956C27.2571%206.68803%2033.6159%206.09459%2042.7438%206.09459C51.8717%206.09459%2058.2304%206.68803%2062.0561%207.20956C65.4788%207.67617%2068.1182%2010.3337%2068.6092%2013.8371C69.1081%2017.3981%2069.6546%2023.0196%2069.6546%2030.559C69.6546%2038.0984%2069.1081%2043.7199%2068.6092%2047.2809C68.1182%2050.7843%2065.4788%2053.4418%2062.0561%2053.9084C58.2304%2054.43%2051.8717%2055.0234%2042.7438%2055.0234Z'%20fill='%23FEE089'/%3e%3cpath%20d='M54.1061%2015.9019C53.5036%2015.9019%2052.9735%2015.8852%2052.5078%2015.8572C49.7933%2015.6942%2048.2654%2013.4079%2048.1808%2011.065C48.1496%2010.198%2048.1259%209.14698%2048.1259%207.95093C48.1259%206.75486%2048.1496%205.70386%2048.1808%204.83681C48.2654%202.49395%2049.7933%200.20769%2052.5078%200.0445741C52.9735%200.0165869%2053.5036%200%2054.1061%200C54.7087%200%2055.2388%200.0165869%2055.7045%200.0445741C58.4189%200.20769%2059.9469%202.49395%2060.0314%204.83681C60.0626%205.70386%2060.0863%206.75486%2060.0863%207.95093C60.0863%209.14698%2060.0626%2010.198%2060.0314%2011.065C59.9469%2013.4079%2058.4189%2015.6942%2055.7045%2015.8572C55.2388%2015.8852%2054.7087%2015.9019%2054.1061%2015.9019Z'%20fill='%23D89C2B'/%3e%3cpath%20d='M31.3814%2015.9019C30.7789%2015.9019%2030.2488%2015.8852%2029.783%2015.8572C27.0686%2015.6942%2025.5407%2013.4079%2025.4562%2011.065C25.4249%2010.198%2025.4012%209.14698%2025.4012%207.95093C25.4012%206.75486%2025.4249%205.70386%2025.4562%204.83681C25.5407%202.49395%2027.0686%200.20769%2029.783%200.0445741C30.2488%200.0165869%2030.7789%200%2031.3814%200C31.984%200%2032.5141%200.0165869%2032.9798%200.0445741C35.6942%200.20769%2037.2222%202.49395%2037.3067%204.83681C37.3379%205.70386%2037.3616%206.75486%2037.3616%207.95093C37.3616%209.14698%2037.3379%2010.198%2037.3067%2011.065C37.2222%2013.4079%2035.6942%2015.6942%2032.9798%2015.8572C32.5141%2015.8852%2031.984%2015.9019%2031.3814%2015.9019Z'%20fill='%23D89C2B'/%3e%3cpath%20d='M2.89313%204.98774L3.34351%201.06671L6.00668%203.97224L9.92366%204.41022L7.02217%207.08579L6.58015%2010.9904L3.90862%208.10129L0%207.64686L2.89313%204.98774Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M2.49217%2023.7697L2.77227%2021.3312L4.42852%2023.1381L6.86454%2023.4105L5.06007%2025.0745L4.78517%2027.5028L3.12372%2025.706L0.692901%2025.4234L2.49217%2023.7697Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M81.8276%2044.2862L75.5984%2041.2362L81.9754%2038.5329L85.0024%2032.303L87.7287%2038.6806L93.9356%2041.707L87.581%2044.4339L84.5316%2050.6402L81.8276%2044.2862Z'%20fill='%23FFD12C'/%3e%3cpath%20d='M74.6832%2058.4285L72.5762%2056.5252L75.3907%2056.1812L77.285%2054.0715L77.6379%2056.8888L79.7387%2058.7803L76.9304%2059.136L75.0299%2061.234L74.6832%2058.4285Z'%20fill='%23FFD12C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.51%2022.1009C40.06%2019.4912%2043.8378%2019.4913%2045.3879%2022.1009L53.9494%2036.5169C55.5328%2039.1832%2053.611%2042.5598%2050.51%2042.5598H33.3879C30.2869%2042.5597%2028.3651%2039.1832%2029.9485%2036.5169L38.51%2022.1009ZM41.9494%2033.9768C40.9245%2033.9768%2040.0931%2034.9463%2040.093%2036.1429C40.093%2037.3395%2040.9244%2038.3098%2041.9494%2038.3098C42.9743%2038.3096%2043.8049%2037.3393%2043.8049%2036.1429C43.8048%2034.9465%2042.9742%2033.9771%2041.9494%2033.9768ZM41.9494%2025.3098C41.6305%2025.3098%2041.3491%2025.339%2041.1067%2025.3841C40.2702%2025.5397%2039.8879%2026.4776%2039.9572%2027.3587C40.0451%2028.4746%2040.1853%2030.0789%2040.3391%2031.1243C40.4257%2031.7134%2040.7754%2032.236%2041.3352%2032.3128C41.5047%2032.336%2041.7081%2032.3518%2041.9494%2032.3518C42.1904%2032.3518%2042.3933%2032.336%2042.5627%2032.3128C43.1225%2032.236%2043.4722%2031.7134%2043.5588%2031.1243C43.7126%2030.0789%2043.8528%2028.4746%2043.9406%2027.3587C44.01%2026.4775%2043.6278%2025.5396%2042.7912%2025.3841C42.5489%2025.339%2042.2681%2025.3099%2041.9494%2025.3098Z'%20fill='%23D89C2B'/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("f-erp-ui-package.umd.js",document.baseURI).href).href,z={class:"f-erp-popup-message-title"},A={key:0,class:"f-erp-popup-message-text"},x=e.defineComponent({__name:"FERPPopup",props:{visible:{type:Boolean},severity:{},title:{},content:{type:[Object,Function,String]},contentProps:{},options:{}},emits:["update:visible","close","submit"],setup(t,{emit:l}){const i=l,n=e.ref(!1),c=t,d=e.computed(()=>{switch(c.severity){case"normal":return{ImageSrc:I,CssClass:"f-erp-popup-message--v-severity-normal",Title:"Thông tin"};case"info":return{ImageSrc:U,CssClass:"f-erp-popup-message--v-severity-info",Title:"Thông báo"};case"success":return{ImageSrc:_,CssClass:"f-erp-popup-message--v-severity-success",Title:"Thành công"};case"warning":return{ImageSrc:v,CssClass:"f-erp-popup-message--v-severity-warning",Title:"Cảnh báo"};case"error":return{ImageSrc:Z,CssClass:"f-erp-popup-message--v-severity-error",Title:"Lỗi"}}});e.watch(()=>c.visible,f=>{n.value=f});const C=()=>{n.value=!1,i("update:visible",!1),i("close")},F=()=>{i("submit")},h=()=>{n.value==!1&&C()};return(f,s)=>(e.openBlock(),e.createBlock(e.unref(a.VDialog),{modelValue:n.value,"onUpdate:modelValue":[s[0]||(s[0]=m=>n.value=m),s[1]||(s[1]=m=>h())],"max-width":"var(--f-erp-max-width-small)",scrollable:!0},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCard),{elevation:"2",rounded:"lg",flat:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.VCardTitle),{class:"f-erp-card-title"},{default:e.withCtx(()=>[s[2]||(s[2]=e.createElementVNode("div",{class:"f-erp-card-title-content"},null,-1)),e.createVNode(u,{icon:"mdi-close",onClick:C,color:"surface",variant:"flat",size:"small",density:"compact"})]),_:1}),e.createVNode(e.unref(a.VDivider)),e.createVNode(e.unref(a.VCardText),{class:"pa-4"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"f-erp-popup-message-content":!0},d.value.CssClass])},[e.createElementVNode("span",z,e.toDisplayString(t.title?.length>0?t.title:d.value.Title),1),typeof c.content=="string"?(e.openBlock(),e.createElementBlock("span",A,e.toDisplayString(c.content),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.content),e.normalizeProps(e.mergeProps({key:1},t.contentProps)),null,16)),e.createVNode(e.unref(a.VImg),{"aspect-ratio":"1/1",cover:"",src:d.value.ImageSrc,width:"6rem"},null,8,["src"])],2)]),_:1}),e.createVNode(e.unref(a.VDivider)),t.options=="confrim"?(e.openBlock(),e.createBlock(e.unref(a.VCardActions),{key:0},{default:e.withCtx(()=>[e.createVNode(p,{text:"Xác nhận",onClick:F}),e.createVNode(p,{text:"Hủy",variant:"outlined",onClick:C})]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"]))}}),O=Object.freeze(Object.defineProperty({__proto__:null,FERPButton:p,FERPButtonIcon:u,FERPCard:L,FERPDialog:y,FERPPopup:x,FERPTextField:w},Symbol.toStringTag,{value:"Module"})),j={dark:!1,colors:{primary:"#0051B6","on-primary":"#FFFFFF",secondary:"#42CAF7","on-secondary":"#FFFFFF",tertiary:"#FF742E","on-tertiary":"#FFFFFF",danger:"#F44829","on-danger":"#FFFFFF",delay:"#FCBF3C","on-delay":"#FFFFFF",success:"#76DD30","on-success":"#FFFFFF",background:"#ECEFF1","on-background":"#263238",surface:"#FFFFFF","on-surface":"#263238"},variables:{"neutral-18":"#CFCFCF","gray-02":"#D5DEE9","success-darken-001":"#58BE23","success-light-001":"#A0EA60"}},q={dark:!0,colors:{primary:"#0051B6","on-primary":"#FFFFFF",secondary:"#42CAF7","on-secondary":"#FFFFFF",tertiary:"#FF742E","on-tertiary":"#FFFFFF",danger:"#F44829","on-danger":"#FFFFFF",delay:"#FCBF3C","on-delay":"#FFFFFF",success:"#76DD30","on-success":"#FFFFFF",background:"#263238","on-background":"#FFFFFF",surface:"#192124","on-surface":"#FFFFFF"},variables:{"neutral-18":"#CFCFCF","gray-02":"#D5DEE9","success-darken-001":"#58BE23","success-light-001":"#A0EA60"}},G={install(t){for(const[l,i]of Object.entries(O)){const n=i.default||i;t.component(l,n)}}};o.DarkTheme=q,o.FERPButton=p,o.FERPButtonIcon=u,o.FERPCard=L,o.FERPDialog=y,o.FERPPopup=x,o.FERPTextField=w,o.LightTheme=j,o.default=G,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap";:root{--f-erp-width: .390625vw;--f-erp-font-family: "Manrope", sans-serif;--f-erp-font-size: calc(9pt * var(--f-erp-width))}body,*{font-family:var(--f-erp-font-family)!important;font-size:var(--f-erp-font-size)}.f-erp-button{--v-btn-height: 2.6rem}.f-erp-button-loading{gap:.4em;display:flex;align-items:center}:root{--f-erp-max-width-extra-large: 90vw;--f-erp-max-width-large: 75vw;--f-erp-max-width-medium: 50vw;--f-erp-max-width-small: 25vw;--f-erp-max-width-extra-small: 20vw}.f-erp-card-title{display:flex;align-items:center;gap:.6em;padding:.4em .8em}.f-erp-card-title-prepend-icon{display:flex;border:1px solid rgb(var(--v-neutral-18));align-items:center;justify-content:center;border-radius:.4em;padding:.2em;font-size:1rem}.f-erp-card-title-content{display:flex;flex-direction:column;gap:.2em;flex:1 0 0}.f-erp-card-title-text{font-size:1rem;font-weight:700;line-height:1.1rem}.f-erp-card-sub-title-text{font-size:.825rem;font-weight:400}.ferp-field--variant-solo-outlined .v-input__control .v-field--variant-solo{border:.1em solid rgb(var(--v-gray-02));box-shadow:none;border-radius:.6em}.f-erp-popup-message-content{display:flex;flex-direction:column;gap:1em;justify-content:center;align-items:center}.f-erp-popup-message-title{font-size:1rem;font-weight:700;text-align:center}.f-erp-popup-message-text{font-weight:400;text-align:center;font-size:.875rem}.f-erp-popup-message--v-severity-normal .f-erp-popup-message-title{color:rgba(var(--v-theme-on-surface),.9)}.f-erp-popup-message--v-severity-info .f-erp-popup-message-title{color:rgba(var(--v-theme-info),1)}.f-erp-popup-message--v-severity-success .f-erp-popup-message-title{color:rgb(var(--v-success-darken-001))}.f-erp-popup-message--v-severity-error .f-erp-popup-message-title{color:rgba(var(--v-theme-error),1)}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Màu sắc
|
|
4
|
+
* @default 'primary'
|
|
5
|
+
*/
|
|
6
|
+
color?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Kiểu hiển thị
|
|
9
|
+
* elevated | flat | tonal | outlined | text | plain
|
|
10
|
+
* @default 'flat'
|
|
11
|
+
*/
|
|
12
|
+
variant?: "text" | "flat" | "elevated" | "outlined" | "plain" | "tonal";
|
|
13
|
+
/** Text hiển thị */
|
|
14
|
+
text?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Trạng thái loading
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Icon phía trước
|
|
22
|
+
*/
|
|
23
|
+
prependIcon?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Icon phía sau
|
|
26
|
+
*/
|
|
27
|
+
appendIcon?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Disabled
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
};
|
|
34
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
35
|
+
color: string;
|
|
36
|
+
variant: "text" | "flat" | "elevated" | "outlined" | "plain" | "tonal";
|
|
37
|
+
loading: boolean;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Icon
|
|
4
|
+
*/
|
|
5
|
+
icon: string;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
density?: 'default' | 'compact' | 'comfortable';
|
|
10
|
+
/**
|
|
11
|
+
* Kích thước
|
|
12
|
+
*/
|
|
13
|
+
size?: 'x-mall' | 'small' | 'large' | 'x-large';
|
|
14
|
+
/**
|
|
15
|
+
* Màu sắc
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Kiểu hiển thị
|
|
20
|
+
* elevated | flat | tonal | outlined | text | plain
|
|
21
|
+
* @default 'flat'
|
|
22
|
+
*/
|
|
23
|
+
variant?: "text" | "flat" | "elevated" | "outlined" | "plain" | "tonal";
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
|
+
variant: "text" | "flat" | "elevated" | "outlined" | "plain" | "tonal";
|
|
27
|
+
density: "default" | "compact" | "comfortable";
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
type DynamicComponent = DefineComponent<any, any, any> | string;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/**
|
|
5
|
+
* Icon phía trước
|
|
6
|
+
*/
|
|
7
|
+
prependIcon?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tiêu đề
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
subTitle?: DynamicComponent;
|
|
16
|
+
/**
|
|
17
|
+
* Nội dung của card (html, template,...)
|
|
18
|
+
*/
|
|
19
|
+
content: DynamicComponent;
|
|
20
|
+
/**
|
|
21
|
+
* Biến của content
|
|
22
|
+
*/
|
|
23
|
+
contentProps?: Record<string, any>;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
type DynamicComponent = DefineComponent<any, any, any> | string;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/**
|
|
5
|
+
* Icon
|
|
6
|
+
*/
|
|
7
|
+
icon?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tiêu đề
|
|
10
|
+
*/
|
|
11
|
+
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
subTitle?: DynamicComponent;
|
|
16
|
+
/**
|
|
17
|
+
* Nội dung của dialog (html, template,...)
|
|
18
|
+
*/
|
|
19
|
+
content: DynamicComponent;
|
|
20
|
+
/**
|
|
21
|
+
* Biến của content
|
|
22
|
+
*/
|
|
23
|
+
contentProps?: Record<string, any>;
|
|
24
|
+
/**
|
|
25
|
+
* Hiển thị dialog
|
|
26
|
+
*/
|
|
27
|
+
show?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Submit (Xác nhận): Hiển thị nút xác nhận
|
|
30
|
+
*/
|
|
31
|
+
submitVisible?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Submit: Tên nút xác nhận
|
|
34
|
+
* @default 'Cập nhật'
|
|
35
|
+
*/
|
|
36
|
+
submitText?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Submit: Tình trạng xử lý
|
|
39
|
+
*/
|
|
40
|
+
submitLoading?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Cancel: Hiển thị nút hủy thao tác
|
|
43
|
+
*/
|
|
44
|
+
cancelVisible?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Cancel: Hiển thị nút hủy thao tác - Icon
|
|
47
|
+
*/
|
|
48
|
+
cancelIconVisible?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Hiển thị toàn màn hình
|
|
51
|
+
*/
|
|
52
|
+
fullscreen?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Chiều rộng
|
|
55
|
+
*/
|
|
56
|
+
width?: string | number;
|
|
57
|
+
/**
|
|
58
|
+
* Chiều rộng tối đa
|
|
59
|
+
*/
|
|
60
|
+
maxwidth?: false | 'extra-large' | 'large' | 'medium' | 'small' | 'extra-small';
|
|
61
|
+
/**
|
|
62
|
+
* Cho phép click bên ngoài hộp thoại hoặc Esc để tắt
|
|
63
|
+
*/
|
|
64
|
+
persistent?: boolean;
|
|
65
|
+
};
|
|
66
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
|
+
"update:show": (...args: any[]) => void;
|
|
68
|
+
close: (...args: any[]) => void;
|
|
69
|
+
submit: (...args: any[]) => void;
|
|
70
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
71
|
+
"onUpdate:show"?: (...args: any[]) => any;
|
|
72
|
+
onClose?: (...args: any[]) => any;
|
|
73
|
+
onSubmit?: (...args: any[]) => any;
|
|
74
|
+
}>, {
|
|
75
|
+
show: boolean;
|
|
76
|
+
submitVisible: boolean;
|
|
77
|
+
submitText: string;
|
|
78
|
+
submitLoading: boolean;
|
|
79
|
+
cancelVisible: boolean;
|
|
80
|
+
cancelIconVisible: boolean;
|
|
81
|
+
fullscreen: boolean;
|
|
82
|
+
maxwidth: false | "extra-large" | "large" | "medium" | "small" | "extra-small";
|
|
83
|
+
persistent: boolean;
|
|
84
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
85
|
+
declare const _default: typeof __VLS_export;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
type DynamicComponent = DefineComponent<any, any, any> | string;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Mức độ
|
|
7
|
+
*/
|
|
8
|
+
severity?: 'normal' | 'info' | 'success' | 'warning' | 'error';
|
|
9
|
+
title?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Nội dung của dialog (text, template,...)
|
|
12
|
+
*/
|
|
13
|
+
content: DynamicComponent;
|
|
14
|
+
/**
|
|
15
|
+
* Biến của content
|
|
16
|
+
*/
|
|
17
|
+
contentProps?: Record<string, any>;
|
|
18
|
+
/**
|
|
19
|
+
* Loại hộp thoại
|
|
20
|
+
* 'message': thông báo | 'confrim': xác nhận
|
|
21
|
+
* @default 'message'
|
|
22
|
+
*/
|
|
23
|
+
options?: 'message' | 'confrim';
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
close: (...args: any[]) => void;
|
|
27
|
+
submit: (...args: any[]) => void;
|
|
28
|
+
"update:visible": (...args: any[]) => void;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onClose?: (...args: any[]) => any;
|
|
31
|
+
onSubmit?: (...args: any[]) => any;
|
|
32
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Tiêu đề
|
|
4
|
+
*/
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Văn bản tạm cho input
|
|
8
|
+
*/
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Bắt buộc hiển thị văn bản tạm cho input
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
persistentPlaceholder?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Kiểu hiển thị
|
|
17
|
+
* @default 'solo-outlined' (custom outlined)
|
|
18
|
+
*/
|
|
19
|
+
variant?: 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined' | 'solo-outlined';
|
|
20
|
+
/**
|
|
21
|
+
* Hiển thị nút xóa
|
|
22
|
+
*/
|
|
23
|
+
clearable?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Bắt buộc nút xóa luôn hiển thị
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
persistentClear?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* density
|
|
31
|
+
*/
|
|
32
|
+
density?: 'default' | 'comfortable' | 'compact';
|
|
33
|
+
/**
|
|
34
|
+
* Giá trị input
|
|
35
|
+
*/
|
|
36
|
+
value?: any;
|
|
37
|
+
/**
|
|
38
|
+
* Tình trạng loading
|
|
39
|
+
*/
|
|
40
|
+
loading?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Màu sắc loading
|
|
43
|
+
*/
|
|
44
|
+
loadingColor?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Gợi ý
|
|
47
|
+
*/
|
|
48
|
+
hint?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Bắt buộc luôn hiển thị gợi ý
|
|
51
|
+
*/
|
|
52
|
+
persistentHint?: boolean;
|
|
53
|
+
counter?: string | number | boolean;
|
|
54
|
+
persistentCounter?: boolean;
|
|
55
|
+
};
|
|
56
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
57
|
+
variant: "solo" | "filled" | "outlined" | "plain" | "underlined" | "solo-outlined";
|
|
58
|
+
density: "default" | "comfortable" | "compact";
|
|
59
|
+
persistentPlaceholder: boolean;
|
|
60
|
+
persistentClear: boolean;
|
|
61
|
+
loadingColor: string;
|
|
62
|
+
persistentHint: boolean;
|
|
63
|
+
counter: string | number | boolean;
|
|
64
|
+
persistentCounter: boolean;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component - Containment
|
|
3
|
+
*/
|
|
4
|
+
export { default as FERPButton } from './containment/FERPButton.vue';
|
|
5
|
+
export { default as FERPButtonIcon } from './containment/FERPButtonIcon.vue';
|
|
6
|
+
export { default as FERPCard } from './containment/FERPCard.vue';
|
|
7
|
+
export { default as FERPDialog } from './containment/FERPDialog.vue';
|
|
8
|
+
/**
|
|
9
|
+
* Component - From Inputs
|
|
10
|
+
*/
|
|
11
|
+
export { default as FERPTextField } from './forminputs/FERPTextField.vue';
|
|
12
|
+
/**
|
|
13
|
+
* Component - Feedback
|
|
14
|
+
*/
|
|
15
|
+
export { default as FERPPopup } from './feedback/FERPPopup.vue';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const DarkTheme: {
|
|
2
|
+
dark: boolean;
|
|
3
|
+
colors: {
|
|
4
|
+
primary: string;
|
|
5
|
+
'on-primary': string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
'on-secondary': string;
|
|
8
|
+
tertiary: string;
|
|
9
|
+
'on-tertiary': string;
|
|
10
|
+
danger: string;
|
|
11
|
+
'on-danger': string;
|
|
12
|
+
delay: string;
|
|
13
|
+
'on-delay': string;
|
|
14
|
+
success: string;
|
|
15
|
+
'on-success': string;
|
|
16
|
+
background: string;
|
|
17
|
+
'on-background': string;
|
|
18
|
+
surface: string;
|
|
19
|
+
'on-surface': string;
|
|
20
|
+
};
|
|
21
|
+
variables: {
|
|
22
|
+
'neutral-18': string;
|
|
23
|
+
'gray-02': string;
|
|
24
|
+
'success-darken-001': string;
|
|
25
|
+
'success-light-001': string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const LightTheme: {
|
|
2
|
+
dark: boolean;
|
|
3
|
+
colors: {
|
|
4
|
+
primary: string;
|
|
5
|
+
'on-primary': string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
'on-secondary': string;
|
|
8
|
+
tertiary: string;
|
|
9
|
+
'on-tertiary': string;
|
|
10
|
+
danger: string;
|
|
11
|
+
'on-danger': string;
|
|
12
|
+
delay: string;
|
|
13
|
+
'on-delay': string;
|
|
14
|
+
success: string;
|
|
15
|
+
'on-success': string;
|
|
16
|
+
background: string;
|
|
17
|
+
'on-background': string;
|
|
18
|
+
surface: string;
|
|
19
|
+
'on-surface': string;
|
|
20
|
+
};
|
|
21
|
+
variables: {
|
|
22
|
+
'neutral-18': string;
|
|
23
|
+
'gray-02': string;
|
|
24
|
+
'success-darken-001': string;
|
|
25
|
+
'success-light-001': string;
|
|
26
|
+
};
|
|
27
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tkbt-fox-erp-ui-package",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"main": "./dist/f-erp-ui-package.cjs.js",
|
|
5
|
+
"module": "./dist/f-erp-ui-package.es.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"style": "./dist/style.css",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/f-erp-ui-package.es.js",
|
|
12
|
+
"require": "./dist/f-erp-ui-package.cjs.js"
|
|
13
|
+
},
|
|
14
|
+
"./style.css": "./dist/style.css",
|
|
15
|
+
"./index.css": "./dist/index.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://git.fpt.net/isc/inside/trien-khai-bao-tri/tkbt-fox-erp-ui-package.git#v1.0.2"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [],
|
|
28
|
+
"author": "",
|
|
29
|
+
"license": "ISC",
|
|
30
|
+
"type": "commonjs",
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"vue": "^3.5.25",
|
|
33
|
+
"vuetify": "^3.7.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^24.10.1",
|
|
37
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
38
|
+
"sass": "^1.94.2",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vite": "^7.2.4",
|
|
41
|
+
"vite-plugin-dts": "^4.5.4",
|
|
42
|
+
"vue": "^3.5.25",
|
|
43
|
+
"vue-tsc": "^3.1.5"
|
|
44
|
+
}
|
|
45
|
+
}
|