|
61 | 61 | v-else-if="!input.defaults && input.type === eFT.FILE"
|
62 | 62 | :theme="theme"
|
63 | 63 | :disabled="readonly"
|
64 |
| - class="--flx" |
| 64 | + class="--flx --width" |
65 | 65 | :file-prefix="_.snakeCase(input.placeholder)"
|
66 | 66 | :model-value="modelValue"
|
67 | 67 | :invalid="isInvalidByValidation"
|
|
239 | 239 | <!-- TODO: build schedule input component -->
|
240 | 240 | <p>Schedule Component Here</p>
|
241 | 241 | </FormInputNValues>
|
242 |
| - <label v-else-if="input.type === eFT.BOOLEAN" class="--flx"> |
243 |
| - <BoxMessage :theme="theme" class="--txtAlign" :active="models[i].value" button> |
244 |
| - <!-- TODO: use switch type (unsupported style) --> |
245 |
| - <InputToggle |
246 |
| - v-model="models[i].value" |
247 |
| - v-bind="inputProps" |
248 |
| - :placeholder="getInputPlaceholder()" |
249 |
| - type="checkbox" |
250 |
| - :theme="theme" |
251 |
| - :disabled="readonly" |
252 |
| - full-width |
253 |
| - show-placeholder |
254 |
| - > |
255 |
| - <p v-if="input.placeholder" class="--txtSize-sm --txtWeight --txtWrap"> |
256 |
| - {{ tet(input.placeholder) }} |
257 |
| - </p> |
258 |
| - </InputToggle> |
259 |
| - </BoxMessage> |
260 |
| - </label> |
| 242 | + <BaseBox |
| 243 | + v-else-if="input.type === eFT.BOOLEAN" |
| 244 | + el="label" |
| 245 | + class="--flx --width --txtAlign" |
| 246 | + :theme="theme" |
| 247 | + :active="models[i].value" |
| 248 | + button |
| 249 | + > |
| 250 | + <!-- TODO: use switch type (unsupported style) --> |
| 251 | + <InputToggle |
| 252 | + v-model="models[i].value" |
| 253 | + v-bind="inputProps" |
| 254 | + :placeholder="getInputPlaceholder()" |
| 255 | + type="checkbox" |
| 256 | + :theme="theme" |
| 257 | + :disabled="readonly" |
| 258 | + full-width |
| 259 | + show-placeholder |
| 260 | + > |
| 261 | + <p v-if="input.placeholder" class="--txtSize-sm --txtWeight --txtWrap"> |
| 262 | + {{ tet(input.placeholder) }} |
| 263 | + </p> |
| 264 | + </InputToggle> |
| 265 | + </BaseBox> |
261 | 266 | <FormInputOptions
|
262 | 267 | v-else-if="input.type === eFT.SELECT || input.type === eFT.SELECT_FILTER"
|
263 | 268 | v-slot="{ options }"
|
|
324 | 329 | useForm,
|
325 | 330 | } from "@open-xamu-co/ui-common-helpers";
|
326 | 331 |
|
| 332 | + import BaseBox from "../base/Box.vue"; |
327 | 333 | import BaseErrorBoundary from "../base/ErrorBoundary.vue";
|
328 | 334 | import IconFa from "../icon/Fa.vue";
|
329 | 335 | import ActionButton from "../action/Button.vue";
|
|
334 | 340 | import InputFile from "../input/File.vue";
|
335 | 341 | import SelectSimple from "../select/Simple.vue";
|
336 | 342 | import SelectFilter from "../select/Filter.vue";
|
337 |
| - import BoxMessage from "../box/Message.vue"; |
338 | 343 |
|
339 | 344 | // input helper components
|
340 | 345 | import FormInputOptions from "./InputOptions.vue";
|
|
0 commit comments