@arbetsformedlingen/yrkesvaljaren 2.0.12 → 2.2.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.
Files changed (98) hide show
  1. package/README.md +52 -21
  2. package/dist/cjs/{af-validation-message-Cy89nVEv.js → af-validation-message-BdR9X_qh.js} +1 -1
  3. package/dist/cjs/core-selector.cjs.entry.js +342 -23
  4. package/dist/cjs/digi-service-job-selector.cjs.entry.js +352 -61
  5. package/dist/cjs/{index-hZgOvC17.js → index-DMQDFAL7.js} +0 -22
  6. package/dist/cjs/index.cjs.js +4 -7
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/{esm/fuse-BPnhMTul.js → cjs/types-DdzCbiye.js} +965 -1
  9. package/dist/cjs/yrkesvaljaren.cjs.js +2 -2
  10. package/dist/collection/collection-manifest.json +0 -1
  11. package/dist/collection/components/core-selector/core-selector.css +70 -49
  12. package/dist/collection/components/core-selector/core-selector.js +309 -14
  13. package/dist/collection/components/design-compat/af-icon.js +8 -7
  14. package/dist/collection/components/job-selector/job-selector-controller.js +13 -3
  15. package/dist/collection/components/job-selector/job-selector.css +188 -34
  16. package/dist/collection/components/job-selector/job-selector.js +199 -10
  17. package/dist/components/core-selector2.js +1 -1
  18. package/dist/components/digi-service-job-selector.js +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/types.js +1 -1
  21. package/dist/esm/{af-validation-message-BgoGzzBf.js → af-validation-message-DMoOu-0k.js} +1 -1
  22. package/dist/esm/core-selector.entry.js +342 -23
  23. package/dist/esm/digi-service-job-selector.entry.js +310 -19
  24. package/dist/esm/{index-HNd02eQb.js → index-vJ-tamti.js} +1 -22
  25. package/dist/esm/index.js +2 -4
  26. package/dist/esm/loader.js +3 -3
  27. package/dist/{cjs/fuse-BTLNKxuL.js → esm/types-DVos4HHS.js} +948 -2
  28. package/dist/esm/yrkesvaljaren.js +3 -3
  29. package/dist/types/components/core-selector/core-selector.d.ts +68 -0
  30. package/dist/types/components/job-selector/job-selector-controller.d.ts +5 -0
  31. package/dist/types/components/job-selector/job-selector.d.ts +21 -3
  32. package/dist/types/components/job-selector/types.d.ts +12 -0
  33. package/dist/types/components.d.ts +20 -99
  34. package/dist/types/index.d.ts +1 -1
  35. package/dist/vendor/taxonomy-core/af-data-layer.d.ts +16 -0
  36. package/dist/vendor/taxonomy-core/af-data-layer.js +24 -0
  37. package/dist/vendor/taxonomy-core/index.d.ts +1 -1
  38. package/dist/vendor/taxonomy-core/index.js +1 -1
  39. package/dist/vendor/taxonomy-core/pii-sanitizer.d.ts +25 -0
  40. package/dist/vendor/taxonomy-core/pii-sanitizer.js +137 -0
  41. package/dist/vendor/taxonomy-core/selector-navigation.d.ts +9 -1
  42. package/dist/vendor/taxonomy-core/selector-navigation.js +28 -1
  43. package/dist/vendor/taxonomy-core/selector-types.d.ts +12 -0
  44. package/dist/yrkesvaljaren/index.esm.js +1 -1
  45. package/dist/yrkesvaljaren/p-0f19a308.entry.js +1 -0
  46. package/dist/yrkesvaljaren/{p-BUviBbwX.js → p-DHK95AvZ.js} +1 -1
  47. package/dist/yrkesvaljaren/p-DVos4HHS.js +1 -0
  48. package/dist/yrkesvaljaren/p-b81496c8.entry.js +1 -0
  49. package/dist/yrkesvaljaren/p-vJ-tamti.js +3 -0
  50. package/dist/yrkesvaljaren/yrkesvaljaren.esm.js +1 -1
  51. package/package.json +12 -10
  52. package/dist/cjs/geo-valjaren.cjs.entry.js +0 -14910
  53. package/dist/cjs/job-selector-demo.cjs.entry.js +0 -690
  54. package/dist/cjs/neobrutal-search.cjs.entry.js +0 -171
  55. package/dist/cjs/search.engine-D4cpbVzd.js +0 -504
  56. package/dist/cjs/taxonomy-registry-Dzt0SPzT.js +0 -454
  57. package/dist/cjs/types-CtHBl6Ra.js +0 -14
  58. package/dist/collection/components/geovaljaren/geovaljaren.css +0 -21
  59. package/dist/collection/components/geovaljaren/geovaljaren.js +0 -304
  60. package/dist/collection/components/geovaljaren/logic/adapter.utils.js +0 -20
  61. package/dist/collection/components/geovaljaren/logic/data.utils.js +0 -12
  62. package/dist/collection/components/geovaljaren/logic/history-service.js +0 -25
  63. package/dist/collection/components/geovaljaren/logic/search.engine.js +0 -28
  64. package/dist/collection/verkstad/verkstad.js +0 -408
  65. package/dist/components/fuse.js +0 -1
  66. package/dist/components/geo-valjaren.d.ts +0 -11
  67. package/dist/components/geo-valjaren.js +0 -1
  68. package/dist/components/job-selector-demo.d.ts +0 -11
  69. package/dist/components/job-selector-demo.js +0 -1
  70. package/dist/components/job-selector.js +0 -1
  71. package/dist/components/neobrutal-search.d.ts +0 -11
  72. package/dist/components/neobrutal-search.js +0 -1
  73. package/dist/components/search.engine.js +0 -1
  74. package/dist/esm/geo-valjaren.entry.js +0 -14908
  75. package/dist/esm/job-selector-demo.entry.js +0 -688
  76. package/dist/esm/neobrutal-search.entry.js +0 -169
  77. package/dist/esm/search.engine-BaWUTc3r.js +0 -493
  78. package/dist/esm/taxonomy-registry-C-pSh51L.js +0 -449
  79. package/dist/esm/types-DHUftoZJ.js +0 -12
  80. package/dist/types/components/geovaljaren/geovaljaren.d.ts +0 -24
  81. package/dist/types/components/geovaljaren/logic/adapter.utils.d.ts +0 -7
  82. package/dist/types/components/geovaljaren/logic/data.utils.d.ts +0 -7
  83. package/dist/types/components/geovaljaren/logic/history-service.d.ts +0 -6
  84. package/dist/types/components/geovaljaren/logic/search.engine.d.ts +0 -7
  85. package/dist/types/components/job-selector-demo/job-selector-demo.d.ts +0 -65
  86. package/dist/types/components/neobrutal-search/neobrutal-search.d.ts +0 -18
  87. package/dist/types/verkstad/verkstad.d.ts +0 -1
  88. package/dist/types/vitest-globals.d.ts +0 -1
  89. package/dist/yrkesvaljaren/p-5c3a5308.entry.js +0 -1
  90. package/dist/yrkesvaljaren/p-9ecd5177.entry.js +0 -1
  91. package/dist/yrkesvaljaren/p-BPnhMTul.js +0 -1
  92. package/dist/yrkesvaljaren/p-C-pSh51L.js +0 -1
  93. package/dist/yrkesvaljaren/p-CjMoDiZD.js +0 -1
  94. package/dist/yrkesvaljaren/p-DHUftoZJ.js +0 -1
  95. package/dist/yrkesvaljaren/p-HNd02eQb.js +0 -3
  96. package/dist/yrkesvaljaren/p-b6130085.entry.js +0 -1
  97. package/dist/yrkesvaljaren/p-dbbea724.entry.js +0 -1
  98. package/dist/yrkesvaljaren/p-df3fa43b.entry.js +0 -1
