@mediafly/js-ui 51.3.2 → 51.3.3-0

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 (40) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/constants/constants.js +2 -1
  3. package/lib/constants/constants.js.map +1 -1
  4. package/lib/date-input/date-input.js +33 -12
  5. package/lib/date-input/date-input.js.map +1 -1
  6. package/lib/date-input/validate-date.js +12 -8
  7. package/lib/date-input/validate-date.js.map +1 -1
  8. package/lib/date-time-zone-picker/date-time-zone-factory.js +62 -49
  9. package/lib/date-time-zone-picker/date-time-zone-factory.js.map +1 -1
  10. package/lib/date-time-zone-picker/date-time-zone-picker.html +1 -1
  11. package/lib/date-time-zone-picker/date-time-zone-picker.js +82 -37
  12. package/lib/date-time-zone-picker/date-time-zone-picker.js.map +1 -1
  13. package/lib/date-time-zone-picker/datepicker.html +1 -2
  14. package/lib/date-time-zone-picker/datepicker.js +71 -19
  15. package/lib/date-time-zone-picker/datepicker.js.map +1 -1
  16. package/lib/date-time-zone-picker/time-format-filter.js +6 -6
  17. package/lib/date-time-zone-picker/time-format-filter.js.map +1 -1
  18. package/lib/date-time-zone-picker/timepicker.js +35 -20
  19. package/lib/date-time-zone-picker/timepicker.js.map +1 -1
  20. package/lib/time-input/time-input.js +27 -23
  21. package/lib/time-input/time-input.js.map +1 -1
  22. package/lib/time-input/validate-time.js +6 -2
  23. package/lib/time-input/validate-time.js.map +1 -1
  24. package/lib/tsconfig.deploy.tsbuildinfo +166 -24
  25. package/package.json +4 -4
  26. package/src/components/constants/constants.js +2 -1
  27. package/src/components/date-input/date-input.js +31 -12
  28. package/src/components/date-input/validate-date.js +14 -10
  29. package/src/components/date-time-zone-picker/date-time-zone-factory.ts +62 -49
  30. package/src/components/date-time-zone-picker/date-time-zone-picker.html +1 -1
  31. package/src/components/date-time-zone-picker/date-time-zone-picker.ts +87 -44
  32. package/src/components/date-time-zone-picker/datepicker.html +1 -2
  33. package/src/components/date-time-zone-picker/datepicker.ts +76 -20
  34. package/src/components/date-time-zone-picker/time-format-filter.ts +6 -6
  35. package/src/components/date-time-zone-picker/timepicker.js +46 -28
  36. package/src/components/time-input/time-input.js +27 -24
  37. package/src/components/time-input/validate-time.js +6 -2
  38. package/src/index.spec.js +1 -1
  39. package/webpack.config.js +6 -0
  40. package/tsconfig.tsbuildinfo +0 -7221
@@ -386,13 +386,58 @@
386
386
  "signature": "b896a663ff08ce92a167b7bc598edf6f4a1c13ef5b797ca2e3ffc9b0e779e48e",
387
387
  "affectsGlobalScope": false
388
388
  },
