cja-phoenix 1.2.39 → 1.2.41

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 (184) hide show
  1. package/dist/module.d.mts +6 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +29 -16
  4. package/dist/runtime/assets/iconia/fonts/CGG-icomoon.svg +94 -0
  5. package/dist/runtime/assets/iconia/fonts/CGG-icomoon.ttf +0 -0
  6. package/dist/runtime/assets/iconia/fonts/CGG-icomoon.woff +0 -0
  7. package/dist/runtime/assets/iconia/selection.json +1 -0
  8. package/dist/runtime/assets/iconia/style.css +281 -0
  9. package/dist/runtime/assets/scss/main.scss +6 -0
  10. package/dist/runtime/assets/scss/mixins/_funnel.scss +15 -0
  11. package/dist/runtime/assets/scss/mixins/_index.scss +46 -0
  12. package/dist/runtime/assets/scss/mixins/_media-queries.scss +109 -0
  13. package/dist/runtime/assets/scss/mixins/_results.scss +235 -0
  14. package/dist/runtime/assets/scss/tippy.scss +31 -0
  15. package/dist/runtime/assets/scss/variables/_breakpoints.scss +18 -0
  16. package/dist/runtime/assets/scss/variables/_colors.scss +100 -0
  17. package/dist/runtime/assets/scss/variables/_forms.scss +121 -0
  18. package/dist/runtime/assets/scss/variables/_grid.scss +12 -0
  19. package/dist/runtime/assets/scss/variables/_index.scss +6 -0
  20. package/dist/runtime/assets/scss/variables/_shadows.scss +7 -0
  21. package/dist/runtime/assets/scss/variables/_z-index.scss +6 -0
  22. package/dist/runtime/components/CjaButton.d.vue.ts +33 -0
  23. package/dist/runtime/components/CjaButton.vue +437 -0
  24. package/dist/runtime/components/CjaButton.vue.d.ts +33 -0
  25. package/dist/runtime/components/CollapseContainer.d.vue.ts +35 -0
  26. package/dist/runtime/components/CollapseContainer.vue +112 -0
  27. package/dist/runtime/components/CollapseContainer.vue.d.ts +35 -0
  28. package/dist/runtime/components/ContentTabs.d.vue.ts +23 -0
  29. package/dist/runtime/components/ContentTabs.vue +103 -0
  30. package/dist/runtime/components/ContentTabs.vue.d.ts +23 -0
  31. package/dist/runtime/components/Drawer.d.vue.ts +52 -0
  32. package/dist/runtime/components/Drawer.vue +169 -0
  33. package/dist/runtime/components/Drawer.vue.d.ts +52 -0
  34. package/dist/runtime/components/FixedContainer.d.vue.ts +37 -0
  35. package/dist/runtime/components/FixedContainer.vue +95 -0
  36. package/dist/runtime/components/FixedContainer.vue.d.ts +37 -0
  37. package/dist/runtime/components/GridContainer.d.vue.ts +13 -0
  38. package/dist/runtime/components/GridContainer.vue +37 -0
  39. package/dist/runtime/components/GridContainer.vue.d.ts +13 -0
  40. package/dist/runtime/components/GridItem.d.vue.ts +29 -0
  41. package/dist/runtime/components/GridItem.vue +93 -0
  42. package/dist/runtime/components/GridItem.vue.d.ts +29 -0
  43. package/dist/runtime/components/InfoMessage.d.vue.ts +28 -0
  44. package/dist/runtime/components/InfoMessage.vue +141 -0
  45. package/dist/runtime/components/InfoMessage.vue.d.ts +28 -0
  46. package/dist/runtime/components/LoadingSpinner.d.vue.ts +10 -0
  47. package/dist/runtime/components/LoadingSpinner.vue +39 -0
  48. package/dist/runtime/components/LoadingSpinner.vue.d.ts +10 -0
  49. package/dist/runtime/components/Modal.d.vue.ts +39 -0
  50. package/dist/runtime/components/Modal.vue +195 -0
  51. package/dist/runtime/components/Modal.vue.d.ts +39 -0
  52. package/dist/runtime/components/Scaffold.d.vue.ts +13 -0
  53. package/dist/runtime/components/Scaffold.vue +3 -0
  54. package/dist/runtime/components/Scaffold.vue.d.ts +13 -0
  55. package/dist/runtime/components/StickyContainer.d.vue.ts +21 -0
  56. package/dist/runtime/components/StickyContainer.vue +57 -0
  57. package/dist/runtime/components/StickyContainer.vue.d.ts +21 -0
  58. package/dist/runtime/components/form/CheckboxInput.d.vue.ts +42 -0
  59. package/dist/runtime/components/form/CheckboxInput.vue +163 -0
  60. package/dist/runtime/components/form/CheckboxInput.vue.d.ts +42 -0
  61. package/dist/runtime/components/form/CheckboxInputList.d.vue.ts +37 -0
  62. package/dist/runtime/components/form/CheckboxInputList.vue +84 -0
  63. package/dist/runtime/components/form/CheckboxInputList.vue.d.ts +37 -0
  64. package/dist/runtime/components/form/CurrencyInput.d.vue.ts +37 -0
  65. package/dist/runtime/components/form/CurrencyInput.vue +134 -0
  66. package/dist/runtime/components/form/CurrencyInput.vue.d.ts +37 -0
  67. package/dist/runtime/components/form/DateInput.d.vue.ts +40 -0
  68. package/dist/runtime/components/form/DateInput.vue +325 -0
  69. package/dist/runtime/components/form/DateInput.vue.d.ts +40 -0
  70. package/dist/runtime/components/form/FileInput.d.vue.ts +46 -0
  71. package/dist/runtime/components/form/FileInput.vue +202 -0
  72. package/dist/runtime/components/form/FileInput.vue.d.ts +46 -0
  73. package/dist/runtime/components/form/NumberInput.d.vue.ts +41 -0
  74. package/dist/runtime/components/form/NumberInput.vue +162 -0
  75. package/dist/runtime/components/form/NumberInput.vue.d.ts +41 -0
  76. package/dist/runtime/components/form/PhoneInput.d.vue.ts +44 -0
  77. package/dist/runtime/components/form/PhoneInput.vue +143 -0
  78. package/dist/runtime/components/form/PhoneInput.vue.d.ts +44 -0
  79. package/dist/runtime/components/form/RadioInput.d.vue.ts +42 -0
  80. package/dist/runtime/components/form/RadioInput.vue +181 -0
  81. package/dist/runtime/components/form/RadioInput.vue.d.ts +42 -0
  82. package/dist/runtime/components/form/RadioInputList.d.vue.ts +57 -0
  83. package/dist/runtime/components/form/RadioInputList.vue +130 -0
  84. package/dist/runtime/components/form/RadioInputList.vue.d.ts +57 -0
  85. package/dist/runtime/components/form/SelectInput.d.vue.ts +46 -0
  86. package/dist/runtime/components/form/SelectInput.vue +362 -0
  87. package/dist/runtime/components/form/SelectInput.vue.d.ts +46 -0
  88. package/dist/runtime/components/form/SelectionTiles.d.vue.ts +44 -0
  89. package/dist/runtime/components/form/SelectionTiles.vue +329 -0
  90. package/dist/runtime/components/form/SelectionTiles.vue.d.ts +44 -0
  91. package/dist/runtime/components/form/SliderInput.d.vue.ts +51 -0
  92. package/dist/runtime/components/form/SliderInput.vue +175 -0
  93. package/dist/runtime/components/form/SliderInput.vue.d.ts +51 -0
  94. package/dist/runtime/components/form/TextInput.d.vue.ts +56 -0
  95. package/dist/runtime/components/form/TextInput.vue +227 -0
  96. package/dist/runtime/components/form/TextInput.vue.d.ts +56 -0
  97. package/dist/runtime/components/form/TextareaInput.d.vue.ts +37 -0
  98. package/dist/runtime/components/form/TextareaInput.vue +76 -0
  99. package/dist/runtime/components/form/TextareaInput.vue.d.ts +37 -0
  100. package/dist/runtime/components/form/TileCheckboxInput.d.vue.ts +40 -0
  101. package/dist/runtime/components/form/TileCheckboxInput.vue +108 -0
  102. package/dist/runtime/components/form/TileCheckboxInput.vue.d.ts +40 -0
  103. package/dist/runtime/components/form/ToggleInput.d.vue.ts +43 -0
  104. package/dist/runtime/components/form/ToggleInput.vue +119 -0
  105. package/dist/runtime/components/form/ToggleInput.vue.d.ts +43 -0
  106. package/dist/runtime/components/form/structure/Container.d.vue.ts +16 -0
  107. package/dist/runtime/components/form/structure/Container.vue +31 -0
  108. package/dist/runtime/components/form/structure/Container.vue.d.ts +16 -0
  109. package/dist/runtime/components/form/structure/Description.d.vue.ts +9 -0
  110. package/dist/runtime/components/form/structure/Description.vue +26 -0
  111. package/dist/runtime/components/form/structure/Description.vue.d.ts +9 -0
  112. package/dist/runtime/components/form/structure/Error.d.vue.ts +9 -0
  113. package/dist/runtime/components/form/structure/Error.vue +23 -0
  114. package/dist/runtime/components/form/structure/Error.vue.d.ts +9 -0
  115. package/dist/runtime/components/form/structure/Title.d.vue.ts +12 -0
  116. package/dist/runtime/components/form/structure/Title.vue +43 -0
  117. package/dist/runtime/components/form/structure/Title.vue.d.ts +12 -0
  118. package/dist/runtime/components/funnel/Header.d.vue.ts +18 -0
  119. package/dist/runtime/components/funnel/Header.vue +62 -0
  120. package/dist/runtime/components/funnel/Header.vue.d.ts +18 -0
  121. package/dist/runtime/composables/useCjaGtm.d.ts +19 -0
  122. package/dist/runtime/composables/useCjaGtm.js +164 -0
  123. package/dist/runtime/composables/useFunnelConfig.d.ts +11 -0
  124. package/dist/runtime/composables/useFunnelConfig.js +51 -0
  125. package/dist/runtime/composables/useFunnelSummary.d.ts +14 -0
  126. package/dist/runtime/composables/useFunnelSummary.js +16 -0
  127. package/dist/runtime/composables/useHeaderHeight.d.ts +3 -0
  128. package/dist/runtime/composables/useHeaderHeight.js +24 -0
  129. package/dist/runtime/composables/useJourneyConfig.d.ts +11 -0
  130. package/dist/runtime/composables/useJourneyConfig.js +13 -0
  131. package/dist/runtime/composables/useValidateForm.d.ts +11 -0
  132. package/dist/runtime/composables/useValidateForm.js +33 -0
  133. package/dist/runtime/data/dialCodes.d.ts +7 -0
  134. package/dist/runtime/data/dialCodes.js +1466 -0
  135. package/dist/runtime/data/phoneDigits.d.ts +2 -0
  136. package/dist/runtime/data/phoneDigits.js +231 -0
  137. package/dist/runtime/plugins/tippy.d.ts +4 -0
  138. package/dist/runtime/plugins/tippy.js +12 -0
  139. package/dist/runtime/plugins/v-calendar.d.ts +3 -0
  140. package/dist/runtime/plugins/v-calendar.js +6 -0
  141. package/dist/runtime/server/tsconfig.json +3 -0
  142. package/dist/runtime/types/Form.d.ts +34 -0
  143. package/dist/runtime/types/Form.js +20 -0
  144. package/dist/runtime/types/Grid.d.ts +4 -0
  145. package/dist/runtime/types/Grid.js +0 -0
  146. package/dist/runtime/types/Icon.d.ts +2 -0
  147. package/dist/runtime/types/Icon.js +85 -0
  148. package/dist/runtime/types/JourneyConfig.d.ts +9 -0
  149. package/dist/runtime/types/JourneyConfig.js +0 -0
  150. package/dist/runtime/types/index.d.ts +4 -0
  151. package/dist/runtime/types/index.js +4 -0
  152. package/dist/runtime/utils/applyProductData.d.ts +10 -0
  153. package/dist/runtime/utils/applyProductData.js +22 -0
  154. package/dist/runtime/utils/convertDate.d.ts +5 -0
  155. package/dist/runtime/utils/convertDate.js +17 -0
  156. package/dist/runtime/utils/findScrollAncestor.d.ts +1 -0
  157. package/dist/runtime/utils/findScrollAncestor.js +14 -0
  158. package/dist/runtime/utils/formValidations.d.ts +78 -0
  159. package/dist/runtime/utils/formValidations.js +180 -0
  160. package/dist/runtime/utils/formatValue.d.ts +4 -0
  161. package/dist/runtime/utils/formatValue.js +20 -0
  162. package/dist/runtime/utils/getAbTestVersion.d.ts +9 -0
  163. package/dist/runtime/utils/getAbTestVersion.js +48 -0
  164. package/dist/runtime/utils/getCalendarUrl.d.ts +8 -0
  165. package/dist/runtime/utils/getCalendarUrl.js +24 -0
  166. package/dist/runtime/utils/getFromUrl.d.ts +2 -0
  167. package/dist/runtime/utils/getFromUrl.js +25 -0
  168. package/dist/runtime/utils/getStoryblokUrl.d.ts +71 -0
  169. package/dist/runtime/utils/getStoryblokUrl.js +35 -0
  170. package/dist/runtime/utils/jsonReviver.d.ts +1 -0
  171. package/dist/runtime/utils/jsonReviver.js +18 -0
  172. package/dist/runtime/utils/mediaBreakpoints.d.ts +28 -0
  173. package/dist/runtime/utils/mediaBreakpoints.js +28 -0
  174. package/dist/runtime/utils/toggleScroll.d.ts +1 -0
  175. package/dist/runtime/utils/toggleScroll.js +6 -0
  176. package/dist/runtime/utils/updateForm.d.ts +11 -0
  177. package/dist/runtime/utils/updateForm.js +74 -0
  178. package/dist/runtime/utils/updateMarketingConsent.d.ts +4 -0
  179. package/dist/runtime/utils/updateMarketingConsent.js +13 -0
  180. package/dist/runtime/utils/uploadFile.d.ts +8 -0
  181. package/dist/runtime/utils/uploadFile.js +13 -0
  182. package/dist/types.d.mts +6 -10
  183. package/package.json +9 -8
  184. package/dist/module.d.cts +0 -2
