@jumpgroup/jump-design-system 0.2.6 → 0.3.0
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.
- package/dist/cjs/{index-41aaa52a.js → index-418c607f.js} +146 -2
- package/dist/{jump-design-system/p-20ceb40c.js.map → cjs/index-418c607f.js.map} +1 -1
- package/dist/cjs/jump-accordion.cjs.entry.js +22 -0
- package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-badge_2.cjs.entry.js +88 -0
- package/dist/cjs/jump-badge_2.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-button.cjs.entry.js +3 -3
- package/dist/cjs/jump-button.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +116 -0
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-card.cjs.entry.js +4 -4
- package/dist/cjs/jump-card.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-design-system.cjs.js +2 -2
- package/dist/cjs/jump-filter.cjs.entry.js +59 -0
- package/dist/cjs/jump-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-filtergroup.cjs.entry.js +119 -0
- package/dist/cjs/jump-filtergroup.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-icon.cjs.entry.js +540 -2363
- package/dist/cjs/jump-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination-table.cjs.entry.js +12 -5
- package/dist/cjs/jump-pagination-table.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination.cjs.entry.js +5 -4
- package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-tab-item.cjs.entry.js +40 -0
- package/dist/cjs/jump-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-tab-panel.cjs.entry.js +24 -0
- package/dist/cjs/jump-tab-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-tab.cjs.entry.js +72 -9
- package/dist/cjs/jump-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/jump-accordion/jump-accordion.css +3 -0
- package/dist/collection/components/jump-accordion/jump-accordion.js +19 -0
- package/dist/collection/components/jump-accordion/jump-accordion.js.map +1 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.e2e.js +10 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.e2e.js.map +1 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.spec.js +18 -0
- package/dist/collection/components/jump-accordion/test/jump-accordion.spec.js.map +1 -0
- package/dist/collection/components/jump-badge/jump-badge.css +5 -10
- package/dist/collection/components/jump-badge/jump-badge.js +2 -1
- package/dist/collection/components/jump-badge/jump-badge.js.map +1 -1
- package/dist/collection/components/jump-badge/jump-badge.stories.js +18 -8
- package/dist/collection/components/jump-badge/jump-badge.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-anchor.stories.js +38 -29
- package/dist/collection/components/jump-button/jump-button-anchor.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-dimension.stories.js +4 -9
- package/dist/collection/components/jump-button/jump-button-dimension.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-filled.stories.js +15 -24
- package/dist/collection/components/jump-button/jump-button-filled.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button-only-icon.stories.js +43 -73
- package/dist/collection/components/jump-button/jump-button-only-icon.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button.css +2 -4
- package/dist/collection/components/jump-button/jump-button.js +1 -1
- package/dist/collection/components/jump-button/jump-button.stories.js +199 -0
- package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -0
- package/dist/collection/components/jump-card/jump-card.css +2 -51
- package/dist/collection/components/jump-card/jump-card.js +2 -2
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +179 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +627 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js +211 -0
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.e2e.js +10 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.e2e.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.spec.js +18 -0
- package/dist/collection/components/jump-card-ecommerce/test/jump-card-ecommerce.spec.js.map +1 -0
- package/dist/collection/components/jump-filter/jump-filter.css +8 -0
- package/dist/collection/components/jump-filter/jump-filter.js +212 -0
- package/dist/collection/components/jump-filter/jump-filter.js.map +1 -0
- package/dist/collection/components/jump-filter/jump-filter.stories.js +122 -0
- package/dist/collection/components/jump-filter/jump-filter.stories.js.map +1 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.css +17 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +328 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js.map +1 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js +49 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-custom.stories.js +67 -0
- package/dist/collection/components/jump-icon/jump-icon-custom.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-brands.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-brands.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-duotone.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-duotone.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-light.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-light.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-regular.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-regular.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-light.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-light.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-regular.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-regular.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-solid.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-solid.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-thin.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-sharp-thin.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-solid.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-solid.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-thin.stories.js +73 -0
- package/dist/collection/components/jump-icon/jump-icon-fa-thin.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon-lucide.stories.js +67 -0
- package/dist/collection/components/jump-icon/jump-icon-lucide.stories.js.map +1 -0
- package/dist/collection/components/jump-icon/jump-icon.css +63 -3
- package/dist/collection/components/jump-icon/jump-icon.js +147 -9
- package/dist/collection/components/jump-icon/jump-icon.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.js +7 -6
- package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js +6 -4
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -1
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +16 -9
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js.map +1 -1
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js +25 -7
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js.map +1 -1
- package/dist/collection/components/jump-quantity/jump-quantity.css +50 -0
- package/dist/collection/components/jump-quantity/jump-quantity.js +219 -0
- package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -0
- package/dist/collection/components/jump-quantity/jump-quantity.stories.js +103 -0
- package/dist/collection/components/jump-quantity/jump-quantity.stories.js.map +1 -0
- package/dist/collection/components/jump-tab/jump-tab.css +12 -0
- package/dist/collection/components/jump-tab/jump-tab.js +107 -21
- package/dist/collection/components/jump-tab/jump-tab.js.map +1 -1
- package/dist/collection/components/jump-tab/jump-tab.stories.js +129 -0
- package/dist/collection/components/jump-tab/jump-tab.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js +56 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js +56 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js +41 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js +42 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js.map +1 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item.css +109 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item.js +172 -0
- package/dist/collection/components/jump-tab-item/jump-tab-item.js.map +1 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.e2e.js +10 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.e2e.js.map +1 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.spec.js +18 -0
- package/dist/collection/components/jump-tab-item/test/jump-tab-item.spec.js.map +1 -0
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.css +11 -0
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +63 -0
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js.map +1 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.e2e.js +10 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.e2e.js.map +1 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.spec.js +18 -0
- package/dist/collection/components/jump-tab-panel/test/jump-tab-panel.spec.js.map +1 -0
- package/dist/collection/utils/utils.js +41 -8
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/jump-accordion.d.ts +11 -0
- package/dist/components/jump-accordion.js +36 -0
- package/dist/components/jump-accordion.js.map +1 -0
- package/dist/components/jump-badge.js +1 -33
- package/dist/components/jump-badge.js.map +1 -1
- package/dist/components/jump-badge2.js +38 -0
- package/dist/components/jump-badge2.js.map +1 -0
- package/dist/components/jump-button.js +1 -65
- package/dist/components/jump-button.js.map +1 -1
- package/dist/components/jump-button2.js +69 -0
- package/dist/components/jump-button2.js.map +1 -0
- package/dist/components/jump-card-ecommerce.d.ts +11 -0
- package/dist/components/jump-card-ecommerce.js +180 -0
- package/dist/components/jump-card-ecommerce.js.map +1 -0
- package/dist/components/jump-card.js +3 -3
- package/dist/components/jump-card.js.map +1 -1
- package/dist/components/jump-filter.d.ts +11 -0
- package/dist/components/jump-filter.js +96 -0
- package/dist/components/jump-filter.js.map +1 -0
- package/dist/components/jump-filtergroup.d.ts +11 -0
- package/dist/components/jump-filtergroup.js +161 -0
- package/dist/components/jump-filtergroup.js.map +1 -0
- package/dist/components/jump-icon2.js +549 -2366
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-pagination-table.js +11 -4
- package/dist/components/jump-pagination-table.js.map +1 -1
- package/dist/components/jump-pagination.js +4 -3
- package/dist/components/jump-pagination.js.map +1 -1
- package/dist/components/jump-quantity.d.ts +11 -0
- package/dist/components/jump-quantity.js +8 -0
- package/dist/components/jump-quantity.js.map +1 -0
- package/dist/components/jump-quantity2.js +94 -0
- package/dist/components/jump-quantity2.js.map +1 -0
- package/dist/components/jump-tab-item.d.ts +11 -0
- package/dist/components/jump-tab-item.js +67 -0
- package/dist/components/jump-tab-item.js.map +1 -0
- package/dist/components/jump-tab-panel.d.ts +11 -0
- package/dist/components/jump-tab-panel.js +41 -0
- package/dist/components/jump-tab-panel.js.map +1 -0
- package/dist/components/jump-tab.js +75 -12
- package/dist/components/jump-tab.js.map +1 -1
- package/dist/esm/{index-192aeaf1.js → index-056a0a66.js} +146 -3
- package/dist/esm/index-056a0a66.js.map +1 -0
- package/dist/esm/jump-accordion.entry.js +18 -0
- package/dist/esm/jump-accordion.entry.js.map +1 -0
- package/dist/esm/jump-badge_2.entry.js +83 -0
- package/dist/esm/jump-badge_2.entry.js.map +1 -0
- package/dist/esm/jump-button.entry.js +3 -3
- package/dist/esm/jump-button.entry.js.map +1 -1
- package/dist/esm/jump-card-ecommerce.entry.js +112 -0
- package/dist/esm/jump-card-ecommerce.entry.js.map +1 -0
- package/dist/esm/jump-card.entry.js +4 -4
- package/dist/esm/jump-card.entry.js.map +1 -1
- package/dist/esm/jump-design-system.js +3 -3
- package/dist/esm/jump-filter.entry.js +55 -0
- package/dist/esm/jump-filter.entry.js.map +1 -0
- package/dist/esm/jump-filtergroup.entry.js +115 -0
- package/dist/esm/jump-filtergroup.entry.js.map +1 -0
- package/dist/esm/jump-icon.entry.js +540 -2363
- package/dist/esm/jump-icon.entry.js.map +1 -1
- package/dist/esm/jump-pagination-table.entry.js +12 -5
- package/dist/esm/jump-pagination-table.entry.js.map +1 -1
- package/dist/esm/jump-pagination.entry.js +5 -4
- package/dist/esm/jump-pagination.entry.js.map +1 -1
- package/dist/esm/jump-tab-item.entry.js +36 -0
- package/dist/esm/jump-tab-item.entry.js.map +1 -0
- package/dist/esm/jump-tab-panel.entry.js +20 -0
- package/dist/esm/jump-tab-panel.entry.js.map +1 -0
- package/dist/esm/jump-tab.entry.js +72 -9
- package/dist/esm/jump-tab.entry.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-0dc744ce.entry.js +2 -0
- package/dist/jump-design-system/p-0dc744ce.entry.js.map +1 -0
- package/dist/jump-design-system/p-357cf73d.entry.js +66 -0
- package/dist/jump-design-system/p-357cf73d.entry.js.map +1 -0
- package/dist/jump-design-system/p-58602fcb.entry.js +2 -0
- package/dist/jump-design-system/p-58602fcb.entry.js.map +1 -0
- package/dist/jump-design-system/p-58bed455.entry.js +2 -0
- package/dist/jump-design-system/p-58bed455.entry.js.map +1 -0
- package/dist/jump-design-system/p-647ec30b.entry.js +2 -0
- package/dist/jump-design-system/p-647ec30b.entry.js.map +1 -0
- package/dist/jump-design-system/p-83e6ab6e.entry.js +2 -0
- package/dist/jump-design-system/p-83e6ab6e.entry.js.map +1 -0
- package/dist/jump-design-system/p-8ec76454.entry.js +2 -0
- package/dist/jump-design-system/p-8ec76454.entry.js.map +1 -0
- package/dist/jump-design-system/p-91794ae6.js +3 -0
- package/dist/jump-design-system/p-91794ae6.js.map +1 -0
- package/dist/jump-design-system/p-afe0cca0.entry.js +2 -0
- package/dist/jump-design-system/p-afe0cca0.entry.js.map +1 -0
- package/dist/jump-design-system/p-b2ca2e96.entry.js +2 -0
- package/dist/jump-design-system/p-b2ca2e96.entry.js.map +1 -0
- package/dist/jump-design-system/p-d58e0952.entry.js +2 -0
- package/dist/jump-design-system/p-d58e0952.entry.js.map +1 -0
- package/dist/jump-design-system/p-e2318686.entry.js +2 -0
- package/dist/jump-design-system/p-e2318686.entry.js.map +1 -0
- package/dist/jump-design-system/p-ee61c223.entry.js +2 -0
- package/dist/jump-design-system/p-ee61c223.entry.js.map +1 -0
- package/dist/jump-design-system/p-f842ff46.entry.js +2 -0
- package/dist/jump-design-system/p-f842ff46.entry.js.map +1 -0
- package/dist/jump-design-system-elements.json +370 -9
- package/dist/types/components/jump-accordion/jump-accordion.d.ts +3 -0
- package/dist/types/components/jump-badge/jump-badge.stories.d.ts +1 -0
- package/dist/types/components/jump-button/jump-button-anchor.stories.d.ts +18 -4
- package/dist/types/components/jump-button/jump-button-dimension.stories.d.ts +0 -5
- package/dist/types/components/jump-button/jump-button-only-icon.stories.d.ts +4 -11
- package/dist/types/components/jump-button/jump-button.stories.d.ts +98 -0
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.d.ts +66 -0
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.stories.d.ts +123 -0
- package/dist/types/components/jump-filter/jump-filter.d.ts +22 -0
- package/dist/types/components/jump-filter/jump-filter.stories.d.ts +40 -0
- package/dist/types/components/jump-filtergroup/jump-filtergroup.d.ts +24 -0
- package/dist/types/components/jump-filtergroup/jump-filtergroup.stories.d.ts +43 -0
- package/dist/types/components/jump-icon/jump-icon-custom.stories.d.ts +40 -0
- package/dist/types/components/{jump-button/jump-button-outline.stories.d.ts → jump-icon/jump-icon-fa-brands.stories.d.ts} +19 -30
- package/dist/types/components/jump-icon/jump-icon-fa-duotone.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-light.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-regular.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-light.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-regular.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-solid.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-sharp-thin.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-solid.stories.d.ts +45 -0
- package/dist/types/components/jump-icon/jump-icon-fa-thin.stories.d.ts +45 -0
- package/dist/types/components/{jump-button/jump-button-text.stories.d.ts → jump-icon/jump-icon-lucide.stories.d.ts} +16 -16
- package/dist/types/components/jump-icon/jump-icon.d.ts +32 -3
- package/dist/types/components/jump-pagination/jump-pagination.d.ts +9 -0
- package/dist/types/components/jump-pagination-table/jump-pagination-table.d.ts +18 -2
- package/dist/types/components/jump-pagination-table/jump-pagination-table.stories.d.ts +5 -1
- package/dist/types/components/jump-quantity/jump-quantity.d.ts +20 -0
- package/dist/types/components/jump-quantity/jump-quantity.stories.d.ts +41 -0
- package/dist/types/components/jump-tab/jump-tab.d.ts +11 -3
- package/dist/types/components/jump-tab/jump-tab.stories.d.ts +27 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-boxed.stories.d.ts +40 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-inline.stories.d.ts +40 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-rounded.stories.d.ts +28 -0
- package/dist/types/components/jump-tab-item/jump-tab-item-sheet.stories.d.ts +28 -0
- package/dist/types/components/jump-tab-item/jump-tab-item.d.ts +29 -0
- package/dist/types/components/jump-tab-panel/jump-tab-panel.d.ts +5 -0
- package/dist/types/components.d.ts +559 -6
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +3 -2
- package/dist/cjs/index-41aaa52a.js.map +0 -1
- package/dist/cjs/jump-badge.cjs.entry.js +0 -24
- package/dist/cjs/jump-badge.cjs.entry.js.map +0 -1
- package/dist/collection/components/jump-button/jump-button-outline.stories.js +0 -111
- package/dist/collection/components/jump-button/jump-button-outline.stories.js.map +0 -1
- package/dist/collection/components/jump-button/jump-button-text.stories.js +0 -83
- package/dist/collection/components/jump-button/jump-button-text.stories.js.map +0 -1
- package/dist/collection/components/jump-icon/jump-icon.stories.js +0 -25
- package/dist/collection/components/jump-icon/jump-icon.stories.js.map +0 -1
- package/dist/collection/components/jump-tab/jump-tab-inline.stories.js +0 -28
- package/dist/collection/components/jump-tab/jump-tab-inline.stories.js.map +0 -1
- package/dist/esm/index-192aeaf1.js.map +0 -1
- package/dist/esm/jump-badge.entry.js +0 -20
- package/dist/esm/jump-badge.entry.js.map +0 -1
- package/dist/jump-design-system/p-1a533536.entry.js +0 -2
- package/dist/jump-design-system/p-1a533536.entry.js.map +0 -1
- package/dist/jump-design-system/p-20ceb40c.js +0 -3
- package/dist/jump-design-system/p-36c7c94d.entry.js +0 -331
- package/dist/jump-design-system/p-36c7c94d.entry.js.map +0 -1
- package/dist/jump-design-system/p-700b96b4.entry.js +0 -2
- package/dist/jump-design-system/p-700b96b4.entry.js.map +0 -1
- package/dist/jump-design-system/p-93d8245f.entry.js +0 -2
- package/dist/jump-design-system/p-93d8245f.entry.js.map +0 -1
- package/dist/jump-design-system/p-9ad27c08.entry.js +0 -2
- package/dist/jump-design-system/p-9ad27c08.entry.js.map +0 -1
- package/dist/jump-design-system/p-c8244738.entry.js +0 -2
- package/dist/jump-design-system/p-c8244738.entry.js.map +0 -1
- package/dist/jump-design-system/p-eb16952a.entry.js +0 -2
- package/dist/jump-design-system/p-eb16952a.entry.js.map +0 -1
- package/dist/types/components/jump-icon/jump-icon.stories.d.ts +0 -19
- package/dist/types/components/jump-tab/jump-tab-inline.stories.d.ts +0 -18
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JumpCardEcommerce {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.onlyIconButton = false;
|
|
5
|
+
this.hasBackground = false;
|
|
6
|
+
this.badge = undefined;
|
|
7
|
+
this.favorite = false;
|
|
8
|
+
this.link = undefined;
|
|
9
|
+
this.img = undefined;
|
|
10
|
+
this.imgAlt = undefined;
|
|
11
|
+
this.videoSrc = undefined;
|
|
12
|
+
this.addedToCart = false;
|
|
13
|
+
this.notificationUrl = undefined;
|
|
14
|
+
this.notificationText = 'Aggiunto al carrello';
|
|
15
|
+
this.productName = undefined;
|
|
16
|
+
this.subtitle = undefined;
|
|
17
|
+
this.productId = undefined;
|
|
18
|
+
this.price = undefined;
|
|
19
|
+
this.salePrice = undefined;
|
|
20
|
+
this.currency = undefined;
|
|
21
|
+
this.outOfStock = false;
|
|
22
|
+
this.outOfStockText = undefined;
|
|
23
|
+
this.addtoCartText = undefined;
|
|
24
|
+
this.waitingListText = undefined;
|
|
25
|
+
this.addToWaitingList = false;
|
|
26
|
+
this.quantity = false;
|
|
27
|
+
this.changedQuantity = false;
|
|
28
|
+
this.changedVariation = false;
|
|
29
|
+
}
|
|
30
|
+
/* ---------------------- @LIFECYCLE ------------------------- */
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
// this._selectVariations = this.selectVariations?.split(',');
|
|
33
|
+
}
|
|
34
|
+
onToggleFavorite() {
|
|
35
|
+
this.favorite = !this.favorite;
|
|
36
|
+
this.toggleFavorite.emit({
|
|
37
|
+
productId: this.productId,
|
|
38
|
+
favorite: this.favorite
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
addProductToCart() {
|
|
42
|
+
this.addedToCart = true;
|
|
43
|
+
const payload = {
|
|
44
|
+
productId: this.productId,
|
|
45
|
+
addedToCart: this.addedToCart,
|
|
46
|
+
quantity: 2 // da prendere dal quantity
|
|
47
|
+
// mancano le variazioni
|
|
48
|
+
};
|
|
49
|
+
this.productAddToCart.emit(payload);
|
|
50
|
+
console.log("productAddToCart payload:", payload);
|
|
51
|
+
}
|
|
52
|
+
waitingList() {
|
|
53
|
+
this.addToWaitingList = true;
|
|
54
|
+
this.productWaitingList.emit({
|
|
55
|
+
productId: this.productId,
|
|
56
|
+
addToWaitingList: this.addToWaitingList
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
changeQuantityProduct(event) {
|
|
60
|
+
// const quantityInput = this.JumpCardEcommerce.querySelector('jump-quantity');
|
|
61
|
+
// const quantityValue = quantityInput.value; // Access the `value` property
|
|
62
|
+
const quantityElement = event.target;
|
|
63
|
+
console.log('Valore selezionato:', quantityElement);
|
|
64
|
+
// const quantityValue = quantityElement.value;
|
|
65
|
+
this.changedQuantity = true;
|
|
66
|
+
const payload = {
|
|
67
|
+
productId: this.productId,
|
|
68
|
+
changedQuantity: this.changedQuantity,
|
|
69
|
+
quantity: 2 // da sostituire con quaintity value
|
|
70
|
+
};
|
|
71
|
+
this.changeQuantity.emit(payload);
|
|
72
|
+
console.log("changeQuantity payload:", payload);
|
|
73
|
+
}
|
|
74
|
+
changeVariationBody(event) {
|
|
75
|
+
const selectElement = event.target;
|
|
76
|
+
const selectedValue = selectElement.value;
|
|
77
|
+
this.changedVariation = true;
|
|
78
|
+
const payload = {
|
|
79
|
+
productId: this.productId,
|
|
80
|
+
changedVariation: this.changedVariation,
|
|
81
|
+
variation: selectedValue // da sostituire
|
|
82
|
+
};
|
|
83
|
+
this.changeVariation.emit(payload);
|
|
84
|
+
console.log("changeVariation payload:", payload);
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const backgroundClass = this.hasBackground ? 'hasBackground' : '';
|
|
88
|
+
const iconOnlyClass = this.onlyIconButton ? 'iconOnly' : '';
|
|
89
|
+
const justifyClass = this.outOfStock ? 'justify-between' : '';
|
|
90
|
+
return (h(Host, { key: 'cf789b80987e6382306da2ad5ace446580a61990', ref: (el) => { this.JumpCardEcommerce = el; } }, this.badge ? h("jump-badge", { class: `${backgroundClass} ${iconOnlyClass}`, variant: "secondary", label: this.badge }) : '', h("jump-button", { key: 'd8a4cf5efe00c8524760cc72cbf442746e6c2597', onClick: () => this.onToggleFavorite(), class: `Favorite ${backgroundClass} ${iconOnlyClass}`, variant: this.favorite ? 'neutral' : 'primary', size: "small", text: true, onlyIcon: true }, h("jump-icon", { key: '16b89f2a5626b9e7fb4691a0de7d629c5ce8dc1c', slot: "prefix", name: "heart", category: this.favorite ? 'light' : 'solid', size: "medium" })), h("div", { key: 'dc3147d29ade372ee937f9cf2a65bd68069d7e30', class: `Media ${iconOnlyClass} ${backgroundClass}` }, h("a", { key: '92d62f4458c29704bda0170e15f00b72c0a79bd0', href: this.link }, this.img && !this.videoSrc ? h("img", { src: this.img, alt: this.imgAlt }) : '', this.videoSrc && !this.img ?
|
|
91
|
+
h("video", { autoplay: true }, h("source", { src: this.videoSrc, type: "video/mp4" }), h("source", { src: this.videoSrc, type: "video/mov" }), h("source", { src: this.videoSrc, type: "video/webm" })) : ''), h("div", { key: '0d9ac0e6d99a33313602eafeeba8f2bde64e02d0', class: `NotificationCart ${this.addedToCart == true ? 'is-active' : ''}` }, h("jump-button", { key: '4117a6d5811a18cab91efc6205a4b1674c417bd9', href: this.notificationUrl, variant: "white", text: true }, h("jump-icon", { key: '871ca055dbae216cac54bc269360b16836903cc1', slot: "prefix", name: "check" }), h("span", { key: '039ffeced52e62d4ffb381dfe18d349eed42973a' }, " ", this.notificationText, " "))), this.onlyIconButton ?
|
|
92
|
+
h("div", { class: "OnlyIconButton" }, h("jump-button", { variant: "secondary", size: "large", pill: true, onlyIcon: true, onClick: () => this.addProductToCart() }, h("jump-icon", { slot: "prefix", name: 'cart-shopping', category: "regular" })))
|
|
93
|
+
: ''), h("div", { key: 'ec82214460c67faba8af6098369d4235bec773e5', class: `Content ${backgroundClass} ${iconOnlyClass}` }, h("div", { key: '953cf7cfd621a0209c2fd10af584cc3cac98760e', class: `Body ${backgroundClass} ${iconOnlyClass}` }, h("div", { key: '09701cab14c47d008f9fd381679c75fff137e3fa' }, h("div", { key: 'fd0bbbff94d79d1a6e0c6ba396da2e74cd4c080c', class: "Info" }, h("div", { key: '9c16dc172061744b418e263b8f2d361ec1761836', class: "Product" }, this.productName), h("div", { key: '5e2c9a1441a2f0dea4e7b6983204ec7a7071f52c', class: "Subtitle" }, this.subtitle)), h("div", { key: '4c0e6462f9600552c6bf2f958c0ece70804f3ab3', class: "Price" }, h("div", { key: 'f02d651ed87dda490d9dd5d45ba3f587b9ebe4e5', class: "Price__Discount" }, "-5%"), h("div", { key: 'cae9ab50ca4739f7e91a759e4d175c2341a98872', class: `Price__Regular ${this.salePrice ? 'sale' : ''}` }, this.currency, this.price), h("div", { key: 'e628599318e8d4a8c249476712f95e8e19951d83', class: "Price__Sale" }, this.currency, this.salePrice))), h("div", { key: 'c324067e3c63718e56a3315cc7e14b1255b97103' }, h("select", { key: '43b91f6b4c88c865a3df41abd583b5aa1f538c84', name: "select", id: "selectID", onChange: (event) => this.changeVariationBody(event) }, h("option", { key: 'a9ae9bec327dc262608cd2dfd7efb5d877dc8a5c', value: 'm' }, "medium"), h("option", { key: '88c68917a0c97b8a208d7906b4603e1ccefec1a4', value: 'l' }, "large"), h("option", { key: '9d84d95a72aa2f7ab5299ea8a478c5c9cff85402', value: 'xl' }, "extra large")), this.quantity ? h("jump-quantity", { onClick: (event) => this.changeQuantityProduct(event) }) : '')), h("div", { key: 'a647b17041f2bc51d91f758e858ae7302930159e', class: `Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass}` }, this.outOfStock ? h("div", { class: "OutOfStock" }, this.outOfStockText ? this.outOfStockText : 'Esaurito') : '', this.outOfStock ?
|
|
94
|
+
h("jump-button", { variant: "secondary", size: "small", text: true, onClick: () => this.waitingList() }, h("jump-icon", { slot: "prefix", name: !this.outOfStock ? 'cart-shopping' : 'bell', category: "regular", size: "small" }), this.waitingListText ? this.waitingListText : 'Notifica disponibilità') : '', !this.outOfStock && !this.onlyIconButton ?
|
|
95
|
+
h("jump-button", { variant: "secondary", size: "small", text: true, onClick: () => this.addProductToCart() }, h("jump-icon", { slot: "prefix", name: !this.outOfStock ? 'cart-shopping' : 'bell', category: "regular", size: "small" }), this.addtoCartText ? this.addtoCartText : 'Aggiungi al carrello') : ''))));
|
|
96
|
+
}
|
|
97
|
+
static get is() { return "jump-card-ecommerce"; }
|
|
98
|
+
static get encapsulation() { return "shadow"; }
|
|
99
|
+
static get originalStyleUrls() {
|
|
100
|
+
return {
|
|
101
|
+
"$": ["jump-card-ecommerce.scss"]
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
static get styleUrls() {
|
|
105
|
+
return {
|
|
106
|
+
"$": ["jump-card-ecommerce.css"]
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
static get properties() {
|
|
110
|
+
return {
|
|
111
|
+
"onlyIconButton": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "boolean",
|
|
116
|
+
"resolved": "boolean",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Indicate if card has only icon button"
|
|
124
|
+
},
|
|
125
|
+
"attribute": "only-icon-button",
|
|
126
|
+
"reflect": false,
|
|
127
|
+
"defaultValue": "false"
|
|
128
|
+
},
|
|
129
|
+
"hasBackground": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"mutable": false,
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "boolean",
|
|
134
|
+
"resolved": "boolean",
|
|
135
|
+
"references": {}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": "Indicate if card has background"
|
|
142
|
+
},
|
|
143
|
+
"attribute": "has-background",
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"defaultValue": "false"
|
|
146
|
+
},
|
|
147
|
+
"badge": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Indicates the badge of the card"
|
|
160
|
+
},
|
|
161
|
+
"attribute": "badge",
|
|
162
|
+
"reflect": false
|
|
163
|
+
},
|
|
164
|
+
"favorite": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"mutable": true,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "boolean",
|
|
169
|
+
"resolved": "boolean",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": "Indicates if the product is favorite"
|
|
177
|
+
},
|
|
178
|
+
"attribute": "favorite",
|
|
179
|
+
"reflect": true,
|
|
180
|
+
"defaultValue": "false"
|
|
181
|
+
},
|
|
182
|
+
"link": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "string",
|
|
187
|
+
"resolved": "string",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": "Indicates the link of the card"
|
|
195
|
+
},
|
|
196
|
+
"attribute": "link",
|
|
197
|
+
"reflect": false
|
|
198
|
+
},
|
|
199
|
+
"img": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "string",
|
|
204
|
+
"resolved": "string",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": "Indicates the image's src of the card"
|
|
212
|
+
},
|
|
213
|
+
"attribute": "img",
|
|
214
|
+
"reflect": false
|
|
215
|
+
},
|
|
216
|
+
"imgAlt": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "string",
|
|
221
|
+
"resolved": "string",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": false,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": "Indicates the img's alt of the card"
|
|
229
|
+
},
|
|
230
|
+
"attribute": "img-alt",
|
|
231
|
+
"reflect": false
|
|
232
|
+
},
|
|
233
|
+
"videoSrc": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "Indicates the videoSrc of the card"
|
|
246
|
+
},
|
|
247
|
+
"attribute": "video-src",
|
|
248
|
+
"reflect": false
|
|
249
|
+
},
|
|
250
|
+
"addedToCart": {
|
|
251
|
+
"type": "boolean",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "boolean",
|
|
255
|
+
"resolved": "boolean",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "Indicate if the product is added to cart"
|
|
263
|
+
},
|
|
264
|
+
"attribute": "added-to-cart",
|
|
265
|
+
"reflect": false,
|
|
266
|
+
"defaultValue": "false"
|
|
267
|
+
},
|
|
268
|
+
"notificationUrl": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "string",
|
|
273
|
+
"resolved": "string",
|
|
274
|
+
"references": {}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": false,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": "Indicates the notificationUrl of the card"
|
|
281
|
+
},
|
|
282
|
+
"attribute": "notification-url",
|
|
283
|
+
"reflect": false
|
|
284
|
+
},
|
|
285
|
+
"notificationText": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "string",
|
|
290
|
+
"resolved": "string",
|
|
291
|
+
"references": {}
|
|
292
|
+
},
|
|
293
|
+
"required": false,
|
|
294
|
+
"optional": false,
|
|
295
|
+
"docs": {
|
|
296
|
+
"tags": [],
|
|
297
|
+
"text": "Indicates the notificationText of the card"
|
|
298
|
+
},
|
|
299
|
+
"attribute": "notification-text",
|
|
300
|
+
"reflect": false,
|
|
301
|
+
"defaultValue": "'Aggiunto al carrello'"
|
|
302
|
+
},
|
|
303
|
+
"productName": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"mutable": false,
|
|
306
|
+
"complexType": {
|
|
307
|
+
"original": "string",
|
|
308
|
+
"resolved": "string",
|
|
309
|
+
"references": {}
|
|
310
|
+
},
|
|
311
|
+
"required": false,
|
|
312
|
+
"optional": false,
|
|
313
|
+
"docs": {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": "Indicates the title of the card"
|
|
316
|
+
},
|
|
317
|
+
"attribute": "product-name",
|
|
318
|
+
"reflect": false
|
|
319
|
+
},
|
|
320
|
+
"subtitle": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": false,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "string",
|
|
325
|
+
"resolved": "string",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "Indicates the subtitle of the card"
|
|
333
|
+
},
|
|
334
|
+
"attribute": "subtitle",
|
|
335
|
+
"reflect": false
|
|
336
|
+
},
|
|
337
|
+
"productId": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"mutable": false,
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "string",
|
|
342
|
+
"resolved": "string",
|
|
343
|
+
"references": {}
|
|
344
|
+
},
|
|
345
|
+
"required": false,
|
|
346
|
+
"optional": false,
|
|
347
|
+
"docs": {
|
|
348
|
+
"tags": [],
|
|
349
|
+
"text": "Indicates the ID of the product, can be also a SKU"
|
|
350
|
+
},
|
|
351
|
+
"attribute": "product-id",
|
|
352
|
+
"reflect": false
|
|
353
|
+
},
|
|
354
|
+
"price": {
|
|
355
|
+
"type": "number",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "number",
|
|
359
|
+
"resolved": "number",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": "Indicates the price of the card"
|
|
367
|
+
},
|
|
368
|
+
"attribute": "price",
|
|
369
|
+
"reflect": false
|
|
370
|
+
},
|
|
371
|
+
"salePrice": {
|
|
372
|
+
"type": "number",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "number",
|
|
376
|
+
"resolved": "number",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Indicates the sale price of the card"
|
|
384
|
+
},
|
|
385
|
+
"attribute": "sale-price",
|
|
386
|
+
"reflect": false
|
|
387
|
+
},
|
|
388
|
+
"currency": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"mutable": false,
|
|
391
|
+
"complexType": {
|
|
392
|
+
"original": "string",
|
|
393
|
+
"resolved": "string",
|
|
394
|
+
"references": {}
|
|
395
|
+
},
|
|
396
|
+
"required": false,
|
|
397
|
+
"optional": false,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "Indicates the currency of the card"
|
|
401
|
+
},
|
|
402
|
+
"attribute": "currency",
|
|
403
|
+
"reflect": false
|
|
404
|
+
},
|
|
405
|
+
"outOfStock": {
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"mutable": true,
|
|
408
|
+
"complexType": {
|
|
409
|
+
"original": "boolean",
|
|
410
|
+
"resolved": "boolean",
|
|
411
|
+
"references": {}
|
|
412
|
+
},
|
|
413
|
+
"required": false,
|
|
414
|
+
"optional": false,
|
|
415
|
+
"docs": {
|
|
416
|
+
"tags": [],
|
|
417
|
+
"text": "Indicates if the product is outOfStock"
|
|
418
|
+
},
|
|
419
|
+
"attribute": "out-of-stock",
|
|
420
|
+
"reflect": true,
|
|
421
|
+
"defaultValue": "false"
|
|
422
|
+
},
|
|
423
|
+
"outOfStockText": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"mutable": false,
|
|
426
|
+
"complexType": {
|
|
427
|
+
"original": "string",
|
|
428
|
+
"resolved": "string",
|
|
429
|
+
"references": {}
|
|
430
|
+
},
|
|
431
|
+
"required": false,
|
|
432
|
+
"optional": false,
|
|
433
|
+
"docs": {
|
|
434
|
+
"tags": [],
|
|
435
|
+
"text": "Indicates the outOfStockText of the product"
|
|
436
|
+
},
|
|
437
|
+
"attribute": "out-of-stock-text",
|
|
438
|
+
"reflect": false
|
|
439
|
+
},
|
|
440
|
+
"addtoCartText": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"mutable": false,
|
|
443
|
+
"complexType": {
|
|
444
|
+
"original": "string",
|
|
445
|
+
"resolved": "string",
|
|
446
|
+
"references": {}
|
|
447
|
+
},
|
|
448
|
+
"required": false,
|
|
449
|
+
"optional": false,
|
|
450
|
+
"docs": {
|
|
451
|
+
"tags": [],
|
|
452
|
+
"text": "Indicates the button class of the add to cart / notification button"
|
|
453
|
+
},
|
|
454
|
+
"attribute": "addto-cart-text",
|
|
455
|
+
"reflect": false
|
|
456
|
+
},
|
|
457
|
+
"waitingListText": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"mutable": false,
|
|
460
|
+
"complexType": {
|
|
461
|
+
"original": "string",
|
|
462
|
+
"resolved": "string",
|
|
463
|
+
"references": {}
|
|
464
|
+
},
|
|
465
|
+
"required": false,
|
|
466
|
+
"optional": false,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "Indicates the button class of the add to cart / notification button"
|
|
470
|
+
},
|
|
471
|
+
"attribute": "waiting-list-text",
|
|
472
|
+
"reflect": false
|
|
473
|
+
},
|
|
474
|
+
"addToWaitingList": {
|
|
475
|
+
"type": "boolean",
|
|
476
|
+
"mutable": false,
|
|
477
|
+
"complexType": {
|
|
478
|
+
"original": "boolean",
|
|
479
|
+
"resolved": "boolean",
|
|
480
|
+
"references": {}
|
|
481
|
+
},
|
|
482
|
+
"required": false,
|
|
483
|
+
"optional": false,
|
|
484
|
+
"docs": {
|
|
485
|
+
"tags": [],
|
|
486
|
+
"text": "Indicate if the user request to be notified when te product is avaible"
|
|
487
|
+
},
|
|
488
|
+
"attribute": "add-to-waiting-list",
|
|
489
|
+
"reflect": false,
|
|
490
|
+
"defaultValue": "false"
|
|
491
|
+
},
|
|
492
|
+
"quantity": {
|
|
493
|
+
"type": "boolean",
|
|
494
|
+
"mutable": true,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "boolean",
|
|
497
|
+
"resolved": "boolean",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": "Indicates if the user can choose how much quantity of the product add to cart"
|
|
505
|
+
},
|
|
506
|
+
"attribute": "quantity",
|
|
507
|
+
"reflect": true,
|
|
508
|
+
"defaultValue": "false"
|
|
509
|
+
},
|
|
510
|
+
"changedQuantity": {
|
|
511
|
+
"type": "boolean",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "boolean",
|
|
515
|
+
"resolved": "boolean",
|
|
516
|
+
"references": {}
|
|
517
|
+
},
|
|
518
|
+
"required": false,
|
|
519
|
+
"optional": false,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": "Indicate if the quantity is change"
|
|
523
|
+
},
|
|
524
|
+
"attribute": "changed-quantity",
|
|
525
|
+
"reflect": false,
|
|
526
|
+
"defaultValue": "false"
|
|
527
|
+
},
|
|
528
|
+
"changedVariation": {
|
|
529
|
+
"type": "boolean",
|
|
530
|
+
"mutable": false,
|
|
531
|
+
"complexType": {
|
|
532
|
+
"original": "boolean",
|
|
533
|
+
"resolved": "boolean",
|
|
534
|
+
"references": {}
|
|
535
|
+
},
|
|
536
|
+
"required": false,
|
|
537
|
+
"optional": false,
|
|
538
|
+
"docs": {
|
|
539
|
+
"tags": [],
|
|
540
|
+
"text": "Indicate if the variation is change"
|
|
541
|
+
},
|
|
542
|
+
"attribute": "changed-variation",
|
|
543
|
+
"reflect": false,
|
|
544
|
+
"defaultValue": "false"
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
static get events() {
|
|
549
|
+
return [{
|
|
550
|
+
"method": "toggleFavorite",
|
|
551
|
+
"name": "jump-toggle-favorite",
|
|
552
|
+
"bubbles": true,
|
|
553
|
+
"cancelable": true,
|
|
554
|
+
"composed": true,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": ""
|
|
558
|
+
},
|
|
559
|
+
"complexType": {
|
|
560
|
+
"original": "any",
|
|
561
|
+
"resolved": "any",
|
|
562
|
+
"references": {}
|
|
563
|
+
}
|
|
564
|
+
}, {
|
|
565
|
+
"method": "productAddToCart",
|
|
566
|
+
"name": "jump-add-to-cart",
|
|
567
|
+
"bubbles": true,
|
|
568
|
+
"cancelable": true,
|
|
569
|
+
"composed": true,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [],
|
|
572
|
+
"text": ""
|
|
573
|
+
},
|
|
574
|
+
"complexType": {
|
|
575
|
+
"original": "any",
|
|
576
|
+
"resolved": "any",
|
|
577
|
+
"references": {}
|
|
578
|
+
}
|
|
579
|
+
}, {
|
|
580
|
+
"method": "productWaitingList",
|
|
581
|
+
"name": "jump-add-to-waiting-list",
|
|
582
|
+
"bubbles": true,
|
|
583
|
+
"cancelable": true,
|
|
584
|
+
"composed": true,
|
|
585
|
+
"docs": {
|
|
586
|
+
"tags": [],
|
|
587
|
+
"text": ""
|
|
588
|
+
},
|
|
589
|
+
"complexType": {
|
|
590
|
+
"original": "any",
|
|
591
|
+
"resolved": "any",
|
|
592
|
+
"references": {}
|
|
593
|
+
}
|
|
594
|
+
}, {
|
|
595
|
+
"method": "changeQuantity",
|
|
596
|
+
"name": "jump-change-quantity",
|
|
597
|
+
"bubbles": true,
|
|
598
|
+
"cancelable": true,
|
|
599
|
+
"composed": true,
|
|
600
|
+
"docs": {
|
|
601
|
+
"tags": [],
|
|
602
|
+
"text": ""
|
|
603
|
+
},
|
|
604
|
+
"complexType": {
|
|
605
|
+
"original": "any",
|
|
606
|
+
"resolved": "any",
|
|
607
|
+
"references": {}
|
|
608
|
+
}
|
|
609
|
+
}, {
|
|
610
|
+
"method": "changeVariation",
|
|
611
|
+
"name": "jump-change-variation",
|
|
612
|
+
"bubbles": true,
|
|
613
|
+
"cancelable": true,
|
|
614
|
+
"composed": true,
|
|
615
|
+
"docs": {
|
|
616
|
+
"tags": [],
|
|
617
|
+
"text": ""
|
|
618
|
+
},
|
|
619
|
+
"complexType": {
|
|
620
|
+
"original": "any",
|
|
621
|
+
"resolved": "any",
|
|
622
|
+
"references": {}
|
|
623
|
+
}
|
|
624
|
+
}];
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
//# sourceMappingURL=jump-card-ecommerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-card-ecommerce.js","sourceRoot":"","sources":["../../../src/components/jump-card-ecommerce/jump-card-ecommerce.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAO9E,MAAM,OAAO,iBAAiB;;8BAOM,KAAK;6BAGN,KAAK;;wBAMmB,KAAK;;;;;2BAe/B,KAAK;;gCAMD,sBAAsB;;;;;;;0BAqBE,KAAK;;;;gCAY5B,KAAK;wBAGgB,KAAK;+BAG3B,KAAK;gCAGJ,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;4BACvF,iBAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,GAAa;4BACvH,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,sBAAsB,CACrD,CAAC,CAAC,CAAC,EAAE,CAGjB,CAEF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'jump-card-ecommerce',\n styleUrl: 'jump-card-ecommerce.scss',\n shadow: true,\n})\nexport class JumpCardEcommerce {\n\n JumpCardEcommerce: HTMLElement;\n\n /* ---------------------- @PROPERTIES ------------------------- */\n\n /** Indicate if card has only icon button*/\n @Prop() onlyIconButton: boolean = false;\n\n /** Indicate if card has background*/\n @Prop() hasBackground: boolean = false;\n\n /** Indicates the badge of the card*/\n @Prop() badge: string;\n\n /** Indicates if the product is favorite */\n @Prop({mutable:true, reflect: true}) favorite: boolean = false;\n\n /** Indicates the link of the card*/\n @Prop() link: string;\n\n /** Indicates the image's src of the card*/\n @Prop() img: string ;\n\n /** Indicates the img's alt of the card*/\n @Prop() imgAlt: string;\n\n /** Indicates the videoSrc of the card*/\n @Prop() videoSrc: string; \n\n /** Indicate if the product is added to cart*/\n @Prop() addedToCart: boolean = false;\n\n /** Indicates the notificationUrl of the card*/\n @Prop() notificationUrl: string;\n\n /** Indicates the notificationText of the card*/\n @Prop() notificationText: string = 'Aggiunto al carrello';\n\n /** Indicates the title of the card*/\n @Prop() productName: string ;\n\n /** Indicates the subtitle of the card*/\n @Prop() subtitle: string;\n\n /** Indicates the ID of the product, can be also a SKU*/\n @Prop() productId: string ;\n\n /** Indicates the price of the card */\n @Prop() price: number;\n\n /** Indicates the sale price of the card */\n @Prop() salePrice: number;\n\n /** Indicates the currency of the card */\n @Prop() currency: string;\n\n /** Indicates if the product is outOfStock */\n @Prop({mutable:true, reflect: true}) outOfStock: boolean = false;\n \n /** Indicates the outOfStockText of the product*/\n @Prop() outOfStockText: string;\n\n /** Indicates the button class of the add to cart / notification button */\n @Prop() addtoCartText: string ;\n\n /** Indicates the button class of the add to cart / notification button */\n @Prop() waitingListText: string ;\n\n /** Indicate if the user request to be notified when te product is avaible*/\n @Prop() addToWaitingList: boolean = false;\n\n /** Indicates if the user can choose how much quantity of the product add to cart */\n @Prop({mutable:true, reflect: true}) quantity: boolean = false;\n\n /** Indicate if the quantity is change*/\n @Prop() changedQuantity: boolean = false;\n\n /** Indicate if the variation is change*/\n @Prop() changedVariation: boolean = false;\n\n // /** Indicates the inizial value of input quantity*/\n // @Prop() quantity: number ;\n\n\n /* ---------------------- @EVENTS ------------------------- */\n \n @Event({eventName: 'jump-toggle-favorite'}) toggleFavorite: EventEmitter;\n\n @Event({eventName: 'jump-add-to-cart'}) productAddToCart: EventEmitter;\n\n @Event({eventName: 'jump-add-to-waiting-list'}) productWaitingList: EventEmitter;\n\n @Event({eventName: 'jump-change-quantity'}) changeQuantity: EventEmitter;\n\n @Event({eventName: 'jump-change-variation'}) changeVariation: EventEmitter;\n\n \n /* ---------------------- @LIFECYCLE ------------------------- */\n\n componentWillLoad() {\n // this._selectVariations = this.selectVariations?.split(',');\n }\n\n onToggleFavorite() {\n this.favorite = !this.favorite;\n this.toggleFavorite.emit(\n {\n productId: this.productId,\n favorite: this.favorite\n }\n ); \n }\n\n addProductToCart() {\n this.addedToCart = true;\n const payload = {\n productId: this.productId,\n addedToCart: this.addedToCart,\n quantity: 2 // da prendere dal quantity\n // mancano le variazioni\n };\n this.productAddToCart.emit(payload);\n console.log(\"productAddToCart payload:\", payload);\n }\n\n waitingList() {\n this.addToWaitingList = true;\n this.productWaitingList.emit(\n {\n productId: this.productId,\n addToWaitingList: this.addToWaitingList\n }\n )\n }\n\n changeQuantityProduct(event: Event) {\n // const quantityInput = this.JumpCardEcommerce.querySelector('jump-quantity');\n // const quantityValue = quantityInput.value; // Access the `value` property\n const quantityElement = event.target as HTMLInputElement;\n console.log('Valore selezionato:', quantityElement);\n // const quantityValue = quantityElement.value;\n\n this.changedQuantity = true;\n const payload = {\n productId: this.productId,\n changedQuantity: this.changedQuantity,\n quantity: 2 // da sostituire con quaintity value\n };\n this.changeQuantity.emit(payload);\n console.log(\"changeQuantity payload:\", payload)\n }\n\n changeVariationBody(event: Event) {\n const selectElement = event.target as HTMLSelectElement;\n const selectedValue = selectElement.value;\n\n this.changedVariation = true;\n const payload = {\n productId: this.productId,\n changedVariation: this.changedVariation,\n variation: selectedValue // da sostituire\n };\n this.changeVariation.emit(payload);\n console.log(\"changeVariation payload:\", payload)\n }\n\n render() {\n const backgroundClass = this.hasBackground ? 'hasBackground' : '';\n const iconOnlyClass = this.onlyIconButton ? 'iconOnly' : '';\n const justifyClass = this.outOfStock ? 'justify-between' : '';\n\n return (\n\n <Host ref={(el) => {this.JumpCardEcommerce = el;}} >\n {this.badge ? <jump-badge class={`${backgroundClass} ${iconOnlyClass}`} variant=\"secondary\" label={this.badge}></jump-badge> : ''}\n \n <jump-button onClick={ () => this.onToggleFavorite() } class={`Favorite ${backgroundClass} ${iconOnlyClass}`} variant={this.favorite ? 'neutral' : 'primary'} size=\"small\" text onlyIcon>\n <jump-icon slot=\"prefix\" name=\"heart\" category={this.favorite ? 'light' : 'solid'} size=\"medium\"></jump-icon>\n </jump-button> \n\n <div class={`Media ${iconOnlyClass} ${backgroundClass}`}>\n <a href={this.link}>\n {this.img && !this.videoSrc ? <img src={this.img} alt={this.imgAlt}></img> : ''}\n {this.videoSrc && !this.img ? \n <video autoplay> \n <source src={this.videoSrc} type=\"video/mp4\"/> \n <source src={this.videoSrc} type=\"video/mov\"/> \n <source src={this.videoSrc} type=\"video/webm\"/> \n </video> : ''}\n </a> \n <div class={`NotificationCart ${this.addedToCart == true ? 'is-active' : ''}`}>\n <jump-button href={this.notificationUrl} variant=\"white\" text> \n <jump-icon slot=\"prefix\" name=\"check\"></jump-icon> \n <span> {this.notificationText} </span>\n </jump-button>\n </div>\n {this.onlyIconButton ? \n <div class=\"OnlyIconButton\">\n <jump-button variant=\"secondary\" size=\"large\" pill onlyIcon onClick={() => this.addProductToCart()}> \n <jump-icon slot=\"prefix\" name='cart-shopping' category=\"regular\"></jump-icon> \n </jump-button> \n </div>\n : ''\n }\n </div>\n\n <div class={`Content ${backgroundClass} ${iconOnlyClass}`}>\n <div class={`Body ${backgroundClass} ${iconOnlyClass}`}>\n <div>\n <div class=\"Info\">\n <div class=\"Product\">{this.productName}</div>\n <div class=\"Subtitle\">{this.subtitle}</div>\n </div>\n\n <div class=\"Price\">\n <div class=\"Price__Discount\">-5%</div>\n <div class={`Price__Regular ${this.salePrice ? 'sale' : ''}`}> \n {this.currency}{this.price}\n </div>\n <div class=\"Price__Sale\">{this.currency}{this.salePrice}</div>\n </div>\n </div>\n <div>\n {/* manca la proprietà se ci sono variazioni o no */}\n <select name=\"select\" id=\"selectID\" onChange={(event) => this.changeVariationBody(event)}>\n <option value='m'>medium</option>\n <option value='l'>large</option>\n <option value='xl'>extra large</option>\n </select>\n\n {this.quantity ? <jump-quantity onClick={(event) => this.changeQuantityProduct(event)}></jump-quantity> : ''}\n \n {/* <slot name=\"select\"></slot>\n <slot name=\"quantity\"></slot> */}\n </div>\n \n </div>\n\n <div class={`Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass}`}>\n \n {this.outOfStock ? <div class=\"OutOfStock\">{this.outOfStockText ? this.outOfStockText : 'Esaurito'}</div> : ''}\n \n { this.outOfStock ? \n <jump-button variant=\"secondary\" size=\"small\" text onClick={() => this.waitingList()}> \n <jump-icon slot=\"prefix\" name={!this.outOfStock ? 'cart-shopping' : 'bell'} category=\"regular\" size=\"small\"></jump-icon> \n {this.waitingListText ? this.waitingListText : 'Notifica disponibilità'} \n </jump-button> : ''\n }\n\n { !this.outOfStock && !this.onlyIconButton ? \n <jump-button variant=\"secondary\" size=\"small\" text onClick={() => this.addProductToCart()}> \n <jump-icon slot=\"prefix\" name={!this.outOfStock ? 'cart-shopping' : 'bell'} category=\"regular\" size=\"small\"></jump-icon> \n {this.addtoCartText ? this.addtoCartText : 'Aggiungi al carrello'} \n </jump-button> : ''\n }\n\n </div>\n\n </div>\n </Host>\n );\n }\n\n}"]}
|