389
- "../node_modules/moment/ts3.1-typings/moment.d.ts": {
390
- "version": "f97edc4d3b4dd0b32766e9633086497565c37657fb591cc84a35864db4bc2fc5",
391
- "signature": "f97edc4d3b4dd0b32766e9633086497565c37657fb591cc84a35864db4bc2fc5",
389
+ "../node_modules/@types/luxon/src/zone.d.ts": {
390
+ "version": "5339f84dfcb7b04aa1c2b4d7713d6128039381447f07abc2e48d36685e2eef44",
391
+ "signature": "5339f84dfcb7b04aa1c2b4d7713d6128039381447f07abc2e48d36685e2eef44",
392
+ "affectsGlobalScope": false
393
+ },
394
+ "../node_modules/@types/luxon/src/settings.d.ts": {
395
+ "version": "fb35a61a39c933d31b5b2549d906b2c932a1486622958586f662dbd4b2fe72e6",
396
+ "signature": "fb35a61a39c933d31b5b2549d906b2c932a1486622958586f662dbd4b2fe72e6",
397
+ "affectsGlobalScope": false
398
+ },
399
+ "../node_modules/@types/luxon/src/_util.d.ts": {
400
+ "version": "24e2728268be1ad2407bab004549d2753a49b2acb0f117a04c4e28ffb3ecdd4f",
401
+ "signature": "24e2728268be1ad2407bab004549d2753a49b2acb0f117a04c4e28ffb3ecdd4f",
402
+ "affectsGlobalScope": false
403
+ },
404
+ "../node_modules/@types/luxon/src/misc.d.ts": {
405
+ "version": "aff159b14eba59afe98a88fe6f57881ba02895fb9763512dda9083497bdcd0e6",
406
+ "signature": "aff159b14eba59afe98a88fe6f57881ba02895fb9763512dda9083497bdcd0e6",
407
+ "affectsGlobalScope": false
408
+ },
409
+ "../node_modules/@types/luxon/src/duration.d.ts": {
410
+ "version": "b6bc775d112a7761a50594fc589aeaa8893c139ffe3db2b4999756e17f367a8d",
411
+ "signature": "b6bc775d112a7761a50594fc589aeaa8893c139ffe3db2b4999756e17f367a8d",
412
+ "affectsGlobalScope": false
413
+ },
414
+ "../node_modules/@types/luxon/src/interval.d.ts": {
415
+ "version": "79f8edca4c97e2fa77473df1d8fda43daf4501a4c721af66d389ab771dcff207",
416
+ "signature": "79f8edca4c97e2fa77473df1d8fda43daf4501a4c721af66d389ab771dcff207",
417
+ "affectsGlobalScope": false
418
+ },
419
+ "../node_modules/@types/luxon/src/datetime.d.ts": {
420
+ "version": "7ca4605ebe31b24536fbcda17567275c6355c64ef4ac8ed9ff9b19b59adeb2f2",
421
+ "signature": "7ca4605ebe31b24536fbcda17567275c6355c64ef4ac8ed9ff9b19b59adeb2f2",
422
+ "affectsGlobalScope": false
423
+ },
424
+ "../node_modules/@types/luxon/src/info.d.ts": {
425
+ "version": "26080058b725ac0b480241751255b4391f722263778e84e66a62068705aafd3c",
426
+ "signature": "26080058b725ac0b480241751255b4391f722263778e84e66a62068705aafd3c",
427
+ "affectsGlobalScope": false
428
+ },
429
+ "../node_modules/@types/luxon/src/luxon.d.ts": {
430
+ "version": "46afbf46c3d62eac2afead3a2011d506637bf4f2c05e1fd64bbf7e2bb2947b7c",
431
+ "signature": "46afbf46c3d62eac2afead3a2011d506637bf4f2c05e1fd64bbf7e2bb2947b7c",
432
+ "affectsGlobalScope": false
433
+ },
434
+ "../node_modules/@types/luxon/index.d.ts": {
435
+ "version": "02f634f868780eaaff5e2d3fb4570dac8e7f018a8650bb9a0ac1deb4915df8d1",
436
+ "signature": "02f634f868780eaaff5e2d3fb4570dac8e7f018a8650bb9a0ac1deb4915df8d1",
392
437
  "affectsGlobalScope": false
393
438
  },
394
439
  "../src/components/constants/constants.js": {
395
- "version": "57ab21b936320cb6bcb023ab75f500d39a0686725a43f12cc6a10d98739e93dd",
440
+ "version": "cacc65abc9eb01f46e7ed0eb197591ab185c3987841180b2490a89184520d2db",
396
441
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
397
442
  "affectsGlobalScope": false
398
443
  },
@@ -402,12 +447,12 @@
402
447
  "affectsGlobalScope": false
403
448
  },
404
449
  "../src/components/date-input/validate-date.js": {
405
- "version": "d81c0449f51910b79a55fed18c3e0766d21b32b6834d6f695e573da4d299fc8c",
450
+ "version": "ebe7da7090a6de60a0239cac46353c6078f4cf92d3413229bc40942d512db971",
406
451
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
407
452
  "affectsGlobalScope": false
408
453
  },