@@ -0,0 +1,362 @@
1
+ <template>
2
+ <FormStructureContainer v-bind="{ layout }">
3
+ <FormStructureTitle
4
+ v-if="title"
5
+ v-bind="{ title, tooltip, size, disabled }"
6
+ />
7
+
8
+ <div
9
+ ref="inputEl"
10
+ class="input-container-select"
11
+ :class="{ error: errorMessage }"
12
+ >
13
+ <div
14
+ class="select-toggle"
15
+ :class="[`size-${size}`, { open, disabled }]"
16
+ @click="toggleCollapse()"
17
+ >
18
+ <div class="select-display">
19
+ <div
20
+ class="text-wrapper"
21
+ :class="{ placeholder: !displayValue }"
22
+ v-html="displayValue || placeholder"
23
+ />
24
+ </div>
25
+ <span class="m-cgg-icon--chevron-down" />
26
+ </div>
27
+
28
+ <select
29
+ v-model="model"
30
+ :aria-label="label || title"
31
+ v-bind="{ disabled }"
32
+ >
33
+ <option
34
+ v-for="option in options"
35
+ :key="option.value"
36
+ :value="option.value"
37
+ :disabled="option.disabled"
38
+ >
39
+ {{ option.label }}
40
+ </option>
41
+ </select>
42
+
43
+ <Teleport to="body">
44
+ <Transition name="fade" @enter="calcPosition">
45
+ <div v-if="open" ref="collapseEl" class="select-collapse">
46
+ <FormTextInput
47
+ v-if="searchFilter"
48
+ v-model="search"
49
+ size="sm"
50
+ :placeholder="searchFilter.placeholder"
51
+ icon="m-cgg-icon--search"
52
+ />
53
+ <div class="list-wrapper">
54
+ <ul v-if="!props.multiSelect">
55
+ <li
56
+ v-for="option in filteredOptions"
57
+ :key="option.value"
58
+ :class="{ disabled: option.disabled }"
59
+ @click="!option.disabled && handleClick(option.value)"
60
+ v-html="option.label"
61
+ />
62
+ </ul>
63
+ <FormCheckboxInputList
64
+ v-else
65
+ v-model="model"
66
+ :options="filteredOptions"
67
+ name="multiselect-input-options"
68
+ />
69
+ <div
70
+ v-if="searchFilter && filteredOptions?.length == 0"
71
+ class="empty-search-results"
72
+ >
73
+ {{ searchFilter.noResults }}
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </Transition>
78
+ </Teleport>
79
+ </div>
80
+
81
+ <FormStructureError
82
+ v-if="errorMessage && errorDisplay"
83
+ v-bind="{ size, errorMessage }"
84
+ />
85
+ </FormStructureContainer>
86
+ </template>
87
+
88
+ <script setup>
89
+ import { findScrollAncestor } from "../../utils/findScrollAncestor";
90
+ import { useField } from "vee-validate";
91
+ import { computed, onUnmounted, ref } from "vue";
92
+ const props = defineProps({
93
+ title: { type: String, required: false },
94
+ label: { type: String, required: false },
95
+ tooltip: { type: String, required: false },
96
+ placeholder: { type: null, required: false, default: "Selecionar" },
97
+ layout: { type: String, required: false, default: "vertical" },
98
+ size: { type: String, required: false, default: "md" },
99
+ error: { type: String, required: false },
100
+ validation: { type: Object, required: false },
101
+ validationMode: { type: String, required: false, default: "change" },
102
+ errorDisplay: { type: Boolean, required: false, default: true },
103
+ id: { type: null, required: false },
104
+ disabled: { type: null, required: false, default: false },
105
+ options: { type: null, required: true },
106
+ multiSelect: { type: Boolean, required: false },
107
+ relativeEl: { type: null, required: false },
108
+ searchFilter: { type: Object, required: false }
109
+ });
110
+ const model = defineModel({ type: null, ...{
111
+ required: true
112
+ } });
113
+ const open = ref(false);
114
+ const search = ref("");
115
+ const inputEl = ref();
116
+ const collapseEl = ref();
117
+ const { errorMessage, meta, handleBlur, validate } = useField(
118
+ "input",
119
+ props.validation,
120
+ {
121
+ validateOnValueUpdate: props.validationMode == "change",
122
+ syncVModel: true
123
+ }
124
+ );
125
+ const displayValue = computed(() => {
126
+ if (model.value !== void 0 && props.options) {
127
+ if (props.multiSelect) {
128
+ return props.options.filter((o) => model.value?.includes(o.value))?.map((o) => o.altLabel || o.label).join(", ");
129
+ } else {
130
+ const value = props.options.find((o) => o.value == model.value);
131
+ return value?.altLabel || value?.label;
132
+ }
133
+ }
134
+ return "";
135
+ });
136
+ const filteredOptions = computed(() => {
137
+ let procOptions = props.options;
138
+ if (procOptions?.length) {
139
+ if (search.value) {
140
+ procOptions = procOptions.filter(
141
+ (opt) => opt.label.toLowerCase().includes(search.value.toLowerCase()) || opt.searchTags?.some(
142
+ (t) => t.toLowerCase().includes(search.value.toLowerCase())
143
+ )
144
+ );
145
+ }
146
+ if (props.multiSelect) {
147
+ procOptions = procOptions.map((o) => ({
148
+ label: o.label,
149
+ value: o.value
150
+ }));
151
+ }
152
+ }
153
+ return procOptions;
154
+ });
155
+ const handleClick = (value) => {
156
+ if (!props.multiSelect) {
157
+ toggleCollapse();
158
+ }
159
+ if (props.multiSelect) {
160
+ if (!Array.isArray(model.value)) {
161
+ model.value = [model.value];
162
+ }
163
+ if (model.value.indexOf(value) >= 0) {
164
+ model.value.splice(model.value.indexOf(value), 1);
165
+ } else {
166
+ model.value.push(value);
167
+ }
168
+ } else {
169
+ model.value = value;
170
+ }
171
+ };
172
+ const closeSelect = (event) => {
173
+ if (!inputEl.value.contains(event.target) && !collapseEl.value.contains(event.target)) {
174
+ if (event.type == "scroll") {
175
+ collapseEl.value.style.transitionDuration = "0s";
176
+ }
177
+ toggleCollapse(event);
178
+ }
179
+ };
180
+ const toggleCollapse = (event) => {
181
+ if (!props.disabled) {
182
+ open.value = !open.value;
183
+ if (!open.value) {
184
+ setTimeout(() => {
185
+ search.value = "";
186
+ }, 300);
187
+ window.removeEventListener("click", closeSelect);
188
+ window.removeEventListener("scroll", closeSelect);
189
+ findScrollAncestor(inputEl.value).removeEventListener(
190
+ "scroll",
191
+ closeSelect
192
+ );
193
+ handleBlur(event, props.validationMode == "blur");
194
+ } else {
195
+ window.addEventListener("click", closeSelect);
196
+ window.addEventListener("scroll", closeSelect);
197
+ findScrollAncestor(inputEl.value).addEventListener("scroll", closeSelect);
198
+ }
199
+ }
200
+ };
201
+ const calcPosition = (el) => {
202
+ const elRect = el.getBoundingClientRect();
203
+ const inputRect = (props.relativeEl || inputEl.value).getBoundingClientRect();
204
+ const position = inputRect.y + inputRect.height + elRect.height > window.innerHeight ? "bottom" : "top";
205
+ el.style[position] = position == "bottom" ? `${window.innerHeight - inputRect.y + 4}px` : `${inputRect.y + inputRect.height + 4}px`;
206
+ el.style.left = `${inputRect.left}px`;
207
+ el.style.width = `${inputRect.width}px`;
208
+ };
209
+ onUnmounted(() => {
210
+ window.removeEventListener("click", closeSelect);
211
+ window.removeEventListener("scroll", closeSelect);
212
+ });
213
+ defineExpose({ errorMessage, meta, validate });
214
+ </script>
215
+
216
+ <style lang="scss" scoped>
217
+ .input-container-select {
218
+ position: relative;
219
+
220
+ .select-toggle {
221
+ @include input-template;
222
+ display: grid;
223
+ align-items: center;
224
+ gap: 8px;
225
+ cursor: pointer;
226
+ grid-template-columns: 1fr auto;
227
+
228
+ .select-display {
229
+ overflow: hidden;
230
+
231
+ .text-wrapper {
232
+ text-overflow: ellipsis;
233
+ overflow: hidden;
234
+ text-wrap-mode: nowrap;
235
+
236
+ &.placeholder {
237
+ color: $input-placeholder-color;
238
+ }
239
+ }
240
+ }
241
+
242
+ &.open {
243
+ border-color: $input-border-focus-color;
244
+
245
+ em {
246
+ transform: rotate(180deg);
247
+ }
248
+ }
249
+
250
+ &.disabled {
251
+ color: $light-grey;
252
+ cursor: auto;
253
+ pointer-events: none;
254
+ }
255
+
256
+ em {
257
+ display: flex;
258
+ align-items: center;
259
+ justify-content: center;
260
+ transition: all 0.3s ease-in-out;
261
+ }
262
+ }
263
+
264
+ select {
265
+ position: absolute;
266
+ top: 0;
267
+ left: 0;
268
+ opacity: 0;
269
+ pointer-events: none;
270
+ width: 100%;
271
+ }
272
+
273
+ &.error {
274
+ .select-toggle {
275
+ @include input-error;
276
+ }
277
+ }
278
+ }
279
+
280
+ @mixin select-dropdown-item {
281
+ transition: all 0.3s ease-in-out;
282
+ padding: 8px;
283
+ cursor: pointer;
284
+ user-select: none;
285
+ border-radius: $input-border-radius;
286
+
287
+ &:not(.disabled):hover {
288
+ background-color: $light-blue;
289
+ }
290
+
291
+ &.disabled {
292
+ color: $light-grey;
293
+ cursor: auto;
294
+ }
295
+ }
296
+
297
+ @mixin select-dropdown-list {
298
+ gap: 0;
299
+
300
+ li {
301
+ display: flex;
302
+ align-items: center;
303
+ overflow-x: hidden;
304
+ @include select-dropdown-item;
305
+ }
306
+ }
307
+
308
+ .select-collapse {
309
+ display: flex;
310
+ flex-direction: column;
311
+ gap: 8px;
312
+ position: fixed;
313
+ z-index: $level-select;
314
+ max-height: 400px;
315
+ overflow-y: auto;
316
+ background-color: $white;
317
+ border: 1px solid $light-grey;
318
+ transition: all 0.3s ease-in-out;
319
+ box-shadow: $box-shadow-s;
320
+ border-radius: $input-border-radius;
321
+ padding: 8px;
322
+
323
+ &.fade-enter-from,
324
+ &.fade-leave-to {
325
+ opacity: 0;
326
+ }
327
+
328
+ &.fade-enter-to,
329
+ &.fade-leave-from {
330
+ opacity: 1;
331
+ }
332
+
333
+ .list-wrapper {
334
+ overflow-y: auto;
335
+ font-size: 14px;
336
+ line-height: 17px;
337
+ }
338
+
339
+ ul {
340
+ padding: 0;
341
+ margin: 0;
342
+ list-style: none;
343
+ }
344
+
345
+ ul {
346
+ @include select-dropdown-list;
347
+ }
348
+
349
+ :deep(.input-list) {
350
+ gap: 0;
351
+
352
+ label {
353
+ width: 100%;
354
+ @include select-dropdown-item;
355
+ }
356
+ }
357
+
358
+ .empty-search-results {
359
+ padding: 8px;
360
+ }
361
+ }
362
+ </style>
@@ -0,0 +1,46 @@
1
+ import type { SelectOption } from "../../types/Form.js";
2
+ import { type InputHTMLAttributes } from "vue";
3
+ import type { Lazy, Schema } from "yup";
4
+ type __VLS_Props = {
5
+ title?: string;
6
+ label?: string;
7
+ tooltip?: string;
8
+ placeholder?: InputHTMLAttributes["placeholder"];
9
+ layout?: "vertical" | "horizontal";
10
+ size?: "sm" | "md" | "lg";
11
+ error?: string;
12
+ validation?: Schema | Lazy<any>;
13
+ validationMode?: "change" | "blur" | "none";
14
+ errorDisplay?: boolean;
15
+ id?: InputHTMLAttributes["id"];
16
+ disabled?: InputHTMLAttributes["disabled"];
17
+ options: SelectOption[] | undefined;
18
+ multiSelect?: boolean;
19
+ relativeEl?: any;
20
+ searchFilter?: {
21
+ placeholder: string;
22
+ noResults: string;
23
+ };
24
+ };
25
+ type __VLS_ModelProps = {
26
+ modelValue: any | undefined;
27
+ };
28
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
29
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
+ errorMessage: import("vue").Ref<string | undefined, string | undefined>;
31
+ meta: import("vee-validate").FieldMeta<unknown>;
32
+ validate: import("vee-validate").FieldValidator<unknown>;
33
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ "update:modelValue": (value: any) => any;
35
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
37
+ }>, {
38
+ disabled: boolean | "true" | "false";
39
+ size: "sm" | "md" | "lg";
40
+ errorDisplay: boolean;
41
+ validationMode: "change" | "blur" | "none";
42
+ layout: "vertical" | "horizontal";
43
+ placeholder: string;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import type { Icon } from "../../types/Icon.js";
2
+ import type { TileOption } from "../../types/Form.js";
3
+ import type { Lazy, Schema } from "yup";
4
+ type __VLS_Props = {
5
+ name: string;
6
+ icon?: Icon;
7
+ layout?: "list" | "grid" | "image";
8
+ options?: TileOption[];
9
+ gridColumns?: {
10
+ xs?: string;
11
+ sm?: string;
12
+ md?: string;
13
+ lg?: string;
14
+ xl?: string;
15
+ };
16
+ size?: "sm" | "md" | "lg";
17
+ multiselect?: boolean;
18
+ validation?: Schema | Lazy<any>;
19
+ validationMode?: "change" | "none";
20
+ errorDisplay?: boolean;
21
+ };
22
+ type __VLS_ModelProps = {
23
+ modelValue: any | any[];
24
+ };
25
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
26
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
27
+ errorMessage: import("vue").Ref<string | undefined, string | undefined>;
28
+ meta: import("vee-validate").FieldMeta<unknown>;
29
+ validate: import("vee-validate").FieldValidator<unknown>;
30
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ "click:option": (...args: any[]) => void;
32
+ "update:modelValue": (value: any) => void;
33
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
34
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
35
+ "onClick:option"?: ((...args: any[]) => any) | undefined;
36
+ }>, {
37
+ size: "sm" | "md" | "lg";
38
+ icon: Icon;
39
+ errorDisplay: boolean;
40
+ validationMode: "change" | "none";
41
+ layout: "list" | "grid" | "image";
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;