tnx-shared 5.0.27 → 5.0.28
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/angular-schema-template.json +9 -2
- package/assets/docker/Dockerfile +1 -1
- package/assets/docker/docker-entrypoint.sh +22 -0
- package/assets/gulpfile.js +4 -10
- package/classes/public-function.d.ts +1 -1
- package/components/crud/crud-form/crud-form.component.d.ts +2 -2
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"depend-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateDepdendServiceToLatest --serviceName tnx-{{serviceName}} --env init",
|
|
13
13
|
"ref-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js copyRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
|
|
14
14
|
"ref-update-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
|
|
15
|
-
"build-ci-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng build --project {{projectName}} --prod
|
|
15
|
+
"build-ci-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng build --project {{projectName}} --prod",
|
|
16
16
|
"reset-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js reset --reset-flag true",
|
|
17
17
|
"start-quick-template": "node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng serve --project {{projectName}} --configuration={{environmentName}} --port={{port}} --open {{additionalParams}}",
|
|
18
18
|
"update-assets-tnx-shared-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateAssetsTnxshared --env init --isUpdateAssetsTnxshared true",
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
"input": "{{sharedDirectory}}/shared-assets",
|
|
47
47
|
"output": "./assets"
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"glob": "**/*",
|
|
51
|
+
"input": "node_modules/ngx-extended-pdf-viewer/assets/",
|
|
52
|
+
"output": "/assets/"
|
|
53
|
+
},
|
|
49
54
|
"projects/{{projectName}}/src/silent-refresh.html"
|
|
50
55
|
],
|
|
51
56
|
"styles": [
|
|
@@ -77,7 +82,9 @@
|
|
|
77
82
|
"{{sharedDirectory}}/shared-assets/vendor/tinymce/tinymce.min.js",
|
|
78
83
|
"node_modules/chart.js/dist/Chart.js",
|
|
79
84
|
"node_modules/jquery.tabbable/jquery.tabbable.min.js",
|
|
80
|
-
"node_modules/signalr/jquery.signalR.js"
|
|
85
|
+
"node_modules/signalr/jquery.signalR.js",
|
|
86
|
+
"../../commonworkspacev5/App/shared/shared-assets/vendor/vgcaservices/vgcaplugin.js",
|
|
87
|
+
"../../commonworkspacev5/App/shared/shared-assets/vendor/signatures/interact.min.js"
|
|
81
88
|
]
|
|
82
89
|
},
|
|
83
90
|
"configurations": {
|
package/assets/docker/Dockerfile
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
# Inject environment variables into NGINX configuration
|
|
5
|
+
# List all variables to be substituted to avoid clashing with
|
|
6
|
+
# NGINX own variables: https://serverfault.com/questions/577370
|
|
7
|
+
envsubst \
|
|
8
|
+
'${BASE_HREF}' \
|
|
9
|
+
</etc/nginx/nginx.conf.template \
|
|
10
|
+
>/etc/nginx/nginx.conf
|
|
11
|
+
cat /etc/nginx/nginx.conf
|
|
12
|
+
|
|
13
|
+
# Set correct HTML base tag, so static resources are fetched
|
|
14
|
+
# from the right path instead of the root path.
|
|
15
|
+
# NOTE: Trailing and leading slashes in base href are important!
|
|
16
|
+
# Using `~` separator to avoid problems with forward slashes
|
|
17
|
+
sed --in-place \
|
|
18
|
+
's~<base href="/">~<base href="'$BASE_HREF'/"><script type="text/javascript"> window.baseHref = "'$BASE_HREF'";</script>~' \
|
|
19
|
+
/usr/share/nginx/html/index.html
|
|
20
|
+
|
|
21
|
+
cat /usr/share/nginx/html/index.html
|
|
22
|
+
exec "$@"
|
package/assets/gulpfile.js
CHANGED
|
@@ -802,19 +802,13 @@ function getCurrentVersion(pkgObj, packageName, onGetVersion,) {
|
|
|
802
802
|
}, function (error, response, body) {
|
|
803
803
|
let versionStr;
|
|
804
804
|
if (body) {
|
|
805
|
-
const
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
const pkgVersions = Object.keys(bodyObj).filter(x => x.startsWith(angularSchemaObj.clientVersion));
|
|
809
|
-
versionStr = pkgVersions[pkgVersions.length - 1];
|
|
810
|
-
}
|
|
811
|
-
else {
|
|
812
|
-
versionStr = null;
|
|
813
|
-
}
|
|
805
|
+
const bodyObj = JSON.parse(body).versions;
|
|
806
|
+
const pkgVersions = Object.keys(bodyObj).filter(x => x.startsWith(angularSchemaObj.clientVersion));
|
|
807
|
+
versionStr = pkgVersions[pkgVersions.length - 1];
|
|
814
808
|
}
|
|
815
809
|
else {
|
|
816
810
|
console.warn('cannot get latest version, get from local instead', body);
|
|
817
|
-
versionStr =
|
|
811
|
+
versionStr = pkgObj.version;
|
|
818
812
|
}
|
|
819
813
|
|
|
820
814
|
if (versionStr) {
|
|
@@ -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 DecimalPipe | typeof DatePipe | 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" | "datetime" | "money" | "container" | "autocomplete-picker" | "entity-picker" | "spanControl" | "numberrange" | "phoneOrfax" | "datetimerange" | "
|
|
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" | "autocomplete" | "dropdown" | "datetime" | "money" | "container" | "autocomplete-picker" | "entity-picker" | "spanControl" | "numberrange" | "phoneOrfax" | "datetimerange" | "editor" | "common-picker" | "user-picker" | "organization-picker" | "cocautochuc-picker" | "cocautochuc" | "checkbox" | "checkboxlist" | "radiobuttonlist" | "fileUpload" | "serviceFileUpload" | "fileManager" | "colorPicker" | "colorControl" | "vanban" | "congviec";
|
|
119
|
+
getViewModeDataType(control: any): "user" | "address" | "html" | "label" | "table" | "title" | "mask" | "string" | "date" | "boolean" | "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>;
|