Skip to content

Commit

Permalink
Fix kartik-v#353: Enhancements to support Bootstrap v5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Nov 3, 2021
1 parent 643f7d4 commit c06855f
Show file tree
Hide file tree
Showing 17 changed files with 267 additions and 225 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ Change Log: `yii2-export`

## version 1.4.2

**Date:** _under development_
**Date:** 03-Nov-2021

- (enh #353): Enhancements to support Bootstrap v5.x.
- (enh #330): Sanitize file names in a better way.
- (enh #328, #329): Allow closure for contentOptions.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 - 2020, Kartik Visweswaran
Copyright (c) 2015 - 2021, Kartik Visweswaran
Krajee.com
All rights reserved.

Expand Down
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@
yii2-export
<hr>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU"
title="Donate via Paypal" target="_blank">
<img src="http://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" alt="Donate"/>
</a>
title="Donate via Paypal" target="_blank"><img height="60" src="https://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" alt="Donate"/></a>
&nbsp; &nbsp; &nbsp;
<a href="https://www.buymeacoffee.com/kartikv" title="Buy me a coffee" ><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="60" alt="kartikv" /></a>
</h1>

<div align="center">

[![Stable Version](https://poser.pugx.org/kartik-v/yii2-export/v/stable)](https://packagist.org/packages/kartik-v/yii2-export)
[![Unstable Version](https://poser.pugx.org/kartik-v/yii2-export/v/unstable)](https://packagist.org/packages/kartik-v/yii2-export)
[![License](https://poser.pugx.org/kartik-v/yii2-export/license)](https://packagist.org/packages/kartik-v/yii2-export)
[![Total Downloads](https://poser.pugx.org/kartik-v/yii2-export/downloads)](https://packagist.org/packages/kartik-v/yii2-export)
[![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-export/d/monthly)](https://packagist.org/packages/kartik-v/yii2-export)
[![Daily Downloads](https://poser.pugx.org/kartik-v/yii2-export/d/daily)](https://packagist.org/packages/kartik-v/yii2-export)

</div>

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.) using the [PhpSpreadsheet](https://github.com/PHPOffice/phpspreadsheet) library. The widget allows you to configure the dataProvider, columns just like a yii\grid\GridView. However, it just displays the export actions in form of a ButtonDropdown menu, for embedding into any of your GridView or other components.

In addition, with release v1.2.0, the extension also displays a handy grid columns selector for controlling the columns for export. The features available with the column selector are:
Expand Down Expand Up @@ -51,7 +55,23 @@ The preferred way to install this extension is through [composer](http://getcomp

> Note: Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.
Either run
### Pre-requisites

Install the necessary pre-requisite (Krajee Dropdown Extension) based on your bootstrap version:

- For Bootstrap v5.x install the extension `kartik-v/yii2-bootstrap5-dropdown`
- For Bootstrap v4.x install the extension `kartik-v/yii2-bootstrap4-dropdown`
- For Bootstrap v3.x install the extension `kartik-v/yii2-dropdown-x`

For example if you are using the Bootstrap v5.x add the following to the `require` section of your `composer.json` file:

```
"kartik-v/yii2-bootstrap5-dropdown": "@dev"
```

### Install

Either run:

```
$ php composer.phar require kartik-v/yii2-export "@dev"
Expand Down
82 changes: 41 additions & 41 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "kartik-v/yii2-export",
"description": "A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)",
"keywords": [
"yii2",
"extension",
"widget",
"export",
"spreadsheet",
"html",
"csv",
"text",
"pdf",
"json",
"xls",
"xlsx",
"OpenXML"
],
"homepage": "https://github.com/kartik-v/yii2-export",
"type": "yii2-extension",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Kartik Visweswaran",
"email": "[email protected]",
"homepage": "http://www.krajee.com/"
}
],
"require": {
"kartik-v/yii2-dynagrid": ">=1.4.5",
"kartik-v/yii2-mpdf": ">=1.0",
"phpoffice/phpspreadsheet": ">=1.0"
},
"autoload": {
"psr-4": {
"kartik\\export\\": "src"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.4.x-dev"
}
"name": "kartik-v/yii2-export",
"description": "A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)",
"keywords": [
"yii2",
"extension",
"widget",
"export",
"spreadsheet",
"html",
"csv",
"text",
"pdf",
"json",
"xls",
"xlsx",
"OpenXML"
],
"homepage": "https://github.com/kartik-v/yii2-export",
"type": "yii2-extension",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Kartik Visweswaran",
"email": "[email protected]",
"homepage": "http://www.krajee.com/"
}
],
"require": {
"kartik-v/yii2-dynagrid": ">=1.4.5",
"kartik-v/yii2-mpdf": ">=1.0",
"phpoffice/phpspreadsheet": ">=1.0"
},
"autoload": {
"psr-4": {
"kartik\\export\\": "src"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.4.x-dev"
}
}
}
4 changes: 2 additions & 2 deletions src/ExportColumnAsset.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2021
* @package yii2-export
* @version 1.4.2
*/
Expand All @@ -23,7 +23,7 @@ class ExportColumnAsset extends AssetBundle
*/
public function init()
{
$this->setSourcePath(__DIR__ . '/assets');
$this->setSourcePath(__DIR__.'/assets');
$this->setupAssets('js', ['js/kv-export-columns']);
$this->setupAssets('css', ['css/kv-export-columns']);
parent::init();
Expand Down
Loading

0 comments on commit c06855f

Please sign in to comment.