@@ -0,0 +1,3 @@
1
+ const t=()=>{},e="body.modal-open{overflow:hidden}";function n(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var o,l=(t,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=t[o],i=n(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);i&&Object.defineProperty(t,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),e.l.has(o)?t[o]=e.l.get(o):void 0!==l&&(t[o]=l)}}))},i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},s=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&l(t,e))},r=(t,e)=>e in t,c=(t,e)=>(0,console.error)(t,e),u=new Map,a=new Map,f=new Map,d=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],p="undefined"!=typeof window?window:{},h={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},v=t=>Promise.resolve(t),m=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),y=!!m&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),b=!1,$=[],w=[],g=()=>{var t;return(null==(t=p.document)?void 0:t.hidden)?k(O):h.raf(O)},j=(t,e)=>n=>{t.push(n),b||(b=!0,e&&4&h.u?k(O):g())},S=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){c(t)}t.length=0},O=()=>{S($),S(w),(b=$.length>0)&&g()},k=t=>v().then(t),C=j(w,!0);function E(t){var n;const l={mode:"open"};l.delegatesFocus=!!(16&t.u);const i=this.attachShadow(l);if(void 0===o&&(o=null!=(n=function(t){if(!m)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(e))?n:null),o)y?i.adoptedStyleSheets.push(o):i.adoptedStyleSheets=[...i.adoptedStyleSheets,o];else if(!m){const t=document.createElement("style");t.innerHTML=e,i.prepend(t)}}function M(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var R,x=new WeakMap,A=t=>"sc-"+t.h,D=t=>"object"==(t=typeof t)||"function"===t,L=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],u=e=>{for(let n=0;n<e.length;n++)if(o=e[n],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(i="function"!=typeof t&&!D(o))o+="";else if("function"!=typeof t&&void 0===o.u){c("Invalid vNode child");continue}i&&s?r[r.length-1].v+=o:r.push(i?P(null,o):o),s=i}};if(u(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,N);const a=P(t,null);return a.m=e,r.length>0&&(a.$=r),a.j=l,a},P=(t,e)=>({u:0,S:t,v:null!=e?e:null,O:null,$:null,m:null,j:null}),T={},N={forEach:(t,e)=>t.map(H).forEach(e),map:(t,e)=>t.map(H).map(e).map(U)},H=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.k,vtag:t.S,vtext:t.v}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),L(t.vtag,e,...t.vchildren||[])}const e=P(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.k=t.vname,e},W=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},z=(t,e,n)=>null==t||D(t)?t:4&e?(n&&"string"==typeof t||"false"!==t)&&(""===t||!!t):1&e?t+"":t,F=t=>{var e;return null==(e=i(t))?void 0:e.$hostElement$},V=(t,e)=>{const n=F(t);return{emit:t=>q(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},q=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},B=(t,e,n,o,l,s)=>{if(n===o)return;let c=r(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,l=Z(n);let i=Z(o);e.remove(...l.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if("ref"===e)o&&ut(o,t);else if(c||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let l;{const e=i(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(l=t[1])}}return l||(l=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const i=D(o);if((c||i&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?c=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?(!1!==o||""===t.getAttribute(e)||4&s&&!I(e))&&t.removeAttribute(e):(!c||4&s||l)&&!i&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}else if(e="-"===e[2]?e.slice(3):r(p,u)?u.slice(2):u[2]+e.slice(3),n||o){const l=e.endsWith(_);e=e.replace(J,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}},G=new Set(["draggable","contenteditable","spellcheck"]),I=t=>G.has(t)||t.startsWith("aria-"),Y=/\s/,Z=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Y):[]),_="Capture",J=RegExp(_+"$"),K=(t,e,n)=>{const o=11===e.O.nodeType&&e.O.host?e.O.host:e.O,l=t&&t.m||{},i=e.m||{};for(const t of Q(Object.keys(l)))t in i||B(o,t,l[t],void 0,n,e.u);for(const t of Q(Object.keys(i)))B(o,t,l[t],i[t],n,e.u)};function Q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var X=!1,tt=!1,et=[],nt=[],ot=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.v)l=o.O=p.document.createTextNode(o.v);else{if(!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.O=p.document.createElement(o.S),K(null,o,tt),o.$){const e="template"===o.S?l.content:l;for(s=0;s<o.$.length;++s)i=ot(t,o,s),i&&e.appendChild(i)}}return l["s-hn"]=R,l},lt=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===R&&(r=r.shadowRoot),"template"===n.S&&(r=r.content);l<=i;++l)o[l]&&(s=ot(null,n,l),s&&(o[l].O=s,at(r,s,e)))},it=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.O;ct(e),t&&t.remove()}}},st=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),rt=(t,e,n=!1)=>{const o=e.O=t.O,l=t.$,i=e.$,s=e.v;null==s?("slot"!==e.S||X||t.k!==e.k&&(e.O["s-sn"]=e.k||"",(t=>{h.u|=1;const e=t.closest(R.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(at(e,t,null!=n?n:null),t["s-sh"]=void 0)}h.u&=-2})(e.O.parentElement)),K(t,e,tt),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],p=e[f],h=o.length-1,v=o[0],m=o[h];const y="template"===n.S?t.content:t;for(;r<=f&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--f];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(st(d,v,l))rt(d,v,l),d=e[++r],v=o[++c];else if(st(p,m,l))rt(p,m,l),p=e[--f],m=o[--h];else if(st(d,m,l))rt(d,m,l),at(y,d.O,p.O.nextSibling),d=e[++r],m=o[--h];else if(st(p,v,l))rt(p,v,l),at(y,p.O,d.O),p=e[--f],v=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].j&&e[a].j===v.j){u=a;break}u>=0?(s=e[u],s.S!==v.S?i=ot(e&&e[c],n,u):(rt(s,v,l),e[u]=void 0,i=s.O),v=o[++c]):(i=ot(e&&e[c],n,c),v=o[++c]),i&&at(d.O.parentNode,i,d.O)}r>f?lt(t,null==o[h+1]?null:o[h+1].O,n,o,c,h):c>h&&it(e,r,f)})(o,l,e,i,n):null!==i?(null!==t.v&&(o.textContent=""),lt(o,null,e,i,0,i.length-1)):!n&&null!==l&&it(l,0,l.length-1)):t.v!==s&&(o.data=s)},ct=t=>{t.m&&t.m.ref&&et.push((()=>t.m.ref(null))),t.$&&t.$.map(ct)},ut=(t,e)=>{nt.push((()=>t(e)))},at=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),ft=(t,e)=>{if(e&&!t.C&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.C=()=>{e["s-p"].splice(n-1,1),o()})))}},dt=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);ft(t,t.M);const n=()=>pt(t,e);if(!e)return C(n);queueMicrotask((()=>{n()}))},pt=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.u|=256,t.R&&(t.R.map((([t,e])=>wt(o,t,e,n))),t.R=void 0),t.A.length&&t.A.forEach((t=>t(n))),l=wt(o,"componentWillLoad",void 0,n)):l=wt(o,"componentWillUpdate",void 0,n),l=ht(l,(()=>wt(o,"componentWillRender",void 0,n))),ht(l,(()=>mt(t,o,e)))},ht=(t,e)=>vt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),vt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,mt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=A(e),s=f.get(i);if(!p.document)return i;if(t=11===t.nodeType?t:p.document,s)if("string"==typeof s){let l,r=x.get(t=t.head||t);if(r||x.set(t,r=new Set),!r.has(i)){l=p.document.createElement("style"),l.textContent=s;const c=null!=(n=h.D)?n:M(p.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(m){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),y?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=x.get(t);if(e||x.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}y?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);yt(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>bt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},yt=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.o,i=t.L||P(null,null),s=(t=>t&&t.S===T)(e)?e:L(null,null,e);if(R=o.tagName,l.P&&(s.m=s.m||{},l.P.forEach((([t,e])=>{s.m[e]=o[t]}))),n&&s.m)for(const t of Object.keys(s.m))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.m[t]=o[t]);s.S=null,s.u|=4,t.L=s,s.O=i.O=o.shadowRoot||o,X=!(!(1&l.u)||128&l.u),rt(i,s,n),et.forEach((t=>t())),et.length=0,nt.forEach((t=>t())),nt.length=0})(t,e,o)}catch(e){c(e,t.$hostElement$)}return null},bt=t=>{const e=t.$hostElement$,n=t.i,o=t.M;wt(n,"componentDidRender",void 0,e),64&t.u?wt(n,"componentDidUpdate",void 0,e):(t.u|=64,gt(e),wt(n,"componentDidLoad",void 0,e),t.T(e),o||$t()),t.N(e),t.C&&(t.C(),t.C=void 0),512&t.u&&k((()=>dt(t,!1))),t.u&=-517},$t=()=>{k((()=>q(p,"appload",{detail:{namespace:"yrkesvaljaren"}})))},wt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){c(t,o)}},gt=t=>t.classList.add("hydrated"),jt=(t,e,n,o)=>{const l=i(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,r=l.l.get(e),u=l.u,a=l.i;if(n=z(n,o.t[e][0],!!(64&o.u)),!(8&u&&void 0!==r||n===r||Number.isNaN(r)&&Number.isNaN(n))){if(l.l.set(e,n),o.H){const t=o.H[e];t&&t.map((t=>{try{const[[o,i]]=Object.entries(t);(128&u||1&i)&&(a?a[o](n,r,e):l.A.push((()=>{l.i[o](n,r,e)})))}catch(t){c(t,s)}}))}if(2&u){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(n,r,e)&&!(16&u))return;16&u||dt(l,!1)}}},St=(t,e,o)=>{var l,s;const r=t.prototype;64&e.u&&1&o&&d.forEach((t=>{Object.defineProperty(r,t,{value(...e){var n;const o=i(this),l=null==o?void 0:o.i;if(l){const n=l[t];"function"==typeof n&&n.call(l,...e)}else null==(n=null==o?void 0:o.U)||n.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}})}));{t.watchers&&!e.H&&(e.H=W(t.watchers)),t.deserializers&&!e.W&&(e.W=t.deserializers),t.serializers&&!e.F&&(e.F=t.serializers);const c=Object.entries(null!=(l=e.t)?l:{});if(c.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:c}=n(r,t)||{};s&&(e.t[t][0]|=2048),c&&(e.t[t][0]|=4096),(1&o||!s)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>i(this).l.get(e))(0,t);const n=i(this),o=n?n.i:r;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(n){const s=i(this);if(s){if(c)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(n=s.l.get(t)),c.call(this,z(n,l,!!(64&e.u))),void jt(this,t,n=32&l?this[t]:s.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return jt(this,t,n,e),void(1&o&&!s.i&&s.A.push((()=>{4096&e.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=n)})));const i=()=>{const o=s.i[t];!s.l.get(t)&&o&&s.l.set(t,o),s.i[t]=z(n,l,!!(64&e.u)),jt(this,t,s.i[t],e)};s.i?i():s.A.push((()=>{i()}))}}}})}else 1&o&&64&l&&Object.defineProperty(r,t,{value(...e){var n;const o=i(this);return null==(n=null==o?void 0:o.V)?void 0:n.then((()=>{var n;return null==(n=o.i)?void 0:n[t](...e)}))}})})),1&o){const n=new Map;r.attributeChangedCallback=function(t,o,l){h.jmp((()=>{var s;const u=n.get(t),a=i(this);if(this.hasOwnProperty(u)&&(l=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==l)return;if(null==u){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&l!==o){const i=a.i,r=null==(s=e.H)?void 0:s[t];null==r||r.forEach((e=>{const[[s,r]]=Object.entries(e);null!=i[s]&&(128&n||1&r)&&i[s].call(i,l,o,t)}))}return}const f=c.find((([t])=>t===u)),d=f?f[1][0]:0,p=4&d;if(512&d&&8&d&&!D(this[u])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[u])===l)return;const h=p&&null===l&&void 0===this[u];p&&(l=null!==l&&"false"!==l);const v=Object.getOwnPropertyDescriptor(r,u);h||l==this[u]||v.get&&!v.set||(this[u]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([t,o])=>{var l;const i=o[1]||t;return n.set(i,t),512&o[0]&&(null==(l=e.P)||l.push([t,i])),i}))]))}}return t},Ot=async(t,e,n)=>{var o;let l;try{if(!(32&e.u)){if(e.u|=32,e.u&=-1025,n.q){const i=((t,e)=>{var n;const o=t.h.replace(/-/g,"_"),l=t.q;if(!l)return;const i=u.get(l);if(i)return i[o];const s=null!=(n=a.get(l))?n:0,r=[s>0?"s-retry="+s:"",""].filter(Boolean).join("&");
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
3
+ return import(`./${l}.entry.js${r?"?"+r:""}`).then((t=>(a.delete(l),u.set(l,t),t[o])),(t=>{a.set(l,s+1),c(t,e.$hostElement$)}))})(n,e);if(i&&"then"in i){const t=()=>{};l=await i,t()}else l=i;if(!l)throw e.u&=-33,e.B=(null!=(o=e.B)?o:0)+1,e.B<3&&(e.u|=1024),Error(`Constructor for "${n.h}#${e.G}" was not found`);l.isProxied||(n.H=W(l.watchers),n.F=l.serializers,n.W=l.deserializers,St(l,n,2),l.isProxied=!0);const s=()=>{};e.u|=8;try{new l(e)}catch(e){c(e,t)}e.u&=-9,e.u|=128,s(),kt(e.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=A(n);if(!f.has(e)){const o=()=>{};((t,e,n)=>{let o=f.get(t);m&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,f.set(t,o)})(e,t,!!(1&n.u)),o()}}}const i=e.M,s=()=>dt(e,!0);i&&i["s-rc"]?i["s-rc"].push(s):s()}catch(n){c(n,t),e.C&&(e.C(),e.C=void 0),!e.T||1024&e.u||e.T(t)}},kt=(t,e)=>{wt(t,"connectedCallback",void 0,e)},Ct=(t,e)=>{wt(t,"disconnectedCallback",void 0,e||t)},Et=(t,e={})=>{var n;if(!p.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=e.exclude||[],s=p.customElements,r=p.document.head,c=r.querySelector("meta[charset]"),u=p.document.createElement("style"),a=[];let f,d=!0;if(Object.assign(h,e),h.p=new URL(e.resourcesUrl||"./",p.document.baseURI).href,t.map((t=>{t[1].map((e=>{var n,r;const c={u:e[0],h:e[1],t:e[2],I:e[3]};c.t=e[2],c.I=e[3],c.P=[],c.H=W(e[4]),c.F=null!=(n=e[5])?n:{},c.W=null!=(r=e[6])?r:{};const u=c.h,p=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,Y:new Map};n.V=new Promise((t=>n.N=t)),n.U=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.A=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else E.call(t,c)}connectedCallback(){const t=i(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Rt(this,t,c.I)),f&&(clearTimeout(f),f=null),d?a.push(this):h.jmp((()=>(t=>{if(!(1&h.u)){const e=i(t);if(!e)return;const n=e.o,o=()=>{};if(1&e.u)Rt(t,e,n.I),(null==e?void 0:e.i)?kt(e.i,t):1024&e.u?setTimeout((()=>Ot(t,e,n)),1e3):(null==e?void 0:e.U)&&e.U.then((()=>kt(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){ft(e,e.M=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),Ot(t,e,n)}o()}})(this))))}disconnectedCallback(){h.jmp((()=>(async t=>{if(!(1&h.u)){const e=i(t);(null==e?void 0:e.Z)&&(e.Z.map((t=>t())),e.Z=void 0),(null==e?void 0:e.i)?Ct(e.i,t):(null==e?void 0:e.U)&&e.U.then((()=>Ct(e.i,t)))}x.has(t)&&x.delete(t),t.shadowRoot&&x.has(t.shadowRoot)&&x.delete(t.shadowRoot)})(this))),k((()=>{var t;const e=i(this);if(!e)return;const n=a.findIndex((t=>t===this));n>-1&&a.splice(n,1),(null==(t=null==e?void 0:e.L)?void 0:t.O)instanceof Node&&!e.L.O.isConnected&&delete e.L.O}))}componentOnReady(){var t;return null==(t=i(this))?void 0:t.U}};64&c.u&&(p.formAssociated=!0),c.q=t[0],l.includes(u)||s.get(u)||(o.push(u),s.define(u,St(p,c,1)))}))})),o.length>0&&(u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=h.D)?n:M(p.document);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,c?c.nextSibling:r.firstChild)}d=!1,a.length?a.map((t=>t.connectedCallback())):h.jmp((()=>f=setTimeout($t,30)))},Mt=(t,e)=>e,Rt=(t,e,n)=>{n&&p.document&&n.map((([n,o,l])=>{const i=At(p.document,t,n),s=xt(e,l),r=Dt(n);h.ael(i,o,s,r),(e.Z=e.Z||[]).push((()=>h.rel(i,o,s,r)))}))},xt=(t,e)=>n=>{var o;try{256&t.u?null==(o=t.i)||o[e](n):(t.R=t.R||[]).push([e,n])}catch(e){c(e,t.$hostElement$)}},At=(t,e,n)=>8&n?p:e,Dt=t=>({passive:!!(1&t),capture:!!(2&t)}),Lt=t=>h.D=t;export{Mt as F,F as a,Et as b,V as c,t as g,L as h,v as p,s as r,Lt as s}
@@ -1 +1 @@
1
- import{p as e,g as a,b as t}from"./p-HNd02eQb.js";export{s as setNonce}from"./p-HNd02eQb.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t([["p-9ecd5177",[[512,"job-selector-demo",{afHideHeader:[4,"af-hide-header"],afHidePreamble:[4,"af-hide-preamble"],variant:[32],version:[32],required:[32],allowFreeText:[32],history:[32],size:[32],framework:[32],codeInstallationMode:[32],lastSingleSelection:[32],lastMultiSelection:[32],implementationCode:[32],readmeMainContent:[32],readmeCodeContent:[32],availableYvVersions:[32],latestYvDataVersion:[32],latestVersion:[32],latestDate:[32],latestType:[32],latestChanges:[32],isTaxonomyLoading:[32]},[[0,"afJobSelected","handleSelection"]]]]],["p-dbbea724",[[513,"geo-valjaren",{label:[513,"af-label"],placeholder:[513,"af-placeholder"],selectorState:[32]},[[0,"csInput","handleInput"],[0,"csFocus","handleFocus"],[0,"csRequestHistory","handleRequestHistory"],[0,"csSelect","handleSelect"],[0,"csBlur","handleBlur"],[0,"csClear","handleClear"],[0,"csClearHistory","handleCsClearHistory"],[0,"csEditSelection","handleEdit"]]]]],["p-b6130085",[[513,"neobrutal-search",{engine:[32],results:[32],inputValue:[32],isLoading:[32],error:[32],selectedItem:[32],isFlipped:[32]}]]],["p-5c3a5308",[[785,"core-selector",{state:[16],config:[16],label:[1],labelDescription:[1,"label-description"],componentId:[1,"component-id"],size:[513,"cs-size"],afFocused:[4,"af-focused"],activeIndex:[32],isFocusedInternal:[32],isNavigatingWithKeyboard:[32],setFocus:[64]},null,{afFocused:[{handleAfFocusedChange:0}],config:[{handleConfigChange:0}],state:[{handleStateChange:0}]}]]],["p-df3fa43b",[[593,"digi-service-job-selector",{name:[513],taxonomyUrl:[513,"af-taxonomy-url"],placeholder:[513,"af-placeholder"],label:[513,"af-label"],disabled:[516],enableMultiple:[516,"af-enable-multiple"],showSearchIcon:[516,"af-show-search-icon"],errorMessage:[513,"af-error-message"],labelDescription:[513,"af-label-description"],required:[516,"af-required"],manualInput:[516,"af-manual-input"],history:[516,"af-history"],popular:[516,"af-popular"],size:[513,"af-size"],taxonomyData:[1040],afFocused:[32],state:[32],activeErrorType:[32],animatingItemId:[32],updateData:[64],setSelection:[64],setFocus:[64],validate:[64],checkValidity:[64],reportValidity:[64],getValidity:[64],getValidationMessage:[64]},[[0,"afJobValidationChange","handleFormValidationSync"],[8,"hashchange","handleHashFocus"],[0,"csInput","handleInput"],[0,"csSelect","handleCsSelect"],[0,"csClear","handleCsClear"],[0,"csClearHistory","handleCsClearHistory"],[0,"csRequestHistory","handleCsRequestHistory"],[0,"csLoadMore","handleCsLoadMore"],[0,"csRemoveItem","handleCsRemoveItem"],[0,"csFocus","handleCsFocus"],[0,"csBlur","handleCsBlur"],[0,"csEditSelection","handleCsEditSelection"]],{required:[{watchRequired:0}],manualInput:[{watchManualInput:0}],history:[{watchHistory:0}],popular:[{watchPopular:0}],enableMultiple:[{watchEnableMultiple:0}],disabled:[{watchDisabled:0}],taxonomyData:[{watchTaxonomyData:0}]}]]]],e))));
1
+ import{p as e,g as a,b as t}from"./p-vJ-tamti.js";export{s as setNonce}from"./p-vJ-tamti.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t([["p-b81496c8",[[785,"core-selector",{state:[16],config:[16],label:[1],labelDescription:[1,"label-description"],componentId:[1,"component-id"],size:[513,"cs-size"],afFocused:[4,"af-focused"],activeIndex:[32],isFocusedInternal:[32],isNavigatingWithKeyboard:[32],resultAnnouncement:[32],isValidationMessageHidden:[32],isActiveDescendantDeferred:[32],hasTypedSinceFocus:[32],setFocus:[64]},null,{afFocused:[{handleAfFocusedChange:0}],config:[{handleConfigChange:0}],state:[{handleStateChange:0}]}]]],["p-0f19a308",[[593,"digi-service-job-selector",{name:[513],taxonomyUrl:[513,"af-taxonomy-url"],placeholder:[513,"af-placeholder"],label:[513,"af-label"],disabled:[516],enableMultiple:[516,"af-enable-multiple"],showSearchIcon:[516,"af-show-search-icon"],errorMessage:[513,"af-error-message"],labelDescription:[513,"af-label-description"],required:[516,"af-required"],manualInput:[516,"af-manual-input"],feedback:[516,"af-feedback"],history:[516,"af-history"],popular:[516,"af-popular"],size:[513,"af-size"],taxonomyData:[1040],suggestionState:[32],afFocused:[32],state:[32],activeErrorType:[32],animatingItemId:[32],updateData:[64],setSelection:[64],setFocus:[64],validate:[64],checkValidity:[64],reportValidity:[64],getValidity:[64],getValidationMessage:[64]},[[0,"afJobValidationChange","handleFormValidationSync"],[8,"hashchange","handleHashFocus"],[0,"csInput","handleInput"],[0,"csSelect","handleCsSelect"],[0,"csClear","handleCsClear"],[0,"csClearHistory","handleCsClearHistory"],[0,"csRequestHistory","handleCsRequestHistory"],[0,"csLoadMore","handleCsLoadMore"],[0,"csRemoveItem","handleCsRemoveItem"],[0,"csFocus","handleCsFocus"],[0,"csBlur","handleCsBlur"],[0,"csEditSelection","handleCsEditSelection"]],{required:[{watchRequired:0}],manualInput:[{watchManualInputOrFeedback:0}],feedback:[{watchManualInputOrFeedback:0}],history:[{watchHistory:0}],popular:[{watchPopular:0}],enableMultiple:[{watchEnableMultiple:0}],disabled:[{watchDisabled:0}],taxonomyData:[{watchTaxonomyData:0}]}]]]],e))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbetsformedlingen/yrkesvaljaren",
3
- "version": "2.0.12",
3
+ "version": "2.2.0",
4
4
  "workspaces": [
5
5
  "packages/*"
6
6
  ],
