@tiba-spark/client-shared-lib 10.3.0-259 → 10.3.0-269

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/esm2022/libraries/components/field-label/field-label.component.mjs +17 -18
  2. package/esm2022/libraries/constants/keys-constants.mjs +3 -1
  3. package/esm2022/libraries/enums/localization.enum.mjs +9 -3
  4. package/esm2022/libraries/service-proxy/cloud-service-proxies.mjs +82 -3
  5. package/esm2022/libraries/service-proxy/edge-service-proxies.mjs +41 -1
  6. package/esm2022/libraries/utils/custom-validator.util.mjs +1 -1
  7. package/esm2022/libraries/utils/helper.util.mjs +2 -2
  8. package/esm2022/libraries/utils/ngxs/action-status-changed.interface.mjs +9 -0
  9. package/esm2022/libraries/utils/ngxs/action-status.service.mjs +2 -2
  10. package/esm2022/libraries/utils/ngxs/action-status.util.mjs +1 -9
  11. package/esm2022/libraries/utils/permission-type-mapper.util.mjs +1 -1
  12. package/fesm2022/tiba-spark-client-shared-lib.mjs +191 -62
  13. package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
  14. package/libraries/components/field-label/field-label.component.d.ts +5 -5
  15. package/libraries/components/field-label/field-label.component.d.ts.map +1 -1
  16. package/libraries/constants/keys-constants.d.ts +2 -0
  17. package/libraries/constants/keys-constants.d.ts.map +1 -1
  18. package/libraries/enums/localization.enum.d.ts +8 -2
  19. package/libraries/enums/localization.enum.d.ts.map +1 -1
  20. package/libraries/service-proxy/cloud-service-proxies.d.ts +39 -2
  21. package/libraries/service-proxy/cloud-service-proxies.d.ts.map +1 -1
  22. package/libraries/service-proxy/edge-service-proxies.d.ts +18 -0
  23. package/libraries/service-proxy/edge-service-proxies.d.ts.map +1 -1
  24. package/libraries/utils/helper.util.d.ts +1 -1
  25. package/libraries/utils/helper.util.d.ts.map +1 -1
  26. package/libraries/utils/ngxs/action-status-changed.interface.d.ts +10 -0
  27. package/libraries/utils/ngxs/action-status-changed.interface.d.ts.map +1 -0
  28. package/libraries/utils/ngxs/action-status.util.d.ts +0 -7
  29. package/libraries/utils/ngxs/action-status.util.d.ts.map +1 -1
  30. package/libraries/utils/permission-type-mapper.util.d.ts +1 -1
  31. package/libraries/utils/permission-type-mapper.util.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -6,7 +6,7 @@ import * as i1 from '@angular/forms';
6
6
  import { Validators } from '@angular/forms';
7
7
  import * as i1$1 from '@ngxs/store';
8
8
  import { ofActionDispatched, ofActionCompleted, ofActionErrored, Action, Selector, State, NgxsModule } from '@ngxs/store';
9
- import { from, of, noop, Subject, throwError, Observable, delay, debounceTime, switchMap, map as map$1, Subscription } from 'rxjs';
9
+ import { from, of, noop, Subject, throwError, Observable, delay, debounceTime, switchMap, map as map$1, Subscription, BehaviorSubject } from 'rxjs';
10
10
  import { map, combineLatestAll, shareReplay, mergeMap, mergeAll, scan, first, takeUntil, catchError, tap, distinctUntilChanged } from 'rxjs/operators';
11
11
  import * as _ from 'lodash';
12
12
  import { cloneDeep } from 'lodash';
@@ -242,23 +242,6 @@ class ActionStatusChanged {
242
242
  this.error = error;
243
243
  }
244
244
  }
245
- function ofStatus(action, status) {
246
- const type = action.type;
247
- ActionStatusService.actionTypes.get(status).add(type);
248
- return { type: `${type}.${status}` };
249
- }
250
- function dispatched(action) {
251
- return ofStatus(action, "DISPATCHED" /* ActionStatus.Dispatched */);
252
- }
253
- function canceled(action) {
254
- return ofStatus(action, "CANCELED" /* ActionStatus.Canceled */);
255
- }
256
- function errored(action) {
257
- return ofStatus(action, "ERRORED" /* ActionStatus.Errored */);
258
- }
259
- function successful(action) {
260
- return ofStatus(action, "SUCCESSFUL" /* ActionStatus.Successful */);
261
- }
262
245
 
263
246
  class ActionStatusService {
264
247
  static { this.pendingTracking = []; }
@@ -337,6 +320,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
337
320
  args: [{ providedIn: 'root' }]
338
321
  }], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: i1$1.Store }]; } });
339
322
 
323
+ function ofStatus(action, status) {
324
+ const type = action.type;
325
+ ActionStatusService.actionTypes.get(status).add(type);
326
+ return { type: `${type}.${status}` };
327
+ }
328
+ function dispatched(action) {
329
+ return ofStatus(action, "DISPATCHED" /* ActionStatus.Dispatched */);
330
+ }
331
+ function canceled(action) {
332
+ return ofStatus(action, "CANCELED" /* ActionStatus.Canceled */);
333
+ }
334
+ function errored(action) {
335
+ return ofStatus(action, "ERRORED" /* ActionStatus.Errored */);
336
+ }
337
+ function successful(action) {
338
+ return ofStatus(action, "SUCCESSFUL" /* ActionStatus.Successful */);
339
+ }
340
+
340
341
  function HasActionErrored(actions) {
341
342
  return (target, propertyKey) => {
342
343
  // set property value on ngOnInit
@@ -1701,7 +1702,7 @@ let ConfigurationServiceProxy$1 = class ConfigurationServiceProxy {
1701
1702
  return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
1702
1703
  let result200 = null;
1703
1704
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1704
- result200 = ObjectHttpResponseData$1.fromJS(resultData200);
1705
+ result200 = VersionsDtoHttpResponseData.fromJS(resultData200);
1705
1706
  return of(result200);
1706
1707
  }));
