@bizdoc/core 3.8.5 → 3.8.7
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/fesm2022/bizdoc-core.mjs +34 -1
- package/fesm2022/bizdoc-core.mjs.map +1 -1
- package/index.d.ts +23 -3
- package/package.json +1 -1
package/fesm2022/bizdoc-core.mjs
CHANGED
@@ -31071,6 +31071,15 @@ const CONTROLS_COMPONENTS$1 = [SignatureField, AddressField, ChecklistField, Rad
|
|
31071
31071
|
/** common BizDoc components */
|
31072
31072
|
class SharedModule {
|
31073
31073
|
static forChild(config) {
|
31074
|
+
const { components, translations } = config || {};
|
31075
|
+
components && registerComponents(components);
|
31076
|
+
translations && TranslateService.set(translations);
|
31077
|
+
return {
|
31078
|
+
ngModule: SharedModule,
|
31079
|
+
providers: []
|
31080
|
+
};
|
31081
|
+
}
|
31082
|
+
static forRoot(config) {
|
31074
31083
|
const { components, formats, routingEngine } = config || {};
|
31075
31084
|
components && registerComponents(components);
|
31076
31085
|
const providers = [
|
@@ -31080,7 +31089,7 @@ class SharedModule {
|
|
31080
31089
|
},
|
31081
31090
|
materialFormatsProvider(formats)
|
31082
31091
|
];
|
31083
|
-
routingEngine &&
|
31092
|
+
routingEngine === 'ng' &&
|
31084
31093
|
providers.push({
|
31085
31094
|
provide: RouterImpl, useClass: NgRouter
|
31086
31095
|
});
|
@@ -37704,6 +37713,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImpor
|
|
37704
37713
|
|
37705
37714
|
const DEFAULT_ROUTE = 'dashboard';
|
37706
37715
|
class BizDocModule {
|
37716
|
+
/**
|
37717
|
+
*
|
37718
|
+
* @param config
|
37719
|
+
* @returns
|
37720
|
+
*/
|
37721
|
+
static forChild(config) {
|
37722
|
+
const { components, routes } = config;
|
37723
|
+
components && registerComponents(components);
|
37724
|
+
if (routes) {
|
37725
|
+
if (isMobile())
|
37726
|
+
MOBILE_CONFIG.push(...routes);
|
37727
|
+
else
|
37728
|
+
PANES_CONFIG.push(...routes);
|
37729
|
+
}
|
37730
|
+
return {
|
37731
|
+
ngModule: BizDocModule,
|
37732
|
+
providers: []
|
37733
|
+
};
|
37734
|
+
}
|
37735
|
+
/**
|
37736
|
+
*
|
37737
|
+
* @param config
|
37738
|
+
* @returns
|
37739
|
+
*/
|
37707
37740
|
static forRoot(config) {
|
37708
37741
|
const { formats, routes, components, defaultRoute } = config;
|
37709
37742
|
components && registerComponents(components);
|