From 1a3edd5a1ec40cd33d534da3c6dc7f7fc5a74e08 Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Fri, 10 Oct 2025 23:58:44 +0700 Subject: [PATCH 1/7] dev: hotfix, moved combobox and datepicker --- app/components/app/bed/entry-form.vue | 2 +- app/components/app/chamber/entry-form.vue | 2 +- .../app/division-position/entry-form.vue | 2 +- app/components/app/encounter/entry-form.vue | 4 +-- app/components/app/floor/entry-form.vue | 2 +- .../app/installation/entry-form.vue | 2 +- .../app/patient/_common/select-ethnicity.vue | 2 +- .../app/patient/_common/select-job.vue | 2 +- .../_common/select-district.vue | 2 +- .../person-address/_common/select-postal.vue | 2 +- .../_common/select-province.vue | 2 +- .../person-address/_common/select-regency.vue | 2 +- .../person-address/_common/select-village.vue | 2 +- app/components/app/person/entry-form.vue | 2 +- app/components/app/room/entry-form.vue | 2 +- app/components/app/sep/entry-form.vue | 2 +- app/components/app/sep/small-entry.vue | 4 +-- .../app/specialist-intern/entry-form.vue | 2 +- app/components/app/specialist/entry-form.vue | 2 +- .../app/subspecialist/entry-form.vue | 2 +- app/components/app/unit/entry-form.vue | 2 +- app/components/app/warehouse/entry-form.vue | 2 +- .../pub/my-ui/{form => combobox}/combobox.vue | 18 ++++++------- app/components/pub/my-ui/combobox/index.ts | 25 +++++++++++++++++++ .../datepicker-single.vue | 0 25 files changed, 58 insertions(+), 33 deletions(-) rename app/components/pub/my-ui/{form => combobox}/combobox.vue (95%) create mode 100644 app/components/pub/my-ui/combobox/index.ts rename app/components/pub/my-ui/{form => datepicker}/datepicker-single.vue (100%) diff --git a/app/components/app/bed/entry-form.vue b/app/components/app/bed/entry-form.vue index 0b103cd0..f2b0c961 100644 --- a/app/components/app/bed/entry-form.vue +++ b/app/components/app/bed/entry-form.vue @@ -5,7 +5,7 @@ import Cell from '~/components/pub/my-ui/doc-entry/cell.vue' import Field from '~/components/pub/my-ui/doc-entry/field.vue' import Label from '~/components/pub/my-ui/doc-entry/label.vue' import Button from '~/components/pub/ui/button/Button.vue' -import Combobox from '~/components/pub/my-ui/form/combobox.vue' +import Combobox from '~/components/pub/my-ui/combobox/combobox.vue' // Constants import { infraGroupCodesKeys } from '~/lib/constants' diff --git a/app/components/app/chamber/entry-form.vue b/app/components/app/chamber/entry-form.vue index af8da097..f44a6745 100644 --- a/app/components/app/chamber/entry-form.vue +++ b/app/components/app/chamber/entry-form.vue @@ -5,7 +5,7 @@ import Cell from '~/components/pub/my-ui/doc-entry/cell.vue' import Field from '~/components/pub/my-ui/doc-entry/field.vue' import Label from '~/components/pub/my-ui/doc-entry/label.vue' import Button from '~/components/pub/ui/button/Button.vue' -import Combobox from '~/components/pub/my-ui/form/combobox.vue' +import Combobox from '~/components/pub/my-ui/combobox/combobox.vue' // Constants import { infraGroupCodesKeys } from '~/lib/constants' diff --git a/app/components/app/division-position/entry-form.vue b/app/components/app/division-position/entry-form.vue index 9e144e64..2525b49b 100644 --- a/app/components/app/division-position/entry-form.vue +++ b/app/components/app/division-position/entry-form.vue @@ -4,7 +4,7 @@ import Block from '~/components/pub/my-ui/doc-entry/block.vue' import Cell from '~/components/pub/my-ui/doc-entry/cell.vue' import Field from '~/components/pub/my-ui/doc-entry/field.vue' import Label from '~/components/pub/my-ui/doc-entry/label.vue' -import Combobox from '~/components/pub/my-ui/form/combobox.vue' +import Combobox from '~/components/pub/my-ui/combobox/combobox.vue' // Types import type { DivisionPositionFormData } from '~/schemas/division-position.schema' diff --git a/app/components/app/encounter/entry-form.vue b/app/components/app/encounter/entry-form.vue index 6f2ad074..fd6c8da9 100644 --- a/app/components/app/encounter/entry-form.vue +++ b/app/components/app/encounter/entry-form.vue @@ -5,9 +5,9 @@ import Block from '~/components/pub/my-ui/doc-entry/block.vue' import Cell from '~/components/pub/my-ui/doc-entry/cell.vue' import Field from '~/components/pub/my-ui/doc-entry/field.vue' import Label from '~/components/pub/my-ui/doc-entry/label.vue' -import Combobox from '~/components/pub/my-ui/form/combobox.vue' +import Combobox from '~/components/pub/my-ui/combobox/combobox.vue' import { Form } from '~/components/pub/ui/form' -import DatepickerSingle from '~/components/pub/my-ui/form/datepicker-single.vue' +import DatepickerSingle from '~/components/pub/my-ui/datepicker/datepicker-single.vue' import { educationCodes, genderCodes, occupationCodes, religionCodes, relationshipCodes } from '~/lib/constants' import { mapToComboboxOptList } from '~/lib/utils' diff --git a/app/components/app/floor/entry-form.vue b/app/components/app/floor/entry-form.vue index ec78dacc..a59bfd4c 100644 --- a/app/components/app/floor/entry-form.vue +++ b/app/components/app/floor/entry-form.vue @@ -5,7 +5,7 @@ import Cell from '~/components/pub/my-ui/doc-entry/cell.vue' import Field from '~/components/pub/my-ui/doc-entry/field.vue' import Label from '~/components/pub/my-ui/doc-entry/label.vue' import Button from '~/components/pub/ui/button/Button.vue' -import Combobox from '~/components/pub/my-ui/form/combobox.vue' +import Combobox from '~/components/pub/my-ui/combobox/combobox.vue' // Constants import { infraGroupCodesKeys } from '~/lib/constants' diff --git a/app/components/app/installation/entry-form.vue b/app/components/app/installation/entry-form.vue index 393eb793..c83e5cb1 100644 --- a/app/components/app/installation/entry-form.vue +++ b/app/components/app/installation/entry-form.vue @@ -4,7 +4,7 @@ import Block from '~/components/pub/my-ui/doc-entry/block.vue' import Cell from '~/components/pub/my-ui/doc-entry/cell.vue' import Field from '~/components/pub/my-ui/doc-entry/field.vue' import Label from '~/components/pub/my-ui/doc-entry/label.vue' -import Combobox from '~/components/pub/my-ui/form/combobox.vue' +import Combobox from '~/components/pub/my-ui/combobox/combobox.vue' // Types import type { InstallationFormData } from '~/schemas/installation.schema' diff --git a/app/components/app/patient/_common/select-ethnicity.vue b/app/components/app/patient/_common/select-ethnicity.vue index a4231571..e1ecd08a 100644 --- a/app/components/app/patient/_common/select-ethnicity.vue +++ b/app/components/app/patient/_common/select-ethnicity.vue @@ -1,6 +1,6 @@ diff --git a/app/components/pub/ui/table/TableEmpty.vue b/app/components/pub/ui/table/TableEmpty.vue index ff2f887e..96fafe2d 100644 --- a/app/components/pub/ui/table/TableEmpty.vue +++ b/app/components/pub/ui/table/TableEmpty.vue @@ -25,7 +25,7 @@ const delegatedProps = computed(() => { diff --git a/app/components/pub/ui/textarea/Textarea.vue b/app/components/pub/ui/textarea/Textarea.vue index a946b49a..a29bb1b7 100644 --- a/app/components/pub/ui/textarea/Textarea.vue +++ b/app/components/pub/ui/textarea/Textarea.vue @@ -20,5 +20,5 @@ const modelValue = useVModel(props, 'modelValue', emits, {