diff --git a/COMCMS.API/COMCMS.API.csproj b/COMCMS.API/COMCMS.API.csproj index 30903b4..be684ba 100644 --- a/COMCMS.API/COMCMS.API.csproj +++ b/COMCMS.API/COMCMS.API.csproj @@ -1,7 +1,7 @@ - + - netcoreapp2.1 + netcoreapp2.2 diff --git a/COMCMS.Common/COMCMS.Common.csproj b/COMCMS.Common/COMCMS.Common.csproj index bf89b60..eaa37ae 100644 --- a/COMCMS.Common/COMCMS.Common.csproj +++ b/COMCMS.Common/COMCMS.Common.csproj @@ -1,12 +1,12 @@ - + - netcoreapp2.1 + netcoreapp2.2 - + diff --git a/COMCMS.Core/COMCMS.Core.csproj b/COMCMS.Core/COMCMS.Core.csproj index 2cbe1ec..9cdab0f 100644 --- a/COMCMS.Core/COMCMS.Core.csproj +++ b/COMCMS.Core/COMCMS.Core.csproj @@ -1,11 +1,11 @@ - + - netcoreapp2.1 + netcoreapp2.2 - + diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj index 386ba3c..5c0d183 100644 --- a/COMCMS.Web/COMCMS.Web.csproj +++ b/COMCMS.Web/COMCMS.Web.csproj @@ -5,17 +5,17 @@ - + - - - - + + + + - - - - + + + + diff --git a/COMCMS.Web/Common/MenuRegister.cs b/COMCMS.Web/Common/MenuRegister.cs index efb631e..bf7efca 100644 --- a/COMCMS.Web/Common/MenuRegister.cs +++ b/COMCMS.Web/Common/MenuRegister.cs @@ -139,7 +139,7 @@ namespace COMCMS.Web.Common public static void Register() { - Task.Run(() => { StartRegister(); }).LogException(); + Task.Run(() => { StartRegister(); }); } } } diff --git a/COMCMS.Web/wwwroot/hplus/js/hplus.js b/COMCMS.Web/wwwroot/hplus/js/hplus.js index b24b1b4..5140142 100644 --- a/COMCMS.Web/wwwroot/hplus/js/hplus.js +++ b/COMCMS.Web/wwwroot/hplus/js/hplus.js @@ -280,6 +280,11 @@ function showDialog(id, title, url, width, height) { var w='80%', h='80%'; if (width > 0) w = width + 'px'; if (height > 0) h = height + 'px'; + var windowWidth = $(window).width(); + if (windowWidth <= 750) { + w = "100%"; + h = "100%"; + } toplayerindex = layer.open({ type: 2, title: title, diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.js index cc45a60..fbba18a 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.js @@ -1,1698 +1,2759 @@ -/** - * Bootstrap Table Afrikaans translation - * Author: Phillip Kruger - */ -(function ($) { - 'use strict'; +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableAfZA = mod.exports; + } +})(this, function () { + 'use strict'; + /** + * Bootstrap Table Afrikaans translation + * Author: Phillip Kruger + */ + (function ($) { $.fn.bootstrapTable.locales['af-ZA'] = { - formatLoadingMessage: function () { - return 'Besig om te laai, wag asseblief ...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rekords per bladsy'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Resultate ' + pageFrom + ' tot ' + pageTo + ' van ' + totalRows + ' rye'; - }, - formatSearch: function () { - return 'Soek'; - }, - formatNoMatches: function () { - return 'Geen rekords gevind nie'; - }, - formatPaginationSwitch: function () { - return 'Wys/verberg bladsy nummering'; - }, - formatRefresh: function () { - return 'Herlaai'; - }, - formatToggle: function () { - return 'Wissel'; - }, - formatColumns: function () { - return 'Kolomme'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Besig om te laai, wag asseblief ...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rekords per bladsy'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Resultate ' + pageFrom + ' tot ' + pageTo + ' van ' + totalRows + ' rye'; + }, + formatSearch: function formatSearch() { + return 'Soek'; + }, + formatNoMatches: function formatNoMatches() { + return 'Geen rekords gevind nie'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Wys/verberg bladsy nummering'; + }, + formatRefresh: function formatRefresh() { + return 'Herlaai'; + }, + formatToggle: function formatToggle() { + return 'Wissel'; + }, + formatColumns: function formatColumns() { + return 'Kolomme'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['af-ZA']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableArSA = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table English translation - * Author: Zhixin Wen - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table English translation + * Author: Zhixin Wen + */ + (function ($) { $.fn.bootstrapTable.locales['ar-SA'] = { - formatLoadingMessage: function () { - return 'جاري التحميل, يرجى الإنتظار...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' سجل لكل صفحة'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'الظاهر ' + pageFrom + ' إلى ' + pageTo + ' من ' + totalRows + ' سجل'; - }, - formatSearch: function () { - return 'بحث'; - }, - formatNoMatches: function () { - return 'لا توجد نتائج مطابقة للبحث'; - }, - formatPaginationSwitch: function () { - return 'إخفاء\إظهار ترقيم الصفحات'; - }, - formatRefresh: function () { - return 'تحديث'; - }, - formatToggle: function () { - return 'تغيير'; - }, - formatColumns: function () { - return 'أعمدة'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'جاري التحميل, يرجى الإنتظار...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u0633\u062C\u0644 \u0644\u0643\u0644 \u0635\u0641\u062D\u0629'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u0627\u0644\u0638\u0627\u0647\u0631 ' + pageFrom + ' \u0625\u0644\u0649 ' + pageTo + ' \u0645\u0646 ' + totalRows + ' \u0633\u062C\u0644'; + }, + formatSearch: function formatSearch() { + return 'بحث'; + }, + formatNoMatches: function formatNoMatches() { + return 'لا توجد نتائج مطابقة للبحث'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + /* eslint-disable no-useless-escape */ + return 'إخفاء\إظهار ترقيم الصفحات'; + }, + formatRefresh: function formatRefresh() { + return 'تحديث'; + }, + formatToggle: function formatToggle() { + return 'تغيير'; + }, + formatColumns: function formatColumns() { + return 'أعمدة'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ar-SA']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableCaES = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Catalan translation - * Authors: Marc Pina - * Claudi Martinez - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Catalan translation + * Authors: Marc Pina + * Claudi Martinez + */ + (function ($) { $.fn.bootstrapTable.locales['ca-ES'] = { - formatLoadingMessage: function () { - return 'Espereu, si us plau...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' resultats per pàgina'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Mostrant de ' + pageFrom + ' fins ' + pageTo + ' - total ' + totalRows + ' resultats'; - }, - formatSearch: function () { - return 'Cerca'; - }, - formatNoMatches: function () { - return 'No s\'han trobat resultats'; - }, - formatPaginationSwitch: function () { - return 'Amaga/Mostra paginació'; - }, - formatRefresh: function () { - return 'Refresca'; - }, - formatToggle: function () { - return 'Alterna formatació'; - }, - formatColumns: function () { - return 'Columnes'; - }, - formatAllRows: function () { - return 'Tots'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Espereu, si us plau...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' resultats per p\xE0gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrant de ' + pageFrom + ' fins ' + pageTo + ' - total ' + totalRows + ' resultats'; + }, + formatSearch: function formatSearch() { + return 'Cerca'; + }, + formatNoMatches: function formatNoMatches() { + return 'No s\'han trobat resultats'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Amaga/Mostra paginació'; + }, + formatRefresh: function formatRefresh() { + return 'Refresca'; + }, + formatToggle: function formatToggle() { + return 'Alterna formatació'; + }, + formatColumns: function formatColumns() { + return 'Columnes'; + }, + formatAllRows: function formatAllRows() { + return 'Tots'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ca-ES']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableCsCZ = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Czech translation - * Author: Lukas Kral (monarcha@seznam.cz) - * Author: Jakub Svestka - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Czech translation + * Author: Lukas Kral (monarcha@seznam.cz) + * Author: Jakub Svestka + */ + (function ($) { $.fn.bootstrapTable.locales['cs-CZ'] = { - formatLoadingMessage: function () { - return 'Čekejte, prosím...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' položek na stránku'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Zobrazena ' + pageFrom + '. - ' + pageTo + '. položka z celkových ' + totalRows; - }, - formatSearch: function () { - return 'Vyhledávání'; - }, - formatNoMatches: function () { - return 'Nenalezena žádná vyhovující položka'; - }, - formatPaginationSwitch: function () { - return 'Skrýt/Zobrazit stránkování'; - }, - formatRefresh: function () { - return 'Aktualizovat'; - }, - formatToggle: function () { - return 'Přepni'; - }, - formatColumns: function () { - return 'Sloupce'; - }, - formatAllRows: function () { - return 'Vše'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Čekejte, prosím...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' polo\u017Eek na str\xE1nku'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Zobrazena ' + pageFrom + '. - ' + pageTo + '. polo\u017Eka z celkov\xFDch ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Vyhledávání'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nenalezena žádná vyhovující položka'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Skrýt/Zobrazit stránkování'; + }, + formatRefresh: function formatRefresh() { + return 'Aktualizovat'; + }, + formatToggle: function formatToggle() { + return 'Přepni'; + }, + formatColumns: function formatColumns() { + return 'Sloupce'; + }, + formatAllRows: function formatAllRows() { + return 'Vše'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['cs-CZ']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableDaDK = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table danish translation - * Author: Your Name Jan Borup Coyle, github@coyle.dk - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table danish translation + * Author: Your Name Jan Borup Coyle, github@coyle.dk + */ + (function ($) { $.fn.bootstrapTable.locales['da-DK'] = { - formatLoadingMessage: function () { - return 'Indlæser, vent venligst...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' poster pr side'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Viser ' + pageFrom + ' til ' + pageTo + ' af ' + totalRows + ' rækker'; - }, - formatSearch: function () { - return 'Søg'; - }, - formatNoMatches: function () { - return 'Ingen poster fundet'; - }, - formatRefresh: function () { - return 'Opdater'; - }, - formatToggle: function () { - return 'Skift'; - }, - formatColumns: function () { - return 'Kolonner'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Indlæser, vent venligst...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' poster pr side'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Viser ' + pageFrom + ' til ' + pageTo + ' af ' + totalRows + ' r\xE6kke' + (totalRows > 1 ? 'r' : ''); + }, + formatDetailPagination: function formatDetailPagination(totalRows) { + return 'Viser ' + totalRows + ' r\xE6kke' + (totalRows > 1 ? 'r' : ''); + }, + formatSearch: function formatSearch() { + return 'Søg'; + }, + formatNoMatches: function formatNoMatches() { + return 'Ingen poster fundet'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Skjul/vis nummerering'; + }, + formatRefresh: function formatRefresh() { + return 'Opdater'; + }, + formatToggle: function formatToggle() { + return 'Skift'; + }, + formatColumns: function formatColumns() { + return 'Kolonner'; + }, + formatAllRows: function formatAllRows() { + return 'Alle'; + }, + formatExport: function formatExport() { + return 'Eksporter'; + }, + formatClearFilters: function formatClearFilters() { + return 'Ryd filtre'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['da-DK']); - -})(jQuery); -/** -* Bootstrap Table German translation -* Author: Paul Mohr - Sopamo -*/ -(function ($) { + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableDeDE = mod.exports; + } +})(this, function () { 'use strict'; - $.fn.bootstrapTable.locales['de-DE'] = { - formatLoadingMessage: function () { - return 'Lade, bitte warten...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' Einträge pro Seite'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Zeige ' + pageFrom + ' bis ' + pageTo + ' von ' + totalRows + ' Zeile' + ((totalRows > 1) ? "n" : ""); - }, - formatSearch: function () { - return 'Suchen'; - }, - formatNoMatches: function () { - return 'Keine passenden Ergebnisse gefunden'; - }, - formatRefresh: function () { - return 'Neu laden'; - }, - formatToggle: function () { - return 'Umschalten'; - }, - formatColumns: function () { - return 'Spalten'; - } - }; + /** + * Bootstrap Table German translation + * Author: Paul Mohr - Sopamo + */ + (function ($) { + $.fn.bootstrapTable.locales['de-DE'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Lade, bitte warten...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' Zeilen pro Seite.'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Zeige Zeile ' + pageFrom + ' bis ' + pageTo + ' von ' + totalRows + ' Zeile' + (totalRows > 1 ? 'n' : '') + '.'; + }, + formatDetailPagination: function formatDetailPagination(totalRows) { + return 'Zeige ' + totalRows + ' Zeile' + (totalRows > 1 ? 'n' : '') + '.'; + }, + formatSearch: function formatSearch() { + return 'Suchen'; + }, + formatNoMatches: function formatNoMatches() { + return 'Keine passenden Ergebnisse gefunden'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Verstecke/Zeige Nummerierung'; + }, + formatRefresh: function formatRefresh() { + return 'Neu laden'; + }, + formatToggle: function formatToggle() { + return 'Umschalten'; + }, + formatColumns: function formatColumns() { + return 'Spalten'; + }, + formatAllRows: function formatAllRows() { + return 'Alle'; + }, + formatExport: function formatExport() { + return 'Datenexport'; + }, + formatClearFilters: function formatClearFilters() { + return 'Lösche Filter'; + } + }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['de-DE']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableElGR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Greek translation - * Author: giannisdallas - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Greek translation + * Author: giannisdallas + */ + (function ($) { $.fn.bootstrapTable.locales['el-GR'] = { - formatLoadingMessage: function () { - return 'Φορτώνει, παρακαλώ περιμένετε...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' αποτελέσματα ανά σελίδα'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Εμφανίζονται από την ' + pageFrom + ' ως την ' + pageTo + ' από σύνολο ' + totalRows + ' σειρών'; - }, - formatSearch: function () { - return 'Αναζητήστε'; - }, - formatNoMatches: function () { - return 'Δεν βρέθηκαν αποτελέσματα'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Φορτώνει, παρακαλώ περιμένετε...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u03B1\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B1\u03BD\u03AC \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u0395\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03B9 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD ' + pageFrom + ' \u03C9\u03C2 \u03C4\u03B7\u03BD ' + pageTo + ' \u03B1\u03C0\u03CC \u03C3\u03CD\u03BD\u03BF\u03BB\u03BF ' + totalRows + ' \u03C3\u03B5\u03B9\u03C1\u03CE\u03BD'; + }, + formatSearch: function formatSearch() { + return 'Αναζητήστε'; + }, + formatNoMatches: function formatNoMatches() { + return 'Δεν βρέθηκαν αποτελέσματα'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['el-GR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEnUS = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table English translation - * Author: Zhixin Wen - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table English translation + * Author: Zhixin Wen + */ + (function ($) { $.fn.bootstrapTable.locales['en-US'] = { - formatLoadingMessage: function () { - return 'Loading, please wait...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rows per page'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Showing ' + pageFrom + ' to ' + pageTo + ' of ' + totalRows + ' rows'; - }, - formatSearch: function () { - return 'Search'; - }, - formatNoMatches: function () { - return 'No matching records found'; - }, - formatPaginationSwitch: function () { - return 'Hide/Show pagination'; - }, - formatRefresh: function () { - return 'Refresh'; - }, - formatToggle: function () { - return 'Toggle'; - }, - formatColumns: function () { - return 'Columns'; - }, - formatAllRows: function () { - return 'All'; - }, - formatExport: function () { - return 'Export data'; - }, - formatClearFilters: function () { - return 'Clear filters'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Loading, please wait...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rows per page'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Showing ' + pageFrom + ' to ' + pageTo + ' of ' + totalRows + ' rows'; + }, + formatSearch: function formatSearch() { + return 'Search'; + }, + formatNoMatches: function formatNoMatches() { + return 'No matching records found'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Hide/Show pagination'; + }, + formatRefresh: function formatRefresh() { + return 'Refresh'; + }, + formatToggle: function formatToggle() { + return 'Toggle'; + }, + formatColumns: function formatColumns() { + return 'Columns'; + }, + formatAllRows: function formatAllRows() { + return 'All'; + }, + formatExport: function formatExport() { + return 'Export data'; + }, + formatClearFilters: function formatClearFilters() { + return 'Clear filters'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsAR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Spanish (Argentina) translation - * Author: Felix Vera (felix.vera@gmail.com) - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Spanish (Argentina) translation + * Author: Felix Vera (felix.vera@gmail.com) + */ + (function ($) { $.fn.bootstrapTable.locales['es-AR'] = { - formatLoadingMessage: function () { - return 'Cargando, espere por favor...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registros por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas'; - }, - formatSearch: function () { - return 'Buscar'; - }, - formatNoMatches: function () { - return 'No se encontraron registros'; - }, - formatAllRows: function () { - return 'Todo'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Cargando, espere por favor...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registros por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se encontraron registros'; + }, + formatAllRows: function formatAllRows() { + return 'Todo'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-AR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsCL = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Spanish (Costa Rica) translation - * Author: Dennis Hernández (http://djhvscf.github.io/Blog/) - */ -(function ($) { - 'use strict'; + /** + * Traducción de librería Bootstrap Table a Español (Chile) + * @author Brian Álvarez Azócar + * email brianalvarezazocar@gmail.com + */ + (function ($) { + $.fn.bootstrapTable.locales['es-CL'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Cargando, espere por favor...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' filas por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se encontraron registros'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Ocultar/Mostrar paginaci\xF3n'; + }, + formatRefresh: function formatRefresh() { + return 'Refrescar'; + }, + formatToggle: function formatToggle() { + return 'Cambiar'; + }, + formatColumns: function formatColumns() { + return 'Columnas'; + }, + formatAllRows: function formatAllRows() { + return 'Todo'; + } + }; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-CL']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsCR = mod.exports; + } +})(this, function () { + 'use strict'; + + /** + * Bootstrap Table Spanish (Costa Rica) translation + * Author: Dennis Hernández (http://djhvscf.github.io/Blog/) + */ + (function ($) { $.fn.bootstrapTable.locales['es-CR'] = { - formatLoadingMessage: function () { - return 'Cargando, por favor espere...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registros por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Mostrando de ' + pageFrom + ' a ' + pageTo + ' registros de ' + totalRows + ' registros en total'; - }, - formatSearch: function () { - return 'Buscar'; - }, - formatNoMatches: function () { - return 'No se encontraron registros'; - }, - formatRefresh: function () { - return 'Refrescar'; - }, - formatToggle: function () { - return 'Alternar'; - }, - formatColumns: function () { - return 'Columnas'; - }, - formatAllRows: function () { - return 'Todo'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Cargando, por favor espere...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registros por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrando de ' + pageFrom + ' a ' + pageTo + ' registros de ' + totalRows + ' registros en total'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se encontraron registros'; + }, + formatRefresh: function formatRefresh() { + return 'Refrescar'; + }, + formatToggle: function formatToggle() { + return 'Alternar'; + }, + formatColumns: function formatColumns() { + return 'Columnas'; + }, + formatAllRows: function formatAllRows() { + return 'Todo'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-CR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsES = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Spanish Spain translation - * Author: Marc Pina - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Spanish Spain translation + * Author: Marc Pina + */ + (function ($) { $.fn.bootstrapTable.locales['es-ES'] = { - formatLoadingMessage: function () { - return 'Por favor espere...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' resultados por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Mostrando desde ' + pageFrom + ' hasta ' + pageTo + ' - En total ' + totalRows + ' resultados'; - }, - formatSearch: function () { - return 'Buscar'; - }, - formatNoMatches: function () { - return 'No se encontraron resultados'; - }, - formatPaginationSwitch: function () { - return 'Ocultar/Mostrar paginación'; - }, - formatRefresh: function () { - return 'Refrescar'; - }, - formatToggle: function () { - return 'Ocultar/Mostrar'; - }, - formatColumns: function () { - return 'Columnas'; - }, - formatAllRows: function () { - return 'Todos'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Por favor espere...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' resultados por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrando desde ' + pageFrom + ' hasta ' + pageTo + ' - En total ' + totalRows + ' resultados'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se encontraron resultados'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Ocultar/Mostrar paginación'; + }, + formatRefresh: function formatRefresh() { + return 'Refrescar'; + }, + formatToggle: function formatToggle() { + return 'Ocultar/Mostrar'; + }, + formatColumns: function formatColumns() { + return 'Columnas'; + }, + formatAllRows: function formatAllRows() { + return 'Todos'; + }, + + formatExport: function formatExport() { + return 'Exportar los datos'; + }, + formatClearFilters: function formatClearFilters() { + return 'Borrar los filtros'; + }, + formatMultipleSort: function formatMultipleSort() { + return 'Orden avanzado'; + }, + formatAddLevel: function formatAddLevel() { + return 'Añadir un nivel'; + }, + formatDeleteLevel: function formatDeleteLevel() { + return 'Eliminar un nivel'; + }, + formatColumn: function formatColumn() { + return 'Columna'; + }, + formatOrder: function formatOrder() { + return 'Orden'; + }, + formatSortBy: function formatSortBy() { + return 'Ordenar por'; + }, + formatThenBy: function formatThenBy() { + return 'Y por'; + }, + formatSort: function formatSort() { + return 'Ordenar'; + }, + formatCancel: function formatCancel() { + return 'Cancelar'; + }, + formatDuplicateAlertTitle: function formatDuplicateAlertTitle() { + return 'Duplicado(s) detectado(s)!'; + }, + formatDuplicateAlertDescription: function formatDuplicateAlertDescription() { + return 'Eliminar o cambiar columnas duplicadas.'; + }, + formatSortOrders: function formatSortOrders() { + return { + asc: 'Ascendente', + desc: 'Descendente' + }; + }, + formatAdvancedSearch: function formatAdvancedSearch() { + return 'Búsqueda avanzada'; + }, + formatAdvancedCloseButton: function formatAdvancedCloseButton() { + return 'Cerrar'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-ES']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsMX = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina) - * Author: Felix Vera (felix.vera@gmail.com) - * Copiado: Mauricio Vera (mauricioa.vera@gmail.com) - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina) + * Author: Felix Vera (felix.vera@gmail.com) + * Copiado: Mauricio Vera (mauricioa.vera@gmail.com) + * Revisión: J Manuel Corona (jmcg92@gmail.com) (13/Feb/2018). + */ + (function ($) { $.fn.bootstrapTable.locales['es-MX'] = { - formatLoadingMessage: function () { - return 'Cargando, espere por favor...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registros por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas'; - }, - formatSearch: function () { - return 'Buscar'; - }, - formatNoMatches: function () { - return 'No se encontraron registros'; - }, - formatAllRows: function () { - return 'Todo'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Cargando, espere por favor...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registros por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas'; + }, + formatDetailPagination: function formatDetailPagination(totalRows) { + return 'Mostrando ' + totalRows + ' filas'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se encontraron registros que coincidan'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Mostrar/ocultar paginación'; + }, + formatRefresh: function formatRefresh() { + return 'Actualizar'; + }, + formatToggle: function formatToggle() { + return 'Cambiar vista'; + }, + formatFullscreen: function formatFullscreen() { + return 'Pantalla completa'; + }, + formatColumns: function formatColumns() { + return 'Columnas'; + }, + formatAllRows: function formatAllRows() { + return 'Todo'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-MX']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsNI = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Spanish (Nicaragua) translation - * Author: Dennis Hernández (http://djhvscf.github.io/Blog/) - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Spanish (Nicaragua) translation + * Author: Dennis Hernández (http://djhvscf.github.io/Blog/) + */ + (function ($) { $.fn.bootstrapTable.locales['es-NI'] = { - formatLoadingMessage: function () { - return 'Cargando, por favor espere...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registros por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Mostrando de ' + pageFrom + ' a ' + pageTo + ' registros de ' + totalRows + ' registros en total'; - }, - formatSearch: function () { - return 'Buscar'; - }, - formatNoMatches: function () { - return 'No se encontraron registros'; - }, - formatRefresh: function () { - return 'Refrescar'; - }, - formatToggle: function () { - return 'Alternar'; - }, - formatColumns: function () { - return 'Columnas'; - }, - formatAllRows: function () { - return 'Todo'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Cargando, por favor espere...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registros por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Mostrando de ' + pageFrom + ' a ' + pageTo + ' registros de ' + totalRows + ' registros en total'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se encontraron registros'; + }, + formatRefresh: function formatRefresh() { + return 'Refrescar'; + }, + formatToggle: function formatToggle() { + return 'Alternar'; + }, + formatColumns: function formatColumns() { + return 'Columnas'; + }, + formatAllRows: function formatAllRows() { + return 'Todo'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-NI']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEsSP = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Spanish (España) translation - * Author: Antonio Pérez - */ - (function ($) { - 'use strict'; - + /** + * Bootstrap Table Spanish (España) translation + * Author: Antonio Pérez + */ + (function ($) { $.fn.bootstrapTable.locales['es-SP'] = { - formatLoadingMessage: function () { - return 'Cargando, por favor espera...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registros por página.'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return pageFrom + ' - ' + pageTo + ' de ' + totalRows + ' registros.'; - }, - formatSearch: function () { - return 'Buscar'; - }, - formatNoMatches: function () { - return 'No se han encontrado registros.'; - }, - formatRefresh: function () { - return 'Actualizar'; - }, - formatToggle: function () { - return 'Alternar'; - }, - formatColumns: function () { - return 'Columnas'; - }, - formatAllRows: function () { - return 'Todo'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Cargando, por favor espera...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registros por página.'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return pageFrom + ' - ' + pageTo + ' de ' + totalRows + ' registros.'; + }, + formatSearch: function formatSearch() { + return 'Buscar'; + }, + formatNoMatches: function formatNoMatches() { + return 'No se han encontrado registros.'; + }, + formatRefresh: function formatRefresh() { + return 'Actualizar'; + }, + formatToggle: function formatToggle() { + return 'Alternar'; + }, + formatColumns: function formatColumns() { + return 'Columnas'; + }, + formatAllRows: function formatAllRows() { + return 'Todo'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-SP']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEtEE = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Estonian translation - * Author: kristjan@logist.it> - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Estonian translation + * Author: kristjan@logist.it> + */ + (function ($) { $.fn.bootstrapTable.locales['et-EE'] = { - formatLoadingMessage: function () { - return 'Päring käib, palun oota...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rida lehe kohta'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Näitan tulemusi ' + pageFrom + ' kuni ' + pageTo + ' - kokku ' + totalRows + ' tulemust'; - }, - formatSearch: function () { - return 'Otsi'; - }, - formatNoMatches: function () { - return 'Päringu tingimustele ei vastanud ühtegi tulemust'; - }, - formatPaginationSwitch: function () { - return 'Näita/Peida lehtedeks jagamine'; - }, - formatRefresh: function () { - return 'Värskenda'; - }, - formatToggle: function () { - return 'Lülita'; - }, - formatColumns: function () { - return 'Veerud'; - }, - formatAllRows: function () { - return 'Kõik'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Päring käib, palun oota...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rida lehe kohta'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'N\xE4itan tulemusi ' + pageFrom + ' kuni ' + pageTo + ' - kokku ' + totalRows + ' tulemust'; + }, + formatSearch: function formatSearch() { + return 'Otsi'; + }, + formatNoMatches: function formatNoMatches() { + return 'Päringu tingimustele ei vastanud ühtegi tulemust'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Näita/Peida lehtedeks jagamine'; + }, + formatRefresh: function formatRefresh() { + return 'Värskenda'; + }, + formatToggle: function formatToggle() { + return 'Lülita'; + }, + formatColumns: function formatColumns() { + return 'Veerud'; + }, + formatAllRows: function formatAllRows() { + return 'Kõik'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['et-EE']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableEuEU = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Persian translation - * Author: MJ Vakili - */ -(function ($) { - 'use strict'; + /** + * Bootstrap Table Basque (Basque Country) translation + * Author: Iker Ibarguren Berasaluze + */ + (function ($) { + $.fn.bootstrapTable.locales['eu-EU'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Itxaron mesedez...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' emaitza orriko.'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return totalRows + ' erregistroetatik ' + pageFrom + 'etik ' + pageTo + 'erakoak erakusten.'; + }, + formatSearch: function formatSearch() { + return 'Bilatu'; + }, + formatNoMatches: function formatNoMatches() { + return 'Ez da emaitzarik aurkitu'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Ezkutatu/Erakutsi orrikatzea'; + }, + formatRefresh: function formatRefresh() { + return 'Eguneratu'; + }, + formatToggle: function formatToggle() { + return 'Ezkutatu/Erakutsi'; + }, + formatColumns: function formatColumns() { + return 'Zutabeak'; + }, + formatAllRows: function formatAllRows() { + return 'Guztiak'; + } + }; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['eu-EU']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableFaIR = mod.exports; + } +})(this, function () { + 'use strict'; + + /** + * Bootstrap Table Persian translation + * Author: MJ Vakili + */ + (function ($) { $.fn.bootstrapTable.locales['fa-IR'] = { - formatLoadingMessage: function () { - return 'در حال بارگذاری, لطفا صبر کنید...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' رکورد در صفحه'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'نمایش ' + pageFrom + ' تا ' + pageTo + ' از ' + totalRows + ' ردیف'; - }, - formatSearch: function () { - return 'جستجو'; - }, - formatNoMatches: function () { - return 'رکوردی یافت نشد.'; - }, - formatPaginationSwitch: function () { - return 'نمایش/مخفی صفحه بندی'; - }, - formatRefresh: function () { - return 'به روز رسانی'; - }, - formatToggle: function () { - return 'تغییر نمایش'; - }, - formatColumns: function () { - return 'سطر ها'; - }, - formatAllRows: function () { - return 'همه'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'در حال بارگذاری, لطفا صبر کنید...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u0631\u06A9\u0648\u0631\u062F \u062F\u0631 \u0635\u0641\u062D\u0647'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u0646\u0645\u0627\u06CC\u0634 ' + pageFrom + ' \u062A\u0627 ' + pageTo + ' \u0627\u0632 ' + totalRows + ' \u0631\u062F\u06CC\u0641'; + }, + formatSearch: function formatSearch() { + return 'جستجو'; + }, + formatNoMatches: function formatNoMatches() { + return 'رکوردی یافت نشد.'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'نمایش/مخفی صفحه بندی'; + }, + formatRefresh: function formatRefresh() { + return 'به روز رسانی'; + }, + formatToggle: function formatToggle() { + return 'تغییر نمایش'; + }, + formatColumns: function formatColumns() { + return 'سطر ها'; + }, + formatAllRows: function formatAllRows() { + return 'همه'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['fa-IR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableFiFI = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table French (Belgium) translation - * Author: Julien Bisconti (julien.bisconti@gmail.com) - */ -(function ($) { - 'use strict'; + /** + * Bootstrap Table Finnish translations + * Author: Minna Lehtomäki + */ + (function ($) { + $.fn.bootstrapTable.locales['fi-FI'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Ladataan, ole hyvä ja odota...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rivi\xE4 sivulla'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'N\xE4ytet\xE4\xE4n rivit ' + pageFrom + ' - ' + pageTo + ' / ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Hae'; + }, + formatNoMatches: function formatNoMatches() { + return 'Hakuehtoja vastaavia tuloksia ei löytynyt'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Näytä/Piilota sivutus'; + }, + formatRefresh: function formatRefresh() { + return 'Päivitä'; + }, + formatToggle: function formatToggle() { + return 'Valitse'; + }, + formatColumns: function formatColumns() { + return 'Sarakkeet'; + }, + formatAllRows: function formatAllRows() { + return 'Kaikki'; + }, + formatExport: function formatExport() { + return 'Vie tiedot'; + }, + formatClearFilters: function formatClearFilters() { + return 'Poista suodattimet'; + } + }; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['fi-FI']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableFrBE = mod.exports; + } +})(this, function () { + 'use strict'; + + /** + * Bootstrap Table French (Belgium) translation + * Author: Julien Bisconti (julien.bisconti@gmail.com) + */ + (function ($) { $.fn.bootstrapTable.locales['fr-BE'] = { - formatLoadingMessage: function () { - return 'Chargement en cours...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' entrées par page'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Affiche de' + pageFrom + ' à ' + pageTo + ' sur ' + totalRows + ' lignes'; - }, - formatSearch: function () { - return 'Recherche'; - }, - formatNoMatches: function () { - return 'Pas de fichiers trouvés'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Chargement en cours...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' entr\xE9es par page'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Affiche de' + pageFrom + ' \xE0 ' + pageTo + ' sur ' + totalRows + ' lignes'; + }, + formatSearch: function formatSearch() { + return 'Recherche'; + }, + formatNoMatches: function formatNoMatches() { + return 'Pas de fichiers trouvés'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['fr-BE']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableFrFR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table French (France) translation - * Author: Dennis Hernández (http://djhvscf.github.io/Blog/) - * Modification: Tidalf (https://github.com/TidalfFR) - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table French (France) translation + * Author: Dennis Hernández (http://djhvscf.github.io/Blog/) + * Modification: Tidalf (https://github.com/TidalfFR) + */ + (function ($) { $.fn.bootstrapTable.locales['fr-FR'] = { - formatLoadingMessage: function () { - return 'Chargement en cours, patientez, s´il vous plaît ...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' lignes par page'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Affichage des lignes ' + pageFrom + ' à ' + pageTo + ' sur ' + totalRows + ' lignes au total'; - }, - formatSearch: function () { - return 'Rechercher'; - }, - formatNoMatches: function () { - return 'Aucun résultat trouvé'; - }, - formatRefresh: function () { - return 'Rafraîchir'; - }, - formatToggle: function () { - return 'Alterner'; - }, - formatColumns: function () { - return 'Colonnes'; - }, - formatAllRows: function () { - return 'Tous'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Chargement en cours, patientez, s´il vous plaît ...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' lignes par page'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Affichage des lignes ' + pageFrom + ' \xE0 ' + pageTo + ' sur ' + totalRows + ' lignes au total'; + }, + formatSearch: function formatSearch() { + return 'Rechercher'; + }, + formatNoMatches: function formatNoMatches() { + return 'Aucun résultat trouvé'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Montrer/Masquer pagination'; + }, + formatRefresh: function formatRefresh() { + return 'Rafraîchir'; + }, + formatToggle: function formatToggle() { + return 'Alterner'; + }, + formatColumns: function formatColumns() { + return 'Colonnes'; + }, + formatAllRows: function formatAllRows() { + return 'Tous'; + }, + formatExport: function formatExport() { + return 'Exporter les données'; + }, + formatClearFilters: function formatClearFilters() { + return 'Vider les filtres'; + }, + formatMultipleSort: function formatMultipleSort() { + return 'Tri avancé'; + }, + formatAddLevel: function formatAddLevel() { + return 'Ajouter un niveau'; + }, + formatDeleteLevel: function formatDeleteLevel() { + return 'Supprimer un niveau'; + }, + formatColumn: function formatColumn() { + return 'Colonne'; + }, + formatOrder: function formatOrder() { + return 'Ordre'; + }, + formatSortBy: function formatSortBy() { + return 'Trier par'; + }, + formatThenBy: function formatThenBy() { + return 'Puis par'; + }, + formatSort: function formatSort() { + return 'Trier'; + }, + formatCancel: function formatCancel() { + return 'Annuler'; + }, + formatDuplicateAlertTitle: function formatDuplicateAlertTitle() { + return 'Doublon(s) détecté(s)!'; + }, + formatDuplicateAlertDescription: function formatDuplicateAlertDescription() { + return 'Supprimez ou changez les colonnes dupliquées.'; + }, + formatSortOrders: function formatSortOrders() { + return { + asc: 'Croissant', + desc: 'Décroissant' + }; + }, + formatAdvancedSearch: function formatAdvancedSearch() { + return 'Recherche avancée'; + }, + formatAdvancedCloseButton: function formatAdvancedCloseButton() { + return 'Fermer'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['fr-FR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableHeIL = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Hebrew translation - * Author: legshooter - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Hebrew translation + * Author: legshooter + */ + (function ($) { $.fn.bootstrapTable.locales['he-IL'] = { - formatLoadingMessage: function () { - return 'טוען, נא להמתין...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' שורות בעמוד'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'מציג ' + pageFrom + ' עד ' + pageTo + ' מ-' + totalRows + ' שורות'; - }, - formatSearch: function () { - return 'חיפוש'; - }, - formatNoMatches: function () { - return 'לא נמצאו רשומות תואמות'; - }, - formatPaginationSwitch: function () { - return 'הסתר/הצג מספור דפים'; - }, - formatRefresh: function () { - return 'רענן'; - }, - formatToggle: function () { - return 'החלף תצוגה'; - }, - formatColumns: function () { - return 'עמודות'; - }, - formatAllRows: function () { - return 'הכל'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'טוען, נא להמתין...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u05E9\u05D5\u05E8\u05D5\u05EA \u05D1\u05E2\u05DE\u05D5\u05D3'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u05DE\u05E6\u05D9\u05D2 ' + pageFrom + ' \u05E2\u05D3 ' + pageTo + ' \u05DE-' + totalRows + ' \u05E9\u05D5\u05E8\u05D5\u05EA'; + }, + formatSearch: function formatSearch() { + return 'חיפוש'; + }, + formatNoMatches: function formatNoMatches() { + return 'לא נמצאו רשומות תואמות'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'הסתר/הצג מספור דפים'; + }, + formatRefresh: function formatRefresh() { + return 'רענן'; + }, + formatToggle: function formatToggle() { + return 'החלף תצוגה'; + }, + formatColumns: function formatColumns() { + return 'עמודות'; + }, + formatAllRows: function formatAllRows() { + return 'הכל'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['he-IL']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableHrHR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Croatian translation - * Author: Petra Štrbenac (petra.strbenac@gmail.com) - * Author: Petra Štrbenac (petra.strbenac@gmail.com) - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Croatian translation + * Author: Petra Štrbenac (petra.strbenac@gmail.com) + * Author: Petra Štrbenac (petra.strbenac@gmail.com) + */ + (function ($) { $.fn.bootstrapTable.locales['hr-HR'] = { - formatLoadingMessage: function () { - return 'Molimo pričekajte ...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' broj zapisa po stranici'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Prikazujem ' + pageFrom + '. - ' + pageTo + '. od ukupnog broja zapisa ' + totalRows; - }, - formatSearch: function () { - return 'Pretraži'; - }, - formatNoMatches: function () { - return 'Nije pronađen niti jedan zapis'; - }, - formatPaginationSwitch: function () { - return 'Prikaži/sakrij stranice'; - }, - formatRefresh: function () { - return 'Osvježi'; - }, - formatToggle: function () { - return 'Promijeni prikaz'; - }, - formatColumns: function () { - return 'Kolone'; - }, - formatAllRows: function () { - return 'Sve'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Molimo pričekajte ...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' broj zapisa po stranici'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Prikazujem ' + pageFrom + '. - ' + pageTo + '. od ukupnog broja zapisa ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Pretraži'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nije pronađen niti jedan zapis'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Prikaži/sakrij stranice'; + }, + formatRefresh: function formatRefresh() { + return 'Osvježi'; + }, + formatToggle: function formatToggle() { + return 'Promijeni prikaz'; + }, + formatColumns: function formatColumns() { + return 'Kolone'; + }, + formatAllRows: function formatAllRows() { + return 'Sve'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['hr-HR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableHuHU = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Hungarian translation - * Author: Nagy Gergely - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Hungarian translation + * Author: Nagy Gergely + */ + (function ($) { $.fn.bootstrapTable.locales['hu-HU'] = { - formatLoadingMessage: function () { - return 'Betöltés, kérem várjon...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rekord per oldal'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Megjelenítve ' + pageFrom + ' - ' + pageTo + ' / ' + totalRows + ' összesen'; - }, - formatSearch: function () { - return 'Keresés'; - }, - formatNoMatches: function () { - return 'Nincs találat'; - }, - formatPaginationSwitch: function () { - return 'Lapozó elrejtése/megjelenítése'; - }, - formatRefresh: function () { - return 'Frissítés'; - }, - formatToggle: function () { - return 'Összecsuk/Kinyit'; - }, - formatColumns: function () { - return 'Oszlopok'; - }, - formatAllRows: function () { - return 'Összes'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Betöltés, kérem várjon...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rekord per oldal'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Megjelen\xEDtve ' + pageFrom + ' - ' + pageTo + ' / ' + totalRows + ' \xF6sszesen'; + }, + formatSearch: function formatSearch() { + return 'Keresés'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nincs találat'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Lapozó elrejtése/megjelenítése'; + }, + formatRefresh: function formatRefresh() { + return 'Frissítés'; + }, + formatToggle: function formatToggle() { + return 'Összecsuk/Kinyit'; + }, + formatColumns: function formatColumns() { + return 'Oszlopok'; + }, + formatAllRows: function formatAllRows() { + return 'Összes'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['hu-HU']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableIdID = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); + /** + * Bootstrap Table Indonesian translation + * Author: Andre Gardiner + */ + (function ($) { + $.fn.bootstrapTable.locales['id-ID'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Memuat, mohon tunggu...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' baris per halaman'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Menampilkan ' + pageFrom + ' sampai ' + pageTo + ' dari ' + totalRows + ' baris'; + }, + formatSearch: function formatSearch() { + return 'Pencarian'; + }, + formatNoMatches: function formatNoMatches() { + return 'Tidak ditemukan data yang cocok'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Sembunyikan/Tampilkan halaman'; + }, + formatRefresh: function formatRefresh() { + return 'Muat ulang'; + }, + formatToggle: function formatToggle() { + return 'Beralih'; + }, + formatColumns: function formatColumns() { + return 'kolom'; + }, + formatAllRows: function formatAllRows() { + return 'Semua'; + }, + formatExport: function formatExport() { + return 'Ekspor data'; + }, + formatClearFilters: function formatClearFilters() { + return 'Bersihkan filter'; + } + }; -/** - * Bootstrap Table Italian translation - * Author: Davide Renzi - * Author: Davide Borsatto - * Author: Alessio Felicioni - */ -(function ($) { - 'use strict'; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['id-ID']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableItIT = mod.exports; + } +})(this, function () { + 'use strict'; + /** + * Bootstrap Table Italian translation + * Author: Davide Renzi + * Author: Davide Borsatto + * Author: Alessio Felicioni + */ + (function ($) { $.fn.bootstrapTable.locales['it-IT'] = { - formatLoadingMessage: function () { - return 'Caricamento in corso...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' elementi per pagina'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Pagina ' + pageFrom + ' di ' + pageTo + ' (' + totalRows + ' elementi)'; - }, - formatSearch: function () { - return 'Cerca'; - }, - formatNoMatches: function () { - return 'Nessun elemento trovato'; - }, - formatRefresh: function () { - return 'Aggiorna'; - }, - formatToggle: function () { - return 'Alterna'; - }, - formatColumns: function () { - return 'Colonne'; - }, - formatAllRows: function () { - return 'Tutto'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Caricamento in corso...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' elementi per pagina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Visualizzazione da ' + pageFrom + ' a ' + pageTo + ' di ' + totalRows + ' elementi'; + }, + formatSearch: function formatSearch() { + return 'Cerca'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nessun elemento trovato'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Nascondi/Mostra paginazione'; + }, + formatRefresh: function formatRefresh() { + return 'Aggiorna'; + }, + formatToggle: function formatToggle() { + return 'Attiva/Disattiva'; + }, + formatColumns: function formatColumns() { + return 'Colonne'; + }, + formatAllRows: function formatAllRows() { + return 'Tutto'; + }, + formatExport: function formatExport() { + return 'Esporta dati'; + }, + formatClearFilters: function formatClearFilters() { + return 'Pulisci filtri'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['it-IT']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableJaJP = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Japanese translation - * Author: Azamshul Azizy - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Japanese translation + * Author: Azamshul Azizy + */ + (function ($) { $.fn.bootstrapTable.locales['ja-JP'] = { - formatLoadingMessage: function () { - return '読み込み中です。少々お待ちください。'; - }, - formatRecordsPerPage: function (pageNumber) { - return 'ページ当たり最大' + pageNumber + '件'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '全' + totalRows + '件から、'+ pageFrom + 'から' + pageTo + '件目まで表示しています'; - }, - formatSearch: function () { - return '検索'; - }, - formatNoMatches: function () { - return '該当するレコードが見つかりません'; - }, - formatPaginationSwitch: function () { - return 'ページ数を表示・非表示'; - }, - formatRefresh: function () { - return '更新'; - }, - formatToggle: function () { - return 'トグル'; - }, - formatColumns: function () { - return '列'; - }, - formatAllRows: function () { - return 'すべて'; - } + formatLoadingMessage: function formatLoadingMessage() { + return '読み込み中です。少々お待ちください。'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return '\u30DA\u30FC\u30B8\u5F53\u305F\u308A\u6700\u5927' + pageNumber + '\u4EF6'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u5168' + totalRows + '\u4EF6\u304B\u3089\u3001' + pageFrom + '\u304B\u3089' + pageTo + '\u4EF6\u76EE\u307E\u3067\u8868\u793A\u3057\u3066\u3044\u307E\u3059'; + }, + formatSearch: function formatSearch() { + return '検索'; + }, + formatNoMatches: function formatNoMatches() { + return '該当するレコードが見つかりません'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'ページ数を表示・非表示'; + }, + formatRefresh: function formatRefresh() { + return '更新'; + }, + formatToggle: function formatToggle() { + return 'トグル'; + }, + formatColumns: function formatColumns() { + return '列'; + }, + formatAllRows: function formatAllRows() { + return 'すべて'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ja-JP']); - -})(jQuery); -/** - * Bootstrap Table Georgian translation - * Author: Levan Lotuashvili - */ -(function ($) { - 'use strict'; - - $.fn.bootstrapTable.locales['ka-GE'] = { - formatLoadingMessage: function() { - return 'იტვირთება, გთხოვთ მოიცადოთ...'; - }, - formatRecordsPerPage: function(pageNumber) { - return pageNumber + ' ჩანაწერი თითო გვერდზე'; - }, - formatShowingRows: function(pageFrom, pageTo, totalRows) { - return 'ნაჩვენებია ' + pageFrom + '-დან ' + pageTo + '-მდე ჩანაწერი ჯამური ' + totalRows + '-დან'; - }, - formatSearch: function() { - return 'ძებნა'; - }, - formatNoMatches: function() { - return 'მონაცემები არ არის'; - }, - formatPaginationSwitch: function() { - return 'გვერდების გადამრთველის დამალვა/გამოჩენა'; - }, - formatRefresh: function() { - return 'განახლება'; - }, - formatToggle: function() { - return 'ჩართვა/გამორთვა'; - }, - formatColumns: function() { - return 'სვეტები'; - } + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} }; - + factory(); + global.bootstrapTableKaGE = mod.exports; + } +})(this, function () { + 'use strict'; + + /** + * Bootstrap Table Georgian translation + * Author: Levan Lotuashvili + */ + (function ($) { + $.fn.bootstrapTable.locales['ka-GE'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'იტვირთება, გთხოვთ მოიცადოთ...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u10E9\u10D0\u10DC\u10D0\u10EC\u10D4\u10E0\u10D8 \u10D7\u10D8\u10D7\u10DD \u10D2\u10D5\u10D4\u10E0\u10D3\u10D6\u10D4'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u10DC\u10D0\u10E9\u10D5\u10D4\u10DC\u10D4\u10D1\u10D8\u10D0 ' + pageFrom + '-\u10D3\u10D0\u10DC ' + pageTo + '-\u10DB\u10D3\u10D4 \u10E9\u10D0\u10DC\u10D0\u10EC\u10D4\u10E0\u10D8 \u10EF\u10D0\u10DB\u10E3\u10E0\u10D8 ' + totalRows + '-\u10D3\u10D0\u10DC'; + }, + formatSearch: function formatSearch() { + return 'ძებნა'; + }, + formatNoMatches: function formatNoMatches() { + return 'მონაცემები არ არის'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'გვერდების გადამრთველის დამალვა/გამოჩენა'; + }, + formatRefresh: function formatRefresh() { + return 'განახლება'; + }, + formatToggle: function formatToggle() { + return 'ჩართვა/გამორთვა'; + }, + formatColumns: function formatColumns() { + return 'სვეტები'; + } + }; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ka-GE']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableKoKR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Korean translation - * Author: Yi Tae-Hyeong (jsonobject@gmail.com) - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Korean translation + * Author: Yi Tae-Hyeong (jsonobject@gmail.com) + */ + (function ($) { $.fn.bootstrapTable.locales['ko-KR'] = { - formatLoadingMessage: function () { - return '데이터를 불러오는 중입니다...'; - }, - formatRecordsPerPage: function (pageNumber) { - return '페이지 당 ' + pageNumber + '개 데이터 출력'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '전체 ' + totalRows + '개 중 ' + pageFrom + '~' + pageTo + '번째 데이터 출력,'; - }, - formatSearch: function () { - return '검색'; - }, - formatNoMatches: function () { - return '조회된 데이터가 없습니다.'; - }, - formatRefresh: function () { - return '새로 고침'; - }, - formatToggle: function () { - return '전환'; - }, - formatColumns: function () { - return '컬럼 필터링'; - } + formatLoadingMessage: function formatLoadingMessage() { + return '데이터를 불러오는 중입니다...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return '\uD398\uC774\uC9C0 \uB2F9 ' + pageNumber + '\uAC1C \uB370\uC774\uD130 \uCD9C\uB825'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\uC804\uCCB4 ' + totalRows + '\uAC1C \uC911 ' + pageFrom + '~' + pageTo + '\uBC88\uC9F8 \uB370\uC774\uD130 \uCD9C\uB825,'; + }, + formatSearch: function formatSearch() { + return '검색'; + }, + formatNoMatches: function formatNoMatches() { + return '조회된 데이터가 없습니다.'; + }, + formatRefresh: function formatRefresh() { + return '새로 고침'; + }, + formatToggle: function formatToggle() { + return '전환'; + }, + formatColumns: function formatColumns() { + return '컬럼 필터링'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ko-KR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableMsMY = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Malay translation - * Author: Azamshul Azizy - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Malay translation + * Author: Azamshul Azizy + */ + (function ($) { $.fn.bootstrapTable.locales['ms-MY'] = { - formatLoadingMessage: function () { - return 'Permintaan sedang dimuatkan. Sila tunggu sebentar...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rekod setiap muka surat'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Sedang memaparkan rekod ' + pageFrom + ' hingga ' + pageTo + ' daripada jumlah ' + totalRows + ' rekod'; - }, - formatSearch: function () { - return 'Cari'; - }, - formatNoMatches: function () { - return 'Tiada rekod yang menyamai permintaan'; - }, - formatPaginationSwitch: function () { - return 'Tunjuk/sembunyi muka surat'; - }, - formatRefresh: function () { - return 'Muatsemula'; - }, - formatToggle: function () { - return 'Tukar'; - }, - formatColumns: function () { - return 'Lajur'; - }, - formatAllRows: function () { - return 'Semua'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Permintaan sedang dimuatkan. Sila tunggu sebentar...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rekod setiap muka surat'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Sedang memaparkan rekod ' + pageFrom + ' hingga ' + pageTo + ' daripada jumlah ' + totalRows + ' rekod'; + }, + formatSearch: function formatSearch() { + return 'Cari'; + }, + formatNoMatches: function formatNoMatches() { + return 'Tiada rekod yang menyamai permintaan'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Tunjuk/sembunyi muka surat'; + }, + formatRefresh: function formatRefresh() { + return 'Muatsemula'; + }, + formatToggle: function formatToggle() { + return 'Tukar'; + }, + formatColumns: function formatColumns() { + return 'Lajur'; + }, + formatAllRows: function formatAllRows() { + return 'Semua'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ms-MY']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableNbNO = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table norwegian translation - * Author: Jim Nordbø, jim@nordb.no - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table norwegian translation + * Author: Jim Nordbø, jim@nordb.no + */ + (function ($) { $.fn.bootstrapTable.locales['nb-NO'] = { - formatLoadingMessage: function () { - return 'Oppdaterer, vennligst vent...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' poster pr side'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Viser ' + pageFrom + ' til ' + pageTo + ' av ' + totalRows + ' rekker'; - }, - formatSearch: function () { - return 'Søk'; - }, - formatNoMatches: function () { - return 'Ingen poster funnet'; - }, - formatRefresh: function () { - return 'Oppdater'; - }, - formatToggle: function () { - return 'Endre'; - }, - formatColumns: function () { - return 'Kolonner'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Oppdaterer, vennligst vent...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' poster pr side'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Viser ' + pageFrom + ' til ' + pageTo + ' av ' + totalRows + ' rekker'; + }, + formatSearch: function formatSearch() { + return 'Søk'; + }, + formatNoMatches: function formatNoMatches() { + return 'Ingen poster funnet'; + }, + formatRefresh: function formatRefresh() { + return 'Oppdater'; + }, + formatToggle: function formatToggle() { + return 'Endre'; + }, + formatColumns: function formatColumns() { + return 'Kolonner'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['nb-NO']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableNlNL = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Dutch translation - * Author: Your Name - */ -(function($) { - 'use strict'; - + /** + * Bootstrap Table Dutch translation + * Author: Your Name + */ + (function ($) { $.fn.bootstrapTable.locales['nl-NL'] = { - formatLoadingMessage: function() { - return 'Laden, even geduld...'; - }, - formatRecordsPerPage: function(pageNumber) { - return pageNumber + ' records per pagina'; - }, - formatShowingRows: function(pageFrom, pageTo, totalRows) { - return 'Toon ' + pageFrom + ' tot ' + pageTo + ' van ' + totalRows + ' record' + ((totalRows > 1) ? 's' : ''); - }, - formatDetailPagination: function(totalRows) { - return 'Toon ' + totalRows + ' record' + ((totalRows > 1) ? 's' : ''); - }, - formatSearch: function() { - return 'Zoeken'; - }, - formatNoMatches: function() { - return 'Geen resultaten gevonden'; - }, - formatRefresh: function() { - return 'Vernieuwen'; - }, - formatToggle: function() { - return 'Omschakelen'; - }, - formatColumns: function() { - return 'Kolommen'; - }, - formatAllRows: function() { - return 'Alle'; - }, - formatPaginationSwitch: function() { - return 'Verberg/Toon paginatie'; - }, - formatExport: function() { - return 'Exporteer data'; - }, - formatClearFilters: function() { - return 'Verwijder filters'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Laden, even geduld...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' records per pagina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Toon ' + pageFrom + ' tot ' + pageTo + ' van ' + totalRows + ' record' + (totalRows > 1 ? 's' : ''); + }, + formatDetailPagination: function formatDetailPagination(totalRows) { + return 'Toon ' + totalRows + ' record' + (totalRows > 1 ? 's' : ''); + }, + formatSearch: function formatSearch() { + return 'Zoeken'; + }, + formatNoMatches: function formatNoMatches() { + return 'Geen resultaten gevonden'; + }, + formatRefresh: function formatRefresh() { + return 'Vernieuwen'; + }, + formatToggle: function formatToggle() { + return 'Omschakelen'; + }, + formatColumns: function formatColumns() { + return 'Kolommen'; + }, + formatAllRows: function formatAllRows() { + return 'Alle'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Verberg/Toon paginatie'; + }, + formatExport: function formatExport() { + return 'Exporteer data'; + }, + formatClearFilters: function formatClearFilters() { + return 'Verwijder filters'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['nl-NL']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTablePlPL = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Polish translation - * Author: zergu - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Polish translation + * Author: zergu + */ + (function ($) { $.fn.bootstrapTable.locales['pl-PL'] = { - formatLoadingMessage: function () { - return 'Ładowanie, proszę czekać...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rekordów na stronę'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Wyświetlanie rekordów od ' + pageFrom + ' do ' + pageTo + ' z ' + totalRows; - }, - formatSearch: function () { - return 'Szukaj'; - }, - formatNoMatches: function () { - return 'Niestety, nic nie znaleziono'; - }, - formatRefresh: function () { - return 'Odśwież'; - }, - formatToggle: function () { - return 'Przełącz'; - }, - formatColumns: function () { - return 'Kolumny'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Ładowanie, proszę czekać...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rekord\xF3w na stron\u0119'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Wy\u015Bwietlanie rekord\xF3w od ' + pageFrom + ' do ' + pageTo + ' z ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Szukaj'; + }, + formatNoMatches: function formatNoMatches() { + return 'Niestety, nic nie znaleziono'; + }, + formatRefresh: function formatRefresh() { + return 'Odśwież'; + }, + formatToggle: function formatToggle() { + return 'Przełącz'; + }, + formatColumns: function formatColumns() { + return 'Kolumny'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pl-PL']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTablePtBR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Brazilian Portuguese Translation - * Author: Eduardo Cerqueira - * Update: João Mello - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Brazilian Portuguese Translation + * Author: Eduardo Cerqueira + * Update: João Mello + */ + (function ($) { $.fn.bootstrapTable.locales['pt-BR'] = { - formatLoadingMessage: function () { - return 'Carregando, aguarde...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registros por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Exibindo ' + pageFrom + ' até ' + pageTo + ' de ' + totalRows + ' linhas'; - }, - formatSearch: function () { - return 'Pesquisar'; - }, - formatRefresh: function () { - return 'Recarregar'; - }, - formatToggle: function () { - return 'Alternar'; - }, - formatColumns: function () { - return 'Colunas'; - }, - formatPaginationSwitch: function () { - return 'Ocultar/Exibir paginação'; - }, - formatNoMatches: function () { - return 'Nenhum registro encontrado'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Carregando, aguarde...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registros por p\xE1gina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Exibindo ' + pageFrom + ' at\xE9 ' + pageTo + ' de ' + totalRows + ' linhas'; + }, + formatSearch: function formatSearch() { + return 'Pesquisar'; + }, + formatRefresh: function formatRefresh() { + return 'Recarregar'; + }, + formatToggle: function formatToggle() { + return 'Alternar'; + }, + formatColumns: function formatColumns() { + return 'Colunas'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Ocultar/Exibir paginação'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nenhum registro encontrado'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-BR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTablePtPT = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Portuguese Portugal Translation - * Author: Burnspirit - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Portuguese Portugal Translation + * Author: Burnspirit + */ + (function ($) { $.fn.bootstrapTable.locales['pt-PT'] = { - formatLoadingMessage: function () { - return 'A carregar, por favor aguarde...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' registos por página'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'A mostrar ' + pageFrom + ' até ' + pageTo + ' de ' + totalRows + ' linhas'; - }, - formatSearch: function () { - return 'Pesquisa'; - }, - formatNoMatches: function () { - return 'Nenhum registo encontrado'; - }, - formatPaginationSwitch: function () { - return 'Esconder/Mostrar paginação'; - }, - formatRefresh: function () { - return 'Atualizar'; - }, - formatToggle: function () { - return 'Alternar'; - }, - formatColumns: function () { - return 'Colunas'; - }, - formatAllRows: function () { - return 'Tudo'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'A carregar, por favor aguarde...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' registos por página'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'A mostrar ' + pageFrom + ' até ' + pageTo + ' de ' + totalRows + ' linhas'; + }, + formatSearch: function formatSearch() { + return 'Pesquisa'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nenhum registo encontrado'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Esconder/Mostrar paginação'; + }, + formatRefresh: function formatRefresh() { + return 'Atualizar'; + }, + formatToggle: function formatToggle() { + return 'Alternar'; + }, + formatColumns: function formatColumns() { + return 'Colunas'; + }, + formatAllRows: function formatAllRows() { + return 'Tudo'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-PT']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableRoRO = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Romanian translation - * Author: cristake - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Romanian translation + * Author: cristake + */ + (function ($) { $.fn.bootstrapTable.locales['ro-RO'] = { - formatLoadingMessage: function () { - return 'Se incarca, va rugam asteptati...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' inregistrari pe pagina'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Arata de la ' + pageFrom + ' pana la ' + pageTo + ' din ' + totalRows + ' randuri'; - }, - formatSearch: function () { - return 'Cauta'; - }, - formatNoMatches: function () { - return 'Nu au fost gasite inregistrari'; - }, - formatPaginationSwitch: function () { - return 'Ascunde/Arata paginatia'; - }, - formatRefresh: function () { - return 'Reincarca'; - }, - formatToggle: function () { - return 'Comuta'; - }, - formatColumns: function () { - return 'Coloane'; - }, - formatAllRows: function () { - return 'Toate'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Se incarca, va rugam asteptati...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' inregistrari pe pagina'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Arata de la ' + pageFrom + ' pana la ' + pageTo + ' din ' + totalRows + ' randuri'; + }, + formatSearch: function formatSearch() { + return 'Cauta'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nu au fost gasite inregistrari'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Ascunde/Arata paginatia'; + }, + formatRefresh: function formatRefresh() { + return 'Reincarca'; + }, + formatToggle: function formatToggle() { + return 'Comuta'; + }, + formatColumns: function formatColumns() { + return 'Coloane'; + }, + formatAllRows: function formatAllRows() { + return 'Toate'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ro-RO']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableRuRU = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Russian translation - * Author: Dunaevsky Maxim - */ -(function ($) { - 'use strict'; + /** + * Bootstrap Table Russian translation + * Author: Dunaevsky Maxim + */ + (function ($) { $.fn.bootstrapTable.locales['ru-RU'] = { - formatLoadingMessage: function () { - return 'Пожалуйста, подождите, идёт загрузка...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' записей на страницу'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Записи с ' + pageFrom + ' по ' + pageTo + ' из ' + totalRows; - }, - formatSearch: function () { - return 'Поиск'; - }, - formatNoMatches: function () { - return 'Ничего не найдено'; - }, - formatRefresh: function () { - return 'Обновить'; - }, - formatToggle: function () { - return 'Переключить'; - }, - formatColumns: function () { - return 'Колонки'; - }, - formatClearFilters: function () { - return 'Очистить фильтры'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Пожалуйста, подождите, идёт загрузка...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u0417\u0430\u043F\u0438\u0441\u0438 \u0441 ' + pageFrom + ' \u043F\u043E ' + pageTo + ' \u0438\u0437 ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Поиск'; + }, + formatNoMatches: function formatNoMatches() { + return 'Ничего не найдено'; + }, + formatRefresh: function formatRefresh() { + return 'Обновить'; + }, + formatToggle: function formatToggle() { + return 'Переключить'; + }, + formatColumns: function formatColumns() { + return 'Колонки'; + }, + formatClearFilters: function formatClearFilters() { + return 'Очистить фильтры'; + }, + formatMultipleSort: function formatMultipleSort() { + return 'Множественная сортировка'; + }, + formatAddLevel: function formatAddLevel() { + return 'Добавить уровень'; + }, + formatDeleteLevel: function formatDeleteLevel() { + return 'Удалить уровень'; + }, + formatColumn: function formatColumn() { + return 'Колонка'; + }, + formatOrder: function formatOrder() { + return 'Порядок'; + }, + formatSortBy: function formatSortBy() { + return 'Сортировать по'; + }, + formatThenBy: function formatThenBy() { + return 'затем по'; + }, + formatSort: function formatSort() { + return 'Сортировать'; + }, + formatCancel: function formatCancel() { + return 'Отмена'; + }, + formatDuplicateAlertTitle: function formatDuplicateAlertTitle() { + return 'Дублирование колонок!'; + }, + formatDuplicateAlertDescription: function formatDuplicateAlertDescription() { + return 'Удалите, пожалуйста, дублирующую колонку, или замените ее на другую.'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ru-RU']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableSkSK = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Slovak translation - * Author: Jozef Dúc - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Slovak translation + * Author: Jozef Dúc + */ + (function ($) { $.fn.bootstrapTable.locales['sk-SK'] = { - formatLoadingMessage: function () { - return 'Prosím čakajte ...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' záznamov na stranu'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Zobrazená ' + pageFrom + '. - ' + pageTo + '. položka z celkových ' + totalRows; - }, - formatSearch: function () { - return 'Vyhľadávanie'; - }, - formatNoMatches: function () { - return 'Nenájdená žiadna vyhovujúca položka'; - }, - formatRefresh: function () { - return 'Obnoviť'; - }, - formatToggle: function () { - return 'Prepni'; - }, - formatColumns: function () { - return 'Stĺpce'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Prosím čakajte ...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' z\xE1znamov na stranu'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Zobrazen\xE1 ' + pageFrom + '. - ' + pageTo + '. polo\u017Eka z celkov\xFDch ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Vyhľadávanie'; + }, + formatNoMatches: function formatNoMatches() { + return 'Nenájdená žiadna vyhovujúca položka'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Skry/Zobraz stránkovanie'; + }, + formatRefresh: function formatRefresh() { + return 'Obnoviť'; + }, + formatToggle: function formatToggle() { + return 'Prepni'; + }, + formatColumns: function formatColumns() { + return 'Stĺpce'; + }, + formatAllRows: function formatAllRows() { + return 'Všetky'; + }, + formatExport: function formatExport() { + return 'Exportuj dáta'; + }, + formatClearFilters: function formatClearFilters() { + return 'Odstráň filtre'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['sk-SK']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableSvSE = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Swedish translation - * Author: C Bratt - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Swedish translation + * Author: C Bratt + */ + (function ($) { $.fn.bootstrapTable.locales['sv-SE'] = { - formatLoadingMessage: function () { - return 'Laddar, vänligen vänta...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' rader per sida'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Visa ' + pageFrom + ' till ' + pageTo + ' av ' + totalRows + ' rader'; - }, - formatSearch: function () { - return 'Sök'; - }, - formatNoMatches: function () { - return 'Inga matchande resultat funna.'; - }, - formatRefresh: function () { - return 'Uppdatera'; - }, - formatToggle: function () { - return 'Skifta'; - }, - formatColumns: function () { - return 'kolumn'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Laddar, vänligen vänta...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' rader per sida'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Visa ' + pageFrom + ' till ' + pageTo + ' av ' + totalRows + ' rader'; + }, + formatSearch: function formatSearch() { + return 'Sök'; + }, + formatNoMatches: function formatNoMatches() { + return 'Inga matchande resultat funna.'; + }, + formatRefresh: function formatRefresh() { + return 'Uppdatera'; + }, + formatToggle: function formatToggle() { + return 'Skifta'; + }, + formatColumns: function formatColumns() { + return 'kolumn'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['sv-SE']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableThTH = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Thai translation - * Author: Monchai S. - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Thai translation + * Author: Monchai S. + */ + (function ($) { $.fn.bootstrapTable.locales['th-TH'] = { - formatLoadingMessage: function () { - return 'กำลังโหลดข้อมูล, กรุณารอสักครู่...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' รายการต่อหน้า'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'รายการที่ ' + pageFrom + ' ถึง ' + pageTo + ' จากทั้งหมด ' + totalRows + ' รายการ'; - }, - formatSearch: function () { - return 'ค้นหา'; - }, - formatNoMatches: function () { - return 'ไม่พบรายการที่ค้นหา !'; - }, - formatRefresh: function () { - return 'รีเฟรส'; - }, - formatToggle: function () { - return 'สลับมุมมอง'; - }, - formatColumns: function () { - return 'คอลัมน์'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'กำลังโหลดข้อมูล, กรุณารอสักครู่...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E2B\u0E19\u0E49\u0E32'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48 ' + pageFrom + ' \u0E16\u0E36\u0E07 ' + pageTo + ' \u0E08\u0E32\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14 ' + totalRows + ' \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23'; + }, + formatSearch: function formatSearch() { + return 'ค้นหา'; + }, + formatNoMatches: function formatNoMatches() { + return 'ไม่พบรายการที่ค้นหา !'; + }, + formatRefresh: function formatRefresh() { + return 'รีเฟรส'; + }, + formatToggle: function formatToggle() { + return 'สลับมุมมอง'; + }, + formatColumns: function formatColumns() { + return 'คอลัมน์'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['th-TH']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableTrTR = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Turkish translation - * Author: Emin Şen - * Author: Sercan Cakir - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Turkish translation + * Author: Emin Şen + * Author: Sercan Cakir + */ + (function ($) { $.fn.bootstrapTable.locales['tr-TR'] = { - formatLoadingMessage: function () { - return 'Yükleniyor, lütfen bekleyin...'; - }, - formatRecordsPerPage: function (pageNumber) { - return 'Sayfa başına ' + pageNumber + ' kayıt.'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return totalRows + ' kayıttan ' + pageFrom + '-' + pageTo + ' arası gösteriliyor.'; - }, - formatSearch: function () { - return 'Ara'; - }, - formatNoMatches: function () { - return 'Eşleşen kayıt bulunamadı.'; - }, - formatRefresh: function () { - return 'Yenile'; - }, - formatToggle: function () { - return 'Değiştir'; - }, - formatColumns: function () { - return 'Sütunlar'; - }, - formatAllRows: function () { - return 'Tüm Satırlar'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Yükleniyor, lütfen bekleyin...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return 'Sayfa ba\u015F\u0131na ' + pageNumber + ' kay\u0131t.'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return totalRows + ' kay\u0131ttan ' + pageFrom + '-' + pageTo + ' aras\u0131 g\xF6steriliyor.'; + }, + formatSearch: function formatSearch() { + return 'Ara'; + }, + formatNoMatches: function formatNoMatches() { + return 'Eşleşen kayıt bulunamadı.'; + }, + formatRefresh: function formatRefresh() { + return 'Yenile'; + }, + formatToggle: function formatToggle() { + return 'Değiştir'; + }, + formatColumns: function formatColumns() { + return 'Sütunlar'; + }, + formatAllRows: function formatAllRows() { + return 'Tüm Satırlar'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['tr-TR']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableUkUA = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Ukrainian translation - * Author: Vitaliy Timchenko - */ - (function ($) { - 'use strict'; - + /** + * Bootstrap Table Ukrainian translation + * Author: Vitaliy Timchenko + */ + (function ($) { $.fn.bootstrapTable.locales['uk-UA'] = { - formatLoadingMessage: function () { - return 'Завантаження, будь ласка, зачекайте...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' записів на сторінку'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Показано з ' + pageFrom + ' по ' + pageTo + '. Всього: ' + totalRows; - }, - formatSearch: function () { - return 'Пошук'; - }, - formatNoMatches: function () { - return 'Не знайдено жодного запису'; - }, - formatRefresh: function () { - return 'Оновити'; - }, - formatToggle: function () { - return 'Змінити'; - }, - formatColumns: function () { - return 'Стовпці'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Завантаження, будь ласка, зачекайте...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u0437\u0430\u043F\u0438\u0441\u0456\u0432 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E \u0437 ' + pageFrom + ' \u043F\u043E ' + pageTo + '. \u0412\u0441\u044C\u043E\u0433\u043E: ' + totalRows; + }, + formatSearch: function formatSearch() { + return 'Пошук'; + }, + formatNoMatches: function formatNoMatches() { + return 'Не знайдено жодного запису'; + }, + formatRefresh: function formatRefresh() { + return 'Оновити'; + }, + formatToggle: function formatToggle() { + return 'Змінити'; + }, + formatColumns: function formatColumns() { + return 'Стовпці'; + }, + formatClearFilters: function formatClearFilters() { + return 'Очистити фільтри'; + }, + formatMultipleSort: function formatMultipleSort() { + return 'Сортування за кількома стовпцями'; + }, + formatAddLevel: function formatAddLevel() { + return 'Додати рівень'; + }, + formatDeleteLevel: function formatDeleteLevel() { + return 'Видалити рівень'; + }, + formatColumn: function formatColumn() { + return 'Стовпець'; + }, + formatOrder: function formatOrder() { + return 'Порядок'; + }, + formatSortBy: function formatSortBy() { + return 'Сортувати за'; + }, + formatThenBy: function formatThenBy() { + return 'потім за'; + }, + formatSort: function formatSort() { + return 'Сортувати'; + }, + formatCancel: function formatCancel() { + return 'Скасувати'; + }, + formatDuplicateAlertTitle: function formatDuplicateAlertTitle() { + return 'Дублювання стовпців!'; + }, + formatDuplicateAlertDescription: function formatDuplicateAlertDescription() { + return 'Видаліть, будь ласка, дублюючий стовпець, або замініть його на інший.'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['uk-UA']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableUrPK = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Urdu translation - * Author: Malik - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Urdu translation + * Author: Malik + */ + (function ($) { $.fn.bootstrapTable.locales['ur-PK'] = { - formatLoadingMessage: function () { - return 'براۓ مہربانی انتظار کیجئے'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' ریکارڈز فی صفہ '; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'دیکھیں ' + pageFrom + ' سے ' + pageTo + ' کے ' + totalRows + 'ریکارڈز'; - }, - formatSearch: function () { - return 'تلاش'; - }, - formatNoMatches: function () { - return 'کوئی ریکارڈ نہیں ملا'; - }, - formatRefresh: function () { - return 'تازہ کریں'; - }, - formatToggle: function () { - return 'تبدیل کریں'; - }, - formatColumns: function () { - return 'کالم'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'براۓ مہربانی انتظار کیجئے'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' \u0631\u06CC\u06A9\u0627\u0631\u0688\u0632 \u0641\u06CC \u0635\u0641\u06C1 '; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u062F\u06CC\u06A9\u06BE\u06CC\u06BA ' + pageFrom + ' \u0633\u06D2 ' + pageTo + ' \u06A9\u06D2 ' + totalRows + '\u0631\u06CC\u06A9\u0627\u0631\u0688\u0632'; + }, + formatSearch: function formatSearch() { + return 'تلاش'; + }, + formatNoMatches: function formatNoMatches() { + return 'کوئی ریکارڈ نہیں ملا'; + }, + formatRefresh: function formatRefresh() { + return 'تازہ کریں'; + }, + formatToggle: function formatToggle() { + return 'تبدیل کریں'; + }, + formatColumns: function formatColumns() { + return 'کالم'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ur-PK']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableUzLatnUZ = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); + /** + * Bootstrap Table Uzbek translation + * Author: Nabijon Masharipov + */ + (function ($) { + $.fn.bootstrapTable.locales['uz-Latn-UZ'] = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Yuklanyapti, iltimos kuting...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' qator har sahifada'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Ko\'rsatypati ' + pageFrom + ' dan ' + pageTo + ' gacha ' + totalRows + ' qatorlarni'; + }, + formatSearch: function formatSearch() { + return 'Qidirish'; + }, + formatNoMatches: function formatNoMatches() { + return 'Hech narsa topilmadi'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Sahifalashni yashirish/ko\'rsatish'; + }, + formatRefresh: function formatRefresh() { + return 'Yangilash'; + }, + formatToggle: function formatToggle() { + return 'Ko\'rinish'; + }, + formatColumns: function formatColumns() { + return 'Ustunlar'; + }, + formatAllRows: function formatAllRows() { + return 'Hammasi'; + }, + formatExport: function formatExport() { + return 'Eksport'; + }, + formatClearFilters: function formatClearFilters() { + return 'Filtrlarni tozalash'; + } + }; -/** - * Bootstrap Table Vietnamese translation - * Author: Duc N. PHAM - */ -(function ($) { - 'use strict'; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['uz-Latn-UZ']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableViVN = mod.exports; + } +})(this, function () { + 'use strict'; + /** + * Bootstrap Table Vietnamese translation + * Author: Duc N. PHAM + */ + (function ($) { $.fn.bootstrapTable.locales['vi-VN'] = { - formatLoadingMessage: function () { - return 'Đang tải...'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' bản ghi mỗi trang'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return 'Hiển thị từ trang ' + pageFrom + ' đến ' + pageTo + ' của ' + totalRows + ' bảng ghi'; - }, - formatSearch: function () { - return 'Tìm kiếm'; - }, - formatNoMatches: function () { - return 'Không có dữ liệu'; - } + formatLoadingMessage: function formatLoadingMessage() { + return 'Đang tải...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return pageNumber + ' b\u1EA3n ghi m\u1ED7i trang'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return 'Hi\u1EC3n th\u1ECB t\u1EEB trang ' + pageFrom + ' \u0111\u1EBFn ' + pageTo + ' c\u1EE7a ' + totalRows + ' b\u1EA3ng ghi'; + }, + formatSearch: function formatSearch() { + return 'Tìm kiếm'; + }, + formatNoMatches: function formatNoMatches() { + return 'Không có dữ liệu'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['vi-VN']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableZhCN = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); -/** - * Bootstrap Table Chinese translation - * Author: Zhixin Wen - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Chinese translation + * Author: Zhixin Wen + */ + (function ($) { $.fn.bootstrapTable.locales['zh-CN'] = { - formatLoadingMessage: function () { - return '正在努力地加载数据中,请稍候……'; - }, - formatRecordsPerPage: function (pageNumber) { - return '每页显示 ' + pageNumber + ' 条记录'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '显示第 ' + pageFrom + ' 到第 ' + pageTo + ' 条记录,总共 ' + totalRows + ' 条记录'; - }, - formatSearch: function () { - return '搜索'; - }, - formatNoMatches: function () { - return '没有找到匹配的记录'; - }, - formatPaginationSwitch: function () { - return '隐藏/显示分页'; - }, - formatRefresh: function () { - return '刷新'; - }, - formatToggle: function () { - return '切换'; - }, - formatColumns: function () { - return '列'; - }, - formatExport: function () { - return '导出数据'; - }, - formatClearFilters: function () { - return '清空过滤'; - } + formatLoadingMessage: function formatLoadingMessage() { + return '正在努力地加载数据中,请稍候……'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return '\u6BCF\u9875\u663E\u793A ' + pageNumber + ' \u6761\u8BB0\u5F55'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u663E\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 ' + totalRows + ' \u6761\u8BB0\u5F55'; + }, + formatSearch: function formatSearch() { + return '搜索'; + }, + formatNoMatches: function formatNoMatches() { + return '没有找到匹配的记录'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return '隐藏/显示分页'; + }, + formatRefresh: function formatRefresh() { + return '刷新'; + }, + formatToggle: function formatToggle() { + return '切换'; + }, + formatColumns: function formatColumns() { + return '列'; + }, + formatExport: function formatExport() { + return '导出数据'; + }, + formatClearFilters: function formatClearFilters() { + return '清空过滤'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']); + })(jQuery); +}); +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableZhTW = mod.exports; + } +})(this, function () { + 'use strict'; -})(jQuery); - -/** - * Bootstrap Table Chinese translation - * Author: Zhixin Wen - */ -(function ($) { - 'use strict'; - + /** + * Bootstrap Table Chinese translation + * Author: Zhixin Wen + */ + (function ($) { $.fn.bootstrapTable.locales['zh-TW'] = { - formatLoadingMessage: function () { - return '正在努力地載入資料,請稍候……'; - }, - formatRecordsPerPage: function (pageNumber) { - return '每頁顯示 ' + pageNumber + ' 項記錄'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '顯示第 ' + pageFrom + ' 到第 ' + pageTo + ' 項記錄,總共 ' + totalRows + ' 項記錄'; - }, - formatSearch: function () { - return '搜尋'; - }, - formatNoMatches: function () { - return '沒有找到符合的結果'; - }, - formatPaginationSwitch: function () { - return '隱藏/顯示分頁'; - }, - formatRefresh: function () { - return '重新整理'; - }, - formatToggle: function () { - return '切換'; - }, - formatColumns: function () { - return '列'; - } + formatLoadingMessage: function formatLoadingMessage() { + return '正在努力地載入資料,請稍候……'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return '\u6BCF\u9801\u986F\u793A ' + pageNumber + ' \u9805\u8A18\u9304'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u986F\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u9805\u8A18\u9304\uFF0C\u7E3D\u5171 ' + totalRows + ' \u9805\u8A18\u9304'; + }, + formatSearch: function formatSearch() { + return '搜尋'; + }, + formatNoMatches: function formatNoMatches() { + return '沒有找到符合的結果'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return '隱藏/顯示分頁'; + }, + formatRefresh: function formatRefresh() { + return '重新整理'; + }, + formatToggle: function formatToggle() { + return '切換'; + }, + formatColumns: function formatColumns() { + return '列'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-TW']); - -})(jQuery); + })(jQuery); +}); diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.min.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.min.js index 8b33e93..63005bc 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.min.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table-locale-all.min.js @@ -1,7 +1,56 @@ -/* -* bootstrap-table - v1.11.0 - 2016-07-02 -* https://github.com/wenzhixin/bootstrap-table -* Copyright (c) 2016 zhixin wen -* Licensed MIT License -*/ -!function(a){"use strict";a.fn.bootstrapTable.locales["af-ZA"]={formatLoadingMessage:function(){return"Besig om te laai, wag asseblief ..."},formatRecordsPerPage:function(a){return a+" rekords per bladsy"},formatShowingRows:function(a,b,c){return"Resultate "+a+" tot "+b+" van "+c+" rye"},formatSearch:function(){return"Soek"},formatNoMatches:function(){return"Geen rekords gevind nie"},formatPaginationSwitch:function(){return"Wys/verberg bladsy nummering"},formatRefresh:function(){return"Herlaai"},formatToggle:function(){return"Wissel"},formatColumns:function(){return"Kolomme"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["af-ZA"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ar-SA"]={formatLoadingMessage:function(){return"جاري التحميل, يرجى الإنتظار..."},formatRecordsPerPage:function(a){return a+" سجل لكل صفحة"},formatShowingRows:function(a,b,c){return"الظاهر "+a+" إلى "+b+" من "+c+" سجل"},formatSearch:function(){return"بحث"},formatNoMatches:function(){return"لا توجد نتائج مطابقة للبحث"},formatPaginationSwitch:function(){return"إخفاءإظهار ترقيم الصفحات"},formatRefresh:function(){return"تحديث"},formatToggle:function(){return"تغيير"},formatColumns:function(){return"أعمدة"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ar-SA"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ca-ES"]={formatLoadingMessage:function(){return"Espereu, si us plau..."},formatRecordsPerPage:function(a){return a+" resultats per pàgina"},formatShowingRows:function(a,b,c){return"Mostrant de "+a+" fins "+b+" - total "+c+" resultats"},formatSearch:function(){return"Cerca"},formatNoMatches:function(){return"No s'han trobat resultats"},formatPaginationSwitch:function(){return"Amaga/Mostra paginació"},formatRefresh:function(){return"Refresca"},formatToggle:function(){return"Alterna formatació"},formatColumns:function(){return"Columnes"},formatAllRows:function(){return"Tots"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ca-ES"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["cs-CZ"]={formatLoadingMessage:function(){return"Čekejte, prosím..."},formatRecordsPerPage:function(a){return a+" položek na stránku"},formatShowingRows:function(a,b,c){return"Zobrazena "+a+". - "+b+". položka z celkových "+c},formatSearch:function(){return"Vyhledávání"},formatNoMatches:function(){return"Nenalezena žádná vyhovující položka"},formatPaginationSwitch:function(){return"Skrýt/Zobrazit stránkování"},formatRefresh:function(){return"Aktualizovat"},formatToggle:function(){return"Přepni"},formatColumns:function(){return"Sloupce"},formatAllRows:function(){return"Vše"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["cs-CZ"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["da-DK"]={formatLoadingMessage:function(){return"Indlæser, vent venligst..."},formatRecordsPerPage:function(a){return a+" poster pr side"},formatShowingRows:function(a,b,c){return"Viser "+a+" til "+b+" af "+c+" rækker"},formatSearch:function(){return"Søg"},formatNoMatches:function(){return"Ingen poster fundet"},formatRefresh:function(){return"Opdater"},formatToggle:function(){return"Skift"},formatColumns:function(){return"Kolonner"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["da-DK"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["de-DE"]={formatLoadingMessage:function(){return"Lade, bitte warten..."},formatRecordsPerPage:function(a){return a+" Einträge pro Seite"},formatShowingRows:function(a,b,c){return"Zeige "+a+" bis "+b+" von "+c+" Zeile"+(c>1?"n":"")},formatSearch:function(){return"Suchen"},formatNoMatches:function(){return"Keine passenden Ergebnisse gefunden"},formatRefresh:function(){return"Neu laden"},formatToggle:function(){return"Umschalten"},formatColumns:function(){return"Spalten"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["de-DE"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["el-GR"]={formatLoadingMessage:function(){return"Φορτώνει, παρακαλώ περιμένετε..."},formatRecordsPerPage:function(a){return a+" αποτελέσματα ανά σελίδα"},formatShowingRows:function(a,b,c){return"Εμφανίζονται από την "+a+" ως την "+b+" από σύνολο "+c+" σειρών"},formatSearch:function(){return"Αναζητήστε"},formatNoMatches:function(){return"Δεν βρέθηκαν αποτελέσματα"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["el-GR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["en-US"]={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(a){return a+" rows per page"},formatShowingRows:function(a,b,c){return"Showing "+a+" to "+b+" of "+c+" rows"},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"},formatExport:function(){return"Export data"},formatClearFilters:function(){return"Clear filters"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["en-US"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["es-AR"]={formatLoadingMessage:function(){return"Cargando, espere por favor..."},formatRecordsPerPage:function(a){return a+" registros por página"},formatShowingRows:function(a,b,c){return"Mostrando "+a+" a "+b+" de "+c+" filas"},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se encontraron registros"},formatAllRows:function(){return"Todo"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["es-AR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["es-CR"]={formatLoadingMessage:function(){return"Cargando, por favor espere..."},formatRecordsPerPage:function(a){return a+" registros por página"},formatShowingRows:function(a,b,c){return"Mostrando de "+a+" a "+b+" registros de "+c+" registros en total"},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se encontraron registros"},formatRefresh:function(){return"Refrescar"},formatToggle:function(){return"Alternar"},formatColumns:function(){return"Columnas"},formatAllRows:function(){return"Todo"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["es-CR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["es-ES"]={formatLoadingMessage:function(){return"Por favor espere..."},formatRecordsPerPage:function(a){return a+" resultados por página"},formatShowingRows:function(a,b,c){return"Mostrando desde "+a+" hasta "+b+" - En total "+c+" resultados"},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se encontraron resultados"},formatPaginationSwitch:function(){return"Ocultar/Mostrar paginación"},formatRefresh:function(){return"Refrescar"},formatToggle:function(){return"Ocultar/Mostrar"},formatColumns:function(){return"Columnas"},formatAllRows:function(){return"Todos"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["es-ES"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["es-MX"]={formatLoadingMessage:function(){return"Cargando, espere por favor..."},formatRecordsPerPage:function(a){return a+" registros por página"},formatShowingRows:function(a,b,c){return"Mostrando "+a+" a "+b+" de "+c+" filas"},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se encontraron registros"},formatAllRows:function(){return"Todo"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["es-MX"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["es-NI"]={formatLoadingMessage:function(){return"Cargando, por favor espere..."},formatRecordsPerPage:function(a){return a+" registros por página"},formatShowingRows:function(a,b,c){return"Mostrando de "+a+" a "+b+" registros de "+c+" registros en total"},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se encontraron registros"},formatRefresh:function(){return"Refrescar"},formatToggle:function(){return"Alternar"},formatColumns:function(){return"Columnas"},formatAllRows:function(){return"Todo"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["es-NI"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["es-SP"]={formatLoadingMessage:function(){return"Cargando, por favor espera..."},formatRecordsPerPage:function(a){return a+" registros por página."},formatShowingRows:function(a,b,c){return a+" - "+b+" de "+c+" registros."},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se han encontrado registros."},formatRefresh:function(){return"Actualizar"},formatToggle:function(){return"Alternar"},formatColumns:function(){return"Columnas"},formatAllRows:function(){return"Todo"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["es-SP"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["et-EE"]={formatLoadingMessage:function(){return"Päring käib, palun oota..."},formatRecordsPerPage:function(a){return a+" rida lehe kohta"},formatShowingRows:function(a,b,c){return"Näitan tulemusi "+a+" kuni "+b+" - kokku "+c+" tulemust"},formatSearch:function(){return"Otsi"},formatNoMatches:function(){return"Päringu tingimustele ei vastanud ühtegi tulemust"},formatPaginationSwitch:function(){return"Näita/Peida lehtedeks jagamine"},formatRefresh:function(){return"Värskenda"},formatToggle:function(){return"Lülita"},formatColumns:function(){return"Veerud"},formatAllRows:function(){return"Kõik"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["et-EE"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["fa-IR"]={formatLoadingMessage:function(){return"در حال بارگذاری, لطفا صبر کنید..."},formatRecordsPerPage:function(a){return a+" رکورد در صفحه"},formatShowingRows:function(a,b,c){return"نمایش "+a+" تا "+b+" از "+c+" ردیف"},formatSearch:function(){return"جستجو"},formatNoMatches:function(){return"رکوردی یافت نشد."},formatPaginationSwitch:function(){return"نمایش/مخفی صفحه بندی"},formatRefresh:function(){return"به روز رسانی"},formatToggle:function(){return"تغییر نمایش"},formatColumns:function(){return"سطر ها"},formatAllRows:function(){return"همه"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["fa-IR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["fr-BE"]={formatLoadingMessage:function(){return"Chargement en cours..."},formatRecordsPerPage:function(a){return a+" entrées par page"},formatShowingRows:function(a,b,c){return"Affiche de"+a+" à "+b+" sur "+c+" lignes"},formatSearch:function(){return"Recherche"},formatNoMatches:function(){return"Pas de fichiers trouvés"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["fr-BE"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["fr-FR"]={formatLoadingMessage:function(){return"Chargement en cours, patientez, s´il vous plaît ..."},formatRecordsPerPage:function(a){return a+" lignes par page"},formatShowingRows:function(a,b,c){return"Affichage des lignes "+a+" à "+b+" sur "+c+" lignes au total"},formatSearch:function(){return"Rechercher"},formatNoMatches:function(){return"Aucun résultat trouvé"},formatRefresh:function(){return"Rafraîchir"},formatToggle:function(){return"Alterner"},formatColumns:function(){return"Colonnes"},formatAllRows:function(){return"Tous"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["fr-FR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["he-IL"]={formatLoadingMessage:function(){return"טוען, נא להמתין..."},formatRecordsPerPage:function(a){return a+" שורות בעמוד"},formatShowingRows:function(a,b,c){return"מציג "+a+" עד "+b+" מ-"+c+" שורות"},formatSearch:function(){return"חיפוש"},formatNoMatches:function(){return"לא נמצאו רשומות תואמות"},formatPaginationSwitch:function(){return"הסתר/הצג מספור דפים"},formatRefresh:function(){return"רענן"},formatToggle:function(){return"החלף תצוגה"},formatColumns:function(){return"עמודות"},formatAllRows:function(){return"הכל"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["he-IL"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["hr-HR"]={formatLoadingMessage:function(){return"Molimo pričekajte ..."},formatRecordsPerPage:function(a){return a+" broj zapisa po stranici"},formatShowingRows:function(a,b,c){return"Prikazujem "+a+". - "+b+". od ukupnog broja zapisa "+c},formatSearch:function(){return"Pretraži"},formatNoMatches:function(){return"Nije pronađen niti jedan zapis"},formatPaginationSwitch:function(){return"Prikaži/sakrij stranice"},formatRefresh:function(){return"Osvježi"},formatToggle:function(){return"Promijeni prikaz"},formatColumns:function(){return"Kolone"},formatAllRows:function(){return"Sve"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["hr-HR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["hu-HU"]={formatLoadingMessage:function(){return"Betöltés, kérem várjon..."},formatRecordsPerPage:function(a){return a+" rekord per oldal"},formatShowingRows:function(a,b,c){return"Megjelenítve "+a+" - "+b+" / "+c+" összesen"},formatSearch:function(){return"Keresés"},formatNoMatches:function(){return"Nincs találat"},formatPaginationSwitch:function(){return"Lapozó elrejtése/megjelenítése"},formatRefresh:function(){return"Frissítés"},formatToggle:function(){return"Összecsuk/Kinyit"},formatColumns:function(){return"Oszlopok"},formatAllRows:function(){return"Összes"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["hu-HU"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["it-IT"]={formatLoadingMessage:function(){return"Caricamento in corso..."},formatRecordsPerPage:function(a){return a+" elementi per pagina"},formatShowingRows:function(a,b,c){return"Pagina "+a+" di "+b+" ("+c+" elementi)"},formatSearch:function(){return"Cerca"},formatNoMatches:function(){return"Nessun elemento trovato"},formatRefresh:function(){return"Aggiorna"},formatToggle:function(){return"Alterna"},formatColumns:function(){return"Colonne"},formatAllRows:function(){return"Tutto"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["it-IT"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ja-JP"]={formatLoadingMessage:function(){return"読み込み中です。少々お待ちください。"},formatRecordsPerPage:function(a){return"ページ当たり最大"+a+"件"},formatShowingRows:function(a,b,c){return"全"+c+"件から、"+a+"から"+b+"件目まで表示しています"},formatSearch:function(){return"検索"},formatNoMatches:function(){return"該当するレコードが見つかりません"},formatPaginationSwitch:function(){return"ページ数を表示・非表示"},formatRefresh:function(){return"更新"},formatToggle:function(){return"トグル"},formatColumns:function(){return"列"},formatAllRows:function(){return"すべて"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ja-JP"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ka-GE"]={formatLoadingMessage:function(){return"იტვირთება, გთხოვთ მოიცადოთ..."},formatRecordsPerPage:function(a){return a+" ჩანაწერი თითო გვერდზე"},formatShowingRows:function(a,b,c){return"ნაჩვენებია "+a+"-დან "+b+"-მდე ჩანაწერი ჯამური "+c+"-დან"},formatSearch:function(){return"ძებნა"},formatNoMatches:function(){return"მონაცემები არ არის"},formatPaginationSwitch:function(){return"გვერდების გადამრთველის დამალვა/გამოჩენა"},formatRefresh:function(){return"განახლება"},formatToggle:function(){return"ჩართვა/გამორთვა"},formatColumns:function(){return"სვეტები"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ka-GE"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ko-KR"]={formatLoadingMessage:function(){return"데이터를 불러오는 중입니다..."},formatRecordsPerPage:function(a){return"페이지 당 "+a+"개 데이터 출력"},formatShowingRows:function(a,b,c){return"전체 "+c+"개 중 "+a+"~"+b+"번째 데이터 출력,"},formatSearch:function(){return"검색"},formatNoMatches:function(){return"조회된 데이터가 없습니다."},formatRefresh:function(){return"새로 고침"},formatToggle:function(){return"전환"},formatColumns:function(){return"컬럼 필터링"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ko-KR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ms-MY"]={formatLoadingMessage:function(){return"Permintaan sedang dimuatkan. Sila tunggu sebentar..."},formatRecordsPerPage:function(a){return a+" rekod setiap muka surat"},formatShowingRows:function(a,b,c){return"Sedang memaparkan rekod "+a+" hingga "+b+" daripada jumlah "+c+" rekod"},formatSearch:function(){return"Cari"},formatNoMatches:function(){return"Tiada rekod yang menyamai permintaan"},formatPaginationSwitch:function(){return"Tunjuk/sembunyi muka surat"},formatRefresh:function(){return"Muatsemula"},formatToggle:function(){return"Tukar"},formatColumns:function(){return"Lajur"},formatAllRows:function(){return"Semua"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ms-MY"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["nb-NO"]={formatLoadingMessage:function(){return"Oppdaterer, vennligst vent..."},formatRecordsPerPage:function(a){return a+" poster pr side"},formatShowingRows:function(a,b,c){return"Viser "+a+" til "+b+" av "+c+" rekker"},formatSearch:function(){return"Søk"},formatNoMatches:function(){return"Ingen poster funnet"},formatRefresh:function(){return"Oppdater"},formatToggle:function(){return"Endre"},formatColumns:function(){return"Kolonner"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["nb-NO"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["nl-NL"]={formatLoadingMessage:function(){return"Laden, even geduld..."},formatRecordsPerPage:function(a){return a+" records per pagina"},formatShowingRows:function(a,b,c){return"Toon "+a+" tot "+b+" van "+c+" record"+(c>1?"s":"")},formatDetailPagination:function(a){return"Toon "+a+" record"+(a>1?"s":"")},formatSearch:function(){return"Zoeken"},formatNoMatches:function(){return"Geen resultaten gevonden"},formatRefresh:function(){return"Vernieuwen"},formatToggle:function(){return"Omschakelen"},formatColumns:function(){return"Kolommen"},formatAllRows:function(){return"Alle"},formatPaginationSwitch:function(){return"Verberg/Toon paginatie"},formatExport:function(){return"Exporteer data"},formatClearFilters:function(){return"Verwijder filters"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["nl-NL"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["pl-PL"]={formatLoadingMessage:function(){return"Ładowanie, proszę czekać..."},formatRecordsPerPage:function(a){return a+" rekordów na stronę"},formatShowingRows:function(a,b,c){return"Wyświetlanie rekordów od "+a+" do "+b+" z "+c},formatSearch:function(){return"Szukaj"},formatNoMatches:function(){return"Niestety, nic nie znaleziono"},formatRefresh:function(){return"Odśwież"},formatToggle:function(){return"Przełącz"},formatColumns:function(){return"Kolumny"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["pl-PL"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["pt-BR"]={formatLoadingMessage:function(){return"Carregando, aguarde..."},formatRecordsPerPage:function(a){return a+" registros por página"},formatShowingRows:function(a,b,c){return"Exibindo "+a+" até "+b+" de "+c+" linhas"},formatSearch:function(){return"Pesquisar"},formatRefresh:function(){return"Recarregar"},formatToggle:function(){return"Alternar"},formatColumns:function(){return"Colunas"},formatPaginationSwitch:function(){return"Ocultar/Exibir paginação"},formatNoMatches:function(){return"Nenhum registro encontrado"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["pt-BR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["pt-PT"]={formatLoadingMessage:function(){return"A carregar, por favor aguarde..."},formatRecordsPerPage:function(a){return a+" registos por página"},formatShowingRows:function(a,b,c){return"A mostrar "+a+" até "+b+" de "+c+" linhas"},formatSearch:function(){return"Pesquisa"},formatNoMatches:function(){return"Nenhum registo encontrado"},formatPaginationSwitch:function(){return"Esconder/Mostrar paginação"},formatRefresh:function(){return"Atualizar"},formatToggle:function(){return"Alternar"},formatColumns:function(){return"Colunas"},formatAllRows:function(){return"Tudo"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["pt-PT"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ro-RO"]={formatLoadingMessage:function(){return"Se incarca, va rugam asteptati..."},formatRecordsPerPage:function(a){return a+" inregistrari pe pagina"},formatShowingRows:function(a,b,c){return"Arata de la "+a+" pana la "+b+" din "+c+" randuri"},formatSearch:function(){return"Cauta"},formatNoMatches:function(){return"Nu au fost gasite inregistrari"},formatPaginationSwitch:function(){return"Ascunde/Arata paginatia"},formatRefresh:function(){return"Reincarca"},formatToggle:function(){return"Comuta"},formatColumns:function(){return"Coloane"},formatAllRows:function(){return"Toate"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ro-RO"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ru-RU"]={formatLoadingMessage:function(){return"Пожалуйста, подождите, идёт загрузка..."},formatRecordsPerPage:function(a){return a+" записей на страницу"},formatShowingRows:function(a,b,c){return"Записи с "+a+" по "+b+" из "+c},formatSearch:function(){return"Поиск"},formatNoMatches:function(){return"Ничего не найдено"},formatRefresh:function(){return"Обновить"},formatToggle:function(){return"Переключить"},formatColumns:function(){return"Колонки"},formatClearFilters:function(){return"Очистить фильтры"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ru-RU"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["sk-SK"]={formatLoadingMessage:function(){return"Prosím čakajte ..."},formatRecordsPerPage:function(a){return a+" záznamov na stranu"},formatShowingRows:function(a,b,c){return"Zobrazená "+a+". - "+b+". položka z celkových "+c},formatSearch:function(){return"Vyhľadávanie"},formatNoMatches:function(){return"Nenájdená žiadna vyhovujúca položka"},formatRefresh:function(){return"Obnoviť"},formatToggle:function(){return"Prepni"},formatColumns:function(){return"Stĺpce"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["sk-SK"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["sv-SE"]={formatLoadingMessage:function(){return"Laddar, vänligen vänta..."},formatRecordsPerPage:function(a){return a+" rader per sida"},formatShowingRows:function(a,b,c){return"Visa "+a+" till "+b+" av "+c+" rader"},formatSearch:function(){return"Sök"},formatNoMatches:function(){return"Inga matchande resultat funna."},formatRefresh:function(){return"Uppdatera"},formatToggle:function(){return"Skifta"},formatColumns:function(){return"kolumn"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["sv-SE"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["th-TH"]={formatLoadingMessage:function(){return"กำลังโหลดข้อมูล, กรุณารอสักครู่..."},formatRecordsPerPage:function(a){return a+" รายการต่อหน้า"},formatShowingRows:function(a,b,c){return"รายการที่ "+a+" ถึง "+b+" จากทั้งหมด "+c+" รายการ"},formatSearch:function(){return"ค้นหา"},formatNoMatches:function(){return"ไม่พบรายการที่ค้นหา !"},formatRefresh:function(){return"รีเฟรส"},formatToggle:function(){return"สลับมุมมอง"},formatColumns:function(){return"คอลัมน์"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["th-TH"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["tr-TR"]={formatLoadingMessage:function(){return"Yükleniyor, lütfen bekleyin..."},formatRecordsPerPage:function(a){return"Sayfa başına "+a+" kayıt."},formatShowingRows:function(a,b,c){return c+" kayıttan "+a+"-"+b+" arası gösteriliyor."},formatSearch:function(){return"Ara"},formatNoMatches:function(){return"Eşleşen kayıt bulunamadı."},formatRefresh:function(){return"Yenile"},formatToggle:function(){return"Değiştir"},formatColumns:function(){return"Sütunlar"},formatAllRows:function(){return"Tüm Satırlar"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["tr-TR"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["uk-UA"]={formatLoadingMessage:function(){return"Завантаження, будь ласка, зачекайте..."},formatRecordsPerPage:function(a){return a+" записів на сторінку"},formatShowingRows:function(a,b,c){return"Показано з "+a+" по "+b+". Всього: "+c},formatSearch:function(){return"Пошук"},formatNoMatches:function(){return"Не знайдено жодного запису"},formatRefresh:function(){return"Оновити"},formatToggle:function(){return"Змінити"},formatColumns:function(){return"Стовпці"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["uk-UA"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["ur-PK"]={formatLoadingMessage:function(){return"براۓ مہربانی انتظار کیجئے"},formatRecordsPerPage:function(a){return a+" ریکارڈز فی صفہ "},formatShowingRows:function(a,b,c){return"دیکھیں "+a+" سے "+b+" کے "+c+"ریکارڈز"},formatSearch:function(){return"تلاش"},formatNoMatches:function(){return"کوئی ریکارڈ نہیں ملا"},formatRefresh:function(){return"تازہ کریں"},formatToggle:function(){return"تبدیل کریں"},formatColumns:function(){return"کالم"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["ur-PK"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["vi-VN"]={formatLoadingMessage:function(){return"Đang tải..."},formatRecordsPerPage:function(a){return a+" bản ghi mỗi trang"},formatShowingRows:function(a,b,c){return"Hiển thị từ trang "+a+" đến "+b+" của "+c+" bảng ghi"},formatSearch:function(){return"Tìm kiếm"},formatNoMatches:function(){return"Không có dữ liệu"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["vi-VN"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(a){return"每页显示 "+a+" 条记录"},formatShowingRows:function(a,b,c){return"显示第 "+a+" 到第 "+b+" 条记录,总共 "+c+" 条记录"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"},formatExport:function(){return"导出数据"},formatClearFilters:function(){return"清空过滤"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["zh-CN"])}(jQuery),function(a){"use strict";a.fn.bootstrapTable.locales["zh-TW"]={formatLoadingMessage:function(){return"正在努力地載入資料,請稍候……"},formatRecordsPerPage:function(a){return"每頁顯示 "+a+" 項記錄"},formatShowingRows:function(a,b,c){return"顯示第 "+a+" 到第 "+b+" 項記錄,總共 "+c+" 項記錄"},formatSearch:function(){return"搜尋"},formatNoMatches:function(){return"沒有找到符合的結果"},formatPaginationSwitch:function(){return"隱藏/顯示分頁"},formatRefresh:function(){return"重新整理"},formatToggle:function(){return"切換"},formatColumns:function(){return"列"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["zh-TW"])}(jQuery); \ No newline at end of file +/** + * bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3). + * + * @version v1.13.4 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableAfZA={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['af-ZA']={formatLoadingMessage:function(){return'Besig om te laai, wag asseblief ...'},formatRecordsPerPage:function(a){return a+' rekords per bladsy'},formatShowingRows:function(a,b,c){return'Resultate '+a+' tot '+b+' van '+c+' rye'},formatSearch:function(){return'Soek'},formatNoMatches:function(){return'Geen rekords gevind nie'},formatPaginationSwitch:function(){return'Wys/verberg bladsy nummering'},formatRefresh:function(){return'Herlaai'},formatToggle:function(){return'Wissel'},formatColumns:function(){return'Kolomme'}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales['af-ZA'])})(jQuery)}); +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableArSA={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['ar-SA']={formatLoadingMessage:function(){return'\u062C\u0627\u0631\u064A \u0627\u0644\u062A\u062D\u0645\u064A\u0644, \u064A\u0631\u062C\u0649 \u0627\u0644\u0625\u0646\u062A\u0638\u0627\u0631...'},formatRecordsPerPage:function(a){return a+' \u0633\u062C\u0644 \u0644\u0643\u0644 \u0635\u0641\u062D\u0629'},formatShowingRows:function(a,b,c){return'\u0627\u0644\u0638\u0627\u0647\u0631 '+a+' \u0625\u0644\u0649 '+b+' \u0645\u0646 '+c+' \u0633\u062C\u0644'},formatSearch:function(){return'\u0628\u062D\u062B'},formatNoMatches:function(){return'\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629 \u0644\u0644\u0628\u062D\u062B'},formatPaginationSwitch:function(){return'\u0625\u062E\u0641\u0627\u0621\u0625\u0638\u0647\u0627\u0631 \u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0635\u0641\u062D\u0627\u062A'},formatRefresh:function(){return'\u062A\u062D\u062F\u064A\u062B'},formatToggle:function(){return'\u062A\u063A\u064A\u064A\u0631'},formatColumns:function(){return'\u0623\u0639\u0645\u062F\u0629'}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales['ar-SA'])})(jQuery)}); +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableCaES={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['ca-ES']={formatLoadingMessage:function(){return'Espereu, si us plau...'},formatRecordsPerPage:function(a){return a+' resultats per p\xE0gina'},formatShowingRows:function(a,b,c){return'Mostrant de '+a+' fins '+b+' - total '+c+' resultats'},formatSearch:function(){return'Cerca'},formatNoMatches:function(){return'No s\'han trobat resultats'},formatPaginationSwitch:function(){return'Amaga/Mostra paginaci\xF3'},formatRefresh:function(){return'Refresca'},formatToggle:function(){return'Alterna formataci\xF3'},formatColumns:function(){return'Columnes'},formatAllRows:function(){return'Tots'}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales['ca-ES'])})(jQuery)}); +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableCsCZ={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['cs-CZ']={formatLoadingMessage:function(){return'\u010Cekejte, pros\xEDm...'},formatRecordsPerPage:function(a){return a+' polo\u017Eek na str\xE1nku'},formatShowingRows:function(a,b,c){return'Zobrazena '+a+'. - '+b+'. polo\u017Eka z celkov\xFDch '+c},formatSearch:function(){return'Vyhled\xE1v\xE1n\xED'},formatNoMatches:function(){return'Nenalezena \u017E\xE1dn\xE1 vyhovuj\xEDc\xED polo\u017Eka'},formatPaginationSwitch:function(){return'Skr\xFDt/Zobrazit str\xE1nkov\xE1n\xED'},formatRefresh:function(){return'Aktualizovat'},formatToggle:function(){return'P\u0159epni'},formatColumns:function(){return'Sloupce'},formatAllRows:function(){return'V\u0161e'}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales['cs-CZ'])})(jQuery)}); +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableDaDK={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['da-DK']={formatLoadingMessage:function(){return'Indl\xE6ser, vent venligst...'},formatRecordsPerPage:function(a){return a+' poster pr side'},formatShowingRows:function(a,b,c){return'Viser '+a+' til '+b+' af '+c+' r\xE6kke'+(1 - * version: 1.11.0 + * version: 1.13.4 * https://github.com/wenzhixin/bootstrap-table/ */ - -.bootstrap-table .table { - margin-bottom: 0 !important; - border-bottom: 1px solid #dddddd; - border-collapse: collapse !important; - border-radius: 1px; +.bootstrap-table .fixed-table-toolbar:after { + content: ""; + display: block; + clear: both; } - -.bootstrap-table .table:not(.table-condensed), -.bootstrap-table .table:not(.table-condensed) > tbody > tr > th, -.bootstrap-table .table:not(.table-condensed) > tfoot > tr > th, -.bootstrap-table .table:not(.table-condensed) > thead > tr > td, -.bootstrap-table .table:not(.table-condensed) > tbody > tr > td, -.bootstrap-table .table:not(.table-condensed) > tfoot > tr > td { - padding: 8px; +.bootstrap-table .fixed-table-toolbar .bs-bars, +.bootstrap-table .fixed-table-toolbar .search, +.bootstrap-table .fixed-table-toolbar .columns { + position: relative; + margin-top: 10px; + margin-bottom: 10px; } - -.bootstrap-table .table.table-no-bordered > thead > tr > th, -.bootstrap-table .table.table-no-bordered > tbody > tr > td { - border-right: 2px solid transparent; +.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group { + display: inline-block; + margin-left: -1px !important; } - -.bootstrap-table .table.table-no-bordered > tbody > tr > td:last-child { - border-right: none; +.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:first-child > .btn { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; } - -.fixed-table-container { - position: relative; - clear: both; - border: 1px solid #dddddd; - border-radius: 4px; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; +.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:last-child > .btn { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; } - -.fixed-table-container.table-no-bordered { - border: 1px solid transparent; +.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group > .btn { + border-radius: 0; } - -.fixed-table-footer, -.fixed-table-header { - overflow: hidden; +.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu { + text-align: left; + max-height: 300px; + overflow: auto; } - -.fixed-table-footer { - border-top: 1px solid #dddddd; +.bootstrap-table .fixed-table-toolbar .columns label { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.428571429; } - -.fixed-table-body { - overflow-x: auto; - overflow-y: auto; - height: 100%; +.bootstrap-table .fixed-table-toolbar .columns-left { + margin-right: 5px; } - -.fixed-table-container table { - width: 100%; +.bootstrap-table .fixed-table-toolbar .columns-right { + margin-left: 5px; } - -.fixed-table-container thead th { - height: 0; - padding: 0; - margin: 0; - border-left: 1px solid #dddddd; +.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu { + right: 0; + left: auto; } - -.fixed-table-container thead th:focus { - outline: 0 solid transparent; +.bootstrap-table .fixed-table-container { + position: relative; + clear: both; } - -.fixed-table-container thead th:first-child { - border-left: none; - border-top-left-radius: 4px; - -webkit-border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; +.bootstrap-table .fixed-table-container.fixed-height { + border-bottom: 1px solid #dee2e6; } - -.fixed-table-container thead th .th-inner, -.fixed-table-container tbody td .th-inner { - padding: 8px; - line-height: 24px; - vertical-align: top; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; +.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border { + border-left: 1px solid #dee2e6; + border-right: 1px solid #dee2e6; } - -.fixed-table-container thead th .sortable { - cursor: pointer; - background-position: right; - background-repeat: no-repeat; - padding-right: 30px; +.bootstrap-table .fixed-table-container.fixed-height .table thead th { + border-bottom: 1px solid #dee2e6; } - -.fixed-table-container thead th .both { - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC'); +.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th { + border-bottom: 1px solid #32383e; } - -.fixed-table-container thead th .asc { - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg=='); +.bootstrap-table .fixed-table-container .fixed-table-header { + overflow: hidden; } - -.fixed-table-container thead th .desc { - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= '); +.bootstrap-table .fixed-table-container .fixed-table-body { + overflow-x: auto; + overflow-y: auto; + height: 100%; } - -.fixed-table-container th.detail { - width: 30px; +.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading { + display: none; + position: absolute; + top: 42px; + right: 0; + bottom: 0; + left: 0; + z-index: 99; + background-color: #fff; + text-align: center; } - -.fixed-table-container tbody td { - border-left: 1px solid #dddddd; +.bootstrap-table .fixed-table-container .table { + width: 100%; + margin-bottom: 0 !important; } - -.fixed-table-container tbody tr:first-child td { - border-top: none; +.bootstrap-table .fixed-table-container .table th, +.bootstrap-table .fixed-table-container .table td { + vertical-align: middle; + box-sizing: border-box; } - -.fixed-table-container tbody td:first-child { - border-left: none; +.bootstrap-table .fixed-table-container .table thead th { + vertical-align: bottom; + padding: 0; + margin: 0; } - -/* the same color with .active */ -.fixed-table-container tbody .selected td { - background-color: #f5f5f5; +.bootstrap-table .fixed-table-container .table thead th:focus { + outline: 0 solid transparent; } - -.fixed-table-container .bs-checkbox { - text-align: center; +.bootstrap-table .fixed-table-container .table thead th.detail { + width: 30px; } - -.fixed-table-container .bs-checkbox .th-inner { - padding: 8px 0; +.bootstrap-table .fixed-table-container .table thead th .th-inner { + padding: 0.75rem; + vertical-align: bottom; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } - -.fixed-table-container input[type="radio"], -.fixed-table-container input[type="checkbox"] { - margin: 0 auto !important; +.bootstrap-table .fixed-table-container .table thead th .sortable { + cursor: pointer; + background-position: right; + background-repeat: no-repeat; + padding-right: 30px; } - -.fixed-table-container .no-records-found { - text-align: center; +.bootstrap-table .fixed-table-container .table thead th .both { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC"); } - -.fixed-table-pagination div.pagination, -.fixed-table-pagination .pagination-detail { - margin-top: 10px; - margin-bottom: 10px; +.bootstrap-table .fixed-table-container .table thead th .asc { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg=="); } - -.fixed-table-pagination div.pagination .pagination { - margin: 0; +.bootstrap-table .fixed-table-container .table thead th .desc { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= "); } - -.fixed-table-pagination .pagination a { - padding: 6px 12px; - line-height: 1.428571429; +.bootstrap-table .fixed-table-container .table tbody tr.selected td { + background-color: rgba(0, 0, 0, 0.075); } - -.fixed-table-pagination .pagination-info { - line-height: 34px; - margin-right: 5px; +.bootstrap-table .fixed-table-container .table tbody tr.no-records-found { + text-align: center; } - -.fixed-table-pagination .btn-group { - position: relative; - display: inline-block; - vertical-align: middle; +.bootstrap-table .fixed-table-container .table tbody tr .card-view .title { + font-weight: bold; + display: inline-block; + min-width: 30%; + text-align: left !important; } - -.fixed-table-pagination .dropup .dropdown-menu { - margin-bottom: 0; +.bootstrap-table .fixed-table-container .table .bs-checkbox { + text-align: center; } - -.fixed-table-pagination .page-list { - display: inline-block; +.bootstrap-table .fixed-table-container .table input[type=radio], +.bootstrap-table .fixed-table-container .table input[type=checkbox] { + margin: 0 auto !important; } - -.fixed-table-toolbar .columns-left { - margin-right: 5px; +.bootstrap-table .fixed-table-container .table.table-sm .th-inner { + padding: 0.3rem; } - -.fixed-table-toolbar .columns-right { - margin-left: 5px; +.bootstrap-table .fixed-table-container .fixed-table-footer { + overflow: hidden; + border-top: 1px solid #dee2e6; } - -.fixed-table-toolbar .columns label { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.428571429; +.bootstrap-table .fixed-table-container .fixed-table-footer .table { + border-bottom: none; + border-radius: 0; + padding: 0 !important; } - -.fixed-table-toolbar .bs-bars, -.fixed-table-toolbar .search, -.fixed-table-toolbar .columns { - position: relative; - margin-top: 10px; - margin-bottom: 10px; - line-height: 34px; +.bootstrap-table .fixed-table-container .fixed-table-footer .table tbody > tr > td { + padding: 0 !important; } - -.fixed-table-pagination li.disabled a { - pointer-events: none; - cursor: default; +.bootstrap-table .fixed-table-pagination:after { + content: ""; + display: block; + clear: both; } - -.fixed-table-loading { - display: none; - position: absolute; - top: 42px; - right: 0; - bottom: 0; - left: 0; - z-index: 99; - background-color: #fff; - text-align: center; +.bootstrap-table .fixed-table-pagination > .pagination-detail, +.bootstrap-table .fixed-table-pagination > .pagination { + margin-top: 10px; + margin-bottom: 10px; } - -.fixed-table-body .card-view .title { - font-weight: bold; - display: inline-block; - min-width: 30%; - text-align: left !important; +.bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info { + line-height: 34px; + margin-right: 5px; } - -/* support bootstrap 2 */ -.fixed-table-body thead th .th-inner { - box-sizing: border-box; +.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list { + display: inline-block; } - -.table th, .table td { - vertical-align: middle; - box-sizing: border-box; +.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group { + position: relative; + display: inline-block; + vertical-align: middle; } - -.fixed-table-toolbar .dropdown-menu { - text-align: left; - max-height: 300px; - overflow: auto; +.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .dropdown-menu { + margin-bottom: 0; } - -.fixed-table-toolbar .btn-group > .btn-group { - display: inline-block; - margin-left: -1px !important; +.bootstrap-table .fixed-table-pagination > .pagination ul.pagination { + margin: 0; } - -.fixed-table-toolbar .btn-group > .btn-group > .btn { - border-radius: 0; +.bootstrap-table .fixed-table-pagination > .pagination ul.pagination a { + padding: 6px 12px; + line-height: 1.428571429; } - -.fixed-table-toolbar .btn-group > .btn-group:first-child > .btn { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; +.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a { + color: #c8c8c8; } - -.fixed-table-toolbar .btn-group > .btn-group:last-child > .btn { - border-top-right-radius: 4px; - border-bottom-right-radius: 4px; +.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:before { + content: "⬅"; } - -.bootstrap-table .table > thead > tr > th { - vertical-align: bottom; - border-bottom: 1px solid #ddd; +.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:after { + content: "➡"; } - -/* support bootstrap 3 */ -.bootstrap-table .table thead > tr > th { - padding: 0; - margin: 0; +.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.disabled a { + pointer-events: none; + cursor: default; } - -.bootstrap-table .fixed-table-footer tbody > tr > td { - padding: 0 !important; -} - -.bootstrap-table .fixed-table-footer .table { - border-bottom: none; - border-radius: 0; - padding: 0 !important; -} - -.pull-right .dropdown-menu { - right: 0; - left: auto; +.bootstrap-table.fullscreen { + position: fixed; + top: 0; + left: 0; + z-index: 1050; + width: 100% !important; + background: #FFF; } /* calculate scrollbar width */ -p.fixed-table-scroll-inner { - width: 100%; - height: 200px; +div.fixed-table-scroll-inner { + width: 100%; + height: 200px; } div.fixed-table-scroll-outer { - top: 0; - left: 0; - visibility: hidden; - width: 200px; - height: 150px; - overflow: hidden; + top: 0; + left: 0; + visibility: hidden; + width: 200px; + height: 150px; + overflow: hidden; } + +/*# sourceMappingURL=bootstrap-table.css.map */ diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.js index cf9e61a..f6bc8e4 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.js @@ -1,281 +1,832 @@ -/** - * @author zhixin wen - * version: 1.11.0 - * https://github.com/wenzhixin/bootstrap-table/ - */ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTable = mod.exports; + } +})(this, function () { + 'use strict'; -(function ($) { - 'use strict'; + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + var _createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + + var _slicedToArray = function () { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; + } + + return function (arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + }(); + + function _toConsumableArray(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + + return arr2; + } else { + return Array.from(arr); + } + } + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + + /** + * @author zhixin wen + * version: 1.13.4 + * https://github.com/wenzhixin/bootstrap-table/ + */ + + (function ($) { // TOOLS DEFINITION // ====================== - var cachedWidth = null; + var bootstrapVersion = 3; + try { + var rawVersion = $.fn.dropdown.Constructor.VERSION; - // it only does '%s', and return '' when arguments are undefined - var sprintf = function (str) { - var args = arguments, - flag = true, - i = 1; + // Only try to parse VERSION if is is defined. + // It is undefined in older versions of Bootstrap (tested with 3.1.1). + if (rawVersion !== undefined) { + bootstrapVersion = parseInt(rawVersion, 10); + } + } catch (e) { + // ignore + } - str = str.replace(/%s/g, function () { - var arg = args[i++]; + var bootstrap = { + 3: { + iconsPrefix: 'glyphicon', + icons: { + paginationSwitchDown: 'glyphicon-collapse-down icon-chevron-down', + paginationSwitchUp: 'glyphicon-collapse-up icon-chevron-up', + refresh: 'glyphicon-refresh icon-refresh', + toggleOff: 'glyphicon-list-alt icon-list-alt', + toggleOn: 'glyphicon-list-alt icon-list-alt', + columns: 'glyphicon-th icon-th', + detailOpen: 'glyphicon-plus icon-plus', + detailClose: 'glyphicon-minus icon-minus', + fullscreen: 'glyphicon-fullscreen' + }, + classes: { + buttons: 'default', + pull: 'pull' + }, + html: { + toobarDropdow: [''], + toobarDropdowItem: '
  • ', + pageDropdown: [''], + pageDropdownItem: '' + } + }, + 4: { + iconsPrefix: 'fa', + icons: { + paginationSwitchDown: 'fa-caret-square-down', + paginationSwitchUp: 'fa-caret-square-up', + refresh: 'fa-sync', + toggleOff: 'fa-toggle-off', + toggleOn: 'fa-toggle-on', + columns: 'fa-th-list', + detailOpen: 'fa-plus', + detailClose: 'fa-minus', + fullscreen: 'fa-arrows-alt' + }, + classes: { + buttons: 'secondary', + pull: 'float' + }, + html: { + toobarDropdow: [''], + toobarDropdowItem: '', + pageDropdown: [''], + pageDropdownItem: '%s' + } + } + }[bootstrapVersion]; - if (typeof arg === 'undefined') { - flag = false; - return ''; - } - return arg; + var Utils = { + bootstrapVersion: bootstrapVersion, + + sprintf: function sprintf(_str) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var flag = true; + var i = 0; + + var str = _str.replace(/%s/g, function () { + var arg = args[i++]; + + if (typeof arg === 'undefined') { + flag = false; + return ''; + } + return arg; }); return flag ? str : ''; - }; + }, + getFieldTitle: function getFieldTitle(list, value) { + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; - var getPropertyFromOther = function (list, from, to, value) { - var result = ''; - $.each(list, function (i, item) { - if (item[from] === value) { - result = item[to]; - return false; + try { + for (var _iterator = list[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var item = _step.value; + + if (item.field === value) { + return item.title; } - return true; - }); - return result; - }; - - var getFieldIndex = function (columns, field) { - var index = -1; - - $.each(columns, function (i, column) { - if (column.field === field) { - index = i; - return false; + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return) { + _iterator.return(); } - return true; - }); - return index; - }; - - // http://jsfiddle.net/wenyi/47nz7ez9/3/ - var setFieldIndex = function (columns) { - var i, j, k, - totalCol = 0, - flag = []; - - for (i = 0; i < columns[0].length; i++) { - totalCol += columns[0][i].colspan || 1; + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } } - for (i = 0; i < columns.length; i++) { - flag[i] = []; - for (j = 0; j < totalCol; j++) { - flag[i][j] = false; + return ''; + }, + setFieldIndex: function setFieldIndex(columns) { + var totalCol = 0; + var flag = []; + + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; + + try { + for (var _iterator2 = columns[0][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var column = _step2.value; + + totalCol += column.colspan || 1; + } + } catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; + } finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2.return) { + _iterator2.return(); } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } } - for (i = 0; i < columns.length; i++) { - for (j = 0; j < columns[i].length; j++) { - var r = columns[i][j], - rowspan = r.rowspan || 1, - colspan = r.colspan || 1, - index = $.inArray(false, flag[i]); + for (var i = 0; i < columns.length; i++) { + flag[i] = []; + for (var j = 0; j < totalCol; j++) { + flag[i][j] = false; + } + } - if (colspan === 1) { - r.fieldIndex = index; - // when field is undefined, use index instead - if (typeof r.field === 'undefined') { - r.field = index; - } + for (var _i = 0; _i < columns.length; _i++) { + var _iteratorNormalCompletion3 = true; + var _didIteratorError3 = false; + var _iteratorError3 = undefined; + + try { + for (var _iterator3 = columns[_i][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { + var r = _step3.value; + + var rowspan = r.rowspan || 1; + var colspan = r.colspan || 1; + var index = flag[_i].indexOf(false); + + if (colspan === 1) { + r.fieldIndex = index; + // when field is undefined, use index instead + if (typeof r.field === 'undefined') { + r.field = index; } + } - for (k = 0; k < rowspan; k++) { - flag[i + k][index] = true; - } - for (k = 0; k < colspan; k++) { - flag[i][index + k] = true; - } + for (var k = 0; k < rowspan; k++) { + flag[_i + k][index] = true; + } + for (var _k = 0; _k < colspan; _k++) { + flag[_i][index + _k] = true; + } } - } - }; - - var getScrollBarWidth = function () { - if (cachedWidth === null) { - var inner = $('

    ').addClass('fixed-table-scroll-inner'), - outer = $('

    ').addClass('fixed-table-scroll-outer'), - w1, w2; - - outer.append(inner); - $('body').append(outer); - - w1 = inner[0].offsetWidth; - outer.css('overflow', 'scroll'); - w2 = inner[0].offsetWidth; - - if (w1 === w2) { - w2 = outer[0].clientWidth; + } catch (err) { + _didIteratorError3 = true; + _iteratorError3 = err; + } finally { + try { + if (!_iteratorNormalCompletion3 && _iterator3.return) { + _iterator3.return(); + } + } finally { + if (_didIteratorError3) { + throw _iteratorError3; + } } - - outer.remove(); - cachedWidth = w1 - w2; + } } - return cachedWidth; - }; + }, + getScrollBarWidth: function getScrollBarWidth() { + if (this.cachedWidth === undefined) { + var $inner = $('
    ').addClass('fixed-table-scroll-inner'); + var $outer = $('
    ').addClass('fixed-table-scroll-outer'); - var calculateObjectValue = function (self, name, args, defaultValue) { + $outer.append($inner); + $('body').append($outer); + + var w1 = $inner[0].offsetWidth; + $outer.css('overflow', 'scroll'); + var w2 = $inner[0].offsetWidth; + + if (w1 === w2) { + w2 = $outer[0].clientWidth; + } + + $outer.remove(); + this.cachedWidth = w1 - w2; + } + return this.cachedWidth; + }, + calculateObjectValue: function calculateObjectValue(self, name, args, defaultValue) { var func = name; if (typeof name === 'string') { - // support obj.func1.func2 - var names = name.split('.'); + // support obj.func1.func2 + var names = name.split('.'); - if (names.length > 1) { - func = window; - $.each(names, function (i, f) { - func = func[f]; - }); - } else { - func = window[name]; - } - } - if (typeof func === 'object') { - return func; - } - if (typeof func === 'function') { - return func.apply(self, args); - } - if (!func && typeof name === 'string' && sprintf.apply(this, [name].concat(args))) { - return sprintf.apply(this, [name].concat(args)); - } - return defaultValue; - }; + if (names.length > 1) { + func = window; + var _iteratorNormalCompletion4 = true; + var _didIteratorError4 = false; + var _iteratorError4 = undefined; - var compareObjects = function (objectA, objectB, compareLength) { - // Create arrays of property names - var objectAProperties = Object.getOwnPropertyNames(objectA), - objectBProperties = Object.getOwnPropertyNames(objectB), - propName = ''; + try { + for (var _iterator4 = names[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { + var f = _step4.value; - if (compareLength) { - // If number of properties is different, objects are not equivalent - if (objectAProperties.length !== objectBProperties.length) { - return false; - } - } - - for (var i = 0; i < objectAProperties.length; i++) { - propName = objectAProperties[i]; - - // If the property is not in the object B properties, continue with the next property - if ($.inArray(propName, objectBProperties) > -1) { - // If values of same property are not equal, objects are not equivalent - if (objectA[propName] !== objectB[propName]) { - return false; + func = func[f]; + } + } catch (err) { + _didIteratorError4 = true; + _iteratorError4 = err; + } finally { + try { + if (!_iteratorNormalCompletion4 && _iterator4.return) { + _iterator4.return(); } + } finally { + if (_didIteratorError4) { + throw _iteratorError4; + } + } } + } else { + func = window[name]; + } } - // If we made it this far, objects are considered equivalent - return true; - }; + if (func !== null && (typeof func === 'undefined' ? 'undefined' : _typeof(func)) === 'object') { + return func; + } - var escapeHTML = function (text) { + if (typeof func === 'function') { + return func.apply(self, args || []); + } + + if (!func && typeof name === 'string' && this.sprintf.apply(this, [name].concat(_toConsumableArray(args)))) { + return this.sprintf.apply(this, [name].concat(_toConsumableArray(args))); + } + + return defaultValue; + }, + compareObjects: function compareObjects(objectA, objectB, compareLength) { + var aKeys = Object.keys(objectA); + var bKeys = Object.keys(objectB); + + if (compareLength && aKeys.length !== bKeys.length) { + return false; + } + + var _iteratorNormalCompletion5 = true; + var _didIteratorError5 = false; + var _iteratorError5 = undefined; + + try { + for (var _iterator5 = aKeys[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { + var key = _step5.value; + + if (bKeys.includes(key) && objectA[key] !== objectB[key]) { + return false; + } + } + } catch (err) { + _didIteratorError5 = true; + _iteratorError5 = err; + } finally { + try { + if (!_iteratorNormalCompletion5 && _iterator5.return) { + _iterator5.return(); + } + } finally { + if (_didIteratorError5) { + throw _iteratorError5; + } + } + } + + return true; + }, + escapeHTML: function escapeHTML(text) { if (typeof text === 'string') { - return text - .replace(/&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') - .replace(/'/g, ''') - .replace(/`/g, '`'); + return text.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/`/g, '`'); } return text; - }; + }, + getRealDataAttr: function getRealDataAttr(dataAttr) { + var _iteratorNormalCompletion6 = true; + var _didIteratorError6 = false; + var _iteratorError6 = undefined; - var getRealHeight = function ($el) { - var height = 0; - $el.children().each(function () { - if (height < $(this).outerHeight(true)) { - height = $(this).outerHeight(true); - } - }); - return height; - }; + try { + for (var _iterator6 = Object.entries(dataAttr)[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { + var _ref = _step6.value; + + var _ref2 = _slicedToArray(_ref, 2); + + var attr = _ref2[0]; + var value = _ref2[1]; - var getRealDataAttr = function (dataAttr) { - for (var attr in dataAttr) { var auxAttr = attr.split(/(?=[A-Z])/).join('-').toLowerCase(); if (auxAttr !== attr) { - dataAttr[auxAttr] = dataAttr[attr]; - delete dataAttr[attr]; + dataAttr[auxAttr] = value; + delete dataAttr[attr]; } + } + } catch (err) { + _didIteratorError6 = true; + _iteratorError6 = err; + } finally { + try { + if (!_iteratorNormalCompletion6 && _iterator6.return) { + _iterator6.return(); + } + } finally { + if (_didIteratorError6) { + throw _iteratorError6; + } + } } return dataAttr; - }; - - var getItemField = function (item, field, escape) { + }, + getItemField: function getItemField(item, field, escape) { var value = item; if (typeof field !== 'string' || item.hasOwnProperty(field)) { - return escape ? escapeHTML(item[field]) : item[field]; + return escape ? this.escapeHTML(item[field]) : item[field]; } + var props = field.split('.'); - for (var p in props) { - value = value && value[props[p]]; + var _iteratorNormalCompletion7 = true; + var _didIteratorError7 = false; + var _iteratorError7 = undefined; + + try { + for (var _iterator7 = props[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { + var p = _step7.value; + + value = value && value[p]; + } + } catch (err) { + _didIteratorError7 = true; + _iteratorError7 = err; + } finally { + try { + if (!_iteratorNormalCompletion7 && _iterator7.return) { + _iterator7.return(); + } + } finally { + if (_didIteratorError7) { + throw _iteratorError7; + } + } } - return escape ? escapeHTML(value) : value; - }; - var isIEBrowser = function () { - return !!(navigator.userAgent.indexOf("MSIE ") > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)); - }; + return escape ? this.escapeHTML(value) : value; + }, + isIEBrowser: function isIEBrowser() { + return navigator.userAgent.includes('MSIE ') || /Trident.*rv:11\./.test(navigator.userAgent); + }, + findIndex: function findIndex(items, item) { + var _iteratorNormalCompletion8 = true; + var _didIteratorError8 = false; + var _iteratorError8 = undefined; - var objectKeys = function () { - // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys - if (!Object.keys) { - Object.keys = (function() { - var hasOwnProperty = Object.prototype.hasOwnProperty, - hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'), - dontEnums = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor' - ], - dontEnumsLength = dontEnums.length; + try { + for (var _iterator8 = items.entries()[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { + var _ref3 = _step8.value; - return function(obj) { - if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { - throw new TypeError('Object.keys called on non-object'); - } + var _ref4 = _slicedToArray(_ref3, 2); - var result = [], prop, i; + var i = _ref4[0]; + var it = _ref4[1]; - for (prop in obj) { - if (hasOwnProperty.call(obj, prop)) { - result.push(prop); - } - } - - if (hasDontEnumBug) { - for (i = 0; i < dontEnumsLength; i++) { - if (hasOwnProperty.call(obj, dontEnums[i])) { - result.push(dontEnums[i]); - } - } - } - return result; - }; - }()); + if (JSON.stringify(it) === JSON.stringify(item)) { + return i; + } + } + } catch (err) { + _didIteratorError8 = true; + _iteratorError8 = err; + } finally { + try { + if (!_iteratorNormalCompletion8 && _iterator8.return) { + _iterator8.return(); + } + } finally { + if (_didIteratorError8) { + throw _iteratorError8; + } + } } + + return -1; + } }; // BOOTSTRAP TABLE CLASS DEFINITION // ====================== - var BootstrapTable = function (el, options) { + var DEFAULTS = { + height: undefined, + classes: 'table table-bordered table-hover', + theadClasses: '', + rowStyle: function rowStyle(row, index) { + return {}; + }, + rowAttributes: function rowAttributes(row, index) { + return {}; + }, + + undefinedText: '-', + locale: undefined, + sortable: true, + sortClass: undefined, + silentSort: true, + sortName: undefined, + sortOrder: 'asc', + sortStable: false, + rememberOrder: false, + customSort: undefined, + columns: [[]], + data: [], + url: undefined, + method: 'get', + cache: true, + contentType: 'application/json', + dataType: 'json', + ajax: undefined, + ajaxOptions: {}, + queryParams: function queryParams(params) { + return params; + }, + + queryParamsType: 'limit', responseHandler: function responseHandler(res) { + return res; + }, + + totalField: 'total', + dataField: 'rows', + pagination: false, + onlyInfoPagination: false, + paginationLoop: true, + sidePagination: 'client', // client or server + totalRows: 0, + pageNumber: 1, + pageSize: 10, + pageList: [10, 25, 50, 100], + paginationHAlign: 'right', // right, left + paginationVAlign: 'bottom', // bottom, top, both + paginationDetailHAlign: 'left', // right, left + paginationPreText: '‹', + paginationNextText: '›', + paginationSuccessivelySize: 5, // Maximum successively number of pages in a row + paginationPagesBySide: 1, // Number of pages on each side (right, left) of the current page. + paginationUseIntermediate: false, // Calculate intermediate pages for quick access + search: false, + searchOnEnterKey: false, + strictSearch: false, + trimOnSearch: true, + searchAlign: 'right', + searchTimeOut: 500, + searchText: '', + customSearch: undefined, + showHeader: true, + showFooter: false, + footerStyle: function footerStyle(row, index) { + return {}; + }, + + showColumns: false, + minimumCountColumns: 1, + showPaginationSwitch: false, + showRefresh: false, + showToggle: false, + showFullscreen: false, + smartDisplay: true, + escape: false, + idField: undefined, + uniqueId: undefined, + cardView: false, + detailView: false, + detailFormatter: function detailFormatter(index, row) { + return ''; + }, + detailFilter: function detailFilter(index, row) { + return true; + }, + + selectItemName: 'btSelectItem', + clickToSelect: false, + ignoreClickToSelectOn: function ignoreClickToSelectOn(_ref5) { + var tagName = _ref5.tagName; + + return ['A', 'BUTTON'].includes(tagName); + }, + + singleSelect: false, + checkboxHeader: true, + maintainSelected: false, + toolbar: undefined, + toolbarAlign: 'left', + buttonsToolbar: undefined, + buttonsAlign: 'right', + buttonsClass: bootstrap.classes.buttons, + icons: bootstrap.icons, + iconSize: undefined, + iconsPrefix: bootstrap.iconsPrefix, onAll: function onAll(name, args) { + return false; + }, + onClickCell: function onClickCell(field, value, row, $element) { + return false; + }, + onDblClickCell: function onDblClickCell(field, value, row, $element) { + return false; + }, + onClickRow: function onClickRow(item, $element) { + return false; + }, + onDblClickRow: function onDblClickRow(item, $element) { + return false; + }, + onSort: function onSort(name, order) { + return false; + }, + onCheck: function onCheck(row) { + return false; + }, + onUncheck: function onUncheck(row) { + return false; + }, + onCheckAll: function onCheckAll(rows) { + return false; + }, + onUncheckAll: function onUncheckAll(rows) { + return false; + }, + onCheckSome: function onCheckSome(rows) { + return false; + }, + onUncheckSome: function onUncheckSome(rows) { + return false; + }, + onLoadSuccess: function onLoadSuccess(data) { + return false; + }, + onLoadError: function onLoadError(status) { + return false; + }, + onColumnSwitch: function onColumnSwitch(field, checked) { + return false; + }, + onPageChange: function onPageChange(number, size) { + return false; + }, + onSearch: function onSearch(text) { + return false; + }, + onToggle: function onToggle(cardView) { + return false; + }, + onPreBody: function onPreBody(data) { + return false; + }, + onPostBody: function onPostBody() { + return false; + }, + onPostHeader: function onPostHeader() { + return false; + }, + onExpandRow: function onExpandRow(index, row, $detail) { + return false; + }, + onCollapseRow: function onCollapseRow(index, row) { + return false; + }, + onRefreshOptions: function onRefreshOptions(options) { + return false; + }, + onRefresh: function onRefresh(params) { + return false; + }, + onResetView: function onResetView() { + return false; + }, + onScrollBody: function onScrollBody() { + return false; + } + }; + + var LOCALES = {}; + LOCALES['en-US'] = LOCALES.en = { + formatLoadingMessage: function formatLoadingMessage() { + return 'Loading, please wait...'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return Utils.sprintf('%s rows per page', pageNumber); + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return Utils.sprintf('Showing %s to %s of %s rows', pageFrom, pageTo, totalRows); + }, + formatDetailPagination: function formatDetailPagination(totalRows) { + return Utils.sprintf('Showing %s rows', totalRows); + }, + formatSearch: function formatSearch() { + return 'Search'; + }, + formatNoMatches: function formatNoMatches() { + return 'No matching records found'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return 'Hide/Show pagination'; + }, + formatRefresh: function formatRefresh() { + return 'Refresh'; + }, + formatToggle: function formatToggle() { + return 'Toggle'; + }, + formatFullscreen: function formatFullscreen() { + return 'Fullscreen'; + }, + formatColumns: function formatColumns() { + return 'Columns'; + }, + formatAllRows: function formatAllRows() { + return 'All'; + } + }; + + $.extend(DEFAULTS, LOCALES['en-US']); + + var COLUMN_DEFAULTS = { + radio: false, + checkbox: false, + checkboxEnabled: true, + field: undefined, + title: undefined, + titleTooltip: undefined, + 'class': undefined, + align: undefined, // left, right, center + halign: undefined, // left, right, center + falign: undefined, // left, right, center + valign: undefined, // top, middle, bottom + width: undefined, + sortable: false, + order: 'asc', // asc, desc + visible: true, + switchable: true, + clickToSelect: true, + formatter: undefined, + footerFormatter: undefined, + events: undefined, + sorter: undefined, + sortName: undefined, + cellStyle: undefined, + searchable: true, + searchFormatter: true, + cardVisible: true, + escape: false, + showSelectTitle: false + }; + + var EVENTS = { + 'all.bs.table': 'onAll', + 'click-cell.bs.table': 'onClickCell', + 'dbl-click-cell.bs.table': 'onDblClickCell', + 'click-row.bs.table': 'onClickRow', + 'dbl-click-row.bs.table': 'onDblClickRow', + 'sort.bs.table': 'onSort', + 'check.bs.table': 'onCheck', + 'uncheck.bs.table': 'onUncheck', + 'check-all.bs.table': 'onCheckAll', + 'uncheck-all.bs.table': 'onUncheckAll', + 'check-some.bs.table': 'onCheckSome', + 'uncheck-some.bs.table': 'onUncheckSome', + 'load-success.bs.table': 'onLoadSuccess', + 'load-error.bs.table': 'onLoadError', + 'column-switch.bs.table': 'onColumnSwitch', + 'page-change.bs.table': 'onPageChange', + 'search.bs.table': 'onSearch', + 'toggle.bs.table': 'onToggle', + 'pre-body.bs.table': 'onPreBody', + 'post-body.bs.table': 'onPostBody', + 'post-header.bs.table': 'onPostHeader', + 'expand-row.bs.table': 'onExpandRow', + 'collapse-row.bs.table': 'onCollapseRow', + 'refresh-options.bs.table': 'onRefreshOptions', + 'reset-view.bs.table': 'onResetView', + 'refresh.bs.table': 'onRefresh', + 'scroll-body.bs.table': 'onScrollBody' + }; + + var BootstrapTable = function () { + function BootstrapTable(el, options) { + _classCallCheck(this, BootstrapTable); + this.options = options; this.$el = $(el); this.$el_ = this.$el.clone(); @@ -283,461 +834,200 @@ this.timeoutFooter_ = 0; this.init(); - }; + } - BootstrapTable.DEFAULTS = { - classes: 'table table-hover', - locale: undefined, - height: undefined, - undefinedText: '-', - sortName: undefined, - sortOrder: 'asc', - sortStable: false, - striped: false, - columns: [[]], - data: [], - dataField: 'rows', - method: 'get', - url: undefined, - ajax: undefined, - cache: true, - contentType: 'application/json', - dataType: 'json', - ajaxOptions: {}, - queryParams: function (params) { - return params; - }, - queryParamsType: 'limit', // undefined - responseHandler: function (res) { - return res; - }, - pagination: false, - onlyInfoPagination: false, - sidePagination: 'client', // client or server - totalRows: 0, // server side need to set - pageNumber: 1, - pageSize: 10, - pageList: [10, 25, 50, 100], - paginationHAlign: 'right', //right, left - paginationVAlign: 'bottom', //bottom, top, both - paginationDetailHAlign: 'left', //right, left - paginationPreText: '‹', - paginationNextText: '›', - search: false, - searchOnEnterKey: false, - strictSearch: false, - searchAlign: 'right', - selectItemName: 'btSelectItem', - showHeader: true, - showFooter: false, - showColumns: false, - showPaginationSwitch: false, - showRefresh: false, - showToggle: false, - buttonsAlign: 'right', - smartDisplay: true, - escape: false, - minimumCountColumns: 1, - idField: undefined, - uniqueId: undefined, - cardView: false, - detailView: false, - detailFormatter: function (index, row) { - return ''; - }, - trimOnSearch: true, - clickToSelect: false, - singleSelect: false, - toolbar: undefined, - toolbarAlign: 'left', - checkboxHeader: true, - sortable: true, - silentSort: true, - maintainSelected: false, - searchTimeOut: 500, - searchText: '', - iconSize: undefined, - buttonsClass: 'default', - iconsPrefix: 'glyphicon', // glyphicon of fa (font awesome) - icons: { - paginationSwitchDown: 'glyphicon-collapse-down icon-chevron-down', - paginationSwitchUp: 'glyphicon-collapse-up icon-chevron-up', - refresh: 'glyphicon-refresh icon-refresh', - toggle: 'glyphicon-list-alt icon-list-alt', - columns: 'glyphicon-th icon-th', - detailOpen: 'glyphicon-plus icon-plus', - detailClose: 'glyphicon-minus icon-minus' - }, - - customSearch: $.noop, - - customSort: $.noop, - - rowStyle: function (row, index) { - return {}; - }, - - rowAttributes: function (row, index) { - return {}; - }, - - footerStyle: function (row, index) { - return {}; - }, - - onAll: function (name, args) { - return false; - }, - onClickCell: function (field, value, row, $element) { - return false; - }, - onDblClickCell: function (field, value, row, $element) { - return false; - }, - onClickRow: function (item, $element) { - return false; - }, - onDblClickRow: function (item, $element) { - return false; - }, - onSort: function (name, order) { - return false; - }, - onCheck: function (row) { - return false; - }, - onUncheck: function (row) { - return false; - }, - onCheckAll: function (rows) { - return false; - }, - onUncheckAll: function (rows) { - return false; - }, - onCheckSome: function (rows) { - return false; - }, - onUncheckSome: function (rows) { - return false; - }, - onLoadSuccess: function (data) { - return false; - }, - onLoadError: function (status) { - return false; - }, - onColumnSwitch: function (field, checked) { - return false; - }, - onPageChange: function (number, size) { - return false; - }, - onSearch: function (text) { - return false; - }, - onToggle: function (cardView) { - return false; - }, - onPreBody: function (data) { - return false; - }, - onPostBody: function () { - return false; - }, - onPostHeader: function () { - return false; - }, - onExpandRow: function (index, row, $detail) { - return false; - }, - onCollapseRow: function (index, row) { - return false; - }, - onRefreshOptions: function (options) { - return false; - }, - onRefresh: function (params) { - return false; - }, - onResetView: function () { - return false; + _createClass(BootstrapTable, [{ + key: 'init', + value: function init() { + this.initLocale(); + this.initContainer(); + this.initTable(); + this.initHeader(); + this.initData(); + this.initHiddenRows(); + this.initFooter(); + this.initToolbar(); + this.initPagination(); + this.initBody(); + this.initSearchText(); + this.initServer(); } - }; - - BootstrapTable.LOCALES = {}; - - BootstrapTable.LOCALES['en-US'] = BootstrapTable.LOCALES.en = { - formatLoadingMessage: function () { - return 'Loading, please wait...'; - }, - formatRecordsPerPage: function (pageNumber) { - return sprintf('%s rows per page', pageNumber); - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return sprintf('Showing %s to %s of %s rows', pageFrom, pageTo, totalRows); - }, - formatDetailPagination: function (totalRows) { - return sprintf('Showing %s rows', totalRows); - }, - formatSearch: function () { - return 'Search'; - }, - formatNoMatches: function () { - return 'No matching records found'; - }, - formatPaginationSwitch: function () { - return 'Hide/Show pagination'; - }, - formatRefresh: function () { - return 'Refresh'; - }, - formatToggle: function () { - return 'Toggle'; - }, - formatColumns: function () { - return 'Columns'; - }, - formatAllRows: function () { - return 'All'; - } - }; - - $.extend(BootstrapTable.DEFAULTS, BootstrapTable.LOCALES['en-US']); - - BootstrapTable.COLUMN_DEFAULTS = { - radio: false, - checkbox: false, - checkboxEnabled: true, - field: undefined, - title: undefined, - titleTooltip: undefined, - 'class': undefined, - align: undefined, // left, right, center - halign: undefined, // left, right, center - falign: undefined, // left, right, center - valign: undefined, // top, middle, bottom - width: undefined, - sortable: false, - order: 'asc', // asc, desc - visible: true, - switchable: true, - clickToSelect: true, - formatter: undefined, - footerFormatter: undefined, - events: undefined, - sorter: undefined, - sortName: undefined, - cellStyle: undefined, - searchable: true, - searchFormatter: true, - cardVisible: true - }; - - BootstrapTable.EVENTS = { - 'all.bs.table': 'onAll', - 'click-cell.bs.table': 'onClickCell', - 'dbl-click-cell.bs.table': 'onDblClickCell', - 'click-row.bs.table': 'onClickRow', - 'dbl-click-row.bs.table': 'onDblClickRow', - 'sort.bs.table': 'onSort', - 'check.bs.table': 'onCheck', - 'uncheck.bs.table': 'onUncheck', - 'check-all.bs.table': 'onCheckAll', - 'uncheck-all.bs.table': 'onUncheckAll', - 'check-some.bs.table': 'onCheckSome', - 'uncheck-some.bs.table': 'onUncheckSome', - 'load-success.bs.table': 'onLoadSuccess', - 'load-error.bs.table': 'onLoadError', - 'column-switch.bs.table': 'onColumnSwitch', - 'page-change.bs.table': 'onPageChange', - 'search.bs.table': 'onSearch', - 'toggle.bs.table': 'onToggle', - 'pre-body.bs.table': 'onPreBody', - 'post-body.bs.table': 'onPostBody', - 'post-header.bs.table': 'onPostHeader', - 'expand-row.bs.table': 'onExpandRow', - 'collapse-row.bs.table': 'onCollapseRow', - 'refresh-options.bs.table': 'onRefreshOptions', - 'reset-view.bs.table': 'onResetView', - 'refresh.bs.table': 'onRefresh' - }; - - BootstrapTable.prototype.init = function () { - this.initLocale(); - this.initContainer(); - this.initTable(); - this.initHeader(); - this.initData(); - this.initFooter(); - this.initToolbar(); - this.initPagination(); - this.initBody(); - this.initSearchText(); - this.initServer(); - }; - - BootstrapTable.prototype.initLocale = function () { - if (this.options.locale) { + }, { + key: 'initLocale', + value: function initLocale() { + if (this.options.locale) { + var locales = $.fn.bootstrapTable.locales; var parts = this.options.locale.split(/-|_/); - parts[0].toLowerCase(); - if (parts[1]) parts[1].toUpperCase(); - if ($.fn.bootstrapTable.locales[this.options.locale]) { - // locale as requested - $.extend(this.options, $.fn.bootstrapTable.locales[this.options.locale]); - } else if ($.fn.bootstrapTable.locales[parts.join('-')]) { - // locale with sep set to - (in case original was specified with _) - $.extend(this.options, $.fn.bootstrapTable.locales[parts.join('-')]); - } else if ($.fn.bootstrapTable.locales[parts[0]]) { - // short locale language code (i.e. 'en') - $.extend(this.options, $.fn.bootstrapTable.locales[parts[0]]); + + parts[0] = parts[0].toLowerCase(); + if (parts[1]) { + parts[1] = parts[1].toUpperCase(); } + + if (locales[this.options.locale]) { + $.extend(this.options, locales[this.options.locale]); + } else if (locales[parts.join('-')]) { + $.extend(this.options, locales[parts.join('-')]); + } else if (locales[parts[0]]) { + $.extend(this.options, locales[parts[0]]); + } + } } - }; + }, { + key: 'initContainer', + value: function initContainer() { + var topPagination = ['top', 'both'].includes(this.options.paginationVAlign) ? '
    ' : ''; + var bottomPagination = ['bottom', 'both'].includes(this.options.paginationVAlign) ? '
    ' : ''; - BootstrapTable.prototype.initContainer = function () { - this.$container = $([ - '
    ', - '
    ', - this.options.paginationVAlign === 'top' || this.options.paginationVAlign === 'both' ? - '
    ' : - '', - '
    ', - '
    ', - '
    ', - '
    ', - this.options.formatLoadingMessage(), - '
    ', - '
    ', - '', - this.options.paginationVAlign === 'bottom' || this.options.paginationVAlign === 'both' ? - '
    ' : - '', - '
    ', - '
    ' - ].join('')); + this.$container = $('\n
    \n
    \n ' + topPagination + '\n
    \n
    \n
    \n
    \n ' + this.options.formatLoadingMessage() + '\n
    \n
    \n \n
    \n ' + bottomPagination + '\n
    \n '); - this.$container.insertAfter(this.$el); - this.$tableContainer = this.$container.find('.fixed-table-container'); - this.$tableHeader = this.$container.find('.fixed-table-header'); - this.$tableBody = this.$container.find('.fixed-table-body'); - this.$tableLoading = this.$container.find('.fixed-table-loading'); - this.$tableFooter = this.$container.find('.fixed-table-footer'); - this.$toolbar = this.$container.find('.fixed-table-toolbar'); - this.$pagination = this.$container.find('.fixed-table-pagination'); + this.$container.insertAfter(this.$el); + this.$tableContainer = this.$container.find('.fixed-table-container'); + this.$tableHeader = this.$container.find('.fixed-table-header'); + this.$tableBody = this.$container.find('.fixed-table-body'); + this.$tableLoading = this.$container.find('.fixed-table-loading'); + this.$tableFooter = this.$container.find('.fixed-table-footer'); + // checking if custom table-toolbar exists or not + if (this.options.buttonsToolbar) { + this.$toolbar = $('body').find(this.options.buttonsToolbar); + } else { + this.$toolbar = this.$container.find('.fixed-table-toolbar'); + } + this.$pagination = this.$container.find('.fixed-table-pagination'); - this.$tableBody.append(this.$el); - this.$container.after('
    '); + this.$tableBody.append(this.$el); + this.$container.after('
    '); - this.$el.addClass(this.options.classes); - if (this.options.striped) { - this.$el.addClass('table-striped'); + this.$el.addClass(this.options.classes); + + if (this.options.height) { + this.$tableContainer.addClass('fixed-height'); + + if (this.options.classes.split(' ').includes('table-bordered')) { + this.$tableBody.append('
    '); + this.$tableBorder = this.$tableBody.find('.fixed-table-border'); + this.$tableLoading.addClass('fixed-table-border'); + } + } } - if ($.inArray('table-no-bordered', this.options.classes.split(' ')) !== -1) { - this.$tableContainer.addClass('table-no-bordered'); - } - }; + }, { + key: 'initTable', + value: function initTable() { + var _this = this; - BootstrapTable.prototype.initTable = function () { - var that = this, - columns = [], - data = []; + var columns = []; + var data = []; - this.$header = this.$el.find('>thead'); - if (!this.$header.length) { - this.$header = $('').appendTo(this.$el); - } - this.$header.find('tr').each(function () { + this.$header = this.$el.find('>thead'); + if (!this.$header.length) { + this.$header = $('').appendTo(this.$el); + } else if (this.options.theadClasses) { + this.$header.addClass(this.options.theadClasses); + } + this.$header.find('tr').each(function (i, el) { var column = []; - $(this).find('th').each(function () { - // Fix #2014 - getFieldIndex and elsewhere assume this is string, causes issues if not - if (typeof $(this).data('field') !== 'undefined') { - $(this).data('field', $(this).data('field') + ''); - } - column.push($.extend({}, { - title: $(this).html(), - 'class': $(this).attr('class'), - titleTooltip: $(this).attr('title'), - rowspan: $(this).attr('rowspan') ? +$(this).attr('rowspan') : undefined, - colspan: $(this).attr('colspan') ? +$(this).attr('colspan') : undefined - }, $(this).data())); + $(el).find('th').each(function (i, el) { + // #2014: getFieldIndex and elsewhere assume this is string, causes issues if not + if (typeof $(el).data('field') !== 'undefined') { + $(el).data('field', '' + $(el).data('field')); + } + column.push($.extend({}, { + title: $(el).html(), + 'class': $(el).attr('class'), + titleTooltip: $(el).attr('title'), + rowspan: $(el).attr('rowspan') ? +$(el).attr('rowspan') : undefined, + colspan: $(el).attr('colspan') ? +$(el).attr('colspan') : undefined + }, $(el).data())); }); columns.push(column); - }); - if (!$.isArray(this.options.columns[0])) { + }); + + if (!Array.isArray(this.options.columns[0])) { this.options.columns = [this.options.columns]; - } - this.options.columns = $.extend(true, [], columns, this.options.columns); - this.columns = []; + } - setFieldIndex(this.options.columns); - $.each(this.options.columns, function (i, columns) { - $.each(columns, function (j, column) { - column = $.extend({}, BootstrapTable.COLUMN_DEFAULTS, column); + this.options.columns = $.extend(true, [], columns, this.options.columns); + this.columns = []; + this.fieldsColumnsIndex = []; - if (typeof column.fieldIndex !== 'undefined') { - that.columns[column.fieldIndex] = column; - } + Utils.setFieldIndex(this.options.columns); - that.options.columns[i][j] = column; + this.options.columns.forEach(function (columns, i) { + columns.forEach(function (_column, j) { + var column = $.extend({}, BootstrapTable.COLUMN_DEFAULTS, _column); + + if (typeof column.fieldIndex !== 'undefined') { + _this.columns[column.fieldIndex] = column; + _this.fieldsColumnsIndex[column.field] = column.fieldIndex; + } + + _this.options.columns[i][j] = column; }); - }); + }); - // if options.data is setting, do not process tbody data - if (this.options.data.length) { + // if options.data is setting, do not process tbody data + if (this.options.data.length) { return; - } + } - var m = []; - this.$el.find('>tbody>tr').each(function (y) { + var m = []; + this.$el.find('>tbody>tr').each(function (y, el) { var row = {}; // save tr's id, class and data-* attributes - row._id = $(this).attr('id'); - row._class = $(this).attr('class'); - row._data = getRealDataAttr($(this).data()); + row._id = $(el).attr('id'); + row._class = $(el).attr('class'); + row._data = Utils.getRealDataAttr($(el).data()); - $(this).find('>td').each(function (x) { - var $this = $(this), - cspan = +$this.attr('colspan') || 1, - rspan = +$this.attr('rowspan') || 1, - tx, ty; + $(el).find('>td').each(function (_x, el) { + var cspan = +$(el).attr('colspan') || 1; + var rspan = +$(el).attr('rowspan') || 1; + var x = _x; - for (; m[y] && m[y][x]; x++); //skip already occupied cells in current row + // skip already occupied cells in current row + for (; m[y] && m[y][x]; x++) {} + // ignore - for (tx = x; tx < x + cspan; tx++) { //mark matrix elements occupied by current cell with true - for (ty = y; ty < y + rspan; ty++) { - if (!m[ty]) { //fill missing rows - m[ty] = []; - } - m[ty][tx] = true; - } + + // mark matrix elements occupied by current cell with true + for (var tx = x; tx < x + cspan; tx++) { + for (var ty = y; ty < y + rspan; ty++) { + if (!m[ty]) { + // fill missing rows + m[ty] = []; + } + m[ty][tx] = true; } + } - var field = that.columns[x].field; + var field = _this.columns[x].field; - row[field] = $(this).html(); - // save td's id, class and data-* attributes - row['_' + field + '_id'] = $(this).attr('id'); - row['_' + field + '_class'] = $(this).attr('class'); - row['_' + field + '_rowspan'] = $(this).attr('rowspan'); - row['_' + field + '_colspan'] = $(this).attr('colspan'); - row['_' + field + '_title'] = $(this).attr('title'); - row['_' + field + '_data'] = getRealDataAttr($(this).data()); + row[field] = $(el).html(); + // save td's id, class and data-* attributes + row['_' + field + '_id'] = $(el).attr('id'); + row['_' + field + '_class'] = $(el).attr('class'); + row['_' + field + '_rowspan'] = $(el).attr('rowspan'); + row['_' + field + '_colspan'] = $(el).attr('colspan'); + row['_' + field + '_title'] = $(el).attr('title'); + row['_' + field + '_data'] = Utils.getRealDataAttr($(el).data()); }); data.push(row); - }); - this.options.data = data; - if (data.length) this.fromHtml = true; - }; + }); + this.options.data = data; + if (data.length) { + this.fromHtml = true; + } + } + }, { + key: 'initHeader', + value: function initHeader() { + var _this2 = this; - BootstrapTable.prototype.initHeader = function () { - var that = this, - visibleColumns = {}, - html = []; + var visibleColumns = {}; + var html = []; - this.header = { + this.header = { fields: [], styles: [], classes: [], @@ -747,2252 +1037,2804 @@ sortNames: [], cellStyles: [], searchables: [] - }; + }; - $.each(this.options.columns, function (i, columns) { + this.options.columns.forEach(function (columns, i) { html.push(''); - if (i === 0 && !that.options.cardView && that.options.detailView) { - html.push(sprintf('
    ', - that.options.columns.length)); + if (i === 0 && !_this2.options.cardView && _this2.options.detailView) { + html.push('\n
    \n \n '); } - $.each(columns, function (j, column) { - var text = '', - halign = '', // header align style - align = '', // body align style - style = '', - class_ = sprintf(' class="%s"', column['class']), - order = that.options.sortOrder || column.order, - unitWidth = 'px', - width = column.width; + columns.forEach(function (column, j) { + var text = ''; - if (column.width !== undefined && (!that.options.cardView)) { - if (typeof column.width === 'string') { - if (column.width.indexOf('%') !== -1) { - unitWidth = '%'; - } - } + var halign = ''; // header align style + + var align = ''; // body align style + + var style = ''; + var class_ = Utils.sprintf(' class="%s"', column['class']); + var unitWidth = 'px'; + var width = column.width; + + if (column.width !== undefined && !_this2.options.cardView) { + if (typeof column.width === 'string') { + if (column.width.includes('%')) { + unitWidth = '%'; + } } - if (column.width && typeof column.width === 'string') { - width = column.width.replace('%', '').replace('px', ''); + } + if (column.width && typeof column.width === 'string') { + width = column.width.replace('%', '').replace('px', ''); + } + + halign = Utils.sprintf('text-align: %s; ', column.halign ? column.halign : column.align); + align = Utils.sprintf('text-align: %s; ', column.align); + style = Utils.sprintf('vertical-align: %s; ', column.valign); + style += Utils.sprintf('width: %s; ', (column.checkbox || column.radio) && !width ? !column.showSelectTitle ? '36px' : undefined : width ? width + unitWidth : undefined); + + if (typeof column.fieldIndex !== 'undefined') { + _this2.header.fields[column.fieldIndex] = column.field; + _this2.header.styles[column.fieldIndex] = align + style; + _this2.header.classes[column.fieldIndex] = class_; + _this2.header.formatters[column.fieldIndex] = column.formatter; + _this2.header.events[column.fieldIndex] = column.events; + _this2.header.sorters[column.fieldIndex] = column.sorter; + _this2.header.sortNames[column.fieldIndex] = column.sortName; + _this2.header.cellStyles[column.fieldIndex] = column.cellStyle; + _this2.header.searchables[column.fieldIndex] = column.searchable; + + if (!column.visible) { + return; } - halign = sprintf('text-align: %s; ', column.halign ? column.halign : column.align); - align = sprintf('text-align: %s; ', column.align); - style = sprintf('vertical-align: %s; ', column.valign); - style += sprintf('width: %s; ', (column.checkbox || column.radio) && !width ? - '36px' : (width ? width + unitWidth : undefined)); - - if (typeof column.fieldIndex !== 'undefined') { - that.header.fields[column.fieldIndex] = column.field; - that.header.styles[column.fieldIndex] = align + style; - that.header.classes[column.fieldIndex] = class_; - that.header.formatters[column.fieldIndex] = column.formatter; - that.header.events[column.fieldIndex] = column.events; - that.header.sorters[column.fieldIndex] = column.sorter; - that.header.sortNames[column.fieldIndex] = column.sortName; - that.header.cellStyles[column.fieldIndex] = column.cellStyle; - that.header.searchables[column.fieldIndex] = column.searchable; - - if (!column.visible) { - return; - } - - if (that.options.cardView && (!column.cardVisible)) { - return; - } - - visibleColumns[column.field] = column; + if (_this2.options.cardView && !column.cardVisible) { + return; } - html.push(''); + visibleColumns[column.field] = column; + } - html.push(sprintf('
    ', that.options.sortable && column.sortable ? - 'sortable both' : '')); + html.push(' 0 ? ' data-not-first-th' : '', '>'); - text = column.title; + html.push(Utils.sprintf('
    ', _this2.options.sortable && column.sortable ? 'sortable both' : '')); - if (column.checkbox) { - if (!that.options.singleSelect && that.options.checkboxHeader) { - text = ''; - } - that.header.stateField = column.field; - } - if (column.radio) { - text = ''; - that.header.stateField = column.field; - that.options.singleSelect = true; + text = _this2.options.escape ? Utils.escapeHTML(column.title) : column.title; + + var title = text; + if (column.checkbox) { + text = ''; + if (!_this2.options.singleSelect && _this2.options.checkboxHeader) { + text = ''; } + _this2.header.stateField = column.field; + } + if (column.radio) { + text = ''; + _this2.header.stateField = column.field; + _this2.options.singleSelect = true; + } + if (!text && column.showSelectTitle) { + text += title; + } - html.push(text); - html.push('
    '); - html.push('
    '); - html.push('
    '); - html.push(''); + html.push(text); + html.push('
    '); + html.push('
    '); + html.push('
    '); + html.push(''); }); html.push(''); - }); + }); - this.$header.html(html.join('')); - this.$header.find('th[data-field]').each(function (i) { - $(this).data(visibleColumns[$(this).data('field')]); - }); - this.$container.off('click', '.th-inner').on('click', '.th-inner', function (event) { - var target = $(this); + this.$header.html(html.join('')); + this.$header.find('th[data-field]').each(function (i, el) { + $(el).data(visibleColumns[$(el).data('field')]); + }); + this.$container.off('click', '.th-inner').on('click', '.th-inner', function (e) { + var $this = $(e.currentTarget); - if (that.options.detailView) { - if (target.closest('.bootstrap-table')[0] !== that.$container[0]) - return false; + if (_this2.options.detailView && !$this.parent().hasClass('bs-checkbox')) { + if ($this.closest('.bootstrap-table')[0] !== _this2.$container[0]) { + return false; + } } - if (that.options.sortable && target.parent().data().sortable) { - that.onSort(event); + if (_this2.options.sortable && $this.parent().data().sortable) { + _this2.onSort(e); } - }); + }); - this.$header.children().children().off('keypress').on('keypress', function (event) { - if (that.options.sortable && $(this).data().sortable) { - var code = event.keyCode || event.which; - if (code == 13) { //Enter keycode - that.onSort(event); - } + this.$header.children().children().off('keypress').on('keypress', function (e) { + if (_this2.options.sortable && $(e.currentTarget).data().sortable) { + var code = e.keyCode || e.which; + if (code === 13) { + // Enter keycode + _this2.onSort(e); + } } - }); + }); - $(window).off('resize.bootstrap-table'); - if (!this.options.showHeader || this.options.cardView) { + $(window).off('resize.bootstrap-table'); + if (!this.options.showHeader || this.options.cardView) { this.$header.hide(); this.$tableHeader.hide(); this.$tableLoading.css('top', 0); - } else { + } else { this.$header.show(); this.$tableHeader.show(); this.$tableLoading.css('top', this.$header.outerHeight() + 1); // Assign the correct sortable arrow this.getCaret(); $(window).on('resize.bootstrap-table', $.proxy(this.resetWidth, this)); + } + + this.$selectAll = this.$header.find('[name="btSelectAll"]'); + this.$selectAll.off('click').on('click', function (_ref6) { + var currentTarget = _ref6.currentTarget; + + var checked = $(currentTarget).prop('checked'); + _this2[checked ? 'checkAll' : 'uncheckAll'](); + _this2.updateSelected(); + }); } - - this.$selectAll = this.$header.find('[name="btSelectAll"]'); - this.$selectAll.off('click').on('click', function () { - var checked = $(this).prop('checked'); - that[checked ? 'checkAll' : 'uncheckAll'](); - that.updateSelected(); - }); - }; - - BootstrapTable.prototype.initFooter = function () { - if (!this.options.showFooter || this.options.cardView) { + }, { + key: 'initFooter', + value: function initFooter() { + if (!this.options.showFooter || this.options.cardView) { this.$tableFooter.hide(); - } else { + } else { this.$tableFooter.show(); + } } - }; - - /** - * @param data - * @param type: append / prepend - */ - BootstrapTable.prototype.initData = function (data, type) { - if (type === 'append') { - this.data = this.data.concat(data); - } else if (type === 'prepend') { - this.data = [].concat(data).concat(this.data); - } else { - this.data = data || this.options.data; - } - - // Fix #839 Records deleted when adding new row on filtered table - if (type === 'append') { + }, { + key: 'initData', + value: function initData(data, type) { + if (type === 'append') { this.options.data = this.options.data.concat(data); - } else if (type === 'prepend') { + } else if (type === 'prepend') { this.options.data = [].concat(data).concat(this.options.data); - } else { - this.options.data = this.data; - } + } else { + this.options.data = data || this.options.data; + } - if (this.options.sidePagination === 'server') { + this.data = this.options.data; + + if (this.options.sidePagination === 'server') { return; + } + this.initSort(); } - this.initSort(); - }; + }, { + key: 'initSort', + value: function initSort() { + var _this3 = this; - BootstrapTable.prototype.initSort = function () { - var that = this, - name = this.options.sortName, - order = this.options.sortOrder === 'desc' ? -1 : 1, - index = $.inArray(this.options.sortName, this.header.fields); + var name = this.options.sortName; + var order = this.options.sortOrder === 'desc' ? -1 : 1; + var index = this.header.fields.indexOf(this.options.sortName); + var timeoutId = 0; - if (this.options.customSort !== $.noop) { - this.options.customSort.apply(this, [this.options.sortName, this.options.sortOrder]); - return; - } - - if (index !== -1) { + if (index !== -1) { if (this.options.sortStable) { - $.each(this.data, function (i, row) { - if (!row.hasOwnProperty('_position')) row._position = i; - }); + this.data.forEach(function (row, i) { + if (!row.hasOwnProperty('_position')) { + row._position = i; + } + }); } - this.data.sort(function (a, b) { - if (that.header.sortNames[index]) { - name = that.header.sortNames[index]; + if (this.options.customSort) { + Utils.calculateObjectValue(this.options, this.options.customSort, [this.options.sortName, this.options.sortOrder, this.data]); + } else { + this.data.sort(function (a, b) { + if (_this3.header.sortNames[index]) { + name = _this3.header.sortNames[index]; } - var aa = getItemField(a, name, that.options.escape), - bb = getItemField(b, name, that.options.escape), - value = calculateObjectValue(that.header, that.header.sorters[index], [aa, bb]); + var aa = Utils.getItemField(a, name, _this3.options.escape); + var bb = Utils.getItemField(b, name, _this3.options.escape); + var value = Utils.calculateObjectValue(_this3.header, _this3.header.sorters[index], [aa, bb, a, b]); if (value !== undefined) { - return order * value; + if (_this3.options.sortStable && value === 0) { + return order * (a._position - b._position); + } + return order * value; } // Fix #161: undefined or null string sort bug. if (aa === undefined || aa === null) { - aa = ''; + aa = ''; } if (bb === undefined || bb === null) { - bb = ''; + bb = ''; } - if (that.options.sortStable && aa === bb) { - aa = a._position; - bb = b._position; + if (_this3.options.sortStable && aa === bb) { + aa = a._position; + bb = b._position; } // IF both values are numeric, do a numeric comparison if ($.isNumeric(aa) && $.isNumeric(bb)) { - // Convert numerical values form string to float. - aa = parseFloat(aa); - bb = parseFloat(bb); - if (aa < bb) { - return order * -1; - } + // Convert numerical values form string to float. + aa = parseFloat(aa); + bb = parseFloat(bb); + if (aa < bb) { + return order * -1; + } + if (aa > bb) { return order; + } + return 0; } if (aa === bb) { - return 0; + return 0; } // If value is not a string, convert to string if (typeof aa !== 'string') { - aa = aa.toString(); + aa = aa.toString(); } if (aa.localeCompare(bb) === -1) { - return order * -1; + return order * -1; } return order; - }); + }); + } + + if (this.options.sortClass !== undefined) { + clearTimeout(timeoutId); + timeoutId = setTimeout(function () { + _this3.$el.removeClass(_this3.options.sortClass); + var index = _this3.$header.find('[data-field="' + _this3.options.sortName + '"]').index(); + _this3.$el.find('tr td:nth-child(' + (index + 1) + ')').addClass(_this3.options.sortClass); + }, 250); + } + } } - }; + }, { + key: 'onSort', + value: function onSort(_ref7) { + var type = _ref7.type, + currentTarget = _ref7.currentTarget; - BootstrapTable.prototype.onSort = function (event) { - var $this = event.type === "keypress" ? $(event.currentTarget) : $(event.currentTarget).parent(), - $this_ = this.$header.find('th').eq($this.index()); + var $this = type === 'keypress' ? $(currentTarget) : $(currentTarget).parent(); + var $this_ = this.$header.find('th').eq($this.index()); - this.$header.add(this.$header_).find('span.order').remove(); + this.$header.add(this.$header_).find('span.order').remove(); - if (this.options.sortName === $this.data('field')) { + if (this.options.sortName === $this.data('field')) { this.options.sortOrder = this.options.sortOrder === 'asc' ? 'desc' : 'asc'; - } else { + } else { this.options.sortName = $this.data('field'); - this.options.sortOrder = $this.data('order') === 'asc' ? 'desc' : 'asc'; - } - this.trigger('sort', this.options.sortName, this.options.sortOrder); + if (this.options.rememberOrder) { + this.options.sortOrder = $this.data('order') === 'asc' ? 'desc' : 'asc'; + } else { + this.options.sortOrder = this.columns[this.fieldsColumnsIndex[$this.data('field')]].order; + } + } + this.trigger('sort', this.options.sortName, this.options.sortOrder); - $this.add($this_).data('order', this.options.sortOrder); + $this.add($this_).data('order', this.options.sortOrder); - // Assign the correct sortable arrow - this.getCaret(); + // Assign the correct sortable arrow + this.getCaret(); - if (this.options.sidePagination === 'server') { + if (this.options.sidePagination === 'server') { this.initServer(this.options.silentSort); return; + } + + this.initSort(); + this.initBody(); } + }, { + key: 'initToolbar', + value: function initToolbar() { + var _this4 = this; - this.initSort(); - this.initBody(); - }; + var html = []; + var timeoutId = 0; + var $keepOpen = void 0; + var $search = void 0; + var switchableCount = 0; - BootstrapTable.prototype.initToolbar = function () { - var that = this, - html = [], - timeoutId = 0, - $keepOpen, - $search, - switchableCount = 0; - - if (this.$toolbar.find('.bs-bars').children().length) { + if (this.$toolbar.find('.bs-bars').children().length) { $('body').append($(this.options.toolbar)); - } - this.$toolbar.html(''); + } + this.$toolbar.html(''); - if (typeof this.options.toolbar === 'string' || typeof this.options.toolbar === 'object') { - $(sprintf('
    ', this.options.toolbarAlign)) - .appendTo(this.$toolbar) - .append($(this.options.toolbar)); - } + if (typeof this.options.toolbar === 'string' || _typeof(this.options.toolbar) === 'object') { + $(Utils.sprintf('
    ', bootstrap.classes.pull, this.options.toolbarAlign)).appendTo(this.$toolbar).append($(this.options.toolbar)); + } - // showColumns, showToggle, showRefresh - html = [sprintf('
    ', - this.options.buttonsAlign, this.options.buttonsAlign)]; + // showColumns, showToggle, showRefresh + html = [Utils.sprintf('
    ', this.options.buttonsAlign, bootstrap.classes.pull, this.options.buttonsAlign)]; - if (typeof this.options.icons === 'string') { - this.options.icons = calculateObjectValue(null, this.options.icons); - } + if (typeof this.options.icons === 'string') { + this.options.icons = Utils.calculateObjectValue(null, this.options.icons); + } - if (this.options.showPaginationSwitch) { - html.push(sprintf(''); - } + if (this.options.showPaginationSwitch) { + html.push(Utils.sprintf(''); + } - if (this.options.showRefresh) { - html.push(sprintf(''); - } + if (this.options.showFullscreen) { + this.$toolbar.find('button[name="fullscreen"]').off('click').on('click', $.proxy(this.toggleFullscreen, this)); + } - if (this.options.showToggle) { - html.push(sprintf(''); - } + if (this.options.showRefresh) { + html.push(Utils.sprintf(''); + } - if (this.options.showColumns) { - html.push(sprintf('
    ', - this.options.formatColumns()), - '', - '', - '
    '); - } + html.push(bootstrap.html.toobarDropdow[1], '
    '); + } - html.push('
    '); + html.push('
    '); - // Fix #188: this.showToolbar is for extensions - if (this.showToolbar || html.length > 2) { + // Fix #188: this.showToolbar is for extensions + if (this.showToolbar || html.length > 2) { this.$toolbar.append(html.join('')); - } + } - if (this.options.showPaginationSwitch) { - this.$toolbar.find('button[name="paginationSwitch"]') - .off('click').on('click', $.proxy(this.togglePagination, this)); - } + if (this.options.showPaginationSwitch) { + this.$toolbar.find('button[name="paginationSwitch"]').off('click').on('click', $.proxy(this.togglePagination, this)); + } - if (this.options.showRefresh) { - this.$toolbar.find('button[name="refresh"]') - .off('click').on('click', $.proxy(this.refresh, this)); - } + if (this.options.showRefresh) { + this.$toolbar.find('button[name="refresh"]').off('click').on('click', $.proxy(this.refresh, this)); + } - if (this.options.showToggle) { - this.$toolbar.find('button[name="toggle"]') - .off('click').on('click', function () { - that.toggleView(); - }); - } + if (this.options.showToggle) { + this.$toolbar.find('button[name="toggle"]').off('click').on('click', function () { + _this4.toggleView(); + }); + } - if (this.options.showColumns) { + if (this.options.showColumns) { $keepOpen = this.$toolbar.find('.keep-open'); if (switchableCount <= this.options.minimumCountColumns) { - $keepOpen.find('input').prop('disabled', true); + $keepOpen.find('input').prop('disabled', true); } - $keepOpen.find('li').off('click').on('click', function (event) { - event.stopImmediatePropagation(); + $keepOpen.find('li').off('click').on('click', function (e) { + e.stopImmediatePropagation(); }); - $keepOpen.find('input').off('click').on('click', function () { - var $this = $(this); + $keepOpen.find('input').off('click').on('click', function (_ref8) { + var currentTarget = _ref8.currentTarget; - that.toggleColumn($(this).val(), $this.prop('checked'), false); - that.trigger('column-switch', $(this).data('field'), $this.prop('checked')); + var $this = $(currentTarget); + + _this4.toggleColumn($this.val(), $this.prop('checked'), false); + _this4.trigger('column-switch', $this.data('field'), $this.prop('checked')); }); - } + } - if (this.options.search) { + if (this.options.search) { html = []; - html.push( - ''); + html.push(Utils.sprintf(''); this.$toolbar.append(html.join('')); $search = this.$toolbar.find('.search input'); - $search.off('keyup drop').on('keyup drop', function (event) { - if (that.options.searchOnEnterKey && event.keyCode !== 13) { - return; - } + $search.off('keyup drop blur').on('keyup drop blur', function (event) { + if (_this4.options.searchOnEnterKey && event.keyCode !== 13) { + return; + } - if ($.inArray(event.keyCode, [37, 38, 39, 40]) > -1) { - return; - } + if ([37, 38, 39, 40].includes(event.keyCode)) { + return; + } - clearTimeout(timeoutId); // doesn't matter if it's 0 - timeoutId = setTimeout(function () { - that.onSearch(event); - }, that.options.searchTimeOut); + clearTimeout(timeoutId); // doesn't matter if it's 0 + timeoutId = setTimeout(function () { + _this4.onSearch(event); + }, _this4.options.searchTimeOut); }); - if (isIEBrowser()) { - $search.off('mouseup').on('mouseup', function (event) { - clearTimeout(timeoutId); // doesn't matter if it's 0 - timeoutId = setTimeout(function () { - that.onSearch(event); - }, that.options.searchTimeOut); - }); + if (Utils.isIEBrowser()) { + $search.off('mouseup').on('mouseup', function (event) { + clearTimeout(timeoutId); // doesn't matter if it's 0 + timeoutId = setTimeout(function () { + _this4.onSearch(event); + }, _this4.options.searchTimeOut); + }); } + } } - }; + }, { + key: 'onSearch', + value: function onSearch(_ref9) { + var currentTarget = _ref9.currentTarget, + firedByInitSearchText = _ref9.firedByInitSearchText; - BootstrapTable.prototype.onSearch = function (event) { - var text = $.trim($(event.currentTarget).val()); + var text = $.trim($(currentTarget).val()); - // trim search input - if (this.options.trimOnSearch && $(event.currentTarget).val() !== text) { - $(event.currentTarget).val(text); - } + // trim search input + if (this.options.trimOnSearch && $(currentTarget).val() !== text) { + $(currentTarget).val(text); + } - if (text === this.searchText) { + if (text === this.searchText) { return; + } + this.searchText = text; + this.options.searchText = text; + + if (!firedByInitSearchText) { + this.options.pageNumber = 1; + } + this.initSearch(); + if (firedByInitSearchText) { + if (this.options.sidePagination === 'client') { + this.updatePagination(); + } + } else { + this.updatePagination(); + } + this.trigger('search', text); } - this.searchText = text; - this.options.searchText = text; + }, { + key: 'initSearch', + value: function initSearch() { + var _this5 = this; - this.options.pageNumber = 1; - this.initSearch(); - this.updatePagination(); - this.trigger('search', text); - }; - - BootstrapTable.prototype.initSearch = function () { - var that = this; - - if (this.options.sidePagination !== 'server') { - if (this.options.customSearch !== $.noop) { - this.options.customSearch.apply(this, [this.searchText]); - return; + if (this.options.sidePagination !== 'server') { + if (this.options.customSearch) { + Utils.calculateObjectValue(this.options, this.options.customSearch, [this.searchText]); + return; } - var s = this.searchText && (this.options.escape ? - escapeHTML(this.searchText) : this.searchText).toLowerCase(); + var s = this.searchText && (this.options.escape ? Utils.escapeHTML(this.searchText) : this.searchText).toLowerCase(); var f = $.isEmptyObject(this.filterColumns) ? null : this.filterColumns; // Check filter - this.data = f ? $.grep(this.options.data, function (item, i) { - for (var key in f) { - if ($.isArray(f[key]) && $.inArray(item[key], f[key]) === -1 || - item[key] !== f[key]) { - return false; - } + this.data = f ? this.options.data.filter(function (item, i) { + for (var key in f) { + if (Array.isArray(f[key]) && !f[key].includes(item[key]) || !Array.isArray(f[key]) && item[key] !== f[key]) { + return false; } - return true; + } + return true; }) : this.options.data; - this.data = s ? $.grep(this.data, function (item, i) { - for (var j = 0; j < that.header.fields.length; j++) { - - if (!that.header.searchables[j]) { - continue; - } - - var key = $.isNumeric(that.header.fields[j]) ? parseInt(that.header.fields[j], 10) : that.header.fields[j]; - var column = that.columns[getFieldIndex(that.columns, key)]; - var value; - - if (typeof key === 'string') { - value = item; - var props = key.split('.'); - for (var prop_index = 0; prop_index < props.length; prop_index++) { - value = value[props[prop_index]]; - } - - // Fix #142: respect searchForamtter boolean - if (column && column.searchFormatter) { - value = calculateObjectValue(column, - that.header.formatters[j], [value, item, i], value); - } - } else { - value = item[key]; - } - - if (typeof value === 'string' || typeof value === 'number') { - if (that.options.strictSearch) { - if ((value + '').toLowerCase() === s) { - return true; - } - } else { - if ((value + '').toLowerCase().indexOf(s) !== -1) { - return true; - } - } - } + this.data = s ? this.data.filter(function (item, i) { + for (var j = 0; j < _this5.header.fields.length; j++) { + if (!_this5.header.searchables[j]) { + continue; } - return false; - }) : this.data; - } - }; - BootstrapTable.prototype.initPagination = function () { - if (!this.options.pagination) { + var key = $.isNumeric(_this5.header.fields[j]) ? parseInt(_this5.header.fields[j], 10) : _this5.header.fields[j]; + var column = _this5.columns[_this5.fieldsColumnsIndex[key]]; + var value = void 0; + + if (typeof key === 'string') { + value = item; + var props = key.split('.'); + for (var _i2 = 0; _i2 < props.length; _i2++) { + if (value[props[_i2]] !== null) { + value = value[props[_i2]]; + } + } + } else { + value = item[key]; + } + + // Fix #142: respect searchForamtter boolean + if (column && column.searchFormatter) { + value = Utils.calculateObjectValue(column, _this5.header.formatters[j], [value, item, i], value); + } + + if (typeof value === 'string' || typeof value === 'number') { + if (_this5.options.strictSearch) { + if (('' + value).toLowerCase() === s) { + return true; + } + } else { + if (('' + value).toLowerCase().includes(s)) { + return true; + } + } + } + } + return false; + }) : this.data; + } + } + }, { + key: 'initPagination', + value: function initPagination() { + var _this6 = this; + + if (!this.options.pagination) { this.$pagination.hide(); return; - } else { - this.$pagination.show(); - } + } + this.$pagination.show(); - var that = this, - html = [], - $allSelected = false, - i, from, to, - $pageList, - $first, $pre, - $next, $last, - $number, - data = this.getData(), - pageList = this.options.pageList; + var html = []; + var $allSelected = false; + var i = void 0; + var from = void 0; + var to = void 0; + var $pageList = void 0; + var $pre = void 0; + var $next = void 0; + var $number = void 0; + var data = this.getData(); + var pageList = this.options.pageList; - if (this.options.sidePagination !== 'server') { + if (this.options.sidePagination !== 'server') { this.options.totalRows = data.length; - } + } - this.totalPages = 0; - if (this.options.totalRows) { + this.totalPages = 0; + if (this.options.totalRows) { if (this.options.pageSize === this.options.formatAllRows()) { - this.options.pageSize = this.options.totalRows; - $allSelected = true; + this.options.pageSize = this.options.totalRows; + $allSelected = true; } else if (this.options.pageSize === this.options.totalRows) { - // Fix #667 Table with pagination, - // multiple pages and a search that matches to one page throws exception - var pageLst = typeof this.options.pageList === 'string' ? - this.options.pageList.replace('[', '').replace(']', '') - .replace(/ /g, '').toLowerCase().split(',') : this.options.pageList; - if ($.inArray(this.options.formatAllRows().toLowerCase(), pageLst) > -1) { - $allSelected = true; - } + // Fix #667 Table with pagination, + // multiple pages and a search this matches to one page throws exception + var pageLst = typeof this.options.pageList === 'string' ? this.options.pageList.replace('[', '').replace(']', '').replace(/ /g, '').toLowerCase().split(',') : this.options.pageList; + if (pageLst.includes(this.options.formatAllRows().toLowerCase())) { + $allSelected = true; + } } this.totalPages = ~~((this.options.totalRows - 1) / this.options.pageSize) + 1; this.options.totalPages = this.totalPages; - } - if (this.totalPages > 0 && this.options.pageNumber > this.totalPages) { + } + if (this.totalPages > 0 && this.options.pageNumber > this.totalPages) { this.options.pageNumber = this.totalPages; - } + } - this.pageFrom = (this.options.pageNumber - 1) * this.options.pageSize + 1; - this.pageTo = this.options.pageNumber * this.options.pageSize; - if (this.pageTo > this.options.totalRows) { + this.pageFrom = (this.options.pageNumber - 1) * this.options.pageSize + 1; + this.pageTo = this.options.pageNumber * this.options.pageSize; + if (this.pageTo > this.options.totalRows) { this.pageTo = this.options.totalRows; - } + } - html.push( - '
    ', - '', - this.options.onlyInfoPagination ? this.options.formatDetailPagination(this.options.totalRows) : - this.options.formatShowingRows(this.pageFrom, this.pageTo, this.options.totalRows), - ''); + html.push(Utils.sprintf('
    ', bootstrap.classes.pull, this.options.paginationDetailHAlign), '', this.options.onlyInfoPagination ? this.options.formatDetailPagination(this.options.totalRows) : this.options.formatShowingRows(this.pageFrom, this.pageTo, this.options.totalRows), ''); - if (!this.options.onlyInfoPagination) { + if (!this.options.onlyInfoPagination) { html.push(''); - var pageNumber = [ - sprintf('', - this.options.paginationVAlign === 'top' || this.options.paginationVAlign === 'both' ? - 'dropdown' : 'dropup'), - '', - ''); + pageNumber.push(bootstrap.html.pageDropdown[1] + ''); html.push(this.options.formatRecordsPerPage(pageNumber.join(''))); html.push(''); - html.push('
    ', - '', Utils.sprintf('\n '); + } + this.$pagination.html(html.join('')); - html.push( - '
  • ' + this.options.paginationNextText + '
  • ', - '', - '
    '); - } - this.$pagination.html(html.join('')); - - if (!this.options.onlyInfoPagination) { + if (!this.options.onlyInfoPagination) { $pageList = this.$pagination.find('.page-list a'); - $first = this.$pagination.find('.page-first'); $pre = this.$pagination.find('.page-pre'); $next = this.$pagination.find('.page-next'); - $last = this.$pagination.find('.page-last'); - $number = this.$pagination.find('.page-number'); + $number = this.$pagination.find('.page-item').not('.page-next, .page-pre'); if (this.options.smartDisplay) { - if (this.totalPages <= 1) { - this.$pagination.find('div.pagination').hide(); - } - if (pageList.length < 2 || this.options.totalRows <= pageList[0]) { - this.$pagination.find('span.page-list').hide(); - } + if (this.totalPages <= 1) { + this.$pagination.find('div.pagination').hide(); + } + if (pageList.length < 2 || this.options.totalRows <= pageList[0]) { + this.$pagination.find('span.page-list').hide(); + } - // when data is empty, hide the pagination - this.$pagination[this.getData().length ? 'show' : 'hide'](); + // when data is empty, hide the pagination + this.$pagination[this.getData().length ? 'show' : 'hide'](); } + + if (!this.options.paginationLoop) { + if (this.options.pageNumber === 1) { + $pre.addClass('disabled'); + } + if (this.options.pageNumber === this.totalPages) { + $next.addClass('disabled'); + } + } + if ($allSelected) { - this.options.pageSize = this.options.formatAllRows(); + this.options.pageSize = this.options.formatAllRows(); } + // removed the events for last and first, onPageNumber executeds the same logic $pageList.off('click').on('click', $.proxy(this.onPageListChange, this)); - $first.off('click').on('click', $.proxy(this.onPageFirst, this)); $pre.off('click').on('click', $.proxy(this.onPagePre, this)); $next.off('click').on('click', $.proxy(this.onPageNext, this)); - $last.off('click').on('click', $.proxy(this.onPageLast, this)); $number.off('click').on('click', $.proxy(this.onPageNumber, this)); + } } - }; - - BootstrapTable.prototype.updatePagination = function (event) { - // Fix #171: IE disabled button can be clicked bug. - if (event && $(event.currentTarget).hasClass('disabled')) { + }, { + key: 'updatePagination', + value: function updatePagination(event) { + // Fix #171: IE disabled button can be clicked bug. + if (event && $(event.currentTarget).hasClass('disabled')) { return; - } + } - if (!this.options.maintainSelected) { + if (!this.options.maintainSelected) { this.resetRows(); - } + } - this.initPagination(); - if (this.options.sidePagination === 'server') { + this.initPagination(); + if (this.options.sidePagination === 'server') { this.initServer(); - } else { + } else { this.initBody(); + } + + this.trigger('page-change', this.options.pageNumber, this.options.pageSize); } + }, { + key: 'onPageListChange', + value: function onPageListChange(event) { + event.preventDefault(); + var $this = $(event.currentTarget); - this.trigger('page-change', this.options.pageNumber, this.options.pageSize); - }; + $this.parent().addClass('active').siblings().removeClass('active'); + this.options.pageSize = $this.text().toUpperCase() === this.options.formatAllRows().toUpperCase() ? this.options.formatAllRows() : +$this.text(); + this.$toolbar.find('.page-size').text(this.options.pageSize); - BootstrapTable.prototype.onPageListChange = function (event) { - var $this = $(event.currentTarget); - - $this.parent().addClass('active').siblings().removeClass('active'); - this.options.pageSize = $this.text().toUpperCase() === this.options.formatAllRows().toUpperCase() ? - this.options.formatAllRows() : +$this.text(); - this.$toolbar.find('.page-size').text(this.options.pageSize); - - this.updatePagination(event); - }; - - BootstrapTable.prototype.onPageFirst = function (event) { - this.options.pageNumber = 1; - this.updatePagination(event); - }; - - BootstrapTable.prototype.onPagePre = function (event) { - if ((this.options.pageNumber - 1) === 0) { + this.updatePagination(event); + return false; + } + }, { + key: 'onPagePre', + value: function onPagePre(event) { + event.preventDefault(); + if (this.options.pageNumber - 1 === 0) { this.options.pageNumber = this.options.totalPages; - } else { + } else { this.options.pageNumber--; + } + this.updatePagination(event); + return false; } - this.updatePagination(event); - }; - - BootstrapTable.prototype.onPageNext = function (event) { - if ((this.options.pageNumber + 1) > this.options.totalPages) { + }, { + key: 'onPageNext', + value: function onPageNext(event) { + event.preventDefault(); + if (this.options.pageNumber + 1 > this.options.totalPages) { this.options.pageNumber = 1; - } else { + } else { this.options.pageNumber++; + } + this.updatePagination(event); + return false; } - this.updatePagination(event); - }; - - BootstrapTable.prototype.onPageLast = function (event) { - this.options.pageNumber = this.totalPages; - this.updatePagination(event); - }; - - BootstrapTable.prototype.onPageNumber = function (event) { - if (this.options.pageNumber === +$(event.currentTarget).text()) { + }, { + key: 'onPageNumber', + value: function onPageNumber(event) { + event.preventDefault(); + if (this.options.pageNumber === +$(event.currentTarget).text()) { return; + } + this.options.pageNumber = +$(event.currentTarget).text(); + this.updatePagination(event); + return false; } - this.options.pageNumber = +$(event.currentTarget).text(); - this.updatePagination(event); - }; + }, { + key: 'initRow', + value: function initRow(item, i, data, parentDom) { + var _this7 = this; - BootstrapTable.prototype.initBody = function (fixedScroll) { - var that = this, - html = [], - data = this.getData(); + var html = []; + var style = {}; + var csses = []; + var data_ = ''; + var attributes = {}; + var htmlAttributes = []; - this.trigger('pre-body', data); + if (Utils.findIndex(this.hiddenRows, item) > -1) { + return; + } - this.$body = this.$el.find('>tbody'); - if (!this.$body.length) { + style = Utils.calculateObjectValue(this.options, this.options.rowStyle, [item, i], style); + + if (style && style.css) { + var _iteratorNormalCompletion10 = true; + var _didIteratorError10 = false; + var _iteratorError10 = undefined; + + try { + for (var _iterator10 = Object.entries(style.css)[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { + var _ref10 = _step10.value; + + var _ref11 = _slicedToArray(_ref10, 2); + + var key = _ref11[0]; + var value = _ref11[1]; + + csses.push(key + ': ' + value); + } + } catch (err) { + _didIteratorError10 = true; + _iteratorError10 = err; + } finally { + try { + if (!_iteratorNormalCompletion10 && _iterator10.return) { + _iterator10.return(); + } + } finally { + if (_didIteratorError10) { + throw _iteratorError10; + } + } + } + } + + attributes = Utils.calculateObjectValue(this.options, this.options.rowAttributes, [item, i], attributes); + + if (attributes) { + var _iteratorNormalCompletion11 = true; + var _didIteratorError11 = false; + var _iteratorError11 = undefined; + + try { + for (var _iterator11 = Object.entries(attributes)[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) { + var _ref12 = _step11.value; + + var _ref13 = _slicedToArray(_ref12, 2); + + var _key2 = _ref13[0]; + var _value2 = _ref13[1]; + + htmlAttributes.push(_key2 + '="' + Utils.escapeHTML(_value2) + '"'); + } + } catch (err) { + _didIteratorError11 = true; + _iteratorError11 = err; + } finally { + try { + if (!_iteratorNormalCompletion11 && _iterator11.return) { + _iterator11.return(); + } + } finally { + if (_didIteratorError11) { + throw _iteratorError11; + } + } + } + } + + if (item._data && !$.isEmptyObject(item._data)) { + var _iteratorNormalCompletion12 = true; + var _didIteratorError12 = false; + var _iteratorError12 = undefined; + + try { + for (var _iterator12 = Object.entries(item._data)[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) { + var _ref14 = _step12.value; + + var _ref15 = _slicedToArray(_ref14, 2); + + var k = _ref15[0]; + var v = _ref15[1]; + + // ignore data-index + if (k === 'index') { + return; + } + data_ += ' data-' + k + '="' + v + '"'; + } + } catch (err) { + _didIteratorError12 = true; + _iteratorError12 = err; + } finally { + try { + if (!_iteratorNormalCompletion12 && _iterator12.return) { + _iterator12.return(); + } + } finally { + if (_didIteratorError12) { + throw _iteratorError12; + } + } + } + } + + html.push(''); + + if (this.options.cardView) { + html.push('
    '); + } + + if (!this.options.cardView && this.options.detailView) { + html.push(''); + + if (Utils.calculateObjectValue(null, this.options.detailFilter, [i, item])) { + html.push('\n \n \n \n '); + } + + html.push(''); + } + + this.header.fields.forEach(function (field, j) { + var text = ''; + var value_ = Utils.getItemField(item, field, _this7.options.escape); + var value = ''; + var type = ''; + var cellStyle = {}; + var id_ = ''; + var class_ = _this7.header.classes[j]; + var style_ = ''; + var data_ = ''; + var rowspan_ = ''; + var colspan_ = ''; + var title_ = ''; + var column = _this7.columns[j]; + + if (_this7.fromHtml && typeof value_ === 'undefined') { + if (!column.checkbox && !column.radio) { + return; + } + } + + if (!column.visible) { + return; + } + + if (_this7.options.cardView && !column.cardVisible) { + return; + } + + if (column.escape) { + value_ = Utils.escapeHTML(value_); + } + + if (csses.concat([_this7.header.styles[j]]).length) { + style_ = ' style="' + csses.concat([_this7.header.styles[j]]).join('; ') + '"'; + } + // handle td's id and class + if (item['_' + field + '_id']) { + id_ = Utils.sprintf(' id="%s"', item['_' + field + '_id']); + } + if (item['_' + field + '_class']) { + class_ = Utils.sprintf(' class="%s"', item['_' + field + '_class']); + } + if (item['_' + field + '_rowspan']) { + rowspan_ = Utils.sprintf(' rowspan="%s"', item['_' + field + '_rowspan']); + } + if (item['_' + field + '_colspan']) { + colspan_ = Utils.sprintf(' colspan="%s"', item['_' + field + '_colspan']); + } + if (item['_' + field + '_title']) { + title_ = Utils.sprintf(' title="%s"', item['_' + field + '_title']); + } + cellStyle = Utils.calculateObjectValue(_this7.header, _this7.header.cellStyles[j], [value_, item, i, field], cellStyle); + if (cellStyle.classes) { + class_ = ' class="' + cellStyle.classes + '"'; + } + if (cellStyle.css) { + var csses_ = []; + var _iteratorNormalCompletion13 = true; + var _didIteratorError13 = false; + var _iteratorError13 = undefined; + + try { + for (var _iterator13 = Object.entries(cellStyle.css)[Symbol.iterator](), _step13; !(_iteratorNormalCompletion13 = (_step13 = _iterator13.next()).done); _iteratorNormalCompletion13 = true) { + var _ref16 = _step13.value; + + var _ref17 = _slicedToArray(_ref16, 2); + + var _key3 = _ref17[0]; + var _value3 = _ref17[1]; + + csses_.push(_key3 + ': ' + _value3); + } + } catch (err) { + _didIteratorError13 = true; + _iteratorError13 = err; + } finally { + try { + if (!_iteratorNormalCompletion13 && _iterator13.return) { + _iterator13.return(); + } + } finally { + if (_didIteratorError13) { + throw _iteratorError13; + } + } + } + + style_ = ' style="' + csses_.concat(_this7.header.styles[j]).join('; ') + '"'; + } + + value = Utils.calculateObjectValue(column, _this7.header.formatters[j], [value_, item, i, field], value_); + + if (item['_' + field + '_data'] && !$.isEmptyObject(item['_' + field + '_data'])) { + var _iteratorNormalCompletion14 = true; + var _didIteratorError14 = false; + var _iteratorError14 = undefined; + + try { + for (var _iterator14 = Object.entries(item['_' + field + '_data'])[Symbol.iterator](), _step14; !(_iteratorNormalCompletion14 = (_step14 = _iterator14.next()).done); _iteratorNormalCompletion14 = true) { + var _ref18 = _step14.value; + + var _ref19 = _slicedToArray(_ref18, 2); + + var _k2 = _ref19[0]; + var _v = _ref19[1]; + + // ignore data-index + if (_k2 === 'index') { + return; + } + data_ += ' data-' + _k2 + '="' + _v + '"'; + } + } catch (err) { + _didIteratorError14 = true; + _iteratorError14 = err; + } finally { + try { + if (!_iteratorNormalCompletion14 && _iterator14.return) { + _iterator14.return(); + } + } finally { + if (_didIteratorError14) { + throw _iteratorError14; + } + } + } + } + + if (column.checkbox || column.radio) { + type = column.checkbox ? 'checkbox' : type; + type = column.radio ? 'radio' : type; + + var c = column['class'] || ''; + var isChecked = value === true || value_ || value && value.checked; + var isDisabled = !column.checkboxEnabled || value && value.disabled; + + text = [_this7.options.cardView ? '
    ' : '', '', _this7.header.formatters[j] && typeof value === 'string' ? value : '', _this7.options.cardView ? '
    ' : ''].join(''); + + item[_this7.header.stateField] = value === true || !!value_ || value && value.checked; + } else { + value = typeof value === 'undefined' || value === null ? _this7.options.undefinedText : value; + + if (_this7.options.cardView) { + var cardTitle = _this7.options.showHeader ? '' + Utils.getFieldTitle(_this7.columns, field) + '' : ''; + + text = '
    ' + cardTitle + '' + value + '
    '; + + if (_this7.options.smartDisplay && value === '') { + text = '
    '; + } + } else { + text = '' + value + ''; + } + } + + html.push(text); + }); + + if (this.options.cardView) { + html.push('
    '); + } + html.push(''); + + return html.join(''); + } + }, { + key: 'initBody', + value: function initBody(fixedScroll) { + var _this8 = this; + + var data = this.getData(); + + this.trigger('pre-body', data); + + this.$body = this.$el.find('>tbody'); + if (!this.$body.length) { this.$body = $('').appendTo(this.$el); - } + } - //Fix #389 Bootstrap-table-flatJSON is not working - - if (!this.options.pagination || this.options.sidePagination === 'server') { + // Fix #389 Bootstrap-table-flatJSON is not working + if (!this.options.pagination || this.options.sidePagination === 'server') { this.pageFrom = 1; this.pageTo = data.length; - } + } - for (var i = this.pageFrom - 1; i < this.pageTo; i++) { - var key, - item = data[i], - style = {}, - csses = [], - data_ = '', - attributes = {}, - htmlAttributes = []; + var trFragments = $(document.createDocumentFragment()); + var hasTr = false; - style = calculateObjectValue(this.options, this.options.rowStyle, [item, i], style); - - if (style && style.css) { - for (key in style.css) { - csses.push(key + ': ' + style.css[key]); - } + for (var i = this.pageFrom - 1; i < this.pageTo; i++) { + var item = data[i]; + var tr = this.initRow(item, i, data, trFragments); + hasTr = hasTr || !!tr; + if (tr && typeof tr === 'string') { + trFragments.append(tr); } + } - attributes = calculateObjectValue(this.options, - this.options.rowAttributes, [item, i], attributes); + // show no records + if (!hasTr) { + this.$body.html('' + Utils.sprintf('%s', this.$header.find('th').length, this.options.formatNoMatches()) + ''); + } else { + this.$body.html(trFragments); + } - if (attributes) { - for (key in attributes) { - htmlAttributes.push(sprintf('%s="%s"', key, escapeHTML(attributes[key]))); - } - } - - if (item._data && !$.isEmptyObject(item._data)) { - $.each(item._data, function (k, v) { - // ignore data-index - if (k === 'index') { - return; - } - data_ += sprintf(' data-%s="%s"', k, v); - }); - } - - html.push('' - ); - - if (this.options.cardView) { - html.push(sprintf('
    ', this.header.fields.length)); - } - - if (!this.options.cardView && this.options.detailView) { - html.push('', - '', - sprintf('', this.options.iconsPrefix, this.options.icons.detailOpen), - '', - ''); - } - - $.each(this.header.fields, function (j, field) { - var text = '', - value = getItemField(item, field, that.options.escape), - type = '', - cellStyle = {}, - id_ = '', - class_ = that.header.classes[j], - data_ = '', - rowspan_ = '', - colspan_ = '', - title_ = '', - column = that.columns[j]; - - if (that.fromHtml && typeof value === 'undefined') { - return; - } - - if (!column.visible) { - return; - } - - if (that.options.cardView && !column.cardVisible) { - return; - } - - style = sprintf('style="%s"', csses.concat(that.header.styles[j]).join('; ')); - - // handle td's id and class - if (item['_' + field + '_id']) { - id_ = sprintf(' id="%s"', item['_' + field + '_id']); - } - if (item['_' + field + '_class']) { - class_ = sprintf(' class="%s"', item['_' + field + '_class']); - } - if (item['_' + field + '_rowspan']) { - rowspan_ = sprintf(' rowspan="%s"', item['_' + field + '_rowspan']); - } - if (item['_' + field + '_colspan']) { - colspan_ = sprintf(' colspan="%s"', item['_' + field + '_colspan']); - } - if (item['_' + field + '_title']) { - title_ = sprintf(' title="%s"', item['_' + field + '_title']); - } - cellStyle = calculateObjectValue(that.header, - that.header.cellStyles[j], [value, item, i, field], cellStyle); - if (cellStyle.classes) { - class_ = sprintf(' class="%s"', cellStyle.classes); - } - if (cellStyle.css) { - var csses_ = []; - for (var key in cellStyle.css) { - csses_.push(key + ': ' + cellStyle.css[key]); - } - style = sprintf('style="%s"', csses_.concat(that.header.styles[j]).join('; ')); - } - - value = calculateObjectValue(column, - that.header.formatters[j], [value, item, i], value); - - if (item['_' + field + '_data'] && !$.isEmptyObject(item['_' + field + '_data'])) { - $.each(item['_' + field + '_data'], function (k, v) { - // ignore data-index - if (k === 'index') { - return; - } - data_ += sprintf(' data-%s="%s"', k, v); - }); - } - - if (column.checkbox || column.radio) { - type = column.checkbox ? 'checkbox' : type; - type = column.radio ? 'radio' : type; - - text = [sprintf(that.options.cardView ? - '
    ' : '', column['class'] || ''), - '', - that.header.formatters[j] && typeof value === 'string' ? value : '', - that.options.cardView ? '
    ' : '' - ].join(''); - - item[that.header.stateField] = value === true || (value && value.checked); - } else { - value = typeof value === 'undefined' || value === null ? - that.options.undefinedText : value; - - text = that.options.cardView ? ['
    ', - that.options.showHeader ? sprintf('%s', style, - getPropertyFromOther(that.columns, 'field', 'title', field)) : '', - sprintf('%s', value), - '
    ' - ].join('') : [sprintf('', - id_, class_, style, data_, rowspan_, colspan_, title_), - value, - '' - ].join(''); - - // Hide empty data on Card view when smartDisplay is set to true. - if (that.options.cardView && that.options.smartDisplay && value === '') { - // Should set a placeholder for event binding correct fieldIndex - text = '
    '; - } - } - - html.push(text); - }); - - if (this.options.cardView) { - html.push('
    '); - } - - html.push(''); - } - - // show no records - if (!html.length) { - html.push('', - sprintf('%s', - this.$header.find('th').length, this.options.formatNoMatches()), - ''); - } - - this.$body.html(html.join('')); - - if (!fixedScroll) { + if (!fixedScroll) { this.scrollTo(0); - } + } - // click to select by column - this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', function (e) { - var $td = $(this), - $tr = $td.parent(), - item = that.data[$tr.data('index')], - index = $td[0].cellIndex, - fields = that.getVisibleFields(), - field = fields[that.options.detailView && !that.options.cardView ? index - 1 : index], - column = that.columns[getFieldIndex(that.columns, field)], - value = getItemField(item, field, that.options.escape); + // click to select by column + this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', function (_ref20) { + var currentTarget = _ref20.currentTarget, + type = _ref20.type, + target = _ref20.target; + + var $td = $(currentTarget); + var $tr = $td.parent(); + var item = _this8.data[$tr.data('index')]; + var index = $td[0].cellIndex; + var fields = _this8.getVisibleFields(); + var field = fields[_this8.options.detailView && !_this8.options.cardView ? index - 1 : index]; + var column = _this8.columns[_this8.fieldsColumnsIndex[field]]; + var value = Utils.getItemField(item, field, _this8.options.escape); if ($td.find('.detail-icon').length) { - return; + return; } - that.trigger(e.type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td); - that.trigger(e.type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr, field); + _this8.trigger(type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td); + _this8.trigger(type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr, field); // if click to select - then trigger the checkbox/radio click - if (e.type === 'click' && that.options.clickToSelect && column.clickToSelect) { - var $selectItem = $tr.find(sprintf('[name="%s"]', that.options.selectItemName)); - if ($selectItem.length) { - $selectItem[0].click(); // #144: .trigger('click') bug - } + if (type === 'click' && _this8.options.clickToSelect && column.clickToSelect && !_this8.options.ignoreClickToSelectOn(target)) { + var $selectItem = $tr.find(Utils.sprintf('[name="%s"]', _this8.options.selectItemName)); + if ($selectItem.length) { + $selectItem[0].click(); // #144: .trigger('click') bug + } } - }); + }); - this.$body.find('> tr[data-index] > td > .detail-icon').off('click').on('click', function () { - var $this = $(this), - $tr = $this.parent().parent(), - index = $tr.data('index'), - row = data[index]; // Fix #980 Detail view, when searching, returns wrong row + this.$body.find('> tr[data-index] > td > .detail-icon').off('click').on('click', function (e) { + e.preventDefault(); + + var $this = $(e.currentTarget); // Fix #980 Detail view, when searching, returns wrong row + var $tr = $this.parent().parent(); + var index = $tr.data('index'); + var row = data[index]; // remove and update if ($tr.next().is('tr.detail-view')) { - $this.find('i').attr('class', sprintf('%s %s', that.options.iconsPrefix, that.options.icons.detailOpen)); - $tr.next().remove(); - that.trigger('collapse-row', index, row); + $this.find('i').attr('class', Utils.sprintf('%s %s', _this8.options.iconsPrefix, _this8.options.icons.detailOpen)); + _this8.trigger('collapse-row', index, row, $tr.next()); + $tr.next().remove(); } else { - $this.find('i').attr('class', sprintf('%s %s', that.options.iconsPrefix, that.options.icons.detailClose)); - $tr.after(sprintf('', $tr.find('td').length)); - var $element = $tr.next().find('td'); - var content = calculateObjectValue(that.options, that.options.detailFormatter, [index, row, $element], ''); - if($element.length === 1) { - $element.append(content); - } - that.trigger('expand-row', index, row, $element); + $this.find('i').attr('class', Utils.sprintf('%s %s', _this8.options.iconsPrefix, _this8.options.icons.detailClose)); + $tr.after(Utils.sprintf('', $tr.find('td').length)); + var $element = $tr.next().find('td'); + var content = Utils.calculateObjectValue(_this8.options, _this8.options.detailFormatter, [index, row, $element], ''); + if ($element.length === 1) { + $element.append(content); + } + _this8.trigger('expand-row', index, row, $element); } - that.resetView(); - }); + _this8.resetView(); + return false; + }); - this.$selectItem = this.$body.find(sprintf('[name="%s"]', this.options.selectItemName)); - this.$selectItem.off('click').on('click', function (event) { - event.stopImmediatePropagation(); + this.$selectItem = this.$body.find(Utils.sprintf('[name="%s"]', this.options.selectItemName)); + this.$selectItem.off('click').on('click', function (e) { + e.stopImmediatePropagation(); - var $this = $(this), - checked = $this.prop('checked'), - row = that.data[$this.data('index')]; + var $this = $(e.currentTarget); + _this8.check_($this.prop('checked'), $this.data('index')); + }); - if (that.options.maintainSelected && $(this).is(':radio')) { - $.each(that.options.data, function (i, row) { - row[that.header.stateField] = false; - }); - } - - row[that.header.stateField] = checked; - - if (that.options.singleSelect) { - that.$selectItem.not(this).each(function () { - that.data[$(this).data('index')][that.header.stateField] = false; - }); - that.$selectItem.filter(':checked').not(this).prop('checked', false); - } - - that.updateSelected(); - that.trigger(checked ? 'check' : 'uncheck', row, $this); - }); - - $.each(this.header.events, function (i, events) { + this.header.events.forEach(function (_events, i) { + var events = _events; if (!events) { - return; + return; } // fix bug, if events is defined with namespace if (typeof events === 'string') { - events = calculateObjectValue(null, events); + events = Utils.calculateObjectValue(null, events); } - var field = that.header.fields[i], - fieldIndex = $.inArray(field, that.getVisibleFields()); + var field = _this8.header.fields[i]; + var fieldIndex = _this8.getVisibleFields().indexOf(field); - if (that.options.detailView && !that.options.cardView) { - fieldIndex += 1; + if (fieldIndex === -1) { + return; } - for (var key in events) { - that.$body.find('>tr:not(.no-records-found)').each(function () { - var $tr = $(this), - $td = $tr.find(that.options.cardView ? '.card-view' : 'td').eq(fieldIndex), - index = key.indexOf(' '), - name = key.substring(0, index), - el = key.substring(index + 1), - func = events[key]; + if (_this8.options.detailView && !_this8.options.cardView) { + fieldIndex += 1; + } - $td.find(el).off(name).on(name, function (e) { - var index = $tr.data('index'), - row = that.data[index], - value = row[field]; + var _loop = function _loop(key, event) { + _this8.$body.find('>tr:not(.no-records-found)').each(function (i, tr) { + var $tr = $(tr); + var $td = $tr.find(_this8.options.cardView ? '.card-view' : 'td').eq(fieldIndex); + var index = key.indexOf(' '); + var name = key.substring(0, index); + var el = key.substring(index + 1); - func.apply(this, [e, value, row, index]); - }); + $td.find(el).off(name).on(name, function (e) { + var index = $tr.data('index'); + var row = _this8.data[index]; + var value = row[field]; + + event.apply(_this8, [e, value, row, index]); }); - } - }); - - this.updateSelected(); - this.resetView(); - - this.trigger('post-body', data); - }; - - BootstrapTable.prototype.initServer = function (silent, query, url) { - var that = this, - data = {}, - params = { - searchText: this.searchText, - sortName: this.options.sortName, - sortOrder: this.options.sortOrder - }, - request; - - if (this.options.pagination) { - params.pageSize = this.options.pageSize === this.options.formatAllRows() ? - this.options.totalRows : this.options.pageSize; - params.pageNumber = this.options.pageNumber; - } - - if (!(url || this.options.url) && !this.options.ajax) { - return; - } - - if (this.options.queryParamsType === 'limit') { - params = { - search: params.searchText, - sort: params.sortName, - order: params.sortOrder + }); }; - if (this.options.pagination) { - params.offset = this.options.pageSize === this.options.formatAllRows() ? - 0 : this.options.pageSize * (this.options.pageNumber - 1); - params.limit = this.options.pageSize === this.options.formatAllRows() ? - this.options.totalRows : this.options.pageSize; + var _iteratorNormalCompletion15 = true; + var _didIteratorError15 = false; + var _iteratorError15 = undefined; + + try { + for (var _iterator15 = Object.entries(events)[Symbol.iterator](), _step15; !(_iteratorNormalCompletion15 = (_step15 = _iterator15.next()).done); _iteratorNormalCompletion15 = true) { + var _ref21 = _step15.value; + + var _ref22 = _slicedToArray(_ref21, 2); + + var key = _ref22[0]; + var event = _ref22[1]; + + _loop(key, event); + } + } catch (err) { + _didIteratorError15 = true; + _iteratorError15 = err; + } finally { + try { + if (!_iteratorNormalCompletion15 && _iterator15.return) { + _iterator15.return(); + } + } finally { + if (_didIteratorError15) { + throw _iteratorError15; + } + } } + }); + + this.updateSelected(); + this.resetView(); + + this.trigger('post-body', data); } + }, { + key: 'initServer', + value: function initServer(silent, query, url) { + var _this9 = this; - if (!($.isEmptyObject(this.filterColumnsPartial))) { - params.filter = JSON.stringify(this.filterColumnsPartial, null); - } + var data = {}; + var index = this.header.fields.indexOf(this.options.sortName); - data = calculateObjectValue(this.options, this.options.queryParams, [params], data); + var params = { + searchText: this.searchText, + sortName: this.options.sortName, + sortOrder: this.options.sortOrder + }; - $.extend(data, query || {}); + if (this.header.sortNames[index]) { + params.sortName = this.header.sortNames[index]; + } - // false to stop request - if (data === false) { + if (this.options.pagination && this.options.sidePagination === 'server') { + params.pageSize = this.options.pageSize === this.options.formatAllRows() ? this.options.totalRows : this.options.pageSize; + params.pageNumber = this.options.pageNumber; + } + + if (!(url || this.options.url) && !this.options.ajax) { return; - } + } - if (!silent) { + if (this.options.queryParamsType === 'limit') { + params = { + search: params.searchText, + sort: params.sortName, + order: params.sortOrder + }; + + if (this.options.pagination && this.options.sidePagination === 'server') { + params.offset = this.options.pageSize === this.options.formatAllRows() ? 0 : this.options.pageSize * (this.options.pageNumber - 1); + params.limit = this.options.pageSize === this.options.formatAllRows() ? this.options.totalRows : this.options.pageSize; + if (params.limit === 0) { + delete params.limit; + } + } + } + + if (!$.isEmptyObject(this.filterColumnsPartial)) { + params.filter = JSON.stringify(this.filterColumnsPartial, null); + } + + data = Utils.calculateObjectValue(this.options, this.options.queryParams, [params], data); + + $.extend(data, query || {}); + + // false to stop request + if (data === false) { + return; + } + + if (!silent) { this.$tableLoading.show(); - } - request = $.extend({}, calculateObjectValue(null, this.options.ajaxOptions), { + } + var request = $.extend({}, Utils.calculateObjectValue(null, this.options.ajaxOptions), { type: this.options.method, - url: url || this.options.url, - data: this.options.contentType === 'application/json' && this.options.method === 'post' ? - JSON.stringify(data) : data, + url: url || this.options.url, + data: this.options.contentType === 'application/json' && this.options.method === 'post' ? JSON.stringify(data) : data, cache: this.options.cache, contentType: this.options.contentType, dataType: this.options.dataType, - success: function (res) { - res = calculateObjectValue(that.options, that.options.responseHandler, [res], res); + success: function success(_res) { + var res = Utils.calculateObjectValue(_this9.options, _this9.options.responseHandler, [_res], _res); - that.load(res); - that.trigger('load-success', res); - if (!silent) that.$tableLoading.hide(); + _this9.load(res); + _this9.trigger('load-success', res); + if (!silent) { + _this9.$tableLoading.hide(); + } }, - error: function (res) { - that.trigger('load-error', res.status, res); - if (!silent) that.$tableLoading.hide(); + error: function error(jqXHR) { + var data = []; + if (_this9.options.sidePagination === 'server') { + data = {}; + data[_this9.options.totalField] = 0; + data[_this9.options.dataField] = []; + } + _this9.load(data); + _this9.trigger('load-error', jqXHR.status, jqXHR); + if (!silent) _this9.$tableLoading.hide(); } - }); + }); - if (this.options.ajax) { - calculateObjectValue(this, this.options.ajax, [request], null); - } else { + if (this.options.ajax) { + Utils.calculateObjectValue(this, this.options.ajax, [request], null); + } else { if (this._xhr && this._xhr.readyState !== 4) { - this._xhr.abort(); + this._xhr.abort(); } this._xhr = $.ajax(request); + } } - }; - - BootstrapTable.prototype.initSearchText = function () { - if (this.options.search) { + }, { + key: 'initSearchText', + value: function initSearchText() { + if (this.options.search) { + this.searchText = ''; if (this.options.searchText !== '') { - var $search = this.$toolbar.find('.search input'); - $search.val(this.options.searchText); - this.onSearch({currentTarget: $search}); + var $search = this.$toolbar.find('.search input'); + $search.val(this.options.searchText); + this.onSearch({ currentTarget: $search, firedByInitSearchText: true }); } + } } - }; + }, { + key: 'getCaret', + value: function getCaret() { + var _this10 = this; - BootstrapTable.prototype.getCaret = function () { - var that = this; + this.$header.find('th').each(function (i, th) { + $(th).find('.sortable').removeClass('desc asc').addClass($(th).data('field') === _this10.options.sortName ? _this10.options.sortOrder : 'both'); + }); + } + }, { + key: 'updateSelected', + value: function updateSelected() { + var checkAll = this.$selectItem.filter(':enabled').length && this.$selectItem.filter(':enabled').length === this.$selectItem.filter(':enabled').filter(':checked').length; - $.each(this.$header.find('th'), function (i, th) { - $(th).find('.sortable').removeClass('desc asc').addClass($(th).data('field') === that.options.sortName ? that.options.sortOrder : 'both'); - }); - }; + this.$selectAll.add(this.$selectAll_).prop('checked', checkAll); - BootstrapTable.prototype.updateSelected = function () { - var checkAll = this.$selectItem.filter(':enabled').length && - this.$selectItem.filter(':enabled').length === - this.$selectItem.filter(':enabled').filter(':checked').length; + this.$selectItem.each(function (i, el) { + $(el).closest('tr')[$(el).prop('checked') ? 'addClass' : 'removeClass']('selected'); + }); + } + }, { + key: 'updateRows', + value: function updateRows() { + var _this11 = this; - this.$selectAll.add(this.$selectAll_).prop('checked', checkAll); + this.$selectItem.each(function (i, el) { + _this11.data[$(el).data('index')][_this11.header.stateField] = $(el).prop('checked'); + }); + } + }, { + key: 'resetRows', + value: function resetRows() { + var _iteratorNormalCompletion16 = true; + var _didIteratorError16 = false; + var _iteratorError16 = undefined; - this.$selectItem.each(function () { - $(this).closest('tr')[$(this).prop('checked') ? 'addClass' : 'removeClass']('selected'); - }); - }; + try { + for (var _iterator16 = this.data[Symbol.iterator](), _step16; !(_iteratorNormalCompletion16 = (_step16 = _iterator16.next()).done); _iteratorNormalCompletion16 = true) { + var row = _step16.value; - BootstrapTable.prototype.updateRows = function () { - var that = this; - - this.$selectItem.each(function () { - that.data[$(this).data('index')][that.header.stateField] = $(this).prop('checked'); - }); - }; - - BootstrapTable.prototype.resetRows = function () { - var that = this; - - $.each(this.data, function (i, row) { - that.$selectAll.prop('checked', false); - that.$selectItem.prop('checked', false); - if (that.header.stateField) { - row[that.header.stateField] = false; + this.$selectAll.prop('checked', false); + this.$selectItem.prop('checked', false); + if (this.header.stateField) { + row[this.header.stateField] = false; + } } - }); - }; + } catch (err) { + _didIteratorError16 = true; + _iteratorError16 = err; + } finally { + try { + if (!_iteratorNormalCompletion16 && _iterator16.return) { + _iterator16.return(); + } + } finally { + if (_didIteratorError16) { + throw _iteratorError16; + } + } + } - BootstrapTable.prototype.trigger = function (name) { - var args = Array.prototype.slice.call(arguments, 1); + this.initHiddenRows(); + } + }, { + key: 'trigger', + value: function trigger(_name) { + var _options; - name += '.bs.table'; - this.options[BootstrapTable.EVENTS[name]].apply(this.options, args); - this.$el.trigger($.Event(name), args); + var name = _name + '.bs.table'; - this.options.onAll(name, args); - this.$el.trigger($.Event('all.bs.table'), [name, args]); - }; + for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key4 = 1; _key4 < _len2; _key4++) { + args[_key4 - 1] = arguments[_key4]; + } - BootstrapTable.prototype.resetHeader = function () { - // fix #61: the hidden table reset header bug. - // fix bug: get $el.css('width') error sometime (height = 500) - clearTimeout(this.timeoutId_); - this.timeoutId_ = setTimeout($.proxy(this.fitHeader, this), this.$el.is(':hidden') ? 100 : 0); - }; + (_options = this.options)[BootstrapTable.EVENTS[name]].apply(_options, args); + this.$el.trigger($.Event(name), args); - BootstrapTable.prototype.fitHeader = function () { - var that = this, - fixedBody, - scrollWidth, - focused, - focusedTemp; + this.options.onAll(name, args); + this.$el.trigger($.Event('all.bs.table'), [name, args]); + } + }, { + key: 'resetHeader', + value: function resetHeader() { + // fix #61: the hidden table reset header bug. + // fix bug: get $el.css('width') error sometime (height = 500) + clearTimeout(this.timeoutId_); + this.timeoutId_ = setTimeout($.proxy(this.fitHeader, this), this.$el.is(':hidden') ? 100 : 0); + } + }, { + key: 'fitHeader', + value: function fitHeader() { + var _this12 = this; - if (that.$el.is(':hidden')) { - that.timeoutId_ = setTimeout($.proxy(that.fitHeader, that), 100); + if (this.$el.is(':hidden')) { + this.timeoutId_ = setTimeout($.proxy(this.fitHeader, this), 100); return; - } - fixedBody = this.$tableBody.get(0); + } + var fixedBody = this.$tableBody.get(0); - scrollWidth = fixedBody.scrollWidth > fixedBody.clientWidth && - fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? - getScrollBarWidth() : 0; + var scrollWidth = fixedBody.scrollWidth > fixedBody.clientWidth && fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? Utils.getScrollBarWidth() : 0; - this.$el.css('margin-top', -this.$header.outerHeight()); + this.$el.css('margin-top', -this.$header.outerHeight()); - focused = $(':focus'); - if (focused.length > 0) { + var focused = $(':focus'); + if (focused.length > 0) { var $th = focused.parents('th'); if ($th.length > 0) { - var dataField = $th.attr('data-field'); - if (dataField !== undefined) { - var $headerTh = this.$header.find("[data-field='" + dataField + "']"); - if ($headerTh.length > 0) { - $headerTh.find(":input").addClass("focus-temp"); - } + var dataField = $th.attr('data-field'); + if (dataField !== undefined) { + var $headerTh = this.$header.find('[data-field=\'' + dataField + '\']'); + if ($headerTh.length > 0) { + $headerTh.find(':input').addClass('focus-temp'); } + } } - } + } - this.$header_ = this.$header.clone(true, true); - this.$selectAll_ = this.$header_.find('[name="btSelectAll"]'); - this.$tableHeader.css({ + this.$header_ = this.$header.clone(true, true); + this.$selectAll_ = this.$header_.find('[name="btSelectAll"]'); + this.$tableHeader.css({ 'margin-right': scrollWidth - }).find('table').css('width', this.$el.outerWidth()) - .html('').attr('class', this.$el.attr('class')) - .append(this.$header_); + }).find('table').css('width', this.$el.outerWidth()).html('').attr('class', this.$el.attr('class')).append(this.$header_); - - focusedTemp = $('.focus-temp:visible:eq(0)'); - if (focusedTemp.length > 0) { + var focusedTemp = $('.focus-temp:visible:eq(0)'); + if (focusedTemp.length > 0) { focusedTemp.focus(); this.$header.find('.focus-temp').removeClass('focus-temp'); - } + } - // fix bug: $.data() is not working as expected after $.append() - this.$header.find('th[data-field]').each(function (i) { - that.$header_.find(sprintf('th[data-field="%s"]', $(this).data('field'))).data($(this).data()); - }); + // fix bug: $.data() is not working as expected after $.append() + this.$header.find('th[data-field]').each(function (i, el) { + _this12.$header_.find(Utils.sprintf('th[data-field="%s"]', $(el).data('field'))).data($(el).data()); + }); - var visibleFields = this.getVisibleFields(), - $ths = this.$header_.find('th'); + var visibleFields = this.getVisibleFields(); + var $ths = this.$header_.find('th'); + var $tr = this.$body.find('>tr:first-child:not(.no-records-found)'); - this.$body.find('>tr:first-child:not(.no-records-found) > *').each(function (i) { - var $this = $(this), - index = i; + while ($tr.length && $tr.find('>td[colspan]:not([colspan="1"])').length) { + $tr = $tr.next(); + } - if (that.options.detailView && !that.options.cardView) { - if (i === 0) { - that.$header_.find('th.detail').find('.fht-cell').width($this.innerWidth()); - } - index = i - 1; + $tr.find('> *').each(function (i, el) { + var $this = $(el); + var index = i; + + if (_this12.options.detailView && !_this12.options.cardView) { + if (i === 0) { + var $thDetail = $ths.filter('.detail'); + var _zoomWidth = $thDetail.width() - $thDetail.find('.fht-cell').width(); + $thDetail.find('.fht-cell').width($this.innerWidth() - _zoomWidth); + } + index = i - 1; } - var $th = that.$header_.find(sprintf('th[data-field="%s"]', visibleFields[index])); + if (index === -1) { + return; + } + + var $th = _this12.$header_.find(Utils.sprintf('th[data-field="%s"]', visibleFields[index])); if ($th.length > 1) { - $th = $($ths[$this[0].cellIndex]); + $th = $($ths[$this[0].cellIndex]); } - $th.find('.fht-cell').width($this.innerWidth()); - }); - // horizontal scroll event - // TODO: it's probably better improving the layout than binding to scroll event - this.$tableBody.off('scroll').on('scroll', function () { - that.$tableHeader.scrollLeft($(this).scrollLeft()); + var zoomWidth = $th.width() - $th.find('.fht-cell').width(); + $th.find('.fht-cell').width($this.innerWidth() - zoomWidth); + }); - if (that.options.showFooter && !that.options.cardView) { - that.$tableFooter.scrollLeft($(this).scrollLeft()); - } - }); - that.trigger('post-header'); - }; + this.horizontalScroll(); + this.trigger('post-header'); + } + }, { + key: 'resetFooter', + value: function resetFooter() { + var data = this.getData(); + var html = []; - BootstrapTable.prototype.resetFooter = function () { - var that = this, - data = that.getData(), - html = []; - - if (!this.options.showFooter || this.options.cardView) { //do nothing + if (!this.options.showFooter || this.options.cardView) { + // do nothing return; - } + } - if (!this.options.cardView && this.options.detailView) { + if (!this.options.cardView && this.options.detailView) { html.push('
     
    '); - } + } - $.each(this.columns, function (i, column) { - var key, - falign = '', // footer align style - valign = '', - csses = [], - style = {}, - class_ = sprintf(' class="%s"', column['class']); + var _iteratorNormalCompletion17 = true; + var _didIteratorError17 = false; + var _iteratorError17 = undefined; - if (!column.visible) { + try { + for (var _iterator17 = this.columns[Symbol.iterator](), _step17; !(_iteratorNormalCompletion17 = (_step17 = _iterator17.next()).done); _iteratorNormalCompletion17 = true) { + var column = _step17.value; + + var falign = ''; + + var valign = ''; + var csses = []; + var style = {}; + var class_ = Utils.sprintf(' class="%s"', column['class']); + + if (!column.visible) { return; - } + } - if (that.options.cardView && (!column.cardVisible)) { + if (this.options.cardView && !column.cardVisible) { return; - } + } - falign = sprintf('text-align: %s; ', column.falign ? column.falign : column.align); - valign = sprintf('vertical-align: %s; ', column.valign); + falign = Utils.sprintf('text-align: %s; ', column.falign ? column.falign : column.align); + valign = Utils.sprintf('vertical-align: %s; ', column.valign); - style = calculateObjectValue(null, that.options.footerStyle); + style = Utils.calculateObjectValue(null, this.options.footerStyle); - if (style && style.css) { - for (key in style.css) { - csses.push(key + ': ' + style.css[key]); + if (style && style.css) { + var _iteratorNormalCompletion18 = true; + var _didIteratorError18 = false; + var _iteratorError18 = undefined; + + try { + for (var _iterator18 = Object.keys(style.css)[Symbol.iterator](), _step18; !(_iteratorNormalCompletion18 = (_step18 = _iterator18.next()).done); _iteratorNormalCompletion18 = true) { + var _ref23 = _step18.value; + + var _ref24 = _slicedToArray(_ref23, 2); + + var key = _ref24[0]; + var value = _ref24[1]; + + csses.push(key + ': ' + value); + } + } catch (err) { + _didIteratorError18 = true; + _iteratorError18 = err; + } finally { + try { + if (!_iteratorNormalCompletion18 && _iterator18.return) { + _iterator18.return(); + } + } finally { + if (_didIteratorError18) { + throw _iteratorError18; + } + } } + } + + html.push(''); + html.push('
    '); + + html.push(Utils.calculateObjectValue(column, column.footerFormatter, [data], ' ') || ' '); + + html.push('
    '); + html.push('
    '); + html.push(''); + html.push(''); } + } catch (err) { + _didIteratorError17 = true; + _iteratorError17 = err; + } finally { + try { + if (!_iteratorNormalCompletion17 && _iterator17.return) { + _iterator17.return(); + } + } finally { + if (_didIteratorError17) { + throw _iteratorError17; + } + } + } - html.push(''); - html.push('
    '); - - html.push(calculateObjectValue(column, column.footerFormatter, [data], ' ') || ' '); - - html.push('
    '); - html.push('
    '); - html.push(''); - html.push(''); - }); - - this.$tableFooter.find('tr').html(html.join('')); - this.$tableFooter.show(); - clearTimeout(this.timeoutFooter_); - this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this), - this.$el.is(':hidden') ? 100 : 0); - }; - - BootstrapTable.prototype.fitFooter = function () { - var that = this, - $footerTd, - elWidth, - scrollWidth; - - clearTimeout(this.timeoutFooter_); - if (this.$el.is(':hidden')) { + this.$tableFooter.find('tr').html(html.join('')); + this.$tableFooter.show(); + clearTimeout(this.timeoutFooter_); + this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this), this.$el.is(':hidden') ? 100 : 0); + } + }, { + key: 'fitFooter', + value: function fitFooter() { + clearTimeout(this.timeoutFooter_); + if (this.$el.is(':hidden')) { this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this), 100); return; - } + } - elWidth = this.$el.css('width'); - scrollWidth = elWidth > this.$tableBody.width() ? getScrollBarWidth() : 0; + var elWidth = this.$el.css('width'); + var scrollWidth = elWidth > this.$tableBody.width() ? Utils.getScrollBarWidth() : 0; - this.$tableFooter.css({ + this.$tableFooter.css({ 'margin-right': scrollWidth - }).find('table').css('width', elWidth) - .attr('class', this.$el.attr('class')); + }).find('table').css('width', elWidth).attr('class', this.$el.attr('class')); - $footerTd = this.$tableFooter.find('td'); + var $footerTd = this.$tableFooter.find('td'); - this.$body.find('>tr:first-child:not(.no-records-found) > *').each(function (i) { - var $this = $(this); + this.$body.find('>tr:first-child:not(.no-records-found) > *').each(function (i, el) { + var $this = $(el); $footerTd.eq(i).find('.fht-cell').width($this.innerWidth()); - }); - }; + }); - BootstrapTable.prototype.toggleColumn = function (index, checked, needUpdate) { - if (index === -1) { - return; + this.horizontalScroll(); } - this.columns[index].visible = checked; - this.initHeader(); - this.initSearch(); - this.initPagination(); - this.initBody(); + }, { + key: 'horizontalScroll', + value: function horizontalScroll() { + var _this13 = this; - if (this.options.showColumns) { + // horizontal scroll event + // TODO: it's probably better improving the layout than binding to scroll event + + this.trigger('scroll-body'); + this.$tableBody.off('scroll').on('scroll', function (_ref25) { + var currentTarget = _ref25.currentTarget; + + if (_this13.options.showHeader && _this13.options.height) { + _this13.$tableHeader.scrollLeft($(currentTarget).scrollLeft()); + } + + if (_this13.options.showFooter && !_this13.options.cardView) { + _this13.$tableFooter.scrollLeft($(currentTarget).scrollLeft()); + } + }); + } + }, { + key: 'toggleColumn', + value: function toggleColumn(index, checked, needUpdate) { + if (index === -1) { + return; + } + this.columns[index].visible = checked; + this.initHeader(); + this.initSearch(); + this.initPagination(); + this.initBody(); + + if (this.options.showColumns) { var $items = this.$toolbar.find('.keep-open input').prop('disabled', false); if (needUpdate) { - $items.filter(sprintf('[value="%s"]', index)).prop('checked', checked); + $items.filter(Utils.sprintf('[value="%s"]', index)).prop('checked', checked); } if ($items.filter(':checked').length <= this.options.minimumCountColumns) { - $items.filter(':checked').prop('disabled', true); + $items.filter(':checked').prop('disabled', true); } + } } - }; + }, { + key: 'getVisibleFields', + value: function getVisibleFields() { + var visibleFields = []; - BootstrapTable.prototype.toggleRow = function (index, uniqueId, visible) { - if (index === -1) { - return; - } + var _iteratorNormalCompletion19 = true; + var _didIteratorError19 = false; + var _iteratorError19 = undefined; - this.$body.find(typeof index !== 'undefined' ? - sprintf('tr[data-index="%s"]', index) : - sprintf('tr[data-uniqueid="%s"]', uniqueId)) - [visible ? 'show' : 'hide'](); - }; + try { + for (var _iterator19 = this.header.fields[Symbol.iterator](), _step19; !(_iteratorNormalCompletion19 = (_step19 = _iterator19.next()).done); _iteratorNormalCompletion19 = true) { + var field = _step19.value; - BootstrapTable.prototype.getVisibleFields = function () { - var that = this, - visibleFields = []; + var column = this.columns[this.fieldsColumnsIndex[field]]; - $.each(this.header.fields, function (j, field) { - var column = that.columns[getFieldIndex(that.columns, field)]; - - if (!column.visible) { - return; + if (!column.visible) { + continue; + } + visibleFields.push(field); } - visibleFields.push(field); - }); - return visibleFields; - }; + } catch (err) { + _didIteratorError19 = true; + _iteratorError19 = err; + } finally { + try { + if (!_iteratorNormalCompletion19 && _iterator19.return) { + _iterator19.return(); + } + } finally { + if (_didIteratorError19) { + throw _iteratorError19; + } + } + } - // PUBLIC FUNCTION DEFINITION - // ======================= + return visibleFields; + } + }, { + key: 'resetView', + value: function resetView(params) { + var padding = 0; - BootstrapTable.prototype.resetView = function (params) { - var padding = 0; - - if (params && params.height) { + if (params && params.height) { this.options.height = params.height; - } + } - this.$selectAll.prop('checked', this.$selectItem.length > 0 && - this.$selectItem.length === this.$selectItem.filter(':checked').length); + this.$selectAll.prop('checked', this.$selectItem.length > 0 && this.$selectItem.length === this.$selectItem.filter(':checked').length); - if (this.options.height) { - var toolbarHeight = getRealHeight(this.$toolbar), - paginationHeight = getRealHeight(this.$pagination), - height = this.options.height - toolbarHeight - paginationHeight; - - this.$tableContainer.css('height', height + 'px'); - } - - if (this.options.cardView) { + if (this.options.cardView) { // remove the element css this.$el.css('margin-top', '0'); this.$tableContainer.css('padding-bottom', '0'); this.$tableFooter.hide(); return; - } + } - if (this.options.showHeader && this.options.height) { + if (this.options.showHeader && this.options.height) { this.$tableHeader.show(); this.resetHeader(); padding += this.$header.outerHeight(); - } else { + } else { this.$tableHeader.hide(); this.trigger('post-header'); - } + } - if (this.options.showFooter) { + if (this.options.showFooter) { this.resetFooter(); if (this.options.height) { - padding += this.$tableFooter.outerHeight() + 1; + padding += this.$tableFooter.outerHeight() + 1; } + } + + if (this.options.height) { + var toolbarHeight = this.$toolbar.outerHeight(true); + var paginationHeight = this.$pagination.outerHeight(true); + var height = this.options.height - toolbarHeight - paginationHeight; + var tableHeight = this.$tableBody.find('table').outerHeight(true); + this.$tableContainer.css('height', height + 'px'); + this.$tableBorder && this.$tableBorder.css('height', height - tableHeight - padding - 1 + 'px'); + } + + // Assign the correct sortable arrow + this.getCaret(); + this.$tableContainer.css('padding-bottom', padding + 'px'); + this.trigger('reset-view'); } + }, { + key: 'getData', + value: function getData(useCurrentPage) { + var data = this.options.data; + if (this.searchText || this.options.sortName || !$.isEmptyObject(this.filterColumns) || !$.isEmptyObject(this.filterColumnsPartial)) { + data = this.data; + } - // Assign the correct sortable arrow - this.getCaret(); - this.$tableContainer.css('padding-bottom', padding + 'px'); - this.trigger('reset-view'); - }; + if (useCurrentPage) { + return data.slice(this.pageFrom - 1, this.pageTo); + } - BootstrapTable.prototype.getData = function (useCurrentPage) { - return (this.searchText || !$.isEmptyObject(this.filterColumns) || !$.isEmptyObject(this.filterColumnsPartial)) ? - (useCurrentPage ? this.data.slice(this.pageFrom - 1, this.pageTo) : this.data) : - (useCurrentPage ? this.options.data.slice(this.pageFrom - 1, this.pageTo) : this.options.data); - }; - - BootstrapTable.prototype.load = function (data) { - var fixedScroll = false; - - // #431: support pagination - if (this.options.sidePagination === 'server') { - this.options.totalRows = data.total; - fixedScroll = data.fixedScroll; - data = data[this.options.dataField]; - } else if (!$.isArray(data)) { // support fixedScroll - fixedScroll = data.fixedScroll; - data = data.data; + return data; } + }, { + key: 'load', + value: function load(_data) { + var fixedScroll = false; + var data = _data; - this.initData(data); - this.initSearch(); - this.initPagination(); - this.initBody(fixedScroll); - }; + // #431: support pagination + if (this.options.pagination && this.options.sidePagination === 'server') { + this.options.totalRows = data[this.options.totalField]; + } - BootstrapTable.prototype.append = function (data) { - this.initData(data, 'append'); - this.initSearch(); - this.initPagination(); - this.initSort(); - this.initBody(true); - }; + fixedScroll = data.fixedScroll; + data = Array.isArray(data) ? data : data[this.options.dataField]; - BootstrapTable.prototype.prepend = function (data) { - this.initData(data, 'prepend'); - this.initSearch(); - this.initPagination(); - this.initSort(); - this.initBody(true); - }; + this.initData(data); + this.initSearch(); + this.initPagination(); + this.initBody(fixedScroll); + } + }, { + key: 'append', + value: function append(data) { + this.initData(data, 'append'); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + } + }, { + key: 'prepend', + value: function prepend(data) { + this.initData(data, 'prepend'); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + } + }, { + key: 'remove', + value: function remove(params) { + var len = this.options.data.length; + var i = void 0; + var row = void 0; - BootstrapTable.prototype.remove = function (params) { - var len = this.options.data.length, - i, row; - - if (!params.hasOwnProperty('field') || !params.hasOwnProperty('values')) { + if (!params.hasOwnProperty('field') || !params.hasOwnProperty('values')) { return; - } + } - for (i = len - 1; i >= 0; i--) { + for (i = len - 1; i >= 0; i--) { row = this.options.data[i]; if (!row.hasOwnProperty(params.field)) { - continue; + continue; } - if ($.inArray(row[params.field], params.values) !== -1) { - this.options.data.splice(i, 1); + if (params.values.includes(row[params.field])) { + this.options.data.splice(i, 1); + if (this.options.sidePagination === 'server') { + this.options.totalRows -= 1; + } } - } + } - if (len === this.options.data.length) { + if (len === this.options.data.length) { return; + } + + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); } - - this.initSearch(); - this.initPagination(); - this.initSort(); - this.initBody(true); - }; - - BootstrapTable.prototype.removeAll = function () { - if (this.options.data.length > 0) { + }, { + key: 'removeAll', + value: function removeAll() { + if (this.options.data.length > 0) { this.options.data.splice(0, this.options.data.length); this.initSearch(); this.initPagination(); this.initBody(true); + } } - }; + }, { + key: 'getRowByUniqueId', + value: function getRowByUniqueId(_id) { + var uniqueId = this.options.uniqueId; + var len = this.options.data.length; + var id = _id; + var dataRow = null; + var i = void 0; + var row = void 0; + var rowUniqueId = void 0; - BootstrapTable.prototype.getRowByUniqueId = function (id) { - var uniqueId = this.options.uniqueId, - len = this.options.data.length, - dataRow = null, - i, row, rowUniqueId; - - for (i = len - 1; i >= 0; i--) { + for (i = len - 1; i >= 0; i--) { row = this.options.data[i]; - if (row.hasOwnProperty(uniqueId)) { // uniqueId is a column - rowUniqueId = row[uniqueId]; - } else if(row._data.hasOwnProperty(uniqueId)) { // uniqueId is a row data property - rowUniqueId = row._data[uniqueId]; + if (row.hasOwnProperty(uniqueId)) { + // uniqueId is a column + rowUniqueId = row[uniqueId]; + } else if (row._data && row._data.hasOwnProperty(uniqueId)) { + // uniqueId is a row data property + rowUniqueId = row._data[uniqueId]; } else { - continue; + continue; } if (typeof rowUniqueId === 'string') { - id = id.toString(); + id = id.toString(); } else if (typeof rowUniqueId === 'number') { - if ((Number(rowUniqueId) === rowUniqueId) && (rowUniqueId % 1 === 0)) { - id = parseInt(id); - } else if ((rowUniqueId === Number(rowUniqueId)) && (rowUniqueId !== 0)) { - id = parseFloat(id); - } + if (Number(rowUniqueId) === rowUniqueId && rowUniqueId % 1 === 0) { + id = parseInt(id); + } else if (rowUniqueId === Number(rowUniqueId) && rowUniqueId !== 0) { + id = parseFloat(id); + } } if (rowUniqueId === id) { - dataRow = row; - break; + dataRow = row; + break; } + } + + return dataRow; } + }, { + key: 'removeByUniqueId', + value: function removeByUniqueId(id) { + var len = this.options.data.length; + var row = this.getRowByUniqueId(id); - return dataRow; - }; - - BootstrapTable.prototype.removeByUniqueId = function (id) { - var len = this.options.data.length, - row = this.getRowByUniqueId(id); - - if (row) { + if (row) { this.options.data.splice(this.options.data.indexOf(row), 1); - } + } - if (len === this.options.data.length) { + if (len === this.options.data.length) { return; + } + + this.initSearch(); + this.initPagination(); + this.initBody(true); } + }, { + key: 'updateByUniqueId', + value: function updateByUniqueId(params) { + var allParams = Array.isArray(params) ? params : [params]; - this.initSearch(); - this.initPagination(); - this.initBody(true); - }; + var _iteratorNormalCompletion20 = true; + var _didIteratorError20 = false; + var _iteratorError20 = undefined; - BootstrapTable.prototype.updateByUniqueId = function (params) { - var that = this; - var allParams = $.isArray(params) ? params : [ params ]; + try { + for (var _iterator20 = allParams[Symbol.iterator](), _step20; !(_iteratorNormalCompletion20 = (_step20 = _iterator20.next()).done); _iteratorNormalCompletion20 = true) { + var _params = _step20.value; - $.each(allParams, function(i, params) { - var rowId; + if (!_params.hasOwnProperty('id') || !_params.hasOwnProperty('row')) { + continue; + } - if (!params.hasOwnProperty('id') || !params.hasOwnProperty('row')) { - return; + var rowId = this.options.data.indexOf(this.getRowByUniqueId(_params.id)); + + if (rowId === -1) { + continue; + } + $.extend(this.options.data[rowId], _params.row); } + } catch (err) { + _didIteratorError20 = true; + _iteratorError20 = err; + } finally { + try { + if (!_iteratorNormalCompletion20 && _iterator20.return) { + _iterator20.return(); + } + } finally { + if (_didIteratorError20) { + throw _iteratorError20; + } + } + } - rowId = $.inArray(that.getRowByUniqueId(params.id), that.options.data); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + } + }, { + key: 'refreshColumnTitle', + value: function refreshColumnTitle(params) { + if (!params.hasOwnProperty('field') || !params.hasOwnProperty('title')) { + return; + } + + this.columns[this.fieldsColumnsIndex[params.field]].title = this.options.escape ? Utils.escapeHTML(params.title) : params.title; + + if (this.columns[this.fieldsColumnsIndex[params.field]].visible) { + var header = this.options.height !== undefined ? this.$tableHeader : this.$header; + header.find('th[data-field]').each(function (i, el) { + if ($(el).data('field') === params.field) { + $($(el).find('.th-inner')[0]).text(params.title); + return false; + } + }); + } + } + }, { + key: 'insertRow', + value: function insertRow(params) { + if (!params.hasOwnProperty('index') || !params.hasOwnProperty('row')) { + return; + } + this.options.data.splice(params.index, 0, params.row); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + } + }, { + key: 'updateRow', + value: function updateRow(params) { + var allParams = Array.isArray(params) ? params : [params]; + + var _iteratorNormalCompletion21 = true; + var _didIteratorError21 = false; + var _iteratorError21 = undefined; + + try { + for (var _iterator21 = allParams[Symbol.iterator](), _step21; !(_iteratorNormalCompletion21 = (_step21 = _iterator21.next()).done); _iteratorNormalCompletion21 = true) { + var _params2 = _step21.value; + + if (!_params2.hasOwnProperty('index') || !_params2.hasOwnProperty('row')) { + continue; + } + $.extend(this.options.data[_params2.index], _params2.row); + } + } catch (err) { + _didIteratorError21 = true; + _iteratorError21 = err; + } finally { + try { + if (!_iteratorNormalCompletion21 && _iterator21.return) { + _iterator21.return(); + } + } finally { + if (_didIteratorError21) { + throw _iteratorError21; + } + } + } + + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + } + }, { + key: 'initHiddenRows', + value: function initHiddenRows() { + this.hiddenRows = []; + } + }, { + key: 'showRow', + value: function showRow(params) { + this.toggleRow(params, true); + } + }, { + key: 'hideRow', + value: function hideRow(params) { + this.toggleRow(params, false); + } + }, { + key: 'toggleRow', + value: function toggleRow(params, visible) { + var row = void 0; + + if (params.hasOwnProperty('index')) { + row = this.getData()[params.index]; + } else if (params.hasOwnProperty('uniqueId')) { + row = this.getRowByUniqueId(params.uniqueId); + } + + if (!row) { + return; + } + + var index = Utils.findIndex(this.hiddenRows, row); + + if (!visible && index === -1) { + this.hiddenRows.push(row); + } else if (visible && index > -1) { + this.hiddenRows.splice(index, 1); + } + this.initBody(true); + } + }, { + key: 'getHiddenRows', + value: function getHiddenRows(show) { + if (show) { + this.initHiddenRows(); + this.initBody(true); + return; + } + var data = this.getData(); + var rows = []; + + var _iteratorNormalCompletion22 = true; + var _didIteratorError22 = false; + var _iteratorError22 = undefined; + + try { + for (var _iterator22 = data[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) { + var row = _step22.value; + + if (this.hiddenRows.includes(row)) { + rows.push(row); + } + } + } catch (err) { + _didIteratorError22 = true; + _iteratorError22 = err; + } finally { + try { + if (!_iteratorNormalCompletion22 && _iterator22.return) { + _iterator22.return(); + } + } finally { + if (_didIteratorError22) { + throw _iteratorError22; + } + } + } + + this.hiddenRows = rows; + return rows; + } + }, { + key: 'mergeCells', + value: function mergeCells(options) { + var row = options.index; + var col = this.getVisibleFields().indexOf(options.field); + var rowspan = options.rowspan || 1; + var colspan = options.colspan || 1; + var i = void 0; + var j = void 0; + var $tr = this.$body.find('>tr'); + + if (this.options.detailView && !this.options.cardView) { + col += 1; + } + + var $td = $tr.eq(row).find('>td').eq(col); + + if (row < 0 || col < 0 || row >= this.data.length) { + return; + } + + for (i = row; i < row + rowspan; i++) { + for (j = col; j < col + colspan; j++) { + $tr.eq(i).find('>td').eq(j).hide(); + } + } + + $td.attr('rowspan', rowspan).attr('colspan', colspan).show(); + } + }, { + key: 'updateCell', + value: function updateCell(params) { + if (!params.hasOwnProperty('index') || !params.hasOwnProperty('field') || !params.hasOwnProperty('value')) { + return; + } + this.data[params.index][params.field] = params.value; + + if (params.reinit === false) { + return; + } + this.initSort(); + this.initBody(true); + } + }, { + key: 'updateCellById', + value: function updateCellById(params) { + var _this14 = this; + + if (!params.hasOwnProperty('id') || !params.hasOwnProperty('field') || !params.hasOwnProperty('value')) { + return; + } + var allParams = Array.isArray(params) ? params : [params]; + + allParams.forEach(function (_ref26) { + var id = _ref26.id, + field = _ref26.field, + value = _ref26.value; + + var rowId = _this14.options.data.indexOf(_this14.getRowByUniqueId(id)); if (rowId === -1) { - return; + return; } - $.extend(that.options.data[rowId], params.row); - }); + _this14.data[rowId][field] = value; + }); - this.initSearch(); - this.initSort(); - this.initBody(true); - }; - - BootstrapTable.prototype.insertRow = function (params) { - if (!params.hasOwnProperty('index') || !params.hasOwnProperty('row')) { + if (params.reinit === false) { return; + } + this.initSort(); + this.initBody(true); } - this.data.splice(params.index, 0, params.row); - this.initSearch(); - this.initPagination(); - this.initSort(); - this.initBody(true); - }; - - BootstrapTable.prototype.updateRow = function (params) { - var that = this; - var allParams = $.isArray(params) ? params : [ params ]; - - $.each(allParams, function(i, params) { - if (!params.hasOwnProperty('index') || !params.hasOwnProperty('row')) { - return; - } - $.extend(that.options.data[params.index], params.row); - }); - - this.initSearch(); - this.initSort(); - this.initBody(true); - }; - - BootstrapTable.prototype.showRow = function (params) { - if (!params.hasOwnProperty('index') && !params.hasOwnProperty('uniqueId')) { - return; + }, { + key: 'getOptions', + value: function getOptions() { + // Deep copy: remove data + var options = $.extend({}, this.options); + delete options.data; + return $.extend(true, {}, options); } - this.toggleRow(params.index, params.uniqueId, true); - }; + }, { + key: 'getSelections', + value: function getSelections() { + var _this15 = this; - BootstrapTable.prototype.hideRow = function (params) { - if (!params.hasOwnProperty('index') && !params.hasOwnProperty('uniqueId')) { - return; + // fix #2424: from html with checkbox + return this.options.data.filter(function (row) { + return row[_this15.header.stateField] === true; + }); } - this.toggleRow(params.index, params.uniqueId, false); - }; + }, { + key: 'getAllSelections', + value: function getAllSelections() { + var _this16 = this; - BootstrapTable.prototype.getRowsHidden = function (show) { - var rows = $(this.$body[0]).children().filter(':hidden'), - i = 0; - if (show) { - for (; i < rows.length; i++) { - $(rows[i]).show(); - } + return this.options.data.filter(function (row) { + return row[_this16.header.stateField]; + }); } - return rows; - }; - - BootstrapTable.prototype.mergeCells = function (options) { - var row = options.index, - col = $.inArray(options.field, this.getVisibleFields()), - rowspan = options.rowspan || 1, - colspan = options.colspan || 1, - i, j, - $tr = this.$body.find('>tr'), - $td; - - if (this.options.detailView && !this.options.cardView) { - col += 1; + }, { + key: 'checkAll', + value: function checkAll() { + this.checkAll_(true); } - - $td = $tr.eq(row).find('>td').eq(col); - - if (row < 0 || col < 0 || row >= this.data.length) { - return; + }, { + key: 'uncheckAll', + value: function uncheckAll() { + this.checkAll_(false); } - - for (i = row; i < row + rowspan; i++) { - for (j = col; j < col + colspan; j++) { - $tr.eq(i).find('>td').eq(j).hide(); - } + }, { + key: 'checkInvert', + value: function checkInvert() { + var $items = this.$selectItem.filter(':enabled'); + var checked = $items.filter(':checked'); + $items.each(function (i, el) { + $(el).prop('checked', !$(el).prop('checked')); + }); + this.updateRows(); + this.updateSelected(); + this.trigger('uncheck-some', checked); + checked = this.getSelections(); + this.trigger('check-some', checked); } - - $td.attr('rowspan', rowspan).attr('colspan', colspan).show(); - }; - - BootstrapTable.prototype.updateCell = function (params) { - if (!params.hasOwnProperty('index') || - !params.hasOwnProperty('field') || - !params.hasOwnProperty('value')) { - return; - } - this.data[params.index][params.field] = params.value; - - if (params.reinit === false) { - return; - } - this.initSort(); - this.initBody(true); - }; - - BootstrapTable.prototype.getOptions = function () { - return this.options; - }; - - BootstrapTable.prototype.getSelections = function () { - var that = this; - - return $.grep(this.options.data, function (row) { - return row[that.header.stateField]; - }); - }; - - BootstrapTable.prototype.getAllSelections = function () { - var that = this; - - return $.grep(this.options.data, function (row) { - return row[that.header.stateField]; - }); - }; - - BootstrapTable.prototype.checkAll = function () { - this.checkAll_(true); - }; - - BootstrapTable.prototype.uncheckAll = function () { - this.checkAll_(false); - }; - - BootstrapTable.prototype.checkInvert = function () { - var that = this; - var rows = that.$selectItem.filter(':enabled'); - var checked = rows.filter(':checked'); - rows.each(function() { - $(this).prop('checked', !$(this).prop('checked')); - }); - that.updateRows(); - that.updateSelected(); - that.trigger('uncheck-some', checked); - checked = that.getSelections(); - that.trigger('check-some', checked); - }; - - BootstrapTable.prototype.checkAll_ = function (checked) { - var rows; - if (!checked) { + }, { + key: 'checkAll_', + value: function checkAll_(checked) { + var rows = void 0; + if (!checked) { rows = this.getSelections(); - } - this.$selectAll.add(this.$selectAll_).prop('checked', checked); - this.$selectItem.filter(':enabled').prop('checked', checked); - this.updateRows(); - if (checked) { + } + this.$selectAll.add(this.$selectAll_).prop('checked', checked); + this.$selectItem.filter(':enabled').prop('checked', checked); + this.updateRows(); + if (checked) { rows = this.getSelections(); + } + this.trigger(checked ? 'check-all' : 'uncheck-all', rows); } - this.trigger(checked ? 'check-all' : 'uncheck-all', rows); - }; + }, { + key: 'check', + value: function check(index) { + this.check_(true, index); + } + }, { + key: 'uncheck', + value: function uncheck(index) { + this.check_(false, index); + } + }, { + key: 'check_', + value: function check_(checked, index) { + var $el = this.$selectItem.filter('[data-index="' + index + '"]'); + var row = this.data[index]; - BootstrapTable.prototype.check = function (index) { - this.check_(true, index); - }; + if ($el.is(':radio') || this.options.singleSelect) { + var _iteratorNormalCompletion23 = true; + var _didIteratorError23 = false; + var _iteratorError23 = undefined; - BootstrapTable.prototype.uncheck = function (index) { - this.check_(false, index); - }; + try { + for (var _iterator23 = this.options.data[Symbol.iterator](), _step23; !(_iteratorNormalCompletion23 = (_step23 = _iterator23.next()).done); _iteratorNormalCompletion23 = true) { + var r = _step23.value; - BootstrapTable.prototype.check_ = function (checked, index) { - var $el = this.$selectItem.filter(sprintf('[data-index="%s"]', index)).prop('checked', checked); - this.data[index][this.header.stateField] = checked; - this.updateSelected(); - this.trigger(checked ? 'check' : 'uncheck', this.data[index], $el); - }; + r[this.header.stateField] = false; + } + } catch (err) { + _didIteratorError23 = true; + _iteratorError23 = err; + } finally { + try { + if (!_iteratorNormalCompletion23 && _iterator23.return) { + _iterator23.return(); + } + } finally { + if (_didIteratorError23) { + throw _iteratorError23; + } + } + } - BootstrapTable.prototype.checkBy = function (obj) { - this.checkBy_(true, obj); - }; + this.$selectItem.filter(':checked').not($el).prop('checked', false); + } - BootstrapTable.prototype.uncheckBy = function (obj) { - this.checkBy_(false, obj); - }; + row[this.header.stateField] = checked; + $el.prop('checked', checked); + this.updateSelected(); + this.trigger(checked ? 'check' : 'uncheck', this.data[index], $el); + } + }, { + key: 'checkBy', + value: function checkBy(obj) { + this.checkBy_(true, obj); + } + }, { + key: 'uncheckBy', + value: function uncheckBy(obj) { + this.checkBy_(false, obj); + } + }, { + key: 'checkBy_', + value: function checkBy_(checked, obj) { + var _this17 = this; - BootstrapTable.prototype.checkBy_ = function (checked, obj) { - if (!obj.hasOwnProperty('field') || !obj.hasOwnProperty('values')) { + if (!obj.hasOwnProperty('field') || !obj.hasOwnProperty('values')) { return; - } + } - var that = this, - rows = []; - $.each(this.options.data, function (index, row) { + var rows = []; + this.options.data.forEach(function (row, i) { if (!row.hasOwnProperty(obj.field)) { - return false; + return false; } - if ($.inArray(row[obj.field], obj.values) !== -1) { - var $el = that.$selectItem.filter(':enabled') - .filter(sprintf('[data-index="%s"]', index)).prop('checked', checked); - row[that.header.stateField] = checked; - rows.push(row); - that.trigger(checked ? 'check' : 'uncheck', row, $el); + if (obj.values.includes(row[obj.field])) { + var $el = _this17.$selectItem.filter(':enabled').filter(Utils.sprintf('[data-index="%s"]', i)).prop('checked', checked); + row[_this17.header.stateField] = checked; + rows.push(row); + _this17.trigger(checked ? 'check' : 'uncheck', row, $el); } - }); - this.updateSelected(); - this.trigger(checked ? 'check-some' : 'uncheck-some', rows); - }; - - BootstrapTable.prototype.destroy = function () { - this.$el.insertBefore(this.$container); - $(this.options.toolbar).insertBefore(this.$el); - this.$container.next().remove(); - this.$container.remove(); - this.$el.html(this.$el_.html()) - .css('margin-top', '0') - .attr('class', this.$el_.attr('class') || ''); // reset the class - }; - - BootstrapTable.prototype.showLoading = function () { - this.$tableLoading.show(); - }; - - BootstrapTable.prototype.hideLoading = function () { - this.$tableLoading.hide(); - }; - - BootstrapTable.prototype.togglePagination = function () { - this.options.pagination = !this.options.pagination; - var button = this.$toolbar.find('button[name="paginationSwitch"] i'); - if (this.options.pagination) { - button.attr("class", this.options.iconsPrefix + " " + this.options.icons.paginationSwitchDown); - } else { - button.attr("class", this.options.iconsPrefix + " " + this.options.icons.paginationSwitchUp); + }); + this.updateSelected(); + this.trigger(checked ? 'check-some' : 'uncheck-some', rows); } - this.updatePagination(); - }; - - BootstrapTable.prototype.refresh = function (params) { - if (params && params.url) { - this.options.pageNumber = 1; + }, { + key: 'destroy', + value: function destroy() { + this.$el.insertBefore(this.$container); + $(this.options.toolbar).insertBefore(this.$el); + this.$container.next().remove(); + this.$container.remove(); + this.$el.html(this.$el_.html()).css('margin-top', '0').attr('class', this.$el_.attr('class') || ''); // reset the class } - this.initServer(params && params.silent, - params && params.query, params && params.url); - this.trigger('refresh', params); - }; - - BootstrapTable.prototype.resetWidth = function () { - if (this.options.showHeader && this.options.height) { + }, { + key: 'showLoading', + value: function showLoading() { + this.$tableLoading.show(); + } + }, { + key: 'hideLoading', + value: function hideLoading() { + this.$tableLoading.hide(); + } + }, { + key: 'togglePagination', + value: function togglePagination() { + this.options.pagination = !this.options.pagination; + var button = this.$toolbar.find('button[name="paginationSwitch"] i'); + if (this.options.pagination) { + button.attr('class', this.options.iconsPrefix + ' ' + this.options.icons.paginationSwitchDown); + } else { + button.attr('class', this.options.iconsPrefix + ' ' + this.options.icons.paginationSwitchUp); + } + this.updatePagination(); + } + }, { + key: 'toggleFullscreen', + value: function toggleFullscreen() { + this.$el.closest('.bootstrap-table').toggleClass('fullscreen'); + } + }, { + key: 'refresh', + value: function refresh(params) { + if (params && params.url) { + this.options.url = params.url; + } + if (params && params.pageNumber) { + this.options.pageNumber = params.pageNumber; + } + if (params && params.pageSize) { + this.options.pageSize = params.pageSize; + } + this.initServer(params && params.silent, params && params.query, params && params.url); + this.trigger('refresh', params); + } + }, { + key: 'resetWidth', + value: function resetWidth() { + if (this.options.showHeader && this.options.height) { this.fitHeader(); - } - if (this.options.showFooter) { + } + if (this.options.showFooter && !this.options.cardView) { this.fitFooter(); + } } - }; + }, { + key: 'showColumn', + value: function showColumn(field) { + this.toggleColumn(this.fieldsColumnsIndex[field], true, true); + } + }, { + key: 'hideColumn', + value: function hideColumn(field) { + this.toggleColumn(this.fieldsColumnsIndex[field], false, true); + } + }, { + key: 'getHiddenColumns', + value: function getHiddenColumns() { + return this.columns.filter(function (_ref27) { + var visible = _ref27.visible; + return !visible; + }); + } + }, { + key: 'getVisibleColumns', + value: function getVisibleColumns() { + return this.columns.filter(function (_ref28) { + var visible = _ref28.visible; + return visible; + }); + } + }, { + key: 'toggleAllColumns', + value: function toggleAllColumns(visible) { + var _iteratorNormalCompletion24 = true; + var _didIteratorError24 = false; + var _iteratorError24 = undefined; - BootstrapTable.prototype.showColumn = function (field) { - this.toggleColumn(getFieldIndex(this.columns, field), true, true); - }; + try { + for (var _iterator24 = this.columns[Symbol.iterator](), _step24; !(_iteratorNormalCompletion24 = (_step24 = _iterator24.next()).done); _iteratorNormalCompletion24 = true) { + var column = _step24.value; - BootstrapTable.prototype.hideColumn = function (field) { - this.toggleColumn(getFieldIndex(this.columns, field), false, true); - }; + column.visible = visible; + } + } catch (err) { + _didIteratorError24 = true; + _iteratorError24 = err; + } finally { + try { + if (!_iteratorNormalCompletion24 && _iterator24.return) { + _iterator24.return(); + } + } finally { + if (_didIteratorError24) { + throw _iteratorError24; + } + } + } - BootstrapTable.prototype.getHiddenColumns = function () { - return $.grep(this.columns, function (column) { - return !column.visible; - }); - }; - - BootstrapTable.prototype.getVisibleColumns = function () { - return $.grep(this.columns, function (column) { - return column.visible; - }); - }; - - BootstrapTable.prototype.toggleAllColumns = function (visible) { - $.each(this.columns, function (i, column) { - this.columns[i].visible = visible; - }); - - this.initHeader(); - this.initSearch(); - this.initPagination(); - this.initBody(); - if (this.options.showColumns) { + this.initHeader(); + this.initSearch(); + this.initPagination(); + this.initBody(); + if (this.options.showColumns) { var $items = this.$toolbar.find('.keep-open input').prop('disabled', false); if ($items.filter(':checked').length <= this.options.minimumCountColumns) { - $items.filter(':checked').prop('disabled', true); + $items.filter(':checked').prop('disabled', true); } + } } - }; - - BootstrapTable.prototype.showAllColumns = function () { - this.toggleAllColumns(true); - }; - - BootstrapTable.prototype.hideAllColumns = function () { - this.toggleAllColumns(false); - }; - - BootstrapTable.prototype.filterBy = function (columns) { - this.filterColumns = $.isEmptyObject(columns) ? {} : columns; - this.options.pageNumber = 1; - this.initSearch(); - this.updatePagination(); - }; - - BootstrapTable.prototype.scrollTo = function (value) { - if (typeof value === 'string') { - value = value === 'bottom' ? this.$tableBody[0].scrollHeight : 0; + }, { + key: 'showAllColumns', + value: function showAllColumns() { + this.toggleAllColumns(true); } - if (typeof value === 'number') { - this.$tableBody.scrollTop(value); + }, { + key: 'hideAllColumns', + value: function hideAllColumns() { + this.toggleAllColumns(false); } - if (typeof value === 'undefined') { + }, { + key: 'filterBy', + value: function filterBy(columns) { + this.filterColumns = $.isEmptyObject(columns) ? {} : columns; + this.options.pageNumber = 1; + this.initSearch(); + this.updatePagination(); + } + }, { + key: 'scrollTo', + value: function scrollTo(_value) { + if (typeof _value === 'undefined') { return this.$tableBody.scrollTop(); + } + + var value = _value; + if (typeof _value === 'string' && _value === 'bottom') { + value = this.$tableBody[0].scrollHeight; + } + this.$tableBody.scrollTop(value); } - }; - - BootstrapTable.prototype.getScrollPosition = function () { - return this.scrollTo(); - }; - - BootstrapTable.prototype.selectPage = function (page) { - if (page > 0 && page <= this.options.totalPages) { + }, { + key: 'getScrollPosition', + value: function getScrollPosition() { + return this.scrollTo(); + } + }, { + key: 'selectPage', + value: function selectPage(page) { + if (page > 0 && page <= this.options.totalPages) { this.options.pageNumber = page; this.updatePagination(); + } } - }; - - BootstrapTable.prototype.prevPage = function () { - if (this.options.pageNumber > 1) { + }, { + key: 'prevPage', + value: function prevPage() { + if (this.options.pageNumber > 1) { this.options.pageNumber--; this.updatePagination(); + } } - }; - - BootstrapTable.prototype.nextPage = function () { - if (this.options.pageNumber < this.options.totalPages) { + }, { + key: 'nextPage', + value: function nextPage() { + if (this.options.pageNumber < this.options.totalPages) { this.options.pageNumber++; this.updatePagination(); + } } - }; - - BootstrapTable.prototype.toggleView = function () { - this.options.cardView = !this.options.cardView; - this.initHeader(); - // Fixed remove toolbar when click cardView button. - //that.initToolbar(); - this.initBody(); - this.trigger('toggle', this.options.cardView); - }; - - BootstrapTable.prototype.refreshOptions = function (options) { - //If the objects are equivalent then avoid the call of destroy / init methods - if (compareObjects(this.options, options, true)) { + }, { + key: 'toggleView', + value: function toggleView() { + this.options.cardView = !this.options.cardView; + this.initHeader(); + // Fixed remove toolbar when click cardView button. + // this.initToolbar(); + var $icon = this.$toolbar.find('button[name="toggle"] i'); + if (this.options.cardView) { + $icon.removeClass(this.options.icons.toggleOff); + $icon.addClass(this.options.icons.toggleOn); + } else { + $icon.removeClass(this.options.icons.toggleOn); + $icon.addClass(this.options.icons.toggleOff); + } + this.initBody(); + this.trigger('toggle', this.options.cardView); + } + }, { + key: 'refreshOptions', + value: function refreshOptions(options) { + // If the objects are equivalent then avoid the call of destroy / init methods + if (Utils.compareObjects(this.options, options, true)) { return; + } + this.options = $.extend(this.options, options); + this.trigger('refresh-options', this.options); + this.destroy(); + this.init(); } - this.options = $.extend(this.options, options); - this.trigger('refresh-options', this.options); - this.destroy(); - this.init(); - }; - - BootstrapTable.prototype.resetSearch = function (text) { - var $search = this.$toolbar.find('.search input'); - $search.val(text || ''); - this.onSearch({currentTarget: $search}); - }; - - BootstrapTable.prototype.expandRow_ = function (expand, index) { - var $tr = this.$body.find(sprintf('> tr[data-index="%s"]', index)); - if ($tr.next().is('tr.detail-view') === (expand ? false : true)) { + }, { + key: 'resetSearch', + value: function resetSearch(text) { + var $search = this.$toolbar.find('.search input'); + $search.val(text || ''); + this.onSearch({ currentTarget: $search }); + } + }, { + key: 'expandRow_', + value: function expandRow_(expand, index) { + var $tr = this.$body.find(Utils.sprintf('> tr[data-index="%s"]', index)); + if ($tr.next().is('tr.detail-view') === !expand) { $tr.find('> td > .detail-icon').click(); + } } - }; + }, { + key: 'expandRow', + value: function expandRow(index) { + this.expandRow_(true, index); + } + }, { + key: 'collapseRow', + value: function collapseRow(index) { + this.expandRow_(false, index); + } + }, { + key: 'expandAllRows', + value: function expandAllRows(isSubTable) { + var _this18 = this; - BootstrapTable.prototype.expandRow = function (index) { - this.expandRow_(true, index); - }; - - BootstrapTable.prototype.collapseRow = function (index) { - this.expandRow_(false, index); - }; - - BootstrapTable.prototype.expandAllRows = function (isSubTable) { - if (isSubTable) { - var $tr = this.$body.find(sprintf('> tr[data-index="%s"]', 0)), - that = this, - detailIcon = null, - executeInterval = false, - idInterval = -1; + if (isSubTable) { + var $tr = this.$body.find(Utils.sprintf('> tr[data-index="%s"]', 0)); + var detailIcon = null; + var executeInterval = false; + var idInterval = -1; if (!$tr.next().is('tr.detail-view')) { - $tr.find('> td > .detail-icon').click(); - executeInterval = true; + $tr.find('> td > .detail-icon').click(); + executeInterval = true; } else if (!$tr.next().next().is('tr.detail-view')) { - $tr.next().find(".detail-icon").click(); - executeInterval = true; + $tr.next().find('.detail-icon').click(); + executeInterval = true; } if (executeInterval) { - try { - idInterval = setInterval(function () { - detailIcon = that.$body.find("tr.detail-view").last().find(".detail-icon"); - if (detailIcon.length > 0) { - detailIcon.click(); - } else { - clearInterval(idInterval); - } - }, 1); - } catch (ex) { + try { + idInterval = setInterval(function () { + detailIcon = _this18.$body.find('tr.detail-view').last().find('.detail-icon'); + if (detailIcon.length > 0) { + detailIcon.click(); + } else { clearInterval(idInterval); - } + } + }, 1); + } catch (ex) { + clearInterval(idInterval); + } } - } else { + } else { var trs = this.$body.children(); for (var i = 0; i < trs.length; i++) { - this.expandRow_(true, $(trs[i]).data("index")); + this.expandRow_(true, $(trs[i]).data('index')); } + } } - }; - - BootstrapTable.prototype.collapseAllRows = function (isSubTable) { - if (isSubTable) { + }, { + key: 'collapseAllRows', + value: function collapseAllRows(isSubTable) { + if (isSubTable) { this.expandRow_(false, 0); - } else { + } else { var trs = this.$body.children(); for (var i = 0; i < trs.length; i++) { - this.expandRow_(false, $(trs[i]).data("index")); + this.expandRow_(false, $(trs[i]).data('index')); } + } } - }; - - BootstrapTable.prototype.updateFormatText = function (name, text) { - if (this.options[sprintf('format%s', name)]) { + }, { + key: 'updateFormatText', + value: function updateFormatText(name, text) { + if (this.options[Utils.sprintf('format%s', name)]) { if (typeof text === 'string') { - this.options[sprintf('format%s', name)] = function () { - return text; - }; + this.options[Utils.sprintf('format%s', name)] = function () { + return text; + }; } else if (typeof text === 'function') { - this.options[sprintf('format%s', name)] = text; + this.options[Utils.sprintf('format%s', name)] = text; } + } + this.initToolbar(); + this.initPagination(); + this.initBody(); } - this.initToolbar(); - this.initPagination(); - this.initBody(); - }; + }]); + + return BootstrapTable; + }(); + + BootstrapTable.DEFAULTS = DEFAULTS; + BootstrapTable.LOCALES = LOCALES; + BootstrapTable.COLUMN_DEFAULTS = COLUMN_DEFAULTS; + BootstrapTable.EVENTS = EVENTS; // BOOTSTRAP TABLE PLUGIN DEFINITION // ======================= - var allowedMethods = [ - 'getOptions', - 'getSelections', 'getAllSelections', 'getData', - 'load', 'append', 'prepend', 'remove', 'removeAll', - 'insertRow', 'updateRow', 'updateCell', 'updateByUniqueId', 'removeByUniqueId', - 'getRowByUniqueId', 'showRow', 'hideRow', 'getRowsHidden', - 'mergeCells', - 'checkAll', 'uncheckAll', 'checkInvert', - 'check', 'uncheck', - 'checkBy', 'uncheckBy', - 'refresh', - 'resetView', - 'resetWidth', - 'destroy', - 'showLoading', 'hideLoading', - 'showColumn', 'hideColumn', 'getHiddenColumns', 'getVisibleColumns', - 'showAllColumns', 'hideAllColumns', - 'filterBy', - 'scrollTo', - 'getScrollPosition', - 'selectPage', 'prevPage', 'nextPage', - 'togglePagination', - 'toggleView', - 'refreshOptions', - 'resetSearch', - 'expandRow', 'collapseRow', 'expandAllRows', 'collapseAllRows', - 'updateFormatText' - ]; + var allowedMethods = ['getOptions', 'getSelections', 'getAllSelections', 'getData', 'load', 'append', 'prepend', 'remove', 'removeAll', 'insertRow', 'updateRow', 'updateCell', 'updateByUniqueId', 'removeByUniqueId', 'getRowByUniqueId', 'showRow', 'hideRow', 'getHiddenRows', 'mergeCells', 'refreshColumnTitle', 'checkAll', 'uncheckAll', 'checkInvert', 'check', 'uncheck', 'checkBy', 'uncheckBy', 'refresh', 'resetView', 'resetWidth', 'destroy', 'showLoading', 'hideLoading', 'showColumn', 'hideColumn', 'getHiddenColumns', 'getVisibleColumns', 'showAllColumns', 'hideAllColumns', 'filterBy', 'scrollTo', 'getScrollPosition', 'selectPage', 'prevPage', 'nextPage', 'togglePagination', 'toggleView', 'refreshOptions', 'resetSearch', 'expandRow', 'collapseRow', 'expandAllRows', 'collapseAllRows', 'updateFormatText', 'updateCellById']; + $.BootstrapTable = BootstrapTable; $.fn.bootstrapTable = function (option) { - var value, - args = Array.prototype.slice.call(arguments, 1); + for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key5 = 1; _key5 < _len3; _key5++) { + args[_key5 - 1] = arguments[_key5]; + } - this.each(function () { - var $this = $(this), - data = $this.data('bootstrap.table'), - options = $.extend({}, BootstrapTable.DEFAULTS, $this.data(), - typeof option === 'object' && option); + var value = void 0; - if (typeof option === 'string') { - if ($.inArray(option, allowedMethods) < 0) { - throw new Error("Unknown method: " + option); - } + this.each(function (i, el) { + var data = $(el).data('bootstrap.table'); + var options = $.extend({}, BootstrapTable.DEFAULTS, $(el).data(), (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' && option); - if (!data) { - return; - } + if (typeof option === 'string') { + var _data2; - value = data[option].apply(data, args); + if (!allowedMethods.includes(option)) { + throw new Error('Unknown method: ' + option); + } - if (option === 'destroy') { - $this.removeData('bootstrap.table'); - } - } + if (!data) { + return; + } - if (!data) { - $this.data('bootstrap.table', (data = new BootstrapTable(this, options))); - } - }); + value = (_data2 = data)[option].apply(_data2, args); - return typeof value === 'undefined' ? this : value; + if (option === 'destroy') { + $(el).removeData('bootstrap.table'); + } + } + + if (!data) { + $(el).data('bootstrap.table', data = new $.BootstrapTable(el, options)); + } + }); + + return typeof value === 'undefined' ? this : value; }; $.fn.bootstrapTable.Constructor = BootstrapTable; @@ -3000,20 +3842,13 @@ $.fn.bootstrapTable.columnDefaults = BootstrapTable.COLUMN_DEFAULTS; $.fn.bootstrapTable.locales = BootstrapTable.LOCALES; $.fn.bootstrapTable.methods = allowedMethods; - $.fn.bootstrapTable.utils = { - sprintf: sprintf, - getFieldIndex: getFieldIndex, - compareObjects: compareObjects, - calculateObjectValue: calculateObjectValue, - getItemField: getItemField, - objectKeys: objectKeys, - isIEBrowser: isIEBrowser - }; + $.fn.bootstrapTable.utils = Utils; // BOOTSTRAP TABLE INIT // ======================= $(function () { - $('[data-toggle="table"]').bootstrapTable(); + $('[data-toggle="table"]').bootstrapTable(); }); -})(jQuery); + })(jQuery); +}); \ No newline at end of file diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.css b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.css index d72d065..437e252 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.css +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.css @@ -1 +1,10 @@ -.fixed-table-container .bs-checkbox,.fixed-table-container .no-records-found{text-align:center}.fixed-table-body thead th .th-inner,.table td,.table th{box-sizing:border-box}.bootstrap-table .table{margin-bottom:0!important;border-bottom:1px solid #ddd;border-collapse:collapse!important;border-radius:1px}.bootstrap-table .table:not(.table-condensed),.bootstrap-table .table:not(.table-condensed)>tbody>tr>td,.bootstrap-table .table:not(.table-condensed)>tbody>tr>th,.bootstrap-table .table:not(.table-condensed)>tfoot>tr>td,.bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,.bootstrap-table .table:not(.table-condensed)>thead>tr>td{padding:8px}.bootstrap-table .table.table-no-bordered>tbody>tr>td,.bootstrap-table .table.table-no-bordered>thead>tr>th{border-right:2px solid transparent}.bootstrap-table .table.table-no-bordered>tbody>tr>td:last-child{border-right:none}.fixed-table-container{position:relative;clear:both;border:1px solid #ddd;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px}.fixed-table-container.table-no-bordered{border:1px solid transparent}.fixed-table-footer,.fixed-table-header{overflow:hidden}.fixed-table-footer{border-top:1px solid #ddd}.fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.fixed-table-container table{width:100%}.fixed-table-container thead th{height:0;padding:0;margin:0;border-left:1px solid #ddd}.fixed-table-container thead th:focus{outline:transparent solid 0}.fixed-table-container thead th:first-child{border-left:none;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px}.fixed-table-container tbody td .th-inner,.fixed-table-container thead th .th-inner{padding:8px;line-height:24px;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fixed-table-container thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px}.fixed-table-container thead th .both{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC')}.fixed-table-container thead th .asc{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==)}.fixed-table-container thead th .desc{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=)}.fixed-table-container th.detail{width:30px}.fixed-table-container tbody td{border-left:1px solid #ddd}.fixed-table-container tbody tr:first-child td{border-top:none}.fixed-table-container tbody td:first-child{border-left:none}.fixed-table-container tbody .selected td{background-color:#f5f5f5}.fixed-table-container .bs-checkbox .th-inner{padding:8px 0}.fixed-table-container input[type=radio],.fixed-table-container input[type=checkbox]{margin:0 auto!important}.fixed-table-pagination .pagination-detail,.fixed-table-pagination div.pagination{margin-top:10px;margin-bottom:10px}.fixed-table-pagination div.pagination .pagination{margin:0}.fixed-table-pagination .pagination a{padding:6px 12px;line-height:1.428571429}.fixed-table-pagination .pagination-info{line-height:34px;margin-right:5px}.fixed-table-pagination .btn-group{position:relative;display:inline-block;vertical-align:middle}.fixed-table-pagination .dropup .dropdown-menu{margin-bottom:0}.fixed-table-pagination .page-list{display:inline-block}.fixed-table-toolbar .columns-left{margin-right:5px}.fixed-table-toolbar .columns-right{margin-left:5px}.fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429}.fixed-table-toolbar .bs-bars,.fixed-table-toolbar .columns,.fixed-table-toolbar .search{position:relative;margin-top:10px;margin-bottom:10px;line-height:34px}.fixed-table-pagination li.disabled a{pointer-events:none;cursor:default}.fixed-table-loading{display:none;position:absolute;top:42px;right:0;bottom:0;left:0;z-index:99;background-color:#fff;text-align:center}.fixed-table-body .card-view .title{font-weight:700;display:inline-block;min-width:30%;text-align:left!important}.table td,.table th{vertical-align:middle}.fixed-table-toolbar .dropdown-menu{text-align:left;max-height:300px;overflow:auto}.fixed-table-toolbar .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.fixed-table-toolbar .btn-group>.btn-group>.btn{border-radius:0}.fixed-table-toolbar .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.fixed-table-toolbar .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .table>thead>tr>th{vertical-align:bottom;border-bottom:1px solid #ddd}.bootstrap-table .table thead>tr>th{padding:0;margin:0}.bootstrap-table .fixed-table-footer tbody>tr>td{padding:0!important}.bootstrap-table .fixed-table-footer .table{border-bottom:none;border-radius:0;padding:0!important}.pull-right .dropdown-menu{right:0;left:auto}p.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden} \ No newline at end of file +/** + * bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3). + * + * @version v1.13.4 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +@charset "UTF-8";.bootstrap-table .fixed-table-toolbar:after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-toolbar .bs-bars,.bootstrap-table .fixed-table-toolbar .search,.bootstrap-table .fixed-table-toolbar .columns{position:relative;margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group>.btn{border-radius:0}.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu{text-align:left;max-height:300px;overflow:auto}.bootstrap-table .fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429}.bootstrap-table .fixed-table-toolbar .columns-left{margin-right:5px}.bootstrap-table .fixed-table-toolbar .columns-right{margin-left:5px}.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu{right:0;left:auto}.bootstrap-table .fixed-table-container{position:relative;clear:both}.bootstrap-table .fixed-table-container.fixed-height{border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border{border-left:1px solid #dee2e6;border-right:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table thead th{border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th{border-bottom:1px solid #32383e}.bootstrap-table .fixed-table-container .fixed-table-header{overflow:hidden}.bootstrap-table .fixed-table-container .fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading{display:none;position:absolute;top:42px;right:0;bottom:0;left:0;z-index:99;background-color:#fff;text-align:center}.bootstrap-table .fixed-table-container .table{width:100%;margin-bottom:0!important}.bootstrap-table .fixed-table-container .table th,.bootstrap-table .fixed-table-container .table td{vertical-align:middle;box-sizing:border-box}.bootstrap-table .fixed-table-container .table thead th{vertical-align:bottom;padding:0;margin:0}.bootstrap-table .fixed-table-container .table thead th:focus{outline:0 solid transparent}.bootstrap-table .fixed-table-container .table thead th.detail{width:30px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:.75rem;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bootstrap-table .fixed-table-container .table thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px}.bootstrap-table .fixed-table-container .table thead th .both{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.bootstrap-table .fixed-table-container .table thead th .asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.bootstrap-table .fixed-table-container .table thead th .desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ")}.bootstrap-table .fixed-table-container .table tbody tr.selected td{background-color:rgba(0,0,0,0.075)}.bootstrap-table .fixed-table-container .table tbody tr.no-records-found{text-align:center}.bootstrap-table .fixed-table-container .table tbody tr .card-view .title{font-weight:bold;display:inline-block;min-width:30%;text-align:left!important}.bootstrap-table .fixed-table-container .table .bs-checkbox{text-align:center}.bootstrap-table .fixed-table-container .table input[type=radio],.bootstrap-table .fixed-table-container .table input[type=checkbox]{margin:0 auto!important}.bootstrap-table .fixed-table-container .table.table-sm .th-inner{padding:.3rem}.bootstrap-table .fixed-table-container .fixed-table-footer{overflow:hidden;border-top:1px solid #dee2e6}.bootstrap-table .fixed-table-container .fixed-table-footer .table{border-bottom:0;border-radius:0;padding:0!important}.bootstrap-table .fixed-table-container .fixed-table-footer .table tbody>tr>td{padding:0!important}.bootstrap-table .fixed-table-pagination:after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-pagination>.pagination-detail,.bootstrap-table .fixed-table-pagination>.pagination{margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-pagination>.pagination-detail .pagination-info{line-height:34px;margin-right:5px}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list{display:inline-block}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group{position:relative;display:inline-block;vertical-align:middle}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group .dropdown-menu{margin-bottom:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination{margin:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination a{padding:6px 12px;line-height:1.428571429}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a{color:#c8c8c8}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a:before{content:"⬅"}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a:after{content:"➡"}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.disabled a{pointer-events:none;cursor:default}.bootstrap-table.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#FFF}div.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden} \ No newline at end of file diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js index aa8e685..a030da5 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js @@ -1,8 +1,10 @@ -/* -* bootstrap-table - v1.11.0 - 2016-07-02 -* https://github.com/wenzhixin/bootstrap-table -* Copyright (c) 2016 zhixin wen -* Licensed MIT License -*/ -!function(a){"use strict";var b=null,c=function(a){var b=arguments,c=!0,d=1;return a=a.replace(/%s/g,function(){var a=b[d++];return"undefined"==typeof a?(c=!1,""):a}),c?a:""},d=function(b,c,d,e){var f="";return a.each(b,function(a,b){return b[c]===e?(f=b[d],!1):!0}),f},e=function(b,c){var d=-1;return a.each(b,function(a,b){return b.field===c?(d=a,!1):!0}),d},f=function(b){var c,d,e,f=0,g=[];for(c=0;cd;d++)g[c][d]=!1;for(c=0;ce;e++)g[c+e][k]=!0;for(e=0;j>e;e++)g[c][k+e]=!0}},g=function(){if(null===b){var c,d,e=a("

    ").addClass("fixed-table-scroll-inner"),f=a("

    ").addClass("fixed-table-scroll-outer");f.append(e),a("body").append(f),c=e[0].offsetWidth,f.css("overflow","scroll"),d=e[0].offsetWidth,c===d&&(d=f[0].clientWidth),f.remove(),b=c-d}return b},h=function(b,d,e,f){var g=d;if("string"==typeof d){var h=d.split(".");h.length>1?(g=window,a.each(h,function(a,b){g=g[b]})):g=window[d]}return"object"==typeof g?g:"function"==typeof g?g.apply(b,e):!g&&"string"==typeof d&&c.apply(this,[d].concat(e))?c.apply(this,[d].concat(e)):f},i=function(b,c,d){var e=Object.getOwnPropertyNames(b),f=Object.getOwnPropertyNames(c),g="";if(d&&e.length!==f.length)return!1;for(var h=0;h-1&&b[g]!==c[g])return!1;return!0},j=function(a){return"string"==typeof a?a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):a},k=function(b){var c=0;return b.children().each(function(){c0||navigator.userAgent.match(/Trident.*rv\:11\./))},o=function(){Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if("object"!=typeof e&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var f,g,h=[];for(f in e)a.call(e,f)&&h.push(f);if(b)for(g=0;d>g;g++)a.call(e,c[g])&&h.push(c[g]);return h}}())},p=function(b,c){this.options=c,this.$el=a(b),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};p.DEFAULTS={classes:"table table-hover",locale:void 0,height:void 0,undefinedText:"-",sortName:void 0,sortOrder:"asc",sortStable:!1,striped:!1,columns:[[]],data:[],dataField:"rows",method:"get",url:void 0,ajax:void 0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(a){return a},queryParamsType:"limit",responseHandler:function(a){return a},pagination:!1,onlyInfoPagination:!1,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",search:!1,searchOnEnterKey:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,escape:!1,minimumCountColumns:1,idField:void 0,uniqueId:void 0,cardView:!1,detailView:!1,detailFormatter:function(){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void 0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:void 0,buttonsClass:"default",iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus"},customSearch:a.noop,customSort:a.noop,rowStyle:function(){return{}},rowAttributes:function(){return{}},footerStyle:function(){return{}},onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1}},p.LOCALES={},p.LOCALES["en-US"]=p.LOCALES.en={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(a){return c("%s rows per page",a)},formatShowingRows:function(a,b,d){return c("Showing %s to %s of %s rows",a,b,d)},formatDetailPagination:function(a){return c("Showing %s rows",a)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}},a.extend(p.DEFAULTS,p.LOCALES["en-US"]),p.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void 0,title:void 0,titleTooltip:void 0,"class":void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,width:void 0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void 0,footerFormatter:void 0,events:void 0,sorter:void 0,sortName:void 0,cellStyle:void 0,searchable:!0,searchFormatter:!0,cardVisible:!0},p.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh"},p.prototype.init=function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()},p.prototype.initLocale=function(){if(this.options.locale){var b=this.options.locale.split(/-|_/);b[0].toLowerCase(),b[1]&&b[1].toUpperCase(),a.fn.bootstrapTable.locales[this.options.locale]?a.extend(this.options,a.fn.bootstrapTable.locales[this.options.locale]):a.fn.bootstrapTable.locales[b.join("-")]?a.extend(this.options,a.fn.bootstrapTable.locales[b.join("-")]):a.fn.bootstrapTable.locales[b[0]]&&a.extend(this.options,a.fn.bootstrapTable.locales[b[0]])}},p.prototype.initContainer=function(){this.$container=a(['
    ','
    ',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'
    ':"",'
    ','
    ','
    ','
    ',this.options.formatLoadingMessage(),"
    ","
    ",'',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'
    ':"","
    ","
    "].join("")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$container.find(".fixed-table-footer"),this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('
    '),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),-1!==a.inArray("table-no-bordered",this.options.classes.split(" "))&&this.$tableContainer.addClass("table-no-bordered")},p.prototype.initTable=function(){var b=this,c=[],d=[];if(this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=a("").appendTo(this.$el)),this.$header.find("tr").each(function(){var b=[];a(this).find("th").each(function(){"undefined"!=typeof a(this).data("field")&&a(this).data("field",a(this).data("field")+""),b.push(a.extend({},{title:a(this).html(),"class":a(this).attr("class"),titleTooltip:a(this).attr("title"),rowspan:a(this).attr("rowspan")?+a(this).attr("rowspan"):void 0,colspan:a(this).attr("colspan")?+a(this).attr("colspan"):void 0},a(this).data()))}),c.push(b)}),a.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=a.extend(!0,[],c,this.options.columns),this.columns=[],f(this.options.columns),a.each(this.options.columns,function(c,d){a.each(d,function(d,e){e=a.extend({},p.COLUMN_DEFAULTS,e),"undefined"!=typeof e.fieldIndex&&(b.columns[e.fieldIndex]=e),b.options.columns[c][d]=e})}),!this.options.data.length){var e=[];this.$el.find(">tbody>tr").each(function(c){var f={};f._id=a(this).attr("id"),f._class=a(this).attr("class"),f._data=l(a(this).data()),a(this).find(">td").each(function(d){for(var g,h,i=a(this),j=+i.attr("colspan")||1,k=+i.attr("rowspan")||1;e[c]&&e[c][d];d++);for(g=d;d+j>g;g++)for(h=c;c+k>h;h++)e[h]||(e[h]=[]),e[h][g]=!0;var m=b.columns[d].field;f[m]=a(this).html(),f["_"+m+"_id"]=a(this).attr("id"),f["_"+m+"_class"]=a(this).attr("class"),f["_"+m+"_rowspan"]=a(this).attr("rowspan"),f["_"+m+"_colspan"]=a(this).attr("colspan"),f["_"+m+"_title"]=a(this).attr("title"),f["_"+m+"_data"]=l(a(this).data())}),d.push(f)}),this.options.data=d,d.length&&(this.fromHtml=!0)}},p.prototype.initHeader=function(){var b=this,d={},e=[];this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},a.each(this.options.columns,function(f,g){e.push(""),0===f&&!b.options.cardView&&b.options.detailView&&e.push(c('
    ',b.options.columns.length)),a.each(g,function(a,f){var g="",h="",i="",j="",k=c(' class="%s"',f["class"]),l=(b.options.sortOrder||f.order,"px"),m=f.width;if(void 0===f.width||b.options.cardView||"string"==typeof f.width&&-1!==f.width.indexOf("%")&&(l="%"),f.width&&"string"==typeof f.width&&(m=f.width.replace("%","").replace("px","")),h=c("text-align: %s; ",f.halign?f.halign:f.align),i=c("text-align: %s; ",f.align),j=c("vertical-align: %s; ",f.valign),j+=c("width: %s; ",!f.checkbox&&!f.radio||m?m?m+l:void 0:"36px"),"undefined"!=typeof f.fieldIndex){if(b.header.fields[f.fieldIndex]=f.field,b.header.styles[f.fieldIndex]=i+j,b.header.classes[f.fieldIndex]=k,b.header.formatters[f.fieldIndex]=f.formatter,b.header.events[f.fieldIndex]=f.events,b.header.sorters[f.fieldIndex]=f.sorter,b.header.sortNames[f.fieldIndex]=f.sortName,b.header.cellStyles[f.fieldIndex]=f.cellStyle,b.header.searchables[f.fieldIndex]=f.searchable,!f.visible)return;if(b.options.cardView&&!f.cardVisible)return;d[f.field]=f}e.push(""),e.push(c('
    ',b.options.sortable&&f.sortable?"sortable both":"")),g=f.title,f.checkbox&&(!b.options.singleSelect&&b.options.checkboxHeader&&(g=''),b.header.stateField=f.field),f.radio&&(g="",b.header.stateField=f.field,b.options.singleSelect=!0),e.push(g),e.push("
    "),e.push('
    '),e.push("
    "),e.push("")}),e.push("")}),this.$header.html(e.join("")),this.$header.find("th[data-field]").each(function(){a(this).data(d[a(this).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(c){var d=a(this);return b.options.detailView&&d.closest(".bootstrap-table")[0]!==b.$container[0]?!1:void(b.options.sortable&&d.parent().data().sortable&&b.onSort(c))}),this.$header.children().children().off("keypress").on("keypress",function(c){if(b.options.sortable&&a(this).data().sortable){var d=c.keyCode||c.which;13==d&&b.onSort(c)}}),a(window).off("resize.bootstrap-table"),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),a(window).on("resize.bootstrap-table",a.proxy(this.resetWidth,this))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(){var c=a(this).prop("checked");b[c?"checkAll":"uncheckAll"](),b.updateSelected()})},p.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()},p.prototype.initData=function(a,b){this.data="append"===b?this.data.concat(a):"prepend"===b?[].concat(a).concat(this.data):a||this.options.data,this.options.data="append"===b?this.options.data.concat(a):"prepend"===b?[].concat(a).concat(this.options.data):this.data,"server"!==this.options.sidePagination&&this.initSort()},p.prototype.initSort=function(){var b=this,c=this.options.sortName,d="desc"===this.options.sortOrder?-1:1,e=a.inArray(this.options.sortName,this.header.fields);return this.options.customSort!==a.noop?void this.options.customSort.apply(this,[this.options.sortName,this.options.sortOrder]):void(-1!==e&&(this.options.sortStable&&a.each(this.data,function(a,b){b.hasOwnProperty("_position")||(b._position=a)}),this.data.sort(function(f,g){b.header.sortNames[e]&&(c=b.header.sortNames[e]);var i=m(f,c,b.options.escape),j=m(g,c,b.options.escape),k=h(b.header,b.header.sorters[e],[i,j]);return void 0!==k?d*k:((void 0===i||null===i)&&(i=""),(void 0===j||null===j)&&(j=""),b.options.sortStable&&i===j&&(i=f._position,j=g._position),a.isNumeric(i)&&a.isNumeric(j)?(i=parseFloat(i),j=parseFloat(j),j>i?-1*d:d):i===j?0:("string"!=typeof i&&(i=i.toString()),-1===i.localeCompare(j)?-1*d:d))})))},p.prototype.onSort=function(b){var c="keypress"===b.type?a(b.currentTarget):a(b.currentTarget).parent(),d=this.$header.find("th").eq(c.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===c.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=c.data("field"),this.options.sortOrder="asc"===c.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),c.add(d).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?void this.initServer(this.options.silentSort):(this.initSort(),void this.initBody())},p.prototype.initToolbar=function(){var b,d,e=this,f=[],g=0,i=0;this.$toolbar.find(".bs-bars").children().length&&a("body").append(a(this.options.toolbar)),this.$toolbar.html(""),("string"==typeof this.options.toolbar||"object"==typeof this.options.toolbar)&&a(c('
    ',this.options.toolbarAlign)).appendTo(this.$toolbar).append(a(this.options.toolbar)),f=[c('
    ',this.options.buttonsAlign,this.options.buttonsAlign)],"string"==typeof this.options.icons&&(this.options.icons=h(null,this.options.icons)),this.options.showPaginationSwitch&&f.push(c('"),this.options.showRefresh&&f.push(c('"),this.options.showToggle&&f.push(c('"),this.options.showColumns&&(f.push(c('
    ',this.options.formatColumns()),'",'","
    ")),f.push("
    "),(this.showToolbar||f.length>2)&&this.$toolbar.append(f.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",a.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",a.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){e.toggleView()}),this.options.showColumns&&(b=this.$toolbar.find(".keep-open"),i<=this.options.minimumCountColumns&&b.find("input").prop("disabled",!0),b.find("li").off("click").on("click",function(a){a.stopImmediatePropagation()}),b.find("input").off("click").on("click",function(){var b=a(this);e.toggleColumn(a(this).val(),b.prop("checked"),!1),e.trigger("column-switch",a(this).data("field"),b.prop("checked"))})),this.options.search&&(f=[],f.push('"),this.$toolbar.append(f.join("")),d=this.$toolbar.find(".search input"),d.off("keyup drop").on("keyup drop",function(b){e.options.searchOnEnterKey&&13!==b.keyCode||a.inArray(b.keyCode,[37,38,39,40])>-1||(clearTimeout(g),g=setTimeout(function(){e.onSearch(b)},e.options.searchTimeOut))}),n()&&d.off("mouseup").on("mouseup",function(a){clearTimeout(g),g=setTimeout(function(){e.onSearch(a)},e.options.searchTimeOut)}))},p.prototype.onSearch=function(b){var c=a.trim(a(b.currentTarget).val());this.options.trimOnSearch&&a(b.currentTarget).val()!==c&&a(b.currentTarget).val(c),c!==this.searchText&&(this.searchText=c,this.options.searchText=c,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",c))},p.prototype.initSearch=function(){var b=this;if("server"!==this.options.sidePagination){if(this.options.customSearch!==a.noop)return void this.options.customSearch.apply(this,[this.searchText]);var c=this.searchText&&(this.options.escape?j(this.searchText):this.searchText).toLowerCase(),d=a.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=d?a.grep(this.options.data,function(b){for(var c in d)if(a.isArray(d[c])&&-1===a.inArray(b[c],d[c])||b[c]!==d[c])return!1;return!0}):this.options.data,this.data=c?a.grep(this.data,function(d,f){for(var g=0;g-1&&(n=!0)}this.totalPages=~~((this.options.totalRows-1)/this.options.pageSize)+1,this.options.totalPages=this.totalPages}if(this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),m.push('
    ','',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),""),!this.options.onlyInfoPagination){m.push('');var r=[c('',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'",'"),m.push(this.options.formatRecordsPerPage(r.join(""))),m.push(""),m.push("
    ",'")}this.$pagination.html(m.join("")),this.options.onlyInfoPagination||(f=this.$pagination.find(".page-list a"),g=this.$pagination.find(".page-first"),h=this.$pagination.find(".page-pre"),i=this.$pagination.find(".page-next"),j=this.$pagination.find(".page-last"),k=this.$pagination.find(".page-number"),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(p.length<2||this.options.totalRows<=p[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),n&&(this.options.pageSize=this.options.formatAllRows()),f.off("click").on("click",a.proxy(this.onPageListChange,this)),g.off("click").on("click",a.proxy(this.onPageFirst,this)),h.off("click").on("click",a.proxy(this.onPagePre,this)),i.off("click").on("click",a.proxy(this.onPageNext,this)),j.off("click").on("click",a.proxy(this.onPageLast,this)),k.off("click").on("click",a.proxy(this.onPageNumber,this)))},p.prototype.updatePagination=function(b){b&&a(b.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},p.prototype.onPageListChange=function(b){var c=a(b.currentTarget);c.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=c.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+c.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(b)},p.prototype.onPageFirst=function(a){this.options.pageNumber=1,this.updatePagination(a)},p.prototype.onPagePre=function(a){this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(a)},p.prototype.onPageNext=function(a){this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(a)},p.prototype.onPageLast=function(a){this.options.pageNumber=this.totalPages,this.updatePagination(a)},p.prototype.onPageNumber=function(b){this.options.pageNumber!==+a(b.currentTarget).text()&&(this.options.pageNumber=+a(b.currentTarget).text(),this.updatePagination(b))},p.prototype.initBody=function(b){var f=this,g=[],i=this.getData();this.trigger("pre-body",i),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=a("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=i.length);for(var k=this.pageFrom-1;k"),this.options.cardView&&g.push(c('
    ',this.header.fields.length)),!this.options.cardView&&this.options.detailView&&g.push("",'',c('',this.options.iconsPrefix,this.options.icons.detailOpen),"",""),a.each(this.header.fields,function(b,e){var i="",j=m(n,e,f.options.escape),l="",q={},r="",s=f.header.classes[b],t="",u="",v="",w="",x=f.columns[b];if(!(f.fromHtml&&"undefined"==typeof j||!x.visible||f.options.cardView&&!x.cardVisible)){if(o=c('style="%s"',p.concat(f.header.styles[b]).join("; ")),n["_"+e+"_id"]&&(r=c(' id="%s"',n["_"+e+"_id"])),n["_"+e+"_class"]&&(s=c(' class="%s"',n["_"+e+"_class"])),n["_"+e+"_rowspan"]&&(u=c(' rowspan="%s"',n["_"+e+"_rowspan"])),n["_"+e+"_colspan"]&&(v=c(' colspan="%s"',n["_"+e+"_colspan"])),n["_"+e+"_title"]&&(w=c(' title="%s"',n["_"+e+"_title"])),q=h(f.header,f.header.cellStyles[b],[j,n,k,e],q),q.classes&&(s=c(' class="%s"',q.classes)),q.css){var y=[];for(var z in q.css)y.push(z+": "+q.css[z]);o=c('style="%s"',y.concat(f.header.styles[b]).join("; "))}j=h(x,f.header.formatters[b],[j,n,k],j),n["_"+e+"_data"]&&!a.isEmptyObject(n["_"+e+"_data"])&&a.each(n["_"+e+"_data"],function(a,b){"index"!==a&&(t+=c(' data-%s="%s"',a,b))}),x.checkbox||x.radio?(l=x.checkbox?"checkbox":l,l=x.radio?"radio":l,i=[c(f.options.cardView?'
    ':'',x["class"]||""),"",f.header.formatters[b]&&"string"==typeof j?j:"",f.options.cardView?"
    ":""].join(""),n[f.header.stateField]=j===!0||j&&j.checked):(j="undefined"==typeof j||null===j?f.options.undefinedText:j,i=f.options.cardView?['
    ',f.options.showHeader?c('%s',o,d(f.columns,"field","title",e)):"",c('%s',j),"
    "].join(""):[c("",r,s,o,t,u,v,w),j,""].join(""),f.options.cardView&&f.options.smartDisplay&&""===j&&(i='
    ')),g.push(i)}}),this.options.cardView&&g.push("
    "),g.push("")}g.length||g.push('',c('%s',this.$header.find("th").length,this.options.formatNoMatches()),""),this.$body.html(g.join("")),b||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(b){var d=a(this),g=d.parent(),h=f.data[g.data("index")],i=d[0].cellIndex,j=f.getVisibleFields(),k=j[f.options.detailView&&!f.options.cardView?i-1:i],l=f.columns[e(f.columns,k)],n=m(h,k,f.options.escape);if(!d.find(".detail-icon").length&&(f.trigger("click"===b.type?"click-cell":"dbl-click-cell",k,n,h,d),f.trigger("click"===b.type?"click-row":"dbl-click-row",h,g,k), -"click"===b.type&&f.options.clickToSelect&&l.clickToSelect)){var o=g.find(c('[name="%s"]',f.options.selectItemName));o.length&&o[0].click()}}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(){var b=a(this),d=b.parent().parent(),e=d.data("index"),g=i[e];if(d.next().is("tr.detail-view"))b.find("i").attr("class",c("%s %s",f.options.iconsPrefix,f.options.icons.detailOpen)),d.next().remove(),f.trigger("collapse-row",e,g);else{b.find("i").attr("class",c("%s %s",f.options.iconsPrefix,f.options.icons.detailClose)),d.after(c('',d.find("td").length));var j=d.next().find("td"),k=h(f.options,f.options.detailFormatter,[e,g,j],"");1===j.length&&j.append(k),f.trigger("expand-row",e,g,j)}f.resetView()}),this.$selectItem=this.$body.find(c('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(b){b.stopImmediatePropagation();var c=a(this),d=c.prop("checked"),e=f.data[c.data("index")];f.options.maintainSelected&&a(this).is(":radio")&&a.each(f.options.data,function(a,b){b[f.header.stateField]=!1}),e[f.header.stateField]=d,f.options.singleSelect&&(f.$selectItem.not(this).each(function(){f.data[a(this).data("index")][f.header.stateField]=!1}),f.$selectItem.filter(":checked").not(this).prop("checked",!1)),f.updateSelected(),f.trigger(d?"check":"uncheck",e,c)}),a.each(this.header.events,function(b,c){if(c){"string"==typeof c&&(c=h(null,c));var d=f.header.fields[b],e=a.inArray(d,f.getVisibleFields());f.options.detailView&&!f.options.cardView&&(e+=1);for(var g in c)f.$body.find(">tr:not(.no-records-found)").each(function(){var b=a(this),h=b.find(f.options.cardView?".card-view":"td").eq(e),i=g.indexOf(" "),j=g.substring(0,i),k=g.substring(i+1),l=c[g];h.find(k).off(j).on(j,function(a){var c=b.data("index"),e=f.data[c],g=e[d];l.apply(this,[a,g,e,c])})})}}),this.updateSelected(),this.resetView(),this.trigger("post-body",i)},p.prototype.initServer=function(b,c,d){var e,f=this,g={},i={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};this.options.pagination&&(i.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,i.pageNumber=this.options.pageNumber),(d||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(i={search:i.searchText,sort:i.sortName,order:i.sortOrder},this.options.pagination&&(i.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),i.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)),a.isEmptyObject(this.filterColumnsPartial)||(i.filter=JSON.stringify(this.filterColumnsPartial,null)),g=h(this.options,this.options.queryParams,[i],g),a.extend(g,c||{}),g!==!1&&(b||this.$tableLoading.show(),e=a.extend({},h(null,this.options.ajaxOptions),{type:this.options.method,url:d||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(g):g,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(a){a=h(f.options,f.options.responseHandler,[a],a),f.load(a),f.trigger("load-success",a),b||f.$tableLoading.hide()},error:function(a){f.trigger("load-error",a.status,a),b||f.$tableLoading.hide()}}),this.options.ajax?h(this,this.options.ajax,[e],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=a.ajax(e))))},p.prototype.initSearchText=function(){if(this.options.search&&""!==this.options.searchText){var a=this.$toolbar.find(".search input");a.val(this.options.searchText),this.onSearch({currentTarget:a})}},p.prototype.getCaret=function(){var b=this;a.each(this.$header.find("th"),function(c,d){a(d).find(".sortable").removeClass("desc asc").addClass(a(d).data("field")===b.options.sortName?b.options.sortOrder:"both")})},p.prototype.updateSelected=function(){var b=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",b),this.$selectItem.each(function(){a(this).closest("tr")[a(this).prop("checked")?"addClass":"removeClass"]("selected")})},p.prototype.updateRows=function(){var b=this;this.$selectItem.each(function(){b.data[a(this).data("index")][b.header.stateField]=a(this).prop("checked")})},p.prototype.resetRows=function(){var b=this;a.each(this.data,function(a,c){b.$selectAll.prop("checked",!1),b.$selectItem.prop("checked",!1),b.header.stateField&&(c[b.header.stateField]=!1)})},p.prototype.trigger=function(b){var c=Array.prototype.slice.call(arguments,1);b+=".bs.table",this.options[p.EVENTS[b]].apply(this.options,c),this.$el.trigger(a.Event(b),c),this.options.onAll(b,c),this.$el.trigger(a.Event("all.bs.table"),[b,c])},p.prototype.resetHeader=function(){clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(a.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},p.prototype.fitHeader=function(){var b,d,e,f,h=this;if(h.$el.is(":hidden"))return void(h.timeoutId_=setTimeout(a.proxy(h.fitHeader,h),100));if(b=this.$tableBody.get(0),d=b.scrollWidth>b.clientWidth&&b.scrollHeight>b.clientHeight+this.$header.outerHeight()?g():0,this.$el.css("margin-top",-this.$header.outerHeight()),e=a(":focus"),e.length>0){var i=e.parents("th");if(i.length>0){var j=i.attr("data-field");if(void 0!==j){var k=this.$header.find("[data-field='"+j+"']");k.length>0&&k.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css({"margin-right":d}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),f=a(".focus-temp:visible:eq(0)"),f.length>0&&(f.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(){h.$header_.find(c('th[data-field="%s"]',a(this).data("field"))).data(a(this).data())});var l=this.getVisibleFields(),m=this.$header_.find("th");this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(b){var d=a(this),e=b;h.options.detailView&&!h.options.cardView&&(0===b&&h.$header_.find("th.detail").find(".fht-cell").width(d.innerWidth()),e=b-1);var f=h.$header_.find(c('th[data-field="%s"]',l[e]));f.length>1&&(f=a(m[d[0].cellIndex])),f.find(".fht-cell").width(d.innerWidth())}),this.$tableBody.off("scroll").on("scroll",function(){h.$tableHeader.scrollLeft(a(this).scrollLeft()),h.options.showFooter&&!h.options.cardView&&h.$tableFooter.scrollLeft(a(this).scrollLeft())}),h.trigger("post-header")},p.prototype.resetFooter=function(){var b=this,d=b.getData(),e=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&e.push('
     
    '),a.each(this.columns,function(a,f){var g,i="",j="",k=[],l={},m=c(' class="%s"',f["class"]);if(f.visible&&(!b.options.cardView||f.cardVisible)){if(i=c("text-align: %s; ",f.falign?f.falign:f.align),j=c("vertical-align: %s; ",f.valign),l=h(null,b.options.footerStyle),l&&l.css)for(g in l.css)k.push(g+": "+l.css[g]);e.push(""),e.push('
    '),e.push(h(f,f.footerFormatter,[d]," ")||" "),e.push("
    "),e.push('
    '),e.push(""),e.push("")}}),this.$tableFooter.find("tr").html(e.join("")),this.$tableFooter.show(),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(a.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},p.prototype.fitFooter=function(){var b,c,d;return clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?void(this.timeoutFooter_=setTimeout(a.proxy(this.fitFooter,this),100)):(c=this.$el.css("width"),d=c>this.$tableBody.width()?g():0,this.$tableFooter.css({"margin-right":d}).find("table").css("width",c).attr("class",this.$el.attr("class")),b=this.$tableFooter.find("td"),void this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(c){var d=a(this);b.eq(c).find(".fht-cell").width(d.innerWidth())}))},p.prototype.toggleColumn=function(a,b,d){if(-1!==a&&(this.columns[a].visible=b,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var e=this.$toolbar.find(".keep-open input").prop("disabled",!1);d&&e.filter(c('[value="%s"]',a)).prop("checked",b),e.filter(":checked").length<=this.options.minimumCountColumns&&e.filter(":checked").prop("disabled",!0)}},p.prototype.toggleRow=function(a,b,d){-1!==a&&this.$body.find("undefined"!=typeof a?c('tr[data-index="%s"]',a):c('tr[data-uniqueid="%s"]',b))[d?"show":"hide"]()},p.prototype.getVisibleFields=function(){var b=this,c=[];return a.each(this.header.fields,function(a,d){var f=b.columns[e(b.columns,d)];f.visible&&c.push(d)}),c},p.prototype.resetView=function(a){var b=0;if(a&&a.height&&(this.options.height=a.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var c=k(this.$toolbar),d=k(this.$pagination),e=this.options.height-c-d;this.$tableContainer.css("height",e+"px")}return this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),void this.$tableFooter.hide()):(this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),b+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(b+=this.$tableFooter.outerHeight()+1)),this.getCaret(),this.$tableContainer.css("padding-bottom",b+"px"),void this.trigger("reset-view"))},p.prototype.getData=function(b){return!this.searchText&&a.isEmptyObject(this.filterColumns)&&a.isEmptyObject(this.filterColumnsPartial)?b?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data:b?this.data.slice(this.pageFrom-1,this.pageTo):this.data},p.prototype.load=function(b){var c=!1;"server"===this.options.sidePagination?(this.options.totalRows=b.total,c=b.fixedScroll,b=b[this.options.dataField]):a.isArray(b)||(c=b.fixedScroll,b=b.data),this.initData(b),this.initSearch(),this.initPagination(),this.initBody(c)},p.prototype.append=function(a){this.initData(a,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},p.prototype.prepend=function(a){this.initData(a,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},p.prototype.remove=function(b){var c,d,e=this.options.data.length;if(b.hasOwnProperty("field")&&b.hasOwnProperty("values")){for(c=e-1;c>=0;c--)d=this.options.data[c],d.hasOwnProperty(b.field)&&-1!==a.inArray(d[b.field],b.values)&&this.options.data.splice(c,1);e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},p.prototype.removeAll=function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))},p.prototype.getRowByUniqueId=function(a){var b,c,d,e=this.options.uniqueId,f=this.options.data.length,g=null;for(b=f-1;b>=0;b--){if(c=this.options.data[b],c.hasOwnProperty(e))d=c[e];else{if(!c._data.hasOwnProperty(e))continue;d=c._data[e]}if("string"==typeof d?a=a.toString():"number"==typeof d&&(Number(d)===d&&d%1===0?a=parseInt(a):d===Number(d)&&0!==d&&(a=parseFloat(a))),d===a){g=c;break}}return g},p.prototype.removeByUniqueId=function(a){var b=this.options.data.length,c=this.getRowByUniqueId(a);c&&this.options.data.splice(this.options.data.indexOf(c),1),b!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))},p.prototype.updateByUniqueId=function(b){var c=this,d=a.isArray(b)?b:[b];a.each(d,function(b,d){var e;d.hasOwnProperty("id")&&d.hasOwnProperty("row")&&(e=a.inArray(c.getRowByUniqueId(d.id),c.options.data),-1!==e&&a.extend(c.options.data[e],d.row))}),this.initSearch(),this.initSort(),this.initBody(!0)},p.prototype.insertRow=function(a){a.hasOwnProperty("index")&&a.hasOwnProperty("row")&&(this.data.splice(a.index,0,a.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))},p.prototype.updateRow=function(b){var c=this,d=a.isArray(b)?b:[b];a.each(d,function(b,d){d.hasOwnProperty("index")&&d.hasOwnProperty("row")&&a.extend(c.options.data[d.index],d.row)}),this.initSearch(),this.initSort(),this.initBody(!0)},p.prototype.showRow=function(a){(a.hasOwnProperty("index")||a.hasOwnProperty("uniqueId"))&&this.toggleRow(a.index,a.uniqueId,!0)},p.prototype.hideRow=function(a){(a.hasOwnProperty("index")||a.hasOwnProperty("uniqueId"))&&this.toggleRow(a.index,a.uniqueId,!1)},p.prototype.getRowsHidden=function(b){var c=a(this.$body[0]).children().filter(":hidden"),d=0;if(b)for(;dtr");if(this.options.detailView&&!this.options.cardView&&(g+=1),e=j.eq(f).find(">td").eq(g),!(0>f||0>g||f>=this.data.length)){for(c=f;f+h>c;c++)for(d=g;g+i>d;d++)j.eq(c).find(">td").eq(d).hide();e.attr("rowspan",h).attr("colspan",i).show()}},p.prototype.updateCell=function(a){a.hasOwnProperty("index")&&a.hasOwnProperty("field")&&a.hasOwnProperty("value")&&(this.data[a.index][a.field]=a.value,a.reinit!==!1&&(this.initSort(),this.initBody(!0)))},p.prototype.getOptions=function(){return this.options},p.prototype.getSelections=function(){var b=this;return a.grep(this.options.data,function(a){return a[b.header.stateField]})},p.prototype.getAllSelections=function(){var b=this;return a.grep(this.options.data,function(a){return a[b.header.stateField]})},p.prototype.checkAll=function(){this.checkAll_(!0)},p.prototype.uncheckAll=function(){this.checkAll_(!1)},p.prototype.checkInvert=function(){var b=this,c=b.$selectItem.filter(":enabled"),d=c.filter(":checked");c.each(function(){a(this).prop("checked",!a(this).prop("checked"))}),b.updateRows(),b.updateSelected(),b.trigger("uncheck-some",d),d=b.getSelections(),b.trigger("check-some",d)},p.prototype.checkAll_=function(a){var b;a||(b=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop("checked",a),this.$selectItem.filter(":enabled").prop("checked",a),this.updateRows(),a&&(b=this.getSelections()),this.trigger(a?"check-all":"uncheck-all",b)},p.prototype.check=function(a){this.check_(!0,a)},p.prototype.uncheck=function(a){this.check_(!1,a)},p.prototype.check_=function(a,b){var d=this.$selectItem.filter(c('[data-index="%s"]',b)).prop("checked",a);this.data[b][this.header.stateField]=a,this.updateSelected(),this.trigger(a?"check":"uncheck",this.data[b],d)},p.prototype.checkBy=function(a){this.checkBy_(!0,a)},p.prototype.uncheckBy=function(a){this.checkBy_(!1,a)},p.prototype.checkBy_=function(b,d){if(d.hasOwnProperty("field")&&d.hasOwnProperty("values")){var e=this,f=[];a.each(this.options.data,function(g,h){if(!h.hasOwnProperty(d.field))return!1;if(-1!==a.inArray(h[d.field],d.values)){var i=e.$selectItem.filter(":enabled").filter(c('[data-index="%s"]',g)).prop("checked",b);h[e.header.stateField]=b,f.push(h),e.trigger(b?"check":"uncheck",h,i)}}),this.updateSelected(),this.trigger(b?"check-some":"uncheck-some",f)}},p.prototype.destroy=function(){this.$el.insertBefore(this.$container),a(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},p.prototype.showLoading=function(){this.$tableLoading.show()},p.prototype.hideLoading=function(){this.$tableLoading.hide()},p.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var a=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?a.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):a.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp),this.updatePagination()},p.prototype.refresh=function(a){a&&a.url&&(this.options.pageNumber=1),this.initServer(a&&a.silent,a&&a.query,a&&a.url),this.trigger("refresh",a)},p.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},p.prototype.showColumn=function(a){this.toggleColumn(e(this.columns,a),!0,!0)},p.prototype.hideColumn=function(a){this.toggleColumn(e(this.columns,a),!1,!0)},p.prototype.getHiddenColumns=function(){return a.grep(this.columns,function(a){return!a.visible})},p.prototype.getVisibleColumns=function(){return a.grep(this.columns,function(a){return a.visible})},p.prototype.toggleAllColumns=function(b){if(a.each(this.columns,function(a){this.columns[a].visible=b}),this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var c=this.$toolbar.find(".keep-open input").prop("disabled",!1);c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}},p.prototype.showAllColumns=function(){this.toggleAllColumns(!0)},p.prototype.hideAllColumns=function(){this.toggleAllColumns(!1)},p.prototype.filterBy=function(b){this.filterColumns=a.isEmptyObject(b)?{}:b,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},p.prototype.scrollTo=function(a){return"string"==typeof a&&(a="bottom"===a?this.$tableBody[0].scrollHeight:0),"number"==typeof a&&this.$tableBody.scrollTop(a),"undefined"==typeof a?this.$tableBody.scrollTop():void 0},p.prototype.getScrollPosition=function(){return this.scrollTo()},p.prototype.selectPage=function(a){a>0&&a<=this.options.totalPages&&(this.options.pageNumber=a,this.updatePagination())},p.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())},p.prototype.nextPage=function(){this.options.pageNumber tr[data-index="%s"]',b));d.next().is("tr.detail-view")===(a?!1:!0)&&d.find("> td > .detail-icon").click()},p.prototype.expandRow=function(a){this.expandRow_(!0,a)},p.prototype.collapseRow=function(a){this.expandRow_(!1,a)},p.prototype.expandAllRows=function(b){if(b){var d=this.$body.find(c('> tr[data-index="%s"]',0)),e=this,f=null,g=!1,h=-1;if(d.next().is("tr.detail-view")?d.next().next().is("tr.detail-view")||(d.next().find(".detail-icon").click(),g=!0):(d.find("> td > .detail-icon").click(),g=!0),g)try{h=setInterval(function(){f=e.$body.find("tr.detail-view").last().find(".detail-icon"),f.length>0?f.click():clearInterval(h)},1)}catch(i){clearInterval(h)}}else for(var j=this.$body.children(),k=0;k (http://wenzhixin.net.cn/) + * @license MIT + */ + +(function(e,t){if('function'==typeof define&&define.amd)define([],t);else if('undefined'!=typeof exports)t();else{t(),e.bootstrapTable={exports:{}}.exports}})(this,function(){'use strict';function e(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t',''],toobarDropdowItem:'
  • ',pageDropdown:[''],pageDropdownItem:''}},4:{iconsPrefix:'fa',icons:{paginationSwitchDown:'fa-caret-square-down',paginationSwitchUp:'fa-caret-square-up',refresh:'fa-sync',toggleOff:'fa-toggle-off',toggleOn:'fa-toggle-on',columns:'fa-th-list',detailOpen:'fa-plus',detailClose:'fa-minus',fullscreen:'fa-arrows-alt'},classes:{buttons:'secondary',pull:'float'},html:{toobarDropdow:[''],toobarDropdowItem:'',pageDropdown:[''],pageDropdownItem:'%s'}}}[i],r={bootstrapVersion:i,sprintf:function(e){for(var t=arguments.length,o=Array(1').addClass('fixed-table-scroll-inner'),t=l('
    ').addClass('fixed-table-scroll-outer');t.append(e),l('body').append(t);var o=e[0].offsetWidth;t.css('overflow','scroll');var i=e[0].offsetWidth;o===i&&(i=t[0].clientWidth),t.remove(),this.cachedWidth=o-i}return this.cachedWidth},calculateObjectValue:function(e,o,i,a){var s=o;if('string'==typeof o){var u=o.split('.');if(1/g,'>').replace(/"/g,'"').replace(/'/g,''').replace(/`/g,'`'):e},getRealDataAttr:function(e){var t=!0,o=!1,i=void 0;try{for(var n,s=Object.entries(e)[Symbol.iterator]();!(t=(n=s.next()).done);t=!0){var l=n.value,r=a(l,2),d=r[0],p=r[1],c=d.split(/(?=[A-Z])/).join('-').toLowerCase();c!==d&&(e[c]=p,delete e[d])}}catch(e){o=!0,i=e}finally{try{!t&&s.return&&s.return()}finally{if(o)throw i}}return e},getItemField:function(e,t,o){var i=e;if('string'!=typeof t||e.hasOwnProperty(t))return o?this.escapeHTML(e[t]):e[t];var a=t.split('.'),n=!0,s=!1,l=void 0;try{for(var r,d,p=a[Symbol.iterator]();!(n=(r=p.next()).done);n=!0)d=r.value,i=i&&i[d]}catch(e){s=!0,l=e}finally{try{!n&&p.return&&p.return()}finally{if(s)throw l}}return o?this.escapeHTML(i):i},isIEBrowser:function(){return navigator.userAgent.includes('MSIE ')||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(e,t){var o=!0,n=!1,s=void 0;try{for(var l,r=e.entries()[Symbol.iterator]();!(o=(l=r.next()).done);o=!0){var d=l.value,p=a(d,2),c=p[0],i=p[1];if(JSON.stringify(i)===JSON.stringify(t))return c}}catch(e){n=!0,s=e}finally{try{!o&&r.return&&r.return()}finally{if(n)throw s}}return-1}},d={height:void 0,classes:'table table-bordered table-hover',theadClasses:'',rowStyle:function(){return{}},rowAttributes:function(){return{}},undefinedText:'-',locale:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:'asc',sortStable:!1,rememberOrder:!1,customSort:void 0,columns:[[]],data:[],url:void 0,method:'get',cache:!0,contentType:'application/json',dataType:'json',ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:'limit',responseHandler:function(e){return e},totalField:'total',dataField:'rows',pagination:!1,onlyInfoPagination:!1,paginationLoop:!0,sidePagination:'client',totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:'right',paginationVAlign:'bottom',paginationDetailHAlign:'left',paginationPreText:'‹',paginationNextText:'›',paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,trimOnSearch:!0,searchAlign:'right',searchTimeOut:500,searchText:'',customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(){return{}},showColumns:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,idField:void 0,uniqueId:void 0,cardView:!1,detailView:!1,detailFormatter:function(){return''},detailFilter:function(){return!0},selectItemName:'btSelectItem',clickToSelect:!1,ignoreClickToSelectOn:function(e){var t=e.tagName;return['A','BUTTON'].includes(t)},singleSelect:!1,checkboxHeader:!0,maintainSelected:!1,toolbar:void 0,toolbarAlign:'left',buttonsToolbar:void 0,buttonsAlign:'right',buttonsClass:s.classes.buttons,icons:s.icons,iconSize:void 0,iconsPrefix:s.iconsPrefix,onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},p={};p['en-US']=p.en={formatLoadingMessage:function(){return'Loading, please wait...'},formatRecordsPerPage:function(e){return r.sprintf('%s rows per page',e)},formatShowingRows:function(e,t,o){return r.sprintf('Showing %s to %s of %s rows',e,t,o)},formatDetailPagination:function(e){return r.sprintf('Showing %s rows',e)},formatSearch:function(){return'Search'},formatNoMatches:function(){return'No matching records found'},formatPaginationSwitch:function(){return'Hide/Show pagination'},formatRefresh:function(){return'Refresh'},formatToggle:function(){return'Toggle'},formatFullscreen:function(){return'Fullscreen'},formatColumns:function(){return'Columns'},formatAllRows:function(){return'All'}},l.extend(d,p['en-US']);var c=function(){function t(o,i){e(this,t),this.options=i,this.$el=l(o),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()}return o(t,[{key:'init',value:function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:'initLocale',value:function(){if(this.options.locale){var e=l.fn.bootstrapTable.locales,t=this.options.locale.split(/-|_/);t[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),e[this.options.locale]?l.extend(this.options,e[this.options.locale]):e[t.join('-')]?l.extend(this.options,e[t.join('-')]):e[t[0]]&&l.extend(this.options,e[t[0]])}}},{key:'initContainer',value:function(){var e=['top','both'].includes(this.options.paginationVAlign)?'
    ':'',t=['bottom','both'].includes(this.options.paginationVAlign)?'
    ':'';this.$container=l('\n
    \n
    \n '+e+'\n
    \n
    \n
    \n
    \n '+this.options.formatLoadingMessage()+'\n
    \n
    \n \n
    \n '+t+'\n
    \n '),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find('.fixed-table-container'),this.$tableHeader=this.$container.find('.fixed-table-header'),this.$tableBody=this.$container.find('.fixed-table-body'),this.$tableLoading=this.$container.find('.fixed-table-loading'),this.$tableFooter=this.$container.find('.fixed-table-footer'),this.$toolbar=this.options.buttonsToolbar?l('body').find(this.options.buttonsToolbar):this.$container.find('.fixed-table-toolbar'),this.$pagination=this.$container.find('.fixed-table-pagination'),this.$tableBody.append(this.$el),this.$container.after('
    '),this.$el.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass('fixed-height'),this.options.classes.split(' ').includes('table-bordered')&&(this.$tableBody.append('
    '),this.$tableBorder=this.$tableBody.find('.fixed-table-border'),this.$tableLoading.addClass('fixed-table-border')))}},{key:'initTable',value:function(){var e=this,o=[],i=[];if(this.$header=this.$el.find('>thead'),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=l('').appendTo(this.$el),this.$header.find('tr').each(function(e,t){var a=[];l(t).find('th').each(function(e,t){'undefined'!=typeof l(t).data('field')&&l(t).data('field',''+l(t).data('field')),a.push(l.extend({},{title:l(t).html(),class:l(t).attr('class'),titleTooltip:l(t).attr('title'),rowspan:l(t).attr('rowspan')?+l(t).attr('rowspan'):void 0,colspan:l(t).attr('colspan')?+l(t).attr('colspan'):void 0},l(t).data()))}),o.push(a)}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=l.extend(!0,[],o,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],r.setFieldIndex(this.options.columns),this.options.columns.forEach(function(o,a){o.forEach(function(o,i){var n=l.extend({},t.COLUMN_DEFAULTS,o);'undefined'!=typeof n.fieldIndex&&(e.columns[n.fieldIndex]=n,e.fieldsColumnsIndex[n.field]=n.fieldIndex),e.options.columns[a][i]=n})}),!this.options.data.length){var a=[];this.$el.find('>tbody>tr').each(function(t,o){var n={};n._id=l(o).attr('id'),n._class=l(o).attr('class'),n._data=r.getRealDataAttr(l(o).data()),l(o).find('>td').each(function(o,i){for(var s=+l(i).attr('colspan')||1,d=+l(i).attr('rowspan')||1,p=o;a[t]&&a[t][p];p++);for(var h=p;h'),0===n&&!t.options.cardView&&t.options.detailView&&o.push('\n
    \n \n '),a.forEach(function(i,a){var s='',l='',d='',p='',c=r.sprintf(' class="%s"',i['class']),h='px',u=i.width;if(void 0!==i.width&&!t.options.cardView&&'string'==typeof i.width&&i.width.includes('%')&&(h='%'),i.width&&'string'==typeof i.width&&(u=i.width.replace('%','').replace('px','')),l=r.sprintf('text-align: %s; ',i.halign?i.halign:i.align),d=r.sprintf('text-align: %s; ',i.align),p=r.sprintf('vertical-align: %s; ',i.valign),p+=r.sprintf('width: %s; ',(i.checkbox||i.radio)&&!u?i.showSelectTitle?void 0:'36px':u?u+h:void 0),'undefined'!=typeof i.fieldIndex){if(t.header.fields[i.fieldIndex]=i.field,t.header.styles[i.fieldIndex]=d+p,t.header.classes[i.fieldIndex]=c,t.header.formatters[i.fieldIndex]=i.formatter,t.header.events[i.fieldIndex]=i.events,t.header.sorters[i.fieldIndex]=i.sorter,t.header.sortNames[i.fieldIndex]=i.sortName,t.header.cellStyles[i.fieldIndex]=i.cellStyle,t.header.searchables[i.fieldIndex]=i.searchable,!i.visible)return;if(t.options.cardView&&!i.cardVisible)return;e[i.field]=i}o.push(''),o.push(r.sprintf('
    ',t.options.sortable&&i.sortable?'sortable both':'')),s=t.options.escape?r.escapeHTML(i.title):i.title;var g=s;i.checkbox&&(s='',!t.options.singleSelect&&t.options.checkboxHeader&&(s=''),t.header.stateField=i.field),i.radio&&(s='',t.header.stateField=i.field,t.options.singleSelect=!0),!s&&i.showSelectTitle&&(s+=g),o.push(s),o.push('
    '),o.push('
    '),o.push('
    '),o.push('')}),o.push('')}),this.$header.html(o.join('')),this.$header.find('th[data-field]').each(function(t,o){l(o).data(e[l(o).data('field')])}),this.$container.off('click','.th-inner').on('click','.th-inner',function(o){var e=l(o.currentTarget);return t.options.detailView&&!e.parent().hasClass('bs-checkbox')&&e.closest('.bootstrap-table')[0]!==t.$container[0]?!1:void(t.options.sortable&&e.parent().data().sortable&&t.onSort(o))}),this.$header.children().children().off('keypress').on('keypress',function(o){if(t.options.sortable&&l(o.currentTarget).data().sortable){var e=o.keyCode||o.which;13===e&&t.onSort(o)}}),l(window).off('resize.bootstrap-table'),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css('top',0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css('top',this.$header.outerHeight()+1),this.getCaret(),l(window).on('resize.bootstrap-table',l.proxy(this.resetWidth,this))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off('click').on('click',function(e){var o=e.currentTarget,i=l(o).prop('checked');t[i?'checkAll':'uncheckAll'](),t.updateSelected()})}},{key:'initFooter',value:function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:'initData',value:function(e,t){this.options.data='append'===t?this.options.data.concat(e):'prepend'===t?[].concat(e).concat(this.options.data):e||this.options.data,this.data=this.options.data,'server'===this.options.sidePagination||this.initSort()}},{key:'initSort',value:function(){var e=this,t=this.options.sortName,o='desc'===this.options.sortOrder?-1:1,i=this.header.fields.indexOf(this.options.sortName),a=0;-1!==i&&(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty('_position')||(e._position=t)}),this.options.customSort?r.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(n,a){e.header.sortNames[i]&&(t=e.header.sortNames[i]);var s=r.getItemField(n,t,e.options.escape),d=r.getItemField(a,t,e.options.escape),p=r.calculateObjectValue(e.header,e.header.sorters[i],[s,d,n,a]);return void 0===p?((void 0===s||null===s)&&(s=''),(void 0===d||null===d)&&(d=''),e.options.sortStable&&s===d&&(s=n._position,d=a._position),l.isNumeric(s)&&l.isNumeric(d))?(s=parseFloat(s),d=parseFloat(d),sd?o:0):s===d?0:('string'!=typeof s&&(s=s.toString()),-1===s.localeCompare(d)?-1*o:o):e.options.sortStable&&0===p?o*(n._position-a._position):o*p}),void 0!==this.options.sortClass&&(clearTimeout(a),a=setTimeout(function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find('[data-field="'+e.options.sortName+'"]').index();e.$el.find('tr td:nth-child('+(t+1)+')').addClass(e.options.sortClass)},250)))}},{key:'onSort',value:function(e){var t=e.type,o=e.currentTarget,i='keypress'===t?l(o):l(o).parent(),a=this.$header.find('th').eq(i.index());return this.$header.add(this.$header_).find('span.order').remove(),this.options.sortName===i.data('field')?this.options.sortOrder='asc'===this.options.sortOrder?'desc':'asc':(this.options.sortName=i.data('field'),this.options.sortOrder=this.options.rememberOrder?'asc'===i.data('order')?'desc':'asc':this.columns[this.fieldsColumnsIndex[i.data('field')]].order),this.trigger('sort',this.options.sortName,this.options.sortOrder),i.add(a).data('order',this.options.sortOrder),this.getCaret(),'server'===this.options.sidePagination?void this.initServer(this.options.silentSort):void(this.initSort(),this.initBody())}},{key:'initToolbar',value:function(){var e=this,t=[],o=0,i=void 0,a=void 0,d=0;this.$toolbar.find('.bs-bars').children().length&&l('body').append(l(this.options.toolbar)),this.$toolbar.html(''),('string'==typeof this.options.toolbar||'object'===n(this.options.toolbar))&&l(r.sprintf('
    ',s.classes.pull,this.options.toolbarAlign)).appendTo(this.$toolbar).append(l(this.options.toolbar)),t=[r.sprintf('
    ',this.options.buttonsAlign,s.classes.pull,this.options.buttonsAlign)],'string'==typeof this.options.icons&&(this.options.icons=r.calculateObjectValue(null,this.options.icons)),this.options.showPaginationSwitch&&t.push(r.sprintf(''),this.options.showFullscreen&&this.$toolbar.find('button[name="fullscreen"]').off('click').on('click',l.proxy(this.toggleFullscreen,this)),this.options.showRefresh&&t.push(r.sprintf(''),this.options.showToggle&&t.push(r.sprintf(''),this.options.showFullscreen&&t.push(r.sprintf(''),this.options.showColumns&&(t.push(r.sprintf('
    ',this.options.formatColumns()),'',s.html.toobarDropdow[0]),this.columns.forEach(function(o,a){if(!(o.radio||o.checkbox)&&(!e.options.cardView||o.cardVisible)){var i=o.visible?' checked="checked"':'';o.switchable&&(t.push(r.sprintf(s.html.toobarDropdowItem,r.sprintf(' %s',o.field,a,i,o.title))),d++)}}),t.push(s.html.toobarDropdow[1],'
    ')),t.push('
    '),(this.showToolbar||2',s.classes.pull,this.options.searchAlign),r.sprintf('',this.options.formatSearch()),''),this.$toolbar.append(t.join('')),a=this.$toolbar.find('.search input'),a.off('keyup drop blur').on('keyup drop blur',function(t){e.options.searchOnEnterKey&&13!==t.keyCode||[37,38,39,40].includes(t.keyCode)||(clearTimeout(o),o=setTimeout(function(){e.onSearch(t)},e.options.searchTimeOut))}),r.isIEBrowser()&&a.off('mouseup').on('mouseup',function(t){clearTimeout(o),o=setTimeout(function(){e.onSearch(t)},e.options.searchTimeOut)}))}},{key:'onSearch',value:function(e){var t=e.currentTarget,o=e.firedByInitSearchText,i=l.trim(l(t).val());this.options.trimOnSearch&&l(t).val()!==i&&l(t).val(i),i===this.searchText||(this.searchText=i,this.options.searchText=i,!o&&(this.options.pageNumber=1),this.initSearch(),o?'client'===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger('search',i))}},{key:'initSearch',value:function(){var e=this;if('server'!==this.options.sidePagination){if(this.options.customSearch)return void r.calculateObjectValue(this.options,this.options.customSearch,[this.searchText]);var t=this.searchText&&(this.options.escape?r.escapeHTML(this.searchText):this.searchText).toLowerCase(),o=l.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=o?this.options.data.filter(function(e){for(var t in o)if(Array.isArray(o[t])&&!o[t].includes(e[t])||!Array.isArray(o[t])&&e[t]!==o[t])return!1;return!0}):this.options.data,this.data=t?this.data.filter(function(o,a){for(var c=0;cthis.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),o.push(r.sprintf('
    ',s.classes.pull,this.options.paginationDetailHAlign),'',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),''),!this.options.onlyInfoPagination){o.push('');var P=[r.sprintf('','top'===this.options.paginationVAlign||'both'===this.options.paginationVAlign?'dropdown':'dropup'),'',s.html.pageDropdown[0]];if('string'==typeof this.options.pageList){var C=this.options.pageList.replace('[','').replace(']','').replace(/ /g,'').split(',');f=[];var b=!0,m=!1,y=void 0;try{for(var w,v,k=C[Symbol.iterator]();!(b=(w=k.next()).done);b=!0)v=w.value,f.push(v.toUpperCase()===this.options.formatAllRows().toUpperCase()||'UNLIMITED'===v.toUpperCase()?this.options.formatAllRows():+v)}catch(e){m=!0,y=e}finally{try{!b&&k.return&&k.return()}finally{if(m)throw y}}}f.forEach(function(e,o){if(!t.options.smartDisplay||0===o||f[o-1]'),o.push(this.options.formatRecordsPerPage(P.join(''))),o.push(''),o.push('
    ',r.sprintf('\n ')}this.$pagination.html(o.join('')),this.options.onlyInfoPagination||(p=this.$pagination.find('.page-list a'),c=this.$pagination.find('.page-pre'),h=this.$pagination.find('.page-next'),u=this.$pagination.find('.page-item').not('.page-next, .page-pre'),this.options.smartDisplay&&(1>=this.totalPages&&this.$pagination.find('div.pagination').hide(),(2>f.length||this.options.totalRows<=f[0])&&this.$pagination.find('span.page-list').hide(),this.$pagination[this.getData().length?'show':'hide']()),!this.options.paginationLoop&&(1===this.options.pageNumber&&c.addClass('disabled'),this.options.pageNumber===this.totalPages&&h.addClass('disabled')),a&&(this.options.pageSize=this.options.formatAllRows()),p.off('click').on('click',l.proxy(this.onPageListChange,this)),c.off('click').on('click',l.proxy(this.onPagePre,this)),h.off('click').on('click',l.proxy(this.onPageNext,this)),u.off('click').on('click',l.proxy(this.onPageNumber,this)))}},{key:'updatePagination',value:function(e){e&&l(e.currentTarget).hasClass('disabled')||(!this.options.maintainSelected&&this.resetRows(),this.initPagination(),'server'===this.options.sidePagination?this.initServer():this.initBody(),this.trigger('page-change',this.options.pageNumber,this.options.pageSize))}},{key:'onPageListChange',value:function(e){e.preventDefault();var t=l(e.currentTarget);return t.parent().addClass('active').siblings().removeClass('active'),this.options.pageSize=t.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+t.text(),this.$toolbar.find('.page-size').text(this.options.pageSize),this.updatePagination(e),!1}},{key:'onPagePre',value:function(e){return e.preventDefault(),0==this.options.pageNumber-1?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:'onPageNext',value:function(e){return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:'onPageNumber',value:function(e){if(e.preventDefault(),this.options.pageNumber!==+l(e.currentTarget).text())return this.options.pageNumber=+l(e.currentTarget).text(),this.updatePagination(e),!1}},{key:'initRow',value:function(e,t){var o=this,i=[],n={},s=[],d='',p={},c=[];if(!(-1'),this.options.cardView&&i.push('
    '),!this.options.cardView&&this.options.detailView&&(i.push(''),r.calculateObjectValue(null,this.options.detailFilter,[t,e])&&i.push('\n \n \n \n '),i.push('')),this.header.fields.forEach(function(d,p){var h='',u=r.getItemField(e,d,o.options.escape),g='',f='',b={},m='',y=o.header.classes[p],w='',v='',k='',x='',S='',$=o.columns[p];if((!o.fromHtml||'undefined'!=typeof u||$.checkbox||$.radio)&&$.visible&&(!o.options.cardView||$.cardVisible)){if($.escape&&(u=r.escapeHTML(u)),s.concat([o.header.styles[p]]).length&&(w=' style="'+s.concat([o.header.styles[p]]).join('; ')+'"'),e['_'+d+'_id']&&(m=r.sprintf(' id="%s"',e['_'+d+'_id'])),e['_'+d+'_class']&&(y=r.sprintf(' class="%s"',e['_'+d+'_class'])),e['_'+d+'_rowspan']&&(k=r.sprintf(' rowspan="%s"',e['_'+d+'_rowspan'])),e['_'+d+'_colspan']&&(x=r.sprintf(' colspan="%s"',e['_'+d+'_colspan'])),e['_'+d+'_title']&&(S=r.sprintf(' title="%s"',e['_'+d+'_title'])),b=r.calculateObjectValue(o.header,o.header.cellStyles[p],[u,e,t,d],b),b.classes&&(y=' class="'+b.classes+'"'),b.css){var P=[],C=!0,T=!1,O=void 0;try{for(var _,R=Object.entries(b.css)[Symbol.iterator]();!(C=(_=R.next()).done);C=!0){var I=_.value,A=a(I,2),F=A[0],V=A[1];P.push(F+': '+V)}}catch(e){T=!0,O=e}finally{try{!C&&R.return&&R.return()}finally{if(T)throw O}}w=' style="'+P.concat(o.header.styles[p]).join('; ')+'"'}if(g=r.calculateObjectValue($,o.header.formatters[p],[u,e,t,d],u),e['_'+d+'_data']&&!l.isEmptyObject(e['_'+d+'_data'])){var B=!0,N=!1,j=void 0;try{for(var L,H=Object.entries(e['_'+d+'_data'])[Symbol.iterator]();!(B=(L=H.next()).done);B=!0){var D=L.value,E=a(D,2),z=E[0],U=E[1];if('index'===z)return;v+=' data-'+z+'="'+U+'"'}}catch(e){N=!0,j=e}finally{try{!B&&H.return&&H.return()}finally{if(N)throw j}}}if($.checkbox||$.radio){f=$.checkbox?'checkbox':f,f=$.radio?'radio':f;var q=$['class']||'',c=!0===g||u||g&&g.checked,W=!$.checkboxEnabled||g&&g.disabled;h=[o.options.cardView?'
    ':'','',o.header.formatters[p]&&'string'==typeof g?g:'',o.options.cardView?'
    ':''].join(''),e[o.header.stateField]=!0===g||!!u||g&&g.checked}else if(g='undefined'==typeof g||null===g?o.options.undefinedText:g,o.options.cardView){var M=o.options.showHeader?''+r.getFieldTitle(o.columns,d)+'':'';h='
    '+M+''+g+'
    ',o.options.smartDisplay&&''===g&&(h='
    ')}else h=''+g+'';i.push(h)}}),this.options.cardView&&i.push('
    '),i.push(''),i.join('')}}},{key:'initBody',value:function(e){var t=this,o=this.getData();this.trigger('pre-body',o),this.$body=this.$el.find('>tbody'),this.$body.length||(this.$body=l('').appendTo(this.$el)),this.options.pagination&&'server'!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=o.length);for(var n=l(document.createDocumentFragment()),s=!1,d=this.pageFrom-1;d'+r.sprintf('%s',this.$header.find('th').length,this.options.formatNoMatches())+''),e||this.scrollTo(0),this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick',function(e){var o=e.currentTarget,i=e.type,a=e.target,n=l(o),s=n.parent(),d=t.data[s.data('index')],p=n[0].cellIndex,c=t.getVisibleFields(),h=c[t.options.detailView&&!t.options.cardView?p-1:p],u=t.columns[t.fieldsColumnsIndex[h]],g=r.getItemField(d,h,t.options.escape);if(!n.find('.detail-icon').length&&(t.trigger('click'===i?'click-cell':'dbl-click-cell',h,g,d,n),t.trigger('click'===i?'click-row':'dbl-click-row',d,s,h),'click'===i&&t.options.clickToSelect&&u.clickToSelect&&!t.options.ignoreClickToSelectOn(a))){var f=s.find(r.sprintf('[name="%s"]',t.options.selectItemName));f.length&&f[0].click()}}),this.$body.find('> tr[data-index] > td > .detail-icon').off('click').on('click',function(i){i.preventDefault();var e=l(i.currentTarget),a=e.parent().parent(),n=a.data('index'),s=o[n];if(a.next().is('tr.detail-view'))e.find('i').attr('class',r.sprintf('%s %s',t.options.iconsPrefix,t.options.icons.detailOpen)),t.trigger('collapse-row',n,s,a.next()),a.next().remove();else{e.find('i').attr('class',r.sprintf('%s %s',t.options.iconsPrefix,t.options.icons.detailClose)),a.after(r.sprintf('',a.find('td').length));var d=a.next().find('td'),p=r.calculateObjectValue(t.options,t.options.detailFormatter,[n,s,d],'');1===d.length&&d.append(p),t.trigger('expand-row',n,s,d)}return t.resetView(),!1}),this.$selectItem=this.$body.find(r.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off('click').on('click',function(o){o.stopImmediatePropagation();var e=l(o.currentTarget);t.check_(e.prop('checked'),e.data('index'))}),this.header.events.forEach(function(e,o){var i=e;if(i){'string'==typeof i&&(i=r.calculateObjectValue(null,i));var n=t.header.fields[o],s=t.getVisibleFields().indexOf(n);if(-1!==s){t.options.detailView&&!t.options.cardView&&(s+=1);var d=function(e,o){t.$body.find('>tr:not(.no-records-found)').each(function(a,i){var r=l(i),d=r.find(t.options.cardView?'.card-view':'td').eq(s),p=e.indexOf(' '),c=e.substring(0,p),h=e.substring(p+1);d.find(h).off(c).on(c,function(i){var e=r.data('index'),a=t.data[e],s=a[n];o.apply(t,[i,s,a,e])})})},p=!0,c=!1,h=void 0;try{for(var u,g=Object.entries(i)[Symbol.iterator]();!(p=(u=g.next()).done);p=!0){var f=u.value,b=a(f,2),m=b[0],y=b[1];d(m,y)}}catch(e){c=!0,h=e}finally{try{!p&&g.return&&g.return()}finally{if(c)throw h}}}}}),this.updateSelected(),this.resetView(),this.trigger('post-body',o)}},{key:'initServer',value:function(e,t,o){var i=this,a={},n=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if((this.header.sortNames[n]&&(s.sortName=this.header.sortNames[n]),this.options.pagination&&'server'===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),o||this.options.url||this.options.ajax)&&('limit'===this.options.queryParamsType&&(s={search:s.searchText,sort:s.sortName,order:s.sortOrder},this.options.pagination&&'server'===this.options.sidePagination&&(s.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),s.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===s.limit&&delete s.limit)),l.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),a=r.calculateObjectValue(this.options,this.options.queryParams,[s],a),l.extend(a,t||{}),!1!==a)){e||this.$tableLoading.show();var d=l.extend({},r.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:o||this.options.url,data:'application/json'===this.options.contentType&&'post'===this.options.method?JSON.stringify(a):a,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){var o=r.calculateObjectValue(i.options,i.options.responseHandler,[t],t);i.load(o),i.trigger('load-success',o),e||i.$tableLoading.hide()},error:function(t){var o=[];'server'===i.options.sidePagination&&(o={},o[i.options.totalField]=0,o[i.options.dataField]=[]),i.load(o),i.trigger('load-error',t.status,t),e||i.$tableLoading.hide()}});this.options.ajax?r.calculateObjectValue(this,this.options.ajax,[d],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=l.ajax(d))}}},{key:'initSearchText',value:function(){if(this.options.search&&(this.searchText='',''!==this.options.searchText)){var e=this.$toolbar.find('.search input');e.val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0})}}},{key:'getCaret',value:function(){var e=this;this.$header.find('th').each(function(t,o){l(o).find('.sortable').removeClass('desc asc').addClass(l(o).data('field')===e.options.sortName?e.options.sortOrder:'both')})}},{key:'updateSelected',value:function(){var e=this.$selectItem.filter(':enabled').length&&this.$selectItem.filter(':enabled').length===this.$selectItem.filter(':enabled').filter(':checked').length;this.$selectAll.add(this.$selectAll_).prop('checked',e),this.$selectItem.each(function(e,t){l(t).closest('tr')[l(t).prop('checked')?'addClass':'removeClass']('selected')})}},{key:'updateRows',value:function(){var e=this;this.$selectItem.each(function(t,o){e.data[l(o).data('index')][e.header.stateField]=l(o).prop('checked')})}},{key:'resetRows',value:function(){var e=!0,t=!1,o=void 0;try{for(var i,a,n=this.data[Symbol.iterator]();!(e=(i=n.next()).done);e=!0)a=i.value,this.$selectAll.prop('checked',!1),this.$selectItem.prop('checked',!1),this.header.stateField&&(a[this.header.stateField]=!1)}catch(e){t=!0,o=e}finally{try{!e&&n.return&&n.return()}finally{if(t)throw o}}this.initHiddenRows()}},{key:'trigger',value:function(e){for(var o,i=e+'.bs.table',a=arguments.length,n=Array(1t.clientWidth&&t.scrollHeight>t.clientHeight+this.$header.outerHeight()?r.getScrollBarWidth():0;this.$el.css('margin-top',-this.$header.outerHeight());var i=l(':focus');if(0tr:first-child:not(.no-records-found)');d.length&&d.find('>td[colspan]:not([colspan="1"])').length;)d=d.next();d.find('> *').each(function(t,o){var i=l(o),a=t;if(e.options.detailView&&!e.options.cardView){if(0===t){var d=s.filter('.detail'),p=d.width()-d.find('.fht-cell').width();d.find('.fht-cell').width(i.innerWidth()-p)}a=t-1}if(-1!==a){var c=e.$header_.find(r.sprintf('th[data-field="%s"]',n[a]));1
     
    ');var o=!0,i=!1,n=void 0;try{for(var s,d=this.columns[Symbol.iterator]();!(o=(s=d.next()).done);o=!0){var p=s.value,c='',h='',u=[],g={},f=r.sprintf(' class="%s"',p['class']);if(!p.visible)return;if(this.options.cardView&&!p.cardVisible)return;if(c=r.sprintf('text-align: %s; ',p.falign?p.falign:p.align),h=r.sprintf('vertical-align: %s; ',p.valign),g=r.calculateObjectValue(null,this.options.footerStyle),g&&g.css){var b=!0,m=!1,y=void 0;try{for(var w,v=Object.keys(g.css)[Symbol.iterator]();!(b=(w=v.next()).done);b=!0){var k=w.value,x=a(k,2),S=x[0],$=x[1];u.push(S+': '+$)}}catch(e){m=!0,y=e}finally{try{!b&&v.return&&v.return()}finally{if(m)throw y}}}t.push(''),t.push('
    '),t.push(r.calculateObjectValue(p,p.footerFormatter,[e],' ')||' '),t.push('
    '),t.push('
    '),t.push(''),t.push('')}}catch(e){i=!0,n=e}finally{try{!o&&d.return&&d.return()}finally{if(i)throw n}}this.$tableFooter.find('tr').html(t.join('')),this.$tableFooter.show(),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(l.proxy(this.fitFooter,this),this.$el.is(':hidden')?100:0)}}},{key:'fitFooter',value:function(){if(clearTimeout(this.timeoutFooter_),this.$el.is(':hidden'))return void(this.timeoutFooter_=setTimeout(l.proxy(this.fitFooter,this),100));var e=this.$el.css('width'),t=e>this.$tableBody.width()?r.getScrollBarWidth():0;this.$tableFooter.css({"margin-right":t}).find('table').css('width',e).attr('class',this.$el.attr('class'));var o=this.$tableFooter.find('td');this.$body.find('>tr:first-child:not(.no-records-found) > *').each(function(e,t){var i=l(t);o.eq(e).find('.fht-cell').width(i.innerWidth())}),this.horizontalScroll()}},{key:'horizontalScroll',value:function(){var e=this;this.trigger('scroll-body'),this.$tableBody.off('scroll').on('scroll',function(t){var o=t.currentTarget;e.options.showHeader&&e.options.height&&e.$tableHeader.scrollLeft(l(o).scrollLeft()),e.options.showFooter&&!e.options.cardView&&e.$tableFooter.scrollLeft(l(o).scrollLeft())})}},{key:'toggleColumn',value:function(e,t,o){if(-1!==e&&(this.columns[e].visible=t,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var i=this.$toolbar.find('.keep-open input').prop('disabled',!1);o&&i.filter(r.sprintf('[value="%s"]',e)).prop('checked',t),i.filter(':checked').length<=this.options.minimumCountColumns&&i.filter(':checked').prop('disabled',!0)}}},{key:'getVisibleFields',value:function(){var e=[],t=!0,o=!1,i=void 0;try{for(var a,n=this.header.fields[Symbol.iterator]();!(t=(a=n.next()).done);t=!0){var s=a.value,l=this.columns[this.fieldsColumnsIndex[s]];l.visible&&e.push(s)}}catch(e){o=!0,i=e}finally{try{!t&&n.return&&n.return()}finally{if(o)throw i}}return e}},{key:'resetView',value:function(e){var t=0;if(e&&e.height&&(this.options.height=e.height),this.$selectAll.prop('checked',0tr');this.options.detailView&&!this.options.cardView&&(o+=1);var r=l.eq(t).find('>td').eq(o);if(!(0>t||0>o||t>=this.data.length)){for(s=t;std').eq(i).hide();r.attr('rowspan',a).attr('colspan',n).show()}}},{key:'updateCell',value:function(e){e.hasOwnProperty('index')&&e.hasOwnProperty('field')&&e.hasOwnProperty('value')&&(this.data[e.index][e.field]=e.value,!1===e.reinit||(this.initSort(),this.initBody(!0)))}},{key:'updateCellById',value:function(e){var t=this;if(e.hasOwnProperty('id')&&e.hasOwnProperty('field')&&e.hasOwnProperty('value')){var o=Array.isArray(e)?e:[e];o.forEach(function(e){var o=e.id,i=e.field,a=e.value,n=t.options.data.indexOf(t.getRowByUniqueId(o));-1===n||(t.data[n][i]=a)}),!1===e.reinit||(this.initSort(),this.initBody(!0))}}},{key:'getOptions',value:function(){var e=l.extend({},this.options);return delete e.data,l.extend(!0,{},e)}},{key:'getSelections',value:function(){var e=this;return this.options.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:'getAllSelections',value:function(){var e=this;return this.options.data.filter(function(t){return t[e.header.stateField]})}},{key:'checkAll',value:function(){this.checkAll_(!0)}},{key:'uncheckAll',value:function(){this.checkAll_(!1)}},{key:'checkInvert',value:function(){var e=this.$selectItem.filter(':enabled'),t=e.filter(':checked');e.each(function(e,t){l(t).prop('checked',!l(t).prop('checked'))}),this.updateRows(),this.updateSelected(),this.trigger('uncheck-some',t),t=this.getSelections(),this.trigger('check-some',t)}},{key:'checkAll_',value:function(e){var t;e||(t=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop('checked',e),this.$selectItem.filter(':enabled').prop('checked',e),this.updateRows(),e&&(t=this.getSelections()),this.trigger(e?'check-all':'uncheck-all',t)}},{key:'check',value:function(e){this.check_(!0,e)}},{key:'uncheck',value:function(e){this.check_(!1,e)}},{key:'check_',value:function(e,t){var o=this.$selectItem.filter('[data-index="'+t+'"]'),i=this.data[t];if(o.is(':radio')||this.options.singleSelect){var a=!0,n=!1,s=void 0;try{for(var l,d,r=this.options.data[Symbol.iterator]();!(a=(l=r.next()).done);a=!0)d=l.value,d[this.header.stateField]=!1}catch(e){n=!0,s=e}finally{try{!a&&r.return&&r.return()}finally{if(n)throw s}}this.$selectItem.filter(':checked').not(o).prop('checked',!1)}i[this.header.stateField]=e,o.prop('checked',e),this.updateSelected(),this.trigger(e?'check':'uncheck',this.data[t],o)}},{key:'checkBy',value:function(e){this.checkBy_(!0,e)}},{key:'uncheckBy',value:function(e){this.checkBy_(!1,e)}},{key:'checkBy_',value:function(e,t){var o=this;if(t.hasOwnProperty('field')&&t.hasOwnProperty('values')){var a=[];this.options.data.forEach(function(n,s){if(!n.hasOwnProperty(t.field))return!1;if(t.values.includes(n[t.field])){var i=o.$selectItem.filter(':enabled').filter(r.sprintf('[data-index="%s"]',s)).prop('checked',e);n[o.header.stateField]=e,a.push(n),o.trigger(e?'check':'uncheck',n,i)}}),this.updateSelected(),this.trigger(e?'check-some':'uncheck-some',a)}}},{key:'destroy',value:function(){this.$el.insertBefore(this.$container),l(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css('margin-top','0').attr('class',this.$el_.attr('class')||'')}},{key:'showLoading',value:function(){this.$tableLoading.show()}},{key:'hideLoading',value:function(){this.$tableLoading.hide()}},{key:'togglePagination',value:function(){this.options.pagination=!this.options.pagination;var e=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?e.attr('class',this.options.iconsPrefix+' '+this.options.icons.paginationSwitchDown):e.attr('class',this.options.iconsPrefix+' '+this.options.icons.paginationSwitchUp),this.updatePagination()}},{key:'toggleFullscreen',value:function(){this.$el.closest('.bootstrap-table').toggleClass('fullscreen')}},{key:'refresh',value:function(e){e&&e.url&&(this.options.url=e.url),e&&e.pageNumber&&(this.options.pageNumber=e.pageNumber),e&&e.pageSize&&(this.options.pageSize=e.pageSize),this.initServer(e&&e.silent,e&&e.query,e&&e.url),this.trigger('refresh',e)}},{key:'resetWidth',value:function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&!this.options.cardView&&this.fitFooter()}},{key:'showColumn',value:function(e){this.toggleColumn(this.fieldsColumnsIndex[e],!0,!0)}},{key:'hideColumn',value:function(e){this.toggleColumn(this.fieldsColumnsIndex[e],!1,!0)}},{key:'getHiddenColumns',value:function(){return this.columns.filter(function(e){var t=e.visible;return!t})}},{key:'getVisibleColumns',value:function(){return this.columns.filter(function(e){var t=e.visible;return t})}},{key:'toggleAllColumns',value:function(e){var t=!0,o=!1,i=void 0;try{for(var a,n,s=this.columns[Symbol.iterator]();!(t=(a=s.next()).done);t=!0)n=a.value,n.visible=e}catch(e){o=!0,i=e}finally{try{!t&&s.return&&s.return()}finally{if(o)throw i}}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var l=this.$toolbar.find('.keep-open input').prop('disabled',!1);l.filter(':checked').length<=this.options.minimumCountColumns&&l.filter(':checked').prop('disabled',!0)}}},{key:'showAllColumns',value:function(){this.toggleAllColumns(!0)}},{key:'hideAllColumns',value:function(){this.toggleAllColumns(!1)}},{key:'filterBy',value:function(e){this.filterColumns=l.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:'scrollTo',value:function(e){if('undefined'==typeof e)return this.$tableBody.scrollTop();var t=e;'string'==typeof e&&'bottom'===e&&(t=this.$tableBody[0].scrollHeight),this.$tableBody.scrollTop(t)}},{key:'getScrollPosition',value:function(){return this.scrollTo()}},{key:'selectPage',value:function(e){0 tr[data-index="%s"]',t));o.next().is('tr.detail-view')===!e&&o.find('> td > .detail-icon').click()}},{key:'expandRow',value:function(e){this.expandRow_(!0,e)}},{key:'collapseRow',value:function(e){this.expandRow_(!1,e)}},{key:'expandAllRows',value:function(e){var t=this;if(e){var o=this.$body.find(r.sprintf('> tr[data-index="%s"]',0)),a=null,n=!1,s=-1;if(o.next().is('tr.detail-view')?!o.next().next().is('tr.detail-view')&&(o.next().find('.detail-icon').click(),n=!0):(o.find('> td > .detail-icon').click(),n=!0),n)try{s=setInterval(function(){a=t.$body.find('tr.detail-view').last().find('.detail-icon'),0 - */ -(function ($) { - 'use strict'; +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableZhCN = mod.exports; + } +})(this, function () { + 'use strict'; + /** + * Bootstrap Table Chinese translation + * Author: Zhixin Wen + */ + (function ($) { $.fn.bootstrapTable.locales['zh-CN'] = { - formatLoadingMessage: function () { - return '正在努力地加载数据中,请稍候……'; - }, - formatRecordsPerPage: function (pageNumber) { - return '每页显示 ' + pageNumber + ' 条记录'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '显示第 ' + pageFrom + ' 到第 ' + pageTo + ' 条记录,总共 ' + totalRows + ' 条记录'; - }, - formatSearch: function () { - return '搜索'; - }, - formatNoMatches: function () { - return '没有找到匹配的记录'; - }, - formatPaginationSwitch: function () { - return '隐藏/显示分页'; - }, - formatRefresh: function () { - return '刷新'; - }, - formatToggle: function () { - return '切换'; - }, - formatColumns: function () { - return '列'; - }, - formatExport: function () { - return '导出数据'; - }, - formatClearFilters: function () { - return '清空过滤'; - } + formatLoadingMessage: function formatLoadingMessage() { + return '正在努力地加载数据中,请稍候……'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return '\u6BCF\u9875\u663E\u793A ' + pageNumber + ' \u6761\u8BB0\u5F55'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u663E\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 ' + totalRows + ' \u6761\u8BB0\u5F55'; + }, + formatSearch: function formatSearch() { + return '搜索'; + }, + formatNoMatches: function formatNoMatches() { + return '没有找到匹配的记录'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return '隐藏/显示分页'; + }, + formatRefresh: function formatRefresh() { + return '刷新'; + }, + formatToggle: function formatToggle() { + return '切换'; + }, + formatColumns: function formatColumns() { + return '列'; + }, + formatExport: function formatExport() { + return '导出数据'; + }, + formatClearFilters: function formatClearFilters() { + return '清空过滤'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']); - -})(jQuery); + })(jQuery); +}); \ No newline at end of file diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js index 3f41c1b..eb8d9ff 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js @@ -1,7 +1,10 @@ -/* -* bootstrap-table - v1.11.0 - 2016-07-02 -* https://github.com/wenzhixin/bootstrap-table -* Copyright (c) 2016 zhixin wen -* Licensed MIT License -*/ -!function(a){"use strict";a.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(a){return"每页显示 "+a+" 条记录"},formatShowingRows:function(a,b,c){return"显示第 "+a+" 到第 "+b+" 条记录,总共 "+c+" 条记录"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"},formatExport:function(){return"导出数据"},formatClearFilters:function(){return"清空过滤"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["zh-CN"])}(jQuery); \ No newline at end of file +/** + * bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3). + * + * @version v1.13.4 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableZhCN={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['zh-CN']={formatLoadingMessage:function(){return'\u6B63\u5728\u52AA\u529B\u5730\u52A0\u8F7D\u6570\u636E\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u2026\u2026'},formatRecordsPerPage:function(a){return'\u6BCF\u9875\u663E\u793A '+a+' \u6761\u8BB0\u5F55'},formatShowingRows:function(a,b,c){return'\u663E\u793A\u7B2C '+a+' \u5230\u7B2C '+b+' \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 '+c+' \u6761\u8BB0\u5F55'},formatSearch:function(){return'\u641C\u7D22'},formatNoMatches:function(){return'\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u8BB0\u5F55'},formatPaginationSwitch:function(){return'\u9690\u85CF/\u663E\u793A\u5206\u9875'},formatRefresh:function(){return'\u5237\u65B0'},formatToggle:function(){return'\u5207\u6362'},formatColumns:function(){return'\u5217'},formatExport:function(){return'\u5BFC\u51FA\u6570\u636E'},formatClearFilters:function(){return'\u6E05\u7A7A\u8FC7\u6EE4'}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales['zh-CN'])})(jQuery)}); \ No newline at end of file diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.js index ff3484f..1d1a2c4 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.js @@ -1,40 +1,53 @@ -/** - * Bootstrap Table Chinese translation - * Author: Zhixin Wen - */ -(function ($) { - 'use strict'; +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define([], factory); + } else if (typeof exports !== "undefined") { + factory(); + } else { + var mod = { + exports: {} + }; + factory(); + global.bootstrapTableZhTW = mod.exports; + } +})(this, function () { + 'use strict'; + /** + * Bootstrap Table Chinese translation + * Author: Zhixin Wen + */ + (function ($) { $.fn.bootstrapTable.locales['zh-TW'] = { - formatLoadingMessage: function () { - return '正在努力地載入資料,請稍候……'; - }, - formatRecordsPerPage: function (pageNumber) { - return '每頁顯示 ' + pageNumber + ' 項記錄'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '顯示第 ' + pageFrom + ' 到第 ' + pageTo + ' 項記錄,總共 ' + totalRows + ' 項記錄'; - }, - formatSearch: function () { - return '搜尋'; - }, - formatNoMatches: function () { - return '沒有找到符合的結果'; - }, - formatPaginationSwitch: function () { - return '隱藏/顯示分頁'; - }, - formatRefresh: function () { - return '重新整理'; - }, - formatToggle: function () { - return '切換'; - }, - formatColumns: function () { - return '列'; - } + formatLoadingMessage: function formatLoadingMessage() { + return '正在努力地載入資料,請稍候……'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return '\u6BCF\u9801\u986F\u793A ' + pageNumber + ' \u9805\u8A18\u9304'; + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) { + return '\u986F\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u9805\u8A18\u9304\uFF0C\u7E3D\u5171 ' + totalRows + ' \u9805\u8A18\u9304'; + }, + formatSearch: function formatSearch() { + return '搜尋'; + }, + formatNoMatches: function formatNoMatches() { + return '沒有找到符合的結果'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return '隱藏/顯示分頁'; + }, + formatRefresh: function formatRefresh() { + return '重新整理'; + }, + formatToggle: function formatToggle() { + return '切換'; + }, + formatColumns: function formatColumns() { + return '列'; + } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-TW']); - -})(jQuery); + })(jQuery); +}); \ No newline at end of file diff --git a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.min.js b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.min.js index 770b5ea..264cd09 100644 --- a/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.min.js +++ b/COMCMS.Web/wwwroot/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-TW.min.js @@ -1,7 +1,10 @@ -/* -* bootstrap-table - v1.11.0 - 2016-07-02 -* https://github.com/wenzhixin/bootstrap-table -* Copyright (c) 2016 zhixin wen -* Licensed MIT License -*/ -!function(a){"use strict";a.fn.bootstrapTable.locales["zh-TW"]={formatLoadingMessage:function(){return"正在努力地載入資料,請稍候……"},formatRecordsPerPage:function(a){return"每頁顯示 "+a+" 項記錄"},formatShowingRows:function(a,b,c){return"顯示第 "+a+" 到第 "+b+" 項記錄,總共 "+c+" 項記錄"},formatSearch:function(){return"搜尋"},formatNoMatches:function(){return"沒有找到符合的結果"},formatPaginationSwitch:function(){return"隱藏/顯示分頁"},formatRefresh:function(){return"重新整理"},formatToggle:function(){return"切換"},formatColumns:function(){return"列"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["zh-TW"])}(jQuery); \ No newline at end of file +/** + * bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3). + * + * @version v1.13.4 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableZhTW={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.fn.bootstrapTable.locales['zh-TW']={formatLoadingMessage:function(){return'\u6B63\u5728\u52AA\u529B\u5730\u8F09\u5165\u8CC7\u6599\uFF0C\u8ACB\u7A0D\u5019\u2026\u2026'},formatRecordsPerPage:function(a){return'\u6BCF\u9801\u986F\u793A '+a+' \u9805\u8A18\u9304'},formatShowingRows:function(a,b,c){return'\u986F\u793A\u7B2C '+a+' \u5230\u7B2C '+b+' \u9805\u8A18\u9304\uFF0C\u7E3D\u5171 '+c+' \u9805\u8A18\u9304'},formatSearch:function(){return'\u641C\u5C0B'},formatNoMatches:function(){return'\u6C92\u6709\u627E\u5230\u7B26\u5408\u7684\u7D50\u679C'},formatPaginationSwitch:function(){return'\u96B1\u85CF/\u986F\u793A\u5206\u9801'},formatRefresh:function(){return'\u91CD\u65B0\u6574\u7406'},formatToggle:function(){return'\u5207\u63DB'},formatColumns:function(){return'\u5217'}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales['zh-TW'])})(jQuery)}); \ No newline at end of file diff --git a/DLL/NewLife.Core.dll b/DLL/NewLife.Core.dll index 07f2a6e..c63d60a 100644 Binary files a/DLL/NewLife.Core.dll and b/DLL/NewLife.Core.dll differ diff --git a/DLL/XCode.dll b/DLL/XCode.dll index feca5e5..96ee801 100644 Binary files a/DLL/XCode.dll and b/DLL/XCode.dll differ diff --git a/XCoder/Model.xml b/XCoder/Model.xml index baaf2d7..52ea5a2 100644 --- a/XCoder/Model.xml +++ b/XCoder/Model.xml @@ -1,6 +1,6 @@ - + diff --git a/XCoder/XCoder(代码生成器).csproj b/XCoder/XCoder(代码生成器).csproj index 8c24dce..7577311 100644 --- a/XCoder/XCoder(代码生成器).csproj +++ b/XCoder/XCoder(代码生成器).csproj @@ -30,8 +30,8 @@ 4 - - ..\packages\NewLife.Core.7.4.6911.41889\lib\net45\NewLife.Core.dll + + ..\packages\NewLife.Core.8.0.6965.42074\lib\net45\NewLife.Core.dll @@ -41,8 +41,8 @@ - - ..\packages\NewLife.XCode.9.9.6911.41890\lib\net45\XCode.dll + + ..\packages\NewLife.XCode.9.10.6965.42078\lib\net45\XCode.dll diff --git a/XCoder/data.project.xml b/XCoder/data.project.xml index 590c559..1f4e256 100644 --- a/XCoder/data.project.xml +++ b/XCoder/data.project.xml @@ -1,5 +1,5 @@ - +
    diff --git a/XCoder/packages.config b/XCoder/packages.config index a735644..79c3d26 100644 --- a/XCoder/packages.config +++ b/XCoder/packages.config @@ -1,5 +1,5 @@  - - + + \ No newline at end of file