@wavemaker/angular-codegen 11.5.2-rc.5436 → 11.5.3-next.26259

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.
@@ -58,9 +58,9 @@
58
58
  "scripts": [
59
59
  "./node_modules/lodash/lodash.min.js",
60
60
  "./node_modules/x2js/x2js.js",
61
- "./node_modules/d3/d3.min.js",
61
+ "./node_modules/d3/dist/d3.min.js",
62
62
  "./node_modules/he/he.js",
63
- "./node_modules/@wavemaker.com/nvd3/build/nv.d3.min.js",
63
+ "./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
64
64
  "./node_modules/jquery/dist/jquery.min.js",
65
65
  "./node_modules/jquery-ui/ui/disable-selection.js",
66
66
  "./node_modules/jquery-ui/ui/version.js",
@@ -198,9 +198,9 @@
198
198
  "scripts": [
199
199
  "./node_modules/lodash/lodash.min.js",
200
200
  "./node_modules/x2js/x2js.js",
201
- "./node_modules/d3/d3.min.js",
201
+ "./node_modules/d3/dist/d3.min.js",
202
202
  "./node_modules/he/he.js",
203
- "./node_modules/@wavemaker.com/nvd3/build/nv.d3.min.js",
203
+ "./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
204
204
  "./node_modules/jquery/dist/jquery.min.js",
205
205
  "./node_modules/jquery-ui/ui/disable-selection.js",
206
206
  "./node_modules/jquery-ui/ui/version.js",
@@ -34,14 +34,14 @@
34
34
  "@awesome-cordova-plugins/vibration": "5.39.1",
35
35
  "@babel/runtime": "^7.14.8",
36
36
  "@metrichor/jmespath": "^0.3.1",
37
- "@wavemaker.com/nvd3": "1.0.0",
38
37
  "@wavemaker/focus-trap": "^1.0.0",
39
- "@wavemaker/variables": "11.5.2-rc.5436",
38
+ "@wavemaker/nvd3": "1.8.6",
39
+ "@wavemaker/variables": "11.5.3-next.26259",
40
40
  "@ztree/ztree_v3": "^3.5.48",
41
41
  "angular-imask": "6.3.0",
42
42
  "angular2-websocket": "0.9.7",
43
43
  "core-js": "2.5.4",
44
- "d3": "3.5.17",
44
+ "d3": "7.8.5",
45
45
  "fullcalendar": "5.3.1",
46
46
  "hammerjs": "2.0.8",
47
47
  "he": "1.2.0",
@@ -5929,14 +5929,6 @@
5929
5929
  "@types/node": "*"
5930
5930
  }
5931
5931
  },
5932
- "node_modules/@wavemaker.com/nvd3": {
5933
- "version": "1.0.0",
5934
- "resolved": "https://registry.npmjs.org/@wavemaker.com/nvd3/-/nvd3-1.0.0.tgz",
5935
- "integrity": "sha512-KwdblvQbf0k51JYt1SJIhhkoQflWsOfgb6MVT9I/kDFpGmm5Z71PXOTNwOGnBFvuqGH6AJVQoM7StE0IK6OmXQ==",
5936
- "peerDependencies": {
5937
- "d3": "3.4.4"
5938
- }
5939
- },
5940
5932
  "node_modules/@wavemaker/focus-trap": {
5941
5933
  "version": "1.0.0",
5942
5934
  "resolved": "https://registry.npmjs.org/@wavemaker/focus-trap/-/focus-trap-1.0.0.tgz",
@@ -5946,10 +5938,18 @@
5946
5938
  "yarn": "^1.22.19"
5947
5939
  }
5948
5940
  },
5941
+ "node_modules/@wavemaker/nvd3": {
5942
+ "version": "1.8.6",
5943
+ "resolved": "https://registry.npmjs.org/@wavemaker/nvd3/-/nvd3-1.8.6.tgz",
5944
+ "integrity": "sha512-hZQ5sEajk0ohWg8fq80JbmHrAGMMw2xSI2JwsXhYtP6UGKKuu8xd4hWLHyWFEhzM4UGmuYg7Is1tvGeVVGYTEA==",
5945
+ "peerDependencies": {
5946
+ "d3": "7.8.5"
5947
+ }
5948
+ },
5949
5949
  "node_modules/@wavemaker/variables": {
5950
- "version": "11.5.2-rc.5436",
5951
- "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.5.2-rc.5436.tgz",
5952
- "integrity": "sha512-8Fp2h7Z+YZoB3OTzYR0+LLsbVd9amHcibI470SluzgcADGrOKljkfBUJ5qhawVvZMytOGPrM0C9sjtd7oyrNIg==",
5950
+ "version": "11.5.3-next.26259",
5951
+ "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.5.3-next.26259.tgz",
5952
+ "integrity": "sha512-er4MPZHNPbRJ/7zm7qDs9h+o7S6UAB993XNGo4XK/bxbSCsdmXVZdfE3PptStipThjUBbG95IbbqPSf/RW2y3w==",
5953
5953
  "dependencies": {
5954
5954
  "@metrichor/jmespath": "^0.3.1",
5955
5955
  "he": "^1.2.0",
@@ -9397,9 +9397,393 @@
9397
9397
  }
9398
9398
  },
