@genesislcap/design-system-configurator 14.91.0 → 14.91.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{361.361.f9cb4cb4dcc2da936387.js → 361.361.7c4b2248b855ae776194.js} +2 -2
  2. package/dist/{361.75bb30d26a06f50d0325f31975a471e5.js.map → 361.7f53beccc36aa326237c570a2d5229d3.js.map} +1 -1
  3. package/dist/{371.371.a620dcae3e773a8ff69a.js → 371.371.1150e2714e6435104148.js} +2 -2
  4. package/dist/{371.bd3cfdcebe664d944cf25a05f56adc68.js.map → 371.bb9e2778cca388b0d269d41a335d61d2.js.map} +1 -1
  5. package/dist/{688.688.1d26d4db81d692eee515.js → 688.688.4ff7e10dacceb9fefb32.js} +2 -2
  6. package/dist/{688.6fe7e22c078658ea8cd077f055ea719b.js.map → 688.cd3cd649fbb2b22ee982d264ddc54f25.js.map} +1 -1
  7. package/dist/{701.701.e34f37d4ef2934cf7bb2.js → 701.701.9dbcfd1a6093741cb743.js} +17 -13
  8. package/dist/701.9441216759582277e759ec38c7309f8c.js.map +1 -0
  9. package/dist/{721.721.d16dc9dbd91fe34a8de2.js → 721.721.275ba7fe10b9f31eba02.js} +12 -8
  10. package/dist/721.be673afde63f2affba52eea17391baa5.js.map +1 -0
  11. package/dist/{755.3286f535f2f194a1cf0e810fede2ea5a.js.map → 755.0d64f062b3b634cd118d384847e796ca.js.map} +1 -1
  12. package/dist/755.755.9ac7e27bcde90cf64c6e.js +2 -0
  13. package/dist/designSystemConfigurator.6a5e592e13d1610fa1caae26f34e1b71.js.map +1 -0
  14. package/dist/index.html +1 -1
  15. package/dist/main.4976af57e790c9ddb91709bce912566c.js.map +1 -0
  16. package/dist/main.ed9710b8be851e473935.js +2 -0
  17. package/dist/remoteEntry.js +2 -2
  18. package/package.json +7 -7
  19. package/dist/701.11ac064ecc866c153ef6d60322a3864a.js.map +0 -1
  20. package/dist/721.82bb99c685a0f05917660d209f3e921e.js.map +0 -1
  21. package/dist/755.755.21aaaf5b019e829048a9.js +0 -2
  22. package/dist/designSystemConfigurator.3d0f13d686ab14a9110cd68b1c00c774.js.map +0 -1
  23. package/dist/main.2a1a3abd088c1d2ff35edf4e3a356358.js.map +0 -1
  24. package/dist/main.f46bdc53281d22b427ed.js +0 -2
@@ -3,11 +3,11 @@
3
3
  <design-system-preview></design-system-preview>
4
4
  <design-system-export slot="export" tokensPath="${e=>e.tokensPath}"></design-system-export>
5
5
  </design-system-editor>
6
- `;var s=n(95286),a=n(87237),i=n(85445),c=n(13896);a.DesignSystemPreview,a.DesignSystemEditor,a.DesignSystemExport;const d=(0,n(3539).createLogger)("design-system-configurator");var u=n(90487),p=n.n(u),l=n(80631),f=n.n(l),m=n(52052),h=n.n(m),v=n(64010),g=n.n(v),y=n(11469),b=n.n(y),A=n(9329),C=n.n(A),_=n(15210),E={};E.styleTagTransform=C(),E.setAttributes=g(),E.insert=h().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=b();p()(_.Z,E);_.Z&&_.Z.locals&&_.Z.locals;const S=o.css`
6
+ `;var s=n(95286),a=n(79749),i=n(45605),c=n(13896);a.DesignSystemPreview,a.DesignSystemEditor,a.DesignSystemExport;const d=(0,n(99046).createLogger)("design-system-configurator");var u=n(90487),p=n.n(u),l=n(80631),f=n.n(l),m=n(52052),h=n.n(m),v=n(64010),g=n.n(v),y=n(11469),b=n.n(y),A=n(9329),C=n.n(A),_=n(15210),E={};E.styleTagTransform=C(),E.setAttributes=g(),E.insert=h().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=b();p()(_.Z,E);_.Z&&_.Z.locals&&_.Z.locals;const S=o.css`
7
7
  :host {
8
8
  display: flex;
9
9
  height: 100%;
10
10
  overflow: hidden;
11
11
  }
