diff --git a/css/stateRestore.jqueryui.css b/css/stateRestore.jqueryui.css index cc88172..ad37c8a 100644 --- a/css/stateRestore.jqueryui.css +++ b/css/stateRestore.jqueryui.css @@ -186,7 +186,7 @@ html.dark div.dtsr-confirmation, html.dark div.dtsr-creation, html[data-bs-theme=dark] div.dtsr-confirmation, html[data-bs-theme=dark] div.dtsr-creation { - background-color: #212529; + background-color: rgb(33, 37, 41); border: 1px solid rgba(255, 255, 255, 0.15); } html.dark div.dtsr-confirmation button, @@ -195,11 +195,11 @@ html[data-bs-theme=dark] div.dtsr-confirmation button, html[data-bs-theme=dark] div.dtsr-creation button { color: inherit; border: 1px solid rgba(255, 255, 255, 0.175); - background-color: #2f3438; + background-color: rgb(47, 52, 56); } html.dark div.dtsr-confirmation button:hover, html.dark div.dtsr-creation button:hover, html[data-bs-theme=dark] div.dtsr-confirmation button:hover, html[data-bs-theme=dark] div.dtsr-creation button:hover { - background-color: #404549; + background-color: rgb(64, 69, 73); } diff --git a/css/stateRestore.jqueryui.min.css b/css/stateRestore.jqueryui.min.css index 028b12b..e0dd230 100644 --- a/css/stateRestore.jqueryui.min.css +++ b/css/stateRestore.jqueryui.min.css @@ -1 +1 @@ -div.dtsr-confirmation,div.dtsr-creation{position:fixed;top:20%;left:50%;width:500px;margin-left:-250px;background-color:white;border-radius:.75em;box-shadow:0 12px 30px rgba(0, 0, 0, 0.6);z-index:2003;box-sizing:border-box;padding:2em}div.dtsr-confirmation div.dtsr-creation-text,div.dtsr-confirmation div.dtsr-confirmation-title-row,div.dtsr-creation div.dtsr-creation-text,div.dtsr-creation div.dtsr-confirmation-title-row{text-align:left}div.dtsr-confirmation div.dtsr-creation-text h2,div.dtsr-confirmation div.dtsr-confirmation-title-row h2,div.dtsr-creation div.dtsr-creation-text h2,div.dtsr-creation div.dtsr-confirmation-title-row h2{padding-left:0;border-bottom:0px;margin-top:0px;padding-top:0px;margin-bottom:1rem}div.dtsr-confirmation div.dtsr-confirmation-text,div.dtsr-creation div.dtsr-confirmation-text{text-align:center}div.dtsr-confirmation div.dtsr-modal-foot,div.dtsr-confirmation div.dtsr-confirmation-buttons,div.dtsr-creation div.dtsr-modal-foot,div.dtsr-creation div.dtsr-confirmation-buttons{text-align:right;margin-top:1em}div.dtsr-confirmation div.dtsr-modal-foot button,div.dtsr-confirmation div.dtsr-confirmation-buttons button,div.dtsr-creation div.dtsr-modal-foot button,div.dtsr-creation div.dtsr-confirmation-buttons button{margin:0px}div.dtsr-confirmation div.dtsr-creation-text,div.dtsr-creation div.dtsr-creation-text{text-align:left;padding:0px;border:none}div.dtsr-confirmation div.dtsr-creation-text span,div.dtsr-creation div.dtsr-creation-text span{font-size:20px}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-left,div.dtsr-confirmation div.dtsr-creation-form div.dtsr-right,div.dtsr-creation div.dtsr-creation-form div.dtsr-left,div.dtsr-creation div.dtsr-creation-form div.dtsr-right{display:inline-block;width:50%}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-left,div.dtsr-creation div.dtsr-creation-form div.dtsr-left{text-align:right}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-right,div.dtsr-confirmation div.dtsr-creation-form div.dtsr-name-row,div.dtsr-creation div.dtsr-creation-form div.dtsr-right,div.dtsr-creation div.dtsr-creation-form div.dtsr-name-row{text-align:left}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row{display:flex;margin:.5em 0}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row:first-child,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row:first-child{margin-top:1em;margin-bottom:1em}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row:last-child,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row:last-child{margin-bottom:0}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row label,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row label{width:25%;padding-right:1em;text-align:right;padding-top:2px}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input{width:75%}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label{margin-bottom:.5em}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label input,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label input{margin-right:.5em}div.dtsr-confirmation div.dtsr-confirmation-text,div.dtsr-creation div.dtsr-confirmation-text{text-align:left}div.dtsr-confirmation div.dtsr-confirmation-text label.dtsr-name-label,div.dtsr-creation div.dtsr-confirmation-text label.dtsr-name-label{width:auto;display:inline-block;text-align:right;padding-right:15px}div.dtsr-confirmation div.dtsr-confirmation-text input.dtsr-name-input,div.dtsr-creation div.dtsr-confirmation-text input.dtsr-name-input{width:66.6%;display:inline-block}div.dtsr-confirmation div.dtsr-modal-foot,div.dtsr-creation div.dtsr-modal-foot{text-align:right;padding-top:10px}div.dtsr-confirmation span.dtsr-modal-error,div.dtsr-creation span.dtsr-modal-error{color:red;font-size:.9em}div.dtsr-creation{top:10%}div.dtsr-check-row{padding-top:0px}div.dtsr-popover-close{position:absolute;top:10px;right:10px;width:22px;height:22px;text-align:center;border-radius:3px;cursor:pointer;z-index:12}div.dtsr-background{z-index:2002;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);background:radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%)}div.dt-button-collection h3{text-align:center;margin-top:4px;margin-bottom:8px;font-size:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}div.dt-button-collection span.dtsr-emptyStates{border-radius:5px;display:inline-block;line-height:1.6em;white-space:nowrap;text-align:center;vertical-align:middle;width:100%;padding-bottom:7px;padding-top:3px}html.dark div.dtsr-confirmation,html.dark div.dtsr-creation,html[data-bs-theme=dark] div.dtsr-confirmation,html[data-bs-theme=dark] div.dtsr-creation{background-color:#212529;border:1px solid rgba(255, 255, 255, 0.15)}html.dark div.dtsr-confirmation button,html.dark div.dtsr-creation button,html[data-bs-theme=dark] div.dtsr-confirmation button,html[data-bs-theme=dark] div.dtsr-creation button{color:inherit;border:1px solid rgba(255, 255, 255, 0.175);background-color:#2f3438}html.dark div.dtsr-confirmation button:hover,html.dark div.dtsr-creation button:hover,html[data-bs-theme=dark] div.dtsr-confirmation button:hover,html[data-bs-theme=dark] div.dtsr-creation button:hover{background-color:#404549} +div.dtsr-confirmation,div.dtsr-creation{position:fixed;top:20%;left:50%;width:500px;margin-left:-250px;background-color:white;border-radius:.75em;box-shadow:0 12px 30px rgba(0, 0, 0, 0.6);z-index:2003;box-sizing:border-box;padding:2em}div.dtsr-confirmation div.dtsr-creation-text,div.dtsr-confirmation div.dtsr-confirmation-title-row,div.dtsr-creation div.dtsr-creation-text,div.dtsr-creation div.dtsr-confirmation-title-row{text-align:left}div.dtsr-confirmation div.dtsr-creation-text h2,div.dtsr-confirmation div.dtsr-confirmation-title-row h2,div.dtsr-creation div.dtsr-creation-text h2,div.dtsr-creation div.dtsr-confirmation-title-row h2{padding-left:0;border-bottom:0px;margin-top:0px;padding-top:0px;margin-bottom:1rem}div.dtsr-confirmation div.dtsr-confirmation-text,div.dtsr-creation div.dtsr-confirmation-text{text-align:center}div.dtsr-confirmation div.dtsr-modal-foot,div.dtsr-confirmation div.dtsr-confirmation-buttons,div.dtsr-creation div.dtsr-modal-foot,div.dtsr-creation div.dtsr-confirmation-buttons{text-align:right;margin-top:1em}div.dtsr-confirmation div.dtsr-modal-foot button,div.dtsr-confirmation div.dtsr-confirmation-buttons button,div.dtsr-creation div.dtsr-modal-foot button,div.dtsr-creation div.dtsr-confirmation-buttons button{margin:0px}div.dtsr-confirmation div.dtsr-creation-text,div.dtsr-creation div.dtsr-creation-text{text-align:left;padding:0px;border:none}div.dtsr-confirmation div.dtsr-creation-text span,div.dtsr-creation div.dtsr-creation-text span{font-size:20px}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-left,div.dtsr-confirmation div.dtsr-creation-form div.dtsr-right,div.dtsr-creation div.dtsr-creation-form div.dtsr-left,div.dtsr-creation div.dtsr-creation-form div.dtsr-right{display:inline-block;width:50%}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-left,div.dtsr-creation div.dtsr-creation-form div.dtsr-left{text-align:right}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-right,div.dtsr-confirmation div.dtsr-creation-form div.dtsr-name-row,div.dtsr-creation div.dtsr-creation-form div.dtsr-right,div.dtsr-creation div.dtsr-creation-form div.dtsr-name-row{text-align:left}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row{display:flex;margin:.5em 0}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row:first-child,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row:first-child{margin-top:1em;margin-bottom:1em}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row:last-child,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row:last-child{margin-bottom:0}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row label,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row label{width:25%;padding-right:1em;text-align:right;padding-top:2px}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input{width:75%}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label{margin-bottom:.5em}div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label input,div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label input{margin-right:.5em}div.dtsr-confirmation div.dtsr-confirmation-text,div.dtsr-creation div.dtsr-confirmation-text{text-align:left}div.dtsr-confirmation div.dtsr-confirmation-text label.dtsr-name-label,div.dtsr-creation div.dtsr-confirmation-text label.dtsr-name-label{width:auto;display:inline-block;text-align:right;padding-right:15px}div.dtsr-confirmation div.dtsr-confirmation-text input.dtsr-name-input,div.dtsr-creation div.dtsr-confirmation-text input.dtsr-name-input{width:66.6%;display:inline-block}div.dtsr-confirmation div.dtsr-modal-foot,div.dtsr-creation div.dtsr-modal-foot{text-align:right;padding-top:10px}div.dtsr-confirmation span.dtsr-modal-error,div.dtsr-creation span.dtsr-modal-error{color:red;font-size:.9em}div.dtsr-creation{top:10%}div.dtsr-check-row{padding-top:0px}div.dtsr-popover-close{position:absolute;top:10px;right:10px;width:22px;height:22px;text-align:center;border-radius:3px;cursor:pointer;z-index:12}div.dtsr-background{z-index:2002;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);background:radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%)}div.dt-button-collection h3{text-align:center;margin-top:4px;margin-bottom:8px;font-size:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}div.dt-button-collection span.dtsr-emptyStates{border-radius:5px;display:inline-block;line-height:1.6em;white-space:nowrap;text-align:center;vertical-align:middle;width:100%;padding-bottom:7px;padding-top:3px}html.dark div.dtsr-confirmation,html.dark div.dtsr-creation,html[data-bs-theme=dark] div.dtsr-confirmation,html[data-bs-theme=dark] div.dtsr-creation{background-color:rgb(33, 37, 41);border:1px solid rgba(255, 255, 255, 0.15)}html.dark div.dtsr-confirmation button,html.dark div.dtsr-creation button,html[data-bs-theme=dark] div.dtsr-confirmation button,html[data-bs-theme=dark] div.dtsr-creation button{color:inherit;border:1px solid rgba(255, 255, 255, 0.175);background-color:rgb(47, 52, 56)}html.dark div.dtsr-confirmation button:hover,html.dark div.dtsr-creation button:hover,html[data-bs-theme=dark] div.dtsr-confirmation button:hover,html[data-bs-theme=dark] div.dtsr-creation button:hover{background-color:rgb(64, 69, 73)} diff --git a/datatables.json b/datatables.json index e82e7b9..ea4bd94 100644 --- a/datatables.json +++ b/datatables.json @@ -14,5 +14,5 @@ ], "src-repo": "http://github.com/DataTables/StateRestore", "last-tag": "1.3.0", - "last-sync": "1858717e940dca2ac4f3adc835cf418b4c41bd54" + "last-sync": "b797bee4e03d45ed33702a1921efc41e75120121" } \ No newline at end of file diff --git a/js/stateRestore.jqueryui.js b/js/stateRestore.jqueryui.js index b1d3bc8..0cd24b0 100644 --- a/js/stateRestore.jqueryui.js +++ b/js/stateRestore.jqueryui.js @@ -47,7 +47,7 @@ // Browser factory( jQuery, window, document ); } -}(function( $, window, document, undefined ) { +}(function( $, window, document ) { 'use strict'; var DataTable = $.fn.dataTable; diff --git a/js/stateRestore.jqueryui.min.js b/js/stateRestore.jqueryui.min.js index 4f02454..57ce374 100644 --- a/js/stateRestore.jqueryui.min.js +++ b/js/stateRestore.jqueryui.min.js @@ -1,4 +1,4 @@ /*! Bootstrap integration for DataTables' StateRestore * © SpryMedia Ltd - datatables.net/license */ -!function(o){var n,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net-jqui","datatables.net-staterestore"],function(e){return o(e,window,document)}):"object"==typeof exports?(n=require("jquery"),r=function(e,t){t.fn.dataTable||require("datatables.net-jqui")(e,t),t.fn.dataTable.StateRestore||require("datatables.net-staterestore")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||n(e),r(e,t),o(t,0,e.document)}:(r(window,n),module.exports=o(n,window,window.document))):o(jQuery,window,document)}(function(e,t,o,n){"use strict";var r=e.fn.dataTable;return e.extend(!0,r.StateRestoreCollection.classes,{checkBox:"dtsr-check-box form-check-input",checkLabel:"dtsr-check-label form-check-label",checkRow:"dtsr-check-row form",creationButton:"dtsr-creation-button ui-button ui-corner-all ui-widget",creationForm:"dtsr-creation-form modal-body",creationText:"dtsr-creation-text modal-header",creationTitle:"dtsr-creation-title modal-title",nameInput:"dtsr-name-input form-control",nameLabel:"dtsr-name-label form-label",nameRow:"dtsr-name-row medium-6 cell"}),e.extend(!0,r.StateRestore.classes,{confirmationButton:"dtsr-confirmation-button ui-button ui-state-default ui-button-text-only ui-corner-all ui-widget"}),r}); \ No newline at end of file +!function(o){var n,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net-jqui","datatables.net-staterestore"],function(e){return o(e,window,document)}):"object"==typeof exports?(n=require("jquery"),r=function(e,t){t.fn.dataTable||require("datatables.net-jqui")(e,t),t.fn.dataTable.StateRestore||require("datatables.net-staterestore")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||n(e),r(e,t),o(t,0,e.document)}:(r(window,n),module.exports=o(n,window,window.document))):o(jQuery,window,document)}(function(e,t,o){"use strict";var n=e.fn.dataTable;return e.extend(!0,n.StateRestoreCollection.classes,{checkBox:"dtsr-check-box form-check-input",checkLabel:"dtsr-check-label form-check-label",checkRow:"dtsr-check-row form",creationButton:"dtsr-creation-button ui-button ui-corner-all ui-widget",creationForm:"dtsr-creation-form modal-body",creationText:"dtsr-creation-text modal-header",creationTitle:"dtsr-creation-title modal-title",nameInput:"dtsr-name-input form-control",nameLabel:"dtsr-name-label form-label",nameRow:"dtsr-name-row medium-6 cell"}),e.extend(!0,n.StateRestore.classes,{confirmationButton:"dtsr-confirmation-button ui-button ui-state-default ui-button-text-only ui-corner-all ui-widget"}),n}); \ No newline at end of file diff --git a/types/stateRestore.jqueryui.d.ts b/types/stateRestore.jqueryui.d.ts index 0968fca..e13fa2b 100644 --- a/types/stateRestore.jqueryui.d.ts +++ b/types/stateRestore.jqueryui.d.ts @@ -1,4 +1,5 @@ -/*! Bootstrap integration for DataTables' StateRestore - * © SpryMedia Ltd - datatables.net/license - */ -declare var DataTable: any; + +import DataTable from 'datatables.net-staterestore'; + +export default DataTable; +export * from 'datatables.net-staterestore';