@kyndryl-design-system/shidoka-applications 1.49.1 → 1.49.2

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.
@@ -30,7 +30,8 @@ export declare const SwiperConfig: {
30
30
  };
31
31
  on: {
32
32
  init: (swiper: any) => void;
33
- slideChangeTransitionEnd: (swiper: any) => void;
33
+ transitionEnd: (swiper: any) => void;
34
+ scrollbarDragEnd: (swiper: any) => void;
34
35
  };
35
36
  };
36
37
  //# sourceMappingURL=swiper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swiper.d.ts","sourceRoot":"","sources":["../../../src/common/helpers/swiper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA+BG,GAAG;2CAGiB,GAAG;;CAIlD,CAAC"}
1
+ {"version":3,"file":"swiper.d.ts","sourceRoot":"","sources":["../../../src/common/helpers/swiper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA+BG,GAAG;gCAGM,GAAG;mCAGA,GAAG;;CAI1C,CAAC"}
@@ -1,2 +1,2 @@
1
- const e={slidesPerView:1.25,centeredSlides:!0,spaceBetween:16,breakpoints:{672:{slidesPerView:"auto",spaceBetween:24}},keyboard:{enabled:!0},mousewheel:{enabled:!0,forceToAxis:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},scrollbar:{el:".swiper-scrollbar",draggable:!0},pagination:{el:".swiper-pagination",clickable:!0,type:"fraction"},on:{init:function(e){t(e)},slideChangeTransitionEnd:function(e){t(e)}}},t=e=>{const t=e.el.getBoundingClientRect();e.slides.forEach((e=>{const i=e.getBoundingClientRect();i.left<t.left||i.right>t.width+t.left?(e.classList.add("off-screen"),e.setAttribute("aria-disabled","true")):(e.classList.remove("off-screen"),e.setAttribute("aria-disabled","false"))}))};export{e as SwiperConfig};
1
+ const e={slidesPerView:1.25,centeredSlides:!0,spaceBetween:16,breakpoints:{672:{slidesPerView:"auto",spaceBetween:24}},keyboard:{enabled:!0},mousewheel:{enabled:!0,forceToAxis:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},scrollbar:{el:".swiper-scrollbar",draggable:!0},pagination:{el:".swiper-pagination",clickable:!0,type:"fraction"},on:{init:function(e){t(e)},transitionEnd:function(e){t(e)},scrollbarDragEnd:function(e){t(e)}}},t=e=>{const t=e.el.getBoundingClientRect();e.slides.forEach((e=>{const i=e.getBoundingClientRect();i.left<t.left||i.right>t.width+t.left?(e.classList.add("off-screen"),e.setAttribute("aria-disabled","true")):(e.classList.remove("off-screen"),e.setAttribute("aria-disabled","false"))}))};export{e as SwiperConfig};
2
2
  //# sourceMappingURL=swiper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"swiper.js","sources":["../../../src/common/helpers/swiper.ts"],"sourcesContent":["export const SwiperConfig = {\n slidesPerView: 1.25,\n centeredSlides: true,\n spaceBetween: 16,\n breakpoints: {\n 672: {\n slidesPerView: 'auto',\n spaceBetween: 24,\n },\n },\n keyboard: {\n enabled: true,\n },\n mousewheel: {\n enabled: true,\n forceToAxis: true,\n },\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n scrollbar: {\n el: '.swiper-scrollbar',\n draggable: true,\n },\n pagination: {\n el: '.swiper-pagination',\n clickable: true,\n type: 'fraction',\n },\n on: {\n init: function (swiper: any) {\n DetectOffScreen(swiper);\n },\n slideChangeTransitionEnd: function (swiper: any) {\n DetectOffScreen(swiper);\n },\n },\n};\n\nconst DetectOffScreen = (swiper: any) => {\n const SwiperBounds = swiper.el.getBoundingClientRect();\n\n swiper.slides.forEach((slide: any) => {\n const SlideBounds = slide.getBoundingClientRect();\n\n if (\n SlideBounds.left < SwiperBounds.left ||\n SlideBounds.right > SwiperBounds.width + SwiperBounds.left\n ) {\n slide.classList.add('off-screen');\n slide.setAttribute('aria-disabled', 'true');\n } else {\n slide.classList.remove('off-screen');\n slide.setAttribute('aria-disabled', 'false');\n }\n });\n};\n"],"names":["SwiperConfig","slidesPerView","centeredSlides","spaceBetween","breakpoints","keyboard","enabled","mousewheel","forceToAxis","navigation","nextEl","prevEl","scrollbar","el","draggable","pagination","clickable","type","on","init","swiper","DetectOffScreen","slideChangeTransitionEnd","SwiperBounds","getBoundingClientRect","slides","forEach","slide","SlideBounds","left","right","width","classList","add","setAttribute","remove"],"mappings":"AAAa,MAAAA,EAAe,CAC1BC,cAAe,KACfC,gBAAgB,EAChBC,aAAc,GACdC,YAAa,CACX,IAAK,CACHH,cAAe,OACfE,aAAc,KAGlBE,SAAU,CACRC,SAAS,GAEXC,WAAY,CACVD,SAAS,EACTE,aAAa,GAEfC,WAAY,CACVC,OAAQ,sBACRC,OAAQ,uBAEVC,UAAW,CACTC,GAAI,oBACJC,WAAW,GAEbC,WAAY,CACVF,GAAI,qBACJG,WAAW,EACXC,KAAM,YAERC,GAAI,CACFC,KAAM,SAAUC,GACdC,EAAgBD,EACjB,EACDE,yBAA0B,SAAUF,GAClCC,EAAgBD,EACjB,IAICC,EAAmBD,IACvB,MAAMG,EAAeH,EAAOP,GAAGW,wBAE/BJ,EAAOK,OAAOC,SAASC,IACrB,MAAMC,EAAcD,EAAMH,wBAGxBI,EAAYC,KAAON,EAAaM,MAChCD,EAAYE,MAAQP,EAAaQ,MAAQR,EAAaM,MAEtDF,EAAMK,UAAUC,IAAI,cACpBN,EAAMO,aAAa,gBAAiB,UAEpCP,EAAMK,UAAUG,OAAO,cACvBR,EAAMO,aAAa,gBAAiB,SACrC,GACD"}
1
+ {"version":3,"file":"swiper.js","sources":["../../../src/common/helpers/swiper.ts"],"sourcesContent":["export const SwiperConfig = {\n slidesPerView: 1.25,\n centeredSlides: true,\n spaceBetween: 16,\n breakpoints: {\n 672: {\n slidesPerView: 'auto',\n spaceBetween: 24,\n },\n },\n keyboard: {\n enabled: true,\n },\n mousewheel: {\n enabled: true,\n forceToAxis: true,\n },\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n scrollbar: {\n el: '.swiper-scrollbar',\n draggable: true,\n },\n pagination: {\n el: '.swiper-pagination',\n clickable: true,\n type: 'fraction',\n },\n on: {\n init: function (swiper: any) {\n DetectOffScreen(swiper);\n },\n transitionEnd: function (swiper: any) {\n DetectOffScreen(swiper);\n },\n scrollbarDragEnd: function (swiper: any) {\n DetectOffScreen(swiper);\n },\n },\n};\n\nconst DetectOffScreen = (swiper: any) => {\n const SwiperBounds = swiper.el.getBoundingClientRect();\n\n swiper.slides.forEach((slide: any) => {\n const SlideBounds = slide.getBoundingClientRect();\n\n if (\n SlideBounds.left < SwiperBounds.left ||\n SlideBounds.right > SwiperBounds.width + SwiperBounds.left\n ) {\n slide.classList.add('off-screen');\n slide.setAttribute('aria-disabled', 'true');\n } else {\n slide.classList.remove('off-screen');\n slide.setAttribute('aria-disabled', 'false');\n }\n });\n};\n"],"names":["SwiperConfig","slidesPerView","centeredSlides","spaceBetween","breakpoints","keyboard","enabled","mousewheel","forceToAxis","navigation","nextEl","prevEl","scrollbar","el","draggable","pagination","clickable","type","on","init","swiper","DetectOffScreen","transitionEnd","scrollbarDragEnd","SwiperBounds","getBoundingClientRect","slides","forEach","slide","SlideBounds","left","right","width","classList","add","setAttribute","remove"],"mappings":"AAAa,MAAAA,EAAe,CAC1BC,cAAe,KACfC,gBAAgB,EAChBC,aAAc,GACdC,YAAa,CACX,IAAK,CACHH,cAAe,OACfE,aAAc,KAGlBE,SAAU,CACRC,SAAS,GAEXC,WAAY,CACVD,SAAS,EACTE,aAAa,GAEfC,WAAY,CACVC,OAAQ,sBACRC,OAAQ,uBAEVC,UAAW,CACTC,GAAI,oBACJC,WAAW,GAEbC,WAAY,CACVF,GAAI,qBACJG,WAAW,EACXC,KAAM,YAERC,GAAI,CACFC,KAAM,SAAUC,GACdC,EAAgBD,EACjB,EACDE,cAAe,SAAUF,GACvBC,EAAgBD,EACjB,EACDG,iBAAkB,SAAUH,GAC1BC,EAAgBD,EACjB,IAICC,EAAmBD,IACvB,MAAMI,EAAeJ,EAAOP,GAAGY,wBAE/BL,EAAOM,OAAOC,SAASC,IACrB,MAAMC,EAAcD,EAAMH,wBAGxBI,EAAYC,KAAON,EAAaM,MAChCD,EAAYE,MAAQP,EAAaQ,MAAQR,EAAaM,MAEtDF,EAAMK,UAAUC,IAAI,cACpBN,EAAMO,aAAa,gBAAiB,UAEpCP,EAAMK,UAAUG,OAAO,cACvBR,EAAMO,aAAa,gBAAiB,SACrC,GACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyndryl-design-system/shidoka-applications",
3
- "version": "1.49.1",
3
+ "version": "1.49.2",
4
4
  "description": "Shidoka Web Components for Applications",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -73,7 +73,7 @@
73
73
  "@storybook/addons": "^7.6.17",
74
74
  "@storybook/preview-api": "^8.3.5",
75
75
  "@storybook/test": "^8.3.5",
76
- "@storybook/test-runner": "^0.19.1",
76
+ "@storybook/test-runner": "^0.21.0",
77
77
  "@storybook/theming": "^8.3.5",
78
78
  "@storybook/web-components": "^8.3.5",
79
79
  "@storybook/web-components-webpack5": "^8.3.5",
@@ -94,6 +94,7 @@
94
94
  "lint-staged": "^13.1.2",
95
95
  "lit-analyzer": "^2.0.3",
96
96
  "lit-css-loader": "^3.0.0",
97
+ "playwright": "^1.50.1",
97
98
  "postcss": "^8.4.21",
98
99
  "prettier": "^2.8.2",
99
100
  "prismjs-components-importer": "^0.2.0",