Skip to content

Commit 53521f8

Browse files
committed
Change namespace
1 parent 7f3d8e9 commit 53521f8

25 files changed

+79
-72
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For example you want to have an ability of entering several emails of user on pr
3535
In this case you can use yii2-multiple-input widget like in the following code
3636

3737
```php
38-
use unclead\widgets\MultipleInput;
38+
use yii\multipleinput\MultipleInput;
3939

4040
...
4141

UPGRADE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ if you want to upgrade from version A to version C and there is
88
version B between A and C, you need to following the instructions
99
for both A and B.
1010

11+
Upgrade from 1.4 to 2.0
12+
-----------------------
13+
14+
- Change namespace prefix `unclead\widgets\` to `yii\multipleinput\`.
15+
1116
Upgrade from 1.3 to 1.4
17+
-----------------------
1218
- In scope of #97 was changed a behavior of rendering add button. The button renders now depends on option `addButtonPosition` and now this
1319
option is not set by default.
14-
-----------------------
20+
1521

1622
Upgrade from 1.2 to 1.3
1723
-----------------------

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
},
2828
"autoload": {
2929
"psr-4": {
30-
"unclead\\widgets\\examples\\": "examples/",
31-
"unclead\\widgets\\": "src/"
30+
"yii\\multipleinput\\examples\\": "examples/",
31+
"yii\\multipleinput\\": "src/"
3232
}
3333
}
3434
}

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ This can be `MultipleInput::POS_HEADER`, `MultipleInput::POS_ROW` or `MultipleIn
2525
**allowEmptyList** *boolean*: whether to allow the empty list
2626

2727
**columnClass** *string*: the name of column class. You can specify your own class to extend base functionality.
28-
Defaults to `unclead\widgets\MultipleInputColumn` for `MultipleInput` and `unclead\widgets\TabularColumn` for `TabularInput`.
28+
Defaults to `yii\multipleinput\MultipleInputColumn` for `MultipleInput` and `yii\multipleinput\TabularColumn` for `TabularInput`.
2929

3030
**rendererClass** *string*: the name of renderer class. You can specify your own class to extend base functionality.
31-
Defaults to `unclead\widgets\renderers\TableRenderer`.
31+
Defaults to `yii\multipleinput\renderers\TableRenderer`.
3232

3333
**columns** *array*: the row columns configuration where you can set the properties which is described below
3434

docs/multiple_input_multiple.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Then we have to use `MultipleInput` widget for rendering form field in the view
3636

3737
```php
3838
use yii\bootstrap\ActiveForm;
39-
use unclead\widgets\MultipleInput;
40-
use unclead\widgets\examples\models\ExampleModel;
39+
use yii\multipleinput\MultipleInput;
40+
use yii\multipleinput\examples\models\ExampleModel;
4141
use yii\helpers\Html;
4242

4343
/* @var $this \yii\base\View */

docs/multiple_input_single.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Then we have to use `MultipleInput` widget for rendering form field in the view
2222

2323
```php
2424
use yii\bootstrap\ActiveForm;
25-
use unclead\widgets\MultipleInput;
26-
use unclead\widgets\examples\models\ExampleModel;
25+
use yii\multipleinput\MultipleInput;
26+
use yii\multipleinput\examples\models\ExampleModel;
2727
use yii\helpers\Html;
2828

2929
/* @var $this \yii\base\View */

docs/tabular_input.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ In this case you can use `yii2-multiple-input` widget for supporting tabular inp
77
Our test model can looks like as the following snippet
88

99
```php
10-
namespace unclead\widgets\examples\models;
10+
namespace yii\multipleinput\examples\models;
1111

1212
use Yii;
1313
use yii\base\Model;
@@ -16,7 +16,7 @@ use vova07\fileapi\behaviors\UploadBehavior;
1616

1717
/**
1818
* Class Item
19-
* @package unclead\widgets\examples\models
19+
* @package yii\multipleinput\examples\models
2020
*/
2121
class Item extends Model
2222
{
@@ -57,9 +57,9 @@ Then we have to use `TabularInput` widget for rendering form field in the view f
5757
<?php
5858

5959
use yii\bootstrap\ActiveForm;
60-
use unclead\widgets\TabularInput;
60+
use yii\multipleinput\TabularInput;
6161
use yii\helpers\Html;
62-
use \unclead\widgets\examples\models\Item;
62+
use \yii\multipleinput\examples\models\Item;
6363

6464
/* @var $this \yii\web\View */
6565
/* @var $models Item[] */
@@ -90,7 +90,7 @@ use \unclead\widgets\examples\models\Item;
9090
[
9191
'name' => 'title',
9292
'title' => 'Title',
93-
'type' => \unclead\widgets\MultipleInputColumn::TYPE_TEXT_INPUT,
93+
'type' => \yii\multipleinput\MultipleInputColumn::TYPE_TEXT_INPUT,
9494
],
9595
[
9696
'name' => 'description',
@@ -135,7 +135,7 @@ Your action can looks like the following code
135135
```php
136136
/**
137137
* Class TabularInputAction
138-
* @package unclead\widgets\examples\actions
138+
* @package yii\multipleinput\examples\actions
139139
*/
140140
class TabularInputAction extends Action
141141
{

docs/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For example you want to have an ability of entering several emails of user on pr
1414
In this case you can use yii2-multiple-input widget like in the following code
1515

1616
```php
17-
use unclead\widgets\MultipleInput;
17+
use yii\multipleinput\MultipleInput;
1818

1919
...
2020

@@ -41,7 +41,7 @@ For example you keep some data in json format in attribute of model. Imagine tha
4141
On the edit page you want to be able to manage this schedule and you can you yii2-multiple-input widget like in the following code
4242

4343
```php
44-
use unclead\widgets\MultipleInput;
44+
use yii\multipleinput\MultipleInput;
4545

4646
...
4747

examples/actions/EmbeddedInputAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace unclead\widgets\examples\actions;
3+
namespace yii\multipleinput\examples\actions;
44

55
use Yii;
66
use yii\base\Action;
77
use yii\bootstrap\ActiveForm;
88
use yii\web\Response;
9-
use unclead\widgets\examples\models\ExampleModel;
9+
use yii\multipleinput\examples\models\ExampleModel;
1010

1111
/**
1212
* Class EmbeddedInputAction
13-
* @package unclead\widgets\examples\actions
13+
* @package yii\multipleinput\examples\actions
1414
*/
1515
class EmbeddedInputAction extends Action
1616
{

examples/actions/MultipleInputAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace unclead\widgets\examples\actions;
3+
namespace yii\multipleinput\examples\actions;
44

55
use Yii;
66
use yii\base\Action;
77
use yii\bootstrap\ActiveForm;
88
use yii\web\Response;
9-
use unclead\widgets\examples\models\ExampleModel;
9+
use yii\multipleinput\examples\models\ExampleModel;
1010

1111
/**
1212
* Class MultipleInputAction
13-
* @package unclead\widgets\examples\actions
13+
* @package yii\multipleinput\examples\actions
1414
*/
1515
class MultipleInputAction extends Action
1616
{

0 commit comments

Comments
 (0)