@colijnit/sharedcomponents 1.0.46 → 1.0.47

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.
@@ -1062,6 +1062,44 @@
1062
1062
  });
1063
1063
  });
1064
1064
  };
1065
+ SharedConnectorService.prototype.getScreenConfigTree = function () {
1066
+ return __awaiter(this, void 0, void 0, function () {
1067
+ var _this = this;
1068
+ return __generator(this, function (_a) {
1069
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1070
+ return _this.sharedConnector.getConfigTreeObject('T', 'JS').then(function (result) {
1071
+ if (result.validationResult && result.validationResult.success) {
1072
+ if (result.resultObjects) {
1073
+ resolve(result.resultObjects);
1074
+ }
1075
+ }
1076
+ else {
1077
+ reject(result.validationMessagesAsString);
1078
+ }
1079
+ });
1080
+ })];
1081
+ });
1082
+ });
1083
+ };
1084
+ SharedConnectorService.prototype.getScreenConfigSubRubric = function (parentRubricId, configId, fixedKey) {
1085
+ return __awaiter(this, void 0, void 0, function () {
1086
+ var _this = this;
1087
+ return __generator(this, function (_a) {
1088
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1089
+ return _this.sharedConnector.getConfigSubRubric(parentRubricId, configId, fixedKey).then(function (result) {
1090
+ if (result.validationResult && result.validationResult.success) {
1091
+ if (result.resultObjects) {
1092
+ resolve(result.resultObjects);
1093
+ }
1094
+ }
1095
+ else {
1096
+ reject(result.validationMessagesAsString);
1097
+ }
1098
+ });
1099
+ })];
1100
+ });
1101
+ });
1102
+ };
1065
1103
  // public async getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers> {
1066
1104
  // return new Promise((resolve: Function, reject: Function) => {
1067
1105
  // return this.sharedConnector.getPrintStockStickers(request).then((result: DataServiceResponseData) => {
@@ -2233,6 +2271,26 @@
2233
2271
  });
2234
2272
  });
2235
2273
  };
2274
+ SharedService.prototype.getScreenConfigTree = function () {
2275
+ return __awaiter(this, void 0, void 0, function () {
2276
+ return __generator(this, function (_a) {
2277
+ switch (_a.label) {
2278
+ case 0: return [4 /*yield*/, this.connector.getScreenConfigTree()];
2279
+ case 1: return [2 /*return*/, _a.sent()];
2280
+ }
2281
+ });
2282
+ });
2283
+ };
2284
+ SharedService.prototype.getScreenConfigSubRubric = function (parentRubricId, configId, fixedKey) {
2285
+ return __awaiter(this, void 0, void 0, function () {
2286
+ return __generator(this, function (_a) {
2287
+ switch (_a.label) {
2288
+ case 0: return [4 /*yield*/, this.connector.getScreenConfigSubRubric(parentRubricId, configId, fixedKey)];
2289
+ case 1: return [2 /*return*/, _a.sent()];
2290
+ }
2291
+ });
2292
+ });
2293
+ };
2236
2294
  return SharedService;
2237
2295
  }());
2238
2296
  SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
@@ -4084,7 +4142,9 @@
4084
4142
  return true;
4085
4143
  };
4086
4144
  KeyPadComponent.prototype.handleKeyDown = function (event) {
4087
- this._keyDown(event);
4145
+ if (document.activeElement instanceof HTMLBodyElement) {
4146
+ this._keyDown(event);
4147
+ }
4088
4148
  };
