Skip to content

Commit a6ff7ab

Browse files
committed
first commit 🔥
1 parent 3ab0797 commit a6ff7ab

File tree

15 files changed

+1232
-51
lines changed

15 files changed

+1232
-51
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "laravilt/forms",
33
"description": "Complete form builder system with 30+ field types, validation, and Blade/Inertia.js integration. Build complex forms with text inputs, selects, date pickers, file uploads, rich editors, repeaters, and more with real-time reactivity.",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"type": "library",
66
"license": "MIT",
77
"keywords": [

lang/ar/forms.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@
8484
'min_items' => 'يرجى تحديد :min عنصر(عناصر) على الأقل',
8585
'max_items' => 'يمكنك تحديد :max عنصر(عناصر) كحد أقصى',
8686
],
87+
88+
// CheckboxList Component
89+
'checkbox_list' => [
90+
'select_all' => 'تحديد الكل',
91+
'select_all_permissions' => 'تحديد جميع الصلاحيات',
92+
'selected' => 'محدد',
93+
'search_placeholder' => 'بحث في الصلاحيات...',
94+
],
8795
];

lang/ar/permissions.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
return [
4+
'other' => 'أخرى',
5+
6+
'actions' => [
7+
'view_any' => 'عرض الكل',
8+
'view' => 'عرض',
9+
'create' => 'إنشاء',
10+
'update' => 'تعديل',
11+
'delete_any' => 'حذف الكل',
12+
'delete' => 'حذف',
13+
'restore_any' => 'استعادة الكل',
14+
'restore' => 'استعادة',
15+
'force_delete_any' => 'حذف نهائي للكل',
16+
'force_delete' => 'حذف نهائي',
17+
'replicate' => 'نسخ',
18+
'reorder' => 'إعادة ترتيب',
19+
'export' => 'تصدير',
20+
'import' => 'استيراد',
21+
'impersonate' => 'انتحال',
22+
'manage' => 'إدارة',
23+
'access' => 'وصول',
24+
'publish' => 'نشر',
25+
'unpublish' => 'إلغاء النشر',
26+
'archive' => 'أرشفة',
27+
'unarchive' => 'إلغاء الأرشفة',
28+
'approve' => 'موافقة',
29+
'reject' => 'رفض',
30+
'assign' => 'تعيين',
31+
'unassign' => 'إلغاء التعيين',
32+
'attach' => 'إرفاق',
33+
'detach' => 'فصل',
34+
'sync' => 'مزامنة',
35+
'toggle' => 'تبديل',
36+
'bulk_delete' => 'حذف متعدد',
37+
'bulk_update' => 'تعديل متعدد',
38+
],
39+
];

lang/en/forms.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@
8484
'min_items' => 'Please select at least :min item(s)',
8585
'max_items' => 'You can only select up to :max item(s)',
8686
],
87+
88+
// CheckboxList Component
89+
'checkbox_list' => [
90+
'select_all' => 'Select All',
91+
'select_all_permissions' => 'Select All Permissions',
92+
'selected' => 'selected',
93+
'search_placeholder' => 'Search permissions...',
94+
],
8795
];

lang/en/permissions.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
return [
4+
'other' => 'Other',
5+
6+
'actions' => [
7+
'view_any' => 'View Any',
8+
'view' => 'View',
9+
'create' => 'Create',
10+
'update' => 'Update',
11+
'delete_any' => 'Delete Any',
12+
'delete' => 'Delete',
13+
'restore_any' => 'Restore Any',
14+
'restore' => 'Restore',
15+
'force_delete_any' => 'Force Delete Any',
16+
'force_delete' => 'Force Delete',
17+
'replicate' => 'Replicate',
18+
'reorder' => 'Reorder',
19+
'export' => 'Export',
20+
'import' => 'Import',
21+
'impersonate' => 'Impersonate',
22+
'manage' => 'Manage',
23+
'access' => 'Access',
24+
'publish' => 'Publish',
25+
'unpublish' => 'Unpublish',
26+
'archive' => 'Archive',
27+
'unarchive' => 'Unarchive',
28+
'approve' => 'Approve',
29+
'reject' => 'Reject',
30+
'assign' => 'Assign',
31+
'unassign' => 'Unassign',
32+
'attach' => 'Attach',
33+
'detach' => 'Detach',
34+
'sync' => 'Sync',
35+
'toggle' => 'Toggle',
36+
'bulk_delete' => 'Bulk Delete',
37+
'bulk_update' => 'Bulk Update',
38+
],
39+
];

resources/js/components/Form.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import TextInput from './fields/TextInput.vue'
4848
import Textarea from './fields/Textarea.vue'
4949
import Toggle from './fields/Toggle.vue'
5050
import Checkbox from './fields/Checkbox.vue'
51+
import CheckboxList from './fields/CheckboxList.vue'
5152
import Select from './fields/Select.vue'
5253
import Hidden from './fields/Hidden.vue'
5354
@@ -549,6 +550,9 @@ const componentMap: Record<string, any> = {
549550
select: Select,
550551
hidden: Hidden,
551552
553+
// CheckboxList - direct import for proper event handling
554+
checkbox_list: CheckboxList,
555+
552556
// Less common/heavier components (async loaded)
553557
radio: defineAsyncComponent(() => import('./fields/Radio.vue')),
554558
toggle_buttons: defineAsyncComponent(() => import('./fields/ToggleButtons.vue')),

0 commit comments

Comments
 (0)