@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
@@ -1,9 +1,144 @@
1
- import { a as getElement, r as registerInstance, c as createEvent, h, F as Fragment } from './index-HNd02eQb.js';
2
- import { T as TaxonomySearchEngine, D as DEBOUNCE_TIME, L as LabelFormatter, s as segmentsToHtml, i as isSameSearchResult, M as MAX_RESULTS, a as TaxonomyAdapter, P as PLACEHOLDER_TEXT, b as MIN_INPUT_LENGTH, c as styleParentheticalText } from './search.engine-BaWUTc3r.js';
3
- import { l as log, g as getRegisteredTaxonomy, i as isTaxonomyRegistration, r as registerTaxonomy } from './taxonomy-registry-C-pSh51L.js';
4
- import { I as InvalidSelectionError } from './types-DHUftoZJ.js';
5
- import { A as AfValidationMessage } from './af-validation-message-BgoGzzBf.js';
6
- import './fuse-BPnhMTul.js';
1
+ import { a as getElement, r as registerInstance, c as createEvent, h, F as Fragment } from './index-vJ-tamti.js';
2
+ import { l as log, g as getRegisteredTaxonomy, T as TaxonomySearchEngine, D as DEBOUNCE_TIME, L as LabelFormatter, s as segmentsToHtml, i as isSameSearchResult, M as MAX_RESULTS, a as TaxonomyAdapter, b as isTaxonomyRegistration, P as PLACEHOLDER_TEXT, c as MIN_INPUT_LENGTH, I as InvalidSelectionError, r as registerTaxonomy, d as styleParentheticalText } from './types-DVos4HHS.js';
3
+ import { A as AfValidationMessage } from './af-validation-message-DMoOu-0k.js';
4
+
5
+ /**
6
+ * PII-sanitering för fritext och användarförslag.
7
+ *
8
+ * Tvättar bort personnummer, e-post, webbadresser, telefonnummer, kontonummer,
9
+ * gatu- och postadresser och personnamnsfraser från förslagstermer och motiveringar innan de
10
+ * emitteras till värdappen. Mönstertvätt minskar risk men garanterar inte anonymitet.
11
+ */
12
+ const MAX_TERM_LENGTH = 120;
13
+ const MAX_MOTIVATION_LENGTH = 160;
14
+ /** Maskar svenska personnummer och samordningsnummer, även med fel kontrollsiffra. */
15
+ function sanitizePersonalIdentityNumbers(text) {
16
+ return text.replace(/\b(?:(?:19|20)\d{2}|\d{2})(?:0[1-9]|1[0-2])(?:0[1-9]|[1-2][0-9]|3[0-1]|6[1-9]|[7-8][0-9]|9[0-1]) ?[-+]? ?\d{4}\b/g, '[personnummer]');
17
+ }
18
+ /**
19
+ * Sanerar e-postadresser, även med svenska tecken.
20
+ */
21
+ function sanitizeEmails(text) {
22
+ return text.replace(/(?<![\p{L}\p{N}._%+-])[\p{L}\p{N}._%+-]+@(?:[\p{L}\p{N}-]+\.)+\p{L}{2,}(?![\p{L}\p{N}])/gu, '[e-post]');
23
+ }
24
+ /**
25
+ * Sanerar webbadresser och profiler (t.ex. LinkedIn, Facebook).
26
+ */
27
+ function sanitizeUrls(text) {
28
+ return text
29
+ .replace(/\b(?:https?:\/\/|www\.)\S+/gi, '[url]')
30
+ // Utan i-flagga, så att t.ex. "ASP.NET/Core" inte tolkas som domänen asp.net.
31
+ .replace(/\b[a-z0-9-]+(?:\.[a-z0-9-]+)*\.(?:se|com|nu|org|net|io|eu|info)\/\S*/g, '[url]');
32
+ }
33
+ /**
34
+ * Sanerar svenska telefonnummer (mobil, fasta nät, internationellt format).
35
+ */
36
+ function sanitizePhoneNumbers(text) {
37
+ // Hantera internationellt riktnummer och valfri svensk nolla först.
38
+ const international = /(?:\+46|\b0046|\b46)[ .-]*(?:\(0\)[ .-]*)?[1-9](?:[ ./-]*\d){6,9}\b/g;
39
+ let result = text.replace(international, '[telefonnummer]');
40
+ // Riktnummer inom parentes, t.ex. (08) 123 456 78.
41
+ const parenthesized = /\(0\d{1,3}\)[ .-]*\d(?:[ ./-]*\d){4,7}\b/g;
42
+ result = result.replace(parenthesized, '[telefonnummer]');
43
+ // Ett svenskt nummer börjar med 0 och innehåller 8–11 siffror totalt.
44
+ // Datumformen dd.mm.åååå och dd/mm/åå ska inte tolkas som telefonnummer.
45
+ const domestic = /\b(?!\d{1,2}[./]\d{1,2}[./]\d{2,4}\b)0[1-9](?:[ ./-]*\d){6,9}\b/g;
46
+ result = result.replace(domestic, '[telefonnummer]');
47
+ return result;
48
+ }
49
+ /** Sanerar svenska IBAN-nummer, med eller utan mellanslag. */
50
+ function sanitizeIban(text) {
51
+ return text.replace(/\bSE ?\d{2}(?: ?\d{4}){5}\b/gi, '[kontonummer]');
52
+ }
53
+ /**
54
+ * Sanerar kontonummer och andra långa nummerserier (8 siffror eller fler).
55
+ * Årtal, ISO-standarder och yrkeskoder har färre siffror och berörs inte.
56
+ */
57
+ function sanitizeLongNumbers(text) {
58
+ return text
59
+ // Inget komma som avgränsare ("ISO 9001,14001"), och datumformerna ÅÅÅÅ-MM-DD och dd.mm.åååå undantas.
60
+ .replace(/(?<![\p{L}\p{N}])(?!\d{4}-\d{2}-\d{2}(?!\p{N})|\d{1,2}[./]\d{1,2}[./]\d{2,4}(?!\p{N}))\d(?:[ .-]?\d){7,}(?![\p{N}])/gu, '[nummer]');
61
+ }
62
+ /**
63
+ * Sanerar gatuadresser (t.ex. Storgatan 12, Sveavägen 44 B, Södra vägen 5) och postadresser (111 22 Stockholm).
64
+ * Ord som "plan", "platsen" och "backen" ingår inte, eftersom de ger falska träffar som "Läroplan 2011".
65
+ */
66
+ function sanitizeAddresses(text) {
67
+ const suffixes = 'gatan|vägen|gränd|stigen|allén|torget|gata';
68
+ const streetPattern = new RegExp(`(?<![\\p{L}\\p{N}_])(?:\\p{L}+(?:${suffixes})|\\p{L}+\\s+(?:${suffixes}))\\s+\\d{1,4}(?:\\s?[A-Za-z])?(?![\\p{L}\\p{N}_])`, 'giu');
69
+ // Vanliga enheter efter ett femsiffrigt tal ("12000 Kronor") är inte postorter.
70
+ const postalPattern = /\b\d{3} ?\d{2}\s+(?!(?:[Kk]r|[Kk]ronor|SEK|[Ee]uro|[Tt]immar|[Ss]tycken|[Ss]t)(?![\p{L}]))[A-ZÅÄÖ]\p{Ll}+/gu;
71
+ return text.replace(streetPattern, '[adress]').replace(postalPattern, '[postadress]');
72
+ }
73
+ /**
74
+ * Maskerar personnamnsfraser (t.ex. "Jag heter Anna Karlsson", "Mitt namn är Anna-Karin Ek", "Mvh Anna").
75
+ * "Heter" ensamt och "Jag är" ingår inte: de träffar yrken, kurser och organisationer.
76
+ */
77
+ function sanitizeNamePhrases(text) {
78
+ const name = '[A-ZÅÄÖÉ]\\p{Ll}+(?:-[A-ZÅÄÖÉ]\\p{Ll}+)?';
79
+ const boundary = '(?<![\\p{L}\\p{N}_])';
80
+ const end = '(?![\\p{L}\\p{N}_])';
81
+ const introPattern = new RegExp(`${boundary}((?:[Jj]ag\\s+heter|[Mm]itt\\s+(?:för|efter)?namn\\s+(?:är|e)|[Mm]vh|[Hh]älsningar|[Vv]änliga\\s+hälsningar|[Mm]ed\\s+vänlig\\s+hälsning)[,:]?\\s+)${name}(?:\\s+${name})?${end}`, 'gu');
82
+ return text.replace(introPattern, (_match, prefix) => `${prefix}[namn]`);
83
+ }
84
+ function normalizeText(text) {
85
+ return text
86
+ .normalize('NFKC')
87
+ .replace(/[\u00AD\u200B-\u200D\u2060\uFEFF]/g, '')
88
+ .replace(/[\u2010-\u2015\u2212\uFE58\uFE63\uFF0D]/g, '-')
89
+ .replace(/\s+/g, ' ')
90
+ .trim();
91
+ }
92
+ /**
93
+ * Sant bara för uppgifter som alltid är personuppgifter: personnummer, e-post, telefonnummer och IBAN.
94
+ * Då ska texten stoppas. Osäkrare mönster (namnfraser, adresser, webbadresser, långa nummer)
95
+ * maskeras av sanitizePiiText i stället, så att användaren inte stoppas av falska träffar.
96
+ */
97
+ function containsPii(text) {
98
+ const normalized = normalizeText(text);
99
+ let masked = sanitizeEmails(normalized);
100
+ masked = sanitizeIban(masked);
101
+ masked = sanitizePersonalIdentityNumbers(masked);
102
+ masked = sanitizePhoneNumbers(masked);
103
+ return masked !== normalized;
104
+ }
105
+ /**
106
+ * Sanerar en enskild textsträng från PII (personnummer, e-post, telefon, adresser, namninledningar).
107
+ */
108
+ function sanitizePiiText(text, maxLength = MAX_MOTIVATION_LENGTH) {
109
+ if (!text || typeof text !== 'string')
110
+ return '';
111
+ let sanitized = normalizeText(text);
112
+ if (sanitized.length === 0)
113
+ return '';
114
+ sanitized = sanitizeUrls(sanitized);
115
+ sanitized = sanitizeEmails(sanitized);
116
+ sanitized = sanitizeIban(sanitized);
117
+ sanitized = sanitizePersonalIdentityNumbers(sanitized);
118
+ sanitized = sanitizePhoneNumbers(sanitized);
119
+ sanitized = sanitizeLongNumbers(sanitized);
120
+ sanitized = sanitizeAddresses(sanitized);
121
+ sanitized = sanitizeNamePhrases(sanitized);
122
+ // Normalisera multipla mellanslag
123
+ sanitized = sanitized.replace(/\s+/g, ' ').trim();
124
+ // Begränsa maxlängd
125
+ if (sanitized.length > maxLength) {
126
+ sanitized = sanitized.slice(0, maxLength).trim();
127
+ }
128
+ return sanitized;
129
+ }
130
+ /**
131
+ * Sanerar ett förslagsord/termer (max 120 tecken).
132
+ */
133
+ function sanitizeSuggestionTerm(term) {
134
+ return sanitizePiiText(term, MAX_TERM_LENGTH);
135
+ }
136
+ /**
137
+ * Sanerar en förslagsmotivering (max 160 tecken).
138
+ */
139
+ function sanitizeSuggestionMotivation(motivation) {
140
+ return sanitizePiiText(motivation, MAX_MOTIVATION_LENGTH);
141
+ }
7
142
 
