mis-crystal-design-system 4.0.45 → 4.0.46-sukhad-test1

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 (112) hide show
  1. package/action-list/mis-crystal-design-system-action-list.metadata.json +1 -1
  2. package/bundles/mis-crystal-design-system-action-list.umd.js +495 -641
  3. package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -1
  4. package/bundles/mis-crystal-design-system-action-list.umd.min.js +15 -1
  5. package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -1
  6. package/bundles/mis-crystal-design-system-analytics.umd.js +409 -555
  7. package/bundles/mis-crystal-design-system-analytics.umd.js.map +1 -1
  8. package/bundles/mis-crystal-design-system-analytics.umd.min.js +15 -1
  9. package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +1 -1
  10. package/bundles/mis-crystal-design-system-checkbox.umd.js +1 -1
  11. package/bundles/mis-crystal-design-system-checkbox.umd.min.js +1 -1
  12. package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -1
  13. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +690 -836
  14. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -1
  15. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +15 -1
  16. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -1
  17. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +1 -1
  18. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +1 -1
  19. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -1
  20. package/bundles/mis-crystal-design-system-dropdown.umd.js +544 -690
  21. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -1
  22. package/bundles/mis-crystal-design-system-dropdown.umd.min.js +15 -1
  23. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -1
  24. package/bundles/mis-crystal-design-system-dynamic-form.umd.js +723 -869
  25. package/bundles/mis-crystal-design-system-dynamic-form.umd.js.map +1 -1
  26. package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js +15 -1
  27. package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js.map +1 -1
  28. package/bundles/mis-crystal-design-system-input.umd.js +1 -1
  29. package/bundles/mis-crystal-design-system-input.umd.min.js +1 -1
  30. package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -1
  31. package/bundles/mis-crystal-design-system-loader.umd.js +1 -1
  32. package/bundles/mis-crystal-design-system-loader.umd.min.js +1 -1
  33. package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -1
  34. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +610 -756
  35. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -1
  36. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +15 -1
  37. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -1
  38. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +623 -769
  39. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -1
  40. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +15 -1
  41. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -1
  42. package/bundles/mis-crystal-design-system-phone-input.umd.js +78 -11
  43. package/bundles/mis-crystal-design-system-phone-input.umd.js.map +1 -1
  44. package/bundles/mis-crystal-design-system-phone-input.umd.min.js +1 -1
  45. package/bundles/mis-crystal-design-system-phone-input.umd.min.js.map +1 -1
  46. package/bundles/mis-crystal-design-system-ske-loader.umd.js +1 -1
  47. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +1 -1
  48. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +1 -1
  49. package/bundles/mis-crystal-design-system-specificdatepicker.umd.js +961 -1107
  50. package/bundles/mis-crystal-design-system-specificdatepicker.umd.js.map +1 -1
  51. package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js +15 -1
  52. package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js.map +1 -1
  53. package/bundles/mis-crystal-design-system-table.umd.js +768 -914
  54. package/bundles/mis-crystal-design-system-table.umd.js.map +1 -1
  55. package/bundles/mis-crystal-design-system-table.umd.min.js +15 -1
  56. package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -1
  57. package/bundles/mis-crystal-design-system-timepicker.umd.js +670 -816
  58. package/bundles/mis-crystal-design-system-timepicker.umd.js.map +1 -1
  59. package/bundles/mis-crystal-design-system-timepicker.umd.min.js +15 -1
  60. package/bundles/mis-crystal-design-system-timepicker.umd.min.js.map +1 -1
  61. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +457 -603
  62. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +1 -1
  63. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +15 -1
  64. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +1 -1
  65. package/bundles/mis-crystal-design-system-widgets.umd.js +462 -608
  66. package/bundles/mis-crystal-design-system-widgets.umd.js.map +1 -1
  67. package/bundles/mis-crystal-design-system-widgets.umd.min.js +15 -1
  68. package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +1 -1
  69. package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -1
  70. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -1
  71. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -1
  72. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -1
  73. package/dynamic-form/mis-crystal-design-system-dynamic-form.metadata.json +1 -1
  74. package/esm2015/action-list/action-list.component.js +1 -1
  75. package/esm2015/checkbox/checkbox.component.js +1 -1
  76. package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +1 -1
  77. package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +1 -1
  78. package/esm2015/dropdown/dropdown.component.js +1 -1
  79. package/esm2015/dynamic-form/dynamic-form.component.js +1 -1
  80. package/esm2015/input/mis-input.component.js +1 -1
  81. package/esm2015/loader/loader.component.js +1 -1
  82. package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +1 -1
  83. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +1 -1
  84. package/esm2015/phone-input/phone-input.component.js +78 -10
  85. package/esm2015/ske-loader/ske-loader.component.js +1 -1
  86. package/esm2015/specificdatepicker/tz-sdp-container/tz-sdp-container.component.js +1 -1
  87. package/esm2015/table/table.component.js +1 -1
  88. package/fesm2015/mis-crystal-design-system-action-list.js +1 -1
  89. package/fesm2015/mis-crystal-design-system-checkbox.js +1 -1
  90. package/fesm2015/mis-crystal-design-system-datepicker_v2.js +1 -1
  91. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +1 -1
  92. package/fesm2015/mis-crystal-design-system-dropdown.js +1 -1
  93. package/fesm2015/mis-crystal-design-system-dynamic-form.js +1 -1
  94. package/fesm2015/mis-crystal-design-system-input.js +1 -1
  95. package/fesm2015/mis-crystal-design-system-loader.js +1 -1
  96. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +1 -1
  97. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +1 -1
  98. package/fesm2015/mis-crystal-design-system-phone-input.js +75 -7
  99. package/fesm2015/mis-crystal-design-system-phone-input.js.map +1 -1
  100. package/fesm2015/mis-crystal-design-system-ske-loader.js +1 -1
  101. package/fesm2015/mis-crystal-design-system-specificdatepicker.js +1 -1
  102. package/fesm2015/mis-crystal-design-system-table.js +1 -1
  103. package/input/mis-crystal-design-system-input.metadata.json +1 -1
  104. package/loader/mis-crystal-design-system-loader.metadata.json +1 -1
  105. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -1
  106. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -1
  107. package/package.json +1 -1
  108. package/phone-input/mis-crystal-design-system-phone-input.metadata.json +1 -1
  109. package/phone-input/phone-input.component.d.ts +25 -10
  110. package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +1 -1
  111. package/specificdatepicker/mis-crystal-design-system-specificdatepicker.metadata.json +1 -1
  112. package/table/mis-crystal-design-system-table.metadata.json +1 -1
