diff --git a/README.md b/README.md index 7fe93a0e0cc3c7ec9190c2eb0d645e3abb815313..130f5c13297fa7749a4b23c4063fa8e96a6c009b 100644 --- a/README.md +++ b/README.md @@ -61,4 +61,3 @@ The module has no modifiable settings. ## Maintainers - NGUYEN Bao - [lazzyvn](https://www.drupal.org/u/lazzyvn) -- joseph.olstad - [josepholstad](https://www.drupal.org/u/josepholstad) diff --git a/bootstrap_table.libraries.yml b/bootstrap_table.libraries.yml index 8b4b19778ff0fac9105eb54de273e042d7e8a450..e51a33df8c8f211a0f6b86f0c8f8155c02f20286 100644 --- a/bootstrap_table.libraries.yml +++ b/bootstrap_table.libraries.yml @@ -5,96 +5,96 @@ bootstrapTable: name: GNU url: https://github.com/wenzhixin/bootstrap-table/blob/develop/LICENSE gpl-compatible: true - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/bootstrap-table.min.js: {type: external, minified: true } - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/mobile/bootstrap-table-mobile.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/bootstrap-table.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/mobile/bootstrap-table-mobile.min.js: {type: external, minified: true } css: component: - //unpkg.com/bootstrap-table@1.21.2/dist/bootstrap-table.min.css: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/bootstrap-table.min.css: { type: external, minified: true } auto-refresh: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js: { type: external, minified: true } cookie: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/cookie/bootstrap-table-cookie.min.js: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/cookie/bootstrap-table-cookie.min.js: { type: external, minified: true } show-copy-rows: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/copy-rows/bootstrap-table-copy-rows.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/copy-rows/bootstrap-table-copy-rows.min.js: {type: external, minified: true } show-print: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/print/bootstrap-table-print.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/print/bootstrap-table-print.min.js: {type: external, minified: true } show-export: - version: 1.21.2 + version: 1.21.3 js: //unpkg.com/tableexport.jquery.plugin/tableExport.min.js: { type: external, minified: true, crossorigin: anonymous } //cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/tableExport.min.js: {type: external, minified: true } //cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/libs/jsPDF/jspdf.min.js: {type: external, minified: true } //cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js: {type: external, minified: true } - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/export/bootstrap-table-export.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/export/bootstrap-table-export.min.js: {type: external, minified: true } defer-url: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/defer-url/bootstrap-table-defer-url.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/defer-url/bootstrap-table-defer-url.min.js: {type: external, minified: true } filter-control: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/filter-control/bootstrap-table-filter-control.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/filter-control/bootstrap-table-filter-control.min.js: {type: external, minified: true } group-by: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/group-by-v2/bootstrap-table-group-by.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/group-by-v2/bootstrap-table-group-by.min.js: {type: external, minified: true } css: component: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/group-by-v2/bootstrap-table-group-by.css: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/group-by-v2/bootstrap-table-group-by.css: { type: external, minified: true } show-multi-sort: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/multiple-sort/bootstrap-table-multiple-sort.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/multiple-sort/bootstrap-table-multiple-sort.js: {type: external, minified: true } show-jump-to: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js: {type: external, minified: true } css: component: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/page-jump-to/bootstrap-table-page-jump-to.min.css: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/page-jump-to/bootstrap-table-page-jump-to.min.css: { type: external, minified: true } reorderable-rows: - version: 1.21.2 + version: 1.21.3 js: //cdn.jsdelivr.net/npm/tablednd@1.0.5/dist/jquery.tablednd.min.js: {type: external, minified: true } - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/reorder-rows/bootstrap-table-reorder-rows.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/reorder-rows/bootstrap-table-reorder-rows.min.js: {type: external, minified: true } css: component: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/reorder-rows/bootstrap-table-reorder-rows.css: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/reorder-rows/bootstrap-table-reorder-rows.css: { type: external, minified: true } resizable: - version: 1.21.2 + version: 1.21.3 js: //unpkg.com/jquery-resizable-columns@0.2.3/dist/jquery.resizableColumns.min.js: {type: external, minified: true } - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/resizable/bootstrap-table-resizable.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/resizable/bootstrap-table-resizable.min.js: {type: external, minified: true } css: component: //unpkg.com/jquery-resizable-columns@0.2.3/dist/jquery.resizableColumns.css: { type: external, minified: true } sticky-header: - version: 1.21.2 + version: 1.21.3 js: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/sticky-header/bootstrap-table-sticky-header.min.js: {type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/sticky-header/bootstrap-table-sticky-header.min.js: {type: external, minified: true } css: component: - //unpkg.com/bootstrap-table@1.21.2/dist/extensions/sticky-header/bootstrap-table-sticky-header.css: { type: external, minified: true } + //unpkg.com/bootstrap-table@1.21.3/dist/extensions/sticky-header/bootstrap-table-sticky-header.css: { type: external, minified: true } diff --git a/bootstrap_table.module b/bootstrap_table.module index 90c0511e85ffdfe677c793a05200c54f969f96b3..5e748b3888ea15ac1244bf40084a312eb6571eed 100644 --- a/bootstrap_table.module +++ b/bootstrap_table.module @@ -5,6 +5,49 @@ * Provides Views integration for the jQuery DataTables plugin. */ +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function bootstrap_table_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + case 'help.page.bootstrap_table': + $output = '<h3>' . t('About') . '</h3>'; + $output .= t('This simple views module easy integrate library bootstrap-table and almost extensions'); + $output .= '<h5><a href="https://examples.bootstrap-table.com/#options/columns-toggle-all.html">' . t('Options') . '</a></h5>'; + $output .= '<ul>'; + $output .= '<li>' . t('Save State') . '</li>'; + $output .= '<li>' . t('Table Tools') . '</li>'; + $output .= '<li>' . t('Show Refresh') . '</li>'; + $output .= '<li>' . t('Columns Toggle All') . '</li>'; + $output .= '<li>' . t('Pagination switch') . '</li>'; + $output .= '<li>' . t('Show Toggle') . '</li>'; + $output .= '<li>' . t('Show Fullscreen') . '</li>'; + $output .= '<li>' . t('Card View') . '</li>'; + $output .= '</ul>'; + $output .= '<h5><a href="https://examples.bootstrap-table.com/#extensions/auto-refresh.html">' . t('Extensions') . '</a></h5>'; + $output .= '<ul>'; + $output .= '<li>' . t('Auto Refresh') . '</li>'; + $output .= '<li>' . t('Copy Rows this feature') . '</li>'; + $output .= '<li>' . t('Copy Rows') . '</li>'; + $output .= '<li>' . t('Export') . '</li>'; + $output .= '<li>' . t('Filter Control') . '</li>'; + $output .= '<li>' . t('Group By') . '</li>'; + $output .= '<li>' . t('Multiple Sort') . '</li>'; + $output .= '<li>' . t('Page Jump To') . '</li>'; + $output .= '<li>' . t('Reorder Rows') . '</li>'; + $output .= '<li>' . t('Resizable') . '</li>'; + $output .= '<li>' . t('Sticky Header') . '</li>'; + $output .= '<li>' . t('Sum total columns') . '</li>'; + $output .= '<li>' . t('Ajax support') . '</li>'; + $output .= '</ul>'; + return $output; + default: + break; + } +} + /** * Implements hook_theme(). */