9399
9399
  "node_modules/d3": {
9400
- "version": "3.5.17",
9401
- "resolved": "https://registry.npmjs.org/d3/-/d3-3.5.17.tgz",
9402
- "integrity": "sha512-yFk/2idb8OHPKkbAL8QaOaqENNoMhIaSHZerk3oQsECwkObkCpJyjYwCe+OHiq6UEdhe1m8ZGARRRO3ljFjlKg=="
9400
+ "version": "7.8.5",
9401
+ "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.5.tgz",
9402
+ "integrity": "sha512-JgoahDG51ncUfJu6wX/1vWQEqOflgXyl4MaHqlcSruTez7yhaRKR9i8VjjcQGeS2en/jnFivXuaIMnseMMt0XA==",
9403
+ "dependencies": {
9404
+ "d3-array": "3",
9405
+ "d3-axis": "3",
9406
+ "d3-brush": "3",
9407
+ "d3-chord": "3",
9408
+ "d3-color": "3",
9409
+ "d3-contour": "4",
9410
+ "d3-delaunay": "6",
9411
+ "d3-dispatch": "3",
9412
+ "d3-drag": "3",
9413
+ "d3-dsv": "3",
9414
+ "d3-ease": "3",
9415
+ "d3-fetch": "3",
9416
+ "d3-force": "3",
9417
+ "d3-format": "3",
9418
+ "d3-geo": "3",
9419
+ "d3-hierarchy": "3",
9420
+ "d3-interpolate": "3",
9421
+ "d3-path": "3",
9422
+ "d3-polygon": "3",
9423
+ "d3-quadtree": "3",
9424
+ "d3-random": "3",
9425
+ "d3-scale": "4",
9426
+ "d3-scale-chromatic": "3",
9427
+ "d3-selection": "3",
9428
+ "d3-shape": "3",
9429
+ "d3-time": "3",
9430
+ "d3-time-format": "4",
9431
+ "d3-timer": "3",
9432
+ "d3-transition": "3",
9433
+ "d3-zoom": "3"
9434
+ },
9435
+ "engines": {
9436
+ "node": ">=12"
9437
+ }
9438
+ },
9439
+ "node_modules/d3-array": {
9440
+ "version": "3.2.4",
9441
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
9442
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
9443
+ "dependencies": {
9444
+ "internmap": "1 - 2"
9445
+ },
9446
+ "engines": {
9447
+ "node": ">=12"
9448
+ }
9449
+ },
9450
+ "node_modules/d3-axis": {
9451
+ "version": "3.0.0",
9452
+ "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz",
9453
+ "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==",
9454
+ "engines": {
9455
+ "node": ">=12"
9456
+ }
9457
+ },
9458
+ "node_modules/d3-brush": {
9459
+ "version": "3.0.0",
9460
+ "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz",
9461
+ "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==",
9462
+ "dependencies": {
9463
+ "d3-dispatch": "1 - 3",
9464
+ "d3-drag": "2 - 3",
9465
+ "d3-interpolate": "1 - 3",
9466
+ "d3-selection": "3",
9467
+ "d3-transition": "3"
9468
+ },
9469
+ "engines": {
9470
+ "node": ">=12"
9471
+ }
9472
+ },
9473
+ "node_modules/d3-chord": {
9474
+ "version": "3.0.1",
9475
+ "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz",
9476
+ "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==",
9477
+ "dependencies": {
9478
+ "d3-path": "1 - 3"
9479
+ },
9480
+ "engines": {
9481
+ "node": ">=12"
9482
+ }
9483
+ },
9484
+ "node_modules/d3-color": {
9485
+ "version": "3.1.0",
9486
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
9487
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
9488
+ "engines": {
9489
+ "node": ">=12"
9490
+ }
9491
+ },
9492
+ "node_modules/d3-contour": {
9493
+ "version": "4.0.2",
9494
+ "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz",
9495
+ "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==",
9496
+ "dependencies": {
9497
+ "d3-array": "^3.2.0"
9498
+ },
9499
+ "engines": {
9500
+ "node": ">=12"
9501
+ }
9502
+ },
9503
+ "node_modules/d3-delaunay": {
9504
+ "version": "6.0.4",
9505
+ "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz",
9506
+ "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==",
9507
+ "dependencies": {
9508
+ "delaunator": "5"
9509
+ },
9510
+ "engines": {
9511
+ "node": ">=12"
9512
+ }
9513
+ },
9514
+ "node_modules/d3-dispatch": {
9515
+ "version": "3.0.1",
9516
+ "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz",
9517
+ "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==",
9518
+ "engines": {
9519
+ "node": ">=12"
9520
+ }
9521
+ },
9522
+ "node_modules/d3-drag": {
9523
+ "version": "3.0.0",
9524
+ "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz",
9525
+ "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==",
9526
+ "dependencies": {
9527
+ "d3-dispatch": "1 - 3",
9528
+ "d3-selection": "3"
9529
+ },
9530
+ "engines": {
9531
+ "node": ">=12"
9532
+ }
9533
+ },
9534
+ "node_modules/d3-dsv": {
9535
+ "version": "3.0.1",
9536
+ "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz",
9537
+ "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==",
9538
+ "dependencies": {
9539
+ "commander": "7",
9540
+ "iconv-lite": "0.6",
9541
+ "rw": "1"
9542
+ },
9543
+ "bin": {
9544
+ "csv2json": "bin/dsv2json.js",
9545
+ "csv2tsv": "bin/dsv2dsv.js",
9546
+ "dsv2dsv": "bin/dsv2dsv.js",
9547
+ "dsv2json": "bin/dsv2json.js",
9548
+ "json2csv": "bin/json2dsv.js",
9549
+ "json2dsv": "bin/json2dsv.js",
9550
+ "json2tsv": "bin/json2dsv.js",
9551
+ "tsv2csv": "bin/dsv2dsv.js",
9552
+ "tsv2json": "bin/dsv2json.js"
9553
+ },
9554
+ "engines": {
9555
+ "node": ">=12"
9556
+ }
9557
+ },
9558
+ "node_modules/d3-dsv/node_modules/commander": {
9559
+ "version": "7.2.0",
9560
+ "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
9561
+ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
9562
+ "engines": {
9563
+ "node": ">= 10"
9564
+ }
9565
+ },
9566
+ "node_modules/d3-dsv/node_modules/iconv-lite": {
9567
+ "version": "0.6.3",
9568
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
9569
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
9570
+ "dependencies": {
9571
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
9572
+ },
9573
+ "engines": {
9574
+ "node": ">=0.10.0"
9575
+ }
9576
+ },
9577
+ "node_modules/d3-ease": {
9578
+ "version": "3.0.1",
9579
+ "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
9580
+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
9581
+ "engines": {
9582
+ "node": ">=12"
9583
+ }
9584
+ },
9585
+ "node_modules/d3-fetch": {
9586
+ "version": "3.0.1",
9587
+ "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz",
9588
+ "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==",
9589
+ "dependencies": {
9590
+ "d3-dsv": "1 - 3"
9591
+ },
9592
+ "engines": {
9593
+ "node": ">=12"
9594
+ }
9595
+ },
9596
+ "node_modules/d3-force": {
9597
+ "version": "3.0.0",
9598
+ "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz",
9599
+ "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==",
9600
+ "dependencies": {
9601
+ "d3-dispatch": "1 - 3",
9602
+ "d3-quadtree": "1 - 3",
9603
+ "d3-timer": "1 - 3"
9604
+ },
9605
+ "engines": {
9606
+ "node": ">=12"
9607
+ }
9608
+ },
9609
+ "node_modules/d3-format": {
9610
+ "version": "3.1.0",
9611
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz",
9612
+ "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==",
9613
+ "engines": {
9614
+ "node": ">=12"
9615
+ }
9616
+ },
9617
+ "node_modules/d3-geo": {
9618
+ "version": "3.1.0",
9619
+ "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.0.tgz",
9620
+ "integrity": "sha512-JEo5HxXDdDYXCaWdwLRt79y7giK8SbhZJbFWXqbRTolCHFI5jRqteLzCsq51NKbUoX0PjBVSohxrx+NoOUujYA==",
9621
+ "dependencies": {
9622
+ "d3-array": "2.5.0 - 3"
9623
+ },
9624
+ "engines": {
9625
+ "node": ">=12"
9626
+ }
9627
+ },
9628
+ "node_modules/d3-hierarchy": {
9629
+ "version": "3.1.2",
9630
+ "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz",
9631
+ "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==",
9632
+ "engines": {
9633
+ "node": ">=12"
9634
+ }
9635
+ },
9636
+ "node_modules/d3-interpolate": {
9637
+ "version": "3.0.1",
9638
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
9639
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
9640
+ "dependencies": {
9641
+ "d3-color": "1 - 3"
9642
+ },
9643
+ "engines": {
9644
+ "node": ">=12"
9645
+ }
9646
+ },
9647
+ "node_modules/d3-path": {
9648
+ "version": "3.1.0",
9649
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
9650
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
9651
+ "engines": {
9652
+ "node": ">=12"
9653
+ }
9654
+ },
9655
+ "node_modules/d3-polygon": {
9656
+ "version": "3.0.1",
9657
+ "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz",
9658
+ "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==",
9659
+ "engines": {
9660
+ "node": ">=12"
9661
+ }
9662
+ },
9663
+ "node_modules/d3-quadtree": {
9664
+ "version": "3.0.1",
9665
+ "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz",
9666
+ "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==",
9667
+ "engines": {
9668
+ "node": ">=12"
9669
+ }
9670
+ },
9671
+ "node_modules/d3-random": {
9672
+ "version": "3.0.1",
9673
+ "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz",
9674
+ "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==",
9675
+ "engines": {
9676
+ "node": ">=12"
9677
+ }
9678
+ },
9679
+ "node_modules/d3-scale": {
9680
+ "version": "4.0.2",
9681
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
9682
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
9683
+ "dependencies": {
9684
+ "d3-array": "2.10.0 - 3",
9685
+ "d3-format": "1 - 3",
9686
+ "d3-interpolate": "1.2.0 - 3",
9687
+ "d3-time": "2.1.1 - 3",
9688
+ "d3-time-format": "2 - 4"
9689
+ },
9690
+ "engines": {
9691
+ "node": ">=12"
9692
+ }
9693
+ },
9694
+ "node_modules/d3-scale-chromatic": {
9695
+ "version": "3.0.0",
9696
+ "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.0.0.tgz",
9697
+ "integrity": "sha512-Lx9thtxAKrO2Pq6OO2Ua474opeziKr279P/TKZsMAhYyNDD3EnCffdbgeSYN5O7m2ByQsxtuP2CSDczNUIZ22g==",
9698
+ "dependencies": {
9699
+ "d3-color": "1 - 3",
9700
+ "d3-interpolate": "1 - 3"
9701
+ },
9702
+ "engines": {
9703
+ "node": ">=12"
9704
+ }
9705
+ },
9706
+ "node_modules/d3-selection": {
9707
+ "version": "3.0.0",
9708
+ "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz",
9709
+ "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
9710
+ "engines": {
9711
+ "node": ">=12"
9712
+ }
9713
+ },
9714
+ "node_modules/d3-shape": {
9715
+ "version": "3.2.0",
9716
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
9717
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
9718
+ "dependencies": {
9719
+ "d3-path": "^3.1.0"
9720
+ },
9721
+ "engines": {
9722
+ "node": ">=12"
9723
+ }
9724
+ },
9725
+ "node_modules/d3-time": {
9726
+ "version": "3.1.0",
9727
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
9728
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
9729
+ "dependencies": {
9730
+ "d3-array": "2 - 3"
9731
+ },
9732
+ "engines": {
9733
+ "node": ">=12"
9734
+ }
9735
+ },
9736
+ "node_modules/d3-time-format": {
9737
+ "version": "4.1.0",
9738
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
9739
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
9740
+ "dependencies": {
9741
+ "d3-time": "1 - 3"
9742
+ },
9743
+ "engines": {
9744
+ "node": ">=12"
9745
+ }
9746
+ },
9747
+ "node_modules/d3-timer": {
9748
+ "version": "3.0.1",
9749
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
9750
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
9751
+ "engines": {
9752
+ "node": ">=12"
9753
+ }
9754
+ },
9755
+ "node_modules/d3-transition": {
9756
+ "version": "3.0.1",
9757
+ "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz",
9758
+ "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==",
9759
+ "dependencies": {
9760
+ "d3-color": "1 - 3",
9761
+ "d3-dispatch": "1 - 3",
9762
+ "d3-ease": "1 - 3",
9763
+ "d3-interpolate": "1 - 3",
9764
+ "d3-timer": "1 - 3"
9765
+ },
9766
+ "engines": {
9767
+ "node": ">=12"
9768
+ },
9769
+ "peerDependencies": {
9770
+ "d3-selection": "2 - 3"
9771
+ }
9772
+ },
9773
+ "node_modules/d3-zoom": {
9774
+ "version": "3.0.0",
9775
+ "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz",
9776
+ "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==",
9777
+ "dependencies": {
9778
+ "d3-dispatch": "1 - 3",
9779
+ "d3-drag": "2 - 3",
9780
+ "d3-interpolate": "1 - 3",
9781
+ "d3-selection": "2 - 3",
9782
+ "d3-transition": "2 - 3"
9783
+ },
9784
+ "engines": {
9785
+ "node": ">=12"
9786
+ }
9403
9787
  },
