tnx-shared 5.3.146 → 5.3.148

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.
@@ -41138,6 +41138,44 @@
41138
41138
  onSaveSetting: [{ type: i0.Output }]
41139
41139
  };
41140
41140
 
41141
+ var CommonLibComponent = /** @class */ (function () {
41142
+ function CommonLibComponent(_componentContextService) {
41143
+ var _this = this;
41144
+ this._componentContextService = _componentContextService;
41145
+ this.showRejectConfirm = true;
41146
+ this._componentContextService.subscribe(ComCtxConstants.ROOT.SHOW_REJECT_CONFIRM, function (data) {
41147
+ _this.showRejectConfirm = data;
41148
+ });
41149
+ }
41150
+ CommonLibComponent.prototype.ngOnInit = function () {
41151
+ };
41152
+ CommonLibComponent.prototype.focusTrap = function (event, direct) {
41153
+ event.preventDefault();
41154
+ if (direct) {
41155
+ this.okButton.nativeElement.focus();
41156
+ }
41157
+ else {
41158
+ this.cancelButton.nativeElement.focus();
41159
+ }
41160
+ };
41161
+ return CommonLibComponent;
41162
+ }());
41163
+ CommonLibComponent.decorators = [
41164
+ { type: i0.Component, args: [{
41165
+ selector: 'app-common-lib',
41166
+ template: "<div #commonapp></div>\n<p-confirmDialog #cd [closable]=\"false\">\n <p-footer>\n <button #okButton type=\"button\" pButton icon=\"pi pi-check\" class=\"p-button-rounded p-button-text\"\n [label]=\"cd.acceptButtonLabel\" (keydown.shift.tab)=\"focusTrap($event, false)\"\n (click)=\"cd.accept()\"></button>\n <button *ngIf=\"showRejectConfirm\" #cancelButton type=\"button\" pButton\n class=\"p-button-rounded p-button-text p-button-secondary\" icon=\"pi pi-times\" [label]=\"cd.rejectButtonLabel\"\n (keydown.tab)=\"focusTrap($event, true)\" (click)=\"cd.reject()\"></button>\n </p-footer>\n</p-confirmDialog>",
41167
+ providers: [ComponentContextService],
41168
+ styles: [""]
41169
+ },] }
41170
+ ];
41171
+ CommonLibComponent.ctorParameters = function () { return [
41172
+ { type: ComponentContextService }
41173
+ ]; };
41174
+ CommonLibComponent.propDecorators = {
41175
+ okButton: [{ type: i0.ViewChild, args: ['okButton',] }],
41176
+ cancelButton: [{ type: i0.ViewChild, args: ['cancelButton',] }]
41177
+ };
41178
+
41141
41179
  var PermissionConstant = /** @class */ (function () {
41142
41180
  function PermissionConstant() {
41143
41181
  }
@@ -65234,7 +65272,8 @@
65234
65272
  AppMenuComponent,
65235
65273
  AppSubMenuV2Component,
65236
65274
  AppMenuV2Component,
65237
- AppSubMenuComponent
65275
+ AppSubMenuComponent,
65276
+ CommonLibComponent
65238
65277
  ];
65239
65278
  }
65240
65279
  function coreModuleImport() {
@@ -65483,6 +65522,7 @@
65483
65522
  exports.CommonAppComponentComponent = CommonAppComponentComponent;
65484
65523
  exports.CommonDashboardComponent = CommonDashboardComponent;
65485
65524
  exports.CommonErrorCode = CommonErrorCode;
65525
+ exports.CommonLibComponent = CommonLibComponent;
65486
65526
  exports.CommonSearchFormComponent = CommonSearchFormComponent;
65487
65527
  exports.CommonService = CommonService;
65488
65528
  exports.CompareValidator = CompareValidator;