409
454
  "../src/components/date-input/date-input.js": {
410
- "version": "cf110397d2bcf6739ae3d9b45bf381853e43c35fc571c40f6354596bcdc2a638",
455
+ "version": "d04cdd8d8a5be2c5a5a10345ad3d4db9cf51756622075bceddbf279dd63742bf",
411
456
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
412
457
  "affectsGlobalScope": false
413
458
  },
@@ -417,7 +462,7 @@
417
462
  "affectsGlobalScope": false
418
463
  },
419
464
  "../src/components/date-time-zone-picker/date-time-zone-factory.ts": {
420
- "version": "88c3e3ebcdb80c6bebbe7ed55f24d622436c5fb16aa8d2532a269e26ead50a70",
465
+ "version": "deb87bff70e5651092c4d3cb03807127a64493a91853cd5b07368a9f6bfdac9b",
421
466
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
422
467
  "affectsGlobalScope": false
423
468
  },
@@ -437,12 +482,12 @@
437
482
  "affectsGlobalScope": false
438
483
  },
439
484
  "../src/components/date-time-zone-picker/datepicker.ts": {
440
- "version": "e1c9d3712e4db5364405743090fc2b0e4bbf290f25b72455eb6598a0530810c6",
485
+ "version": "f3020ad80bdc4631ef5273d313181b3cda2d43de0a48ccf015f9347f7b1ef7d1",
441
486
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
442
487
  "affectsGlobalScope": false
443
488
  },
444
489
  "../src/components/date-time-zone-picker/time-format-filter.ts": {
445
- "version": "0e8aef3c3fe0dd137b51a34202e7282a5c24a3a8224a2988c1dfee62e09a69db",
490
+ "version": "69f75a7d4d56439301e7e90f9941830e28be4b8d774f84ceb4764196dea22680",
446
491
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
447
492
  "affectsGlobalScope": false
448
493
  },
@@ -452,12 +497,12 @@
452
497
  "affectsGlobalScope": false
453
498
  },
454
499
  "../src/components/date-time-zone-picker/timepicker.js": {
455
- "version": "0a21468fae6cdd8289491eebf062872cad2f6294c9fbd4c6c678055d1e8a8869",
500
+ "version": "bf7e27fb27ac1e408472fad5432d9f10f2cd30a1267808be1324d799ec00a613",
456
501
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
457
502
  "affectsGlobalScope": false
458
503
  },
459
504
  "../src/components/date-time-zone-picker/date-time-zone-picker.ts": {
460
- "version": "3e098b6a95dabfbcb4c494e64c263af04b4ac20f217469f27ac8170e7dd7623c",
505
+ "version": "a2ce9c9f5855d89ac93aca315f5c0966055ced36cafafd3b2c5c2df7af7c8859",
461
506
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
462
507
  "affectsGlobalScope": false
463
508
  },
@@ -1452,12 +1497,12 @@
1452
1497
  "affectsGlobalScope": false
1453
1498
  },
1454
1499
  "../src/components/time-input/validate-time.js": {
1455
- "version": "5ef0b1140a2cbffe7b8758a41f68bfb05a0674a01d48c0f0359f2dbdce39f3dc",
1500
+ "version": "605841d9afed8bd7fcdbec6e83df0b47ec6eaf7b77257672cf4dc2433e2a71a5",
1456
1501
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
1457
1502
  "affectsGlobalScope": false
1458
1503
  },
1459
1504
  "../src/components/time-input/time-input.js": {
1460
- "version": "2c3612dd8db98661ce806ff179b82b218465988a5d530709b2062e9d1fa64771",
1505
+ "version": "6597be84973f5c0256419a6da15681f707033623c0d37387aff480ef39cae4a5",
1461
1506
  "signature": "f761c91419d0a89422a0004ef1a92929dd4d2d5e5c16758654d8b0467d1998c6",
1462
1507
  "affectsGlobalScope": false
1463
1508
  },
@@ -2510,6 +2555,50 @@
2510
2555
  "../node_modules/@types/lodash/common/string.d.ts",
2511
2556
  "../node_modules/@types/lodash/common/util.d.ts"
2512
2557
  ],
