@cas-smartdesign/message 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../element-base/element-base.ts", "../message.html?raw", "../resources/error.svg", "../resources/info.svg", "../resources/warn.svg", "../resources/success.svg", "../message.ts"],
3
+ "sources": ["../../element-base/element-base.ts", "../message.html", "../resources/error.svg", "../resources/info.svg", "../resources/warn.svg", "../resources/success.svg", "../message.ts"],
4
4
  "sourcesContent": ["export type IReadyEvent = void;\n\nexport interface CustomEventMap extends HTMLElementEventMap {\n ready: CustomEvent<IReadyEvent>;\n}\n\nexport interface ElementBase {\n addEventListener<K extends keyof CustomEventMap>(\n event: K,\n listener: ((this: this, ev: CustomEventMap[K]) => unknown) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n addEventListener(\n type: string,\n callback: EventListenerOrEventListenerObject | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener<K extends keyof CustomEventMap>(\n type: K,\n listener: (this: this, ev: CustomEventMap[K]) => unknown,\n options?: boolean | EventListenerOptions,\n ): void;\n removeEventListener(\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n ): void;\n dispatchEvent<EventType extends CustomEventMap[keyof CustomEventMap]>(event: EventType): boolean;\n}\n\nexport abstract class ElementBase extends HTMLElement {\n public abstract is(): string;\n\n protected abstract template(): HTMLTemplateElement;\n private static readonly TEMPLATE_CACHE: {\n [name: string]: HTMLTemplateElement;\n } = {};\n private memoizedTemplate(): HTMLTemplateElement {\n const is = this.is();\n if (ElementBase.TEMPLATE_CACHE[is]) {\n return ElementBase.TEMPLATE_CACHE[is];\n }\n const template = this.template();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((window as any).ShadyCSS) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).ShadyCSS.prepareTemplate(template, this.is());\n }\n ElementBase.TEMPLATE_CACHE[is] = template;\n return template;\n }\n\n public connectedCallback() {\n const template = this.memoizedTemplate();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((window as any).ShadyCSS) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).ShadyCSS.styleElement(this);\n }\n if (!this.shadowRoot) {\n this.attachShadow({ mode: \"open\" });\n this.shadowRoot.appendChild(document.importNode(template.content, true));\n requestAnimationFrame(() => this.dispatchEvent(new CustomEvent<IReadyEvent>(\"ready\")));\n }\n }\n\n public whenReady(actor: () => void) {\n if (this.shadowRoot) {\n actor();\n } else {\n this.addEventListener(\"ready\", () => actor());\n }\n }\n}\n", "export default \"<style>\\n\\t:host {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: row;\\n\\t\\tpadding: 24px;\\n\\t\\tbox-sizing: border-box;\\n\\t}\\n\\n\\t:host([hidden]) {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t:host([level=\\\"info\\\"]) {\\n\\t\\tbackground-color: #e1ebf6;\\n\\t}\\n\\n\\t:host([level=\\\"warn\\\"]) {\\n\\t\\tbackground-color: #fffaeb;\\n\\t}\\n\\n\\t:host([level=\\\"error\\\"]) {\\n\\t\\tbackground-color: #ffe2e5;\\n\\t}\\n\\n\\t:host([level=\\\"success\\\"]) {\\n\\t\\tbackground-color: #eaf4ec;\\n\\t}\\n\\n\\t:host([hidden-icon]) img {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: column;\\n\\t\\tword-wrap: break-word;\\n\\t\\toverflow: hidden;\\n\\t\\twidth: 100%;\\n\\t}\\n\\n\\timg {\\n\\t\\talign-self: flex-start;\\n\\t\\tflex-shrink: 0;\\n\\t\\tpadding-right: 16px;\\n\\t}\\n\\n\\t.caption-wrapper,\\n\\t.description-wrapper {\\n\\t\\tdisplay: flex;\\n\\t}\\n\\n\\t.caption-wrapper {\\n\\t\\tfont-size: 24px;\\n\\t\\tpadding-bottom: 8px;\\n\\t}\\n\\n\\t.description-wrapper {\\n\\t\\tfont-size: 16px;\\n\\t\\twhite-space: pre-wrap;\\n\\t}\\n\\n\\t:host(.no-caption) .caption-wrapper {\\n\\t\\tpadding-bottom: 0;\\n\\t}\\n\\n\\t:host(.no-caption) .description-wrapper {\\n\\t\\talign-items: center;\\n\\t\\tmin-height: 32px;\\n\\t}\\n</style>\\n\\n<img src=\\\"\\\" />\\n<div class=\\\"content\\\">\\n\\t<div class=\\\"caption-wrapper\\\">\\n\\t\\t<div class=\\\"caption\\\"></div>\\n\\t\\t<slot name=\\\"caption\\\"></slot>\\n\\t</div>\\n\\n\\t<div class=\\\"description-wrapper\\\">\\n\\t\\t<div class=\\\"description\\\"></div>\\n\\t\\t<slot name=\\\"description\\\"></slot>\\n\\t</div>\\n\\t<div class=\\\"footer\\\">\\n\\t\\t<slot name=\\\"footer\\\"></slot>\\n\\t</div>\\n</div>\\n\"", "export default \"data:image/svg+xml,%3csvg%20id='svg3363'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23cc0017}%20%3c/style%3e%3cg%20id='layer1'%20transform='translate(0%20-40)'%3e%3cpath%20class='st0'%20d='M16%2042.2c7.6%200%2013.8%206.2%2013.8%2013.8S23.6%2069.8%2016%2069.8%202.2%2063.6%202.2%2056%208.4%2042.2%2016%2042.2m0-1.2C7.7%2041%201%2047.7%201%2056s6.7%2015%2015%2015%2015-6.7%2015-15-6.7-15-15-15z'%20id='path3854'/%3e%3cpath%20id='rect3856'%20class='st0'%20d='M15%2048h2v12h-2z'/%3e%3cpath%20id='rect3860'%20class='st0'%20d='M15%2063h2v2h-2z'/%3e%3c/g%3e%3c/svg%3e\"", "export default \"data:image/svg+xml,%3csvg%20id='svg3363'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23105295}%20%3c/style%3e%3cpath%20class='st0'%20d='M16%2029.8C8.4%2029.8%202.2%2023.6%202.2%2016S8.4%202.2%2016%202.2%2029.8%208.4%2029.8%2016%2023.6%2029.8%2016%2029.8m0%201.2c8.3%200%2015-6.7%2015-15S24.3%201%2016%201%201%207.7%201%2016s6.7%2015%2015%2015z'/%3e%3cpath%20id='rect3856'%20class='st0'%20d='M15%2012h2v12h-2z'/%3e%3cpath%20id='rect3860'%20class='st0'%20d='M15%207h2v2h-2z'/%3e%3c/svg%3e\"", "export default \"data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M16%201.8l13.8%2024.7v1.6H2.3v-1.6L16%201.8zm1-.8h-2L1%2025.8v3.8h30v-3.8L17%201z'/%3e%3cpath%20class='st0'%20d='M15%2010h2v10h-2zm0%2013h2v2h-2z'/%3e%3c/svg%3e\"", "export default \"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%2029.8C8.4%2029.8%202.2%2023.6%202.2%2016C2.2%208.4%208.4%202.2%2016%202.2C23.6%202.2%2029.8%208.4%2029.8%2016C29.8%2023.6%2023.6%2029.8%2016%2029.8ZM16%2031C24.3%2031%2031%2024.3%2031%2016C31%207.7%2024.3%201%2016%201C7.7%201%201%207.7%201%2016C1%2024.3%207.7%2031%2016%2031Z'%20fill='%2326A642'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.4134%2010.9512L13.6667%2022.4656L7.58667%2015.9512L9.04878%2014.5866L13.6667%2019.5344L22.9513%209.58661L24.4134%2010.9512Z'%20fill='%2326A642'/%3e%3c/svg%3e\"", "import { ElementBase } from \"@cas-smartdesign/element-base\";\nimport { default as htmlTemplate } from \"./message.html?raw\";\n\nimport error from \"./resources/error.svg\";\nimport info from \"./resources/info.svg\";\nimport warn from \"./resources/warn.svg\";\nimport success from \"./resources/success.svg\";\n\nconst icons = {\n error: error,\n info: info,\n warn: warn,\n success: success,\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Message.ID]: Message;\n }\n}\n\nexport class Message extends ElementBase {\n public static readonly ID = \"sd-message\";\n private infoImage: HTMLImageElement;\n private captionElement: HTMLElement;\n private descriptionElement: HTMLElement;\n private captionSlot: HTMLSlotElement;\n\n public set caption(caption: string) {\n if (caption) {\n this.setAttribute(\"caption\", caption);\n } else {\n this.removeAttribute(\"caption\");\n }\n }\n\n public get caption(): string {\n return this.getAttribute(\"caption\");\n }\n\n public set description(description: string) {\n if (description) {\n this.setAttribute(\"description\", description);\n } else {\n this.removeAttribute(\"description\");\n }\n }\n\n public get description(): string {\n return this.getAttribute(\"description\");\n }\n\n public get level(): Level {\n return this.getAttribute(\"level\") as Level;\n }\n\n public set level(level: Level) {\n if (level) {\n this.setAttribute(\"level\", level);\n } else {\n this.setAttribute(\"level\", \"info\");\n }\n }\n\n public get iconAlt(): string {\n return this.getAttribute(\"icon-alt\");\n }\n\n public set iconAlt(value: string) {\n if (value) {\n this.setAttribute(\"icon-alt\", value);\n } else {\n this.removeAttribute(\"icon-alt\");\n }\n }\n\n public get hiddenIcon(): boolean {\n return this.hasAttribute(\"hidden-icon\") && this.getAttribute(\"hidden-icon\") !== \"false\";\n }\n\n public set hiddenIcon(hiddenIcon: boolean) {\n if (hiddenIcon) {\n this.setAttribute(\"hidden-icon\", \"\");\n } else {\n this.removeAttribute(\"hidden-icon\");\n }\n }\n\n static get observedAttributes(): string[] {\n return [\"level\", \"caption\", \"description\", \"icon-alt\"];\n }\n\n is(): string {\n return Message.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.updateNoCaptionStyleName = this.updateNoCaptionStyleName.bind(this);\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"level\")) {\n this.level = Level.INFO;\n }\n\n this.infoImage = this.shadowRoot.querySelector(\"img\");\n this.captionElement = this.shadowRoot.querySelector(\".caption\");\n this.descriptionElement = this.shadowRoot.querySelector(\".description\");\n this.captionSlot = this.shadowRoot.querySelector('slot[name=\"caption\"]');\n\n this.captionSlot.addEventListener(\"slotchange\", this.updateNoCaptionStyleName);\n this.render();\n }\n\n disconnectedCallback(): void {\n this.captionSlot.removeEventListener(\"slotchange\", this.updateNoCaptionStyleName);\n }\n\n public attributeChangedCallback(): void {\n this.render();\n }\n\n protected render(): void {\n this.updateCaption();\n this.updateDescription();\n this.updateIcon();\n }\n\n private getPathToIcon(level: Level): string {\n return icons[level];\n }\n\n private updateCaption() {\n if (!this.captionElement) {\n return;\n }\n if (this.caption) {\n this.captionElement.innerText = this.caption;\n } else {\n this.captionElement.innerText = \"\";\n }\n this.updateNoCaptionStyleName();\n }\n\n private updateNoCaptionStyleName() {\n if (this.caption || this.captionSlot.assignedNodes().length > 0) {\n this.classList.remove(\"no-caption\");\n } else {\n this.classList.add(\"no-caption\");\n }\n }\n\n private updateDescription() {\n if (!this.descriptionElement) {\n return;\n }\n if (this.description) {\n this.descriptionElement.innerText = this.description;\n } else {\n this.descriptionElement.innerText = \"\";\n }\n }\n\n private updateIcon() {\n if (this.infoImage) {\n this.infoImage.src = this.getPathToIcon(this.level) || \"\";\n this.infoImage.alt = this.iconAlt || \"\";\n }\n }\n}\n\nexport enum Level {\n ERROR = \"error\",\n WARN = \"warn\",\n INFO = \"info\",\n SUCCESS = \"success\",\n}\n\nif (!customElements.get(Message.ID)) {\n customElements.define(Message.ID, Message);\n}\n"],
