All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.components.VLocaleProvider.VLocaleProvider.mjs.map Maven / Gradle / Ivy

{"version":3,"file":"VLocaleProvider.mjs","names":["makeComponentProps","provideLocale","genericComponent","propsFactory","useRender","makeVLocaleProviderProps","locale","String","fallbackLocale","messages","Object","rtl","type","Boolean","default","undefined","VLocaleProvider","name","props","setup","_ref","slots","rtlClasses","_createVNode","value","class","style"],"sources":["../../../src/components/VLocaleProvider/VLocaleProvider.tsx"],"sourcesContent":["// Styles\nimport './VLocaleProvider.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { provideLocale } from '@/composables/locale'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVLocaleProviderProps = propsFactory({\n  locale: String,\n  fallbackLocale: String,\n  messages: Object,\n  rtl: {\n    type: Boolean,\n    default: undefined,\n  },\n\n  ...makeComponentProps(),\n}, 'VLocaleProvider')\n\nexport const VLocaleProvider = genericComponent()({\n  name: 'VLocaleProvider',\n\n  props: makeVLocaleProviderProps(),\n\n  setup (props, { slots }) {\n    const { rtlClasses } = provideLocale(props)\n\n    useRender(() => (\n      \n        { slots.default?.() }\n      
\n ))\n\n return {}\n },\n})\n\nexport type VLocaleProvider = InstanceType\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,aAAa,wCAEtB;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS;AAElD,OAAO,MAAMC,wBAAwB,GAAGF,YAAY,CAAC;EACnDG,MAAM,EAAEC,MAAM;EACdC,cAAc,EAAED,MAAM;EACtBE,QAAQ,EAAEC,MAAM;EAChBC,GAAG,EAAE;IACHC,IAAI,EAAEC,OAAO;IACbC,OAAO,EAAEC;EACX,CAAC;EAED,GAAGf,kBAAkB,CAAC;AACxB,CAAC,EAAE,iBAAiB,CAAC;AAErB,OAAO,MAAMgB,eAAe,GAAGd,gBAAgB,CAAC,CAAC,CAAC;EAChDe,IAAI,EAAE,iBAAiB;EAEvBC,KAAK,EAAEb,wBAAwB,CAAC,CAAC;EAEjCc,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,MAAM;MAAEE;IAAW,CAAC,GAAGrB,aAAa,CAACiB,KAAK,CAAC;IAE3Cd,SAAS,CAAC,MAAAmB,YAAA;MAAA,SAEC,CACL,mBAAmB,EACnBD,UAAU,CAACE,KAAK,EAChBN,KAAK,CAACO,KAAK,CACZ;MAAA,SACOP,KAAK,CAACQ;IAAK,IAEjBL,KAAK,CAACP,OAAO,GAAG,CAAC,EAEtB,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}



© 2015 - 2024 Weber Informatics LLC | Privacy Policy