2558
+ "../node_modules/@types/luxon/index.d.ts": [
2559
+ "../node_modules/@types/luxon/src/luxon.d.ts"
2560
+ ],
2561
+ "../node_modules/@types/luxon/src/_util.d.ts": [
2562
+ "../node_modules/@types/luxon/src/settings.d.ts"
2563
+ ],
2564
+ "../node_modules/@types/luxon/src/datetime.d.ts": [
2565
+ "../node_modules/@types/luxon/index.d.ts",
2566
+ "../node_modules/@types/luxon/src/_util.d.ts",
2567
+ "../node_modules/@types/luxon/src/duration.d.ts",
2568
+ "../node_modules/@types/luxon/src/interval.d.ts",
2569
+ "../node_modules/@types/luxon/src/zone.d.ts"
2570
+ ],
2571
+ "../node_modules/@types/luxon/src/duration.d.ts": [
2572
+ "../node_modules/@types/luxon/src/_util.d.ts",
2573
+ "../node_modules/@types/luxon/src/datetime.d.ts",
2574
+ "../node_modules/@types/luxon/src/misc.d.ts"
2575
+ ],
2576
+ "../node_modules/@types/luxon/src/info.d.ts": [
2577
+ "../node_modules/@types/luxon/src/datetime.d.ts",
2578
+ "../node_modules/@types/luxon/src/misc.d.ts",
2579
+ "../node_modules/@types/luxon/src/zone.d.ts"
2580
+ ],
2581
+ "../node_modules/@types/luxon/src/interval.d.ts": [
2582
+ "../node_modules/@types/luxon/src/_util.d.ts",
2583
+ "../node_modules/@types/luxon/src/datetime.d.ts",
2584
+ "../node_modules/@types/luxon/src/duration.d.ts"
2585
+ ],
2586
+ "../node_modules/@types/luxon/src/luxon.d.ts": [
2587
+ "../node_modules/@types/luxon/src/datetime.d.ts",
2588
+ "../node_modules/@types/luxon/src/duration.d.ts",
2589
+ "../node_modules/@types/luxon/src/info.d.ts",
2590
+ "../node_modules/@types/luxon/src/interval.d.ts",
2591
+ "../node_modules/@types/luxon/src/misc.d.ts",
2592
+ "../node_modules/@types/luxon/src/settings.d.ts",
2593
+ "../node_modules/@types/luxon/src/zone.d.ts"
2594
+ ],
2595
+ "../node_modules/@types/luxon/src/settings.d.ts": [
2596
+ "../node_modules/@types/luxon/src/datetime.d.ts",
2597
+ "../node_modules/@types/luxon/src/zone.d.ts"
2598
+ ],
2599
+ "../node_modules/@types/luxon/src/zone.d.ts": [
2600
+ "../node_modules/@types/luxon/src/_util.d.ts"
2601
+ ],
2513
2602
  "../node_modules/@types/mdast/index.d.ts": [
2514
2603
  "../node_modules/@types/unist/index.d.ts"
2515
2604
  ],
@@ -3486,14 +3575,14 @@
3486
3575
  "../src/components/constants/constants.js": [
3487
3576
  "../node_modules/@types/angular/index.d.ts",
3488
3577
  "../node_modules/@types/lodash/index.d.ts",
3489
- "../node_modules/moment/ts3.1-typings/moment.d.ts"
3578
+ "../node_modules/@types/luxon/index.d.ts"
3490
3579
  ],
3491
3580
  "../src/components/constants/index.ts": [
3492
3581
  "../src/components/constants/constants.js"
3493
3582
  ],
3494
3583
  "../src/components/date-input/date-input.js": [
3495
3584
  "../node_modules/@types/angular/index.d.ts",
3496
- "../node_modules/moment/ts3.1-typings/moment.d.ts",
3585
+ "../node_modules/@types/luxon/index.d.ts",
3497
3586
  "../typings/index.d.ts"
3498
3587
  ],
3499
3588
  "../src/components/date-input/index.ts": [
@@ -3502,20 +3591,20 @@
3502
3591
  ],
3503
3592
  "../src/components/date-input/validate-date.js": [
3504
3593
  "../node_modules/@types/angular/index.d.ts",
3505
- "../node_modules/moment/ts3.1-typings/moment.d.ts"
3594
+ "../node_modules/@types/luxon/index.d.ts"
3506
3595
  ],
