@kartverket/geonorge-web-components 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationTabs.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkB,SAAID,KAEtBD,EAAe,SAAIA,EAAe,UAAK,CAAC,EAAGA,EAAe,SAAkB,eAAIC,IACjF,CATD,CASGK,MAAM,I,wGCNLC,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACL,EAAOM,GAAI,GAAI,GAAG,CAAC,QAAU,EAAE,QAAU,GAAG,MAAQ,GAAG,SAAW,GAAG,WAAa,MAEhH,S,gFCJIF,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACL,EAAOM,GAAI,2hBAA8hB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,iGAAiG,+CAA+C,4CAA4C,MAAQ,GAAG,SAAW,4QAA4Q,eAAiB,CAAC,+3BAAi4B,gFAAoF,8uBAA8uB,WAAa,MAElyF,S,gFCJIF,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACL,EAAOM,GAAI,mLAAsL,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mEAAmE,gDAAgD,MAAQ,GAAG,SAAW,sFAAsF,eAAiB,CAAC,2RAA6R,iFAAqF,WAAa,MAE12B,S,+CCPA,uE,+CCAA,uE,+CCAA,8J,WCMAN,EAAOD,QAAU,SAAUQ,GACzB,IAAIC,EAAO,GA6FX,OA3FAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GA4B5B,OA1BIA,EAAK,KACPC,GAAW,cAAcE,OAAO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A,CAAM,ECLdL,EAAoBO,EAAI,CAAC9N,EAASgO,KACjC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAElO,EAASiO,IAC5EtK,OAAOgE,eAAe3H,EAASiO,EAAK,CAAEE,YAAY,EAAM9H,IAAK2H,EAAWC,IAE1E,ECNDV,EAAoBW,EAAI,CAACE,EAAK1F,IAAU/E,OAAOZ,UAAU4H,eAAenD,KAAK4G,EAAK1F,GCClF6E,EAAoBc,EAAKrO,IACH,oBAAXsO,QAA0BA,OAAOC,aAC1C5K,OAAOgE,eAAe3H,EAASsO,OAAOC,YAAa,CAAEjG,MAAO,WAE7D3E,OAAOgE,eAAe3H,EAAS,aAAc,CAAEsI,OAAO,GAAO,ECFpCiF,EAAoB,I","sources":["webpack://geonorge/webpack/universalModuleDefinition","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tabs.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content.html","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.html","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tabs.html","webpack://geonorge/../node_modules/css-loader/dist/runtime/api.js","webpack://geonorge/../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://geonorge/../node_modules/super-custom-elements/src/component.ts","webpack://geonorge/../node_modules/super-custom-elements/src/custom-element.ts","webpack://geonorge/../node_modules/super-custom-elements/src/helpers.ts","webpack://geonorge/../node_modules/super-custom-elements/src/index.ts","webpack://geonorge/../node_modules/super-custom-elements/src/listen.ts","webpack://geonorge/../node_modules/super-custom-elements/src/prop.ts","webpack://geonorge/../node_modules/super-custom-elements/src/toggle.ts","webpack://geonorge/../node_modules/super-custom-elements/src/util.ts","webpack://geonorge/../node_modules/super-custom-elements/src/watch.ts","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content.ts","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.ts","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tabs.ts","webpack://geonorge/webpack/bootstrap","webpack://geonorge/webpack/runtime/compat get default export","webpack://geonorge/webpack/runtime/define property getters","webpack://geonorge/webpack/runtime/hasOwnProperty shorthand","webpack://geonorge/webpack/runtime/make namespace object","webpack://geonorge/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"geonorge\"] = factory();\n\telse\n\t\troot[\"geonorge\"] = root[\"geonorge\"] || {}, root[\"geonorge\"][\"NavigationTabs\"] = factory();\n})(self, () => {\nreturn ","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"\", \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":host{font-family:\\\"Open Sans\\\",sans-serif;display:inline-flex;cursor:pointer}:host slot{display:block;background-color:#4c7aa9;padding:10px 12px;transition:all .35s linear 0s;color:#fff;border-bottom:1px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:0;font-size:13px;margin-bottom:0;margin-bottom:-1px;margin-right:2px}:host slot:hover{background-color:#fe5000;color:#fff;border-color:rgba(0,0,0,0)}:host slot.selected{border:1px solid #414042;border-bottom:1px solid #fff;background-color:#fff;color:#555;cursor:default}\", \"\",{\"version\":3,\"sources\":[\"webpack://./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.scss\",\"webpack://./style/variables/_typography.scss\",\"webpack://./style/variables/_colors.scss\"],\"names\":[],\"mappings\":\"AAEA,MACI,kCCHW,CDIX,mBAAA,CACA,cAAA,CAEA,WACI,aAAA,CACA,wBECU,CAAA,iBAAA,CFCV,6BAAA,CACA,UAAA,CACA,qCAAA,CACA,2BAAA,CACA,eAAA,CACA,cAAA,CACA,eAAA,CACA,kBAAA,CACA,gBAAA,CAEA,iBACI,wBEbI,CFcJ,UAAA,CACA,0BAAA,CAGJ,oBACI,wBAAA,CACA,4BAAA,CACA,qBAAA,CACA,UAAA,CACA,cAAA\",\"sourcesContent\":[\"@import \\\"../../../style/all\\\";\\n\\n:host {\\n font-family: $default-font;\\n display: inline-flex;\\n cursor: pointer;\\n\\n slot {\\n display: block;\\n background-color: $secondary-brand;\\n padding: 10px 12px;\\n transition: all 0.35s linear 0s;\\n color: #fff;\\n border-bottom: 1px solid transparent;\\n background-clip: padding-box;\\n border-radius: 0;\\n font-size: 13px;\\n margin-bottom: 0;\\n margin-bottom: -1px;\\n margin-right: 2px;\\n\\n &:hover {\\n background-color: $primary-brand;\\n color: #fff;\\n border-color: transparent;\\n }\\n\\n &.selected {\\n border: 1px solid #414042;\\n border-bottom: 1px solid #fff;\\n background-color: #fff;\\n color: #555;\\n cursor: default;\\n }\\n }\\n}\\n\",\"$default-font: \\\"Open Sans\\\", sans-serif;\\n$header-font: \\\"Raleway\\\", sans-serif;\",\"$body-background: #ffffff;\\n$navigation-bar-background: #f7f7f7;\\n$hover-background: rgba(0,0,0,.05);\\n$default-border: #d8d8d8;\\n\\n$default-background: #eee;\\n$default-background-hover: #ddd;\\n$default-text:#2F3940;\\n\\n$primary-brand: #FE5000;\\n$secondary-brand: #4C7AA9;\\n\\n$primary-background: #4C7AA9;\\n$primary-background-hover: #FE5000;\\n$primary-text: #3767C7;\\n$primary-text-hover:#0056b3;\\n\\n\\n$success-background: #06A755;\\n$success-background-hover: #009745;\\n$success-text: #06A755;\\n\\n\\n$warning-background: #C38621;\\n$warning-background-hover: #B37611;\\n$warning-text: #C38621;\\n\\n$danger-background: #E00d0D;\\n$danger-background-hover: #D00000;\\n$danger-text: #E00d0D;\\n\\n$disabled-background: #ffffff;\\n$disabled-text: #d8d8d8;\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":host{font-family:\\\"Open Sans\\\",sans-serif;display:block}:host .navigation-tab-headings{width:100%;border-bottom:1px solid #414042;margin-bottom:10px;display:flex;flex-wrap:wrap}\", \"\",{\"version\":3,\"sources\":[\"webpack://./custom-elements/navigation-tabs/navigation-tabs.scss\",\"webpack://./style/variables/_typography.scss\"],\"names\":[],\"mappings\":\"AAEA,MACI,kCCHW,CDIX,aAAA,CACA,+BACI,UAAA,CACA,+BAAA,CACA,kBAAA,CACA,YAAA,CACA,cAAA\",\"sourcesContent\":[\"@import \\\"../../style/all\\\";\\n\\n:host {\\n font-family: $default-font;\\n display: block;\\n .navigation-tab-headings {\\n width: 100%;\\n border-bottom: 1px solid #414042;\\n margin-bottom: 10px;\\n display: flex;\\n flex-wrap: wrap;\\n }\\n}\\n\",\"$default-font: \\\"Open Sans\\\", sans-serif;\\n$header-font: \\\"Raleway\\\", sans-serif;\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","export default \"<template>\\n <slot name=\\\"tab-content\\\"></slot>\\n</template>\";","export default \"<template>\\n <slot name=\\\"tab-heading\\\"></slot>\\n</template>\";","export default \"<template>\\n <div class=\\\"navigation-tab-headings\\\">\\n <slot name=\\\"tab-heading\\\"></slot>\\n </div>\\n <slot name=\\\"tab-content\\\"></slot>\\n</template>\";","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","import { addEventListeners, ListenerMetadata } from './listen';\r\nimport { initializeProps } from './prop';\r\nimport { ComponentMetadata, KeyValue } from './types';\r\nimport { toKebabCase, toCamelCase } from './util';\r\n\r\nexport const Component = (args: ComponentMetadata) => {\r\n return (target: any) => {\r\n const tag: string = args.tag || toKebabCase(target.prototype.constructor.name);\r\n const customElement: any = class extends (target as { new(): any }) {\r\n protected static __connected: boolean = false;\r\n protected static propsInit: KeyValue;\r\n protected static watchAttributes: KeyValue;\r\n protected static listeners: ListenerMetadata[];\r\n protected static ready: Promise<boolean> = new Promise((resolve, _) => resolve(true));\r\n public props: KeyValue = {};\r\n private showShadowRoot: boolean;\r\n\r\n public static get observedAttributes(): string[] {\r\n return Object.keys(this.propsInit || {}).map(x => toKebabCase(x));\r\n }\r\n\r\n constructor() {\r\n super();\r\n\r\n this.showShadowRoot = args.shadow == null ? true : args.shadow;\r\n\r\n if (!this.shadowRoot && this.showShadowRoot) {\r\n this.attachShadow({ mode: 'open' });\r\n }\r\n }\r\n\r\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\r\n this.onAttributeChange(name, oldValue, newValue);\r\n }\r\n\r\n public onAttributeChange(name: string, oldValue: string, newValue: string, set: boolean = true): void {\r\n if (oldValue != newValue) {\r\n if (set) { this[toCamelCase(name)] = newValue; }\r\n const watchAttributes: KeyValue = (this.constructor as any).watchAttributes;\r\n if (watchAttributes && watchAttributes[name]) {\r\n const methodToCall: string = watchAttributes[name];\r\n if (this.__connected) {\r\n if (typeof this[methodToCall] == 'function') {\r\n this[methodToCall]({ old: oldValue, new: newValue });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n public async connectedCallback(): Promise<void> {\r\n await this.render();\r\n super.connectedCallback && super.connectedCallback();\r\n this.__connected = true;\r\n\r\n addEventListeners(this);\r\n initializeProps(this);\r\n }\r\n\r\n private async render(): Promise<void> {\r\n if (this.__connected) {\r\n return;\r\n }\r\n\r\n const template = document.createElement('template');\r\n template.innerHTML = await this.getStyle();\r\n\r\n if (args.template instanceof Promise) {\r\n template.content.appendChild(await this.getExternalTemplate());\r\n } else if (typeof args.template === 'string') {\r\n template.innerHTML += args.template;\r\n }\r\n\r\n (this.showShadowRoot ? this.shadowRoot : this).appendChild(template.content.cloneNode(true));\r\n }\r\n\r\n private async getExternalTemplate(): Promise<DocumentFragment> {\r\n const templateModule = await (args.template as Promise<typeof import('*.html')>);\r\n const markup = templateModule.default.toString();\r\n const fragment = document.createRange().createContextualFragment(markup);\r\n\r\n if (fragment.children.length === 1 && fragment.children[0].nodeName === 'TEMPLATE') {\r\n return (fragment.firstChild as HTMLTemplateElement).content;\r\n }\r\n return fragment;\r\n }\r\n\r\n private async getStyle(): Promise<string> {\r\n let css: string;\r\n\r\n if (args.style instanceof Promise) {\r\n const styleModule = await args.style;\r\n css = styleModule.default.toString();\r\n } else if (typeof args.style === 'string') {\r\n css = args.style;\r\n }\r\n\r\n return `${css ? `<style>${css}</style>` : ''}`\r\n }\r\n };\r\n\r\n if (!customElements.get(tag)) {\r\n customElements.define(tag, customElement);\r\n }\r\n\r\n return customElement;\r\n };\r\n};\r\n\r\n\r\n","import { CustomElementOptions } from \"./types\";\r\n\r\nexport abstract class CustomElement extends HTMLElement {\r\n constructor() {\r\n super();\r\n }\r\n\r\n protected abstract setup(options?: CustomElementOptions): void;\r\n\r\n protected connect(selector: string): void {\r\n if (!this.isConnected) {\r\n document.querySelector(selector).appendChild(this);\r\n }\r\n }\r\n}\r\n","export const getElement = <T extends HTMLElement>(selector: string): T => {\r\n return document.querySelector(selector);\r\n};\r\n\r\nexport const getShadowRootElement = <T extends HTMLElement>(customElement: HTMLElement, selector: string): T => {\r\n return customElement.shadowRoot.querySelector(selector);\r\n};","export * from './component';\r\nexport * from './custom-element';\r\nexport * from './helpers';\r\nexport * from './listen';\r\nexport * from './prop';\r\nexport * from './toggle';\r\nexport * from './types';\r\nexport * from './watch';","import { toDotCase } from './util';\r\n\r\ninterface ListenerMetadata {\r\n eventName: string;\r\n handler: Function;\r\n selector?: string;\r\n}\r\n\r\ninterface CustomEventOptions {\r\n bubbles?: boolean;\r\n composed?: boolean;\r\n detail?: any;\r\n}\r\n\r\ninterface DispatchEmitter {\r\n emit(options?: CustomEventOptions): void;\r\n}\r\n\r\nconst Listen = (eventName: string, selector?: string) => {\r\n return (target: any, methodName: string) => {\r\n if (!target.constructor.listeners) {\r\n target.constructor.listeners = [];\r\n }\r\n target.constructor.listeners.push({ selector: selector, eventName: eventName, handler: target[methodName] });\r\n };\r\n};\r\n\r\nconst addEventListeners = (target: any) => {\r\n if (target.constructor.listeners) {\r\n const targetRoot: any = target.shadowRoot || target;\r\n for (const listener of target.constructor.listeners as Array<ListenerMetadata>) {\r\n const eventTarget = (listener.selector)\r\n ? targetRoot.querySelector(listener.selector)\r\n ? targetRoot.querySelector(listener.selector) : null\r\n : target;\r\n if (eventTarget) {\r\n eventTarget.addEventListener(listener.eventName, (e: CustomEvent) => {\r\n listener.handler.call(target, e);\r\n });\r\n }\r\n }\r\n }\r\n};\r\n\r\nconst Dispatch = (eventName?: string) => {\r\n return (target: HTMLElement, propertyName: string) => {\r\n function get() {\r\n const self: EventTarget = this as EventTarget;\r\n return {\r\n emit(options?: CustomEventOptions) {\r\n const evtName = (eventName) ? eventName : toDotCase(propertyName);\r\n self.dispatchEvent(new CustomEvent(evtName, options));\r\n }\r\n };\r\n }\r\n Object.defineProperty(target, propertyName, { get });\r\n };\r\n};\r\n\r\nexport { Listen, addEventListeners, DispatchEmitter, Dispatch, CustomEventOptions, ListenerMetadata };","import { toKebabCase, tryParseInt } from './util';\r\n\r\nexport const Prop = (): any => {\r\n return (target: any, propName: any) => {\r\n const attrName = toKebabCase(propName);\r\n function get() {\r\n if (this.props[propName]) {\r\n return this.props[propName];\r\n }\r\n return this.getAttribute(attrName);\r\n }\r\n function set(value: any) {\r\n if (this.__connected) {\r\n const oldValue = this.props[propName];\r\n this.props[propName] = tryParseInt(value);\r\n if (typeof value != 'object') {\r\n this.setAttribute(attrName, value);\r\n } else {\r\n this.onAttributeChange(attrName, oldValue, value, false);\r\n }\r\n } else {\r\n if (!this.hasAttribute(toKebabCase(propName))) {\r\n this.constructor.propsInit[propName] = value;\r\n }\r\n }\r\n }\r\n if (!target.constructor.propsInit) {\r\n target.constructor.propsInit = {};\r\n }\r\n target.constructor.propsInit[propName] = null;\r\n Object.defineProperty(target, propName, { get, set });\r\n };\r\n};\r\n\r\nconst getProps = (target: any) => {\r\n const watchAttributes = target.constructor.watchAttributes;\r\n const plainAttributes = { ...watchAttributes };\r\n Object.keys(plainAttributes).forEach(v => plainAttributes[v] = '');\r\n const cycleProps = { ...plainAttributes, ...target.constructor.propsInit };\r\n return Object.keys(cycleProps);\r\n};\r\n\r\nexport const initializeProps = (target: any) => {\r\n const watchAttributes = target.constructor.watchAttributes;\r\n for (let prop of getProps(target)) {\r\n if (watchAttributes) {\r\n if (watchAttributes[toKebabCase(prop)] == null) {\r\n watchAttributes[toKebabCase(prop)] = '';\r\n } else {\r\n const attribValue = target.props[prop] || target.getAttribute(toKebabCase(prop));\r\n if (typeof target[watchAttributes[prop]] == 'function') {\r\n target[watchAttributes[prop]]({ new: attribValue });\r\n }\r\n }\r\n }\r\n if (target.constructor.propsInit[prop]) {\r\n if (!target.hasAttribute(toKebabCase(prop))) {\r\n target[prop] = target.constructor.propsInit[prop];\r\n }\r\n }\r\n }\r\n};","import { toKebabCase } from './util';\r\n\r\nexport const Toggle = (): any => {\r\n return (target: any, propName: any) => {\r\n function get() {\r\n const getAttribute = (propName: string) => {\r\n if (this.hasAttribute(propName)) {\r\n const attrValue = this.getAttribute(propName);\r\n if (/^(true|false|^$)$/.test(attrValue)) {\r\n return attrValue == 'true' || attrValue == '';\r\n } else {\r\n return false;\r\n }\r\n }\r\n return false;\r\n };\r\n return getAttribute(propName);\r\n }\r\n function set(value: any) {\r\n const oldValue = value;\r\n if (value != undefined) {\r\n switch (typeof value) {\r\n case 'boolean':\r\n break;\r\n case 'string':\r\n if (/^(true|false|^$)$/.test(value)) {\r\n value = oldValue == 'true' || oldValue == '';\r\n } else {\r\n console.warn(`TypeError: Cannot set boolean toggle property '${propName}' to '${value}'`);\r\n value = false;\r\n }\r\n break;\r\n default:\r\n throw (`TypeError: Cannot set boolean toggle property '${propName}' to '${value}'`);\r\n }\r\n }\r\n if (this.__connected) {\r\n this.props[propName] = value || false;\r\n if (oldValue !== '' && oldValue !== null) {\r\n this.setAttribute(propName, value);\r\n } else {\r\n if (value) {\r\n this.setAttribute(propName, '');\r\n } else {\r\n this.removeAttribute(propName);\r\n }\r\n }\r\n } else {\r\n if (!this.hasAttribute(toKebabCase(propName))) {\r\n this.constructor.propsInit[propName] = value;\r\n }\r\n }\r\n }\r\n if (!target.constructor.propsInit) {\r\n target.constructor.propsInit = {};\r\n }\r\n target.constructor.propsInit[propName] = null;\r\n Object.defineProperty(target, propName, { get, set });\r\n };\r\n};\r\n","export const toKebabCase = (str: string) => {\r\n return str\r\n .replace(/([a-z])([A-Z])/g, '$1-$2')\r\n .replace(/[\\s_]+/g, '-')\r\n .toLowerCase();\r\n};\r\n\r\nexport const toCamelCase = (str: string) => {\r\n return str\r\n .toLowerCase()\r\n .replace(/(\\-\\w)/g, (m) => m[1].toUpperCase());\r\n};\r\n\r\nexport const toDotCase = (str: string) => {\r\n return str.replace(/(?!^)([A-Z])/g, ' $1')\r\n .replace(/[_\\s]+(?=[a-zA-Z])/g, '.')\r\n .toLowerCase();\r\n};\r\n\r\nexport const tryParseInt = (value: any) => {\r\n return (parseInt(value) == value && parseFloat(value) !== NaN) ? parseInt(value) : value;\r\n};\r\n","import { toKebabCase } from './util';\r\n\r\nexport const Watch = (attrName: string) => {\r\n return (target: any, propertyName: string) => {\r\n if (!target.constructor.watchAttributes) {\r\n target.constructor.watchAttributes = {};\r\n }\r\n target.constructor.watchAttributes[toKebabCase(attrName)] = propertyName;\r\n if (!target.constructor.propsInit) {\r\n target.constructor.propsInit = {};\r\n }\r\n target.constructor.propsInit[attrName] = null;\r\n };\r\n};","// Dependencies\nimport {\n Component, CustomElement, CustomElementOptions, Prop, Dispatch, DispatchEmitter,\n Listen, Watch, getElement, getShadowRootElement, Toggle\n} from 'super-custom-elements';\n\nlet navigationTabContentCounter = 0;\n\ninterface NavigationTabContentOptions extends CustomElementOptions {\n}\n\n@Component({\n tag: 'navigation-tab-content',\n template: import('./navigation-tab-content.html'),\n style: import('./navigation-tab-content.scss')\n})\n\nexport class NavigationTabContent extends CustomElement {\n private static readonly elementSelector = 'navigation-tab-content';\n\n static get observedAttributes() {\n return ['selected'];\n }\n\n @Prop() id: string;\n\n constructor() {\n super();\n }\n\n setup(options?: NavigationTabContentOptions): void {\n this.connect(options.container);\n if (options.id) {\n this.id = options.id;\n }\n }\n\n connectedCallback() {\n this.setAttribute('role', 'tabpanel');\n if (!this.id) {\n this.id = `navigation-tab-content-${navigationTabContentCounter++}`;\n }\n }\n\n disconnectedCallback() {\n }\n\n public static setup(selector: string, options: NavigationTabContentOptions) {\n const element = getElement<NavigationTabContent>(selector);\n }\n}","// Dependencies\nimport {\n Component, CustomElement, CustomElementOptions, Prop, Dispatch, DispatchEmitter,\n Listen, Watch, getElement, getShadowRootElement, Toggle\n} from 'super-custom-elements';\n\nlet navigationTabHeadingCounter = 0;\n\n\ninterface NavigationTabHeadingOptions extends CustomElementOptions {\n}\n\n@Component({\n tag: 'navigation-tab-heading',\n template: import('./navigation-tab-heading.html'),\n style: import('./navigation-tab-heading.scss')\n})\n\n\n\nexport class NavigationTabHeading extends CustomElement {\n private static readonly elementSelector = 'navigation-tab-heading';\n private tabHeadingElement: HTMLElement;\n\n/*\n static get observedAttributes() {\n return ['selected'];\n }*/\n\n @Prop() id: string;\n @Toggle() selected: boolean;\n\n constructor() {\n super();\n }\n\n setup(options?: NavigationTabHeadingOptions): void {\n this.connect(options.container);\n if (options.id) {\n this.id = options.id;\n }\n }\n\n connectedCallback() {\n this.setAttribute('role', 'tab');\n if (!this.id) {\n this.id = `navigation-tab-heading-${navigationTabHeadingCounter++}`;\n }\n\n this.tabHeadingElement = getShadowRootElement(this, 'slot[name=tab-heading]');\n\n // Set a well-defined initial state.\n this.setAttribute('aria-selected', 'false');\n this.setAttribute('tabindex', '-1');\n this._upgradeProperty('selected');\n\n }\n\n disconnectedCallback() {\n }\n\n _upgradeProperty(prop) {\n if (this.hasOwnProperty(prop)) {\n let value = this[prop];\n delete this[prop];\n this[prop] = value;\n }\n }\n\n attributeChangedCallback() {\n\n }\n\n @Watch('selected')\n selectedChanged() {\n this.selected ? this.setAttribute('aria-selected', '') : this.removeAttribute('aria-selected');\n this.selected ? this.tabHeadingElement.classList.add('selected') : this.tabHeadingElement.classList.remove('selected');\n this.setAttribute('tabindex', this.selected ? '0' : '-1');\n }\n\n public static setup(selector: string, options: NavigationTabHeadingOptions) {\n const element = getElement<NavigationTabHeading>(selector);\n }\n}","// Dependencies\nimport {\n Component, CustomElement, CustomElementOptions, Prop, Dispatch, DispatchEmitter,\n Listen, Watch, getElement, getShadowRootElement, Toggle\n} from 'super-custom-elements';\n\n// Components\nimport { NavigationTabHeading } from 'custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading';\nimport { NavigationTabContent } from 'custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content';\n\n\ninterface NavigationTabsOptions extends CustomElementOptions {\n active?: boolean,\n onClick?: () => void,\n onSearch?: () => void,\n onOpenEmptyMapItemsList?: () => void,\n onOpenEmptyDownloadItemsList?: () => void\n}\n\ninterface TabHeadingElement extends HTMLElement {\n selected: boolean\n}\n\ninterface TabContentElement extends HTMLElement {\n hidden: boolean\n}\n\n@Component({\n tag: 'navigation-tabs',\n template: import('./navigation-tabs.html'),\n style: import('./navigation-tabs.scss')\n})\n\nexport class NavigationTabs extends CustomElement {\n private static readonly elementSelector = 'navigation-tabs';\n private tabHeadingSlot: TabHeadingElement;\n private tabContentSlot: TabContentElement;\n\n static get observedAttributes() {\n return ['selected'];\n }\n\n @Prop() id: string;\n @Prop() selectedtab: string;\n @Dispatch('onSearch') onSearch: DispatchEmitter;\n\n constructor() {\n super();\n\n // Event handlers that are not attached to this element need to be bound\n // if they need access to `this`.\n this.onSlotChange = this.onSlotChange.bind(this);\n\n // For progressive enhancement, the markup should alternate between tabs\n // and panels. Elements that reorder their children tend to not work well\n // with frameworks. Instead shadow DOM is used to reorder the elements by\n // using slots.\n // this.attachShadow({ mode: 'open' });\n\n \n\n }\n\n setup(options?: NavigationTabsOptions): void {\n this.connect(options.container);\n if (options.id) {\n this.id = options.id;\n }\n }\n\n connectedCallback() {\n this.tabHeadingSlot = getShadowRootElement(this, 'slot[name=tab-heading]');\n this.tabContentSlot = getShadowRootElement(this, 'slot[name=tab-content]');\n\n this.tabHeadingSlot.addEventListener('slotchange', this.onSlotChange);\n this.tabContentSlot.addEventListener('slotchange', this.onSlotChange);\n\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'tablist');\n }\n\n this.addEventListener('click', this._onClick);\n\n\n const navigationTabHeading = new NavigationTabHeading();\n const navigationTabContent = new NavigationTabContent();\n\n Promise.all([\n customElements.whenDefined('navigation-tab-heading'),\n customElements.whenDefined('navigation-tab-content')\n ]).then(() => {\n this.linkPanels()\n\n });\n }\n\n disconnectedCallback() {\n this.removeEventListener('click', this._onClick);\n }\n\n onSlotChange() {\n this.linkPanels();\n }\n\n linkPanels() {\n const tabHeadingElements: Array<TabHeadingElement> = this.getTabHeadingElements();\n // Give each panel a `aria-labelledby` attribute that refers to the tab\n // that controls it.\n tabHeadingElements.forEach(tabHeadingElement => {\n const tabContentElement = tabHeadingElement.nextElementSibling;\n if (tabContentElement.tagName.toLowerCase() !== 'navigation-tab-content') {\n console.error(`navigation-tab-heading #${tabHeadingElement.id} is not a` +\n `sibling of a <tab-navigation-content>`);\n return;\n }\n tabHeadingElement.setAttribute('aria-controls', tabContentElement.id);\n tabContentElement.setAttribute('aria-labelledby', tabHeadingElement.id);\n\n let tabHeadingHtml = document.createElement('div');\n tabHeadingHtml.innerHTML = tabHeadingElement.innerHTML;\n tabHeadingHtml.setAttribute('slot', 'tab-heading');\n tabHeadingElement.innerHTML = '';\n tabHeadingElement.appendChild(tabHeadingHtml);\n \n let tabContentHtml = document.createElement('div');\n tabContentHtml.innerHTML = tabContentElement.innerHTML;\n tabContentHtml.setAttribute('slot', 'tab-content');\n tabContentElement.innerHTML = '';\n tabContentElement.appendChild(tabContentHtml);\n });\n\n // The element checks if any of the tabs have been marked as selected.\n // If not, the first tab is now selected.\n const selectedTabHeadingElement: TabHeadingElement = tabHeadingElements.find((tabHeadingElement: TabHeadingElement) => {\n return tabHeadingElement.selected\n }) || tabHeadingElements[0];\n\n // Next, switch to the selected tab. `selectTab()` takes care of\n // marking all other tabs as deselected and hiding all other panels.\n this.setSelectTab(selectedTabHeadingElement);\n }\n\n setSelectTab(newTabHeading: TabHeadingElement) {\n // Deselect all tabs and hide all panels.\n this.reset();\n\n // Get the panel that the `newTab` is associated with.\n const newTabContent: TabContentElement = this.getTabContentForTabHeading(newTabHeading);\n\n // If that panel doesn’t exist, abort.\n if (!newTabContent){\n throw new Error(`No tab-content-element with id ${newTabHeading.getAttribute('aria-controls')}`);\n }\n newTabHeading.selected = true;\n newTabContent.hidden = false;\n }\n\n getTabHeadingElements() {\n const tabHeadingElements: Array<TabHeadingElement> = Array.from(this.querySelectorAll('navigation-tab-heading'));\n return tabHeadingElements;\n }\n\n getTabContentElements() {\n const tabContentElements: Array<TabContentElement> = Array.from(this.querySelectorAll('navigation-tab-content'));\n return tabContentElements;\n }\n\n getTabContentForTabHeading(tabHeadingElement) {\n const tabContentElementId = tabHeadingElement.getAttribute('aria-controls');\n const tabContentElement: TabContentElement = this.querySelector(`#${tabContentElementId}`);\n return tabContentElement;\n }\n\n reset() {\n const tabHeadingElements: Array<TabHeadingElement> = this.getTabHeadingElements();\n const tabContentElements: Array<TabContentElement> = this.getTabContentElements();\n\n tabHeadingElements.forEach(tabHeadingElement => tabHeadingElement.selected = false);\n tabContentElements.forEach(tabContentElement => tabContentElement.hidden = true);\n }\n\n _onClick(event) {\n const clickedTabHeading = event.target.closest('navigation-tab-heading');\n // If the click was not targeted on a tab element itself,\n // it was a click inside the a panel or on empty space. Nothing to do.\n if (!clickedTabHeading || clickedTabHeading.getAttribute('role') !== 'tab'){\n return;\n }\n // If it was on a tab element, though, select that tab.\n this.setSelectTab(clickedTabHeading);\n }\n\n\n\n\n public static setup(selector: string, options: NavigationTabsOptions) {\n const element = getElement<NavigationTabs>(selector);\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(697);\n"],"names":["root","factory","exports","module","define","amd","self","___CSS_LOADER_EXPORT___","push","id","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","Component","args","target","tag","toKebabCase","prototype","constructor","name","customElement","super","props","showShadowRoot","shadow","shadowRoot","attachShadow","mode","observedAttributes","Object","keys","propsInit","x","attributeChangedCallback","oldValue","newValue","onAttributeChange","set","toCamelCase","watchAttributes","methodToCall","__connected","old","new","connectedCallback","render","addEventListeners","initializeProps","template","document","createElement","innerHTML","getStyle","Promise","appendChild","getExternalTemplate","cloneNode","markup","default","fragment","createRange","createContextualFragment","children","nodeName","firstChild","css","style","ready","resolve","_","customElements","get","CustomElement","HTMLElement","connect","selector","isConnected","querySelector","getElement","getShadowRootElement","Listen","eventName","methodName","listeners","handler","targetRoot","listener","eventTarget","addEventListener","e","call","Dispatch","propertyName","defineProperty","emit","options","evtName","toDotCase","dispatchEvent","CustomEvent","Prop","propName","attrName","getAttribute","value","tryParseInt","setAttribute","hasAttribute","prop","plainAttributes","forEach","v","cycleProps","getProps","attribValue","Toggle","attrValue","test","console","warn","removeAttribute","str","replace","toLowerCase","m","toUpperCase","parseInt","NaN","parseFloat","Watch","navigationTabContentCounter","NavigationTabContent","setup","container","disconnectedCallback","static","elementSelector","navigationTabHeadingCounter","NavigationTabHeading","tabHeadingElement","_upgradeProperty","hasOwnProperty","selectedChanged","selected","classList","add","remove","NavigationTabs","onSlotChange","bind","tabHeadingSlot","tabContentSlot","_onClick","all","whenDefined","then","linkPanels","removeEventListener","tabHeadingElements","getTabHeadingElements","tabContentElement","nextElementSibling","tagName","error","tabHeadingHtml","tabContentHtml","selectedTabHeadingElement","find","setSelectTab","newTabHeading","reset","newTabContent","getTabContentForTabHeading","Error","hidden","Array","from","querySelectorAll","getTabContentElements","tabContentElementId","tabContentElements","event","clickedTabHeading","closest","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","enumerable","obj","r","Symbol","toStringTag"],"sourceRoot":""}
1
+ {"version":3,"file":"NavigationTabs.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkB,SAAID,KAEtBD,EAAe,SAAIA,EAAe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AImO,EAASnO,GAAUA,EAAOoO,WAC7B,IAAOpO,EAAiB,QACxB,IAAM,EAEP,OADA8N,EAAoBO,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdL,EAAoBO,EAAI,CAACtO,EAASwO,KACjC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAE1O,EAASyO,IAC5E9K,OAAOgE,eAAe3H,EAASyO,EAAK,CAAEE,YAAY,EAAMtI,IAAKmI,EAAWC,IAE1E,ECNDV,EAAoBW,EAAI,CAACE,EAAKlG,IAAU/E,OAAOZ,UAAU6H,eAAepD,KAAKoH,EAAKlG,GCClFqF,EAAoBc,EAAK7O,IACH,oBAAX8O,QAA0BA,OAAOC,aAC1CpL,OAAOgE,eAAe3H,EAAS8O,OAAOC,YAAa,CAAEzG,MAAO,WAE7D3E,OAAOgE,eAAe3H,EAAS,aAAc,CAAEsI,OAAO,GAAO,ECFpCyF,EAAoB,I","sources":["webpack://geonorge/webpack/universalModuleDefinition","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/slottedStyles.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tabs.scss","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content.html","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.html","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tabs.html","webpack://geonorge/../node_modules/css-loader/dist/runtime/api.js","webpack://geonorge/../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://geonorge/../node_modules/super-custom-elements/src/component.ts","webpack://geonorge/../node_modules/super-custom-elements/src/custom-element.ts","webpack://geonorge/../node_modules/super-custom-elements/src/helpers.ts","webpack://geonorge/../node_modules/super-custom-elements/src/index.ts","webpack://geonorge/../node_modules/super-custom-elements/src/listen.ts","webpack://geonorge/../node_modules/super-custom-elements/src/prop.ts","webpack://geonorge/../node_modules/super-custom-elements/src/toggle.ts","webpack://geonorge/../node_modules/super-custom-elements/src/util.ts","webpack://geonorge/../node_modules/super-custom-elements/src/watch.ts","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content.ts","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.ts","webpack://geonorge/./custom-elements/navigation-tabs/navigation-tabs.ts","webpack://geonorge/./functions/guiHelpers.ts","webpack://geonorge/webpack/bootstrap","webpack://geonorge/webpack/runtime/compat get default export","webpack://geonorge/webpack/runtime/define property getters","webpack://geonorge/webpack/runtime/hasOwnProperty shorthand","webpack://geonorge/webpack/runtime/make namespace object","webpack://geonorge/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"geonorge\"] = factory();\n\telse\n\t\troot[\"geonorge\"] = root[\"geonorge\"] || {}, root[\"geonorge\"][\"NavigationTabs\"] = factory();\n})(self, () => {\nreturn ","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"\", \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":host{font-family:\\\"Open Sans\\\",sans-serif;display:inline-flex;cursor:pointer}:host slot{display:block;background-color:#4c7aa9;padding:10px 12px;transition:all .35s linear 0s;color:#fff;border-bottom:1px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:0;font-size:13px;margin-bottom:0;margin-bottom:-1px;margin-right:2px}:host slot:hover{background-color:#fe5000;color:#fff;border-color:rgba(0,0,0,0)}:host slot.selected{border:1px solid #414042;border-bottom:1px solid #fff;background-color:#fff;color:#555;cursor:default}\", \"\",{\"version\":3,\"sources\":[\"webpack://./custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading.scss\",\"webpack://./style/variables/_typography.scss\",\"webpack://./style/variables/_colors.scss\"],\"names\":[],\"mappings\":\"AAEA,MACI,kCCHW,CDIX,mBAAA,CACA,cAAA,CAEA,WACI,aAAA,CACA,wBECU,CAAA,iBAAA,CFCV,6BAAA,CACA,UAAA,CACA,qCAAA,CACA,2BAAA,CACA,eAAA,CACA,cAAA,CACA,eAAA,CACA,kBAAA,CACA,gBAAA,CAEA,iBACI,wBEbI,CFcJ,UAAA,CACA,0BAAA,CAGJ,oBACI,wBAAA,CACA,4BAAA,CACA,qBAAA,CACA,UAAA,CACA,cAAA\",\"sourcesContent\":[\"@import \\\"../../../style/all\\\";\\n\\n:host {\\n font-family: $default-font;\\n display: inline-flex;\\n cursor: pointer;\\n\\n slot {\\n display: block;\\n background-color: $secondary-brand;\\n padding: 10px 12px;\\n transition: all 0.35s linear 0s;\\n color: #fff;\\n border-bottom: 1px solid transparent;\\n background-clip: padding-box;\\n border-radius: 0;\\n font-size: 13px;\\n margin-bottom: 0;\\n margin-bottom: -1px;\\n margin-right: 2px;\\n\\n &:hover {\\n background-color: $primary-brand;\\n color: #fff;\\n border-color: transparent;\\n }\\n\\n &.selected {\\n border: 1px solid #414042;\\n border-bottom: 1px solid #fff;\\n background-color: #fff;\\n color: #555;\\n cursor: default;\\n \\n }\\n }\\n \\n}\\n\",\"$default-font: \\\"Open Sans\\\", sans-serif;\\n$header-font: \\\"Raleway\\\", sans-serif;\",\"$body-background: #ffffff;\\n$navigation-bar-background: #f7f7f7;\\n$hover-background: rgba(0,0,0,.05);\\n$default-border: #d8d8d8;\\n\\n$default-background: #eee;\\n$default-background-hover: #ddd;\\n$default-text:#2F3940;\\n\\n$primary-brand: #FE5000;\\n$secondary-brand: #4C7AA9;\\n\\n$primary-background: #4C7AA9;\\n$primary-background-hover: #FE5000;\\n$primary-text: #3767C7;\\n$primary-text-hover:#0056b3;\\n\\n\\n$success-background: #06A755;\\n$success-background-hover: #009745;\\n$success-text: #06A755;\\n\\n\\n$warning-background: #C38621;\\n$warning-background-hover: #B37611;\\n$warning-text: #C38621;\\n\\n$danger-background: #E00d0D;\\n$danger-background-hover: #D00000;\\n$danger-text: #E00d0D;\\n\\n$disabled-background: #ffffff;\\n$disabled-text: #d8d8d8;\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"navigation-tab-heading a{color:#fff;text-decoration:none}navigation-tab-heading[selected=true] a{color:#555}\", \"\",{\"version\":3,\"sources\":[\"webpack://./custom-elements/navigation-tabs/navigation-tab-heading/slottedStyles.scss\"],\"names\":[],\"mappings\":\"AACI,yBACI,UAAA,CACA,oBAAA,CAGA,wCACI,UAAA\",\"sourcesContent\":[\"navigation-tab-heading {\\n a {\\n color: #fff;\\n text-decoration: none;\\n }\\n &[selected=\\\"true\\\"] {\\n a {\\n color: #555;\\n }\\n }\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":host{font-family:\\\"Open Sans\\\",sans-serif;display:block}:host .navigation-tab-headings{width:100%;border-bottom:1px solid #414042;margin-bottom:10px;display:flex;flex-wrap:wrap}\", \"\",{\"version\":3,\"sources\":[\"webpack://./custom-elements/navigation-tabs/navigation-tabs.scss\",\"webpack://./style/variables/_typography.scss\"],\"names\":[],\"mappings\":\"AAEA,MACI,kCCHW,CDIX,aAAA,CACA,+BACI,UAAA,CACA,+BAAA,CACA,kBAAA,CACA,YAAA,CACA,cAAA\",\"sourcesContent\":[\"@import \\\"../../style/all\\\";\\n\\n:host {\\n font-family: $default-font;\\n display: block;\\n .navigation-tab-headings {\\n width: 100%;\\n border-bottom: 1px solid #414042;\\n margin-bottom: 10px;\\n display: flex;\\n flex-wrap: wrap;\\n }\\n}\\n\",\"$default-font: \\\"Open Sans\\\", sans-serif;\\n$header-font: \\\"Raleway\\\", sans-serif;\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","export default \"<template>\\n <slot name=\\\"tab-content\\\"></slot>\\n</template>\";","export default \"<template>\\n <slot name=\\\"tab-heading\\\"></slot>\\n</template>\";","export default \"<template>\\n <div class=\\\"navigation-tab-headings\\\">\\n <slot name=\\\"tab-heading\\\"></slot>\\n </div>\\n <slot name=\\\"tab-content\\\"></slot>\\n</template>\";","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","import { addEventListeners, ListenerMetadata } from './listen';\r\nimport { initializeProps } from './prop';\r\nimport { ComponentMetadata, KeyValue } from './types';\r\nimport { toKebabCase, toCamelCase } from './util';\r\n\r\nexport const Component = (args: ComponentMetadata) => {\r\n return (target: any) => {\r\n const tag: string = args.tag || toKebabCase(target.prototype.constructor.name);\r\n const customElement: any = class extends (target as { new(): any }) {\r\n protected static __connected: boolean = false;\r\n protected static propsInit: KeyValue;\r\n protected static watchAttributes: KeyValue;\r\n protected static listeners: ListenerMetadata[];\r\n protected static ready: Promise<boolean> = new Promise((resolve, _) => resolve(true));\r\n public props: KeyValue = {};\r\n private showShadowRoot: boolean;\r\n\r\n public static get observedAttributes(): string[] {\r\n return Object.keys(this.propsInit || {}).map(x => toKebabCase(x));\r\n }\r\n\r\n constructor() {\r\n super();\r\n\r\n this.showShadowRoot = args.shadow == null ? true : args.shadow;\r\n\r\n if (!this.shadowRoot && this.showShadowRoot) {\r\n this.attachShadow({ mode: 'open' });\r\n }\r\n }\r\n\r\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\r\n this.onAttributeChange(name, oldValue, newValue);\r\n }\r\n\r\n public onAttributeChange(name: string, oldValue: string, newValue: string, set: boolean = true): void {\r\n if (oldValue != newValue) {\r\n if (set) { this[toCamelCase(name)] = newValue; }\r\n const watchAttributes: KeyValue = (this.constructor as any).watchAttributes;\r\n if (watchAttributes && watchAttributes[name]) {\r\n const methodToCall: string = watchAttributes[name];\r\n if (this.__connected) {\r\n if (typeof this[methodToCall] == 'function') {\r\n this[methodToCall]({ old: oldValue, new: newValue });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n public async connectedCallback(): Promise<void> {\r\n await this.render();\r\n super.connectedCallback && super.connectedCallback();\r\n this.__connected = true;\r\n\r\n addEventListeners(this);\r\n initializeProps(this);\r\n }\r\n\r\n private async render(): Promise<void> {\r\n if (this.__connected) {\r\n return;\r\n }\r\n\r\n const template = document.createElement('template');\r\n template.innerHTML = await this.getStyle();\r\n\r\n if (args.template instanceof Promise) {\r\n template.content.appendChild(await this.getExternalTemplate());\r\n } else if (typeof args.template === 'string') {\r\n template.innerHTML += args.template;\r\n }\r\n\r\n (this.showShadowRoot ? this.shadowRoot : this).appendChild(template.content.cloneNode(true));\r\n }\r\n\r\n private async getExternalTemplate(): Promise<DocumentFragment> {\r\n const templateModule = await (args.template as Promise<typeof import('*.html')>);\r\n const markup = templateModule.default.toString();\r\n const fragment = document.createRange().createContextualFragment(markup);\r\n\r\n if (fragment.children.length === 1 && fragment.children[0].nodeName === 'TEMPLATE') {\r\n return (fragment.firstChild as HTMLTemplateElement).content;\r\n }\r\n return fragment;\r\n }\r\n\r\n private async getStyle(): Promise<string> {\r\n let css: string;\r\n\r\n if (args.style instanceof Promise) {\r\n const styleModule = await args.style;\r\n css = styleModule.default.toString();\r\n } else if (typeof args.style === 'string') {\r\n css = args.style;\r\n }\r\n\r\n return `${css ? `<style>${css}</style>` : ''}`\r\n }\r\n };\r\n\r\n if (!customElements.get(tag)) {\r\n customElements.define(tag, customElement);\r\n }\r\n\r\n return customElement;\r\n };\r\n};\r\n\r\n\r\n","import { CustomElementOptions } from \"./types\";\r\n\r\nexport abstract class CustomElement extends HTMLElement {\r\n constructor() {\r\n super();\r\n }\r\n\r\n protected abstract setup(options?: CustomElementOptions): void;\r\n\r\n protected connect(selector: string): void {\r\n if (!this.isConnected) {\r\n document.querySelector(selector).appendChild(this);\r\n }\r\n }\r\n}\r\n","export const getElement = <T extends HTMLElement>(selector: string): T => {\r\n return document.querySelector(selector);\r\n};\r\n\r\nexport const getShadowRootElement = <T extends HTMLElement>(customElement: HTMLElement, selector: string): T => {\r\n return customElement.shadowRoot.querySelector(selector);\r\n};","export * from './component';\r\nexport * from './custom-element';\r\nexport * from './helpers';\r\nexport * from './listen';\r\nexport * from './prop';\r\nexport * from './toggle';\r\nexport * from './types';\r\nexport * from './watch';","import { toDotCase } from './util';\r\n\r\ninterface ListenerMetadata {\r\n eventName: string;\r\n handler: Function;\r\n selector?: string;\r\n}\r\n\r\ninterface CustomEventOptions {\r\n bubbles?: boolean;\r\n composed?: boolean;\r\n detail?: any;\r\n}\r\n\r\ninterface DispatchEmitter {\r\n emit(options?: CustomEventOptions): void;\r\n}\r\n\r\nconst Listen = (eventName: string, selector?: string) => {\r\n return (target: any, methodName: string) => {\r\n if (!target.constructor.listeners) {\r\n target.constructor.listeners = [];\r\n }\r\n target.constructor.listeners.push({ selector: selector, eventName: eventName, handler: target[methodName] });\r\n };\r\n};\r\n\r\nconst addEventListeners = (target: any) => {\r\n if (target.constructor.listeners) {\r\n const targetRoot: any = target.shadowRoot || target;\r\n for (const listener of target.constructor.listeners as Array<ListenerMetadata>) {\r\n const eventTarget = (listener.selector)\r\n ? targetRoot.querySelector(listener.selector)\r\n ? targetRoot.querySelector(listener.selector) : null\r\n : target;\r\n if (eventTarget) {\r\n eventTarget.addEventListener(listener.eventName, (e: CustomEvent) => {\r\n listener.handler.call(target, e);\r\n });\r\n }\r\n }\r\n }\r\n};\r\n\r\nconst Dispatch = (eventName?: string) => {\r\n return (target: HTMLElement, propertyName: string) => {\r\n function get() {\r\n const self: EventTarget = this as EventTarget;\r\n return {\r\n emit(options?: CustomEventOptions) {\r\n const evtName = (eventName) ? eventName : toDotCase(propertyName);\r\n self.dispatchEvent(new CustomEvent(evtName, options));\r\n }\r\n };\r\n }\r\n Object.defineProperty(target, propertyName, { get });\r\n };\r\n};\r\n\r\nexport { Listen, addEventListeners, DispatchEmitter, Dispatch, CustomEventOptions, ListenerMetadata };","import { toKebabCase, tryParseInt } from './util';\r\n\r\nexport const Prop = (): any => {\r\n return (target: any, propName: any) => {\r\n const attrName = toKebabCase(propName);\r\n function get() {\r\n if (this.props[propName]) {\r\n return this.props[propName];\r\n }\r\n return this.getAttribute(attrName);\r\n }\r\n function set(value: any) {\r\n if (this.__connected) {\r\n const oldValue = this.props[propName];\r\n this.props[propName] = tryParseInt(value);\r\n if (typeof value != 'object') {\r\n this.setAttribute(attrName, value);\r\n } else {\r\n this.onAttributeChange(attrName, oldValue, value, false);\r\n }\r\n } else {\r\n if (!this.hasAttribute(toKebabCase(propName))) {\r\n this.constructor.propsInit[propName] = value;\r\n }\r\n }\r\n }\r\n if (!target.constructor.propsInit) {\r\n target.constructor.propsInit = {};\r\n }\r\n target.constructor.propsInit[propName] = null;\r\n Object.defineProperty(target, propName, { get, set });\r\n };\r\n};\r\n\r\nconst getProps = (target: any) => {\r\n const watchAttributes = target.constructor.watchAttributes;\r\n const plainAttributes = { ...watchAttributes };\r\n Object.keys(plainAttributes).forEach(v => plainAttributes[v] = '');\r\n const cycleProps = { ...plainAttributes, ...target.constructor.propsInit };\r\n return Object.keys(cycleProps);\r\n};\r\n\r\nexport const initializeProps = (target: any) => {\r\n const watchAttributes = target.constructor.watchAttributes;\r\n for (let prop of getProps(target)) {\r\n if (watchAttributes) {\r\n if (watchAttributes[toKebabCase(prop)] == null) {\r\n watchAttributes[toKebabCase(prop)] = '';\r\n } else {\r\n const attribValue = target.props[prop] || target.getAttribute(toKebabCase(prop));\r\n if (typeof target[watchAttributes[prop]] == 'function') {\r\n target[watchAttributes[prop]]({ new: attribValue });\r\n }\r\n }\r\n }\r\n if (target.constructor.propsInit[prop]) {\r\n if (!target.hasAttribute(toKebabCase(prop))) {\r\n target[prop] = target.constructor.propsInit[prop];\r\n }\r\n }\r\n }\r\n};","import { toKebabCase } from './util';\r\n\r\nexport const Toggle = (): any => {\r\n return (target: any, propName: any) => {\r\n function get() {\r\n const getAttribute = (propName: string) => {\r\n if (this.hasAttribute(propName)) {\r\n const attrValue = this.getAttribute(propName);\r\n if (/^(true|false|^$)$/.test(attrValue)) {\r\n return attrValue == 'true' || attrValue == '';\r\n } else {\r\n return false;\r\n }\r\n }\r\n return false;\r\n };\r\n return getAttribute(propName);\r\n }\r\n function set(value: any) {\r\n const oldValue = value;\r\n if (value != undefined) {\r\n switch (typeof value) {\r\n case 'boolean':\r\n break;\r\n case 'string':\r\n if (/^(true|false|^$)$/.test(value)) {\r\n value = oldValue == 'true' || oldValue == '';\r\n } else {\r\n console.warn(`TypeError: Cannot set boolean toggle property '${propName}' to '${value}'`);\r\n value = false;\r\n }\r\n break;\r\n default:\r\n throw (`TypeError: Cannot set boolean toggle property '${propName}' to '${value}'`);\r\n }\r\n }\r\n if (this.__connected) {\r\n this.props[propName] = value || false;\r\n if (oldValue !== '' && oldValue !== null) {\r\n this.setAttribute(propName, value);\r\n } else {\r\n if (value) {\r\n this.setAttribute(propName, '');\r\n } else {\r\n this.removeAttribute(propName);\r\n }\r\n }\r\n } else {\r\n if (!this.hasAttribute(toKebabCase(propName))) {\r\n this.constructor.propsInit[propName] = value;\r\n }\r\n }\r\n }\r\n if (!target.constructor.propsInit) {\r\n target.constructor.propsInit = {};\r\n }\r\n target.constructor.propsInit[propName] = null;\r\n Object.defineProperty(target, propName, { get, set });\r\n };\r\n};\r\n","export const toKebabCase = (str: string) => {\r\n return str\r\n .replace(/([a-z])([A-Z])/g, '$1-$2')\r\n .replace(/[\\s_]+/g, '-')\r\n .toLowerCase();\r\n};\r\n\r\nexport const toCamelCase = (str: string) => {\r\n return str\r\n .toLowerCase()\r\n .replace(/(\\-\\w)/g, (m) => m[1].toUpperCase());\r\n};\r\n\r\nexport const toDotCase = (str: string) => {\r\n return str.replace(/(?!^)([A-Z])/g, ' $1')\r\n .replace(/[_\\s]+(?=[a-zA-Z])/g, '.')\r\n .toLowerCase();\r\n};\r\n\r\nexport const tryParseInt = (value: any) => {\r\n return (parseInt(value) == value && parseFloat(value) !== NaN) ? parseInt(value) : value;\r\n};\r\n","import { toKebabCase } from './util';\r\n\r\nexport const Watch = (attrName: string) => {\r\n return (target: any, propertyName: string) => {\r\n if (!target.constructor.watchAttributes) {\r\n target.constructor.watchAttributes = {};\r\n }\r\n target.constructor.watchAttributes[toKebabCase(attrName)] = propertyName;\r\n if (!target.constructor.propsInit) {\r\n target.constructor.propsInit = {};\r\n }\r\n target.constructor.propsInit[attrName] = null;\r\n };\r\n};","// Dependencies\nimport {\n Component, CustomElement, CustomElementOptions, Prop, Dispatch, DispatchEmitter,\n Listen, Watch, getElement, getShadowRootElement, Toggle\n} from 'super-custom-elements';\n\nlet navigationTabContentCounter = 0;\n\ninterface NavigationTabContentOptions extends CustomElementOptions {\n}\n\n@Component({\n tag: 'navigation-tab-content',\n template: import('./navigation-tab-content.html'),\n style: import('./navigation-tab-content.scss')\n})\n\nexport class NavigationTabContent extends CustomElement {\n private static readonly elementSelector = 'navigation-tab-content';\n\n static get observedAttributes() {\n return ['selected'];\n }\n\n @Prop() id: string;\n\n constructor() {\n super();\n }\n\n setup(options?: NavigationTabContentOptions): void {\n this.connect(options.container);\n if (options.id) {\n this.id = options.id;\n }\n }\n\n connectedCallback() {\n this.setAttribute('role', 'tabpanel');\n if (!this.id) {\n this.id = `navigation-tab-content-${navigationTabContentCounter++}`;\n }\n }\n\n disconnectedCallback() {\n }\n\n public static setup(selector: string, options: NavigationTabContentOptions) {\n const element = getElement<NavigationTabContent>(selector);\n }\n}","// Dependencies\nimport {\n Component, CustomElement, CustomElementOptions, Prop, Dispatch, DispatchEmitter,\n Listen, Watch, getElement, getShadowRootElement, Toggle\n} from 'super-custom-elements';\n\n// Helpers\nimport { addGlobalStylesheet } from \"functions/guiHelpers\";\n\n// Stylesheets\nimport slottedStyles from \"./slottedStyles.scss\";\n\nlet navigationTabHeadingCounter = 0;\n\n\ninterface NavigationTabHeadingOptions extends CustomElementOptions {\n}\n\n@Component({\n tag: 'navigation-tab-heading',\n template: import('./navigation-tab-heading.html'),\n style: import('./navigation-tab-heading.scss')\n})\n\n\n\nexport class NavigationTabHeading extends CustomElement {\n private static readonly elementSelector = 'navigation-tab-heading';\n private tabHeadingElement: HTMLElement;\n\n/*\n static get observedAttributes() {\n return ['selected'];\n }*/\n\n @Prop() id: string;\n @Toggle() selected: boolean;\n\n constructor() {\n super();\n }\n\n setup(options?: NavigationTabHeadingOptions): void {\n this.connect(options.container);\n if (options.id) {\n this.id = options.id;\n }\n }\n\n connectedCallback() {\n this.setAttribute('role', 'tab');\n if (!this.id) {\n this.id = `navigation-tab-heading-${navigationTabHeadingCounter++}`;\n }\n\n this.tabHeadingElement = getShadowRootElement(this, 'slot[name=tab-heading]');\n\n // Set a well-defined initial state.\n this.setAttribute('aria-selected', 'false');\n this.setAttribute('tabindex', '-1');\n this._upgradeProperty('selected');\n\n addGlobalStylesheet(\"navigation-tab-heading-styles\", slottedStyles);\n\n\n }\n\n disconnectedCallback() {\n }\n\n _upgradeProperty(prop) {\n if (this.hasOwnProperty(prop)) {\n let value = this[prop];\n delete this[prop];\n this[prop] = value;\n }\n }\n\n attributeChangedCallback() {\n\n }\n\n @Watch('selected')\n selectedChanged() {\n this.selected ? this.setAttribute('aria-selected', '') : this.removeAttribute('aria-selected');\n this.selected ? this.tabHeadingElement.classList.add('selected') : this.tabHeadingElement.classList.remove('selected');\n this.setAttribute('tabindex', this.selected ? '0' : '-1');\n }\n\n public static setup(selector: string, options: NavigationTabHeadingOptions) {\n const element = getElement<NavigationTabHeading>(selector);\n }\n}","// Dependencies\nimport {\n Component, CustomElement, CustomElementOptions, Prop, Dispatch, DispatchEmitter,\n Listen, Watch, getElement, getShadowRootElement, Toggle\n} from 'super-custom-elements';\n\n// Components\nimport { NavigationTabHeading } from 'custom-elements/navigation-tabs/navigation-tab-heading/navigation-tab-heading';\nimport { NavigationTabContent } from 'custom-elements/navigation-tabs/navigation-tab-content/navigation-tab-content';\n\n\ninterface NavigationTabsOptions extends CustomElementOptions {\n active?: boolean,\n onClick?: () => void,\n onSearch?: () => void,\n onOpenEmptyMapItemsList?: () => void,\n onOpenEmptyDownloadItemsList?: () => void\n}\n\ninterface TabHeadingElement extends HTMLElement {\n selected: boolean\n}\n\ninterface TabContentElement extends HTMLElement {\n hidden: boolean\n}\n\n@Component({\n tag: 'navigation-tabs',\n template: import('./navigation-tabs.html'),\n style: import('./navigation-tabs.scss')\n})\n\nexport class NavigationTabs extends CustomElement {\n private static readonly elementSelector = 'navigation-tabs';\n private tabHeadingSlot: TabHeadingElement;\n private tabContentSlot: TabContentElement;\n\n static get observedAttributes() {\n return ['selected'];\n }\n\n @Prop() id: string;\n @Prop() selectedtab: string;\n @Dispatch('onSearch') onSearch: DispatchEmitter;\n\n constructor() {\n super();\n\n // Event handlers that are not attached to this element need to be bound\n // if they need access to `this`.\n this.onSlotChange = this.onSlotChange.bind(this);\n\n // For progressive enhancement, the markup should alternate between tabs\n // and panels. Elements that reorder their children tend to not work well\n // with frameworks. Instead shadow DOM is used to reorder the elements by\n // using slots.\n // this.attachShadow({ mode: 'open' });\n\n \n\n }\n\n setup(options?: NavigationTabsOptions): void {\n this.connect(options.container);\n if (options.id) {\n this.id = options.id;\n }\n }\n\n connectedCallback() {\n this.tabHeadingSlot = getShadowRootElement(this, 'slot[name=tab-heading]');\n this.tabContentSlot = getShadowRootElement(this, 'slot[name=tab-content]');\n\n this.tabHeadingSlot.addEventListener('slotchange', this.onSlotChange);\n this.tabContentSlot.addEventListener('slotchange', this.onSlotChange);\n\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'tablist');\n }\n\n this.addEventListener('click', this._onClick);\n\n\n const navigationTabHeading = new NavigationTabHeading();\n const navigationTabContent = new NavigationTabContent();\n\n Promise.all([\n customElements.whenDefined('navigation-tab-heading'),\n customElements.whenDefined('navigation-tab-content')\n ]).then(() => {\n this.linkPanels()\n\n });\n }\n\n disconnectedCallback() {\n this.removeEventListener('click', this._onClick);\n }\n\n onSlotChange() {\n this.linkPanels();\n }\n\n linkPanels() {\n const tabHeadingElements: Array<TabHeadingElement> = this.getTabHeadingElements();\n // Give each panel a `aria-labelledby` attribute that refers to the tab\n // that controls it.\n tabHeadingElements.forEach(tabHeadingElement => {\n const tabContentElement = tabHeadingElement.nextElementSibling;\n if (tabContentElement.tagName.toLowerCase() !== 'navigation-tab-content') {\n console.error(`navigation-tab-heading #${tabHeadingElement.id} is not a` +\n `sibling of a <tab-navigation-content>`);\n return;\n }\n tabHeadingElement.setAttribute('aria-controls', tabContentElement.id);\n tabContentElement.setAttribute('aria-labelledby', tabHeadingElement.id);\n\n let tabHeadingHtml = document.createElement('div');\n tabHeadingHtml.innerHTML = tabHeadingElement.innerHTML;\n tabHeadingHtml.setAttribute('slot', 'tab-heading');\n tabHeadingElement.innerHTML = '';\n tabHeadingElement.appendChild(tabHeadingHtml);\n \n let tabContentHtml = document.createElement('div');\n tabContentHtml.innerHTML = tabContentElement.innerHTML;\n tabContentHtml.setAttribute('slot', 'tab-content');\n tabContentElement.innerHTML = '';\n tabContentElement.appendChild(tabContentHtml);\n });\n\n // The element checks if any of the tabs have been marked as selected.\n // If not, the first tab is now selected.\n const selectedTabHeadingElement: TabHeadingElement = tabHeadingElements.find((tabHeadingElement: TabHeadingElement) => {\n return tabHeadingElement.selected\n }) || tabHeadingElements[0];\n\n // Next, switch to the selected tab. `selectTab()` takes care of\n // marking all other tabs as deselected and hiding all other panels.\n this.setSelectTab(selectedTabHeadingElement);\n }\n\n setSelectTab(newTabHeading: TabHeadingElement) {\n // Deselect all tabs and hide all panels.\n this.reset();\n\n // Get the panel that the `newTab` is associated with.\n const newTabContent: TabContentElement = this.getTabContentForTabHeading(newTabHeading);\n\n // If that panel doesn’t exist, abort.\n if (!newTabContent){\n throw new Error(`No tab-content-element with id ${newTabHeading.getAttribute('aria-controls')}`);\n }\n newTabHeading.selected = true;\n newTabContent.hidden = false;\n }\n\n getTabHeadingElements() {\n const tabHeadingElements: Array<TabHeadingElement> = Array.from(this.querySelectorAll('navigation-tab-heading'));\n return tabHeadingElements;\n }\n\n getTabContentElements() {\n const tabContentElements: Array<TabContentElement> = Array.from(this.querySelectorAll('navigation-tab-content'));\n return tabContentElements;\n }\n\n getTabContentForTabHeading(tabHeadingElement) {\n const tabContentElementId = tabHeadingElement.getAttribute('aria-controls');\n const tabContentElement: TabContentElement = this.querySelector(`#${tabContentElementId}`);\n return tabContentElement;\n }\n\n reset() {\n const tabHeadingElements: Array<TabHeadingElement> = this.getTabHeadingElements();\n const tabContentElements: Array<TabContentElement> = this.getTabContentElements();\n\n tabHeadingElements.forEach(tabHeadingElement => tabHeadingElement.selected = false);\n tabContentElements.forEach(tabContentElement => tabContentElement.hidden = true);\n }\n\n _onClick(event) {\n const clickedTabHeading = event.target.closest('navigation-tab-heading');\n // If the click was not targeted on a tab element itself,\n // it was a click inside the a panel or on empty space. Nothing to do.\n if (!clickedTabHeading || clickedTabHeading.getAttribute('role') !== 'tab'){\n return;\n }\n // If it was on a tab element, though, select that tab.\n this.setSelectTab(clickedTabHeading);\n }\n\n\n\n\n public static setup(selector: string, options: NavigationTabsOptions) {\n const element = getElement<NavigationTabs>(selector);\n }\n}\n","export const getFocusableElementsInsideElement = (element: HTMLElement) => {\n return element.querySelectorAll('button, [href], input, [tabindex=\"0\"]');\n};\n\nexport const addGlobalStylesheet = (styleElementId: string, styles: string) => {\n const style = document.createElement(\"style\");\n style.setAttribute(\"id\", styleElementId);\n style.textContent = styles;\n if (!document.getElementById(styleElementId)) {\n document.head.appendChild(style);\n }\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(697);\n"],"names":["root","factory","exports","module","define","amd","self","___CSS_LOADER_EXPORT___","push","id","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","Component","args","target","tag","toKebabCase","prototype","constructor","name","customElement","super","props","showShadowRoot","shadow","shadowRoot","attachShadow","mode","observedAttributes","Object","keys","propsInit","x","attributeChangedCallback","oldValue","newValue","onAttributeChange","set","toCamelCase","watchAttributes","methodToCall","__connected","old","new","connectedCallback","render","addEventListeners","initializeProps","template","document","createElement","innerHTML","getStyle","Promise","appendChild","getExternalTemplate","cloneNode","markup","default","fragment","createRange","createContextualFragment","children","nodeName","firstChild","css","style","ready","resolve","_","customElements","get","CustomElement","HTMLElement","connect","selector","isConnected","querySelector","getElement","getShadowRootElement","Listen","eventName","methodName","listeners","handler","targetRoot","listener","eventTarget","addEventListener","e","call","Dispatch","propertyName","defineProperty","emit","options","evtName","toDotCase","dispatchEvent","CustomEvent","Prop","propName","attrName","getAttribute","value","tryParseInt","setAttribute","hasAttribute","prop","plainAttributes","forEach","v","cycleProps","getProps","attribValue","Toggle","attrValue","test","console","warn","removeAttribute","str","replace","toLowerCase","m","toUpperCase","parseInt","NaN","parseFloat","Watch","navigationTabContentCounter","NavigationTabContent","setup","container","disconnectedCallback","static","elementSelector","navigationTabHeadingCounter","NavigationTabHeading","tabHeadingElement","_upgradeProperty","addGlobalStylesheet","hasOwnProperty","selectedChanged","selected","classList","add","remove","NavigationTabs","onSlotChange","bind","tabHeadingSlot","tabContentSlot","_onClick","all","whenDefined","then","linkPanels","removeEventListener","tabHeadingElements","getTabHeadingElements","tabContentElement","nextElementSibling","tagName","error","tabHeadingHtml","tabContentHtml","selectedTabHeadingElement","find","setSelectTab","newTabHeading","reset","newTabContent","getTabContentForTabHeading","Error","hidden","Array","from","querySelectorAll","getTabContentElements","tabContentElementId","tabContentElements","event","clickedTabHeading","closest","getFocusableElementsInsideElement","element","styleElementId","styles","textContent","getElementById","head","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","enumerable","obj","r","Symbol","toStringTag"],"sourceRoot":""}