12
12
  `,w="design-system-configurator";let x=class extends o.FASTElement{constructor(){super(...arguments),this.ready=!1}connectedCallback(){super.connectedCallback(),fetch("/api/tokens").then((e=>e.ok&&e.json())).then((e=>{e.design_tokens&&(this.tokensPath=!0,this.$emit(a.EventName.APPLY_CUSTOM_DESIGN,e))})).catch((e=>{console.error("Error fetching path:",e)})),d.debug(`${w} is now connected to the DOM`),this.loadRemotes()}loadRemotes(){return(0,s.__awaiter)(this,void 0,void 0,(function*(){yield(0,s.__awaiter)(void 0,void 0,void 0,(function*(){(0,i.provideDesignSystem)().register(i.baseComponents),(0,c.provideFASTDesignSystem)().register(c.allComponents)}));this.ready=!0}))}};(0,s.__decorate)([o.observable],x.prototype,"ready",void 0),(0,s.__decorate)([o.attr],x.prototype,"tokensPath",void 0),x=(0,s.__decorate)([(0,o.customElement)({name:w,template:r,styles:S})],x)}}]);
13
- //# sourceMappingURL=688.6fe7e22c078658ea8cd077f055ea719b.js.map
13
+ //# sourceMappingURL=688.cd3cd649fbb2b22ee982d264ddc54f25.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"688.688.xxxxxxxxxxxxxxxxxxxx.js","mappings":"sNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,mFAAoF,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,iCAAiC,MAAQ,GAAG,SAAW,qDAAqD,eAAiB,CAAC,oFAAoF,WAAa,MAEvX,S,YCDAD,EAAOE,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA4EX,OAzEAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GAoB5B,OAnBIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAEvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAEnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAE5EC,GAAWN,EAAuBK,GAC9BE,IACFD,GAAW,KAETD,EAAK,KACPC,GAAW,KAETD,EAAK,KACPC,GAAW,KAENA,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AAAI,eAAc,CACVC,KAAI,EACJC,SAAQ,EACRC,OAAM,KAEXjC,E","sources":["webpack://@genesislcap/design-system-configurator/./src/main/main.css","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/api.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@genesislcap/design-system-configurator/./src/main/main.template.ts","webpack://@genesislcap/design-system-configurator/./src/components/components.ts","webpack://@genesislcap/design-system-configurator/./src/utils/logger.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.css?7ee1","webpack://@genesislcap/design-system-configurator/./src/main/main.styles.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.ts"],"sourcesContent":["// 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, \"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/main/main.css\"],\"names\":[],\"mappings\":\"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX\",\"sourcesContent\":[\"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"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 = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\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 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 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 list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\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 return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","import { html } from '@microsoft/fast-element';\nexport const MainTemplate = html `\n <design-system-editor custom-design-mode=\"${(x) => x.tokensPath}\">\n <design-system-preview></design-system-preview>\n <design-system-export slot=\"export\" tokensPath=\"${(x) => x.tokensPath}\"></design-system-export>\n </design-system-editor>\n`;\n","import { __awaiter } from \"tslib\";\nimport { provideDesignSystem, baseComponents } from '@genesislcap/alpha-design-system';\nimport { DesignSystemPreview, DesignSystemExport, DesignSystemEditor, } from '@genesislcap/documentation-components';\nimport { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';\nDesignSystemPreview;\nDesignSystemEditor;\nDesignSystemExport;\nexport const loadRemotes = () => __awaiter(void 0, void 0, void 0, function* () {\n provideDesignSystem().register(baseComponents);\n provideFASTDesignSystem().register(allComponents);\n});\n","import { createLogger } from '@genesislcap/foundation-logger';\nexport const logger = createLogger('design-system-configurator');\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./main.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./main.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { css } from '@microsoft/fast-element';\nimport './main.css';\nexport const MainStyles = css `\n :host {\n display: flex;\n height: 100%;\n overflow: hidden;\n }\n`;\n","import { __awaiter, __decorate } from \"tslib\";\nimport { EventName } from '@genesislcap/documentation-components';\nimport { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';\nimport * as Components from '../components';\nimport { logger } from '../utils';\nimport { MainStyles as styles } from './main.styles';\nimport { MainTemplate as template } from './main.template';\nconst name = 'design-system-configurator';\nlet MainApplication = class MainApplication extends FASTElement {\n constructor() {\n super(...arguments);\n this.ready = false;\n }\n connectedCallback() {\n super.connectedCallback();\n fetch(`/api/tokens`)\n .then((response) => response.ok && response.json())\n .then((data) => {\n if (data.design_tokens) {\n this.tokensPath = true;\n this.$emit(EventName.APPLY_CUSTOM_DESIGN, data);\n }\n })\n .catch((error) => {\n console.error('Error fetching path:', error);\n });\n logger.debug(`${name} is now connected to the DOM`);\n this.loadRemotes();\n }\n loadRemotes() {\n return __awaiter(this, void 0, void 0, function* () {\n const remotes = yield Components.loadRemotes();\n this.ready = true;\n });\n }\n};\n__decorate([\n observable\n], MainApplication.prototype, \"ready\", void 0);\n__decorate([\n attr\n], MainApplication.prototype, \"tokensPath\", void 0);\nMainApplication = __decorate([\n customElement({\n name,\n template,\n styles,\n })\n], MainApplication);\nexport { MainApplication };\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","exports","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","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","MainTemplate","html","x","tokensPath","DesignSystemPreview","DesignSystemEditor","DesignSystemExport","logger","createLogger","MainStyles","MainApplication","FASTElement","constructor","super","arguments","ready","connectedCallback","fetch","then","response","ok","json","design_tokens","$emit","EventName","catch","error","console","debug","loadRemotes","__awaiter","provideDesignSystem","register","baseComponents","provideFASTDesignSystem","allComponents","__decorate","observable","prototype","attr","customElement","name","template","styles"],"sourceRoot":""}
1
+ {"version":3,"file":"688.688.xxxxxxxxxxxxxxxxxxxx.js","mappings":"sNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,mFAAoF,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,iCAAiC,MAAQ,GAAG,SAAW,qDAAqD,eAAiB,CAAC,oFAAoF,WAAa,MAEvX,S,YCDAD,EAAOE,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA4EX,OAzEAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GAoB5B,OAnBIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAEvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAEnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAE5EC,GAAWN,EAAuBK,GAC9BE,IACFD,GAAW,KAETD,EAAK,KACPC,GAAW,KAETD,EAAK,KACPC,GAAW,KAENA,CACT,IAAGI,KAAK,GACV,EAGAT,EAAKU,EAAI,SAAWC,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,iBAAZJ,IACTA,EAAU,CAAC,CAAC,KAAMA,OAASK,KAE7B,IAAIC,EAAyB,CAAC,EAC9B,GAAIJ,EACF,IAAK,IAAIK,EAAI,EAAGA,EAAIhB,KAAKM,OAAQU,IAAK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jE,EAAU,CAAC,EAEfA,EAAQgD,kBAAoB,IAC5BhD,EAAQ0C,cAAgB,IAElB1C,EAAQ0B,OAAS,SAAc,KAAM,QAE3C1B,EAAQe,OAAS,IACjBf,EAAQ+C,mBAAqB,IAEhB,IAAI,IAAS/C,GAKJ,KAAW,YAAiB,WAA3C,MCxBMkE,EAAa,EAAA3D,GAAI;;;;;;ECKxB,EAAO,6BACb,IAAI4D,EAAkB,cAA8B,EAAAC,YAChDC,cACIC,SAASC,WACTvG,KAAKwG,OAAQ,CACjB,CACAC,oBACIH,MAAMG,oBACNC,MAAM,eACDC,MAAMC,GAAaA,EAASC,IAAMD,EAASE,SAC3CH,MAAMlF,IACHA,EAAKsF,gBACL/G,KAAK4F,YAAa,EAClB5F,KAAKgH,MAAM,EAAAC,UAAA,oBAA+BxF,GAC9C,IAECyF,OAAOC,IACRC,QAAQD,MAAM,uBAAwBA,EAAM,IAEhDnB,EAAOqB,MAAM,GAAG,iCAChBrH,KAAKsH,aACT,CACAA,cACI,OAAO,IAAAC,WAAUvH,UAAM,OAAQ,GAAQ,kBJvBd,IAAAuH,gBAAU,OAAQ,OAAQ,GAAQ,aAC/D,IAAAC,uBAAsBC,SAAS,EAAAC,iBAC/B,IAAAC,2BAA0BF,SAAS,EAAAG,cACvC,IIsBY5H,KAAKwG,OAAQ,CACjB,GACJ,IAEJ,IAAAqB,YAAW,CACP,EAAAC,YACD3B,EAAgB4B,UAAW,aAAS,IACvC,IAAAF,YAAW,CACP,EAAAG,MACD7B,EAAgB4B,UAAW,kBAAc,GAC5C5B,GAAkB,IAAA0B,YAAW,EACzB,IAAAI,eAAc,CACVC,KAAI,EACJC,SAAQ,EACRC,OAAM,KAEXjC,E","sources":["webpack://@genesislcap/design-system-configurator/./src/main/main.css","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/api.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@genesislcap/design-system-configurator/./src/main/main.template.ts","webpack://@genesislcap/design-system-configurator/./src/components/components.ts","webpack://@genesislcap/design-system-configurator/./src/utils/logger.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.css?7ee1","webpack://@genesislcap/design-system-configurator/./src/main/main.styles.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.ts"],"sourcesContent":["// 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, \"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/main/main.css\"],\"names\":[],\"mappings\":\"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX\",\"sourcesContent\":[\"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"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 = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\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 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 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 list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\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 return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","import { html } from '@microsoft/fast-element';\nexport const MainTemplate = html `\n <design-system-editor custom-design-mode=\"${(x) => x.tokensPath}\">\n <design-system-preview></design-system-preview>\n <design-system-export slot=\"export\" tokensPath=\"${(x) => x.tokensPath}\"></design-system-export>\n </design-system-editor>\n`;\n","import { __awaiter } from \"tslib\";\nimport { provideDesignSystem, baseComponents } from '@genesislcap/alpha-design-system';\nimport { DesignSystemPreview, DesignSystemExport, DesignSystemEditor, } from '@genesislcap/documentation-components';\nimport { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';\nDesignSystemPreview;\nDesignSystemEditor;\nDesignSystemExport;\nexport const loadRemotes = () => __awaiter(void 0, void 0, void 0, function* () {\n provideDesignSystem().register(baseComponents);\n provideFASTDesignSystem().register(allComponents);\n});\n","import { createLogger } from '@genesislcap/foundation-logger';\nexport const logger = createLogger('design-system-configurator');\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./main.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./main.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { css } from '@microsoft/fast-element';\nimport './main.css';\nexport const MainStyles = css `\n :host {\n display: flex;\n height: 100%;\n overflow: hidden;\n }\n`;\n","import { __awaiter, __decorate } from \"tslib\";\nimport { EventName } from '@genesislcap/documentation-components';\nimport { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';\nimport * as Components from '../components';\nimport { logger } from '../utils';\nimport { MainStyles as styles } from './main.styles';\nimport { MainTemplate as template } from './main.template';\nconst name = 'design-system-configurator';\nlet MainApplication = class MainApplication extends FASTElement {\n constructor() {\n super(...arguments);\n this.ready = false;\n }\n connectedCallback() {\n super.connectedCallback();\n fetch(`/api/tokens`)\n .then((response) => response.ok && response.json())\n .then((data) => {\n if (data.design_tokens) {\n this.tokensPath = true;\n this.$emit(EventName.APPLY_CUSTOM_DESIGN, data);\n }\n })\n .catch((error) => {\n console.error('Error fetching path:', error);\n });\n logger.debug(`${name} is now connected to the DOM`);\n this.loadRemotes();\n }\n loadRemotes() {\n return __awaiter(this, void 0, void 0, function* () {\n const remotes = yield Components.loadRemotes();\n this.ready = true;\n });\n }\n};\n__decorate([\n observable\n], MainApplication.prototype, \"ready\", void 0);\n__decorate([\n attr\n], MainApplication.prototype, \"tokensPath\", void 0);\nMainApplication = __decorate([\n customElement({\n name,\n template,\n styles,\n })\n], MainApplication);\nexport { MainApplication };\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","exports","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","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","MainTemplate","html","x","tokensPath","DesignSystemPreview","DesignSystemEditor","DesignSystemExport","logger","createLogger","MainStyles","MainApplication","FASTElement","constructor","super","arguments","ready","connectedCallback","fetch","then","response","ok","json","design_tokens","$emit","EventName","catch","error","console","debug","loadRemotes","__awaiter","provideDesignSystem","register","baseComponents","provideFASTDesignSystem","allComponents","__decorate","observable","prototype","attr","customElement","name","template","styles"],"sourceRoot":""}
@@ -715,16 +715,18 @@
715
715
  </div>