9404
9788
  "node_modules/damerau-levenshtein": {
9405
9789
  "version": "1.0.8",
@@ -9721,6 +10105,14 @@
9721
10105
  "node": ">=0.10.0"
9722
10106
  }
9723
10107
  },
10108
+ "node_modules/delaunator": {
10109
+ "version": "5.0.0",
10110
+ "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.0.tgz",
10111
+ "integrity": "sha512-AyLvtyJdbv/U1GkiS6gUUzclRoAY4Gs75qkMygJJhU75LW4DNuSF2RMzpxs9jw9Oz1BobHjTdkG3zdP55VxAqw==",
10112
+ "dependencies": {
10113
+ "robust-predicates": "^3.0.0"
10114
+ }
10115
+ },
9724
10116
  "node_modules/delegates": {
9725
10117
  "version": "1.0.0",
9726
10118
  "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
@@ -12814,6 +13206,14 @@
12814
13206
  "node": ">= 0.4"
12815
13207
  }
12816
13208
  },
13209
+ "node_modules/internmap": {
13210
+ "version": "2.0.3",
13211
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",
13212
+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",
13213
+ "engines": {
13214
+ "node": ">=12"
13215
+ }
13216
+ },
12817
13217
  "node_modules/interpret": {
12818
13218
  "version": "1.4.0",
12819
13219
  "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
@@ -18615,6 +19015,11 @@
18615
19015
  "inherits": "^2.0.1"
18616
19016
  }
