@telia-ace/alliance-ui 1.0.4 → 1.0.5-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/README.md +34 -33
- package/chunks/check-circle-filled-42095247.js.map +1 -1
- package/chunks/chevron-down-50d47dd6.js.map +1 -1
- package/chunks/chevron-right-788ce8a9.js.map +1 -1
- package/chunks/close-ac6e4f1c.js.map +1 -1
- package/chunks/error-filled-8de50bdd.js.map +1 -1
- package/chunks/getSvgContent-f2389ce0.js.map +1 -1
- package/chunks/{index-629ecbb8.js → index-17652cf7.js} +15 -6
- package/chunks/{index-629ecbb8.js.map → index-17652cf7.js.map} +1 -1
- package/chunks/{stringCombiner-67bee7be.js → stringCombiner-10b57054.js} +7 -2
- package/chunks/{stringCombiner-67bee7be.js.map → stringCombiner-10b57054.js.map} +1 -1
- package/chunks/telia-button-ef4894d0.js +108 -0
- package/chunks/telia-button-ef4894d0.js.map +1 -0
- package/chunks/{telia-button-text2-c070e5fa.js → telia-button-text2-e1510558.js} +4 -4
- package/chunks/{telia-button-text2-c070e5fa.js.map → telia-button-text2-e1510558.js.map} +1 -1
- package/chunks/{telia-card-frame2-e5f8bb1f.js → telia-card-frame2-2d46eef6.js} +3 -3
- package/chunks/{telia-card-frame2-e5f8bb1f.js.map → telia-card-frame2-2d46eef6.js.map} +1 -1
- package/chunks/{telia-field-assistive-text2-a7ada9a5.js → telia-field-assistive-text2-fd970326.js} +3 -3
- package/chunks/{telia-field-assistive-text2-a7ada9a5.js.map → telia-field-assistive-text2-fd970326.js.map} +1 -1
- package/chunks/{telia-field-error2-341030c7.js → telia-field-error2-63eae7b3.js} +4 -4
- package/chunks/{telia-field-error2-341030c7.js.map → telia-field-error2-63eae7b3.js.map} +1 -1
- package/chunks/{telia-field-valid2-663bc79f.js → telia-field-valid2-bda898b1.js} +4 -4
- package/chunks/{telia-field-valid2-663bc79f.js.map → telia-field-valid2-bda898b1.js.map} +1 -1
- package/chunks/{telia-heading2-de9de777.js → telia-heading2-5fdf4c16.js} +3 -3
- package/chunks/{telia-heading2-de9de777.js.map → telia-heading2-5fdf4c16.js.map} +1 -1
- package/chunks/{telia-icon2-9c59983c.js → telia-icon2-34bf5aef.js} +8 -3
- package/chunks/{telia-icon2-9c59983c.js.map → telia-icon2-34bf5aef.js.map} +1 -1
- package/chunks/{telia-label2-92041936.js → telia-label2-4d674e5e.js} +3 -3
- package/chunks/{telia-label2-92041936.js.map → telia-label2-4d674e5e.js.map} +1 -1
- package/chunks/{telia-link2-d0077a7e.js → telia-link2-7769b385.js} +4 -4
- package/chunks/{telia-link2-d0077a7e.js.map → telia-link2-7769b385.js.map} +1 -1
- package/chunks/{telia-navigation-button2-4686098e.js → telia-navigation-button2-a0b24d67.js} +4 -4
- package/chunks/{telia-navigation-button2-4686098e.js.map → telia-navigation-button2-a0b24d67.js.map} +1 -1
- package/chunks/telia-style-link2-bbd8d17a.js +55 -0
- package/chunks/telia-style-link2-bbd8d17a.js.map +1 -0
- package/chunks/{telia-style-navigation-item2-fe0721bb.js → telia-style-navigation-item2-58683cd9.js} +3 -3
- package/chunks/{telia-style-navigation-item2-fe0721bb.js.map → telia-style-navigation-item2-58683cd9.js.map} +1 -1
- package/chunks/{telia-tab-header2-a4329adf.js → telia-tab-header2-bd04582d.js} +23 -15
- package/chunks/telia-tab-header2-bd04582d.js.map +1 -0
- package/chunks/{telia-visually-hidden2-9e970a02.js → telia-visually-hidden2-71416262.js} +3 -3
- package/chunks/{telia-visually-hidden2-9e970a02.js.map → telia-visually-hidden2-71416262.js.map} +1 -1
- package/chunks/{telia-vst2-5b28f085.js → telia-vst2-1a7f7bd6.js} +2 -2
- package/chunks/{telia-vst2-5b28f085.js.map → telia-vst2-1a7f7bd6.js.map} +1 -1
- package/chunks/uniqueId-0daf01ec.js.map +1 -1
- package/chunks/variables-03fe2cd9.js.map +1 -1
- package/components/alliance-paginator/alliance-paginator-button.d.ts +1 -0
- package/components/alliance-paginator/alliance-paginator.d.ts +2 -0
- package/components/alliance-paginator/alliance-paginator.stories.d.ts +6 -0
- package/components/alliance-paginator/get-pagination.d.ts +7 -1
- package/components/alliance-paginator/index.d.ts +1 -0
- package/components/{alliance-object-list/alliance-object-list.d.ts → alliance-table/alliance-table-body.d.ts} +1 -1
- package/components/{alliance-object-list/alliance-object-list-item.d.ts → alliance-table/alliance-table-data.d.ts} +1 -2
- package/components/{alliance-object-list/alliance-object-list-head.d.ts → alliance-table/alliance-table-head.d.ts} +1 -2
- package/components/{alliance-object-list/alliance-object-list-row.d.ts → alliance-table/alliance-table-row.d.ts} +1 -2
- package/components/alliance-table/alliance-table.d.ts +5 -0
- package/components/alliance-table/alliance-table.stories.d.ts +6 -0
- package/components/alliance-table/index.d.ts +5 -0
- package/components/index.d.ts +1 -1
- package/components/index.js +412 -355
- package/components/index.js.map +1 -1
- package/package.json +20 -8
- package/voca/components/telia-accordion-item.js +6 -3
- package/voca/components/telia-accordion-item.js.map +1 -1
- package/voca/components/telia-accordion.js +32 -21
- package/voca/components/telia-accordion.js.map +1 -1
- package/voca/components/telia-badge.js +2 -2
- package/voca/components/telia-badge.js.map +1 -1
- package/voca/components/telia-button-text.js +4 -4
- package/voca/components/telia-button.js +4 -4
- package/voca/components/telia-card-frame-link.js +5 -5
- package/voca/components/telia-card-frame-link.js.map +1 -1
- package/voca/components/telia-card-frame.js +3 -3
- package/voca/components/telia-checkbox.js +8 -8
- package/voca/components/telia-checkbox.js.map +1 -1
- package/voca/components/telia-chip-choice.js +2 -2
- package/voca/components/telia-chip-choice.js.map +1 -1
- package/voca/components/telia-chip-filter.js +3 -3
- package/voca/components/telia-chip-filter.js.map +1 -1
- package/voca/components/telia-col.js +3 -3
- package/voca/components/telia-col.js.map +1 -1
- package/voca/components/telia-color-dot.js +2 -2
- package/voca/components/telia-color-dot.js.map +1 -1
- package/voca/components/telia-cta-link.js +3 -3
- package/voca/components/telia-cta-link.js.map +1 -1
- package/voca/components/telia-date-picker.js +34 -11
- package/voca/components/telia-date-picker.js.map +1 -1
- package/voca/components/telia-divider.js +45 -3
- package/voca/components/telia-divider.js.map +1 -1
- package/voca/components/telia-field-assistive-text.js +3 -3
- package/voca/components/telia-field-error.js +4 -4
- package/voca/components/telia-field-valid.js +4 -4
- package/voca/components/telia-fieldset.js +2 -2
- package/voca/components/telia-fieldset.js.map +1 -1
- package/voca/components/telia-focus-trap.js +11 -2
- package/voca/components/telia-focus-trap.js.map +1 -1
- package/voca/components/telia-form.js +3 -2
- package/voca/components/telia-form.js.map +1 -1
- package/voca/components/telia-grid.js +2 -2
- package/voca/components/telia-grid.js.map +1 -1
- package/voca/components/telia-heading.js +3 -3
- package/voca/components/telia-icon.js +3 -3
- package/voca/components/telia-image.js +2 -2
- package/voca/components/telia-image.js.map +1 -1
- package/voca/components/telia-label.js +3 -3
- package/voca/components/telia-link-image.js +5 -5
- package/voca/components/telia-link-image.js.map +1 -1
- package/voca/components/telia-link.js +4 -4
- package/voca/components/telia-list.js +6 -2
- package/voca/components/telia-list.js.map +1 -1
- package/voca/components/telia-logo.js +2 -2
- package/voca/components/telia-logo.js.map +1 -1
- package/voca/components/telia-navigation-button.js +4 -4
- package/voca/components/telia-navigation-dropdown.js +22 -5
- package/voca/components/telia-navigation-dropdown.js.map +1 -1
- package/voca/components/telia-navigation-link.js +3 -3
- package/voca/components/telia-navigation-link.js.map +1 -1
- package/voca/components/telia-notification.js +10 -5
- package/voca/components/telia-notification.js.map +1 -1
- package/voca/components/telia-overlay.js +2 -2
- package/voca/components/telia-overlay.js.map +1 -1
- package/voca/components/telia-p.js +2 -2
- package/voca/components/telia-p.js.map +1 -1
- package/voca/components/telia-pictogram.js +22 -2
- package/voca/components/telia-pictogram.js.map +1 -1
- package/voca/components/telia-radio-button.js +16 -16
- package/voca/components/telia-radio-button.js.map +1 -1
- package/voca/components/telia-row.js +2 -2
- package/voca/components/telia-row.js.map +1 -1
- package/voca/components/telia-select.js +8 -8
- package/voca/components/telia-select.js.map +1 -1
- package/voca/components/telia-skeleton.js +2 -2
- package/voca/components/telia-skeleton.js.map +1 -1
- package/voca/components/telia-status-badge.js +3 -3
- package/voca/components/telia-status-badge.js.map +1 -1
- package/voca/components/telia-style-link.js +3 -3
- package/voca/components/telia-style-navigation-item.js +3 -3
- package/voca/components/telia-tab-content.js +1 -1
- package/voca/components/telia-tab-content.js.map +1 -1
- package/voca/components/telia-tab-header.js +4 -4
- package/voca/components/telia-tab.js +70 -65
- package/voca/components/telia-tab.js.map +1 -1
- package/voca/components/telia-text-input.js +26 -10
- package/voca/components/telia-text-input.js.map +1 -1
- package/voca/components/telia-text-spacing.js +2 -2
- package/voca/components/telia-text-spacing.js.map +1 -1
- package/voca/components/telia-textarea.js +9 -9
- package/voca/components/telia-textarea.js.map +1 -1
- package/voca/components/telia-toggle.js +3 -3
- package/voca/components/telia-toggle.js.map +1 -1
- package/voca/components/telia-visually-hidden.js +3 -3
- package/voca/foundations/index.js +60 -49
- package/voca/foundations/index.js.map +1 -1
- package/voca/icons/index.js.map +1 -1
- package/chunks/telia-button-a8a03bcb.js +0 -105
- package/chunks/telia-button-a8a03bcb.js.map +0 -1
- package/chunks/telia-divider-644c043b.js +0 -46
- package/chunks/telia-divider-644c043b.js.map +0 -1
- package/chunks/telia-style-link2-e6b7be00.js +0 -55
- package/chunks/telia-style-link2-e6b7be00.js.map +0 -1
- package/chunks/telia-tab-header2-a4329adf.js.map +0 -1
- package/components/alliance-object-list/index.d.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telia-color-dot.js","sources":["../../../../node_modules/.pnpm/@teliads+components@18.
|
|
1
|
+
{"version":3,"file":"telia-color-dot.js","sources":["../../../../node_modules/.pnpm/@teliads+components@18.6.0/node_modules/@teliads/components/dist/components/telia-color-dot.js"],"sourcesContent":["import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';\nimport { d as defineCustomElement$2 } from './telia-vst2.js';\n\nconst teliaColorDotCss = \".telia-color-dot{border-radius:calc(99.9rem * var(--voca-rem-multiplier))}.telia-color-dot--with_border{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd}.telia-color-dot--xs{height:calc(1.2rem * var(--voca-rem-multiplier));width:calc(1.2rem * var(--voca-rem-multiplier))}.telia-color-dot--sm{height:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-color-dot--md{height:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}.telia-color-dot--lg{height:calc(4.8rem * var(--voca-rem-multiplier));width:calc(4.8rem * var(--voca-rem-multiplier))}\";\n\nconst TeliaColorDot$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n /** Change size of TeliaColorDot from xs to lg */\n this.size = 'sm';\n /** Add border. Use if color contrast is low. */\n this.withborder = false;\n /** Tracking id is used to identify and count Component usage */\n this.dataTrackingId = 'telia-color-dot';\n }\n render() {\n return (h(\"div\", { \"data-testid\": \"telia-color-dot-border-container\", class: {\n 'telia-color-dot': true,\n 'telia-color-dot--with_border': this.withborder,\n [`telia-color-dot--${this.size}`]: true,\n }, style: { backgroundColor: this.color } }, h(\"telia-vst\", { dataTrackingId: this.dataTrackingId })));\n }\n static get style() { return teliaColorDotCss; }\n}, [1, \"telia-color-dot\", {\n \"color\": [1],\n \"size\": [1],\n \"dataTestid\": [1, \"data-testid\"],\n \"withborder\": [4]\n }]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"telia-color-dot\", \"telia-vst\"];\n components.forEach(tagName => { switch (tagName) {\n case \"telia-color-dot\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, TeliaColorDot$1);\n }\n break;\n case \"telia-vst\":\n if (!customElements.get(tagName)) {\n defineCustomElement$2();\n }\n break;\n } });\n}\ndefineCustomElement$1();\n\nconst TeliaColorDot = TeliaColorDot$1;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { TeliaColorDot, defineCustomElement };\n"],"names":["teliaColorDotCss","TeliaColorDot$1","proxyCustomElement","HTMLElement","h","defineCustomElement$1","tagName","defineCustomElement$2"],"mappings":";;AAGA,MAAMA,IAAmB,moBAEnBC,IAAgC,gBAAAC,EAAmB,cAAcC,EAAY;AAAA,EACjF,cAAc;AACZ,aACA,KAAK,eAAc,GACnB,KAAK,eAAc,GAEnB,KAAK,OAAO,MAEZ,KAAK,aAAa,IAElB,KAAK,iBAAiB;AAAA,EACvB;AAAA,EACD,SAAS;AACP,WAAQC,EAAE,OAAO,EAAE,eAAe,oCAAoC,OAAO;AAAA,MACzE,mBAAmB;AAAA,MACnB,gCAAgC,KAAK;AAAA,MACrC,CAAC,oBAAoB,KAAK,MAAM,GAAG;AAAA,IACpC,GAAE,OAAO,EAAE,iBAAiB,KAAK,MAAK,EAAI,GAAEA,EAAE,aAAa,EAAE,gBAAgB,KAAK,eAAc,CAAE,CAAC;AAAA,EACvG;AAAA,EACD,WAAW,QAAQ;AAAE,WAAOJ;AAAA,EAAmB;AACjD,GAAG,CAAC,GAAG,mBAAmB;AAAA,EACtB,OAAS,CAAC,CAAC;AAAA,EACX,MAAQ,CAAC,CAAC;AAAA,EACV,YAAc,CAAC,GAAG,aAAa;AAAA,EAC/B,YAAc,CAAC,CAAC;AACjB,CAAA,CAAC;AACJ,SAASK,IAAwB;AAC/B,MAAI,OAAO,iBAAmB;AAC5B;AAGF,EADmB,CAAC,mBAAmB,WAAW,EACvC,QAAQ,CAAAC,MAAW;AAAE,YAAQA,GAAO;AAAA,MAC7C,KAAK;AACH,QAAK,eAAe,IAAIA,CAAO,KAC7B,eAAe,OAAOA,GAASL,CAAe;AAEhD;AAAA,MACF,KAAK;AACH,QAAK,eAAe,IAAIK,CAAO,KAC7BC;AAEF;AAAA,IACH;AAAA,EAAA,CAAE;AACL;AACAF,EAAuB;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as l, H as a, h as r, a as i } from "../../chunks/index-
|
|
2
|
-
import { d as c } from "../../chunks/telia-icon2-
|
|
3
|
-
import { d as t } from "../../chunks/telia-vst2-
|
|
1
|
+
import { p as l, H as a, h as r, a as i } from "../../chunks/index-17652cf7.js";
|
|
2
|
+
import { d as c } from "../../chunks/telia-icon2-34bf5aef.js";
|
|
3
|
+
import { d as t } from "../../chunks/telia-vst2-1a7f7bd6.js";
|
|
4
4
|
import "../../chunks/getSvgContent-f2389ce0.js";
|
|
5
5
|
const o = '.telia-cta-link{border-radius:calc(99.9rem * var(--voca-rem-multiplier));font-size:calc(1.6rem * var(--voca-rem-multiplier));font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:500;align-items:center;color:inherit;cursor:pointer;display:inline-flex;gap:calc(0.8rem * var(--voca-rem-multiplier));justify-content:center;line-height:calc(1.6rem * var(--voca-rem-multiplier));outline:0;padding:calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(2.4rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)));position:relative;text-decoration:none;transition:all 150ms ease}@media screen and (min-width: 37.5em){.telia-cta-link{width:auto}}.telia-cta-link:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier))}.telia-cta-link:focus:not(:focus-visible){outline:0}.telia-cta-link--primary{background-color:#29003e;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e;color:#ffffff}.telia-cta-link--primary:hover{background-color:#5e0092;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092;color:#ffffff}.telia-cta-link--primary:active{background-color:#7800b4;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #7800b4;color:#ffffff}.telia-cta-link--secondary{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e;color:#29003e}.telia-cta-link--secondary:hover{background-color:#29003e;color:#ffffff}.telia-cta-link--secondary:active{background-color:#5e0092;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092;color:#ffffff}.telia-cta-link--expressive{background-color:#990ae3;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #990ae3;color:#ffffff}.telia-cta-link--expressive:hover{background-color:#7800b4;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #7800b4}.telia-cta-link--expressive:active{background-color:#5e0092;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092}.telia-cta-link--primary-white{background-color:#ffffff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #ffffff;color:#29003e}.telia-cta-link--primary-white:hover{background-color:#fbf0ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #fbf0ff}.telia-cta-link--primary-white:active{background-color:#edc8ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #edc8ff}.telia-cta-link--secondary-white{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #ffffff;color:#ffffff}.telia-cta-link--secondary-white:hover{background-color:#fbf0ff;color:#29003e}.telia-cta-link--secondary-white:active{background-color:#edc8ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #edc8ff;color:#29003e}.telia-cta-link--expressive-white{background-color:#990ae3;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #990ae3;color:#ffffff}.telia-cta-link--expressive-white:hover{background-color:#c158f8;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c158f8;color:#29003e}.telia-cta-link--expressive-white:active{background-color:#de99ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #de99ff;color:#29003e}.telia-cta-link.telia-cta-link--icon-only{padding:calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--sm{padding:calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--sm.telia-cta-link--icon-only{padding:calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--lg{padding:calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(3.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--lg.telia-cta-link--icon-only{padding:calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}', m = /* @__PURE__ */ l(class extends a {
|
|
6
6
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telia-cta-link.js","sources":["../../../../node_modules/.pnpm/@teliads+components@18.
|
|
1
|
+
{"version":3,"file":"telia-cta-link.js","sources":["../../../../node_modules/.pnpm/@teliads+components@18.6.0/node_modules/@teliads/components/dist/components/telia-cta-link.js"],"sourcesContent":["import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';\nimport { d as defineCustomElement$3 } from './telia-icon2.js';\nimport { d as defineCustomElement$2 } from './telia-vst2.js';\n\nconst teliaCtaLinkCss = \".telia-cta-link{border-radius:calc(99.9rem * var(--voca-rem-multiplier));font-size:calc(1.6rem * var(--voca-rem-multiplier));font-family:\\\"TeliaSans\\\", Helvetica, Arial, \\\"Lucida Grande\\\", sans-serif;font-weight:500;align-items:center;color:inherit;cursor:pointer;display:inline-flex;gap:calc(0.8rem * var(--voca-rem-multiplier));justify-content:center;line-height:calc(1.6rem * var(--voca-rem-multiplier));outline:0;padding:calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(2.4rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)));position:relative;text-decoration:none;transition:all 150ms ease}@media screen and (min-width: 37.5em){.telia-cta-link{width:auto}}.telia-cta-link:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier))}.telia-cta-link:focus:not(:focus-visible){outline:0}.telia-cta-link--primary{background-color:#29003e;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e;color:#ffffff}.telia-cta-link--primary:hover{background-color:#5e0092;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092;color:#ffffff}.telia-cta-link--primary:active{background-color:#7800b4;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #7800b4;color:#ffffff}.telia-cta-link--secondary{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e;color:#29003e}.telia-cta-link--secondary:hover{background-color:#29003e;color:#ffffff}.telia-cta-link--secondary:active{background-color:#5e0092;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092;color:#ffffff}.telia-cta-link--expressive{background-color:#990ae3;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #990ae3;color:#ffffff}.telia-cta-link--expressive:hover{background-color:#7800b4;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #7800b4}.telia-cta-link--expressive:active{background-color:#5e0092;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #5e0092}.telia-cta-link--primary-white{background-color:#ffffff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #ffffff;color:#29003e}.telia-cta-link--primary-white:hover{background-color:#fbf0ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #fbf0ff}.telia-cta-link--primary-white:active{background-color:#edc8ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #edc8ff}.telia-cta-link--secondary-white{background-color:transparent;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #ffffff;color:#ffffff}.telia-cta-link--secondary-white:hover{background-color:#fbf0ff;color:#29003e}.telia-cta-link--secondary-white:active{background-color:#edc8ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #edc8ff;color:#29003e}.telia-cta-link--expressive-white{background-color:#990ae3;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #990ae3;color:#ffffff}.telia-cta-link--expressive-white:hover{background-color:#c158f8;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c158f8;color:#29003e}.telia-cta-link--expressive-white:active{background-color:#de99ff;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #de99ff;color:#29003e}.telia-cta-link.telia-cta-link--icon-only{padding:calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--sm{padding:calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--sm.telia-cta-link--icon-only{padding:calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--lg{padding:calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(3.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-cta-link--lg.telia-cta-link--icon-only{padding:calc(calc(2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}\";\n\nconst TeliaCtaLink$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n /** The CTA link size */\n this.size = 'md';\n /** The CTA link variant */\n this.variant = 'primary';\n /** Internal state for styling purpose of the icon */\n this.emptySlot = false;\n /** Tracking id is used to identify and count Component usage */\n this.dataTrackingId = 'telia-cta-link';\n }\n componentWillLoad() {\n this.emptySlot = this.host.innerHTML !== '';\n }\n render() {\n return (h(Host, null, h(\"a\", { class: {\n 'telia-cta-link': true,\n [`telia-cta-link--${this.variant}`]: !!this.variant,\n [`telia-cta-link--${this.size}`]: true,\n [`telia-cta-link--icon-only`]: !this.emptySlot,\n }, href: this.href, target: this.target, download: this.download, \"referrer-policy\": this.referrerPolicy, title: this.linkTitle }, this.emptySlot && h(\"slot\", null), h(\"telia-icon\", Object.assign({}, (this.allyLabel ? { allyTitle: this.allyLabel } : {}), { name: \"arrow-right\", size: \"sm\" }))), h(\"telia-vst\", { dataTrackingId: this.dataTrackingId })));\n }\n get host() { return this; }\n static get style() { return teliaCtaLinkCss; }\n}, [1, \"telia-cta-link\", {\n \"dataTestid\": [1, \"data-testid\"],\n \"href\": [1],\n \"target\": [1],\n \"download\": [8],\n \"referrerPolicy\": [1, \"referrer-policy\"],\n \"linkTitle\": [1, \"link-title\"],\n \"size\": [1],\n \"variant\": [1],\n \"allyLabel\": [1, \"ally-label\"],\n \"emptySlot\": [32]\n }]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"telia-cta-link\", \"telia-icon\", \"telia-vst\"];\n components.forEach(tagName => { switch (tagName) {\n case \"telia-cta-link\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, TeliaCtaLink$1);\n }\n break;\n case \"telia-icon\":\n if (!customElements.get(tagName)) {\n defineCustomElement$3();\n }\n break;\n case \"telia-vst\":\n if (!customElements.get(tagName)) {\n defineCustomElement$2();\n }\n break;\n } });\n}\ndefineCustomElement$1();\n\nconst TeliaCtaLink = TeliaCtaLink$1;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { TeliaCtaLink, defineCustomElement };\n"],"names":["teliaCtaLinkCss","TeliaCtaLink$1","proxyCustomElement","HTMLElement","h","Host","defineCustomElement$1","tagName","defineCustomElement$3","defineCustomElement$2"],"mappings":";;;;AAIA,MAAMA,IAAkB,69HAElBC,IAA+B,gBAAAC,EAAmB,cAAcC,EAAY;AAAA,EAChF,cAAc;AACZ,aACA,KAAK,eAAc,GACnB,KAAK,eAAc,GAEnB,KAAK,OAAO,MAEZ,KAAK,UAAU,WAEf,KAAK,YAAY,IAEjB,KAAK,iBAAiB;AAAA,EACvB;AAAA,EACD,oBAAoB;AAClB,SAAK,YAAY,KAAK,KAAK,cAAc;AAAA,EAC1C;AAAA,EACD,SAAS;AACP,WAAQC,EAAEC,GAAM,MAAMD,EAAE,KAAK,EAAE,OAAO;AAAA,MAClC,kBAAkB;AAAA,MAClB,CAAC,mBAAmB,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK;AAAA,MAC5C,CAAC,mBAAmB,KAAK,MAAM,GAAG;AAAA,MAClC,CAAC,2BAA2B,GAAG,CAAC,KAAK;AAAA,IACtC,GAAE,MAAM,KAAK,MAAM,QAAQ,KAAK,QAAQ,UAAU,KAAK,UAAU,mBAAmB,KAAK,gBAAgB,OAAO,KAAK,UAAS,GAAI,KAAK,aAAaA,EAAE,QAAQ,IAAI,GAAGA,EAAE,cAAc,OAAO,OAAO,CAAA,GAAK,KAAK,YAAY,EAAE,WAAW,KAAK,UAAS,IAAK,CAAE,GAAG,EAAE,MAAM,eAAe,MAAM,KAAI,CAAE,CAAC,CAAC,GAAGA,EAAE,aAAa,EAAE,gBAAgB,KAAK,eAAc,CAAE,CAAC;AAAA,EACjW;AAAA,EACD,IAAI,OAAO;AAAE,WAAO;AAAA,EAAO;AAAA,EAC3B,WAAW,QAAQ;AAAE,WAAOJ;AAAA,EAAkB;AAChD,GAAG,CAAC,GAAG,kBAAkB;AAAA,EACrB,YAAc,CAAC,GAAG,aAAa;AAAA,EAC/B,MAAQ,CAAC,CAAC;AAAA,EACV,QAAU,CAAC,CAAC;AAAA,EACZ,UAAY,CAAC,CAAC;AAAA,EACd,gBAAkB,CAAC,GAAG,iBAAiB;AAAA,EACvC,WAAa,CAAC,GAAG,YAAY;AAAA,EAC7B,MAAQ,CAAC,CAAC;AAAA,EACV,SAAW,CAAC,CAAC;AAAA,EACb,WAAa,CAAC,GAAG,YAAY;AAAA,EAC7B,WAAa,CAAC,EAAE;AACjB,CAAA,CAAC;AACJ,SAASM,IAAwB;AAC/B,MAAI,OAAO,iBAAmB;AAC5B;AAGF,EADmB,CAAC,kBAAkB,cAAc,WAAW,EACpD,QAAQ,CAAAC,MAAW;AAAE,YAAQA,GAAO;AAAA,MAC7C,KAAK;AACH,QAAK,eAAe,IAAIA,CAAO,KAC7B,eAAe,OAAOA,GAASN,CAAc;AAE/C;AAAA,MACF,KAAK;AACH,QAAK,eAAe,IAAIM,CAAO,KAC7BC;AAEF;AAAA,MACF,KAAK;AACH,QAAK,eAAe,IAAID,CAAO,KAC7BE;AAEF;AAAA,IACH;AAAA,EAAA,CAAE;AACL;AACAH,EAAuB;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { p as q, H as K, c as F, h as i, a as $, F as W } from "../../chunks/index-
|
|
1
|
+
import { p as q, H as K, c as F, h as i, a as $, F as W } from "../../chunks/index-17652cf7.js";
|
|
2
2
|
import { u as b } from "../../chunks/uniqueId-0daf01ec.js";
|
|
3
|
-
import { s as j } from "../../chunks/stringCombiner-
|
|
3
|
+
import { s as j } from "../../chunks/stringCombiner-10b57054.js";
|
|
4
4
|
import { c as E } from "../../chunks/chevron-down-50d47dd6.js";
|
|
5
5
|
import { c as J } from "../../chunks/close-ac6e4f1c.js";
|
|
6
|
-
import { d as U } from "../../chunks/telia-field-assistive-text2-
|
|
7
|
-
import { d as X } from "../../chunks/telia-field-error2-
|
|
8
|
-
import { d as Q } from "../../chunks/telia-heading2-
|
|
9
|
-
import { d as ee } from "../../chunks/telia-icon2-
|
|
10
|
-
import { d as te } from "../../chunks/telia-label2-
|
|
11
|
-
import { d as ae } from "../../chunks/telia-vst2-
|
|
6
|
+
import { d as U } from "../../chunks/telia-field-assistive-text2-fd970326.js";
|
|
7
|
+
import { d as X } from "../../chunks/telia-field-error2-63eae7b3.js";
|
|
8
|
+
import { d as Q } from "../../chunks/telia-heading2-5fdf4c16.js";
|
|
9
|
+
import { d as ee } from "../../chunks/telia-icon2-34bf5aef.js";
|
|
10
|
+
import { d as te } from "../../chunks/telia-label2-4d674e5e.js";
|
|
11
|
+
import { d as ae } from "../../chunks/telia-vst2-1a7f7bd6.js";
|
|
12
12
|
import "../../chunks/error-filled-8de50bdd.js";
|
|
13
13
|
import "../../chunks/getSvgContent-f2389ce0.js";
|
|
14
14
|
const ie = { name: "chevron-right", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M47.1663 32.0005C47.1667 32.6147 46.9059 33.2001 46.449 33.6106L24.7824 53.1106C23.8931 53.9111 22.5233 53.8391 21.7228 52.9498C20.9223 52.0606 20.9943 50.6907 21.8836 49.8903L41.7613 32.0005L21.8836 14.1106C21.3083 13.5928 21.053 12.8075 21.2138 12.0503C21.3746 11.2932 21.9271 10.6794 22.6632 10.4402C23.3993 10.2009 24.2071 10.3724 24.7824 10.8903L46.449 30.3903C46.9059 30.8008 47.1667 31.3862 47.1663 32.0005Z"/></svg>' }, re = { name: "calendar", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58 51.3846V16.9231C57.9973 14.5451 56.0588 12.6181 53.6667 12.6154H49.3333V8.30769C49.3306 5.92975 47.3921 4.00272 45 4H40.6667C38.2746 4.00272 36.3361 5.92975 36.3333 8.30769V12.6154H27.6667V8.30769C27.6639 5.92975 25.7254 4.00272 23.3333 4H19C16.6079 4.00272 14.6694 5.92975 14.6667 8.30769V12.6154H10.3333C7.94123 12.6181 6.00273 14.5451 6 16.9231V51.3846C6.00547 56.1405 9.88247 59.9946 14.6667 60H49.3333C54.1175 59.9946 57.9945 56.1405 58 51.3846ZM44.9999 16.923H40.6666V8.30766H44.9999V16.923ZM23.3333 16.923H18.9999V8.30766H23.3333V16.923ZM49.3334 16.9231H53.6668V24.9852H10.3334V16.9231H14.6668C14.6695 19.301 16.608 21.228 19.0001 21.2307H23.3334C25.7255 21.228 27.664 19.301 27.6668 16.9231H36.3334C36.3362 19.301 38.2747 21.228 40.6668 21.2307H45.0001C47.3922 21.228 49.3307 19.301 49.3334 16.9231ZM10.3334 28.9852V51.3846C10.3362 53.7625 12.2747 55.6896 14.6668 55.6923H49.3334C51.7255 55.6896 53.664 53.7625 53.6668 51.3846V28.9852H10.3334Z"/><path d="M14.6949 35.3069C14.6949 34.2023 15.5957 33.3069 16.7068 33.3069H21.378C22.4891 33.3069 23.3899 34.2024 23.3899 35.3069V36.7091C23.3899 37.8137 22.4891 38.7091 21.378 38.7091H16.7068C15.5957 38.7091 14.6949 37.8137 14.6949 36.7091V35.3069Z"/><path d="M27.7374 35.3069C27.7374 34.2023 28.6381 33.3069 29.7493 33.3069H34.4204C35.5316 33.3069 36.4323 34.2024 36.4323 35.3069V36.7091C36.4323 37.8137 35.5316 38.7091 34.4204 38.7091H29.7493C28.6381 38.7091 27.7374 37.8137 27.7374 36.7091V35.3069Z"/><path d="M40.7798 35.3069C40.7798 34.2023 41.6806 33.3069 42.7917 33.3069H47.4629C48.574 33.3069 49.4748 34.2024 49.4748 35.3069V36.7091C49.4748 37.8137 48.574 38.7091 47.4629 38.7091H42.7917C41.6806 38.7091 40.7798 37.8137 40.7798 36.7091V35.3069Z"/><path d="M14.6949 46.1114C14.6949 45.0068 15.5957 44.1114 16.7068 44.1114H21.378C22.4891 44.1114 23.3899 45.0068 23.3899 46.1114V47.5136C23.3899 48.6181 22.4891 49.5136 21.378 49.5136H16.7068C15.5957 49.5136 14.6949 48.6181 14.6949 47.5136V46.1114Z"/><path d="M27.7374 46.1114C27.7374 45.0068 28.6381 44.1114 29.7493 44.1114H34.4204C35.5316 44.1114 36.4323 45.0068 36.4323 46.1114V47.5136C36.4323 48.6181 35.5316 49.5136 34.4204 49.5136H29.7493C28.6381 49.5136 27.7374 48.6181 27.7374 47.5136V46.1114Z"/><path d="M40.7798 46.1114C40.7798 45.0068 41.6806 44.1114 42.7917 44.1114H47.4629C48.574 44.1114 49.4748 45.0068 49.4748 46.1114V47.5136C49.4748 48.6181 48.574 49.5136 47.4629 49.5136H42.7917C41.6806 49.5136 40.7798 48.6181 40.7798 47.5136V46.1114Z"/></svg>' }, le = { name: "chevron-left", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M42.1162 49.8902C42.6915 50.4081 42.9468 51.1934 42.786 51.9505C42.6252 52.7076 42.0727 53.3214 41.3366 53.5607C40.6005 53.8 39.7927 53.6284 39.2174 53.1106L17.5508 33.6106C17.0942 33.1999 16.8335 32.6146 16.8335 32.0004C16.8335 31.3863 17.0942 30.801 17.5508 30.3902L39.2174 10.8902C40.1067 10.0898 41.4766 10.1618 42.277 11.0511C43.0775 11.9403 43.0055 13.3102 42.1162 14.1106L22.2385 32.0004L42.1162 49.8902Z"/></svg>' }, oe = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
@@ -18,7 +18,10 @@ var k;
|
|
|
18
18
|
})(k || (k = {}));
|
|
19
19
|
function S(e, t, a) {
|
|
20
20
|
const r = parseInt(a, 10), l = parseInt(t, 10), s = parseInt(e, 10);
|
|
21
|
-
if (Number.isInteger(s) &&
|
|
21
|
+
if (Number.isInteger(s) && // all parts should be integers
|
|
22
|
+
Number.isInteger(l) && Number.isInteger(r) && l > 0 && // month must be 1-12
|
|
23
|
+
l <= 12 && r > 0 && // day must be 1-31
|
|
24
|
+
r <= 31 && s > 0)
|
|
22
25
|
return new Date(s, l - 1, r);
|
|
23
26
|
}
|
|
24
27
|
function p(e) {
|
|
@@ -349,7 +352,7 @@ const be = /[^0-9\.\/\-]+/g, L = 300, ke = /* @__PURE__ */ q(class extends K {
|
|
|
349
352
|
this.updateErrorMessage(this.errorMessage), this.makeTouched();
|
|
350
353
|
return;
|
|
351
354
|
}
|
|
352
|
-
if (c && d && !this.isValueValid() && this.updateErrorMessage(this.invalidErrorMessage), l && this.touched &&
|
|
355
|
+
if (c && d && !this.isValueValid() && this.updateErrorMessage(this.invalidErrorMessage), l && this.touched && this.requiredErrorMessage && this.isValueMissing() && this.updateErrorMessage(this.requiredErrorMessage), r) {
|
|
353
356
|
if (s || c && !this.isValueValid())
|
|
354
357
|
return;
|
|
355
358
|
this.updateErrorMessage("");
|
|
@@ -364,7 +367,7 @@ const be = /[^0-9\.\/\-]+/g, L = 300, ke = /* @__PURE__ */ q(class extends K {
|
|
|
364
367
|
}
|
|
365
368
|
componentDidRender() {
|
|
366
369
|
var e, t;
|
|
367
|
-
this.datePickerInput && ((e = this.datePickerInput) === null || e === void 0
|
|
370
|
+
this.datePickerInput && (!((e = this.datePickerInput) === null || e === void 0) && e.setCustomValidity) && ((t = this.datePickerInput) === null || t === void 0 || t.setCustomValidity(this.errorMessageState));
|
|
368
371
|
}
|
|
369
372
|
yearRangeChanged(e) {
|
|
370
373
|
let t = typeof e == "string" ? JSON.parse(e) : e;
|
|
@@ -382,19 +385,35 @@ const be = /[^0-9\.\/\-]+/g, L = 300, ke = /* @__PURE__ */ q(class extends K {
|
|
|
382
385
|
year: "numeric"
|
|
383
386
|
});
|
|
384
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* Component event handling.
|
|
390
|
+
*/
|
|
385
391
|
handleDocumentClick(e) {
|
|
386
392
|
if (!this.open)
|
|
387
393
|
return;
|
|
388
394
|
e.composedPath().every((a) => a !== this.dialogWrapperNode && a !== this.datePickerButton) && this.hide(!1);
|
|
389
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* Public methods API
|
|
398
|
+
*/
|
|
399
|
+
/**
|
|
400
|
+
* Sets focus on the date picker's input. Use this method instead of the global `focus()`.
|
|
401
|
+
*/
|
|
390
402
|
async setFocus() {
|
|
391
403
|
return this.datePickerInput.focus();
|
|
392
404
|
}
|
|
405
|
+
/**
|
|
406
|
+
* Show the calendar modal, moving focus to the calendar inside.
|
|
407
|
+
*/
|
|
393
408
|
async show() {
|
|
394
409
|
this.open = !0, this.modalOpen = !0, this.setFocusedDay(p(this.value) || new Date());
|
|
395
410
|
let { matches: e } = window.matchMedia("(max-width: 600px)");
|
|
396
411
|
e && (this.body.style.overflowY = "hidden", this.body.style.position = "fixed", this.body.style.width = "100%"), clearTimeout(this.focusTimeoutId), this.focusTimeoutId = setTimeout(() => this.monthSelectNode.focus(), L);
|
|
397
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus
|
|
415
|
+
* returning to the date picker's button. Default is true.
|
|
416
|
+
*/
|
|
398
417
|
async hide(e = !0) {
|
|
399
418
|
this.open = !1, this.modalOpen = !1, this.body.style.overflowY === "hidden" && this.body.style.position === "fixed" && (this.body.style.overflowY = "", this.body.style.position = "", this.body.style.width = ""), clearTimeout(this.focusTimeoutId), e && setTimeout(() => this.datePickerButton.focus(), L + 200);
|
|
400
419
|
}
|
|
@@ -431,6 +450,10 @@ const be = /[^0-9\.\/\-]+/g, L = 300, ke = /* @__PURE__ */ q(class extends K {
|
|
|
431
450
|
valueAsDate: e
|
|
432
451
|
});
|
|
433
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* render() function
|
|
455
|
+
* Always the last one in the class.
|
|
456
|
+
*/
|
|
434
457
|
render() {
|
|
435
458
|
var e;
|
|
436
459
|
const t = !!this.additional, a = !!(!((e = this.errorMessageState) === null || e === void 0) && e.length), r = j({
|