1707
1708
  }
@@ -4847,7 +4848,7 @@ class ThirdPartyServiceProxy {
4847
4848
  * @return Success
4848
4849
  */
4849
4850
  me() {
4850
- let url_ = this.baseUrl + "/api/services/thirdparty";
4851
+ let url_ = this.baseUrl + "/api/services/thirdparty/me";
4851
4852
  url_ = url_.replace(/[?&]$/, "");
4852
4853
  let options_ = {
4853
4854
  observe: "response",
@@ -10121,6 +10122,7 @@ var RemoteCommandTypes$1;
10121
10122
  RemoteCommandTypes[RemoteCommandTypes["PaymentForISF"] = 44] = "PaymentForISF";
10122
10123
  RemoteCommandTypes[RemoteCommandTypes["DeleteTicket"] = 45] = "DeleteTicket";
10123
10124
  RemoteCommandTypes[RemoteCommandTypes["ClosePaymentScreen"] = 46] = "ClosePaymentScreen";
10125
+ RemoteCommandTypes[RemoteCommandTypes["UpdateAllValidation"] = 47] = "UpdateAllValidation";
10124
10126
  RemoteCommandTypes[RemoteCommandTypes["GetTicketFee"] = 1000] = "GetTicketFee";
10125
10127
  RemoteCommandTypes[RemoteCommandTypes["UpdateTicketPayment"] = 1001] = "UpdateTicketPayment";
10126
10128
  })(RemoteCommandTypes$1 || (RemoteCommandTypes$1 = {}));
@@ -13409,6 +13411,84 @@ class Verify2FactorAuthResponsetDtoHttpResponseData {
13409
13411
  return result;
13410
13412
  }
13411
13413
  }
