@dubai-design-system/components-js 3.11.7 → 3.11.9

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 (137) hide show
  1. package/dist/cjs/dda-header-menu_3.cjs.entry.js +32 -6
  2. package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dda-phonefield.cjs.entry.js +10 -1
  4. package/dist/cjs/dda-phonefield.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dda-search-input.cjs.entry.js +33 -2
  6. package/dist/cjs/dda-search-input.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dda-select.cjs.entry.js +43 -3
  8. package/dist/cjs/dda-select.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dda-tabs.cjs.entry.js +18 -14
  10. package/dist/cjs/dda-tabs.cjs.entry.js.map +1 -1
  11. package/dist/cjs/dda-textarea.cjs.entry.js +6 -1
  12. package/dist/cjs/dda-textarea.cjs.entry.js.map +1 -1
  13. package/dist/cjs/dda-toggle.cjs.entry.js +4 -2
  14. package/dist/cjs/dda-toggle.cjs.entry.js.map +1 -1
  15. package/dist/cjs/dda.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/components/dda-header-menu/dda-header-menu.css +226 -187
  18. package/dist/collection/components/dda-input/dda-input.js +97 -4
  19. package/dist/collection/components/dda-input/dda-input.js.map +1 -1
  20. package/dist/collection/components/dda-phonefield/dda-phonefield.js +24 -1
  21. package/dist/collection/components/dda-phonefield/dda-phonefield.js.map +1 -1
  22. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +17 -1
  23. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js.map +1 -1
  24. package/dist/collection/components/dda-search-input/dda-search-input.js +106 -2
  25. package/dist/collection/components/dda-search-input/dda-search-input.js.map +1 -1
  26. package/dist/collection/components/dda-select/dda-select.js +116 -3
  27. package/dist/collection/components/dda-select/dda-select.js.map +1 -1
  28. package/dist/collection/components/dda-tabs/dda-tabs.js +20 -16
  29. package/dist/collection/components/dda-tabs/dda-tabs.js.map +1 -1
  30. package/dist/collection/components/dda-textarea/dda-textarea.js +34 -1
  31. package/dist/collection/components/dda-textarea/dda-textarea.js.map +1 -1
  32. package/dist/collection/components/dda-toggle/dda-toggle.js +18 -2
  33. package/dist/collection/components/dda-toggle/dda-toggle.js.map +1 -1
  34. package/dist/components/dda-header-menu.js +1 -1
  35. package/dist/components/dda-header.js +3 -3
  36. package/dist/components/dda-input.js +1 -1
  37. package/dist/components/dda-phonefield.js +10 -1
  38. package/dist/components/dda-phonefield.js.map +1 -1
  39. package/dist/components/dda-radiobutton.js +1 -1
  40. package/dist/components/dda-search-input.js +38 -3
  41. package/dist/components/dda-search-input.js.map +1 -1
  42. package/dist/components/dda-select.js +48 -4
  43. package/dist/components/dda-select.js.map +1 -1
  44. package/dist/components/dda-tabs.js +18 -14
  45. package/dist/components/dda-tabs.js.map +1 -1
  46. package/dist/components/dda-textarea.js +6 -1
  47. package/dist/components/dda-textarea.js.map +1 -1
  48. package/dist/components/dda-toggle.js +4 -2
  49. package/dist/components/dda-toggle.js.map +1 -1
  50. package/dist/components/{p-93bcdccb.js → p-5b2ec1a3.js} +34 -6
  51. package/dist/components/p-5b2ec1a3.js.map +1 -0
  52. package/dist/components/{p-a28f59c6.js → p-c30d0ada.js} +4 -2
  53. package/dist/components/p-c30d0ada.js.map +1 -0
  54. package/dist/components/{p-60cb6934.js → p-f0f752d2.js} +2 -2
  55. package/dist/components/p-f0f752d2.js.map +1 -0
  56. package/dist/dda/dda.esm.js +1 -1
  57. package/dist/dda/dda.esm.js.map +1 -1
  58. package/dist/dda/{p-23c2a581.entry.js → p-3e36c414.entry.js} +2 -2
  59. package/dist/dda/p-3e36c414.entry.js.map +1 -0
  60. package/dist/dda/p-440094b1.entry.js +2 -0
  61. package/dist/dda/p-440094b1.entry.js.map +1 -0
  62. package/dist/dda/{p-16b52e58.entry.js → p-6938a156.entry.js} +2 -2
  63. package/dist/dda/p-6938a156.entry.js.map +1 -0
  64. package/dist/dda/p-72e59001.entry.js +2 -0
  65. package/dist/dda/p-72e59001.entry.js.map +1 -0
  66. package/dist/dda/{p-c01385d7.entry.js → p-90e88405.entry.js} +2 -2
  67. package/dist/dda/p-90e88405.entry.js.map +1 -0
  68. package/dist/dda/{p-1fad7e82.entry.js → p-e5783b18.entry.js} +2 -2
  69. package/dist/dda/p-e5783b18.entry.js.map +1 -0
  70. package/dist/dda/p-e9733963.entry.js +2 -0
  71. package/dist/dda/p-e9733963.entry.js.map +1 -0
  72. package/dist/esm/dda-header-menu_3.entry.js +32 -6
  73. package/dist/esm/dda-header-menu_3.entry.js.map +1 -1
  74. package/dist/esm/dda-phonefield.entry.js +10 -1
  75. package/dist/esm/dda-phonefield.entry.js.map +1 -1
  76. package/dist/esm/dda-search-input.entry.js +33 -2
  77. package/dist/esm/dda-search-input.entry.js.map +1 -1
  78. package/dist/esm/dda-select.entry.js +43 -3
  79. package/dist/esm/dda-select.entry.js.map +1 -1
  80. package/dist/esm/dda-tabs.entry.js +18 -14
  81. package/dist/esm/dda-tabs.entry.js.map +1 -1
  82. package/dist/esm/dda-textarea.entry.js +6 -1
  83. package/dist/esm/dda-textarea.entry.js.map +1 -1
  84. package/dist/esm/dda-toggle.entry.js +4 -2
  85. package/dist/esm/dda-toggle.entry.js.map +1 -1
  86. package/dist/esm/dda.js +1 -1
  87. package/dist/esm/loader.js +1 -1
  88. package/dist/types/components/dda-input/dda-input.d.ts +9 -0
  89. package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +4 -0
  90. package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +4 -0
  91. package/dist/types/components/dda-search-input/dda-search-input.d.ts +9 -0
  92. package/dist/types/components/dda-select/dda-select.d.ts +11 -0
  93. package/dist/types/components/dda-tabs/dda-tabs.d.ts +1 -2
  94. package/dist/types/components/dda-textarea/dda-textarea.d.ts +5 -0
  95. package/dist/types/components/dda-toggle/dda-toggle.d.ts +1 -0
  96. package/dist/types/components.d.ts +30 -2
  97. package/package.json +2 -2
  98. package/readme.md +9 -0
  99. package/www/build/dda.esm.js +1 -1
  100. package/www/build/dda.esm.js.map +1 -1
  101. package/www/build/{p-23c2a581.entry.js → p-3e36c414.entry.js} +2 -2
  102. package/www/build/p-3e36c414.entry.js.map +1 -0
  103. package/www/build/p-440094b1.entry.js +2 -0
  104. package/www/build/p-440094b1.entry.js.map +1 -0
  105. package/www/build/{p-16b52e58.entry.js → p-6938a156.entry.js} +2 -2
  106. package/www/build/p-6938a156.entry.js.map +1 -0
  107. package/www/build/p-72e59001.entry.js +2 -0
  108. package/www/build/p-72e59001.entry.js.map +1 -0
  109. package/www/build/{p-c01385d7.entry.js → p-90e88405.entry.js} +2 -2
  110. package/www/build/p-90e88405.entry.js.map +1 -0
  111. package/www/build/{p-1fad7e82.entry.js → p-e5783b18.entry.js} +2 -2
  112. package/www/build/p-e5783b18.entry.js.map +1 -0
  113. package/www/build/p-e9733963.entry.js +2 -0
  114. package/www/build/p-e9733963.entry.js.map +1 -0
  115. package/dist/components/p-60cb6934.js.map +0 -1
  116. package/dist/components/p-93bcdccb.js.map +0 -1
  117. package/dist/components/p-a28f59c6.js.map +0 -1
  118. package/dist/dda/p-16b52e58.entry.js.map +0 -1
  119. package/dist/dda/p-1fad7e82.entry.js.map +0 -1
  120. package/dist/dda/p-23c2a581.entry.js.map +0 -1
  121. package/dist/dda/p-48f0e5e3.entry.js +0 -2
  122. package/dist/dda/p-48f0e5e3.entry.js.map +0 -1
  123. package/dist/dda/p-a5199deb.entry.js +0 -2
  124. package/dist/dda/p-a5199deb.entry.js.map +0 -1
  125. package/dist/dda/p-bd419f43.entry.js +0 -2
  126. package/dist/dda/p-bd419f43.entry.js.map +0 -1
  127. package/dist/dda/p-c01385d7.entry.js.map +0 -1
  128. package/www/build/p-16b52e58.entry.js.map +0 -1
  129. package/www/build/p-1fad7e82.entry.js.map +0 -1
  130. package/www/build/p-23c2a581.entry.js.map +0 -1
  131. package/www/build/p-48f0e5e3.entry.js +0 -2
  132. package/www/build/p-48f0e5e3.entry.js.map +0 -1
  133. package/www/build/p-a5199deb.entry.js +0 -2
  134. package/www/build/p-a5199deb.entry.js.map +0 -1
  135. package/www/build/p-bd419f43.entry.js +0 -2
  136. package/www/build/p-bd419f43.entry.js.map +0 -1
  137. package/www/build/p-c01385d7.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"file":"dda-phonefield.js","mappings":";;AAAO,MAAM,aAAa,GAAG;AAC7B,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC9D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC9D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC9D,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC9D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC7D,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,iCAAiC,EAAE;AACjE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,iCAAiC,EAAE;A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,UAAU,EAAE,GAC/B,CACE,EAEL,IAAI,CAAC,eAAe,KAAK,OAAO,IAAI,IAAI,CAAC,aAAa,IACrD,YAAM,KAAK,EAAC,mBAAmB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,EAAC,OAAO,IACjE,IAAI,CAAC,aAAa,CACd,KAEP,IAAI,CAAC,WAAW,KACd,YAAM,KAAK,EAAC,iBAAiB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,IACjD,IAAI,CAAC,WAAW,CACZ,CACR,CACF,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/assets/countries.js","src/components/dda-phonefield/dda-phonefield.tsx"],"sourcesContent":["export const CountriesList = [\r\n { \"code\": \"+93\", \"flag\": \"https://flagcdn.com/w320/af.png\" },\r\n { \"code\": \"+355\", \"flag\": \"https://flagcdn.com/w320/al.png\" },\r\n { \"code\": \"+213\", \"flag\": \"https://flagcdn.com/w320/dz.png\" },\r\n { \"code\": \"+376\", \"flag\": \"https://flagcdn.com/w320/ad.png\" },\r\n { \"code\": \"+244\", \"flag\": \"https://flagcdn.com/w320/ao.png\" },\r\n { \"code\": \"+54\", \"flag\": \"https://flagcdn.com/w320/ar.png\" },\r\n { \"code\": \"+374\", \"flag\": \"https://flagcdn.com/w320/am.png\" },\r\n { \"code\": \"+61\", \"flag\": \"https://flagcdn.com/w320/au.png\" },\r\n { \"code\": \"+43\", \"flag\": \"https://flagcdn.com/w320/at.png\" },\r\n { \"code\": \"+994\", \"flag\": \"https://flagcdn.com/w320/az.png\" },\r\n { \"code\": \"+1\", \"flag\": \"https://flagcdn.com/w320/us.png\" },\r\n { \"code\": \"+1-268\", \"flag\": \"https://flagcdn.com/w320/ag.png\" },\r\n { \"code\": \"+1-242\", \"flag\": \"https://flagcdn.com/w320/bs.png\" },\r\n { \"code\": \"+973\", \"flag\": \"https://flagcdn.com/w320/bh.png\" },\r\n { \"code\": \"+880\", \"flag\": \"https://flagcdn.com/w320/bd.png\" },\r\n { \"code\": \"+1-246\", \"flag\": \"https://flagcdn.com/w320/bb.png\" },\r\n { \"code\": \"+375\", \"flag\": \"https://flagcdn.com/w320/by.png\" },\r\n { \"code\": \"+32\", \"flag\": \"https://flagcdn.com/w320/be.png\" },\r\n { \"code\": \"+501\", \"flag\": \"https://flagcdn.com/w320/bz.png\" },\r\n { \"code\": \"+229\", \"flag\": \"https://flagcdn.com/w320/bj.png\" },\r\n { \"code\": \"+1-441\", \"flag\": \"https://flagcdn.com/w320/bm.png\" },\r\n { \"code\": \"+975\", \"flag\": \"https://flagcdn.com/w320/bt.png\" },\r\n { \"code\": \"+591\", \"flag\": \"https://flagcdn.com/w320/bo.png\" },\r\n { \"code\": \"+387\", \"flag\": \"https://flagcdn.com/w320/ba.png\" },\r\n { \"code\": \"+267\", \"flag\": \"https://flagcdn.com/w320/bw.png\" },\r\n { \"code\": \"+55\", \"flag\": \"https://flagcdn.com/w320/br.png\" },\r\n { \"code\": \"+359\", \"flag\": \"https://flagcdn.com/w320/bg.png\" },\r\n { \"code\": \"+226\", \"flag\": \"https://flagcdn.com/w320/bf.png\" },\r\n { \"code\": \"+257\", \"flag\": \"https://flagcdn.com/w320/bi.png\" },\r\n { \"code\": \"+855\", \"flag\": \"https://flagcdn.com/w320/kh.png\" },\r\n { \"code\": \"+237\", \"flag\": \"https://flagcdn.com/w320/cm.png\" },\r\n { \"code\": \"+1-242\", \"flag\": \"https://flagcdn.com/w320/cb.png\" },\r\n { \"code\": \"+238\", \"flag\": \"https://flagcdn.com/w320/cv.png\" },\r\n { \"code\": \"+1-345\", \"flag\": \"https://flagcdn.com/w320/ky.png\" },\r\n { \"code\": \"+236\", \"flag\": \"https://flagcdn.com/w320/cf.png\" },\r\n { \"code\": \"+235\", \"flag\": \"https://flagcdn.com/w320/cm.png\" },\r\n { \"code\": \"+57\", \"flag\": \"https://flagcdn.com/w320/co.png\" },\r\n { \"code\": \"+269\", \"flag\": \"https://flagcdn.com/w320/km.png\" },\r\n { \"code\": \"+242\", \"flag\": \"https://flagcdn.com/w320/cg.png\" },\r\n { \"code\": \"+243\", \"flag\": \"https://flagcdn.com/w320/cd.png\" },\r\n { \"code\": \"+682\", \"flag\": \"https://flagcdn.com/w320/ck.png\" },\r\n { \"code\": \"+506\", \"flag\": \"https://flagcdn.com/w320/cr.png\" },\r\n { \"code\": \"+225\", \"flag\": \"https://flagcdn.com/w320/ci.png\" },\r\n { \"code\": \"+385\", \"flag\": \"https://flagcdn.com/w320/hr.png\" },\r\n { \"code\": \"+53\", \"flag\": \"https://flagcdn.com/w320/cu.png\" },\r\n { \"code\": \"+357\", \"flag\": \"https://flagcdn.com/w320/cy.png\" },\r\n { \"code\": \"+420\", \"flag\": \"https://flagcdn.com/w320/cz.png\" },\r\n { \"code\": \"+45\", \"flag\": \"https://flagcdn.com/w320/dk.png\" },\r\n { \"code\": \"+253\", \"flag\": \"https://flagcdn.com/w320/dj.png\" },\r\n { \"code\": \"+1-767\", \"flag\": \"https://flagcdn.com/w320/dm.png\" },\r\n { \"code\": \"+1-809\", \"flag\": \"https://flagcdn.com/w320/do.png\" },\r\n { \"code\": \"+593\", \"flag\": \"https://flagcdn.com/w320/ec.png\" },\r\n { \"code\": \"+20\", \"flag\": \"https://flagcdn.com/w320/eg.png\" },\r\n { \"code\": \"+503\", \"flag\": \"https://flagcdn.com/w320/sv.png\" },\r\n { \"code\": \"+240\", \"flag\": \"https://flagcdn.com/w320/gq.png\" },\r\n { \"code\": \"+291\", \"flag\": \"https://flagcdn.com/w320/er.png\" },\r\n { \"code\": \"+372\", \"flag\": \"https://flagcdn.com/w320/ee.png\" },\r\n { \"code\": \"+251\", \"flag\": \"https://flagcdn.com/w320/et.png\" },\r\n { \"code\": \"+500\", \"flag\": \"https://flagcdn.com/w320/fk.png\" },\r\n { \"code\": \"+298\", \"flag\": \"https://flagcdn.com/w320/fo.png\" },\r\n { \"code\": \"+679\", \"flag\": \"https://flagcdn.com/w320/fj.png\" },\r\n { \"code\": \"+358\", \"flag\": \"https://flagcdn.com/w320/fi.png\" },\r\n { \"code\": \"+33\", \"flag\": \"https://flagcdn.com/w320/fr.png\" },\r\n { \"code\": \"+594\", \"flag\": \"https://flagcdn.com/w320/gf.png\" },\r\n { \"code\": \"+689\", \"flag\": \"https://flagcdn.com/w320/pf.png\" },\r\n { \"code\": \"+241\", \"flag\": \"https://flagcdn.com/w320/ga.png\" },\r\n { \"code\": \"+220\", \"flag\": \"https://flagcdn.com/w320/gm.png\" },\r\n { \"code\": \"+995\", \"flag\": \"https://flagcdn.com/w320/ge.png\" },\r\n { \"code\": \"+233\", \"flag\": \"https://flagcdn.com/w320/gh.png\" },\r\n { \"code\": \"+350\", \"flag\": \"https://flagcdn.com/w320/gi.png\" },\r\n { \"code\": \"+30\", \"flag\": \"https://flagcdn.com/w320/gr.png\" },\r\n { \"code\": \"+299\", \"flag\": \"https://flagcdn.com/w320/gl.png\" },\r\n { \"code\": \"+502\", \"flag\": \"https://flagcdn.com/w320/gt.png\" },\r\n { \"code\": \"+44-1481\", \"flag\": \"https://flagcdn.com/w320/gg.png\" },\r\n { \"code\": \"+224\", \"flag\": \"https://flagcdn.com/w320/gn.png\" },\r\n { \"code\": \"+245\", \"flag\": \"https://flagcdn.com/w320/gw.png\" },\r\n { \"code\": \"+592\", \"flag\": \"https://flagcdn.com/w320/gy.png\" },\r\n { \"code\": \"+509\", \"flag\": \"https://flagcdn.com/w320/ht.png\" },\r\n { \"code\": \"+504\", \"flag\": \"https://flagcdn.com/w320/hn.png\" },\r\n { \"code\": \"+852\", \"flag\": \"https://flagcdn.com/w320/hk.png\" },\r\n { \"code\": \"+36\", \"flag\": \"https://flagcdn.com/w320/hu.png\" },\r\n { \"code\": \"+354\", \"flag\": \"https://flagcdn.com/w320/is.png\" },\r\n { \"code\": \"+91\", \"flag\": \"https://flagcdn.com/w320/in.png\" },\r\n { \"code\": \"+62\", \"flag\": \"https://flagcdn.com/w320/id.png\" },\r\n { \"code\": \"+98\", \"flag\": \"https://flagcdn.com/w320/ir.png\" },\r\n { \"code\": \"+964\", \"flag\": \"https://flagcdn.com/w320/iq.png\" },\r\n { \"code\": \"+353\", \"flag\": \"https://flagcdn.com/w320/ie.png\" },\r\n { \"code\": \"+972\", \"flag\": \"https://flagcdn.com/w320/il.png\" },\r\n { \"code\": \"+1-876\", \"flag\": \"https://flagcdn.com/w320/jm.png\" },\r\n { \"code\": \"+81\", \"flag\": \"https://flagcdn.com/w320/jp.png\" },\r\n { \"code\": \"+962\", \"flag\": \"https://flagcdn.com/w320/jo.png\" },\r\n { \"code\": \"+7\", \"flag\": \"https://flagcdn.com/w320/ru.png\" },\r\n { \"code\": \"+254\", \"flag\": \"https://flagcdn.com/w320/ke.png\" },\r\n { \"code\": \"+686\", \"flag\": \"https://flagcdn.com/w320/ki.png\" },\r\n { \"code\": \"+965\", \"flag\": \"https://flagcdn.com/w320/kw.png\" },\r\n { \"code\": \"+996\", \"flag\": \"https://flagcdn.com/w320/kg.png\" },\r\n { \"code\": \"+856\", \"flag\": \"https://flagcdn.com/w320/la.png\" },\r\n { \"code\": \"+371\", \"flag\": \"https://flagcdn.com/w320/lv.png\" },\r\n { \"code\": \"+961\", \"flag\": \"https://flagcdn.com/w320/lb.png\" },\r\n { \"code\": \"+266\", \"flag\": \"https://flagcdn.com/w320/ls.png\" },\r\n { \"code\": \"+231\", \"flag\": \"https://flagcdn.com/w320/lr.png\" },\r\n { \"code\": \"+218\", \"flag\": \"https://flagcdn.com/w320/ly.png\" },\r\n { \"code\": \"+423\", \"flag\": \"https://flagcdn.com/w320/li.png\" },\r\n { \"code\": \"+370\", \"flag\": \"https://flagcdn.com/w320/lt.png\" },\r\n { \"code\": \"+352\", \"flag\": \"https://flagcdn.com/w320/lu.png\" },\r\n { \"code\": \"+261\", \"flag\": \"https://flagcdn.com/w320/mg.png\" },\r\n { \"code\": \"+265\", \"flag\": \"https://flagcdn.com/w320/mw.png\" },\r\n { \"code\": \"+60\", \"flag\": \"https://flagcdn.com/w320/my.png\" },\r\n { \"code\": \"+960\", \"flag\": \"https://flagcdn.com/w320/mv.png\" },\r\n { \"code\": \"+223\", \"flag\": \"https://flagcdn.com/w320/ml.png\" },\r\n { \"code\": \"+230\", \"flag\": \"https://flagcdn.com/w320/mu.png\" },\r\n { \"code\": \"+262\", \"flag\": \"https://flagcdn.com/w320/re.png\" },\r\n { \"code\": \"+52\", \"flag\": \"https://flagcdn.com/w320/mx.png\" },\r\n { \"code\": \"+691\", \"flag\": \"https://flagcdn.com/w320/fm.png\" },\r\n { \"code\": \"+373\", \"flag\": \"https://flagcdn.com/w320/md.png\" },\r\n { \"code\": \"+377\", \"flag\": \"https://flagcdn.com/w320/mc.png\" },\r\n { \"code\": \"+976\", \"flag\": \"https://flagcdn.com/w320/mn.png\" },\r\n { \"code\": \"+382\", \"flag\": \"https://flagcdn.com/w320/me.png\" },\r\n { \"code\": \"+1-664\", \"flag\": \"https://flagcdn.com/w320/ms.png\" },\r\n { \"code\": \"+212\", \"flag\": \"https://flagcdn.com/w320/ma.png\" },\r\n { \"code\": \"+258\", \"flag\": \"https://flagcdn.com/w320/mz.png\" },\r\n { \"code\": \"+95\", \"flag\": \"https://flagcdn.com/w320/mm.png\" },\r\n { \"code\": \"+264\", \"flag\": \"https://flagcdn.com/w320/na.png\" },\r\n { \"code\": \"+674\", \"flag\": \"https://flagcdn.com/w320/nu.png\" },\r\n { \"code\": \"+977\", \"flag\": \"https://flagcdn.com/w320/np.png\" },\r\n { \"code\": \"+31\", \"flag\": \"https://flagcdn.com/w320/nl.png\" },\r\n { \"code\": \"+687\", \"flag\": \"https://flagcdn.com/w320/nc.png\" },\r\n { \"code\": \"+64\", \"flag\": \"https://flagcdn.com/w320/nz.png\" },\r\n { \"code\": \"+505\", \"flag\": \"https://flagcdn.com/w320/ni.png\" },\r\n { \"code\": \"+227\", \"flag\": \"https://flagcdn.com/w320/ne.png\" },\r\n { \"code\": \"+234\", \"flag\": \"https://flagcdn.com/w320/ng.png\" },\r\n { \"code\": \"+683\", \"flag\": \"https://flagcdn.com/w320/nu.png\" },\r\n { \"code\": \"+47\", \"flag\": \"https://flagcdn.com/w320/no.png\" },\r\n { \"code\": \"+968\", \"flag\": \"https://flagcdn.com/w320/om.png\" },\r\n { \"code\": \"+92\", \"flag\": \"https://flagcdn.com/w320/pk.png\" },\r\n { \"code\": \"+680\", \"flag\": \"https://flagcdn.com/w320/pw.png\" },\r\n { \"code\": \"+970\", \"flag\": \"https://flagcdn.com/w320/ps.png\" },\r\n { \"code\": \"+595\", \"flag\": \"https://flagcdn.com/w320/py.png\" },\r\n { \"code\": \"+51\", \"flag\": \"https://flagcdn.com/w320/pe.png\" },\r\n { \"code\": \"+63\", \"flag\": \"https://flagcdn.com/w320/ph.png\" },\r\n { \"code\": \"+48\", \"flag\": \"https://flagcdn.com/w320/pl.png\" },\r\n { \"code\": \"+351\", \"flag\": \"https://flagcdn.com/w320/pt.png\" },\r\n { \"code\": \"+1787\", \"flag\": \"https://flagcdn.com/w320/pr.png\" },\r\n { \"code\": \"+1-649\", \"flag\": \"https://flagcdn.com/w320/tc.png\" },\r\n { \"code\": \"+590\", \"flag\": \"https://flagcdn.com/w320/gp.png\" },\r\n { \"code\": \"+508\", \"flag\": \"https://flagcdn.com/w320/pf.png\" },\r\n { \"code\": \"+689\", \"flag\": \"https://flagcdn.com/w320/pf.png\" },\r\n { \"code\": \"+1-767\", \"flag\": \"https://flagcdn.com/w320/dm.png\" },\r\n { \"code\": \"+1-284\", \"flag\": \"https://flagcdn.com/w320/vg.png\" },\r\n { \"code\": \"+1-345\", \"flag\": \"https://flagcdn.com/w320/ky.png\" },\r\n { \"code\": \"+1-758\", \"flag\": \"https://flagcdn.com/w320/lc.png\" },\r\n { \"code\": \"+1-721\", \"flag\": \"https://flagcdn.com/w320/sx.png\" },\r\n { \"code\": \"+590\", \"flag\": \"https://flagcdn.com/w320/gp.png\" },\r\n { \"code\": \"+1-868\", \"flag\": \"https://flagcdn.com/w320/tt.png\" },\r\n { \"code\": \"+1-877\", \"flag\": \"https://flagcdn.com/w320/ca.png\" },\r\n { \"code\": \"+962\", \"flag\": \"https://flagcdn.com/w320/jo.png\" },\r\n { \"code\": \"+260\", \"flag\": \"https://flagcdn.com/w320/zm.png\" },\r\n { \"code\": \"+263\", \"flag\": \"https://flagcdn.com/w320/zw.png\" },\r\n { \"code\": \"+350\", \"flag\": \"https://flagcdn.com/w320/gi.png\" },\r\n { \"code\": \"+378\", \"flag\": \"https://flagcdn.com/w320/sm.png\" },\r\n { \"code\": \"+39\", \"flag\": \"https://flagcdn.com/w320/it.png\" },\r\n { \"code\": \"+387\", \"flag\": \"https://flagcdn.com/w320/ba.png\" },\r\n { \"code\": \"+239\", \"flag\": \"https://flagcdn.com/w320/st.png\" },\r\n { \"code\": \"+244\", \"flag\": \"https://flagcdn.com/w320/ao.png\" },\r\n { \"code\": \"+963\", \"flag\": \"https://flagcdn.com/w320/sy.png\" },\r\n { \"code\": \"+886\", \"flag\": \"https://flagcdn.com/w320/tw.png\" },\r\n { \"code\": \"+855\", \"flag\": \"https://flagcdn.com/w320/kh.png\" },\r\n { \"code\": \"+882\", \"flag\": \"https://flagcdn.com/w320/oa.png\" },\r\n { \"code\": \"+855\", \"flag\": \"https://flagcdn.com/w320/kh.png\" },\r\n { \"code\": \"+968\", \"flag\": \"https://flagcdn.com/w320/om.png\" },\r\n { \"code\": \"+678\", \"flag\": \"https://flagcdn.com/w320/vu.png\" },\r\n { \"code\": \"+679\", \"flag\": \"https://flagcdn.com/w320/fj.png\" },\r\n { \"code\": \"+881\", \"flag\": \"https://flagcdn.com/w320/ja.png\" },\r\n { \"code\": \"+960\", \"flag\": \"https://flagcdn.com/w320/mv.png\" },\r\n { \"code\": \"+963\", \"flag\": \"https://flagcdn.com/w320/sy.png\" },\r\n { \"code\": \"+963\", \"flag\": \"https://flagcdn.com/w320/sy.png\" },\r\n { \"code\": \"+998\", \"flag\": \"https://flagcdn.com/w320/uz.png\" }\r\n];\r\n","import { Component, Prop, State, Event, EventEmitter, h, Host, Method, Watch } from '@stencil/core';\r\nimport { CountriesList } from '../../assets/countries';\r\n\r\n@Component({\r\n tag: 'dda-phonefield',\r\n styleUrls: [],\r\n shadow: false,\r\n})\r\nexport class DdaPhoneField {\r\n @Prop() label: string;\r\n @Prop() placeholder: string = 'Enter phone number';\r\n @Prop() helper_text: string;\r\n @Prop() max_length: string;\r\n @Prop() validation_type?: string;\r\n @Prop() error_message: string;\r\n @Prop() validation_id: string = 'text';\r\n @Prop() disabled: boolean = false;\r\n @Prop() size?: string;\r\n @Prop() custom_class: string;\r\n @Prop() component_mode?: string;\r\n @Prop() input_id?: string;\r\n @Prop() aria_label: string;\r\n @Prop() button_id?: string;\r\n @Prop() button_aria_label: string;\r\n @Prop() toggle_button_name: string;\r\n @Prop() country_select_button_name: string;\r\n @Prop() phone_input_name: string;\r\n @Prop() value: string;\r\n\r\n @State() country_code: string = '+971';\r\n @State() country_flag: string = 'https://flagcdn.com/w320/ae.png';\r\n @State() internalValue: string = '';\r\n @State() is_focused: boolean = false;\r\n @State() dropdown_open: boolean = false;\r\n @State() countries: { code: string; flag: string }[] = [];\r\n @State() hostElement: HTMLElement;\r\n\r\n @Event() phoneBlurred: EventEmitter<{ name: string; value: string }>;\r\n\r\n @Method()\r\n async getValue() {\r\n return this.internalValue || this.value || '';\r\n }\r\n\r\n @Method()\r\n async validatePhoneField() {\r\n this.phoneBlurred.emit({\r\n name: this.phone_input_name,\r\n value: this.internalValue.trim()\r\n });\r\n }\r\n\r\n @Watch('value')\r\n watchHandler(newValue: string) {\r\n this.internalValue = newValue;\r\n }\r\n\r\n componentWillLoad() {\r\n this.countries = CountriesList;\r\n this.internalValue = this.value || '';\r\n }\r\n\r\n componentDidLoad() {\r\n document.addEventListener('click', this.handleDocumentClick);\r\n }\r\n\r\n disconnectedCallback() {\r\n document.removeEventListener('click', this.handleDocumentClick);\r\n }\r\n\r\n handleDocumentClick = (event: MouseEvent) => {\r\n if (this.dropdown_open && this.hostElement && !this.hostElement.contains(event.target as Node)) {\r\n this.dropdown_open = false;\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.dropdown_open = !this.dropdown_open;\r\n }\r\n\r\n selectCountry(country: { code: string; flag: string }) {\r\n this.country_code = country.code;\r\n this.country_flag = country.flag;\r\n this.dropdown_open = false;\r\n }\r\n\r\n handleFocus() {\r\n this.is_focused = true;\r\n }\r\n\r\n handleBlur() {\r\n this.is_focused = false;\r\n this.phoneBlurred.emit({\r\n name: this.phone_input_name,\r\n value: this.internalValue.trim()\r\n });\r\n }\r\n\r\n handlephonenumberChange(event: Event) {\r\n const target = event.target as HTMLInputElement;\r\n const targetvalue = target.value.replace(/\\D/g, '');\r\n this.internalValue = targetvalue;\r\n }\r\n\r\n handleKeyDown(event: KeyboardEvent) {\r\n const allowedKeys = [\r\n 'Backspace', 'ArrowLeft', 'ArrowRight', 'Delete', 'Tab'\r\n ];\r\n\r\n if (\r\n allowedKeys.includes(event.key) ||\r\n (event.ctrlKey || event.metaKey) // Allow copy/paste shortcuts\r\n ) {\r\n return;\r\n }\r\n\r\n if (!/^\\d$/.test(event.key)) {\r\n event.preventDefault();\r\n }\r\n}\r\n\r\n render() {\r\n const inputClass = `${this.component_mode} ${this.size ? `dda-input-size-${this.size}` : ''} ${this.error_message ? `dda-error-message` : ''} ${this.validation_type ? `dda-validation-${this.validation_type}` : ''} ${this.is_focused ? 'dda-input-focus' : ''} ${this.internalValue ? 'dda-input-focus-filled' : ''}`;\r\n\r\n return (\r\n <Host ref={(el) => this.hostElement = el as HTMLElement}>\r\n <div class={`dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}`}>\r\n {this.label && <label htmlFor={this.input_id} class=\"dda-input-label\">{this.label}</label>}\r\n <div class={`dda-input-field-group dda-phone-field`}>\r\n <div class=\"dda-input-dropdown-btn\">\r\n <button type=\"button\" name={this.toggle_button_name} class=\"dda-dropdown-select\" onClick={() => this.toggleDropdown()}>\r\n <img src={this.country_flag} alt=\"\" width=\"20\" /> {this.country_code}\r\n <i class=\"material-icons\" aria-hidden=\"true\">keyboard_arrow_down</i>\r\n </button>\r\n {this.dropdown_open && (\r\n <div class=\"dda-input-dropdown-list\">\r\n {this.countries.map(country => (\r\n <button\r\n id={`countryCode${country.code}`}\r\n name={this.country_select_button_name}\r\n aria-label={this.button_aria_label}\r\n type=\"button\"\r\n class=\"country-select dda-input-dropdown-item\"\r\n onClick={() => this.selectCountry(country)}\r\n >\r\n <img src={country.flag} alt=\"\" width=\"20\" /> {country.code}\r\n </button>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n <input\r\n id={this.input_id}\r\n name={this.phone_input_name}\r\n aria-label={this.aria_label}\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n maxlength={this.max_length}\r\n pattern=\"[0-9]*\"\r\n class=\"dda-field-group-input\"\r\n placeholder={this.placeholder}\r\n value={this.internalValue}\r\n disabled={this.disabled}\r\n onFocus={this.handleFocus.bind(this)}\r\n onInput={(e) => this.handlephonenumberChange(e)}\r\n onKeyDown={(e) => this.handleKeyDown(e)}\r\n onBlur={() => this.handleBlur()}\r\n />\r\n </div>\r\n\r\n {this.validation_type === 'error' && this.error_message ? (\r\n <span class=\"dda-error-message\" id={this.validation_id} role=\"alert\">\r\n {this.error_message}\r\n </span>\r\n ) : (\r\n this.helper_text && (\r\n <span class=\"dda-helper-text\" id={this.validation_id}>\r\n {this.helper_text}\r\n </span>\r\n )\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"dda-phonefield.js","mappings":";;AAAO,MAAM,aAAa,GAAG;AAC7B,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC9D,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iCAAiC,EAAE;AAC/D,EAAE,EAAE,MAAM,EAAE,MAA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CAAC,aAAa,CACd,KAEP,IAAI,CAAC,WAAW,KACd,YAAM,KAAK,EAAC,iBAAiB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,IACjD,IAAI,CAAC,WAAW,CACZ,CACR,CACF,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/assets/countries.js","src/components/dda-phonefield/dda-phonefield.tsx"],"sourcesContent":["export const CountriesList = [\r\n { \"code\": \"+93\", \"flag\": \"https://flagcdn.com/w320/af.png\" },\r\n { \"code\": \"+355\", \"flag\": \"https://flagcdn.com/w320/al.png\" },\r\n { \"code\": \"+213\", \"flag\": \"https://flagcdn.com/w320/dz.png\" },\r\n { \"code\": \"+376\", \"flag\": \"https://flagcdn.com/w320/ad.png\" },\r\n { \"code\": \"+244\", \"flag\": \"https://flagcdn.com/w320/ao.png\" },\r\n { \"code\": \"+54\", \"flag\": \"https://flagcdn.com/w320/ar.png\" },\r\n { \"code\": \"+374\", \"flag\": \"https://flagcdn.com/w320/am.png\" },\r\n { \"code\": \"+61\", \"flag\": \"https://flagcdn.com/w320/au.png\" },\r\n { \"code\": \"+43\", \"flag\": \"https://flagcdn.com/w320/at.png\" },\r\n { \"code\": \"+994\", \"flag\": \"https://flagcdn.com/w320/az.png\" },\r\n { \"code\": \"+1\", \"flag\": \"https://flagcdn.com/w320/us.png\" },\r\n { \"code\": \"+1-268\", \"flag\": \"https://flagcdn.com/w320/ag.png\" },\r\n { \"code\": \"+1-242\", \"flag\": \"https://flagcdn.com/w320/bs.png\" },\r\n { \"code\": \"+973\", \"flag\": \"https://flagcdn.com/w320/bh.png\" },\r\n { \"code\": \"+880\", \"flag\": \"https://flagcdn.com/w320/bd.png\" },\r\n { \"code\": \"+1-246\", \"flag\": \"https://flagcdn.com/w320/bb.png\" },\r\n { \"code\": \"+375\", \"flag\": \"https://flagcdn.com/w320/by.png\" },\r\n { \"code\": \"+32\", \"flag\": \"https://flagcdn.com/w320/be.png\" },\r\n { \"code\": \"+501\", \"flag\": \"https://flagcdn.com/w320/bz.png\" },\r\n { \"code\": \"+229\", \"flag\": \"https://flagcdn.com/w320/bj.png\" },\r\n { \"code\": \"+1-441\", \"flag\": \"https://flagcdn.com/w320/bm.png\" },\r\n { \"code\": \"+975\", \"flag\": \"https://flagcdn.com/w320/bt.png\" },\r\n { \"code\": \"+591\", \"flag\": \"https://flagcdn.com/w320/bo.png\" },\r\n { \"code\": \"+387\", \"flag\": \"https://flagcdn.com/w320/ba.png\" },\r\n { \"code\": \"+267\", \"flag\": \"https://flagcdn.com/w320/bw.png\" },\r\n { \"code\": \"+55\", \"flag\": \"https://flagcdn.com/w320/br.png\" },\r\n { \"code\": \"+359\", \"flag\": \"https://flagcdn.com/w320/bg.png\" },\r\n { \"code\": \"+226\", \"flag\": \"https://flagcdn.com/w320/bf.png\" },\r\n { \"code\": \"+257\", \"flag\": \"https://flagcdn.com/w320/bi.png\" },\r\n { \"code\": \"+855\", \"flag\": \"https://flagcdn.com/w320/kh.png\" },\r\n { \"code\": \"+237\", \"flag\": \"https://flagcdn.com/w320/cm.png\" },\r\n { \"code\": \"+1-242\", \"flag\": \"https://flagcdn.com/w320/cb.png\" },\r\n { \"code\": \"+238\", \"flag\": \"https://flagcdn.com/w320/cv.png\" },\r\n { \"code\": \"+1-345\", \"flag\": \"https://flagcdn.com/w320/ky.png\" },\r\n { \"code\": \"+236\", \"flag\": \"https://flagcdn.com/w320/cf.png\" },\r\n { \"code\": \"+235\", \"flag\": \"https://flagcdn.com/w320/cm.png\" },\r\n { \"code\": \"+57\", \"flag\": \"https://flagcdn.com/w320/co.png\" },\r\n { \"code\": \"+269\", \"flag\": \"https://flagcdn.com/w320/km.png\" },\r\n { \"code\": \"+242\", \"flag\": \"https://flagcdn.com/w320/cg.png\" },\r\n { \"code\": \"+243\", \"flag\": \"https://flagcdn.com/w320/cd.png\" },\r\n { \"code\": \"+682\", \"flag\": \"https://flagcdn.com/w320/ck.png\" },\r\n { \"code\": \"+506\", \"flag\": \"https://flagcdn.com/w320/cr.png\" },\r\n { \"code\": \"+225\", \"flag\": \"https://flagcdn.com/w320/ci.png\" },\r\n { \"code\": \"+385\", \"flag\": \"https://flagcdn.com/w320/hr.png\" },\r\n { \"code\": \"+53\", \"flag\": \"https://flagcdn.com/w320/cu.png\" },\r\n { \"code\": \"+357\", \"flag\": \"https://flagcdn.com/w320/cy.png\" },\r\n { \"code\": \"+420\", \"flag\": \"https://flagcdn.com/w320/cz.png\" },\r\n { \"code\": \"+45\", \"flag\": \"https://flagcdn.com/w320/dk.png\" },\r\n { \"code\": \"+253\", \"flag\": \"https://flagcdn.com/w320/dj.png\" },\r\n { \"code\": \"+1-767\", \"flag\": \"https://flagcdn.com/w320/dm.png\" },\r\n { \"code\": \"+1-809\", \"flag\": \"https://flagcdn.com/w320/do.png\" },\r\n { \"code\": \"+593\", \"flag\": \"https://flagcdn.com/w320/ec.png\" },\r\n { \"code\": \"+20\", \"flag\": \"https://flagcdn.com/w320/eg.png\" },\r\n { \"code\": \"+503\", \"flag\": \"https://flagcdn.com/w320/sv.png\" },\r\n { \"code\": \"+240\", \"flag\": \"https://flagcdn.com/w320/gq.png\" },\r\n { \"code\": \"+291\", \"flag\": \"https://flagcdn.com/w320/er.png\" },\r\n { \"code\": \"+372\", \"flag\": \"https://flagcdn.com/w320/ee.png\" },\r\n { \"code\": \"+251\", \"flag\": \"https://flagcdn.com/w320/et.png\" },\r\n { \"code\": \"+500\", \"flag\": \"https://flagcdn.com/w320/fk.png\" },\r\n { \"code\": \"+298\", \"flag\": \"https://flagcdn.com/w320/fo.png\" },\r\n { \"code\": \"+679\", \"flag\": \"https://flagcdn.com/w320/fj.png\" },\r\n { \"code\": \"+358\", \"flag\": \"https://flagcdn.com/w320/fi.png\" },\r\n { \"code\": \"+33\", \"flag\": \"https://flagcdn.com/w320/fr.png\" },\r\n { \"code\": \"+594\", \"flag\": \"https://flagcdn.com/w320/gf.png\" },\r\n { \"code\": \"+689\", \"flag\": \"https://flagcdn.com/w320/pf.png\" },\r\n { \"code\": \"+241\", \"flag\": \"https://flagcdn.com/w320/ga.png\" },\r\n { \"code\": \"+220\", \"flag\": \"https://flagcdn.com/w320/gm.png\" },\r\n { \"code\": \"+995\", \"flag\": \"https://flagcdn.com/w320/ge.png\" },\r\n { \"code\": \"+233\", \"flag\": \"https://flagcdn.com/w320/gh.png\" },\r\n { \"code\": \"+350\", \"flag\": \"https://flagcdn.com/w320/gi.png\" },\r\n { \"code\": \"+30\", \"flag\": \"https://flagcdn.com/w320/gr.png\" },\r\n { \"code\": \"+299\", \"flag\": \"https://flagcdn.com/w320/gl.png\" },\r\n { \"code\": \"+502\", \"flag\": \"https://flagcdn.com/w320/gt.png\" },\r\n { \"code\": \"+44-1481\", \"flag\": \"https://flagcdn.com/w320/gg.png\" },\r\n { \"code\": \"+224\", \"flag\": \"https://flagcdn.com/w320/gn.png\" },\r\n { \"code\": \"+245\", \"flag\": \"https://flagcdn.com/w320/gw.png\" },\r\n { \"code\": \"+592\", \"flag\": \"https://flagcdn.com/w320/gy.png\" },\r\n { \"code\": \"+509\", \"flag\": \"https://flagcdn.com/w320/ht.png\" },\r\n { \"code\": \"+504\", \"flag\": \"https://flagcdn.com/w320/hn.png\" },\r\n { \"code\": \"+852\", \"flag\": \"https://flagcdn.com/w320/hk.png\" },\r\n { \"code\": \"+36\", \"flag\": \"https://flagcdn.com/w320/hu.png\" },\r\n { \"code\": \"+354\", \"flag\": \"https://flagcdn.com/w320/is.png\" },\r\n { \"code\": \"+91\", \"flag\": \"https://flagcdn.com/w320/in.png\" },\r\n { \"code\": \"+62\", \"flag\": \"https://flagcdn.com/w320/id.png\" },\r\n { \"code\": \"+98\", \"flag\": \"https://flagcdn.com/w320/ir.png\" },\r\n { \"code\": \"+964\", \"flag\": \"https://flagcdn.com/w320/iq.png\" },\r\n { \"code\": \"+353\", \"flag\": \"https://flagcdn.com/w320/ie.png\" },\r\n { \"code\": \"+972\", \"flag\": \"https://flagcdn.com/w320/il.png\" },\r\n { \"code\": \"+1-876\", \"flag\": \"https://flagcdn.com/w320/jm.png\" },\r\n { \"code\": \"+81\", \"flag\": \"https://flagcdn.com/w320/jp.png\" },\r\n { \"code\": \"+962\", \"flag\": \"https://flagcdn.com/w320/jo.png\" },\r\n { \"code\": \"+7\", \"flag\": \"https://flagcdn.com/w320/ru.png\" },\r\n { \"code\": \"+254\", \"flag\": \"https://flagcdn.com/w320/ke.png\" },\r\n { \"code\": \"+686\", \"flag\": \"https://flagcdn.com/w320/ki.png\" },\r\n { \"code\": \"+965\", \"flag\": \"https://flagcdn.com/w320/kw.png\" },\r\n { \"code\": \"+996\", \"flag\": \"https://flagcdn.com/w320/kg.png\" },\r\n { \"code\": \"+856\", \"flag\": \"https://flagcdn.com/w320/la.png\" },\r\n { \"code\": \"+371\", \"flag\": \"https://flagcdn.com/w320/lv.png\" },\r\n { \"code\": \"+961\", \"flag\": \"https://flagcdn.com/w320/lb.png\" },\r\n { \"code\": \"+266\", \"flag\": \"https://flagcdn.com/w320/ls.png\" },\r\n { \"code\": \"+231\", \"flag\": \"https://flagcdn.com/w320/lr.png\" },\r\n { \"code\": \"+218\", \"flag\": \"https://flagcdn.com/w320/ly.png\" },\r\n { \"code\": \"+423\", \"flag\": \"https://flagcdn.com/w320/li.png\" },\r\n { \"code\": \"+370\", \"flag\": \"https://flagcdn.com/w320/lt.png\" },\r\n { \"code\": \"+352\", \"flag\": \"https://flagcdn.com/w320/lu.png\" },\r\n { \"code\": \"+261\", \"flag\": \"https://flagcdn.com/w320/mg.png\" },\r\n { \"code\": \"+265\", \"flag\": \"https://flagcdn.com/w320/mw.png\" },\r\n { \"code\": \"+60\", \"flag\": \"https://flagcdn.com/w320/my.png\" },\r\n { \"code\": \"+960\", \"flag\": \"https://flagcdn.com/w320/mv.png\" },\r\n { \"code\": \"+223\", \"flag\": \"https://flagcdn.com/w320/ml.png\" },\r\n { \"code\": \"+230\", \"flag\": \"https://flagcdn.com/w320/mu.png\" },\r\n { \"code\": \"+262\", \"flag\": \"https://flagcdn.com/w320/re.png\" },\r\n { \"code\": \"+52\", \"flag\": \"https://flagcdn.com/w320/mx.png\" },\r\n { \"code\": \"+691\", \"flag\": \"https://flagcdn.com/w320/fm.png\" },\r\n { \"code\": \"+373\", \"flag\": \"https://flagcdn.com/w320/md.png\" },\r\n { \"code\": \"+377\", \"flag\": \"https://flagcdn.com/w320/mc.png\" },\r\n { \"code\": \"+976\", \"flag\": \"https://flagcdn.com/w320/mn.png\" },\r\n { \"code\": \"+382\", \"flag\": \"https://flagcdn.com/w320/me.png\" },\r\n { \"code\": \"+1-664\", \"flag\": \"https://flagcdn.com/w320/ms.png\" },\r\n { \"code\": \"+212\", \"flag\": \"https://flagcdn.com/w320/ma.png\" },\r\n { \"code\": \"+258\", \"flag\": \"https://flagcdn.com/w320/mz.png\" },\r\n { \"code\": \"+95\", \"flag\": \"https://flagcdn.com/w320/mm.png\" },\r\n { \"code\": \"+264\", \"flag\": \"https://flagcdn.com/w320/na.png\" },\r\n { \"code\": \"+674\", \"flag\": \"https://flagcdn.com/w320/nu.png\" },\r\n { \"code\": \"+977\", \"flag\": \"https://flagcdn.com/w320/np.png\" },\r\n { \"code\": \"+31\", \"flag\": \"https://flagcdn.com/w320/nl.png\" },\r\n { \"code\": \"+687\", \"flag\": \"https://flagcdn.com/w320/nc.png\" },\r\n { \"code\": \"+64\", \"flag\": \"https://flagcdn.com/w320/nz.png\" },\r\n { \"code\": \"+505\", \"flag\": \"https://flagcdn.com/w320/ni.png\" },\r\n { \"code\": \"+227\", \"flag\": \"https://flagcdn.com/w320/ne.png\" },\r\n { \"code\": \"+234\", \"flag\": \"https://flagcdn.com/w320/ng.png\" },\r\n { \"code\": \"+683\", \"flag\": \"https://flagcdn.com/w320/nu.png\" },\r\n { \"code\": \"+47\", \"flag\": \"https://flagcdn.com/w320/no.png\" },\r\n { \"code\": \"+968\", \"flag\": \"https://flagcdn.com/w320/om.png\" },\r\n { \"code\": \"+92\", \"flag\": \"https://flagcdn.com/w320/pk.png\" },\r\n { \"code\": \"+680\", \"flag\": \"https://flagcdn.com/w320/pw.png\" },\r\n { \"code\": \"+970\", \"flag\": \"https://flagcdn.com/w320/ps.png\" },\r\n { \"code\": \"+595\", \"flag\": \"https://flagcdn.com/w320/py.png\" },\r\n { \"code\": \"+51\", \"flag\": \"https://flagcdn.com/w320/pe.png\" },\r\n { \"code\": \"+63\", \"flag\": \"https://flagcdn.com/w320/ph.png\" },\r\n { \"code\": \"+48\", \"flag\": \"https://flagcdn.com/w320/pl.png\" },\r\n { \"code\": \"+351\", \"flag\": \"https://flagcdn.com/w320/pt.png\" },\r\n { \"code\": \"+1787\", \"flag\": \"https://flagcdn.com/w320/pr.png\" },\r\n { \"code\": \"+1-649\", \"flag\": \"https://flagcdn.com/w320/tc.png\" },\r\n { \"code\": \"+590\", \"flag\": \"https://flagcdn.com/w320/gp.png\" },\r\n { \"code\": \"+508\", \"flag\": \"https://flagcdn.com/w320/pf.png\" },\r\n { \"code\": \"+689\", \"flag\": \"https://flagcdn.com/w320/pf.png\" },\r\n { \"code\": \"+1-767\", \"flag\": \"https://flagcdn.com/w320/dm.png\" },\r\n { \"code\": \"+1-284\", \"flag\": \"https://flagcdn.com/w320/vg.png\" },\r\n { \"code\": \"+1-345\", \"flag\": \"https://flagcdn.com/w320/ky.png\" },\r\n { \"code\": \"+1-758\", \"flag\": \"https://flagcdn.com/w320/lc.png\" },\r\n { \"code\": \"+1-721\", \"flag\": \"https://flagcdn.com/w320/sx.png\" },\r\n { \"code\": \"+590\", \"flag\": \"https://flagcdn.com/w320/gp.png\" },\r\n { \"code\": \"+1-868\", \"flag\": \"https://flagcdn.com/w320/tt.png\" },\r\n { \"code\": \"+1-877\", \"flag\": \"https://flagcdn.com/w320/ca.png\" },\r\n { \"code\": \"+962\", \"flag\": \"https://flagcdn.com/w320/jo.png\" },\r\n { \"code\": \"+260\", \"flag\": \"https://flagcdn.com/w320/zm.png\" },\r\n { \"code\": \"+263\", \"flag\": \"https://flagcdn.com/w320/zw.png\" },\r\n { \"code\": \"+350\", \"flag\": \"https://flagcdn.com/w320/gi.png\" },\r\n { \"code\": \"+378\", \"flag\": \"https://flagcdn.com/w320/sm.png\" },\r\n { \"code\": \"+39\", \"flag\": \"https://flagcdn.com/w320/it.png\" },\r\n { \"code\": \"+387\", \"flag\": \"https://flagcdn.com/w320/ba.png\" },\r\n { \"code\": \"+239\", \"flag\": \"https://flagcdn.com/w320/st.png\" },\r\n { \"code\": \"+244\", \"flag\": \"https://flagcdn.com/w320/ao.png\" },\r\n { \"code\": \"+963\", \"flag\": \"https://flagcdn.com/w320/sy.png\" },\r\n { \"code\": \"+886\", \"flag\": \"https://flagcdn.com/w320/tw.png\" },\r\n { \"code\": \"+855\", \"flag\": \"https://flagcdn.com/w320/kh.png\" },\r\n { \"code\": \"+882\", \"flag\": \"https://flagcdn.com/w320/oa.png\" },\r\n { \"code\": \"+855\", \"flag\": \"https://flagcdn.com/w320/kh.png\" },\r\n { \"code\": \"+968\", \"flag\": \"https://flagcdn.com/w320/om.png\" },\r\n { \"code\": \"+678\", \"flag\": \"https://flagcdn.com/w320/vu.png\" },\r\n { \"code\": \"+679\", \"flag\": \"https://flagcdn.com/w320/fj.png\" },\r\n { \"code\": \"+881\", \"flag\": \"https://flagcdn.com/w320/ja.png\" },\r\n { \"code\": \"+960\", \"flag\": \"https://flagcdn.com/w320/mv.png\" },\r\n { \"code\": \"+963\", \"flag\": \"https://flagcdn.com/w320/sy.png\" },\r\n { \"code\": \"+963\", \"flag\": \"https://flagcdn.com/w320/sy.png\" },\r\n { \"code\": \"+998\", \"flag\": \"https://flagcdn.com/w320/uz.png\" }\r\n];\r\n","import { Component, Prop, State, Event, EventEmitter, h, Host, Method, Watch } from '@stencil/core';\r\nimport { CountriesList } from '../../assets/countries';\r\n\r\n@Component({\r\n tag: 'dda-phonefield',\r\n styleUrls: [],\r\n shadow: false,\r\n})\r\nexport class DdaPhoneField {\r\n @Prop() label: string;\r\n @Prop() placeholder: string = 'Enter phone number';\r\n @Prop() helper_text: string;\r\n @Prop() max_length: string;\r\n @Prop() validation_type?: string;\r\n @Prop() error_message: string;\r\n @Prop() validation_id: string = 'text';\r\n @Prop() disabled: boolean = false;\r\n @Prop() size?: string;\r\n @Prop() custom_class: string;\r\n @Prop() component_mode?: string;\r\n @Prop() input_id?: string;\r\n @Prop() aria_label: string;\r\n @Prop() button_id?: string;\r\n @Prop() button_aria_label: string;\r\n @Prop() toggle_button_name: string;\r\n @Prop() country_select_button_name: string;\r\n @Prop() phone_input_name: string;\r\n @Prop() value: string;\r\n\r\n @State() country_code: string = '+971';\r\n @State() country_flag: string = 'https://flagcdn.com/w320/ae.png';\r\n @State() internalValue: string = '';\r\n @State() is_focused: boolean = false;\r\n @State() dropdown_open: boolean = false;\r\n @State() countries: { code: string; flag: string }[] = [];\r\n @State() hostElement: HTMLElement;\r\n\r\n @Event() phoneBlurred: EventEmitter<{ name: string; value: string }>;\r\n @Event() onBlurred: EventEmitter<{ name: string; value: string }>;\r\n\r\n\r\n @Method()\r\n async getValue() {\r\n return this.internalValue || this.value || '';\r\n }\r\n\r\n @Method()\r\n async validatePhoneField() {\r\n this.phoneBlurred.emit({\r\n name: this.phone_input_name,\r\n value: this.internalValue.trim()\r\n });\r\n this.onBlurred.emit({\r\n name: this.phone_input_name,\r\n value: this.internalValue.trim()\r\n });\r\n }\r\n\r\n @Watch('value')\r\n watchHandler(newValue: string) {\r\n this.internalValue = newValue;\r\n }\r\n\r\n componentWillLoad() {\r\n this.countries = CountriesList;\r\n this.internalValue = this.value || '';\r\n }\r\n\r\n componentDidLoad() {\r\n document.addEventListener('click', this.handleDocumentClick);\r\n }\r\n\r\n disconnectedCallback() {\r\n document.removeEventListener('click', this.handleDocumentClick);\r\n }\r\n\r\n handleDocumentClick = (event: MouseEvent) => {\r\n if (this.dropdown_open && this.hostElement && !this.hostElement.contains(event.target as Node)) {\r\n this.dropdown_open = false;\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.dropdown_open = !this.dropdown_open;\r\n }\r\n\r\n selectCountry(country: { code: string; flag: string }) {\r\n this.country_code = country.code;\r\n this.country_flag = country.flag;\r\n this.dropdown_open = false;\r\n }\r\n\r\n handleFocus() {\r\n this.is_focused = true;\r\n }\r\n\r\n handleBlur() {\r\n this.is_focused = false;\r\n this.phoneBlurred.emit({\r\n name: this.phone_input_name,\r\n value: this.internalValue.trim()\r\n });\r\n this.onBlurred.emit({\r\n name: this.phone_input_name,\r\n value: this.internalValue.trim()\r\n });\r\n }\r\n\r\n handlephonenumberChange(event: Event) {\r\n const target = event.target as HTMLInputElement;\r\n const targetvalue = target.value.replace(/\\D/g, '');\r\n this.internalValue = targetvalue;\r\n }\r\n\r\n handleKeyDown(event: KeyboardEvent) {\r\n const allowedKeys = [\r\n 'Backspace', 'ArrowLeft', 'ArrowRight', 'Delete', 'Tab'\r\n ];\r\n\r\n if (\r\n allowedKeys.includes(event.key) ||\r\n (event.ctrlKey || event.metaKey) // Allow copy/paste shortcuts\r\n ) {\r\n return;\r\n }\r\n\r\n if (!/^\\d$/.test(event.key)) {\r\n event.preventDefault();\r\n }\r\n}\r\n\r\n render() {\r\n const inputClass = `${this.component_mode} ${this.size ? `dda-input-size-${this.size}` : ''} ${this.error_message ? `dda-error-message` : ''} ${this.validation_type ? `dda-validation-${this.validation_type}` : ''} ${this.is_focused ? 'dda-input-focus' : ''} ${this.internalValue ? 'dda-input-focus-filled' : ''}`;\r\n\r\n return (\r\n <Host ref={(el) => this.hostElement = el as HTMLElement}>\r\n <div class={`dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}`}>\r\n {this.label && <label htmlFor={this.input_id} class=\"dda-input-label\">{this.label}</label>}\r\n <div class={`dda-input-field-group dda-phone-field`}>\r\n <div class=\"dda-input-dropdown-btn\">\r\n <button type=\"button\" name={this.toggle_button_name} class=\"dda-dropdown-select\" onClick={() => this.toggleDropdown()}>\r\n <img src={this.country_flag} alt=\"\" width=\"20\" /> {this.country_code}\r\n <i class=\"material-icons\" aria-hidden=\"true\">keyboard_arrow_down</i>\r\n </button>\r\n {this.dropdown_open && (\r\n <div class=\"dda-input-dropdown-list\">\r\n {this.countries.map(country => (\r\n <button\r\n id={`countryCode${country.code}`}\r\n name={this.country_select_button_name}\r\n aria-label={this.button_aria_label}\r\n type=\"button\"\r\n class=\"country-select dda-input-dropdown-item\"\r\n onClick={() => this.selectCountry(country)}\r\n >\r\n <img src={country.flag} alt=\"\" width=\"20\" /> {country.code}\r\n </button>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n <input\r\n id={this.input_id}\r\n name={this.phone_input_name}\r\n aria-label={this.aria_label}\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n maxlength={this.max_length}\r\n pattern=\"[0-9]*\"\r\n class=\"dda-field-group-input\"\r\n placeholder={this.placeholder}\r\n value={this.internalValue}\r\n disabled={this.disabled}\r\n onFocus={this.handleFocus.bind(this)}\r\n onInput={(e) => this.handlephonenumberChange(e)}\r\n onKeyDown={(e) => this.handleKeyDown(e)}\r\n onBlur={() => this.handleBlur()}\r\n />\r\n </div>\r\n\r\n {this.validation_type === 'error' && this.error_message ? (\r\n <span class=\"dda-error-message\" id={this.validation_id} role=\"alert\">\r\n {this.error_message}\r\n </span>\r\n ) : (\r\n this.helper_text && (\r\n <span class=\"dda-helper-text\" id={this.validation_id}>\r\n {this.helper_text}\r\n </span>\r\n )\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { D as DdaRadiobutton$1, d as defineCustomElement$1 } from './p-a28f59c6.js';
1
+ import { D as DdaRadiobutton$1, d as defineCustomElement$1 } from './p-c30d0ada.js';
2
2
 
3
3
  const DdaRadiobutton = DdaRadiobutton$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -5,8 +5,10 @@ const DdaSearchInput$1 = /*@__PURE__*/ proxyCustomElement(class DdaSearchInput e
5
5
  super();
6
6
  this.__registerHost();
7
7
  this.inputChanged = createEvent(this, "inputChanged", 7);
8
+ this.onChanged = createEvent(this, "onChanged", 7);
8
9
  this.buttonClicked = createEvent(this, "buttonClicked", 7);
9
10
  this.inputBlurred = createEvent(this, "inputBlurred", 7);
11
+ this.onBlurred = createEvent(this, "onBlurred", 7);
10
12
  this.placeholder = 'Search';
11
13
  this.size = 'sm';
12
14
  this.show_button = false;
@@ -32,28 +34,57 @@ const DdaSearchInput$1 = /*@__PURE__*/ proxyCustomElement(class DdaSearchInput e
32
34
  }
33
35
  };
34
36
  }
37
+ watchValue(newValue) {
38
+ this.internalValue = newValue || '';
39
+ this.hasInputValue = !!this.internalValue;
40
+ }
41
+ componentWillLoad() {
42
+ this.internalValue = this.value || '';
43
+ this.hasInputValue = !!this.internalValue;
44
+ }
35
45
  clearInput() {
36
46
  if (!this.input_id)
37
47
  return;
38
48
  const input = this.el.querySelector(`#${this.input_id}`);
39
49
  if (input) {
40
50
  input.value = '';
51
+ this.internalValue = '';
41
52
  this.hasInputValue = false;
53
+ // this.inputChanged.emit('');
54
+ this.onChanged.emit('');
42
55
  input.focus();
43
56
  }
44
57
  }
58
+ async reset() {
59
+ this.internalValue = '';
60
+ this.hasInputValue = false;
61
+ // this.inputChanged.emit('');
62
+ this.onChanged.emit('');
63
+ }
64
+ async setValue(val) {
65
+ this.internalValue = val;
66
+ this.hasInputValue = !!val;
67
+ // this.inputChanged.emit(val);
68
+ this.onChanged.emit(val);
69
+ }
45
70
  render() {
46
- return (h(Host, { key: 'f0fc1e206852227eeb82390059a4b0fbdb3c3978' }, h("div", { key: '4da59521507db34828bd771b96839af1930b6bde', class: `dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}` }, this.label && (h("label", { key: '028f47421e723d951fe90b3e386b1c0a580330aa', htmlFor: this.button_id, class: "dda-input-label" }, this.label)), h("div", { key: 'a347149b88dd251f9572896aa6e989498f4e64e8', class: "dda-search-area dda-search-action" }, h("i", { key: '5a39b3cd16166c02841adb4f5f8153a7ae211c55', class: "material-icons icon-left", "aria-hidden": "true" }, "search"), h("input", { key: '32fada4ba0736a93e0a3dac2a68c43e0cc08af90', name: this.search_input_name, "aria-label": this.aria_label, id: this.input_id, value: this.internalValue || this.value, type: "text", class: `dda-input-field dda-search-field ${this.show_button ? 'has-search-button' : ''}`, placeholder: this.placeholder,
71
+ return (h(Host, { key: '788e32324959a661a2e455b68ad5182596fd5425' }, h("div", { key: '14bf0a178e9c6ad063f099e50670469a848b7088', class: `dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}` }, this.label && (h("label", { key: '98f58b4a01e5f3b2ffefda00588586115852f507', htmlFor: this.button_id, class: "dda-input-label" }, this.label)), h("div", { key: '43393cf11cd9b1fe151190a92bdb1963a657873f', class: "dda-search-area dda-search-action" }, h("i", { key: 'e83ea59abe03acb5d871ad6d001b8d1a753dd593', class: "material-icons icon-left", "aria-hidden": "true" }, "search"), h("input", { key: 'a38947bc2567d5fb162705b4b8227d3f508a51a7', name: this.search_input_name, "aria-label": this.aria_label, id: this.input_id, value: this.internalValue, type: "text", class: `dda-input-field dda-search-field ${this.show_button ? 'has-search-button' : ''}`, placeholder: this.placeholder,
47
72
  // onInput={this.handleInput}
48
73
  onKeyDown: this.handleKeyDown, onInput: event => {
49
74
  this.internalValue = event.target.value;
75
+ this.hasInputValue = !!this.internalValue;
50
76
  this.inputChanged.emit(event);
77
+ this.onChanged.emit(event);
51
78
  }, onBlur: event => {
52
79
  const value = event.target.value.trim();
53
80
  this.inputBlurred.emit({ name: this.search_input_name, value });
54
- } }), h("div", { key: '52488a0aaeea3d843515494801ac5f15789b9726', class: "dda-search-btngroup" }, this.hasInputValue && (h("button", { key: '1758a03fcb843d097ffc057f8c4f03b6ee8d2638', name: this.close_button_name, "aria-label": this.button_aria_label, id: this.button_id, type: "button", class: "dda-search-close-icon", onClick: () => this.clearInput() }, h("i", { key: '49c31a2d6ae37925b38f5df8ad60f7f05556e4d6', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))), this.show_button && (h("button", { key: '4400e93f058867d62f847460581ce5a26d96ed1e', name: this.search_button_name, type: "button", class: "dda-btn btn-color-default-primary dda-btn-sm", onClick: this.handleSearchClick }, this.button_text)))), this.helper_text && (h("span", { key: '7982b705e86d2ac78f8b09d239a513dcbe5c6b5b', class: "dda-helper-text", id: this.validation_id }, this.helper_text)), this.error_message && (h("span", { key: '3ef56723a6479b87e93f4ab989b145c80a064ff5', class: "dda-error-message", id: this.validation_id }, this.error_message)))));
81
+ this.onBlurred.emit({ name: this.search_input_name, value });
82
+ } }), h("div", { key: 'a7b692b4c6ed2b8859ff0eef0069dea881363448', class: "dda-search-btngroup" }, this.hasInputValue && (h("button", { key: 'd8fb9737df78af6c4196e4dbd05ca9d74107e1d5', name: this.close_button_name, "aria-label": this.button_aria_label, id: this.button_id, type: "button", class: "dda-search-close-icon", onClick: () => this.clearInput() }, h("i", { key: '7c2f8c45df0060c2fa6d6f55bfab9d2dfa5bab28', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))), this.show_button && (h("button", { key: '10828f37a7569715fccd9ee69f245841423b0fd5', name: this.search_button_name, type: "button", class: "dda-btn btn-color-default-primary dda-btn-sm", onClick: this.handleSearchClick }, this.button_text)))), this.helper_text && (h("span", { key: '6c94b4c951409ad20a4e84b339ab81516855ef16', class: "dda-helper-text", id: this.validation_id }, this.helper_text)), this.error_message && (h("span", { key: 'ade9a6a691b2c013b23a8c9186b9d2822b6dd74c', class: "dda-error-message", id: this.validation_id }, this.error_message)))));
55
83
  }
56
84
  get el() { return this; }
85
+ static get watchers() { return {
86
+ "value": ["watchValue"]
87
+ }; }
57
88
  }, [0, "dda-search-input", {
58
89
  "placeholder": [1],
59
90
  "label": [1],
@@ -76,7 +107,11 @@ const DdaSearchInput$1 = /*@__PURE__*/ proxyCustomElement(class DdaSearchInput e
76
107
  "button_text": [1],
77
108
  "value": [1],
78
109
  "hasInputValue": [32],
79
- "internalValue": [32]
110
+ "internalValue": [32],
111
+ "reset": [64],
112
+ "setValue": [64]
113
+ }, undefined, {
114
+ "value": ["watchValue"]
80
115
  }]);
81
116
  function defineCustomElement$1() {
82
117
  if (typeof customElements === "undefined") {
@@ -1 +1 @@
1
- {"file":"dda-search-input.js","mappings":";;MAOaA,gBAAc;IAL3B;;;;;;QAMU,gBAAW,GAAW,QAAQ,CAAC;QAE/B,SAAI,GAAW,IAAI,CAAC;QAEpB,gBAAW,GAAY,KAAK,CAAC;QAI7B,cAAS,GAAY,KAAK,CAAC;QAC3B,iBAAY,GAAY,EAAE,CAAC;QAkB1B,kBAAa,GAAY,KAAK,CAAC;QAC/B,kBAAa,GAAW,EAAE,CAAC;QAEpC,gBAAW,GAAG,CAAC,KAAY;YACzB,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAC;YAChD,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;SAC9C,CAAC;QAEF,kBAAa,GAAG,CAAC,KAAoB;YACnC,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE;gBACzB,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAC;gBAChD,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;aAC1D;SACF,CAAC;QAEF,sBAAiB,GAAG;YAClB,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAqB,CAAC;YAC7E,IAAI,KAAK,EAAE;;gBAET,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,CAAC,CA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x"],"sourcesContent":["import { Component, Prop, h, Host, Element, State, Event, EventEmitter } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dda-search-input',\r\n styleUrls: [],\r\n shadow: false,\r\n})\r\nexport class DdaSearchInput {\r\n @Prop() placeholder: string = 'Search';\r\n @Prop() label: string;\r\n @Prop() size: string = 'sm';\r\n @Prop() error_message: string;\r\n @Prop() show_button: boolean = false;\r\n @Prop() helper_text: string;\r\n @Prop() validation_id: string;\r\n @Prop() input_status?: string;\r\n @Prop() has_error: boolean = false;\r\n @Prop() custom_class?: string = '';\r\n @Prop() component_mode?: string;\r\n @Prop() button_id?: string;\r\n @Prop() input_id?: string;\r\n @Prop() aria_label?: string;\r\n @Prop() button_aria_label?: string;\r\n @Prop() search_input_name: string;\r\n @Prop() close_button_name: string;\r\n @Prop() search_button_name: string;\r\n @Prop() button_text: string;\r\n @Prop() value: string;\r\n\r\n @Event() inputChanged: EventEmitter<any>;\r\n @Event() buttonClicked: EventEmitter<any>;\r\n @Event() inputBlurred: EventEmitter<{ name: string; value: string }>;\r\n\r\n @Element() el: HTMLElement;\r\n\r\n @State() hasInputValue: boolean = false;\r\n @State() internalValue: string = '';\r\n\r\n handleInput = (event: Event) => {\r\n const target = event.target as HTMLInputElement;\r\n this.hasInputValue = target.value.length > 0;\r\n };\r\n\r\n handleKeyDown = (event: KeyboardEvent) => {\r\n if (event.key === 'Enter') {\r\n const target = event.target as HTMLInputElement;\r\n console.log('Search input value (Enter):', target.value);\r\n }\r\n };\r\n\r\n handleSearchClick = () => {\r\n const input = this.el.querySelector(`#${this.input_id}`) as HTMLInputElement;\r\n if (input) {\r\n // console.log('Search input value (Button):', input.value);\r\n this.buttonClicked.emit(this.internalValue || this.value);\r\n }\r\n };\r\n\r\n clearInput() {\r\n if (!this.input_id) return;\r\n const input = this.el.querySelector(`#${this.input_id}`) as HTMLInputElement;\r\n if (input) {\r\n input.value = '';\r\n this.hasInputValue = false;\r\n input.focus();\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div\r\n class={`dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}`}\r\n >\r\n {this.label && (\r\n <label htmlFor={this.button_id} class=\"dda-input-label\">\r\n {this.label}\r\n </label>\r\n )}\r\n <div class=\"dda-search-area dda-search-action\">\r\n <i class=\"material-icons icon-left\" aria-hidden=\"true\">\r\n search\r\n </i>\r\n <input\r\n name={this.search_input_name}\r\n aria-label={this.aria_label}\r\n id={this.input_id}\r\n value={this.internalValue || this.value}\r\n type=\"text\"\r\n class={`dda-input-field dda-search-field ${this.show_button ? 'has-search-button' : ''}`}\r\n placeholder={this.placeholder}\r\n // onInput={this.handleInput}\r\n onKeyDown={this.handleKeyDown}\r\n onInput={event => {\r\n this.internalValue = (event.target as HTMLInputElement).value;\r\n this.inputChanged.emit(event);\r\n }}\r\n onBlur={event => {\r\n const value = (event.target as HTMLInputElement).value.trim();\r\n this.inputBlurred.emit({ name: this.search_input_name, value });\r\n }}\r\n />\r\n <div class=\"dda-search-btngroup\">\r\n {this.hasInputValue && (\r\n <button\r\n name={this.close_button_name}\r\n aria-label={this.button_aria_label}\r\n id={this.button_id}\r\n type=\"button\"\r\n class=\"dda-search-close-icon\"\r\n onClick={() => this.clearInput()}\r\n >\r\n <i class=\"material-icons material-symbols-outlined\" aria-hidden=\"true\">\r\n close\r\n </i>\r\n </button>\r\n )}\r\n {this.show_button && (\r\n <button name={this.search_button_name} type=\"button\" class=\"dda-btn btn-color-default-primary dda-btn-sm\" onClick={this.handleSearchClick}>\r\n {this.button_text}\r\n </button>\r\n )}\r\n </div>\r\n </div>\r\n {this.helper_text && (\r\n <span class=\"dda-helper-text\" id={this.validation_id}>\r\n {this.helper_text}\r\n </span>\r\n )}\r\n {this.error_message && (\r\n <span class=\"dda-error-message\" id={this.validation_id}>\r\n {this.error_message}\r\n </span>\r\n )}\r\n </div>\r\n </Host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AAC,QAAQ,EACb,KAAK,EAAC,uBAAuB,EAC7B,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE,IAEhC,0DAAG,KAAK,EAAC,0CAA0C,iBAAa,MAAM,YAElE,CACG,CACV,EACA,IAAI,CAAC,WAAW,KACf,+DAAQ,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,8CAA8C,EAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,IACtI,IAAI,CAAC,WAAW,CACV,CACV,CACG,CACF,EACL,IAAI,CAAC,WAAW,KACf,6DAAM,KAAK,EAAC,iBAAiB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,IACjD,IAAI,CAAC,WAAW,CACZ,CACR,EACA,IAAI,CAAC,aAAa,KACjB,6DAAM,KAAK,EAAC,mBAAmB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,IACnD,IAAI,CAAC,aAAa,CACd,CACR,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["DdaSearchInput"],"sources":["src/components/dda-search-input/dda-search-input.tsx"],"sourcesContent":["import { Component, Prop, h, Host, Element, State, Event, EventEmitter, Watch, Method } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dda-search-input',\r\n styleUrls: [],\r\n shadow: false,\r\n})\r\nexport class DdaSearchInput {\r\n @Prop() placeholder: string = 'Search';\r\n @Prop() label: string;\r\n @Prop() size: string = 'sm';\r\n @Prop() error_message: string;\r\n @Prop() show_button: boolean = false;\r\n @Prop() helper_text: string;\r\n @Prop() validation_id: string;\r\n @Prop() input_status?: string;\r\n @Prop() has_error: boolean = false;\r\n @Prop() custom_class?: string = '';\r\n @Prop() component_mode?: string;\r\n @Prop() button_id?: string;\r\n @Prop() input_id?: string;\r\n @Prop() aria_label?: string;\r\n @Prop() button_aria_label?: string;\r\n @Prop() search_input_name: string;\r\n @Prop() close_button_name: string;\r\n @Prop() search_button_name: string;\r\n @Prop() button_text: string;\r\n @Prop() value: string;\r\n\r\n @Event() inputChanged: EventEmitter<any>;\r\n @Event() onChanged: EventEmitter<any>;\r\n\r\n @Event() buttonClicked: EventEmitter<any>;\r\n @Event() inputBlurred: EventEmitter<{ name: string; value: string }>;\r\n @Event() onBlurred: EventEmitter<{ name: string; value: string }>;\r\n\r\n\r\n @Element() el: HTMLElement;\r\n\r\n @State() hasInputValue: boolean = false;\r\n @State() internalValue: string = '';\r\n\r\n handleInput = (event: Event) => {\r\n const target = event.target as HTMLInputElement;\r\n this.hasInputValue = target.value.length > 0;\r\n };\r\n\r\n handleKeyDown = (event: KeyboardEvent) => {\r\n if (event.key === 'Enter') {\r\n const target = event.target as HTMLInputElement;\r\n console.log('Search input value (Enter):', target.value);\r\n }\r\n };\r\n\r\n @Watch('value')\r\n watchValue(newValue: string) {\r\n this.internalValue = newValue || '';\r\n this.hasInputValue = !!this.internalValue;\r\n }\r\n\r\n componentWillLoad() {\r\n this.internalValue = this.value || '';\r\n this.hasInputValue = !!this.internalValue;\r\n }\r\n\r\n handleSearchClick = () => {\r\n const input = this.el.querySelector(`#${this.input_id}`) as HTMLInputElement;\r\n if (input) {\r\n // console.log('Search input value (Button):', input.value);\r\n this.buttonClicked.emit(this.internalValue || this.value);\r\n }\r\n };\r\n\r\n clearInput() {\r\n if (!this.input_id) return;\r\n const input = this.el.querySelector(`#${this.input_id}`) as HTMLInputElement;\r\n if (input) {\r\n input.value = '';\r\n this.internalValue = '';\r\n this.hasInputValue = false;\r\n // this.inputChanged.emit('');\r\n this.onChanged.emit('');\r\n input.focus();\r\n }\r\n }\r\n\r\n @Method()\r\n async reset() {\r\n this.internalValue = '';\r\n this.hasInputValue = false;\r\n // this.inputChanged.emit('');\r\n this.onChanged.emit('');\r\n }\r\n\r\n @Method()\r\n async setValue(val: string) {\r\n this.internalValue = val;\r\n this.hasInputValue = !!val;\r\n // this.inputChanged.emit(val);\r\n this.onChanged.emit(val);\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div\r\n class={`dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}`}\r\n >\r\n {this.label && (\r\n <label htmlFor={this.button_id} class=\"dda-input-label\">\r\n {this.label}\r\n </label>\r\n )}\r\n <div class=\"dda-search-area dda-search-action\">\r\n <i class=\"material-icons icon-left\" aria-hidden=\"true\">\r\n search\r\n </i>\r\n <input\r\n name={this.search_input_name}\r\n aria-label={this.aria_label}\r\n id={this.input_id}\r\n value={this.internalValue}\r\n type=\"text\"\r\n class={`dda-input-field dda-search-field ${this.show_button ? 'has-search-button' : ''}`}\r\n placeholder={this.placeholder}\r\n // onInput={this.handleInput}\r\n onKeyDown={this.handleKeyDown}\r\n onInput={event => {\r\n this.internalValue = (event.target as HTMLInputElement).value;\r\n this.hasInputValue = !!this.internalValue;\r\n this.inputChanged.emit(event);\r\n this.onChanged.emit(event);\r\n }}\r\n onBlur={event => {\r\n const value = (event.target as HTMLInputElement).value.trim();\r\n this.inputBlurred.emit({ name: this.search_input_name, value });\r\n this.onBlurred.emit({ name: this.search_input_name, value });\r\n }}\r\n />\r\n <div class=\"dda-search-btngroup\">\r\n {this.hasInputValue && (\r\n <button\r\n name={this.close_button_name}\r\n aria-label={this.button_aria_label}\r\n id={this.button_id}\r\n type=\"button\"\r\n class=\"dda-search-close-icon\"\r\n onClick={() => this.clearInput()}\r\n >\r\n <i class=\"material-icons material-symbols-outlined\" aria-hidden=\"true\">\r\n close\r\n </i>\r\n </button>\r\n )}\r\n {this.show_button && (\r\n <button name={this.search_button_name} type=\"button\" class=\"dda-btn btn-color-default-primary dda-btn-sm\" onClick={this.handleSearchClick}>\r\n {this.button_text}\r\n </button>\r\n )}\r\n </div>\r\n </div>\r\n {this.helper_text && (\r\n <span class=\"dda-helper-text\" id={this.validation_id}>\r\n {this.helper_text}\r\n </span>\r\n )}\r\n {this.error_message && (\r\n <span class=\"dda-error-message\" id={this.validation_id}>\r\n {this.error_message}\r\n </span>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -5,7 +5,9 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
5
5
  super();
6
6
  this.__registerHost();
7
7
  this.selectChanged = createEvent(this, "selectChanged", 7);
8
+ this.onChanged = createEvent(this, "onChanged", 7);
8
9
  this.selectBlurred = createEvent(this, "selectBlurred", 7);
10
+ this.onBlurred = createEvent(this, "onBlurred", 7);
9
11
  this.disabled = false;
10
12
  this.validation_id = 'text';
11
13
  this.custom_class = '';
@@ -23,6 +25,10 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
23
25
  name: this.input_name || this.button_id,
24
26
  value: this.selectedText || '',
25
27
  });
28
+ this.onBlurred.emit({
29
+ name: this.input_name || this.button_id,
30
+ value: this.selectedText || '',
31
+ });
26
32
  };
27
33
  }
28
34
  get parsedOptions() {
@@ -34,11 +40,14 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
34
40
  }
35
41
  }
