@acorex/components 16.19.16 → 16.19.18
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.
@@ -4165,6 +4165,9 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4165
4165
|
return { year: y, month: m, day: d };
|
4166
4166
|
}
|
4167
4167
|
textChange(e) {
|
4168
|
+
if (this.setLoadingToClear) {
|
4169
|
+
return;
|
4170
|
+
}
|
4168
4171
|
if (this.setLoading || !e.isUserChange) {
|
4169
4172
|
return;
|
4170
4173
|
}
|
@@ -4257,6 +4260,9 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4257
4260
|
set value(v) {
|
4258
4261
|
const oldValue = this._value;
|
4259
4262
|
const old = this.value;
|
4263
|
+
if (this.setLoadingToClear) {
|
4264
|
+
return;
|
4265
|
+
}
|
4260
4266
|
if (v) {
|
4261
4267
|
this._value = new AXDateTime(v, this.type);
|
4262
4268
|
}
|
@@ -4385,744 +4391,729 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4385
4391
|
this.dropdown.toggle();
|
4386
4392
|
});
|
4387
4393
|
}
|
4394
|
+
setLoadingToClear = false;
|
4388
4395
|
handleKeyPress(e) {
|
4389
|
-
if (e.
|
4390
|
-
|
4391
|
-
|
4392
|
-
|
4393
|
-
|
4394
|
-
|
4395
|
-
|
4396
|
-
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
}
|
4407
|
-
|
4408
|
-
if (
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4412
|
-
|
4413
|
-
|
4414
|
-
|
4415
|
-
|
4416
|
-
|
4417
|
-
|
4418
|
-
|
4419
|
-
|
4420
|
-
|
4421
|
-
|
4422
|
-
|
4423
|
-
|
4424
|
-
|
4425
|
-
|
4426
|
-
|
4427
|
-
|
4428
|
-
|
4429
|
-
|
4430
|
-
|
4431
|
-
|
4432
|
-
|
4433
|
-
|
4434
|
-
|
4435
|
-
|
4436
|
-
|
4437
|
-
|
4438
|
-
|
4439
|
-
|
4440
|
-
|
4441
|
-
|
4442
|
-
|
4443
|
-
|
4444
|
-
|
4445
|
-
|
4446
|
-
|
4447
|
-
|
4448
|
-
|
4449
|
-
|
4450
|
-
|
4451
|
-
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4459
|
-
|
4460
|
-
|
4461
|
-
|
4462
|
-
|
4463
|
-
|
4464
|
-
|
4465
|
-
|
4466
|
-
|
4467
|
-
|
4468
|
-
|
4469
|
-
|
4470
|
-
|
4471
|
-
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4479
|
-
|
4480
|
-
|
4481
|
-
|
4482
|
-
|
4483
|
-
|
4484
|
-
|
4485
|
-
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4490
|
-
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4494
|
-
|
4495
|
-
|
4496
|
-
|
4497
|
-
|
4498
|
-
|
4499
|
-
|
4500
|
-
|
4501
|
-
|
4502
|
-
|
4503
|
-
|
4504
|
-
|
4505
|
-
|
4506
|
-
|
4507
|
-
|
4508
|
-
|
4509
|
-
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4513
|
-
|
4514
|
-
|
4515
|
-
|
4516
|
-
|
4517
|
-
|
4518
|
-
|
4519
|
-
|
4520
|
-
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4525
|
-
|
4526
|
-
|
4527
|
-
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
|
4533
|
-
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4538
|
-
|
4539
|
-
|
4540
|
-
|
4541
|
-
|
4542
|
-
|
4543
|
-
|
4544
|
-
|
4545
|
-
|
4546
|
-
|
4547
|
-
|
4548
|
-
|
4549
|
-
|
4550
|
-
|
4551
|
-
|
4552
|
-
|
4553
|
-
|
4554
|
-
|
4555
|
-
|
4556
|
-
|
4557
|
-
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4561
|
-
|
4562
|
-
|
4563
|
-
|
4564
|
-
|
4565
|
-
|
4566
|
-
|
4567
|
-
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4572
|
-
|
4573
|
-
|
4574
|
-
|
4575
|
-
|
4576
|
-
|
4577
|
-
|
4578
|
-
|
4579
|
-
|
4580
|
-
|
4581
|
-
|
4582
|
-
|
4583
|
-
|
4584
|
-
|
4585
|
-
|
4586
|
-
|
4587
|
-
|
4588
|
-
|
4589
|
-
|
4590
|
-
|
4591
|
-
|
4592
|
-
|
4593
|
-
|
4594
|
-
|
4595
|
-
|
4596
|
-
|
4597
|
-
|
4598
|
-
|
4599
|
-
|
4600
|
-
|
4601
|
-
|
4602
|
-
|
4603
|
-
|
4604
|
-
|
4605
|
-
|
4606
|
-
|
4607
|
-
|
4608
|
-
|
4609
|
-
|
4610
|
-
|
4611
|
-
|
4612
|
-
|
4613
|
-
|
4614
|
-
|
4615
|
-
|
4616
|
-
|
4617
|
-
|
4618
|
-
|
4619
|
-
|
4620
|
-
|
4621
|
-
|
4622
|
-
|
4623
|
-
|
4624
|
-
|
4625
|
-
|
4626
|
-
|
4627
|
-
|
4628
|
-
|
4629
|
-
|
4630
|
-
|
4631
|
-
|
4632
|
-
|
4633
|
-
|
4634
|
-
|
4635
|
-
|
4636
|
-
|
4637
|
-
|
4638
|
-
|
4639
|
-
|
4640
|
-
|
4641
|
-
|
4642
|
-
|
4643
|
-
|
4644
|
-
|
4645
|
-
|
4646
|
-
|
4647
|
-
|
4648
|
-
|
4649
|
-
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
|
4654
|
-
|
4655
|
-
|
4656
|
-
|
4657
|
-
|
4658
|
-
|
4659
|
-
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
|
4664
|
-
|
4665
|
-
|
4666
|
-
|
4667
|
-
|
4668
|
-
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4675
|
-
|
4676
|
-
|
4677
|
-
|
4678
|
-
|
4679
|
-
|
4680
|
-
|
4681
|
-
|
4682
|
-
|
4683
|
-
|
4684
|
-
|
4685
|
-
|
4686
|
-
|
4687
|
-
|
4688
|
-
|
4689
|
-
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
4697
|
-
|
4698
|
-
|
4699
|
-
|
4700
|
-
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
|
4714
|
-
|
4715
|
-
|
4716
|
-
|
4717
|
-
|
4718
|
-
|
4719
|
-
|
4720
|
-
|
4721
|
-
|
4722
|
-
|
4723
|
-
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
|
4728
|
-
|
4729
|
-
|
4730
|
-
|
4731
|
-
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
|
4738
|
-
|
4739
|
-
|
4740
|
-
|
4741
|
-
|
4742
|
-
|
4743
|
-
|
4744
|
-
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
4750
|
-
|
4751
|
-
|
4752
|
-
|
4753
|
-
|
4754
|
-
|
4755
|
-
|
4756
|
-
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
|
4761
|
-
|
4762
|
-
|
4763
|
-
|
4764
|
-
|
4765
|
-
|
4766
|
-
|
4767
|
-
|
4768
|
-
|
4769
|
-
|
4770
|
-
|
4771
|
-
|
4772
|
-
|
4773
|
-
|
4774
|
-
|
4775
|
-
|
4776
|
-
|
4777
|
-
|
4778
|
-
|
4779
|
-
|
4780
|
-
|
4781
|
-
|
4782
|
-
|
4783
|
-
|
4784
|
-
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
|
4808
|
-
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4851
|
-
|
4852
|
-
|
4853
|
-
|
4854
|
-
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
|
4859
|
-
|
4860
|
-
|
4861
|
-
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4868
|
-
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4894
|
-
|
4895
|
-
|
4896
|
-
|
4897
|
-
|
4898
|
-
|
4899
|
-
|
4900
|
-
|
4901
|
-
|
4902
|
-
|
4903
|
-
|
4904
|
-
|
4905
|
-
|
4906
|
-
|
4907
|
-
|
4908
|
-
|
4909
|
-
|
4910
|
-
|
4911
|
-
|
4912
|
-
|
4913
|
-
|
4914
|
-
|
4915
|
-
|
4916
|
-
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
|
4922
|
-
|
4923
|
-
|
4924
|
-
|
4925
|
-
|
4926
|
-
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4932
|
-
|
4933
|
-
|
4934
|
-
|
4935
|
-
|
4936
|
-
|
4937
|
-
|
4938
|
-
|
4939
|
-
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
4943
|
-
|
4944
|
-
|
4945
|
-
|
4946
|
-
|
4947
|
-
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4951
|
-
|
4952
|
-
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4959
|
-
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4963
|
-
|
4964
|
-
|
4965
|
-
|
4966
|
-
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
|
-
|
4985
|
-
|
4986
|
-
|
4987
|
-
|
4988
|
-
|
4989
|
-
|
4990
|
-
|
4991
|
-
|
4992
|
-
|
4993
|
-
|
4994
|
-
|
4995
|
-
|
4996
|
-
|
4997
|
-
|
4998
|
-
|
4999
|
-
|
5000
|
-
|
5001
|
-
|
5002
|
-
|
5003
|
-
|
5004
|
-
|
5005
|
-
|
5006
|
-
|
5007
|
-
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5019
|
-
|
5020
|
-
|
5021
|
-
|
5022
|
-
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
|
5029
|
-
|
5030
|
-
|
5031
|
-
|
5032
|
-
|
5033
|
-
|
5034
|
-
|
5035
|
-
|
5036
|
-
|
5037
|
-
|
5038
|
-
|
5039
|
-
|
5040
|
-
|
5041
|
-
|
5042
|
-
|
5043
|
-
|
5044
|
-
|
5045
|
-
|
5046
|
-
|
5047
|
-
|
5048
|
-
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5052
|
-
|
5053
|
-
|
5054
|
-
|
5055
|
-
|
5056
|
-
|
5057
|
-
|
5058
|
-
|
5059
|
-
|
5060
|
-
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5064
|
-
|
5065
|
-
|
5066
|
-
|
5067
|
-
|
5068
|
-
|
5069
|
-
|
5070
|
-
|
5071
|
-
|
5072
|
-
|
5073
|
-
|
5074
|
-
|
5075
|
-
|
5076
|
-
|
5077
|
-
|
5078
|
-
|
5079
|
-
|
5080
|
-
|
5081
|
-
|
5082
|
-
|
5083
|
-
|
5084
|
-
|
5085
|
-
|
5086
|
-
|
5087
|
-
|
5088
|
-
|
5089
|
-
|
5090
|
-
|
5091
|
-
|
5092
|
-
|
5093
|
-
|
5094
|
-
|
5095
|
-
|
5096
|
-
|
5097
|
-
|
5098
|
-
|
5099
|
-
|
5100
|
-
|
5101
|
-
|
5102
|
-
|
5103
|
-
|
5104
|
-
|
5105
|
-
|
5106
|
-
|
5107
|
-
|
5108
|
-
|
5109
|
-
|
5110
|
-
}
|
5111
|
-
}
|
5112
|
-
}
|
5113
|
-
if (e.type === 'keyup') {
|
5114
|
-
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
5115
|
-
this.setCaret();
|
5116
|
-
this.input.input.nativeElement.style.caretColor = 'auto';
|
5117
|
-
e.preventDefault();
|
5118
|
-
e.stopPropagation();
|
5119
|
-
}
|
5120
|
-
}
|
5121
|
-
break;
|
5122
|
-
default:
|
5123
|
-
break;
|
5124
|
-
}
|
5125
|
-
}
|
4396
|
+
if (e.key === 'Backspace' && e.type === 'keydown') {
|
4397
|
+
this.clearTextBox();
|
4398
|
+
this.setLoadingToClear = true;
|
4399
|
+
}
|
4400
|
+
// if (e.type == 'keydown' || e.type == 'keypress' || e.type == 'keyup') {
|
4401
|
+
// if (e.key === 'Delete') {
|
4402
|
+
// e.preventDefault();
|
4403
|
+
// }
|
4404
|
+
// if (e.key === 'Backspace') {
|
4405
|
+
// this.clear();
|
4406
|
+
// }
|
4407
|
+
// if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') {
|
4408
|
+
// if (
|
4409
|
+
// this.input.input.nativeElement.selectionStart ||
|
4410
|
+
// this.input.input.nativeElement.selectionStart === 0
|
4411
|
+
// ) {
|
4412
|
+
// this.cursorPosition = this.input.input.nativeElement.selectionStart;
|
4413
|
+
// }
|
4414
|
+
// }
|
4415
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
4416
|
+
// e.preventDefault();
|
4417
|
+
// e.stopPropagation();
|
4418
|
+
// }
|
4419
|
+
// }
|
4420
|
+
// const inputChar = String.fromCharCode(e.charCode);
|
4421
|
+
// if (this.text != undefined) {
|
4422
|
+
// const ind1 = this.text.charAt(0);
|
4423
|
+
// const ind2 = this.text.charAt(1);
|
4424
|
+
// const ind3 = this.text.charAt(2);
|
4425
|
+
// const ind4 = this.text.charAt(3);
|
4426
|
+
// const ind5 = this.text.charAt(4);
|
4427
|
+
// const ind6 = this.text.charAt(5);
|
4428
|
+
// const ind7 = this.text.charAt(6);
|
4429
|
+
// const ind8 = this.text.charAt(7);
|
4430
|
+
// const ind9 = this.text.charAt(8);
|
4431
|
+
// const ind10 = this.text.charAt(9);
|
4432
|
+
// switch (this.dateType) {
|
4433
|
+
// case this.yyyyMMdd:
|
4434
|
+
// if (e.type == 'keypress') {
|
4435
|
+
// this.handleClick();
|
4436
|
+
// if (
|
4437
|
+
// (ind6 == '1' && ind7 == '_' && inputChar >= '3') ||
|
4438
|
+
// (((ind6 == '0' && ind7 == '_') ||
|
4439
|
+
// (ind9 == '0' && ind10 == '_')) &&
|
4440
|
+
// inputChar == '0')
|
4441
|
+
// ) {
|
4442
|
+
// e.preventDefault();
|
4443
|
+
// } else if (ind9 == '3' && ind10 == '_') {
|
4444
|
+
// if (ind6 + ind7 <= '06' && inputChar >= '2') {
|
4445
|
+
// e.preventDefault();
|
4446
|
+
// } else if (ind6 + ind7 > '06' && inputChar >= '1') {
|
4447
|
+
// e.preventDefault();
|
4448
|
+
// }
|
4449
|
+
// }
|
4450
|
+
// }
|
4451
|
+
// if (this.text.indexOf('_') === -1 && this.text !== '') {
|
4452
|
+
// if (e.type === 'keydown') {
|
4453
|
+
// if (e.key === 'ArrowUp') {
|
4454
|
+
// if (this.cursorPosition <= 4) {
|
4455
|
+
// this.text =
|
4456
|
+
// String(Number(ind1 + ind2 + ind3 + ind4) + 1) +
|
4457
|
+
// ind5 +
|
4458
|
+
// ind6 +
|
4459
|
+
// ind7 +
|
4460
|
+
// ind8 +
|
4461
|
+
// ind9 +
|
4462
|
+
// ind10;
|
4463
|
+
// }
|
4464
|
+
// if (this.cursorPosition >= 5 && this.cursorPosition <= 7) {
|
4465
|
+
// if (Number(ind6 + ind7) < 12) {
|
4466
|
+
// if (Number(ind6 + ind7) < 9) {
|
4467
|
+
// this.text =
|
4468
|
+
// ind1 +
|
4469
|
+
// ind2 +
|
4470
|
+
// ind3 +
|
4471
|
+
// ind4 +
|
4472
|
+
// ind5 +
|
4473
|
+
// '0' +
|
4474
|
+
// String(Number(ind6 + ind7) + 1) +
|
4475
|
+
// ind8 +
|
4476
|
+
// ind9 +
|
4477
|
+
// ind10;
|
4478
|
+
// } else {
|
4479
|
+
// this.text =
|
4480
|
+
// ind1 +
|
4481
|
+
// ind2 +
|
4482
|
+
// ind3 +
|
4483
|
+
// ind4 +
|
4484
|
+
// ind5 +
|
4485
|
+
// String(Number(ind6 + ind7) + 1) +
|
4486
|
+
// ind8 +
|
4487
|
+
// ind9 +
|
4488
|
+
// ind10;
|
4489
|
+
// }
|
4490
|
+
// } else {
|
4491
|
+
// this.text =
|
4492
|
+
// ind1 +
|
4493
|
+
// ind2 +
|
4494
|
+
// ind3 +
|
4495
|
+
// ind4 +
|
4496
|
+
// ind5 +
|
4497
|
+
// '01' +
|
4498
|
+
// ind8 +
|
4499
|
+
// ind9 +
|
4500
|
+
// ind10;
|
4501
|
+
// }
|
4502
|
+
// }
|
4503
|
+
// if (this.cursorPosition >= 8) {
|
4504
|
+
// if (Number(ind9 + ind10) < 31) {
|
4505
|
+
// if (Number(ind9 + ind10) < 9) {
|
4506
|
+
// this.text =
|
4507
|
+
// ind1 +
|
4508
|
+
// ind2 +
|
4509
|
+
// ind3 +
|
4510
|
+
// ind4 +
|
4511
|
+
// ind5 +
|
4512
|
+
// ind6 +
|
4513
|
+
// ind7 +
|
4514
|
+
// ind8 +
|
4515
|
+
// '0' +
|
4516
|
+
// String(Number(ind9 + ind10) + 1);
|
4517
|
+
// } else {
|
4518
|
+
// this.text =
|
4519
|
+
// ind1 +
|
4520
|
+
// ind2 +
|
4521
|
+
// ind3 +
|
4522
|
+
// ind4 +
|
4523
|
+
// ind5 +
|
4524
|
+
// ind6 +
|
4525
|
+
// ind7 +
|
4526
|
+
// ind8 +
|
4527
|
+
// String(Number(ind9 + ind10) + 1);
|
4528
|
+
// }
|
4529
|
+
// } else {
|
4530
|
+
// this.text =
|
4531
|
+
// ind1 +
|
4532
|
+
// ind2 +
|
4533
|
+
// ind3 +
|
4534
|
+
// ind4 +
|
4535
|
+
// ind5 +
|
4536
|
+
// ind6 +
|
4537
|
+
// ind7 +
|
4538
|
+
// ind8 +
|
4539
|
+
// '01';
|
4540
|
+
// }
|
4541
|
+
// }
|
4542
|
+
// // this.input.input.nativeElement.style.caretColor = 'transparent';
|
4543
|
+
// // setTimeout(() => {
|
4544
|
+
// // this.setCaret();
|
4545
|
+
// // e.preventDefault();
|
4546
|
+
// // this.input.input.nativeElement.style.caretColor = 'auto';
|
4547
|
+
// // }, 0);
|
4548
|
+
// // e.preventDefault();
|
4549
|
+
// } else if (e.key === 'ArrowDown') {
|
4550
|
+
// if (this.cursorPosition <= 4) {
|
4551
|
+
// this.text =
|
4552
|
+
// String(Number(ind1 + ind2 + ind3 + ind4) - 1) +
|
4553
|
+
// ind5 +
|
4554
|
+
// ind6 +
|
4555
|
+
// ind7 +
|
4556
|
+
// ind8 +
|
4557
|
+
// ind9 +
|
4558
|
+
// ind10;
|
4559
|
+
// } else if (
|
4560
|
+
// this.cursorPosition > 4 &&
|
4561
|
+
// this.cursorPosition <= 7
|
4562
|
+
// ) {
|
4563
|
+
// if (Number(ind6 + ind7) > 1) {
|
4564
|
+
// if (Number(ind6 + ind7) < 11) {
|
4565
|
+
// this.text =
|
4566
|
+
// ind1 +
|
4567
|
+
// ind2 +
|
4568
|
+
// ind3 +
|
4569
|
+
// ind4 +
|
4570
|
+
// ind5 +
|
4571
|
+
// '0' +
|
4572
|
+
// String(Number(ind6 + ind7) - 1) +
|
4573
|
+
// ind8 +
|
4574
|
+
// ind9 +
|
4575
|
+
// ind10;
|
4576
|
+
// } else {
|
4577
|
+
// this.text =
|
4578
|
+
// ind1 +
|
4579
|
+
// ind2 +
|
4580
|
+
// ind3 +
|
4581
|
+
// ind4 +
|
4582
|
+
// ind5 +
|
4583
|
+
// String(Number(ind6 + ind7) - 1) +
|
4584
|
+
// ind8 +
|
4585
|
+
// ind9 +
|
4586
|
+
// ind10;
|
4587
|
+
// }
|
4588
|
+
// } else {
|
4589
|
+
// this.text =
|
4590
|
+
// ind1 +
|
4591
|
+
// ind2 +
|
4592
|
+
// ind3 +
|
4593
|
+
// ind4 +
|
4594
|
+
// ind5 +
|
4595
|
+
// '12' +
|
4596
|
+
// ind8 +
|
4597
|
+
// ind9 +
|
4598
|
+
// ind10;
|
4599
|
+
// }
|
4600
|
+
// } else if (this.cursorPosition >= 8) {
|
4601
|
+
// if (Number(ind9 + ind10) > 1) {
|
4602
|
+
// if (Number(ind9 + ind10) < 11) {
|
4603
|
+
// this.text =
|
4604
|
+
// ind1 +
|
4605
|
+
// ind2 +
|
4606
|
+
// ind3 +
|
4607
|
+
// ind4 +
|
4608
|
+
// ind5 +
|
4609
|
+
// ind6 +
|
4610
|
+
// ind7 +
|
4611
|
+
// ind8 +
|
4612
|
+
// '0' +
|
4613
|
+
// String(Number(ind9 + ind10) - 1);
|
4614
|
+
// } else {
|
4615
|
+
// this.text =
|
4616
|
+
// ind1 +
|
4617
|
+
// ind2 +
|
4618
|
+
// ind3 +
|
4619
|
+
// ind4 +
|
4620
|
+
// ind5 +
|
4621
|
+
// ind6 +
|
4622
|
+
// ind7 +
|
4623
|
+
// ind8 +
|
4624
|
+
// String(Number(ind9 + ind10) - 1);
|
4625
|
+
// }
|
4626
|
+
// } else {
|
4627
|
+
// this.text =
|
4628
|
+
// ind1 +
|
4629
|
+
// ind2 +
|
4630
|
+
// ind3 +
|
4631
|
+
// ind4 +
|
4632
|
+
// ind5 +
|
4633
|
+
// ind6 +
|
4634
|
+
// ind7 +
|
4635
|
+
// ind8 +
|
4636
|
+
// '31';
|
4637
|
+
// }
|
4638
|
+
// }
|
4639
|
+
// // this.input.input.nativeElement.style.caretColor = 'transparent';
|
4640
|
+
// // setTimeout(() => {
|
4641
|
+
// // this.setCaret();
|
4642
|
+
// // this.input.input.nativeElement.style.caretColor = 'auto';
|
4643
|
+
// // }, 0);
|
4644
|
+
// }
|
4645
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
4646
|
+
// this.input.input.nativeElement.style.caretColor = 'transparent';
|
4647
|
+
// e.preventDefault();
|
4648
|
+
// e.stopPropagation();
|
4649
|
+
// return false;
|
4650
|
+
// }
|
4651
|
+
// }
|
4652
|
+
// }
|
4653
|
+
// if (e.type === 'keyup') {
|
4654
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
4655
|
+
// this.setCaret();
|
4656
|
+
// this.input.input.nativeElement.style.caretColor = 'auto';
|
4657
|
+
// e.preventDefault();
|
4658
|
+
// e.stopPropagation();
|
4659
|
+
// }
|
4660
|
+
// }
|
4661
|
+
// break;
|
4662
|
+
// case this.ddMMyyyy:
|
4663
|
+
// if (e.type === 'keypress') {
|
4664
|
+
// this.handleClick();
|
4665
|
+
// if (
|
4666
|
+
// (ind4 == '1' && ind5 == '_' && inputChar >= '3') ||
|
4667
|
+
// (((ind1 == '0' && ind2 == '_') || (ind4 == '0' && ind5 == '_')) &&
|
4668
|
+
// inputChar == '0')
|
4669
|
+
// ) {
|
4670
|
+
// e.preventDefault();
|
4671
|
+
// } else {
|
4672
|
+
// if (ind1 == '3' && ind2 == '_' && inputChar >= '2') {
|
4673
|
+
// e.preventDefault();
|
4674
|
+
// }
|
4675
|
+
// }
|
4676
|
+
// }
|
4677
|
+
// if (this.text.indexOf('_') === -1 && this.text !== '') {
|
4678
|
+
// if (e.type === 'keydown') {
|
4679
|
+
// if (e.key === 'ArrowUp') {
|
4680
|
+
// if (this.cursorPosition >= 6) {
|
4681
|
+
// this.text =
|
4682
|
+
// ind1 +
|
4683
|
+
// ind2 +
|
4684
|
+
// ind3 +
|
4685
|
+
// ind4 +
|
4686
|
+
// ind5 +
|
4687
|
+
// ind6 +
|
4688
|
+
// String(Number(ind7 + ind8 + ind9 + ind10) + 1);
|
4689
|
+
// }
|
4690
|
+
// if (this.cursorPosition > 2 && this.cursorPosition <= 5) {
|
4691
|
+
// if (Number(ind4 + ind5) < 12) {
|
4692
|
+
// if (Number(ind4 + ind5) < 9) {
|
4693
|
+
// this.text =
|
4694
|
+
// ind1 +
|
4695
|
+
// ind2 +
|
4696
|
+
// ind3 +
|
4697
|
+
// '0' +
|
4698
|
+
// String(Number(ind4 + ind5) + 1) +
|
4699
|
+
// ind6 +
|
4700
|
+
// ind7 +
|
4701
|
+
// ind8 +
|
4702
|
+
// ind9 +
|
4703
|
+
// ind10;
|
4704
|
+
// } else {
|
4705
|
+
// this.text =
|
4706
|
+
// ind1 +
|
4707
|
+
// ind2 +
|
4708
|
+
// ind3 +
|
4709
|
+
// String(Number(ind4 + ind5) + 1) +
|
4710
|
+
// ind6 +
|
4711
|
+
// ind7 +
|
4712
|
+
// ind8 +
|
4713
|
+
// ind9 +
|
4714
|
+
// ind10;
|
4715
|
+
// }
|
4716
|
+
// } else {
|
4717
|
+
// this.text =
|
4718
|
+
// ind1 +
|
4719
|
+
// ind2 +
|
4720
|
+
// ind3 +
|
4721
|
+
// '01' +
|
4722
|
+
// ind6 +
|
4723
|
+
// ind7 +
|
4724
|
+
// ind8 +
|
4725
|
+
// ind9 +
|
4726
|
+
// ind10;
|
4727
|
+
// }
|
4728
|
+
// }
|
4729
|
+
// if (this.cursorPosition <= 2) {
|
4730
|
+
// if (Number(ind1 + ind2) < 31) {
|
4731
|
+
// if (Number(ind1 + ind2) < 9) {
|
4732
|
+
// this.text =
|
4733
|
+
// '0' +
|
4734
|
+
// String(Number(ind1 + ind2) + 1) +
|
4735
|
+
// ind3 +
|
4736
|
+
// ind4 +
|
4737
|
+
// ind5 +
|
4738
|
+
// ind6 +
|
4739
|
+
// ind7 +
|
4740
|
+
// ind8 +
|
4741
|
+
// ind9 +
|
4742
|
+
// ind10;
|
4743
|
+
// } else {
|
4744
|
+
// this.text =
|
4745
|
+
// String(Number(ind1 + ind2) + 1) +
|
4746
|
+
// ind3 +
|
4747
|
+
// ind4 +
|
4748
|
+
// ind5 +
|
4749
|
+
// ind6 +
|
4750
|
+
// ind7 +
|
4751
|
+
// ind8 +
|
4752
|
+
// ind9 +
|
4753
|
+
// ind10;
|
4754
|
+
// }
|
4755
|
+
// } else {
|
4756
|
+
// this.text =
|
4757
|
+
// '01' +
|
4758
|
+
// ind3 +
|
4759
|
+
// ind4 +
|
4760
|
+
// ind5 +
|
4761
|
+
// ind6 +
|
4762
|
+
// ind7 +
|
4763
|
+
// ind8 +
|
4764
|
+
// ind9 +
|
4765
|
+
// ind10;
|
4766
|
+
// }
|
4767
|
+
// }
|
4768
|
+
// // this.input.input.nativeElement.style.caretColor = 'transparent';
|
4769
|
+
// // setTimeout(() => {
|
4770
|
+
// // this.setCaret();
|
4771
|
+
// // this.input.input.nativeElement.style.caretColor = 'auto';
|
4772
|
+
// // }, 0);
|
4773
|
+
// } else if (e.key === 'ArrowDown') {
|
4774
|
+
// if (this.cursorPosition >= 6) {
|
4775
|
+
// this.text =
|
4776
|
+
// ind1 +
|
4777
|
+
// ind2 +
|
4778
|
+
// ind3 +
|
4779
|
+
// ind4 +
|
4780
|
+
// ind5 +
|
4781
|
+
// ind6 +
|
4782
|
+
// String(Number(ind7 + ind8 + ind9 + ind10) - 1);
|
4783
|
+
// } else if (
|
4784
|
+
// this.cursorPosition > 2 &&
|
4785
|
+
// this.cursorPosition <= 5
|
4786
|
+
// ) {
|
4787
|
+
// if (Number(ind4 + ind5) > 1) {
|
4788
|
+
// if (Number(ind4 + ind5) < 11) {
|
4789
|
+
// this.text =
|
4790
|
+
// ind1 +
|
4791
|
+
// ind2 +
|
4792
|
+
// ind3 +
|
4793
|
+
// '0' +
|
4794
|
+
// String(Number(ind4 + ind5) - 1) +
|
4795
|
+
// ind6 +
|
4796
|
+
// ind7 +
|
4797
|
+
// ind8 +
|
4798
|
+
// ind9 +
|
4799
|
+
// ind10;
|
4800
|
+
// } else {
|
4801
|
+
// this.text =
|
4802
|
+
// ind1 +
|
4803
|
+
// ind2 +
|
4804
|
+
// ind3 +
|
4805
|
+
// String(Number(ind4 + ind5) - 1) +
|
4806
|
+
// ind6 +
|
4807
|
+
// ind7 +
|
4808
|
+
// ind8 +
|
4809
|
+
// ind9 +
|
4810
|
+
// ind10;
|
4811
|
+
// }
|
4812
|
+
// } else {
|
4813
|
+
// this.text =
|
4814
|
+
// ind1 +
|
4815
|
+
// ind2 +
|
4816
|
+
// ind3 +
|
4817
|
+
// '12' +
|
4818
|
+
// ind6 +
|
4819
|
+
// ind7 +
|
4820
|
+
// ind8 +
|
4821
|
+
// ind9 +
|
4822
|
+
// ind10;
|
4823
|
+
// }
|
4824
|
+
// } else if (this.cursorPosition <= 2) {
|
4825
|
+
// if (Number(ind1 + ind2) > 1) {
|
4826
|
+
// if (Number(ind1 + ind2) < 11) {
|
4827
|
+
// this.text =
|
4828
|
+
// '0' +
|
4829
|
+
// String(Number(ind1 + ind2) - 1) +
|
4830
|
+
// ind3 +
|
4831
|
+
// ind4 +
|
4832
|
+
// ind5 +
|
4833
|
+
// ind6 +
|
4834
|
+
// ind7 +
|
4835
|
+
// ind8 +
|
4836
|
+
// ind9 +
|
4837
|
+
// ind10;
|
4838
|
+
// } else {
|
4839
|
+
// this.text =
|
4840
|
+
// String(Number(ind1 + ind2) - 1) +
|
4841
|
+
// ind3 +
|
4842
|
+
// ind4 +
|
4843
|
+
// ind5 +
|
4844
|
+
// ind6 +
|
4845
|
+
// ind7 +
|
4846
|
+
// ind8 +
|
4847
|
+
// ind9 +
|
4848
|
+
// ind10;
|
4849
|
+
// }
|
4850
|
+
// } else {
|
4851
|
+
// this.text =
|
4852
|
+
// '31' +
|
4853
|
+
// ind3 +
|
4854
|
+
// ind4 +
|
4855
|
+
// ind5 +
|
4856
|
+
// ind6 +
|
4857
|
+
// ind7 +
|
4858
|
+
// ind8 +
|
4859
|
+
// ind9 +
|
4860
|
+
// ind10;
|
4861
|
+
// }
|
4862
|
+
// }
|
4863
|
+
// // this.input.input.nativeElement.style.caretColor = 'transparent';
|
4864
|
+
// // setTimeout(() => {
|
4865
|
+
// // this.setCaret();
|
4866
|
+
// // this.input.input.nativeElement.style.caretColor = 'auto';
|
4867
|
+
// // }, 0);
|
4868
|
+
// }
|
4869
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
4870
|
+
// this.input.input.nativeElement.style.caretColor = 'transparent';
|
4871
|
+
// e.preventDefault();
|
4872
|
+
// e.stopPropagation();
|
4873
|
+
// return false;
|
4874
|
+
// }
|
4875
|
+
// }
|
4876
|
+
// }
|
4877
|
+
// if (e.type === 'keyup') {
|
4878
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
4879
|
+
// this.setCaret();
|
4880
|
+
// this.input.input.nativeElement.style.caretColor = 'auto';
|
4881
|
+
// e.preventDefault();
|
4882
|
+
// e.stopPropagation();
|
4883
|
+
// }
|
4884
|
+
// }
|
4885
|
+
// break;
|
4886
|
+
// case this.MMddyyyy:
|
4887
|
+
// if (e.type === 'keypress') {
|
4888
|
+
// if (
|
4889
|
+
// (ind9 === '1' && ind10 == '_' && inputChar >= '3') ||
|
4890
|
+
// (((ind6 == '0' && ind7 == '_') || (ind9 == '0' && ind10)) &&
|
4891
|
+
// inputChar == '0')
|
4892
|
+
// ) {
|
4893
|
+
// e.preventDefault();
|
4894
|
+
// } else if (ind6 == '3' && ind7 == '_' && inputChar >= '2') {
|
4895
|
+
// e.preventDefault();
|
4896
|
+
// }
|
4897
|
+
// setTimeout(() => {
|
4898
|
+
// this.handleClick();
|
4899
|
+
// }, 0);
|
4900
|
+
// }
|
4901
|
+
// if (this.text.indexOf('_') === -1 && this.text !== '') {
|
4902
|
+
// if (e.type === 'keydown') {
|
4903
|
+
// if (e.key === 'ArrowUp') {
|
4904
|
+
// if (this.cursorPosition <= 4) {
|
4905
|
+
// this.text =
|
4906
|
+
// String(Number(ind1 + ind2 + ind3 + ind4) + 1) +
|
4907
|
+
// ind5 +
|
4908
|
+
// ind6 +
|
4909
|
+
// ind7 +
|
4910
|
+
// ind8 +
|
4911
|
+
// ind9 +
|
4912
|
+
// ind10;
|
4913
|
+
// }
|
4914
|
+
// if (this.cursorPosition > 4 && this.cursorPosition <= 7) {
|
4915
|
+
// if (Number(ind6 + ind7) < 31) {
|
4916
|
+
// if (Number(ind6 + ind7) < 9) {
|
4917
|
+
// this.text =
|
4918
|
+
// ind1 +
|
4919
|
+
// ind2 +
|
4920
|
+
// ind3 +
|
4921
|
+
// ind4 +
|
4922
|
+
// ind5 +
|
4923
|
+
// '0' +
|
4924
|
+
// String(Number(ind6 + ind7) + 1) +
|
4925
|
+
// ind8 +
|
4926
|
+
// ind9 +
|
4927
|
+
// ind10;
|
4928
|
+
// } else {
|
4929
|
+
// this.text =
|
4930
|
+
// ind1 +
|
4931
|
+
// ind2 +
|
4932
|
+
// ind3 +
|
4933
|
+
// ind4 +
|
4934
|
+
// ind5 +
|
4935
|
+
// String(Number(ind6 + ind7) + 1) +
|
4936
|
+
// ind8 +
|
4937
|
+
// ind9 +
|
4938
|
+
// ind10;
|
4939
|
+
// }
|
4940
|
+
// } else {
|
4941
|
+
// this.text =
|
4942
|
+
// ind1 +
|
4943
|
+
// ind2 +
|
4944
|
+
// ind3 +
|
4945
|
+
// ind4 +
|
4946
|
+
// ind5 +
|
4947
|
+
// '01' +
|
4948
|
+
// ind8 +
|
4949
|
+
// ind9 +
|
4950
|
+
// ind10;
|
4951
|
+
// }
|
4952
|
+
// }
|
4953
|
+
// if (this.cursorPosition >= 8) {
|
4954
|
+
// if (Number(ind9 + ind10) < 12) {
|
4955
|
+
// if (Number(ind9 + ind10) < 9) {
|
4956
|
+
// this.text =
|
4957
|
+
// ind1 +
|
4958
|
+
// ind2 +
|
4959
|
+
// ind3 +
|
4960
|
+
// ind4 +
|
4961
|
+
// ind5 +
|
4962
|
+
// ind6 +
|
4963
|
+
// ind7 +
|
4964
|
+
// ind8 +
|
4965
|
+
// '0' +
|
4966
|
+
// String(Number(ind9 + ind10) + 1);
|
4967
|
+
// } else {
|
4968
|
+
// this.text =
|
4969
|
+
// ind1 +
|
4970
|
+
// ind2 +
|
4971
|
+
// ind3 +
|
4972
|
+
// ind4 +
|
4973
|
+
// ind5 +
|
4974
|
+
// ind6 +
|
4975
|
+
// ind7 +
|
4976
|
+
// ind8 +
|
4977
|
+
// String(Number(ind9 + ind10) + 1);
|
4978
|
+
// }
|
4979
|
+
// } else {
|
4980
|
+
// this.text =
|
4981
|
+
// ind1 +
|
4982
|
+
// ind2 +
|
4983
|
+
// ind3 +
|
4984
|
+
// ind4 +
|
4985
|
+
// ind5 +
|
4986
|
+
// ind6 +
|
4987
|
+
// ind7 +
|
4988
|
+
// ind8 +
|
4989
|
+
// '01';
|
4990
|
+
// }
|
4991
|
+
// }
|
4992
|
+
// // this.input.input.nativeElement.style.caretColor = 'transparent';
|
4993
|
+
// // setTimeout(() => {
|
4994
|
+
// // this.setCaret();
|
4995
|
+
// // this.input.input.nativeElement.style.caretColor = 'auto';
|
4996
|
+
// // }, 0);
|
4997
|
+
// } else if (e.key === 'ArrowDown') {
|
4998
|
+
// if (this.cursorPosition <= 4) {
|
4999
|
+
// this.text =
|
5000
|
+
// String(Number(ind1 + ind2 + ind3 + ind4) - 1) +
|
5001
|
+
// ind5 +
|
5002
|
+
// ind6 +
|
5003
|
+
// ind7 +
|
5004
|
+
// ind8 +
|
5005
|
+
// ind9 +
|
5006
|
+
// ind10;
|
5007
|
+
// } else if (
|
5008
|
+
// this.cursorPosition > 4 &&
|
5009
|
+
// this.cursorPosition <= 7
|
5010
|
+
// ) {
|
5011
|
+
// if (Number(ind6 + ind7) > 1) {
|
5012
|
+
// if (Number(ind6 + ind7) < 11) {
|
5013
|
+
// this.text =
|
5014
|
+
// ind1 +
|
5015
|
+
// ind2 +
|
5016
|
+
// ind3 +
|
5017
|
+
// ind4 +
|
5018
|
+
// ind5 +
|
5019
|
+
// '0' +
|
5020
|
+
// String(Number(ind6 + ind7) - 1) +
|
5021
|
+
// ind8 +
|
5022
|
+
// ind9 +
|
5023
|
+
// ind10;
|
5024
|
+
// } else {
|
5025
|
+
// this.text =
|
5026
|
+
// ind1 +
|
5027
|
+
// ind2 +
|
5028
|
+
// ind3 +
|
5029
|
+
// ind4 +
|
5030
|
+
// ind5 +
|
5031
|
+
// String(Number(ind6 + ind7) - 1) +
|
5032
|
+
// ind8 +
|
5033
|
+
// ind9 +
|
5034
|
+
// ind10;
|
5035
|
+
// }
|
5036
|
+
// } else {
|
5037
|
+
// this.text =
|
5038
|
+
// ind1 +
|
5039
|
+
// ind2 +
|
5040
|
+
// ind3 +
|
5041
|
+
// ind4 +
|
5042
|
+
// ind5 +
|
5043
|
+
// '31' +
|
5044
|
+
// ind8 +
|
5045
|
+
// ind9 +
|
5046
|
+
// ind10;
|
5047
|
+
// }
|
5048
|
+
// } else if (this.cursorPosition >= 8) {
|
5049
|
+
// if (Number(ind9 + ind10) > 1) {
|
5050
|
+
// if (Number(ind9 + ind10) < 11) {
|
5051
|
+
// this.text =
|
5052
|
+
// ind1 +
|
5053
|
+
// ind2 +
|
5054
|
+
// ind3 +
|
5055
|
+
// ind4 +
|
5056
|
+
// ind5 +
|
5057
|
+
// ind6 +
|
5058
|
+
// ind7 +
|
5059
|
+
// ind8 +
|
5060
|
+
// '0' +
|
5061
|
+
// String(Number(ind9 + ind10) - 1);
|
5062
|
+
// } else {
|
5063
|
+
// this.text =
|
5064
|
+
// ind1 +
|
5065
|
+
// ind2 +
|
5066
|
+
// ind3 +
|
5067
|
+
// ind4 +
|
5068
|
+
// ind5 +
|
5069
|
+
// ind6 +
|
5070
|
+
// ind7 +
|
5071
|
+
// ind8 +
|
5072
|
+
// String(Number(ind9 + ind10) - 1);
|
5073
|
+
// }
|
5074
|
+
// } else {
|
5075
|
+
// this.text =
|
5076
|
+
// ind1 +
|
5077
|
+
// ind2 +
|
5078
|
+
// ind3 +
|
5079
|
+
// ind4 +
|
5080
|
+
// ind5 +
|
5081
|
+
// ind6 +
|
5082
|
+
// ind7 +
|
5083
|
+
// ind8 +
|
5084
|
+
// '12';
|
5085
|
+
// }
|
5086
|
+
// }
|
5087
|
+
// // this.input.input.nativeElement.style.caretColor = 'transparent';
|
5088
|
+
// // setTimeout(() => {
|
5089
|
+
// // this.setCaret();
|
5090
|
+
// // this.input.input.nativeElement.style.caretColor = 'auto';
|
5091
|
+
// // }, 0);
|
5092
|
+
// }
|
5093
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
5094
|
+
// this.input.input.nativeElement.style.caretColor = 'transparent';
|
5095
|
+
// e.preventDefault();
|
5096
|
+
// e.stopPropagation();
|
5097
|
+
// return false;
|
5098
|
+
// }
|
5099
|
+
// }
|
5100
|
+
// }
|
5101
|
+
// if (e.type === 'keyup') {
|
5102
|
+
// if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
5103
|
+
// this.setCaret();
|
5104
|
+
// this.input.input.nativeElement.style.caretColor = 'auto';
|
5105
|
+
// e.preventDefault();
|
5106
|
+
// e.stopPropagation();
|
5107
|
+
// }
|
5108
|
+
// }
|
5109
|
+
// break;
|
5110
|
+
// default:
|
5111
|
+
// break;
|
5112
|
+
// }
|
5113
|
+
// }
|
5114
|
+
setTimeout(() => {
|
5115
|
+
this.setLoadingToClear = false;
|
5116
|
+
}, 1000);
|
5126
5117
|
}
|
5127
5118
|
handleClick() {
|
5128
5119
|
if (this.input.input.nativeElement.selectionStart ||
|
@@ -5149,13 +5140,13 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
5149
5140
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
5150
5141
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: AXDatePickerComponent, isStandalone: false, selector: "ax-date-picker", inputs: { dayStyle: { classPropertyName: "dayStyle", publicName: "dayStyle", isSignal: false, isRequired: false, transformFunction: null }, dayMinMaxResoan: { classPropertyName: "dayMinMaxResoan", publicName: "dayMinMaxResoan", isSignal: false, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, allowClear: { classPropertyName: "allowClear", publicName: "allowClear", isSignal: false, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: false, isRequired: false, transformFunction: null }, showToday: { classPropertyName: "showToday", publicName: "showToday", isSignal: false, isRequired: false, transformFunction: null }, selectableHoliday: { classPropertyName: "selectableHoliday", publicName: "selectableHoliday", isSignal: false, isRequired: false, transformFunction: null }, dateType: { classPropertyName: "dateType", publicName: "dateType", isSignal: false, isRequired: false, transformFunction: null }, showTodayButton: { classPropertyName: "showTodayButton", publicName: "showTodayButton", isSignal: false, isRequired: false, transformFunction: null }, openByClick: { classPropertyName: "openByClick", publicName: "openByClick", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { typeChange: "typeChange", onValueChanged: "onValueChanged", valueChange: "valueChange" }, host: { styleAttribute: "width: 100%" }, providers: [
|
5151
5142
|
{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent },
|
5152
|
-
], queries: [{ propertyName: "_contentValidation", first: true, predicate: AXValidation, descendants: true, static: true }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "calendarRef", first: true, predicate: ["calendarRef"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-drop-down\n [readonly]=\"readonly\"\n [fitParent]=\"false\"\n [size]=\"size\"\n [showDropDownButton]=\"false\"\n icon=\"far fa-calendar-alt\"\n #dropdown\n maxHeight=\"unset\"\n>\n <ng-container start>\n <ng-content select=\"[start]\"> </ng-content>\n </ng-container>\n <ng-container header>\n <ax-text-box\n [mask]=\"dateType\"\n [showMask]=\"true\"\n #input\n [textAlign]=\"textAlign\"\n [value]=\"text\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n (onBlur)=\"handleInputBlur()\"\n (click)=\"handleClick()\"\n (onValueChanged)=\"textChange($event)\"\n ></ax-text-box>\n </ng-container>\n <ng-container panel>\n @if (_renderPicker) {\n <ax-calendar-box\n #calendarRef\n [showTodayButton]=\"showTodayButton\"\n [selectableHoliday]=\"selectableHoliday\"\n [min]=\"min()\"\n [max]=\"max()\"\n [size]=\"size\"\n (onClick)=\"onClick($event)\"\n (onValueChanged)=\"onDateChange($event)\"\n [type]=\"type\"\n [(value)]=\"calendarValue\"\n [dayStyle]=\"dayStyle\"\n [dayMinMaxResoan]=\"dayMinMaxResoan\"\n >\n </ax-calendar-box>\n }\n </ng-container>\n <ng-container end>\n <ax-button\n end\n *ngIf=\"allowClear && value\"\n [disabled]=\"disabled\"\n icon=\"far fa-times icon\"\n type=\"blank danger\"\n (click)=\"clearTextBox()\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n >\n </ax-button>\n <ax-button\n end\n icon=\"far fa-calendar-alt icon\"\n type=\"light blank\"\n (click)=\"handleButtonClick()\"\n [disabled]=\"disabled\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n ></ax-button>\n <ng-content select=\"[end]\"> </ng-content>\n </ng-container>\n</ax-drop-down>\n", styles: [".ax-dropdown-container-bordered .ax-calendar-container{border:none!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["rtl", "readonly", "loading", "dropdownWidth"], outputs: ["dropdownToggle", "onButtonClick"] }, { kind: "component", type: AXCalendarBoxComponent, selector: "ax-calendar-box", inputs: ["size", "type", "locale", "dir", "min", "max", "selectableHoliday", "dayStyle", "dayMinMaxResoan", "showTodayButton", "view", "depth", "value"], outputs: ["onValueChanged", "onClick", "valueChange"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { kind: "component", type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "showMask", "type", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions", "leadZeroDateTime"] }], encapsulation: i0.ViewEncapsulation.None });
|
5143
|
+
], queries: [{ propertyName: "_contentValidation", first: true, predicate: AXValidation, descendants: true, static: true }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "calendarRef", first: true, predicate: ["calendarRef"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-drop-down\n [readonly]=\"readonly\"\n [fitParent]=\"false\"\n [size]=\"size\"\n [showDropDownButton]=\"false\"\n icon=\"far fa-calendar-alt\"\n #dropdown\n maxHeight=\"unset\"\n>\n <ng-container start>\n <ng-content select=\"[start]\"> </ng-content>\n </ng-container>\n <ng-container header>\n <ax-text-box\n [mask]=\"dateType\"\n [showMask]=\"true\"\n #input\n [textAlign]=\"textAlign\"\n [value]=\"text\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n (onkey)=\"handleKeyPress($event)\"\n (onBlur)=\"handleInputBlur()\"\n (click)=\"handleClick()\"\n (onValueChanged)=\"textChange($event)\"\n ></ax-text-box>\n </ng-container>\n <ng-container panel>\n @if (_renderPicker) {\n <ax-calendar-box\n #calendarRef\n [showTodayButton]=\"showTodayButton\"\n [selectableHoliday]=\"selectableHoliday\"\n [min]=\"min()\"\n [max]=\"max()\"\n [size]=\"size\"\n (onClick)=\"onClick($event)\"\n (onValueChanged)=\"onDateChange($event)\"\n [type]=\"type\"\n [(value)]=\"calendarValue\"\n [dayStyle]=\"dayStyle\"\n [dayMinMaxResoan]=\"dayMinMaxResoan\"\n >\n </ax-calendar-box>\n }\n </ng-container>\n <ng-container end>\n <ax-button\n end\n *ngIf=\"allowClear && value\"\n [disabled]=\"disabled\"\n icon=\"far fa-times icon\"\n type=\"blank danger\"\n (click)=\"clearTextBox()\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n >\n </ax-button>\n <ax-button\n end\n icon=\"far fa-calendar-alt icon\"\n type=\"light blank\"\n (click)=\"handleButtonClick()\"\n [disabled]=\"disabled\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n ></ax-button>\n <ng-content select=\"[end]\"> </ng-content>\n </ng-container>\n</ax-drop-down>\n", styles: [".ax-dropdown-container-bordered .ax-calendar-container{border:none!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["rtl", "readonly", "loading", "dropdownWidth"], outputs: ["dropdownToggle", "onButtonClick"] }, { kind: "component", type: AXCalendarBoxComponent, selector: "ax-calendar-box", inputs: ["size", "type", "locale", "dir", "min", "max", "selectableHoliday", "dayStyle", "dayMinMaxResoan", "showTodayButton", "view", "depth", "value"], outputs: ["onValueChanged", "onClick", "valueChange"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { kind: "component", type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "showMask", "type", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions", "leadZeroDateTime"] }], encapsulation: i0.ViewEncapsulation.None });
|
5153
5144
|
}
|
5154
5145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
5155
5146
|
type: Component,
|
5156
5147
|
args: [{ selector: 'ax-date-picker', encapsulation: ViewEncapsulation.None, providers: [
|
5157
5148
|
{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent },
|
5158
|
-
], host: { style: 'width: 100%' }, standalone: false, template: "<ax-drop-down\n [readonly]=\"readonly\"\n [fitParent]=\"false\"\n [size]=\"size\"\n [showDropDownButton]=\"false\"\n icon=\"far fa-calendar-alt\"\n #dropdown\n maxHeight=\"unset\"\n>\n <ng-container start>\n <ng-content select=\"[start]\"> </ng-content>\n </ng-container>\n <ng-container header>\n <ax-text-box\n [mask]=\"dateType\"\n [showMask]=\"true\"\n #input\n [textAlign]=\"textAlign\"\n [value]=\"text\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n (onBlur)=\"handleInputBlur()\"\n (click)=\"handleClick()\"\n (onValueChanged)=\"textChange($event)\"\n ></ax-text-box>\n </ng-container>\n <ng-container panel>\n @if (_renderPicker) {\n <ax-calendar-box\n #calendarRef\n [showTodayButton]=\"showTodayButton\"\n [selectableHoliday]=\"selectableHoliday\"\n [min]=\"min()\"\n [max]=\"max()\"\n [size]=\"size\"\n (onClick)=\"onClick($event)\"\n (onValueChanged)=\"onDateChange($event)\"\n [type]=\"type\"\n [(value)]=\"calendarValue\"\n [dayStyle]=\"dayStyle\"\n [dayMinMaxResoan]=\"dayMinMaxResoan\"\n >\n </ax-calendar-box>\n }\n </ng-container>\n <ng-container end>\n <ax-button\n end\n *ngIf=\"allowClear && value\"\n [disabled]=\"disabled\"\n icon=\"far fa-times icon\"\n type=\"blank danger\"\n (click)=\"clearTextBox()\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n >\n </ax-button>\n <ax-button\n end\n icon=\"far fa-calendar-alt icon\"\n type=\"light blank\"\n (click)=\"handleButtonClick()\"\n [disabled]=\"disabled\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n ></ax-button>\n <ng-content select=\"[end]\"> </ng-content>\n </ng-container>\n</ax-drop-down>\n", styles: [".ax-dropdown-container-bordered .ax-calendar-container{border:none!important}\n"] }]
|
5149
|
+
], host: { style: 'width: 100%' }, standalone: false, template: "<ax-drop-down\n [readonly]=\"readonly\"\n [fitParent]=\"false\"\n [size]=\"size\"\n [showDropDownButton]=\"false\"\n icon=\"far fa-calendar-alt\"\n #dropdown\n maxHeight=\"unset\"\n>\n <ng-container start>\n <ng-content select=\"[start]\"> </ng-content>\n </ng-container>\n <ng-container header>\n <ax-text-box\n [mask]=\"dateType\"\n [showMask]=\"true\"\n #input\n [textAlign]=\"textAlign\"\n [value]=\"text\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n (onkey)=\"handleKeyPress($event)\"\n (onBlur)=\"handleInputBlur()\"\n (click)=\"handleClick()\"\n (onValueChanged)=\"textChange($event)\"\n ></ax-text-box>\n </ng-container>\n <ng-container panel>\n @if (_renderPicker) {\n <ax-calendar-box\n #calendarRef\n [showTodayButton]=\"showTodayButton\"\n [selectableHoliday]=\"selectableHoliday\"\n [min]=\"min()\"\n [max]=\"max()\"\n [size]=\"size\"\n (onClick)=\"onClick($event)\"\n (onValueChanged)=\"onDateChange($event)\"\n [type]=\"type\"\n [(value)]=\"calendarValue\"\n [dayStyle]=\"dayStyle\"\n [dayMinMaxResoan]=\"dayMinMaxResoan\"\n >\n </ax-calendar-box>\n }\n </ng-container>\n <ng-container end>\n <ax-button\n end\n *ngIf=\"allowClear && value\"\n [disabled]=\"disabled\"\n icon=\"far fa-times icon\"\n type=\"blank danger\"\n (click)=\"clearTextBox()\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n >\n </ax-button>\n <ax-button\n end\n icon=\"far fa-calendar-alt icon\"\n type=\"light blank\"\n (click)=\"handleButtonClick()\"\n [disabled]=\"disabled\"\n [size]=\"size\"\n [tabIndex]=\"-1\"\n ></ax-button>\n <ng-content select=\"[end]\"> </ng-content>\n </ng-container>\n</ax-drop-down>\n", styles: [".ax-dropdown-container-bordered .ax-calendar-container{border:none!important}\n"] }]
|
5159
5150
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { dropdown: [{
|
5160
5151
|
type: ViewChild,
|
5161
5152
|
args: ['dropdown', { static: true }]
|