@bizdoc/core 3.8.5 → 3.8.8
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/assets/themes/default.min.css +1 -1
- package/fesm2022/bizdoc-core.mjs +68 -26
- package/fesm2022/bizdoc-core.mjs.map +1 -1
- package/index.d.ts +24 -3
- package/package.json +1 -1
package/fesm2022/bizdoc-core.mjs
CHANGED
@@ -7917,20 +7917,22 @@ class MaterialModule {
|
|
7917
7917
|
{
|
7918
7918
|
provide: DateAdapter, useClass: DayJsDateAdapter,
|
7919
7919
|
deps: [MAT_DATE_LOCALE, Platform]
|
7920
|
-
}
|
7920
|
+
} /*,
|
7921
7921
|
{
|
7922
|
-
|
7923
|
-
|
7924
|
-
|
7925
|
-
|
7926
|
-
|
7927
|
-
|
7928
|
-
|
7929
|
-
|
7930
|
-
|
7931
|
-
|
7922
|
+
provide: MAT_DATE_FORMATS, useValue: {
|
7923
|
+
parse: {
|
7924
|
+
dateInput: 'LL',
|
7925
|
+
},
|
7926
|
+
display: {
|
7927
|
+
dateInput: 'DD/MM/YYYY',
|
7928
|
+
monthYearLabel: 'MMM YYYY',
|
7929
|
+
dateA11yLabel: 'LL',
|
7930
|
+
monthYearA11yLabel: 'MMMM YYYY',
|
7931
|
+
timeInput: 'HH:mm',
|
7932
|
+
timeOptionLabel: { hour: 'numeric', minute: 'numeric' },
|
7932
7933
|
}
|
7933
|
-
|
7934
|
+
}
|
7935
|
+
}*/
|
7934
7936
|
], imports: [CommonModule,
|
7935
7937
|
CdkScrollableModule,
|
7936
7938
|
OverlayModule, PortalModule,
|
@@ -7998,20 +8000,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImpor
|
|
7998
8000
|
{
|
7999
8001
|
provide: DateAdapter, useClass: DayJsDateAdapter,
|
8000
8002
|
deps: [MAT_DATE_LOCALE, Platform]
|
8001
|
-
}
|
8003
|
+
} /*,
|
8002
8004
|
{
|
8003
|
-
|
8004
|
-
|
8005
|
-
|
8006
|
-
|
8007
|
-
|
8008
|
-
|
8009
|
-
|
8010
|
-
|
8011
|
-
|
8012
|
-
|
8005
|
+
provide: MAT_DATE_FORMATS, useValue: {
|
8006
|
+
parse: {
|
8007
|
+
dateInput: 'LL',
|
8008
|
+
},
|
8009
|
+
display: {
|
8010
|
+
dateInput: 'DD/MM/YYYY',
|
8011
|
+
monthYearLabel: 'MMM YYYY',
|
8012
|
+
dateA11yLabel: 'LL',
|
8013
|
+
monthYearA11yLabel: 'MMMM YYYY',
|
8014
|
+
timeInput: 'HH:mm',
|
8015
|
+
timeOptionLabel: { hour: 'numeric', minute: 'numeric' },
|
8013
8016
|
}
|
8014
|
-
|
8017
|
+
}
|
8018
|
+
}*/
|
8015
8019
|
]
|
8016
8020
|
}]
|
8017
8021
|
}] });
|
@@ -31071,6 +31075,15 @@ const CONTROLS_COMPONENTS$1 = [SignatureField, AddressField, ChecklistField, Rad
|
|
31071
31075
|
/** common BizDoc components */
|
31072
31076
|
class SharedModule {
|
31073
31077
|
static forChild(config) {
|
31078
|
+
const { components, translations } = config || {};
|
31079
|
+
components && registerComponents(components);
|
31080
|
+
translations && TranslateService.set(translations);
|
31081
|
+
return {
|
31082
|
+
ngModule: SharedModule,
|
31083
|
+
providers: []
|
31084
|
+
};
|
31085
|
+
}
|
31086
|
+
static forRoot(config) {
|
31074
31087
|
const { components, formats, routingEngine } = config || {};
|
31075
31088
|
components && registerComponents(components);
|
31076
31089
|
const providers = [
|
@@ -31080,7 +31093,7 @@ class SharedModule {
|
|
31080
31093
|
},
|
31081
31094
|
materialFormatsProvider(formats)
|
31082
31095
|
];
|
31083
|
-
routingEngine &&
|
31096
|
+
routingEngine === 'ng' &&
|
31084
31097
|
providers.push({
|
31085
31098
|
provide: RouterImpl, useClass: NgRouter
|
31086
31099
|
});
|
@@ -31454,16 +31467,21 @@ registerComponents(CONTROLS_COMPONENTS$1);
|
|
31454
31467
|
/* Syncfusion 30.x */
|
31455
31468
|
registerLicense('Ngo9BigBOggjHTQxAR8/V1JEaF5cXmRCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdmWXhecXRdRmdYWUVyW0FWYEk=');
|
31456
31469
|
function materialFormatsProvider(formats) {
|
31470
|
+
const { date, time } = formats || {};
|
31457
31471
|
return {
|
31458
31472
|
provide: MAT_DATE_FORMATS, useValue: {
|
31459
31473
|
parse: {
|
31460
31474
|
dateInput: 'LL',
|
31475
|
+
timeInput: 'HH:mm',
|
31461
31476
|
},
|
31462
31477
|
display: {
|
31463
|
-
dateInput:
|
31478
|
+
dateInput: date || 'll',
|
31464
31479
|
monthYearLabel: 'MMM YYYY',
|
31465
31480
|
dateA11yLabel: 'LL',
|
31466
31481
|
monthYearA11yLabel: 'MMMM YYYY',
|
31482
|
+
monthLabel: 'MMM',
|
31483
|
+
timeInput: time || 'HH:mm',
|
31484
|
+
timeOptionLabel: 'HH:mm',
|
31467
31485
|
}
|
31468
31486
|
}
|
31469
31487
|
};
|
@@ -37704,6 +37722,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImpor
|
|
37704
37722
|
|
37705
37723
|
const DEFAULT_ROUTE = 'dashboard';
|
37706
37724
|
class BizDocModule {
|
37725
|
+
/**
|
37726
|
+
*
|
37727
|
+
* @param config
|
37728
|
+
* @returns
|
37729
|
+
*/
|
37730
|
+
static forChild(config) {
|
37731
|
+
const { components, routes } = config;
|
37732
|
+
components && registerComponents(components);
|
37733
|
+
if (routes) {
|
37734
|
+
if (isMobile())
|
37735
|
+
MOBILE_CONFIG.push(...routes);
|
37736
|
+
else
|
37737
|
+
PANES_CONFIG.push(...routes);
|
37738
|
+
}
|
37739
|
+
return {
|
37740
|
+
ngModule: BizDocModule,
|
37741
|
+
providers: []
|
37742
|
+
};
|
37743
|
+
}
|
37744
|
+
/**
|
37745
|
+
*
|
37746
|
+
* @param config
|
37747
|
+
* @returns
|
37748
|
+
*/
|
37707
37749
|
static forRoot(config) {
|
37708
37750
|
const { formats, routes, components, defaultRoute } = config;
|
37709
37751
|
components && registerComponents(components);
|