36
42
  componentWillLoad() {
37
- const selectedOption = this.parsedOptions.find((opt) => opt.id.toString() === this.selected || opt.text === this.selected);
43
+ const selectedOption = this.parsedOptions.find(opt => opt.id.toString() === this.selected || opt.text === this.selected);
38
44
  if (selectedOption) {
39
45
  this.selectedId = selectedOption.id;
40
46
  this.selectedText = selectedOption.text;
41
47
  }
48
+ if (this.selected) {
49
+ this.watchSelected(this.selected);
50
+ }
42
51
  }
43
52
  toggleSelect() {
44
53
  if (!this.disabled) {
@@ -51,6 +60,7 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
51
60
  this.selectedText = option.text;
52
61
  this.is_open = false;
53
62
  this.selectChanged.emit(option);
63
+ this.onChanged.emit(option);
54
64
  }
55
65
  }
56
66
  connectedCallback() {
@@ -59,6 +69,33 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
59
69
  disconnectedCallback() {
60
70
  document.removeEventListener('click', this.handleClickOutside);
61
71
  }
72
+ async setSelected(value) {
73
+ const selectedOption = this.parsedOptions.find(opt => opt.id.toString() === value.toString() || opt.text === value);
74
+ if (selectedOption) {
75
+ this.selectedId = selectedOption.id;
76
+ this.selectedText = selectedOption.text;
77
+ this.selected = selectedOption.id.toString();
78
+ }
79
+ else {
80
+ this.selectedId = undefined;
81
+ this.selectedText = '';
82
+ this.selected = '';
83
+ }
84
+ }
85
+ async getSelectedText() {
86
+ return this.selectedText;
87
+ }
88
+ watchSelected(newVal) {
89
+ const selectedOption = this.parsedOptions.find(opt => opt.id.toString() === newVal || opt.text === newVal);
90
+ if (selectedOption) {
91
+ this.selectedId = selectedOption.id;
92
+ this.selectedText = selectedOption.text;
93
+ }
94
+ else {
95
+ this.selectedId = undefined;
96
+ this.selectedText = '';
97
+ }
98
+ }
62
99
  numberToWord(num) {
63
100
  const words = ['One', 'Two', 'Three', 'Four', 'Five'];
64
101
  return words[num - 1] || num.toString();
@@ -66,14 +103,17 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
66
103
  render() {
67
104
  const labelId = `${this.button_id}-label`;
68
105
  const valueId = `${this.button_id}-value`;
69
- return (h(Host, { key: 'c1dcfbea4498629d0dfa4f67948bb6ac30897ac2' }, h("div", { key: 'a95a7f3dd1221ad13a2a5369ec68c68034f02d38', class: `
106
+ return (h(Host, { key: 'b2ea43f3cc071d70ea0c61d143824d49c7aff023' }, h("div", { key: '950000c97017a28e0188deb01243fd13b0963c1b', class: `
70
107
  dda-input-container ${this.custom_class}
71
108
  ${this.component_mode}
72
109
  ${this.disabled ? 'dda-input-disabled' : ''}
73
110
  dda-input-size-${this.size} dda-validation-${this.validation_type}
74
- ` }, this.label && (h("span", { key: '665853d1e6aa374cea72c8268409a2c8d4c605be', id: labelId, class: "dda-input-label" }, this.label)), h("div", { key: 'eac1aeb088a25cd6fa43d63d9e4a9345fe16cbb2', class: "dda-dropdown-container" }, h("button", { key: '3adfaf044e5033e70c797c4e733b6c1cacd884e4', name: this.toggle_button_name, id: this.button_id, type: "button", class: "dda-input-field dda-select-header", "aria-labelledby": `${labelId} ${this.button_id}`, disabled: this.disabled, onClick: () => this.toggleSelect(), onBlur: this.handleBlur }, h("span", { key: '4aeac4f4baa2d34201ffa054b256379b716f71f8', id: valueId, class: "dda-select-button-label" }, this.selectedText || this.placeholder), h("i", { key: 'b7c6541a48190f0fe7f4bcbc188577c6d7914237', class: "material-icons", "aria-hidden": "true" }, this.is_open ? 'keyboard_arrow_up' : 'keyboard_arrow_down')), this.is_open && (h("div", { key: '2b686c68fa5e48f5f3dc87563bb01457f2fd8189', class: "dda-input-dropdown-list dda-select-list" }, this.parsedOptions.length > 0 ? (this.parsedOptions.map((option, index) => (h("button", { name: `option${this.numberToWord(index + 1)}`, type: "button", class: `dda-input-dropdown-item ${this.selectedId === option.id ? 'selected' : ''}`, role: "option", "aria-selected": this.selectedId === option.id ? 'true' : 'false', onClick: () => this.selectOption(option) }, option.text)))) : (h("div", { class: "dda-input-dropdown-item" }, "No options available"))))), this.validation_type === 'error' && this.error_message ? (h("span", { class: "dda-error-message", id: this.validation_id, role: "alert" }, this.error_message)) : (this.helper_text && (h("span", { class: "dda-helper-text", id: this.validation_id }, this.helper_text))))));
111
+ ` }, this.label && (h("span", { key: '5e6272c8b235646208167480e6149024687d2341', id: labelId, class: "dda-input-label" }, this.label)), h("div", { key: '0caa270da5785caec0c2e47769de205f2b085745', class: "dda-dropdown-container" }, h("button", { key: 'dc0e6b6f5d2d704e0d50c9472a3c82e20f6fbd6b', name: this.toggle_button_name, id: this.button_id, type: "button", class: "dda-input-field dda-select-header", "aria-labelledby": `${labelId} ${this.button_id}`, disabled: this.disabled, onClick: () => this.toggleSelect(), onBlur: this.handleBlur }, h("span", { key: '2f4839cad9b6aa1113054c81416798a8cc30d1bb', id: valueId, class: "dda-select-button-label" }, this.selectedText || this.placeholder), h("i", { key: '50c1eafec7ab95152088b07889dde1ba29aef178', class: "material-icons", "aria-hidden": "true" }, this.is_open ? 'keyboard_arrow_up' : 'keyboard_arrow_down')), this.is_open && (h("div", { key: 'aca0e036afea36b25ab22e1e4440d25cebd2c41a', class: "dda-input-dropdown-list dda-select-list" }, this.parsedOptions.length > 0 ? (this.parsedOptions.map((option, index) => (h("button", { name: `option${this.numberToWord(index + 1)}`, type: "button", class: `dda-input-dropdown-item ${this.selectedId === option.id ? 'selected' : ''}`, role: "option", "aria-selected": this.selectedId === option.id ? 'true' : 'false', onClick: () => this.selectOption(option) }, option.text)))) : (h("div", { class: "dda-input-dropdown-item" }, "No options available"))))), this.validation_type === 'error' && this.error_message ? (h("span", { class: "dda-error-message", id: this.validation_id, role: "alert" }, this.error_message)) : (this.helper_text && (h("span", { class: "dda-helper-text", id: this.validation_id }, this.helper_text))))));
75
112
  }
76
113
  get el() { return this; }
114
+ static get watchers() { return {
115
+ "selected": ["watchSelected"]
116
+ }; }
77
117
  }, [0, "dda-select", {
78
118
  "label": [1],
79
119
  "options": [1],
@@ -95,7 +135,11 @@ const Ddaselect = /*@__PURE__*/ proxyCustomElement(class Ddaselect extends H {
95
135
  "input_name": [1],
96
136
  "is_open": [32],
97
137
  "selectedId": [32],
98
- "selectedText": [32]
138
+ "selectedText": [32],
139
+ "setSelected": [64],
140
+ "getSelectedText": [64]
141
+ }, undefined, {
142
+ "selected": ["watchSelected"]
99
143
  }]);
100
144
  function defineCustomElement$1() {
101
145
  if (typeof customElements === "undefined") {
@@ -1 +1 @@
1
- {"file":"dda-select.js","mappings":";;MAOa,SAAS;IALtB;;;;;QAWU,aAAQ,GAAY,KAAK,CAAC;QAK1B,kBAAa,GAAW,MAAM,CAAC;QAE/B,iBAAY,GAAY,EAAE,CAAC;QAK3B,gBAAW,GAAW,EAAE,CAAC;QACzB,oBAAe,GAAW,EAAE,CAAC;QAC7B,eAAU,GAAW,EA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E,IAAI,CAAC,aAAa,IAErB,IAAI,CAAC,WAAW,CACZ,CACR,CACF,CAEG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dda-select/dda-select.tsx"],"sourcesContent":["import { Component, Prop, State, h, Host, Element, Event, EventEmitter } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dda-select',\r\n styleUrls: [],\r\n shadow: false,\r\n})\r\nexport class Ddaselect {\r\n @Element() el: HTMLElement;\r\n\r\n @Prop() label: string;\r\n @Prop() options: string;\r\n @Prop() selected: string; // can be id or text\r\n @Prop() disabled: boolean = false;\r\n @Prop() error?: string;\r\n @Prop() error_message: string;\r\n @Prop() helper_text: string;\r\n @Prop() validation_type?: string;\r\n @Prop() validation_id: string = 'text';\r\n @Prop() size?: string;\r\n @Prop() custom_class?: string = '';\r\n @Prop() component_mode?: string;\r\n @Prop() button_id: string;\r\n @Prop() toggle_button_name: string;\r\n @Prop() option_select_button_name: string;\r\n @Prop() placeholder: string = '';\r\n @Prop() main_aria_label: string = '';\r\n @Prop() input_name: string = '';\r\n \r\n @State() is_open: boolean = false;\r\n @State() selectedId: number;\r\n @State() selectedText: string;\r\n \r\n @Event() selectChanged: EventEmitter<{ id: number; text: string }>;\r\n @Event() selectBlurred: EventEmitter<{ name: string; value: string }>;\r\n\r\n private get parsedOptions(): { id: number; text: string }[] {\r\n try {\r\n return JSON.parse(this.options);\r\n } catch {\r\n return [];\r\n }\r\n }\r\n\r\n componentWillLoad() {\r\n const selectedOption = this.parsedOptions.find(\r\n (opt) => opt.id.toString() === this.selected || opt.text === this.selected\r\n );\r\n if (selectedOption) {\r\n this.selectedId = selectedOption.id;\r\n this.selectedText = selectedOption.text;\r\n }\r\n }\r\n\r\n toggleSelect() {\r\n if (!this.disabled) {\r\n this.is_open = !this.is_open;\r\n }\r\n }\r\n\r\n selectOption(option: { id: number; text: string }) {\r\n if (!this.disabled) {\r\n this.selectedId = option.id;\r\n this.selectedText = option.text;\r\n this.is_open = false;\r\n this.selectChanged.emit(option);\r\n }\r\n }\r\n\r\n handleClickOutside = (event: MouseEvent) => {\r\n if (this.is_open && !this.el.contains(event.target as Node)) {\r\n this.is_open = false;\r\n }\r\n };\r\n\r\n handleBlur = () => {\r\n this.selectBlurred.emit({\r\n name: this.input_name || this.button_id,\r\n value: this.selectedText || '',\r\n });\r\n };\r\n\r\n\r\n connectedCallback() {\r\n document.addEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n disconnectedCallback() {\r\n document.removeEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n private numberToWord(num: number): string {\r\n const words = ['One', 'Two', 'Three', 'Four', 'Five'];\r\n return words[num - 1] || num.toString();\r\n }\r\n\r\n render() {\r\n const labelId = `${this.button_id}-label`;\r\n const valueId = `${this.button_id}-value`;\r\n\r\n return (\r\n <Host>\r\n <div\r\n class={`\r\n dda-input-container ${this.custom_class} \r\n ${this.component_mode} \r\n ${this.disabled ? 'dda-input-disabled' : ''} \r\n dda-input-size-${this.size} dda-validation-${this.validation_type}\r\n `}\r\n >\r\n {this.label && (\r\n <span id={labelId} class=\"dda-input-label\">\r\n {this.label}\r\n </span>\r\n )}\r\n <div class=\"dda-dropdown-container\">\r\n <button\r\n name={this.toggle_button_name}\r\n id={this.button_id}\r\n type=\"button\"\r\n class=\"dda-input-field dda-select-header\"\r\n aria-labelledby={`${labelId} ${this.button_id}`}\r\n disabled={this.disabled}\r\n onClick={() => this.toggleSelect()}\r\n onBlur={this.handleBlur}\r\n >\r\n <span id={valueId} class=\"dda-select-button-label\">\r\n {this.selectedText || this.placeholder}\r\n </span>\r\n <i class=\"material-icons\" aria-hidden=\"true\">{this.is_open ? 'keyboard_arrow_up' : 'keyboard_arrow_down'}</i>\r\n </button>\r\n\r\n {this.is_open && (\r\n <div class=\"dda-input-dropdown-list dda-select-list\">\r\n {this.parsedOptions.length > 0 ? (\r\n this.parsedOptions.map((option, index) => (\r\n <button\r\n name={`option${this.numberToWord(index + 1)}`}\r\n type=\"button\"\r\n class={`dda-input-dropdown-item ${this.selectedId === option.id ? 'selected' : ''}`}\r\n role=\"option\"\r\n aria-selected={this.selectedId === option.id ? 'true' : 'false'}\r\n onClick={() => this.selectOption(option)}\r\n >\r\n {option.text}\r\n </button>\r\n ))\r\n ) : (\r\n <div class=\"dda-input-dropdown-item\">No options available</div>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n\r\n {this.validation_type === 'error' && this.error_message ? (\r\n <span \r\n class=\"dda-error-message\" \r\n id={this.validation_id}\r\n role=\"alert\"\r\n >\r\n {this.error_message}\r\n </span>\r\n ) : (\r\n this.helper_text && (\r\n <span \r\n class=\"dda-helper-text\" \r\n id={this.validation_id}\r\n >\r\n {this.helper_text}\r\n </span>\r\n )\r\n )}\r\n\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"dda-select.js","mappings":";;MAOa,SAAS;IALtB;;;;;;;QAWU,aAAQ,GAAY,KAAK,CAAC;QAK1B,kBAAa,GAAW,MAAM,CAAC;QAE/B,iBAAY,GAAY,EAAE,CAAC;QAK3B,gBAAW,GAAW,EAAE,CAAC;QACzB,oBAAe,GAAW,EAAE,CAAC;QAC7B,eAAU,GAAW,EAAE,CAAC;QAEvB,YAAO,GAAY,KAAK,CAAC;QA8ClC,uBAAkB,GAAG,CAAC,KAAiB;YACrC,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE;gBAC3D,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;aACtB;SACF,CAAC;QAEF,eAAU,GAAG;YACX,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;gBACtB,IAAI,EAAE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS;gBACvC,KAAK,EAAE,IAAI,CAAC,YAAY,IAAI,EAAE;aAC/B,CAAC,CAAC;YACH,IA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a,MAAM,IACzC,IAAI,CAAC,OAAO,GAAG,mBAAmB,GAAG,qBAAqB,CACzD,CACG,EAER,IAAI,CAAC,OAAO,KACX,4DAAK,KAAK,EAAC,yCAAyC,IACjD,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,IAC5B,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,MACnC,cACE,IAAI,EAAE,SAAS,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,EAC7C,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,2BAA2B,IAAI,CAAC,UAAU,KAAK,MAAM,CAAC,EAAE,GAAG,UAAU,GAAG,EAAE,EAAE,EACnF,IAAI,EAAC,QAAQ,mBACE,IAAI,CAAC,UAAU,KAAK,MAAM,CAAC,EAAE,GAAG,MAAM,GAAG,OAAO,EAC/D,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAEvC,MAAM,CAAC,IAAI,CACL,CACV,CAAC,KAEF,WAAK,KAAK,EAAC,yBAAyB,2BAA2B,CAChE,CACG,CACP,CACG,EAEL,IAAI,CAAC,eAAe,KAAK,OAAO,IAAI,IAAI,CAAC,aAAa,IACrD,YAAM,KAAK,EAAC,mBAAmB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,EAAC,OAAO,IACjE,IAAI,CAAC,aAAa,CACd,KAEP,IAAI,CAAC,WAAW,KACd,YAAM,KAAK,EAAC,iBAAiB,EAAC,EAAE,EAAE,IAAI,CAAC,aAAa,IACjD,IAAI,CAAC,WAAW,CACZ,CACR,CACF,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dda-select/dda-select.tsx"],"sourcesContent":["import { Component, Prop, State, h, Host, Element, Event, EventEmitter, Watch, Method } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dda-select',\r\n styleUrls: [],\r\n shadow: false,\r\n})\r\nexport class Ddaselect {\r\n @Element() el: HTMLElement;\r\n\r\n @Prop() label: string;\r\n @Prop() options: string;\r\n @Prop() selected: string; // can be id or text\r\n @Prop() disabled: boolean = false;\r\n @Prop() error?: string;\r\n @Prop() error_message: string;\r\n @Prop() helper_text: string;\r\n @Prop() validation_type?: string;\r\n @Prop() validation_id: string = 'text';\r\n @Prop() size?: string;\r\n @Prop() custom_class?: string = '';\r\n @Prop() component_mode?: string;\r\n @Prop() button_id: string;\r\n @Prop() toggle_button_name: string;\r\n @Prop() option_select_button_name: string;\r\n @Prop() placeholder: string = '';\r\n @Prop() main_aria_label: string = '';\r\n @Prop() input_name: string = '';\r\n\r\n @State() is_open: boolean = false;\r\n @State() selectedId: number;\r\n @State() selectedText: string;\r\n\r\n @Event() selectChanged: EventEmitter<{ id: number; text: string }>;\r\n @Event() onChanged: EventEmitter<{ id: number; text: string }>;\r\n\r\n @Event() selectBlurred: EventEmitter<{ name: string; value: string }>;\r\n @Event() onBlurred: EventEmitter<{ name: string; value: string }>;\r\n\r\n\r\n private get parsedOptions(): { id: number; text: string }[] {\r\n try {\r\n return JSON.parse(this.options);\r\n } catch {\r\n return [];\r\n }\r\n }\r\n\r\n componentWillLoad() {\r\n const selectedOption = this.parsedOptions.find(opt => opt.id.toString() === this.selected || opt.text === this.selected);\r\n if (selectedOption) {\r\n this.selectedId = selectedOption.id;\r\n this.selectedText = selectedOption.text;\r\n }\r\n if (this.selected) {\r\n this.watchSelected(this.selected);\r\n }\r\n }\r\n\r\n toggleSelect() {\r\n if (!this.disabled) {\r\n this.is_open = !this.is_open;\r\n }\r\n }\r\n\r\n selectOption(option: { id: number; text: string }) {\r\n if (!this.disabled) {\r\n this.selectedId = option.id;\r\n this.selectedText = option.text;\r\n this.is_open = false;\r\n this.selectChanged.emit(option);\r\n this.onChanged.emit(option);\r\n }\r\n }\r\n\r\n handleClickOutside = (event: MouseEvent) => {\r\n if (this.is_open && !this.el.contains(event.target as Node)) {\r\n this.is_open = false;\r\n }\r\n };\r\n\r\n handleBlur = () => {\r\n this.selectBlurred.emit({\r\n name: this.input_name || this.button_id,\r\n value: this.selectedText || '',\r\n });\r\n this.onBlurred.emit({\r\n name: this.input_name || this.button_id,\r\n value: this.selectedText || '',\r\n });\r\n };\r\n\r\n connectedCallback() {\r\n document.addEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n disconnectedCallback() {\r\n document.removeEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n @Method()\r\n async setSelected(value: string | number) {\r\n const selectedOption = this.parsedOptions.find(opt => opt.id.toString() === value.toString() || opt.text === value);\r\n\r\n if (selectedOption) {\r\n this.selectedId = selectedOption.id;\r\n this.selectedText = selectedOption.text;\r\n this.selected = selectedOption.id.toString();\r\n } else {\r\n this.selectedId = undefined;\r\n this.selectedText = '';\r\n this.selected = '';\r\n }\r\n }\r\n\r\n @Method()\r\n async getSelectedText() {\r\n return this.selectedText;\r\n }\r\n\r\n @Watch('selected')\r\n watchSelected(newVal: string) {\r\n const selectedOption = this.parsedOptions.find(opt => opt.id.toString() === newVal || opt.text === newVal);\r\n\r\n if (selectedOption) {\r\n this.selectedId = selectedOption.id;\r\n this.selectedText = selectedOption.text;\r\n } else {\r\n this.selectedId = undefined;\r\n this.selectedText = '';\r\n }\r\n }\r\n\r\n private numberToWord(num: number): string {\r\n const words = ['One', 'Two', 'Three', 'Four', 'Five'];\r\n return words[num - 1] || num.toString();\r\n }\r\n\r\n render() {\r\n const labelId = `${this.button_id}-label`;\r\n const valueId = `${this.button_id}-value`;\r\n\r\n return (\r\n <Host>\r\n <div\r\n class={`\r\n dda-input-container ${this.custom_class} \r\n ${this.component_mode} \r\n ${this.disabled ? 'dda-input-disabled' : ''} \r\n dda-input-size-${this.size} dda-validation-${this.validation_type}\r\n `}\r\n >\r\n {this.label && (\r\n <span id={labelId} class=\"dda-input-label\">\r\n {this.label}\r\n </span>\r\n )}\r\n <div class=\"dda-dropdown-container\">\r\n <button\r\n name={this.toggle_button_name}\r\n id={this.button_id}\r\n type=\"button\"\r\n class=\"dda-input-field dda-select-header\"\r\n aria-labelledby={`${labelId} ${this.button_id}`}\r\n disabled={this.disabled}\r\n onClick={() => this.toggleSelect()}\r\n onBlur={this.handleBlur}\r\n >\r\n <span id={valueId} class=\"dda-select-button-label\">\r\n {this.selectedText || this.placeholder}\r\n </span>\r\n <i class=\"material-icons\" aria-hidden=\"true\">\r\n {this.is_open ? 'keyboard_arrow_up' : 'keyboard_arrow_down'}\r\n </i>\r\n </button>\r\n\r\n {this.is_open && (\r\n <div class=\"dda-input-dropdown-list dda-select-list\">\r\n {this.parsedOptions.length > 0 ? (\r\n this.parsedOptions.map((option, index) => (\r\n <button\r\n name={`option${this.numberToWord(index + 1)}`}\r\n type=\"button\"\r\n class={`dda-input-dropdown-item ${this.selectedId === option.id ? 'selected' : ''}`}\r\n role=\"option\"\r\n aria-selected={this.selectedId === option.id ? 'true' : 'false'}\r\n onClick={() => this.selectOption(option)}\r\n >\r\n {option.text}\r\n </button>\r\n ))\r\n ) : (\r\n <div class=\"dda-input-dropdown-item\">No options available</div>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n\r\n {this.validation_type === 'error' && this.error_message ? (\r\n <span class=\"dda-error-message\" id={this.validation_id} role=\"alert\">\r\n {this.error_message}\r\n </span>\r\n ) : (\r\n this.helper_text && (\r\n <span class=\"dda-helper-text\" id={this.validation_id}>\r\n {this.helper_text}\r\n </span>\r\n )\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -17,9 +17,9 @@ const DdaTabs$1 = /*@__PURE__*/ proxyCustomElement(class DdaTabs extends H {
17
17
  this.tab_icons = '["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]';
18
18
  this.tab_type = 'dda-horizontal-tab';
19
19
  this.button_values = '["", "", ""]';
20
- this.tabhandler = (index) => {
21
- this.tabClick.emit(index);
22
- };
20
+ // private tabhandler = (index) => {
21
+ // this.tabClick.emit(index);
22
+ // };
23
23
  this.active_tab = 0;
24
24
  }
25
25
  get parsedButtonValues() {
@@ -27,8 +27,8 @@ const DdaTabs$1 = /*@__PURE__*/ proxyCustomElement(class DdaTabs extends H {
27
27
  return JSON.parse(this.button_values);
28
28
  }
29
29
  catch (error) {
30
- console.error("Error parsing button_values:", error);
31
- return ["", "", ""];
30
+ console.error('Error parsing button_values:', error);
31
+ return ['', '', ''];
32
32
  }
33
33
  }
34
34
  get parsedTabs() {
@@ -36,7 +36,7 @@ const DdaTabs$1 = /*@__PURE__*/ proxyCustomElement(class DdaTabs extends H {
36
36
  return JSON.parse(this.tab_texts); // Parse the string into an array
37
37
  }
38
38
  catch (error) {
39
- console.error("Error parsing tab_texts:", error);
39
+ console.error('Error parsing tab_texts:', error);
40
40
  return ['Tab 1', 'Tab 2', 'Tab 3']; // Fallback to default
41
41
  }
42
42
  }
@@ -45,8 +45,8 @@ const DdaTabs$1 = /*@__PURE__*/ proxyCustomElement(class DdaTabs extends H {
45
45
  return JSON.parse(this.tab_icons); // Parse the string into an array
46
46
  }
47
47
  catch (error) {
48
- console.error("Error parsing tabicons:", error);
49
- return ["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]; // Fallback to default
48
+ console.error('Error parsing tabicons:', error);
49
+ return ['sentiment_satisfied', 'sentiment_satisfied', 'sentiment_satisfied']; // Fallback to default
50
50
  }
51
51
  }
52
52
  get parsedButtonIds() {
@@ -54,18 +54,22 @@ const DdaTabs$1 = /*@__PURE__*/ proxyCustomElement(class DdaTabs extends H {
54
54
  return JSON.parse(this.button_ids);
55
55
  }
56
56
  catch (error) {
57
- console.error("Error parsing button_ids:", error);
58
- return ["tab-btn-1", "tab-btn-2", "tab-btn-3"];
57
+ console.error('Error parsing button_ids:', error);
58
+ return ['tab-btn-1', 'tab-btn-2', 'tab-btn-3'];
59
59
  }
60
60
  }
61
+ // setActiveTab(index: number) {
62
+ // this.active_tab = index;
63
+ // if (this.tabClick) {
64
+ // this.tabhandler(index);
65
+ // }
66
+ // }
61
67
  setActiveTab(index) {
62
68
  this.active_tab = index;
63
- if (this.tabClick) {
64
- this.tabhandler(index);
65
- }
69
+ this.tabClick.emit(index);
66
70
  }
67
71
  render() {
68
- return (h(Host, { key: 'aa753db7ce6294e509d09fb51e16edfc982d7719' }, h("div", { key: 'd46add11e08bcae5c9a13f81996196db898d6338', role: "tablist", "aria-label": "Tab Navigation", class: `dda-tabs-container ${this.hover_style} ${this.custom_class} ${this.component_mode} ${this.tab_type}` }, this.parsedTabs.map((title, index) => (h("button", { id: this.parsedButtonIds[index] || `tab-btn-${index + 1}`, name: this.button_name, "aria-label": title, type: "button", value: this.parsedButtonValues[index] || "", class: `dda-tab-item ${this.active_tab === index ? 'active' : ''}`, role: "tab", "aria-selected": this.active_tab === index ? 'true' : 'false', "aria-controls": `tab-btn-${index + 1}`, onClick: () => this.setActiveTab(index) }, this.type === 'text-icon' && h("i", { class: `material-icons`, "aria-hidden": "true" }, this.parsedIcons[index] || ""), h("span", null, title)))))));
72
+ return (h(Host, { key: '9fba77b9c33c9077f5e8999a1ce8c46535df6302' }, h("div", { key: 'dc5d7ccde21eca695798d6e62c4bbcc117b19962', role: "tablist", "aria-label": "Tab Navigation", class: `dda-tabs-container ${this.hover_style} ${this.custom_class} ${this.component_mode} ${this.tab_type}` }, this.parsedTabs.map((title, index) => (h("button", { id: this.parsedButtonIds[index] || `tab-btn-${index + 1}`, name: this.button_name, "aria-label": title, type: "button", value: this.parsedButtonValues[index] || '', class: `dda-tab-item ${this.active_tab === index ? 'active' : ''}`, role: "tab", "aria-selected": this.active_tab === index ? 'true' : 'false', "aria-controls": `tab-btn-${index + 1}`, onClick: () => this.setActiveTab(index) }, this.type === 'text-icon' && (h("i", { class: `material-icons`, "aria-hidden": "true" }, this.parsedIcons[index] || '')), h("span", null, title)))))));
69
73
  }
70
74
  static get style() { return DdaTabsStyle0; }
71
75
  }, [0, "dda-tabs", {