tnx-shared 5.0.24 → 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.
Files changed (32) hide show
  1. package/assets/angular-schema-template.json +9 -2
  2. package/assets/docker/Dockerfile +1 -1
  3. package/assets/docker/docker-entrypoint.sh +22 -0
  4. package/assets/gulpfile.js +4 -10
  5. package/bundles/tnx-shared.umd.js +79 -355
  6. package/bundles/tnx-shared.umd.js.map +1 -1
  7. package/bundles/tnx-shared.umd.min.js +1 -1
  8. package/bundles/tnx-shared.umd.min.js.map +1 -1
  9. package/classes/base/data-form-base.d.ts.map +1 -1
  10. package/classes/base/data-list-base.d.ts +1 -0
  11. package/classes/base/data-list-base.d.ts.map +1 -1
  12. package/classes/form-schema.d.ts +0 -3
  13. package/classes/form-schema.d.ts.map +1 -1
  14. package/components/crud/crud-list/crud-list.component.d.ts +0 -10
  15. package/components/crud/crud-list/crud-list.component.d.ts.map +1 -1
  16. package/components/tn-app-notification/tn-app-notification.component.d.ts +2 -2
  17. package/components/tn-app-notification/tn-app-notification.component.d.ts.map +1 -1
  18. package/components/workflow/services/entity-workflow-setting.service.d.ts.map +1 -1
  19. package/esm2015/classes/base/data-form-base.js +2 -30
  20. package/esm2015/classes/base/data-list-base.js +6 -60
  21. package/esm2015/classes/form-schema.js +1 -3
  22. package/esm2015/components/crud/crud-list/crud-list.component.js +11 -160
  23. package/esm2015/components/tn-app-notification/tn-app-notification.component.js +2 -2
  24. package/esm2015/components/workflow/services/entity-workflow-history.service.js +4 -4
  25. package/esm2015/components/workflow/services/entity-workflow-setting.service.js +15 -10
  26. package/esm2015/tnx-shared.module.js +3 -1
  27. package/fesm2015/tnx-shared.js +71 -293
  28. package/fesm2015/tnx-shared.js.map +1 -1
  29. package/package.json +2 -2
  30. package/tnx-shared.metadata.json +1 -1
  31. package/tnx-shared.module.d.ts.map +1 -1
  32. package/tnx-shared.module.ngfactory.d.ts.map +1 -1
@@ -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 --base-href /{{projectName}}/",
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": {
@@ -3,5 +3,5 @@ FROM euniversitytnapi/tn.clientbase.angular
3
3
  RUN rm -rf /usr/share/nginx/html/*
4
4
  COPY ./dist/build /usr/share/nginx/html
5
5
 
6
-
6
+ ENTRYPOINT ["/docker-entrypoint.sh"]
7
7
  CMD ["nginx", "-g", "daemon off;"]
@@ -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 "$@"
@@ -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 bodyParsed = JSON.parse(body);
806
- if (!bodyParsed.error) {
807
- const bodyObj = bodyParsed.versions;
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 = null;
811
+ versionStr = pkgObj.version;
818
812
  }
819
813
 
820
814
  if (versionStr) {