716
716
  `,ti=l.html`
717
717
  ${e=>ei(ze(e))}
718
- `;class oi extends n.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){Be(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,w.__decorate)([l.observable],oi.prototype,"items",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],oi.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],oi.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],oi.prototype,"classNames",void 0),(0,w.__decorate)([l.attr],oi.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],oi.prototype,"open",void 0),(0,w.__decorate)([l.attr],oi.prototype,"buttonAppearance",void 0);const ii=oi.compose({baseName:"dropdown-menu",styles:Qo,template:ti});var ai=o(3539);const ni=(0,ai.createLogger)("foundation-ui"),si=l.html`
718
+ `;class oi extends n.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){Be(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,w.__decorate)([l.observable],oi.prototype,"items",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],oi.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],oi.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],oi.prototype,"classNames",void 0),(0,w.__decorate)([l.attr],oi.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],oi.prototype,"open",void 0),(0,w.__decorate)([l.attr],oi.prototype,"buttonAppearance",void 0);const ii=oi.compose({baseName:"dropdown-menu",styles:Qo,template:ti});var ai=o(99046);const ni=(0,ai.createLogger)("foundation-ui"),si=l.html`
719
719
  <foundation-banner ${(0,l.ref)("banner")}>
720
720
  <div slot="content">
721
- <div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
721
+ <div>
722
+ ${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
723
+ </div>
722
724
  </div>
723
725
 
724
726
  <foundation-button slot="action" appearance="lightweight" @click=${e=>{var t;return null===(t=e.banner)||void 0===t?void 0:t.dismiss()}}>
725
- ${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
727
+ ${e=>{var t,o,i,a,n,s,l,r;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(r=null===(l=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.banner)||void 0===l?void 0:l.dismissingAction)||void 0===r?void 0:r.label)||"Ignore"}}
726
728
  </foundation-button>
727
- ${(0,l.repeat)((e=>{var t,o;return null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions}),l.html`
729
+ ${(0,l.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.banner.confirmingActions)}),l.html`
728
730
  <foundation-button
729
731
  slot="action"
730
732
  appearance="lightweight"
@@ -734,7 +736,7 @@
734
736
  </foundation-button>
735
737
  `)}
736
738
  </foundation-banner>
737
- `,li={mode:"open",delegatesFocus:!0};class ri extends n.FoundationElement{connectedCallback(){super.connectedCallback()}dismiss(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ni.error(e)}}))}}(0,w.__decorate)([l.observable],ri.prototype,"error",void 0);const di=ri.compose({baseName:"error-banner",template:si,shadowOptions:li});var ci,ui=o(6852);!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(ci||(ci={}));const pi=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},hi=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},mi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},vi=(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m;const v=t.split("-")[0],g=hi("notify-container",t);if(g)switch(g.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.notification)||void 0===i?void 0:i.position){case"top-left":g.style.top="0",g.style.left="0";break;case"bottom-left":g.style.bottom="0",g.style.left="0";break;case"bottom-right":g.style.bottom="0",g.style.right="0";break;default:g.style.top="0",g.style.right="0"}const f=document.createElement(`${v}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.type)||""),(null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.notification)||void 0===r?void 0:r.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===p?void 0:p.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(w),g.appendChild(f)},gi=(0,ai.createLogger)("foundation-error"),fi={alert:e=>{alert(pi(e))},notification:vi,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);hi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);hi("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return mi()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},bi=(e,t,o)=>{var i,a;gi.log({message:pi(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ai.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{fi[i]&&fi[i](e,t,o)}))};class yi{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ai.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}const wi=()=>new yi;class xi{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const Fi=l.html`
739
+ `,li={mode:"open",delegatesFocus:!0};class ri extends n.FoundationElement{connectedCallback(){super.connectedCallback()}dismiss(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ni.error(e)}}))}}(0,w.__decorate)([l.observable],ri.prototype,"error",void 0),(0,w.__decorate)([l.observable],ri.prototype,"notification",void 0);const di=ri.compose({baseName:"error-banner",template:si,shadowOptions:li});var ci,ui=o(6852);!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(ci||(ci={}));const pi=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},hi=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},mi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},vi=(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m;const v=t.split("-")[0],g=hi("notify-container",t);if(g)switch(g.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.notification)||void 0===i?void 0:i.position){case"top-left":g.style.top="0",g.style.left="0";break;case"bottom-left":g.style.bottom="0",g.style.left="0";break;case"bottom-right":g.style.bottom="0",g.style.right="0";break;default:g.style.top="0",g.style.right="0"}const f=document.createElement(`${v}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.type)||""),(null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.notification)||void 0===r?void 0:r.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===p?void 0:p.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(w),g.appendChild(f)},gi=(0,ai.createLogger)("foundation-error"),fi={alert:e=>{alert(pi(e))},notification:vi,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);hi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);hi("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return mi()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},bi=(e,t,o)=>{var i,a;gi.log({message:pi(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ai.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{fi[i]&&fi[i](e,t,o)}))};class yi{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ai.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}const wi=()=>new yi;class xi{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const Fi=l.html`
738
740
  <template ${(0,l.ref)("errorBoundary")}>
739
741
  <slot></slot>
740
742
  </template>
@@ -760,11 +762,11 @@
760
762
  `,_i=e=>l.html`
761
763
  <${e}-dialog show-close-icon="false" ${(0,l.ref)("dialog")}>
762
764
  <h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
763
- <div class="details">${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
765
+ <div class="details">${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}</div>
764
766
  <${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>
765
- ${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
767
+ ${e=>{var t,o,i,a,n,s,l,r;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(r=null===(l=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.dialog)||void 0===l?void 0:l.dismissingAction)||void 0===r?void 0:r.label)||"Ignore"}}
766
768
  </${e}-button>
767
- ${(0,l.repeat)((e=>{var t,o;return null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions}),l.html`
769
+ ${(0,l.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.dialog.confirmingActions)}),l.html`
768
770
  <${e}-button
769
771
  slot="bottom"
770
772
  appearance="lightweight"
@@ -776,7 +778,7 @@
776
778
  </${e}-dialog>
777
779
  `,Oi=l.html`
778
780
  ${e=>_i(ze(e))}
779
- `,ki={mode:"open",delegatesFocus:!0};class Ti extends n.FoundationElement{connectedCallback(){super.connectedCallback()}show(){this.dialog.show()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.error.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ni.error(e)}}}(0,w.__decorate)([l.observable],Ti.prototype,"error",void 0);const Li=Ti.compose({baseName:"error-dialog",template:Oi,styles:Di,shadowOptions:ki});var Ai=o(22296);const Ri=(0,ai.createLogger)("foundation-criteria");var Ei;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(Ei||(Ei={}));class Ni{constructor(e){this.$$operator=e}static And(){return new Ni(Ei.AND)}static Or(){return new Ni(Ei.OR)}static Not(){return new Ni(Ei.NOT)}static GreaterThan(){return new Ni(Ei.GT)}static GreaterThanOrEqual(){return new Ni(Ei.GE)}static LessThan(){return new Ni(Ei.LT)}static LessThanOrEqual(){return new Ni(Ei.LE)}static NotEqual(){return new Ni(Ei.NE)}static Equal(){return new Ni(Ei.EQ)}get operator(){return this.$$operator}}const Mi="default";class Ii{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Ni.And()),this.Or=(e,t={})=>this.withExpression(e,t,Ni.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Ni.Not())}withExpression(e,t={},o=Ni.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=Mi)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof Ni;return t&&Ri.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,Mi)}}else s(e,Mi);else s(e,"string"==typeof e?Mi:e.group);var l;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof Ni){if(o[t-1]instanceof Ni)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Ni?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const Pi=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},Hi=e=>t=>`${t.field} ${e} ${Pi(t)}`,ji=e=>Hi(Ei.EQ)(e);class Bi{constructor(e){this.serialiser=ji,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}var Gi=o(21607);const zi=l.css`
781
+ `,ki={mode:"open",delegatesFocus:!0};class Ti extends n.FoundationElement{connectedCallback(){super.connectedCallback()}show(){this.dialog.show()}dismiss(){var e,t,o,i,a,n,s,l;(null===(i=null===(o=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.error.config.dialog.dismissingAction.action(),(null===(l=null===(s=null===(n=null===(a=this.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===l?void 0:l.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ni.error(e)}}}(0,w.__decorate)([l.observable],Ti.prototype,"error",void 0),(0,w.__decorate)([l.observable],Ti.prototype,"notification",void 0);const Li=Ti.compose({baseName:"error-dialog",template:Oi,styles:Di,shadowOptions:ki});var Ai=o(22296);const Ri=(0,ai.createLogger)("foundation-criteria");var Ei;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(Ei||(Ei={}));class Ni{constructor(e){this.$$operator=e}static And(){return new Ni(Ei.AND)}static Or(){return new Ni(Ei.OR)}static Not(){return new Ni(Ei.NOT)}static GreaterThan(){return new Ni(Ei.GT)}static GreaterThanOrEqual(){return new Ni(Ei.GE)}static LessThan(){return new Ni(Ei.LT)}static LessThanOrEqual(){return new Ni(Ei.LE)}static NotEqual(){return new Ni(Ei.NE)}static Equal(){return new Ni(Ei.EQ)}get operator(){return this.$$operator}}const Mi="default";class Ii{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Ni.And()),this.Or=(e,t={})=>this.withExpression(e,t,Ni.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Ni.Not())}withExpression(e,t={},o=Ni.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=Mi)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof Ni;return t&&Ri.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,Mi)}}else s(e,Mi);else s(e,"string"==typeof e?Mi:e.group);var l;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof Ni){if(o[t-1]instanceof Ni)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Ni?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const Pi=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},Hi=e=>t=>`${t.field} ${e} ${Pi(t)}`,ji=e=>Hi(Ei.EQ)(e);class Bi{constructor(e){this.serialiser=ji,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}var Gi=o(21607);const zi=l.css`
780
782
  /* Host */
781
783
  :host {
782
784
  display: flex;
@@ -2035,10 +2037,12 @@
2035
2037
  `,Nl=l.html`
2036
2038
  <div class="snackbar ${e=>e.deleteAnimation}" ${(0,l.ref)("snackbar")}>
2037
2039
  <div part="content" class="content">
2038
- <div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
2040
+ <div>
2041
+ ${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
2042
+ </div>
2039
2043
  </div>
2040
2044
  <div part="action" class="action">
2041
- ${(0,l.repeat)((e=>{var t,o,i;return null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions}),l.html`
2045
+ ${(0,l.repeat)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions)}),l.html`
2042
2046
  <foundation-button
2043
2047
  slot="action"
2044
2048
  appearance="lightweight"
@@ -2049,7 +2053,7 @@
2049
2053
  `)}
2050
2054
  </div>
2051
2055
  </div>
2052
- `,Ml={mode:"open",delegatesFocus:!0};class Il extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([l.observable],Il.prototype,"error",void 0),(0,w.__decorate)([l.observable],Il.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Il.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Il.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Il.prototype,"type",void 0);const Pl=Il.compose({baseName:"snackbar",styles:El,template:Nl,shadowOptions:Ml}),Hl=(e,t)=>l.css`
2056
+ `,Ml={mode:"open",delegatesFocus:!0};class Il extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}notificationChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([l.observable],Il.prototype,"error",void 0),(0,w.__decorate)([l.observable],Il.prototype,"notification",void 0),(0,w.__decorate)([l.observable],Il.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Il.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Il.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Il.prototype,"type",void 0);const Pl=Il.compose({baseName:"snackbar",styles:El,template:Nl,shadowOptions:Ml}),Hl=(e,t)=>l.css`
2053
2057
  ${(0,s.switchStyles)(e,t)}
2054
2058
  .checked-indicator {
2055
2059
  transform: scale(1.3);
@@ -2324,4 +2328,4 @@
2324
2328
  <slot></slot>
2325
2329
  </template>
2326
2330
  `;var fd;!function(e){e.NOTIFICATION_EVENT="notification-event"}(fd||(fd={}));const bd=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},yd=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},wd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},xd=(0,ai.createLogger)("foundation-notifications"),Fd={alert:e=>{alert(bd(e))},toast:(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m,v,g,f,b,y;const w=t.split("-")[0],x=yd("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const F=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const $=document.createElement("div");$.setAttribute("slot","content"),$.textContent=(null==e?void 0:e.body)||"";const C=document.createElement("div");let D;C.setAttribute("slot","date"),C.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===r?void 0:r.buttons)||void 0===d?void 0:d.length)&&(D=document.createElement("div"),D.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:F})})),t.appearance&&o.setAttribute("appearance",t.appearance),D.appendChild(o)}))),F.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&F.setAttribute("auto-close",`${null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose}`),(null===(f=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===f?void 0:f.closeTimeout)&&F.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),F.appendChild(S),F.appendChild($),F.appendChild(C),D&&F.appendChild(D),x.appendChild(F)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-notification-dialog`);yd("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);yd("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return wd()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},Sd=(e,t,o)=>{var i,a;xd.log({message:bd(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ai.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Fd[i]&&Fd[i](e,t,o)}))};class $d{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in ai.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Cd{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const Dd={mode:"open",delegatesFocus:!0};class _d extends n.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(fd.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Sd(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,pd.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{var t;const{HEADER:o,MESSAGE:i,NOTIFY_SEVERITY:a}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:t})=>!t||t({details:e})))),Sd((new $d).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Cd).withDetails(e).withType(null==a?void 0:a.toLowerCase()).withButtons(l).withAutoClose(null!==(t=!!s)&&void 0!==t?t:!!this.closeTimeout).withCloseTimeout(null!=s?s:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}))}}(0,w.__decorate)([l.observable],_d.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],_d.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],_d.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],_d.prototype,"toastButtons",void 0),(0,w.__decorate)([ui.Yh],_d.prototype,"datasource",void 0);const Od=_d.compose({baseName:"notification-listener",template:gd,shadowOptions:Dd});var kd;let Td=kd=class extends md{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||ni.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof kd||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)}));const i=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";l.DOM.queueUpdate((()=>{this.select.value=i}))}handleStreamInserts(e){ni.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ni.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ni.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Td.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Td.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],Td.prototype,"labelFormatter",void 0),Td=kd=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],Td);let Ld=class extends md{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||ni.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.select.options=t}handleStreamInserts(e){ni.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ni.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ni.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Ld.prototype,"valueField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Ld.prototype,"labelField",void 0),Ld=(0,w.__decorate)([(0,l.customElement)({name:"multiselect-datasource"})],Ld);const Ad=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return l.FASTElement.define(class extends e{},i(o))};function Rd(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var Ed=o(1279);let Nd=class extends(Ed.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Nd=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],Nd);const Md=()=>ld().register(nd)}}]);
2327
- //# sourceMappingURL=701.11ac064ecc866c153ef6d60322a3864a.js.map
2331
+ //# sourceMappingURL=701.9441216759582277e759ec38c7309f8c.js.map