tnx-shared 5.0.26 → 5.0.29
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/gulpfile.js
CHANGED
|
@@ -806,10 +806,17 @@ function getCurrentVersion(pkgObj, packageName, onGetVersion,) {
|
|
|
806
806
|
if (!bodyParsed.error) {
|
|
807
807
|
const bodyObj = bodyParsed.versions;
|
|
808
808
|
const pkgVersions = Object.keys(bodyObj).filter(x => x.startsWith(angularSchemaObj.clientVersion));
|
|
809
|
-
|
|
809
|
+
if (pkgVersions.length == 0) {
|
|
810
|
+
versionStr = `${angularSchemaObj.clientVersion}.0`;
|
|
811
|
+
console.log(`${packageName} duoc phat hanh lan dau, version se la ${versionStr}`);
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
versionStr = pkgVersions[pkgVersions.length - 1];
|
|
815
|
+
}
|
|
810
816
|
}
|
|
811
817
|
else {
|
|
812
|
-
versionStr =
|
|
818
|
+
versionStr = `${angularSchemaObj.clientVersion}.0`;
|
|
819
|
+
console.log(`Khong lay duoc thong tin package tren npm, package ${packageName} lay version mac dinh ${versionStr}`);
|
|
813
820
|
}
|
|
814
821
|
}
|
|
815
822
|
else {
|
|
@@ -43,7 +43,7 @@ export declare class PublicFunction {
|
|
|
43
43
|
static getSignalrConfig(environment: any): import("ng2-signalr").SignalRConfiguration;
|
|
44
44
|
static registerLocaleData(locale?: any, language?: any): void;
|
|
45
45
|
static importRootModule(environment: any): (typeof FormsModule | typeof BrowserModule | import("@angular/core").ModuleWithProviders<TranslateModule>)[];
|
|
46
|
-
static useRootProvider(enviromment: any): (typeof
|
|
46
|
+
static useRootProvider(enviromment: any): (typeof DatePipe | typeof DecimalPipe | typeof ConfirmationService | typeof MessageService | typeof TranslateService | typeof NotifierService | typeof EntityWorkflowHistoryService | typeof EntityWorkflowSettingService | typeof EntityPermissionService | typeof SafeHtmlPipe | typeof UserFormatPipe | typeof UsersFormatPipe | typeof HtmlFormatPipe | typeof MasterDataPipe | typeof OrganizationFormatPipe | typeof OrganizationsFormatPipe | {
|
|
47
47
|
provide: import("@angular/core").InjectionToken<import("@angular/common/http").HttpInterceptor[]>;
|
|
48
48
|
useClass: typeof SendAccessTokenInterceptor;
|
|
49
49
|
multi: boolean;
|
|
@@ -115,8 +115,8 @@ export declare class CrudFormComponent extends ComponentBase implements OnInit,
|
|
|
115
115
|
triggerChange(fieldPath: any): void;
|
|
116
116
|
ngAfterViewInit(): void;
|
|
117
117
|
setIsLoadedDataEdit(value: boolean): void;
|
|
118
|
-
getControlType(control: any): "custom" | "address" | "button" | "label" | "table" | "template" | "textarea" | "title" | "mask" | "switch" | "text" | "
|
|
119
|
-
getViewModeDataType(control: any): "user" | "address" | "html" | "label" | "table" | "title" | "mask" | "string" | "
|
|
118
|
+
getControlType(control: any): "custom" | "address" | "button" | "label" | "table" | "template" | "textarea" | "title" | "mask" | "switch" | "text" | "datetime" | "money" | "container" | "autocomplete-picker" | "entity-picker" | "spanControl" | "numberrange" | "phoneOrfax" | "datetimerange" | "dropdown" | "editor" | "common-picker" | "user-picker" | "organization-picker" | "cocautochuc-picker" | "cocautochuc" | "autocomplete" | "checkbox" | "checkboxlist" | "radiobuttonlist" | "fileUpload" | "serviceFileUpload" | "fileManager" | "colorPicker" | "colorControl" | "vanban" | "congviec";
|
|
119
|
+
getViewModeDataType(control: any): "user" | "address" | "html" | "label" | "table" | "title" | "mask" | "string" | "boolean" | "date" | "datetime" | "money" | "container" | "fileUpload" | "fileManager" | "colorPicker" | "colorControl" | "hasDataSource" | "fileServiceUpload" | "app-key-value";
|
|
120
120
|
validateForm(): Promise<boolean>;
|
|
121
121
|
private validateModel;
|
|
122
122
|
validateFormControl(fieldPath: any): Promise<boolean>;
|