18617
19017
  },
19018
+ "node_modules/robust-predicates": {
19019
+ "version": "3.0.2",
19020
+ "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
19021
+ "integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg=="
19022
+ },
18618
19023
  "node_modules/rollup": {
18619
19024
  "version": "3.9.1",
18620
19025
  "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.9.1.tgz",
@@ -18669,6 +19074,11 @@
18669
19074
  "queue-microtask": "^1.2.2"
18670
19075
  }
18671
19076
  },
19077
+ "node_modules/rw": {
19078
+ "version": "1.3.3",
19079
+ "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz",
19080
+ "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
19081
+ },
18672
19082
  "node_modules/rxjs": {
18673
19083
  "version": "6.6.0",
18674
19084
  "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.0.tgz",
@@ -18741,8 +19151,7 @@
18741
19151
  "node_modules/safer-buffer": {
18742
19152
  "version": "2.1.2",
18743
19153
  "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
18744
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
18745
- "dev": true
19154
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
18746
19155
  },
18747
19156
  "node_modules/sanitize-filename": {
18748
19157
  "version": "1.6.3",
@@ -45,14 +45,14 @@
45
45
  "@awesome-cordova-plugins/vibration": "5.39.1",
46
46
  "@babel/runtime": "^7.14.8",
47
47
  "@metrichor/jmespath": "^0.3.1",
48
- "@wavemaker.com/nvd3": "1.0.0",
48
+ "@wavemaker/nvd3": "1.8.6",
49
49
  "@wavemaker/focus-trap": "^1.0.0",
50
- "@wavemaker/variables": "11.5.2-rc.5436",
50
+ "@wavemaker/variables": "11.5.3-next.26259",
51
51
  "@ztree/ztree_v3": "^3.5.48",
52
52
  "angular-imask": "6.3.0",
53
53
  "angular2-websocket": "0.9.7",
54
54
  "core-js": "2.5.4",
55
- "d3": "3.5.17",
55
+ "d3": "7.8.5",
56
56
  "fullcalendar": "5.3.1",
57
57
  "hammerjs": "2.0.8",
58
58
  "he": "1.2.0",
@@ -72,7 +72,7 @@
72
72
  "tslib": "2.4.1",
73
73
  "x2js": "^3.4.4",
74
74
  "zone.js": "~0.11.4",
75
- "@wavemaker/app-ng-runtime": "11.5.2-rc.5436"
75
+ "@wavemaker/app-ng-runtime": "11.5.3-next.26259"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -96668,6 +96668,23 @@ CoreModule$1.ɵinj = /*@__PURE__*/ ɵɵdefineInjector({ imports: [HttpClientModu
96668
96668
  }], null, null); })();
