@jumpgroup/jump-design-system 0.3.52 → 0.3.54

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 (167) hide show
  1. package/dist/cjs/{index-97b3526b.js → index-e91b2b41.js} +26 -4
  2. package/dist/cjs/index-e91b2b41.js.map +1 -0
  3. package/dist/cjs/jump-accordion-group.cjs.entry.js +1 -1
  4. package/dist/cjs/jump-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/jump-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/jump-button_2.cjs.entry.js +1 -1
  7. package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js +1 -1
  8. package/dist/cjs/jump-card-ecommerce.cjs.entry.js +2 -2
  9. package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -1
  10. package/dist/cjs/jump-card.cjs.entry.js +1 -1
  11. package/dist/cjs/jump-design-system.cjs.js +2 -2
  12. package/dist/cjs/jump-filter-checkbox.cjs.entry.js +1 -1
  13. package/dist/cjs/jump-filter.cjs.entry.js +1 -1
  14. package/dist/cjs/jump-filtergroup.cjs.entry.js +1 -1
  15. package/dist/cjs/jump-navbar.cjs.entry.js +1 -1
  16. package/dist/cjs/jump-pagination-table.cjs.entry.js +1 -1
  17. package/dist/cjs/jump-pagination.cjs.entry.js +1 -1
  18. package/dist/cjs/jump-quantity.cjs.entry.js +1 -1
  19. package/dist/cjs/jump-search-bar-dropdown-item.cjs.entry.js +46 -0
  20. package/dist/cjs/jump-search-bar-dropdown-item.cjs.entry.js.map +1 -0
  21. package/dist/cjs/jump-search-bar-mobile.cjs.entry.js +130 -0
  22. package/dist/cjs/jump-search-bar-mobile.cjs.entry.js.map +1 -0
  23. package/dist/cjs/jump-search-bar.cjs.entry.js +139 -21
  24. package/dist/cjs/jump-search-bar.cjs.entry.js.map +1 -1
  25. package/dist/cjs/jump-tab-item.cjs.entry.js +4 -4
  26. package/dist/cjs/jump-tab-item.cjs.entry.js.map +1 -1
  27. package/dist/cjs/jump-tab-panel.cjs.entry.js +2 -2
  28. package/dist/cjs/jump-tab.cjs.entry.js +2 -2
  29. package/dist/cjs/loader.cjs.js +2 -2
  30. package/dist/collection/collection-manifest.json +2 -0
  31. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +4 -0
  32. package/dist/collection/components/jump-search-bar/jump-search-bar.css +173 -47
  33. package/dist/collection/components/jump-search-bar/jump-search-bar.js +424 -27
  34. package/dist/collection/components/jump-search-bar/jump-search-bar.js.map +1 -1
  35. package/dist/collection/components/jump-search-bar/jump-search-bar.stories.js +320 -49
  36. package/dist/collection/components/jump-search-bar/jump-search-bar.stories.js.map +1 -1
  37. package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.css +3 -0
  38. package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.js +122 -0
  39. package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.js.map +1 -0
  40. package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.stories.js +13 -0
  41. package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.stories.js.map +1 -0
  42. package/dist/collection/components/jump-search-bar-dropdown-item/test/jump-search-bar-dropdown-item.e2e.js +10 -0
  43. package/dist/collection/components/jump-search-bar-dropdown-item/test/jump-search-bar-dropdown-item.e2e.js.map +1 -0
  44. package/dist/collection/components/jump-search-bar-dropdown-item/test/jump-search-bar-dropdown-item.spec.js +18 -0
  45. package/dist/collection/components/jump-search-bar-dropdown-item/test/jump-search-bar-dropdown-item.spec.js.map +1 -0
  46. package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.css +91 -0
  47. package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.js +414 -0
  48. package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.js.map +1 -0
  49. package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.stories.js +192 -0
  50. package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.stories.js.map +1 -0
  51. package/dist/collection/components/jump-search-bar-mobile/test/jump-search-bar-mobile.e2e.js +10 -0
  52. package/dist/collection/components/jump-search-bar-mobile/test/jump-search-bar-mobile.e2e.js.map +1 -0
  53. package/dist/collection/components/jump-search-bar-mobile/test/jump-search-bar-mobile.spec.js +18 -0
  54. package/dist/collection/components/jump-search-bar-mobile/test/jump-search-bar-mobile.spec.js.map +1 -0
  55. package/dist/collection/components/jump-tab/jump-tab.js +1 -1
  56. package/dist/collection/components/jump-tab-item/jump-tab-item.css +11 -6
  57. package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
  58. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
  59. package/dist/components/jump-card-ecommerce.js +1 -1
  60. package/dist/components/jump-card-ecommerce.js.map +1 -1
  61. package/dist/components/jump-search-bar-dropdown-item.d.ts +11 -0
  62. package/dist/components/jump-search-bar-dropdown-item.js +65 -0
  63. package/dist/components/jump-search-bar-dropdown-item.js.map +1 -0
  64. package/dist/components/jump-search-bar-mobile.d.ts +11 -0
  65. package/dist/components/jump-search-bar-mobile.js +175 -0
  66. package/dist/components/jump-search-bar-mobile.js.map +1 -0
  67. package/dist/components/jump-search-bar.js +159 -22
  68. package/dist/components/jump-search-bar.js.map +1 -1
  69. package/dist/components/jump-tab-item.js +3 -3
  70. package/dist/components/jump-tab-item.js.map +1 -1
  71. package/dist/components/jump-tab-panel.js +1 -1
  72. package/dist/components/jump-tab.js +1 -1
  73. package/dist/esm/{index-14b73bd6.js → index-9a1da0f0.js} +26 -4
  74. package/dist/esm/index-9a1da0f0.js.map +1 -0
  75. package/dist/esm/jump-accordion-group.entry.js +1 -1
  76. package/dist/esm/jump-accordion.entry.js +1 -1
  77. package/dist/esm/jump-badge.entry.js +1 -1
  78. package/dist/esm/jump-button_2.entry.js +1 -1
  79. package/dist/esm/jump-card-ecommerce-option.entry.js +1 -1
  80. package/dist/esm/jump-card-ecommerce.entry.js +2 -2
  81. package/dist/esm/jump-card-ecommerce.entry.js.map +1 -1
  82. package/dist/esm/jump-card.entry.js +1 -1
  83. package/dist/esm/jump-design-system.js +3 -3
  84. package/dist/esm/jump-filter-checkbox.entry.js +1 -1
  85. package/dist/esm/jump-filter.entry.js +1 -1
  86. package/dist/esm/jump-filtergroup.entry.js +1 -1
  87. package/dist/esm/jump-navbar.entry.js +1 -1
  88. package/dist/esm/jump-pagination-table.entry.js +1 -1
  89. package/dist/esm/jump-pagination.entry.js +1 -1
  90. package/dist/esm/jump-quantity.entry.js +1 -1
  91. package/dist/esm/jump-search-bar-dropdown-item.entry.js +42 -0
  92. package/dist/esm/jump-search-bar-dropdown-item.entry.js.map +1 -0
  93. package/dist/esm/jump-search-bar-mobile.entry.js +126 -0
  94. package/dist/esm/jump-search-bar-mobile.entry.js.map +1 -0
  95. package/dist/esm/jump-search-bar.entry.js +139 -21
  96. package/dist/esm/jump-search-bar.entry.js.map +1 -1
  97. package/dist/esm/jump-tab-item.entry.js +4 -4
  98. package/dist/esm/jump-tab-item.entry.js.map +1 -1
  99. package/dist/esm/jump-tab-panel.entry.js +2 -2
  100. package/dist/esm/jump-tab.entry.js +2 -2
  101. package/dist/esm/loader.js +3 -3
  102. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  103. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  104. package/dist/jump-design-system/p-00b5b7b1.entry.js +2 -0
  105. package/dist/jump-design-system/p-00b5b7b1.entry.js.map +1 -0
  106. package/dist/jump-design-system/{p-18df1585.entry.js → p-02e863db.entry.js} +2 -2
  107. package/dist/jump-design-system/p-07633158.entry.js +2 -0
  108. package/dist/jump-design-system/p-07633158.entry.js.map +1 -0
  109. package/dist/jump-design-system/p-1aa5fb8a.entry.js +2 -0
  110. package/dist/jump-design-system/p-1aa5fb8a.entry.js.map +1 -0
  111. package/dist/jump-design-system/p-21aa0095.js +3 -0
  112. package/dist/jump-design-system/p-21aa0095.js.map +1 -0
  113. package/dist/jump-design-system/p-2e2bd8a9.entry.js +2 -0
  114. package/dist/jump-design-system/{p-6f1c7238.entry.js → p-3f6d50d5.entry.js} +2 -2
  115. package/dist/jump-design-system/{p-8bdb9702.entry.js → p-466e0ade.entry.js} +2 -2
  116. package/dist/jump-design-system/{p-396d2541.entry.js → p-506950ea.entry.js} +2 -2
  117. package/dist/jump-design-system/{p-4b284def.entry.js → p-6acb16c6.entry.js} +3 -3
  118. package/dist/jump-design-system/{p-7b6c9e01.entry.js → p-6b1ab8c3.entry.js} +2 -2
  119. package/dist/jump-design-system/{p-53129684.entry.js → p-6dc529fc.entry.js} +2 -2
  120. package/dist/jump-design-system/{p-30c9d7c7.entry.js → p-6e7c80a3.entry.js} +2 -2
  121. package/dist/jump-design-system/p-8f581228.entry.js +2 -0
  122. package/dist/jump-design-system/{p-8873623c.entry.js → p-a1c25113.entry.js} +2 -2
  123. package/dist/jump-design-system/{p-1c882126.entry.js → p-a826c477.entry.js} +2 -2
  124. package/dist/jump-design-system/{p-e0e82d36.entry.js → p-b03c5b24.entry.js} +2 -2
  125. package/dist/jump-design-system/{p-174d297f.entry.js → p-bdafe87d.entry.js} +2 -2
  126. package/dist/jump-design-system/p-c77d216c.entry.js +2 -0
  127. package/dist/jump-design-system/p-c77d216c.entry.js.map +1 -0
  128. package/dist/jump-design-system/p-f7c323d2.entry.js +2 -0
  129. package/dist/jump-design-system/p-f7c323d2.entry.js.map +1 -0
  130. package/dist/jump-design-system/{p-f371718a.entry.js → p-feb825e0.entry.js} +2 -2
  131. package/dist/jump-design-system-elements.json +97 -3
  132. package/dist/types/components/jump-search-bar/jump-search-bar.d.ts +51 -11
  133. package/dist/types/components/jump-search-bar/jump-search-bar.stories.d.ts +137 -10
  134. package/dist/types/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.d.ts +10 -0
  135. package/dist/types/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.stories.d.ts +7 -0
  136. package/dist/types/components/jump-search-bar-mobile/jump-search-bar-mobile.d.ts +46 -0
  137. package/dist/types/components/jump-search-bar-mobile/jump-search-bar-mobile.stories.d.ts +131 -0
  138. package/dist/types/components.d.ts +135 -10
  139. package/package.json +1 -1
  140. package/readme.md +5 -4
  141. package/dist/cjs/index-97b3526b.js.map +0 -1
  142. package/dist/esm/index-14b73bd6.js.map +0 -1
  143. package/dist/jump-design-system/p-134e548b.entry.js +0 -2
  144. package/dist/jump-design-system/p-134e548b.entry.js.map +0 -1
  145. package/dist/jump-design-system/p-1c5db8d3.js +0 -3
  146. package/dist/jump-design-system/p-1c5db8d3.js.map +0 -1
  147. package/dist/jump-design-system/p-3dd1f9a0.entry.js +0 -2
  148. package/dist/jump-design-system/p-5f12bbbb.entry.js +0 -2
  149. package/dist/jump-design-system/p-6363b6ee.entry.js +0 -2
  150. package/dist/jump-design-system/p-6363b6ee.entry.js.map +0 -1
  151. package/dist/jump-design-system/p-6e26f3ef.entry.js +0 -2
  152. package/dist/jump-design-system/p-6e26f3ef.entry.js.map +0 -1
  153. /package/dist/jump-design-system/{p-18df1585.entry.js.map → p-02e863db.entry.js.map} +0 -0
  154. /package/dist/jump-design-system/{p-3dd1f9a0.entry.js.map → p-2e2bd8a9.entry.js.map} +0 -0
  155. /package/dist/jump-design-system/{p-6f1c7238.entry.js.map → p-3f6d50d5.entry.js.map} +0 -0
  156. /package/dist/jump-design-system/{p-8bdb9702.entry.js.map → p-466e0ade.entry.js.map} +0 -0
  157. /package/dist/jump-design-system/{p-396d2541.entry.js.map → p-506950ea.entry.js.map} +0 -0
  158. /package/dist/jump-design-system/{p-4b284def.entry.js.map → p-6acb16c6.entry.js.map} +0 -0
  159. /package/dist/jump-design-system/{p-7b6c9e01.entry.js.map → p-6b1ab8c3.entry.js.map} +0 -0
  160. /package/dist/jump-design-system/{p-53129684.entry.js.map → p-6dc529fc.entry.js.map} +0 -0
  161. /package/dist/jump-design-system/{p-30c9d7c7.entry.js.map → p-6e7c80a3.entry.js.map} +0 -0
  162. /package/dist/jump-design-system/{p-5f12bbbb.entry.js.map → p-8f581228.entry.js.map} +0 -0
  163. /package/dist/jump-design-system/{p-8873623c.entry.js.map → p-a1c25113.entry.js.map} +0 -0
  164. /package/dist/jump-design-system/{p-1c882126.entry.js.map → p-a826c477.entry.js.map} +0 -0
  165. /package/dist/jump-design-system/{p-e0e82d36.entry.js.map → p-b03c5b24.entry.js.map} +0 -0
  166. /package/dist/jump-design-system/{p-174d297f.entry.js.map → p-bdafe87d.entry.js.map} +0 -0
  167. /package/dist/jump-design-system/{p-f371718a.entry.js.map → p-feb825e0.entry.js.map} +0 -0