@@ -35,10 +35,11 @@
35
35
  "loader/"
36
36
  ],
37
37
  "scripts": {
38
- "build": "npm run build -w @taxonomy/kompetensvaljaren && stencil build",
39
- "postbuild": "node scripts/prune-stencil-collection.mjs dist job-selector-demo geo-valjaren neobrutal-search && node scripts/vendor-taxonomy-core.mjs dist loader",
38
+ "build": "npm run build -w @taxonomy/kompetensvaljaren && stencil build --config stencil.package.config.ts && stencil build",
39
+ "postbuild": "node scripts/prune-stencil-collection.mjs dist job-selector-demo geovaljaren neobrutal-search --paths collection/verkstad types/verkstad types/vitest-globals.d.ts && node scripts/vendor-taxonomy-core.mjs dist loader",
40
40
  "build:pages": "npm run sync:doc-data-packages && npm run build",
41
41
  "build:kv": "npm run build -w @taxonomy/kompetensvaljaren",
42
+ "build:verkstad-prototyp": "vite build --config examples/platsbanken-prototyp/vite.config.js",
42
43
  "sync:doc-data-packages": "node scripts/sync-doc-data-packages.mjs",
43
44
  "check:doc-data-packages": "node scripts/sync-doc-data-packages.mjs --check",
44
45
  "sync:kv-demo-data": "node scripts/sync-kv-demo-data.mjs",
@@ -98,14 +99,14 @@
98
99
  "mkdirp": "^3.0.1"
99
100
  },
