@ptcwebops/ptcw-design 6.2.4-beta → 6.2.4

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 (406) hide show
  1. package/dist/cjs/{component-4dd13907.js → component-06dda623.js} +1494 -3305
  2. package/dist/cjs/component-5b5b6a98.js +1819 -0
  3. package/dist/cjs/icon-asset_15.cjs.entry.js +1714 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
  6. package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +4 -786
  7. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +670 -0
  8. package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
  9. package/dist/cjs/ptcw-design.cjs.js +1 -1
  10. package/dist/cjs/validation-messages-33a4f26b.js +126 -0
  11. package/dist/collection/collection-manifest.json +0 -1
  12. package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +2 -30
  13. package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
  14. package/dist/collection/components/ptc-modal/ptc-modal.js +2 -2
  15. package/dist/collection/components/ptc-para/ptc-para.css +0 -3
  16. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  17. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
  18. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
  19. package/dist/custom-elements/index.d.ts +0 -6
  20. package/dist/custom-elements/index.js +6 -104
  21. package/dist/esm/academic-form-test.entry.js +1 -1
  22. package/dist/esm/author-listing-example.entry.js +1 -1
  23. package/dist/esm/blog-detail-content_2.entry.js +2 -2
  24. package/dist/esm/blog-detail-layout.entry.js +2 -2
  25. package/dist/esm/blogs-search-section.entry.js +2 -2
  26. package/dist/esm/bundle-example.entry.js +1 -1
  27. package/dist/esm/bundle-jumbotron-example.entry.js +1 -1
  28. package/dist/esm/{component-9c921cc6.js → component-274da230.js} +1482 -3281
  29. package/dist/esm/component-341e4eaa.js +1802 -0
  30. package/dist/esm/dropdown-item.entry.js +1 -1
  31. package/dist/esm/dynamic-box-bundle.entry.js +1 -1
  32. package/dist/esm/embedded-form.entry.js +1 -1
  33. package/dist/esm/event-jumbotron-example.entry.js +1 -1
  34. package/dist/esm/featured-events-slider-example.entry.js +1 -1
  35. package/dist/esm/featured-list.entry.js +1 -1
  36. package/dist/esm/fl-tab-content_3.entry.js +1 -1
  37. package/dist/esm/footer-form.entry.js +1 -1
  38. package/dist/esm/homepage-clickable-tab.entry.js +1 -1
  39. package/dist/esm/homepage-jumbotron.entry.js +2 -2
  40. package/dist/esm/homepage-toggled-content.entry.js +2 -2
  41. package/dist/esm/icon-asset_15.entry.js +1696 -0
  42. package/dist/esm/{index-c83db688.js → index-0bf594c4.js} +1 -1
  43. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  44. package/dist/esm/{interfaces-4caedd26.js → interfaces-7c0243be.js} +1 -1
  45. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  46. package/dist/esm/jumbotron-sub-mune.entry.js +1 -1
  47. package/dist/esm/list-item.entry.js +1 -1
  48. package/dist/esm/loader.js +3 -3
  49. package/dist/esm/most-popular-news.entry.js +2 -2
  50. package/dist/esm/my-component.entry.js +2 -2
  51. package/dist/esm/news-search-result.entry.js +1 -1
  52. package/dist/esm/ptc-accordion-item.entry.js +2 -2
  53. package/dist/esm/ptc-accordion.entry.js +1 -1
  54. package/dist/esm/ptc-announcement.entry.js +1 -1
  55. package/dist/esm/ptc-back-to-top.entry.js +1 -1
  56. package/dist/esm/ptc-background-video.entry.js +2 -2
  57. package/dist/esm/ptc-badge.entry.js +1 -1
  58. package/dist/esm/ptc-bio-card.entry.js +1 -1
  59. package/dist/esm/ptc-breadcrumb.entry.js +1 -1
  60. package/dist/esm/ptc-brightcov-video.entry.js +1 -1
  61. package/dist/esm/ptc-card-bottom_2.entry.js +1 -1
  62. package/dist/esm/ptc-card-content.entry.js +1 -1
  63. package/dist/esm/ptc-card_2.entry.js +1 -1
  64. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  65. package/dist/esm/ptc-checkbox-group.entry.js +1 -1
  66. package/dist/esm/ptc-checkbox.entry.js +1 -1
  67. package/dist/esm/ptc-collapse-list.entry.js +2 -2
  68. package/dist/esm/ptc-container.entry.js +1 -1
  69. package/dist/esm/ptc-countdown.entry.js +1 -1
  70. package/dist/esm/ptc-data-lookup.entry.js +3 -2
  71. package/dist/esm/ptc-date.entry.js +1 -1
  72. package/dist/esm/ptc-dropdown.entry.js +1 -1
  73. package/dist/esm/ptc-dynamic-card.entry.js +1 -1
  74. package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
  75. package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
  76. package/dist/esm/ptc-featured-list.entry.js +1 -1
  77. package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
  78. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  79. package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
  80. package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +5 -785
  81. package/dist/esm/ptc-form-radio-button.entry.js +1 -1
  82. package/dist/esm/ptc-form-radio-group.entry.js +1 -1
  83. package/dist/esm/ptc-form.entry.js +1 -1
  84. package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
  85. package/dist/esm/ptc-hero.entry.js +1 -1
  86. package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
  87. package/dist/esm/ptc-homepage-video-background.entry.js +2 -2
  88. package/dist/esm/ptc-icon-component.entry.js +1 -1
  89. package/dist/esm/ptc-icon-list.entry.js +1 -1
  90. package/dist/esm/ptc-icon-minimize.entry.js +1 -1
  91. package/dist/esm/ptc-image-download-strip.entry.js +1 -1
  92. package/dist/esm/ptc-img.entry.js +2 -2
  93. package/dist/esm/ptc-info-tile.entry.js +1 -1
  94. package/dist/esm/ptc-inline-cta.entry.js +1 -1
  95. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  96. package/dist/esm/ptc-list.entry.js +1 -1
  97. package/dist/esm/ptc-media-card.entry.js +2 -2
  98. package/dist/esm/ptc-minimized-nav.entry.js +1 -1
  99. package/dist/esm/ptc-modal-quiz.entry.js +1 -1
  100. package/dist/esm/ptc-multi-select_2.entry.js +665 -0
  101. package/dist/esm/ptc-nav-card.entry.js +1 -1
  102. package/dist/esm/ptc-nav-link.entry.js +1 -1
  103. package/dist/esm/ptc-nav-pills.entry.js +1 -1
  104. package/dist/esm/ptc-nav-skip-to-content.entry.js +1 -1
  105. package/dist/esm/ptc-nav-slider.entry.js +1 -1
  106. package/dist/esm/ptc-nav-submenu.entry.js +1 -1
  107. package/dist/esm/ptc-nav-tile.entry.js +1 -1
  108. package/dist/esm/ptc-news.entry.js +1 -1
  109. package/dist/esm/ptc-office-location-card.entry.js +1 -1
  110. package/dist/esm/ptc-office-locations.entry.js +1 -1
  111. package/dist/esm/ptc-overlay.entry.js +1 -1
  112. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  113. package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
  114. package/dist/esm/ptc-previous-url.entry.js +3 -11
  115. package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
  116. package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
  117. package/dist/esm/ptc-pricing-block.entry.js +1 -1
  118. package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
  119. package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
  120. package/dist/esm/ptc-product-card.entry.js +1 -1
  121. package/dist/esm/ptc-product-category.entry.js +1 -1
  122. package/dist/esm/ptc-product-dropdown.entry.js +1 -1
  123. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  124. package/dist/esm/ptc-product-list.entry.js +1 -1
  125. package/dist/esm/ptc-product-sidebar.entry.js +1 -1
  126. package/dist/esm/ptc-progress-bar.entry.js +1 -1
  127. package/dist/esm/ptc-quantity-counter.entry.js +1 -1
  128. package/dist/esm/ptc-quote.entry.js +1 -1
  129. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  130. package/dist/esm/ptc-readmore-new.entry.js +1 -1
  131. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  132. package/dist/esm/ptc-readmore.entry.js +1 -1
  133. package/dist/esm/ptc-related-card-rail.entry.js +1 -1
  134. package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
  135. package/dist/esm/ptc-search-field.entry.js +1 -1
  136. package/dist/esm/ptc-seo-title.entry.js +1 -1
  137. package/dist/esm/ptc-shopping-cart.entry.js +1 -1
  138. package/dist/esm/ptc-showcase-card.entry.js +1 -1
  139. package/dist/esm/ptc-skeleton.entry.js +1 -1
  140. package/dist/esm/ptc-slit-card.entry.js +1 -1
  141. package/dist/esm/ptc-social-icons.entry.js +1 -1
  142. package/dist/esm/ptc-span.entry.js +1 -1
  143. package/dist/esm/ptc-square-card.entry.js +1 -1
  144. package/dist/esm/ptc-sticky-icons.entry.js +1 -1
  145. package/dist/esm/ptc-sticky-section.entry.js +1 -1
  146. package/dist/esm/ptc-sticky-title.entry.js +1 -1
  147. package/dist/esm/ptc-subnav-card.entry.js +1 -1
  148. package/dist/esm/ptc-subnav.entry.js +1 -1
  149. package/dist/esm/ptc-svg-btn.entry.js +1 -1
  150. package/dist/esm/ptc-tab-list.entry.js +1 -1
  151. package/dist/esm/ptc-tab.entry.js +1 -1
  152. package/dist/esm/ptc-tabs.entry.js +1 -1
  153. package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
  154. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  155. package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
  156. package/dist/esm/ptc-tooltip.entry.js +1 -1
  157. package/dist/esm/ptc-two-column-media.entry.js +1 -1
  158. package/dist/esm/ptc-value-led-card.entry.js +1 -1
  159. package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
  160. package/dist/esm/ptc-value-led-content.entry.js +1 -1
  161. package/dist/esm/ptc-value-led-intro.entry.js +1 -1
  162. package/dist/esm/ptc-value-led-layout.entry.js +1 -1
  163. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  164. package/dist/esm/ptc-value-prop-card.entry.js +1 -1
  165. package/dist/esm/ptc-video-embed.entry.js +1 -1
  166. package/dist/esm/ptc-white-paper.entry.js +1 -1
  167. package/dist/esm/ptcw-design.js +3 -3
  168. package/dist/esm/sequential-bundle-example.entry.js +1 -1
  169. package/dist/esm/sequential-bundle.entry.js +1 -1
  170. package/dist/esm/tab-content.entry.js +1 -1
  171. package/dist/esm/tab-header.entry.js +1 -1
  172. package/dist/esm/{utils-63eab4bd.js → utils-ff65c75b.js} +1 -1
  173. package/dist/esm/validation-messages-adbb6518.js +124 -0
  174. package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
  175. package/dist/ptcw-design/{p-03a917f8.entry.js → p-02f0460b.entry.js} +1 -1
  176. package/dist/ptcw-design/p-051ba8f9.entry.js +1 -0
  177. package/dist/ptcw-design/{p-577dad08.entry.js → p-0554d900.entry.js} +1 -1
  178. package/dist/ptcw-design/{p-b8ee8699.entry.js → p-07b1afd5.entry.js} +1 -1
  179. package/dist/ptcw-design/{p-9e2fd13c.entry.js → p-0a558a22.entry.js} +1 -1
  180. package/dist/ptcw-design/{p-9ac99185.entry.js → p-0abb6e77.entry.js} +1 -1
  181. package/dist/ptcw-design/{p-71360e29.entry.js → p-0b182300.entry.js} +1 -1
  182. package/dist/ptcw-design/{p-bbc706df.entry.js → p-0bc848ef.entry.js} +1 -1
  183. package/dist/ptcw-design/{p-28be539b.entry.js → p-0c862dbd.entry.js} +1 -1
  184. package/dist/ptcw-design/{p-fb8584e4.entry.js → p-0ed4609e.entry.js} +1 -1
  185. package/dist/ptcw-design/p-11eb4dd1.entry.js +1 -0
  186. package/dist/ptcw-design/{p-c0bb1ad0.entry.js → p-13131b4d.entry.js} +1 -1
  187. package/dist/ptcw-design/{p-2657df50.entry.js → p-132f71c3.entry.js} +1 -1
  188. package/dist/ptcw-design/{p-99b45d23.entry.js → p-139ca5d2.entry.js} +1 -1
  189. package/dist/ptcw-design/{p-27e47c25.entry.js → p-14c77b5e.entry.js} +1 -1
  190. package/dist/ptcw-design/p-169fdc62.entry.js +1 -0
  191. package/dist/ptcw-design/p-18a5a338.js +1 -0
  192. package/dist/ptcw-design/p-19a9ada3.entry.js +68 -0
  193. package/dist/ptcw-design/{p-85f32bf5.entry.js → p-1ab6201b.entry.js} +1 -1
  194. package/dist/ptcw-design/{p-99daf693.entry.js → p-1acd3617.entry.js} +1 -1
  195. package/dist/ptcw-design/{p-77cad16c.entry.js → p-1adea6a5.entry.js} +1 -1
  196. package/dist/ptcw-design/{p-bb28bbad.entry.js → p-1d00a43a.entry.js} +1 -1
  197. package/dist/ptcw-design/{p-464d8e22.entry.js → p-1d48bad3.entry.js} +1 -1
  198. package/dist/ptcw-design/{p-b3bbd17d.entry.js → p-1e44cf5e.entry.js} +1 -1
  199. package/dist/ptcw-design/{p-46f67bec.entry.js → p-1e9f25fc.entry.js} +1 -1
  200. package/dist/ptcw-design/p-1eb92079.entry.js +1 -0
  201. package/dist/ptcw-design/{p-6b32020a.entry.js → p-1ec32cbc.entry.js} +1 -1
  202. package/dist/ptcw-design/{p-2ac5ed9c.entry.js → p-20670bc5.entry.js} +1 -1
  203. package/dist/ptcw-design/p-208ca9de.entry.js +1 -0
  204. package/dist/ptcw-design/{p-bf8fbba7.entry.js → p-208ec7f3.entry.js} +1 -1
  205. package/dist/ptcw-design/{p-50d68602.entry.js → p-20d837a9.entry.js} +1 -1
  206. package/dist/ptcw-design/p-212cdacd.entry.js +1 -0
  207. package/dist/ptcw-design/{p-8c49d736.entry.js → p-212d0145.entry.js} +1 -1
  208. package/dist/ptcw-design/{p-9b26ea67.entry.js → p-290012e3.entry.js} +1 -1
  209. package/dist/ptcw-design/{p-9b0df204.entry.js → p-298d02ab.entry.js} +1 -1
  210. package/dist/ptcw-design/{p-6f5fecae.entry.js → p-2a255901.entry.js} +1 -1
  211. package/dist/ptcw-design/{p-e90fbbad.entry.js → p-2a3735a5.entry.js} +1 -1
  212. package/dist/ptcw-design/p-2ee3a32b.entry.js +1 -0
  213. package/dist/ptcw-design/{p-21fa5abe.entry.js → p-2fd01953.entry.js} +1 -1
  214. package/dist/ptcw-design/p-330e1a36.entry.js +1 -0
  215. package/dist/ptcw-design/p-36c42aae.entry.js +1 -0
  216. package/dist/ptcw-design/p-3717a6e1.entry.js +1 -0
  217. package/dist/ptcw-design/{p-dc8c0a06.entry.js → p-37899461.entry.js} +1 -1
  218. package/dist/ptcw-design/p-3a7c5330.entry.js +1 -0
  219. package/dist/ptcw-design/{p-f61a3476.entry.js → p-3b967df1.entry.js} +1 -1
  220. package/dist/ptcw-design/{p-8533988f.entry.js → p-3c52fabe.entry.js} +1 -1
  221. package/dist/ptcw-design/{p-58e91cb8.entry.js → p-3c72e82d.entry.js} +1 -1
  222. package/dist/ptcw-design/{p-76d98c5a.entry.js → p-3e13b735.entry.js} +1 -1
  223. package/dist/ptcw-design/{p-c6a0dd99.entry.js → p-43756439.entry.js} +1 -1
  224. package/dist/ptcw-design/{p-ee534211.entry.js → p-4b23b4c3.entry.js} +1 -1
  225. package/dist/ptcw-design/p-520542e2.entry.js +1 -0
  226. package/dist/ptcw-design/p-53d88f2b.entry.js +1 -0
  227. package/dist/ptcw-design/{p-2c2f895a.entry.js → p-54891548.entry.js} +1 -1
  228. package/dist/ptcw-design/{p-56a2a9dc.entry.js → p-5588653b.entry.js} +1 -1
  229. package/dist/ptcw-design/{p-90c4f08b.entry.js → p-5ae21271.entry.js} +1 -1
  230. package/dist/ptcw-design/{p-fec1acdf.entry.js → p-5b0bc600.entry.js} +1 -1
  231. package/dist/ptcw-design/{p-f731fc96.entry.js → p-5da98805.entry.js} +1 -1
  232. package/dist/ptcw-design/{p-61d28206.entry.js → p-5fb671ee.entry.js} +1 -1
  233. package/dist/ptcw-design/{p-c631608f.entry.js → p-61a5012d.entry.js} +1 -1
  234. package/dist/ptcw-design/{p-34c50b3e.entry.js → p-6a79e68e.entry.js} +1 -1
  235. package/dist/ptcw-design/{p-cbee4653.entry.js → p-6bd26096.entry.js} +1 -1
  236. package/dist/ptcw-design/{p-9de963f8.entry.js → p-6d628113.entry.js} +1 -1
  237. package/dist/ptcw-design/p-70ac8aa5.entry.js +1 -0
  238. package/dist/ptcw-design/p-72681e91.entry.js +1 -0
  239. package/dist/ptcw-design/{p-04aae3f5.entry.js → p-74a845fd.entry.js} +1 -1
  240. package/dist/ptcw-design/{p-99ee8a0e.entry.js → p-761f71c4.entry.js} +1 -1
  241. package/dist/ptcw-design/{p-8038bf31.entry.js → p-779c3f21.entry.js} +1 -1
  242. package/dist/ptcw-design/{p-282b7d4e.entry.js → p-78252282.entry.js} +1 -1
  243. package/dist/ptcw-design/{p-081e969d.entry.js → p-7b75091d.entry.js} +1 -1
  244. package/dist/ptcw-design/{p-4b192f5e.entry.js → p-7e19be10.entry.js} +1 -1
  245. package/dist/ptcw-design/{p-3c3a7b54.entry.js → p-7edef9ed.entry.js} +1 -1
  246. package/dist/ptcw-design/{p-7cc9255e.entry.js → p-7fada7ae.entry.js} +1 -1
  247. package/dist/ptcw-design/{p-5980d65d.entry.js → p-807ad5c4.entry.js} +1 -1
  248. package/dist/ptcw-design/{p-931650bb.entry.js → p-80c56c81.entry.js} +1 -1
  249. package/dist/ptcw-design/{p-48815ee0.entry.js → p-88379d69.entry.js} +1 -1
  250. package/dist/ptcw-design/{p-77b1221e.js → p-8872161f.js} +1 -1
  251. package/dist/ptcw-design/{p-9a335b5b.entry.js → p-8eb36507.entry.js} +1 -1
  252. package/dist/ptcw-design/{p-bb902570.entry.js → p-907727fd.entry.js} +1 -1
  253. package/dist/ptcw-design/{p-2a70a438.entry.js → p-9350450b.entry.js} +1 -1
  254. package/dist/ptcw-design/{p-ac75c7ad.js → p-944c5be8.js} +1 -1
  255. package/dist/ptcw-design/{p-7b71abaf.entry.js → p-94c59fac.entry.js} +1 -1
  256. package/dist/ptcw-design/p-973b06d1.entry.js +1 -0
  257. package/dist/ptcw-design/{p-40b8c884.entry.js → p-986be938.entry.js} +1 -1
  258. package/dist/ptcw-design/p-99e41dc4.entry.js +1 -0
  259. package/dist/ptcw-design/{p-bfacfe67.entry.js → p-9a28ded2.entry.js} +1 -1
  260. package/dist/ptcw-design/p-9ae901e2.entry.js +1 -0
  261. package/dist/ptcw-design/{p-eec2f3da.entry.js → p-9b60270e.entry.js} +1 -1
  262. package/dist/ptcw-design/{p-5db7f70b.entry.js → p-9d32f1bc.entry.js} +1 -1
  263. package/dist/ptcw-design/{p-3ee2a531.entry.js → p-9dde477c.entry.js} +1 -1
  264. package/dist/ptcw-design/p-9e6fb4ba.entry.js +1 -0
  265. package/dist/ptcw-design/{p-257a68df.entry.js → p-a22d7ae8.entry.js} +1 -1
  266. package/dist/ptcw-design/{p-3872fce7.entry.js → p-a2710bbf.entry.js} +1 -1
  267. package/dist/ptcw-design/{p-821f0ff9.entry.js → p-a560e839.entry.js} +1 -1
  268. package/dist/ptcw-design/{p-8191928d.entry.js → p-a974f98f.entry.js} +1 -1
  269. package/dist/ptcw-design/{p-d20cf3c5.entry.js → p-aaf8fb04.entry.js} +1 -1
  270. package/dist/ptcw-design/{p-257deac0.entry.js → p-aba549b7.entry.js} +1 -1
  271. package/dist/ptcw-design/p-ac32267c.entry.js +1 -0
  272. package/dist/ptcw-design/{p-a25578e9.entry.js → p-ac78409e.entry.js} +1 -1
  273. package/dist/ptcw-design/p-ad4f4f33.entry.js +1 -0
  274. package/dist/ptcw-design/{p-0d806031.entry.js → p-af9bb288.entry.js} +1 -1
  275. package/dist/ptcw-design/{p-dc85c302.entry.js → p-afbe8e2c.entry.js} +1 -1
  276. package/dist/ptcw-design/{p-8193a2ae.entry.js → p-affe4655.entry.js} +1 -1
  277. package/dist/ptcw-design/{p-48c33817.entry.js → p-b1c1de30.entry.js} +1 -1
  278. package/dist/ptcw-design/{p-aea09a70.entry.js → p-b293a0b1.entry.js} +1 -1
  279. package/dist/ptcw-design/{p-0e5932f0.entry.js → p-b3b63f67.entry.js} +1 -1
  280. package/dist/ptcw-design/{p-49e54079.entry.js → p-b4ba719a.entry.js} +1 -1
  281. package/dist/ptcw-design/{p-85c29073.entry.js → p-b5d0e4a2.entry.js} +1 -1
  282. package/dist/ptcw-design/{p-a7cb3851.entry.js → p-be00fb74.entry.js} +1 -1
  283. package/dist/ptcw-design/p-be533f0d.js +134 -0
  284. package/dist/ptcw-design/{p-ea7369e9.entry.js → p-bf076b87.entry.js} +1 -1
  285. package/dist/ptcw-design/{p-89ba3dfd.entry.js → p-bf2f9183.entry.js} +1 -1
  286. package/dist/ptcw-design/{p-dbbe35bf.entry.js → p-bf439f9b.entry.js} +1 -1
  287. package/dist/ptcw-design/{p-38a56ed6.entry.js → p-c05e326f.entry.js} +1 -1
  288. package/dist/ptcw-design/p-c1513c3f.js +203 -0
  289. package/dist/ptcw-design/{p-6c2b4fb8.entry.js → p-c2e7fec4.entry.js} +1 -1
  290. package/dist/ptcw-design/{p-ffb0ff97.entry.js → p-c415ab42.entry.js} +1 -1
  291. package/dist/ptcw-design/{p-aac082cf.entry.js → p-c5417010.entry.js} +1 -1
  292. package/dist/ptcw-design/{p-97b9f41b.entry.js → p-c5886b7b.entry.js} +1 -1
  293. package/dist/ptcw-design/{p-2749c178.entry.js → p-c9518684.entry.js} +1 -1
  294. package/dist/ptcw-design/{p-04f0b1ba.entry.js → p-c9a73ad1.entry.js} +1 -1
  295. package/dist/ptcw-design/{p-ba8c58a7.entry.js → p-ca268a17.entry.js} +1 -1
  296. package/dist/ptcw-design/{p-5946d7c9.entry.js → p-cab0274c.entry.js} +1 -1
  297. package/dist/ptcw-design/p-ce6d1c5f.entry.js +1 -0
  298. package/dist/ptcw-design/{p-1a6759a4.entry.js → p-d113403b.entry.js} +1 -1
  299. package/dist/ptcw-design/{p-e3bf092e.entry.js → p-d1f57070.entry.js} +1 -1
  300. package/dist/ptcw-design/{p-ecd86dfe.entry.js → p-d3087f34.entry.js} +1 -1
  301. package/dist/ptcw-design/{p-0ee01112.entry.js → p-d5fbe774.entry.js} +1 -1
  302. package/dist/ptcw-design/{p-e577ad62.entry.js → p-d871e7f7.entry.js} +1 -1
  303. package/dist/ptcw-design/{p-158f6d50.entry.js → p-d955c44f.entry.js} +1 -1
  304. package/dist/ptcw-design/{p-a54c6da5.entry.js → p-dabb1b70.entry.js} +1 -1
  305. package/dist/ptcw-design/{p-a0bf3dd2.entry.js → p-dadbab48.entry.js} +1 -1
  306. package/dist/ptcw-design/{p-c5f42895.entry.js → p-dd38bf84.entry.js} +1 -1
  307. package/dist/ptcw-design/{p-d7275289.entry.js → p-e1242dd4.entry.js} +1 -1
  308. package/dist/ptcw-design/{p-a37c5209.entry.js → p-e2e33ddb.entry.js} +1 -1
  309. package/dist/ptcw-design/{p-fdee2cdc.entry.js → p-e6ebc832.entry.js} +1 -1
  310. package/dist/ptcw-design/{p-89177041.entry.js → p-e75dff95.entry.js} +1 -1
  311. package/dist/ptcw-design/{p-c68d31c6.entry.js → p-e87a4ff8.entry.js} +1 -1
  312. package/dist/ptcw-design/{p-d2825140.entry.js → p-e895bf99.entry.js} +1 -1
  313. package/dist/ptcw-design/{p-0a9ee6c2.entry.js → p-e8b51e7d.entry.js} +1 -1
  314. package/dist/ptcw-design/{p-7a1db471.entry.js → p-ecfc8211.entry.js} +1 -1
  315. package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
  316. package/dist/ptcw-design/{p-071a6109.entry.js → p-ef0079b0.entry.js} +1 -1
  317. package/dist/ptcw-design/{p-da02913d.entry.js → p-f05be87f.entry.js} +1 -1
  318. package/dist/ptcw-design/{p-f5c97ab2.entry.js → p-f2006b03.entry.js} +1 -1
  319. package/dist/ptcw-design/{p-5d885144.entry.js → p-f457709f.entry.js} +1 -1
  320. package/dist/ptcw-design/{p-139a02e6.entry.js → p-f64fadad.entry.js} +1 -1
  321. package/dist/ptcw-design/{p-4f93c631.entry.js → p-f77c7c78.entry.js} +1 -1
  322. package/dist/ptcw-design/{p-f8512dc9.entry.js → p-fb2e4612.entry.js} +1 -1
  323. package/dist/ptcw-design/{p-6a3caf2b.entry.js → p-fc0d9251.entry.js} +1 -1
  324. package/dist/ptcw-design/{p-72df6678.entry.js → p-fe72010d.entry.js} +1 -1
  325. package/dist/ptcw-design/{p-7793babb.entry.js → p-ffd5c822.entry.js} +1 -1
  326. package/dist/ptcw-design/ptcw-design.css +1 -1
  327. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  328. package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
  329. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  330. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
  331. package/dist/types/components.d.ts +4 -19
  332. package/package.json +1 -1
  333. package/readme.md +1 -1
  334. package/dist/cjs/icon-asset.cjs.entry.js +0 -65
  335. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  336. package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
  337. package/dist/cjs/ptc-button.cjs.entry.js +0 -87
  338. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -211
  339. package/dist/cjs/ptc-footer.cjs.entry.js +0 -66
  340. package/dist/cjs/ptc-icon-card.cjs.entry.js +0 -28
  341. package/dist/cjs/ptc-link.cjs.entry.js +0 -98
  342. package/dist/cjs/ptc-mobile-select.cjs.entry.js +0 -570
  343. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  344. package/dist/cjs/ptc-picture.cjs.entry.js +0 -163
  345. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +0 -82
  346. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  347. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +0 -56
  348. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  349. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
  350. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
  351. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
  352. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
  353. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
  354. package/dist/esm/icon-asset.entry.js +0 -61
  355. package/dist/esm/max-width-container.entry.js +0 -50
  356. package/dist/esm/modal-form-example.entry.js +0 -90
  357. package/dist/esm/ptc-button.entry.js +0 -83
  358. package/dist/esm/ptc-close-icon_2.entry.js +0 -206
  359. package/dist/esm/ptc-footer.entry.js +0 -62
  360. package/dist/esm/ptc-icon-card.entry.js +0 -24
  361. package/dist/esm/ptc-link.entry.js +0 -94
  362. package/dist/esm/ptc-mobile-select.entry.js +0 -566
  363. package/dist/esm/ptc-para.entry.js +0 -123
  364. package/dist/esm/ptc-picture.entry.js +0 -159
  365. package/dist/esm/ptc-social-icons-footer.entry.js +0 -78
  366. package/dist/esm/ptc-spacer.entry.js +0 -34
  367. package/dist/esm/ptc-text-copy-with-background.entry.js +0 -52
  368. package/dist/esm/ptc-title.entry.js +0 -148
  369. package/dist/ptcw-design/p-0a214a22.entry.js +0 -1
  370. package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
  371. package/dist/ptcw-design/p-1070f8a3.entry.js +0 -1
  372. package/dist/ptcw-design/p-17f6e145.entry.js +0 -1
  373. package/dist/ptcw-design/p-1d068cc2.entry.js +0 -68
  374. package/dist/ptcw-design/p-25a25451.entry.js +0 -1
  375. package/dist/ptcw-design/p-260ecfef.entry.js +0 -1
  376. package/dist/ptcw-design/p-3738a01f.entry.js +0 -1
  377. package/dist/ptcw-design/p-40160817.entry.js +0 -1
  378. package/dist/ptcw-design/p-4cee12b8.entry.js +0 -1
  379. package/dist/ptcw-design/p-4ee98a3e.entry.js +0 -1
  380. package/dist/ptcw-design/p-5ef23b5c.entry.js +0 -1
  381. package/dist/ptcw-design/p-627103d8.entry.js +0 -1
  382. package/dist/ptcw-design/p-799afee5.entry.js +0 -1
  383. package/dist/ptcw-design/p-867a808f.entry.js +0 -1
  384. package/dist/ptcw-design/p-8c692bd6.entry.js +0 -1
  385. package/dist/ptcw-design/p-92d22c78.entry.js +0 -1
  386. package/dist/ptcw-design/p-95187918.entry.js +0 -1
  387. package/dist/ptcw-design/p-97eb1025.entry.js +0 -1
  388. package/dist/ptcw-design/p-9a6bd91f.entry.js +0 -1
  389. package/dist/ptcw-design/p-9d3a7f36.entry.js +0 -1
  390. package/dist/ptcw-design/p-9e9ae28c.entry.js +0 -1
  391. package/dist/ptcw-design/p-a3b57ede.entry.js +0 -1
  392. package/dist/ptcw-design/p-a4f65d28.entry.js +0 -1
  393. package/dist/ptcw-design/p-b50f71dd.entry.js +0 -1
  394. package/dist/ptcw-design/p-bcab66bf.js +0 -336
  395. package/dist/ptcw-design/p-bf18b622.entry.js +0 -1
  396. package/dist/ptcw-design/p-c01ea76f.entry.js +0 -1
  397. package/dist/ptcw-design/p-d2cc0297.entry.js +0 -1
  398. package/dist/ptcw-design/p-d2e26642.entry.js +0 -1
  399. package/dist/ptcw-design/p-d3229458.entry.js +0 -1
  400. package/dist/ptcw-design/p-d756db27.entry.js +0 -1
  401. package/dist/ptcw-design/p-de960790.entry.js +0 -1
  402. package/dist/ptcw-design/p-e89ce54f.entry.js +0 -1
  403. package/dist/ptcw-design/p-fd394e84.entry.js +0 -1
  404. package/dist/ptcw-design/p-fd7e5935.entry.js +0 -1
  405. package/dist/ptcw-design/p-fe907670.entry.js +0 -1
  406. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