13414
+ class VersionsDto {
13415
+ constructor(data) {
13416
+ if (data) {
13417
+ for (var property in data) {
13418
+ if (data.hasOwnProperty(property))
13419
+ this[property] = data[property];
13420
+ }
13421
+ }
13422
+ }
13423
+ init(_data) {
13424
+ if (_data) {
13425
+ this.enabled = _data["enabled"];
13426
+ this.isMaintenanceMode = _data["isMaintenanceMode"];
13427
+ this.forceUpdate = _data["forceUpdate"];
13428
+ this.version = _data["version"];
13429
+ }
13430
+ }
13431
+ static fromJS(data) {
13432
+ data = typeof data === 'object' ? data : {};
13433
+ let result = new VersionsDto();
13434
+ result.init(data);
13435
+ return result;
13436
+ }
13437
+ toJSON(data) {
13438
+ data = typeof data === 'object' ? data : {};
13439
+ data["enabled"] = this.enabled;
13440
+ data["isMaintenanceMode"] = this.isMaintenanceMode;
13441
+ data["forceUpdate"] = this.forceUpdate;
13442
+ data["version"] = this.version;
13443
+ return data;
13444
+ }
13445
+ clone() {
13446
+ const json = this.toJSON();
13447
+ let result = new VersionsDto();
13448
+ result.init(json);
13449
+ return result;
13450
+ }
13451
+ }
13452
+ class VersionsDtoHttpResponseData {
13453
+ constructor(data) {
13454
+ if (data) {
13455
+ for (var property in data) {
13456
+ if (data.hasOwnProperty(property))
13457
+ this[property] = data[property];
13458
+ }
13459
+ }
13460
+ }
13461
+ init(_data) {
13462
+ if (_data) {
13463
+ this.errorMessage = _data["errorMessage"];
13464
+ this.isSuccess = _data["isSuccess"];
13465
+ this.statusCode = _data["statusCode"];
13466
+ this.data = _data["data"] ? VersionsDto.fromJS(_data["data"]) : undefined;
13467
+ this.successMessage = _data["successMessage"];
13468
+ }
13469
+ }
13470
+ static fromJS(data) {
13471
+ data = typeof data === 'object' ? data : {};
13472
+ let result = new VersionsDtoHttpResponseData();
13473
+ result.init(data);
13474
+ return result;
13475
+ }
13476
+ toJSON(data) {
13477
+ data = typeof data === 'object' ? data : {};
13478
+ data["errorMessage"] = this.errorMessage;
13479
+ data["isSuccess"] = this.isSuccess;
13480
+ data["statusCode"] = this.statusCode;
13481
+ data["data"] = this.data ? this.data.toJSON() : undefined;
13482
+ data["successMessage"] = this.successMessage;
13483
+ return data;
13484
+ }
13485
+ clone() {
13486
+ const json = this.toJSON();
13487
+ let result = new VersionsDtoHttpResponseData();
13488
+ result.init(json);
13489
+ return result;
13490
+ }
13491
+ }
13412
13492
  class WhatsNewDto {
13413
13493
  constructor(data) {
13414
13494
  if (data) {
@@ -13726,6 +13806,8 @@ var cloudServiceProxies = /*#__PURE__*/Object.freeze({
13726
13806
  Verify2FactorAuthRequestDto: Verify2FactorAuthRequestDto,
13727
13807
  Verify2FactorAuthResponsetDto: Verify2FactorAuthResponsetDto,
13728
13808
  Verify2FactorAuthResponsetDtoHttpResponseData: Verify2FactorAuthResponsetDtoHttpResponseData,
13809
+ VersionsDto: VersionsDto,
13810
+ VersionsDtoHttpResponseData: VersionsDtoHttpResponseData,
13729
13811
  WhatsNewDto: WhatsNewDto,
13730
13812
  WhatsNewDtoIEnumerableHttpResponseData: WhatsNewDtoIEnumerableHttpResponseData
13731
13813
  });
@@ -34019,6 +34101,11 @@ class RemoteCommandBase {
34019
34101
  result.init(data);
34020
34102
  return result;
34021
34103
  }
34104
+ if (data["CommandType"] === "UpdateAllValidationRemoteCommandData") {
34105
+ let result = new UpdateAllValidationRemoteCommandData();
34106
+ result.init(data);
34107
+ return result;
34108
+ }
34022
34109
  let result = new RemoteCommandBase();
34023
34110
  result.init(data);
34024
34111
  return result;
@@ -37431,6 +37518,7 @@ class CreateBasicMonthlyCommand {
37431
37518
  this.idNum = _data["idNum"];
37432
37519
  this.accountingId = _data["accountingId"];
37433
37520
  this.monthlyPrice = _data["monthlyPrice"];
37521
+ this.qr = _data["qr"];
37434
37522
  }
37435
37523
  }
37436
37524
  static fromJS(data) {
@@ -37474,6 +37562,7 @@ class CreateBasicMonthlyCommand {
37474
37562
  data["idNum"] = this.idNum;
37475
37563
  data["accountingId"] = this.accountingId;
37476
37564
  data["monthlyPrice"] = this.monthlyPrice;
37565
+ data["qr"] = this.qr;
37477
37566
  return data;
37478
37567
  }
37479
37568
  clone() {
@@ -38113,6 +38202,7 @@ class CreateMonthlyCommand {
38113
38202
  this.idNum = _data["idNum"];
38114
38203
  this.accountingId = _data["accountingId"];
38115
38204
  this.monthlyPrice = _data["monthlyPrice"];
38205
+ this.qr = _data["qr"];
38116
38206
  this.jobTitleID = _data["jobTitleID"];
38117
38207
  this.categoryID = _data["categoryID"];
38118
38208
  this.rateID = _data["rateID"];
@@ -38168,6 +38258,7 @@ class CreateMonthlyCommand {
38168
38258
  data["idNum"] = this.idNum;
38169
38259
  data["accountingId"] = this.accountingId;
38170
38260
  data["monthlyPrice"] = this.monthlyPrice;
38261
+ data["qr"] = this.qr;
38171
38262
  data["jobTitleID"] = this.jobTitleID;
38172
38263
  data["categoryID"] = this.categoryID;
38173
38264
  data["rateID"] = this.rateID;
@@ -48923,6 +49014,7 @@ var RemoteCommandTypes;
48923
49014
  RemoteCommandTypes[RemoteCommandTypes["PaymentForISF"] = 44] = "PaymentForISF";
48924
49015
  RemoteCommandTypes[RemoteCommandTypes["DeleteTicket"] = 45] = "DeleteTicket";
48925
49016
  RemoteCommandTypes[RemoteCommandTypes["ClosePaymentScreen"] = 46] = "ClosePaymentScreen";
49017
+ RemoteCommandTypes[RemoteCommandTypes["UpdateAllValidation"] = 47] = "UpdateAllValidation";
48926
49018
  RemoteCommandTypes[RemoteCommandTypes["GetTicketFee"] = 1000] = "GetTicketFee";
48927
49019
  RemoteCommandTypes[RemoteCommandTypes["UpdateTicketPayment"] = 1001] = "UpdateTicketPayment";
48928
49020
  })(RemoteCommandTypes || (RemoteCommandTypes = {}));
@@ -54993,6 +55085,32 @@ class UpdateAccountCommand {
54993
55085
  return result;
54994
55086
  }
54995
55087
  }
55088
+ class UpdateAllValidationRemoteCommandData extends RemoteCommandBase {
55089
+ constructor(data) {
55090
+ super(data);
55091
+ this._discriminator = "UpdateAllValidationRemoteCommandData";
55092
+ }
55093
+ init(_data) {
55094
+ super.init(_data);
55095
+ }
55096
+ static fromJS(data) {
55097
+ data = typeof data === 'object' ? data : {};
55098
+ let result = new UpdateAllValidationRemoteCommandData();
55099
+ result.init(data);
55100
+ return result;
55101
+ }
55102
+ toJSON(data) {
55103
+ data = typeof data === 'object' ? data : {};
55104
+ super.toJSON(data);
55105
+ return data;
55106
+ }
55107
+ clone() {
55108
+ const json = this.toJSON();
55109
+ let result = new UpdateAllValidationRemoteCommandData();
55110
+ result.init(json);
55111
+ return result;
55112
+ }
55113
+ }
54996
55114
  class UpdateBasicGuestCommand {
54997
55115
  constructor(data) {
54998
55116
  if (data) {
@@ -55103,6 +55221,7 @@ class UpdateBasicMonthlyCommand {
55103
55221
  this.idNum = _data["idNum"];
55104
55222
  this.accountingId = _data["accountingId"];
55105
55223
  this.monthlyPrice = _data["monthlyPrice"];
55224
+ this.qr = _data["qr"];
55106
55225
  }
55107
55226
  }
55108
55227
  static fromJS(data) {
@@ -55146,6 +55265,7 @@ class UpdateBasicMonthlyCommand {
55146
55265
  data["idNum"] = this.idNum;
55147
55266
  data["accountingId"] = this.accountingId;
55148
55267
  data["monthlyPrice"] = this.monthlyPrice;
55268
+ data["qr"] = this.qr;
55149
55269
  return data;
55150
55270
  }
55151
55271
  clone() {
@@ -55833,6 +55953,7 @@ class UpdateMonthlyCommand {
55833
55953
  this.idNum = _data["idNum"];
55834
55954
  this.accountingId = _data["accountingId"];
55835
55955
  this.monthlyPrice = _data["monthlyPrice"];
55956
+ this.qr = _data["qr"];
55836
55957
  this.jobTitleID = _data["jobTitleID"];
55837
55958
  this.categoryID = _data["categoryID"];
55838
55959
  this.rateID = _data["rateID"];
@@ -55888,6 +56009,7 @@ class UpdateMonthlyCommand {
55888
56009
  data["idNum"] = this.idNum;
55889
56010
  data["accountingId"] = this.accountingId;
55890
56011
  data["monthlyPrice"] = this.monthlyPrice;
56012
+ data["qr"] = this.qr;
55891
56013
  data["jobTitleID"] = this.jobTitleID;
55892
56014
  data["categoryID"] = this.categoryID;
55893
56015
  data["rateID"] = this.rateID;
@@ -58823,6 +58945,7 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
58823
58945
  UnitHttpResponseData: UnitHttpResponseData,
58824
58946
  UnlockDoorRemoteCommandData: UnlockDoorRemoteCommandData,
58825
58947
  UpdateAccountCommand: UpdateAccountCommand,
58948
+ UpdateAllValidationRemoteCommandData: UpdateAllValidationRemoteCommandData,
58826
58949
  UpdateBasicGuestCommand: UpdateBasicGuestCommand,
58827
58950
  UpdateBasicMonthlyCommand: UpdateBasicMonthlyCommand,
58828
58951
  UpdateChargeConditionCommand: UpdateChargeConditionCommand,
@@ -61905,15 +62028,21 @@ var Localization;
61905
62028
  Localization["access_type"] = "access_type";
61906
62029
  Localization["user_have_ecommerce_backoffice_permission"] = "user_have_ecommerce_backoffice_permission";
61907
62030
  Localization["cannot_have_more_than_one_permission"] = "cannot_have_more_than_one_permission";
62031
+ Localization["form_validation_invalid_from_time"] = "form_validation_invalid_from_time";
61908
62032
  Localization["password_expiration_month"] = "password_expiration_month";
61909
62033
  Localization["minimum_password_length"] = "minimum_password_length";
61910
62034
  Localization["update_password_policy"] = "update_password_policy";
61911
62035
  Localization["password_policy_successfully_msg"] = "password_policy_successfully_msg";
61912
62036
  Localization["password_policy_save_failure"] = "password_policy_save_failure";
61913
62037
  Localization["password_policy_save_in_progress"] = "password_policy_save_in_progress";
61914
- Localization["form_validation_invalid_from_time"] = "form_validation_invalid_from_time";
61915
- Localization["unsupported"] = "unsupported";
61916
62038
  Localization["var_plural"] = "var_plural";
62039
+ Localization["unsupported"] = "unsupported";
62040
+ Localization["app_maintenance_title"] = "app_maintenance_title";
62041
+ Localization["app_maintenance_sub_title"] = "app_maintenance_sub_title";
62042
+ Localization["app_security_alert_title"] = "app_security_alert_title";
62043
+ Localization["app_security_alert_sub_title"] = "app_security_alert_sub_title";
62044
+ Localization["mobile_scan_message_title"] = "mobile_scan_message_title";
62045
+ Localization["permission_close_payment_screen"] = "permission_close_payment_screen";
61917
62046
  })(Localization || (Localization = {}));
61918
62047
 
61919
62048
  const DISABLED_FOCUS_ELEMENT_TYPES = [
@@ -62045,6 +62174,8 @@ const PARKER_SEARCH_AUTO_REDIRECT = 'PARKER_SEARCH_AUTO_REDIRECT';
62045
62174
  const DEVICE_EVENT_OPTIONS_KEY = 'DEVICE_EVENT_OPTIONS_KEY';
62046
62175
  const DEVICE_NAVIGATE_KEY = 'DEVICE_NAVIGATE_KEY';
62047
62176
  const ENVIRONMENT = "environment";
62177
+ const RESET_PASSWORD_EMAIL = "resetPasswordEmail";
62178
+ const MOBILE_REFRESH_INFO = 'MOBILE_REFRESH_INFO';
62048
62179
  // Local Storage Keys //
62049
62180
  const UNSAVED_DATA = 'unsaved';
62050
62181
  const SESSION = 'session';
@@ -62803,6 +62934,28 @@ function formatTime(value, isMidnightEnabled, separator = ':') {
62803
62934
  return null;
62804
62935
  }
62805
62936
 
62937
+ const lowerCaseFirstLetter = (value) => value.charAt(0).toLocaleLowerCase() + value.slice(1);
62938
+ const lowerCase = (value) => value?.toString().toLowerCase();
62939
+ function camelize(str) {
62940
+ return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
62941
+ return index === 0 ? word.toLowerCase() : word.toUpperCase();
62942
+ }).replace(/\s+/g, '');
62943
+ }
62944
+ function isCharacterLengthValid(str) {
62945
+ return str?.length >= 2 || str?.length === 0 || !str;
62946
+ }
62947
+ function areVersionsCompatible(version1, version2) {
62948
+ return geMajorAndMinorFromVersion(version1) === geMajorAndMinorFromVersion(version2);
62949
+ }
62950
+ function geMajorAndMinorFromVersion(input) {
62951
+ let majorAndMinorVersion = '';
62952
+ var splittedVersion = input.split('.');
62953
+ if (splittedVersion?.length > 1) {
62954
+ majorAndMinorVersion = `${splittedVersion[0]}.${splittedVersion[1]}`;
62955
+ }
62956
+ return majorAndMinorVersion;
62957
+ }
62958
+
62806
62959
  // Gets an object of type<T>
62807
62960
  // Gets an array of keys to ignore
62808
62961
  // Returns a new object without the omitted keys
@@ -63153,28 +63306,6 @@ function versionValue(version) {
63153
63306
  return (+tmp[0] * 100) + (+tmp[1] * 10) + +tmp[2];
63154
63307
  }
63155
63308
 
63156
- const lowerCaseFirstLetter = (value) => value.charAt(0).toLocaleLowerCase() + value.slice(1);
63157
- const lowerCase = (value) => value?.toString().toLowerCase();
63158
- function camelize(str) {
63159
- return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
63160
- return index === 0 ? word.toLowerCase() : word.toUpperCase();
63161
- }).replace(/\s+/g, '');
63162
- }
63163
- function isCharacterLengthValid(str) {
63164
- return str?.length >= 2 || str?.length === 0 || !str;
63165
- }
63166
- function areVersionsCompatible(version1, version2) {
63167
- return geMajorAndMinorFromVersion(version1) === geMajorAndMinorFromVersion(version2);
63168
- }
63169
- function geMajorAndMinorFromVersion(input) {
63170
- let majorAndMinorVersion = '';
63171
- var splittedVersion = input.split('.');
63172
- if (splittedVersion?.length > 1) {
63173
- majorAndMinorVersion = `${splittedVersion[0]}.${splittedVersion[1]}`;
63174
- }
63175
- return majorAndMinorVersion;
63176
- }
63177
-
63178
63309
  // NGXS
63179
63310
 
63180
63311
  class TBNumberDirective {
@@ -64286,26 +64417,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
64286
64417
  }] } });
