Refactor form components (#659)

* Add Barcode Input Component and Integrate Quagga for Scanning

- Introduced a new BarcodeInput component for scanning barcodes using the Quagga library.
- Updated package.json and package-lock.json to include Quagga as a dependency.
- Enhanced form themes to accommodate the new BarcodeInput component.
- Added localization support for barcode scanning actions in English.
- Updated blocks_types.json to register the new barcode input type.

These changes improve the application's functionality by allowing users to scan barcodes directly within forms, enhancing user experience and data input efficiency.

* Update Barcode scanner UI

* Barcode decoder as user selection

* improve barcode

* Refactor form components and update Tailwind configuration

- Removed unused box shadow styles from tailwind.config.js.
- Enhanced DateInput, FileInput, MatrixInput, RichTextAreaInput, and VSelect components with improved styling and error handling.
- Updated theme settings in form-themes.js to include new styles for MatrixInput and other form elements.
- Adjusted labels in FieldOptions.vue for clarity.
- Improved overall UI consistency and responsiveness across form components.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2025-01-03 20:45:47 +05:30
committed by GitHub
parent 80b7c1e773
commit 75f82b3bc7
9 changed files with 176 additions and 125 deletions

View File

@@ -11,8 +11,8 @@
class="mt-4"
:options="[
{ name: 'Default', value: 'default' },
{ name: 'Simple', value: 'simple' },
{ name: 'Notion', value: 'notion' },
{ name: 'Simple (no shadows)', value: 'simple' },
]"
:form="form"
label="Form Theme"

View File

@@ -231,7 +231,7 @@
:form="field"
class="mt-3"
name="date_range"
label="End date"
label="Include end date"
@update:model-value="onFieldDateRangeChange"
/>
<toggle-switch-input