8
143
  let memoryCache = null;
9
144
  const HistoryService = {
@@ -49,6 +184,8 @@ const HistoryService = {
49
184
  class JobSelectorController {
50
185
  callbacks;
51
186
  config;
187
+ /** Förslagen från den senaste sökningen som kortades av vid maxResults. */
188
+ cappedResults;
52
189
  state = { status: 'loading' };
53
190
  taxonomyData = [];
54
191
  popularItems = [];
@@ -226,8 +363,11 @@ class JobSelectorController {
226
363
  switch (this.state.status) {
227
364
  case 'searching':
228
365
  case 'multiSelect': {
229
- const genericResults = this.searchEngine.searchAsGeneric(value, this.config.maxResults);
230
- const results = genericResults.flatMap(g => g.metadata?.originalResult ? [g.metadata.originalResult] : []);
366
+ // En träff extra visar om det finns fler än som visas ("Minst N förslag").
367
+ const limit = this.config.maxResults;
368
+ const genericResults = this.searchEngine.searchAsGeneric(value, limit + 1);
369
+ const results = genericResults.slice(0, limit).flatMap(g => g.metadata?.originalResult ? [g.metadata.originalResult] : []);
370
+ this.cappedResults = genericResults.length > limit ? results : undefined;
231
371
  // Do not filter out selected items here - allow UI to handle grey-out
232
372
  this.updateState({ ...this.state, suggestions: results });
233
373
  break;
@@ -315,7 +455,8 @@ class JobSelectorController {
315
455
  const validatedHistory = displayItems.filter((item) => {
316
456
  // 1. Check if it's a ManualInput item
317
457
  if (item.type === 'ManualInput') {
318
- return !this.config.requireSelection;
458
+ // Fritext från historiken visas bara när integratören tillåter fritext.
459
+ return this.config.manualInput === true;
319
460
  }
320
461
  // 2. Check if it's a valid Taxonomy item (must exist in current data)
321
462
  // Note: We use this.taxonomyData which is already loaded
@@ -852,6 +993,10 @@ class JobSelectorController {
852
993
  this.selectItem(this.createManualInputItem(value));
853
994
  }
854
995
  }
996
+ /** Om sökningen bakom just dessa förslag hittade fler träffar än som visas. */
997
+ hasMoreResults(suggestions) {
998
+ return !!this.cappedResults && suggestions === this.cappedResults;
999
+ }
855
1000
  loadMore() {
856
1001
  // Increment maxResults or handle paging if supported by searchEngine
857
1002
  this.config.maxResults += 10;
@@ -894,7 +1039,7 @@ async function loadTaxonomy({ taxonomyUrl, fetcher = (url) => fetch(url), }) {
894
1039
  return data;
895
1040
  }
896
1041
 
897
- const jobSelectorCss = () => `:host{--digi--grayscale-0:#ffffff;--digi--grayscale-50:#fbfbfb;--digi--grayscale-100:#f4f4f4;--digi--grayscale-200:#ededed;--digi--grayscale-300:#e4e4e4;--digi--grayscale-400:#dddddd;--digi--grayscale-500:#cacaca;--digi--grayscale-600:#acacac;--digi--grayscale-700:#757575;--digi--grayscale-800:#5c5c5c;--digi--grayscale-900:#333333;--digi--grayscale-1000:#000000;--digi--global--color--cta--link--base:#1616b2;--digi--global--color--function--danger--base:#da0000;--digi--global--color--function--success--base:#008a20;--digi--global--color--function--success--lightest-3:#d4edda;--digi--global--color--function--warning--base:#ffe200;--digi--color--text--primary:var(--digi--grayscale-900);--digi--color--text--secondary:var(--digi--grayscale-700);--digi--color--text--link:var(--digi--global--color--cta--link--base);--digi--color--icons--success:var(--digi--global--color--function--success--base);--digi--color--icons--warning:#8a7a00;--digi--color--icons--danger:var(--digi--global--color--function--danger--base);--digi--global--typography--font-family--default:"Open Sans", Arial, sans-serif;--digi--global--typography--font-size--base:1rem;--digi--global--typography--font-size--small:0.875rem;--digi--global--typography--font-weight--regular:400;--digi--global--typography--font-weight--semibold:600;--digi--global--typography--font-weight--bold:700;--digi--global--typography--line-height--base:1.5;--digi--typography--label--font-size--desktop:1rem;--digi--typography--label--font-weight--desktop:600;--digi--typography--label--line-height--desktop:1.5;--digi--typography--label-description--font-size--desktop:1rem;--digi--typography--label-description--line-height--desktop:1.5;--digi--typography--tag--font-size--desktop:0.875rem;--digi--gutter--icon:0.625rem;--digi--gutter--smaller:0.75rem;--digi--gutter--small:0.875rem;--digi--gutter--medium:1rem;--digi--border-width--primary:1px;--digi--border-style--primary:solid;--digi--border-radius--primary:0;--digi--border-radius--secondary:6px;--af-tag-color:#091d54;--af-tag-hover-background:#ddf1fc}.af-form-label{color:var(--digi--color--text--primary);display:flex;flex-direction:column;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);margin-bottom:0.5rem}.af-form-label__label{cursor:pointer;display:block;font-weight:var(--digi--typography--label--font-weight--desktop);line-height:var(--digi--typography--label--line-height--desktop)}.af-form-label__description{display:block;font-size:var(--digi--typography--label-description--font-size--desktop);line-height:var(--digi--typography--label-description--line-height--desktop);max-width:35rem}.af-validation-message{align-items:center;display:flex;flex-wrap:wrap}.af-validation-message__icon{flex:0 0 auto;height:1.25em;margin-inline-end:var(--digi--gutter--icon);width:1.25em}.af-validation-message__icon--success,.af-validation-message__icon--error{background-color:var(--af-validation-icon-color, currentColor);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.af-validation-message__icon--success{--af-validation-icon-color:var(--digi--color--icons--success);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath d='M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath d='M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z'/%3E%3C/svg%3E")}.af-validation-message__icon--error{--af-validation-icon-color:var(--digi--color--icons--danger);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z'/%3E%3C/svg%3E")}.af-validation-message__icon--warning{background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='6.75' fill='%23333'/%3E%3Cpath d='m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z' fill='%23FFE200'/%3E%3C/svg%3E");position:relative;top:3px}.af-validation-message__text{color:var(--digi--color--text--primary);flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);transform:translateY(1px)}.af-tag{display:block;max-width:100%;min-width:0}.af-tag__button{align-items:center;background:var(--digi--grayscale-0);border:var(--digi--border-width--primary) var(--digi--border-style--primary) var(--af-tag-color);border-radius:var(--digi--border-radius--secondary);color:var(--af-tag-color);cursor:pointer;display:inline-flex;font-family:var(--digi--global--typography--font-family--default);font-size:0.875rem;font-weight:var(--digi--global--typography--font-weight--semibold);gap:10px;height:auto;max-width:100%;min-height:unset;min-width:0;padding:6px 8px;text-align:left;white-space:normal}.af-tag__button:hover{background:var(--af-tag-hover-background)}.af-tag__button:focus-visible{background:var(--af-tag-hover-background);border-color:var(--af-tag-color);outline:2px solid var(--digi--grayscale-1000);outline-offset:2px;box-shadow:0 0 0 5px var(--digi--grayscale-0)}.af-tag__button:active{background:var(--af-tag-hover-background)}.af-tag__text{display:inline-block;max-width:100%;min-width:0;white-space:normal}.af-tag__text--break{overflow-wrap:anywhere;word-break:break-word}.af-tag__remove-icon{flex:0 0 auto;height:1em;min-height:0 !important;width:1em}:host{--yrkesvaljaren-width:var(--af-width, 100%);--yrkesvaljaren-min-width:var(--af-min-width, 200px);--yrkesvaljaren-max-width:var(--af-max-width, none);--yrkesvaljaren-height:var(--af-height, auto);--yrkesvaljaren-min-height:var(--af-min-height, auto);--yrkesvaljaren-max-height:var(--af-max-height, none);--selector-width:var(--yrkesvaljaren-width);--selector-min-width:var(--yrkesvaljaren-min-width);--selector-max-width:var(--yrkesvaljaren-max-width);--selector-height:var(--yrkesvaljaren-height);--selector-min-height:var(--yrkesvaljaren-min-height);--selector-max-height:var(--yrkesvaljaren-max-height);--selector-font-family:var(--global-font-family, 'Open Sans', sans-serif);--selector-font-size:var(--sok-font-size, 1rem);--selector-text-color:var(--sok-text-color, #212529);--selector-placeholder-color:var(--sok-placeholder-color, #6c757d);--selector-border-color:var(--sok-border-color, #d1d5db);--selector-focus-border-color:var(--sok-focus-border-color, #86b7fe);--selector-focus-shadow:var(--sok-focus-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25));--selector-background-color:var(--sok-background-color, #fff);--selector-icon-color:var(--sok-icon-color, #6c757d);--selector-clear-button-color:var(--sok-clear-button-color, #6c757d);--selector-clear-button-hover-color:var(--sok-clear-button-hover-color, #212529);--selector-suggestion-background-color:var(--sok-suggestion-background-color, #fff);--selector-suggestion-border-color:var(--sok-suggestion-border-color, #ced4da);--selector-suggestion-hover-background:var(--sok-suggestion-hover-background, #e9ecef);--selector-suggestion-active-background:var(--sok-suggestion-active-background, #dde4eb);--selector-suggestion-text-color:var(--sok-suggestion-text-color, #212529);--selector-suggestion-highlight-weight:var(--sok-suggestion-highlight-weight, bold);--selector-error-color:var(--sok-error-color, #dc3545);--selector-loading-color:var(--sok-loading-color, #6c757d);display:flex;flex-direction:column;width:var(--yrkesvaljaren-width);min-width:var(--yrkesvaljaren-min-width);max-width:var(--yrkesvaljaren-max-width);height:var(--yrkesvaljaren-height);min-height:var(--yrkesvaljaren-min-height);max-height:var(--yrkesvaljaren-max-height);position:relative}:host([af-size="small"]){--cs-size:small;--selector-container-min-height:32px;--selector-padding-y:2px;--selector-icon-size:1em;--selector-gap:4px}:host([af-size="medium"]){--selector-container-min-height:40px;--selector-padding-y:6px}:host([af-size="large"]){--selector-container-min-height:48px;--selector-padding-y:10px;--selector-icon-size:1.25em;--selector-gap:8px}*{box-sizing:border-box}.yrkesvaljaren-wrapper{display:flex;flex-direction:column;flex:1;min-height:inherit}core-selector{margin-top:0.5rem}.status-message{margin-top:0.5rem;font-size:0.9em;font-style:italic;color:var(--sok-loading-color, #6c757d)}.history-header{font-size:0.875rem;color:var(--digi--grayscale-700, #757575);border-bottom:1px solid var(--selector-suggestion-border-color, #ced4da);margin-bottom:0px}.history-header a{color:inherit;text-decoration:underline}.history-header a:hover{color:var(--digi--global--color--cta--link--base, #1616B2)}`;
1042
+ const jobSelectorCss = () => `:host{--digi--grayscale-0:#ffffff;--digi--grayscale-50:#fbfbfb;--digi--grayscale-100:#f4f4f4;--digi--grayscale-200:#ededed;--digi--grayscale-300:#e4e4e4;--digi--grayscale-400:#dddddd;--digi--grayscale-500:#cacaca;--digi--grayscale-600:#acacac;--digi--grayscale-700:#757575;--digi--grayscale-800:#5c5c5c;--digi--grayscale-900:#333333;--digi--grayscale-1000:#000000;--digi--global--color--cta--link--base:#1616b2;--digi--global--color--function--danger--base:#da0000;--digi--global--color--function--success--base:#008a20;--digi--global--color--function--success--lightest-3:#d4edda;--digi--global--color--function--warning--base:#ffe200;--af-text-color:var(--digi--color--text--primary, var(--digi--grayscale-900));--digi--global--typography--font-family--default:"Open Sans", Arial, sans-serif;--digi--global--typography--font-size--base:1rem;--digi--global--typography--font-size--small:0.875rem;--digi--global--typography--font-weight--regular:400;--digi--global--typography--font-weight--semibold:600;--digi--global--typography--font-weight--bold:700;--digi--global--typography--line-height--base:1.5;--digi--typography--label--font-size--desktop:1rem;--digi--typography--label--font-weight--desktop:600;--digi--typography--label--line-height--desktop:1.5;--digi--typography--label-description--font-size--desktop:1rem;--digi--typography--label-description--line-height--desktop:1.5;--digi--typography--tag--font-size--desktop:0.875rem;--digi--gutter--icon:0.625rem;--digi--gutter--smaller:0.75rem;--digi--gutter--small:0.875rem;--digi--gutter--medium:1rem;--digi--border-width--primary:1px;--digi--border-style--primary:solid;--digi--border-radius--primary:0;--digi--border-radius--secondary:6px;--af-tag-color:var(--digi--color--text--interactive--brand-primary, #091d54);--af-tag-background:var(--digi--color--background--interactive--default--secondary, var(--digi--grayscale-0));--af-tag-hover-background:var(--digi--color--background--interactive--hover--secondary, #ddf1fc)}.af-form-label{color:var(--af-text-color);display:flex;flex-direction:column;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);margin-bottom:0.5rem}.af-form-label__label{cursor:pointer;display:block;font-weight:var(--digi--typography--label--font-weight--desktop);line-height:var(--digi--typography--label--line-height--desktop)}.af-form-label__description{display:block;font-size:var(--digi--typography--label-description--font-size--desktop);line-height:var(--digi--typography--label-description--line-height--desktop);max-width:35rem}.af-validation-message{align-items:center;display:flex;flex-wrap:wrap}.af-validation-message__icon{flex:0 0 auto;height:1.25em;margin-inline-end:var(--digi--gutter--icon);width:1.25em}.af-validation-message__icon--success,.af-validation-message__icon--error{background-color:var(--af-validation-icon-color, currentColor);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.af-validation-message__icon--success{--af-validation-icon-color:var(--digi--color--icon--validation--success, var(--digi--global--color--function--success--base));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath d='M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath d='M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z'/%3E%3C/svg%3E")}.af-validation-message__icon--error{--af-validation-icon-color:var(--digi--color--icon--validation--error, var(--digi--global--color--function--danger--base));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z'/%3E%3C/svg%3E")}.af-validation-message__icon--warning{background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='6.75' fill='%23333'/%3E%3Cpath d='m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z' fill='%23FFE200'/%3E%3C/svg%3E");position:relative;top:3px}.af-validation-message__text{color:var(--af-text-color);flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);transform:translateY(1px)}.af-validation-message__placeholder{visibility:hidden}.af-tag{display:block;max-width:100%;min-width:0}.af-tag__button{align-items:center;background:var(--af-tag-background);border:var(--digi--border-width--primary) var(--digi--border-style--primary) var(--af-tag-color);border-radius:var(--digi--border-radius--secondary);color:var(--af-tag-color);cursor:pointer;display:inline-flex;font-family:var(--digi--global--typography--font-family--default);font-size:0.875rem;font-weight:var(--digi--global--typography--font-weight--semibold);gap:10px;height:auto;max-width:100%;min-height:unset;min-width:0;padding:6px 8px;text-align:left;white-space:normal}.af-tag__button:hover{background:var(--af-tag-hover-background)}.af-tag__button:focus-visible{background:var(--af-tag-hover-background);border-color:var(--af-tag-color);outline:2px solid var(--digi--color--text--primary, var(--digi--grayscale-1000));outline-offset:2px;box-shadow:0 0 0 5px var(--digi--color--background--primary, var(--digi--grayscale-0))}.af-tag__button:active{background:var(--af-tag-hover-background)}.af-tag__text{display:inline-block;max-width:100%;min-width:0;white-space:normal}.af-tag__text--break{overflow-wrap:anywhere;word-break:break-word}.af-icon{display:flex !important;min-height:1.4em !important;align-items:center !important}.af-icon--default-size{width:12px !important;height:12px !important}.af-tag__remove-icon{flex:0 0 auto;height:1em;width:1em}.af-icon.af-tag__remove-icon{min-height:0 !important}:host{--yrkesvaljaren-width:var(--af-width, 100%);--yrkesvaljaren-min-width:var(--af-min-width, 200px);--yrkesvaljaren-max-width:var(--af-max-width, none);--yrkesvaljaren-height:var(--af-height, auto);--yrkesvaljaren-min-height:var(--af-min-height, auto);--yrkesvaljaren-max-height:var(--af-max-height, none);--selector-width:var(--yrkesvaljaren-width);--selector-min-width:var(--yrkesvaljaren-min-width);--selector-max-width:var(--yrkesvaljaren-max-width);--selector-height:var(--yrkesvaljaren-height);--selector-min-height:var(--yrkesvaljaren-min-height);--selector-max-height:var(--yrkesvaljaren-max-height);--selector-font-family:var(--global-font-family, 'Open Sans', sans-serif);--selector-font-size:var(--sok-font-size, 1rem);--selector-text-color:var(--sok-text-color, var(--digi--color--text--primary, #212529));--selector-placeholder-color:var(--sok-placeholder-color, var(--digi--color--text--description, #6c757d));--selector-border-color:var(--sok-border-color, var(--digi--color--border--interactive--default--on-input, #d1d5db));--selector-focus-border-color:var(--sok-focus-border-color, #86b7fe);--selector-focus-shadow:var(--sok-focus-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25));--selector-background-color:var(--sok-background-color, var(--digi--color--background--interactive--default--input-elements, #fff));--selector-icon-color:var(--sok-icon-color, var(--digi--color--icon--primary, #6c757d));--selector-clear-button-color:var(--sok-clear-button-color, var(--digi--color--icon--primary, #6c757d));--selector-clear-button-hover-color:var(--sok-clear-button-hover-color, var(--digi--color--icon--primary, #212529));--selector-suggestion-background-color:var(--sok-suggestion-background-color, var(--digi--color--background--dropdown, #fff));--selector-suggestion-border-color:var(--sok-suggestion-border-color, var(--digi--color--divider--primary, #ced4da));--selector-suggestion-hover-background:var(--sok-suggestion-hover-background, var(--digi--color--background--interactive--hover--quarternary, #e9ecef));--selector-suggestion-active-background:var(--sok-suggestion-active-background, var(--digi--color--background--interactive--hover--quarternary, #dde4eb));--selector-suggestion-text-color:var(--sok-suggestion-text-color, var(--digi--color--text--primary, #212529));--selector-suggestion-highlight-weight:var(--sok-suggestion-highlight-weight, bold);--selector-error-color:var(--sok-error-color, var(--digi--color--border--interactive--validation--error, #dc3545));--selector-loading-color:var(--sok-loading-color, var(--digi--color--text--description, #6c757d));display:flex;flex-direction:column;width:var(--yrkesvaljaren-width);min-width:var(--yrkesvaljaren-min-width);max-width:var(--yrkesvaljaren-max-width);height:var(--yrkesvaljaren-height);min-height:var(--yrkesvaljaren-min-height);max-height:var(--yrkesvaljaren-max-height);position:relative}:host([af-size="small"]){--cs-size:small;--selector-container-min-height:32px;--selector-padding-y:2px;--selector-icon-size:1em;--selector-gap:4px}:host([af-size="medium"]){--selector-container-min-height:40px;--selector-padding-y:6px}:host([af-size="large"]){--selector-container-min-height:48px;--selector-padding-y:10px;--selector-icon-size:1.25em;--selector-gap:8px}*{box-sizing:border-box}.yrkesvaljaren-wrapper{display:flex;flex-direction:column;flex:1;min-height:inherit}core-selector{margin-top:0.5rem}.status-message{margin-top:0.5rem;font-size:0.9em;font-style:italic;color:var(--sok-loading-color, var(--digi--color--text--description, #6c757d))}.history-header{font-size:0.875rem;color:var(--digi--color--text--description, var(--digi--grayscale-700, #757575));border-bottom:1px solid var(--selector-suggestion-border-color, #ced4da);margin-bottom:0px}.history-header a{color:inherit;text-decoration:underline}.history-header a:hover{color:var(--digi--color--text--interactive--primary, var(--digi--global--color--cta--link--base, #1616B2))}.yv-suggestion-box{margin-top:16px;padding:16px 20px;background:var(--digi--color--background--pop-out, var(--digi--grayscale-50, #fbfbfb));border:1px solid var(--digi--color--divider--secondary, var(--digi--grayscale-300, #e4e4e4));border-radius:var(--digi--border-radius--secondary, 6px);font-family:var(--digi--global--typography--font-family--default, "Open Sans", Arial, sans-serif);font-size:0.9375rem;line-height:1.4;color:var(--digi--color--text--primary, #333333)}.yv-suggestion-title{font-weight:var(--digi--global--typography--font-weight--semibold, 600);margin-bottom:10px}.yv-motivation-container{display:flex;flex-direction:column;gap:8px}.yv-motivation-field-wrapper{display:flex;flex-direction:column;gap:4px}.yv-motivation-input{width:100%;box-sizing:border-box;min-height:44px;max-height:180px;padding:8px 12px;font:inherit;color:inherit;background:var(--digi--color--background--interactive--default--input-elements, var(--digi--grayscale-0, #ffffff));border:1px solid var(--digi--color--border--interactive--default--on-input, var(--digi--grayscale-400, #dddddd));border-radius:var(--digi--border-radius--secondary, 6px);resize:vertical}.yv-motivation-input:focus-visible{outline:2px solid var(--digi--color--text--primary, var(--digi--grayscale-1000, #000000));outline-offset:1px}.yv-motivation-counter{align-self:flex-end;font-size:0.75rem;color:var(--digi--color--text--description, var(--digi--grayscale-800, #5c5c5c))}.yv-suggestion-actions{display:flex;gap:12px;align-items:center}.yv-suggestion-submit-btn,.yv-suggestion-cancel-btn,.yv-suggestion-close-btn{min-height:38px;padding:8px 16px;font:inherit;font-size:0.875rem;font-weight:var(--digi--global--typography--font-weight--semibold, 600);border:1px solid transparent;border-radius:var(--digi--border-radius--secondary, 6px);cursor:pointer;white-space:nowrap}.yv-suggestion-submit-btn{background:var(--digi--color--background--interactive--default--primary, #000048);color:var(--digi--color--text--interactive--secondary, #ffffff)}.yv-suggestion-submit-btn:hover{background:var(--digi--color--background--interactive--hover--primary, #000028)}.yv-suggestion-cancel-btn{background:transparent;color:var(--digi--color--text--interactive--primary, #1616b2);text-decoration:underline}.yv-suggestion-close-btn{background:var(--digi--color--background--primary, var(--digi--grayscale-0, #ffffff));border-color:var(--digi--color--border--interactive--default--on-input, var(--digi--grayscale-600, #acacac));color:inherit}.yv-suggestion-submit-btn:focus-visible,.yv-suggestion-cancel-btn:focus-visible,.yv-suggestion-close-btn:focus-visible{outline:2px solid var(--digi--color--text--primary, var(--digi--grayscale-1000, #000000));outline-offset:2px}.yv-suggestion-pii-error{color:var(--cs-error-color, var(--digi--color--text--primary, #b10e1e))}.yv-suggestion-success{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--digi--color--text--primary, #007a1c);font-weight:var(--digi--global--typography--font-weight--semibold, 600)}.yv-sr-only{position:absolute;top:0;left:0;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap}`;
898
1043
 
899
1044
  {
900
1045
  log.setLevel(log.levels.SILENT);
@@ -923,8 +1068,15 @@ const JobSelector = class {
923
1068
  labelDescription;
924
1069
  /** Om satt till `true` måste fältet ha ett värde för att vara giltigt. */
925
1070
  required = false;
926
- /** Om satt till `true` tillåts fritext som inte finns i taxonomin. */
1071
+ /** Om satt till `true` kan användaren ange ett yrke som fritext när det inte finns i listan. */
927
1072
  manualInput = false;
1073
+ /** Om satt till `true` kan användaren föreslå ett saknat yrke med motivering. */
1074
+ feedback = false;
1075
+ /**
1076
+ * Emitteras när användaren skickar in ett förslag på saknat yrke via förslagsformuläret (`af-feedback`).
1077
+ */
1078
+ afOnSubmitJobSuggestion;
1079
+ suggestionState = null;
928
1080
  /**
929
1081
  * Aktiverar historiken.
930
1082
  * Använder Local Storage för att spara valda yrken i webbläsaren.
@@ -944,8 +1096,18 @@ const JobSelector = class {
944
1096
  maxVisibleRows;
945
1097
  minLength = MIN_INPUT_LENGTH;
946
1098
  maxResults = 20;
1099
+ shouldFocusSuggestionInput = false;
1100
+ shouldFocusConfirmation = false;
1101
+ timers = new Set();
1102
+ schedule(callback, delay) {
1103
+ const timer = setTimeout(() => {
1104
+ this.timers.delete(timer);
1105
+ callback();
1106
+ }, delay);
1107
+ this.timers.add(timer);
1108
+ }
947
1109
  get requireSelection() {
948
- return !this.manualInput;
1110
+ return !(this.manualInput || this.feedback);
949
1111
  }
950
1112
  /**
951
1113
  * Storleken på inputfältet.
@@ -954,6 +1116,7 @@ const JobSelector = class {
954
1116
  size = 'medium';
955
1117
  constructor(hostRef) {
956
1118
  registerInstance(this, hostRef);
1119
+ this.afOnSubmitJobSuggestion = createEvent(this, "afOnSubmitJobSuggestion");
957
1120
  this.afJobSelectedEmitter = createEvent(this, "afJobSelected");
958
1121
  this.dataLoadFailedEmitter = createEvent(this, "afJobDataLoadFailed");
959
1122
  this.validationChangeEmitter = createEvent(this, "afJobValidationChange");
@@ -1153,8 +1316,14 @@ const JobSelector = class {
1153
1316
  watchRequired(newValue) {
1154
1317
  this.controller.updateConfig({ required: newValue });
1155
1318
  }
1156
- watchManualInput(newValue) {
1157
- this.controller.updateConfig({ requireSelection: !newValue });
1319
+ watchManualInputOrFeedback() {
1320
+ if (!this.feedback) {
1321
+ this.suggestionState = null;
1322
+ }
1323
+ this.controller.updateConfig({
1324
+ requireSelection: this.requireSelection,
1325
+ manualInput: this.manualInput
1326
+ });
1158
1327
  }
1159
1328
  watchHistory(newValue) {
1160
1329
  this.controller.updateConfig({ history: newValue });
@@ -1272,6 +1441,7 @@ const JobSelector = class {
1272
1441
  enableMultiple: this.enableMultiple,
1273
1442
  required: this.required,
1274
1443
  requireSelection: this.requireSelection,
1444
+ manualInput: this.manualInput,
1275
1445
  history: this.history,
1276
1446
  popular: this.popular,
1277
1447
  maxHistoryItems: this.maxHistoryItems,
@@ -1296,6 +1466,19 @@ const JobSelector = class {
1296
1466
  componentDidLoad() {
1297
1467
  this.handleHashFocus();
1298
1468
  }
1469
+ componentDidRender() {
1470
+ if (this.shouldFocusSuggestionInput && this.suggestionState?.status === 'form') {
1471
+ this.shouldFocusSuggestionInput = false;
1472
+ const input = this.hostElement.shadowRoot?.querySelector(`#${this.componentId}-suggestion-motivation-input`);
1473
+ if (input) {
1474
+ this.schedule(() => input.focus(), 50);
1475
+ }
1476
+ }
1477
+ if (this.shouldFocusConfirmation && this.suggestionState?.status === 'submitted') {
1478
+ this.shouldFocusConfirmation = false;
1479
+ this.hostElement.shadowRoot?.querySelector('.yv-suggestion-close-btn')?.focus();
1480
+ }
1481
+ }
1299
1482
  disconnectedCallback() {
1300
1483
  if (this.observer) {
1301
1484
  this.observer.disconnect();
@@ -1305,6 +1488,8 @@ const JobSelector = class {
1305
1488
  }
1306
1489
  clearTimeout(this.animationTimer);
1307
1490
  this.animationTimer = undefined;
1491
+ this.timers.forEach(t => clearTimeout(t));
1492
+ this.timers.clear();
1308
1493
  }
1309
1494
  handleHashFocus() {
1310
1495
  const hash = window.location.hash;
@@ -1318,9 +1503,48 @@ const JobSelector = class {
1318
1503
  history.replaceState(null, '', window.location.pathname + window.location.search);
1319
1504
  }
1320
1505
  }
1506
+ /** Manuella val skickas tvättade, och inte alls om de innehåller personuppgifter. */
1507
+ trackedSelectedJobs() {
1508
+ return this.lastAcceptedSelection.flatMap((item) => {
1509
+ if (item.type !== 'manual-input')
1510
+ return [item];
1511
+ return containsPii(item.preferred_label) ? [] : [{ ...item, preferred_label: sanitizeSuggestionTerm(item.preferred_label) }];
1512
+ });
1513
+ }
1514
+ emitJobSuggestion(term, motivation) {
1515
+ const payload = {
1516
+ selectedJobs: this.trackedSelectedJobs(),
1517
+ suggestionJob: sanitizeSuggestionTerm(term),
1518
+ suggestionMotivation: sanitizeSuggestionMotivation(motivation),
1519
+ };
1520
+ this.afOnSubmitJobSuggestion.emit(payload);
1521
+ }
1522
+ /** Stänger förslagsrutan och lämnar tillbaka fokus till sökfältet. */
1523
+ closeSuggestion() {
1524
+ this.suggestionState = null;
1525
+ this.shouldFocusSuggestionInput = false;
1526
+ void this.setFocus();
1527
+ }
1528
+ submitSuggestion() {
1529
+ if (!this.suggestionState || !this.feedback)
1530
+ return;
1531
+ const { term, motivation } = this.suggestionState;
1532
+ if (containsPii(motivation || '')) {
1533
+ this.suggestionState = { ...this.suggestionState, piiError: true };
1534
+ this.shouldFocusSuggestionInput = true;
1535
+ return;
1536
+ }
1537
+ this.emitJobSuggestion(term, motivation);
1538
+ this.shouldFocusSuggestionInput = false;
1539
+ this.shouldFocusConfirmation = true;
1540
+ this.suggestionState = { status: 'submitted', term: (term || '').trim(), motivation: '' };
1541
+ }
1321
1542
  // --- ANVÄNDARINTERAKTIONER OCH LOGIK (Delegerat till Controller via CoreSelector events) ---
1322
1543
  handleInput(event) {
1323
1544
  this.afFocused = true;
1545
+ if (this.suggestionState?.status === 'pii-blocked') {
1546
+ this.suggestionState = null;
1547
+ }
1324
1548
  this.controller.handleInput(event.detail);
1325
1549
  }
1326
1550
  handleCsSelect(event) {
@@ -1337,12 +1561,37 @@ const JobSelector = class {
1337
1561
  // Hämta originalobjektet från metadata om det finns, annars bygg ett baserat på genericItem
1338
1562
  const originalItem = genericItem.metadata?.original;
1339
1563
  if (originalItem && 'displayLabel' in originalItem) {
1564
+ if (this.suggestionState?.status === 'pii-blocked') {
1565
+ this.suggestionState = null;
1566
+ }
1340
1567
  this.controller.selectItem(originalItem);
1341
1568
  }
1342
1569
  else {
1343
1570
  // Fallback för manuell inmatning eller om metadata saknas
1344
1571
  if (genericItem.metadata?.type === 'ManualInput') {
1345
- this.controller.handleFreeTextSelection(genericItem.label);
1572
+ const term = genericItem.label;
1573
+ if (this.feedback && containsPii(term)) {
1574
+ // Behåll texten i fältet så att användaren kan rätta den.
1575
+ this.suggestionState = { status: 'pii-blocked', term: '', motivation: '' };
1576
+ return;
1577
+ }
1578
+ if (this.manualInput) {
1579
+ this.controller.handleFreeTextSelection(term);
1580
+ }
1581
+ if (this.feedback) {
1582
+ this.afFocused = false;
1583
+ this.shouldFocusSuggestionInput = true;
1584
+ this.suggestionState = {
1585
+ status: 'form',
1586
+ term,
1587
+ motivation: '',
1588
+ };
1589
+ if (!this.manualInput) {
1590
+ this.controller.resetSearch();
1591
+ }
1592
+ return;
1593
+ }
1594
+ return;
1346
1595
  }
1347
1596
  else {
1348
1597
  // Detta borde inte hända med data från suggestions, men för säkerhets skull
@@ -1360,6 +1609,9 @@ const JobSelector = class {
1360
1609
  }
1361
1610
  }
1362
1611
  handleCsClear() {
1612
+ if (this.suggestionState?.status === 'pii-blocked') {
1613
+ this.suggestionState = null;
1614
+ }
1363
1615
  this.controller.resetSearch();
1364
1616
  }
1365
1617
  handleCsClearHistory() {
@@ -1469,6 +1721,7 @@ const JobSelector = class {
1469
1721
  let coreStatus = 'loading';
1470
1722
  let inputValue = '';
1471
1723
  let suggestions = [];
1724
+ let hasMoreResults;
1472
1725
  let selectedItem;
1473
1726
  let selectedItems = [];
1474
1727
  let validation = 'idle';
@@ -1512,6 +1765,7 @@ const JobSelector = class {
1512
1765
  coreStatus = 'searching';
1513
1766
  inputValue = componentState.inputValue;
1514
1767
  suggestions = componentState.suggestions.map(s => this._mapSearchResultToGenericItem(s));
1768
+ hasMoreResults = this.controller?.hasMoreResults(componentState.suggestions);
1515
1769
  break;
1516
1770
  case 'showingHistory':
1517
1771
  coreStatus = 'searching';
@@ -1529,6 +1783,7 @@ const JobSelector = class {
1529
1783
  inputValue = componentState.inputValue;
1530
1784
  suggestions = componentState.suggestions.map(s => this._mapSearchResultToGenericItem(s));
1531
1785
  selectedItems = componentState.selectedItems.map(s => this._mapSearchResultToGenericItem(s));
1786
+ hasMoreResults = this.controller?.hasMoreResults(componentState.suggestions);
1532
1787
  break;
1533
1788
  case 'multiSelectShowingHistory':
1534
1789
  coreStatus = 'multiSelect';
@@ -1576,6 +1831,11 @@ const JobSelector = class {
1576
1831
  listHeader = undefined;
1577
1832
  showHistoryHeader = false;
1578
1833
  }
1834
+ // PII-spärren visas som valideringsfel i sökfältet, så att det kopplas med aria-describedby.
1835
+ if (this.suggestionState?.status === 'pii-blocked') {
1836
+ validation = 'error';
1837
+ message = 'Texten verkar innehålla personuppgifter, till exempel personnummer, e-post eller telefonnummer. Skriv bara yrket du vill föreslå.';
1838
+ }
1579
1839
  return {
1580
1840
  status: coreStatus,
1581
1841
  inputValue,
@@ -1587,7 +1847,11 @@ const JobSelector = class {
1587
1847
  message,
1588
1848
  listHeader,
1589
1849
  showHistoryHeader,
1590
- isHistoryView
1850
+ isHistoryView,
1851
+ // Det spärrade förslaget erbjuds inte igen förrän texten har ändrats.
1852
+ manualInputBlocked: this.suggestionState?.status === 'pii-blocked',
1853
+ // Om det finns fler träffar än som visas ("Minst N förslag" för skärmläsare).
1854
+ hasMoreResults,
1591
1855
  };
1592
1856
  }
1593
1857
  render() {
@@ -1608,11 +1872,35 @@ const JobSelector = class {
1608
1872
  manualInputBehavior: 'select',
1609
1873
  showHistoryHeader: this.history && !selectorState.listHeader, // Only show default if not override
1610
1874
  listHeader: selectorState.listHeader,
1611
- enableInfiniteScroll: true
1875
+ enableInfiniteScroll: true,
1876
+ isFeedback: this.feedback,
1877
+ manualInputMode: (this.manualInput && this.feedback)
1878
+ ? 'combined'
1879
+ : this.feedback
1880
+ ? 'feedback'
1881
+ : 'manual',
1882
+ feedbackTargetName: 'yrke',
1612
1883
  };
1613
1884
  // Pass external error message if present and we are not in loading/error state
1614
1885
  // (This logic is now moved to _mapStateToSelectorState to respect validation state)
1615
- return (h("div", { key: '241fb8021d15901b447da13fbc2eb49e0b2fe666', class: "job-selector-wrapper" }, this.state.status === 'error' ? (h("div", { class: "error-message" }, h(AfValidationMessage, { variant: "error", role: "alert" }, this.state.message || 'Ett fel uppstod.'))) : (h(Fragment, null, h("core-selector", { id: this.componentId, componentId: this.componentId, state: selectorState, config: config, label: this.label, labelDescription: this.labelDescription, size: this.size, afFocused: this.afFocused })))));
1886
+ return (h("div", { key: '12dea63f349ce625d4ea7041533dd328391532c2', class: "job-selector-wrapper" }, this.state.status === 'error' ? (h("div", { class: "error-message" }, h(AfValidationMessage, { variant: "error", role: "alert" }, this.state.message || 'Ett fel uppstod.'))) : (h(Fragment, null, h("core-selector", { id: this.componentId, componentId: this.componentId, state: selectorState, config: config, label: this.label, labelDescription: this.labelDescription, size: this.size, afFocused: this.afFocused }), this.suggestionState && this.suggestionState.status !== 'pii-blocked' && (h("div", { key: "yv-suggestion-box", class: "yv-suggestion-box", role: "region", "aria-label": "F\u00F6resl\u00E5 saknat yrke" }, this.suggestionState.status === 'form' ? (h("div", { class: "yv-suggestion-form" }, h("div", { class: "yv-suggestion-title", id: `${this.componentId}-suggestion-title` }, "Motivera varf\u00F6r \"", h("strong", null, this.suggestionState.term), "\" b\u00F6r l\u00E4ggas till som yrke (frivilligt):"), h("div", { class: "yv-motivation-container" }, h("div", { class: "yv-motivation-field-wrapper" }, h("textarea", { id: `${this.componentId}-suggestion-motivation-input`, "aria-labelledby": `${this.componentId}-suggestion-title`, "aria-describedby": this.suggestionState.piiError
1887
+ ? `${this.componentId}-motivation-pii-error ${this.componentId}-motivation-counter`
1888
+ : `${this.componentId}-motivation-counter`, "aria-invalid": this.suggestionState.piiError ? 'true' : 'false', class: "yv-motivation-input", value: this.suggestionState.motivation, maxLength: 160, rows: 2, ref: (el) => {
1889
+ if (el) {
1890
+ el.style.height = 'auto';
1891
+ el.style.height = `${Math.max(el.scrollHeight, 44)}px`;
1892
+ }
1893
+ }, onInput: (e) => {
1894
+ const target = e.target;
1895
+ target.style.height = 'auto';
1896
+ target.style.height = `${Math.max(target.scrollHeight, 44)}px`;
1897
+ const val = target.value;
1898
+ if (this.suggestionState) {
1899
+ this.suggestionState = { ...this.suggestionState, motivation: val, piiError: false };
1900
+ }
1901
+ } }), h("div", { id: `${this.componentId}-motivation-counter`, class: "yv-motivation-counter" }, (this.suggestionState.motivation || '').length, "/160")), this.suggestionState.piiError && (h("div", { id: `${this.componentId}-motivation-pii-error`, class: "yv-suggestion-pii-error", role: "alert" }, "Motiveringen verkar inneh\u00E5lla personuppgifter, till exempel personnummer, e-post eller telefonnummer. Ta bort dem f\u00F6r att kunna skicka.")), h("div", { class: "yv-suggestion-actions" }, h("button", { type: "button", class: "yv-suggestion-submit-btn", "aria-label": `Skicka förslag för "${this.suggestionState.term}" till Arbetsförmedlingen`, onClick: () => this.submitSuggestion() }, "Skicka"), h("button", { type: "button", class: "yv-suggestion-cancel-btn", "aria-label": "Avbryt f\u00F6rslag", onClick: () => this.closeSuggestion() }, "Avbryt"))))) : this.suggestionState.status === 'submitted' ? (h("div", { class: "yv-suggestion-success" }, h("span", null, "F\u00F6rslaget \"", h("strong", null, this.suggestionState.term), "\" har skickats in till Arbetsf\u00F6rmedlingen."), h("button", { type: "button", class: "yv-suggestion-close-btn", "aria-label": "St\u00E4ng bekr\u00E4ftelse", onClick: () => this.closeSuggestion() }, "St\u00E4ng"))) : null)), h("div", { key: "yv-suggestion-live-region", class: "yv-sr-only", role: "status", "aria-live": "polite" }, this.suggestionState?.status === 'submitted'
1902
+ ? `Förslaget "${this.suggestionState.term}" har skickats in till Arbetsförmedlingen.`
1903
+ : '')))));
1616
1904
  }
1617
1905
  static get delegatesFocus() { return true; }
1618
1906
  static get formAssociated() { return true; }
@@ -1621,7 +1909,10 @@ const JobSelector = class {
1621
1909
  "watchRequired": 0
1622
1910
  }],
1623
1911
  "manualInput": [{
1624
- "watchManualInput": 0
1912
+ "watchManualInputOrFeedback": 0
1913
+ }],
1914
+ "feedback": [{
1915
+ "watchManualInputOrFeedback": 0
1625
1916
  }],
1626
1917
  "history": [{
1627
1918
  "watchHistory": 0
@@ -593,27 +593,6 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
593
593
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
594
594
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
595
595
  }
596
- } else if (memberName === "style") {
597
- {
598
- for (const prop in oldValue) {
599
- if (!newValue || newValue[prop] == null) {
600
- if (prop.includes("-")) {
601
- elm.style.removeProperty(prop);
602
- } else {
603
- elm.style[prop] = "";
604
- }
605
- }
606
- }
607
- }
608
- for (const prop in newValue) {
609
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
610
- if (prop.includes("-")) {
611
- elm.style.setProperty(prop, newValue[prop]);
612
- } else {
613
- elm.style[prop] = newValue[prop];
614
- }
615
- }
616
- }
617
596
  } else if (memberName === "key") ; else if (memberName === "ref") {
618
597
  if (newValue) {
619
598
  queueRefAttachment(newValue, elm);
@@ -1810,4 +1789,4 @@ function transformTag(tag) {
1810
1789
  return tag;
1811
1790
  }
1812
1791
 
1813
- export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1792
+ export { Fragment as F, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
package/dist/esm/index.js CHANGED
@@ -1,7 +1,5 @@
1
- import { r as registerTaxonomy } from './taxonomy-registry-C-pSh51L.js';
2
- export { T as TaxonomySearchEngine } from './search.engine-BaWUTc3r.js';
3
- export { I as InvalidSelectionError } from './types-DHUftoZJ.js';
4
- import './fuse-BPnhMTul.js';
1
+ import { r as registerTaxonomy } from './types-DVos4HHS.js';
2
+ export { I as InvalidSelectionError, T as TaxonomySearchEngine } from './types-DVos4HHS.js';
5
3
 
6
4
  if (typeof window !== 'undefined') {
7
5
  window.registerTaxonomy = registerTaxonomy;
@@ -1,10 +1,10 @@
1
- import { g as globalScripts, b as bootstrapLazy } from './index-HNd02eQb.js';
2
- export { s as setNonce } from './index-HNd02eQb.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-vJ-tamti.js';
2
+ export { s as setNonce } from './index-vJ-tamti.js';
3
3
 
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["job-selector-demo",[[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"]]]]],["geo-valjaren",[[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"]]]]],["neobrutal-search",[[513,"neobrutal-search",{"engine":[32],"results":[32],"inputValue":[32],"isLoading":[32],"error":[32],"selectedItem":[32],"isFlipped":[32]}]]],["core-selector",[[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}]}]]],["digi-service-job-selector",[[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}]}]]]], options);
7
+ return bootstrapLazy([["core-selector",[[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}]}]]],["digi-service-job-selector",[[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}]}]]]], options);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };