@allovoisins/sequoia 0.1.0-next.4 → 0.1.0-next.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/README.md +29 -10
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.css +82 -11
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.d.vue.ts +2 -2
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.types.d.ts +3 -0
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.types.d.ts.map +1 -1
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.vue.d.ts +2 -2
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.vue.d.ts.map +1 -1
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.vue_vue_type_script_setup_true_lang.js +69 -35
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SqAddressAutocomplete/SqAddressAutocomplete2.js.map +1 -1
- package/dist/components/SqButton/SqButton.css +52 -17
- package/dist/components/SqButton/SqButton.types.d.ts +6 -5
- package/dist/components/SqButton/SqButton.types.d.ts.map +1 -1
- package/dist/components/SqButton/SqButton.vue.d.ts.map +1 -1
- package/dist/components/SqButton/SqButton.vue_vue_type_script_setup_true_lang.js +17 -7
- package/dist/components/SqButton/SqButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SqButton/SqButton2.js.map +1 -1
- package/dist/components/SqCheckInput/SqCheckInput.css +53 -7
- package/dist/components/SqCheckInput/SqCheckInput.types.d.ts +3 -4
- package/dist/components/SqCheckInput/SqCheckInput.types.d.ts.map +1 -1
- package/dist/components/SqCheckInput/SqCheckInput.vue.d.ts.map +1 -1
- package/dist/components/SqCheckInput/SqCheckInput.vue_vue_type_script_setup_true_lang.js +23 -7
- package/dist/components/SqCheckInput/SqCheckInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SqCheckInput/SqCheckInput2.js.map +1 -1
- package/dist/components/SqInput/SqInput.css +11 -5
- package/dist/components/SqInput/SqInput.types.d.ts +3 -0
- package/dist/components/SqInput/SqInput.types.d.ts.map +1 -1
- package/dist/components/SqInput/SqInput.vue.d.ts.map +1 -1
- package/dist/components/SqInput/SqInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/SqInput/SqInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SqInput/SqInput2.js.map +1 -1
- package/dist/components/SqPassword/SqPassword.css +96 -13
- package/dist/components/SqPassword/SqPassword.types.d.ts +7 -4
- package/dist/components/SqPassword/SqPassword.types.d.ts.map +1 -1
- package/dist/components/SqPassword/SqPassword.vue.d.ts.map +1 -1
- package/dist/components/SqPassword/SqPassword.vue_vue_type_script_setup_true_lang.js +62 -47
- package/dist/components/SqPassword/SqPassword.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/SqPassword/SqPassword2.js.map +1 -1
- package/dist/components/SqSquareButton/SqSquareButton.css +97 -0
- package/dist/components/SqSquareButton/SqSquareButton.d.vue.ts +16 -0
- package/dist/components/SqSquareButton/SqSquareButton.types.d.ts +80 -0
- package/dist/components/SqSquareButton/SqSquareButton.types.d.ts.map +1 -0
- package/dist/components/SqSquareButton/SqSquareButton.vue.d.ts +16 -0
- package/dist/components/SqSquareButton/SqSquareButton.vue.d.ts.map +1 -0
- package/dist/components/SqSquareButton/SqSquareButton.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/SqSquareButton/SqSquareButton.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/SqSquareButton/SqSquareButton2.js +7 -0
- package/dist/components/SqSquareButton/SqSquareButton2.js.map +1 -0
- package/dist/components/SqSquareButton/index.d.ts +3 -0
- package/dist/components/SqSquareButton/index.d.ts.map +1 -0
- package/dist/components/SqSquareButton/index.js +2 -0
- package/dist/components/SqTextArea/SqTextArea.css +118 -0
- package/dist/components/SqTextArea/SqTextArea.d.vue.ts +13 -0
- package/dist/components/SqTextArea/SqTextArea.texts.d.ts +3 -0
- package/dist/components/SqTextArea/SqTextArea.texts.d.ts.map +1 -0
- package/dist/components/SqTextArea/SqTextArea.texts.js +10 -0
- package/dist/components/SqTextArea/SqTextArea.texts.js.map +1 -0
- package/dist/components/SqTextArea/SqTextArea.types.d.ts +107 -0
- package/dist/components/SqTextArea/SqTextArea.types.d.ts.map +1 -0
- package/dist/components/SqTextArea/SqTextArea.vue.d.ts +13 -0
- package/dist/components/SqTextArea/SqTextArea.vue.d.ts.map +1 -0
- package/dist/components/SqTextArea/SqTextArea.vue_vue_type_script_setup_true_lang.js +276 -0
- package/dist/components/SqTextArea/SqTextArea.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/SqTextArea/SqTextArea2.js +7 -0
- package/dist/components/SqTextArea/SqTextArea2.js.map +1 -0
- package/dist/components/SqTextArea/index.d.ts +3 -0
- package/dist/components/SqTextArea/index.d.ts.map +1 -0
- package/dist/components/SqTextArea/index.js +2 -0
- package/dist/icons/SqIconKeys.d.ts +18 -0
- package/dist/icons/SqIconKeys.d.ts.map +1 -0
- package/dist/icons/SqIconKeys.js +26 -0
- package/dist/icons/SqIconKeys.js.map +1 -0
- package/dist/icons/SqIcons.d.ts +29 -0
- package/dist/icons/SqIcons.d.ts.map +1 -0
- package/dist/icons/SqIcons.js +46 -0
- package/dist/icons/SqIcons.js.map +1 -0
- package/dist/icons/SqIcons.types.d.ts +17 -0
- package/dist/icons/SqIcons.types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/internal/SqField/SqField.css +50 -6
- package/dist/internal/SqField/SqField.types.d.ts +2 -8
- package/dist/internal/SqField/SqField.types.d.ts.map +1 -1
- package/dist/internal/SqField/SqField.vue.d.ts.map +1 -1
- package/dist/internal/SqField/SqField.vue_vue_type_script_setup_true_lang.js +12 -4
- package/dist/internal/SqField/SqField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/internal/SqField/SqField2.js.map +1 -1
- package/dist/styles.css +3 -4
- package/dist/texts/SqField.texts.js +1 -1
- package/dist/texts/SqField.texts.js.map +1 -1
- package/dist/texts/SqTexts.types.d.ts +3 -1
- package/dist/texts/SqTexts.types.d.ts.map +1 -1
- package/dist/texts-keys.json +12 -2
- package/package.json +3 -2
- package/src/styles/_custom-properties.scss +9 -25
- package/src/styles/abstracts/_button-themes.scss +8 -12
- package/src/styles/abstracts/_check-input-themes.scss +21 -27
- package/src/styles/abstracts/_colors.scss +17 -35
- package/src/styles/abstracts/_index.scss +6 -9
- package/src/styles/abstracts/_mixins.scss +35 -7
- package/src/styles/abstracts/_variables.scss +19 -27
- package/src/styles/base/_fonts.scss +19 -38
- package/src/styles/base/_reset.scss +5 -9
- package/src/styles/base/_typography.scss +6 -11
- package/src/styles/index.scss +10 -17
package/README.md
CHANGED
|
@@ -25,25 +25,27 @@ n'emporte que le style des composants réellement utilisés.
|
|
|
25
25
|
|
|
26
26
|
## Intégration
|
|
27
27
|
|
|
28
|
-
`resolve.dedupe: ['vue']` est **obligatoire**
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
`resolve.dedupe: ['vue']` est **obligatoire** en lien local pnpm. Deux instances de Vue
|
|
29
|
+
donnent un `inject()` qui ne trouve rien côté client et des erreurs d'hydratation
|
|
30
|
+
illisibles en SSR.
|
|
31
31
|
|
|
32
32
|
La police **TT Chocolates n'est pas distribuée** par ce package et le CSS publié ne
|
|
33
33
|
contient aucune déclaration `@font-face`. Chaque application sert la police elle-même et
|
|
34
34
|
garde à sa charge le `<link rel="preload">` — c'est du LCP, ça doit être dans le HTML SSR.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Un consommateur SSR qui inline tout son CSS global dans le `<head>` a intérêt à s'en
|
|
37
|
+
tenir à `@allovoisins/sequoia/scss`, qui compile en 0 octet, et à ne prendre
|
|
38
|
+
`@allovoisins/sequoia/styles` que s'il thème au runtime.
|
|
37
39
|
|
|
38
40
|
## Traduire les libellés
|
|
39
41
|
|
|
40
42
|
Deux familles de chaînes, séparées par une seule question — le design system peut-il connaître
|
|
41
43
|
la valeur ?
|
|
42
44
|
|
|
43
|
-
| | Exemples
|
|
44
|
-
| ---------------------------- |
|
|
45
|
-
| **Contenu de l'application** | `label`, `placeholder`, `helperText`, `errorText`, les slots
|
|
46
|
-
| **Chaînes du composant** | annonce de chargement, mention «
|
|
45
|
+
| | Exemples | Surface | Défaut |
|
|
46
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------- | -------- |
|
|
47
|
+
| **Contenu de l'application** | `label`, `placeholder`, `helperText`, `errorText`, les slots | prop ordinaire | aucun |
|
|
48
|
+
| **Chaînes du composant** | annonce de chargement, mention « Optionnel », critères de mot de passe, annonces de la liste d'adresses | `texts` / `provideSqTexts` | français |
|
|
47
49
|
|
|
48
50
|
La première famille est déjà à votre charge : rien n'est affiché tant que vous ne passez rien.
|
|
49
51
|
La seconde a un défaut français, que `provideSqTexts` remplace pour toute l'application.
|
|
@@ -62,11 +64,28 @@ provideSqTexts(
|
|
|
62
64
|
|
|
63
65
|
**Passer un getter ou un `computed`** : une valeur figée ne suivrait pas un changement de langue.
|
|
64
66
|
|
|
67
|
+
### Les icônes structurelles se remplacent de la même façon
|
|
68
|
+
|
|
69
|
+
Neuf icônes sont rendues par les composants eux-mêmes — erreur d'un champ, spinner, coche,
|
|
70
|
+
croix de vidage, œil du mot de passe, et les trois de la liste de suggestions d'adresse. Leur
|
|
71
|
+
glyphe embarqué est neutre ; `provideSqIcons` y substitue le vôtre, et la prop `icons` le fait
|
|
72
|
+
par instance.
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
import { provideSqIcons } from '@allovoisins/sequoia';
|
|
76
|
+
|
|
77
|
+
provideSqIcons({ 'regular-eye': IconRegularEye }, app);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Les clés reprennent la nomenclature `<variante>-<glyphe>` du jeu d'icônes des applications.
|
|
81
|
+
La liste complète et les pièges sont dans [`docs/CONSUMERS.md`](../../docs/CONSUMERS.md).
|
|
82
|
+
|
|
65
83
|
| Scope | Servi par | Clés |
|
|
66
84
|
| --------------------- | ----------------------- | ----------------------------------------------------------------------------------------------- |
|
|
67
85
|
| `button` | `SqButton` | `loading` |
|
|
68
86
|
| `field` | tous les champs | `optional` |
|
|
69
87
|
| `password` | `SqPassword` | `show`, `minLength`, `categories`, `uppercase`, `lowercase`, `digit`, `special`, `met`, `unmet` |
|
|
88
|
+
| `textArea` | `SqTextArea` | `loading` |
|
|
70
89
|
| `addressAutocomplete` | `SqAddressAutocomplete` | `listLabel`, `geolocate`, `loading`, `geolocating`, `noResults`, `results`, `clear` |
|
|
71
90
|
|
|
72
91
|
La résolution va du plus général au plus précis — défaut du composant, scope `field`, scope du
|
|
@@ -80,7 +99,7 @@ Une clé **absente ou à `undefined`** garde la couche du dessous : une clé d'i
|
|
|
80
99
|
sur le défaut au lieu de vider un nom accessible (SC 4.1.2). Inutile de repasser l'objet entier
|
|
81
100
|
pour n'en surcharger qu'une.
|
|
82
101
|
|
|
83
|
-
⚠️ **Sur un site non francophone, le dictionnaire n'est pas facultatif.** Un «
|
|
102
|
+
⚠️ **Sur un site non francophone, le dictionnaire n'est pas facultatif.** Un « Optionnel » rendu
|
|
84
103
|
dans une page `lang="en"` échoue au SC 3.1.2, et rien dans le composant ne peut le détecter.
|
|
85
104
|
|
|
86
105
|
`results` est une **fonction** et non une chaîne à trous : le pluriel ne se compose pas de la même
|
|
@@ -113,7 +132,7 @@ s'importe tel quel dans un outil de traduction :
|
|
|
113
132
|
```json
|
|
114
133
|
{
|
|
115
134
|
"scopes": {
|
|
116
|
-
"field": { "keys": { "optional": { "default": "
|
|
135
|
+
"field": { "keys": { "optional": { "default": "Optionnel" } } },
|
|
117
136
|
"addressAutocomplete": {
|
|
118
137
|
"inherits": ["field"],
|
|
119
138
|
"keys": {
|
|
@@ -11,16 +11,24 @@
|
|
|
11
11
|
width: 100%;
|
|
12
12
|
}
|
|
13
13
|
.sq-address-autocomplete__clear {
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
border: 0;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
background: transparent;
|
|
19
|
+
line-height: inherit;
|
|
20
|
+
text-align: center;
|
|
21
|
+
text-transform: inherit;
|
|
22
|
+
letter-spacing: inherit;
|
|
23
|
+
vertical-align: baseline;
|
|
24
|
+
appearance: auto;
|
|
14
25
|
display: flex;
|
|
15
26
|
flex: 0 0 auto;
|
|
16
27
|
align-items: center;
|
|
17
28
|
justify-content: center;
|
|
18
29
|
min-width: 1.5rem;
|
|
19
30
|
min-height: 1.5rem;
|
|
20
|
-
padding: 0;
|
|
21
|
-
border: 0;
|
|
22
31
|
border-radius: 4px;
|
|
23
|
-
background-color: transparent;
|
|
24
32
|
color: var(--sq-field-text);
|
|
25
33
|
font-size: inherit;
|
|
26
34
|
cursor: pointer;
|
|
@@ -30,6 +38,16 @@
|
|
|
30
38
|
outline-offset: 2px;
|
|
31
39
|
}
|
|
32
40
|
.sq-address-autocomplete__clear-icon {
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: 0;
|
|
43
|
+
border: 0;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
background: transparent;
|
|
46
|
+
line-height: inherit;
|
|
47
|
+
text-align: inherit;
|
|
48
|
+
text-transform: inherit;
|
|
49
|
+
letter-spacing: inherit;
|
|
50
|
+
vertical-align: baseline;
|
|
33
51
|
height: 1em;
|
|
34
52
|
width: auto;
|
|
35
53
|
}
|
|
@@ -46,7 +64,7 @@
|
|
|
46
64
|
box-shadow: inset 0 0 0 1px var(--sq-address-autocomplete-border), 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
47
65
|
color: var(--sq-address-autocomplete-text);
|
|
48
66
|
font-size: 1rem;
|
|
49
|
-
line-height: 1.
|
|
67
|
+
line-height: 1.25;
|
|
50
68
|
text-align: left;
|
|
51
69
|
}
|
|
52
70
|
.sq-address-autocomplete__panel--bottom {
|
|
@@ -60,13 +78,31 @@
|
|
|
60
78
|
.sq-address-autocomplete__list {
|
|
61
79
|
margin: 0;
|
|
62
80
|
padding: 0;
|
|
81
|
+
border: 0;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
background: transparent;
|
|
84
|
+
line-height: inherit;
|
|
85
|
+
text-align: inherit;
|
|
86
|
+
text-transform: inherit;
|
|
87
|
+
letter-spacing: inherit;
|
|
88
|
+
vertical-align: baseline;
|
|
63
89
|
list-style: none;
|
|
64
90
|
}
|
|
65
91
|
.sq-address-autocomplete__option {
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding: 0.5rem 1rem;
|
|
94
|
+
border: 0;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
background: transparent;
|
|
97
|
+
line-height: inherit;
|
|
98
|
+
text-align: inherit;
|
|
99
|
+
text-transform: inherit;
|
|
100
|
+
letter-spacing: inherit;
|
|
101
|
+
vertical-align: baseline;
|
|
102
|
+
list-style: inherit;
|
|
66
103
|
display: flex;
|
|
67
104
|
align-items: center;
|
|
68
105
|
gap: 0.5rem;
|
|
69
|
-
padding: 0.5rem 1rem;
|
|
70
106
|
cursor: pointer;
|
|
71
107
|
}
|
|
72
108
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -86,6 +122,16 @@
|
|
|
86
122
|
}
|
|
87
123
|
}
|
|
88
124
|
.sq-address-autocomplete__option-icon {
|
|
125
|
+
margin: 0;
|
|
126
|
+
padding: 0;
|
|
127
|
+
border: 0;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
background: transparent;
|
|
130
|
+
line-height: inherit;
|
|
131
|
+
text-align: inherit;
|
|
132
|
+
text-transform: inherit;
|
|
133
|
+
letter-spacing: inherit;
|
|
134
|
+
vertical-align: baseline;
|
|
89
135
|
flex: 0 0 auto;
|
|
90
136
|
height: 1em;
|
|
91
137
|
width: auto;
|
|
@@ -101,28 +147,53 @@
|
|
|
101
147
|
font-weight: 500;
|
|
102
148
|
}
|
|
103
149
|
.sq-address-autocomplete__empty {
|
|
150
|
+
margin: 0;
|
|
151
|
+
padding: 0.5rem 1rem;
|
|
152
|
+
border: 0;
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
background: transparent;
|
|
155
|
+
line-height: inherit;
|
|
156
|
+
text-align: inherit;
|
|
157
|
+
text-transform: inherit;
|
|
158
|
+
letter-spacing: inherit;
|
|
159
|
+
vertical-align: baseline;
|
|
104
160
|
display: flex;
|
|
105
161
|
align-items: center;
|
|
106
162
|
gap: 0.5rem;
|
|
107
|
-
margin: 0;
|
|
108
|
-
padding: 0.5rem 1rem;
|
|
109
163
|
color: var(--sq-address-autocomplete-muted);
|
|
110
164
|
}
|
|
111
165
|
.sq-address-autocomplete__sr-only {
|
|
166
|
+
margin: -1px;
|
|
167
|
+
padding: 0;
|
|
168
|
+
border: 0;
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
background: transparent;
|
|
171
|
+
line-height: inherit;
|
|
172
|
+
text-align: inherit;
|
|
173
|
+
text-transform: inherit;
|
|
174
|
+
letter-spacing: inherit;
|
|
175
|
+
vertical-align: baseline;
|
|
112
176
|
position: absolute;
|
|
113
177
|
width: 1px;
|
|
114
178
|
height: 1px;
|
|
115
|
-
padding: 0;
|
|
116
|
-
margin: -1px;
|
|
117
179
|
overflow: hidden;
|
|
118
180
|
clip-path: inset(50%);
|
|
119
181
|
white-space: nowrap;
|
|
120
|
-
border: 0;
|
|
121
182
|
}
|
|
122
183
|
|
|
123
184
|
.sq-spinner-icon {
|
|
124
|
-
|
|
185
|
+
margin: 0;
|
|
186
|
+
padding: 0;
|
|
187
|
+
border: 0;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
background: transparent;
|
|
190
|
+
line-height: inherit;
|
|
191
|
+
text-align: inherit;
|
|
192
|
+
text-transform: inherit;
|
|
193
|
+
letter-spacing: inherit;
|
|
194
|
+
vertical-align: baseline;
|
|
125
195
|
height: 1em;
|
|
196
|
+
width: auto;
|
|
126
197
|
animation: sq-spinner-rotate 900ms linear infinite;
|
|
127
198
|
}
|
|
128
199
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { SqAddressAutocompleteProps, SqAddressAutocompleteSlots, SqAddressAutocompleteSuggestion } from './SqAddressAutocomplete.types.js';
|
|
2
2
|
type __VLS_Slots = SqAddressAutocompleteSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<SqAddressAutocompleteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
clear: () => any;
|
|
4
5
|
search: (query: string) => any;
|
|
5
6
|
select: (suggestion: SqAddressAutocompleteSuggestion) => any;
|
|
6
7
|
"update:modelValue": (value: string) => any;
|
|
7
8
|
focus: (event: FocusEvent) => any;
|
|
8
9
|
blur: (event: FocusEvent) => any;
|
|
9
10
|
geolocate: () => any;
|
|
10
|
-
clear: () => any;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<SqAddressAutocompleteProps> & Readonly<{
|
|
12
|
+
onClear?: (() => any) | undefined;
|
|
12
13
|
onSearch?: ((query: string) => any) | undefined;
|
|
13
14
|
onSelect?: ((suggestion: SqAddressAutocompleteSuggestion) => any) | undefined;
|
|
14
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
16
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
16
17
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
17
18
|
onGeolocate?: (() => any) | undefined;
|
|
18
|
-
onClear?: (() => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SqIcons } from '../../icons/SqIcons.types.js';
|
|
1
2
|
import { SqFieldTexts } from '../../texts/SqTexts.types.js';
|
|
2
3
|
/**
|
|
3
4
|
* Une proposition d'adresse, telle que le **consommateur** la fournit.
|
|
@@ -116,6 +117,8 @@ export interface SqAddressAutocompleteProps {
|
|
|
116
117
|
required?: boolean;
|
|
117
118
|
/** Libellés, fusionnés aux défauts français clé à clé. */
|
|
118
119
|
texts?: Partial<SqAddressAutocompleteTexts>;
|
|
120
|
+
/** Icônes structurelles, fusionnées par-dessus `provideSqIcons`. Clé absente : glyphe embarqué. */
|
|
121
|
+
icons?: SqIcons;
|
|
119
122
|
}
|
|
120
123
|
export interface SqAddressAutocompleteEmits {
|
|
121
124
|
/** Texte saisi, ou `label` de la suggestion choisie. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqAddressAutocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/SqAddressAutocomplete/SqAddressAutocomplete.types.ts"],"names":[],"mappings":"AAAA;mFACmF;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,WAAW,+BAA+B;IAC9C,wFAAwF;IACxF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAEpB;+FAC2F;IAC3F,KAAK,EAAE,MAAM,CAAC;CACf;AAED;iFACiF;AACjF,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAElB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAElB,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAEhB;mFAC+E;IAC/E,WAAW,EAAE,MAAM,CAAC;IAEpB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAEnC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAEzD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAE7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SqAddressAutocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/SqAddressAutocomplete/SqAddressAutocomplete.types.ts"],"names":[],"mappings":"AAAA;mFACmF;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,WAAW,+BAA+B;IAC9C,wFAAwF;IACxF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAEpB;+FAC2F;IAC3F,KAAK,EAAE,MAAM,CAAC;CACf;AAED;iFACiF;AACjF,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAElB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAElB,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAEhB;mFAC+E;IAC/E,WAAW,EAAE,MAAM,CAAC;IAEpB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAEnC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAEzD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAE7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAE5C,mGAAmG;IACnG,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAExB,wDAAwD;IACxD,MAAM,EAAE,CAAC,UAAU,EAAE,+BAA+B,CAAC,CAAC;IAEtD,uDAAuD;IACvD,SAAS,EAAE,EAAE,CAAC;IAEd,sDAAsD;IACtD,KAAK,EAAE,EAAE,CAAC;IAEV,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;CACtB"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { SqAddressAutocompleteProps, SqAddressAutocompleteSlots, SqAddressAutocompleteSuggestion } from './SqAddressAutocomplete.types.js';
|
|
2
2
|
type __VLS_Slots = SqAddressAutocompleteSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<SqAddressAutocompleteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
clear: () => any;
|
|
4
5
|
search: (query: string) => any;
|
|
5
6
|
select: (suggestion: SqAddressAutocompleteSuggestion) => any;
|
|
6
7
|
"update:modelValue": (value: string) => any;
|
|
7
8
|
focus: (event: FocusEvent) => any;
|
|
8
9
|
blur: (event: FocusEvent) => any;
|
|
9
10
|
geolocate: () => any;
|
|
10
|
-
clear: () => any;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<SqAddressAutocompleteProps> & Readonly<{
|
|
12
|
+
onClear?: (() => any) | undefined;
|
|
12
13
|
onSearch?: ((query: string) => any) | undefined;
|
|
13
14
|
onSelect?: ((suggestion: SqAddressAutocompleteSuggestion) => any) | undefined;
|
|
14
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
16
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
16
17
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
17
18
|
onGeolocate?: (() => any) | undefined;
|
|
18
|
-
onClear?: (() => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqAddressAutocomplete.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SqAddressAutocomplete/SqAddressAutocomplete.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SqAddressAutocomplete.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SqAddressAutocomplete/SqAddressAutocomplete.vue"],"names":[],"mappings":"AA4eA,OAAO,KAAK,EAEV,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,8BAA8B,CAAC;AAoCtC,KAAK,WAAW,GAAG,0BAA0B,CAAC;AAinB9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import './SqAddressAutocomplete.css';
|
|
2
|
+
import { useSqIcons } from "../../icons/SqIcons.js";
|
|
2
3
|
import { useSqTexts } from "../../texts/SqTexts.js";
|
|
3
4
|
import SqInput_default from "../SqInput/SqInput2.js";
|
|
4
5
|
import { sqAddressAutocompleteTexts } from "./SqAddressAutocomplete.texts.js";
|
|
5
6
|
/* empty css */
|
|
6
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, watch, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, watch, withCtx, withModifiers } from "vue";
|
|
7
8
|
//#region src/components/SqAddressAutocomplete/SqAddressAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
8
9
|
var _hoisted_1 = {
|
|
9
|
-
key:
|
|
10
|
+
key: 1,
|
|
10
11
|
class: "sq-spinner-icon",
|
|
11
12
|
viewBox: "0 0 24 24",
|
|
12
13
|
fill: "none",
|
|
@@ -14,13 +15,25 @@ var _hoisted_1 = {
|
|
|
14
15
|
focusable: "false"
|
|
15
16
|
};
|
|
16
17
|
var _hoisted_2 = ["aria-label"];
|
|
17
|
-
var _hoisted_3 =
|
|
18
|
-
|
|
18
|
+
var _hoisted_3 = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "sq-address-autocomplete__clear-icon",
|
|
21
|
+
viewBox: "0 0 24 24",
|
|
22
|
+
fill: "none",
|
|
23
|
+
stroke: "currentColor",
|
|
24
|
+
"stroke-width": "2",
|
|
25
|
+
"stroke-linecap": "round",
|
|
26
|
+
"aria-hidden": "true",
|
|
27
|
+
focusable: "false"
|
|
28
|
+
};
|
|
29
|
+
var _hoisted_4 = ["id", "aria-label"];
|
|
30
|
+
var _hoisted_5 = [
|
|
19
31
|
"id",
|
|
20
32
|
"aria-selected",
|
|
21
33
|
"onMousedown"
|
|
22
34
|
];
|
|
23
|
-
var
|
|
35
|
+
var _hoisted_6 = {
|
|
36
|
+
key: 1,
|
|
24
37
|
class: "sq-address-autocomplete__option-icon",
|
|
25
38
|
viewBox: "0 0 24 24",
|
|
26
39
|
fill: "none",
|
|
@@ -31,12 +44,23 @@ var _hoisted_5 = {
|
|
|
31
44
|
"aria-hidden": "true",
|
|
32
45
|
focusable: "false"
|
|
33
46
|
};
|
|
34
|
-
var
|
|
35
|
-
var
|
|
47
|
+
var _hoisted_7 = { class: "sq-address-autocomplete__option-label" };
|
|
48
|
+
var _hoisted_8 = {
|
|
36
49
|
key: 1,
|
|
37
50
|
class: "sq-address-autocomplete__empty"
|
|
38
51
|
};
|
|
39
|
-
var
|
|
52
|
+
var _hoisted_9 = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "sq-address-autocomplete__option-icon",
|
|
55
|
+
viewBox: "0 0 24 24",
|
|
56
|
+
fill: "none",
|
|
57
|
+
stroke: "currentColor",
|
|
58
|
+
"stroke-width": "1.75",
|
|
59
|
+
"stroke-linecap": "round",
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
focusable: "false"
|
|
62
|
+
};
|
|
63
|
+
var _hoisted_10 = {
|
|
40
64
|
class: "sq-address-autocomplete__sr-only",
|
|
41
65
|
role: "status"
|
|
42
66
|
};
|
|
@@ -89,7 +113,8 @@ var SqAddressAutocomplete_vue_vue_type_script_setup_true_lang_default = /*@__PUR
|
|
|
89
113
|
type: Boolean,
|
|
90
114
|
default: false
|
|
91
115
|
},
|
|
92
|
-
texts: {}
|
|
116
|
+
texts: {},
|
|
117
|
+
icons: {}
|
|
93
118
|
},
|
|
94
119
|
emits: [
|
|
95
120
|
"update:modelValue",
|
|
@@ -104,6 +129,7 @@ var SqAddressAutocomplete_vue_vue_type_script_setup_true_lang_default = /*@__PUR
|
|
|
104
129
|
/** Champ d'adresse : un `SqInput` en `role="combobox"` et la liste qu'il déplie. Il ne
|
|
105
130
|
* cherche pas les adresses, et douze écarts avec la source sont dans DIVERGENCES.md. */
|
|
106
131
|
const emit = __emit;
|
|
132
|
+
const sqIcons = useSqIcons(() => __props.icons);
|
|
107
133
|
const attrs = useAttrs();
|
|
108
134
|
const rootAttrs = computed(() => ({
|
|
109
135
|
...attrs["class"] !== void 0 && { class: attrs["class"] },
|
|
@@ -248,6 +274,7 @@ var SqAddressAutocomplete_vue_vue_type_script_setup_true_lang_default = /*@__PUR
|
|
|
248
274
|
onFocusout: onFocusOut
|
|
249
275
|
}), [
|
|
250
276
|
createVNode(SqInput_default, mergeProps({ autocomplete: "off" }, inputAttrs.value, {
|
|
277
|
+
icons: __props.icons,
|
|
251
278
|
"model-value": __props.modelValue,
|
|
252
279
|
label: __props.label,
|
|
253
280
|
"label-hidden": __props.labelHidden,
|
|
@@ -276,32 +303,38 @@ var SqAddressAutocomplete_vue_vue_type_script_setup_true_lang_default = /*@__PUR
|
|
|
276
303
|
key: "0"
|
|
277
304
|
} : void 0, busy.value || showClear.value ? {
|
|
278
305
|
name: "iconRight",
|
|
279
|
-
fn: withCtx(() => [busy.value ? (openBlock(),
|
|
306
|
+
fn: withCtx(() => [busy.value && unref(sqIcons)["regular-spinner"] ? (openBlock(), createBlock(resolveDynamicComponent(unref(sqIcons)["regular-spinner"]), {
|
|
307
|
+
key: 0,
|
|
308
|
+
class: "sq-spinner-icon",
|
|
309
|
+
"aria-hidden": "true",
|
|
310
|
+
focusable: "false"
|
|
311
|
+
})) : busy.value ? (openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[3] || (_cache[3] = [createElementVNode("circle", {
|
|
280
312
|
cx: "12",
|
|
281
313
|
cy: "12",
|
|
282
314
|
r: "9",
|
|
283
315
|
stroke: "currentColor",
|
|
316
|
+
"stroke-opacity": "0.25",
|
|
317
|
+
"stroke-width": "3"
|
|
318
|
+
}, null, -1), createElementVNode("path", {
|
|
319
|
+
d: "M21 12a9 9 0 0 0-9-9",
|
|
320
|
+
stroke: "currentColor",
|
|
284
321
|
"stroke-width": "3",
|
|
285
|
-
"stroke-linecap": "round"
|
|
286
|
-
"stroke-dasharray": "14 42"
|
|
322
|
+
"stroke-linecap": "round"
|
|
287
323
|
}, null, -1)])])) : (openBlock(), createElementBlock("button", {
|
|
288
|
-
key:
|
|
324
|
+
key: 2,
|
|
289
325
|
type: "button",
|
|
290
326
|
class: "sq-address-autocomplete__clear",
|
|
291
327
|
"aria-label": unref(t).clear,
|
|
292
328
|
onClick: onClear
|
|
293
|
-
}, [
|
|
329
|
+
}, [unref(sqIcons)["regular-xmark"] ? (openBlock(), createBlock(resolveDynamicComponent(unref(sqIcons)["regular-xmark"]), {
|
|
330
|
+
key: 0,
|
|
294
331
|
class: "sq-address-autocomplete__clear-icon",
|
|
295
|
-
viewBox: "0 0 24 24",
|
|
296
|
-
fill: "none",
|
|
297
|
-
stroke: "currentColor",
|
|
298
|
-
"stroke-width": "2",
|
|
299
|
-
"stroke-linecap": "round",
|
|
300
332
|
"aria-hidden": "true",
|
|
301
333
|
focusable: "false"
|
|
302
|
-
}, [createElementVNode("path", { d: "m6 6 12 12M18 6 6 18" }
|
|
334
|
+
})) : (openBlock(), createElementBlock("svg", _hoisted_3, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "m6 6 12 12M18 6 6 18" }, null, -1)])]))], 8, _hoisted_2))]),
|
|
303
335
|
key: "1"
|
|
304
336
|
} : void 0]), 1040, [
|
|
337
|
+
"icons",
|
|
305
338
|
"model-value",
|
|
306
339
|
"label",
|
|
307
340
|
"label-hidden",
|
|
@@ -336,7 +369,12 @@ var SqAddressAutocomplete_vue_vue_type_script_setup_true_lang_default = /*@__PUR
|
|
|
336
369
|
"aria-selected": index === activeIndex.value,
|
|
337
370
|
class: normalizeClass(["sq-address-autocomplete__option", { "sq-address-autocomplete__option--active": index === activeIndex.value }]),
|
|
338
371
|
onMousedown: ($event) => selectAt(index)
|
|
339
|
-
}, [(
|
|
372
|
+
}, [unref(sqIcons)[option.kind === "geolocate" ? "regular-crosshairs" : "regular-location-dot"] ? (openBlock(), createBlock(resolveDynamicComponent(unref(sqIcons)[option.kind === "geolocate" ? "regular-crosshairs" : "regular-location-dot"]), {
|
|
373
|
+
key: 0,
|
|
374
|
+
class: "sq-address-autocomplete__option-icon",
|
|
375
|
+
"aria-hidden": "true",
|
|
376
|
+
focusable: "false"
|
|
377
|
+
})) : (openBlock(), createElementBlock("svg", _hoisted_6, [option.kind === "geolocate" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[5] || (_cache[5] = createElementVNode("circle", {
|
|
340
378
|
cx: "12",
|
|
341
379
|
cy: "12",
|
|
342
380
|
r: "6.5"
|
|
@@ -344,34 +382,30 @@ var SqAddressAutocomplete_vue_vue_type_script_setup_true_lang_default = /*@__PUR
|
|
|
344
382
|
cx: "12",
|
|
345
383
|
cy: "9.3",
|
|
346
384
|
r: "2.5"
|
|
347
|
-
}, null, -1))], 64))])), createElementVNode("span",
|
|
385
|
+
}, null, -1))], 64))])), createElementVNode("span", _hoisted_7, [option.kind === "geolocate" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(unref(t).geolocate), 1)], 64)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(segments(option.suggestion.label), (segment) => {
|
|
348
386
|
return openBlock(), createElementBlock("span", {
|
|
349
387
|
key: segment.key,
|
|
350
388
|
class: normalizeClass({ "sq-address-autocomplete__match": segment.match })
|
|
351
389
|
}, toDisplayString(segment.text), 3);
|
|
352
|
-
}), 128))])], 42,
|
|
353
|
-
}), 128))], 8,
|
|
390
|
+
}), 128))])], 42, _hoisted_5);
|
|
391
|
+
}), 128))], 8, _hoisted_4)) : createCommentVNode("", true), showEmpty.value ? (openBlock(), createElementBlock("p", _hoisted_8, [unref(sqIcons)["regular-circle-exclamation"] ? (openBlock(), createBlock(resolveDynamicComponent(unref(sqIcons)["regular-circle-exclamation"]), {
|
|
392
|
+
key: 0,
|
|
354
393
|
class: "sq-address-autocomplete__option-icon",
|
|
355
|
-
viewBox: "0 0 24 24",
|
|
356
|
-
fill: "none",
|
|
357
|
-
stroke: "currentColor",
|
|
358
|
-
"stroke-width": "1.75",
|
|
359
|
-
"stroke-linecap": "round",
|
|
360
394
|
"aria-hidden": "true",
|
|
361
395
|
focusable: "false"
|
|
362
|
-
}, [
|
|
396
|
+
})) : (openBlock(), createElementBlock("svg", _hoisted_9, [..._cache[9] || (_cache[9] = [
|
|
363
397
|
createElementVNode("circle", {
|
|
364
398
|
cx: "12",
|
|
365
399
|
cy: "12",
|
|
366
400
|
r: "9.2"
|
|
367
|
-
}),
|
|
368
|
-
createElementVNode("path", { d: "M12 7.5v5.5" }),
|
|
401
|
+
}, null, -1),
|
|
402
|
+
createElementVNode("path", { d: "M12 7.5v5.5" }, null, -1),
|
|
369
403
|
createElementVNode("path", {
|
|
370
404
|
d: "M12 16.5h.01",
|
|
371
405
|
"stroke-width": "2.5"
|
|
372
|
-
})
|
|
373
|
-
]
|
|
374
|
-
createElementVNode("p",
|
|
406
|
+
}, null, -1)
|
|
407
|
+
])])), createTextVNode(" " + toDisplayString(unref(t).noResults), 1)])) : createCommentVNode("", true)], 34)) : createCommentVNode("", true),
|
|
408
|
+
createElementVNode("p", _hoisted_10, toDisplayString(announcement.value), 1)
|
|
375
409
|
], 16);
|
|
376
410
|
};
|
|
377
411
|
}
|