96669
96669
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(CoreModule$1, { imports: [HttpClientModule$1] }); })();
96670
96670
 
96671
+ class WmPipe {
96672
+ constructor(pipeName, customPipeManager) {
96673
+ this.pipeName = pipeName;
96674
+ this.customPipeManager = customPipeManager;
96675
+ this.pipeRef = this.customPipeManager ? this.customPipeManager.getCustomPipe(pipeName) : null;
96676
+ this.isCustomPipe = this.pipeRef && _.isFunction(this.pipeRef.formatter);
96677
+ }
96678
+ customFormatter(data, args) {
96679
+ try {
96680
+ return this.pipeRef.formatter(...args);
96681
+ }
96682
+ catch (error) {
96683
+ return data;
96684
+ }
96685
+ }
96686
+ }
96687
+
96671
96688
  const getEpochValue = data => {
96672
96689
  let epoch;
96673
96690
  // For data in form of string number ('123'), convert to number (123). And don't parse date objects.
@@ -96696,23 +96713,33 @@ TrailingZeroDecimalPipe.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "trailingZ
96696
96713
  name: 'trailingZeroDecimalPipe'
96697
96714
  }]
96698
96715
  }], function () { return [{ type: DecimalPipe }]; }, null); })();
96699
- class ToDatePipe {
96716
+ class ToDatePipe extends WmPipe {
96717
+ // This method calls the custom formatter fn after applying the exisitng date pattern
96718
+ returnFn(data, args) {
96719
+ if (this.isCustomPipe) {
96720
+ if (args) {
96721
+ args[0] = data;
96722
+ }
96723
+ return this.customFormatter(data, args);
96724
+ }
96725
+ return data;
96726
+ }
96700
96727
  transform(data, format, timezone, compInstance) {
96701
96728
  let timestamp;
96702
96729
  // 'null' is to be treated as a special case, If user wants to enter null value, empty string will be passed to the backend
96703
96730
  if (data === 'null' || data === '') {
96704
- return '';
96731
+ return this.returnFn('', arguments);
96705
96732
  }
96706
96733
  if (!isDefined$1(data)) {
96707
- return '';
96734
+ return this.returnFn('', arguments);
96708
96735
  }
96709
96736
  timestamp = getEpochValue(data);
96710
96737
  if (timestamp) {
96711
96738
  if (format === 'timestamp') {
96712
- return timestamp;
96739
+ return this.returnFn(timestamp, arguments);
96713
96740
  }
96714
96741
  if (format === 'UTC') {
96715
- return new Date(timestamp).toISOString();
96742
+ return this.returnFn(new Date(timestamp).toISOString(), arguments);
96716
96743
  }
96717
96744
  let formattedVal;
96718
96745
  const timeZone = this.i18nService ? this.i18nService.getTimezone(compInstance) : timezone;
@@ -96722,23 +96749,25 @@ class ToDatePipe {
96722
96749
  else {
96723
96750
  formattedVal = this.datePipe.transform(timestamp, format);
96724
96751
  }
96725
- return formattedVal;
96752
+ return this.returnFn(formattedVal, arguments);
96726
96753
  }
96727
- return '';
96754
+ return this.returnFn('', arguments);
96728
96755
  }
96729
- constructor(datePipe, i18nService) {
96756
+ constructor(datePipe, i18nService, customPipeManager) {
96757
+ super('toDate', customPipeManager);
96730
96758
  this.datePipe = datePipe;
96731
96759
  this.i18nService = i18nService;
96760
+ this.customPipeManager = customPipeManager;
96732
96761
  }
96733
96762
  }
96734
- ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(ɵɵdirectiveInject(DatePipe, 16), ɵɵdirectiveInject(AbstractI18nService$1, 16)); };
96763
+ ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(ɵɵdirectiveInject(DatePipe, 16), ɵɵdirectiveInject(AbstractI18nService$1, 16), ɵɵdirectiveInject(CustomPipeManager$1, 16)); };
96735
96764
  ToDatePipe.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true });
