@iris.interactive/handcook 5.0.12 → 5.0.13

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.
@@ -1,5 +1,4 @@
1
1
  import ElementEnum from "../../enumerators/element.enum";
2
- import SmoothScrollEnum from "../../enumerators/smooth-scroll.enum";
3
2
 
4
3
  export class HcScrollspy {
5
4
 
@@ -10,7 +9,7 @@ export class HcScrollspy {
10
9
  const navElement = document.querySelector(element.dataset.hcScrollspy);
11
10
  const shift = element.getAttribute('data-hc-scrollspy-shift') !== null ? parseInt(element.getAttribute('data-hc-scrollspy-shift')) : 0;
12
11
  if (navElement !== null) {
13
- this.activeItem(navElement, ElementEnum.scrollSmooth, shift);
12
+ this.activeItem(navElement, ElementEnum.scrollspyNavItem, shift);
14
13
  }
15
14
  });
16
15
  }
@@ -23,9 +22,9 @@ export class HcScrollspy {
23
22
  value: 0,
24
23
  attribute: 'href'
25
24
  } : {
26
- id: item.getAttribute(SmoothScrollEnum.attrHref),
25
+ id: item.getAttribute(ElementEnum.scrollspyNavItemHref),
27
26
  value: 0,
28
- attribute: SmoothScrollEnum.attrHref
27
+ attribute: ElementEnum.scrollspyNavItemHref
29
28
  };
30
29
  if (document.querySelector(part.id) !== null) {
31
30
  // part.value = document.querySelector(part.id).offsetTop;
@@ -1 +1 @@
1
- (()=>{"use strict";var a={812:(a,o,t)=>{function l(a,o,t){return o in a?Object.defineProperty(a,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[o]=t,a}var e=function a(){!function(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}(this,a)};l(e,"tooltip","[data-hc-tooltip], [data-hc-popover]"),l(e,"popover","[data-hc-popover]"),l(e,"scrollSmooth","[data-hc-smooth-scroll]"),l(e,"modal","[data-hc-modal]"),l(e,"modalClose","[data-hc-modal-close]"),l(e,"lightboxAttr","data-hc-lightbox"),l(e,"lightbox","[".concat(e.lightboxAttr,"]")),l(e,"dropdown","[data-hc-dropdown]"),l(e,"collapse","[data-hc-collapse]"),l(e,"collapseItem","[data-hc-collapse-item]"),l(e,"popin","[data-hc-popin]"),l(e,"tab","[data-hc-tab]"),l(e,"toggle","[data-hc-toggle]"),l(e,"slider","[data-hc-slider]"),l(e,"scrollspy","[data-hc-scrollspy]"),l(e,"scrollspyNav","[data-hc-scrollspy-nav]"),l(e,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),l(e,"scrollReveal","[data-hc-scroll-reveal]"),l(e,"scrollRevealDisable","[data-hc-noscroll-reveal]"),l(e,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),l(e,"scrollRevealChildren","".concat(e.scrollRevealParent," > *:not(").concat(e.scrollRevealDisable,"):not(").concat(e.scrollRevealParent,"):not(").concat(e.scrollReveal,")")),l(e,"overlay","[data-hc-overlay]")},539:(a,o,t)=>{function l(a,o,t){return o in a?Object.defineProperty(a,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[o]=t,a}var e=function a(){!function(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}(this,a)};l(e,"attrHref","data-hc-smooth-scroll-href"),l(e,"attrShift","data-hc-smooth-scroll-shift")}},o={};function t(l){var e=o[l];if(void 0!==e)return e.exports;var r=o[l]={exports:{}};return a[l](r,r.exports,t),r.exports}t.d=(a,o)=>{for(var l in o)t.o(o,l)&&!t.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:o[l]})},t.o=(a,o)=>Object.prototype.hasOwnProperty.call(a,o),t(812),t(539)})();
1
+ (()=>{"use strict";var a={812:(a,l,o)=>{function t(a,l,o){return l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a}var e=function a(){!function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}(this,a)};t(e,"tooltip","[data-hc-tooltip], [data-hc-popover]"),t(e,"popover","[data-hc-popover]"),t(e,"scrollSmooth","[data-hc-smooth-scroll]"),t(e,"modal","[data-hc-modal]"),t(e,"modalClose","[data-hc-modal-close]"),t(e,"lightboxAttr","data-hc-lightbox"),t(e,"lightbox","[".concat(e.lightboxAttr,"]")),t(e,"dropdown","[data-hc-dropdown]"),t(e,"collapse","[data-hc-collapse]"),t(e,"collapseItem","[data-hc-collapse-item]"),t(e,"popin","[data-hc-popin]"),t(e,"tab","[data-hc-tab]"),t(e,"toggle","[data-hc-toggle]"),t(e,"slider","[data-hc-slider]"),t(e,"scrollspy","[data-hc-scrollspy]"),t(e,"scrollspyNav","[data-hc-scrollspy-nav]"),t(e,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),t(e,"scrollspyNavItemHref","[data-hc-scrollspy-nav-item-href]"),t(e,"scrollReveal","[data-hc-scroll-reveal]"),t(e,"scrollRevealDisable","[data-hc-noscroll-reveal]"),t(e,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),t(e,"scrollRevealChildren","".concat(e.scrollRevealParent," > *:not(").concat(e.scrollRevealDisable,"):not(").concat(e.scrollRevealParent,"):not(").concat(e.scrollReveal,")")),t(e,"overlay","[data-hc-overlay]")}},l={};function o(t){var e=l[t];if(void 0!==e)return e.exports;var r=l[t]={exports:{}};return a[t](r,r.exports,o),r.exports}o.d=(a,l)=>{for(var t in l)o.o(l,t)&&!o.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:l[t]})},o.o=(a,l)=>Object.prototype.hasOwnProperty.call(a,l),o(812)})();