@@ -1,570 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-63ddc79c.js');
6
-
7
- /*
8
- * mobile-select v1.4.0
9
- * Homepage: https://github.com/onlyhom/mobile-select
10
- * Released under the MIT License.
11
- * (c) 2017-present
12
- */
13
- var S = Object.defineProperty;
14
- var D = (g, t, e) => t in g ? S(g, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[t] = e;
15
- var h = (g, t, e) => (D(g, typeof t != "symbol" ? t + "" : t, e), e);
16
- function w() {
17
- return !navigator.userAgent.toLowerCase().match(/ipad|iphone os|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/);
18
- }
19
- const l = class {
20
- constructor(t) {
21
- h(this, "mobileSelect");
22
- h(this, "trigger");
23
- h(this, "wheelList");
24
- h(this, "sliderList");
25
- h(this, "wheelsContain");
26
- h(this, "panel");
27
- h(this, "ensureBtn");
28
- h(this, "cancelBtn");
29
- h(this, "grayLayer");
30
- h(this, "popUp");
31
- h(this, "initPosition");
32
- h(this, "initColWidth");
33
- h(this, "wheelsData");
34
- h(this, "displayJson");
35
- h(this, "curValue");
36
- h(this, "curIndexArr");
37
- h(this, "isCascade");
38
- h(this, "isJsonType");
39
- h(this, "startY");
40
- h(this, "moveEndY");
41
- h(this, "moveY");
42
- h(this, "preMoveY");
43
- h(this, "offsetY");
44
- h(this, "offsetSum");
45
- h(this, "oversizeBorder");
46
- h(this, "enableClickStatus");
47
- h(this, "optionHeight");
48
- h(this, "curDistance");
49
- h(this, "cascadeJsonData");
50
- h(this, "eventHandleMap");
51
- h(this, "initDeepCount");
52
- h(this, "config");
53
- !l.checkRequiredConfig(t) || (this.config = Object.assign({}, l.defaultConfig, t), this.wheelsData = t.wheels, this.isJsonType = !1, this.cascadeJsonData = [], this.displayJson = [], this.curValue = [], this.curIndexArr = [], this.isCascade = !1, this.offsetY = 0, this.offsetSum = 0, this.curDistance = [], this.enableClickStatus = !1, this.optionHeight = 0, this.initPosition = t.position || [], this.initColWidth = t.colWidth || [], this.init());
54
- }
55
- init() {
56
- if (!this.checkTriggerAvailable())
57
- return;
58
- const { config: t } = this;
59
- if (this.isJsonType = l.checkDataType(this.wheelsData), this.renderComponent(this.wheelsData), this.wheelList = this.mobileSelect.getElementsByClassName("ms-wheel"), this.sliderList = this.mobileSelect.getElementsByClassName("ms-select-container"), this.panel = this.mobileSelect.querySelector(".ms-panel"), this.wheelsContain = this.mobileSelect.querySelector(".ms-wheels"), this.ensureBtn = this.mobileSelect.querySelector(".ms-ensure"), this.cancelBtn = this.mobileSelect.querySelector(".ms-cancel"), this.grayLayer = this.mobileSelect.querySelector(".ms-gray-layer"), this.popUp = this.mobileSelect.querySelector(".ms-content"), this.optionHeight = this.mobileSelect.querySelector("li").offsetHeight, t.initValue && this.setTriggerInnerText(t.initValue), this.setStyle(t), this.isCascade = this.checkCascade(), this.isCascade && this.initCascade(), t.initValue && (this.initPosition = this.getPositionByInitValue()), this.initPosition.length < this.sliderList.length) {
60
- const e = this.sliderList.length - this.initPosition.length;
61
- for (let i = 0; i < e; i++)
62
- this.initPosition.push(0);
63
- }
64
- this.isCascade ? this.initPosition.forEach((e, i) => {
65
- this.checkRange(i, this.initPosition);
66
- }) : this.setCurDistance(this.initPosition), this.eventHandleMap = {
67
- cancelBtn: {
68
- event: "click",
69
- fn: () => {
70
- var e, i, s, n;
71
- this.hide(), (i = (e = this.config).cancel) == null || i.call(e, this.curIndexArr, this.curValue, this), (n = (s = this.config).onCancel) == null || n.call(s, this.curValue, this.curIndexArr, this);
72
- }
73
- },
74
- ensureBtn: {
75
- event: "click",
76
- fn: () => {
77
- var e, i, s, n;
78
- this.hide(), this.optionHeight || (this.optionHeight = this.mobileSelect.querySelector("li").offsetHeight), this.setTriggerInnerText(this.getConnectedString()), this.curIndexArr = this.getIndexArr(), this.curValue = this.getCurValue(), (i = (e = this.config).callback) == null || i.call(e, this.curIndexArr, this.curValue, this), (n = (s = this.config).onChange) == null || n.call(s, this.curValue, this.curIndexArr, this);
79
- }
80
- },
81
- trigger: {
82
- event: "click",
83
- fn: () => {
84
- this.show();
85
- }
86
- },
87
- grayLayer: {
88
- event: "click",
89
- fn: () => this.hide()
90
- },
91
- popUp: {
92
- event: "click",
93
- fn: (e) => e.stopPropagation()
94
- },
95
- panel: {
96
- event: ["touchstart", "touchend", "touchmove"],
97
- fn: (e) => this.touch(e)
98
- }
99
- }, w() && (this.eventHandleMap.panel.event = ["mousedown", "mousemove", "mouseup"]), this.registerEvents("add"), this.fixRowStyle(), t.autoFocus && this.show();
100
- }
101
- static checkDataType(t) {
102
- var e, i;
103
- return typeof ((i = (e = t[0]) == null ? void 0 : e.data) == null ? void 0 : i[0]) == "object";
104
- }
105
- static checkRequiredConfig(t) {
106
- const e = l.REQUIRED_PARAMS;
107
- if (!t) {
108
- const i = e.map((s) => `'${s}'`);
109
- return l.log("error", `missing required param ${i.join(" and ")}.`), !1;
110
- }
111
- for (let i = 0; i < e.length; i++) {
112
- const s = e[i];
113
- if (!t[s])
114
- return l.log("error", `missing required param '${s}'.`), !1;
115
- }
116
- return !0;
117
- }
118
- static log(t, e) {
119
- var i;
120
- (i = console[t]) == null || i.call(console, `[mobile-select]: ${e}`);
121
- }
122
- checkTriggerAvailable() {
123
- const { config: t } = this;
124
- return this.trigger = t.trigger instanceof HTMLElement ? t.trigger : document.querySelector(t.trigger), this.trigger ? !0 : (l.log("error", "trigger HTMLElement does not found on your document."), !1);
125
- }
126
- getPositionByInitValue() {
127
- var n;
128
- const { keyMap: t, connector: e, initValue: i } = this.config, s = (i == null ? void 0 : i.split(e)) || [];
129
- if (this.isJsonType) {
130
- let o = (n = this.wheelsData[0]) == null ? void 0 : n.data;
131
- return s.reduce((r, c) => {
132
- var u;
133
- const a = o == null ? void 0 : o.findIndex((d) => d[t.value] == c);
134
- return r.push(a < 0 ? 0 : a), o = (u = o[a]) == null ? void 0 : u[t.childs], r;
135
- }, []);
136
- }
137
- return s.reduce((o, r, c) => {
138
- var u, d;
139
- const a = (d = (u = this.wheelsData[c]) == null ? void 0 : u.data) == null ? void 0 : d.findIndex((f) => f == r);
140
- return o.push(a < 0 ? 0 : a), o;
141
- }, []);
142
- }
143
- getConnectedString() {
144
- let t = "";
145
- for (let e = 0; e < this.wheelList.length; e++)
146
- e == this.wheelList.length - 1 ? t += this.getInnerText(e) : t += this.getInnerText(e) + this.config.connector;
147
- return t;
148
- }
149
- setTriggerInnerText(t) {
150
- this.config.triggerDisplayValue && (this.trigger.textContent = t);
151
- }
152
- setValue(t) {
153
- if (!t || !t.length)
154
- return;
155
- if (this.isJsonType && typeof t[0] != "object" || !this.isJsonType && typeof t[0] == "object") {
156
- l.log("error", `The setValue() input format should be same with getValue(), like: ${JSON.stringify(this.getValue())}`);
157
- return;
158
- }
159
- const { keyMap: e } = this.config;
160
- t.forEach((i, s) => {
161
- var r;
162
- const n = this.isCascade ? this.displayJson[s] : (r = this.wheelsData[s]) == null ? void 0 : r.data, o = n == null ? void 0 : n.findIndex((c) => this.isJsonType ? i[e.id] == c[e.id] || i[e.value] == c[e.value] : i == c);
163
- this.locatePosition(s, o);
164
- }), this.setTriggerInnerText(this.getConnectedString());
165
- }
166
- setTitle(t) {
167
- this.mobileSelect.querySelector(".ms-title").innerHTML = t;
168
- }
169
- setStyle(t) {
170
- if (t.ensureBtnColor && (this.ensureBtn.style.color = t.ensureBtnColor), t.cancelBtnColor && (this.cancelBtn.style.color = t.cancelBtnColor), t.titleColor) {
171
- const e = this.mobileSelect.querySelector(".ms-title");
172
- e.style.color = t.titleColor;
173
- }
174
- if (t.textColor && (this.panel = this.mobileSelect.querySelector(".ms-panel"), this.panel.style.color = t.textColor), t.titleBgColor) {
175
- const e = this.mobileSelect.querySelector(".ms-btn-bar");
176
- e.style.backgroundColor = t.titleBgColor;
177
- }
178
- if (t.bgColor) {
179
- this.panel = this.mobileSelect.querySelector(".ms-panel");
180
- const e = this.mobileSelect.querySelector(".ms-shadow-mask");
181
- this.panel.style.backgroundColor = t.bgColor, e.style.background = "linear-gradient(to bottom, " + t.bgColor + ", rgba(255, 255, 255, 0), " + t.bgColor + ")";
182
- }
183
- if (typeof t.maskOpacity == "number") {
184
- const e = this.mobileSelect.querySelector(".ms-gray-layer");
185
- e.style.background = "rgba(0, 0, 0, " + t.maskOpacity + ")";
186
- }
187
- }
188
- show() {
189
- var t, e, i;
190
- this.mobileSelect.classList.add("ms-show"), (t = document.querySelector("body")) == null || t.classList.add("ms-show"), typeof this.config.onShow == "function" && ((i = (e = this.config).onShow) == null || i.call(e, this.curValue, this.curIndexArr, this));
191
- }
192
- hide() {
193
- var t, e, i;
194
- this.mobileSelect.classList.remove("ms-show"), (t = document.querySelector("body")) == null || t.classList.remove("ms-show"), typeof this.config.onHide == "function" && ((i = (e = this.config).onHide) == null || i.call(e, this.curValue, this.curIndexArr, this));
195
- }
196
- registerEvents(t) {
197
- for (const [e, i] of Object.entries(this.eventHandleMap))
198
- typeof i.event == "string" ? this[e][`${t}EventListener`](i.event, i.fn, { passive: !1 }) : i.event.forEach((s) => {
199
- this[e][`${t}EventListener`](s, i.fn, { passive: !1 });
200
- });
201
- }
202
- destroy() {
203
- var t, e;
204
- this.registerEvents("remove"), (e = (t = this.mobileSelect) == null ? void 0 : t.parentNode) == null || e.removeChild(this.mobileSelect);
205
- }
206
- getOptionsHtmlStr(t) {
207
- const { keyMap: e } = this.config;
208
- let i = "";
209
- if (this.isJsonType)
210
- for (let s = 0; s < t.length; s++) {
211
- const n = t[s][e.id], o = t[s][e.value];
212
- i += `<li data-id="${n}">${o}</li>`;
213
- }
214
- else
215
- for (let s = 0; s < t.length; s++)
216
- i += "<li>" + t[s] + "</li>";
217
- return i;
218
- }
219
- renderComponent(t) {
220
- this.mobileSelect = document.createElement("div"), this.mobileSelect.className = "ms-mobile-select", this.mobileSelect.innerHTML = `<div class="ms-gray-layer"></div>
221
- <div class="ms-content">
222
- <div class="ms-btn-bar">
223
- <div class="ms-fix-width">
224
- <div class="ms-cancel">${this.config.cancelBtnText}</div>
225
- <div class="ms-title">${this.config.title || ""}</div>
226
- <div class="ms-ensure">${this.config.ensureBtnText}</div>
227
- </div>
228
- </div>
229
- <div class="ms-panel">
230
- <div class="ms-fix-width">
231
- <div class="ms-wheels"></div>
232
- <div class="ms-select-line"></div>
233
- <div class="ms-shadow-mask"></div>
234
- </div>
235
- </div>`, document.body.appendChild(this.mobileSelect);
236
- let e = "";
237
- for (let i = 0; i < t.length; i++)
238
- e += `<div class="ms-wheel" data-index="${i}"><ul class="ms-select-container">`, e += this.getOptionsHtmlStr(t[i].data), e += "</ul></div>";
239
- this.mobileSelect.querySelector(".ms-wheels").innerHTML = e;
240
- }
241
- reRenderWheels() {
242
- const t = this.wheelList.length - this.displayJson.length;
243
- if (t > 0)
244
- for (let e = 0; e < t; e++)
245
- this.wheelsContain.removeChild(this.wheelList[this.wheelList.length - 1]);
246
- for (let e = 0; e < this.displayJson.length; e++)
247
- if (this.wheelList[e])
248
- this.sliderList[e].innerHTML = this.getOptionsHtmlStr(this.displayJson[e]);
249
- else {
250
- const i = document.createElement("div");
251
- i.className = "ms-wheel", i.innerHTML = `<ul class="ms-select-container">${this.getOptionsHtmlStr(this.displayJson[e])}</ul>`, i.setAttribute("data-index", e.toString()), this.wheelsContain.appendChild(i);
252
- }
253
- }
254
- checkCascade() {
255
- var e;
256
- const { keyMap: t } = this.config;
257
- if (this.isJsonType) {
258
- const i = this.wheelsData[0].data;
259
- for (let s = 0; s < i.length; s++)
260
- if (t.childs in i[s] && ((e = i[s][t.childs]) == null ? void 0 : e.length) > 0)
261
- return this.cascadeJsonData = this.wheelsData[0].data, !0;
262
- }
263
- return !1;
264
- }
265
- initCascade() {
266
- this.displayJson.push(this.cascadeJsonData), this.initPosition.length > 0 ? (this.initDeepCount = 0, this.initCheckArrDeep(this.cascadeJsonData[this.initPosition[0]])) : this.checkArrDeep(this.cascadeJsonData[0]), this.reRenderWheels();
267
- }
268
- initCheckArrDeep(t) {
269
- if (t) {
270
- const { keyMap: e } = this.config;
271
- if (e.childs in t && t[e.childs].length > 0) {
272
- this.displayJson.push(t[e.childs]), this.initDeepCount++;
273
- const i = t[e.childs][this.initPosition[this.initDeepCount]];
274
- i ? this.initCheckArrDeep(i) : this.checkArrDeep(t[e.childs][0]);
275
- }
276
- }
277
- }
278
- checkArrDeep(t) {
279
- if (!t)
280
- return;
281
- const { keyMap: e } = this.config;
282
- e.childs in t && t[e.childs].length > 0 && (this.displayJson.push(t[e.childs]), this.checkArrDeep(t[e.childs][0]));
283
- }
284
- checkRange(t, e) {
285
- var o;
286
- const i = this.displayJson.length - 1 - t, { keyMap: s } = this.config;
287
- for (let r = 0; r < i; r++)
288
- this.displayJson.pop();
289
- let n;
290
- for (let r = 0; r <= t; r++)
291
- n = r == 0 ? this.cascadeJsonData[e[0]] : (o = n == null ? void 0 : n[s.childs]) == null ? void 0 : o[e[r]];
292
- this.checkArrDeep(n), this.reRenderWheels(), this.fixRowStyle(), this.setCurDistance(this.resetPosition(t, e));
293
- }
294
- resetPosition(t, e) {
295
- const i = [...e];
296
- let s;
297
- if (this.sliderList.length > e.length) {
298
- s = this.sliderList.length - e.length;
299
- for (let n = 0; n < s; n++)
300
- i.push(0);
301
- } else if (this.sliderList.length < e.length) {
302
- s = e.length - this.sliderList.length;
303
- for (let n = 0; n < s; n++)
304
- i.pop();
305
- }
306
- for (let n = t + 1; n < i.length; n++)
307
- i[n] = 0;
308
- return i;
309
- }
310
- updateWheels(t) {
311
- if (this.isCascade) {
312
- if (this.cascadeJsonData = t, this.displayJson = [], this.initCascade(), this.initPosition.length < this.sliderList.length) {
313
- const e = this.sliderList.length - this.initPosition.length;
314
- for (let i = 0; i < e; i++)
315
- this.initPosition.push(0);
316
- }
317
- this.setCurDistance(this.initPosition), this.fixRowStyle();
318
- }
319
- }
320
- updateWheel(t, e) {
321
- if (this.isCascade) {
322
- l.log("error", "'updateWheel()' not support cascade json data, please use 'updateWheels()' instead to update the whole data source");
323
- return;
324
- }
325
- let i = "";
326
- i += this.getOptionsHtmlStr(e), this.wheelsData[t] = this.isJsonType ? { data: e } : e, this.sliderList[t].innerHTML = i;
327
- }
328
- fixRowStyle() {
329
- if (this.initColWidth.length && this.initColWidth.length === this.wheelList.length) {
330
- const e = this.initColWidth.reduce((i, s) => i + s, 0);
331
- this.initColWidth.forEach((i, s) => {
332
- this.wheelList[s].style.width = (i / e * 100).toFixed(2) + "%";
333
- });
334
- return;
335
- }
336
- const t = (100 / this.wheelList.length).toFixed(2);
337
- for (let e = 0; e < this.wheelList.length; e++)
338
- this.wheelList[e].style.width = t + "%";
339
- }
340
- getIndex(t) {
341
- return Math.round((2 * this.optionHeight - t) / this.optionHeight);
342
- }
343
- getIndexArr() {
344
- const t = [];
345
- for (let e = 0; e < this.curDistance.length; e++)
346
- t.push(this.getIndex(this.curDistance[e]));
347
- return t;
348
- }
349
- getCurValue() {
350
- const t = [], e = this.getIndexArr(), { keyMap: i } = this.config;
351
- if (this.isCascade)
352
- for (let s = 0; s < this.wheelList.length; s++) {
353
- const n = this.displayJson[s][e[s]];
354
- n && t.push({
355
- [i.id]: n[i.id],
356
- [i.value]: n[i.value]
357
- });
358
- }
359
- else if (this.isJsonType)
360
- for (let s = 0; s < this.curDistance.length; s++)
361
- t.push(this.wheelsData[s].data[this.getIndex(this.curDistance[s])]);
362
- else
363
- for (let s = 0; s < this.curDistance.length; s++)
364
- t.push(this.getInnerText(s));
365
- return t;
366
- }
367
- getValue() {
368
- return this.getCurValue();
369
- }
370
- calcDistance(t) {
371
- return 2 * this.optionHeight - t * this.optionHeight;
372
- }
373
- setCurDistance(t) {
374
- const e = [];
375
- for (let i = 0; i < this.sliderList.length; i++)
376
- e.push(this.calcDistance(t[i])), this.movePosition(this.sliderList[i], e[i]);
377
- this.curDistance = e;
378
- }
379
- fixPosition(t) {
380
- return -(this.getIndex(t) - 2) * this.optionHeight;
381
- }
382
- movePosition(t, e) {
383
- t.style.transform = "translate3d(0," + e + "px, 0)";
384
- }
385
- locatePosition(t, e) {
386
- t === void 0 || e === void 0 || e < 0 || (this.curDistance[t] = this.calcDistance(e), this.movePosition(this.sliderList[t], this.curDistance[t]), this.isCascade && this.checkRange(t, this.getIndexArr()));
387
- }
388
- updateCurDistance(t, e) {
389
- this.curDistance[e] = parseInt(t.style.transform.split(",")[1]);
390
- }
391
- getInnerText(t) {
392
- var s;
393
- const e = this.sliderList[t].getElementsByTagName("li").length;
394
- let i = this.getIndex(this.curDistance[t]);
395
- return i >= e ? i = e - 1 : i < 0 && (i = 0), ((s = this.sliderList[t].getElementsByTagName("li")[i]) == null ? void 0 : s.textContent) || "";
396
- }
397
- touch(t) {
398
- var o, r, c, a, u, d, f, v;
399
- const i = (t.composedPath && t.composedPath()).find((m) => {
400
- var p;
401
- return (p = m.classList) == null ? void 0 : p.contains("ms-wheel");
402
- });
403
- if (!i)
404
- return;
405
- const s = i.firstChild, n = parseInt(i.getAttribute("data-index") || "0");
406
- switch (t.type) {
407
- case "touchstart":
408
- case "mousedown":
409
- s.style.transition = "none 0s ease-out", this.startY = Math.floor(t instanceof TouchEvent ? t.touches[0].clientY : t.clientY), this.preMoveY = this.startY, t.type === "mousedown" && (this.enableClickStatus = !0);
410
- break;
411
- case "touchmove":
412
- case "mousemove":
413
- if (t.preventDefault(), t.type === "mousemove" && !this.enableClickStatus)
414
- break;
415
- this.moveY = Math.floor(t instanceof TouchEvent ? t.touches[0].clientY : t.clientY), this.offsetY = (this.moveY - this.preMoveY) * this.config.scrollSpeed, this.updateCurDistance(s, n), this.curDistance[n] = this.curDistance[n] + this.offsetY, this.movePosition(s, this.curDistance[n]), this.preMoveY = this.moveY;
416
- break;
417
- case "touchend":
418
- case "mouseup":
419
- if (s.style.transition = "transform 0.18s ease-out", this.moveEndY = Math.floor(t instanceof TouchEvent ? t.changedTouches[0].clientY : t.clientY), this.offsetSum = this.moveEndY - this.startY, this.oversizeBorder = -(s.getElementsByTagName("li").length - 3) * this.optionHeight, this.offsetSum == 0) {
420
- const m = Math.floor((window.innerHeight - this.moveEndY) / 40);
421
- if (m != 2) {
422
- const p = m - 2, C = this.curDistance[n] + p * this.optionHeight;
423
- C <= 2 * this.optionHeight && C >= this.oversizeBorder && (this.curDistance[n] = C, this.movePosition(s, this.curDistance[n]), (r = (o = this.config).transitionEnd) == null || r.call(o, this.getIndexArr(), this.getCurValue(), this), (a = (c = this.config).onTransitionEnd) == null || a.call(c, this.getCurValue(), this.getIndexArr(), this));
424
- }
425
- } else
426
- this.updateCurDistance(s, n), this.curDistance[n] = this.fixPosition(this.curDistance[n]), this.curDistance[n] > 2 * this.optionHeight ? this.curDistance[n] = 2 * this.optionHeight : this.curDistance[n] < this.oversizeBorder && (this.curDistance[n] = this.oversizeBorder), this.movePosition(s, this.curDistance[n]), (d = (u = this.config).transitionEnd) == null || d.call(u, this.getIndexArr(), this.getCurValue(), this), (v = (f = this.config).onTransitionEnd) == null || v.call(f, this.getCurValue(), this.getIndexArr(), this);
427
- t.type === "mouseup" && (this.enableClickStatus = !1), this.isCascade && this.checkRange(n, this.getIndexArr());
428
- break;
429
- }
430
- }
431
- };
432
- let y = l;
433
- h(y, "defaultConfig", {
434
- keyMap: { id: "id", value: "value", childs: "childs" },
435
- position: [],
436
- colWidth: [],
437
- title: "",
438
- connector: " ",
439
- ensureBtnText: "\u786E\u8BA4",
440
- cancelBtnText: "\u53D6\u6D88",
441
- triggerDisplayValue: !0,
442
- scrollSpeed: 1
443
- }), h(y, "REQUIRED_PARAMS", ["trigger", "wheels"]);
444
-
445
- const ptcMobileSelectCss = ".ms-mobile-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;opacity:0;visibility:hidden;-webkit-transition:opacity 0.4s, z-index 0.4s;transition:opacity 0.4s, z-index 0.4s;transform:translate(0, 0)}.ms-mobile-select *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.ms-mobile-select .ms-gray-layer{position:fixed;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.7);z-index:888;display:block}.ms-mobile-select .ms-content{width:100%;display:block;position:fixed;z-index:889;color:black;-webkit-transition:all 0.4s;transition:all 0.4s;bottom:-350px;left:0;background:white}.ms-mobile-select .ms-fix-width{width:90%;margin:0 auto;position:relative}.ms-mobile-select .ms-fix-width:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.ms-mobile-select .ms-btn-bar{border-bottom:1px solid #dcdcdc;font-size:15px;height:45px;position:relative;text-align:center;line-height:45px}.ms-mobile-select .ms-cancel,.ms-mobile-select .ms-ensure{height:45px;width:55px;cursor:pointer;position:absolute;top:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.ms-mobile-select .ms-cancel{left:0;color:#666}.ms-mobile-select .ms-ensure{right:0;color:#1e83d3}.ms-mobile-select .ms-title{font-size:15px;padding:0 15%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ms-mobile-select .ms-panel:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.ms-mobile-select .ms-wheels{width:100%;height:200px;overflow:hidden}.ms-mobile-select .ms-wheel{position:relative;z-index:0;float:left;width:50%;height:200px;overflow:hidden;-webkit-transition:width 0.3s ease;transition:width 0.3s ease}.ms-mobile-select .ms-select-container{display:block;text-align:center}.ms-mobile-select .ms-select-container li{font-size:15px;display:block;height:40px;line-height:40px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.ms-mobile-select .ms-select-line{height:40px;width:100%;position:absolute;top:80px;pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #dcdcdc;border-bottom:1px solid #dcdcdc}.ms-mobile-select .ms-shadow-mask{position:absolute;top:0;width:100%;height:200px;background:linear-gradient(to bottom, #fffffff5, #ffffffcc 25%, #ffffff00 49%, #ffffff00 51%, #ffffffcc 75%, #fffffff5);opacity:0.9;pointer-events:none}.ms-mobile-select.ms-show{opacity:1;z-index:10000;visibility:visible}.ms-mobile-select.ms-show .ms-content{bottom:0}.ms-default-trigger{min-height:1em;color:#888}body.ms-show{overflow-y:hidden}h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.mobile-select-wrapper{display:block;cursor:pointer}.mobile-select-wrapper div{display:inline;margin-right:var(--ptc-element-spacing-03);width:100%;font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);color:var(--color-white);height:18px}.mobile-select-wrapper:focus-visible{padding:2px;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.mobileSelect .content{top:auto}.mobileSelect .content .btnBar{border-color:var(--color-gray-10)}.mobileSelect .content .btnBar .cancel,.mobileSelect .content .btnBar .ensure,.mobileSelect .content .btnBar .title{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}.mobileSelect .content .btnBar .ensure,.mobileSelect .content .btnBar .cancel{transform:translateY(12.5px);width:125px}.mobileSelect .content .panel .wheel .selectContainer li{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);height:45px}ptc-responsive-wrapper.xsmall .mobile-select-wrapper,ptc-responsive-wrapper.small .mobile-select-wrapper{display:block}ptc-responsive-wrapper.medium .mobile-select-wrapper,ptc-responsive-wrapper.large .mobile-select-wrapper,ptc-responsive-wrapper.xlarge .mobile-select-wrapper,ptc-responsive-wrapper.xxlarge .mobile-select-wrapper,ptc-responsive-wrapper.large2k .mobile-select-wrapper,ptc-responsive-wrapper.large4k .mobile-select-wrapper{display:none}.ms-mobile-select.ms-show .ms-cancel,.ms-mobile-select.ms-show .ms-ensure{width:auto}";
446
-
447
- class MobileSelectedItem {
448
- }
449
- const PtcMobileSelect = class {
450
- constructor(hostRef) {
451
- index.registerInstance(this, hostRef);
452
- this.selectionChanged = index.createEvent(this, "selectionChanged", 7);
453
- this.triggerName = undefined;
454
- this.selectedText = undefined;
455
- this.wheelData = undefined;
456
- this.selectedId = '';
457
- this.ensureBtnText = 'Confirm';
458
- this.cancelBtnText = 'Cancel';
459
- this.listTitle = undefined;
460
- this.notFoundPopupProceedButton = undefined;
461
- }
462
- componentWillLoad() {
463
- this.notFoundPopupProceedButton = document.querySelector("#translation-popup-button");
464
- if (this.notFoundPopupProceedButton) {
465
- this.notFoundPopupProceedButton.addEventListener('click', () => {
466
- let footerNav = document.querySelector("footer-nav");
467
- if (footerNav) {
468
- let currentLang = footerNav.getAttribute('ms-selected-text');
469
- let langText = document.querySelector("footer-nav #lang-ddl");
470
- if (langText && currentLang) {
471
- langText.innerHTML = currentLang;
472
- }
473
- }
474
- });
475
- }
476
- }
477
- wrapperClick(e) {
478
- if (e) {
479
- e.preventDefault();
480
- let elem = e.target;
481
- if (elem.id != this.triggerName) {
482
- let div = e.currentTarget;
483
- let trigger = div.querySelector(`#${this.triggerName}`);
484
- if (trigger) {
485
- trigger.click();
486
- }
487
- }
488
- }
489
- }
490
- render() {
491
- return (index.h("div", { class: "mobile-select-wrapper", "aria-selectlanguage": "Select Language", tabindex: "0", onKeyPress: (e) => { this.wrapperClick(e); } }, index.h("div", { onClick: (e) => { this.wrapperClick(e); } }, index.h("span", { id: this.triggerName }, this.selectedText), index.h("icon-asset", { type: "ptc", size: "x-small", name: "lang-drop-arrow", color: "white", "is-mobile-select": "true", "injected-style": "svg.ismobileselect{transform:translateX(10px); width: 13px !important;height: 10px !important;}" }))));
492
- }
493
- componentDidRender() {
494
- let that = this; //input current lang
495
- let storeIndex = 0;
496
- let mySelect = new y({
497
- trigger: `#${this.triggerName}`,
498
- title: `${this.listTitle ? this.listTitle : ''}`,
499
- wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
500
- position: [0],
501
- ensureBtnText: this.ensureBtnText,
502
- cancelBtnText: this.cancelBtnText,
503
- ensureBtnColor: 'var(--color-gray-12)',
504
- cancelBtnColor: 'var(--color-gray-12)',
505
- titleColor: 'var(--color-gray-12)',
506
- onShow: function (_1, _2, context) {
507
- if (that.selectedId) {
508
- /*let liEle = context.mobileSelect.querySelectorAll('[data-id]'); // document.querySelectorAll('.selectContainer li');
509
- liEle.forEach((currentValue, currentIndex) => {
510
- if (currentValue.getAttribute('data-id') == currentId) {
511
- storeIndex = currentIndex;
512
- return;
513
- }
514
- });*/
515
- try {
516
- const item = that.getMobileSelectedItem(context);
517
- context.locatePosition(0, item.index);
518
- storeIndex = item.index;
519
- //console.log("storeIndex: "+ storeIndex)
520
- }
521
- catch (error) {
522
- console.log(error);
523
- // debugger
524
- }
525
- //e.locatePosition(0, storeIndex);
526
- }
527
- else {
528
- return;
529
- }
530
- },
531
- callback: function (indexArr, data, context) {
532
- this.selectionChanged.emit({
533
- sender: context,
534
- index: indexArr && indexArr.length > 0 ? indexArr[0] : -1,
535
- data: data && data.length > 0 ? data[0] : undefined
536
- });
537
- if (data && data[0] && data[0].id != '#') {
538
- window.location.href = data[0].id;
539
- }
540
- else {
541
- if (!indexArr || isNaN(indexArr[0])) {
542
- const selectedItem = that.getMobileSelectedItem(context);
543
- context.locatePosition(0, selectedItem.index);
544
- context.setValue(this.wheelData[selectedItem.index]);
545
- context.setTriggerInnerText(selectedItem.value);
546
- context.show();
547
- }
548
- //console.log('href: ' + data[0].id + '; indexArr: ' + indexArr);
549
- }
550
- }.bind(this),
551
- });
552
- mySelect.locatePosition(0, storeIndex);
553
- }
554
- getMobileSelectedItem(context) {
555
- let result = new MobileSelectedItem;
556
- result.id = this.selectedId;
557
- let liEle = context.mobileSelect.querySelectorAll('[data-id]');
558
- liEle.forEach((currentValue, currentIndex) => {
559
- if (currentValue.getAttribute('data-id') == result.id) {
560
- result.index = currentIndex;
561
- result.value = currentValue.textContent;
562
- return;
563
- }
564
- });
565
- return result;
566
- }
567
- };
568
- PtcMobileSelect.style = ptcMobileSelectCss;
569
-
570
- exports.ptc_mobile_select = PtcMobileSelect;