4089
4149
  Object.defineProperty(KeyPadComponent.prototype, "internalModel", {
4090
4150
  get: function () {
@@ -4184,7 +4244,7 @@
4184
4244
  KeyPadComponent.decorators = [
4185
4245
  { type: i0.Component, args: [{
4186
4246
  selector: 'co-key-pad',
4187
- template: "\n <div class=\"key-pad-wrapper\">\n <div class=\"key-pad-model-wrapper\" *ngIf=\"showValue\">\n <div class=\"key-pad-model\" [textContent]=\"internalModel\" [class.negative]=\"isNegative\"></div>\n </div>\n <div class=\"key-pad-button-wrapper\">\n <div class=\"key-pad-button button-7\" [textContent]=\"'7'\" (click)=\"handleButtonClick('7')\"></div>\n <div class=\"key-pad-button button-8\" [textContent]=\"'8'\" (click)=\"handleButtonClick('8')\"></div>\n <div class=\"key-pad-button button-9\" [textContent]=\"'9'\" (click)=\"handleButtonClick('9')\"></div>\n <div class=\"key-pad-button button-bs\" (click)=\"handleBsClick($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeleteLeftRegular)\"></co-icon>\n </div>\n <div class=\"key-pad-button button-4\" [textContent]=\"'4'\" (click)=\"handleButtonClick('4')\"></div>\n <div class=\"key-pad-button button-5\" [textContent]=\"'5'\" (click)=\"handleButtonClick('5')\"></div>\n <div class=\"key-pad-button button-6\" [textContent]=\"'6'\" (click)=\"handleButtonClick('6')\"></div>\n <div class=\"key-pad-button button-minus\" [textContent]=\"'-'\" (click)=\"handleMinusClick($event)\"></div>\n <div class=\"key-pad-button button-1\" [textContent]=\"'1'\" (click)=\"handleButtonClick('1')\"></div>\n <div class=\"key-pad-button button-2\" [textContent]=\"'2'\" (click)=\"handleButtonClick('2')\"></div>\n <div class=\"key-pad-button button-3\" [textContent]=\"'3'\" (click)=\"handleButtonClick('3')\"></div>\n <div class=\"key-pad-button button-enter\" (click)=\"handleEnterClick($event)\">\n <span [textContent]=\"'enter'\"></span>\n </div>\n <div class=\"key-pad-button button-0\" [textContent]=\"'0'\" (click)=\"handleButtonClick('0')\"></div>\n <div class=\"key-pad-button button-dot\" [textContent]=\"'.'\" (click)=\"handleButtonClick('.')\"></div>\n </div>\n </div>\n ",
4247
+ template: "\n <div class=\"key-pad-wrapper\">\n <div class=\"key-pad-model-wrapper\" *ngIf=\"showValue\">\n <co-responsive-text class=\"key-pad-model\" [text]=\"internalModel\" [class.negative]=\"isNegative\"></co-responsive-text>\n </div>\n <div class=\"key-pad-button-wrapper\">\n <div class=\"key-pad-button button-7\" (click)=\"handleButtonClick('7')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'7'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-8\" (click)=\"handleButtonClick('8')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'8'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-9\" (click)=\"handleButtonClick('9')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'9'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-bs\" (click)=\"handleBsClick($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeleteLeftRegular)\"></co-icon>\n </div>\n <div class=\"key-pad-button button-4\" (click)=\"handleButtonClick('4')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'4'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-5\" (click)=\"handleButtonClick('5')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'5'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-6\" (click)=\"handleButtonClick('6')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'6'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-minus\" (click)=\"handleMinusClick($event)\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'-'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-1\" (click)=\"handleButtonClick('1')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'1'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-2\" (click)=\"handleButtonClick('2')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'2'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-3\" (click)=\"handleButtonClick('3')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'3'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-enter\" (click)=\"handleEnterClick($event)\">\n <co-responsive-text class=\"key-pad-button-text\" [text]=\"'enter'\"></co-responsive-text>\n </div>\n <div class=\"key-pad-button button-0\" (click)=\"handleButtonClick('0')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'0'\"></co-responsive-text></div>\n <div class=\"key-pad-button button-dot\" (click)=\"handleButtonClick('.')\"><co-responsive-text class=\"key-pad-button-text\" [text]=\"'.'\"></co-responsive-text></div>\n </div>\n </div>\n ",
4188
4248
  encapsulation: i0.ViewEncapsulation.None
4189
4249
  },] }
4190
4250
  ];
@@ -4211,7 +4271,8 @@
4211
4271
  { type: i0.NgModule, args: [{
4212
4272
  imports: [
4213
4273
  common.CommonModule,
4214
- corecomponents_v12.IconModule
4274
+ corecomponents_v12.IconModule,
4275
+ corecomponents_v12.ResponsiveTextModule
4215
4276
  ],
4216
4277
  declarations: [
4217
4278
  KeyPadComponent