@@ -1,31 +1,95 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/cdk/overlay'), require('@angular/cdk-experimental/scrolling'), require('mis-crystal-design-system/dropdown')) :
3
- typeof define === 'function' && define.amd ? define('mis-crystal-design-system/phone-input', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/cdk/overlay', '@angular/cdk-experimental/scrolling', 'mis-crystal-design-system/dropdown'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system']['phone-input'] = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.cdk.overlay, global.ng.cdkExperimental.scrolling, global['mis-crystal-design-system'].dropdown));
5
- }(this, (function (exports, core, forms, common, overlay, scrolling, dropdown) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('google-libphonenumber'), require('libphonenumber-js'), require('@angular/common'), require('@angular/cdk/overlay'), require('@angular/cdk-experimental/scrolling'), require('mis-crystal-design-system/dropdown')) :
3
+ typeof define === 'function' && define.amd ? define('mis-crystal-design-system/phone-input', ['exports', '@angular/core', '@angular/forms', 'google-libphonenumber', 'libphonenumber-js', '@angular/common', '@angular/cdk/overlay', '@angular/cdk-experimental/scrolling', 'mis-crystal-design-system/dropdown'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system']['phone-input'] = {}), global.ng.core, global.ng.forms, global.googleLibphonenumber, global.libphonenumberJs, global.ng.common, global.ng.cdk.overlay, global.ng.cdkExperimental.scrolling, global['mis-crystal-design-system'].dropdown));
5
+ }(this, (function (exports, core, forms, googleLibphonenumber, libphonenumberJs, common, overlay, scrolling, dropdown) { 'use strict';
6
6
 
7
7
  var PhoneInputComponent = /** @class */ (function () {
8
8
  function PhoneInputComponent() {
9
+ this.dropdownHeight = '';
10
+ this.dropdownWidth = '';
9
11
  this.dropdownData = [];
10
- this.dropdownSelectedItem = { value: "", label: "" };
12
+ this.dropdownSelectedItem = { value: '', label: '', countryCode: '' };
11
13
  this.inputPlaceholder = 'Enter';
12
14
  this.inputFormControl = new forms.FormControl();
13
15
  this.onDropdownSelection = new core.EventEmitter();
14
- this.searchEnabled = false;
15
- this.inputType = "number";
16
- this.searchLabel = "Search Keyword";
16
+ this.onInvalidPhoneNumber = new core.EventEmitter();
17
+ this.dropdownListWidth = '';
18
+ this.dropdownListHeight = '';
19
+ this.searchEnabled = true;
20
+ this.inputType = 'number';
21
+ this.searchLabel = 'Search Keyword';
22
+ this.defaultCountry = 'IN';
23
+ this.phoneValidator = true;
24
+ this.countryCodes = [{ label: '', value: '', countryCode: '' }];
25
+ this.selectedCountryName = '';
26
+ this.validationMessage = '';
27
+ this.inputTouched = false;
28
+ this.phoneUtil = googleLibphonenumber.PhoneNumberUtil.getInstance();
17
29
  }
18
30
  PhoneInputComponent.prototype.ngOnInit = function () {
31
+ var _this = this;
32
+ if (this.phoneValidator) {
33
+ this.loadCountryCodes();
34
+ this.dropdownData = this.countryCodes;
35
+ var countryCodeToSelect_1 = this.defaultCountry;
36
+ var def = this.countryCodes.find(function (item) { return item.countryCode === countryCodeToSelect_1; });
37
+ if (def) {
38
+ this.dropdownSelectedItem = def;
39
+ this.selectedCountryName = def.label;
40
+ }
41
+ this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);
42
+ }
43
+ this.inputFormControl.valueChanges.subscribe(function (value) {
44
+ _this.validatePhoneNumber(value, _this.dropdownSelectedItem.countryCode);
45
+ });
19
46
  };
20
47
  PhoneInputComponent.prototype.handleDropdownSelection = function (item) {
21
- this.onDropdownSelection.emit(item);
48
+ this.dropdownSelectedItem = item;
49
+ this.onDropdownSelection.emit(item.countryCode);
50
+ this.selectedCountryName = item.label;
51
+ this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);
52
+ this.inputFormControl.patchValue({ countryCode: item.countryCode }, { emitEvent: false });
53
+ };
54
+ PhoneInputComponent.prototype.loadCountryCodes = function () {
55
+ var countries = libphonenumberJs.getCountries();
56
+ this.countryCodes = countries.map(function (countryCode) { return ({
57
+ value: libphonenumberJs.getCountryCallingCode(countryCode).toString(),
58
+ label: countryCode + " (+" + libphonenumberJs.getCountryCallingCode(countryCode) + ")",
59
+ countryCode: countryCode,
60
+ }); });
61
+ };
62
+ PhoneInputComponent.prototype.validatePhoneNumber = function (value, countryCode) {
63
+ var phoneNumber = (value === null || value === void 0 ? void 0 : value.phoneNumber) || value;
64
+ if (phoneNumber && countryCode) {
65
+ try {
66
+ var number = this.phoneUtil.parseAndKeepRawInput(phoneNumber, countryCode);
67
+ var isValid = this.phoneUtil.isValidNumberForRegion(number, countryCode);
68
+ if (isValid) {
69
+ this.validationMessage = null;
70
+ this.onInvalidPhoneNumber.emit('');
71
+ }
72
+ else {
73
+ this.validationMessage = "Phone number invalid for country code: +" + this.dropdownSelectedItem.value + "(" + this.dropdownSelectedItem.countryCode + ")";
74
+ this.onInvalidPhoneNumber.emit(this.validationMessage);
75
+ }
76
+ }
77
+ catch (error) {
78
+ this.validationMessage = 'Invalid input';
79
+ this.onInvalidPhoneNumber.emit(this.validationMessage);
80
+ }
81
+ }
82
+ };
83
+ PhoneInputComponent.prototype.onBlur = function () {
84
+ this.inputTouched = true;
85
+ this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);
22
86
  };
23
87
  return PhoneInputComponent;
24
88
  }());
25
89
  PhoneInputComponent.decorators = [
26
90
  { type: core.Component, args: [{
27
91
  selector: "mis-phone-input",
28
- template: "<div class=\"main-container-phone\">\n <mis-dropdown [height]=\"dropdownHeight\" [dropdownListWidth]=\"dropdownListWidth\"[dropdownListHeight]=\"dropdownListHeight\" [width]=\"dropdownWidth\" [data]=\"dropdownData\" [selectedItem]=\"dropdownSelectedItem\" [label]=\"label\" [searchEnabled]=\"searchEnabled\" [multiLine]=\"false\" (onChange)=\"handleDropdownSelection($event)\" [searchLabel]=\"searchLabel\"></mis-dropdown>\n <div class=\"details-field\">\n <div class=\"input-box\">\n <input\n [ngStyle]=\"{'height': inputHeight }\"\n class=\"black-text\"\n [placeholder]=\"inputPlaceholder\"\n [formControl]=\"inputFormControl\" \n [type]=\"inputType\"\n />\n </div>\n </div>\n</div>\n",
92
+ template: "<div class=\"main-container-phone\">\n <mis-dropdown \n [height]=\"dropdownHeight\" \n [dropdownListWidth]=\"dropdownListWidth\"\n [dropdownListHeight]=\"dropdownListHeight\" \n [width]=\"dropdownWidth\" \n [data]=\"dropdownData\"\n [selectedItem]=\"dropdownSelectedItem\" \n [label]=\"label\" \n [searchEnabled]=\"searchEnabled\" \n [multiLine]=\"false\"\n (onChange)=\"handleDropdownSelection($event)\" \n [searchLabel]=\"searchLabel\">\n </mis-dropdown>\n <div class=\"details-field\">\n <div class=\"input-box\">\n <input\n [ngStyle]=\"{'height': inputHeight }\"\n class=\"black-text\" \n [placeholder]=\"inputPlaceholder\"\n [formControl]=\"inputFormControl\" \n [type]=\"inputType\"\n (blur)=\"onBlur()\"\n />\n </div>\n </div>\n</div>\n",
29
93
  styles: [".main-container-phone{display:flex;border:1px solid #e0e0e0;border-radius:6px}.details-field label{display:inline-block;min-width:224px;margin-right:24px}.details-field .input-box{width:100%}.details-field .input-box input{width:100%;height:32px}input{padding:10px 16px;border:none;outline:none;width:100%;height:auto;border-radius:6px}.black-text,input{color:#181f33;line-height:24px;font-size:16px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.main-container-phone ::ng-deep .item{padding:8px!important}.main-container-phone ::ng-deep .dropdown{border:unset!important}"]
30
94
  },] }
31
95
  ];
@@ -40,11 +104,14 @@
40
104
  inputPlaceholder: [{ type: core.Input }],
41
105
  inputFormControl: [{ type: core.Input }],
42
106
  onDropdownSelection: [{ type: core.Output }],
107
+ onInvalidPhoneNumber: [{ type: core.Output }],
43
108
  dropdownListWidth: [{ type: core.Input }],
44
109
  dropdownListHeight: [{ type: core.Input }],
45
110
  searchEnabled: [{ type: core.Input }],
46
111
  inputType: [{ type: core.Input }],
47
- searchLabel: [{ type: core.Input }]
112
+ searchLabel: [{ type: core.Input }],
113
+ defaultCountry: [{ type: core.Input }],
114
+ phoneValidator: [{ type: core.Input }]
48
115
  };
49
116
 
50
117
  var PhoneInputModule = /** @class */ (function () {
@@ -1 +1 @@
1
- {"version":3,"file":"mis-crystal-design-system-phone-input.umd.js","sources":["../../../projects/mis-components/phone-input/phone-input.component.ts","../../../projects/mis-components/phone-input/phone-input.module.ts","../../../projects/mis-components/phone-input/mis-crystal-design-system-phone-input.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\nimport { FormControl } from \"@angular/forms\";\nimport { DropdownItem } from \"mis-crystal-design-system/dropdown\";\n\n@Component({\n selector: \"mis-phone-input\",\n templateUrl: \"./phone-input.component.html\",\n styleUrls: [\"./phone-input.component.scss\"]\n})\nexport class PhoneInputComponent implements OnInit {\n @Input() dropdownHeight?: string;\n @Input() dropdownWidth?: string;\n @Input() inputHeight?: string;\n @Input() dropdownData: DropdownItem[] = [];\n @Input() dropdownSelectedItem:DropdownItem = { value: \"\", label: \"\" } \n @Input() label: string;\n\n @Input() inputPlaceholder: string = 'Enter';\n @Input() inputFormControl: FormControl = new FormControl();\n\n @Output() onDropdownSelection = new EventEmitter<any>();\n @Input() dropdownListWidth;\n @Input() dropdownListHeight;\n @Input() searchEnabled:boolean=false;\n @Input() inputType: string = \"number\";\n @Input() searchLabel:string = \"Search Keyword\"\n \n constructor() {}\n ngOnInit() {\n }\n\n handleDropdownSelection(item: DropdownItem){\n this.onDropdownSelection.emit(item);\n }\n\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { PhoneInputComponent } from \"./phone-input.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { DropdownModule } from \"mis-crystal-design-system/dropdown\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n\n@NgModule({\n declarations: [PhoneInputComponent],\n imports: [CommonModule,ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],\n exports: [PhoneInputComponent]\n})\nexport class PhoneInputModule {\n static forRoot(): ModuleWithProviders<PhoneInputModule> {\n return { ngModule: PhoneInputModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["FormControl","EventEmitter","Component","Input","Output","NgModule","CommonModule","ReactiveFormsModule","FormsModule","OverlayModule","ScrollingModule","DropdownModule"],"mappings":";;;;;;;QA2BE;YAdS,iBAAY,GAAmB,EAAE,CAAC;YAClC,yBAAoB,GAAgB,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAG5D,qBAAgB,GAAW,OAAO,CAAC;YACnC,qBAAgB,GAAgB,IAAIA,iBAAW,EAAE,CAAC;YAEjD,wBAAmB,GAAG,IAAIC,iBAAY,EAAO,CAAC;YAG/C,kBAAa,GAAS,KAAK,CAAC;YAC5B,cAAS,GAAW,QAAQ,CAAC;YAC7B,gBAAW,GAAU,gBAAgB,CAAA;SAE9B;QAChB,sCAAQ,GAAR;SACC;QAED,qDAAuB,GAAvB,UAAwB,IAAkB;YACxC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrC;;;;gBA7BFC,cAAS,SAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,8uBAA2C;;iBAE5C;;;;iCAEEC,UAAK;gCACLA,UAAK;8BACLA,UAAK;+BACLA,UAAK;uCACLA,UAAK;wBACLA,UAAK;mCAELA,UAAK;mCACLA,UAAK;sCAELC,WAAM;oCACND,UAAK;qCACLA,UAAK;gCACLA,UAAK;4BACLA,UAAK;8BACLA,UAAK;;;;QCVR;;QACS,wBAAO,GAAd;YACE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SACtD;;;;gBARFE,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAACC,mBAAY,EAACC,yBAAmB,EAAEC,iBAAW,EAAEC,qBAAa,EAAEC,yBAAe,EAAEC,uBAAc,CAAC;oBACxG,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC/B;;;ICdD;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"mis-crystal-design-system-phone-input.umd.js","sources":["../../../projects/mis-components/phone-input/phone-input.component.ts","../../../projects/mis-components/phone-input/phone-input.module.ts","../../../projects/mis-components/phone-input/mis-crystal-design-system-phone-input.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\nimport { getCountries, getCountryCallingCode, CountryCode } from 'libphonenumber-js';\nimport { DropdownItem } from 'mis-crystal-design-system/dropdown';\n\ninterface CustomDropdownItem extends DropdownItem {\n countryCode: string;\n}\n\n@Component({\n selector: \"mis-phone-input\",\n templateUrl: \"./phone-input.component.html\",\n styleUrls: [\"./phone-input.component.scss\"]\n})\nexport class PhoneInputComponent implements OnInit {\n @Input() dropdownHeight?: string = '';\n @Input() dropdownWidth?: string = '';\n @Input() inputHeight?;\n @Input() dropdownData: CustomDropdownItem[] = [];\n @Input() dropdownSelectedItem: CustomDropdownItem = { value: '', label: '', countryCode: '' };\n @Input() label: string;\n @Input() inputPlaceholder: string = 'Enter';\n @Input() inputFormControl: FormControl = new FormControl();\n @Output() onDropdownSelection = new EventEmitter<string>();\n @Output() onInvalidPhoneNumber = new EventEmitter<string>();\n @Input() dropdownListWidth = '';\n @Input() dropdownListHeight = '';\n @Input() searchEnabled: boolean = true;\n @Input() inputType: string = 'number';\n @Input() searchLabel: string = 'Search Keyword';\n @Input() defaultCountry: string = 'IN';\n @Input() phoneValidator? = true;\n\n countryCodes: CustomDropdownItem[] = [{ label: '', value: '', countryCode: '' }];\n selectedCountryName: string = '';\n validationMessage: string = '';\n private phoneUtil: PhoneNumberUtil;\n private inputTouched: boolean = false;\n\n constructor() {\n this.phoneUtil = PhoneNumberUtil.getInstance();\n }\n\n ngOnInit() {\n if (this.phoneValidator) {\n this.loadCountryCodes();\n this.dropdownData = this.countryCodes;\n const countryCodeToSelect = this.defaultCountry;\n const def = this.countryCodes.find(item => item.countryCode === countryCodeToSelect);\n if (def) {\n this.dropdownSelectedItem = def;\n this.selectedCountryName = def.label;\n }\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);\n }\n\n this.inputFormControl.valueChanges.subscribe((value) => {\n this.validatePhoneNumber(value, this.dropdownSelectedItem.countryCode);\n });\n }\n\n handleDropdownSelection(item: CustomDropdownItem) {\n this.dropdownSelectedItem = item;\n this.onDropdownSelection.emit(item.countryCode);\n this.selectedCountryName = item.label;\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);\n this.inputFormControl.patchValue({ countryCode: item.countryCode }, { emitEvent: false });\n }\n\n loadCountryCodes() {\n const countries = getCountries();\n this.countryCodes = countries.map((countryCode) => ({\n value: getCountryCallingCode(countryCode).toString(),\n label: `${countryCode} (+${getCountryCallingCode(countryCode)})`,\n countryCode: countryCode,\n }));\n }\n\n public validatePhoneNumber(value: any, countryCode: string) {\n const phoneNumber = value?.phoneNumber || value;\n if (phoneNumber && countryCode) {\n try {\n const number = this.phoneUtil.parseAndKeepRawInput(phoneNumber, countryCode);\n const isValid = this.phoneUtil.isValidNumberForRegion(number, countryCode);\n if (isValid) {\n this.validationMessage = null;\n this.onInvalidPhoneNumber.emit('');\n } else {\n this.validationMessage = `Phone number invalid for country code: +${this.dropdownSelectedItem.value}(${this.dropdownSelectedItem.countryCode})`;\n this.onInvalidPhoneNumber.emit(this.validationMessage);\n }\n } catch (error) {\n this.validationMessage = 'Invalid input';\n this.onInvalidPhoneNumber.emit(this.validationMessage);\n }\n }\n }\n\n onBlur() {\n this.inputTouched = true;\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);\n }\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { PhoneInputComponent } from \"./phone-input.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { DropdownModule } from \"mis-crystal-design-system/dropdown\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n\n@NgModule({\n declarations: [PhoneInputComponent],\n imports: [CommonModule,ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],\n exports: [PhoneInputComponent]\n})\nexport class PhoneInputModule {\n static forRoot(): ModuleWithProviders<PhoneInputModule> {\n return { ngModule: PhoneInputModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["FormControl","EventEmitter","PhoneNumberUtil","getCountries","getCountryCallingCode","Component","Input","Output","NgModule","CommonModule","ReactiveFormsModule","FormsModule","OverlayModule","ScrollingModule","DropdownModule"],"mappings":";;;;;;;QAwCE;YAxBS,mBAAc,GAAY,EAAE,CAAC;YAC7B,kBAAa,GAAY,EAAE,CAAC;YAE5B,iBAAY,GAAyB,EAAE,CAAC;YACxC,yBAAoB,GAAuB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gCACLA,UAAK;4BACLA,UAAK;8BACLA,UAAK;iCACLA,UAAK;iCACLA,UAAK;;;;QCjBR;;QACS,wBAAO,GAAd;YACE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SACtD;;;;gBARFE,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAACC,mBAAY,EAACC,yBAAmB,EAAEC,iBAAW,EAAEC,qBAAa,EAAEC,yBAAe,EAAEC,uBAAc,CAAC;oBACxG,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC/B;;;ICdD;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common"),require("@angular/cdk/overlay"),require("@angular/cdk-experimental/scrolling"),require("mis-crystal-design-system/dropdown")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/phone-input",["exports","@angular/core","@angular/forms","@angular/common","@angular/cdk/overlay","@angular/cdk-experimental/scrolling","mis-crystal-design-system/dropdown"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"]["phone-input"]={}),e.ng.core,e.ng.forms,e.ng.common,e.ng.cdk.overlay,e.ng.cdkExperimental.scrolling,e["mis-crystal-design-system"].dropdown)}(this,(function(e,n,t,o,i,r,d){"use strict";var p=function(){function e(){this.dropdownData=[],this.dropdownSelectedItem={value:"",label:""},this.inputPlaceholder="Enter",this.inputFormControl=new t.FormControl,this.onDropdownSelection=new n.EventEmitter,this.searchEnabled=!1,this.inputType="number",this.searchLabel="Search Keyword"}return e.prototype.ngOnInit=function(){},e.prototype.handleDropdownSelection=function(e){this.onDropdownSelection.emit(e)},e}();p.decorators=[{type:n.Component,args:[{selector:"mis-phone-input",template:'<div class="main-container-phone">\n <mis-dropdown [height]="dropdownHeight" [dropdownListWidth]="dropdownListWidth"[dropdownListHeight]="dropdownListHeight" [width]="dropdownWidth" [data]="dropdownData" [selectedItem]="dropdownSelectedItem" [label]="label" [searchEnabled]="searchEnabled" [multiLine]="false" (onChange)="handleDropdownSelection($event)" [searchLabel]="searchLabel"></mis-dropdown>\n <div class="details-field">\n <div class="input-box">\n <input\n [ngStyle]="{\'height\': inputHeight }"\n class="black-text"\n [placeholder]="inputPlaceholder"\n [formControl]="inputFormControl" \n [type]="inputType"\n />\n </div>\n </div>\n</div>\n',styles:[".main-container-phone{display:flex;border:1px solid #e0e0e0;border-radius:6px}.details-field label{display:inline-block;min-width:224px;margin-right:24px}.details-field .input-box{width:100%}.details-field .input-box input{width:100%;height:32px}input{padding:10px 16px;border:none;outline:none;width:100%;height:auto;border-radius:6px}.black-text,input{color:#181f33;line-height:24px;font-size:16px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.main-container-phone ::ng-deep .item{padding:8px!important}.main-container-phone ::ng-deep .dropdown{border:unset!important}"]}]}],p.ctorParameters=function(){return[]},p.propDecorators={dropdownHeight:[{type:n.Input}],dropdownWidth:[{type:n.Input}],inputHeight:[{type:n.Input}],dropdownData:[{type:n.Input}],dropdownSelectedItem:[{type:n.Input}],label:[{type:n.Input}],inputPlaceholder:[{type:n.Input}],inputFormControl:[{type:n.Input}],onDropdownSelection:[{type:n.Output}],dropdownListWidth:[{type:n.Input}],dropdownListHeight:[{type:n.Input}],searchEnabled:[{type:n.Input}],inputType:[{type:n.Input}],searchLabel:[{type:n.Input}]};var a=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();a.decorators=[{type:n.NgModule,args:[{declarations:[p],imports:[o.CommonModule,t.ReactiveFormsModule,t.FormsModule,i.OverlayModule,r.ScrollingModule,d.DropdownModule],exports:[p]}]}],e.PhoneInputComponent=p,e.PhoneInputModule=a,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("google-libphonenumber"),require("libphonenumber-js"),require("@angular/common"),require("@angular/cdk/overlay"),require("@angular/cdk-experimental/scrolling"),require("mis-crystal-design-system/dropdown")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/phone-input",["exports","@angular/core","@angular/forms","google-libphonenumber","libphonenumber-js","@angular/common","@angular/cdk/overlay","@angular/cdk-experimental/scrolling","mis-crystal-design-system/dropdown"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"]["phone-input"]={}),e.ng.core,e.ng.forms,e.googleLibphonenumber,e.libphonenumberJs,e.ng.common,e.ng.cdk.overlay,e.ng.cdkExperimental.scrolling,e["mis-crystal-design-system"].dropdown)}(this,(function(e,t,n,o,i,r,d,l,a){"use strict";var s=function(){function e(){this.dropdownHeight="",this.dropdownWidth="",this.dropdownData=[],this.dropdownSelectedItem={value:"",label:"",countryCode:""},this.inputPlaceholder="Enter",this.inputFormControl=new n.FormControl,this.onDropdownSelection=new t.EventEmitter,this.onInvalidPhoneNumber=new t.EventEmitter,this.dropdownListWidth="",this.dropdownListHeight="",this.searchEnabled=!0,this.inputType="number",this.searchLabel="Search Keyword",this.defaultCountry="IN",this.phoneValidator=!0,this.countryCodes=[{label:"",value:"",countryCode:""}],this.selectedCountryName="",this.validationMessage="",this.inputTouched=!1,this.phoneUtil=o.PhoneNumberUtil.getInstance()}return e.prototype.ngOnInit=function(){var e=this;if(this.phoneValidator){this.loadCountryCodes(),this.dropdownData=this.countryCodes;var t=this.defaultCountry,n=this.countryCodes.find((function(e){return e.countryCode===t}));n&&(this.dropdownSelectedItem=n,this.selectedCountryName=n.label),this.validatePhoneNumber(this.inputFormControl.value,this.dropdownSelectedItem.countryCode)}this.inputFormControl.valueChanges.subscribe((function(t){e.validatePhoneNumber(t,e.dropdownSelectedItem.countryCode)}))},e.prototype.handleDropdownSelection=function(e){this.dropdownSelectedItem=e,this.onDropdownSelection.emit(e.countryCode),this.selectedCountryName=e.label,this.validatePhoneNumber(this.inputFormControl.value,this.dropdownSelectedItem.countryCode),this.inputFormControl.patchValue({countryCode:e.countryCode},{emitEvent:!1})},e.prototype.loadCountryCodes=function(){var e=i.getCountries();this.countryCodes=e.map((function(e){return{value:i.getCountryCallingCode(e).toString(),label:e+" (+"+i.getCountryCallingCode(e)+")",countryCode:e}}))},e.prototype.validatePhoneNumber=function(e,t){var n=(null==e?void 0:e.phoneNumber)||e;if(n&&t)try{var o=this.phoneUtil.parseAndKeepRawInput(n,t);this.phoneUtil.isValidNumberForRegion(o,t)?(this.validationMessage=null,this.onInvalidPhoneNumber.emit("")):(this.validationMessage="Phone number invalid for country code: +"+this.dropdownSelectedItem.value+"("+this.dropdownSelectedItem.countryCode+")",this.onInvalidPhoneNumber.emit(this.validationMessage))}catch(e){this.validationMessage="Invalid input",this.onInvalidPhoneNumber.emit(this.validationMessage)}},e.prototype.onBlur=function(){this.inputTouched=!0,this.validatePhoneNumber(this.inputFormControl.value,this.dropdownSelectedItem.countryCode)},e}();s.decorators=[{type:t.Component,args:[{selector:"mis-phone-input",template:'<div class="main-container-phone">\n <mis-dropdown \n [height]="dropdownHeight" \n [dropdownListWidth]="dropdownListWidth"\n [dropdownListHeight]="dropdownListHeight" \n [width]="dropdownWidth" \n [data]="dropdownData"\n [selectedItem]="dropdownSelectedItem" \n [label]="label" \n [searchEnabled]="searchEnabled" \n [multiLine]="false"\n (onChange)="handleDropdownSelection($event)" \n [searchLabel]="searchLabel">\n </mis-dropdown>\n <div class="details-field">\n <div class="input-box">\n <input\n [ngStyle]="{\'height\': inputHeight }"\n class="black-text" \n [placeholder]="inputPlaceholder"\n [formControl]="inputFormControl" \n [type]="inputType"\n (blur)="onBlur()"\n />\n </div>\n </div>\n</div>\n',styles:[".main-container-phone{display:flex;border:1px solid #e0e0e0;border-radius:6px}.details-field label{display:inline-block;min-width:224px;margin-right:24px}.details-field .input-box{width:100%}.details-field .input-box input{width:100%;height:32px}input{padding:10px 16px;border:none;outline:none;width:100%;height:auto;border-radius:6px}.black-text,input{color:#181f33;line-height:24px;font-size:16px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.main-container-phone ::ng-deep .item{padding:8px!important}.main-container-phone ::ng-deep .dropdown{border:unset!important}"]}]}],s.ctorParameters=function(){return[]},s.propDecorators={dropdownHeight:[{type:t.Input}],dropdownWidth:[{type:t.Input}],inputHeight:[{type:t.Input}],dropdownData:[{type:t.Input}],dropdownSelectedItem:[{type:t.Input}],label:[{type:t.Input}],inputPlaceholder:[{type:t.Input}],inputFormControl:[{type:t.Input}],onDropdownSelection:[{type:t.Output}],onInvalidPhoneNumber:[{type:t.Output}],dropdownListWidth:[{type:t.Input}],dropdownListHeight:[{type:t.Input}],searchEnabled:[{type:t.Input}],inputType:[{type:t.Input}],searchLabel:[{type:t.Input}],defaultCountry:[{type:t.Input}],phoneValidator:[{type:t.Input}]};var p=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();p.decorators=[{type:t.NgModule,args:[{declarations:[s],imports:[r.CommonModule,n.ReactiveFormsModule,n.FormsModule,d.OverlayModule,l.ScrollingModule,a.DropdownModule],exports:[s]}]}],e.PhoneInputComponent=s,e.PhoneInputModule=p,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=mis-crystal-design-system-phone-input.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../projects/mis-components/phone-input/phone-input.component.ts","../../../projects/mis-components/phone-input/phone-input.module.ts"],"names":["PhoneInputComponent","this","dropdownData","dropdownSelectedItem","value","label","inputPlaceholder","inputFormControl","FormControl","onDropdownSelection","EventEmitter","searchEnabled","inputType","searchLabel","prototype","ngOnInit","handleDropdownSelection","item","emit","Component","args","selector","template","Input","Output","PhoneInputModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","ReactiveFormsModule","FormsModule","OverlayModule","ScrollingModule","DropdownModule","exports"],"mappings":"q3BA2BE,SAAAA,IAdSC,KAAAC,aAA+B,GAC/BD,KAAAE,qBAAoC,CAAEC,MAAO,GAAIC,MAAO,IAGxDJ,KAAAK,iBAA2B,QAC3BL,KAAAM,iBAAgC,IAAIC,EAAAA,YAEnCP,KAAAQ,oBAAsB,IAAIC,EAAAA,aAG3BT,KAAAU,eAAsB,EACtBV,KAAAW,UAAoB,SACpBX,KAAAY,YAAqB,wBAG9Bb,EAAAc,UAAAC,SAAA,aAGAf,EAAAc,UAAAE,wBAAA,SAAwBC,GACtBhB,KAAKQ,oBAAoBS,KAAKD,6BA5BjCE,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,kBACVC,SAAA,+4CAICC,EAAAA,6BACAA,EAAAA,2BACAA,EAAAA,4BACAA,EAAAA,oCACAA,EAAAA,qBACAA,EAAAA,gCAEAA,EAAAA,gCACAA,EAAAA,mCAEAC,EAAAA,kCACAD,EAAAA,kCACAA,EAAAA,6BACAA,EAAAA,yBACAA,EAAAA,2BACAA,EAAAA,0BCVH,SAAAE,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAkBG,UAAW,8BAPnDC,EAAAA,SAAQT,KAAA,CAAC,CACRU,aAAc,CAAC9B,GACf+B,QAAS,CAACC,EAAAA,aAAaC,EAAAA,oBAAqBC,EAAAA,YAAaC,EAAAA,cAAeC,EAAAA,gBAAiBC,EAAAA,gBACzFC,QAAS,CAACtC","sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\nimport { FormControl } from \"@angular/forms\";\nimport { DropdownItem } from \"mis-crystal-design-system/dropdown\";\n\n@Component({\n selector: \"mis-phone-input\",\n templateUrl: \"./phone-input.component.html\",\n styleUrls: [\"./phone-input.component.scss\"]\n})\nexport class PhoneInputComponent implements OnInit {\n @Input() dropdownHeight?: string;\n @Input() dropdownWidth?: string;\n @Input() inputHeight?: string;\n @Input() dropdownData: DropdownItem[] = [];\n @Input() dropdownSelectedItem:DropdownItem = { value: \"\", label: \"\" } \n @Input() label: string;\n\n @Input() inputPlaceholder: string = 'Enter';\n @Input() inputFormControl: FormControl = new FormControl();\n\n @Output() onDropdownSelection = new EventEmitter<any>();\n @Input() dropdownListWidth;\n @Input() dropdownListHeight;\n @Input() searchEnabled:boolean=false;\n @Input() inputType: string = \"number\";\n @Input() searchLabel:string = \"Search Keyword\"\n \n constructor() {}\n ngOnInit() {\n }\n\n handleDropdownSelection(item: DropdownItem){\n this.onDropdownSelection.emit(item);\n }\n\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { PhoneInputComponent } from \"./phone-input.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { DropdownModule } from \"mis-crystal-design-system/dropdown\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n\n@NgModule({\n declarations: [PhoneInputComponent],\n imports: [CommonModule,ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],\n exports: [PhoneInputComponent]\n})\nexport class PhoneInputModule {\n static forRoot(): ModuleWithProviders<PhoneInputModule> {\n return { ngModule: PhoneInputModule, providers: [] };\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../projects/mis-components/phone-input/phone-input.component.ts","../../../projects/mis-components/phone-input/phone-input.module.ts"],"names":["PhoneInputComponent","this","dropdownHeight","dropdownWidth","dropdownData","dropdownSelectedItem","value","label","countryCode","inputPlaceholder","inputFormControl","FormControl","onDropdownSelection","EventEmitter","onInvalidPhoneNumber","dropdownListWidth","dropdownListHeight","searchEnabled","inputType","searchLabel","defaultCountry","phoneValidator","countryCodes","selectedCountryName","validationMessage","inputTouched","phoneUtil","PhoneNumberUtil","getInstance","prototype","ngOnInit","_this","loadCountryCodes","countryCodeToSelect_1","def","find","item","validatePhoneNumber","valueChanges","subscribe","handleDropdownSelection","emit","patchValue","emitEvent","countries","getCountries","map","getCountryCallingCode","toString","phoneNumber","number","parseAndKeepRawInput","isValidNumberForRegion","error","onBlur","Component","args","selector","template","Input","Output","PhoneInputModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","ReactiveFormsModule","FormsModule","OverlayModule","ScrollingModule","DropdownModule","exports"],"mappings":"6gCAwCE,SAAAA,IAxBSC,KAAAC,eAA0B,GAC1BD,KAAAE,cAAyB,GAEzBF,KAAAG,aAAqC,GACrCH,KAAAI,qBAA2C,CAAEC,MAAO,GAAIC,MAAO,GAAIC,YAAa,IAEhFP,KAAAQ,iBAA2B,QAC3BR,KAAAS,iBAAgC,IAAIC,EAAAA,YACnCV,KAAAW,oBAAsB,IAAIC,EAAAA,aAC1BZ,KAAAa,qBAAuB,IAAID,EAAAA,aAC5BZ,KAAAc,kBAAoB,GACpBd,KAAAe,mBAAqB,GACrBf,KAAAgB,eAAyB,EACzBhB,KAAAiB,UAAoB,SACpBjB,KAAAkB,YAAsB,iBACtBlB,KAAAmB,eAAyB,KACzBnB,KAAAoB,gBAAkB,EAE3BpB,KAAAqB,aAAqC,CAAC,CAAEf,MAAO,GAAID,MAAO,GAAIE,YAAa,KAC3EP,KAAAsB,oBAA8B,GAC9BtB,KAAAuB,kBAA4B,GAEpBvB,KAAAwB,cAAwB,EAG9BxB,KAAKyB,UAAYC,EAAAA,gBAAgBC,qBAGnC5B,EAAA6B,UAAAC,SAAA,WAAA,IAAAC,EAAA9B,KACE,GAAIA,KAAKoB,eAAgB,CACvBpB,KAAK+B,mBACL/B,KAAKG,aAAeH,KAAKqB,aACzB,IAAMW,EAAsBhC,KAAKmB,eAC3Bc,EAAMjC,KAAKqB,aAAaa,MAAK,SAAAC,GAAQ,OAAAA,EAAK5B,cAAgByB,KAC5DC,IACFjC,KAAKI,qBAAuB6B,EAC5BjC,KAAKsB,oBAAsBW,EAAI3B,OAEjCN,KAAKoC,oBAAoBpC,KAAKS,iBAAiB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AoBpC,KAAKS,iBAAiBJ,MAAOL,KAAKI,qBAAqBG,uCA3FnF+C,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,kBACVC,SAAA,k/CAICC,EAAAA,6BACAA,EAAAA,2BACAA,EAAAA,4BACAA,EAAAA,oCACAA,EAAAA,qBACAA,EAAAA,gCACAA,EAAAA,gCACAA,EAAAA,mCACAC,EAAAA,qCACAA,EAAAA,kCACAD,EAAAA,kCACAA,EAAAA,6BACAA,EAAAA,yBACAA,EAAAA,2BACAA,EAAAA,8BACAA,EAAAA,8BACAA,EAAAA,0BCjBH,SAAAE,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAkBG,UAAW,8BAPnDC,EAAAA,SAAQT,KAAA,CAAC,CACRU,aAAc,CAAClE,GACfmE,QAAS,CAACC,EAAAA,aAAaC,EAAAA,oBAAqBC,EAAAA,YAAaC,EAAAA,cAAeC,EAAAA,gBAAiBC,EAAAA,gBACzFC,QAAS,CAAC1E","sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\nimport { getCountries, getCountryCallingCode, CountryCode } from 'libphonenumber-js';\nimport { DropdownItem } from 'mis-crystal-design-system/dropdown';\n\ninterface CustomDropdownItem extends DropdownItem {\n countryCode: string;\n}\n\n@Component({\n selector: \"mis-phone-input\",\n templateUrl: \"./phone-input.component.html\",\n styleUrls: [\"./phone-input.component.scss\"]\n})\nexport class PhoneInputComponent implements OnInit {\n @Input() dropdownHeight?: string = '';\n @Input() dropdownWidth?: string = '';\n @Input() inputHeight?;\n @Input() dropdownData: CustomDropdownItem[] = [];\n @Input() dropdownSelectedItem: CustomDropdownItem = { value: '', label: '', countryCode: '' };\n @Input() label: string;\n @Input() inputPlaceholder: string = 'Enter';\n @Input() inputFormControl: FormControl = new FormControl();\n @Output() onDropdownSelection = new EventEmitter<string>();\n @Output() onInvalidPhoneNumber = new EventEmitter<string>();\n @Input() dropdownListWidth = '';\n @Input() dropdownListHeight = '';\n @Input() searchEnabled: boolean = true;\n @Input() inputType: string = 'number';\n @Input() searchLabel: string = 'Search Keyword';\n @Input() defaultCountry: string = 'IN';\n @Input() phoneValidator? = true;\n\n countryCodes: CustomDropdownItem[] = [{ label: '', value: '', countryCode: '' }];\n selectedCountryName: string = '';\n validationMessage: string = '';\n private phoneUtil: PhoneNumberUtil;\n private inputTouched: boolean = false;\n\n constructor() {\n this.phoneUtil = PhoneNumberUtil.getInstance();\n }\n\n ngOnInit() {\n if (this.phoneValidator) {\n this.loadCountryCodes();\n this.dropdownData = this.countryCodes;\n const countryCodeToSelect = this.defaultCountry;\n const def = this.countryCodes.find(item => item.countryCode === countryCodeToSelect);\n if (def) {\n this.dropdownSelectedItem = def;\n this.selectedCountryName = def.label;\n }\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);\n }\n\n this.inputFormControl.valueChanges.subscribe((value) => {\n this.validatePhoneNumber(value, this.dropdownSelectedItem.countryCode);\n });\n }\n\n handleDropdownSelection(item: CustomDropdownItem) {\n this.dropdownSelectedItem = item;\n this.onDropdownSelection.emit(item.countryCode);\n this.selectedCountryName = item.label;\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);\n this.inputFormControl.patchValue({ countryCode: item.countryCode }, { emitEvent: false });\n }\n\n loadCountryCodes() {\n const countries = getCountries();\n this.countryCodes = countries.map((countryCode) => ({\n value: getCountryCallingCode(countryCode).toString(),\n label: `${countryCode} (+${getCountryCallingCode(countryCode)})`,\n countryCode: countryCode,\n }));\n }\n\n public validatePhoneNumber(value: any, countryCode: string) {\n const phoneNumber = value?.phoneNumber || value;\n if (phoneNumber && countryCode) {\n try {\n const number = this.phoneUtil.parseAndKeepRawInput(phoneNumber, countryCode);\n const isValid = this.phoneUtil.isValidNumberForRegion(number, countryCode);\n if (isValid) {\n this.validationMessage = null;\n this.onInvalidPhoneNumber.emit('');\n } else {\n this.validationMessage = `Phone number invalid for country code: +${this.dropdownSelectedItem.value}(${this.dropdownSelectedItem.countryCode})`;\n this.onInvalidPhoneNumber.emit(this.validationMessage);\n }\n } catch (error) {\n this.validationMessage = 'Invalid input';\n this.onInvalidPhoneNumber.emit(this.validationMessage);\n }\n }\n }\n\n onBlur() {\n this.inputTouched = true;\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.countryCode);\n }\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { PhoneInputComponent } from \"./phone-input.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { DropdownModule } from \"mis-crystal-design-system/dropdown\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n\n@NgModule({\n declarations: [PhoneInputComponent],\n imports: [CommonModule,ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],\n exports: [PhoneInputComponent]\n})\nexport class PhoneInputModule {\n static forRoot(): ModuleWithProviders<PhoneInputModule> {\n return { ngModule: PhoneInputModule, providers: [] };\n }\n}\n"]}
@@ -27,7 +27,7 @@
27
27
  { type: core.Component, args: [{
28
28
  selector: 'mis-skeleton-loader',
29
29
  template: "<div style=\"overflow: hidden\" [ngStyle]=\"{'height': this.height,'width' : this.width}\">\n <div *ngFor=\"let n of rowCount; let i = index;\">\n <div class=\"ske-loader\" [ngStyle]=\"{'height':this.lineHeight,'margin-bottom':this.gap }\"></div>\n </div>\n</div>\n",
30
- styles: [".ske-loader{background:grey;position:relative;width:100%;background:#e5e5e5;background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);border-radius:5px;background-size:200% 100%;animation:shine 1s linear infinite;overflow:hidden}@keyframes shine{to{background-position-x:-200%}}"]
30
+ styles: [".ske-loader{background:grey;position:relative;width:100%;background:#e5e5e5;background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);border-radius:5px;background-size:200% 100%;-webkit-animation:shine 1s linear infinite;animation:shine 1s linear infinite;overflow:hidden}@-webkit-keyframes shine{to{background-position-x:-200%}}@keyframes shine{to{background-position-x:-200%}}"]
31
31
  },] }
