@wavemaker-ai/angular-app 12.0.0-rc.335 → 12.0.1-rc.338

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @license Angular v21.2.20
4
+ * @license Angular v21.2.21
5
5
  * (c) 2010-2026 Google LLC. https://angular.dev/
6
6
  * License: MIT
7
7
  */
@@ -26173,7 +26173,7 @@ var MatchSource;
26173
26173
  MatchSource[MatchSource["HostDirective"] = 1] = "HostDirective";
26174
26174
  })(MatchSource || (MatchSource = {}));
26175
26175
 
26176
- new Version$1('21.2.20');
26176
+ new Version$1('21.2.21');
26177
26177
 
26178
26178
  publishFacade(_global$1);
26179
26179
 
@@ -33706,10 +33706,8 @@ const processNode = (node, importCollector, providers) => {
33706
33706
  }
33707
33707
  markup += post(attrMap, shared, ...requiredProviders);
33708
33708
  }
33709
- else {
33710
- if (node.endSourceSpan && !getHtmlTagDefinition(node.name).isVoid) {
33711
- markup += `</${nodeName}>`;
33712
- }
33709
+ else if (node.endSourceSpan && !getHtmlTagDefinition(node.name).isVoid) {
33710
+ markup += `</${nodeName}>`;
33713
33711
  }
33714
33712
  }