96736
96765
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ToDatePipe, [{
96737
96766
  type: Pipe,
96738
96767
  args: [{
96739
96768
  name: 'toDate'
96740
96769
  }]
96741
- }], function () { return [{ type: DatePipe }, { type: AbstractI18nService$1 }]; }, null); })();
96770
+ }], function () { return [{ type: DatePipe }, { type: AbstractI18nService$1 }, { type: CustomPipeManager$1 }]; }, null); })();
96742
96771
  class ToNumberPipe {
96743
96772
  transform(data, fracSize) {
96744
96773
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
@@ -125304,7 +125333,7 @@ class PipeProvider {
125304
125333
  this.preparePipeMeta(CurrencyPipe$1, 'currency', true, [this._locale]),
125305
125334
  this.preparePipeMeta(DatePipe$1, 'date', true, [this._locale]),
125306
125335
  this.preparePipeMeta(ToDatePipe, 'toDate', true, [
125307
- new DatePipe$1(this._locale)
125336
+ new DatePipe$1(this._locale), undefined, this.injector.get(CustomPipeManager)
125308
125337
  ]),
125309
125338
  this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
125310
125339
  new DecimalPipe$1(this._locale),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.5.2-rc.5436",
3
+ "version": "11.5.3-next.26259",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- global.$=require("jquery"),global._=require("lodash"),global._WM_APP_PROPERTIES={};const cheerio=require("cheerio"),{generatePageExpressions:generatePageExpressions}=require("./expr-parser-utils"),{readFile:readFile,isMobileProject:isMobileProject}=require("./wm-utils"),nodePolyfill=require("node-window-polyfill").register(!1),getRequiredScripts=e=>{const r={wmCalendar:["./node_modules/fullcalendar/main.min.js"],wmChart:["./node_modules/d3/d3.min.js","./node_modules/@wavemaker.com/nvd3/build/nv.d3.min.js"],wmChips:["./node_modules/jquery-ui/ui/widgets/sortable.js"],wmList:["./node_modules/jquery-ui/ui/widgets/droppable.js","./node_modules/jquery-ui/ui/widgets/sortable.js"],wmRichtexteditor:["./node_modules/summernote/dist/summernote-lite.min.js"],wmTable:[global._WM_PACKAGE_PATH+"/scripts/datatable/datatable.js","./node_modules/jquery-ui/ui/widgets/resizable.js"]};let t=[];return _.each(r,(r,i)=>{e("["+i+"]").length>0&&(t=t.concat(r))}),t=t.map(e=>e.replace(/^(\.\/)/,"").replace(/\//g,"-").replace(/@/g,"")),_.uniq(t)},includesCustomElement=e=>{return cheerio.load(e)('[html-custom-element="true"]').length},getPageContents=async(e,r,t,i,s,o,l)=>{try{const a=`${r}/${t}`,n=await readFile(`${a}.html`,"utf8");let u,d,m,p="{}";"LAYOUT"!==s&&(u=await readFile(`${a}.js`,"utf8"),d=await readFile(`${a}.css`,"utf8"),p=await readFile(`${a}.variables.json`,"utf8")),global._WM_APP_PROPERTIES=e,window=window||{},window._WM_APP_PROPERTIES=e;const c=(m=isMobileProject(e)?require("../dependencies/transpilation-mobile.cjs"):require("../dependencies/transpilation-web.cjs")).transpile(n),g=cheerio.load(c.markup),w=getRequiredScripts(g);return w.length>0&&(c.markup=c.markup.replace(">",` scripts-to-load="${w.join(",")}">`)),{markup:c.markup,script:u,styles:m.scopeComponentStyles(i,s,d),variables:p,expressions:l?generatePageExpressions(c.markup,p,o):"",requiredWMComponents:c.requiredWMComponents.filter(r=>!r.platformType||r.platformType===e.platformType),hasCustomElement:includesCustomElement(n)}}catch(e){throw console.error(`error occurred in transpilation of ${t}`,e),e}};module.exports={getPageContents:getPageContents};
1
+ global.$=require("jquery"),global._=require("lodash"),global._WM_APP_PROPERTIES={};const cheerio=require("cheerio"),{generatePageExpressions:generatePageExpressions}=require("./expr-parser-utils"),{readFile:readFile,isMobileProject:isMobileProject}=require("./wm-utils"),nodePolyfill=require("node-window-polyfill").register(!1),getRequiredScripts=e=>{const r={wmCalendar:["./node_modules/fullcalendar/main.min.js"],wmChart:["./node_modules/d3/d3.min.js","./node_modules/@wavemaker/nvd3/build/nv.d3.min.js"],wmChips:["./node_modules/jquery-ui/ui/widgets/sortable.js"],wmList:["./node_modules/jquery-ui/ui/widgets/droppable.js","./node_modules/jquery-ui/ui/widgets/sortable.js"],wmRichtexteditor:["./node_modules/summernote/dist/summernote-lite.min.js"],wmTable:[global._WM_PACKAGE_PATH+"/scripts/datatable/datatable.js","./node_modules/jquery-ui/ui/widgets/resizable.js"]};let t=[];return _.each(r,(r,i)=>{e("["+i+"]").length>0&&(t=t.concat(r))}),t=t.map(e=>e.replace(/^(\.\/)/,"").replace(/\//g,"-").replace(/@/g,"")),_.uniq(t)},includesCustomElement=e=>{return cheerio.load(e)('[html-custom-element="true"]').length},getPageContents=async(e,r,t,i,s,o,l)=>{try{const a=`${r}/${t}`,n=await readFile(`${a}.html`,"utf8");let u,d,m,p="{}";"LAYOUT"!==s&&(u=await readFile(`${a}.js`,"utf8"),d=await readFile(`${a}.css`,"utf8"),p=await readFile(`${a}.variables.json`,"utf8")),global._WM_APP_PROPERTIES=e,window=window||{},window._WM_APP_PROPERTIES=e;const c=(m=isMobileProject(e)?require("../dependencies/transpilation-mobile.cjs"):require("../dependencies/transpilation-web.cjs")).transpile(n),g=cheerio.load(c.markup),w=getRequiredScripts(g);return w.length>0&&(c.markup=c.markup.replace(">",` scripts-to-load="${w.join(",")}">`)),{markup:c.markup,script:u,styles:m.scopeComponentStyles(i,s,d),variables:p,expressions:l?generatePageExpressions(c.markup,p,o):"",requiredWMComponents:c.requiredWMComponents.filter(r=>!r.platformType||r.platformType===e.platformType),hasCustomElement:includesCustomElement(n)}}catch(e){throw console.error(`error occurred in transpilation of ${t}`,e),e}};module.exports={getPageContents:getPageContents};
@@ -1 +1 @@
1
- const cheerio=require("cheerio"),{writeFile:writeFile,readFileSync:readFileSync,readDir:readDir,isMobileProject:isMobileProject}=require("./wm-utils"),markScriptsAsLazy=e=>{const s=["./node_modules/d3/d3.min.js","./node_modules/@wavemaker.com/nvd3/build/nv.d3.min.js","./node_modules/fullcalendar/main.min.js","./node_modules/summernote/dist/summernote-lite.min.js",global._WM_PACKAGE_PATH+"/scripts/datatable/datatable.js","./node_modules/jquery-ui/ui/widgets/sortable.js","./node_modules/jquery-ui/ui/widgets/droppable.js","./node_modules/jquery-ui/ui/widgets/resizable.js","./node_modules/hammerjs/hammer.min.js","./node_modules/iscroll/build/iscroll.js"];let t=e.replace(/^(\.\/)/,"").replace(/\//g,"-").replace(/@/g,"");return t=t.substring(0,t.lastIndexOf(".")),t+="-NOHASH",s.includes(e)?{input:e,inject:!1,bundleName:t}:e},setBuildCustomizations=async e=>{const s=e.projects["angular-app"].architect.build,t=s.options.scripts;s.options.scripts=t.map(e=>markScriptsAsLazy(e))},addToScripts=async(e,s,t=[],i=[])=>{const n=`${s}/angular.json`;let o=readFileSync(n,!0);const a=o.projects["angular-app"].architect.build;let r=a.options.scripts;const l=`${s+"/src/app/extensions"}`,c=await readDir(l);c.length&&i.push("./src/app/extensions/"+c[0]),a.options.scripts=[...t,...r,...i],await writeFile(n,JSON.stringify(o,null,4))},updateAngularJSON=async(e,s,t,i,n,o,a,r,l,c)=>{const d=`${s}/angular.json`;let u=readFileSync(d,!0);const p=u.projects["angular-app"].architect.build;a&&a.trim().length>0&&(p.options.deployUrl=a);const m=p.options.styles;if(isMobileProject(t)){const e=m.findIndex(e=>{let s="object"==typeof e;if(s){return(s?e.input:e).includes("themes")}return!1}),s=m[e].input;m[e].bundleName="wm-android-styles",m[e].input=m[e].input.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/android/style.css`);const t=Object.assign({},m[e]);t.input=s.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/ios/style.css`),t.bundleName="wm-ios-styles",m.push(t);const n=m.findIndex(e=>{let s="object"==typeof e;if(s){return"src/assets/app.css"===(s?e.input:e)}return!1});m[n].bundleName="wm-android-styles";const o=Object.assign({},m[n]);o.bundleName="wm-ios-styles",m.push(o)}m.forEach((e,s)=>{let t="object"==typeof e,n=t?e.input:e;!n.includes("themes")||n.includes("/android/")||n.includes("/ios/")||(t?m[s].input=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`):m[s]=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`))}),await setBuildCustomizations(u);const g=p.configurations.production;if(g.aot=!1!==r.aot,g.buildOptimizer=!1!==r.buildOptimizer,c){const e=p.options.assets;e.push("src/manifest.json"),e.push("src/wmsw-worker.js"),g.serviceWorker=!0,g.ngswConfigPath="ngsw-config.json",delete p.options.customWebpackConfig}await writeFile(d,JSON.stringify(u,null,4))};module.exports={updateAngularJSON:updateAngularJSON,addToScripts:addToScripts};
1
+ const cheerio=require("cheerio"),{writeFile:writeFile,readFileSync:readFileSync,readDir:readDir,isMobileProject:isMobileProject}=require("./wm-utils"),markScriptsAsLazy=e=>{const s=["./node_modules/d3/d3.min.js","./node_modules/@wavemaker/nvd3/build/nv.d3.min.js","./node_modules/fullcalendar/main.min.js","./node_modules/summernote/dist/summernote-lite.min.js",global._WM_PACKAGE_PATH+"/scripts/datatable/datatable.js","./node_modules/jquery-ui/ui/widgets/sortable.js","./node_modules/jquery-ui/ui/widgets/droppable.js","./node_modules/jquery-ui/ui/widgets/resizable.js","./node_modules/hammerjs/hammer.min.js","./node_modules/iscroll/build/iscroll.js"];let t=e.replace(/^(\.\/)/,"").replace(/\//g,"-").replace(/@/g,"");return t=t.substring(0,t.lastIndexOf(".")),t+="-NOHASH",s.includes(e)?{input:e,inject:!1,bundleName:t}:e},setBuildCustomizations=async e=>{const s=e.projects["angular-app"].architect.build,t=s.options.scripts;s.options.scripts=t.map(e=>markScriptsAsLazy(e))},addToScripts=async(e,s,t=[],i=[])=>{const n=`${s}/angular.json`;let o=readFileSync(n,!0);const a=o.projects["angular-app"].architect.build;let r=a.options.scripts;const l=`${s+"/src/app/extensions"}`,c=await readDir(l);c.length&&i.push("./src/app/extensions/"+c[0]),a.options.scripts=[...t,...r,...i],await writeFile(n,JSON.stringify(o,null,4))},updateAngularJSON=async(e,s,t,i,n,o,a,r,l,c)=>{const d=`${s}/angular.json`;let u=readFileSync(d,!0);const p=u.projects["angular-app"].architect.build;a&&a.trim().length>0&&(p.options.deployUrl=a);const m=p.options.styles;if(isMobileProject(t)){const e=m.findIndex(e=>{let s="object"==typeof e;if(s){return(s?e.input:e).includes("themes")}return!1}),s=m[e].input;m[e].bundleName="wm-android-styles",m[e].input=m[e].input.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/android/style.css`);const t=Object.assign({},m[e]);t.input=s.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/ios/style.css`),t.bundleName="wm-ios-styles",m.push(t);const n=m.findIndex(e=>{let s="object"==typeof e;if(s){return"src/assets/app.css"===(s?e.input:e)}return!1});m[n].bundleName="wm-android-styles";const o=Object.assign({},m[n]);o.bundleName="wm-ios-styles",m.push(o)}m.forEach((e,s)=>{let t="object"==typeof e,n=t?e.input:e;!n.includes("themes")||n.includes("/android/")||n.includes("/ios/")||(t?m[s].input=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`):m[s]=n.replace(new RegExp("/[a-z]*/style.css$"),`/${i.activeTheme}/style.css`))}),await setBuildCustomizations(u);const g=p.configurations.production;if(g.aot=!1!==r.aot,g.buildOptimizer=!1!==r.buildOptimizer,c){const e=p.options.assets;e.push("src/manifest.json"),e.push("src/wmsw-worker.js"),g.serviceWorker=!0,g.ngswConfigPath="ngsw-config.json",delete p.options.customWebpackConfig}await writeFile(d,JSON.stringify(u,null,4))};module.exports={updateAngularJSON:updateAngularJSON,addToScripts:addToScripts};