100
101
  "devDependencies": {
101
- "@designsystem-se/af": "37.0.2",
102
+ "@designsystem-se/af": "40.0.0",
102
103
  "@eslint/js": "^10.0.1",
103
- "@playwright/test": "1.62.1",
104
+ "@playwright/test": "1.65.0",
104
105
  "@stencil/vitest": "^1.14.0",
105
106
  "@taxonomy/core": "0.1.0-beta.1",
106
107
  "@taxonomy/kompetensvaljaren-data-v31": "1.0.0",
107
- "@taxonomy/yrkesvaljaren-data-v31": "1.0.0",
108
- "@types/jest": "^29.5.14",
108
+ "@taxonomy/yrkesvaljaren-data-v31": "1.1.0",
109
+ "@types/jest": "^30.0.0",
109
110
  "@types/lodash": "^4.17.7",
110
111
  "@types/marked": "^6.0.0",
111
112
  "@types/node": "^25.5.0",
@@ -117,13 +118,14 @@
117
118
  "eslint": "^10.0.0",
118
119
  "fast-check": "^4.5.3",
119
120
  "globals": "^17.0.0",
120
- "jest": "^29.7.0",
121
- "pixelmatch": "^7.1.0",
121
+ "jest": "^30.0.0",
122
+ "pixelmatch": "^8.0.0",
122
123
  "pngjs": "^7.0.0",
123
- "jest-cli": "^29.7.0",
124
+ "jest-cli": "^30.0.0",
124
125
  "jest-junit": "^17.0.0",
125
126
  "ts-jest": "^29.4.1",
126
127
  "typescript": "6.0.3",
128
+ "vite": "^8.3.6",
127
129
  "vitest": "^4.1.11"
128
130
  },
129
131
  "overrides": {