32
32
  ];
33
33
  SkeLoaderComponent.ctorParameters = function () { return []; };
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/ske-loader",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"]["ske-loader"]={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var o=function(){function e(){this.rowCount=[1],this.lineHeight="20px",this.height="100%",this.width="100%",this.gap="8px"}return Object.defineProperty(e.prototype,"count",{set:function(e){this.rowCount=Array(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e}();o.decorators=[{type:t.Component,args:[{selector:"mis-skeleton-loader",template:'<div style="overflow: hidden" [ngStyle]="{\'height\': this.height,\'width\' : this.width}">\n <div *ngFor="let n of rowCount; let i = index;">\n <div class="ske-loader" [ngStyle]="{\'height\':this.lineHeight,\'margin-bottom\':this.gap }"></div>\n </div>\n</div>\n',styles:[".ske-loader{background:grey;position:relative;width:100%;background:#e5e5e5;background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);border-radius:5px;background-size:200% 100%;animation:shine 1s linear infinite;overflow:hidden}@keyframes shine{to{background-position-x:-200%}}"]}]}],o.ctorParameters=function(){return[]},o.propDecorators={count:[{type:t.Input}],lineHeight:[{type:t.Input}],height:[{type:t.Input}],width:[{type:t.Input}],gap:[{type:t.Input}]};var i=function(){};i.decorators=[{type:t.NgModule,args:[{declarations:[o],imports:[n.CommonModule],exports:[o]}]}],e.SkeLoaderComponent=o,e.SkeLoaderModule=i,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/ske-loader",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"]["ske-loader"]={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var i=function(){function e(){this.rowCount=[1],this.lineHeight="20px",this.height="100%",this.width="100%",this.gap="8px"}return Object.defineProperty(e.prototype,"count",{set:function(e){this.rowCount=Array(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e}();i.decorators=[{type:t.Component,args:[{selector:"mis-skeleton-loader",template:'<div style="overflow: hidden" [ngStyle]="{\'height\': this.height,\'width\' : this.width}">\n <div *ngFor="let n of rowCount; let i = index;">\n <div class="ske-loader" [ngStyle]="{\'height\':this.lineHeight,\'margin-bottom\':this.gap }"></div>\n </div>\n</div>\n',styles:[".ske-loader{background:grey;position:relative;width:100%;background:#e5e5e5;background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);border-radius:5px;background-size:200% 100%;-webkit-animation:shine 1s linear infinite;animation:shine 1s linear infinite;overflow:hidden}@-webkit-keyframes shine{to{background-position-x:-200%}}@keyframes shine{to{background-position-x:-200%}}"]}]}],i.ctorParameters=function(){return[]},i.propDecorators={count:[{type:t.Input}],lineHeight:[{type:t.Input}],height:[{type:t.Input}],width:[{type:t.Input}],gap:[{type:t.Input}]};var o=function(){};o.decorators=[{type:t.NgModule,args:[{declarations:[i],imports:[n.CommonModule],exports:[i]}]}],e.SkeLoaderComponent=i,e.SkeLoaderModule=o,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=mis-crystal-design-system-ske-loader.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../projects/mis-components/ske-loader/ske-loader.component.ts","../../../projects/mis-components/ske-loader/ske-loader.module.ts"],"names":["SkeLoaderComponent","this","rowCount","lineHeight","height","width","gap","Object","defineProperty","prototype","num","Array","ngOnInit","Component","args","selector","template","Input","NgModule","declarations","imports","CommonModule","exports"],"mappings":"8fAkBE,SAAAA,IATAC,KAAAC,SAAW,CAAC,GAIHD,KAAAE,WAAqB,OACrBF,KAAAG,OAAiB,OACjBH,KAAAI,MAAgB,OAChBJ,KAAAK,IAAc,aANvBC,OAAAC,eAAaR,EAAAS,UAAA,QAAK,KAAlB,SAAmBC,GACjBT,KAAKC,SAAWS,MAAMD,oCASxBV,EAAAS,UAAAG,SAAA,sCAlBDC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,sBACVC,SAAA,8oBAMCC,EAAAA,0BAGAA,EAAAA,sBACAA,EAAAA,qBACAA,EAAAA,mBACAA,EAAAA,eCPH,iCALCC,EAAAA,SAAQJ,KAAA,CAAC,CACRK,aAAc,CAACnB,GACfoB,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACtB","sourcesContent":["import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'mis-skeleton-loader',\n templateUrl: './ske-loader.component.html',\n styleUrls: ['./ske-loader.component.scss']\n})\nexport class SkeLoaderComponent implements OnInit {\n\n rowCount = [1];\n @Input() set count(num: number) {\n this.rowCount = Array(num)\n };\n @Input() lineHeight: string = '20px';\n @Input() height: string = '100%';\n @Input() width: string = '100%';\n @Input() gap: string = '8px'\n\n constructor() { }\n\n ngOnInit(): void {}\n\n}\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { SkeLoaderComponent } from \"./ske-loader.component\";\n\n@NgModule({\n declarations: [SkeLoaderComponent],\n imports: [CommonModule],\n exports: [SkeLoaderComponent]\n})\nexport class SkeLoaderModule {\n}\n"]}
1
+ {"version":3,"sources":["../../../projects/mis-components/ske-loader/ske-loader.component.ts","../../../projects/mis-components/ske-loader/ske-loader.module.ts"],"names":["SkeLoaderComponent","this","rowCount","lineHeight","height","width","gap","Object","defineProperty","prototype","num","Array","ngOnInit","Component","args","selector","template","Input","NgModule","declarations","imports","CommonModule","exports"],"mappings":"8fAkBE,SAAAA,IATAC,KAAAC,SAAW,CAAC,GAIHD,KAAAE,WAAqB,OACrBF,KAAAG,OAAiB,OACjBH,KAAAI,MAAgB,OAChBJ,KAAAK,IAAc,aANvBC,OAAAC,eAAaR,EAAAS,UAAA,QAAK,KAAlB,SAAmBC,GACjBT,KAAKC,SAAWS,MAAMD,oCASxBV,EAAAS,UAAAG,SAAA,sCAlBDC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,sBACVC,SAAA,kvBAMCC,EAAAA,0BAGAA,EAAAA,sBACAA,EAAAA,qBACAA,EAAAA,mBACAA,EAAAA,eCPH,iCALCC,EAAAA,SAAQJ,KAAA,CAAC,CACRK,aAAc,CAACnB,GACfoB,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACtB","sourcesContent":["import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'mis-skeleton-loader',\n templateUrl: './ske-loader.component.html',\n styleUrls: ['./ske-loader.component.scss']\n})\nexport class SkeLoaderComponent implements OnInit {\n\n rowCount = [1];\n @Input() set count(num: number) {\n this.rowCount = Array(num)\n };\n @Input() lineHeight: string = '20px';\n @Input() height: string = '100%';\n @Input() width: string = '100%';\n @Input() gap: string = '8px'\n\n constructor() { }\n\n ngOnInit(): void {}\n\n}\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { SkeLoaderComponent } from \"./ske-loader.component\";\n\n@NgModule({\n declarations: [SkeLoaderComponent],\n imports: [CommonModule],\n exports: [SkeLoaderComponent]\n})\nexport class SkeLoaderModule {\n}\n"]}