tnx-shared 5.1.245 → 5.1.246

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.
@@ -7,9 +7,8 @@
7
7
  "package-major-template": "npm run prebuild && npm run update-major-version-{{projectName}} && npm run build-{{projectName}} && cd ./dist/{{projectName}} && npm publish && cd ../..",
8
8
  "package-minor-template": "npm run prebuild && npm run update-minor-version-{{projectName}} && npm run build-{{projectName}} && cd ./dist/{{projectName}} && npm publish && cd ../..",
9
9
  "start-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng serve --project {{projectName}} --configuration={{environmentName}} --port={{port}} --open {{additionalParams}}",
10
- "format-template": "vim ./build-config/{{projectName}}/docker-entrypoint.sh -c 'set ff=unix' -c ':wq'",
11
10
  "deploy-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng build --project {{projectName}} --prod & docker build -f ./build-config/{{projectName}}/Dockerfile -t dockerhub.dttt.vn/{{scopeName}}/{{projectName}}.client:{{clientVersion}} . & docker push dockerhub.dttt.vn/{{scopeName}}/{{projectName}}.client:{{clientVersion}}",
12
- "prebuild-template": "npm run depend-all && npm install && npm run format",
11
+ "prebuild-template": "npm run depend-all && npm install",
13
12
  "depend-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateDepdendServiceToLatest --serviceName tnx-{{serviceName}} --env init",
14
13
  "ref-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js copyRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
15
14
  "ref-update-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
@@ -512,8 +512,6 @@ function transformPackageJson(angularSchema, angularSchemaTemplate, input) {
512
512
  input.scripts[`build-${project}-ci`] = angularSchemaTemplate.scripts['build-ci-template']
513
513
  .replaceAll('{{projectName}}', project)
514
514
  .replaceAll('{{nodeMaxOldSpaceSize}}', nodeMaxOldSpaceSize);
515
- input.scripts[`format`] = angularSchemaTemplate.scripts['format-template']
516
- .replaceAll('{{projectName}}', project);
517
515
  });
518
516
 
519
517
  // add reset all generation
@@ -640,12 +640,17 @@
640
640
  function Filter(init) {
641
641
  this.valueIsField = false;
642
642
  this.filters = [];
643
+ this.stringCompareOption = exports.StringOptionCompare.Normal;
643
644
  for (var key in init) {
644
645
  this[key] = init[key];
645
646
  }
646
647
  }
647
648
  return Filter;
648
- }());
649
+ }());
650
+ (function (StringOptionCompare) {
651
+ StringOptionCompare[StringOptionCompare["Normal"] = 0] = "Normal";
652
+ StringOptionCompare[StringOptionCompare["IgnoreCase"] = 1] = "IgnoreCase";
653
+ })(exports.StringOptionCompare || (exports.StringOptionCompare = {}));
649
654
 
650
655
  var TnUser = /** @class */ (function () {
651
656
  function TnUser() {
@@ -50122,14 +50127,21 @@
50122
50127
  evt.model.departmentIds = this.data.departmentIds;
50123
50128
  evt.model.groupIds = this.data.groupIds;
50124
50129
  // evt.model.roleIds = this.data.roleIds;
50125
- if (this.action && this.action.targetsAllowModify) {
50126
- if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.USER; })) {
50127
- evt.model.userIds_readOnly = evt.model.userIds.filter(function (q) { return _this.initValue.lstUserIdInWorkflow.some(function (x) { return x == q; }); });
50130
+ if (this.action) {
50131
+ if (this.action.targetsAllowModify) {
50132
+ if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.USER; })) {
50133
+ evt.model.userIds_readOnly = evt.model.userIds.filter(function (q) { return _this.initValue.lstUserIdInWorkflow.some(function (x) { return x == q; }); });
50134
+ }
50135
+ if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.DEPARTMENT; })) {
50136
+ evt.model.departmentIds_readOnly = evt.model.departmentIds.filter(function (q) { return _this.initValue.lstDonViIdInWorkflow.some(function (x) { return x == q; }); });
50137
+ }
50138
+ if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.GROUP; })) {
50139
+ evt.model.groupIds_readOnly = evt.model.groupIds.filter(function (q) { return _this.initValue.lstGroupIdInWorkflow.some(function (x) { return x == q; }); });
50140
+ }
50128
50141
  }
50129
- if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.DEPARTMENT; })) {
50142
+ else {
50143
+ evt.model.userIds_readOnly = evt.model.userIds.filter(function (q) { return _this.initValue.lstUserIdInWorkflow.some(function (x) { return x == q; }); });
50130
50144
  evt.model.departmentIds_readOnly = evt.model.departmentIds.filter(function (q) { return _this.initValue.lstDonViIdInWorkflow.some(function (x) { return x == q; }); });
50131
- }
50132
- if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.GROUP; })) {
50133
50145
  evt.model.groupIds_readOnly = evt.model.groupIds.filter(function (q) { return _this.initValue.lstGroupIdInWorkflow.some(function (x) { return x == q; }); });
50134
50146
  }
50135
50147
  }