Skip to content

Commit cbeb5fe

Browse files
committed
feat: no items update
feat: overall update of icons feat: ide.json for frameworkConfig function
1 parent b57c19e commit cbeb5fe

File tree

6 files changed

+28
-8
lines changed

6 files changed

+28
-8
lines changed

config/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
'inline-entry-label-class' => 'col-sm-6 col-md-4',
6363
'inline-entry-class' => 'col-sm-6 col-md-8',
6464
'search-icon' => 'zmdi-search',
65+
'no-items-icon' => 'zmdi-file',
6566
]
6667
],
6768

ide.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
3+
"completions": [
4+
{
5+
"complete": "configKey",
6+
"options": {
7+
"prefix": "forms.frameworks.bootstrap-5"
8+
},
9+
"condition": [
10+
{
11+
"methodNames": ["frameworkConfig"],
12+
"classParentFqn": ["\\Javaabu\\Forms\\Views\\Components\\Component"],
13+
"parameters": [1]
14+
}
15+
]
16+
}
17+
]
18+
}

tests/Feature/FileTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ public function it_can_render_bootstrap_5_file_inputs()
329329

330330
$this->seeElement('a.fileinput-filelink[href="/storage/1/some-cool-image.jpg"]')
331331
->within('a.fileinput-filelink', function () {
332-
$this->seeElement('i.fa.fa-arrow-to-bottom');
332+
$this->seeElement('i.fa-regular.fa-arrow-to-bottom');
333333
})
334334
->seeElement('button.btn-dismiss')
335335
->within('button.btn-dismiss', function () {
336-
$this->seeElement('i.fa.fa-close');
336+
$this->seeElement('i.fa-regular.fa-close');
337337
});
338338
});
339339
});
@@ -358,7 +358,7 @@ public function it_can_render_file_upload_inputs()
358358
->within('div.fileinput', function () {
359359
$this->seeElement('.upload-btn')
360360
->within('.upload-btn', function () {
361-
$this->seeElement('i.fa.fa-arrow-to-top')
361+
$this->seeElement('i.fa-regular.fa-arrow-to-top')
362362
->seeText('Upload file');
363363
});
364364
});

tests/Feature/ImageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function it_can_render_bootstrap_5_image_inputs()
6969
})
7070
->seeElement('.fileinput-image-missing')
7171
->within('.fileinput-image-missing', function () {
72-
$this->seeElement('i.fa.fa-image');
72+
$this->seeElement('i.fa-regular.fa-image');
7373
})
7474
->seeElement('button[data-dismiss="fileinput"]')
7575
->seeInElement('button[data-dismiss="fileinput"]', 'Remove')
@@ -138,7 +138,7 @@ public function it_can_render_image_upload_inputs()
138138
->within('div.fileinput', function () {
139139
$this->seeElement('.upload-btn')
140140
->within('.upload-btn', function () {
141-
$this->seeElement('i.fa.fa-arrow-to-top')
141+
$this->seeElement('i.fa-regular.fa-arrow-to-top')
142142
->seeText('Upload file');
143143
});
144144
});

tests/Feature/NoItemsTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
class NoItemsTest extends TestCase
88
{
99
/** @test */
10-
public function it_can_generated_bulk_actions_for_material_admin_26()
10+
public function it_can_display_no_items_card_for_material_admin_26()
1111
{
12+
$this->withoutExceptionHandling();
1213
$this->setFrameworkMaterialAdmin26();
1314
$this->registerTestRoute('no-items');
1415

@@ -21,7 +22,7 @@ public function it_can_generated_bulk_actions_for_material_admin_26()
2122
}
2223

2324
/** @test */
24-
public function it_can_generated_bulk_actions_for_bootstrap_5()
25+
public function it_can_display_no_items_card_for_bootstrap_5()
2526
{
2627
$this->withoutExceptionHandling();
2728
$this->setFrameworkBootstrap5();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<x-forms::no-items
2-
icon="zmdi zmdi-file"
32
model-type="activities"
43
:model="\Javaabu\Forms\Tests\TestSupport\Models\Activity::class"
54
create-action="/activities/create"
5+
show-create
66
/>

0 commit comments

Comments
 (0)