3507
3596
  "../src/components/date-time-zone-picker/date-time-zone-factory.ts": [
3508
3597
  "../node_modules/@types/angular/index.d.ts",
3509
3598
  "../node_modules/@types/lodash/index.d.ts",
3510
- "../node_modules/moment/ts3.1-typings/moment.d.ts"
3599
+ "../node_modules/@types/luxon/index.d.ts"
3511
3600
  ],
3512
3601
  "../src/components/date-time-zone-picker/date-time-zone-picker.ts": [
3513
3602
  "../node_modules/@types/angular/index.d.ts",
3514
- "../node_modules/moment/ts3.1-typings/moment.d.ts"
3603
+ "../node_modules/@types/luxon/index.d.ts"
3515
3604
  ],
3516
3605
  "../src/components/date-time-zone-picker/datepicker.ts": [
3517
3606
  "../node_modules/@types/angular/index.d.ts",
3518
- "../node_modules/moment/ts3.1-typings/moment.d.ts",
3607
+ "../node_modules/@types/luxon/index.d.ts",
3519
3608
  "../src/components/form-validation-utils/form-validation-utils.ts",
3520
3609
  "../src/components/translate/translate-factory.ts"
3521
3610
  ],
@@ -3530,7 +3619,7 @@
3530
3619
  "../src/components/date-time-zone-picker/time-format-filter.ts": [
3531
3620
  "../node_modules/@types/angular/index.d.ts",
3532
3621
  "../node_modules/@types/lodash/index.d.ts",
3533
- "../node_modules/moment/ts3.1-typings/moment.d.ts"
3622
+ "../node_modules/@types/luxon/index.d.ts"
3534
3623
  ],
3535
3624
  "../src/components/date-time-zone-picker/time-zone-picker.js": [
3536
3625
  "../node_modules/@types/angular/index.d.ts",
@@ -3538,7 +3627,7 @@
3538
3627
  ],
3539
3628
  "../src/components/date-time-zone-picker/timepicker.js": [
3540
3629
  "../node_modules/@types/angular/index.d.ts",
3541
- "../node_modules/moment/ts3.1-typings/moment.d.ts",
3630
+ "../node_modules/@types/luxon/index.d.ts",
3542
3631
  "../typings/index.d.ts"
3543
3632
  ],
3544
3633
  "../src/components/decorators/index.ts": [
@@ -3968,12 +4057,12 @@
3968
4057
  ],
3969
4058
  "../src/components/time-input/time-input.js": [
3970
4059
  "../node_modules/@types/angular/index.d.ts",
3971
- "../node_modules/moment/ts3.1-typings/moment.d.ts",
4060
+ "../node_modules/@types/luxon/index.d.ts",
3972
4061
  "../typings/index.d.ts"
3973
4062
  ],
3974
4063
  "../src/components/time-input/validate-time.js": [
3975
4064
  "../node_modules/@types/angular/index.d.ts",
3976
- "../node_modules/moment/ts3.1-typings/moment.d.ts"
4065
+ "../node_modules/@types/luxon/index.d.ts"
3977
4066
  ],
3978
4067
  "../src/components/translate/index.ts": [
3979
4068
  "../src/components/translate/translate-factory.ts"
@@ -4376,6 +4465,50 @@
4376
4465
  "../node_modules/@types/lodash/common/string.d.ts",
4377
4466
  "../node_modules/@types/lodash/common/util.d.ts"
4378
4467
  ],