33715
33713
  else if (node instanceof Text$1) {
@@ -33717,7 +33715,7 @@ const processNode = (node, importCollector, providers) => {
33717
33715
  }
33718
33716
  else ;
33719
33717
  importCollector(WIDGET_IMPORTS.get(node.name));
33720
- if (nodeDef && nodeDef.imports) {
33718
+ if (nodeDef?.imports) {
33721
33719
  let imports = [];
33722
33720
  if (typeof nodeDef.imports === 'function') {
33723
33721
  imports = nodeDef.imports(attrMap);
@@ -48091,7 +48089,7 @@ var momentTimezoneExports = requireMomentTimezone();
48091
48089
  var momentTimezone = /*@__PURE__*/getDefaultExportFromCjs(momentTimezoneExports);
48092
48090
 
48093
48091
  /**
48094
- * @license Angular v21.2.20
48092
+ * @license Angular v21.2.21
48095
48093
  * (c) 2010-2026 Google LLC. https://angular.dev/
48096
48094
  * License: MIT
48097
48095
  */
@@ -48485,7 +48483,7 @@ function runEffect(node) {
48485
48483
  }
48486
48484
 
48487
48485
  /**
48488
- * @license Angular v21.2.20
48486
+ * @license Angular v21.2.21
48489
48487
  * (c) 2010-2026 Google LLC. https://angular.dev/
48490
48488
  * License: MIT
48491
48489
  */
@@ -48506,7 +48504,7 @@ function isNotFound(e) {
48506
48504
  }
48507
48505
 
48508
48506
  /**
48509
- * @license Angular v21.2.20
48507
+ * @license Angular v21.2.21
48510
48508
  * (c) 2010-2026 Google LLC. https://angular.dev/
48511
48509
  * License: MIT
48512
48510
  */
@@ -48604,7 +48602,7 @@ function untracked$1(nonReactiveReadsFn) {
48604
48602
  }
48605
48603
 
48606
48604
  /**
48607
- * @license Angular v21.2.20
48605
+ * @license Angular v21.2.21
48608
48606
  * (c) 2010-2026 Google LLC. https://angular.dev/
48609
48607
  * License: MIT
48610
48608
  */
@@ -48612,7 +48610,7 @@ function untracked$1(nonReactiveReadsFn) {
48612
48610
  function setAlternateWeakRefImpl(impl) {}
48613
48611
 
48614
48612
  /**
48615
- * @license Angular v21.2.20
48613
+ * @license Angular v21.2.21
48616
48614
  * (c) 2010-2026 Google LLC. https://angular.dev/
48617
48615
  * License: MIT
48618
48616
  */
@@ -48726,7 +48724,7 @@ if (typeof ngDevMode === 'undefined' || ngDevMode) {
48726
48724
  }
48727
48725
 
48728
48726
  /**
48729
- * @license Angular v21.2.20
48727
+ * @license Angular v21.2.21
48730
48728
  * (c) 2010-2026 Google LLC. https://angular.dev/
48731
48729
  * License: MIT
48732
48730
  */
@@ -48745,7 +48743,7 @@ class Version {
48745
48743
  this.patch = parts.slice(2).join('.');
48746
48744
  }
48747
48745
  }
48748
- const VERSION = /* @__PURE__ */new Version('21.2.20');
48746
+ const VERSION = /* @__PURE__ */new Version('21.2.21');
48749
48747
 
48750
48748
  const DOC_PAGE_BASE_URL = (() => {
48751
48749
  const full = VERSION.full;
@@ -51739,7 +51737,7 @@ function createEffectFn(node, fn) {
51739
51737
  }
51740
51738
 
51741
51739
  /**
51742
- * @license Angular v21.2.20
51740
+ * @license Angular v21.2.21
51743
51741
  * (c) 2010-2026 Google LLC. https://angular.dev/
51744
51742
  * License: MIT
51745
51743
  */
@@ -51749,7 +51747,7 @@ const Attribute$1 = {
51749
51747
  };
51750
51748
 
51751
51749
  /**
51752
- * @license Angular v21.2.20
51750
+ * @license Angular v21.2.21
51753
51751
  * (c) 2010-2026 Google LLC. https://angular.dev/
51754
51752
  * License: MIT
51755
51753
  */
@@ -60543,7 +60541,7 @@ class ComponentFactory extends ComponentFactory$1 {
60543
60541
  }
60544
60542
  }
60545
60543
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
60546
- const tAttributes = rootSelectorOrNode ? ['ng-version', '21.2.20'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
60544
+ const tAttributes = rootSelectorOrNode ? ['ng-version', '21.2.21'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
60547
60545
  let creationBindings = null;
60548
60546
  let updateBindings = null;
60549
60547
  let varsToAllocate = 0;
@@ -70499,7 +70497,7 @@ function getDebugNode(nativeNode) {
70499
70497
  }
70500
70498
 
70501
70499
  /**
70502
- * @license Angular v21.2.20
70500
+ * @license Angular v21.2.21
70503
70501
  * (c) 2010-2026 Google LLC. https://angular.dev/
70504
70502
  * License: MIT
70505
70503
  */
@@ -70904,7 +70902,7 @@ class ResourceWrappedError extends Error {
70904
70902
  }
70905
70903
 
70906
70904
  /**
70907
- * @license Angular v21.2.20
70905
+ * @license Angular v21.2.21
70908
70906
  * (c) 2010-2026 Google LLC. https://angular.dev/
70909
70907
  * License: MIT
70910
70908
  */
@@ -71614,7 +71612,7 @@ function clearAppScopedEarlyEventContract(appId, dataContainer = window) {
71614
71612
  }
71615
71613
 
71616
71614
  /**
71617
- * @license Angular v21.2.20
71615
+ * @license Angular v21.2.21
71618
71616
  * (c) 2010-2026 Google LLC. https://angular.dev/
71619
71617
  * License: MIT
71620
71618
  */
@@ -75030,7 +75028,7 @@ var i0 = /*#__PURE__*/Object.freeze({
75030
75028
  });
75031
75029
 
75032
75030
  /**
75033
- * @license Angular v21.2.20
75031
+ * @license Angular v21.2.21
75034
75032
  * (c) 2010-2026 Google LLC. https://angular.dev/
75035
75033
  * License: MIT
75036
75034
  */
@@ -75050,7 +75048,7 @@ function parseCookieValue(cookieStr, name) {
75050
75048
  class XhrFactory {}
75051
75049
 
75052
75050
  /**
75053
- * @license Angular v21.2.20
75051
+ * @license Angular v21.2.21
75054
75052
  * (c) 2010-2026 Google LLC. https://angular.dev/
75055
75053
  * License: MIT
75056
75054
  */
@@ -75067,7 +75065,7 @@ class PlatformLocation {
75067
75065
  }
75068
75066
  static ɵfac = ɵɵngDeclareFactory({
75069
75067
  minVersion: "12.0.0",
75070
- version: "21.2.20",
75068
+ version: "21.2.21",
75071
75069
  ngImport: i0,
75072
75070
  type: PlatformLocation,
75073
75071
  deps: [],
@@ -75075,7 +75073,7 @@ class PlatformLocation {
75075
75073
  });
75076
75074
  static ɵprov = ɵɵngDeclareInjectable({
75077
75075
  minVersion: "12.0.0",
75078
- version: "21.2.20",
75076
+ version: "21.2.21",
75079
75077
  ngImport: i0,
75080
75078
  type: PlatformLocation,
75081
75079
  providedIn: 'platform',
@@ -75159,7 +75157,7 @@ class BrowserPlatformLocation extends PlatformLocation {
75159
75157
  }
75160
75158
  static ɵfac = ɵɵngDeclareFactory({
75161
75159
  minVersion: "12.0.0",
75162
- version: "21.2.20",
75160
+ version: "21.2.21",
75163
75161
  ngImport: i0,
75164
75162
  type: BrowserPlatformLocation,
75165
75163
  deps: [],
@@ -75167,7 +75165,7 @@ class BrowserPlatformLocation extends PlatformLocation {
75167
75165
  });
75168
75166
  static ɵprov = ɵɵngDeclareInjectable({
75169
75167
  minVersion: "12.0.0",
75170
- version: "21.2.20",
75168
+ version: "21.2.21",
75171
75169
  ngImport: i0,
75172
75170
  type: BrowserPlatformLocation,
75173
75171
  providedIn: 'platform',
@@ -75187,7 +75185,7 @@ class BrowserPlatformLocation extends PlatformLocation {
75187
75185
  });
75188
75186
 
75189
75187
  /**
75190
- * @license Angular v21.2.20
75188
+ * @license Angular v21.2.21
75191
75189
  * (c) 2010-2026 Google LLC. https://angular.dev/
75192
75190
  * License: MIT
75193
75191
  */
@@ -76153,7 +76151,7 @@ class FetchBackend {
76153
76151
  }
76154
76152
  static ɵfac = ɵɵngDeclareFactory({
76155
76153
  minVersion: "12.0.0",
76156
- version: "21.2.20",
76154
+ version: "21.2.21",
76157
76155
  ngImport: i0,
76158
76156
  type: FetchBackend,
76159
76157
  deps: [],
@@ -76161,7 +76159,7 @@ class FetchBackend {
76161
76159
  });
76162
76160
  static ɵprov = ɵɵngDeclareInjectable({
76163
76161
  minVersion: "12.0.0",
76164
- version: "21.2.20",
76162
+ version: "21.2.21",
76165
76163
  ngImport: i0,
76166
76164
  type: FetchBackend
76167
76165
  });
@@ -76420,7 +76418,7 @@ class HttpXhrBackend {
76420
76418
  }
76421
76419
  static ɵfac = ɵɵngDeclareFactory({
76422
76420
  minVersion: "12.0.0",
76423
- version: "21.2.20",
76421
+ version: "21.2.21",
76424
76422
  ngImport: i0,
76425
76423
  type: HttpXhrBackend,
76426
76424
  deps: [{
@@ -76430,7 +76428,7 @@ class HttpXhrBackend {
76430
76428
  });
76431
76429
  static ɵprov = ɵɵngDeclareInjectable({
76432
76430
  minVersion: "12.0.0",
76433
- version: "21.2.20",
76431
+ version: "21.2.21",
76434
76432
  ngImport: i0,
76435
76433
  type: HttpXhrBackend,
76436
76434
  providedIn: 'root'
@@ -76480,7 +76478,7 @@ class HttpXsrfCookieExtractor {
76480
76478
  }
76481
76479
  static ɵfac = ɵɵngDeclareFactory({
76482
76480
  minVersion: "12.0.0",
76483
- version: "21.2.20",
76481
+ version: "21.2.21",
76484
76482
  ngImport: i0,
76485
76483
  type: HttpXsrfCookieExtractor,
76486
76484
  deps: [],
@@ -76488,7 +76486,7 @@ class HttpXsrfCookieExtractor {
76488
76486
  });
76489
76487
  static ɵprov = ɵɵngDeclareInjectable({
76490
76488
  minVersion: "12.0.0",
76491
- version: "21.2.20",
76489
+ version: "21.2.21",
76492
76490
  ngImport: i0,
76493
76491
  type: HttpXsrfCookieExtractor,
76494
76492
  providedIn: 'root'
@@ -76506,7 +76504,7 @@ class HttpXsrfCookieExtractor {
76506
76504
  class HttpXsrfTokenExtractor {
76507
76505
  static ɵfac = ɵɵngDeclareFactory({
76508
76506
  minVersion: "12.0.0",
76509
- version: "21.2.20",
76507
+ version: "21.2.21",
76510
76508
  ngImport: i0,
76511
76509
  type: HttpXsrfTokenExtractor,
76512
76510
  deps: [],
@@ -76514,7 +76512,7 @@ class HttpXsrfTokenExtractor {
76514
76512
  });
76515
76513
  static ɵprov = ɵɵngDeclareInjectable({
76516
76514
  minVersion: "12.0.0",
76517
- version: "21.2.20",
76515
+ version: "21.2.21",
76518
76516
  ngImport: i0,
76519
76517
  type: HttpXsrfTokenExtractor,
76520
76518
  providedIn: 'root',
@@ -76565,7 +76563,7 @@ class HttpXsrfInterceptor {
76565
76563
  }
76566
76564
  static ɵfac = ɵɵngDeclareFactory({
76567
76565
  minVersion: "12.0.0",
76568
- version: "21.2.20",
76566
+ version: "21.2.21",
76569
76567
  ngImport: i0,
76570
76568
  type: HttpXsrfInterceptor,
76571
76569
  deps: [],
@@ -76573,7 +76571,7 @@ class HttpXsrfInterceptor {
76573
76571
  });
76574
76572
  static ɵprov = ɵɵngDeclareInjectable({
76575
76573
  minVersion: "12.0.0",
76576
- version: "21.2.20",
76574
+ version: "21.2.21",
76577
76575
  ngImport: i0,
76578
76576
  type: HttpXsrfInterceptor
76579
76577
  });
@@ -76627,7 +76625,7 @@ function legacyInterceptorFnFactory() {
76627
76625
  class HttpBackend {
76628
76626
  static ɵfac = ɵɵngDeclareFactory({
76629
76627
  minVersion: "12.0.0",
76630
- version: "21.2.20",
76628
+ version: "21.2.21",
76631
76629
  ngImport: i0,
76632
76630
  type: HttpBackend,
76633
76631
  deps: [],
@@ -76635,7 +76633,7 @@ class HttpBackend {
76635
76633
  });
76636
76634
  static ɵprov = ɵɵngDeclareInjectable({
76637
76635
  minVersion: "12.0.0",
76638
- version: "21.2.20",
76636
+ version: "21.2.21",
76639
76637
  ngImport: i0,
76640
76638
  type: HttpBackend,
76641
76639
  providedIn: 'root',
@@ -76691,7 +76689,7 @@ class HttpInterceptorHandler {
76691
76689
  }
76692
76690
  static ɵfac = ɵɵngDeclareFactory({
76693
76691
  minVersion: "12.0.0",
76694
- version: "21.2.20",
76692
+ version: "21.2.21",
76695
76693
  ngImport: i0,
76696
76694
  type: HttpInterceptorHandler,
76697
76695
  deps: [{
@@ -76703,7 +76701,7 @@ class HttpInterceptorHandler {
76703
76701
  });
76704
76702
  static ɵprov = ɵɵngDeclareInjectable({
76705
76703
  minVersion: "12.0.0",
76706
- version: "21.2.20",
76704
+ version: "21.2.21",
76707
76705
  ngImport: i0,
76708
76706
  type: HttpInterceptorHandler,
76709
76707
  providedIn: 'root'
@@ -76726,7 +76724,7 @@ class HttpInterceptorHandler {
76726
76724
  class HttpHandler {
76727
76725
  static ɵfac = ɵɵngDeclareFactory({
76728
76726
  minVersion: "12.0.0",
76729
- version: "21.2.20",
76727
+ version: "21.2.21",
76730
76728
  ngImport: i0,
76731
76729
  type: HttpHandler,
76732
76730
  deps: [],
@@ -76734,7 +76732,7 @@ class HttpHandler {
76734
76732
  });
76735
76733
  static ɵprov = ɵɵngDeclareInjectable({
76736
76734
  minVersion: "12.0.0",
76737
- version: "21.2.20",
76735
+ version: "21.2.21",
76738
76736
  ngImport: i0,
76739
76737
  type: HttpHandler,
76740
76738
  providedIn: 'root',
@@ -76890,7 +76888,7 @@ class HttpClient {
76890
76888
  }
76891
76889
  static ɵfac = ɵɵngDeclareFactory({
76892
76890
  minVersion: "12.0.0",
76893
- version: "21.2.20",
76891
+ version: "21.2.21",
76894
76892
  ngImport: i0,
76895
76893
  type: HttpClient,
76896
76894
  deps: [{
@@ -76900,7 +76898,7 @@ class HttpClient {
76900
76898
  });
76901
76899
  static ɵprov = ɵɵngDeclareInjectable({
76902
76900
  minVersion: "12.0.0",
76903
- version: "21.2.20",
76901
+ version: "21.2.21",
76904
76902
  ngImport: i0,
76905
76903
  type: HttpClient,
76906
76904
  providedIn: 'root'
@@ -77033,7 +77031,7 @@ class JsonpClientBackend {
77033
77031
  }
77034
77032
  static ɵfac = ɵɵngDeclareFactory({
77035
77033
  minVersion: "12.0.0",
77036
- version: "21.2.20",
77034
+ version: "21.2.21",
77037
77035
  ngImport: i0,
77038
77036
  type: JsonpClientBackend,
77039
77037
  deps: [{
@@ -77045,7 +77043,7 @@ class JsonpClientBackend {
77045
77043
  });
77046
77044
  static ɵprov = ɵɵngDeclareInjectable({
77047
77045
  minVersion: "12.0.0",
77048
- version: "21.2.20",
77046
+ version: "21.2.21",
77049
77047
  ngImport: i0,
77050
77048
  type: JsonpClientBackend
77051
77049
  });
@@ -77081,7 +77079,7 @@ class JsonpInterceptor {
77081
77079
  }
77082
77080
  static ɵfac = ɵɵngDeclareFactory({
77083
77081
  minVersion: "12.0.0",
77084
- version: "21.2.20",
77082
+ version: "21.2.21",
77085
77083
  ngImport: i0,
77086
77084
  type: JsonpInterceptor,
77087
77085
  deps: [{
@@ -77091,7 +77089,7 @@ class JsonpInterceptor {
77091
77089
  });
77092
77090
  static ɵprov = ɵɵngDeclareInjectable({
77093
77091
  minVersion: "12.0.0",
77094
- version: "21.2.20",
77092
+ version: "21.2.21",
77095
77093
  ngImport: i0,
77096
77094
  type: JsonpInterceptor
77097
77095
  });
@@ -77214,7 +77212,7 @@ class HttpClientXsrfModule {
77214
77212
  }
77215
77213
  static ɵfac = ɵɵngDeclareFactory({
77216
77214
  minVersion: "12.0.0",
77217
- version: "21.2.20",
77215
+ version: "21.2.21",
77218
77216
  ngImport: i0,
77219
77217
  type: HttpClientXsrfModule,
77220
77218
  deps: [],
@@ -77222,13 +77220,13 @@ class HttpClientXsrfModule {
77222
77220
  });
77223
77221
  static ɵmod = ɵɵngDeclareNgModule({
77224
77222
  minVersion: "14.0.0",
77225
- version: "21.2.20",
77223
+ version: "21.2.21",
77226
77224
  ngImport: i0,
77227
77225
  type: HttpClientXsrfModule
77228
77226
  });
77229
77227
  static ɵinj = ɵɵngDeclareInjector({
77230
77228
  minVersion: "12.0.0",
77231
- version: "21.2.20",
77229
+ version: "21.2.21",
77232
77230
  ngImport: i0,
77233
77231
  type: HttpClientXsrfModule,
77234
77232
  providers: [HttpXsrfInterceptor, {
@@ -77272,7 +77270,7 @@ class HttpClientXsrfModule {
77272
77270
  class HttpClientModule {
77273
77271
  static ɵfac = ɵɵngDeclareFactory({
77274
77272
  minVersion: "12.0.0",
77275
- version: "21.2.20",
77273
+ version: "21.2.21",
77276
77274
  ngImport: i0,
77277
77275
  type: HttpClientModule,
77278
77276
  deps: [],
@@ -77280,13 +77278,13 @@ class HttpClientModule {
77280
77278
  });
77281
77279
  static ɵmod = ɵɵngDeclareNgModule({
77282
77280
  minVersion: "14.0.0",
77283
- version: "21.2.20",
77281
+ version: "21.2.21",
77284
77282
  ngImport: i0,
77285
77283
  type: HttpClientModule
77286
77284
  });
77287
77285
  static ɵinj = ɵɵngDeclareInjector({
77288
77286
  minVersion: "12.0.0",
77289
- version: "21.2.20",
77287
+ version: "21.2.21",
77290
77288
  ngImport: i0,
77291
77289
  type: HttpClientModule,
77292
77290
  providers: [provideHttpClient(withInterceptorsFromDi())]
@@ -77304,7 +77302,7 @@ class HttpClientModule {
77304
77302
  class HttpClientJsonpModule {
77305
77303
  static ɵfac = ɵɵngDeclareFactory({
77306
77304
  minVersion: "12.0.0",
77307
- version: "21.2.20",
77305
+ version: "21.2.21",
77308
77306
  ngImport: i0,
77309
77307
  type: HttpClientJsonpModule,
77310
77308
  deps: [],
@@ -77312,13 +77310,13 @@ class HttpClientJsonpModule {
77312
77310
  });
77313
77311
  static ɵmod = ɵɵngDeclareNgModule({
77314
77312
  minVersion: "14.0.0",
77315
- version: "21.2.20",
77313
+ version: "21.2.21",
77316
77314
  ngImport: i0,
77317
77315
  type: HttpClientJsonpModule
77318
77316
  });
77319
77317
  static ɵinj = ɵɵngDeclareInjector({
77320
77318
  minVersion: "12.0.0",
77321
- version: "21.2.20",
77319
+ version: "21.2.21",
77322
77320
  ngImport: i0,
77323
77321
  type: HttpClientJsonpModule,
77324
77322
  providers: [withJsonpSupport().ɵproviders]
@@ -77410,7 +77408,7 @@ var DEFAULT_FORMATS;
77410
77408
  const getUploadEventTmpl = (attrs, counter, fieldName) => {
77411
77409
  let eventTmpl = '';
77412
77410
  attrs.forEach((val, key) => {
77413
- if (key && key.endsWith('.event')) {
77411
+ if (key?.endsWith('.event')) {
77414
77412
  const eventName = key.split('.')[0];
77415
77413
  const counterTl = counter ? `${counter}.` : '';
77416
77414
  eventTmpl = ` ${eventTmpl} (${eventName})="${counterTl}triggerUploadEvent($event, '${eventName}', '${fieldName}', row)" `;
@@ -77501,7 +77499,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
77501
77499
  const counter = options.counter;
77502
77500
  const pCounter = options.pCounter;
77503
77501
  const uploadProps = options.uploadProps;
77504
- const eventTmpl = getUploadEventTmpl(attrs, counter, uploadProps && uploadProps.name);
77502
+ const eventTmpl = getUploadEventTmpl(attrs, counter, uploadProps?.name);
77505
77503
  if (uploadProps) {
77506
77504
  tmpl = `<form name="${uploadProps.formName}" ${innerTmpl}>
77507
77505
  <input focus-target class="file-upload" type="file" name="${uploadProps.name}" ${eventTmpl} ${showTmpl}/>
@@ -77595,7 +77593,7 @@ const addDatasetBoundExprAttribute = (childNode, attr, attrValue) => {
77595
77593
  const checkIsCustomPipeExpression = function (exp) {
77596
77594
  let customRegEx = /(custom(\s*:))/g;
77597
77595
  let matches = exp.match(customRegEx);
77598
- return matches && matches.length;
77596
+ return matches?.length;
77599
77597
  };
77600
77598
  // The bound value is replaced with {{item.fieldname}} here. This is needed by the liveList when compiling inner elements
77601
77599
  const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '', referenceName = 'item') => {
@@ -77626,7 +77624,7 @@ const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '',
77626
77624
  const parentDataSetLengthRegex = new RegExp('bind:\\s*\\(*' + parentDataSet + '\\)*\\.length\\)*');
77627
77625
  childNode.attrs.forEach((attr) => {
77628
77626
  // trim the extra spaces in bindings
77629
- let value = attr.value && attr.value.trim();
77627
+ let value = attr.value?.trim();
77630
77628
  if (startsWith(value, 'bind:')) {
77631
77629
  // The markup of root node(table, list, carousel) attributes conatains same dataset variable binding then those attributes need to be updated only for specific properties mentioned in widgetList map.
77632
77630
  if (!widgetList[nodeName] || (widgetList[nodeName] && widgetList[nodeName].indexOf(attr.name) > -1)) {
@@ -77646,7 +77644,7 @@ const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '',
77646
77644
  }
77647
77645
  }
77648
77646
  // Replace item if widget property is bound to livelist currentItem
77649
- if (currentItemRegEx && currentItemRegEx.test(value)) {
77647
+ if (currentItemRegEx?.test(value)) {
77650
77648
  // Change value from 'bind:Widgets.formName.formWidgets.listName.currentItem' to 'bind:Widgets.listName.currentItem'
77651
77649
  if (value.includes('.formWidgets') || value.includes('.filterWidgets')) {
77652
77650
  value = value.replace(formWidgetsRegex, 'Widgets');
@@ -77654,7 +77652,7 @@ const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '',
77654
77652
  addDatasetBoundExprAttribute(childNode, attr, value);
77655
77653
  value = value.replace(currentItemRegEx, referenceName);
77656
77654
  }
77657
- if (currentItemWidgetsRegEx && currentItemWidgetsRegEx.test(value)) {
77655
+ if (currentItemWidgetsRegEx?.test(value)) {
77658
77656
  value = value.replace(currentItemWidgetsRegEx, `${instance}currentItemWidgets`);
77659
77657
  }
77660
77658
  attr.value = value;
@@ -78214,7 +78212,7 @@ function simpleFunctionEvaluator(expr, ctx, locals) {
78214
78212
  args = args.split(',');
78215
78213
  let computedArgs = [];
78216
78214
  args.forEach((arg) => {
78217
- arg = arg && arg.trim();
78215
+ arg = arg?.trim();
78218
78216
  computedArgs.push(get$1(_ctx, arg));
78219
78217
  });
78220
78218
  return computedFn.bind(_ctx)(...computedArgs);
@@ -78293,10 +78291,8 @@ const fnExecutor = (expr, exprType) => {
78293
78291
  pipeArgs.unshift(hasPurePipe ? new Map() : undefined);
78294
78292
  fn = fn.bind(undefined, ...pipeArgs);
78295
78293
  }
78296
- else {
78297
- if (exprType === ExpressionType.Binding) {
78298
- fn = fn.bind(undefined, undefined);
78299
- }
78294
+ else if (exprType === ExpressionType.Binding) {
78295
+ fn = fn.bind(undefined, undefined);
78300
78296
  }
78301
78297
  return fn;
78302
78298
  };
@@ -78333,7 +78329,8 @@ const getUpdatedWatcInfo = (expr, acceptsArray, listener) => {
78333
78329
  }
78334
78330
  // listener accepts array
78335
78331
  // replace all except the last `[$i]` with `[0]` and return the expression.
78336
- var index = expr.lastIndexOf($I), _expr = expr.substr(0, index).replace($I, $0), restExpr = expr.substr(index + 5), arrayConsumerFn = listener;
78332
+ const index = expr.lastIndexOf($I), _expr = expr.substr(0, index).replace($I, $0), restExpr = expr.substr(index + 5);
78333
+ let arrayConsumerFn = listener;
78337
78334
  if (restExpr) {
78338
78335
  arrayConsumerFn = arrayConsumer.bind(undefined, listener, restExpr);
78339
78336
  }
@@ -78498,7 +78495,7 @@ const isLargeTabletPortrait = (landScapeWidth, landScapeHeight) => {
78498
78495
  const isMobile = () => isAndroid() || isIos() || isAndroidTablet() || $('#wm-mobile-display:visible').length > 0;
78499
78496
  const isTablet = () => {
78500
78497
  const scope = document.querySelector('.app-page').widget;
78501
- return scope && scope.viewParent.Viewport.isTabletType;
78498
+ return scope?.viewParent.Viewport.isTabletType;
78502
78499
  };
78503
78500
  const getAndroidVersion = () => {
78504
78501
  const match = (window.navigator.userAgent.toLowerCase()).match(/android\s([0-9\.]*)/);
@@ -78535,7 +78532,7 @@ const encodeUrlParams = (url) => {
78535
78532
  queryParams = queryParamsString.split('&');
78536
78533
  queryParams.forEach(function (param) {
78537
78534
  let decodedParamValue;
78538
- const i = includes(param, '=') ? param.indexOf('=') : (param && param.length), paramName = param.substr(0, i), paramValue = param.substr(i + 1);
78535
+ const i = includes(param, '=') ? param.indexOf('=') : (param?.length), paramName = param.substr(0, i), paramValue = param.substr(i + 1);
78539
78536
  // add the = for param name only when the param value exists in the given param or empty value is assigned
78540
78537
  if (paramValue || includes(param, '=')) {
78541
78538
  try {
@@ -78692,7 +78689,7 @@ function triggerFn(fn, ...argmnts) {
78692
78689
  args[start - 1] = arguments[start];
78693
78690
  }
78694
78691
  if (isFunction$1(fn)) {
78695
- return fn.apply(null, args);
78692
+ return fn(...args);
78696
78693
  }
78697
78694
  }
78698
78695
  /**
@@ -78727,7 +78724,7 @@ const hasOffsetStr = (dateStr) => {
78727
78724
  if (typeof dateStr !== 'string')
78728
78725
  return;
78729
78726
  const matches = dateStr.match(REGEX.ISO_DATE_FORMAT);
78730
- if (matches && matches[4]) {
78727
+ if (matches?.[4]) {
78731
78728
  return true;
78732
78729
  }
78733
78730
  };
@@ -78736,9 +78733,9 @@ const hasOffsetStr = (dateStr) => {
78736
78733
  */
78737
78734
  const getDateObj = (value, options, timezone) => {
78738
78735
  // Handling localization
78739
- if (options && options.pattern && options.pattern !== 'timestamp') {
78736
+ if (options?.pattern && options.pattern !== 'timestamp') {
78740
78737
  // Fix for WMS-19601, invalid date is returned on date selection.
78741
- const isNativePicker = (options && options.hasOwnProperty('isNativePicker')) ? get$1(options, 'isNativePicker') : isMobile();
78738
+ const isNativePicker = (options?.hasOwnProperty('isNativePicker')) ? get$1(options, 'isNativePicker') : isMobile();
78742
78739
  const pattern = isNativePicker ? 'YYYY/MM/DD HH:mm:ss' : momentPattern(options.pattern);
78743
78740
  value = moment(value, pattern).toDate();
78744
78741
  }
@@ -78807,7 +78804,7 @@ const getClonedObject = (object) => {
78807
78804
  };
78808
78805
  const getFiles = (formName, fieldName, isList) => {
78809
78806
  const files = get$1(document.forms, [formName, fieldName, 'files']);
78810
- return isList ? map$1(files, identity$1) : files && files[0];
78807
+ return isList ? map$1(files, identity$1) : files?.[0];
78811
78808
  };
78812
78809
  /*Function to generate a random number*/
78813
78810
  function random() {
@@ -78823,7 +78820,7 @@ const generateGUId = () => {
78823
78820
  const validateAccessRoles = (roleExp, loggedInUser) => {
78824
78821
  let roles;
78825
78822
  if (roleExp && loggedInUser) {
78826
- roles = roleExp && roleExp.split(',').map(Function.prototype.call, String.prototype.trim);
78823
+ roles = roleExp?.split(',').map(Function.prototype.call, String.prototype.trim);
78827
78824
  return intersection(roles, loggedInUser.userRoles).length;
78828
78825
  }
78829
78826
  return true;
@@ -78923,8 +78920,8 @@ const extractType = (typeRef) => {
78923
78920
  if (!typeRef) {
78924
78921
  return DataType.STRING;
78925
78922
  }
78926
- type = typeRef && typeRef.substring(typeRef.lastIndexOf('.') + 1);
78927
- type = type && type.toLowerCase();
78923
+ type = typeRef?.substring(typeRef.lastIndexOf('.') + 1);
78924
+ type = type?.toLowerCase();
78928
78925
  type = type === DataType.LOCALDATETIME ? DataType.DATETIME : type;
78929
78926
  return type;
78930
78927
  };
@@ -78951,7 +78948,7 @@ const scrollToElement = (element) => {
78951
78948
  };
78952
78949
  // Function will return whether the given element is in viewport or not
78953
78950
  const isElementInViewport = (element) => {
78954
- var rect = element.getBoundingClientRect();
78951
+ const rect = element.getBoundingClientRect();
78955
78952
  return (rect.top >= 0 &&
78956
78953
  rect.left >= 0 &&
78957
78954
  rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
@@ -78972,7 +78969,7 @@ const isPageable = (obj) => {
78972
78969
  };
78973
78970
  // paginated object may or may not contain 'empty' property. In either case, Pageable should return as true.
78974
78971
  const paginatedObj = omit(obj, 'empty');
78975
- return (isEqual(keys(pageable), keys(paginatedObj).sort()));
78972
+ return (isEqual(keys(pageable), keys(paginatedObj).sort((a, b) => a.localeCompare(b))));
78976
78973
  };
78977
78974
  /*
78978
78975
  * Util method to replace patterns in string with object keys or array values
@@ -79012,17 +79009,17 @@ const getValidDateObject = (val, options) => {
79012
79009
  const defaultMeridian = ['AM', 'PM'];
79013
79010
  const momentMeridian = moment()._locale.meridiem();
79014
79011
  // Updating localized meridians with default meridians when moment meridian is not defined
79015
- if (options && options.meridians && includes(defaultMeridian, momentMeridian)) {
79012
+ if (options?.meridians && includes(defaultMeridian, momentMeridian)) {
79016
79013
  forEach(options.meridians, (meridian, index) => {
79017
79014
  if (includes(val, meridian)) {
79018
79015
  val = val.replace(meridian, defaultMeridian[index]);
79019
79016
  }
79020
79017
  });
79021
79018
  }
79022
- const isNativePicker = (options && options.hasOwnProperty('isNativePicker')) ? get$1(options, 'isNativePicker') : isMobile();
79019
+ const isNativePicker = (options?.hasOwnProperty('isNativePicker')) ? get$1(options, 'isNativePicker') : isMobile();
79023
79020
  const pattern = isNativePicker ? (get$1(options, 'pattern') || 'YYYY/MM/DD HH:mm:ss') : (momentPattern(get$1(options, 'pattern')) || '');
79024
79021
  // Handling localization
79025
- if (options && options.pattern && options.pattern !== 'timestamp') {
79022
+ if (options?.pattern && options.pattern !== 'timestamp') {
79026
79023
  if (!isNaN(moment(val, pattern).valueOf())) { // Fix for [WMS-27658]: Date() doesn't support some formats like 'dd/MM/yyyy' so using moment() to format the value
79027
79024
  // check whether val is a valid date or not
79028
79025
  if (isIos()) {
@@ -79048,11 +79045,10 @@ const getValidDateObject = (val, options) => {
79048
79045
  if (!isNaN(val)) {
79049
79046
  val = parseInt(val, 10);
79050
79047
  }
79051
- else {
79052
- /*if the value is in HH:mm:ss format, it returns a wrong date. So append the date to the given value to get date*/
79053
- if (!(new Date(val).getTime())) {
79054
- val = moment((moment().format('YYYY-MM-DD') + ' ' + val), 'YYYY-MM-DD HH:mm:ss A');
79055
- }
79048
+ else
79049
+ /*if the value is in HH:mm:ss format, it returns a wrong date. So append the date to the given value to get date*/
79050
+ if (!(new Date(val).getTime())) {
79051
+ val = moment((moment().format('YYYY-MM-DD') + ' ' + val), 'YYYY-MM-DD HH:mm:ss A');
79056
79052
  }
79057
79053
  return new Date(moment(val).valueOf());
79058
79054
  };
@@ -79121,7 +79117,7 @@ const loadStyleSheet = (url, attr) => {
79121
79117
  const link = document.createElement('link');
79122
79118
  link.href = url;
79123
79119
  // To add attributes to link tag
79124
- if (attr && attr.name) {
79120
+ if (attr?.name) {
79125
79121
  link.setAttribute(attr.name, attr.value);
79126
79122
  }
79127
79123
  link.setAttribute('rel', 'stylesheet');
@@ -79218,7 +79214,7 @@ const setSessionStorageItem = (key, value) => {
79218
79214
  */
79219
79215
  const getSessionStorageItem = key => {
79220
79216
  // sanity check for this to work with ng-codegen
79221
- let item = window && window.sessionStorage && window.sessionStorage.getItem(_WM_APP_PROJECT.id);
79217
+ let item = window?.sessionStorage?.getItem(_WM_APP_PROJECT.id);
79222
79218
  if (item) {
79223
79219
  item = JSON.parse(item);
79224
79220
  return item[key];
@@ -79258,8 +79254,8 @@ const openLink = (link, target = '_self') => {
79258
79254
  /* util function to load the content from a url */
79259
79255
  const fetchContent = (dataType, url, inSync = false, success, error) => {
79260
79256
  return $.ajax({ type: 'get', dataType: dataType, url: url, async: !inSync })
79261
- .done(response => success && success(response))
79262
- .fail(reason => error && error(reason));
79257
+ .done(response => success?.(response))
79258
+ .fail(reason => error?.(reason));
79263
79259
  };
79264
79260
  /**
79265
79261
  * If the given object is a promise, then object is returned. Otherwise, a promise is resolved with the given object.
@@ -79652,7 +79648,7 @@ const setTranslation3dPosition = (containerElem, containerEleTransformations) =>
79652
79648
  * @param containerElem elemet for the WebKitCSSMatrix
79653
79649
  */
79654
79650
  const getWebkitTraslationMatrix = (containerElem) => {
79655
- if (!containerElem || !containerElem[0]) {
79651
+ if (!containerElem?.[0]) {
79656
79652
  return null;
79657
79653
  }
79658
79654
  const computedStyle = window.getComputedStyle(containerElem[0]);
@@ -79858,8 +79854,7 @@ const getFontConfig = () => {
79858
79854
  return getWmProjectProperties()?.fontConfig || getPreviewProperties();
79859
79855
  };
79860
79856
  const adjustVerticalPosition = (containerElem, parentElem, ref, ele) => {
79861
- const zoneRef = ref._ngZone || ref.ngZone;
79862
- zoneRef.onStable.subscribe(() => {
79857
+ runAfterStable(ref, () => {
79863
79858
  const containerHeight = ele
79864
79859
  ? parseInt(ele.css('height'), 10)
79865
79860
  : parseInt(containerElem.css('height'), 10);
@@ -80050,7 +80045,7 @@ class EventNotifier {
80050
80045
  eventListener = this._subject
80051
80046
  .subscribe((event) => {
80052
80047
  if (event && isObject(event) && event.name === eventName) {
80053
- callback.apply(undefined, event.data);
80048
+ callback(...event.data);
80054
80049
  }
80055
80050
  });
80056
80051
  return () => {
@@ -80171,8 +80166,8 @@ class Viewport {
80171
80166
  }
80172
80167
  this.mediaQuery = null;
80173
80168
  }
80174
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: Viewport, deps: [], target: FactoryTarget.Injectable }); }
80175
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: Viewport, providedIn: 'root' }); }
80169
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: Viewport, deps: [], target: FactoryTarget.Injectable }); }
80170
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: Viewport, providedIn: 'root' }); }
80176
80171
  }
80177
80172
  ɵɵngDeclareClassMetadata({ type: Viewport, decorators: [{
80178
80173
  type: Injectable,
@@ -80193,8 +80188,8 @@ class ConstantService {
80193
80188
  };
80194
80189
  this.VALIDATOR = VALIDATOR;
80195
80190
  }
80196
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ConstantService, deps: [], target: FactoryTarget.Injectable }); }
80197
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ConstantService, providedIn: 'root' }); }
80191
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ConstantService, deps: [], target: FactoryTarget.Injectable }); }
80192
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ConstantService, providedIn: 'root' }); }
80198
80193
  }
80199
80194
  ɵɵngDeclareClassMetadata({ type: ConstantService, decorators: [{
80200
80195
  type: Injectable,
@@ -80205,8 +80200,8 @@ class UtilsService {
80205
80200
  constructor() {
80206
80201
  assign(this, Utils);
80207
80202
  }
80208
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: UtilsService, deps: [], target: FactoryTarget.Injectable }); }
80209
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: UtilsService, providedIn: 'root' }); }
80203
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, deps: [], target: FactoryTarget.Injectable }); }
80204
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, providedIn: 'root' }); }
80210
80205
  }
80211
80206
  ɵɵngDeclareClassMetadata({ type: UtilsService, decorators: [{
80212
80207
  type: Injectable,
@@ -80237,8 +80232,8 @@ class FieldTypeService {
80237
80232
  BLOB: 'blob'
80238
80233
  });
80239
80234
  }
80240
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: FieldTypeService, deps: [], target: FactoryTarget.Injectable }); }
80241
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: FieldTypeService, providedIn: 'root' }); }
80235
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldTypeService, deps: [], target: FactoryTarget.Injectable }); }
80236
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldTypeService, providedIn: 'root' }); }
80242
80237
  }
80243
80238
  ɵɵngDeclareClassMetadata({ type: FieldTypeService, decorators: [{
80244
80239
  type: Injectable,
@@ -80271,8 +80266,8 @@ class FieldWidgetService {
80271
80266
  COLORPICKER: 'colorpicker'
80272
80267
  });
80273
80268
  }
80274
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: FieldWidgetService, deps: [], target: FactoryTarget.Injectable }); }
80275
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: FieldWidgetService, providedIn: 'root' }); }
80269
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldWidgetService, deps: [], target: FactoryTarget.Injectable }); }
80270
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldWidgetService, providedIn: 'root' }); }
80276
80271
  }
80277
80272
  ɵɵngDeclareClassMetadata({ type: FieldWidgetService, decorators: [{
80278
80273
  type: Injectable,
@@ -80292,7 +80287,7 @@ class ScriptLoaderService {
80292
80287
  });
80293
80288
  }
80294
80289
  load(...scripts) {
80295
- if (scripts && scripts.length) {
80290
+ if (scripts?.length) {
80296
80291
  return Promise.all(scripts.map(s => {
80297
80292
  return this.loadScript(s);
80298
80293
  }));
@@ -80301,7 +80296,7 @@ class ScriptLoaderService {
80301
80296
  }
80302
80297
  loadScript(name) {
80303
80298
  return new Promise((resolve, reject) => {
80304
- if (this.scripts[name] && this.scripts[name].loaded) {
80299
+ if (this.scripts[name]?.loaded) {
80305
80300
  resolve({ script: name, loaded: true });
80306
80301
  return;
80307
80302
  }
@@ -80341,8 +80336,8 @@ class ScriptLoaderService {
80341
80336
  document.getElementsByTagName('head')[0].appendChild(script);
80342
80337
  });
80343
80338
  }
80344
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ScriptLoaderService, deps: [{ token: HttpClient }], target: FactoryTarget.Injectable }); }
80345
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
80339
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ScriptLoaderService, deps: [{ token: HttpClient }], target: FactoryTarget.Injectable }); }
80340
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
80346
80341
  }
80347
80342
  ɵɵngDeclareClassMetadata({ type: ScriptLoaderService, decorators: [{
80348
80343
  type: Injectable,
@@ -80362,8 +80357,8 @@ class CustomPipeManager {
80362
80357
  hasCustomPipe(key) {
80363
80358
  return this.customPipes.has(key);
80364
80359
  }
80365
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: CustomPipeManager, deps: [], target: FactoryTarget.Injectable }); }
80366
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: CustomPipeManager, providedIn: 'root' }); }
80360
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomPipeManager, deps: [], target: FactoryTarget.Injectable }); }
80361
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomPipeManager, providedIn: 'root' }); }
80367
80362
  }
80368
80363
  ɵɵngDeclareClassMetadata({ type: CustomPipeManager, decorators: [{
80369
80364
  type: Injectable,
@@ -80394,8 +80389,8 @@ class CustomIconsLoaderService {
80394
80389
  .map(font => font.csspath);
80395
80390
  loadStyleSheets(cssPaths);
80396
80391
  }
80397
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: CustomIconsLoaderService, deps: [], target: FactoryTarget.Injectable }); }
80398
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: CustomIconsLoaderService, providedIn: 'root' }); }
80392
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomIconsLoaderService, deps: [], target: FactoryTarget.Injectable }); }
80393
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomIconsLoaderService, providedIn: 'root' }); }
80399
80394
  }
80400
80395
  ɵɵngDeclareClassMetadata({ type: CustomIconsLoaderService, decorators: [{
80401
80396
  type: Injectable,
@@ -80479,7 +80474,7 @@ class StatePersistence {
80479
80474
  return;
80480
80475
  }
80481
80476
  let parsedStateInfo = this.getStateInformation(mode);
80482
- if (parsedStateInfo && widget && widget.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
80477
+ if (parsedStateInfo && widget?.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
80483
80478
  parsedStateInfo = parsedStateInfo[widget.getAppInstance().activePageName];
80484
80479
  }
80485
80480
  if (get$1(parsedStateInfo, this.WIDGET_STATE_KEY)) {
@@ -80668,7 +80663,7 @@ class StatePersistence {
80668
80663
  }
80669
80664
  }
80670
80665
  // for Local and Session Storage, wrap state object inside page name so that widget name conflicts don't arise between pages.
80671
- if (widget && widget.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
80666
+ if (widget?.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
80672
80667
  if (stateObj) {
80673
80668
  stateObj[widget.getAppInstance().activePageName] = parsedObj;
80674
80669
  parsedObj = stateObj;
@@ -80755,7 +80750,7 @@ class StatePersistence {
80755
80750
  }
80756
80751
  // Fix for [WMS-24698]: when table is inside a prefab, state persistence key is like "TestLabel_11.TestLabel_1.staticVariable1Table1"
80757
80752
  // get(parsedObj, stateParam + '.' + key) is undefined so using (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key]) condition.
80758
- if (get$1(parsedObj, stateParam + '.' + key) || (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key])) {
80753
+ if (get$1(parsedObj, stateParam + '.' + key) || (parsedObj?.[stateParam]?.[key])) {
80759
80754
  if (subParam) {
80760
80755
  delete parsedObj[stateParam][key][subParam];
80761
80756
  }
@@ -80773,7 +80768,7 @@ class StatePersistence {
80773
80768
  delete parsedObj[key];
80774
80769
  }
80775
80770
  // for Local and Session Storage, wrap state object inside page name so that widget name conflicts don't arise between pages.
80776
- if (widget && widget.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
80771
+ if (widget?.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
80777
80772
  if (stateObj) {
80778
80773
  stateObj[widget.getAppInstance().activePageName] = parsedObj;
80779
80774
  parsedObj = stateObj;
@@ -80891,8 +80886,8 @@ class StatePersistence {
80891
80886
  }
80892
80887
  return response;
80893
80888
  }
80894
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: StatePersistence, deps: [], target: FactoryTarget.Injectable }); }
80895
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: StatePersistence, providedIn: 'root' }); }
80889
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: StatePersistence, deps: [], target: FactoryTarget.Injectable }); }
80890
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: StatePersistence, providedIn: 'root' }); }
80896
80891
  }
80897
80892
  ɵɵngDeclareClassMetadata({ type: StatePersistence, decorators: [{
80898
80893
  type: Injectable,
@@ -81223,8 +81218,8 @@ class PaginationService {
81223
81218
  lastScrollTop = scrollTop;
81224
81219
  });
81225
81220
  }
81226
- static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PaginationService, deps: [], target: FactoryTarget.Injectable }); }
81227
- static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PaginationService, providedIn: 'root' }); }
81221
+ static { this.ɵfac = ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationService, deps: [], target: FactoryTarget.Injectable }); }
81222
+ static { this.ɵprov = ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationService, providedIn: 'root' }); }
81228
81223
  }
81229
81224
  ɵɵngDeclareClassMetadata({ type: PaginationService, decorators: [{
81230
81225
  type: Injectable,
@@ -81509,11 +81504,11 @@ register('wm-progress-bar', () => {
81509
81504
  let type = getAttrValue(node, 'type');
81510
81505
  let datavalue = getAttrValue(node, 'datavalue');
81511
81506
  const replaceRegex = getReplaceRegex(boundExpr);
81512
- if (type && type.includes(boundExpr)) {
81507
+ if (type?.includes(boundExpr)) {
81513
81508
  type = type.replace(replaceRegex, '');
81514
81509
  getAttr(node, 'type').value = type;
81515
81510
  }
81516
- if (datavalue && datavalue.includes(boundExpr)) {
81511
+ if (datavalue?.includes(boundExpr)) {
81517
81512
  datavalue = datavalue.replace(replaceRegex, '');
81518
81513
  getAttr(node, 'datavalue').value = datavalue;
81519
81514
  }
@@ -81838,7 +81833,7 @@ register('wm-repeat-template', () => {
81838
81833
  return {
81839
81834
  requires: ['wm-accordion', 'wm-tabs', 'wm-wizard'],
81840
81835
  pre: (attrs, shared, parentAccordion, parentTab, parentWizard) => {
81841
- const widgetRef = (parentAccordion && parentAccordion.get('accordion_ref')) || (parentTab && parentTab.get('tabs_ref')) || (parentWizard && parentWizard.get('wizard_ref'));
81836
+ const widgetRef = (parentAccordion?.get('accordion_ref')) || (parentTab?.get('tabs_ref')) || (parentWizard?.get('wizard_ref'));
81842
81837
  if (widgetRef) {
81843
81838
  return `@if(${widgetRef}.fieldDefs && !${widgetRef}.fieldDefs.length){<div>{{${widgetRef}.nodatamessage}}</div>}
81844
81839
  @for (item of ${widgetRef}.fieldDefs; track item; let i = $index) {
@@ -82209,7 +82204,7 @@ const isDataSetWidget = widget => {
82209
82204
  };
82210
82205
  // Get filter widget applicable to the given type
82211
82206
  const getDataTableFilterWidget = type => {
82212
- let widget = fieldTypeWidgetTypeMap[type] && fieldTypeWidgetTypeMap[type][0];
82207
+ let widget = fieldTypeWidgetTypeMap[type]?.[0];
82213
82208
  if (type === DataType.BOOLEAN) {
82214
82209
  widget = FormWidgetType.SELECT;
82215
82210
  }
@@ -82235,7 +82230,7 @@ const getEditModeWidget = colDef => {
82235
82230
  if (colDef['related-entity-name'] && colDef['primary-key']) {
82236
82231
  return FormWidgetType.SELECT;
82237
82232
  }
82238
- return (fieldTypeWidgetTypeMap[colDef.type] && fieldTypeWidgetTypeMap[colDef.type][0]) || FormWidgetType.TEXT;
82233
+ return (fieldTypeWidgetTypeMap[colDef.type]?.[0]) || FormWidgetType.TEXT;
82239
82234
  };
82240
82235
 
82241
82236
  const tagName$Z = 'div';
@@ -82283,7 +82278,7 @@ const setDefaultPlaceholder = (attrs, widgetType, index) => {
82283
82278
  if (placeholder || placeholder === '') {
82284
82279
  return;
82285
82280
  }
82286
- placeholder = DEFAULT_PLACEHOLDERS.get(widgetType) && DEFAULT_PLACEHOLDERS.get(widgetType)[index];
82281
+ placeholder = DEFAULT_PLACEHOLDERS.get(widgetType)?.[index];
82287
82282
  if (placeholder) {
82288
82283
  attrs.set(prop, placeholder);
82289
82284
  }
@@ -82349,7 +82344,7 @@ const registerFormField = (isFormField) => {
82349
82344
  pre: (attrs, shared, parentForm, parentLiveForm, parentFilter, parentList) => {
82350
82345
  const counter = idGen$f.nextUid();
82351
82346
  const parent = parentForm || parentLiveForm || parentFilter;
82352
- const pCounter = (parent && parent.get('form_reference')) || 'form';
82347
+ const pCounter = (parent?.get('form_reference')) || 'form';
82353
82348
  const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
82354
82349
  const dataRole = isFormField ? 'form-field' : 'filter-field';
82355
82350
  const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
@@ -82359,7 +82354,7 @@ const registerFormField = (isFormField) => {
82359
82354
  </p>}`;
82360
82355
  const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
82361
82356
  const controlLayout = 'col-sm-12';
82362
- const isInList = pCounter === (parentList && parentList.get('parent_form_reference'));
82357
+ const isInList = pCounter === (parentList?.get('parent_form_reference'));
82363
82358
  attrs.set('__validationId', formFieldErrorMsgId);
82364
82359
  attrs.set('__widgetType', widgetType);
82365
82360
  attrs.delete('widget');
@@ -82461,11 +82456,11 @@ const addFormControlName = (children = []) => {
82461
82456
  }
82462
82457
  if (formWidgets$1.has(childNode.name)) {
82463
82458
  let key = childNode.attrs.find((attr) => attr.name === 'key' || attr.name === 'name');
82464
- key = key && key.value;
82459
+ key = key?.value;
82465
82460
  if (!key) {
82466
82461
  // for checkbox inside table inside form, key and name attrs are not available. Using datavalue to construct formControlName instead.
82467
82462
  let dataValue = childNode.attrs.find((attr) => attr.name === 'datavalue');
82468
- if (dataValue && dataValue.value) {
82463
+ if (dataValue?.value) {
82469
82464
  const regex = /\((.*)\)/;
82470
82465
  dataValue = dataValue.value.match(regex);
82471
82466
  if (dataValue && dataValue.length > 1) {
@@ -82497,7 +82492,7 @@ const buildTask = (directiveAttr = '') => {
82497
82492
  pre: (attrs, shared, parentLiveTable, parentLoginWidget) => {
82498
82493
  let tmpl;
82499
82494
  let dialogId;
82500
- const role = parentLoginWidget && parentLoginWidget.get('isLogin') ? 'app-login' : '';
82495
+ const role = parentLoginWidget?.get('isLogin') ? 'app-login' : '';
82501
82496
  const counter = idGen$e.nextUid();
82502
82497
  const dependsOn = attrs.get('dependson') ? `dependson="${attrs.get('dependson')}"` : '';
82503
82498
  if (dependsOn) {
@@ -82954,7 +82949,7 @@ register('wm-media-list', () => {
82954
82949
  }
82955
82950
  });
82956
82951
  };
82957
- if (attrObj && attrObj.value.startsWith('bind:')) {
82952
+ if (attrObj?.value.startsWith('bind:')) {
82958
82953
  bindDataset = attrObj.value.replace('bind:', '');
82959
82954
  }
82960
82955
  if (bindDataset) {
@@ -83023,7 +83018,7 @@ register(wmListTag, () => {
83023
83018
  },
83024
83019
  pre: (attrs, shared, parentForm, parentLiveForm) => {
83025
83020
  const parent = parentForm || parentLiveForm;
83026
- shared.set('form_reference', parent && parent.get('form_reference'));
83021
+ shared.set('form_reference', parent?.get('form_reference'));
83027
83022
  const listTemplateAttrsJson = shared.get('listTemplateAttrs');
83028
83023
  if (listTemplateAttrsJson) {
83029
83024
  // Escape double quotes so they can sit safely inside an HTML attribute
@@ -83055,7 +83050,6 @@ function copyAttribute(from, fromAttrName, to, toAttrName) {
83055
83050
  register('wm-list-action-template', () => {
83056
83051
  return {
83057
83052
  template: (node) => {
83058
- node.attrs.find(attr => attr.name === 'position').value;
83059
83053
  const btns = node.children
83060
83054
  .filter(e => e instanceof Element$2 && e.name === 'wm-button');
83061
83055
  // add swipe-position on button nodes to identify whether buttons are from left or right action templates
@@ -83259,7 +83253,7 @@ var popover_build$1 = /*#__PURE__*/Object.freeze({
83259
83253
 
83260
83254
  const tagName$r = 'div';
83261
83255
  const findChild = (node, childName) => {
83262
- const child = node && node.children.find(e => (e instanceof Element$2 && e.name === childName));
83256
+ const child = node?.children.find(e => (e instanceof Element$2 && e.name === childName));
83263
83257
  return child;
83264
83258
  };
83265
83259
  const createElement$1 = name => {
@@ -83973,7 +83967,7 @@ const getSaveCancelTemplate = () => {
83973
83967
  const getRowActionTmpl = (attrs) => {
83974
83968
  const action = attrs.get('action');
83975
83969
  const actionTmpl = action ? ` click.event.delayed="${action}" ` : '';
83976
- const saveCancelTmpl = action && action.includes('editRow(') ? getSaveCancelTemplate() : '';
83970
+ const saveCancelTmpl = action?.includes('editRow(') ? getSaveCancelTemplate() : '';
83977
83971
  const btnClass = action ? (action.includes('editRow(') ? 'edit edit-row-button' :
83978
83972
  (action.includes('deleteRow(') ? 'delete delete-row-button' : '')) : '';
83979
83973
  const tabIndex = attrs.get('tabindex') ? `tabindex="${attrs.get('tabindex')}"` : '';