@@ -0,0 +1,13 @@
1
+ import { generateAttributesFromArgs, formatHtml } from "../../utils/utils";
2
+ export default {
3
+ title: 'Components/SearchBar/DropdownItem',
4
+ tags: ['autodocs'],
5
+ argTypes: {}
6
+ };
7
+ const Template = (args) => {
8
+ const attributes = generateAttributesFromArgs(args);
9
+ return formatHtml(`<jump-search-bar ${attributes}></jump-search-bar>`);
10
+ };
11
+ export const SearchBarDropdownItem = Template.bind({});
12
+ SearchBarDropdownItem.args = {};
13
+ //# sourceMappingURL=jump-search-bar-dropdown-item.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-search-bar-dropdown-item.stories.js","sourceRoot":"","sources":["../../../src/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE1E,eAAe;IACX,KAAK,EAAE,mCAAmC;IAC1C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE,EAAE;CACf,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC,oBAAoB,UAAU,qBAAqB,CAAC,CAAC;AAC3E,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,qBAAqB,CAAC,IAAI,GAAG,EAC5B,CAAC","sourcesContent":["import { generateAttributesFromArgs, formatHtml} from '../../utils/utils';\n\nexport default {\n title: 'Components/SearchBar/DropdownItem',\n tags: ['autodocs'],\n argTypes: {}\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return formatHtml(`<jump-search-bar ${attributes}></jump-search-bar>`);\n}\n\nexport const SearchBarDropdownItem = Template.bind({});\nSearchBarDropdownItem.args = {\n};"]}
@@ -0,0 +1,10 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('jump-search-bar-dropdown-item', () => {
3
+ it('renders', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent('<jump-search-bar-dropdown-item></jump-search-bar-dropdown-item>');
6
+ const element = await page.find('jump-search-bar-dropdown-item');
7
+ expect(element).toHaveClass('hydrated');
8
+ });
9
+ });
10
+ //# sourceMappingURL=jump-search-bar-dropdown-item.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-search-bar-dropdown-item.e2e.js","sourceRoot":"","sources":["../../../../src/components/jump-search-bar-dropdown-item/test/jump-search-bar-dropdown-item.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,iEAAiE,CAAC,CAAC;QAEzF,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;QACjE,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('jump-search-bar-dropdown-item', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<jump-search-bar-dropdown-item></jump-search-bar-dropdown-item>');\n\n const element = await page.find('jump-search-bar-dropdown-item');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,18 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { JumpSearchBarDropdownItem } from "../jump-search-bar-dropdown-item";
3
+ describe('jump-search-bar-dropdown-item', () => {
4
+ it('renders', async () => {
5
+ const page = await newSpecPage({
6
+ components: [JumpSearchBarDropdownItem],
7
+ html: `<jump-search-bar-dropdown-item></jump-search-bar-dropdown-item>`,
8
+ });
9
+ expect(page.root).toEqualHtml(`
10
+ <jump-search-bar-dropdown-item>
11
+ <mock:shadow-root>
12
+ <slot></slot>
13
+ </mock:shadow-root>
14
+ </jump-search-bar-dropdown-item>
15
+ `);
16
+ });
17
+ });
18
+ //# sourceMappingURL=jump-search-bar-dropdown-item.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-search-bar-dropdown-item.spec.js","sourceRoot":"","sources":["../../../../src/components/jump-search-bar-dropdown-item/test/jump-search-bar-dropdown-item.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,yBAAyB,CAAC;YACvC,IAAI,EAAE,iEAAiE;SACxE,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { JumpSearchBarDropdownItem } from '../jump-search-bar-dropdown-item';\n\ndescribe('jump-search-bar-dropdown-item', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [JumpSearchBarDropdownItem],\n html: `<jump-search-bar-dropdown-item></jump-search-bar-dropdown-item>`,\n });\n expect(page.root).toEqualHtml(`\n <jump-search-bar-dropdown-item>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </jump-search-bar-dropdown-item>\n `);\n });\n});\n"]}
@@ -0,0 +1,91 @@
1
+ :host {
2
+ display: block;
3
+ position: relative;
4
+ --jump-search-bar-mobile-focus-color: var(--secondary-standard, #5E79BA);
5
+ --jump-search-bar-mobile-background-color: var(--gray-ultralight, #FFFFFF);
6
+ --jump-search-bar-mobile-border-color: var(--neutral-grey-secondary, #707070);
7
+ font-family: var(--ff-primary);
8
+ }
9
+ :host .DropdownWrapper {
10
+ background-color: var(--jump-search-bar-mobile-background-color);
11
+ padding: 16px;
12
+ position: fixed;
13
+ top: 0;
14
+ left: 0;
15
+ height: 100vh;
16
+ z-index: 1000;
17
+ /* Stile parte interna del dropdown*/
18
+ }
19
+ :host .DropdownWrapper .closeButton {
20
+ cursor: pointer;
21
+ }
22
+ :host .DropdownWrapper.open {
23
+ display: block;
24
+ }
25
+ :host .DropdownWrapper:not(.open) {
26
+ display: none;
27
+ }
28
+ :host .DropdownWrapper .InputWrapper {
29
+ background-color: white;
30
+ width: 100%;
31
+ display: flex;
32
+ gap: 12px;
33
+ border-bottom: 1px solid var(--jump-search-bar-mobile-border-color);
34
+ padding-bottom: 4px;
35
+ }
36
+ :host .DropdownWrapper .InputWrapper.focused {
37
+ border-color: var(--jump-search-bar-mobile-focus-color) !important;
38
+ }
39
+ :host .DropdownWrapper .InputWrapper.focused jump-icon {
40
+ color: var(--jump-search-bar-mobile-focus-color) !important;
41
+ }
42
+ :host .DropdownWrapper .InputWrapper.focused input {
43
+ outline: none !important;
44
+ }
45
+ :host .DropdownWrapper input {
46
+ width: 100%;
47
+ border: none;
48
+ }
49
+ :host .DropdownWrapper .Results {
50
+ margin-top: 12px;
51
+ }
52
+ :host .DropdownWrapper .Results__Recents .title {
53
+ color: #707070;
54
+ font-size: 14px;
55
+ line-height: 20px;
56
+ padding: 8px 0;
57
+ font-weight: 700;
58
+ display: flex;
59
+ }
60
+ :host .DropdownWrapper .Results__Results .totalRes {
61
+ display: flex;
62
+ justify-content: space-between;
63
+ }
64
+ :host .DropdownWrapper .Results .ResWrapper {
65
+ display: flex;
66
+ flex-direction: column;
67
+ }
68
+ :host .DropdownWrapper .Results .ResWrapper div {
69
+ padding: 8px 0;
70
+ color: #707070;
71
+ font-size: 14px;
72
+ display: flex;
73
+ gap: 12px;
74
+ align-items: center;
75
+ }
76
+ :host .DropdownWrapper .Results .ResWrapper div img {
77
+ width: 40px;
78
+ height: 48px;
79
+ object-fit: cover;
80
+ border-radius: 3px;
81
+ }
82
+ :host .DropdownWrapper .Results .ResWrapper div:hover {
83
+ cursor: pointer;
84
+ }
85
+ :host .DropdownWrapper .Results .ResWrapper .helperText {
86
+ color: #CBCBCB;
87
+ }
88
+ :host .DropdownWrapper .Results .ResWrapper .helperText svg {
89
+ width: 25px;
90
+ height: 25px;
91
+ }
@@ -0,0 +1,414 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class JumpSearchBarMobile {
3
+ constructor() {
4
+ // Gestisce l'evento focus sull'input
5
+ this.handleFocus = () => {
6
+ const searchBarContainer = this.jumpSearchBar.closest('.InputWrapper');
7
+ if (searchBarContainer) {
8
+ searchBarContainer.classList.add('focused');
9
+ }
10
+ };
11
+ // Gestisce l'evento blur sull'input
12
+ this.handleBlur = () => {
13
+ const searchBarContainer = this.jumpSearchBar.closest('.InputWrapper');
14
+ if (searchBarContainer) {
15
+ searchBarContainer.classList.remove('focused');
16
+ }
17
+ };
18
+ this.doSearch = () => {
19
+ if (this.jumpSearchBar) {
20
+ this.searchValue = this.jumpSearchBar.value;
21
+ // Iniziare la ricerca solamente se ci sono almeno tre caratteri
22
+ if (this.searchValue.length >= 3) {
23
+ this.resType = 'results';
24
+ this.innerResults = undefined;
25
+ this.search.emit({ search: this.searchValue });
26
+ }
27
+ }
28
+ };
29
+ this.isOpen = false;
30
+ this.innerResults = [];
31
+ this.totalResults = 0;
32
+ this.resType = 'recents';
33
+ this.searchValue = undefined;
34
+ this.identifier = 'search-bar-mobile';
35
+ this.placeholder = 'Cerca...';
36
+ this.recents = [];
37
+ this.recentsTitle = 'Recenti';
38
+ this.debounceTime = 500;
39
+ this.loadingText = 'Sto caricando...';
40
+ this.noResultText = 'Nessun risultato corrispondente';
41
+ this.results = [];
42
+ this.resultsText = 'risultati';
43
+ this.showAllResText = 'Mostra tutti i risultati';
44
+ }
45
+ searchValueChanged(newValue) {
46
+ if (newValue === '') {
47
+ // Create a new array reference to trigger re-render
48
+ this.innerResults = [...this.recents];
49
+ this.results = [];
50
+ }
51
+ }
52
+ /* ---------------------- @EVENTS ------------------------- */
53
+ /* ---------------------- @LIFECYCLE ------------------------- */
54
+ /* -------------------- @LISTEN ------------------------------- */
55
+ addOption(e) {
56
+ let props = e.detail; // es {code: 'sku1', imageUrl: 'https://google.com/'}
57
+ // Aggiungi l'elemento solo a `recents`
58
+ this.recents = [...this.recents, Object.assign({}, props)];
59
+ // Aggiorna `innerResults` basandoti solo su `recents`
60
+ this.innerResults = [...this.recents];
61
+ }
62
+ /* -------------------- @METHOD ------------------------------- */
63
+ /** Imposta i risultati della ricerca all'interno della dropdown */
64
+ async setResults(results, tot) {
65
+ this.results = results;
66
+ this.innerResults = results;
67
+ this.totalResults = tot;
68
+ }
69
+ /* -------------------- LOCAL METHODS ------------------------- */
70
+ openDropdown() {
71
+ console.log('openDropdown');
72
+ this.isOpen = true;
73
+ }
74
+ closeDropdown() {
75
+ this.isOpen = false;
76
+ }
77
+ /** Emette l'evento quando l'utente clicca sul pulsante (se presente) o nel pulsante del dropdown per vedere tutti i risultati */
78
+ btnOrShowOtherClicked() {
79
+ this.showFullSearch.emit({ search: this.searchValue });
80
+ }
81
+ /** Emette l'evento di click su un risultato, mandandone tutti i dati */
82
+ handleResClicked(item) {
83
+ this.resultClicked.emit({ clicked: item });
84
+ }
85
+ debounce(fn, delay = this.debounceTime) {
86
+ let timeoutId;
87
+ return (...args) => {
88
+ if (timeoutId) {
89
+ clearTimeout(timeoutId);
90
+ }
91
+ timeoutId = setTimeout(() => {
92
+ fn.apply(null, args);
93
+ }, delay);
94
+ };
95
+ }
96
+ ;
97
+ /* --------------------- RENDER ------------------------------- */
98
+ render() {
99
+ return (h(Host, { key: 'f0535a70395bacabc372999896fc410c948bbed4', class: "JumpSearchBarMobile", ref: (el) => (this.componentRef = el) }, h("jump-icon", { key: '34431a69c6c68f48b5f92b03f5a876f485d66e34', name: "magnifying-glass", category: "light", onClick: () => this.openDropdown() }), h("div", { key: '89575c7a7a1c0a601a589ac451242e591d907a43', class: "DropdownWrapper " + (this.isOpen ? 'open' : '') }, h("div", { key: '633c8543dc2eaf36b7fc61857d7d63aadf852cd8', class: "InputWrapper" }, h("jump-icon", { key: '3c85be9683007c77faf9fe705c382b753dc8d6fb', class: "closeButton", category: "light", name: "arrow-left", onClick: () => this.closeDropdown() }), h("input", { key: '29f98929f8ed596072f1fe31d5820e9bde0a5604', placeholder: this.placeholder, type: "search", id: this.identifier, class: "search-input", ref: (el) => { this.jumpSearchBar = el; }, onInput: this.debounce(this.doSearch), onFocus: this.handleFocus, onBlur: this.handleBlur }), h("jump-icon", { key: '0e577fbdc3cfcc3d1628360487a828437459e01a', name: "magnifying-glass", category: "light" })), h("div", { key: 'da670ec6f527cc0015b42eea74acc355d081e260', class: "Results" }, (this.resType == 'recents') &&
100
+ h("div", { key: 'bb8eed320957070598e1fb57b3db5a7aa0cea4bd', class: "Results__Recents" }, this.recents.length != 0 && h("span", { key: '748a65cfbb955af507acc30a86afa2366b31d99a', class: "title" }, this.recentsTitle), h("div", { key: 'e3fd0b306f42a56a85d1efc4898a4ead272ce15d', class: "ResWrapper" }, this.innerResults.length > 0 && this.innerResults.map((item) => (h("div", { onClick: () => this.handleResClicked(item) }, h("jump-icon", { name: "magnifying-glass", category: "light" }), item['value']))))), this.resType == 'results' &&
101
+ h("div", { key: '29f82834ad14a34547f9f856f045c7cccc9431e0', class: "Results__Results" }, h("div", { key: '1c005fe5f1d9a88c151886eda65f372c52f4710f', class: "ResWrapper" }, this.innerResults === undefined ?
102
+ h("div", { class: "helperText" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid", width: "252", height: "252" }, h("g", null, h("g", { transform: "rotate(0 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.9s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(36 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.8s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(72 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.7s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(108 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.6s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(144 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.5s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(180 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.4s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(216 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.3s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(252 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.2s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(288 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.1s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(324 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "0s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", null))), this.loadingText)
103
+ :
104
+ (this.innerResults.length > 0 ?
105
+ this.innerResults.map((item) => (h("div", { onClick: () => this.handleResClicked(item), key: item['id'] }, item['img'] && h("img", { src: item['img'], alt: "result" }), item['value'])))
106
+ :
107
+ h("div", { class: "helperText" }, this.noResultText)), (this.innerResults && this.innerResults.length > 0) &&
108
+ h("div", { key: '084038e82063eb93fea6ea10d0a405fb7f1e04a8', class: "totalRes" }, h("jump-button", { key: 'f09ae73865768a64e75fcc2b887c4631e3271697', variant: "secondary", size: "small", text: true, onClick: () => this.btnOrShowOtherClicked(), target: "_blank" }, " ", this.showAllResText, " "), this.totalResults && h("div", { key: '66c370a16342ebfe68e3032299bf3da32ed53acd' }, this.totalResults, " ", this.resultsText))))))));
109
+ }
110
+ static get is() { return "jump-search-bar-mobile"; }
111
+ static get encapsulation() { return "shadow"; }
112
+ static get originalStyleUrls() {
113
+ return {
114
+ "$": ["jump-search-bar-mobile.scss"]
115
+ };
116
+ }
117
+ static get styleUrls() {
118
+ return {
119
+ "$": ["jump-search-bar-mobile.css"]
120
+ };
121
+ }
122
+ static get properties() {
123
+ return {
124
+ "identifier": {
125
+ "type": "string",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "string",
129
+ "resolved": "string",
130
+ "references": {}
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "attribute": "identifier",
139
+ "reflect": false,
140
+ "defaultValue": "'search-bar-mobile'"
141
+ },
142
+ "placeholder": {
143
+ "type": "string",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "string",
147
+ "resolved": "string",
148
+ "references": {}
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": ""
155
+ },
156
+ "attribute": "placeholder",
157
+ "reflect": false,
158
+ "defaultValue": "'Cerca...'"
159
+ },
160
+ "recents": {
161
+ "type": "unknown",
162
+ "mutable": false,
163
+ "complexType": {
164
+ "original": "Array<object>",
165
+ "resolved": "object[]",
166
+ "references": {
167
+ "Array": {
168
+ "location": "global",
169
+ "id": "global::Array"
170
+ }
171
+ }
172
+ },
173
+ "required": false,
174
+ "optional": false,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": ""
178
+ },
179
+ "defaultValue": "[]"
180
+ },
181
+ "recentsTitle": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string",
186
+ "resolved": "string",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": ""
194
+ },
195
+ "attribute": "recents-title",
196
+ "reflect": false,
197
+ "defaultValue": "'Recenti'"
198
+ },
199
+ "debounceTime": {
200
+ "type": "number",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "number",
204
+ "resolved": "number",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ },
213
+ "attribute": "debounce-time",
214
+ "reflect": false,
215
+ "defaultValue": "500"
216
+ },
217
+ "loadingText": {
218
+ "type": "string",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "string",
222
+ "resolved": "string",
223
+ "references": {}
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": ""
230
+ },
231
+ "attribute": "loading-text",
232
+ "reflect": false,
233
+ "defaultValue": "'Sto caricando...'"
234
+ },
235
+ "noResultText": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "string",
240
+ "resolved": "string",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": ""
248
+ },
249
+ "attribute": "no-result-text",
250
+ "reflect": false,
251
+ "defaultValue": "'Nessun risultato corrispondente'"
252
+ },
253
+ "results": {
254
+ "type": "unknown",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "Array<object>",
258
+ "resolved": "object[]",
259
+ "references": {
260
+ "Array": {
261
+ "location": "global",
262
+ "id": "global::Array"
263
+ }
264
+ }
265
+ },
266
+ "required": false,
267
+ "optional": false,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": ""
271
+ },
272
+ "defaultValue": "[]"
273
+ },
274
+ "resultsText": {
275
+ "type": "string",
276
+ "mutable": false,
277
+ "complexType": {
278
+ "original": "string",
279
+ "resolved": "string",
280
+ "references": {}
281
+ },
282
+ "required": false,
283
+ "optional": false,
284
+ "docs": {
285
+ "tags": [],
286
+ "text": ""
287
+ },
288
+ "attribute": "results-text",
289
+ "reflect": false,
290
+ "defaultValue": "'risultati'"
291
+ },
292
+ "showAllResText": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "string",
297
+ "resolved": "string",
298
+ "references": {}
299
+ },
300
+ "required": false,
301
+ "optional": false,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": ""
305
+ },
306
+ "attribute": "show-all-res-text",
307
+ "reflect": false,
308
+ "defaultValue": "'Mostra tutti i risultati'"
309
+ }
310
+ };
311
+ }
312
+ static get states() {
313
+ return {
314
+ "isOpen": {},
315
+ "innerResults": {},
316
+ "totalResults": {},
317
+ "resType": {},
318
+ "searchValue": {}
319
+ };
320
+ }
321
+ static get events() {
322
+ return [{
323
+ "method": "resultClicked",
324
+ "name": "jump-search-bar-mobile-res-clicked",
325
+ "bubbles": true,
326
+ "cancelable": true,
327
+ "composed": true,
328
+ "docs": {
329
+ "tags": [],
330
+ "text": ""
331
+ },
332
+ "complexType": {
333
+ "original": "any",
334
+ "resolved": "any",
335
+ "references": {}
336
+ }
337
+ }, {
338
+ "method": "search",
339
+ "name": "jump-search-bar-mobile",
340
+ "bubbles": true,
341
+ "cancelable": true,
342
+ "composed": true,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": "Evento emesso quando l'utente effettua una ricerca \nEmette un oggetto contenenente il valore della ricerca alla chiave 'search'"
346
+ },
347
+ "complexType": {
348
+ "original": "any",
349
+ "resolved": "any",
350
+ "references": {}
351
+ }
352
+ }, {
353
+ "method": "showFullSearch",
354
+ "name": "jump-search-bar-mobile-show-all",
355
+ "bubbles": true,
356
+ "cancelable": true,
357
+ "composed": true,
358
+ "docs": {
359
+ "tags": [],
360
+ "text": "Evento emesso quando l'utente clicca sul pulsante (se presente) o nel pulsante del dropdown per vedere tutti i risultati \nEmette un oggetto contenenente il valore della ricerca alla chiave 'search'"
361
+ },
362
+ "complexType": {
363
+ "original": "any",
364
+ "resolved": "any",
365
+ "references": {}
366
+ }
367
+ }];
368
+ }
369
+ static get methods() {
370
+ return {
371
+ "setResults": {
372
+ "complexType": {
373
+ "signature": "(results: any, tot?: number) => Promise<void>",
374
+ "parameters": [{
375
+ "name": "results",
376
+ "type": "any",
377
+ "docs": ""
378
+ }, {
379
+ "name": "tot",
380
+ "type": "number",
381
+ "docs": ""
382
+ }],
383
+ "references": {
384
+ "Promise": {
385
+ "location": "global",
386
+ "id": "global::Promise"
387
+ }
388
+ },
389
+ "return": "Promise<void>"
390
+ },
391
+ "docs": {
392
+ "text": "Imposta i risultati della ricerca all'interno della dropdown",
393
+ "tags": []
394
+ }
395
+ }
396
+ };
397
+ }
398
+ static get watchers() {
399
+ return [{
400
+ "propName": "searchValue",
401
+ "methodName": "searchValueChanged"
402
+ }];
403
+ }
404
+ static get listeners() {
405
+ return [{
406
+ "name": "jump-search-bar-dropdown-item-connected",
407
+ "method": "addOption",
408
+ "target": undefined,
409
+ "capture": false,
410
+ "passive": false
411
+ }];
412
+ }
413
+ }
414
+ //# sourceMappingURL=jump-search-bar-mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jump-search-bar-mobile.js","sourceRoot":"","sources":["../../../src/components/jump-search-bar-mobile/jump-search-bar-mobile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO5G,MAAM,OAAO,mBAAmB;;QA+F9B,qCAAqC;QACrC,gBAAW,GAAG,GAAG,EAAE;YACjB,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;YACvE,IAAI,kBAAkB,EAAE,CAAC;gBACvB,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,C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AAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC;gDAC7D,IAAI,CAAC,KAAK,CAAC,IAAI,WAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,EAAC,QAAQ,GAAG;gDACrD,IAAI,CAAC,OAAO,CAAC,CACV,CACP,CAAC;4CACF,CAAC;gDACD,WAAK,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,YAAY,CAAO,CAClD;gCAEF,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;oCAClD,4DAAK,KAAK,EAAC,UAAU;wCACnB,oEAAa,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,QAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAC,QAAQ;;4CAAG,IAAI,CAAC,cAAc;gDAAgB;wCACpJ,IAAI,CAAC,YAAY,IAAI;4CAAM,IAAI,CAAC,YAAY;;4CAAG,IAAI,CAAC,WAAW,CAAO,CACnE,CAEJ,CACF,CAGJ,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Watch, Method, Event, EventEmitter, State, Listen, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'jump-search-bar-mobile',\n styleUrl: 'jump-search-bar-mobile.scss',\n shadow: true,\n})\nexport class JumpSearchBarMobile {\n\n /* ---------------------- @OWN PROPERTIES ------------------------- */\n jumpSearchBar: HTMLInputElement;\n componentRef: HTMLElement;\n\n /* ---------------------- @STATE ------------------------- */\n @State() isOpen: boolean = false;\n @State() innerResults: Array<object> = [];\n @State() totalResults: number = 0;\n @State() resType: string = 'recents';\n \n @State() searchValue: string = undefined;\n\n @Watch('searchValue')\n searchValueChanged(newValue: string) {\n if (newValue === '') {\n // Create a new array reference to trigger re-render\n this.innerResults = [...this.recents];\n this.results = [];\n }\n }\n\n /* ---------------------- @PROPERTIES ------------------------- */\n @Prop() identifier: string = 'search-bar-mobile'; // Identificatore della searchbar\n @Prop() placeholder: string = 'Cerca...'; //Il testo del placeholder dell\\'input della searchbar\n @Prop() recents: Array<object> = []; // Serve per il dropdown quando si vedono le ricerche recenti\n @Prop() recentsTitle: string = 'Recenti'; // Serve per il titolo del dropwdown quando si vedono le ricerche recenti\n @Prop() debounceTime: number = 500; // 'Il tempo di attesa per l\\'invio della ricerca in caso di ricerca automatica. In millisecondi.\n @Prop() loadingText: string = 'Sto caricando...'; // Il testo mostrato durante il caricamento dei risultati.\n @Prop() noResultText: string = 'Nessun risultato corrispondente'; // Il testo da mostrare in caso nessun risultato sia stato recuperato.\n @Prop() results: Array<object> = []; // Serve per il dropdown quando si vedono i risultati della ricerca\n @Prop() resultsText: string = 'risultati'; // Il testo mostrato accanto al numero di risultati totali.\n @Prop() showAllResText: string = 'Mostra tutti i risultati'; // La label da mostrare per il pulsante che mostra tutti i risultati.\n\n /* ---------------------- @EVENTS ------------------------- */\n\n /* ---------------------- @LIFECYCLE ------------------------- */\n\n /* -------------------- @LISTEN ------------------------------- */\n @Listen(\"jump-search-bar-dropdown-item-connected\")\n addOption(e) {\n let props = e.detail; // es {code: 'sku1', imageUrl: 'https://google.com/'}\n\n // Aggiungi l'elemento solo a `recents`\n this.recents = [...this.recents, { ...props }];\n\n // Aggiorna `innerResults` basandoti solo su `recents`\n this.innerResults = [...this.recents];\n }\n\n\n /* \n * Evento da ascoltare per recuperare il dato cliccato\n * Emette un oggetto contenente tutti i dati relativi al risultato cliccato.\n */\n @Event({ eventName: 'jump-search-bar-mobile-res-clicked' }) resultClicked: EventEmitter; \n\n /**\n * Evento emesso quando l'utente effettua una ricerca \n * Emette un oggetto contenenente il valore della ricerca alla chiave 'search'\n * */\n @Event({ eventName: 'jump-search-bar-mobile' }) search: EventEmitter;\n\n /** \n * Evento emesso quando l'utente clicca sul pulsante (se presente) o nel pulsante del dropdown per vedere tutti i risultati \n * Emette un oggetto contenenente il valore della ricerca alla chiave 'search'\n*/\n @Event({ eventName: 'jump-search-bar-mobile-show-all' }) showFullSearch: EventEmitter;\n\n /* -------------------- @METHOD ------------------------------- */\n\n /** Imposta i risultati della ricerca all'interno della dropdown */\n @Method()\n async setResults(results, tot?: number) {\n this.results = results;\n this.innerResults = results;\n this.totalResults = tot;\n }\n\n /* -------------------- LOCAL METHODS ------------------------- */\n openDropdown(){\n console.log('openDropdown');\n this.isOpen = true;\n } \n\n closeDropdown(){\n this.isOpen = false;\n }\n\n /** Emette l'evento quando l'utente clicca sul pulsante (se presente) o nel pulsante del dropdown per vedere tutti i risultati */\n btnOrShowOtherClicked() {\n this.showFullSearch.emit({ search: this.searchValue });\n }\n\n // Gestisce l'evento focus sull'input\n handleFocus = () => {\n const searchBarContainer = this.jumpSearchBar.closest('.InputWrapper');\n if (searchBarContainer) {\n searchBarContainer.classList.add('focused');\n }\n };\n\n // Gestisce l'evento blur sull'input\n handleBlur = () => {\n const searchBarContainer = this.jumpSearchBar.closest('.InputWrapper');\n if (searchBarContainer) {\n searchBarContainer.classList.remove('focused');\n }\n };\n\n /** Emette l'evento di click su un risultato, mandandone tutti i dati */\n handleResClicked(item) {\n this.resultClicked.emit({ clicked: item });\n } \n\n doSearch = () => {\n if (this.jumpSearchBar) {\n this.searchValue = this.jumpSearchBar.value;\n\n // Iniziare la ricerca solamente se ci sono almeno tre caratteri \n if (this.searchValue.length >= 3) {\n this.resType = 'results';\n\n this.innerResults = undefined;\n\n this.search.emit({ search: this.searchValue });\n\n \n }\n }\n };\n\n debounce(fn, delay = this.debounceTime) {\n let timeoutId;\n\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n fn.apply(null, args);\n }, delay);\n };\n };\n\n /* --------------------- RENDER ------------------------------- */\n\n render() {\n return (\n <Host class=\"JumpSearchBarMobile\" ref={(el) => (this.componentRef = el as HTMLElement)}>\n <jump-icon\n name=\"magnifying-glass\"\n category=\"light\"\n onClick={() => this.openDropdown()}\n ></jump-icon>\n <div class={\"DropdownWrapper \" + (this.isOpen ? 'open' : '')}>\n <div class=\"InputWrapper\">\n <jump-icon class=\"closeButton\" category=\"light\" name=\"arrow-left\" onClick={() => this.closeDropdown()}></jump-icon>\n <input\n placeholder={this.placeholder}\n type=\"search\"\n id={this.identifier}\n class=\"search-input\"\n ref={(el) => { this.jumpSearchBar = el as HTMLInputElement }}\n onInput={this.debounce(this.doSearch)}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n />\n <jump-icon name=\"magnifying-glass\" category=\"light\"></jump-icon>\n </div>\n <div class=\"Results\">\n {(this.resType == 'recents') &&\n <div class=\"Results__Recents\">\n {this.recents.length != 0 && <span class=\"title\">{this.recentsTitle}</span>}\n <div class=\"ResWrapper\">\n {this.innerResults.length > 0 && this.innerResults.map((item) => (\n <div onClick={() => this.handleResClicked(item)}>\n <jump-icon name=\"magnifying-glass\" category=\"light\"></jump-icon>\n {item['value']}\n </div>\n ))}\n </div>\n </div>\n }\n {this.resType == 'results' &&\n <div class=\"Results__Results\">\n <div class=\"ResWrapper\">\n {this.innerResults === undefined ?\n <div class=\"helperText\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\" width=\"252\" height=\"252\" ><g><g transform=\"rotate(0 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.9s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(36 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.8s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(72 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.7s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(108 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.6s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(144 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.5s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(180 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.4s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(216 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.3s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(252 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.2s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(288 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"-0.1s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g transform=\"rotate(324 50 50)\">\n <rect fill=\"#707070\" height=\"11\" width=\"4\" ry=\"1.87\" rx=\"1.87\" y=\"27.5\" x=\"48\">\n <animate repeatCount=\"indefinite\" begin=\"0s\" dur=\"1s\" keyTimes=\"0;1\" values=\"1;0\" attributeName=\"opacity\"></animate>\n </rect>\n </g><g></g></g></svg>{this.loadingText}</div>\n :\n (this.innerResults.length > 0 ?\n this.innerResults.map((item) => (\n <div onClick={() => this.handleResClicked(item)} key={item['id']}>\n {item['img'] && <img src={item['img']} alt=\"result\" />}\n {item['value']}\n </div>\n ))\n :\n <div class=\"helperText\">{this.noResultText}</div>\n )\n }\n {(this.innerResults && this.innerResults.length > 0) &&\n <div class=\"totalRes\">\n <jump-button variant=\"secondary\" size=\"small\" text onClick={() => this.btnOrShowOtherClicked()} target=\"_blank\"> {this.showAllResText} </jump-button>\n {this.totalResults && <div>{this.totalResults} {this.resultsText}</div>}\n </div>\n }\n </div>\n </div>\n }\n\n </div>\n </div>\n </Host>\n );\n }\n\n}\n"]}