@arbetsformedlingen/yrkesvaljaren 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +369 -0
- package/dist/cjs/af-validation-message-BzY5H0xU.js +16 -0
- package/dist/cjs/core-selector.cjs.entry.js +476 -0
- package/dist/cjs/digi-service-job-selector.cjs.entry.js +1619 -0
- package/dist/cjs/fuse-BTLNKxuL.js +1631 -0
- package/dist/cjs/geo-valjaren.cjs.entry.js +14910 -0
- package/dist/cjs/index-BOuTGlEp.js +1817 -0
- package/dist/cjs/index.cjs.js +14 -0
- package/dist/cjs/job-selector-demo.cjs.entry.js +692 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/neobrutal-search.cjs.entry.js +171 -0
- package/dist/cjs/search.engine-D0cMelRi.js +489 -0
- package/dist/cjs/taxonomy-registry-DVmuDUpM.js +435 -0
- package/dist/cjs/types-CtHBl6Ra.js +14 -0
- package/dist/cjs/yrkesvaljaren.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +15 -0
- package/dist/collection/components/core-selector/core-selector.css +803 -0
- package/dist/collection/components/core-selector/core-selector.js +761 -0
- package/dist/collection/components/core-selector/types.js +1 -0
- package/dist/collection/components/design-compat/af-icon.js +13 -0
- package/dist/collection/components/design-compat/af-label.js +2 -0
- package/dist/collection/components/design-compat/af-tag.js +6 -0
- package/dist/collection/components/design-compat/af-validation-message.js +11 -0
- package/dist/collection/components/design-compat/index.js +4 -0
- package/dist/collection/components/geovaljaren/geovaljaren.css +21 -0
- package/dist/collection/components/geovaljaren/geovaljaren.js +304 -0
- package/dist/collection/components/geovaljaren/logic/adapter.utils.js +20 -0
- package/dist/collection/components/geovaljaren/logic/data.utils.js +12 -0
- package/dist/collection/components/geovaljaren/logic/history-service.js +25 -0
- package/dist/collection/components/geovaljaren/logic/search.engine.js +28 -0
- package/dist/collection/components/job-selector/constants.js +26 -0
- package/dist/collection/components/job-selector/history-service.js +41 -0
- package/dist/collection/components/job-selector/job-selector-controller.js +835 -0
- package/dist/collection/components/job-selector/job-selector.css +318 -0
- package/dist/collection/components/job-selector/job-selector.js +1378 -0
- package/dist/collection/components/job-selector/keyboard-handlers.js +84 -0
- package/dist/collection/components/job-selector/logic/adapter.utils.js +75 -0
- package/dist/collection/components/job-selector/logic/label-formatter.js +118 -0
- package/dist/collection/components/job-selector/logic/search.engine.js +50 -0
- package/dist/collection/components/job-selector/search-logic.js +35 -0
- package/dist/collection/components/job-selector/search.utils.js +224 -0
- package/dist/collection/components/job-selector/suggestions-list.js +31 -0
- package/dist/collection/components/job-selector/taxonomy-registry.js +60 -0
- package/dist/collection/components/job-selector/test-data.mock.js +33 -0
- package/dist/collection/components/job-selector/types.js +10 -0
- package/dist/collection/components/job-selector/validation-message.js +24 -0
- package/dist/collection/demo-data.js +20 -0
- package/dist/collection/index.js +7 -0
- package/dist/collection/verkstad/verkstad.js +407 -0
- package/dist/components/core-selector.d.ts +11 -0
- package/dist/components/core-selector.js +1 -0
- package/dist/components/core-selector2.js +1 -0
- package/dist/components/digi-service-job-selector.d.ts +11 -0
- package/dist/components/digi-service-job-selector.js +1 -0
- package/dist/components/fuse.js +1 -0
- package/dist/components/geo-valjaren.d.ts +11 -0
- package/dist/components/geo-valjaren.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/job-selector-demo.d.ts +11 -0
- package/dist/components/job-selector-demo.js +1 -0
- package/dist/components/job-selector.js +1 -0
- package/dist/components/neobrutal-search.d.ts +11 -0
- package/dist/components/neobrutal-search.js +1 -0
- package/dist/components/search.engine.js +1 -0
- package/dist/components/types.js +1 -0
- package/dist/esm/af-validation-message-F8NIH2rC.js +14 -0
- package/dist/esm/core-selector.entry.js +474 -0
- package/dist/esm/digi-service-job-selector.entry.js +1617 -0
- package/dist/esm/fuse-BPnhMTul.js +1629 -0
- package/dist/esm/geo-valjaren.entry.js +14908 -0
- package/dist/esm/index-CGXZllj2.js +1806 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/job-selector-demo.entry.js +690 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/neobrutal-search.entry.js +169 -0
- package/dist/esm/search.engine-nZ7AcXba.js +479 -0
- package/dist/esm/taxonomy-registry-Dw0VR9Aw.js +430 -0
- package/dist/esm/types-DHUftoZJ.js +12 -0
- package/dist/esm/yrkesvaljaren.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/core-selector/core-selector.d.ts +46 -0
- package/dist/types/components/core-selector/types.d.ts +1 -0
- package/dist/types/components/design-compat/af-icon.d.ts +7 -0
- package/dist/types/components/design-compat/af-label.d.ts +8 -0
- package/dist/types/components/design-compat/af-tag.d.ts +8 -0
- package/dist/types/components/design-compat/af-validation-message.d.ts +9 -0
- package/dist/types/components/design-compat/index.d.ts +5 -0
- package/dist/types/components/geovaljaren/geovaljaren.d.ts +24 -0
- package/dist/types/components/geovaljaren/logic/adapter.utils.d.ts +7 -0
- package/dist/types/components/geovaljaren/logic/data.utils.d.ts +7 -0
- package/dist/types/components/geovaljaren/logic/history-service.d.ts +6 -0
- package/dist/types/components/geovaljaren/logic/search.engine.d.ts +7 -0
- package/dist/types/components/job-selector/ambient.d.ts +4 -0
- package/dist/types/components/job-selector/constants.d.ts +13 -0
- package/dist/types/components/job-selector/history-service.d.ts +6 -0
- package/dist/types/components/job-selector/job-selector-controller.d.ts +82 -0
- package/dist/types/components/job-selector/job-selector.d.ts +140 -0
- package/dist/types/components/job-selector/keyboard-handlers.d.ts +13 -0
- package/dist/types/components/job-selector/logic/adapter.utils.d.ts +12 -0
- package/dist/types/components/job-selector/logic/label-formatter.d.ts +4 -0
- package/dist/types/components/job-selector/logic/search.engine.d.ts +21 -0
- package/dist/types/components/job-selector/search-logic.d.ts +17 -0
- package/dist/types/components/job-selector/search.utils.d.ts +10 -0
- package/dist/types/components/job-selector/suggestions-list.d.ts +13 -0
- package/dist/types/components/job-selector/taxonomy-registry.d.ts +20 -0
- package/dist/types/components/job-selector/test-data.mock.d.ts +7 -0
- package/dist/types/components/job-selector/types.d.ts +107 -0
- package/dist/types/components/job-selector/validation-message.d.ts +8 -0
- package/dist/types/components/job-selector-demo/job-selector-demo.d.ts +55 -0
- package/dist/types/components/neobrutal-search/neobrutal-search.d.ts +18 -0
- package/dist/types/components.d.ts +425 -0
- package/dist/types/demo-data.d.ts +16 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +1873 -0
- package/dist/types/verkstad/verkstad.d.ts +1 -0
- package/dist/yrkesvaljaren/fuse-B0eHOxow.js.map +1 -0
- package/dist/yrkesvaljaren/index-Cy4BCo5s.js.map +1 -0
- package/dist/yrkesvaljaren/index-DfJXTQqL.js.map +1 -0
- package/dist/yrkesvaljaren/index.esm.js +1 -0
- package/dist/yrkesvaljaren/index.esm.js.map +1 -0
- package/dist/yrkesvaljaren/p-16636162.entry.js +1 -0
- package/dist/yrkesvaljaren/p-273cf6df.entry.js +1 -0
- package/dist/yrkesvaljaren/p-9e48afa4.entry.js +1 -0
- package/dist/yrkesvaljaren/p-BPnhMTul.js +1 -0
- package/dist/yrkesvaljaren/p-CGXZllj2.js +3 -0
- package/dist/yrkesvaljaren/p-DHUftoZJ.js +1 -0
- package/dist/yrkesvaljaren/p-DYFAzvqX.js +1 -0
- package/dist/yrkesvaljaren/p-Dw0VR9Aw.js +1 -0
- package/dist/yrkesvaljaren/p-aef7b5ae.entry.js +1 -0
- package/dist/yrkesvaljaren/p-b0f16abd.entry.js +1 -0
- package/dist/yrkesvaljaren/p-uBrs3sSs.js +1 -0
- package/dist/yrkesvaljaren/search.engine-DPT6roRm.js.map +1 -0
- package/dist/yrkesvaljaren/taxonomy-registry-s5khf6s4.js.map +1 -0
- package/dist/yrkesvaljaren/types-DHUftoZJ.js.map +1 -0
- package/dist/yrkesvaljaren/yrkesvaljaren.css +1 -0
- package/dist/yrkesvaljaren/yrkesvaljaren.esm.js +1 -0
- package/dist/yrkesvaljaren/yrkesvaljaren.esm.js.map +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +126 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Minimal AF design compatibility tokens and primitives.
|
|
3
|
+
* Values are adapted from the AF design system v37.0.2 (Apache-2.0) so the
|
|
4
|
+
* selectors can render without loading the full design system runtime.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--digi--grayscale-0: #ffffff;
|
|
9
|
+
--digi--grayscale-50: #fbfbfb;
|
|
10
|
+
--digi--grayscale-100: #f4f4f4;
|
|
11
|
+
--digi--grayscale-200: #ededed;
|
|
12
|
+
--digi--grayscale-300: #e4e4e4;
|
|
13
|
+
--digi--grayscale-400: #dddddd;
|
|
14
|
+
--digi--grayscale-500: #cacaca;
|
|
15
|
+
--digi--grayscale-600: #acacac;
|
|
16
|
+
--digi--grayscale-700: #757575;
|
|
17
|
+
--digi--grayscale-800: #5c5c5c;
|
|
18
|
+
--digi--grayscale-900: #333333;
|
|
19
|
+
--digi--grayscale-1000: #000000;
|
|
20
|
+
|
|
21
|
+
--digi--global--color--cta--link--base: #1616b2;
|
|
22
|
+
--digi--global--color--function--danger--base: #da0000;
|
|
23
|
+
--digi--global--color--function--success--base: #008a20;
|
|
24
|
+
--digi--global--color--function--success--lightest-3: #d4edda;
|
|
25
|
+
--digi--global--color--function--warning--base: #ffe200;
|
|
26
|
+
|
|
27
|
+
--digi--color--text--primary: var(--digi--grayscale-900);
|
|
28
|
+
--digi--color--text--secondary: var(--digi--grayscale-700);
|
|
29
|
+
--digi--color--text--link: var(--digi--global--color--cta--link--base);
|
|
30
|
+
--digi--color--icons--success: var(--digi--global--color--function--success--base);
|
|
31
|
+
--digi--color--icons--warning: #8a7a00;
|
|
32
|
+
--digi--color--icons--danger: var(--digi--global--color--function--danger--base);
|
|
33
|
+
|
|
34
|
+
--digi--global--typography--font-family--default: "Open Sans", Arial, sans-serif;
|
|
35
|
+
--digi--global--typography--font-size--base: 1rem;
|
|
36
|
+
--digi--global--typography--font-size--small: 0.875rem;
|
|
37
|
+
--digi--global--typography--font-weight--regular: 400;
|
|
38
|
+
--digi--global--typography--font-weight--semibold: 600;
|
|
39
|
+
--digi--global--typography--font-weight--bold: 700;
|
|
40
|
+
--digi--global--typography--line-height--base: 1.5;
|
|
41
|
+
|
|
42
|
+
--digi--typography--label--font-size--desktop: 1rem;
|
|
43
|
+
--digi--typography--label--font-weight--desktop: 600;
|
|
44
|
+
--digi--typography--label--line-height--desktop: 1.5;
|
|
45
|
+
--digi--typography--label-description--font-size--desktop: 1rem;
|
|
46
|
+
--digi--typography--label-description--line-height--desktop: 1.5;
|
|
47
|
+
--digi--typography--tag--font-size--desktop: 0.875rem;
|
|
48
|
+
|
|
49
|
+
--digi--gutter--icon: 0.625rem;
|
|
50
|
+
--digi--gutter--smaller: 0.75rem;
|
|
51
|
+
--digi--gutter--small: 0.875rem;
|
|
52
|
+
--digi--gutter--medium: 1rem;
|
|
53
|
+
--digi--border-width--primary: 1px;
|
|
54
|
+
--digi--border-style--primary: solid;
|
|
55
|
+
--digi--border-radius--primary: 0;
|
|
56
|
+
--digi--border-radius--secondary: 6px;
|
|
57
|
+
|
|
58
|
+
--af-tag-color: #091d54;
|
|
59
|
+
--af-tag-hover-background: #ddf1fc;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.af-form-label {
|
|
63
|
+
color: var(--digi--color--text--primary);
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
font-family: var(--digi--global--typography--font-family--default);
|
|
67
|
+
font-size: var(--digi--typography--label--font-size--desktop);
|
|
68
|
+
margin-bottom: 0.5rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.af-form-label__label {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
display: block;
|
|
74
|
+
font-weight: var(--digi--typography--label--font-weight--desktop);
|
|
75
|
+
line-height: var(--digi--typography--label--line-height--desktop);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.af-form-label__description {
|
|
79
|
+
display: block;
|
|
80
|
+
font-size: var(--digi--typography--label-description--font-size--desktop);
|
|
81
|
+
line-height: var(--digi--typography--label-description--line-height--desktop);
|
|
82
|
+
max-width: 35rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.af-validation-message {
|
|
86
|
+
align-items: center;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-wrap: wrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.af-validation-message__icon {
|
|
92
|
+
flex: 0 0 auto;
|
|
93
|
+
height: 1.25em;
|
|
94
|
+
margin-inline-end: var(--digi--gutter--icon);
|
|
95
|
+
width: 1.25em;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.af-validation-message__icon--success,
|
|
99
|
+
.af-validation-message__icon--error {
|
|
100
|
+
background-color: var(--af-validation-icon-color, currentColor);
|
|
101
|
+
-webkit-mask-position: center;
|
|
102
|
+
mask-position: center;
|
|
103
|
+
-webkit-mask-repeat: no-repeat;
|
|
104
|
+
mask-repeat: no-repeat;
|
|
105
|
+
-webkit-mask-size: contain;
|
|
106
|
+
mask-size: contain;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.af-validation-message__icon--success {
|
|
110
|
+
--af-validation-icon-color: var(--digi--color--icons--success);
|
|
111
|
+
-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");
|
|
112
|
+
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");
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.af-validation-message__icon--error {
|
|
116
|
+
--af-validation-icon-color: var(--digi--color--icons--danger);
|
|
117
|
+
-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");
|
|
118
|
+
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");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.af-validation-message__icon--warning {
|
|
122
|
+
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");
|
|
123
|
+
position: relative;
|
|
124
|
+
top: 3px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.af-validation-message__text {
|
|
128
|
+
color: var(--digi--color--text--primary);
|
|
129
|
+
flex: 1;
|
|
130
|
+
font-family: var(--digi--global--typography--font-family--default);
|
|
131
|
+
font-size: var(--digi--typography--tag--font-size--desktop);
|
|
132
|
+
transform: translateY(1px);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.af-tag {
|
|
136
|
+
display: block;
|
|
137
|
+
max-width: 100%;
|
|
138
|
+
min-width: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.af-tag__button {
|
|
142
|
+
align-items: center;
|
|
143
|
+
background: var(--digi--grayscale-0);
|
|
144
|
+
border: var(--digi--border-width--primary) var(--digi--border-style--primary) var(--af-tag-color);
|
|
145
|
+
border-radius: var(--digi--border-radius--secondary);
|
|
146
|
+
color: var(--af-tag-color);
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
font-family: var(--digi--global--typography--font-family--default);
|
|
150
|
+
font-size: 0.875rem;
|
|
151
|
+
font-weight: var(--digi--global--typography--font-weight--semibold);
|
|
152
|
+
gap: 10px;
|
|
153
|
+
height: auto;
|
|
154
|
+
max-width: 100%;
|
|
155
|
+
min-height: unset;
|
|
156
|
+
min-width: 0;
|
|
157
|
+
padding: 6px 8px;
|
|
158
|
+
text-align: left;
|
|
159
|
+
white-space: normal;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.af-tag__button:hover {
|
|
163
|
+
background: var(--af-tag-hover-background);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.af-tag__button:focus-visible {
|
|
167
|
+
background: var(--af-tag-hover-background);
|
|
168
|
+
border-color: var(--af-tag-color);
|
|
169
|
+
outline: 2px solid var(--digi--grayscale-1000);
|
|
170
|
+
outline-offset: 2px;
|
|
171
|
+
box-shadow: 0 0 0 5px var(--digi--grayscale-0);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.af-tag__button:active {
|
|
175
|
+
background: var(--af-tag-hover-background);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.af-tag__text {
|
|
179
|
+
display: inline-block;
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
min-width: 0;
|
|
182
|
+
white-space: normal;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.af-tag__text--break {
|
|
186
|
+
overflow-wrap: anywhere;
|
|
187
|
+
word-break: break-word;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.af-tag__remove-icon {
|
|
191
|
+
flex: 0 0 auto;
|
|
192
|
+
height: 1em;
|
|
193
|
+
min-height: 0 !important;
|
|
194
|
+
width: 1em;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/* src/components/yrkesvaljaren/yrkesvaljaren.css */
|
|
199
|
+
|
|
200
|
+
:host {
|
|
201
|
+
/* === BAKÅTKOMPATIBILITET FÖR DIMENSIONER === */
|
|
202
|
+
--yrkesvaljaren-width: var(--af-width, 100%);
|
|
203
|
+
--yrkesvaljaren-min-width: var(--af-min-width, 200px);
|
|
204
|
+
--yrkesvaljaren-max-width: var(--af-max-width, none);
|
|
205
|
+
--yrkesvaljaren-height: var(--af-height, auto);
|
|
206
|
+
--yrkesvaljaren-min-height: var(--af-min-height, auto);
|
|
207
|
+
--yrkesvaljaren-max-height: var(--af-max-height, none);
|
|
208
|
+
|
|
209
|
+
/* === MAPPNING TILL CORE-SELECTOR (Adapter Layer) === */
|
|
210
|
+
--selector-width: var(--yrkesvaljaren-width);
|
|
211
|
+
--selector-min-width: var(--yrkesvaljaren-min-width);
|
|
212
|
+
--selector-max-width: var(--yrkesvaljaren-max-width);
|
|
213
|
+
--selector-height: var(--yrkesvaljaren-height);
|
|
214
|
+
--selector-min-height: var(--yrkesvaljaren-min-height);
|
|
215
|
+
--selector-max-height: var(--yrkesvaljaren-max-height);
|
|
216
|
+
|
|
217
|
+
/* Fonts & Colors Mapping */
|
|
218
|
+
--selector-font-family: var(--global-font-family, 'Open Sans', sans-serif);
|
|
219
|
+
--selector-font-size: var(--sok-font-size, 1rem);
|
|
220
|
+
--selector-text-color: var(--sok-text-color, #212529);
|
|
221
|
+
--selector-placeholder-color: var(--sok-placeholder-color, #6c757d);
|
|
222
|
+
--selector-border-color: var(--sok-border-color, #d1d5db);
|
|
223
|
+
--selector-focus-border-color: var(--sok-focus-border-color, #86b7fe);
|
|
224
|
+
--selector-focus-shadow: var(--sok-focus-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25));
|
|
225
|
+
--selector-background-color: var(--sok-background-color, #fff);
|
|
226
|
+
--selector-icon-color: var(--sok-icon-color, #6c757d);
|
|
227
|
+
--selector-clear-button-color: var(--sok-clear-button-color, #6c757d);
|
|
228
|
+
--selector-clear-button-hover-color: var(--sok-clear-button-hover-color, #212529);
|
|
229
|
+
|
|
230
|
+
--selector-suggestion-background-color: var(--sok-suggestion-background-color, #fff);
|
|
231
|
+
--selector-suggestion-border-color: var(--sok-suggestion-border-color, #ced4da);
|
|
232
|
+
--selector-suggestion-hover-background: var(--sok-suggestion-hover-background, #e9ecef);
|
|
233
|
+
--selector-suggestion-active-background: var(--sok-suggestion-active-background, #dde4eb);
|
|
234
|
+
--selector-suggestion-text-color: var(--sok-suggestion-text-color, #212529);
|
|
235
|
+
--selector-suggestion-highlight-weight: var(--sok-suggestion-highlight-weight, bold);
|
|
236
|
+
|
|
237
|
+
--selector-error-color: var(--sok-error-color, #dc3545);
|
|
238
|
+
--selector-loading-color: var(--sok-loading-color, #6c757d);
|
|
239
|
+
|
|
240
|
+
display: flex;
|
|
241
|
+
flex-direction: column;
|
|
242
|
+
width: var(--yrkesvaljaren-width);
|
|
243
|
+
min-width: var(--yrkesvaljaren-min-width);
|
|
244
|
+
max-width: var(--yrkesvaljaren-max-width);
|
|
245
|
+
height: var(--yrkesvaljaren-height);
|
|
246
|
+
min-height: var(--yrkesvaljaren-min-height);
|
|
247
|
+
max-height: var(--yrkesvaljaren-max-height);
|
|
248
|
+
position: relative;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* --- Map Sizes --- */
|
|
252
|
+
:host([af-size="small"]) {
|
|
253
|
+
--cs-size: small;
|
|
254
|
+
/* Hint to CoreSelector if it inherited prop, but it uses own host selector */
|
|
255
|
+
/* CoreSelector uses attributes, so we can't easily force its attribute from here via CSS */
|
|
256
|
+
/* But we can map the CSS vars it uses! */
|
|
257
|
+
--selector-container-min-height: 32px;
|
|
258
|
+
--selector-padding-y: 2px;
|
|
259
|
+
--selector-icon-size: 1em;
|
|
260
|
+
--selector-gap: 4px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:host([af-size="medium"]) {
|
|
264
|
+
--selector-container-min-height: 40px;
|
|
265
|
+
--selector-padding-y: 6px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host([af-size="large"]) {
|
|
269
|
+
--selector-container-min-height: 48px;
|
|
270
|
+
--selector-padding-y: 10px;
|
|
271
|
+
--selector-icon-size: 1.25em;
|
|
272
|
+
--selector-gap: 8px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
* {
|
|
277
|
+
box-sizing: border-box;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.yrkesvaljaren-wrapper {
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
flex: 1;
|
|
284
|
+
min-height: inherit;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
core-selector {
|
|
291
|
+
margin-top: 0.5rem;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.status-message {
|
|
295
|
+
margin-top: 0.5rem;
|
|
296
|
+
font-size: 0.9em;
|
|
297
|
+
font-style: italic;
|
|
298
|
+
color: var(--sok-loading-color, #6c757d);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* --- History Header Fix --- */
|
|
302
|
+
.history-header {
|
|
303
|
+
/* Matches core-selector suggestion-item padding */
|
|
304
|
+
font-size: 0.875rem;
|
|
305
|
+
color: var(--digi--grayscale-700, #757575);
|
|
306
|
+
/* Optional: differentiate header slightly */
|
|
307
|
+
border-bottom: 1px solid var(--selector-suggestion-border-color, #ced4da);
|
|
308
|
+
margin-bottom: 0px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.history-header a {
|
|
312
|
+
color: inherit;
|
|
313
|
+
text-decoration: underline;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.history-header a:hover {
|
|
317
|
+
color: var(--digi--global--color--cta--link--base, #1616B2);
|
|
318
|
+
}
|