@content-blocks/js 0.5.0 → 0.7.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/content-accordion_11.cjs.entry.js +79 -61
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
- package/dist/cjs/content-blocks.cjs.js +2 -2
- package/dist/cjs/content-carousel.cjs.entry.js +2 -1
- package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js +24 -20
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-split-block.cjs.entry.js +4 -4
- package/dist/cjs/content-split-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{index-072153fb.js → index-9f20d89a.js} +34 -4
- package/dist/cjs/index-9f20d89a.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-9856e159.js → utils-db61cd70.js} +1 -3
- package/dist/cjs/utils-db61cd70.js.map +1 -0
- package/dist/cjs/{window-resize-service-77b2c64e.js → window-resize-service-ac5c2012.js} +2 -2
- package/dist/cjs/{window-resize-service-77b2c64e.js.map → window-resize-service-ac5c2012.js.map} +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +6 -0
- package/dist/collection/blocks/content-split-block/content-split-block.js +1 -1
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -1
- package/dist/collection/blocks/content-text-block/content-text-block.css +8 -8
- package/dist/collection/blocks/content-text-block/content-text-block.js +4 -4
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -1
- package/dist/collection/components/content-accordion/content-accordion.js +4 -6
- package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
- package/dist/collection/components/content-carousel/content-carousel.js +1 -0
- package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +21 -17
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
- package/dist/collection/components/content-overlay/content-overlay.css +12 -9
- package/dist/collection/components/content-overlay/content-overlay.js +32 -17
- package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
- package/dist/collection/elements/content-button/content-button.js +2 -6
- package/dist/collection/elements/content-button/content-button.js.map +1 -1
- package/dist/collection/elements/content-image/content-image.css +4 -7
- package/dist/collection/elements/content-image/content-image.js +82 -21
- package/dist/collection/elements/content-image/content-image.js.map +1 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +1 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +58 -15
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
- package/dist/collection/formatters/content-spacer/content-spacer.css +16 -3
- package/dist/collection/formatters/content-spacer/content-spacer.js +47 -5
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
- package/dist/collection/stories/ContentHeroBlock.stories.js +2 -2
- package/dist/collection/stories/ContentHeroBlock.stories.js.map +1 -1
- package/dist/collection/stories/FullPageExample.stories.js +11 -11
- package/dist/collection/stories/FullPageExample.stories.js.map +1 -1
- package/dist/components/content-accordion.js +3 -4
- package/dist/components/content-accordion.js.map +1 -1
- package/dist/components/content-button.js +3 -6
- package/dist/components/content-button.js.map +1 -1
- package/dist/components/content-carousel.js +2 -0
- package/dist/components/content-carousel.js.map +1 -1
- package/dist/components/content-grid-formatter2.js +19 -12
- package/dist/components/content-grid-formatter2.js.map +1 -1
- package/dist/components/content-hero-block.js +2 -1
- package/dist/components/content-hero-block.js.map +1 -1
- package/dist/components/content-image.js +30 -22
- package/dist/components/content-image.js.map +1 -1
- package/dist/components/content-line.js +1 -0
- package/dist/components/content-line.js.map +1 -1
- package/dist/components/content-navigation-block.js +22 -17
- package/dist/components/content-navigation-block.js.map +1 -1
- package/dist/components/content-overlay.js +29 -13
- package/dist/components/content-overlay.js.map +1 -1
- package/dist/components/content-spacer.js +8 -4
- package/dist/components/content-spacer.js.map +1 -1
- package/dist/components/content-split-block.js +2 -1
- package/dist/components/content-split-block.js.map +1 -1
- package/dist/components/content-tabs.js +1 -0
- package/dist/components/content-tabs.js.map +1 -1
- package/dist/components/content-text-block.js +5 -4
- package/dist/components/content-text-block.js.map +1 -1
- package/dist/components/content-tout-block.js +1 -0
- package/dist/components/content-tout-block.js.map +1 -1
- package/dist/components/content-video.js +1 -0
- package/dist/components/content-video.js.map +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/content-blocks/content-blocks.esm.js +1 -1
- package/dist/content-blocks/content-blocks.esm.js.map +1 -1
- package/dist/content-blocks/index.esm.js +1 -1
- package/dist/content-blocks/p-24657e66.entry.js +10 -0
- package/dist/content-blocks/p-24657e66.entry.js.map +1 -0
- package/dist/content-blocks/{p-30ab003a.entry.js → p-271fb304.entry.js} +2 -2
- package/dist/content-blocks/p-271fb304.entry.js.map +1 -0
- package/dist/content-blocks/p-288eace9.js +3 -0
- package/dist/content-blocks/p-288eace9.js.map +1 -0
- package/dist/content-blocks/{p-fd14acd9.entry.js → p-4bfbd7ef.entry.js} +2 -2
- package/dist/content-blocks/{p-fd14acd9.entry.js.map → p-4bfbd7ef.entry.js.map} +1 -1
- package/dist/content-blocks/{p-ebaee21f.entry.js → p-6a177aef.entry.js} +2 -2
- package/dist/content-blocks/{p-ebaee21f.entry.js.map → p-6a177aef.entry.js.map} +1 -1
- package/dist/content-blocks/{p-2c515f18.entry.js → p-8cc22c1e.entry.js} +2 -2
- package/dist/content-blocks/{p-da2c36ea.js → p-b04fe808.js} +2 -2
- package/dist/content-blocks/{p-da2c36ea.js.map → p-b04fe808.js.map} +1 -1
- package/dist/content-blocks/{p-3b4b9ad1.js → p-cfb4593f.js} +2 -2
- package/dist/esm/content-accordion_11.entry.js +79 -61
- package/dist/esm/content-accordion_11.entry.js.map +1 -1
- package/dist/esm/content-blocks.js +3 -3
- package/dist/esm/content-carousel.entry.js +2 -1
- package/dist/esm/content-carousel.entry.js.map +1 -1
- package/dist/esm/content-navigation-block.entry.js +24 -20
- package/dist/esm/content-navigation-block.entry.js.map +1 -1
- package/dist/esm/content-split-block.entry.js +4 -4
- package/dist/esm/content-split-block.entry.js.map +1 -1
- package/dist/esm/content-tabs.entry.js +3 -3
- package/dist/esm/{index-5c31f78b.js → index-e848c048.js} +34 -4
- package/dist/esm/index-e848c048.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-4f29a9cf.js → utils-4f78228e.js} +2 -2
- package/dist/esm/utils-4f78228e.js.map +1 -0
- package/dist/esm/{window-resize-service-332e7420.js → window-resize-service-f40ec51c.js} +2 -2
- package/dist/esm/{window-resize-service-332e7420.js.map → window-resize-service-f40ec51c.js.map} +1 -1
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +1 -1
- package/dist/types/components/content-accordion/content-accordion.d.ts +6 -7
- package/dist/types/components/content-overlay/content-overlay.d.ts +6 -4
- package/dist/types/components.d.ts +67 -15
- package/dist/types/elements/content-button/content-button.d.ts +2 -2
- package/dist/types/elements/content-image/content-image.d.ts +13 -0
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +10 -4
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +11 -2
- package/dist/types/typings.d.ts +3 -3
- package/package.json +1 -1
- package/dist/cjs/index-072153fb.js.map +0 -1
- package/dist/cjs/utils-9856e159.js.map +0 -1
- package/dist/content-blocks/p-2faf0c78.js +0 -3
- package/dist/content-blocks/p-2faf0c78.js.map +0 -1
- package/dist/content-blocks/p-30ab003a.entry.js.map +0 -1
- package/dist/content-blocks/p-b8009321.entry.js +0 -10
- package/dist/content-blocks/p-b8009321.entry.js.map +0 -1
- package/dist/esm/index-5c31f78b.js.map +0 -1
- package/dist/esm/utils-4f29a9cf.js.map +0 -1
- /package/dist/content-blocks/{p-2c515f18.entry.js.map → p-8cc22c1e.entry.js.map} +0 -0
- /package/dist/content-blocks/{p-3b4b9ad1.js.map → p-cfb4593f.js.map} +0 -0
package/dist/esm/index.js
CHANGED
package/dist/esm/loader.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-e848c048.js';
|
|
2
|
+
export { s as setNonce } from './index-e848c048.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
|
-
return bootstrapLazy([["content-split-block",[[4,"content-split-block",{"reverse":[1544],"columns":[1],"classes":[1537],"classString":[32]}]]],["content-carousel",[[4,"content-carousel",{"initMethod":[1,"init-method"],"swiperOptions":[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["content-navigation-block",[[4,"content-navigation-block",{"hamburger":[1537],"classes":[1537],"classString":[32],"ariaExpanded":[32],"bodyToggle":[32]}]]],["content-tabs",[[4,"content-tabs",{"classes":[1537],"classString":[32]}]]],["content-accordion_11",[[4,"content-accordion",{"open":[1],"animationStart":[1,"animation-start"],"animationEnd":[1,"animation-end"],"animationTime":[2,"animation-time"],"revealElement":[32],"isOpen":[32],"randomID":[32],"classString":[32]}],[4,"content-button",{"href":[1537],"target":[1],"classes":[1],"clickableBlock":[4,"clickable-block"],"expanded":[1537],"controls":[1],"linkLabel":[1,"link-label"],"linkClass":[1537,"link-class"],"classString":[32],"hasContentToActivate":[32]}],[4,"content-hero-block",{"contentPosition":[1537,"content-position"],"classes":[1],"hasBackground":[32],"classString":[32],"revealHiddenContent":[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{"classes":[1537],"lazyLoad":[4,"lazy-load"],"src":[1025],"alt":[1537],"width":[1025],"height":[1025],"videoType":[1,"video-type"],"showContent":[1537,"show-content"],"activeSrc":[32],"lazyLoadIsComplete":[32],"showVideoAsGif":[32],"activeLazyLoadClass":[32],"classString":[32],"inlineStyle":[32],"hasMediaContent":[32]},null,{"lazyLoadIsComplete":["watchLazyLoadIsComplete"]}],[4,"content-line",{"tag":[1],"textAlign":[1,"text-align"],"classes":[8],"maxWidth":[1,"max-width"],"classString":[32],"inlineStyle":[32]}],[4,"content-overlay",{"target":[1],"open":[1537],"fullScreen":[1,"full-screen"],"classes":[1],"
|
|
6
|
+
return bootstrapLazy([["content-split-block",[[4,"content-split-block",{"reverse":[1544],"columns":[1],"classes":[1537],"classString":[32]}]]],["content-carousel",[[4,"content-carousel",{"initMethod":[1,"init-method"],"swiperOptions":[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["content-navigation-block",[[4,"content-navigation-block",{"hamburger":[1537],"classes":[1537],"classString":[32],"ariaExpanded":[32],"bodyToggle":[32]}]]],["content-tabs",[[4,"content-tabs",{"classes":[1537],"classString":[32]}]]],["content-accordion_11",[[4,"content-accordion",{"open":[1],"animationStart":[1,"animation-start"],"animationEnd":[1,"animation-end"],"animationTime":[2,"animation-time"],"revealElement":[32],"isOpen":[32],"randomID":[32],"classString":[32]}],[4,"content-button",{"href":[1537],"target":[1],"classes":[1],"clickableBlock":[4,"clickable-block"],"expanded":[1537],"controls":[1],"linkLabel":[1,"link-label"],"linkClass":[1537,"link-class"],"classString":[32],"hasContentToActivate":[32]}],[4,"content-hero-block",{"contentPosition":[1537,"content-position"],"classes":[1],"hasBackground":[32],"classString":[32],"revealHiddenContent":[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{"classes":[1537],"lazyLoad":[4,"lazy-load"],"src":[1025],"alt":[1537],"width":[1025],"height":[1025],"aspectRatio":[1025,"aspect-ratio"],"type":[1],"videoType":[1,"video-type"],"showContent":[1537,"show-content"],"activeSrc":[32],"lazyLoadIsComplete":[32],"showVideoAsGif":[32],"activeLazyLoadClass":[32],"classString":[32],"inlineStyle":[32],"hasMediaContent":[32],"pictureImageSrc":[32]},null,{"lazyLoadIsComplete":["watchLazyLoadIsComplete"]}],[4,"content-line",{"tag":[1],"textAlign":[1,"text-align"],"classes":[8],"maxWidth":[1,"max-width"],"classString":[32],"inlineStyle":[32]}],[4,"content-overlay",{"target":[1],"open":[1537],"fullScreen":[1,"full-screen"],"classes":[1],"horizontal":[1537],"vertical":[1537],"closeTitle":[1,"close-title"],"isActive":[32],"activeClass":[32],"classString":[32],"contentSlot":[32],"isFullScreen":[32],"hasCloseButton":[32],"originalMarkup":[32],"openOverlay":[64],"closeOverlay":[64]},[[0,"contentBlockActivated","onContentBlockActivated"]]],[4,"content-spacer",{"classes":[1],"maxWidth":[1,"max-width"],"fullHeight":[1537,"full-height"],"textAlign":[1537,"text-align"],"horizontal":[1537],"vertical":[1537],"topOffset":[1,"top-offset"],"bottomOffset":[1,"bottom-offset"],"leftOffset":[1,"left-offset"],"rightOffset":[1,"right-offset"],"classString":[32],"inlineStyle":[32]}],[4,"content-text-block",{"classes":[1],"minHeight":[1537,"min-height"],"vertical":[1537],"fullHeight":[1537,"full-height"],"textAlign":[1537,"text-align"],"classString":[32],"inlineStyle":[32]}],[4,"content-tout-block",{"hover":[1537],"classes":[1],"classString":[32],"hasHoverContent":[32]}],[4,"content-video",{"method":[1],"autoplay":[4],"src":[1],"width":[2],"height":[2],"type":[1],"playButtonAriaLabel":[1,"play-button-aria-label"],"classes":[1537],"controls":[4],"preload":[1],"fitContainer":[1537,"fit-container"],"classString":[32],"isLoaded":[32],"hasPoster":[32],"isPlayed":[32]}],[4,"content-grid-formatter",{"classes":[1],"type":[1537],"flexGrow":[1537,"flex-grow"],"flexShrink":[1537,"flex-shrink"],"vertical":[1537],"horizontal":[1537],"columns":[1537],"columnGap":[1537,"column-gap"],"classString":[32],"activeClassString":[32],"inlineStyle":[32]}]]]], options);
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { defineCustomElements };
|
|
@@ -111,6 +111,6 @@ const utils = /*#__PURE__*/Object.freeze({
|
|
|
111
111
|
objectToCssString: objectToCssString
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
export {
|
|
114
|
+
export { getCurrentBreakpointIndex as a, getCurrentValue as g, utils as u };
|
|
115
115
|
|
|
116
|
-
//# sourceMappingURL=utils-
|
|
116
|
+
//# sourceMappingURL=utils-4f78228e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-4f78228e.js","mappings":"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","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["import { ResponsiveString } from \"../typings\";\n\nexport const breakpoints = ['mobile', 'tablet-portrait', 'tablet-landscape', 'tablet-pro', 'desktop-large', 'desktop-wide'];\nexport const breakpointLabels = ['Mobile', 'Tablet (Portrait)', 'Tablet (Landscape)', 'iPad Pro', 'Desktop Large', 'Desktop Wide'];\nexport const breakpointValues = [0,768,1024,1366,1440,1920];\n\nexport function getBreakpointValues() {\n return breakpointValues;\n}\nexport function insertCssIntoHead(document: Document, fontCssUrl: string) {\n let element = document.querySelector(`link[href=\"${fontCssUrl}\"]`);\n // Only inject the element if it's not yet present\n if (!element) {\n element = document.createElement('link');\n element.setAttribute('rel', 'stylesheet');\n element.setAttribute('href', fontCssUrl);\n document.head.prepend(element);\n }\n}\n\nexport function generateResponsiveClass(classPrefix: string, responsiveValue: string) {\n let index = -1;\n let classString = '';\n responsiveValue.split('|').forEach(value => {\n index++;\n if (!value || value === 'false') {\n return false;\n }\n classString += ` ${classPrefix}-${breakpoints[index]}-${value}`\n });\n return classString;\n}\n\n// Fills in default value if none exists for a breakpoint\nexport function generateResponsiveValues(responsiveValue: string): string[] {\n if (!responsiveValue) {\n return [];\n }\n let responseArray = [];\n let splitResponsiveValues = responsiveValue.split('|');\n let lastGoodValue = splitResponsiveValues[0];\n breakpointValues.forEach((_value, index) => {\n let thisBreakpointValue = splitResponsiveValues[index];\n if (thisBreakpointValue) {\n lastGoodValue = thisBreakpointValue;\n }\n responseArray.push(thisBreakpointValue ? thisBreakpointValue : lastGoodValue);\n });\n return responseArray;\n}\n\nexport function getCurrentBreakpointIndex(): number {\n let activeBreakpointIndex: number = 0;\n let windowWidth = window.innerWidth;\n breakpointValues.some((width) => {\n // The first time this is true will end the loop\n let condition = width > windowWidth;\n if (!condition) {\n activeBreakpointIndex = breakpointValues.indexOf(width);\n }\n return condition;\n });\n return activeBreakpointIndex;\n}\n\nexport function getCurrentValue(responsiveValue: string|boolean): string {\n if (!responsiveValue) {\n return '';\n }\n let currentBreakpoint = getCurrentBreakpointIndex();\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n let returnValue: string;\n for (var i = currentBreakpoint; i >= 0; i--) {\n if (responsiveValues[i]) {\n returnValue = responsiveValues[i];\n i = -1;\n }\n }\n return returnValue;\n}\n\nexport function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string {\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n return responsiveValues[index].trim();\n}\n\nexport function getHydratedClassString(classString: string): string {\n let cleanedString = getCurrentValue(classString).trim();\n if (cleanedString.includes('hydrated')) {\n return cleanedString.trim();\n }\n if (cleanedString) {\n return cleanedString.trim() + ' hydrated';\n }\n return 'hydrated';\n}\n\nexport function objectToCssString(object: object): string {\n let string = '';\n for (var key in object) {\n if (object[key].length > 0 && !['px', '%'].includes(object[key])) {\n string += `${key}: ${object[key]};`;\n }\n }\n return string;\n}"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as getCurrentBreakpointIndex, g as getCurrentValue } from './utils-4f78228e.js';
|
|
2
2
|
import { B as BehaviorSubject, O as Observable } from './BehaviorSubject-bc7e0e99.js';
|
|
3
3
|
|
|
4
4
|
class WindowResizeController {
|
|
@@ -32,4 +32,4 @@ const WindowResizeService = new WindowResizeController();
|
|
|
32
32
|
|
|
33
33
|
export { WindowResizeService as W };
|
|
34
34
|
|
|
35
|
-
//# sourceMappingURL=window-resize-service-
|
|
35
|
+
//# sourceMappingURL=window-resize-service-f40ec51c.js.map
|
package/dist/esm/{window-resize-service-332e7420.js.map → window-resize-service-f40ec51c.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"window-resize-service-
|
|
1
|
+
{"file":"window-resize-service-f40ec51c.js","mappings":";;;AAIA,MAAM,sBAAsB;;IAK1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAKtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ;YAC5B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC;gBAC9B,IAAI,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;gBACjD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC1B,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ;CACF;MAEY,mBAAmB,GAAG,IAAI,sBAAsB;;;;","names":[],"sources":["src/services/window-resize-service.ts"],"sourcesContent":["import { BehaviorSubject, Observable } from \"rxjs\";\nimport { getCurrentBreakpointIndex, getCurrentValue } from \"../utils/utils\";\nimport _ from 'underscore';\n\nclass WindowResizeController {\n currentBreakpoint = getCurrentBreakpointIndex();\n breakpointIndex$: BehaviorSubject<number> = new BehaviorSubject(this.currentBreakpoint);\n timeoutHolder: number;\n // timeoutHolder: Timeout;\n constructor() {\n\n const resizeObserver = new ResizeObserver(_entries => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n let activeValue = getCurrentBreakpointIndex();\n if (this.breakpointIndex$.value === activeValue) {\n return false;\n }\n this.breakpointIndex$.next(activeValue);\n });\n\n resizeObserver.observe(window.document.body);\n }\n \n registerProp(activePropValue): Observable<string|boolean|number> {\n return new Observable(observer => {\n observer.next(getCurrentValue(activePropValue));\n this.breakpointIndex$.subscribe(() => {\n let nextValue = getCurrentValue(activePropValue);\n observer.next(nextValue);\n });\n });\n }\n}\n\nexport const WindowResizeService = new WindowResizeController();"],"version":3}
|
|
@@ -19,14 +19,14 @@ export declare class ContentAccordion {
|
|
|
19
19
|
*/
|
|
20
20
|
animationStart: string;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
* The ending animation class in case you want to control content styling.
|
|
23
|
+
* @type String
|
|
24
|
+
*/
|
|
25
25
|
animationEnd: string;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
* The amount of time in milliseconds to run the closing animation, before the class is removed
|
|
28
|
+
* @type Number
|
|
29
|
+
*/
|
|
30
30
|
animationTime: number;
|
|
31
31
|
isOpen: boolean;
|
|
32
32
|
randomID: string;
|
|
@@ -35,7 +35,6 @@ export declare class ContentAccordion {
|
|
|
35
35
|
handleClickEvent(e: MouseEvent): void;
|
|
36
36
|
animateAccordion(open: any, animationTime?: number): void;
|
|
37
37
|
componentWillLoad(): void;
|
|
38
|
-
componentDidLoad(): void;
|
|
39
38
|
render(): any;
|
|
40
39
|
}
|
|
41
40
|
//# sourceMappingURL=content-accordion.d.ts.map
|
|
@@ -38,7 +38,7 @@ export declare class ContentOverlay {
|
|
|
38
38
|
* @options right
|
|
39
39
|
* @responsive
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
horizontal: ContentLineTextAlignOptions;
|
|
42
42
|
/**
|
|
43
43
|
* A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.
|
|
44
44
|
* @type Select
|
|
@@ -46,7 +46,7 @@ export declare class ContentOverlay {
|
|
|
46
46
|
* @options center
|
|
47
47
|
* @options bottom
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
vertical: ContentVerticalAlignments;
|
|
50
50
|
/**
|
|
51
51
|
* Title attribute value for the close button.
|
|
52
52
|
* @type String
|
|
@@ -56,14 +56,16 @@ export declare class ContentOverlay {
|
|
|
56
56
|
activeClass: string;
|
|
57
57
|
classString: string;
|
|
58
58
|
contentOverlayActivated: EventEmitter<HTMLElement>;
|
|
59
|
-
contentSlot:
|
|
59
|
+
contentSlot: HTMLElement;
|
|
60
60
|
dialogElement: HTMLDivElement;
|
|
61
61
|
contentElement: HTMLDivElement;
|
|
62
62
|
isFullScreen: boolean;
|
|
63
|
+
hasCloseButton: boolean;
|
|
64
|
+
originalMarkup: string;
|
|
63
65
|
ariaDialog: any;
|
|
64
66
|
focusTrap: any;
|
|
65
67
|
onContentBlockActivated(event: CustomEvent): void;
|
|
66
|
-
openOverlay(): Promise<
|
|
68
|
+
openOverlay(): Promise<void>;
|
|
67
69
|
closeOverlay(): Promise<void>;
|
|
68
70
|
setComputedActiveClass(): void;
|
|
69
71
|
componentWillLoad(): void;
|
|
@@ -96,6 +96,11 @@ export namespace Components {
|
|
|
96
96
|
* @responsive
|
|
97
97
|
*/
|
|
98
98
|
"classes": ResponsiveString;
|
|
99
|
+
/**
|
|
100
|
+
* @type Number
|
|
101
|
+
* @responsive
|
|
102
|
+
*/
|
|
103
|
+
"columnGap": ResponsiveNumber;
|
|
99
104
|
/**
|
|
100
105
|
* @type Number
|
|
101
106
|
* @responsive
|
|
@@ -122,15 +127,16 @@ export namespace Components {
|
|
|
122
127
|
* @options space-evenly
|
|
123
128
|
* @responsive
|
|
124
129
|
*/
|
|
125
|
-
"
|
|
130
|
+
"horizontal": FLEX_JUSTIFY_OPTIONS;
|
|
126
131
|
/**
|
|
127
132
|
* Flex or grid
|
|
128
133
|
* @type Select
|
|
134
|
+
* @options none
|
|
129
135
|
* @options flex
|
|
130
136
|
* @options grid
|
|
131
137
|
* @responsive
|
|
132
138
|
*/
|
|
133
|
-
"type": GRID_TYPES;
|
|
139
|
+
"type": GRID_TYPES | ResponsiveString;
|
|
134
140
|
/**
|
|
135
141
|
* Vertical axis alignment
|
|
136
142
|
* @type Select
|
|
@@ -140,7 +146,7 @@ export namespace Components {
|
|
|
140
146
|
* @options space-evenly
|
|
141
147
|
* @responsive
|
|
142
148
|
*/
|
|
143
|
-
"
|
|
149
|
+
"vertical": FLEX_JUSTIFY_OPTIONS;
|
|
144
150
|
}
|
|
145
151
|
interface ContentHeroBlock {
|
|
146
152
|
/**
|
|
@@ -163,6 +169,11 @@ export namespace Components {
|
|
|
163
169
|
* @responsive
|
|
164
170
|
*/
|
|
165
171
|
"alt": ResponsiveString;
|
|
172
|
+
/**
|
|
173
|
+
* @type String
|
|
174
|
+
* @responsive
|
|
175
|
+
*/
|
|
176
|
+
"aspectRatio": ResponsiveString;
|
|
166
177
|
/**
|
|
167
178
|
* @type String
|
|
168
179
|
* @responsive
|
|
@@ -188,6 +199,12 @@ export namespace Components {
|
|
|
188
199
|
* @responsive
|
|
189
200
|
*/
|
|
190
201
|
"src": ResponsiveString;
|
|
202
|
+
/**
|
|
203
|
+
* @type Select
|
|
204
|
+
* @options image
|
|
205
|
+
* @options video
|
|
206
|
+
*/
|
|
207
|
+
"type"?: 'image' | 'video';
|
|
191
208
|
/**
|
|
192
209
|
* @type Select
|
|
193
210
|
* @options video/mp4
|
|
@@ -281,13 +298,13 @@ export namespace Components {
|
|
|
281
298
|
* @options right
|
|
282
299
|
* @responsive
|
|
283
300
|
*/
|
|
284
|
-
"
|
|
301
|
+
"horizontal": ContentLineTextAlignOptions1;
|
|
285
302
|
/**
|
|
286
303
|
* @type Boolean
|
|
287
304
|
* @responsive
|
|
288
305
|
*/
|
|
289
306
|
"open": ResponsiveBoolean;
|
|
290
|
-
"openOverlay": () => Promise<
|
|
307
|
+
"openOverlay": () => Promise<void>;
|
|
291
308
|
/**
|
|
292
309
|
* @type String
|
|
293
310
|
* @responsive
|
|
@@ -300,7 +317,7 @@ export namespace Components {
|
|
|
300
317
|
* @options center
|
|
301
318
|
* @options bottom
|
|
302
319
|
*/
|
|
303
|
-
"
|
|
320
|
+
"vertical": ContentVerticalAlignments;
|
|
304
321
|
}
|
|
305
322
|
interface ContentSpacer {
|
|
306
323
|
/**
|
|
@@ -330,7 +347,7 @@ export namespace Components {
|
|
|
330
347
|
* @options right
|
|
331
348
|
* @responsive
|
|
332
349
|
*/
|
|
333
|
-
"
|
|
350
|
+
"horizontal": ContentLineTextAlignOptions1;
|
|
334
351
|
/**
|
|
335
352
|
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
336
353
|
* @type Number
|
|
@@ -368,6 +385,15 @@ export namespace Components {
|
|
|
368
385
|
* @responsive
|
|
369
386
|
*/
|
|
370
387
|
"topOffset": ResponsiveNumber;
|
|
388
|
+
/**
|
|
389
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
390
|
+
* @type Select
|
|
391
|
+
* @options top
|
|
392
|
+
* @options center
|
|
393
|
+
* @options bottom
|
|
394
|
+
* @responsive
|
|
395
|
+
*/
|
|
396
|
+
"vertical": ContentVerticalAlignments;
|
|
371
397
|
}
|
|
372
398
|
interface ContentSplitBlock {
|
|
373
399
|
/**
|
|
@@ -429,7 +455,7 @@ export namespace Components {
|
|
|
429
455
|
* @options bottom
|
|
430
456
|
* @responsive
|
|
431
457
|
*/
|
|
432
|
-
"
|
|
458
|
+
"vertical": ContentVerticalAlignments;
|
|
433
459
|
}
|
|
434
460
|
interface ContentToutBlock {
|
|
435
461
|
/**
|
|
@@ -703,6 +729,11 @@ declare namespace LocalJSX {
|
|
|
703
729
|
* @responsive
|
|
704
730
|
*/
|
|
705
731
|
"classes"?: ResponsiveString;
|
|
732
|
+
/**
|
|
733
|
+
* @type Number
|
|
734
|
+
* @responsive
|
|
735
|
+
*/
|
|
736
|
+
"columnGap"?: ResponsiveNumber;
|
|
706
737
|
/**
|
|
707
738
|
* @type Number
|
|
708
739
|
* @responsive
|
|
@@ -729,15 +760,16 @@ declare namespace LocalJSX {
|
|
|
729
760
|
* @options space-evenly
|
|
730
761
|
* @responsive
|
|
731
762
|
*/
|
|
732
|
-
"
|
|
763
|
+
"horizontal"?: FLEX_JUSTIFY_OPTIONS;
|
|
733
764
|
/**
|
|
734
765
|
* Flex or grid
|
|
735
766
|
* @type Select
|
|
767
|
+
* @options none
|
|
736
768
|
* @options flex
|
|
737
769
|
* @options grid
|
|
738
770
|
* @responsive
|
|
739
771
|
*/
|
|
740
|
-
"type"?: GRID_TYPES;
|
|
772
|
+
"type"?: GRID_TYPES | ResponsiveString;
|
|
741
773
|
/**
|
|
742
774
|
* Vertical axis alignment
|
|
743
775
|
* @type Select
|
|
@@ -747,7 +779,7 @@ declare namespace LocalJSX {
|
|
|
747
779
|
* @options space-evenly
|
|
748
780
|
* @responsive
|
|
749
781
|
*/
|
|
750
|
-
"
|
|
782
|
+
"vertical"?: FLEX_JUSTIFY_OPTIONS;
|
|
751
783
|
}
|
|
752
784
|
interface ContentHeroBlock {
|
|
753
785
|
/**
|
|
@@ -770,6 +802,11 @@ declare namespace LocalJSX {
|
|
|
770
802
|
* @responsive
|
|
771
803
|
*/
|
|
772
804
|
"alt"?: ResponsiveString;
|
|
805
|
+
/**
|
|
806
|
+
* @type String
|
|
807
|
+
* @responsive
|
|
808
|
+
*/
|
|
809
|
+
"aspectRatio"?: ResponsiveString;
|
|
773
810
|
/**
|
|
774
811
|
* @type String
|
|
775
812
|
* @responsive
|
|
@@ -795,6 +832,12 @@ declare namespace LocalJSX {
|
|
|
795
832
|
* @responsive
|
|
796
833
|
*/
|
|
797
834
|
"src": ResponsiveString;
|
|
835
|
+
/**
|
|
836
|
+
* @type Select
|
|
837
|
+
* @options image
|
|
838
|
+
* @options video
|
|
839
|
+
*/
|
|
840
|
+
"type"?: 'image' | 'video';
|
|
798
841
|
/**
|
|
799
842
|
* @type Select
|
|
800
843
|
* @options video/mp4
|
|
@@ -887,7 +930,7 @@ declare namespace LocalJSX {
|
|
|
887
930
|
* @options right
|
|
888
931
|
* @responsive
|
|
889
932
|
*/
|
|
890
|
-
"
|
|
933
|
+
"horizontal"?: ContentLineTextAlignOptions1;
|
|
891
934
|
"onContentOverlayActivated"?: (event: ContentOverlayCustomEvent<HTMLElement>) => void;
|
|
892
935
|
/**
|
|
893
936
|
* @type Boolean
|
|
@@ -906,7 +949,7 @@ declare namespace LocalJSX {
|
|
|
906
949
|
* @options center
|
|
907
950
|
* @options bottom
|
|
908
951
|
*/
|
|
909
|
-
"
|
|
952
|
+
"vertical"?: ContentVerticalAlignments;
|
|
910
953
|
}
|
|
911
954
|
interface ContentSpacer {
|
|
912
955
|
/**
|
|
@@ -936,7 +979,7 @@ declare namespace LocalJSX {
|
|
|
936
979
|
* @options right
|
|
937
980
|
* @responsive
|
|
938
981
|
*/
|
|
939
|
-
"
|
|
982
|
+
"horizontal"?: ContentLineTextAlignOptions1;
|
|
940
983
|
/**
|
|
941
984
|
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
942
985
|
* @type Number
|
|
@@ -974,6 +1017,15 @@ declare namespace LocalJSX {
|
|
|
974
1017
|
* @responsive
|
|
975
1018
|
*/
|
|
976
1019
|
"topOffset"?: ResponsiveNumber;
|
|
1020
|
+
/**
|
|
1021
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
1022
|
+
* @type Select
|
|
1023
|
+
* @options top
|
|
1024
|
+
* @options center
|
|
1025
|
+
* @options bottom
|
|
1026
|
+
* @responsive
|
|
1027
|
+
*/
|
|
1028
|
+
"vertical"?: ContentVerticalAlignments;
|
|
977
1029
|
}
|
|
978
1030
|
interface ContentSplitBlock {
|
|
979
1031
|
/**
|
|
@@ -1035,7 +1087,7 @@ declare namespace LocalJSX {
|
|
|
1035
1087
|
* @options bottom
|
|
1036
1088
|
* @responsive
|
|
1037
1089
|
*/
|
|
1038
|
-
"
|
|
1090
|
+
"vertical"?: ContentVerticalAlignments;
|
|
1039
1091
|
}
|
|
1040
1092
|
interface ContentToutBlock {
|
|
1041
1093
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HostElement } from '../../stencil-public-runtime';
|
|
2
2
|
import { ResponsiveString } from '../../typings';
|
|
3
3
|
/**
|
|
4
4
|
* @slot content - Inner contents of the button, usually plaintext.
|
|
@@ -6,7 +6,7 @@ import { ResponsiveString } from '../../typings';
|
|
|
6
6
|
* @slot activatedContent - If this slot is used, the content in this will be scrolled to and triggered.
|
|
7
7
|
*/
|
|
8
8
|
export declare class ContentButton {
|
|
9
|
-
hostElement:
|
|
9
|
+
hostElement: HostElement;
|
|
10
10
|
/**
|
|
11
11
|
* @type URL
|
|
12
12
|
*/
|
|
@@ -35,6 +35,17 @@ export declare class ContentImage {
|
|
|
35
35
|
* @responsive
|
|
36
36
|
*/
|
|
37
37
|
height: ResponsiveNumber;
|
|
38
|
+
/**
|
|
39
|
+
* @type String
|
|
40
|
+
* @responsive
|
|
41
|
+
*/
|
|
42
|
+
aspectRatio: ResponsiveString;
|
|
43
|
+
/**
|
|
44
|
+
* @type Select
|
|
45
|
+
* @options image
|
|
46
|
+
* @options video
|
|
47
|
+
*/
|
|
48
|
+
type?: 'image' | 'video';
|
|
38
49
|
/**
|
|
39
50
|
* @type Select
|
|
40
51
|
* @options video/mp4
|
|
@@ -54,8 +65,10 @@ export declare class ContentImage {
|
|
|
54
65
|
[key: string]: string;
|
|
55
66
|
};
|
|
56
67
|
hasMediaContent: boolean;
|
|
68
|
+
pictureImageSrc: string;
|
|
57
69
|
preloadImage(src: any): Promise<unknown>;
|
|
58
70
|
componentWillLoad(): void;
|
|
71
|
+
componentDidLoad(): void;
|
|
59
72
|
watchLazyLoadIsComplete(newValue: boolean): void;
|
|
60
73
|
render(): any;
|
|
61
74
|
}
|
|
@@ -13,11 +13,12 @@ export declare class ContentGridFormatter {
|
|
|
13
13
|
/**
|
|
14
14
|
* Flex or grid
|
|
15
15
|
* @type Select
|
|
16
|
+
* @options none
|
|
16
17
|
* @options flex
|
|
17
18
|
* @options grid
|
|
18
19
|
* @responsive
|
|
19
20
|
*/
|
|
20
|
-
type: GRID_TYPES;
|
|
21
|
+
type: GRID_TYPES | ResponsiveString;
|
|
21
22
|
/**
|
|
22
23
|
* Setting this true to will grow all children. Alternatively, add the attribute [flex-grow="true"] to a specific grid child and that child will grow.
|
|
23
24
|
* @type Boolean
|
|
@@ -39,7 +40,7 @@ export declare class ContentGridFormatter {
|
|
|
39
40
|
* @options space-evenly
|
|
40
41
|
* @responsive
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
vertical: FLEX_JUSTIFY_OPTIONS;
|
|
43
44
|
/**
|
|
44
45
|
* Horizontal axis alignment
|
|
45
46
|
* @type Select
|
|
@@ -49,17 +50,22 @@ export declare class ContentGridFormatter {
|
|
|
49
50
|
* @options space-evenly
|
|
50
51
|
* @responsive
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
|
+
horizontal: FLEX_JUSTIFY_OPTIONS;
|
|
53
54
|
/**
|
|
54
55
|
* @type Number
|
|
55
56
|
* @responsive
|
|
56
57
|
*/
|
|
57
58
|
columns: ResponsiveNumber;
|
|
59
|
+
/**
|
|
60
|
+
* @type Number
|
|
61
|
+
* @responsive
|
|
62
|
+
*/
|
|
63
|
+
columnGap: ResponsiveNumber;
|
|
58
64
|
activeClassString: string;
|
|
59
65
|
inlineStyle: {
|
|
60
66
|
[key: string]: string;
|
|
61
67
|
};
|
|
62
|
-
|
|
68
|
+
componentWillLoad(): Promise<[PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>]>;
|
|
63
69
|
render(): any;
|
|
64
70
|
}
|
|
65
71
|
//# sourceMappingURL=content-grid-formatter.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentLineTextAlignOptions, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';
|
|
1
|
+
import { ContentLineTextAlignOptions, ContentVerticalAlignments, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';
|
|
2
2
|
/**
|
|
3
3
|
* @slot content - Inner contents of spacing wrapper, can be anything.
|
|
4
4
|
* @slot - Default slot, same as content slot.
|
|
@@ -41,7 +41,16 @@ export declare class ContentSpacingWrapper {
|
|
|
41
41
|
* @options right
|
|
42
42
|
* @responsive
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
horizontal: ContentLineTextAlignOptions;
|
|
45
|
+
/**
|
|
46
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
47
|
+
* @type Select
|
|
48
|
+
* @options top
|
|
49
|
+
* @options center
|
|
50
|
+
* @options bottom
|
|
51
|
+
* @responsive
|
|
52
|
+
*/
|
|
53
|
+
vertical: ContentVerticalAlignments;
|
|
45
54
|
/**
|
|
46
55
|
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
47
56
|
* @type Number
|
package/dist/types/typings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type GRID_TYPES =
|
|
1
|
+
export type GRID_TYPES = 'none' | 'flex' | 'grid';
|
|
2
2
|
|
|
3
|
-
export type FLEX_JUSTIFY_OPTIONS =
|
|
3
|
+
export type FLEX_JUSTIFY_OPTIONS = 'flex-start' | 'space-between' | 'center' | 'space-evenly';
|
|
4
4
|
|
|
5
5
|
export type ContentLineTextAlignOptions = 'default' | 'left' | 'center' | 'right';
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ export type ContentVerticalAlignments = 'top' | 'center' | 'bottom';
|
|
|
8
8
|
|
|
9
9
|
export type ResponsiveNumber = string;
|
|
10
10
|
export type ResponsiveString = string;
|
|
11
|
-
export type ResponsiveBoolean = string;
|
|
11
|
+
export type ResponsiveBoolean = string;
|