4468
+ "../node_modules/@types/luxon/index.d.ts": [
4469
+ "../node_modules/@types/luxon/src/luxon.d.ts"
4470
+ ],
4471
+ "../node_modules/@types/luxon/src/_util.d.ts": [
4472
+ "../node_modules/@types/luxon/src/settings.d.ts"
4473
+ ],
4474
+ "../node_modules/@types/luxon/src/datetime.d.ts": [
4475
+ "../node_modules/@types/luxon/index.d.ts",
4476
+ "../node_modules/@types/luxon/src/_util.d.ts",
4477
+ "../node_modules/@types/luxon/src/duration.d.ts",
4478
+ "../node_modules/@types/luxon/src/interval.d.ts",
4479
+ "../node_modules/@types/luxon/src/zone.d.ts"
4480
+ ],
4481
+ "../node_modules/@types/luxon/src/duration.d.ts": [
4482
+ "../node_modules/@types/luxon/src/_util.d.ts",
4483
+ "../node_modules/@types/luxon/src/datetime.d.ts",
4484
+ "../node_modules/@types/luxon/src/misc.d.ts"
4485
+ ],
4486
+ "../node_modules/@types/luxon/src/info.d.ts": [
4487
+ "../node_modules/@types/luxon/src/datetime.d.ts",
4488
+ "../node_modules/@types/luxon/src/misc.d.ts",
4489
+ "../node_modules/@types/luxon/src/zone.d.ts"
4490
+ ],
4491
+ "../node_modules/@types/luxon/src/interval.d.ts": [
4492
+ "../node_modules/@types/luxon/src/_util.d.ts",
4493
+ "../node_modules/@types/luxon/src/datetime.d.ts",
4494
+ "../node_modules/@types/luxon/src/duration.d.ts"
4495
+ ],
4496
+ "../node_modules/@types/luxon/src/luxon.d.ts": [
4497
+ "../node_modules/@types/luxon/src/datetime.d.ts",
4498
+ "../node_modules/@types/luxon/src/duration.d.ts",
4499
+ "../node_modules/@types/luxon/src/info.d.ts",
4500
+ "../node_modules/@types/luxon/src/interval.d.ts",
4501
+ "../node_modules/@types/luxon/src/misc.d.ts",
4502
+ "../node_modules/@types/luxon/src/settings.d.ts",
4503
+ "../node_modules/@types/luxon/src/zone.d.ts"
4504
+ ],
4505
+ "../node_modules/@types/luxon/src/settings.d.ts": [
4506
+ "../node_modules/@types/luxon/src/datetime.d.ts",
4507
+ "../node_modules/@types/luxon/src/zone.d.ts"
4508
+ ],
4509
+ "../node_modules/@types/luxon/src/zone.d.ts": [
4510
+ "../node_modules/@types/luxon/src/_util.d.ts"
4511
+ ],
4379
4512
  "../node_modules/@types/mdast/index.d.ts": [
4380
4513
  "../node_modules/@types/unist/index.d.ts"
4381
4514
  ],
@@ -5681,6 +5814,16 @@
5681
5814
  "../node_modules/@types/lodash/common/string.d.ts",
5682
5815
  "../node_modules/@types/lodash/common/util.d.ts",
5683
5816
  "../node_modules/@types/lodash/index.d.ts",
5817
+ "../node_modules/@types/luxon/index.d.ts",
5818
+ "../node_modules/@types/luxon/src/_util.d.ts",
5819
+ "../node_modules/@types/luxon/src/datetime.d.ts",
5820
+ "../node_modules/@types/luxon/src/duration.d.ts",
5821
+ "../node_modules/@types/luxon/src/info.d.ts",
5822
+ "../node_modules/@types/luxon/src/interval.d.ts",
5823
+ "../node_modules/@types/luxon/src/luxon.d.ts",
5824
+ "../node_modules/@types/luxon/src/misc.d.ts",
5825
+ "../node_modules/@types/luxon/src/settings.d.ts",
5826
+ "../node_modules/@types/luxon/src/zone.d.ts",
5684
5827
  "../node_modules/@types/mdast/index.d.ts",
5685
5828
  "../node_modules/@types/mime/index.d.ts",
5686
5829
  "../node_modules/@types/minimatch/index.d.ts",
@@ -5836,7 +5979,6 @@
5836
5979
  "../node_modules/fast-glob/out/managers/tasks.d.ts",
5837
5980
  "../node_modules/fast-glob/out/settings.d.ts",
5838
5981
  "../node_modules/fast-glob/out/types/index.d.ts",
5839
- "../node_modules/moment/ts3.1-typings/moment.d.ts",
5840
5982
  "../node_modules/parchment/dist/parchment.d.ts",
5841
5983
  "../node_modules/quill-delta/dist/attributemap.d.ts",
5842
5984
  "../node_modules/quill-delta/dist/delta.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediafly/js-ui",
3
- "version": "51.3.2",
3
+ "version": "51.3.3-0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "UI components for Mediafly Angular applications",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "hammerjs": "2.0.8",
25
25
  "jquery": "3.6.0",
