@carbon/ibmdotcom-web-components 2.19.0 → 2.20.0-rc.1
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/custom-elements.json +26 -0
- package/dist/dotcom-shell.js +2 -2
- package/dist/dotcom-shell.min.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
- package/dist/{index-c170f583.js → index-10b27b92.js} +142 -92
- package/dist/{index-e036ca71.js → index-cbb4e54c.js} +163 -149
- package/dist/{left-nav-menu-4d6eb1b4.js → left-nav-menu-a481bfbf.js} +2 -2
- package/dist/{left-nav-menu-category-heading-d3e3fe58.js → left-nav-menu-category-heading-6946ea7d.js} +2 -2
- package/dist/{left-nav-menu-category-heading-a25b0cc1.js → left-nav-menu-category-heading-f0c80ad4.js} +2 -2
- package/dist/{left-nav-menu-f4e04f0e.js → left-nav-menu-da8415dd.js} +2 -2
- package/dist/{left-nav-menu-item-811fc7c1.js → left-nav-menu-item-77a8269f.js} +2 -2
- package/dist/{left-nav-menu-item-bd5d9c44.js → left-nav-menu-item-d45e84b5.js} +2 -2
- package/dist/{left-nav-menu-section-0e309329.js → left-nav-menu-section-86c30502.js} +2 -2
- package/dist/{left-nav-menu-section-5df12ffe.js → left-nav-menu-section-c7395032.js} +2 -2
- package/dist/{left-nav-overlay-dfcead9f.js → left-nav-overlay-bab6fd26.js} +2 -2
- package/dist/{left-nav-overlay-9901325e.js → left-nav-overlay-dfda4772.js} +2 -2
- package/dist/{megamenu-category-group-1fe20e84.js → megamenu-category-group-a446500c.js} +2 -2
- package/dist/{megamenu-category-group-copy-9e055fdb.js → megamenu-category-group-copy-34dccefe.js} +2 -2
- package/dist/{megamenu-category-group-copy-3e931add.js → megamenu-category-group-copy-c3705041.js} +2 -2
- package/dist/{megamenu-category-group-e66ac644.js → megamenu-category-group-ff0d7872.js} +2 -2
- package/dist/{megamenu-category-heading-ce5ff1af.js → megamenu-category-heading-64360996.js} +2 -2
- package/dist/{megamenu-category-heading-b955261e.js → megamenu-category-heading-a3666ae7.js} +2 -2
- package/dist/{megamenu-category-link-d6e06697.js → megamenu-category-link-e9af0cab.js} +2 -2
- package/dist/{megamenu-category-link-cf5ed9c6.js → megamenu-category-link-f68d7446.js} +2 -2
- package/dist/{megamenu-category-link-group-6937810d.js → megamenu-category-link-group-2f642fbf.js} +2 -2
- package/dist/{megamenu-category-link-group-82095cb0.js → megamenu-category-link-group-83c04b42.js} +2 -2
- package/dist/{megamenu-left-navigation-c5f6d570.js → megamenu-left-navigation-464dd4e6.js} +2 -2
- package/dist/{megamenu-left-navigation-35933c46.js → megamenu-left-navigation-7129bd38.js} +2 -2
- package/dist/{megamenu-overlay-7849e53b.js → megamenu-overlay-0cf033de.js} +2 -2
- package/dist/{megamenu-overlay-e909dead.js → megamenu-overlay-bc64ee8b.js} +2 -2
- package/dist/{megamenu-tab-79329e5c.js → megamenu-tab-599dfba3.js} +2 -2
- package/dist/{megamenu-tab-210f5e5c.js → megamenu-tab-ada40671.js} +2 -2
- package/es/components/masthead/masthead-composite.d.ts +5 -0
- package/es/components/masthead/masthead-composite.js +45 -7
- package/es/components/masthead/masthead-composite.js.map +1 -1
- package/es/components/masthead/masthead.css.js +1 -1
- package/es/components/table-of-contents/table-of-contents.js +3 -3
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +5 -5
- package/scss/components/masthead/masthead.scss +12 -0
package/dist/{megamenu-category-heading-b955261e.js → megamenu-category-heading-a3666ae7.js}
RENAMED
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import{h as e,j as r,k as t,n as i,s as n,c as o,a as s}from"./index-
|
|
90
|
+
import{h as e,j as r,k as t,n as i,s as n,c as o,a as s}from"./index-cbb4e54c.js";function a(){a=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var n=r.placement;if(r.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!d(e))return t.push(e);var r=this.decorateElement(e,n);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var o=this.decorateConstructor(t,r);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[i])(n)||n);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return(r=e,function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return h(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this);var r},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=u(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:t,placement:i,descriptor:Object.assign({},n)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:p(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=p(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function l(e){var r,t=u(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function c(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function d(e){return e.decorators&&e.decorators.length}function f(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function p(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}function u(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}const{stablePrefix:m}=s;let y=function(e,r,t,i){var n=a();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=r((function(e){n.initializeInstanceElements(e,p.elements)}),t),p=n.decorateClass(function(e){for(var r=[],t=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=r.find(t)))if(f(o.descriptor)||f(n.descriptor)){if(d(o)||d(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(d(o)){if(d(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}c(o,n)}else r.push(o)}return r}(s.d.map(l)),e);return n.initializeClassElements(s.F,p.elements),n.runClassFinishers(s.F,p.finishers)}([o(`${m}-megamenu-category-heading`)],(function(e,o){return{F:class extends o{constructor(...r){super(...r),e(this)}},d:[{kind:"get",key:"_arrowIcon",value:function(){return"rtl"===document.dir.toLowerCase()?r({part:"l0-arrow-cat-heading"}):t({part:"l0-arrow-cat-heading"})}},{kind:"field",decorators:[i({reflect:!0,type:Number,attribute:"heading-level"})],key:"headingLevel",value:()=>3},{kind:"field",static:!0,key:"styles",value:()=>n}]}}),e);export{y as default};
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import{b as e,d as t,e as r,n as i,x as n,i as o,f as a,s,c as l,a as c}from"./index-
|
|
90
|
+
import{b as e,d as t,e as r,n as i,x as n,i as o,f as a,s,c as l,a as c}from"./index-cbb4e54c.js";
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
93
93
|
*
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import { b, d as spread, e as CDSLink, n, x, i as ifNonEmpty, f as C4DMegaMenu, s as styles, c as carbonElement, a as settings } from './index-
|
|
91
|
+
import { b, d as spread, e as CDSLink, n, x, i as ifNonEmpty, f as C4DMegaMenu, s as styles, c as carbonElement, a as settings } from './index-10b27b92.js';
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* @license
|
package/dist/{megamenu-category-link-group-6937810d.js → megamenu-category-link-group-2f642fbf.js}
RENAMED
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import{g as e,x as r,s as t,c as i,a as n}from"./index-
|
|
90
|
+
import{g as e,x as r,s as t,c as i,a as n}from"./index-cbb4e54c.js";let o,s=e=>e;function a(){a=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var n=r.placement;if(r.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!d(e))return t.push(e);var r=this.decorateElement(e,n);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var o=this.decorateConstructor(t,r);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[i])(n)||n);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return(r=e,function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return m(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this);var r},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=u(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:t,placement:i,descriptor:Object.assign({},n)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:p(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=p(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function l(e){var r,t=u(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function c(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function d(e){return e.decorators&&e.decorators.length}function f(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function p(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}function u(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}const{stablePrefix:h}=n;let y=function(e,r,t,i){var n=a();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=r((function(e){n.initializeInstanceElements(e,p.elements)}),t),p=n.decorateClass(function(e){for(var r=[],t=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=r.find(t)))if(f(o.descriptor)||f(n.descriptor)){if(d(o)||d(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(d(o)){if(d(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}c(o,n)}else r.push(o)}return r}(s.d.map(l)),e);return n.initializeClassElements(s.F,p.elements),n.runClassFinishers(s.F,p.finishers)}([i(`${h}-megamenu-category-link-group`)],(function(e,i){return{F:class extends i{constructor(...r){super(...r),e(this)}},d:[{kind:"method",key:"render",value:function(){return r(o||(o=s` <slot></slot> `))}},{kind:"field",static:!0,key:"styles",value:()=>t}]}}),e);export{y as default};
|
package/dist/{megamenu-category-link-group-82095cb0.js → megamenu-category-link-group-83c04b42.js}
RENAMED
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import { g as s, x, s as styles, c as carbonElement, a as settings } from './index-
|
|
91
|
+
import { g as s, x, s as styles, c as carbonElement, a as settings } from './index-10b27b92.js';
|
|
92
92
|
|
|
93
93
|
let _ = t => t,
|
|
94
94
|
_t;
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import{C as e,s as t,c as r,a as i}from"./index-
|
|
90
|
+
import{C as e,s as t,c as r,a as i}from"./index-cbb4e54c.js";function n(){n=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var n=t.placement;if(t.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var i=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!a(e))return r.push(e);var t=this.decorateElement(e,n);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var o=this.decorateConstructor(r,t);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,t,r){var i=t[e.placement];if(!r&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var r=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,t),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],t);r.push.apply(r,c)}}return{element:e,finishers:i,extras:r}},decorateConstructor:function(e,t){for(var r=[],i=t.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:r}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this);var t},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=d(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:c(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var r=c(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:r}},runClassFinishers:function(e,t){for(var r=0;r<t.length;r++){var i=(0,t[r])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,t,r){if(void 0!==e[t])throw new TypeError(r+" can't have a ."+t+" property.")}};return e}function o(e){var t,r=d(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function s(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function a(e){return e.decorators&&e.decorators.length}function l(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function c(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}const{stablePrefix:p}=i;let u=function(e,t,r,i){var c=n();if(i)for(var d=0;d<i.length;d++)c=i[d](c);var f=t((function(e){c.initializeInstanceElements(e,p.elements)}),r),p=c.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=t.find(r)))if(l(o.descriptor)||l(n.descriptor)){if(a(o)||a(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(a(o)){if(a(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}s(o,n)}else t.push(o)}return t}(f.d.map(o)),e);return c.initializeClassElements(f.F,p.elements),c.runClassFinishers(f.F,p.finishers)}([r(`${p}-megamenu-left-navigation`)],(function(e,r){return{F:class extends r{constructor(...t){super(...t),e(this)}},d:[{kind:"field",static:!0,key:"styles",value:()=>t},{kind:"get",static:!0,key:"onlyChildClassName",value:function(){return""}},{kind:"get",static:!0,key:"stableSelector",value:function(){return`${p}--masthead__megamenu-left-navigation`}}]}}),e);export{u as default};
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import { C as C4DMegaMenuRightNavigation, s as styles, c as carbonElement, a as settings } from './index-
|
|
91
|
+
import { C as C4DMegaMenuRightNavigation, s as styles, c as carbonElement, a as settings } from './index-10b27b92.js';
|
|
92
92
|
|
|
93
93
|
function _decorate(e, r, t, i) { var o = _getDecoratorsApi(); if (i) for (var n = 0; n < i.length; n++) o = i[n](o); var s = r(function (e) { o.initializeInstanceElements(e, a.elements); }, t), a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); }
|
|
94
94
|
function _getDecoratorsApi() { _getDecoratorsApi = function () { return e; }; var e = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function (e, r) { ["method", "field"].forEach(function (t) { r.forEach(function (r) { r.kind === t && "own" === r.placement && this.defineClassElement(e, r); }, this); }, this); }, initializeClassElements: function (e, r) { var t = e.prototype; ["method", "field"].forEach(function (i) { r.forEach(function (r) { var o = r.placement; if (r.kind === i && ("static" === o || "prototype" === o)) { var n = "static" === o ? e : t; this.defineClassElement(n, r); } }, this); }, this); }, defineClassElement: function (e, r) { var t = r.descriptor; if ("field" === r.kind) { var i = r.initializer; t = { enumerable: t.enumerable, writable: t.writable, configurable: t.configurable, value: void 0 === i ? void 0 : i.call(e) }; } Object.defineProperty(e, r.key, t); }, decorateClass: function (e, r) { var t = [], i = [], o = { static: [], prototype: [], own: [] }; if (e.forEach(function (e) { this.addElementPlacement(e, o); }, this), e.forEach(function (e) { if (!_hasDecorators(e)) return t.push(e); var r = this.decorateElement(e, o); t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); }, this), !r) return { elements: t, finishers: i }; var n = this.decorateConstructor(t, r); return i.push.apply(i, n.finishers), n.finishers = i, n; }, addElementPlacement: function (e, r, t) { var i = r[e.placement]; if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); i.push(e.key); }, decorateElement: function (e, r) { for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { var s = r[e.placement]; s.splice(s.indexOf(e.key), 1); var a = this.fromElementDescriptor(e), l = this.toElementFinisherExtras((0, o[n])(a) || a); e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); var c = l.extras; if (c) { for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); t.push.apply(t, c); } } return { element: e, finishers: i, extras: t }; }, decorateConstructor: function (e, r) { for (var t = [], i = r.length - 1; i >= 0; i--) { var o = this.fromClassDescriptor(e), n = this.toClassDescriptor((0, r[i])(o) || o); if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { e = n.elements; for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); } } return { elements: e, finishers: t }; }, fromElementDescriptor: function (e) { var r = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor }; return Object.defineProperty(r, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), "field" === e.kind && (r.initializer = e.initializer), r; }, toElementDescriptors: function (e) { if (void 0 !== e) return _toArray(e).map(function (e) { var r = this.toElementDescriptor(e); return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; }, this); }, toElementDescriptor: function (e) { var r = e.kind + ""; if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); var t = _toPropertyKey(e.key), i = e.placement + ""; if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); var o = e.descriptor; this.disallowProperty(e, "elements", "An element descriptor"); var n = { kind: r, key: t, placement: i, descriptor: Object.assign({}, o) }; return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; }, toElementFinisherExtras: function (e) { return { element: this.toElementDescriptor(e), finisher: _optionalCallableProperty(e, "finisher"), extras: this.toElementDescriptors(e.extras) }; }, fromClassDescriptor: function (e) { var r = { kind: "class", elements: e.map(this.fromElementDescriptor, this) }; return Object.defineProperty(r, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), r; }, toClassDescriptor: function (e) { var r = e.kind + ""; if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); var t = _optionalCallableProperty(e, "finisher"); return { elements: this.toElementDescriptors(e.elements), finisher: t }; }, runClassFinishers: function (e, r) { for (var t = 0; t < r.length; t++) { var i = (0, r[t])(e); if (void 0 !== i) { if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); e = i; } } return e; }, disallowProperty: function (e, r, t) { if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); } }; return e; }
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import { g as s, n, x, s as styles, c as carbonElement, a as settings } from './index-
|
|
91
|
+
import { g as s, n, x, s as styles, c as carbonElement, a as settings } from './index-10b27b92.js';
|
|
92
92
|
|
|
93
93
|
let _ = t => t,
|
|
94
94
|
_t;
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import{g as e,n as r,x as t,s as i,c as n,a as o}from"./index-
|
|
90
|
+
import{g as e,n as r,x as t,s as i,c as n,a as o}from"./index-cbb4e54c.js";let s,a=e=>e;function l(){l=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var n=r.placement;if(r.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!f(e))return t.push(e);var r=this.decorateElement(e,n);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var o=this.decorateConstructor(t,r);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[i])(n)||n);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return(r=e,function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return h(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this);var r},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=m(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:t,placement:i,descriptor:Object.assign({},n)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:u(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=u(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function c(e){var r,t=m(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function d(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function f(e){return e.decorators&&e.decorators.length}function p(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function u(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}function m(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}const{stablePrefix:y}=o;let v=function(e,r,t,i){var n=l();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=r((function(e){n.initializeInstanceElements(e,a.elements)}),t),a=n.decorateClass(function(e){for(var r=[],t=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=r.find(t)))if(p(o.descriptor)||p(n.descriptor)){if(f(o)||f(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(f(o)){if(f(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}d(o,n)}else r.push(o)}return r}(s.d.map(c)),e);return n.initializeClassElements(s.F,a.elements),n.runClassFinishers(s.F,a.finishers)}([n(`${y}-megamenu-overlay`)],(function(e,n){return{F:class extends n{constructor(...r){super(...r),e(this)}},d:[{kind:"field",decorators:[r({type:Boolean,reflect:!0})],key:"active",value:()=>!1},{kind:"method",key:"render",value:function(){return t(s||(s=a` <slot></slot> `))}},{kind:"field",static:!0,key:"styles",value:()=>i}]}}),e);export{v as default};
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import { _ as _decorate$1, F as FocusMixin, g as s, n, p as prefix$1, x, l as _objectSpread2, m as styles, c as carbonElement, o as l, q as o, T as TABS_TYPE, r as styles$1, t as _get$1, u as _getPrototypeOf$1, s as styles$2, a as settings } from './index-
|
|
91
|
+
import { _ as _decorate$1, F as FocusMixin, g as s, n, p as prefix$1, x, l as _objectSpread2, m as styles, c as carbonElement, o as l, q as o, T as TABS_TYPE, r as styles$1, t as _get$1, u as _getPrototypeOf$1, s as styles$2, a as settings } from './index-10b27b92.js';
|
|
92
92
|
|
|
93
93
|
let _$2 = t => t,
|
|
94
94
|
_t$2,
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import{_ as e,F as t,g as r,n as i,p as n,x as o,l as a,m as s,c as l,o as c,q as d,T as u,r as f,t as p,u as h,s as y,a as m}from"./index-
|
|
90
|
+
import{_ as e,F as t,g as r,n as i,p as n,x as o,l as a,m as s,c as l,o as c,q as d,T as u,r as f,t as p,u as h,s as y,a as m}from"./index-cbb4e54c.js";let v,k,b,g,w=e=>e,E=e([l(`${n}-content-switcher-item`)],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[i({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[i({type:Boolean,reflect:!0,attribute:"hide-divider"})],key:"hideDivider",value:()=>!1},{kind:"field",decorators:[i({type:Boolean,reflect:!0})],key:"selected",value:()=>!1},{kind:"field",decorators:[i()],key:"target",value:void 0},{kind:"field",decorators:[i()],key:"value",value:()=>""},{kind:"field",decorators:[i({type:Boolean,reflect:!0})],key:"icon",value:()=>!1},{kind:"field",decorators:[i({reflect:!0,type:String})],key:"align",value:()=>"top"},{kind:"field",decorators:[i({attribute:"close-on-activation",reflect:!0,type:Boolean})],key:"closeOnActivation",value:()=>!0},{kind:"field",key:"enterDelayMs",value:()=>100},{kind:"field",key:"leaveDelayMs",value:()=>100},{kind:"method",key:"updated",value:function(e){var t;e&&(null===(t=this.shadowRoot)||void 0===t||null===(t=t.querySelector(`${n}-tooltip`))||void 0===t||null===(t=t.shadowRoot)||void 0===t||null===(t=t.querySelector(`.${n}--tooltip`))||void 0===t||t.classList.add(`${n}--icon-tooltip`))}},{kind:"method",key:"_renderTooltipContent",value:function(){return o(v||(v=w`
|
|
91
91
|
<cds-tooltip-content>
|
|
92
92
|
<slot name="tooltip-content"></slot>
|
|
93
93
|
</cds-tooltip-content>
|
|
@@ -597,6 +597,7 @@ declare class C4DMastheadComposite extends C4DMastheadComposite_base {
|
|
|
597
597
|
* @returns {TemplateResult} A template fragment representing the contact button.
|
|
598
598
|
*/
|
|
599
599
|
protected _renderContact(): TemplateResult<1> | undefined;
|
|
600
|
+
protected _renderLanguageSelector(): TemplateResult<1> | undefined;
|
|
600
601
|
protected _renderCart(): TemplateResult<1> | undefined;
|
|
601
602
|
/**
|
|
602
603
|
* Gets the appropriate profile items for the current masthead state.
|
|
@@ -757,6 +758,10 @@ declare class C4DMastheadComposite extends C4DMastheadComposite_base {
|
|
|
757
758
|
* `true` if Contact us should be shown.
|
|
758
759
|
*/
|
|
759
760
|
hasContact: string;
|
|
761
|
+
/**
|
|
762
|
+
* `true` if Language Selector should be shown.
|
|
763
|
+
*/
|
|
764
|
+
hasLanguageSelector: string;
|
|
760
765
|
/**
|
|
761
766
|
* `true` if Cart should be shown.
|
|
762
767
|
*/
|
|
@@ -40,7 +40,8 @@ let _ = t => t,
|
|
|
40
40
|
_t35,
|
|
41
41
|
_t36,
|
|
42
42
|
_t37,
|
|
43
|
-
_t38
|
|
43
|
+
_t38,
|
|
44
|
+
_t39;
|
|
44
45
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45
46
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46
47
|
function _superPropGet(t, e, r, o) { var p = _get(_getPrototypeOf(1 & o ? t.prototype : t), e, r); return 2 & o ? function (t) { return p.apply(r, t); } : p; }
|
|
@@ -58,6 +59,7 @@ import { state, property, query } from 'lit/decorators.js';
|
|
|
58
59
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
59
60
|
import ArrowRight16 from '@carbon/web-components/es/icons/arrow--right/16.js';
|
|
60
61
|
import ArrowLeft16 from '@carbon/web-components/es/icons/arrow--left/16.js';
|
|
62
|
+
import Wikis from '@carbon/web-components/es/icons/wikis/20.js';
|
|
61
63
|
import ifNonEmpty from '@carbon/web-components/es/globals/directives/if-non-empty.js';
|
|
62
64
|
import { unsafeSVG } from 'lit/directives/unsafe-svg.js';
|
|
63
65
|
import root from 'window-or-global';
|
|
@@ -1259,6 +1261,21 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1259
1261
|
trigger-label="${0}"></c4d-masthead-contact>
|
|
1260
1262
|
`), ifDefined(contactUsButton === null || contactUsButton === void 0 ? void 0 : contactUsButton.title));
|
|
1261
1263
|
}
|
|
1264
|
+
}, {
|
|
1265
|
+
kind: "method",
|
|
1266
|
+
key: "_renderLanguageSelector",
|
|
1267
|
+
value: function _renderLanguageSelector() {
|
|
1268
|
+
const {
|
|
1269
|
+
hasLanguageSelector
|
|
1270
|
+
} = this;
|
|
1271
|
+
return hasLanguageSelector === 'false' ? undefined : html(_t35 || (_t35 = _`
|
|
1272
|
+
<div class="earth-language-icon" part="earth-l0-icon">
|
|
1273
|
+
${0}
|
|
1274
|
+
</div>
|
|
1275
|
+
`), Wikis({
|
|
1276
|
+
part: 'earth-l0-svg'
|
|
1277
|
+
}));
|
|
1278
|
+
}
|
|
1262
1279
|
}, {
|
|
1263
1280
|
kind: "method",
|
|
1264
1281
|
key: "_renderCart",
|
|
@@ -1267,7 +1284,7 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1267
1284
|
hasCart,
|
|
1268
1285
|
cartLabel
|
|
1269
1286
|
} = this;
|
|
1270
|
-
return hasCart ? html(
|
|
1287
|
+
return hasCart ? html(_t36 || (_t36 = _`<c4d-masthead-cart link-label="${0}"></c4d-masthead-cart>`), cartLabel) : undefined;
|
|
1271
1288
|
}
|
|
1272
1289
|
|
|
1273
1290
|
/**
|
|
@@ -1315,14 +1332,14 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1315
1332
|
hasProfile,
|
|
1316
1333
|
userIsAuthenticated
|
|
1317
1334
|
} = this;
|
|
1318
|
-
return hasProfile === 'false' ? '' : html(
|
|
1335
|
+
return hasProfile === 'false' ? '' : html(_t37 || (_t37 = _`
|
|
1319
1336
|
<c4d-masthead-profile ?authenticated="${0}">
|
|
1320
1337
|
${0}
|
|
1321
1338
|
</c4d-masthead-profile>
|
|
1322
1339
|
`), userIsAuthenticated, (_this$_getProfileItem = this._getProfileItems()) === null || _this$_getProfileItem === void 0 ? void 0 : _this$_getProfileItem.map(({
|
|
1323
1340
|
title,
|
|
1324
1341
|
url
|
|
1325
|
-
}) => html(
|
|
1342
|
+
}) => html(_t38 || (_t38 = _`
|
|
1326
1343
|
<c4d-masthead-profile-item href="${0}">
|
|
1327
1344
|
${0}
|
|
1328
1345
|
</c4d-masthead-profile-item>
|
|
@@ -1758,6 +1775,17 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1758
1775
|
value() {
|
|
1759
1776
|
return 'true';
|
|
1760
1777
|
}
|
|
1778
|
+
}, {
|
|
1779
|
+
kind: "field",
|
|
1780
|
+
decorators: [property({
|
|
1781
|
+
type: String,
|
|
1782
|
+
reflect: true,
|
|
1783
|
+
attribute: 'has-language-selector'
|
|
1784
|
+
})],
|
|
1785
|
+
key: "hasLanguageSelector",
|
|
1786
|
+
value() {
|
|
1787
|
+
return 'true';
|
|
1788
|
+
}
|
|
1761
1789
|
}, {
|
|
1762
1790
|
kind: "field",
|
|
1763
1791
|
decorators: [property({
|
|
@@ -1811,6 +1839,9 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1811
1839
|
/**
|
|
1812
1840
|
* `true` if Contact us should be shown.
|
|
1813
1841
|
*/
|
|
1842
|
+
/**
|
|
1843
|
+
* `true` if Language Selector should be shown.
|
|
1844
|
+
*/
|
|
1814
1845
|
/**
|
|
1815
1846
|
* `true` if Cart should be shown.
|
|
1816
1847
|
*/
|
|
@@ -1911,6 +1942,12 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1911
1942
|
|
|
1912
1943
|
// Keep render root's height in sync with c4d-masthead.
|
|
1913
1944
|
this._heightResizeObserver.observe(this.mastheadRef);
|
|
1945
|
+
const mastheadHasLanguageSelector = this.querySelector('c4d-masthead[has-language-selector]');
|
|
1946
|
+
if (mastheadHasLanguageSelector) {
|
|
1947
|
+
this.hasLanguageSelector = 'true';
|
|
1948
|
+
} else {
|
|
1949
|
+
this.hasLanguageSelector = 'false';
|
|
1950
|
+
}
|
|
1914
1951
|
}
|
|
1915
1952
|
}, {
|
|
1916
1953
|
kind: "method",
|
|
@@ -1946,7 +1983,7 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1946
1983
|
skipToContentText,
|
|
1947
1984
|
skipToContentHref
|
|
1948
1985
|
} = this;
|
|
1949
|
-
return html(
|
|
1986
|
+
return html(_t39 || (_t39 = _`
|
|
1950
1987
|
${0}
|
|
1951
1988
|
<c4d-masthead
|
|
1952
1989
|
?has-l1=${0}
|
|
@@ -1958,13 +1995,14 @@ let C4DMastheadComposite = _decorate([customElement(`${c4dPrefix}-masthead-compo
|
|
|
1958
1995
|
${0}
|
|
1959
1996
|
${0} ${0}
|
|
1960
1997
|
<c4d-masthead-global-bar ?has-search-active=${0}>
|
|
1961
|
-
${0}
|
|
1998
|
+
${0}
|
|
1999
|
+
${0}${0}
|
|
1962
2000
|
${0}
|
|
1963
2001
|
</c4d-masthead-global-bar>
|
|
1964
2002
|
${0}
|
|
1965
2003
|
<c4d-megamenu-overlay></c4d-megamenu-overlay>
|
|
1966
2004
|
</c4d-masthead>
|
|
1967
|
-
`), isMobileVersion ? this._renderLeftNav() : '', this.l1Data, ifNonEmpty(mastheadAssistiveText), skipToContentHref, skipToContentText, isMobileVersion ? this._renderMenuButton() : '', this._renderLogo(), this._renderPlatformTitle(), !isMobileVersion ? this._renderTopNav() : '', this._renderSearch(), activateSearch, this._renderContact(), this._renderCart(), this._renderProfileMenu(), this._renderL1());
|
|
2005
|
+
`), isMobileVersion ? this._renderLeftNav() : '', this.l1Data, ifNonEmpty(mastheadAssistiveText), skipToContentHref, skipToContentText, isMobileVersion ? this._renderMenuButton() : '', this._renderLogo(), this._renderPlatformTitle(), !isMobileVersion ? this._renderTopNav() : '', this._renderSearch(), activateSearch, this._renderContact(), this._renderCart(), this._renderLanguageSelector(), this._renderProfileMenu(), this._renderL1());
|
|
1968
2006
|
}
|
|
1969
2007
|
}, {
|
|
1970
2008
|
kind: "method",
|