5
- "mappings": "igBA8BO,IAAeA,EAAf,MAAeA,UAAoB,WAAY,CAO1C,kBAAwC,CACtC,IAAAC,EAAK,KAAK,GAAA,EACZ,GAAAD,EAAY,eAA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AK,UAAU,IAAI,YAAY,CAEvC,CAEQ,mBAAoB,CACnB,KAAK,qBAGN,KAAK,YACL,KAAK,mBAAmB,UAAY,KAAK,YAEzC,KAAK,mBAAmB,UAAY,GAE5C,CAEQ,YAAa,CACb,KAAK,YACL,KAAK,UAAU,IAAM,KAAK,cAAc,KAAK,KAAK,GAAK,GACvD,KAAK,UAAU,IAAM,KAAK,SAAW,GAE7C,CACJ,EA5JIJ,EAAuB,GAAK,aADzB,IAAMQ,EAANR,EA+JKS,GAAAA,IACRA,EAAA,MAAQ,QACRA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,QAAU,UAJFA,IAAAA,GAAA,CAAA,CAAA,EAOP,eAAe,IAAID,EAAQ,EAAE,GAC9B,eAAe,OAAOA,EAAQ,GAAIA,CAAO",
6
6
  "names": ["_ElementBase", "is", "template", "actor", "ElementBase", "htmlTemplate", "error", "info", "warn", "success", "icons", "_Message", "ElementBase", "caption", "description", "level", "value", "hiddenIcon", "template", "Message", "Level"]
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"message.mjs","sources":["../message.html?raw","../resources/error.svg","../resources/info.svg","../resources/warn.svg","../resources/success.svg","../message.ts"],"sourcesContent":["export default \"<style>\\n\\t:host {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: row;\\n\\t\\tpadding: 24px;\\n\\t\\tbox-sizing: border-box;\\n\\t}\\n\\n\\t:host([hidden]) {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t:host([level=\\\"info\\\"]) {\\n\\t\\tbackground-color: #e1ebf6;\\n\\t}\\n\\n\\t:host([level=\\\"warn\\\"]) {\\n\\t\\tbackground-color: #fffaeb;\\n\\t}\\n\\n\\t:host([level=\\\"error\\\"]) {\\n\\t\\tbackground-color: #ffe2e5;\\n\\t}\\n\\n\\t:host([level=\\\"success\\\"]) {\\n\\t\\tbackground-color: #eaf4ec;\\n\\t}\\n\\n\\t:host([hidden-icon]) img {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: column;\\n\\t\\tword-wrap: break-word;\\n\\t\\toverflow: hidden;\\n\\t\\twidth: 100%;\\n\\t}\\n\\n\\timg {\\n\\t\\talign-self: flex-start;\\n\\t\\tflex-shrink: 0;\\n\\t\\tpadding-right: 16px;\\n\\t}\\n\\n\\t.caption-wrapper,\\n\\t.description-wrapper {\\n\\t\\tdisplay: flex;\\n\\t}\\n\\n\\t.caption-wrapper {\\n\\t\\tfont-size: 24px;\\n\\t\\tpadding-bottom: 8px;\\n\\t}\\n\\n\\t.description-wrapper {\\n\\t\\tfont-size: 16px;\\n\\t\\twhite-space: pre-wrap;\\n\\t}\\n\\n\\t:host(.no-caption) .caption-wrapper {\\n\\t\\tpadding-bottom: 0;\\n\\t}\\n\\n\\t:host(.no-caption) .description-wrapper {\\n\\t\\talign-items: center;\\n\\t\\tmin-height: 32px;\\n\\t}\\n</style>\\n\\n<img src=\\\"\\\" />\\n<div class=\\\"content\\\">\\n\\t<div class=\\\"caption-wrapper\\\">\\n\\t\\t<div class=\\\"caption\\\"></div>\\n\\t\\t<slot name=\\\"caption\\\"></slot>\\n\\t</div>\\n\\n\\t<div class=\\\"description-wrapper\\\">\\n\\t\\t<div class=\\\"description\\\"></div>\\n\\t\\t<slot name=\\\"description\\\"></slot>\\n\\t</div>\\n\\t<div class=\\\"footer\\\">\\n\\t\\t<slot name=\\\"footer\\\"></slot>\\n\\t</div>\\n</div>\\n\"","export default \"data:image/svg+xml,%3csvg%20id='svg3363'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23cc0017}%20%3c/style%3e%3cg%20id='layer1'%20transform='translate(0%20-40)'%3e%3cpath%20class='st0'%20d='M16%2042.2c7.6%200%2013.8%206.2%2013.8%2013.8S23.6%2069.8%2016%2069.8%202.2%2063.6%202.2%2056%208.4%2042.2%2016%2042.2m0-1.2C7.7%2041%201%2047.7%201%2056s6.7%2015%2015%2015%2015-6.7%2015-15-6.7-15-15-15z'%20id='path3854'/%3e%3cpath%20id='rect3856'%20class='st0'%20d='M15%2048h2v12h-2z'/%3e%3cpath%20id='rect3860'%20class='st0'%20d='M15%2063h2v2h-2z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20id='svg3363'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23105295}%20%3c/style%3e%3cpath%20class='st0'%20d='M16%2029.8C8.4%2029.8%202.2%2023.6%202.2%2016S8.4%202.2%2016%202.2%2029.8%208.4%2029.8%2016%2023.6%2029.8%2016%2029.8m0%201.2c8.3%200%2015-6.7%2015-15S24.3%201%2016%201%201%207.7%201%2016s6.7%2015%2015%2015z'/%3e%3cpath%20id='rect3856'%20class='st0'%20d='M15%2012h2v12h-2z'/%3e%3cpath%20id='rect3860'%20class='st0'%20d='M15%207h2v2h-2z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M16%201.8l13.8%2024.7v1.6H2.3v-1.6L16%201.8zm1-.8h-2L1%2025.8v3.8h30v-3.8L17%201z'/%3e%3cpath%20class='st0'%20d='M15%2010h2v10h-2zm0%2013h2v2h-2z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%2029.8C8.4%2029.8%202.2%2023.6%202.2%2016C2.2%208.4%208.4%202.2%2016%202.2C23.6%202.2%2029.8%208.4%2029.8%2016C29.8%2023.6%2023.6%2029.8%2016%2029.8ZM16%2031C24.3%2031%2031%2024.3%2031%2016C31%207.7%2024.3%201%2016%201C7.7%201%201%207.7%201%2016C1%2024.3%207.7%2031%2016%2031Z'%20fill='%2326A642'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.4134%2010.9512L13.6667%2022.4656L7.58667%2015.9512L9.04878%2014.5866L13.6667%2019.5344L22.9513%209.58661L24.4134%2010.9512Z'%20fill='%2326A642'/%3e%3c/svg%3e\"","import { ElementBase } from \"@cas-smartdesign/element-base\";\nimport { default as htmlTemplate } from \"./message.html?raw\";\n\nimport error from \"./resources/error.svg\";\nimport info from \"./resources/info.svg\";\nimport warn from \"./resources/warn.svg\";\nimport success from \"./resources/success.svg\";\n\nconst icons = {\n error: error,\n info: info,\n warn: warn,\n success: success,\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Message.ID]: Message;\n }\n}\n\nexport class Message extends ElementBase {\n public static readonly ID = \"sd-message\";\n private infoImage: HTMLImageElement;\n private captionElement: HTMLElement;\n private descriptionElement: HTMLElement;\n private captionSlot: HTMLSlotElement;\n\n public set caption(caption: string) {\n if (caption) {\n this.setAttribute(\"caption\", caption);\n } else {\n this.removeAttribute(\"caption\");\n }\n }\n\n public get caption(): string {\n return this.getAttribute(\"caption\");\n }\n\n public set description(description: string) {\n if (description) {\n this.setAttribute(\"description\", description);\n } else {\n this.removeAttribute(\"description\");\n }\n }\n\n public get description(): string {\n return this.getAttribute(\"description\");\n }\n\n public get level(): Level {\n return this.getAttribute(\"level\") as Level;\n }\n\n public set level(level: Level) {\n if (level) {\n this.setAttribute(\"level\", level);\n } else {\n this.setAttribute(\"level\", \"info\");\n }\n }\n\n public get iconAlt(): string {\n return this.getAttribute(\"icon-alt\");\n }\n\n public set iconAlt(value: string) {\n if (value) {\n this.setAttribute(\"icon-alt\", value);\n } else {\n this.removeAttribute(\"icon-alt\");\n }\n }\n\n public get hiddenIcon(): boolean {\n return this.hasAttribute(\"hidden-icon\") && this.getAttribute(\"hidden-icon\") !== \"false\";\n }\n\n public set hiddenIcon(hiddenIcon: boolean) {\n if (hiddenIcon) {\n this.setAttribute(\"hidden-icon\", \"\");\n } else {\n this.removeAttribute(\"hidden-icon\");\n }\n }\n\n static get observedAttributes(): string[] {\n return [\"level\", \"caption\", \"description\", \"icon-alt\"];\n }\n\n is(): string {\n return Message.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.updateNoCaptionStyleName = this.updateNoCaptionStyleName.bind(this);\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"level\")) {\n this.level = Level.INFO;\n }\n\n this.infoImage = this.shadowRoot.querySelector(\"img\");\n this.captionElement = this.shadowRoot.querySelector(\".caption\");\n this.descriptionElement = this.shadowRoot.querySelector(\".description\");\n this.captionSlot = this.shadowRoot.querySelector('slot[name=\"caption\"]');\n\n this.captionSlot.addEventListener(\"slotchange\", this.updateNoCaptionStyleName);\n this.render();\n }\n\n disconnectedCallback(): void {\n this.captionSlot.removeEventListener(\"slotchange\", this.updateNoCaptionStyleName);\n }\n\n public attributeChangedCallback(): void {\n this.render();\n }\n\n protected render(): void {\n this.updateCaption();\n this.updateDescription();\n this.updateIcon();\n }\n\n private getPathToIcon(level: Level): string {\n return icons[level];\n }\n\n private updateCaption() {\n if (!this.captionElement) {\n return;\n }\n if (this.caption) {\n this.captionElement.innerText = this.caption;\n } else {\n this.captionElement.innerText = \"\";\n }\n this.updateNoCaptionStyleName();\n }\n\n private updateNoCaptionStyleName() {\n if (this.caption || this.captionSlot.assignedNodes().length > 0) {\n this.classList.remove(\"no-caption\");\n } else {\n this.classList.add(\"no-caption\");\n }\n }\n\n private updateDescription() {\n if (!this.descriptionElement) {\n return;\n }\n if (this.description) {\n this.descriptionElement.innerText = this.description;\n } else {\n this.descriptionElement.innerText = \"\";\n }\n }\n\n private updateIcon() {\n if (this.infoImage) {\n this.infoImage.src = this.getPathToIcon(this.level) || \"\";\n this.infoImage.alt = this.iconAlt || \"\";\n }\n }\n}\n\nexport enum Level {\n ERROR = \"error\",\n WARN = \"warn\",\n INFO = \"info\",\n SUCCESS = \"success\",\n}\n\nif (!customElements.get(Message.ID)) {\n customElements.define(Message.ID, Message);\n}\n"],"names":["htmlTemplate","error","info","warn","success","icons","_Message","ElementBase","caption","description","level","value","hiddenIcon","template","Message","Level"],"mappings":";AAAA,MAAeA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GCAAC,IAAA,goBCAAC,IAAA,qjBCAAC,IAAA,uXCAAC,IAAA,iqBCQTC,IAAQ;AAAA,EACV,OAAAJ;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AACJ,GAQaE,IAAN,MAAMA,UAAgBC,EAAY;AAAA,EAOrC,IAAW,QAAQC,GAAiB;AAChC,IAAIA,IACK,KAAA,aAAa,WAAWA,CAAO,IAEpC,KAAK,gBAAgB,SAAS;AAAA,EAEtC;AAAA,EAEA,IAAW,UAAkB;AAClB,WAAA,KAAK,aAAa,SAAS;AAAA,EACtC;AAAA,EAEA,IAAW,YAAYC,GAAqB;AACxC,IAAIA,IACK,KAAA,a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3,"file":"message.mjs","sources":["../message.html?raw","../resources/error.svg","../resources/info.svg","../resources/warn.svg","../resources/success.svg","../message.ts"],"sourcesContent":["export default \"<style>\\n\\t:host {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: row;\\n\\t\\tpadding: 24px;\\n\\t\\tbox-sizing: border-box;\\n\\t}\\n\\n\\t:host([hidden]) {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t:host([level=\\\"info\\\"]) {\\n\\t\\tbackground-color: #e1ebf6;\\n\\t}\\n\\n\\t:host([level=\\\"warn\\\"]) {\\n\\t\\tbackground-color: #fffaeb;\\n\\t}\\n\\n\\t:host([level=\\\"error\\\"]) {\\n\\t\\tbackground-color: #ffe2e5;\\n\\t}\\n\\n\\t:host([level=\\\"success\\\"]) {\\n\\t\\tbackground-color: #eaf4ec;\\n\\t}\\n\\n\\t:host([hidden-icon]) img {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\tflex-direction: column;\\n\\t\\tword-wrap: break-word;\\n\\t\\toverflow: hidden;\\n\\t\\twidth: 100%;\\n\\t}\\n\\n\\timg {\\n\\t\\talign-self: flex-start;\\n\\t\\tflex-shrink: 0;\\n\\t\\tpadding-right: 16px;\\n\\t}\\n\\n\\t.caption-wrapper,\\n\\t.description-wrapper {\\n\\t\\tdisplay: flex;\\n\\t}\\n\\n\\t.caption-wrapper {\\n\\t\\tfont-size: 24px;\\n\\t\\tpadding-bottom: 8px;\\n\\t}\\n\\n\\t.description-wrapper {\\n\\t\\tfont-size: 16px;\\n\\t\\twhite-space: pre-wrap;\\n\\t}\\n\\n\\t:host(.no-caption) .caption-wrapper {\\n\\t\\tpadding-bottom: 0;\\n\\t}\\n\\n\\t:host(.no-caption) .description-wrapper {\\n\\t\\talign-items: center;\\n\\t\\tmin-height: 32px;\\n\\t}\\n</style>\\n\\n<img src=\\\"\\\" />\\n<div class=\\\"content\\\">\\n\\t<div class=\\\"caption-wrapper\\\">\\n\\t\\t<div class=\\\"caption\\\"></div>\\n\\t\\t<slot name=\\\"caption\\\"></slot>\\n\\t</div>\\n\\n\\t<div class=\\\"description-wrapper\\\">\\n\\t\\t<div class=\\\"description\\\"></div>\\n\\t\\t<slot name=\\\"description\\\"></slot>\\n\\t</div>\\n\\t<div class=\\\"footer\\\">\\n\\t\\t<slot name=\\\"footer\\\"></slot>\\n\\t</div>\\n</div>\\n\"","export default \"data:image/svg+xml,%3csvg%20id='svg3363'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23cc0017}%20%3c/style%3e%3cg%20id='layer1'%20transform='translate(0%20-40)'%3e%3cpath%20class='st0'%20d='M16%2042.2c7.6%200%2013.8%206.2%2013.8%2013.8S23.6%2069.8%2016%2069.8%202.2%2063.6%202.2%2056%208.4%2042.2%2016%2042.2m0-1.2C7.7%2041%201%2047.7%201%2056s6.7%2015%2015%2015%2015-6.7%2015-15-6.7-15-15-15z'%20id='path3854'/%3e%3cpath%20id='rect3856'%20class='st0'%20d='M15%2048h2v12h-2z'/%3e%3cpath%20id='rect3860'%20class='st0'%20d='M15%2063h2v2h-2z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20id='svg3363'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23105295}%20%3c/style%3e%3cpath%20class='st0'%20d='M16%2029.8C8.4%2029.8%202.2%2023.6%202.2%2016S8.4%202.2%2016%202.2%2029.8%208.4%2029.8%2016%2023.6%2029.8%2016%2029.8m0%201.2c8.3%200%2015-6.7%2015-15S24.3%201%2016%201%201%207.7%201%2016s6.7%2015%2015%2015z'/%3e%3cpath%20id='rect3856'%20class='st0'%20d='M15%2012h2v12h-2z'/%3e%3cpath%20id='rect3860'%20class='st0'%20d='M15%207h2v2h-2z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20height='32'%20width='32'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M16%201.8l13.8%2024.7v1.6H2.3v-1.6L16%201.8zm1-.8h-2L1%2025.8v3.8h30v-3.8L17%201z'/%3e%3cpath%20class='st0'%20d='M15%2010h2v10h-2zm0%2013h2v2h-2z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%2029.8C8.4%2029.8%202.2%2023.6%202.2%2016C2.2%208.4%208.4%202.2%2016%202.2C23.6%202.2%2029.8%208.4%2029.8%2016C29.8%2023.6%2023.6%2029.8%2016%2029.8ZM16%2031C24.3%2031%2031%2024.3%2031%2016C31%207.7%2024.3%201%2016%201C7.7%201%201%207.7%201%2016C1%2024.3%207.7%2031%2016%2031Z'%20fill='%2326A642'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.4134%2010.9512L13.6667%2022.4656L7.58667%2015.9512L9.04878%2014.5866L13.6667%2019.5344L22.9513%209.58661L24.4134%2010.9512Z'%20fill='%2326A642'/%3e%3c/svg%3e\"","import { ElementBase } from \"@cas-smartdesign/element-base\";\nimport { default as htmlTemplate } from \"./message.html?raw\";\n\nimport error from \"./resources/error.svg\";\nimport info from \"./resources/info.svg\";\nimport warn from \"./resources/warn.svg\";\nimport success from \"./resources/success.svg\";\n\nconst icons = {\n error: error,\n info: info,\n warn: warn,\n success: success,\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Message.ID]: Message;\n }\n}\n\nexport class Message extends ElementBase {\n public static readonly ID = \"sd-message\";\n private infoImage: HTMLImageElement;\n private captionElement: HTMLElement;\n private descriptionElement: HTMLElement;\n private captionSlot: HTMLSlotElement;\n\n public set caption(caption: string) {\n if (caption) {\n this.setAttribute(\"caption\", caption);\n } else {\n this.removeAttribute(\"caption\");\n }\n }\n\n public get caption(): string {\n return this.getAttribute(\"caption\");\n }\n\n public set description(description: string) {\n if (description) {\n this.setAttribute(\"description\", description);\n } else {\n this.removeAttribute(\"description\");\n }\n }\n\n public get description(): string {\n return this.getAttribute(\"description\");\n }\n\n public get level(): Level {\n return this.getAttribute(\"level\") as Level;\n }\n\n public set level(level: Level) {\n if (level) {\n this.setAttribute(\"level\", level);\n } else {\n this.setAttribute(\"level\", \"info\");\n }\n }\n\n public get iconAlt(): string {\n return this.getAttribute(\"icon-alt\");\n }\n\n public set iconAlt(value: string) {\n if (value) {\n this.setAttribute(\"icon-alt\", value);\n } else {\n this.removeAttribute(\"icon-alt\");\n }\n }\n\n public get hiddenIcon(): boolean {\n return this.hasAttribute(\"hidden-icon\") && this.getAttribute(\"hidden-icon\") !== \"false\";\n }\n\n public set hiddenIcon(hiddenIcon: boolean) {\n if (hiddenIcon) {\n this.setAttribute(\"hidden-icon\", \"\");\n } else {\n this.removeAttribute(\"hidden-icon\");\n }\n }\n\n static get observedAttributes(): string[] {\n return [\"level\", \"caption\", \"description\", \"icon-alt\"];\n }\n\n is(): string {\n return Message.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.updateNoCaptionStyleName = this.updateNoCaptionStyleName.bind(this);\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"level\")) {\n this.level = Level.INFO;\n }\n\n this.infoImage = this.shadowRoot.querySelector(\"img\");\n this.captionElement = this.shadowRoot.querySelector(\".caption\");\n this.descriptionElement = this.shadowRoot.querySelector(\".description\");\n this.captionSlot = this.shadowRoot.querySelector('slot[name=\"caption\"]');\n\n this.captionSlot.addEventListener(\"slotchange\", this.updateNoCaptionStyleName);\n this.render();\n }\n\n disconnectedCallback(): void {\n this.captionSlot.removeEventListener(\"slotchange\", this.updateNoCaptionStyleName);\n }\n\n public attributeChangedCallback(): void {\n this.render();\n }\n\n protected render(): void {\n this.updateCaption();\n this.updateDescription();\n this.updateIcon();\n }\n\n private getPathToIcon(level: Level): string {\n return icons[level];\n }\n\n private updateCaption() {\n if (!this.captionElement) {\n return;\n }\n if (this.caption) {\n this.captionElement.innerText = this.caption;\n } else {\n this.captionElement.innerText = \"\";\n }\n this.updateNoCaptionStyleName();\n }\n\n private updateNoCaptionStyleName() {\n if (this.caption || this.captionSlot.assignedNodes().length > 0) {\n this.classList.remove(\"no-caption\");\n } else {\n this.classList.add(\"no-caption\");\n }\n }\n\n private updateDescription() {\n if (!this.descriptionElement) {\n return;\n }\n if (this.description) {\n this.descriptionElement.innerText = this.description;\n } else {\n this.descriptionElement.innerText = \"\";\n }\n }\n\n private updateIcon() {\n if (this.infoImage) {\n this.infoImage.src = this.getPathToIcon(this.level) || \"\";\n this.infoImage.alt = this.iconAlt || \"\";\n }\n }\n}\n\nexport enum Level {\n ERROR = \"error\",\n WARN = \"warn\",\n INFO = \"info\",\n SUCCESS = \"success\",\n}\n\nif (!customElements.get(Message.ID)) {\n customElements.define(Message.ID, Message);\n}\n"],"names":["htmlTemplate","error","info","warn","success","icons","_Message","ElementBase","caption","description","level","value","hiddenIcon","template","Message","Level"],"mappings":";AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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ElC,KAAK,UAAU,IAAI,YAAY;AAAA,EAEvC;AAAA,EAEQ,oBAAoB;AACxB,IAAK,KAAK,uBAGN,KAAK,cACL,KAAK,mBAAmB,YAAY,KAAK,cAEzC,KAAK,mBAAmB,YAAY;AAAA,EAE5C;AAAA,EAEQ,aAAa;AACjB,IAAI,KAAK,cACL,KAAK,UAAU,MAAM,KAAK,cAAc,KAAK,KAAK,KAAK,IACvD,KAAK,UAAU,MAAM,KAAK,WAAW;AAAA,EAE7C;AACJ;AA5JIJ,EAAuB,KAAK;AADzB,IAAMQ,IAANR;AA+JA,IAAKS,sBAAAA,OACRA,EAAA,QAAQ,SACRA,EAAA,OAAO,QACPA,EAAA,OAAO,QACPA,EAAA,UAAU,WAJFA,IAAAA,KAAA,CAAA,CAAA;AAOP,eAAe,IAAID,EAAQ,EAAE,KAC9B,eAAe,OAAOA,EAAQ,IAAIA,CAAO;"}
@@ -1,15 +1,20 @@
1
1
  {
2
- "@cypress/vite-dev-server@5.0.7": {
2
+ "@cypress/vite-dev-server@7.0.0": {
3
3
  "licenses": "MIT",
4
4
  "repository": "https://github.com/cypress-io/cypress",
5
5
  "licenseUrl": "https://github.com/cypress-io/cypress/tree/develop/npm/vite-dev-server#readme"
6
6
  },
7
- "@rollup/plugin-node-resolve@15.2.3": {
7
+ "@eslint/js@9.34.0": {
8
+ "licenses": "MIT",
9
+ "repository": "https://github.com/eslint/eslint",
10
+ "licenseUrl": "https://github.com/eslint/eslint/raw/HEAD/LICENSE"
11
+ },
12
+ "@rollup/plugin-node-resolve@16.0.1": {
8
13
  "licenses": "MIT",
9
14
  "repository": "https://github.com/rollup/plugins",
10
15
  "licenseUrl": "https://github.com/rollup/plugins/raw/HEAD/LICENSE"
11
16
  },
12
- "@types/node@20.10.6": {
17
+ "@types/node@24.3.0": {
13
18
  "licenses": "MIT",
14
19
  "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
15
20
  "licenseUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/raw/HEAD/LICENSE"
@@ -19,47 +24,42 @@
19
24
  "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
20
25
  "licenseUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/raw/HEAD/LICENSE"
21
26
  },
22
- "@typescript-eslint/eslint-plugin@6.17.0": {
27
+ "@typescript-eslint/eslint-plugin@8.41.0": {
23
28
  "licenses": "MIT",
24
29
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
25
30
  "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
26
31
  },
27
- "@typescript-eslint/parser@6.17.0": {
28
- "licenses": "BSD-2-Clause",
32
+ "@typescript-eslint/parser@8.41.0": {
33
+ "licenses": "MIT",
29
34
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
30
35
  "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
31
36
  },
32
- "@vitest/coverage-v8@1.1.1": {
37
+ "@vitest/coverage-v8@3.2.4": {
33
38
  "licenses": "MIT",
34
39
  "repository": "https://github.com/vitest-dev/vitest",
35
40
  "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
36
41
  },
37
- "@vitest/ui@1.1.1": {
42
+ "@vitest/ui@3.2.4": {
38
43
  "licenses": "MIT",
39
44
  "repository": "https://github.com/vitest-dev/vitest",
40
45
  "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
41
46
  },
42
- "axe-core@4.8.3": {
47
+ "axe-core@4.10.3": {
43
48
  "licenses": "MPL-2.0",
44
49
  "repository": "https://github.com/dequelabs/axe-core",
45
50
  "licenseUrl": "https://github.com/dequelabs/axe-core/raw/HEAD/LICENSE"
46
51
  },
47
- "cypress-axe@1.5.0": {
52
+ "cypress-axe@1.7.0": {
48
53
  "licenses": "MIT",
49
54
  "repository": "https://github.com/component-driven/cypress-axe",
50
55
  "licenseUrl": "https://github.com/component-driven/cypress-axe/raw/HEAD/License.md"
51
56
  },
52
- "cypress-real-events@1.13.0": {
53
- "licenses": "MIT",
54
- "repository": "https://github.com/dmtrKovalenko/cypress-real-events",
55
- "licenseUrl": "https://github.com/dmtrKovalenko/cypress-real-events"
56
- },
57
- "cypress@13.6.2": {
57
+ "cypress@15.0.0": {
58
58
  "licenses": "MIT",
59
59
  "repository": "https://github.com/cypress-io/cypress",
60
60
  "licenseUrl": "https://cypress.io"
61
61
  },
62
- "esbuild@0.19.11": {
62
+ "esbuild@0.25.9": {
63
63
  "licenses": "MIT",
64
64
  "repository": "https://github.com/evanw/esbuild",
65
65
  "licenseUrl": "https://github.com/evanw/esbuild/raw/HEAD/LICENSE.md"
@@ -69,52 +69,52 @@
69
69
  "repository": "https://github.com/google/eslint-config-google",
70
70
  "licenseUrl": "https://github.com/google/eslint-config-google/raw/HEAD/LICENSE"
71
71
  },
72
- "eslint-config-prettier@9.1.0": {
72
+ "eslint-config-prettier@10.1.8": {
73
73
  "licenses": "MIT",
74
74
  "repository": "https://github.com/prettier/eslint-config-prettier",
75
75
  "licenseUrl": "https://github.com/prettier/eslint-config-prettier/raw/HEAD/LICENSE"
76
76
  },
77
- "eslint@8.56.0": {
77
+ "eslint@9.34.0": {
78
78
  "licenses": "MIT",
79
79
  "repository": "https://github.com/eslint/eslint",
80
80
  "licenseUrl": "https://github.com/eslint/eslint/raw/HEAD/LICENSE"
81
81
  },
82
- "github-markdown-css@5.5.0": {
82
+ "github-markdown-css@5.8.1": {
83
83
  "licenses": "MIT",
84
84
  "repository": "https://github.com/sindresorhus/github-markdown-css",
85
85
  "licenseUrl": "https://github.com/sindresorhus/github-markdown-css/raw/HEAD/license"
86
86
  },
87
- "highlight.js@11.9.0": {
87
+ "highlight.js@11.11.1": {
88
88
  "licenses": "BSD-3-Clause",
89
89
  "repository": "https://github.com/highlightjs/highlight.js",
90
90
  "licenseUrl": "https://github.com/highlightjs/highlight.js/raw/HEAD/LICENSE"
91
91
  },
92
- "junit-report-builder@3.1.0": {
92
+ "junit-report-builder@5.1.1": {
93
93
  "licenses": "MIT",
94
94
  "repository": "https://github.com/davidparsson/junit-report-builder",
95
95
  "licenseUrl": "https://github.com/davidparsson/junit-report-builder/raw/HEAD/LICENSE"
96
96
  },
97
- "lint-staged@15.2.0": {
97
+ "lint-staged@16.1.5": {
98
98
  "licenses": "MIT",
99
- "repository": "https://github.com/okonet/lint-staged",
100
- "licenseUrl": "https://github.com/okonet/lint-staged/raw/HEAD/LICENSE"
99
+ "repository": "https://github.com/lint-staged/lint-staged",
100
+ "licenseUrl": "https://github.com/lint-staged/lint-staged/raw/HEAD/LICENSE"
101
101
  },
102
- "marked@11.1.1": {
102
+ "marked@16.2.1": {
103
103
  "licenses": "MIT",
104
104
  "repository": "https://github.com/markedjs/marked",
105
105
  "licenseUrl": "https://github.com/markedjs/marked/raw/HEAD/LICENSE.md"
106
106
  },
107
- "postcss-prefix-selector@1.16.0": {
107
+ "postcss-prefix-selector@2.1.1": {
108
108
  "licenses": "MIT",
109
109
  "repository": "https://github.com/RadValentin/postcss-prefix-selector",
110
110
  "licenseUrl": "https://github.com/RadValentin/postcss-prefix-selector/raw/HEAD/LICENSE"
111
111
  },
112
- "postcss@8.4.32": {
112
+ "postcss@8.5.6": {
113
113
  "licenses": "MIT",
114
114
  "repository": "https://github.com/postcss/postcss",
115
115
  "licenseUrl": "https://github.com/postcss/postcss/raw/HEAD/LICENSE"
116
116
  },
117
- "prettier@3.1.1": {
117
+ "prettier@3.6.2": {
118
118
  "licenses": "MIT",
119
119
  "repository": "https://github.com/prettier/prettier",
120
120
  "licenseUrl": "https://github.com/prettier/prettier/raw/HEAD/LICENSE"
@@ -124,62 +124,67 @@
124
124
  "repository": "https://github.com/sindresorhus/resolve-pkg",
125
125
  "licenseUrl": "https://github.com/sindresorhus/resolve-pkg/raw/HEAD/license"
126
126
  },
127
- "sass@1.69.6": {
127
+ "sass@1.91.0": {
128
128
  "licenses": "MIT",
129
129
  "repository": "https://github.com/sass/dart-sass",
130
130
  "licenseUrl": "https://github.com/sass/dart-sass/raw/HEAD/LICENSE"
131
131
  },
132
- "stylelint-config-recommended-scss@14.0.0": {
132
+ "stylelint-config-recommended-scss@16.0.0": {
133
133
  "licenses": "MIT",
134
134
  "repository": "https://github.com/stylelint-scss/stylelint-config-recommended-scss",
135
135
  "licenseUrl": "https://github.com/stylelint-scss/stylelint-config-recommended-scss/raw/HEAD/LICENSE"
136
136
  },
137
- "stylelint-config-standard@36.0.0": {
137
+ "stylelint-config-standard@39.0.0": {
138
138
  "licenses": "MIT",
139
139
  "repository": "https://github.com/stylelint/stylelint-config-standard",
140
140
  "licenseUrl": "https://github.com/stylelint/stylelint-config-standard/raw/HEAD/LICENSE"
141
141
  },
142
- "stylelint-scss@6.0.0": {
142
+ "stylelint-scss@6.12.1": {
143
143
  "licenses": "MIT",
144
144
  "repository": "https://github.com/stylelint-scss/stylelint-scss",
145
145
  "licenseUrl": "https://github.com/stylelint-scss/stylelint-scss/raw/HEAD/LICENSE"
146
146
  },
147
- "stylelint@16.1.0": {
147
+ "stylelint@16.23.1": {
148
148
  "licenses": "MIT",
149
149
  "repository": "https://github.com/stylelint/stylelint",
150
150
  "licenseUrl": "https://github.com/stylelint/stylelint/raw/HEAD/LICENSE"
151
151
  },
152
- "tsup@8.0.1": {
152
+ "tsup@8.5.0": {
153
153
  "licenses": "MIT",
154
154
  "repository": "https://github.com/egoist/tsup",
155
155
  "licenseUrl": "https://github.com/egoist/tsup/raw/HEAD/LICENSE"
156
156
  },
157
- "turbo@1.11.2": {
158
- "licenses": "MPL-2.0",
159
- "repository": "https://github.com/vercel/turbo",
160
- "licenseUrl": "https://github.com/vercel/turbo/raw/HEAD/LICENSE"
157
+ "turbo@2.5.6": {
158
+ "licenses": "MIT",
159
+ "repository": "https://github.com/vercel/turborepo",
160
+ "licenseUrl": "https://github.com/vercel/turborepo/raw/HEAD/LICENSE"
161
+ },
162
+ "typescript-eslint@8.41.0": {
163
+ "licenses": "MIT",
164
+ "repository": "https://github.com/typescript-eslint/typescript-eslint",
165
+ "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
161
166
  },
162
- "typescript@5.3.3": {
167
+ "typescript@5.9.2": {
163
168
  "licenses": "Apache-2.0",
164
- "repository": "https://github.com/Microsoft/TypeScript",
165
- "licenseUrl": "https://github.com/Microsoft/TypeScript/raw/HEAD/LICENSE.txt"
169
+ "repository": "https://github.com/microsoft/TypeScript",
170
+ "licenseUrl": "https://github.com/microsoft/TypeScript/raw/HEAD/LICENSE.txt"
166
171
  },
167
- "vite-tsconfig-paths@4.2.3": {
172
+ "vite-tsconfig-paths@5.1.4": {
168
173
  "licenses": "MIT",
169
174
  "repository": "https://github.com/aleclarson/vite-tsconfig-paths",
170
175
  "licenseUrl": "https://github.com/aleclarson/vite-tsconfig-paths/raw/HEAD/LICENSE"
171
176
  },
172
- "vite@5.0.10": {
177
+ "vite@7.1.3": {
173
178
  "licenses": "MIT",
174
179
  "repository": "https://github.com/vitejs/vite",
175
180
  "licenseUrl": "https://github.com/vitejs/vite/raw/HEAD/LICENSE.md"
176
181
  },
177
- "vitest@1.1.1": {
182
+ "vitest@3.2.4": {
178
183
  "licenses": "MIT",
179
184
  "repository": "https://github.com/vitest-dev/vitest",
180
185
  "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE.md"
181
186
  },
182
- "yargs@17.7.2": {
187
+ "yargs@18.0.0": {
183
188
  "licenses": "MIT",
184
189
  "repository": "https://github.com/yargs/yargs",
185
190
  "licenseUrl": "https://github.com/yargs/yargs/raw/HEAD/LICENSE"
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/message",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "A message element with three different levels which has the look and feel of the smartdesign message",
5
5
  "main": "dist/message-with-externals.js",
6
6
  "module": "dist/message.mjs",
7
7
  "types": "dist/message.d.ts",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "dependencies": {
10
- "@cas-smartdesign/element-base": "^5.0.2"
10
+ "@cas-smartdesign/element-base": "^5.1.0"
11
11
  },
12
12
  "files": [
13
13
  "dist",
@@ -18,8 +18,8 @@
18
18
  "access": "public"
19
19
  },
20
20
  "devDependencies": {
21
- "@cas-smartdesign/element-preview": "^0.2.2",
22
- "@cas-smartdesign/license-generator": "^1.6.3"
21
+ "@cas-smartdesign/element-preview": "^0.3.0",
22
+ "@cas-smartdesign/license-generator": "^1.7.0"
23
23
  },
24
24
  "scripts": {
25
25
  "version": "pnpm version",