26
26
  "lodash": "4.17.21",
27
- "moment": "2.29.1",
27
+ "luxon": "^3.4.4",
28
28
  "pikaday": "1.8.2",
29
29
  "quill": "2.0.2",
30
30
  "reflect-metadata": "0.1.13",
@@ -47,7 +47,7 @@
47
47
  "@types/jasmine": "2.8.6",
48
48
  "@types/jquery": "3.5.8",
49
49
  "@types/lodash": "4.14.176",
50
- "@types/moment": "2.13.0",
50
+ "@types/luxon": "^3.3.0",
51
51
  "@types/screenfull": "4.1.0",
52
52
  "autoprefixer": "9.8.5",
53
53
  "babel-core": "6.26.3",
@@ -67,7 +67,7 @@
67
67
  "jasmine-core": "3.6.0",
68
68
  "karma": "6.3.4",
69
69
  "karma-chrome-launcher": "2.2.0",
70
- "karma-jasmine": "1.1.0",
70
+ "karma-jasmine": "4.0.2",
71
71
  "karma-junit-reporter": "2.0.1",
72
72
  "karma-mocha-reporter": "2.2.3",
73
73
  "karma-webpack": "5.0.0",
@@ -1,7 +1,8 @@
1
1
  import angular from 'angular'
2
+ const { DateTime } = require('luxon')
2
3
 
3
4
  angular.module('app')
4
5
  .constant('_', require('lodash'))
5
- .constant('$moment', require('moment'))
6
+ .constant('$moment', DateTime)
6
7
  .constant('Pikaday', require('pikaday'))
7
8
  .constant('PREFIX', '/components/');
@@ -1,6 +1,6 @@
1
1
  import angular from 'angular'
2
2
  import template from './date-input.html'
3
- import moment from 'moment'
3
+ const { DateTime } = require('luxon')
4
4
  import Pikaday from 'pikaday'
5
5
 