64287
64418
 
64288
64419
  class FieldLabelComponent {
64289
- constructor(controlContainer, cdr) {
64420
+ constructor(controlContainer) {
64290
64421
  this.controlContainer = controlContainer;
64291
- this.cdr = cdr;
64422
+ this.isRequired$ = new BehaviorSubject(false);
64423
+ this.isInvalid$ = new BehaviorSubject(false);
64292
64424
  }
64293
64425
  ngOnInit() {
64426
+ this.control = this.controlContainer.control.get(this.controlName);
64294
64427
  setTimeout(() => {
64295
- this.control = this.controlContainer.control.get(this.controlName);
64296
- this.isRequired = this.isControlRequired;
64297
- this.isInvalid = this.isControlInvalid;
64428
+ this.isRequired$.next(this.isControlRequired);
64429
+ this.isInvalid$.next(this.isControlInvalid);
64298
64430
  this.statusChangesSubscription = this.control.statusChanges.subscribe(() => {
64299
- this.isRequired = this.isControlRequired;
64300
- this.isInvalid = this.isControlInvalid;
64301
- this.cdr.markForCheck();
64431
+ this.isRequired$.next(this.isControlRequired);
64432
+ this.isInvalid$.next(this.isControlInvalid);
64302
64433
  });
64303
64434
  this.touchedChangesSubscription = extractTouchedChanges(this.control).pipe(distinctUntilChanged()).subscribe((isTouched) => {
64304
- this.isRequired = this.isControlRequired;
64305
- this.isInvalid = !!this.control.errors?.required && isTouched;
64306
- this.cdr.markForCheck();
64435
+ this.isRequired$.next(this.isControlRequired);
64436
+ this.isInvalid$.next(!!this.control.errors?.required && isTouched);
64307
64437
  });
64308
- this.cdr.markForCheck();
64309
64438
  });
64310
64439
  }
64311
64440
  get isControlRequired() {
@@ -64320,13 +64449,13 @@ class FieldLabelComponent {
64320
64449
  this.touchedChangesSubscription?.unsubscribe();
64321
64450
  });
64322
64451
  }
64323
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FieldLabelComponent, deps: [{ token: i1.ControlContainer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
64452
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FieldLabelComponent, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Component }); }
64324
64453
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FieldLabelComponent, selector: "[tb-field-label]", inputs: { controlName: "controlName", label: "label" }, ngImport: i0, template: `
64325
64454
  <div class="tb-field-label" *ngIf="control">
64326
- <span class="required-asterisk" *ngIf="isRequired" [class.required]="isInvalid">*</span>
64455
+ <span class="required-asterisk" *ngIf="isRequired$ | async" [class.required]="isInvalid$ | async">*</span>
64327
64456
  <span>{{ label | translate }}</span>
64328
64457
  </div>
64329
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64458
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64330
64459
  }
64331
64460
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FieldLabelComponent, decorators: [{
64332
64461
  type: Component,
@@ -64334,13 +64463,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
64334
64463
  selector: '[tb-field-label]',
64335
64464
  template: `
