zova-core 5.1.86 → 5.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bean/resource/locale/type.d.ts +1 -0
- package/dist/bean/resource/locale/type.d.ts.map +1 -1
- package/dist/core/component/locale.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/bean/resource/locale/type.ts +1 -0
- package/src/core/component/locale.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/bean/resource/locale/type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/bean/resource/locale/type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,aAAa,+BAA+B,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;CAC9E;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;CAC5F;AAED,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;KAChC,IAAI,IAAI,MAAM,CAAC,GAAG,aAAa;CACjC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AAErC,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/core/component/locale.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EAGd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAItD,QAAA,MAAM,mBAAmB,eAAgC,CAAC;AAC1D,QAAA,MAAM,eAAe,eAA4B,CAAC;AAElD,qBAAa,SAAU,SAAQ,UAAU;IACvC,OAAO,CAAC,CAAC,mBAAmB,CAAC,CAAkC;IAC/D,OAAO,CAAC,CAAC,eAAe,CAAC,CAAkC;IAE3D,IAAI,UAAU,oCAEb;IAED,IAAI,OAAO,IAAI,MAAM,aAAa,CASjC;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,aAAa,GAAG,EAAE,GAAG,SAAS,EAOtD;IAED,OAAO,CAAC,cAAc;IAItB,IAAI,EAAE,IAAI,MAAM,CASf;IAED,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAInB;
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/core/component/locale.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EAGd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAItD,QAAA,MAAM,mBAAmB,eAAgC,CAAC;AAC1D,QAAA,MAAM,eAAe,eAA4B,CAAC;AAElD,qBAAa,SAAU,SAAQ,UAAU;IACvC,OAAO,CAAC,CAAC,mBAAmB,CAAC,CAAkC;IAC/D,OAAO,CAAC,CAAC,eAAe,CAAC,CAAkC;IAE3D,IAAI,UAAU,oCAEb;IAED,IAAI,OAAO,IAAI,MAAM,aAAa,CASjC;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,aAAa,GAAG,EAAE,GAAG,SAAS,EAOtD;IAED,OAAO,CAAC,cAAc;IAItB,IAAI,EAAE,IAAI,MAAM,CASf;IAED,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAInB;IAsCM,OAAO,CAAC,CAAC,SAAS,MAAM,aAAa,EAC1C,oBAAoB,EAAE,OAAO,EAC7B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,MAAM,EAAE,CAAC,GAAG,SAAS,EACrB,GAAG,EAAE,MAAM,EACX,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,MAAM;CAiBV"}
|
package/dist/index.js
CHANGED
|
@@ -819,6 +819,7 @@ class BeanScopeLocale extends BeanSimple {
|
|
|
819
819
|
}
|
|
820
820
|
|
|
821
821
|
const LocaleModuleNameSeparator = '::';
|
|
822
|
+
const LocalePattern = '[a-z]{2}-[a-z]{2}|[a-z]{2}';
|
|
822
823
|
|
|
823
824
|
// const SymbolText = Symbol('SymbolText');
|
|
824
825
|
const SymbolLogger = Symbol('SymbolLogger');
|
|
@@ -2849,6 +2850,7 @@ class AppLocale extends BeanSimple {
|
|
|
2849
2850
|
|
|
2850
2851
|
/** @internal */
|
|
2851
2852
|
createLocaleText(moduleScope) {
|
|
2853
|
+
// eslint-disable-next-line
|
|
2852
2854
|
const self = this;
|
|
2853
2855
|
const getText = function (text, ...args) {
|
|
2854
2856
|
return self.getText(false, moduleScope, undefined, text, ...args);
|
|
@@ -2861,6 +2863,7 @@ class AppLocale extends BeanSimple {
|
|
|
2861
2863
|
|
|
2862
2864
|
/** @internal */
|
|
2863
2865
|
createScopeLocaleText(moduleScope, text) {
|
|
2866
|
+
// eslint-disable-next-line
|
|
2864
2867
|
const self = this;
|
|
2865
2868
|
const getText = function (...args) {
|
|
2866
2869
|
return self.getText(false, moduleScope, undefined, text, ...args);
|
|
@@ -4434,5 +4437,5 @@ function $protocolKey(key) {
|
|
|
4434
4437
|
return key;
|
|
4435
4438
|
}
|
|
4436
4439
|
|
|
4437
|
-
export { $getBeanName, $protocolKey, AppError, AppLocale, AppMeta, AppMetadata, AppModule, AppResource, BeanAopBase, BeanAopMethodBase, BeanBase, BeanBaseSimple, BeanContainer, BeanControllerBase, BeanControllerIdentifier, BeanControllerLike, BeanControllerPageBase, BeanInfo, BeanRenderBase, BeanRenderIdentifier, BeanRenderLike, BeanScopeBase, BeanScopeError, BeanScopeLocale, BeanScopeUtil, BeanSimple, BeanStyleBase, BeanStyleIdentifier, ClientOnly, CtxComponent, CtxMeta, CtxState, CtxUtil, DecoratorBeanFullName, ErrorClass, LocaleModuleNameSeparator, MixinClass, OmitClass, PartialClass, PickClass, PluginBean, PluginZova, Preload, ProxyDisable, StateLock, SymbolBeanContainerInstances, SymbolBeanFullName, SymbolBeanInstanceKey, SymbolController, SymbolControllerRefDisable, SymbolDecoratorBeanInfo, SymbolDecoratorPreload, SymbolDecoratorProxyDisable, SymbolDecoratorUse, SymbolDecoratorVirtual, SymbolDecoratorVueElements, SymbolErrorInstanceInfo, SymbolInited, SymbolInstalled, SymbolMappedClassMetadataKeys, SymbolModuleBelong, SymbolModuleName, SysComponent, SysError, SysLocale, SysLogger, SysMeta, SysModule, SysUtil, Use, UseScope, Virtual, ZovaApplication, ZovaContext, ZovaSys, __prepareInjectSelectorInfo, appMetadata, appResource, beanFullNameFromOnionName, bootstrap, cast, configDefault, constantDefault, convertToUnit, copyMetadataOfClasses, copyProperties, copyPropertiesOfClasses, createBeanDecorator, createVueDecorator, createZovaComponentAsync, createZovaComponentPage, deepEqual, deepExtend, disposeInstance, errorsInternal, formatLoggerConsole, formatLoggerFilter, functionNoop, getLoggerFilterLevel, getMappedClassMetadataKeys, isHttpUrl, isUuid, localeDefault, modelGet, modelSet, objectAssignReactive, onionNameFromBeanFullName, polyfillDispose, prepareComponentOptions, registerMappedClassMetadataKey, setLoggerFilterLevel, ssr_load_local, sys, throwErrorComponentUnmounted, useApp, useComputed, useContext, useController, useControllerPage, usePrepareArg, usePrepareArgs, uuid };
|
|
4440
|
+
export { $getBeanName, $protocolKey, AppError, AppLocale, AppMeta, AppMetadata, AppModule, AppResource, BeanAopBase, BeanAopMethodBase, BeanBase, BeanBaseSimple, BeanContainer, BeanControllerBase, BeanControllerIdentifier, BeanControllerLike, BeanControllerPageBase, BeanInfo, BeanRenderBase, BeanRenderIdentifier, BeanRenderLike, BeanScopeBase, BeanScopeError, BeanScopeLocale, BeanScopeUtil, BeanSimple, BeanStyleBase, BeanStyleIdentifier, ClientOnly, CtxComponent, CtxMeta, CtxState, CtxUtil, DecoratorBeanFullName, ErrorClass, LocaleModuleNameSeparator, LocalePattern, MixinClass, OmitClass, PartialClass, PickClass, PluginBean, PluginZova, Preload, ProxyDisable, StateLock, SymbolBeanContainerInstances, SymbolBeanFullName, SymbolBeanInstanceKey, SymbolController, SymbolControllerRefDisable, SymbolDecoratorBeanInfo, SymbolDecoratorPreload, SymbolDecoratorProxyDisable, SymbolDecoratorUse, SymbolDecoratorVirtual, SymbolDecoratorVueElements, SymbolErrorInstanceInfo, SymbolInited, SymbolInstalled, SymbolMappedClassMetadataKeys, SymbolModuleBelong, SymbolModuleName, SysComponent, SysError, SysLocale, SysLogger, SysMeta, SysModule, SysUtil, Use, UseScope, Virtual, ZovaApplication, ZovaContext, ZovaSys, __prepareInjectSelectorInfo, appMetadata, appResource, beanFullNameFromOnionName, bootstrap, cast, configDefault, constantDefault, convertToUnit, copyMetadataOfClasses, copyProperties, copyPropertiesOfClasses, createBeanDecorator, createVueDecorator, createZovaComponentAsync, createZovaComponentPage, deepEqual, deepExtend, disposeInstance, errorsInternal, formatLoggerConsole, formatLoggerFilter, functionNoop, getLoggerFilterLevel, getMappedClassMetadataKeys, isHttpUrl, isUuid, localeDefault, modelGet, modelSet, objectAssignReactive, onionNameFromBeanFullName, polyfillDispose, prepareComponentOptions, registerMappedClassMetadataKey, setLoggerFilterLevel, ssr_load_local, sys, throwErrorComponentUnmounted, useApp, useComputed, useContext, useController, useControllerPage, usePrepareArg, usePrepareArgs, uuid };
|
|
4438
4441
|
//# sourceMappingURL=index.js.map
|