6
6
  angular.module('app').directive('mflyDateInput', ['translateFactory', function mflyDateInput (translateFactory) {
@@ -21,12 +21,12 @@ angular.module('app').directive('mflyDateInput', ['translateFactory', function m
21
21
  // Ng-model functionality
22
22
  // ----------------------------------------
23
23
  var validDateFormats = [
24
- 'D-MMM-YYYY', 'D/MMM/YYYY',
25
- 'DD-MMM-YYYY', 'DD/MMM/YYYY',
26
- 'MM-DD-YYYY', 'MM/DD/YYYY',
27
- 'M-D-YYYY', 'M/D/YYYY',
28
- 'MM-DD-YY', 'MM/DD/YY',
29
- 'M-D-YY', 'M/D/YY'
24
+ 'd-MMM-yyyy', 'd/MMM/yyyy',
25
+ 'dd-MMM-yyyy', 'dd/MMM/yyyy',
26
+ 'MM-dd-yyyy', 'MM/dd/yyyy',
27
+ 'M-d-yyyy', 'M/d/yyyy',
28
+ 'MM-dd-yy', 'MM/dd/yy',
29
+ 'M-d-yy', 'M/d/yy'
30
30
  ]
31
31
 
32
32
  // Format the ng-model value as a date string.
@@ -36,7 +36,7 @@ angular.module('app').directive('mflyDateInput', ['translateFactory', function m
36
36
  if (!nativeDate) {
37
37
  return ''
38
38
  }
39
- return moment(nativeDate).format('DD-MMM-YYYY')
39
+ return DateTime.fromJSDate(nativeDate).toFormat('dd-MMM-yyyy')
40
40
  })
41
41
 
42
42
  // Display the date string in the UI.
@@ -56,7 +56,14 @@ angular.module('app').directive('mflyDateInput', ['translateFactory', function m
56
56
  return null
57
57
  }
58
58
 
59
- const jsDate = moment(viewValue, validDateFormats, true).toDate()
59
+ // Try parsing with each valid format
60
+ let parsedDate;
61
+ for (const format of validDateFormats) {
62
+ parsedDate = DateTime.fromFormat(viewValue, format);
63
+ if (parsedDate.isValid) break;
64
+ }
65
+
66
+ const jsDate = parsedDate.toJSDate();
60
67
  $scope.onChange({ value: jsDate })
61
68
  return jsDate
62
69
  })
@@ -67,7 +74,12 @@ angular.module('app').directive('mflyDateInput', ['translateFactory', function m
67
74
 
68
75
  if (pikaday) {
69
76
  // We can't rely on native Date() parsing here (JSUI-185).
70
- pikaday.setDate(moment(newValue, validDateFormats).toDate(), true) // true = do not trigger onSelect
77
+ let parsedDate;
78
+ for (const format of validDateFormats) {
79
+ parsedDate = DateTime.fromFormat(newValue, format);
80
+ if (parsedDate.isValid) break;
81
+ }
82
+ pikaday.setDate(parsedDate.toJSDate(), true) // true = do not trigger onSelect
71
83
  }
72
84
 
73
85
  ngModelCtrl.$setViewValue(newValue)
@@ -86,7 +98,7 @@ angular.module('app').directive('mflyDateInput', ['translateFactory', function m
86
98
  // the scope property with a valid-formatted date string.
87
99
  onSelect: function (newDate) {
88
100
  $scope.$apply(function () {
89
- $scope.date = moment(newDate).format('DD-MMM-YYYY')
101
+ $scope.date = DateTime.fromJSDate(newDate).toFormat('dd-MMM-yyyy')
90
102
  })
91
103
  },
92
104
  // We can make the input field disabled, but we need further measures
@@ -104,7 +116,14 @@ angular.module('app').directive('mflyDateInput', ['translateFactory', function m
104
116
  // object which we initialize from the scope's model date, but ngModel
105
117
  // doesn't fill that value in until the digest cycle has stabilized.
106
118
  setTimeout(function () {
107
- pikadayOptions.defaultDate = moment($scope.date, validDateFormats).toDate() // new Date($scope.date)
119
+ if ($scope.date) {
120
+ let parsedDate;
121
+ for (const format of validDateFormats) {
122
+ parsedDate = DateTime.fromFormat($scope.date, format);
123
+ if (parsedDate.isValid) break;
124
+ }
125
+ pikadayOptions.defaultDate = parsedDate.toJSDate();
126
+ }
108
127
  pikaday = new Pikaday(pikadayOptions)
109
128
  }, 0)
110
129
 
@@ -1,5 +1,5 @@
1
1
  import angular from 'angular'
2
- import moment from 'moment'
2
+ const { DateTime } = require('luxon')
3
3
 
4
4
  angular.module('app').directive('mflyValidateDate', function mflyValidateDate () {
5
5
 
@@ -7,21 +7,25 @@ angular.module('app').directive('mflyValidateDate', function mflyValidateDate ()
7
7
 
8
8
  $ctrl.$validators.dateFormat = function (modelValue, viewValue) {
9
9
 
10
- var validDateFormats = [
11
- 'D-MMM-YYYY', 'D/MMM/YYYY',
12
- 'DD-MMM-YYYY', 'DD/MMM/YYYY',
13
- 'MM-DD-YYYY', 'MM/DD/YYYY',
14
- 'M-D-YYYY', 'M/D/YYYY',
15
- 'MM-DD-YY', 'MM/DD/YY',
16
- 'M-D-YY', 'M/D/YY'
17
- ];
10
+ var validDateFormats = [
11
+ 'd-MMM-yyyy', 'd/MMM/yyyy',
12
+ 'dd-MMM-yyyy', 'dd/MMM/yyyy',
13
+ 'MM-dd-yyyy', 'MM/dd/yyyy',
14
+ 'M-d-yyyy', 'M/d/yyyy',
15
+ 'MM-dd-yy', 'MM/dd/yy',
16
+ 'M-d-yy', 'M/d/yy'
17
+ ];
18
18
 
19
19
  // Empty models shouldn't be "invalid" - that's covered by "required".
20
20
  if (viewValue === '') {
21
21
  return true;
22
22
  }
23
23
 
24
- return moment(viewValue, validDateFormats, true).isValid();
24
+ // Check if the date is valid according to any of the given formats
25
+ return validDateFormats.some(format => {
26
+ const parsed = DateTime.fromFormat(viewValue, format)
27
+ return parsed.isValid
28
+ })
25
29
  };
26
30
  }
27
31