64336
64465
  <div class="tb-field-label" *ngIf="control">
64337
- <span class="required-asterisk" *ngIf="isRequired" [class.required]="isInvalid">*</span>
64466
+ <span class="required-asterisk" *ngIf="isRequired$ | async" [class.required]="isInvalid$ | async">*</span>
64338
64467
  <span>{{ label | translate }}</span>
64339
64468
  </div>
64340
64469
  `,
64341
64470
  changeDetection: ChangeDetectionStrategy.OnPush
64342
64471
  }]
64343
- }], ctorParameters: function () { return [{ type: i1.ControlContainer }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { controlName: [{
64472
+ }], ctorParameters: function () { return [{ type: i1.ControlContainer }]; }, propDecorators: { controlName: [{
64344
64473
  type: Input
64345
64474
  }], label: [{
64346
64475
  type: Input
@@ -64547,5 +64676,5 @@ function slideUpDown() {
64547
64676
  * Generated bundle index. Do not edit.
64548
64677
  */
64549
64678
 
64550
- export { ALERT_NOTIFICATION_CONTAINER, ALLOWED_FILES_FORMATS, ALLOWED_FILES_MAX_SIZE_MB, ALLOWED_NUMBER_OF_DAYS, ALLOWED_UPLOAD_FILES_QUANTITY, ActionStatusChanged, ActionStatusService, AppModuleToMainPermissionTypeMap, AppSectionLabel, AppSectionModuleMenu, AppSectionRoute, AuditActionTypeText, AutofocusDirective, BOM_UNICODE, BaseComponent, CLogItPipe, COLORS, CREDIT_CARD_POSTFIX_LENGTH, CentToCoinPipe, cloudServiceProxies as Cloud, ContainerRefDirective, CurlyToBoldPipe, DATA_IMAGE_BASE64_PREFIX, DATA_IMAGE_BASE64_SVG_PREFIX, DEFAULT_MINUMIM_LENGTH, DEFAULT_SMART_PARK_DATE_TIME, DEVICE_EVENT_OPTIONS_KEY, DEVICE_NAVIGATE_KEY, DISABLED_FOCUS_ELEMENT_CLASSES, DISABLED_FOCUS_ELEMENT_TYPES, DataQaAttribute, DecimalToAmountPipe, DecimalToCurrencyPipe, DialogMode, DurationMessageBar, ENGLISH_LANGUAGE, ENVIRONMENT, EXPIRATION_MONTH_OPTIONS, edgeServiceProxies as Edge, EllipsisMultilineDirective, EnumsToArrayPipe, EnvironmentModeText, FieldLabelComponent, FieldValidationsComponent, FilterKeysPipe, FilterNumbersPipe, FilterPipe, FormValidationsComponent, GenerateSearchParamsDto, GetAllLocalizationsAction, HasActionErrored, HttpCancelBlackListUrls, INPUT_SEARCH_DEBOUNCE_TIME, INPUT_SEARCH_DEBOUNCE_TIME_LOW, INPUT_SEARCH_DEBOUNCE_TIME_MEDIUM, IconsHelper, IconsHelperText, InternetConnectionStatus, IsActionExecuting, IsEllipsisDirective, LOCAL_ENGLISH_LANGUAGE, LOGGED_TENANT_KEY, LanguageTypeKeys, LocalStorageMigrator, Localization, LocalizationModule, LocalizationService, LocalizationState, MAX_ALLOWED_BADGE_VALUE, MAX_ALLOWED_CURRENT_BALANCE, MAX_CARDS, MAX_CAR_PLATES, MAX_EXPORT_RECORDS, MAX_HOTEL_ROOM_NUMBER_LENGTH, MAX_INT16_VALUE, MAX_INTEGER_VALUE, MAX_LENGTH_DESCRIPTION, MAX_LENGTH_NAME, MAX_LENGTH_SERACH_TERM, MAX_MOBILE_LENGTH, MAX_PLATE_ID_LENGTH, MAX_PRICE_NO_TIME_LIMIT_VALUE, MAX_PRICE_PERIOD_VALUE, MAX_REPEAT_COUNT_VALUE, MAX_RESULTS, MAX_ROLE_NAME_LENGTH, MC_READER_ID, MINIMUM_LENGTH_OPTIONS, MINUTES_PER_HOUR, MULTIPLE, MainModuleToSubModulesPermissionTypeMap, MiddayPeriod, MobileAppSectionLabel, MslEventType, NONE_USER_ID, NO_RESULT, NativeElementInjectorDirective, ONE_DAY_IN_MINUTES_VALUE, ONE_SECOND_IN_MILLISECONDS, OffScreenDirective, Operator, OrderBy, OrderByPipe, OrderDirection, PARKER_SEARCH_AUTO_REDIRECT, PASSWORD_EXPIRED, PERIOD_TIME, PREVENT_CLICK_ELEMENT_CLASSES, REDIRECT_URL, RowOperation, SESSION, STATUS_CODE_SERVER_VALIDATION, STRING_ZERO, SUPER_PARK_ROUTE_KEY, SUPPORTED_DEVICES_SCHEDULER, SYSTEM_ALERT_VALUE, ServiceProxyModule, SharedComponentsModule, SharedDirectivesModule, SharedModule, SharedPipesModule, SortPipe, SpinnerDiameterSize, StopPropagationDirective, StringItPipe, TBFormatPipe, TBNumberDirective, TENANT_KEY, TENS_MULTIPLIER, TibaValidators, TimeAgoPipe, TimeElapsedFormats, TimeElapsedPipe, TooltipPositions, TrackAction, TranslateLocalPipe, TreeFilterKeysPipe, TreeMode, UNSAVED_DATA, USER_IS_TEMPORARY_BLOCKED, VALID_TIME_MAX_LENGTH, VERSION_10_1_0, VERSION_10_2_0, VERSION_7_4_0, VERSION_7_4_1, VERSION_8_1_0, VERSION_8_2_0, VERSION_8_3_0, VERSION_8_4_0, VERSION_9_1_0, VERSION_9_2_0, VERSION_9_2_2, VERSION_9_3_0, VERSION_9_4_0, VarDirective, WrapFnPipe, ZerofyNegativePipe, accountModuleAnimation, adjustForTimezone, allowSpecialKeys, alphanumericRegex, appModuleAnimation, areDatesIdentical, areVersionsCompatible, arrayEquals, baseReduce, camelize, canceled, convertBinaryToDecimal, convertCentToWholeCoin, convertDecimalToBinary, convertFeaturePermissionsToDictionary, convertFormatWithoutTime, convertPermissionsToDictionary, convertWholeCoinToCent, createDescriptor, dateDiffInSeconds, decimalPositiveRegex, decimalRegex, delayCancellation, diffInMillis, dispatched, distinctObjectByProperties, distinctObjectByProperty, ensureObjectMetadata, errored, extractErrorsChanges, extractNumber, extractResetChanges, extractSetValueChanges, extractToggleStatusChanges, extractTouchedChanges, extractUpdateValueAndValidityChanges, filterKeyValueBaseReduce, findParentElement, findParentElementDimensions, flattenByKey, formatMinutesToTimeNumber, formatTimeToMinutes, formatTimeWithMidnight, formatTimeWithSeparator, formatTimeWithoutMidnight, formatTimeWithoutSeparator, formatTimeWithoutSeperatorAndWithMidnight, formatTimeWithoutSeperatorAndWithoutMidnight, getAddress, getCurrentLang, getDateTimeInSeconds, getDateWithoutTime, getMomenWithTime, getMomentNullable, getMomentWithoutTime, getObjectMetadata, getUserTimeZone, getUtcMomentNullable, hasValue, humanizeTimeElapsed, humanizeUtcTimeElapsed, identity, integerNumbersRegex, isBoolean, isCharacterLengthValid, isFalsy, isIOSDevice, isMaxDaysRangeValid, isNullOrEmpty, isNumber, isObjectEmpty, isSearchFieldChanged, isSingularOrPlural, isTrueInBinary, isTruthy, isVersionGreaterThanEqual, loadHTMLContent, lowerCase, lowerCaseFirstLetter, markEntitiesAsChanged, markEntityAsUnchanged, minutesToTime, mobileRegex, noEmojiRegex, notificationAnimation, numberWithLeadingZero, ofStatus, omitKeys, openCloseFiltersAnimation, parseApiErrorData, parseApiErrorMessage, parseDateTimeToSparkParkTime, parseSmartParkTime, passwordRegex, percentageRegex, positiveIntegerNumbersGreaterThanZeroRegex, positiveIntegerNumbersIncludeZeroRegex, positiveNumbersGreaterThanZeroRegex, positiveNumbersRegex, printStackTrace, readjustForTimezone, regexExp, replaceAll, searchBarPopupAnimation, setErrorMessage, sleep, slideFromBottom, slideFromRight, slideFromUp, slideUpDown, successful, timeToMinutes, toInt, toNumberMap, toStringMap, wrapConstructor };
64679
+ export { ALERT_NOTIFICATION_CONTAINER, ALLOWED_FILES_FORMATS, ALLOWED_FILES_MAX_SIZE_MB, ALLOWED_NUMBER_OF_DAYS, ALLOWED_UPLOAD_FILES_QUANTITY, ActionStatusService, AppModuleToMainPermissionTypeMap, AppSectionLabel, AppSectionModuleMenu, AppSectionRoute, AuditActionTypeText, AutofocusDirective, BOM_UNICODE, BaseComponent, CLogItPipe, COLORS, CREDIT_CARD_POSTFIX_LENGTH, CentToCoinPipe, cloudServiceProxies as Cloud, ContainerRefDirective, CurlyToBoldPipe, DATA_IMAGE_BASE64_PREFIX, DATA_IMAGE_BASE64_SVG_PREFIX, DEFAULT_MINUMIM_LENGTH, DEFAULT_SMART_PARK_DATE_TIME, DEVICE_EVENT_OPTIONS_KEY, DEVICE_NAVIGATE_KEY, DISABLED_FOCUS_ELEMENT_CLASSES, DISABLED_FOCUS_ELEMENT_TYPES, DataQaAttribute, DecimalToAmountPipe, DecimalToCurrencyPipe, DialogMode, DurationMessageBar, ENGLISH_LANGUAGE, ENVIRONMENT, EXPIRATION_MONTH_OPTIONS, edgeServiceProxies as Edge, EllipsisMultilineDirective, EnumsToArrayPipe, EnvironmentModeText, FieldLabelComponent, FieldValidationsComponent, FilterKeysPipe, FilterNumbersPipe, FilterPipe, FormValidationsComponent, GenerateSearchParamsDto, GetAllLocalizationsAction, HasActionErrored, HttpCancelBlackListUrls, INPUT_SEARCH_DEBOUNCE_TIME, INPUT_SEARCH_DEBOUNCE_TIME_LOW, INPUT_SEARCH_DEBOUNCE_TIME_MEDIUM, IconsHelper, IconsHelperText, InternetConnectionStatus, IsActionExecuting, IsEllipsisDirective, LOCAL_ENGLISH_LANGUAGE, LOGGED_TENANT_KEY, LanguageTypeKeys, LocalStorageMigrator, Localization, LocalizationModule, LocalizationService, LocalizationState, MAX_ALLOWED_BADGE_VALUE, MAX_ALLOWED_CURRENT_BALANCE, MAX_CARDS, MAX_CAR_PLATES, MAX_EXPORT_RECORDS, MAX_HOTEL_ROOM_NUMBER_LENGTH, MAX_INT16_VALUE, MAX_INTEGER_VALUE, MAX_LENGTH_DESCRIPTION, MAX_LENGTH_NAME, MAX_LENGTH_SERACH_TERM, MAX_MOBILE_LENGTH, MAX_PLATE_ID_LENGTH, MAX_PRICE_NO_TIME_LIMIT_VALUE, MAX_PRICE_PERIOD_VALUE, MAX_REPEAT_COUNT_VALUE, MAX_RESULTS, MAX_ROLE_NAME_LENGTH, MC_READER_ID, MINIMUM_LENGTH_OPTIONS, MINUTES_PER_HOUR, MOBILE_REFRESH_INFO, MULTIPLE, MainModuleToSubModulesPermissionTypeMap, MiddayPeriod, MobileAppSectionLabel, MslEventType, NONE_USER_ID, NO_RESULT, NativeElementInjectorDirective, ONE_DAY_IN_MINUTES_VALUE, ONE_SECOND_IN_MILLISECONDS, OffScreenDirective, Operator, OrderBy, OrderByPipe, OrderDirection, PARKER_SEARCH_AUTO_REDIRECT, PASSWORD_EXPIRED, PERIOD_TIME, PREVENT_CLICK_ELEMENT_CLASSES, REDIRECT_URL, RESET_PASSWORD_EMAIL, RowOperation, SESSION, STATUS_CODE_SERVER_VALIDATION, STRING_ZERO, SUPER_PARK_ROUTE_KEY, SUPPORTED_DEVICES_SCHEDULER, SYSTEM_ALERT_VALUE, ServiceProxyModule, SharedComponentsModule, SharedDirectivesModule, SharedModule, SharedPipesModule, SortPipe, SpinnerDiameterSize, StopPropagationDirective, StringItPipe, TBFormatPipe, TBNumberDirective, TENANT_KEY, TENS_MULTIPLIER, TibaValidators, TimeAgoPipe, TimeElapsedFormats, TimeElapsedPipe, TooltipPositions, TrackAction, TranslateLocalPipe, TreeFilterKeysPipe, TreeMode, UNSAVED_DATA, USER_IS_TEMPORARY_BLOCKED, VALID_TIME_MAX_LENGTH, VERSION_10_1_0, VERSION_10_2_0, VERSION_7_4_0, VERSION_7_4_1, VERSION_8_1_0, VERSION_8_2_0, VERSION_8_3_0, VERSION_8_4_0, VERSION_9_1_0, VERSION_9_2_0, VERSION_9_2_2, VERSION_9_3_0, VERSION_9_4_0, VarDirective, WrapFnPipe, ZerofyNegativePipe, accountModuleAnimation, adjustForTimezone, allowSpecialKeys, alphanumericRegex, appModuleAnimation, areDatesIdentical, areVersionsCompatible, arrayEquals, baseReduce, camelize, canceled, convertBinaryToDecimal, convertCentToWholeCoin, convertDecimalToBinary, convertFeaturePermissionsToDictionary, convertFormatWithoutTime, convertPermissionsToDictionary, convertWholeCoinToCent, createDescriptor, dateDiffInSeconds, decimalPositiveRegex, decimalRegex, delayCancellation, diffInMillis, dispatched, distinctObjectByProperties, distinctObjectByProperty, ensureObjectMetadata, errored, extractErrorsChanges, extractNumber, extractResetChanges, extractSetValueChanges, extractToggleStatusChanges, extractTouchedChanges, extractUpdateValueAndValidityChanges, filterKeyValueBaseReduce, findParentElement, findParentElementDimensions, flattenByKey, formatMinutesToTimeNumber, formatTimeToMinutes, formatTimeWithMidnight, formatTimeWithSeparator, formatTimeWithoutMidnight, formatTimeWithoutSeparator, formatTimeWithoutSeperatorAndWithMidnight, formatTimeWithoutSeperatorAndWithoutMidnight, getAddress, getCurrentLang, getDateTimeInSeconds, getDateWithoutTime, getMomenWithTime, getMomentNullable, getMomentWithoutTime, getObjectMetadata, getUserTimeZone, getUtcMomentNullable, hasValue, humanizeTimeElapsed, humanizeUtcTimeElapsed, identity, integerNumbersRegex, isBoolean, isCharacterLengthValid, isFalsy, isIOSDevice, isMaxDaysRangeValid, isNullOrEmpty, isNumber, isObjectEmpty, isSearchFieldChanged, isSingularOrPlural, isTrueInBinary, isTruthy, isVersionGreaterThanEqual, loadHTMLContent, lowerCase, lowerCaseFirstLetter, markEntitiesAsChanged, markEntityAsUnchanged, minutesToTime, mobileRegex, noEmojiRegex, notificationAnimation, numberWithLeadingZero, ofStatus, omitKeys, openCloseFiltersAnimation, parseApiErrorData, parseApiErrorMessage, parseDateTimeToSparkParkTime, parseSmartParkTime, passwordRegex, percentageRegex, positiveIntegerNumbersGreaterThanZeroRegex, positiveIntegerNumbersIncludeZeroRegex, positiveNumbersGreaterThanZeroRegex, positiveNumbersRegex, printStackTrace, readjustForTimezone, regexExp, replaceAll, searchBarPopupAnimation, setErrorMessage, sleep, slideFromBottom, slideFromRight, slideFromUp, slideUpDown, successful, timeToMinutes, toInt, toNumberMap, toStringMap, wrapConstructor };
64551
64680
  //# sourceMappingURL=tiba-spark-client-shared-lib.mjs.map