mirror of https://github.com/ColorlibHQ/AdminLTE
Merge remote-tracking branch 'origin/master' into feat/iframe-plugin
commit
1b6767c07a
|
@ -245,6 +245,18 @@ const Plugins = [
|
||||||
from: 'node_modules/datatables.net-scroller-bs4/css',
|
from: 'node_modules/datatables.net-scroller-bs4/css',
|
||||||
to: 'plugins/datatables-scroller/css'
|
to: 'plugins/datatables-scroller/css'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
from: 'node_modules/datatables.net-searchpanes/js',
|
||||||
|
to: 'plugins/datatables-searchpanes/js'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
from: 'node_modules/datatables.net-searchpanes-bs4/js',
|
||||||
|
to: 'plugins/datatables-searchpanes/js'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
from: 'node_modules/datatables.net-searchpanes-bs4/css',
|
||||||
|
to: 'plugins/datatables-searchpanes/css'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
from: 'node_modules/datatables.net-select/js',
|
from: 'node_modules/datatables.net-select/js',
|
||||||
to: 'plugins/datatables-select/js'
|
to: 'plugins/datatables-select/js'
|
||||||
|
|
|
@ -49,6 +49,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.dropdown-legacy .dropdown-menu {
|
||||||
|
top: $nav-link-height + $navbar-padding-y;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add this class to images within a nav-link
|
// Add this class to images within a nav-link
|
||||||
|
|
|
@ -2,7 +2,7 @@ source 'https://rubygems.org'
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'jekyll', '~> 4.1.1'
|
gem 'jekyll', '~> 4.1.1'
|
||||||
gem 'jekyll-seo-tag', '~> 2.6.1'
|
gem 'jekyll-seo-tag', '~> 2.7.1'
|
||||||
gem 'jekyll-sitemap', '~> 1.4.0'
|
gem 'jekyll-sitemap', '~> 1.4.0'
|
||||||
gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform?
|
gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform?
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,8 +4,8 @@ GEM
|
||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
concurrent-ruby (1.1.6)
|
concurrent-ruby (1.1.7)
|
||||||
em-websocket (0.5.1)
|
em-websocket (0.5.2)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0.6.0)
|
http_parser.rb (~> 0.6.0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
|
@ -14,7 +14,7 @@ GEM
|
||||||
ffi (1.13.1-x64-mingw32)
|
ffi (1.13.1-x64-mingw32)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
http_parser.rb (0.6.0)
|
http_parser.rb (0.6.0)
|
||||||
i18n (1.8.3)
|
i18n (1.8.5)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jekyll (4.1.1)
|
jekyll (4.1.1)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
|
@ -33,8 +33,8 @@ GEM
|
||||||
terminal-table (~> 1.8)
|
terminal-table (~> 1.8)
|
||||||
jekyll-sass-converter (2.1.0)
|
jekyll-sass-converter (2.1.0)
|
||||||
sassc (> 2.0.1, < 3.0)
|
sassc (> 2.0.1, < 3.0)
|
||||||
jekyll-seo-tag (2.6.1)
|
jekyll-seo-tag (2.7.1)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.8, < 5.0)
|
||||||
jekyll-sitemap (1.4.0)
|
jekyll-sitemap (1.4.0)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-watch (2.2.1)
|
jekyll-watch (2.2.1)
|
||||||
|
@ -50,12 +50,12 @@ GEM
|
||||||
mercenary (0.4.0)
|
mercenary (0.4.0)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
public_suffix (4.0.5)
|
public_suffix (4.0.6)
|
||||||
rb-fsevent (0.10.4)
|
rb-fsevent (0.10.4)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rexml (3.2.4)
|
rexml (3.2.4)
|
||||||
rouge (3.21.0)
|
rouge (3.24.0)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sassc (2.4.0)
|
sassc (2.4.0)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
|
@ -72,7 +72,7 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
jekyll (~> 4.1.1)
|
jekyll (~> 4.1.1)
|
||||||
jekyll-seo-tag (~> 2.6.1)
|
jekyll-seo-tag (~> 2.7.1)
|
||||||
jekyll-sitemap (~> 1.4.0)
|
jekyll-sitemap (~> 1.4.0)
|
||||||
wdm (~> 0.1.1)
|
wdm (~> 0.1.1)
|
||||||
|
|
||||||
|
|
|
@ -570,4 +570,5 @@ Top navbar example can be found in this [demo page](https://adminlte.io/themes/d
|
||||||
|
|
||||||
> ##### Tip!
|
> ##### Tip!
|
||||||
> To get a bigger dropdown menu you can add `.dropdown-menu-lg` or `.dropdown-menu-xl` to `.dropdown-menu`.
|
> To get a bigger dropdown menu you can add `.dropdown-menu-lg` or `.dropdown-menu-xl` to `.dropdown-menu`.
|
||||||
|
> You can also get the legacy dropdown offset with adding `.dropdown-offset-legacy` to `.main-header`.
|
||||||
{: .quote-info}
|
{: .quote-info}
|
||||||
|
|
|
@ -1155,9 +1155,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@eslint/eslintrc": {
|
"@eslint/eslintrc": {
|
||||||
"version": "0.1.3",
|
"version": "0.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.2.1.tgz",
|
||||||
"integrity": "sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA==",
|
"integrity": "sha512-XRUeBZ5zBWLYgSANMpThFddrZZkEbGHgUdt5UJjZfnlN9BGCiUBrf+nvbRupSjMvqzwnQN0qwCmOxITt1cfywA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ajv": "^6.12.4",
|
"ajv": "^6.12.4",
|
||||||
|
@ -1173,9 +1173,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": {
|
"ajv": {
|
||||||
"version": "6.12.5",
|
"version": "6.12.6",
|
||||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.5.tgz",
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
|
||||||
"integrity": "sha512-lRF8RORchjpKG50/WFf8xmg7sgCLFiYNNnqdKflk63whMQcWR5ngGjiSXkL9bjxy6B2npOK2HSMN49jEBMSkag==",
|
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fast-deep-equal": "^3.1.1",
|
"fast-deep-equal": "^3.1.1",
|
||||||
|
@ -1196,9 +1196,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@fortawesome/fontawesome-free": {
|
"@fortawesome/fontawesome-free": {
|
||||||
"version": "5.14.0",
|
"version": "5.15.1",
|
||||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.1.tgz",
|
||||||
"integrity": "sha512-OfdMsF+ZQgdKHP9jUbmDcRrP0eX90XXrsXIdyjLbkmSBzmMXPABB8eobUJtivaupucYaByz6WNe1PI1JuYm3qA=="
|
"integrity": "sha512-OEdH7SyC1suTdhBGW91/zBfR6qaIhThbcN8PUXtXilY4GYnSBbVqOntdHbC1vXwsDnX0Qix2m2+DSU1J51ybOQ=="
|
||||||
},
|
},
|
||||||
"@lgaitan/pace-progress": {
|
"@lgaitan/pace-progress": {
|
||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
|
@ -2328,9 +2328,9 @@
|
||||||
"integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
|
"integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
|
||||||
},
|
},
|
||||||
"bundlewatch": {
|
"bundlewatch": {
|
||||||
"version": "0.2.7",
|
"version": "0.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/bundlewatch/-/bundlewatch-0.2.7.tgz",
|
"resolved": "https://registry.npmjs.org/bundlewatch/-/bundlewatch-0.3.1.tgz",
|
||||||
"integrity": "sha512-tTf6TZHowf2kqHMv9nk7ORDdyU8d4OCF5qjkm8jeZfY9hsOdoyvDq3xtPSw+I8eQJJhkdUvcIMp4Cd3GkUAsrA==",
|
"integrity": "sha512-yVuOHljZCxRrDgujRn7GED+7Ms8G7hQJmP8vtQWIquDwDfocJH6RdRX42mqDWhMXGdsT3qhB1GYJ5q5zFZ0AEA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
|
@ -2346,12 +2346,11 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-styles": {
|
"ansi-styles": {
|
||||||
"version": "4.2.1",
|
"version": "4.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||||
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/color-name": "^1.1.1",
|
|
||||||
"color-convert": "^2.0.1"
|
"color-convert": "^2.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2397,14 +2396,14 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"parse-json": {
|
"parse-json": {
|
||||||
"version": "5.0.0",
|
"version": "5.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz",
|
||||||
"integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==",
|
"integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.0.0",
|
"@babel/code-frame": "^7.0.0",
|
||||||
"error-ex": "^1.3.1",
|
"error-ex": "^1.3.1",
|
||||||
"json-parse-better-errors": "^1.0.1",
|
"json-parse-even-better-errors": "^2.3.0",
|
||||||
"lines-and-columns": "^1.1.6"
|
"lines-and-columns": "^1.1.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2446,9 +2445,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
"version": "7.1.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
|
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"has-flag": "^4.0.0"
|
"has-flag": "^4.0.0"
|
||||||
|
@ -2890,9 +2889,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"codemirror": {
|
"codemirror": {
|
||||||
"version": "5.58.0",
|
"version": "5.58.3",
|
||||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.58.0.tgz",
|
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.58.3.tgz",
|
||||||
"integrity": "sha512-OUK+7EgaYnLyC0F09UWjckLWvviy02IDDGTW5Zmj60a3gdGnFtUM6rVsqrfl5+YSylQVQBNfAGG4KF7tQOb4/Q=="
|
"integrity": "sha512-KBhB+juiyOOgn0AqtRmWyAT3yoElkuvWTI6hsHa9E6GQrl6bk/fdAYcvuqW1/upO9T9rtEtapWdw4XYcNiVDEA=="
|
||||||
},
|
},
|
||||||
"collapse-white-space": {
|
"collapse-white-space": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
|
@ -3293,21 +3292,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"datatables.net-buttons": {
|
"datatables.net-buttons": {
|
||||||
"version": "1.6.4",
|
"version": "1.6.5",
|
||||||
"resolved": "https://registry.npmjs.org/datatables.net-buttons/-/datatables.net-buttons-1.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/datatables.net-buttons/-/datatables.net-buttons-1.6.5.tgz",
|
||||||
"integrity": "sha512-KxiQs1UdczsT26sptLE9P550G9QFPdwcAO9o57NHIME/lfNp9qLxL0ho0mmjQfugEBrJxqff7xGkPpK6CyKDRw==",
|
"integrity": "sha512-JmV1ncTbpiDXxU/e8ucFIbNLrmlGUrWrURBLI19Rd/rT+WSbH8TmLjoFVyTFuvC4PdzyLY2swEi+O1SC1ehGKQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"datatables.net": "^1.10.15",
|
"datatables.net": "^1.10.15",
|
||||||
"jquery": ">=1.7"
|
"jquery": ">=1.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"datatables.net-buttons-bs4": {
|
"datatables.net-buttons-bs4": {
|
||||||
"version": "1.6.4",
|
"version": "1.6.5",
|
||||||
"resolved": "https://registry.npmjs.org/datatables.net-buttons-bs4/-/datatables.net-buttons-bs4-1.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/datatables.net-buttons-bs4/-/datatables.net-buttons-bs4-1.6.5.tgz",
|
||||||
"integrity": "sha512-HvfRGW1qf+fAs63SYTavZI0/3aF3tBkDtUS1Is+ZKZ5ncpAwjh0FhzrTtQ8YS4jyDDMDy2x6G8kUIzKyNmGoHg==",
|
"integrity": "sha512-GDCRZehr9t1PIAJsBdZA1cFJXeaInNLgNLG2IcN7EQLkb33kem1J+PdtIDv7/fPFqVKOAye2FqpSlcMOHXSiSw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"datatables.net-bs4": "^1.10.15",
|
"datatables.net-bs4": "^1.10.15",
|
||||||
"datatables.net-buttons": "1.6.4",
|
"datatables.net-buttons": "1.6.5",
|
||||||
"jquery": ">=1.7"
|
"jquery": ">=1.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -3463,6 +3462,25 @@
|
||||||
"jquery": ">=1.7"
|
"jquery": ">=1.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"datatables.net-searchpanes": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/datatables.net-searchpanes/-/datatables.net-searchpanes-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-SnyWsuM86dZPCMgu0Bz7BeZwbQd4yUsGeKll54sRfYLU/zmTt+1wKzrlTsaNVmFCN2xIlnur8uFj2FBNaQmNlQ==",
|
||||||
|
"requires": {
|
||||||
|
"datatables.net": "^1.10.15",
|
||||||
|
"jquery": ">=1.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"datatables.net-searchpanes-bs4": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/datatables.net-searchpanes-bs4/-/datatables.net-searchpanes-bs4-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-SOpMGerNomrar4s+23LDZQRBYrFF+m4flGjigLRTDPEaKFzRR28WXEUR5WJ6ZZlxnE7rSg5YS1qH6pIRMdDdKg==",
|
||||||
|
"requires": {
|
||||||
|
"datatables.net-bs4": "^1.10.15",
|
||||||
|
"datatables.net-searchpanes": "1.2.1",
|
||||||
|
"jquery": ">=1.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
"datatables.net-select": {
|
"datatables.net-select": {
|
||||||
"version": "1.3.1",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/datatables.net-select/-/datatables.net-select-1.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/datatables.net-select/-/datatables.net-select-1.3.1.tgz",
|
||||||
|
@ -3674,6 +3692,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"dlv": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
|
||||||
|
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"doctrine": {
|
"doctrine": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
|
||||||
|
@ -3756,9 +3780,9 @@
|
||||||
"integrity": "sha512-m217bJHtf0J1IiKn4Tv6mnu1h5QvQNBnKZ39gma7hzGQhIZMxYq1vYEHs4AVd4ThFwmALys+52NAOD4zdLTG4w=="
|
"integrity": "sha512-m217bJHtf0J1IiKn4Tv6mnu1h5QvQNBnKZ39gma7hzGQhIZMxYq1vYEHs4AVd4ThFwmALys+52NAOD4zdLTG4w=="
|
||||||
},
|
},
|
||||||
"duplexer": {
|
"duplexer": {
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",
|
||||||
"integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
|
"integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"duplexer2": {
|
"duplexer2": {
|
||||||
|
@ -3785,12 +3809,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eazy-logger": {
|
"eazy-logger": {
|
||||||
"version": "3.0.2",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/eazy-logger/-/eazy-logger-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/eazy-logger/-/eazy-logger-3.1.0.tgz",
|
||||||
"integrity": "sha1-oyWqXlPROiIliJsqxBE7K5Y29Pw=",
|
"integrity": "sha512-/snsn2JqBtUSSstEl4R0RKjkisGHAhvYj89i7r3ytNUKW12y178KDZwXLXIgwDqLW6E/VRMT9qfld7wvFae8bQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"tfunk": "^3.0.1"
|
"tfunk": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ecc-jsbn": {
|
"ecc-jsbn": {
|
||||||
|
@ -4090,13 +4114,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint": {
|
"eslint": {
|
||||||
"version": "7.10.0",
|
"version": "7.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.14.0.tgz",
|
||||||
"integrity": "sha512-BDVffmqWl7JJXqCjAK6lWtcQThZB/aP1HXSH1JKwGwv0LQEdvpR7qzNrUT487RM39B5goWuboFad5ovMBmD8yA==",
|
"integrity": "sha512-5YubdnPXrlrYAFCKybPuHIAH++PINe1pmKNc5wQRB9HSbqIK1ywAnntE3Wwua4giKu0bjligf1gLF6qxMGOYRA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.0.0",
|
"@babel/code-frame": "^7.0.0",
|
||||||
"@eslint/eslintrc": "^0.1.3",
|
"@eslint/eslintrc": "^0.2.1",
|
||||||
"ajv": "^6.10.0",
|
"ajv": "^6.10.0",
|
||||||
"chalk": "^4.0.0",
|
"chalk": "^4.0.0",
|
||||||
"cross-spawn": "^7.0.2",
|
"cross-spawn": "^7.0.2",
|
||||||
|
@ -4105,7 +4129,7 @@
|
||||||
"enquirer": "^2.3.5",
|
"enquirer": "^2.3.5",
|
||||||
"eslint-scope": "^5.1.1",
|
"eslint-scope": "^5.1.1",
|
||||||
"eslint-utils": "^2.1.0",
|
"eslint-utils": "^2.1.0",
|
||||||
"eslint-visitor-keys": "^1.3.0",
|
"eslint-visitor-keys": "^2.0.0",
|
||||||
"espree": "^7.3.0",
|
"espree": "^7.3.0",
|
||||||
"esquery": "^1.2.0",
|
"esquery": "^1.2.0",
|
||||||
"esutils": "^2.0.2",
|
"esutils": "^2.0.2",
|
||||||
|
@ -4141,12 +4165,11 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"ansi-styles": {
|
"ansi-styles": {
|
||||||
"version": "4.2.1",
|
"version": "4.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||||
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/color-name": "^1.1.1",
|
|
||||||
"color-convert": "^2.0.1"
|
"color-convert": "^2.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -4169,6 +4192,12 @@
|
||||||
"color-name": "~1.1.4"
|
"color-name": "~1.1.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"eslint-visitor-keys": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"version": "12.4.0",
|
"version": "12.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
|
||||||
|
@ -4665,9 +4694,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"acorn": {
|
"acorn": {
|
||||||
"version": "7.4.0",
|
"version": "7.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",
|
||||||
"integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==",
|
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7043,9 +7072,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"moment": {
|
"moment": {
|
||||||
"version": "2.29.0",
|
"version": "2.29.1",
|
||||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.0.tgz",
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
|
||||||
"integrity": "sha512-z6IJ5HXYiuxvFTI6eiQ9dm77uE0gyy1yXNApVHqTcnIKfY9tIwEjlzsZ6u1LQXvVgKeTnv9Xm7NDvJ7lso3MtA=="
|
"integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ=="
|
||||||
},
|
},
|
||||||
"moment-timezone": {
|
"moment-timezone": {
|
||||||
"version": "0.5.31",
|
"version": "0.5.31",
|
||||||
|
@ -7649,12 +7678,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
|
||||||
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="
|
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="
|
||||||
},
|
},
|
||||||
"object-path": {
|
|
||||||
"version": "0.9.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/object-path/-/object-path-0.9.2.tgz",
|
|
||||||
"integrity": "sha1-D9mnT8X60a45aLWGvaXGMr1sBaU=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"object-visit": {
|
"object-visit": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz",
|
||||||
|
@ -8134,16 +8157,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postcss-cli": {
|
"postcss-cli": {
|
||||||
"version": "7.1.1",
|
"version": "7.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-cli/-/postcss-cli-7.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-cli/-/postcss-cli-7.1.2.tgz",
|
||||||
"integrity": "sha512-bYQy5ydAQJKCMSpvaMg0ThPBeGYqhQXumjbFOmWnL4u65CYXQ16RfS6afGQpit0dGv/fNzxbdDtx8dkqOhhIbg==",
|
"integrity": "sha512-3mlEmN1v2NVuosMWZM2tP8bgZn7rO5PYxRRrXtdSyL5KipcgBDjJ9ct8/LKxImMCJJi3x5nYhCGFJOkGyEqXBQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"chalk": "^4.0.0",
|
"chalk": "^4.0.0",
|
||||||
"chokidar": "^3.3.0",
|
"chokidar": "^3.3.0",
|
||||||
"dependency-graph": "^0.9.0",
|
"dependency-graph": "^0.9.0",
|
||||||
"fs-extra": "^9.0.0",
|
"fs-extra": "^9.0.0",
|
||||||
"get-stdin": "^7.0.0",
|
"get-stdin": "^8.0.0",
|
||||||
"globby": "^11.0.0",
|
"globby": "^11.0.0",
|
||||||
"postcss": "^7.0.0",
|
"postcss": "^7.0.0",
|
||||||
"postcss-load-config": "^2.0.0",
|
"postcss-load-config": "^2.0.0",
|
||||||
|
@ -8153,53 +8176,15 @@
|
||||||
"yargs": "^15.0.2"
|
"yargs": "^15.0.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-regex": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"ansi-styles": {
|
"ansi-styles": {
|
||||||
"version": "4.2.1",
|
"version": "4.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||||
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/color-name": "^1.1.1",
|
|
||||||
"color-convert": "^2.0.1"
|
"color-convert": "^2.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"anymatch": {
|
|
||||||
"version": "3.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
|
|
||||||
"integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"normalize-path": "^3.0.0",
|
|
||||||
"picomatch": "^2.0.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"binary-extensions": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"braces": {
|
|
||||||
"version": "3.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
|
|
||||||
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"fill-range": "^7.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"camelcase": {
|
|
||||||
"version": "5.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
|
||||||
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"chalk": {
|
"chalk": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
|
||||||
|
@ -8210,33 +8195,6 @@
|
||||||
"supports-color": "^7.1.0"
|
"supports-color": "^7.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chokidar": {
|
|
||||||
"version": "3.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz",
|
|
||||||
"integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"anymatch": "~3.1.1",
|
|
||||||
"braces": "~3.0.2",
|
|
||||||
"fsevents": "~2.1.2",
|
|
||||||
"glob-parent": "~5.1.0",
|
|
||||||
"is-binary-path": "~2.1.0",
|
|
||||||
"is-glob": "~4.0.1",
|
|
||||||
"normalize-path": "~3.0.0",
|
|
||||||
"readdirp": "~3.4.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cliui": {
|
|
||||||
"version": "6.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
|
|
||||||
"integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"string-width": "^4.2.0",
|
|
||||||
"strip-ansi": "^6.0.0",
|
|
||||||
"wrap-ansi": "^6.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-convert": {
|
"color-convert": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||||
|
@ -8246,196 +8204,26 @@
|
||||||
"color-name": "~1.1.4"
|
"color-name": "~1.1.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"emoji-regex": {
|
|
||||||
"version": "8.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
||||||
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"fill-range": {
|
|
||||||
"version": "7.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
|
||||||
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"to-regex-range": "^5.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"find-up": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"locate-path": "^5.0.0",
|
|
||||||
"path-exists": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fsevents": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"get-caller-file": {
|
|
||||||
"version": "2.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
|
||||||
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"get-stdin": {
|
"get-stdin": {
|
||||||
"version": "7.0.0",
|
"version": "8.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz",
|
||||||
"integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==",
|
"integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"glob-parent": {
|
|
||||||
"version": "5.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
|
|
||||||
"integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"is-glob": "^4.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"has-flag": {
|
"has-flag": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"is-binary-path": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"binary-extensions": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"is-fullwidth-code-point": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"is-number": {
|
|
||||||
"version": "7.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
|
||||||
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"path-exists": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"readdirp": {
|
|
||||||
"version": "3.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz",
|
|
||||||
"integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"picomatch": "^2.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"require-main-filename": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"string-width": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
|
|
||||||
"integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"emoji-regex": "^8.0.0",
|
|
||||||
"is-fullwidth-code-point": "^3.0.0",
|
|
||||||
"strip-ansi": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strip-ansi": {
|
|
||||||
"version": "6.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
|
|
||||||
"integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-regex": "^5.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
"version": "7.1.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
|
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"has-flag": "^4.0.0"
|
"has-flag": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"to-regex-range": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
|
||||||
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"is-number": "^7.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"which-module": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
|
|
||||||
"integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"wrap-ansi": {
|
|
||||||
"version": "6.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
|
|
||||||
"integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-styles": "^4.0.0",
|
|
||||||
"string-width": "^4.1.0",
|
|
||||||
"strip-ansi": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"y18n": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"yargs": {
|
|
||||||
"version": "15.4.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
|
|
||||||
"integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"cliui": "^6.0.0",
|
|
||||||
"decamelize": "^1.2.0",
|
|
||||||
"find-up": "^4.1.0",
|
|
||||||
"get-caller-file": "^2.0.1",
|
|
||||||
"require-directory": "^2.1.1",
|
|
||||||
"require-main-filename": "^2.0.0",
|
|
||||||
"set-blocking": "^2.0.0",
|
|
||||||
"string-width": "^4.2.0",
|
|
||||||
"which-module": "^2.0.0",
|
|
||||||
"y18n": "^4.0.0",
|
|
||||||
"yargs-parser": "^18.1.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"yargs-parser": {
|
|
||||||
"version": "18.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
|
|
||||||
"integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"camelcase": "^5.0.0",
|
|
||||||
"decamelize": "^1.2.0"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8458,9 +8246,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postcss-load-config": {
|
"postcss-load-config": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.2.tgz",
|
||||||
"integrity": "sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q==",
|
"integrity": "sha512-/rDeGV6vMUo3mwJZmeHfEDvwnTKKqQ0S7OHUi/kJvvtx3aWtyWG2/0ZWnzCt2keEclwN6Tf0DST2v9kITdOKYw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"cosmiconfig": "^5.0.0",
|
"cosmiconfig": "^5.0.0",
|
||||||
|
@ -10743,15 +10531,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stylelint-config-twbs-bootstrap": {
|
"stylelint-config-twbs-bootstrap": {
|
||||||
"version": "2.0.3",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/stylelint-config-twbs-bootstrap/-/stylelint-config-twbs-bootstrap-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/stylelint-config-twbs-bootstrap/-/stylelint-config-twbs-bootstrap-2.1.0.tgz",
|
||||||
"integrity": "sha512-Pw4L24TlTKORqoVjc1MaiJ0XvugO4o4pz8siHNsI8I1+9VXG0aShm06ncdUOALKU85fQPAiS3V3qZ5BvAoXCZg==",
|
"integrity": "sha512-KBYy7WrViHoryQVUuwxmGsZgWPqcSgJzq/960koADjRWluZRj4aGgyeQYevnz0SyKTn+t99Q3ewfwQVIpOWwwQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"stylelint-config-recommended-scss": "^4.2.0",
|
"stylelint-config-recommended-scss": "^4.2.0",
|
||||||
"stylelint-config-standard": "^20.0.0",
|
"stylelint-config-standard": "^20.0.0",
|
||||||
"stylelint-order": "^4.1.0",
|
"stylelint-order": "^4.1.0",
|
||||||
"stylelint-scss": "^3.17.2"
|
"stylelint-scss": "^3.18.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stylelint-order": {
|
"stylelint-order": {
|
||||||
|
@ -10929,13 +10717,13 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"tfunk": {
|
"tfunk": {
|
||||||
"version": "3.1.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/tfunk/-/tfunk-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/tfunk/-/tfunk-4.0.0.tgz",
|
||||||
"integrity": "sha1-OORBT8ZJd9h6/apy+sttKfgve1s=",
|
"integrity": "sha512-eJQ0dGfDIzWNiFNYFVjJ+Ezl/GmwHaFTBTjrtqNPW0S7cuVDBrZrmzUz6VkMeCR4DZFqhd4YtLwsw3i2wYHswQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"chalk": "^1.1.1",
|
"chalk": "^1.1.3",
|
||||||
"object-path": "^0.9.0"
|
"dlv": "^1.1.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-styles": {
|
"ansi-styles": {
|
||||||
|
|
17
package.json
17
package.json
|
@ -67,7 +67,7 @@
|
||||||
"url": "https://github.com/ColorlibHQ/AdminLTE/issues"
|
"url": "https://github.com/ColorlibHQ/AdminLTE/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.14.0",
|
"@fortawesome/fontawesome-free": "^5.15.1",
|
||||||
"@lgaitan/pace-progress": "^1.0.7",
|
"@lgaitan/pace-progress": "^1.0.7",
|
||||||
"@sweetalert2/theme-bootstrap-4": "^4.0.0",
|
"@sweetalert2/theme-bootstrap-4": "^4.0.0",
|
||||||
"@ttskch/select2-bootstrap4-theme": "^1.4.0",
|
"@ttskch/select2-bootstrap4-theme": "^1.4.0",
|
||||||
|
@ -79,11 +79,11 @@
|
||||||
"bs-custom-file-input": "^1.3.4",
|
"bs-custom-file-input": "^1.3.4",
|
||||||
"bs-stepper": "^1.7.0",
|
"bs-stepper": "^1.7.0",
|
||||||
"chart.js": "^2.9.3",
|
"chart.js": "^2.9.3",
|
||||||
"codemirror": "^5.58.0",
|
"codemirror": "^5.58.3",
|
||||||
"datatables.net": "^1.10.22",
|
"datatables.net": "^1.10.22",
|
||||||
"datatables.net-autofill-bs4": "^2.3.5",
|
"datatables.net-autofill-bs4": "^2.3.5",
|
||||||
"datatables.net-bs4": "^1.10.22",
|
"datatables.net-bs4": "^1.10.22",
|
||||||
"datatables.net-buttons-bs4": "^1.6.4",
|
"datatables.net-buttons-bs4": "^1.6.5",
|
||||||
"datatables.net-colreorder-bs4": "^1.5.2",
|
"datatables.net-colreorder-bs4": "^1.5.2",
|
||||||
"datatables.net-fixedcolumns-bs4": "^3.3.2",
|
"datatables.net-fixedcolumns-bs4": "^3.3.2",
|
||||||
"datatables.net-fixedheader-bs4": "^3.1.7",
|
"datatables.net-fixedheader-bs4": "^3.1.7",
|
||||||
|
@ -92,6 +92,7 @@
|
||||||
"datatables.net-rowgroup-bs4": "^1.1.2",
|
"datatables.net-rowgroup-bs4": "^1.1.2",
|
||||||
"datatables.net-rowreorder-bs4": "^1.2.7",
|
"datatables.net-rowreorder-bs4": "^1.2.7",
|
||||||
"datatables.net-scroller-bs4": "^2.0.3",
|
"datatables.net-scroller-bs4": "^2.0.3",
|
||||||
|
"datatables.net-searchpanes-bs4": "^1.2.1",
|
||||||
"datatables.net-select-bs4": "^1.3.1",
|
"datatables.net-select-bs4": "^1.3.1",
|
||||||
"daterangepicker": "^3.1.0",
|
"daterangepicker": "^3.1.0",
|
||||||
"dropzone": "^5.7.2",
|
"dropzone": "^5.7.2",
|
||||||
|
@ -114,7 +115,7 @@
|
||||||
"jqvmap-novulnerability": "^1.5.1",
|
"jqvmap-novulnerability": "^1.5.1",
|
||||||
"jsgrid": "^1.5.3",
|
"jsgrid": "^1.5.3",
|
||||||
"jszip": "^3.5.0",
|
"jszip": "^3.5.0",
|
||||||
"moment": "^2.29.0",
|
"moment": "^2.29.1",
|
||||||
"overlayscrollbars": "^1.13.0",
|
"overlayscrollbars": "^1.13.0",
|
||||||
"pdfmake": "^0.1.68",
|
"pdfmake": "^0.1.68",
|
||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
|
@ -132,9 +133,9 @@
|
||||||
"@rollup/plugin-babel": "^5.2.1",
|
"@rollup/plugin-babel": "^5.2.1",
|
||||||
"autoprefixer": "^9.8.6",
|
"autoprefixer": "^9.8.6",
|
||||||
"browser-sync": "^2.26.12",
|
"browser-sync": "^2.26.12",
|
||||||
"bundlewatch": "^0.2.7",
|
"bundlewatch": "^0.3.1",
|
||||||
"clean-css-cli": "^4.3.0",
|
"clean-css-cli": "^4.3.0",
|
||||||
"eslint": "^7.10.0",
|
"eslint": "^7.14.0",
|
||||||
"eslint-config-xo": "^0.32.1",
|
"eslint-config-xo": "^0.32.1",
|
||||||
"eslint-plugin-compat": "^3.8.0",
|
"eslint-plugin-compat": "^3.8.0",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.22.1",
|
||||||
|
@ -143,10 +144,10 @@
|
||||||
"node-sass-package-importer": "^5.3.2",
|
"node-sass-package-importer": "^5.3.2",
|
||||||
"nodemon": "^2.0.4",
|
"nodemon": "^2.0.4",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-cli": "^7.1.1",
|
"postcss-cli": "^7.1.2",
|
||||||
"rollup": "^2.28.2",
|
"rollup": "^2.28.2",
|
||||||
"stylelint": "^13.7.2",
|
"stylelint": "^13.7.2",
|
||||||
"stylelint-config-twbs-bootstrap": "^2.0.3",
|
"stylelint-config-twbs-bootstrap": "^2.1.0",
|
||||||
"terser": "^5.3.2",
|
"terser": "^5.3.2",
|
||||||
"vnu-jar": "^20.6.30"
|
"vnu-jar": "^20.6.30"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3084,6 +3084,52 @@
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.row -->
|
<!-- /.row -->
|
||||||
|
|
||||||
|
<h5 class="mb-2">Card with Image Overlay</h5>
|
||||||
|
<div class="card card-success">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 col-lg-6 col-xl-4">
|
||||||
|
<div class="card mb-2 bg-gradient-dark">
|
||||||
|
<img class="card-img-top" src="../dist/img/photo1.png" alt="Dist Photo 1">
|
||||||
|
<div class="card-img-overlay d-flex flex-column justify-content-end">
|
||||||
|
<h5 class="card-title text-primary text-white">Card Title</h5>
|
||||||
|
<p class="card-text text-white pb-2 pt-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit sed do eiusmod tempor.</p>
|
||||||
|
<a href="#" class="text-white">Last update 2 mins ago</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 col-lg-6 col-xl-4">
|
||||||
|
<div class="card mb-2">
|
||||||
|
<img class="card-img-top" src="../dist/img/photo2.png" alt="Dist Photo 2">
|
||||||
|
<div class="card-img-overlay d-flex flex-column justify-content-center">
|
||||||
|
<h5 class="card-title text-white mt-5 pt-2">Card Title</h5>
|
||||||
|
<p class="card-text pb-2 pt-1 text-white">
|
||||||
|
Lorem ipsum dolor sit amet, <br>
|
||||||
|
consectetur adipisicing elit <br>
|
||||||
|
sed do eiusmod tempor.
|
||||||
|
</p>
|
||||||
|
<a href="#" class="text-white">Last update 15 hours ago</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 col-lg-6 col-xl-4">
|
||||||
|
<div class="card mb-2">
|
||||||
|
<img class="card-img-top" src="../dist/img/photo3.jpg" alt="Dist Photo 3">
|
||||||
|
<div class="card-img-overlay">
|
||||||
|
<h5 class="card-title text-primary">Card Title</h5>
|
||||||
|
<p class="card-text pb-1 pt-1 text-white">
|
||||||
|
Lorem ipsum dolor <br>
|
||||||
|
sit amet, consectetur <br>
|
||||||
|
adipisicing elit sed <br>
|
||||||
|
do eiusmod tempor. </p>
|
||||||
|
<a href="#" class="text-primary">Last update 3 days ago</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div><!-- /.container-fluid -->
|
</div><!-- /.container-fluid -->
|
||||||
</section>
|
</section>
|
||||||
<!-- /.content -->
|
<!-- /.content -->
|
||||||
|
|
|
@ -0,0 +1,339 @@
|
||||||
|
div.dtsp-topRow {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-content: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
div.dtsp-topRow input.dtsp-search {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
div.dtsp-topRow div.dtsp-subRow1 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
flex-basis: 0;
|
||||||
|
}
|
||||||
|
div.dtsp-topRow div.dtsp-searchCont {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
flex-basis: 0;
|
||||||
|
}
|
||||||
|
div.dtsp-topRow button.dtsp-nameButton {
|
||||||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAABcGlDQ1BpY2MAACiRdZHNSwJBGMYftTDS8FCHkA57sOigIAXRMQzyYh3UIKvL7rirwe66zK6IdA26dBA6RF36OvQf1DXoWhAERRAR9B/0dQnZ3nEFJXSG2ffHs/O8zDwD+DM6M+yBJGCYDs+mU9JaYV0KviNMM4QoEjKzreXcUh59x88jfKI+JESv/vt6jlBRtRngGyKeYxZ3iBeIMzXHErxHPMbKcpH4hDjO6YDEt0JXPH4TXPL4SzDPZxcBv+gplbpY6WJW5gbxNHHM0KusfR5xk7BqruaoRmlNwEYWaaQgQUEVW9DhIEHVpMx6+5It3woq5GH0tVAHJ0cJZfLGSa1SV5WqRrpKU0dd5P4/T1ubnfG6h1PA4Kvrfk4CwX2g2XDd31PXbZ4BgRfg2uz4K5TT/DfpjY4WOwYiO8DlTUdTDoCrXWD82ZK53JICtPyaBnxcACMFYPQeGN7wsmr/x/kTkN+mJ7oDDo+AKdof2fwDCBRoDkL8UccAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAK2SURBVFgJ7ZY9j41BFICvryCExrJBQ6HyEYVEIREaUZDQIRoR2ViJKCioxV+gkVXYTVZEQiEUhG2EQnxUCh0FKolY4ut5XnM2cyfva3Pt5m7EPcmzZ2bemTNnzjkzd1utnvQi0IvAfxiBy5z5FoxO89kPY+8mbMjtzs47RXs5/WVpbAG6bWExt5PuIibvhVkwmC+ck3eK9ln6/fAddFojYzBVuYSBpcnIEvRaqOw2RcaN18FPuJH0JvRUxbT3wWf4ltiKPgfVidWlbGZgPozDFfgAC+EA/K2EI4cwcAJ+gPaeQ+VQU2SOMMGcPgPl/m/V2p50rrbRsRgt9Iv5h6xtpP22Bz7Ce1C+gFFxfKzOmShcU+Qmyh2w3w8rIJfddHTck66EukL/xPhj+JM8rHNmFys0Pg4v0up3aFNlwR9NYyodd3OL/C64zpsymcTFcf6ElM4YzjAWKYrJkaq8kE/yUYNP4BoYvS1QRo+hNtF5xfkTUjoTheukSFFMjlTFm6PjceOca/SMpKfeCR1L6Uzk/y2WIkVhNFJlJAZhP+hYns7b9D3IPuhY5mYrIv8OrQJvR5NYyNaW4jsU8pSGNySiVx4o5tXq3JkoXE/mg5R/M8dGJCJpKhaDcjBRdbI/Rm8g69c122om33BHmj2CHoV5qa9jUXBraJ+G1fAVjIBO1klc87ro1K4JZ/K35SWW3TwcyDd6TecqnAEd8cGq2+w84xvBm1n3vS0izKkkwh5XNC/GmFPqqAtPF89AOScKuemaNzoTV1SD5dtSbmLf1/RV+tC0WTgcj6R7HEtrVGWaqu/lYDZ/2pvxQ/kIyw/gFByHC9AHw910hv1aUUumyd8yy0QfhmEkfiNod0Xusct68J1qc8Tdux0Z97Q+hsDb+AYGYEbF/4Guw2Q/qDPqZG/zXgT+3Qj8AtKnfWhFwmuAAAAAAElFTkSuQmCC");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 23px;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
div.dtsp-topRow button.dtsp-countButton {
|
||||||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABcGlDQ1BpY2MAACiRdZHNSwJBGMYftTDS8FCHkA57sOigIAXRMQzyYh3UIKvL7rirwe66zK6IdA26dBA6RF36OvQf1DXoWhAERRAR9B/0dQnZ3nEFJXSG2ffHs/O8zDwD+DM6M+yBJGCYDs+mU9JaYV0KviNMM4QoEjKzreXcUh59x88jfKI+JESv/vt6jlBRtRngGyKeYxZ3iBeIMzXHErxHPMbKcpH4hDjO6YDEt0JXPH4TXPL4SzDPZxcBv+gplbpY6WJW5gbxNHHM0KusfR5xk7BqruaoRmlNwEYWaaQgQUEVW9DhIEHVpMx6+5It3woq5GH0tVAHJ0cJZfLGSa1SV5WqRrpKU0dd5P4/T1ubnfG6h1PA4Kvrfk4CwX2g2XDd31PXbZ4BgRfg2uz4K5TT/DfpjY4WOwYiO8DlTUdTDoCrXWD82ZK53JICtPyaBnxcACMFYPQeGN7wsmr/x/kTkN+mJ7oDDo+AKdof2fwDCBRoDkL8UccAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAG5SURBVEgN3VU9LwVBFF0fiYhofUSlEQkKhU7z/oBCQkIiGr9BgUbhVzy9BAnhFyjV/AYFiU5ICM7ZN+c5Zud5dm3lJmfmzrkz9+7cu3c3y/6jjOBSF8CxXS7FmTkbwqIJjDpJvTcmsJ4K3KPZUpyZsx0sxoB9J6mnAkyC7wGuuCFIipNtEcpcWExgXpOBc78vgj6N+QO4NVsjwdFM59tUIDxDrHMBOeIQ34C5ZDregXuAQm4YcI68nN9B3wr2PcwPAIPkN2EqtJH6b+QZm1ajjTx7BqwAr26Lb+C2Kvpbt0Mb2HAJ7NrGFGfmXO3DeA4UshDfQAVmH0gaUFg852TTTDvlxwBlCtxy9zXyBhQFaq0wMmIdRebrfgosA3zb2hKnqG0oqchp4QbuR8X0TjzABhbdOT8jnQ/atcgqpnfwOA7yqZyTU587ZkIGdesLTt2EkynOnbreMUUKMI/dA4B/QVOcO13CQh+5wWCgDwo/75u59odB/wjmfhbgvACcAOyZPHihMWAoIwxyCLgf1oxfgjzVbgBXSTzIN+f0pg6s5DkcesLMRpsBrgE2XO3CN64JFP7JtUeKHX4CKtRRXFZ+7dEAAAAASUVORK5CYII=");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 18px;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
div.dtsp-topRow button.dtsp-searchIcon {
|
||||||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAABcGlDQ1BpY2MAACiRdZHNSwJBGMYftTDS8FCHkA57sOigIAXRMQzyYh3UIKvL7rirwe66zK6IdA26dBA6RF36OvQf1DXoWhAERRAR9B/0dQnZ3nEFJXSG2ffHs/O8zDwD+DM6M+yBJGCYDs+mU9JaYV0KviNMM4QoEjKzreXcUh59x88jfKI+JESv/vt6jlBRtRngGyKeYxZ3iBeIMzXHErxHPMbKcpH4hDjO6YDEt0JXPH4TXPL4SzDPZxcBv+gplbpY6WJW5gbxNHHM0KusfR5xk7BqruaoRmlNwEYWaaQgQUEVW9DhIEHVpMx6+5It3woq5GH0tVAHJ0cJZfLGSa1SV5WqRrpKU0dd5P4/T1ubnfG6h1PA4Kvrfk4CwX2g2XDd31PXbZ4BgRfg2uz4K5TT/DfpjY4WOwYiO8DlTUdTDoCrXWD82ZK53JICtPyaBnxcACMFYPQeGN7wsmr/x/kTkN+mJ7oDDo+AKdof2fwDCBRoDkL8UccAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAEnSURBVCgVpdG7SgNBFIDh1RhJsBBEsDIgIhaWFjZa2GtpKb6AnU0MprKOWEjK2IuFFxCxS2lhZyOWXh5AQVER/X+zuwwywoIHvp3dM3Nm55Ik/4i+P2or5FewiBIe0cEt8ogVz9LbhEVf+cgkcew1tvAZ5PPXGm9HOMEanMAYQhunaCAazuqA1UjvILl9HGPc/n4fabjPGbzjMM2FjfkDuPw5O8JilzgA9/OKWDynyWnbsPiF7yc4SRWxmEyTN7ZhsSd7gTLW8TuGSSzBcZd2hsV+n+MNC9jGCNzjPDwsz8XCO/x02Bqeptcxhg+4gjD8YxetLOkBGRbuwcIr+NdRLMPl3uMM2YHx2gsLd+D97qKEQuGe65jCAzbgVRWOCUZuovAfs5m/AdVxL0R1AIsLAAAAAElFTkSuQmCC");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dt-button-collection {
|
||||||
|
z-index: 2002;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dataTables_scrollBody {
|
||||||
|
background: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-1 {
|
||||||
|
min-width: 98%;
|
||||||
|
max-width: 98%;
|
||||||
|
padding-left: 1%;
|
||||||
|
padding-right: 1%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-2 {
|
||||||
|
min-width: 48%;
|
||||||
|
max-width: 48%;
|
||||||
|
padding-left: 1%;
|
||||||
|
padding-right: 1%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-3 {
|
||||||
|
min-width: 30.333%;
|
||||||
|
max-width: 30.333%;
|
||||||
|
padding-left: 1%;
|
||||||
|
padding-right: 1%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-4 {
|
||||||
|
min-width: 23%;
|
||||||
|
max-width: 23%;
|
||||||
|
padding-left: 1%;
|
||||||
|
padding-right: 1%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-5 {
|
||||||
|
min-width: 18%;
|
||||||
|
max-width: 18%;
|
||||||
|
padding-left: 1%;
|
||||||
|
padding-right: 1%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-6 {
|
||||||
|
min-width: 15.666%;
|
||||||
|
max-width: 15.666%;
|
||||||
|
padding-left: 0.5%;
|
||||||
|
padding-right: 0.5%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-7 {
|
||||||
|
min-width: 13.28%;
|
||||||
|
max-width: 13.28%;
|
||||||
|
padding-left: 0.5%;
|
||||||
|
padding-right: 0.5%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-8 {
|
||||||
|
min-width: 11.5%;
|
||||||
|
max-width: 11.5%;
|
||||||
|
padding-left: 0.5%;
|
||||||
|
padding-right: 0.5%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-9 {
|
||||||
|
min-width: 11.111%;
|
||||||
|
max-width: 11.111%;
|
||||||
|
padding-left: 0.5%;
|
||||||
|
padding-right: 0.5%;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dt-button-collection {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-panesContainer {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-searchPanes {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
align-content: flex-start;
|
||||||
|
align-items: stretch;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPanes button.btn {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPanes button.dtsp-clearAll {
|
||||||
|
max-width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-columns-1,
|
||||||
|
div.dtsp-columns-2,
|
||||||
|
div.dtsp-columns-3,
|
||||||
|
div.dtsp-columns-4,
|
||||||
|
div.dtsp-columns-5,
|
||||||
|
div.dtsp-columns-6,
|
||||||
|
div.dtsp-columns-7,
|
||||||
|
div.dtsp-columns-8,
|
||||||
|
div.dtsp-columns-9 {
|
||||||
|
padding-left: 0px;
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-searchPane {
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
flex-basis: 280px;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-content: flex-start;
|
||||||
|
align-items: stretch;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
margin: 5px 0;
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_wrapper {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_wrapper div.dataTables_filter {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_wrapper div.row div.col-sm-12:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_wrapper div.row div.dataTables_filter {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.btn-group {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dtsp-topRow {
|
||||||
|
padding: 0px !important;
|
||||||
|
margin: 0px;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dtsp-topRow div.dtsp-subRows {
|
||||||
|
padding: 0px !important;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dtsp-topRow div.row {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dtsp-topRow button {
|
||||||
|
min-width: 35px;
|
||||||
|
max-width: 35px;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dtsp-topRow div.dtsp-subRow2 {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dtsp-topRow button.clearButton {
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane thead {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane .mb-3 {
|
||||||
|
margin-bottom: none !important;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane .col-sm-12 {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane .input-group {
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane .input-group .input-group-append {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollHead {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody {
|
||||||
|
padding: 2px;
|
||||||
|
border: 2px #f0f0f0 solid;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody:hover {
|
||||||
|
border: 2px solid #cfcfcf !important;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody table {
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody table tbody tr td.dtsp-nameColumn {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody table tbody tr div.dtsp-nameCont {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-content: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody table tbody tr div.dtsp-nameCont span.dtsp-name {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody table tbody tr div.dtsp-nameCont span.badge {
|
||||||
|
min-width: 30px;
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 1;
|
||||||
|
margin-top: 3.5px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_scrollBody table tbody tr td.dtsp-countColumn {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane .dtsp-searchIcon {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
padding: 18px 13px;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_wrapper div.dataTables_filter {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.dataTables_wrapper div.row {
|
||||||
|
margin-left: -7px;
|
||||||
|
margin-right: -7px;
|
||||||
|
}
|
||||||
|
div.dtsp-searchPane div.badge {
|
||||||
|
min-width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-panes {
|
||||||
|
padding: 5px;
|
||||||
|
border: 2px solid #f0f0f0;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 5px;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
div.dtsp-panes div.dtsp-titleRow {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
div.dtsp-panes div.dtsp-title {
|
||||||
|
float: left;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
div.dtsp-panes button.dtsp-clearAll {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 767px) {
|
||||||
|
div.dtsp-columns-4,
|
||||||
|
div.dtsp-columns-5,
|
||||||
|
div.dtsp-columns-6 {
|
||||||
|
max-width: 31% !important;
|
||||||
|
min-width: 31% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 640px) {
|
||||||
|
div.dtsp-searchPanes {
|
||||||
|
flex-direction: column !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dtsp-searchPane {
|
||||||
|
max-width: 98% !important;
|
||||||
|
min-width: 98% !important;
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,89 @@
|
||||||
|
/*!
|
||||||
|
SearchPanes 1.2.1
|
||||||
|
2019-2020 SpryMedia Ltd - datatables.net/license
|
||||||
|
*/
|
||||||
|
(function(){var g,q,t,l=function(a,b,c,d,e,h){var f=this;void 0===h&&(h=null);if(!q||!q.versionCheck||!q.versionCheck("1.10.0"))throw Error("SearchPane requires DataTables 1.10 or newer");if(!q.select)throw Error("SearchPane requires Select");a=new q.Api(a);this.classes=g.extend(!0,{},l.classes);this.c=g.extend(!0,{},l.defaults,b);this.customPaneSettings=h;this.s={cascadeRegen:!1,clearing:!1,colOpts:[],deselect:!1,displayed:!1,dt:a,dtPane:void 0,filteringActive:!1,index:c,indexes:[],lastCascade:!1,
|
||||||
|
lastSelect:!1,listSet:!1,name:void 0,redraw:!1,rowData:{arrayFilter:[],arrayOriginal:[],arrayTotals:[],bins:{},binsOriginal:{},binsTotal:{},filterMap:new Map,totalOptions:0},scrollTop:0,searchFunction:void 0,selectPresent:!1,serverSelect:[],serverSelecting:!1,showFiltered:!1,tableLength:null,updating:!1};b=a.columns().eq(0).toArray().length;this.colExists=this.s.index<b;this.c.layout=d;b=parseInt(d.split("-")[1],10);this.dom={buttonGroup:g("<div/>").addClass(this.classes.buttonGroup),clear:g('<button type="button">×</button>').addClass(this.classes.dull).addClass(this.classes.paneButton).addClass(this.classes.clearButton),
|
||||||
|
container:g("<div/>").addClass(this.classes.container).addClass(this.classes.layout+(10>b?d:d.split("-")[0]+"-9")),countButton:g('<button type="button"></button>').addClass(this.classes.paneButton).addClass(this.classes.countButton),dtP:g("<table><thead><tr><th>"+(this.colExists?g(a.column(this.colExists?this.s.index:0).header()).text():this.customPaneSettings.header||"Custom Pane")+"</th><th/></tr></thead></table>"),lower:g("<div/>").addClass(this.classes.subRow2).addClass(this.classes.narrowButton),
|
||||||
|
nameButton:g('<button type="button"></button>').addClass(this.classes.paneButton).addClass(this.classes.nameButton),panesContainer:e,searchBox:g("<input/>").addClass(this.classes.paneInputButton).addClass(this.classes.search),searchButton:g('<button type = "button" class="'+this.classes.searchIcon+'"></button>').addClass(this.classes.paneButton),searchCont:g("<div/>").addClass(this.classes.searchCont),searchLabelCont:g("<div/>").addClass(this.classes.searchLabelCont),topRow:g("<div/>").addClass(this.classes.topRow),
|
||||||
|
upper:g("<div/>").addClass(this.classes.subRow1).addClass(this.classes.narrowSearch)};this.s.displayed=!1;a=this.s.dt;this.selections=[];this.s.colOpts=this.colExists?this._getOptions():this._getBonusOptions();var o=this.s.colOpts,d=g('<button type="button">X</button>').addClass(this.classes.paneButton);g(d).text(a.i18n("searchPanes.clearPane","X"));this.dom.container.addClass(o.className);this.dom.container.addClass(null!==this.customPaneSettings&&void 0!==this.customPaneSettings.className?this.customPaneSettings.className:
|
||||||
|
"");this.s.name=void 0!==this.s.colOpts.name?this.s.colOpts.name:null!==this.customPaneSettings&&void 0!==this.customPaneSettings.name?this.customPaneSettings.name:this.colExists?g(a.column(this.s.index).header()).text():this.customPaneSettings.header||"Custom Pane";g(e).append(this.dom.container);var n=a.table(0).node();this.s.searchFunction=function(a,b,d){if(0===f.selections.length||a.nTable!==n)return!0;a=null;f.colExists&&(a=b[f.s.index],"filter"!==o.orthogonal.filter&&(a=f.s.rowData.filterMap.get(d),
|
||||||
|
a instanceof g.fn.dataTable.Api&&(a=a.toArray())));return f._search(a,d)};g.fn.dataTable.ext.search.push(this.s.searchFunction);if(this.c.clear)g(d).on("click",function(){f.dom.container.find(f.classes.search).each(function(){g(this).val("");g(this).trigger("input")});f.clearPane()});a.on("draw.dtsp",function(){f._adjustTopRow()});a.on("buttons-action",function(){f._adjustTopRow()});g(window).on("resize.dtsp",q.util.throttle(function(){f._adjustTopRow()}));a.on("column-reorder.dtsp",function(a,b,
|
||||||
|
d){f.s.index=d.mapping[f.s.index]});return this};l.prototype.clearData=function(){this.s.rowData={arrayFilter:[],arrayOriginal:[],arrayTotals:[],bins:{},binsOriginal:{},binsTotal:{},filterMap:new Map,totalOptions:0}};l.prototype.clearPane=function(){this.s.dtPane.rows({selected:!0}).deselect();this.updateTable();return this};l.prototype.destroy=function(){g(this.s.dtPane).off(".dtsp");g(this.s.dt).off(".dtsp");g(this.dom.nameButton).off(".dtsp");g(this.dom.countButton).off(".dtsp");g(this.dom.clear).off(".dtsp");
|
||||||
|
g(this.dom.searchButton).off(".dtsp");g(this.dom.container).remove();for(var a=g.fn.dataTable.ext.search.indexOf(this.s.searchFunction);-1!==a;)g.fn.dataTable.ext.search.splice(a,1),a=g.fn.dataTable.ext.search.indexOf(this.s.searchFunction);void 0!==this.s.dtPane&&this.s.dtPane.destroy();this.s.listSet=!1};l.prototype.getPaneCount=function(){return void 0!==this.s.dtPane?this.s.dtPane.rows({selected:!0}).data().toArray().length:0};l.prototype.rebuildPane=function(a,b,c,d){void 0===a&&(a=!1);void 0===
|
||||||
|
b&&(b=null);void 0===c&&(c=null);void 0===d&&(d=!1);this.clearData();var e=[];this.s.serverSelect=[];var h=null;void 0!==this.s.dtPane&&(d&&(this.s.dt.page.info().serverSide?this.s.serverSelect=this.s.dtPane.rows({selected:!0}).data().toArray():e=this.s.dtPane.rows({selected:!0}).data().toArray()),this.s.dtPane.clear().destroy(),h=g(this.dom.container).prev(),this.destroy(),this.s.dtPane=void 0,g.fn.dataTable.ext.search.push(this.s.searchFunction));this.dom.container.removeClass(this.classes.hidden);
|
||||||
|
this.s.displayed=!1;this._buildPane(!this.s.dt.page.info().serverSide?e:this.s.serverSelect,a,b,c,h);return this};l.prototype.removePane=function(){this.s.displayed=!1;g(this.dom.container).hide()};l.prototype.setCascadeRegen=function(a){this.s.cascadeRegen=a};l.prototype.setClear=function(a){this.s.clearing=a};l.prototype.updatePane=function(a){void 0===a&&(a=!1);this.s.updating=!0;this._updateCommon(a);this.s.updating=!1};l.prototype.updateTable=function(){this.selections=this.s.dtPane.rows({selected:!0}).data().toArray();
|
||||||
|
this._searchExtras();(this.c.cascadePanes||this.c.viewTotal)&&this.updatePane()};l.prototype._setListeners=function(){var a=this,b=this.s.rowData,c;this.s.dtPane.on("select.dtsp",function(){clearTimeout(c);a.s.dt.page.info().serverSide&&!a.s.updating?a.s.serverSelecting||(a.s.serverSelect=a.s.dtPane.rows({selected:!0}).data().toArray(),a.s.scrollTop=g(a.s.dtPane.table().node()).parent()[0].scrollTop,a.s.selectPresent=!0,a.s.dt.draw(!1)):(g(a.dom.clear).removeClass(a.classes.dull),a.s.selectPresent=
|
||||||
|
!0,a.s.updating||a._makeSelection(),a.s.selectPresent=!1)});this.s.dtPane.on("deselect.dtsp",function(){c=setTimeout(function(){a.s.dt.page.info().serverSide&&!a.s.updating?a.s.serverSelecting||(a.s.serverSelect=a.s.dtPane.rows({selected:!0}).data().toArray(),a.s.deselect=!0,a.s.dt.draw(!1)):(a.s.deselect=!0,0===a.s.dtPane.rows({selected:!0}).data().toArray().length&&g(a.dom.clear).addClass(a.classes.dull),a._makeSelection(),a.s.deselect=!1,a.s.dt.state.save())},50)});this.s.dt.on("stateSaveParams.dtsp",
|
||||||
|
function(d,c,h){if(g.isEmptyObject(h))a.s.dtPane.state.clear();else{var d=[],f,o,n,j;void 0!==a.s.dtPane&&(d=a.s.dtPane.rows({selected:!0}).data().map(function(a){return a.filter.toString()}).toArray(),f=g(a.dom.searchBox).val(),o=a.s.dtPane.order(),n=b.binsOriginal,j=b.arrayOriginal);void 0===h.searchPanes&&(h.searchPanes={});void 0===h.searchPanes.panes&&(h.searchPanes.panes=[]);h.searchPanes.panes.push({arrayFilter:j,bins:n,id:a.s.index,order:o,searchTerm:f,selected:d})}});this.s.dtPane.on("user-select.dtsp",
|
||||||
|
function(a,b,c,f,o){o.stopPropagation()});this.s.dtPane.on("draw.dtsp",function(){a._adjustTopRow()});g(this.dom.nameButton).on("click.dtsp",function(){var b=a.s.dtPane.order()[0][1];a.s.dtPane.order([0,"asc"===b?"desc":"asc"]).draw();a.s.dt.state.save()});g(this.dom.countButton).on("click.dtsp",function(){var b=a.s.dtPane.order()[0][1];a.s.dtPane.order([1,"asc"===b?"desc":"asc"]).draw();a.s.dt.state.save()});g(this.dom.clear).on("click.dtsp",function(){a.dom.container.find("."+a.classes.search).each(function(){g(this).val("");
|
||||||
|
g(this).trigger("input")});a.clearPane()});g(this.dom.searchButton).on("click.dtsp",function(){g(a.dom.searchBox).focus()});g(this.dom.searchBox).on("input.dtsp",function(){a.s.dtPane.search(g(a.dom.searchBox).val()).draw();a.s.dt.state.save()});this.s.dt.state.save();return!0};l.prototype._addOption=function(a,b,c,d,e,h){if(Array.isArray(a)||a instanceof q.Api)if(a instanceof q.Api&&(a=a.toArray(),b=b.toArray()),a.length===b.length)for(var f=0;f<a.length;f++)h[a[f]]?h[a[f]]++:(h[a[f]]=1,e.push({display:b[f],
|
||||||
|
filter:a[f],sort:c[f],type:d[f]})),this.s.rowData.totalOptions++;else throw Error("display and filter not the same length");else"string"===typeof this.s.colOpts.orthogonal?(h[a]?h[a]++:(h[a]=1,e.push({display:b,filter:a,sort:c,type:d})),this.s.rowData.totalOptions++):e.push({display:b,filter:a,sort:c,type:d})};l.prototype._addRow=function(a,b,c,d,e,h,f){for(var o,g=0,j=this.s.indexes;g<j.length;g++){var i=j[g];i.filter===b&&(o=i.index)}void 0===o&&(o=this.s.indexes.length,this.s.indexes.push({filter:b,
|
||||||
|
index:o}));return this.s.dtPane.row.add({className:f,display:""!==a?a:!1!==this.s.colOpts.emptyMessage?this.s.colOpts.emptyMessage:this.c.emptyMessage,filter:b,index:o,shown:c,sort:""!==e?e:!1!==this.s.colOpts.emptyMessage?this.s.colOpts.emptyMessage:this.c.emptyMessage,total:d,type:h})};l.prototype._adjustTopRow=function(){var a=this.dom.container.find("."+this.classes.subRowsContainer),b=this.dom.container.find(".dtsp-subRow1"),c=this.dom.container.find(".dtsp-subRow2"),d=this.dom.container.find("."+
|
||||||
|
this.classes.topRow);(252>g(a[0]).width()||252>g(d[0]).width())&&0!==g(a[0]).width()?(g(a[0]).addClass(this.classes.narrow),g(b[0]).addClass(this.classes.narrowSub).removeClass(this.classes.narrowSearch),g(c[0]).addClass(this.classes.narrowSub).removeClass(this.classes.narrowButton)):(g(a[0]).removeClass(this.classes.narrow),g(b[0]).removeClass(this.classes.narrowSub).addClass(this.classes.narrowSearch),g(c[0]).removeClass(this.classes.narrowSub).addClass(this.classes.narrowButton))};l.prototype._buildPane=
|
||||||
|
function(a,b,c,d,e){var h=this;void 0===a&&(a=[]);void 0===b&&(b=!1);void 0===c&&(c=null);void 0===d&&(d=null);void 0===e&&(e=null);this.selections=[];var f=this.s.dt,o=f.column(this.colExists?this.s.index:0),n=this.s.colOpts,j=this.s.rowData,i=f.i18n("searchPanes.count","{total}"),l=f.i18n("searchPanes.countFiltered","{shown} ({total})"),p=f.state.loaded();this.s.listSet&&(p=f.state());if(this.colExists){var m=-1;if(p&&p.searchPanes&&p.searchPanes.panes)for(var k=0;k<p.searchPanes.panes.length;k++)if(p.searchPanes.panes[k].id===
|
||||||
|
this.s.index){m=k;break}if((!1===n.show||void 0!==n.show&&!0!==n.show)&&-1===m)return this.dom.container.addClass(this.classes.hidden),this.s.displayed=!1;if(!0===n.show||-1!==m)this.s.displayed=!0;if(!this.s.dt.page.info().serverSide&&null===c){if(0===j.arrayFilter.length)if(this._populatePane(b),this.s.rowData.totalOptions=0,this._detailsPane(),p&&p.searchPanes&&p.searchPanes.panes)if(-1!==m)j.binsOriginal=p.searchPanes.panes[m].bins,j.arrayOriginal=p.searchPanes.panes[m].arrayFilter;else{this.dom.container.addClass(this.classes.hidden);
|
||||||
|
this.s.displayed=!1;return}else j.arrayOriginal=j.arrayTotals,j.binsOriginal=j.binsTotal;k=Object.keys(j.binsOriginal).length;c=this._uniqueRatio(k,f.rows()[0].length);if(!1===this.s.displayed&&((void 0===n.show&&null===n.threshold?c>this.c.threshold:c>n.threshold)||!0!==n.show&&1>=k)){this.dom.container.addClass(this.classes.hidden);this.s.displayed=!1;return}this.c.viewTotal&&0===j.arrayTotals.length?(this.s.rowData.totalOptions=0,this._detailsPane()):j.binsTotal=j.bins;this.dom.container.addClass(this.classes.show);
|
||||||
|
this.s.displayed=!0}else if(null!==c){if(void 0!==c.tableLength)this.s.tableLength=c.tableLength,this.s.rowData.totalOptions=this.s.tableLength;else if(null===this.s.tableLength||f.rows()[0].length>this.s.tableLength)this.s.tableLength=f.rows()[0].length,this.s.rowData.totalOptions=this.s.tableLength;b=f.column(this.s.index).dataSrc();if(void 0!==c[b]){k=0;for(c=c[b];k<c.length;k++)b=c[k],this.s.rowData.arrayFilter.push({display:b.label,filter:b.value,sort:b.label,type:b.label}),this.s.rowData.bins[b.value]=
|
||||||
|
this.c.viewTotal||this.c.cascadePanes?b.count:b.total,this.s.rowData.binsTotal[b.value]=b.total}k=Object.keys(j.binsTotal).length;c=this._uniqueRatio(k,this.s.tableLength);if(!1===this.s.displayed&&((void 0===n.show&&null===n.threshold?c>this.c.threshold:c>n.threshold)||!0!==n.show&&1>=k)){this.dom.container.addClass(this.classes.hidden);this.s.displayed=!1;return}this.s.rowData.arrayOriginal=this.s.rowData.arrayFilter;this.s.rowData.binsOriginal=this.s.rowData.bins;this.s.displayed=!0}}else this.s.displayed=
|
||||||
|
!0;this._displayPane();if(!this.s.listSet)this.dom.dtP.on("stateLoadParams.dt",function(a,b,d){g.isEmptyObject(f.state.loaded())&&g.each(d,function(a){delete d[a]})});null!==e&&0<g(this.dom.panesContainer).has(e).length?g(this.dom.container).insertAfter(e):g(this.dom.panesContainer).prepend(this.dom.container);k=g.fn.dataTable.ext.errMode;g.fn.dataTable.ext.errMode="none";e=q.Scroller;this.s.dtPane=g(this.dom.dtP).DataTable(g.extend(!0,{columnDefs:[{className:"dtsp-nameColumn",data:"display",render:function(a,
|
||||||
|
b,d){if(b==="sort")return d.sort;if(b==="type")return d.type;var c;(h.s.filteringActive||h.s.showFiltered)&&h.c.viewTotal?c=l.replace(/{total}/,d.total):c=i.replace(/{total}/,d.total);for(c=c.replace(/{shown}/,d.shown);c.indexOf("{total}")!==-1;)c=c.replace(/{total}/,d.total);for(;c.indexOf("{shown}")!==-1;)c=c.replace(/{shown}/,d.shown);b='<span class="'+h.classes.pill+'">'+c+"</span>";if(h.c.hideCount||n.hideCount)b="";return'<div class="'+h.classes.nameCont+'"><span title="'+(typeof a==="string"&&
|
||||||
|
a.match(/<[^>]*>/)!==null?a.replace(/<[^>]*>/g,""):a)+'" class="'+h.classes.name+'">'+a+"</span>"+b+"</div>"},targets:0,type:void 0!==f.settings()[0].aoColumns[this.s.index]?f.settings()[0].aoColumns[this.s.index]._sManualType:null},{className:"dtsp-countColumn "+this.classes.badgePill,data:"shown",orderData:[1,2],targets:1,visible:!1},{data:"total",targets:2,visible:!1}],deferRender:!0,dom:"t",info:!1,language:this.s.dt.settings()[0].oLanguage,paging:e?!0:!1,scrollX:!1,scrollY:"200px",scroller:e?
|
||||||
|
!0:!1,select:!0,stateSave:f.settings()[0].oFeatures.bStateSave?!0:!1},this.c.dtOpts,void 0!==n?n.dtOpts:{},void 0!==this.s.colOpts.options||!this.colExists?{createdRow:function(a,b){g(a).addClass(b.className)}}:void 0,null!==this.customPaneSettings&&void 0!==this.customPaneSettings.dtOpts?this.customPaneSettings.dtOpts:{}));g(this.dom.dtP).addClass(this.classes.table);g(this.dom.searchBox).attr("placeholder",void 0!==n.header?n.header:this.colExists?f.settings()[0].aoColumns[this.s.index].sTitle:
|
||||||
|
this.customPaneSettings.header||"Custom Pane");g.fn.dataTable.select.init(this.s.dtPane);g.fn.dataTable.ext.errMode=k;if(this.colExists){var o=(o=o.search())?o.substr(1,o.length-2).split("|"):[],r=0;j.arrayFilter.forEach(function(a){""===a.filter&&r++});k=0;for(e=j.arrayFilter.length;k<e;k++){o=!1;b=0;for(m=this.s.serverSelect;b<m.length;b++)c=m[b],c.filter===j.arrayFilter[k].filter&&(o=!0);if(this.s.dt.page.info().serverSide&&(!this.c.cascadePanes||this.c.cascadePanes&&0!==j.bins[j.arrayFilter[k].filter]||
|
||||||
|
this.c.cascadePanes&&null!==d||o)){o=this._addRow(j.arrayFilter[k].display,j.arrayFilter[k].filter,d?j.binsTotal[j.arrayFilter[k].filter]:j.bins[j.arrayFilter[k].filter],this.c.viewTotal||d?String(j.binsTotal[j.arrayFilter[k].filter]):j.bins[j.arrayFilter[k].filter],j.arrayFilter[k].sort,j.arrayFilter[k].type);b=0;for(m=this.s.serverSelect;b<m.length;b++)c=m[b],c.filter===j.arrayFilter[k].filter&&(this.s.serverSelecting=!0,o.select(),this.s.serverSelecting=!1)}else!this.s.dt.page.info().serverSide&&
|
||||||
|
j.arrayFilter[k]&&(void 0!==j.bins[j.arrayFilter[k].filter]||!this.c.cascadePanes)?this._addRow(j.arrayFilter[k].display,j.arrayFilter[k].filter,j.bins[j.arrayFilter[k].filter],j.binsTotal[j.arrayFilter[k].filter],j.arrayFilter[k].sort,j.arrayFilter[k].type):this.s.dt.page.info().serverSide||this._addRow("",r,r,"","","")}}q.select.init(this.s.dtPane);(void 0!==n.options||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.options)&&this._getComparisonRows();this.s.dtPane.draw();this._adjustTopRow();
|
||||||
|
this.s.listSet||(this._setListeners(),this.s.listSet=!0);for(d=0;d<a.length;d++)if(j=a[d],void 0!==j){k=0;for(e=this.s.dtPane.rows().indexes().toArray();k<e.length;k++)o=e[k],void 0!==this.s.dtPane.row(o).data()&&j.filter===this.s.dtPane.row(o).data().filter&&(this.s.dt.page.info().serverSide?(this.s.serverSelecting=!0,this.s.dtPane.row(o).select(),this.s.serverSelecting=!1):this.s.dtPane.row(o).select())}this.s.dt.page.info().serverSide&&this.s.dtPane.search(g(this.dom.searchBox).val()).draw();if(p&&
|
||||||
|
p.searchPanes&&p.searchPanes.panes){this.c.cascadePanes||this._reloadSelect(p);a=0;for(p=p.searchPanes.panes;a<p.length;a++)d=p[a],d.id===this.s.index&&(g(this.dom.searchBox).val(d.searchTerm),g(this.dom.searchBox).trigger("input"),this.s.dtPane.order(d.order).draw())}this.s.dt.state.save();return!0};l.prototype._detailsPane=function(){var a=this.s.dt;this.s.rowData.arrayTotals=[];this.s.rowData.binsTotal={};var b=this.s.dt.settings()[0],a=a.rows().indexes();if(!this.s.dt.page.info().serverSide)for(var c=
|
||||||
|
0;c<a.length;c++)this._populatePaneArray(a[c],this.s.rowData.arrayTotals,b,this.s.rowData.binsTotal)};l.prototype._displayPane=function(){var a=this.dom.container,b=this.s.colOpts,c=parseInt(this.c.layout.split("-")[1],10);g(this.dom.topRow).empty();g(this.dom.dtP).empty();g(this.dom.topRow).addClass(this.classes.topRow);3<c&&g(this.dom.container).addClass(this.classes.smallGap);g(this.dom.topRow).addClass(this.classes.subRowsContainer);g(this.dom.upper).appendTo(this.dom.topRow);g(this.dom.lower).appendTo(this.dom.topRow);
|
||||||
|
g(this.dom.searchCont).appendTo(this.dom.upper);g(this.dom.buttonGroup).appendTo(this.dom.lower);(!1===this.c.dtOpts.searching||void 0!==b.dtOpts&&!1===b.dtOpts.searching||!this.c.controls||!b.controls||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.dtOpts&&void 0!==this.customPaneSettings.dtOpts.searching&&!this.customPaneSettings.dtOpts.searching)&&g(this.dom.searchBox).attr("disabled","disabled").removeClass(this.classes.paneInputButton).addClass(this.classes.disabledButton);
|
||||||
|
g(this.dom.searchBox).appendTo(this.dom.searchCont);this._searchContSetup();this.c.clear&&(this.c.controls&&b.controls)&&g(this.dom.clear).appendTo(this.dom.buttonGroup);this.c.orderable&&(b.orderable&&this.c.controls&&b.controls)&&g(this.dom.nameButton).appendTo(this.dom.buttonGroup);!this.c.hideCount&&(!b.hideCount&&this.c.orderable&&b.orderable&&this.c.controls&&b.controls)&&g(this.dom.countButton).appendTo(this.dom.buttonGroup);g(this.dom.topRow).prependTo(this.dom.container);g(a).append(this.dom.dtP);
|
||||||
|
g(a).show()};l.prototype._getBonusOptions=function(){return g.extend(!0,{},l.defaults,{orthogonal:{threshold:null},threshold:null},void 0!==this.c?this.c:{})};l.prototype._getComparisonRows=function(){var a=this.s.colOpts,a=void 0!==a.options?a.options:null!==this.customPaneSettings&&void 0!==this.customPaneSettings.options?this.customPaneSettings.options:void 0;if(void 0!==a){var b=this.s.dt.rows({search:"applied"}).data().toArray(),c=this.s.dt.rows({search:"applied"}),d=this.s.dt.rows().data().toArray(),
|
||||||
|
e=this.s.dt.rows(),h=[];this.s.dtPane.clear();for(var f=0;f<a.length;f++){var g=a[f],n=""!==g.label?g.label:this.c.emptyMessage,j=g.className,i=n,l="function"===typeof g.value?g.value:[],m=0,q=n,k=0;if("function"===typeof g.value){for(var r=0;r<b.length;r++)g.value.call(this.s.dt,b[r],c[0][r])&&m++;for(r=0;r<d.length;r++)g.value.call(this.s.dt,d[r],e[0][r])&&k++;"function"!==typeof l&&l.push(g.filter)}(!this.c.cascadePanes||this.c.cascadePanes&&0!==m)&&h.push(this._addRow(i,l,m,k,q,n,j))}return h}};
|
||||||
|
l.prototype._getOptions=function(){return g.extend(!0,{},l.defaults,{emptyMessage:!1,orthogonal:{threshold:null},threshold:null},this.s.dt.settings()[0].aoColumns[this.s.index].searchPanes)};l.prototype._makeSelection=function(){this.updateTable();this.s.updating=!0;this.s.dt.draw();this.s.updating=!1};l.prototype._populatePane=function(a){void 0===a&&(a=!1);var b=this.s.dt;this.s.rowData.arrayFilter=[];this.s.rowData.bins={};var c=this.s.dt.settings()[0];if(!this.s.dt.page.info().serverSide)for(var d=
|
||||||
|
0,a=((this.c.cascadePanes||this.c.viewTotal)&&!this.s.clearing&&!a?b.rows({search:"applied"}).indexes():b.rows().indexes()).toArray();d<a.length;d++)this._populatePaneArray(a[d],this.s.rowData.arrayFilter,c)};l.prototype._populatePaneArray=function(a,b,c,d){void 0===d&&(d=this.s.rowData.bins);var e=this.s.colOpts;if("string"===typeof e.orthogonal)c=c.oApi._fnGetCellData(c,a,this.s.index,e.orthogonal),this.s.rowData.filterMap.set(a,c),this._addOption(c,c,c,c,b,d);else{var h=c.oApi._fnGetCellData(c,
|
||||||
|
a,this.s.index,e.orthogonal.search);"string"===typeof h&&(h=h.replace(/<[^>]*>/g,""));this.s.rowData.filterMap.set(a,h);d[h]?d[h]++:(d[h]=1,this._addOption(h,c.oApi._fnGetCellData(c,a,this.s.index,e.orthogonal.display),c.oApi._fnGetCellData(c,a,this.s.index,e.orthogonal.sort),c.oApi._fnGetCellData(c,a,this.s.index,e.orthogonal.type),b,d));this.s.rowData.totalOptions++}};l.prototype._reloadSelect=function(a){if(void 0!==a){for(var b,c=0;c<a.searchPanes.panes.length;c++)if(a.searchPanes.panes[c].id===
|
||||||
|
this.s.index){b=c;break}if(void 0!==b)for(var c=this.s.dtPane,d=c.rows({order:"index"}).data().map(function(a){return null!==a.filter?a.filter.toString():null}).toArray(),e=0,a=a.searchPanes.panes[b].selected;e<a.length;e++){b=a[e];var h=-1;null!==b&&(h=d.indexOf(b.toString()));-1<h&&(c.row(h).select(),this.s.dt.state.save())}}};l.prototype._search=function(a,b){for(var c=this.s.colOpts,d=this.s.dt,e=0,h=this.selections;e<h.length;e++){var f=h[e];if(Array.isArray(a)){if(-1!==a.indexOf(f.filter))return!0}else if("function"===
|
||||||
|
typeof f.filter)if(f.filter.call(d,d.row(b).data(),b)){if("or"===c.combiner)return!0}else{if("and"===c.combiner)return!1}else if(a===f.filter||!("string"===typeof a&&0===a.length)&&a==f.filter||null===f.filter&&"string"===typeof a&&""===a)return!0}return"and"===c.combiner?!0:!1};l.prototype._searchContSetup=function(){this.c.controls&&this.s.colOpts.controls&&g(this.dom.searchButton).appendTo(this.dom.searchLabelCont);!1===this.c.dtOpts.searching||(!1===this.s.colOpts.dtOpts.searching||null!==this.customPaneSettings&&
|
||||||
|
void 0!==this.customPaneSettings.dtOpts&&void 0!==this.customPaneSettings.dtOpts.searching&&!this.customPaneSettings.dtOpts.searching)||g(this.dom.searchLabelCont).appendTo(this.dom.searchCont)};l.prototype._searchExtras=function(){var a=this.s.updating;this.s.updating=!0;var b=this.s.dtPane.rows({selected:!0}).data().pluck("filter").toArray(),c=b.indexOf(!1!==this.s.colOpts.emptyMessage?this.s.colOpts.emptyMessage:this.c.emptyMessage),d=g(this.s.dtPane.table().container());-1<c&&(b[c]="");0<b.length?
|
||||||
|
d.addClass(this.classes.selected):0===b.length&&d.removeClass(this.classes.selected);this.s.updating=a};l.prototype._uniqueRatio=function(a,b){return 0<b&&(0<this.s.rowData.totalOptions&&!this.s.dt.page.info().serverSide||this.s.dt.page.info().serverSide&&0<this.s.tableLength)?a/this.s.rowData.totalOptions:1};l.prototype._updateCommon=function(a){void 0===a&&(a=!1);if(!this.s.dt.page.info().serverSide&&void 0!==this.s.dtPane&&(!this.s.filteringActive||this.c.cascadePanes||!0===a)&&(!0!==this.c.cascadePanes||
|
||||||
|
!0!==this.s.selectPresent)&&(!this.s.lastSelect||!this.s.lastCascade)){var b=this.s.colOpts,c=this.s.dtPane.rows({selected:!0}).data().toArray(),a=g(this.s.dtPane.table().node()).parent()[0].scrollTop,d=this.s.rowData;this.s.dtPane.clear();if(this.colExists){0===d.arrayFilter.length?this._populatePane():this.c.cascadePanes&&this.s.dt.rows().data().toArray().length===this.s.dt.rows({search:"applied"}).data().toArray().length?(d.arrayFilter=d.arrayOriginal,d.bins=d.binsOriginal):(this.c.viewTotal||
|
||||||
|
this.c.cascadePanes)&&this._populatePane();this.c.viewTotal?this._detailsPane():d.binsTotal=d.bins;this.c.viewTotal&&!this.c.cascadePanes&&(d.arrayFilter=d.arrayTotals);for(var e=function(a){if(a&&(d.bins[a.filter]!==void 0&&d.bins[a.filter]!==0&&h.c.cascadePanes||!h.c.cascadePanes||h.s.clearing)){var b=h._addRow(a.display,a.filter,!h.c.viewTotal?d.bins[a.filter]:d.bins[a.filter]!==void 0?d.bins[a.filter]:0,h.c.viewTotal?String(d.binsTotal[a.filter]):d.bins[a.filter],a.sort,a.type),f=c.findIndex(function(b){return b.filter===
|
||||||
|
a.filter});if(f!==-1){b.select();c.splice(f,1)}}},h=this,f=0,o=d.arrayFilter;f<o.length;f++)e(o[f])}if(void 0!==b.searchPanes&&void 0!==b.searchPanes.options||void 0!==b.options||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.options){e=function(a){var b=c.findIndex(function(b){if(b.display===a.data().display)return!0});-1!==b&&(a.select(),c.splice(b,1))};f=0;for(o=this._getComparisonRows();f<o.length;f++)b=o[f],e(b)}for(e=0;e<c.length;e++)b=c[e],b=this._addRow(b.display,b.filter,
|
||||||
|
0,this.c.viewTotal?b.total:0,b.display,b.display),this.s.updating=!0,b.select(),this.s.updating=!1;this.s.dtPane.draw();this.s.dtPane.table().node().parentNode.scrollTop=a}};l.version="1.1.0";l.classes={buttonGroup:"dtsp-buttonGroup",buttonSub:"dtsp-buttonSub",clear:"dtsp-clear",clearAll:"dtsp-clearAll",clearButton:"clearButton",container:"dtsp-searchPane",countButton:"dtsp-countButton",disabledButton:"dtsp-disabledButton",dull:"dtsp-dull",hidden:"dtsp-hidden",hide:"dtsp-hide",layout:"dtsp-",name:"dtsp-name",
|
||||||
|
nameButton:"dtsp-nameButton",nameCont:"dtsp-nameCont",narrow:"dtsp-narrow",paneButton:"dtsp-paneButton",paneInputButton:"dtsp-paneInputButton",pill:"dtsp-pill",search:"dtsp-search",searchCont:"dtsp-searchCont",searchIcon:"dtsp-searchIcon",searchLabelCont:"dtsp-searchButtonCont",selected:"dtsp-selected",smallGap:"dtsp-smallGap",subRow1:"dtsp-subRow1",subRow2:"dtsp-subRow2",subRowsContainer:"dtsp-subRowsContainer",title:"dtsp-title",topRow:"dtsp-topRow"};l.defaults={cascadePanes:!1,clear:!0,combiner:"or",
|
||||||
|
controls:!0,container:function(a){return a.table().container()},dtOpts:{},emptyMessage:"<i>No Data</i>",hideCount:!1,layout:"columns-3",name:void 0,orderable:!0,orthogonal:{display:"display",filter:"filter",hideCount:!1,search:"filter",show:void 0,sort:"sort",threshold:0.6,type:"type"},preSelect:[],threshold:0.6,viewTotal:!1};t=l;var i,s,u,m=function(a,b,c){var d=this;void 0===c&&(c=!1);this.regenerating=!1;if(!s||!s.versionCheck||!s.versionCheck("1.10.0"))throw Error("SearchPane requires DataTables 1.10 or newer");
|
||||||
|
if(!s.select)throw Error("SearchPane requires Select");var e=new s.Api(a);this.classes=i.extend(!0,{},m.classes);this.c=i.extend(!0,{},m.defaults,b);this.dom={clearAll:i('<button type="button">Clear All</button>').addClass(this.classes.clearAll),container:i("<div/>").addClass(this.classes.panes).text(e.i18n("searchPanes.loadMessage","Loading Search Panes...")),emptyMessage:i("<div/>").addClass(this.classes.emptyMessage),options:i("<div/>").addClass(this.classes.container),panes:i("<div/>").addClass(this.classes.container),
|
||||||
|
title:i("<div/>").addClass(this.classes.title),titleRow:i("<div/>").addClass(this.classes.titleRow),wrapper:i("<div/>")};this.s={colOpts:[],dt:e,filterPane:-1,panes:[],selectionList:[],serverData:{},stateRead:!1,updating:!1};if(void 0===e.settings()[0]._searchPanes){e.on("xhr",function(a,b,c){c.searchPanes&&c.searchPanes.options&&(d.s.serverData=c.searchPanes.options,d.s.serverData.tableLength=c.recordsTotal,d._serverTotals())});e.settings()[0]._searchPanes=this;this.dom.clearAll.text(e.i18n("searchPanes.clearMessage",
|
||||||
|
"Clear All"));this._getState();if(this.s.dt.settings()[0]._bInitComplete||c)this._paneDeclare(e,a,b);else e.one("preInit.dt",function(){d._paneDeclare(e,a,b)});return this}};m.prototype.clearSelections=function(){this.dom.container.find(this.classes.search).each(function(){i(this).val("");i(this).trigger("input")});for(var a=[],b=0,c=this.s.panes;b<c.length;b++){var d=c[b];void 0!==d.s.dtPane&&a.push(d.clearPane())}this.s.dt.draw();return a};m.prototype.getNode=function(){return this.dom.container};
|
||||||
|
m.prototype.rebuild=function(a,b){void 0===a&&(a=!1);void 0===b&&(b=!1);i(this.dom.emptyMessage).remove();var c=[];!1===a&&i(this.dom.panes).empty();for(var d=0,e=this.s.panes;d<e.length;d++){var h=e[d];!1!==a&&h.s.index!==a||(h.clearData(),c.push(h.rebuildPane(void 0!==this.s.selectionList[this.s.selectionList.length-1]?h.s.index===this.s.selectionList[this.s.selectionList.length-1].index:!1,this.s.dt.page.info().serverSide?this.s.serverData:void 0,null,b)),i(this.dom.panes).append(h.dom.container))}this.s.dt.page.info().serverSide||
|
||||||
|
this.s.dt.draw();this.c.cascadePanes||this.c.viewTotal?this.redrawPanes(!0):this._updateSelection();this._updateFilterCount();this._attachPaneContainer();this.s.dt.draw();return 1===c.length?c[0]:c};m.prototype.redrawPanes=function(a){void 0===a&&(a=!1);var b=this.s.dt;if(!this.s.updating&&!this.s.dt.page.info().serverSide){var c=!0,d=this.s.filterPane;if(b.rows({search:"applied"}).data().toArray().length===b.rows().data().toArray().length)c=!1;else if(this.c.viewTotal)for(var e=0,h=this.s.panes;e<
|
||||||
|
h.length;e++){var f=h[e];if(void 0!==f.s.dtPane){var g=f.s.dtPane.rows({selected:!0}).data().toArray().length;if(0===g)for(var n=0,j=this.s.selectionList;n<j.length;n++){var i=j[n];i.index===f.s.index&&0!==i.rows.length&&(g=i.rows.length)}0<g&&-1===d?d=f.s.index:0<g&&(d=null)}}h=void 0;e=[];if(this.regenerating){h=-1;1===e.length&&(h=e[0].index);a=0;for(e=this.s.panes;a<e.length;a++)if(f=e[a],void 0!==f.s.dtPane){b=!0;f.s.filteringActive=!0;if(-1!==d&&null!==d&&d===f.s.index||!1===c||f.s.index===
|
||||||
|
h)b=!1,f.s.filteringActive=!1;f.updatePane(!b?b:c)}this._updateFilterCount()}else{g=0;for(n=this.s.panes;g<n.length;g++)if(f=n[g],f.s.selectPresent){this.s.selectionList.push({index:f.s.index,rows:f.s.dtPane.rows({selected:!0}).data().toArray(),protect:!1});b.state.save();break}else f.s.deselect&&(h=f.s.index,j=f.s.dtPane.rows({selected:!0}).data().toArray(),0<j.length&&this.s.selectionList.push({index:f.s.index,rows:j,protect:!0}));if(0<this.s.selectionList.length){b=this.s.selectionList[this.s.selectionList.length-
|
||||||
|
1].index;g=0;for(n=this.s.panes;g<n.length;g++)f=n[g],f.s.lastSelect=f.s.index===b}for(f=0;f<this.s.selectionList.length;f++)if(this.s.selectionList[f].index!==h||!0===this.s.selectionList[f].protect){b=!1;for(g=f+1;g<this.s.selectionList.length;g++)this.s.selectionList[g].index===this.s.selectionList[f].index&&(b=!0);b||(e.push(this.s.selectionList[f]),this.s.selectionList[f].protect=!1)}h=-1;1===e.length&&(h=e[0].index);g=0;for(n=this.s.panes;g<n.length;g++)if(f=n[g],void 0!==f.s.dtPane){b=!0;f.s.filteringActive=
|
||||||
|
!0;if(-1!==d&&null!==d&&d===f.s.index||!1===c||f.s.index===h)b=!1,f.s.filteringActive=!1;f.updatePane(!b?!1:c)}this._updateFilterCount();if(0<e.length&&(e.length<this.s.selectionList.length||a)){this._cascadeRegen(e);b=e[e.length-1].index;d=0;for(a=this.s.panes;d<a.length;d++)f=a[d],f.s.lastSelect=f.s.index===b}else if(0<e.length){f=0;for(a=this.s.panes;f<a.length;f++)if(e=a[f],void 0!==e.s.dtPane){b=!0;e.s.filteringActive=!0;if(-1!==d&&null!==d&&d===e.s.index||!1===c)b=!1,e.s.filteringActive=!1;
|
||||||
|
e.updatePane(!b?b:c)}}}c||(this.s.selectionList=[])}};m.prototype._attach=function(){var a=this;i(this.dom.container).removeClass(this.classes.hide);i(this.dom.titleRow).removeClass(this.classes.hide);i(this.dom.titleRow).remove();i(this.dom.title).appendTo(this.dom.titleRow);this.c.clear&&(i(this.dom.clearAll).appendTo(this.dom.titleRow),i(this.dom.clearAll).on("click.dtsps",function(){a.clearSelections()}));i(this.dom.titleRow).appendTo(this.dom.container);for(var b=0,c=this.s.panes;b<c.length;b++)i(c[b].dom.container).appendTo(this.dom.panes);
|
||||||
|
i(this.dom.panes).appendTo(this.dom.container);0===i("div."+this.classes.container).length&&i(this.dom.container).prependTo(this.s.dt);return this.dom.container};m.prototype._attachExtras=function(){i(this.dom.container).removeClass(this.classes.hide);i(this.dom.titleRow).removeClass(this.classes.hide);i(this.dom.titleRow).remove();i(this.dom.title).appendTo(this.dom.titleRow);this.c.clear&&i(this.dom.clearAll).appendTo(this.dom.titleRow);i(this.dom.titleRow).appendTo(this.dom.container);return this.dom.container};
|
||||||
|
m.prototype._attachMessage=function(){var a;try{a=this.s.dt.i18n("searchPanes.emptyPanes","No SearchPanes")}catch(b){a=null}if(null===a)i(this.dom.container).addClass(this.classes.hide),i(this.dom.titleRow).removeClass(this.classes.hide);else return i(this.dom.container).removeClass(this.classes.hide),i(this.dom.titleRow).addClass(this.classes.hide),i(this.dom.emptyMessage).text(a),this.dom.emptyMessage.appendTo(this.dom.container),this.dom.container};m.prototype._attachPaneContainer=function(){for(var a=
|
||||||
|
0,b=this.s.panes;a<b.length;a++)if(!0===b[a].s.displayed)return this._attach();return this._attachMessage()};m.prototype._cascadeRegen=function(a){this.regenerating=!0;var b=-1;1===a.length&&(b=a[0].index);for(var c=0,d=this.s.panes;c<d.length;c++){var e=d[c];e.setCascadeRegen(!0);e.setClear(!0);(void 0!==e.s.dtPane&&e.s.index===b||void 0!==e.s.dtPane)&&e.clearPane();e.setClear(!1)}this._makeCascadeSelections(a);this.s.selectionList=a;a=0;for(b=this.s.panes;a<b.length;a++)e=b[a],e.setCascadeRegen(!1);
|
||||||
|
this.regenerating=!1};m.prototype._checkMessage=function(){for(var a=0,b=this.s.panes;a<b.length;a++)if(!0===b[a].s.displayed)return;return this._attachMessage()};m.prototype._getState=function(){var a=this.s.dt.state.loaded();a&&(a.searchPanes&&void 0!==a.searchPanes.selectionList)&&(this.s.selectionList=a.searchPanes.selectionList)};m.prototype._makeCascadeSelections=function(a){for(var b=0;b<a.length;b++)for(var c=function(c){if(c.s.index===a[b].index&&void 0!==c.s.dtPane){b===a.length-1&&(c.s.lastCascade=
|
||||||
|
!0);0<c.s.dtPane.rows({selected:!0}).data().toArray().length&&void 0!==c.s.dtPane&&(c.setClear(!0),c.clearPane(),c.setClear(!1));for(var e=function(a){c.s.dtPane.rows().every(function(b){c.s.dtPane.row(b).data()!==void 0&&(a!==void 0&&c.s.dtPane.row(b).data().filter===a.filter)&&c.s.dtPane.row(b).select()})},h=0,g=a[b].rows;h<g.length;h++)e(g[h]);d._updateFilterCount();c.s.lastCascade=!1}},d=this,e=0,h=this.s.panes;e<h.length;e++)c(h[e]);this.s.dt.state.save()};m.prototype._paneDeclare=function(a,
|
||||||
|
b,c){var d=this;a.columns(0<this.c.columns.length?this.c.columns:void 0).eq(0).each(function(a){d.s.panes.push(new t(b,c,a,d.c.layout,d.dom.panes))});for(var e=a.columns().eq(0).toArray().length,h=this.c.panes.length,f=0;f<h;f++)this.s.panes.push(new t(b,c,e+f,this.c.layout,this.dom.panes,this.c.panes[f]));if(0<this.c.order.length){e=this.c.order.map(function(a){return d._findPane(a)});this.dom.panes.empty();this.s.panes=e;e=0;for(h=this.s.panes;e<h.length;e++)this.dom.panes.append(h[e].dom.container)}this.s.dt.settings()[0]._bInitComplete?
|
||||||
|
this._startup(a):this.s.dt.settings()[0].aoInitComplete.push({fn:function(){d._startup(a)}})};m.prototype._findPane=function(a){for(var b=0,c=this.s.panes;b<c.length;b++){var d=c[b];if(a===d.s.name)return d}};m.prototype._serverTotals=function(){for(var a=!1,b=!1,c=this.s.dt,d=0,e=this.s.panes;d<e.length;d++){var h=e[d];if(h.s.selectPresent){this.s.selectionList.push({index:h.s.index,rows:h.s.dtPane.rows({selected:!0}).data().toArray(),protect:!1});c.state.save();h.s.selectPresent=!1;a=!0;break}else h.s.deselect&&
|
||||||
|
(b=h.s.dtPane.rows({selected:!0}).data().toArray(),0<b.length&&this.s.selectionList.push({index:h.s.index,rows:b,protect:!0}),b=a=!0)}if(a){h=[];for(c=0;c<this.s.selectionList.length;c++){d=!1;for(e=c+1;e<this.s.selectionList.length;e++)this.s.selectionList[e].index===this.s.selectionList[c].index&&(d=!0);!d&&0<this.s.panes[this.s.selectionList[c].index].s.dtPane.rows({selected:!0}).data().toArray().length&&h.push(this.s.selectionList[c])}this.s.selectionList=h}else this.s.selectionList=[];c=-1;if(b&&
|
||||||
|
1===this.s.selectionList.length){b=0;for(d=this.s.panes;b<d.length;b++)h=d[b],h.s.lastSelect=!1,h.s.deselect=!1,void 0!==h.s.dtPane&&0<h.s.dtPane.rows({selected:!0}).data().toArray().length&&(c=h.s.index)}else if(0<this.s.selectionList.length){b=this.s.selectionList[this.s.selectionList.length-1].index;d=0;for(e=this.s.panes;d<e.length;d++)h=e[d],h.s.lastSelect=h.s.index===b,h.s.deselect=!1}else if(0===this.s.selectionList.length){b=0;for(d=this.s.panes;b<d.length;b++)h=d[b],h.s.lastSelect=!1,h.s.deselect=
|
||||||
|
!1}i(this.dom.panes).empty();b=0;for(d=this.s.panes;b<d.length;b++)h=d[b],h.s.lastSelect?h._setListeners():h.rebuildPane(void 0,this.s.dt.page.info().serverSide?this.s.serverData:void 0,h.s.index===c?!0:null,!0),i(this.dom.panes).append(h.dom.container),void 0!==h.s.dtPane&&(i(h.s.dtPane.table().node()).parent()[0].scrollTop=h.s.scrollTop,i.fn.dataTable.select.init(h.s.dtPane));this.s.dt.page.info().serverSide||this.s.dt.draw()};m.prototype._startup=function(a){var b=this;i(this.dom.container).text("");
|
||||||
|
this._attachExtras();i(this.dom.container).append(this.dom.panes);i(this.dom.panes).empty();var c=this.s.dt.state.loaded();if(this.c.viewTotal&&!this.c.cascadePanes&&null!==c&&void 0!==c&&void 0!==c.searchPanes&&void 0!==c.searchPanes.panes){for(var d=!1,e=0,h=c.searchPanes.panes;e<h.length;e++){var f=h[e];if(0<f.selected.length){d=!0;break}}if(d){d=0;for(e=this.s.panes;d<e.length;d++)f=e[d],f.s.showFiltered=!0}}d=0;for(e=this.s.panes;d<e.length;d++)f=e[d],f.rebuildPane(void 0,0<Object.keys(this.s.serverData).length?
|
||||||
|
this.s.serverData:void 0),i(this.dom.panes).append(f.dom.container);this.s.dt.page.info().serverSide||this.s.dt.draw();!this.s.stateRead&&(null!==c&&void 0!==c)&&(this.s.dt.page(c.start/this.s.dt.page.len()),this.s.dt.draw("page"));this.s.stateRead=!0;if(this.c.viewTotal&&!this.c.cascadePanes){c=0;for(d=this.s.panes;c<d.length;c++)f=d[c],f.updatePane()}this._updateFilterCount();this._checkMessage();a.on("preDraw.dtsps",function(){b._updateFilterCount();(b.c.cascadePanes||b.c.viewTotal)&&!b.s.dt.page.info().serverSide?
|
||||||
|
b.redrawPanes():b._updateSelection();b.s.filterPane=-1});this.s.dt.on("stateSaveParams.dtsp",function(a,c,d){if(d.searchPanes===void 0)d.searchPanes={};d.searchPanes.selectionList=b.s.selectionList});this.s.dt.on("xhr",function(){var a=false;if(!b.s.dt.page.info().serverSide)b.s.dt.one("preDraw",function(){if(!a){a=true;i(b.dom.panes).empty();for(var c=0,d=b.s.panes;c<d.length;c++){var f=d[c];f.clearData();f.rebuildPane(b.s.selectionList[b.s.selectionList.length-1]!==void 0?f.s.index===b.s.selectionList[b.s.selectionList.length-
|
||||||
|
1].index:false,void 0,void 0,true);i(b.dom.panes).append(f.dom.container)}b.s.dt.page.info().serverSide||b.s.dt.draw();b.c.cascadePanes||b.c.viewTotal?b.redrawPanes(b.c.cascadePanes):b._updateSelection();b._checkMessage()}})});c=0;for(d=this.s.panes;c<d.length;c++)if(f=d[c],void 0!==f&&void 0!==f.s.dtPane&&(void 0!==f.s.colOpts.preSelect||void 0!==f.customPaneSettings.preSelect)){e=f.s.dtPane.rows().data().toArray().length;for(h=0;h<e;h++)(-1!==f.s.colOpts.preSelect.indexOf(f.s.dtPane.cell(h,0).data())||
|
||||||
|
null!==f.customPaneSettings&&void 0!==f.customPaneSettings.preSelect&&-1!==f.customPaneSettings.preSelect.indexOf(f.s.dtPane.cell(h,0).data()))&&f.s.dtPane.row(h).select();f.updateTable()}if(void 0!==this.s.selectionList&&0<this.s.selectionList.length){c=this.s.selectionList[this.s.selectionList.length-1].index;d=0;for(e=this.s.panes;d<e.length;d++)f=e[d],f.s.lastSelect=f.s.index===c}0<this.s.selectionList.length&&this.c.cascadePanes&&this._cascadeRegen(this.s.selectionList);this._updateFilterCount();
|
||||||
|
a.on("destroy.dtsps",function(){for(var c=0,d=b.s.panes;c<d.length;c++)d[c].destroy();a.off(".dtsps");i(b.dom.clearAll).off(".dtsps");i(b.dom.container).remove();b.clearSelections()});if(this.c.clear)i(this.dom.clearAll).on("click.dtsps",function(){b.clearSelections()});if(this.s.dt.page.info().serverSide)a.on("preXhr.dt",function(a,c,d){if(d.searchPanes===void 0)d.searchPanes={};a=0;for(c=b.s.panes;a<c.length;a++){var f=c[a],e=b.s.dt.column(f.s.index).dataSrc();d.searchPanes[e]===void 0&&(d.searchPanes[e]=
|
||||||
|
{});if(f.s.dtPane!==void 0)for(var f=f.s.dtPane.rows({selected:true}).data().toArray(),h=0;h<f.length;h++)d.searchPanes[e][h]=f[h].filter}b.c.viewTotal&&b._prepViewTotal()});else a.on("preXhr.dt",function(){for(var a=0,c=b.s.panes;a<c.length;a++)c[a].clearData()});a.settings()[0]._searchPanes=this};m.prototype._prepViewTotal=function(){for(var a=this.s.filterPane,b=!1,c=0,d=this.s.panes;c<d.length;c++){var e=d[c];if(void 0!==e.s.dtPane){var h=e.s.dtPane.rows({selected:!0}).data().toArray().length;
|
||||||
|
0<h&&-1===a?(a=e.s.index,b=!0):0<h&&(a=null)}}c=0;for(d=this.s.panes;c<d.length;c++)if(e=d[c],void 0!==e.s.dtPane&&(e.s.filteringActive=!0,-1!==a&&null!==a&&a===e.s.index||!1===b))e.s.filteringActive=!1};m.prototype._updateFilterCount=function(){for(var a=0,b=0,c=this.s.panes;b<c.length;b++){var d=c[b];void 0!==d.s.dtPane&&(a+=d.getPaneCount())}b=this.s.dt.i18n("searchPanes.title","Filters Active - %d",a);i(this.dom.title).text(b);void 0!==this.c.filterChanged&&"function"===typeof this.c.filterChanged&&
|
||||||
|
this.c.filterChanged.call(this.s.dt,a)};m.prototype._updateSelection=function(){this.s.selectionList=[];for(var a=0,b=this.s.panes;a<b.length;a++){var c=b[a];void 0!==c.s.dtPane&&this.s.selectionList.push({index:c.s.index,rows:c.s.dtPane.rows({selected:!0}).data().toArray(),protect:!1})}this.s.dt.state.save()};m.version="1.2.1";m.classes={clear:"dtsp-clear",clearAll:"dtsp-clearAll",container:"dtsp-searchPanes",emptyMessage:"dtsp-emptyMessage",hide:"dtsp-hidden",panes:"dtsp-panesContainer",search:"dtsp-search",
|
||||||
|
title:"dtsp-title",titleRow:"dtsp-titleRow"};m.defaults={cascadePanes:!1,clear:!0,container:function(a){return a.table().container()},columns:[],filterChanged:void 0,layout:"columns-3",order:[],panes:[],viewTotal:!1};u=m;var v=function(a,b,c){function d(a,b){void 0===b&&(b=!1);var c=new e.Api(a),d=c.init().searchPanes||e.defaults.searchPanes;return(new u(c,d,b)).getNode()}g=a;q=a.fn.dataTable;i=a;var e=s=a.fn.dataTable;a.fn.dataTable.SearchPanes=u;a.fn.DataTable.SearchPanes=u;a.fn.dataTable.SearchPane=
|
||||||
|
t;a.fn.DataTable.SearchPane=t;b=a.fn.dataTable.Api.register;b("searchPanes()",function(){return this});b("searchPanes.clearSelections()",function(){return this.iterator("table",function(a){a._searchPanes&&a._searchPanes.clearSelections()})});b("searchPanes.rebuildPane()",function(a,b){return this.iterator("table",function(c){c._searchPanes&&c._searchPanes.rebuild(a,b)})});b("searchPanes.container()",function(){var a=this.context[0];return a._searchPanes?a._searchPanes.getNode():null});a.fn.dataTable.ext.buttons.searchPanesClear=
|
||||||
|
{text:"Clear Panes",action:function(a,b){b.searchPanes.clearSelections()}};a.fn.dataTable.ext.buttons.searchPanes={action:function(a,b,c,d){a.stopPropagation();this.popover(d._panes.getNode(),{align:"dt-container"});d._panes.rebuild(void 0,!0)},config:{},init:function(b,c,d){var e=new a.fn.dataTable.SearchPanes(b,a.extend({filterChanged:function(a){b.button(c).text(b.i18n("searchPanes.collapse",{"0":"SearchPanes",_:"SearchPanes (%d)"},a))}},d.config)),g=b.i18n("searchPanes.collapse","SearchPanes",
|
||||||
|
0);b.button(c).text(g);d._panes=e},text:"Search Panes"};a(c).on("preInit.dt.dtsp",function(a,b){if("dt"===a.namespace&&(b.oInit.searchPanes||e.defaults.searchPanes))b._searchPanes||d(b,!0)});e.ext.feature.push({cFeature:"P",fnInit:d});e.ext.features&&e.ext.features.register("searchPanes",d)};"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return v(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=
|
||||||
|
require("datatables.net")(a,b).$;return v(b,a,a.document)}:v(window.jQuery,window,document)})();
|
|
@ -0,0 +1,58 @@
|
||||||
|
(function (factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD
|
||||||
|
define(['jquery', 'datatables.net-bs4', 'datatables.net-searchpanes'], function ($) {
|
||||||
|
return factory($, window, document);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else if (typeof exports === 'object') {
|
||||||
|
// CommonJS
|
||||||
|
module.exports = function (root, $) {
|
||||||
|
if (!root) {
|
||||||
|
root = window;
|
||||||
|
}
|
||||||
|
if (!$ || !$.fn.dataTable) {
|
||||||
|
$ = require('datatables.net-bs4')(root, $).$;
|
||||||
|
}
|
||||||
|
console.log($.fn.dataTable);
|
||||||
|
if (!$.fn.dataTable.SearchPanes) {
|
||||||
|
console.log("not present");
|
||||||
|
require('datatables.net-searchpanes')(root, $);
|
||||||
|
}
|
||||||
|
return factory($, root, root.document);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Browser
|
||||||
|
factory(jQuery, window, document);
|
||||||
|
}
|
||||||
|
}(function ($, window, document) {
|
||||||
|
'use strict';
|
||||||
|
var DataTable = $.fn.dataTable;
|
||||||
|
$.extend(true, DataTable.SearchPane.classes, {
|
||||||
|
buttonGroup: 'btn-group col justify-content-end',
|
||||||
|
disabledButton: 'disabled',
|
||||||
|
dull: '',
|
||||||
|
narrow: 'col',
|
||||||
|
pane: {
|
||||||
|
container: 'table'
|
||||||
|
},
|
||||||
|
paneButton: 'btn btn-light',
|
||||||
|
pill: 'pill badge badge-pill badge-secondary',
|
||||||
|
search: 'col-sm form-control search',
|
||||||
|
searchCont: 'input-group col-sm',
|
||||||
|
searchLabelCont: 'input-group-append',
|
||||||
|
subRow1: 'dtsp-subRow1',
|
||||||
|
subRow2: 'dtsp-subRow2',
|
||||||
|
table: 'table table-sm table-borderless',
|
||||||
|
topRow: 'dtsp-topRow row'
|
||||||
|
});
|
||||||
|
$.extend(true, DataTable.SearchPanes.classes, {
|
||||||
|
clearAll: 'dtsp-clearAll col-auto btn btn-light',
|
||||||
|
container: 'dtsp-searchPanes',
|
||||||
|
panes: 'dtsp-panes dtsp-container',
|
||||||
|
title: 'dtsp-title col',
|
||||||
|
titleRow: 'dtsp-titleRow row'
|
||||||
|
});
|
||||||
|
return DataTable.searchPanes;
|
||||||
|
}));
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-searchpanes"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net-bs4")(a,b).$;console.log(b.fn.dataTable);b.fn.dataTable.SearchPanes||(console.log("not present"),require("datatables.net-searchpanes")(a,b));return c(b,a,a.document)}:c(jQuery,window,document)})(function(c){var a=c.fn.dataTable;
|
||||||
|
c.extend(!0,a.SearchPane.classes,{buttonGroup:"btn-group col justify-content-end",disabledButton:"disabled",dull:"",narrow:"col",pane:{container:"table"},paneButton:"btn btn-light",pill:"pill badge badge-pill badge-secondary",search:"col-sm form-control search",searchCont:"input-group col-sm",searchLabelCont:"input-group-append",subRow1:"dtsp-subRow1",subRow2:"dtsp-subRow2",table:"table table-sm table-borderless",topRow:"dtsp-topRow row"});c.extend(!0,a.SearchPanes.classes,{clearAll:"dtsp-clearAll col-auto btn btn-light",
|
||||||
|
container:"dtsp-searchPanes",panes:"dtsp-panes dtsp-container",title:"dtsp-title col",titleRow:"dtsp-titleRow row"});return a.searchPanes});
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '1',
|
1: '1',
|
||||||
'2': '2',
|
2: '2',
|
||||||
'3': '3',
|
3: '3',
|
||||||
'4': '4',
|
4: '4',
|
||||||
'5': '5',
|
5: '5',
|
||||||
'6': '6',
|
6: '6',
|
||||||
'7': '7',
|
7: '7',
|
||||||
'8': '8',
|
8: '8',
|
||||||
'9': '9',
|
9: '9',
|
||||||
'0': '0',
|
0: '0',
|
||||||
},
|
},
|
||||||
pluralForm = function (n) {
|
pluralForm = function (n) {
|
||||||
return n === 0
|
return n === 0
|
||||||
|
|
|
@ -56,8 +56,8 @@
|
||||||
yy: '%d سنوات',
|
yy: '%d سنوات',
|
||||||
},
|
},
|
||||||
week: {
|
week: {
|
||||||
dow: 6, // Saturday is the first day of the week.
|
dow: 1, // Monday is the first day of the week.
|
||||||
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '١',
|
1: '١',
|
||||||
'2': '٢',
|
2: '٢',
|
||||||
'3': '٣',
|
3: '٣',
|
||||||
'4': '٤',
|
4: '٤',
|
||||||
'5': '٥',
|
5: '٥',
|
||||||
'6': '٦',
|
6: '٦',
|
||||||
'7': '٧',
|
7: '٧',
|
||||||
'8': '٨',
|
8: '٨',
|
||||||
'9': '٩',
|
9: '٩',
|
||||||
'0': '٠',
|
0: '٠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'١': '1',
|
'١': '1',
|
||||||
|
|
|
@ -14,16 +14,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '١',
|
1: '١',
|
||||||
'2': '٢',
|
2: '٢',
|
||||||
'3': '٣',
|
3: '٣',
|
||||||
'4': '٤',
|
4: '٤',
|
||||||
'5': '٥',
|
5: '٥',
|
||||||
'6': '٦',
|
6: '٦',
|
||||||
'7': '٧',
|
7: '٧',
|
||||||
'8': '٨',
|
8: '٨',
|
||||||
'9': '٩',
|
9: '٩',
|
||||||
'0': '٠',
|
0: '٠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'١': '1',
|
'١': '1',
|
||||||
|
|
|
@ -60,6 +60,8 @@
|
||||||
hh: '%d часа',
|
hh: '%d часа',
|
||||||
d: 'ден',
|
d: 'ден',
|
||||||
dd: '%d дена',
|
dd: '%d дена',
|
||||||
|
w: 'седмица',
|
||||||
|
ww: '%d седмици',
|
||||||
M: 'месец',
|
M: 'месец',
|
||||||
MM: '%d месеца',
|
MM: '%d месеца',
|
||||||
y: 'година',
|
y: 'година',
|
||||||
|
|
|
@ -0,0 +1,139 @@
|
||||||
|
//! moment.js locale configuration
|
||||||
|
//! locale : Bengali (Bangladesh) [bn-bd]
|
||||||
|
//! author : Asraf Hossain Patoary : https://github.com/ashwoolford
|
||||||
|
|
||||||
|
;(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||||
|
factory(global.moment)
|
||||||
|
}(this, (function (moment) { 'use strict';
|
||||||
|
|
||||||
|
//! moment.js locale configuration
|
||||||
|
|
||||||
|
var symbolMap = {
|
||||||
|
1: '১',
|
||||||
|
2: '২',
|
||||||
|
3: '৩',
|
||||||
|
4: '৪',
|
||||||
|
5: '৫',
|
||||||
|
6: '৬',
|
||||||
|
7: '৭',
|
||||||
|
8: '৮',
|
||||||
|
9: '৯',
|
||||||
|
0: '০',
|
||||||
|
},
|
||||||
|
numberMap = {
|
||||||
|
'১': '1',
|
||||||
|
'২': '2',
|
||||||
|
'৩': '3',
|
||||||
|
'৪': '4',
|
||||||
|
'৫': '5',
|
||||||
|
'৬': '6',
|
||||||
|
'৭': '7',
|
||||||
|
'৮': '8',
|
||||||
|
'৯': '9',
|
||||||
|
'০': '0',
|
||||||
|
};
|
||||||
|
|
||||||
|
var bnBd = moment.defineLocale('bn-bd', {
|
||||||
|
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
||||||
|
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
|
||||||
|
longDateFormat: {
|
||||||
|
LT: 'A h:mm সময়',
|
||||||
|
LTS: 'A h:mm:ss সময়',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY, A h:mm সময়',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
|
||||||
|
},
|
||||||
|
calendar: {
|
||||||
|
sameDay: '[আজ] LT',
|
||||||
|
nextDay: '[আগামীকাল] LT',
|
||||||
|
nextWeek: 'dddd, LT',
|
||||||
|
lastDay: '[গতকাল] LT',
|
||||||
|
lastWeek: '[গত] dddd, LT',
|
||||||
|
sameElse: 'L',
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s পরে',
|
||||||
|
past: '%s আগে',
|
||||||
|
s: 'কয়েক সেকেন্ড',
|
||||||
|
ss: '%d সেকেন্ড',
|
||||||
|
m: 'এক মিনিট',
|
||||||
|
mm: '%d মিনিট',
|
||||||
|
h: 'এক ঘন্টা',
|
||||||
|
hh: '%d ঘন্টা',
|
||||||
|
d: 'এক দিন',
|
||||||
|
dd: '%d দিন',
|
||||||
|
M: 'এক মাস',
|
||||||
|
MM: '%d মাস',
|
||||||
|
y: 'এক বছর',
|
||||||
|
yy: '%d বছর',
|
||||||
|
},
|
||||||
|
preparse: function (string) {
|
||||||
|
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
|
||||||
|
return numberMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
postformat: function (string) {
|
||||||
|
return string.replace(/\d/g, function (match) {
|
||||||
|
return symbolMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
|
||||||
|
meridiemHour: function (hour, meridiem) {
|
||||||
|
if (hour === 12) {
|
||||||
|
hour = 0;
|
||||||
|
}
|
||||||
|
if (meridiem === 'রাত') {
|
||||||
|
return hour < 4 ? hour : hour + 12;
|
||||||
|
} else if (meridiem === 'ভোর') {
|
||||||
|
return hour;
|
||||||
|
} else if (meridiem === 'সকাল') {
|
||||||
|
return hour;
|
||||||
|
} else if (meridiem === 'দুপুর') {
|
||||||
|
return hour >= 3 ? hour : hour + 12;
|
||||||
|
} else if (meridiem === 'বিকাল') {
|
||||||
|
return hour + 12;
|
||||||
|
} else if (meridiem === 'সন্ধ্যা') {
|
||||||
|
return hour + 12;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
meridiem: function (hour, minute, isLower) {
|
||||||
|
if (hour < 4) {
|
||||||
|
return 'রাত';
|
||||||
|
} else if (hour < 6) {
|
||||||
|
return 'ভোর';
|
||||||
|
} else if (hour < 12) {
|
||||||
|
return 'সকাল';
|
||||||
|
} else if (hour < 15) {
|
||||||
|
return 'দুপুর';
|
||||||
|
} else if (hour < 18) {
|
||||||
|
return 'বিকাল';
|
||||||
|
} else if (hour < 20) {
|
||||||
|
return 'সন্ধ্যা';
|
||||||
|
} else {
|
||||||
|
return 'রাত';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
week: {
|
||||||
|
dow: 0, // Sunday is the first day of the week.
|
||||||
|
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
return bnBd;
|
||||||
|
|
||||||
|
})));
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '১',
|
1: '১',
|
||||||
'2': '২',
|
2: '২',
|
||||||
'3': '৩',
|
3: '৩',
|
||||||
'4': '৪',
|
4: '৪',
|
||||||
'5': '৫',
|
5: '৫',
|
||||||
'6': '৬',
|
6: '৬',
|
||||||
'7': '৭',
|
7: '৭',
|
||||||
'8': '৮',
|
8: '৮',
|
||||||
'9': '৯',
|
9: '৯',
|
||||||
'0': '০',
|
0: '০',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'১': '1',
|
'১': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '༡',
|
1: '༡',
|
||||||
'2': '༢',
|
2: '༢',
|
||||||
'3': '༣',
|
3: '༣',
|
||||||
'4': '༤',
|
4: '༤',
|
||||||
'5': '༥',
|
5: '༥',
|
||||||
'6': '༦',
|
6: '༦',
|
||||||
'7': '༧',
|
7: '༧',
|
||||||
'8': '༨',
|
8: '༨',
|
||||||
'9': '༩',
|
9: '༩',
|
||||||
'0': '༠',
|
0: '༠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'༡': '1',
|
'༡': '1',
|
||||||
|
|
|
@ -95,6 +95,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'un día',
|
d: 'un día',
|
||||||
dd: '%d días',
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'un mes',
|
M: 'un mes',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'un año',
|
y: 'un año',
|
||||||
|
|
|
@ -0,0 +1,117 @@
|
||||||
|
//! moment.js locale configuration
|
||||||
|
//! locale : Spanish (Mexico) [es-mx]
|
||||||
|
//! author : JC Franco : https://github.com/jcfranco
|
||||||
|
|
||||||
|
;(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||||
|
factory(global.moment)
|
||||||
|
}(this, (function (moment) { 'use strict';
|
||||||
|
|
||||||
|
//! moment.js locale configuration
|
||||||
|
|
||||||
|
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
monthsParse = [
|
||||||
|
/^ene/i,
|
||||||
|
/^feb/i,
|
||||||
|
/^mar/i,
|
||||||
|
/^abr/i,
|
||||||
|
/^may/i,
|
||||||
|
/^jun/i,
|
||||||
|
/^jul/i,
|
||||||
|
/^ago/i,
|
||||||
|
/^sep/i,
|
||||||
|
/^oct/i,
|
||||||
|
/^nov/i,
|
||||||
|
/^dic/i,
|
||||||
|
],
|
||||||
|
monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
|
||||||
|
|
||||||
|
var esMx = moment.defineLocale('es-mx', {
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
monthsShort: function (m, format) {
|
||||||
|
if (!m) {
|
||||||
|
return monthsShortDot;
|
||||||
|
} else if (/-MMM-/.test(format)) {
|
||||||
|
return monthsShort[m.month()];
|
||||||
|
} else {
|
||||||
|
return monthsShortDot[m.month()];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
monthsRegex: monthsRegex,
|
||||||
|
monthsShortRegex: monthsRegex,
|
||||||
|
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
|
||||||
|
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
|
||||||
|
monthsParse: monthsParse,
|
||||||
|
longMonthsParse: monthsParse,
|
||||||
|
shortMonthsParse: monthsParse,
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
weekdaysParseExact: true,
|
||||||
|
longDateFormat: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
|
||||||
|
},
|
||||||
|
calendar: {
|
||||||
|
sameDay: function () {
|
||||||
|
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
nextDay: function () {
|
||||||
|
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
nextWeek: function () {
|
||||||
|
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
lastDay: function () {
|
||||||
|
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
||||||
|
},
|
||||||
|
lastWeek: function () {
|
||||||
|
return (
|
||||||
|
'[el] dddd [pasado a la' +
|
||||||
|
(this.hours() !== 1 ? 's' : '') +
|
||||||
|
'] LT'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
sameElse: 'L',
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
ss: '%d segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años',
|
||||||
|
},
|
||||||
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
||||||
|
ordinal: '%dº',
|
||||||
|
week: {
|
||||||
|
dow: 0, // Sunday is the first day of the week.
|
||||||
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
||||||
|
},
|
||||||
|
invalidDate: 'Fecha inválida',
|
||||||
|
});
|
||||||
|
|
||||||
|
return esMx;
|
||||||
|
|
||||||
|
})));
|
|
@ -97,6 +97,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'un día',
|
d: 'un día',
|
||||||
dd: '%d días',
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'un mes',
|
M: 'un mes',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'un año',
|
y: 'un año',
|
||||||
|
|
|
@ -96,6 +96,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'un día',
|
d: 'un día',
|
||||||
dd: '%d días',
|
dd: '%d días',
|
||||||
|
w: 'una semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'un mes',
|
M: 'un mes',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'un año',
|
y: 'un año',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '۱',
|
1: '۱',
|
||||||
'2': '۲',
|
2: '۲',
|
||||||
'3': '۳',
|
3: '۳',
|
||||||
'4': '۴',
|
4: '۴',
|
||||||
'5': '۵',
|
5: '۵',
|
||||||
'6': '۶',
|
6: '۶',
|
||||||
'7': '۷',
|
7: '۷',
|
||||||
'8': '۸',
|
8: '۸',
|
||||||
'9': '۹',
|
9: '۹',
|
||||||
'0': '۰',
|
0: '۰',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'۱': '1',
|
'۱': '1',
|
||||||
|
|
|
@ -74,6 +74,8 @@
|
||||||
hh: '%d heures',
|
hh: '%d heures',
|
||||||
d: 'un jour',
|
d: 'un jour',
|
||||||
dd: '%d jours',
|
dd: '%d jours',
|
||||||
|
w: 'une semaine',
|
||||||
|
ww: '%d semaines',
|
||||||
M: 'un mois',
|
M: 'un mois',
|
||||||
MM: '%d mois',
|
MM: '%d mois',
|
||||||
y: 'un an',
|
y: 'un an',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '૧',
|
1: '૧',
|
||||||
'2': '૨',
|
2: '૨',
|
||||||
'3': '૩',
|
3: '૩',
|
||||||
'4': '૪',
|
4: '૪',
|
||||||
'5': '૫',
|
5: '૫',
|
||||||
'6': '૬',
|
6: '૬',
|
||||||
'7': '૭',
|
7: '૭',
|
||||||
'8': '૮',
|
8: '૮',
|
||||||
'9': '૯',
|
9: '૯',
|
||||||
'0': '૦',
|
0: '૦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'૧': '1',
|
'૧': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '१',
|
1: '१',
|
||||||
'2': '२',
|
2: '२',
|
||||||
'3': '३',
|
3: '३',
|
||||||
'4': '४',
|
4: '४',
|
||||||
'5': '५',
|
5: '५',
|
||||||
'6': '६',
|
6: '६',
|
||||||
'7': '७',
|
7: '७',
|
||||||
'8': '८',
|
8: '८',
|
||||||
'9': '९',
|
9: '९',
|
||||||
'0': '०',
|
0: '०',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'१': '1',
|
'१': '1',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
//! locale : Hungarian [hu]
|
//! locale : Hungarian [hu]
|
||||||
//! author : Adam Brunner : https://github.com/adambrunner
|
//! author : Adam Brunner : https://github.com/adambrunner
|
||||||
|
//! author : Peter Viszt : https://github.com/passatgt
|
||||||
|
|
||||||
;(function (global, factory) {
|
;(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined'
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
@ -61,9 +62,10 @@
|
||||||
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
|
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(
|
monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
|
monthsParseExact: true,
|
||||||
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
||||||
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
||||||
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
|
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
|
||||||
|
|
|
@ -97,6 +97,8 @@
|
||||||
hh: '%d ore',
|
hh: '%d ore',
|
||||||
d: 'un giorno',
|
d: 'un giorno',
|
||||||
dd: '%d giorni',
|
dd: '%d giorni',
|
||||||
|
w: 'una settimana',
|
||||||
|
ww: '%d settimane',
|
||||||
M: 'un mese',
|
M: 'un mese',
|
||||||
MM: '%d mesi',
|
MM: '%d mesi',
|
||||||
y: 'un anno',
|
y: 'un anno',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '១',
|
1: '១',
|
||||||
'2': '២',
|
2: '២',
|
||||||
'3': '៣',
|
3: '៣',
|
||||||
'4': '៤',
|
4: '៤',
|
||||||
'5': '៥',
|
5: '៥',
|
||||||
'6': '៦',
|
6: '៦',
|
||||||
'7': '៧',
|
7: '៧',
|
||||||
'8': '៨',
|
8: '៨',
|
||||||
'9': '៩',
|
9: '៩',
|
||||||
'0': '០',
|
0: '០',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'១': '1',
|
'១': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '೧',
|
1: '೧',
|
||||||
'2': '೨',
|
2: '೨',
|
||||||
'3': '೩',
|
3: '೩',
|
||||||
'4': '೪',
|
4: '೪',
|
||||||
'5': '೫',
|
5: '೫',
|
||||||
'6': '೬',
|
6: '೬',
|
||||||
'7': '೭',
|
7: '೭',
|
||||||
'8': '೮',
|
8: '೮',
|
||||||
'9': '೯',
|
9: '೯',
|
||||||
'0': '೦',
|
0: '೦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'೧': '1',
|
'೧': '1',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '١',
|
1: '١',
|
||||||
'2': '٢',
|
2: '٢',
|
||||||
'3': '٣',
|
3: '٣',
|
||||||
'4': '٤',
|
4: '٤',
|
||||||
'5': '٥',
|
5: '٥',
|
||||||
'6': '٦',
|
6: '٦',
|
||||||
'7': '٧',
|
7: '٧',
|
||||||
'8': '٨',
|
8: '٨',
|
||||||
'9': '٩',
|
9: '٩',
|
||||||
'0': '٠',
|
0: '٠',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'١': '1',
|
'١': '1',
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '१',
|
1: '१',
|
||||||
'2': '२',
|
2: '२',
|
||||||
'3': '३',
|
3: '३',
|
||||||
'4': '४',
|
4: '४',
|
||||||
'5': '५',
|
5: '५',
|
||||||
'6': '६',
|
6: '६',
|
||||||
'7': '७',
|
7: '७',
|
||||||
'8': '८',
|
8: '८',
|
||||||
'9': '९',
|
9: '९',
|
||||||
'0': '०',
|
0: '०',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'१': '1',
|
'१': '1',
|
||||||
|
|
|
@ -14,16 +14,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '၁',
|
1: '၁',
|
||||||
'2': '၂',
|
2: '၂',
|
||||||
'3': '၃',
|
3: '၃',
|
||||||
'4': '၄',
|
4: '၄',
|
||||||
'5': '၅',
|
5: '၅',
|
||||||
'6': '၆',
|
6: '၆',
|
||||||
'7': '၇',
|
7: '၇',
|
||||||
'8': '၈',
|
8: '၈',
|
||||||
'9': '၉',
|
9: '၉',
|
||||||
'0': '၀',
|
0: '၀',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'၁': '1',
|
'၁': '1',
|
||||||
|
|
|
@ -52,6 +52,8 @@
|
||||||
hh: '%d timer',
|
hh: '%d timer',
|
||||||
d: 'en dag',
|
d: 'en dag',
|
||||||
dd: '%d dager',
|
dd: '%d dager',
|
||||||
|
w: 'en uke',
|
||||||
|
ww: '%d uker',
|
||||||
M: 'en måned',
|
M: 'en måned',
|
||||||
MM: '%d måneder',
|
MM: '%d måneder',
|
||||||
y: 'ett år',
|
y: 'ett år',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '१',
|
1: '१',
|
||||||
'2': '२',
|
2: '२',
|
||||||
'3': '३',
|
3: '३',
|
||||||
'4': '४',
|
4: '४',
|
||||||
'5': '५',
|
5: '५',
|
||||||
'6': '६',
|
6: '६',
|
||||||
'7': '७',
|
7: '७',
|
||||||
'8': '८',
|
8: '८',
|
||||||
'9': '९',
|
9: '९',
|
||||||
'0': '०',
|
0: '०',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'१': '1',
|
'१': '1',
|
||||||
|
|
|
@ -90,6 +90,8 @@
|
||||||
hh: '%d uur',
|
hh: '%d uur',
|
||||||
d: 'één dag',
|
d: 'één dag',
|
||||||
dd: '%d dagen',
|
dd: '%d dagen',
|
||||||
|
w: 'één week',
|
||||||
|
ww: '%d weken',
|
||||||
M: 'één maand',
|
M: 'één maand',
|
||||||
MM: '%d maanden',
|
MM: '%d maanden',
|
||||||
y: 'één jaar',
|
y: 'één jaar',
|
||||||
|
|
|
@ -51,6 +51,8 @@
|
||||||
hh: '%d timar',
|
hh: '%d timar',
|
||||||
d: 'ein dag',
|
d: 'ein dag',
|
||||||
dd: '%d dagar',
|
dd: '%d dagar',
|
||||||
|
w: 'ei veke',
|
||||||
|
ww: '%d veker',
|
||||||
M: 'ein månad',
|
M: 'ein månad',
|
||||||
MM: '%d månader',
|
MM: '%d månader',
|
||||||
y: 'eit år',
|
y: 'eit år',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '੧',
|
1: '੧',
|
||||||
'2': '੨',
|
2: '੨',
|
||||||
'3': '੩',
|
3: '੩',
|
||||||
'4': '੪',
|
4: '੪',
|
||||||
'5': '੫',
|
5: '੫',
|
||||||
'6': '੬',
|
6: '੬',
|
||||||
'7': '੭',
|
7: '੭',
|
||||||
'8': '੮',
|
8: '੮',
|
||||||
'9': '੯',
|
9: '੯',
|
||||||
'0': '੦',
|
0: '੦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'੧': '1',
|
'੧': '1',
|
||||||
|
|
|
@ -16,7 +16,21 @@
|
||||||
),
|
),
|
||||||
monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
|
monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
|
||||||
'_'
|
'_'
|
||||||
);
|
),
|
||||||
|
monthsParse = [
|
||||||
|
/^sty/i,
|
||||||
|
/^lut/i,
|
||||||
|
/^mar/i,
|
||||||
|
/^kwi/i,
|
||||||
|
/^maj/i,
|
||||||
|
/^cze/i,
|
||||||
|
/^lip/i,
|
||||||
|
/^sie/i,
|
||||||
|
/^wrz/i,
|
||||||
|
/^paź/i,
|
||||||
|
/^lis/i,
|
||||||
|
/^gru/i,
|
||||||
|
];
|
||||||
function plural(n) {
|
function plural(n) {
|
||||||
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
|
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
|
||||||
}
|
}
|
||||||
|
@ -33,6 +47,8 @@
|
||||||
return withoutSuffix ? 'godzina' : 'godzinę';
|
return withoutSuffix ? 'godzina' : 'godzinę';
|
||||||
case 'hh':
|
case 'hh':
|
||||||
return result + (plural(number) ? 'godziny' : 'godzin');
|
return result + (plural(number) ? 'godziny' : 'godzin');
|
||||||
|
case 'ww':
|
||||||
|
return result + (plural(number) ? 'tygodnie' : 'tygodni');
|
||||||
case 'MM':
|
case 'MM':
|
||||||
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
||||||
case 'yy':
|
case 'yy':
|
||||||
|
@ -44,17 +60,6 @@
|
||||||
months: function (momentToFormat, format) {
|
months: function (momentToFormat, format) {
|
||||||
if (!momentToFormat) {
|
if (!momentToFormat) {
|
||||||
return monthsNominative;
|
return monthsNominative;
|
||||||
} else if (format === '') {
|
|
||||||
// Hack: if format empty we know this is used to generate
|
|
||||||
// RegExp by moment. Give then back both valid forms of months
|
|
||||||
// in RegExp ready format.
|
|
||||||
return (
|
|
||||||
'(' +
|
|
||||||
monthsSubjective[momentToFormat.month()] +
|
|
||||||
'|' +
|
|
||||||
monthsNominative[momentToFormat.month()] +
|
|
||||||
')'
|
|
||||||
);
|
|
||||||
} else if (/D MMMM/.test(format)) {
|
} else if (/D MMMM/.test(format)) {
|
||||||
return monthsSubjective[momentToFormat.month()];
|
return monthsSubjective[momentToFormat.month()];
|
||||||
} else {
|
} else {
|
||||||
|
@ -62,6 +67,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
|
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
|
||||||
|
monthsParse: monthsParse,
|
||||||
|
longMonthsParse: monthsParse,
|
||||||
|
shortMonthsParse: monthsParse,
|
||||||
weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
|
weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
|
@ -122,6 +130,8 @@
|
||||||
hh: translate,
|
hh: translate,
|
||||||
d: '1 dzień',
|
d: '1 dzień',
|
||||||
dd: '%d dni',
|
dd: '%d dni',
|
||||||
|
w: 'tydzień',
|
||||||
|
ww: translate,
|
||||||
M: 'miesiąc',
|
M: 'miesiąc',
|
||||||
MM: translate,
|
MM: translate,
|
||||||
y: 'rok',
|
y: 'rok',
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
},
|
},
|
||||||
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
||||||
ordinal: '%dº',
|
ordinal: '%dº',
|
||||||
|
invalidDate: 'Data inválida',
|
||||||
});
|
});
|
||||||
|
|
||||||
return ptBr;
|
return ptBr;
|
||||||
|
|
|
@ -53,6 +53,8 @@
|
||||||
hh: '%d horas',
|
hh: '%d horas',
|
||||||
d: 'um dia',
|
d: 'um dia',
|
||||||
dd: '%d dias',
|
dd: '%d dias',
|
||||||
|
w: 'uma semana',
|
||||||
|
ww: '%d semanas',
|
||||||
M: 'um mês',
|
M: 'um mês',
|
||||||
MM: '%d meses',
|
MM: '%d meses',
|
||||||
y: 'um ano',
|
y: 'um ano',
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
mm: 'minute',
|
mm: 'minute',
|
||||||
hh: 'ore',
|
hh: 'ore',
|
||||||
dd: 'zile',
|
dd: 'zile',
|
||||||
|
ww: 'săptămâni',
|
||||||
MM: 'luni',
|
MM: 'luni',
|
||||||
yy: 'ani',
|
yy: 'ani',
|
||||||
},
|
},
|
||||||
|
@ -67,6 +68,8 @@
|
||||||
hh: relativeTimeWithPlural,
|
hh: relativeTimeWithPlural,
|
||||||
d: 'o zi',
|
d: 'o zi',
|
||||||
dd: relativeTimeWithPlural,
|
dd: relativeTimeWithPlural,
|
||||||
|
w: 'o săptămână',
|
||||||
|
ww: relativeTimeWithPlural,
|
||||||
M: 'o lună',
|
M: 'o lună',
|
||||||
MM: relativeTimeWithPlural,
|
MM: relativeTimeWithPlural,
|
||||||
y: 'un an',
|
y: 'un an',
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
|
mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
|
||||||
hh: 'час_часа_часов',
|
hh: 'час_часа_часов',
|
||||||
dd: 'день_дня_дней',
|
dd: 'день_дня_дней',
|
||||||
|
ww: 'неделя_недели_недель',
|
||||||
MM: 'месяц_месяца_месяцев',
|
MM: 'месяц_месяца_месяцев',
|
||||||
yy: 'год_года_лет',
|
yy: 'год_года_лет',
|
||||||
};
|
};
|
||||||
|
@ -167,6 +168,8 @@
|
||||||
hh: relativeTimeWithPlural,
|
hh: relativeTimeWithPlural,
|
||||||
d: 'день',
|
d: 'день',
|
||||||
dd: relativeTimeWithPlural,
|
dd: relativeTimeWithPlural,
|
||||||
|
w: 'неделя',
|
||||||
|
ww: relativeTimeWithPlural,
|
||||||
M: 'месяц',
|
M: 'месяц',
|
||||||
MM: relativeTimeWithPlural,
|
MM: relativeTimeWithPlural,
|
||||||
y: 'год',
|
y: 'год',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
//! locale : Serbian Cyrillic [sr-cyrl]
|
//! locale : Serbian Cyrillic [sr-cyrl]
|
||||||
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
||||||
|
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
||||||
|
|
||||||
;(function (global, factory) {
|
;(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined'
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
@ -59,10 +60,10 @@
|
||||||
longDateFormat: {
|
longDateFormat: {
|
||||||
LT: 'H:mm',
|
LT: 'H:mm',
|
||||||
LTS: 'H:mm:ss',
|
LTS: 'H:mm:ss',
|
||||||
L: 'DD.MM.YYYY',
|
L: 'D. M. YYYY.',
|
||||||
LL: 'D. MMMM YYYY',
|
LL: 'D. MMMM YYYY.',
|
||||||
LLL: 'D. MMMM YYYY H:mm',
|
LLL: 'D. MMMM YYYY. H:mm',
|
||||||
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
sameDay: '[данас у] LT',
|
sameDay: '[данас у] LT',
|
||||||
|
@ -117,7 +118,7 @@
|
||||||
ordinal: '%d.',
|
ordinal: '%d.',
|
||||||
week: {
|
week: {
|
||||||
dow: 1, // Monday is the first day of the week.
|
dow: 1, // Monday is the first day of the week.
|
||||||
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
doy: 7, // The week that contains Jan 1st is the first week of the year.
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
//! locale : Serbian [sr]
|
//! locale : Serbian [sr]
|
||||||
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
||||||
|
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
||||||
|
|
||||||
;(function (global, factory) {
|
;(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined'
|
typeof exports === 'object' && typeof module !== 'undefined'
|
||||||
|
@ -61,10 +62,10 @@
|
||||||
longDateFormat: {
|
longDateFormat: {
|
||||||
LT: 'H:mm',
|
LT: 'H:mm',
|
||||||
LTS: 'H:mm:ss',
|
LTS: 'H:mm:ss',
|
||||||
L: 'DD.MM.YYYY',
|
L: 'D. M. YYYY.',
|
||||||
LL: 'D. MMMM YYYY',
|
LL: 'D. MMMM YYYY.',
|
||||||
LLL: 'D. MMMM YYYY H:mm',
|
LLL: 'D. MMMM YYYY. H:mm',
|
||||||
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
sameDay: '[danas u] LT',
|
sameDay: '[danas u] LT',
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
//! moment.js locale configuration
|
//! moment.js locale configuration
|
||||||
|
|
||||||
var symbolMap = {
|
var symbolMap = {
|
||||||
'1': '௧',
|
1: '௧',
|
||||||
'2': '௨',
|
2: '௨',
|
||||||
'3': '௩',
|
3: '௩',
|
||||||
'4': '௪',
|
4: '௪',
|
||||||
'5': '௫',
|
5: '௫',
|
||||||
'6': '௬',
|
6: '௬',
|
||||||
'7': '௭',
|
7: '௭',
|
||||||
'8': '௮',
|
8: '௮',
|
||||||
'9': '௯',
|
9: '௯',
|
||||||
'0': '௦',
|
0: '௦',
|
||||||
},
|
},
|
||||||
numberMap = {
|
numberMap = {
|
||||||
'௧': '1',
|
'௧': '1',
|
||||||
|
|
|
@ -37,9 +37,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var tg = moment.defineLocale('tg', {
|
var tg = moment.defineLocale('tg', {
|
||||||
months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
|
months: {
|
||||||
|
format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
|
||||||
'_'
|
'_'
|
||||||
),
|
),
|
||||||
|
standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
|
||||||
|
'_'
|
||||||
|
),
|
||||||
|
},
|
||||||
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
||||||
weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
|
weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
|
||||||
'_'
|
'_'
|
||||||
|
@ -49,14 +54,14 @@
|
||||||
longDateFormat: {
|
longDateFormat: {
|
||||||
LT: 'HH:mm',
|
LT: 'HH:mm',
|
||||||
LTS: 'HH:mm:ss',
|
LTS: 'HH:mm:ss',
|
||||||
L: 'DD/MM/YYYY',
|
L: 'DD.MM.YYYY',
|
||||||
LL: 'D MMMM YYYY',
|
LL: 'D MMMM YYYY',
|
||||||
LLL: 'D MMMM YYYY HH:mm',
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
sameDay: '[Имрӯз соати] LT',
|
sameDay: '[Имрӯз соати] LT',
|
||||||
nextDay: '[Пагоҳ соати] LT',
|
nextDay: '[Фардо соати] LT',
|
||||||
lastDay: '[Дирӯз соати] LT',
|
lastDay: '[Дирӯз соати] LT',
|
||||||
nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
|
nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
|
||||||
lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
|
lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
|
||||||
|
|
|
@ -61,6 +61,8 @@
|
||||||
hh: '%d ชั่วโมง',
|
hh: '%d ชั่วโมง',
|
||||||
d: '1 วัน',
|
d: '1 วัน',
|
||||||
dd: '%d วัน',
|
dd: '%d วัน',
|
||||||
|
w: '1 สัปดาห์',
|
||||||
|
ww: '%d สัปดาห์',
|
||||||
M: '1 เดือน',
|
M: '1 เดือน',
|
||||||
MM: '%d เดือน',
|
MM: '%d เดือน',
|
||||||
y: '1 ปี',
|
y: '1 ปี',
|
||||||
|
|
|
@ -81,6 +81,8 @@
|
||||||
hh: '%d saat',
|
hh: '%d saat',
|
||||||
d: 'bir gün',
|
d: 'bir gün',
|
||||||
dd: '%d gün',
|
dd: '%d gün',
|
||||||
|
w: 'bir hafta',
|
||||||
|
ww: '%d hafta',
|
||||||
M: 'bir ay',
|
M: 'bir ay',
|
||||||
MM: '%d ay',
|
MM: '%d ay',
|
||||||
y: 'bir yıl',
|
y: 'bir yıl',
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
hh: '%d giờ',
|
hh: '%d giờ',
|
||||||
d: 'một ngày',
|
d: 'một ngày',
|
||||||
dd: '%d ngày',
|
dd: '%d ngày',
|
||||||
|
w: 'một tuần',
|
||||||
|
ww: '%d tuần',
|
||||||
M: 'một tháng',
|
M: 'một tháng',
|
||||||
MM: '%d tháng',
|
MM: '%d tháng',
|
||||||
y: 'một năm',
|
y: 'một năm',
|
||||||
|
|
|
@ -112,6 +112,8 @@
|
||||||
hh: '%d 小时',
|
hh: '%d 小时',
|
||||||
d: '1 天',
|
d: '1 天',
|
||||||
dd: '%d 天',
|
dd: '%d 天',
|
||||||
|
w: '1 周',
|
||||||
|
ww: '%d 周',
|
||||||
M: '1 个月',
|
M: '1 个月',
|
||||||
MM: '%d 个月',
|
MM: '%d 个月',
|
||||||
y: '1 年',
|
y: '1 年',
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* @sweetalert2/themes v3.2.0
|
* @sweetalert2/themes v4.0.0
|
||||||
* Released under the MIT License.
|
* Released under the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -42,7 +42,8 @@
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); }
|
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); }
|
||||||
.swal2-popup.swal2-toast .swal2-header {
|
.swal2-popup.swal2-toast .swal2-header {
|
||||||
flex-direction: row; }
|
flex-direction: row;
|
||||||
|
padding: 0; }
|
||||||
.swal2-popup.swal2-toast .swal2-title {
|
.swal2-popup.swal2-toast .swal2-title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
@ -59,6 +60,7 @@
|
||||||
line-height: 0.8; }
|
line-height: 0.8; }
|
||||||
.swal2-popup.swal2-toast .swal2-content {
|
.swal2-popup.swal2-toast .swal2-content {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
padding: 0;
|
||||||
font-size: 0.875rem; }
|
font-size: 0.875rem; }
|
||||||
.swal2-popup.swal2-toast .swal2-icon {
|
.swal2-popup.swal2-toast .swal2-icon {
|
||||||
width: 2em;
|
width: 2em;
|
||||||
|
@ -247,7 +249,8 @@
|
||||||
.swal2-header {
|
.swal2-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center; }
|
align-items: center;
|
||||||
|
padding: 0 1.8em; }
|
||||||
|
|
||||||
.swal2-title {
|
.swal2-title {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -264,50 +267,33 @@
|
||||||
.swal2-actions {
|
.swal2-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
box-sizing: border-box;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 1.25em auto 0; }
|
margin: 1.25em auto 0;
|
||||||
|
padding: 0 1.6em; }
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
||||||
opacity: .4; }
|
opacity: .4; }
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
|
.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); }
|
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); }
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); }
|
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); }
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm {
|
|
||||||
box-sizing: border-box;
|
.swal2-loader {
|
||||||
width: 2.5em;
|
display: none;
|
||||||
height: 2.5em;
|
align-items: center;
|
||||||
margin: .46875em;
|
justify-content: center;
|
||||||
padding: 0;
|
width: 2.2em;
|
||||||
|
height: 2.2em;
|
||||||
|
margin: 0 1.875em;
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
border: .25em solid transparent;
|
border-width: 0.25em;
|
||||||
|
border-style: solid;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
border-color: transparent;
|
border-color: #3085d6 transparent #3085d6 transparent; }
|
||||||
background-color: transparent !important;
|
|
||||||
color: transparent !important;
|
|
||||||
cursor: default;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
user-select: none; }
|
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-cancel {
|
|
||||||
margin-right: 30px;
|
|
||||||
margin-left: 30px; }
|
|
||||||
.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after {
|
|
||||||
content: '';
|
|
||||||
display: inline-block;
|
|
||||||
width: 15px;
|
|
||||||
height: 15px;
|
|
||||||
margin-left: 5px;
|
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
border: 3px solid #999999;
|
|
||||||
border-radius: 50%;
|
|
||||||
border-right-color: transparent;
|
|
||||||
box-shadow: 1px 1px 1px #fff; }
|
|
||||||
|
|
||||||
.swal2-styled {
|
.swal2-styled {
|
||||||
margin: .3125em;
|
margin: .3125em;
|
||||||
|
@ -323,6 +309,13 @@
|
||||||
background-color: #007bff;
|
background-color: #007bff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.0625em; }
|
font-size: 1.0625em; }
|
||||||
|
.swal2-styled.swal2-deny {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
background: initial;
|
||||||
|
background-color: #dd6b55;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.0625em; }
|
||||||
.swal2-styled.swal2-cancel {
|
.swal2-styled.swal2-cancel {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
|
@ -394,7 +387,7 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0 1.6em;
|
||||||
color: #545454;
|
color: #545454;
|
||||||
font-size: 1.125em;
|
font-size: 1.125em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -433,14 +426,10 @@
|
||||||
border: 1px solid #b4dbed;
|
border: 1px solid #b4dbed;
|
||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: 0 0 3px #c4e6f5; }
|
box-shadow: 0 0 3px #c4e6f5; }
|
||||||
.swal2-input::-webkit-input-placeholder, .swal2-file::-webkit-input-placeholder, .swal2-textarea::-webkit-input-placeholder {
|
|
||||||
color: #cccccc; }
|
|
||||||
.swal2-input::-moz-placeholder, .swal2-file::-moz-placeholder, .swal2-textarea::-moz-placeholder {
|
.swal2-input::-moz-placeholder, .swal2-file::-moz-placeholder, .swal2-textarea::-moz-placeholder {
|
||||||
color: #cccccc; }
|
color: #cccccc; }
|
||||||
.swal2-input:-ms-input-placeholder, .swal2-file:-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder {
|
.swal2-input:-ms-input-placeholder, .swal2-file:-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder {
|
||||||
color: #cccccc; }
|
color: #cccccc; }
|
||||||
.swal2-input::-ms-input-placeholder, .swal2-file::-ms-input-placeholder, .swal2-textarea::-ms-input-placeholder {
|
|
||||||
color: #cccccc; }
|
|
||||||
.swal2-input::placeholder,
|
.swal2-input::placeholder,
|
||||||
.swal2-file::placeholder,
|
.swal2-file::placeholder,
|
||||||
.swal2-textarea::placeholder {
|
.swal2-textarea::placeholder {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -69,6 +69,7 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: 0 0.3125em;
|
margin: 0 0.3125em;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
.swal2-popup.swal2-toast .swal2-styled {
|
.swal2-popup.swal2-toast .swal2-styled {
|
||||||
margin: 0 0.3125em;
|
margin: 0 0.3125em;
|
||||||
|
@ -287,11 +288,13 @@
|
||||||
.swal2-actions {
|
.swal2-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
box-sizing: border-box;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 1.25em auto 0;
|
margin: 1.25em auto 0;
|
||||||
|
padding: 0 1.6em;
|
||||||
}
|
}
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
|
@ -302,41 +305,20 @@
|
||||||
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
||||||
}
|
}
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm {
|
|
||||||
box-sizing: border-box;
|
.swal2-loader {
|
||||||
width: 2.5em;
|
display: none;
|
||||||
height: 2.5em;
|
align-items: center;
|
||||||
margin: 0.46875em;
|
justify-content: center;
|
||||||
padding: 0;
|
width: 2.2em;
|
||||||
|
height: 2.2em;
|
||||||
|
margin: 0 1.875em;
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
||||||
border: 0.25em solid transparent;
|
border-width: 0.25em;
|
||||||
|
border-style: solid;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
border-color: transparent;
|
border-color: #3085d6 transparent #3085d6 transparent;
|
||||||
background-color: transparent !important;
|
|
||||||
color: transparent !important;
|
|
||||||
cursor: default;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
.swal2-actions.swal2-loading .swal2-styled.swal2-cancel {
|
|
||||||
margin-right: 30px;
|
|
||||||
margin-left: 30px;
|
|
||||||
}
|
|
||||||
.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after {
|
|
||||||
content: "";
|
|
||||||
display: inline-block;
|
|
||||||
width: 15px;
|
|
||||||
height: 15px;
|
|
||||||
margin-left: 5px;
|
|
||||||
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
|
||||||
border: 3px solid #999999;
|
|
||||||
border-radius: 50%;
|
|
||||||
border-right-color: transparent;
|
|
||||||
box-shadow: 1px 1px 1px #fff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.swal2-styled {
|
.swal2-styled {
|
||||||
|
@ -356,6 +338,14 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.0625em;
|
font-size: 1.0625em;
|
||||||
}
|
}
|
||||||
|
.swal2-styled.swal2-deny {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
background: initial;
|
||||||
|
background-color: #dd6b55;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.0625em;
|
||||||
|
}
|
||||||
.swal2-styled.swal2-cancel {
|
.swal2-styled.swal2-cancel {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* sweetalert2 v9.17.2
|
* sweetalert2 v10.3.5
|
||||||
* Released under the MIT License.
|
* Released under the MIT License.
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
|
@ -271,7 +271,7 @@
|
||||||
* Show a one-time console warning about deprecated params/methods
|
* Show a one-time console warning about deprecated params/methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var warnAboutDepreation = function warnAboutDepreation(deprecatedParam, useInstead) {
|
var warnAboutDeprecation = function warnAboutDeprecation(deprecatedParam, useInstead) {
|
||||||
warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release. Please use \"").concat(useInstead, "\" instead."));
|
warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release. Please use \"").concat(useInstead, "\" instead."));
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -339,7 +339,7 @@
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'toast-column', 'show', 'hide', 'close', 'title', 'header', 'content', 'html-container', 'actions', 'confirm', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error']);
|
var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'toast-column', 'show', 'hide', 'close', 'title', 'header', 'content', 'html-container', 'actions', 'confirm', 'deny', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loader', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error']);
|
||||||
var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);
|
var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);
|
||||||
|
|
||||||
var getContainer = function getContainer() {
|
var getContainer = function getContainer() {
|
||||||
|
@ -388,6 +388,12 @@
|
||||||
var getConfirmButton = function getConfirmButton() {
|
var getConfirmButton = function getConfirmButton() {
|
||||||
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.confirm));
|
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.confirm));
|
||||||
};
|
};
|
||||||
|
var getDenyButton = function getDenyButton() {
|
||||||
|
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.deny));
|
||||||
|
};
|
||||||
|
var getLoader = function getLoader() {
|
||||||
|
return elementBySelector(".".concat(swalClasses.loader));
|
||||||
|
};
|
||||||
var getCancelButton = function getCancelButton() {
|
var getCancelButton = function getCancelButton() {
|
||||||
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.cancel));
|
return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.cancel));
|
||||||
};
|
};
|
||||||
|
@ -567,13 +573,18 @@
|
||||||
};
|
};
|
||||||
var show = function show(elem) {
|
var show = function show(elem) {
|
||||||
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
|
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
|
||||||
elem.style.opacity = '';
|
|
||||||
elem.style.display = display;
|
elem.style.display = display;
|
||||||
};
|
};
|
||||||
var hide = function hide(elem) {
|
var hide = function hide(elem) {
|
||||||
elem.style.opacity = '';
|
|
||||||
elem.style.display = 'none';
|
elem.style.display = 'none';
|
||||||
};
|
};
|
||||||
|
var setStyle = function setStyle(parent, selector, property, value) {
|
||||||
|
var el = parent.querySelector(selector);
|
||||||
|
|
||||||
|
if (el) {
|
||||||
|
el.style[property] = value;
|
||||||
|
}
|
||||||
|
};
|
||||||
var toggle = function toggle(elem, condition, display) {
|
var toggle = function toggle(elem, condition, display) {
|
||||||
condition ? show(elem, display) : hide(elem);
|
condition ? show(elem, display) : hide(elem);
|
||||||
}; // borrowed from jquery $(elem).is(':visible') implementation
|
}; // borrowed from jquery $(elem).is(':visible') implementation
|
||||||
|
@ -630,7 +641,7 @@
|
||||||
return typeof window === 'undefined' || typeof document === 'undefined';
|
return typeof window === 'undefined' || typeof document === 'undefined';
|
||||||
};
|
};
|
||||||
|
|
||||||
var sweetHTML = "\n <div aria-labelledby=\"".concat(swalClasses.title, "\" aria-describedby=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses.popup, "\" tabindex=\"-1\">\n <div class=\"").concat(swalClasses.header, "\">\n <ul class=\"").concat(swalClasses['progress-steps'], "\"></ul>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.error, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.question, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.warning, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.info, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.success, "\"></div>\n <img class=\"").concat(swalClasses.image, "\" />\n <h2 class=\"").concat(swalClasses.title, "\" id=\"").concat(swalClasses.title, "\"></h2>\n <button type=\"button\" class=\"").concat(swalClasses.close, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.content, "\">\n <div id=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses['html-container'], "\"></div>\n <input class=\"").concat(swalClasses.input, "\" />\n <input type=\"file\" class=\"").concat(swalClasses.file, "\" />\n <div class=\"").concat(swalClasses.range, "\">\n <input type=\"range\" />\n <output></output>\n </div>\n <select class=\"").concat(swalClasses.select, "\"></select>\n <div class=\"").concat(swalClasses.radio, "\"></div>\n <label for=\"").concat(swalClasses.checkbox, "\" class=\"").concat(swalClasses.checkbox, "\">\n <input type=\"checkbox\" />\n <span class=\"").concat(swalClasses.label, "\"></span>\n </label>\n <textarea class=\"").concat(swalClasses.textarea, "\"></textarea>\n <div class=\"").concat(swalClasses['validation-message'], "\" id=\"").concat(swalClasses['validation-message'], "\"></div>\n </div>\n <div class=\"").concat(swalClasses.actions, "\">\n <button type=\"button\" class=\"").concat(swalClasses.confirm, "\">OK</button>\n <button type=\"button\" class=\"").concat(swalClasses.cancel, "\">Cancel</button>\n </div>\n <div class=\"").concat(swalClasses.footer, "\"></div>\n <div class=\"").concat(swalClasses['timer-progress-bar-container'], "\">\n <div class=\"").concat(swalClasses['timer-progress-bar'], "\"></div>\n </div>\n </div>\n").replace(/(^|\n)\s*/g, '');
|
var sweetHTML = "\n <div aria-labelledby=\"".concat(swalClasses.title, "\" aria-describedby=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses.popup, "\" tabindex=\"-1\">\n <div class=\"").concat(swalClasses.header, "\">\n <ul class=\"").concat(swalClasses['progress-steps'], "\"></ul>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.error, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.question, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.warning, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.info, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.success, "\"></div>\n <img class=\"").concat(swalClasses.image, "\" />\n <h2 class=\"").concat(swalClasses.title, "\" id=\"").concat(swalClasses.title, "\"></h2>\n <button type=\"button\" class=\"").concat(swalClasses.close, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.content, "\">\n <div id=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses['html-container'], "\"></div>\n <input class=\"").concat(swalClasses.input, "\" />\n <input type=\"file\" class=\"").concat(swalClasses.file, "\" />\n <div class=\"").concat(swalClasses.range, "\">\n <input type=\"range\" />\n <output></output>\n </div>\n <select class=\"").concat(swalClasses.select, "\"></select>\n <div class=\"").concat(swalClasses.radio, "\"></div>\n <label for=\"").concat(swalClasses.checkbox, "\" class=\"").concat(swalClasses.checkbox, "\">\n <input type=\"checkbox\" />\n <span class=\"").concat(swalClasses.label, "\"></span>\n </label>\n <textarea class=\"").concat(swalClasses.textarea, "\"></textarea>\n <div class=\"").concat(swalClasses['validation-message'], "\" id=\"").concat(swalClasses['validation-message'], "\"></div>\n </div>\n <div class=\"").concat(swalClasses.actions, "\">\n <div class=\"").concat(swalClasses.loader, "\"></div>\n <button type=\"button\" class=\"").concat(swalClasses.confirm, "\"></button>\n <button type=\"button\" class=\"").concat(swalClasses.deny, "\"></button>\n <button type=\"button\" class=\"").concat(swalClasses.cancel, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.footer, "\"></div>\n <div class=\"").concat(swalClasses['timer-progress-bar-container'], "\">\n <div class=\"").concat(swalClasses['timer-progress-bar'], "\"></div>\n </div>\n </div>\n").replace(/(^|\n)\s*/g, '');
|
||||||
|
|
||||||
var resetOldContainer = function resetOldContainer() {
|
var resetOldContainer = function resetOldContainer() {
|
||||||
var oldContainer = getContainer();
|
var oldContainer = getContainer();
|
||||||
|
@ -798,40 +809,48 @@
|
||||||
|
|
||||||
var renderActions = function renderActions(instance, params) {
|
var renderActions = function renderActions(instance, params) {
|
||||||
var actions = getActions();
|
var actions = getActions();
|
||||||
|
var loader = getLoader();
|
||||||
var confirmButton = getConfirmButton();
|
var confirmButton = getConfirmButton();
|
||||||
|
var denyButton = getDenyButton();
|
||||||
var cancelButton = getCancelButton(); // Actions (buttons) wrapper
|
var cancelButton = getCancelButton(); // Actions (buttons) wrapper
|
||||||
|
|
||||||
if (!params.showConfirmButton && !params.showCancelButton) {
|
if (!params.showConfirmButton && !params.showDenyButton && !params.showCancelButton) {
|
||||||
hide(actions);
|
hide(actions);
|
||||||
} // Custom class
|
} // Custom class
|
||||||
|
|
||||||
|
|
||||||
applyCustomClass(actions, params, 'actions'); // Render confirm button
|
applyCustomClass(actions, params, 'actions'); // Render buttons
|
||||||
|
|
||||||
renderButton(confirmButton, 'confirm', params); // render Cancel Button
|
renderButton(confirmButton, 'confirm', params);
|
||||||
|
renderButton(denyButton, 'deny', params);
|
||||||
|
renderButton(cancelButton, 'cancel', params); // Loader
|
||||||
|
|
||||||
renderButton(cancelButton, 'cancel', params);
|
loader.innerHTML = params.loaderHtml;
|
||||||
|
|
||||||
if (params.buttonsStyling) {
|
if (params.buttonsStyling) {
|
||||||
handleButtonsStyling(confirmButton, cancelButton, params);
|
handleButtonsStyling(confirmButton, denyButton, cancelButton, params);
|
||||||
} else {
|
} else {
|
||||||
removeClass([confirmButton, cancelButton], swalClasses.styled);
|
removeClass([confirmButton, denyButton, cancelButton], swalClasses.styled);
|
||||||
confirmButton.style.backgroundColor = confirmButton.style.borderLeftColor = confirmButton.style.borderRightColor = '';
|
|
||||||
cancelButton.style.backgroundColor = cancelButton.style.borderLeftColor = cancelButton.style.borderRightColor = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.reverseButtons) {
|
if (params.reverseButtons) {
|
||||||
confirmButton.parentNode.insertBefore(cancelButton, confirmButton);
|
actions.insertBefore(cancelButton, loader);
|
||||||
|
actions.insertBefore(denyButton, loader);
|
||||||
|
actions.insertBefore(confirmButton, loader);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleButtonsStyling(confirmButton, cancelButton, params) {
|
function handleButtonsStyling(confirmButton, denyButton, cancelButton, params) {
|
||||||
addClass([confirmButton, cancelButton], swalClasses.styled); // Buttons background colors
|
addClass([confirmButton, denyButton, cancelButton], swalClasses.styled); // Buttons background colors
|
||||||
|
|
||||||
if (params.confirmButtonColor) {
|
if (params.confirmButtonColor) {
|
||||||
confirmButton.style.backgroundColor = params.confirmButtonColor;
|
confirmButton.style.backgroundColor = params.confirmButtonColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.denyButtonColor) {
|
||||||
|
denyButton.style.backgroundColor = params.denyButtonColor;
|
||||||
|
}
|
||||||
|
|
||||||
if (params.cancelButtonColor) {
|
if (params.cancelButtonColor) {
|
||||||
cancelButton.style.backgroundColor = params.cancelButtonColor;
|
cancelButton.style.backgroundColor = params.cancelButtonColor;
|
||||||
} // Loading state
|
} // Loading state
|
||||||
|
@ -1141,10 +1160,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var renderIcon = function renderIcon(instance, params) {
|
var renderIcon = function renderIcon(instance, params) {
|
||||||
var innerParams = privateProps.innerParams.get(instance); // if the give icon already rendered, apply the custom class without re-rendering the icon
|
var innerParams = privateProps.innerParams.get(instance); // if the given icon already rendered, apply the styling without re-rendering the icon
|
||||||
|
|
||||||
if (innerParams && params.icon === innerParams.icon && getIcon()) {
|
if (innerParams && params.icon === innerParams.icon && getIcon()) {
|
||||||
applyCustomClass(getIcon(), params, 'icon');
|
applyStyles(getIcon(), params);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1159,9 +1178,7 @@
|
||||||
show(icon); // Custom or default content
|
show(icon); // Custom or default content
|
||||||
|
|
||||||
setContent(icon, params);
|
setContent(icon, params);
|
||||||
adjustSuccessIconBackgoundColor(); // Custom class
|
applyStyles(icon, params); // Animate icon
|
||||||
|
|
||||||
applyCustomClass(icon, params, 'icon'); // Animate icon
|
|
||||||
|
|
||||||
addClass(icon, params.showClass.icon);
|
addClass(icon, params.showClass.icon);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1175,6 +1192,15 @@
|
||||||
for (var i = 0; i < icons.length; i++) {
|
for (var i = 0; i < icons.length; i++) {
|
||||||
hide(icons[i]);
|
hide(icons[i]);
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var applyStyles = function applyStyles(icon, params) {
|
||||||
|
// Icon color
|
||||||
|
setColor(icon, params); // Success icon background color
|
||||||
|
|
||||||
|
adjustSuccessIconBackgoundColor(); // Custom class
|
||||||
|
|
||||||
|
applyCustomClass(icon, params, 'icon');
|
||||||
}; // Adjust success icon background color to match the popup background color
|
}; // Adjust success icon background color to match the popup background color
|
||||||
|
|
||||||
|
|
||||||
|
@ -1207,6 +1233,22 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var setColor = function setColor(icon, params) {
|
||||||
|
if (!params.iconColor) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
icon.style.color = params.iconColor;
|
||||||
|
icon.style.borderColor = params.iconColor;
|
||||||
|
|
||||||
|
for (var _i = 0, _arr = ['.swal2-success-line-tip', '.swal2-success-line-long', '.swal2-x-mark-line-left', '.swal2-x-mark-line-right']; _i < _arr.length; _i++) {
|
||||||
|
var sel = _arr[_i];
|
||||||
|
setStyle(icon, sel, 'backgroundColor', params.iconColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
setStyle(icon, '.swal2-success-ring', 'borderColor', params.iconColor);
|
||||||
|
};
|
||||||
|
|
||||||
var iconContent = function iconContent(content) {
|
var iconContent = function iconContent(content) {
|
||||||
return "<div class=\"".concat(swalClasses['icon-content'], "\">").concat(content, "</div>");
|
return "<div class=\"".concat(swalClasses['icon-content'], "\">").concat(content, "</div>");
|
||||||
};
|
};
|
||||||
|
@ -1422,8 +1464,10 @@
|
||||||
renderActions(instance, params);
|
renderActions(instance, params);
|
||||||
renderFooter(instance, params);
|
renderFooter(instance, params);
|
||||||
|
|
||||||
if (typeof params.onRender === 'function') {
|
if (typeof params.didRender === 'function') {
|
||||||
params.onRender(getPopup());
|
params.didRender(getPopup());
|
||||||
|
} else if (typeof params.onRender === 'function') {
|
||||||
|
params.onRender(getPopup()); // @deprecated
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1441,6 +1485,13 @@
|
||||||
var clickConfirm = function clickConfirm() {
|
var clickConfirm = function clickConfirm() {
|
||||||
return getConfirmButton() && getConfirmButton().click();
|
return getConfirmButton() && getConfirmButton().click();
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
* Global function to click 'Deny' button
|
||||||
|
*/
|
||||||
|
|
||||||
|
var clickDeny = function clickDeny() {
|
||||||
|
return getDenyButton() && getDenyButton().click();
|
||||||
|
};
|
||||||
/*
|
/*
|
||||||
* Global function to click 'Cancel' button
|
* Global function to click 'Cancel' button
|
||||||
*/
|
*/
|
||||||
|
@ -1516,10 +1567,11 @@
|
||||||
popup = getPopup();
|
popup = getPopup();
|
||||||
var actions = getActions();
|
var actions = getActions();
|
||||||
var confirmButton = getConfirmButton();
|
var confirmButton = getConfirmButton();
|
||||||
|
var loader = getLoader();
|
||||||
show(actions);
|
show(actions);
|
||||||
show(confirmButton, 'inline-block');
|
hide(confirmButton);
|
||||||
addClass([popup, actions], swalClasses.loading);
|
addClass([popup, actions], swalClasses.loading);
|
||||||
confirmButton.disabled = true;
|
show(loader);
|
||||||
popup.setAttribute('data-loading', true);
|
popup.setAttribute('data-loading', true);
|
||||||
popup.setAttribute('aria-busy', true);
|
popup.setAttribute('aria-busy', true);
|
||||||
popup.focus();
|
popup.focus();
|
||||||
|
@ -1626,6 +1678,7 @@
|
||||||
html: '',
|
html: '',
|
||||||
footer: '',
|
footer: '',
|
||||||
icon: undefined,
|
icon: undefined,
|
||||||
|
iconColor: undefined,
|
||||||
iconHtml: undefined,
|
iconHtml: undefined,
|
||||||
toast: false,
|
toast: false,
|
||||||
animation: true,
|
animation: true,
|
||||||
|
@ -1649,21 +1702,27 @@
|
||||||
stopKeydownPropagation: true,
|
stopKeydownPropagation: true,
|
||||||
keydownListenerCapture: false,
|
keydownListenerCapture: false,
|
||||||
showConfirmButton: true,
|
showConfirmButton: true,
|
||||||
|
showDenyButton: false,
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
preConfirm: undefined,
|
preConfirm: undefined,
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
confirmButtonAriaLabel: '',
|
confirmButtonAriaLabel: '',
|
||||||
confirmButtonColor: undefined,
|
confirmButtonColor: undefined,
|
||||||
|
denyButtonText: 'No',
|
||||||
|
denyButtonAriaLabel: '',
|
||||||
|
denyButtonColor: undefined,
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
cancelButtonAriaLabel: '',
|
cancelButtonAriaLabel: '',
|
||||||
cancelButtonColor: undefined,
|
cancelButtonColor: undefined,
|
||||||
buttonsStyling: true,
|
buttonsStyling: true,
|
||||||
reverseButtons: false,
|
reverseButtons: false,
|
||||||
focusConfirm: true,
|
focusConfirm: true,
|
||||||
|
focusDeny: false,
|
||||||
focusCancel: false,
|
focusCancel: false,
|
||||||
showCloseButton: false,
|
showCloseButton: false,
|
||||||
closeButtonHtml: '×',
|
closeButtonHtml: '×',
|
||||||
closeButtonAriaLabel: 'Close this dialog',
|
closeButtonAriaLabel: 'Close this dialog',
|
||||||
|
loaderHtml: '',
|
||||||
showLoaderOnConfirm: false,
|
showLoaderOnConfirm: false,
|
||||||
imageUrl: undefined,
|
imageUrl: undefined,
|
||||||
imageWidth: undefined,
|
imageWidth: undefined,
|
||||||
|
@ -1689,17 +1748,29 @@
|
||||||
progressStepsDistance: undefined,
|
progressStepsDistance: undefined,
|
||||||
onBeforeOpen: undefined,
|
onBeforeOpen: undefined,
|
||||||
onOpen: undefined,
|
onOpen: undefined,
|
||||||
|
willOpen: undefined,
|
||||||
|
didOpen: undefined,
|
||||||
onRender: undefined,
|
onRender: undefined,
|
||||||
|
didRender: undefined,
|
||||||
onClose: undefined,
|
onClose: undefined,
|
||||||
onAfterClose: undefined,
|
onAfterClose: undefined,
|
||||||
|
willClose: undefined,
|
||||||
|
didClose: undefined,
|
||||||
onDestroy: undefined,
|
onDestroy: undefined,
|
||||||
|
didDestroy: undefined,
|
||||||
scrollbarPadding: true
|
scrollbarPadding: true
|
||||||
};
|
};
|
||||||
var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'footer', 'hideClass', 'html', 'icon', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'onAfterClose', 'onClose', 'onDestroy', 'progressSteps', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'text', 'title', 'titleText'];
|
var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'background', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'denyButtonAriaLabel', 'denyButtonColor', 'denyButtonText', 'didClose', 'didDestroy', 'footer', 'hideClass', 'html', 'icon', 'iconColor', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'onAfterClose', 'onClose', 'onDestroy', 'progressSteps', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'showDenyButton', 'text', 'title', 'titleText', 'willClose'];
|
||||||
var deprecatedParams = {
|
var deprecatedParams = {
|
||||||
animation: 'showClass" and "hideClass'
|
animation: 'showClass" and "hideClass',
|
||||||
|
onBeforeOpen: 'willOpen',
|
||||||
|
onOpen: 'didOpen',
|
||||||
|
onRender: 'didRender',
|
||||||
|
onClose: 'willClose',
|
||||||
|
onAfterClose: 'didClose',
|
||||||
|
onDestroy: 'didDestroy'
|
||||||
};
|
};
|
||||||
var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];
|
var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusDeny', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];
|
||||||
/**
|
/**
|
||||||
* Is valid parameter
|
* Is valid parameter
|
||||||
* @param {String} paramName
|
* @param {String} paramName
|
||||||
|
@ -1739,7 +1810,7 @@
|
||||||
|
|
||||||
var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
|
var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
|
||||||
if (isDeprecatedParameter(param)) {
|
if (isDeprecatedParameter(param)) {
|
||||||
warnAboutDepreation(param, isDeprecatedParameter(param));
|
warnAboutDeprecation(param, isDeprecatedParameter(param));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -1770,6 +1841,7 @@
|
||||||
argsToParams: argsToParams,
|
argsToParams: argsToParams,
|
||||||
isVisible: isVisible$1,
|
isVisible: isVisible$1,
|
||||||
clickConfirm: clickConfirm,
|
clickConfirm: clickConfirm,
|
||||||
|
clickDeny: clickDeny,
|
||||||
clickCancel: clickCancel,
|
clickCancel: clickCancel,
|
||||||
getContainer: getContainer,
|
getContainer: getContainer,
|
||||||
getPopup: getPopup,
|
getPopup: getPopup,
|
||||||
|
@ -1782,6 +1854,7 @@
|
||||||
getCloseButton: getCloseButton,
|
getCloseButton: getCloseButton,
|
||||||
getActions: getActions,
|
getActions: getActions,
|
||||||
getConfirmButton: getConfirmButton,
|
getConfirmButton: getConfirmButton,
|
||||||
|
getDenyButton: getDenyButton,
|
||||||
getCancelButton: getCancelButton,
|
getCancelButton: getCancelButton,
|
||||||
getHeader: getHeader,
|
getHeader: getHeader,
|
||||||
getFooter: getFooter,
|
getFooter: getFooter,
|
||||||
|
@ -1818,19 +1891,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var domCache = privateProps.domCache.get(this);
|
var domCache = privateProps.domCache.get(this);
|
||||||
|
hide(domCache.loader);
|
||||||
|
|
||||||
if (!innerParams.showConfirmButton) {
|
if (innerParams.showConfirmButton) {
|
||||||
hide(domCache.confirmButton);
|
show(domCache.confirmButton);
|
||||||
|
} else if (!innerParams.showConfirmButton && !innerParams.showCancelButton) {
|
||||||
if (!innerParams.showCancelButton) {
|
|
||||||
hide(domCache.actions);
|
hide(domCache.actions);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
removeClass([domCache.popup, domCache.actions], swalClasses.loading);
|
removeClass([domCache.popup, domCache.actions], swalClasses.loading);
|
||||||
domCache.popup.removeAttribute('aria-busy');
|
domCache.popup.removeAttribute('aria-busy');
|
||||||
domCache.popup.removeAttribute('data-loading');
|
domCache.popup.removeAttribute('data-loading');
|
||||||
domCache.confirmButton.disabled = false;
|
domCache.confirmButton.disabled = false;
|
||||||
|
domCache.denyButton.disabled = false;
|
||||||
domCache.cancelButton.disabled = false;
|
domCache.cancelButton.disabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2009,12 +2082,12 @@
|
||||||
* Instance method to close sweetAlert
|
* Instance method to close sweetAlert
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function removePopupAndResetState(instance, container, isToast$$1, onAfterClose) {
|
function removePopupAndResetState(instance, container, isToast$$1, didClose) {
|
||||||
if (isToast$$1) {
|
if (isToast$$1) {
|
||||||
triggerOnAfterCloseAndDispose(instance, onAfterClose);
|
triggerDidCloseAndDispose(instance, didClose);
|
||||||
} else {
|
} else {
|
||||||
restoreActiveElement().then(function () {
|
restoreActiveElement().then(function () {
|
||||||
return triggerOnAfterCloseAndDispose(instance, onAfterClose);
|
return triggerDidCloseAndDispose(instance, didClose);
|
||||||
});
|
});
|
||||||
globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
|
globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
|
||||||
capture: globalState.keydownListenerCapture
|
capture: globalState.keydownListenerCapture
|
||||||
|
@ -2047,6 +2120,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resolveValue = prepareResolveValue(resolveValue);
|
||||||
var innerParams = privateProps.innerParams.get(this);
|
var innerParams = privateProps.innerParams.get(this);
|
||||||
|
|
||||||
if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {
|
if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {
|
||||||
|
@ -2059,43 +2133,56 @@
|
||||||
var backdrop = getContainer();
|
var backdrop = getContainer();
|
||||||
removeClass(backdrop, innerParams.showClass.backdrop);
|
removeClass(backdrop, innerParams.showClass.backdrop);
|
||||||
addClass(backdrop, innerParams.hideClass.backdrop);
|
addClass(backdrop, innerParams.hideClass.backdrop);
|
||||||
handlePopupAnimation(this, popup, innerParams);
|
handlePopupAnimation(this, popup, innerParams); // Resolve Swal promise
|
||||||
|
|
||||||
if (typeof resolveValue !== 'undefined') {
|
swalPromiseResolve(resolveValue);
|
||||||
resolveValue.isDismissed = typeof resolveValue.dismiss !== 'undefined';
|
|
||||||
resolveValue.isConfirmed = typeof resolveValue.dismiss === 'undefined';
|
|
||||||
} else {
|
|
||||||
resolveValue = {
|
|
||||||
isDismissed: true,
|
|
||||||
isConfirmed: false
|
|
||||||
};
|
|
||||||
} // Resolve Swal promise
|
|
||||||
|
|
||||||
|
|
||||||
swalPromiseResolve(resolveValue || {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var prepareResolveValue = function prepareResolveValue(resolveValue) {
|
||||||
|
// When user calls Swal.close()
|
||||||
|
if (typeof resolveValue === 'undefined') {
|
||||||
|
return {
|
||||||
|
isConfirmed: false,
|
||||||
|
isDenied: false,
|
||||||
|
isDismissed: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _extends({
|
||||||
|
isConfirmed: false,
|
||||||
|
isDenied: false,
|
||||||
|
isDismissed: false
|
||||||
|
}, resolveValue);
|
||||||
|
};
|
||||||
|
|
||||||
var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
|
var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
|
||||||
var container = getContainer(); // If animation is supported, animate
|
var container = getContainer(); // If animation is supported, animate
|
||||||
|
|
||||||
var animationIsSupported = animationEndEvent && hasCssAnimation(popup);
|
var animationIsSupported = animationEndEvent && hasCssAnimation(popup);
|
||||||
var onClose = innerParams.onClose,
|
var onClose = innerParams.onClose,
|
||||||
onAfterClose = innerParams.onAfterClose;
|
onAfterClose = innerParams.onAfterClose,
|
||||||
|
willClose = innerParams.willClose,
|
||||||
if (onClose !== null && typeof onClose === 'function') {
|
didClose = innerParams.didClose;
|
||||||
onClose(popup);
|
runDidClose(popup, willClose, onClose);
|
||||||
}
|
|
||||||
|
|
||||||
if (animationIsSupported) {
|
if (animationIsSupported) {
|
||||||
animatePopup(instance, popup, container, onAfterClose);
|
animatePopup(instance, popup, container, didClose || onAfterClose);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, remove immediately
|
// Otherwise, remove immediately
|
||||||
removePopupAndResetState(instance, container, isToast(), onAfterClose);
|
removePopupAndResetState(instance, container, isToast(), didClose || onAfterClose);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var animatePopup = function animatePopup(instance, popup, container, onAfterClose) {
|
var runDidClose = function runDidClose(popup, willClose, onClose) {
|
||||||
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), onAfterClose);
|
if (willClose !== null && typeof willClose === 'function') {
|
||||||
|
willClose(popup);
|
||||||
|
} else if (onClose !== null && typeof onClose === 'function') {
|
||||||
|
onClose(popup); // @deprecated
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var animatePopup = function animatePopup(instance, popup, container, didClose) {
|
||||||
|
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), didClose);
|
||||||
popup.addEventListener(animationEndEvent, function (e) {
|
popup.addEventListener(animationEndEvent, function (e) {
|
||||||
if (e.target === popup) {
|
if (e.target === popup) {
|
||||||
globalState.swalCloseEventFinishedCallback();
|
globalState.swalCloseEventFinishedCallback();
|
||||||
|
@ -2104,10 +2191,10 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerOnAfterCloseAndDispose = function triggerOnAfterCloseAndDispose(instance, onAfterClose) {
|
var triggerDidCloseAndDispose = function triggerDidCloseAndDispose(instance, didClose) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (typeof onAfterClose === 'function') {
|
if (typeof didClose === 'function') {
|
||||||
onAfterClose();
|
didClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
instance._destroy();
|
instance._destroy();
|
||||||
|
@ -2139,10 +2226,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableButtons() {
|
function enableButtons() {
|
||||||
setButtonsDisabled(this, ['confirmButton', 'cancelButton'], false);
|
setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], false);
|
||||||
}
|
}
|
||||||
function disableButtons() {
|
function disableButtons() {
|
||||||
setButtonsDisabled(this, ['confirmButton', 'cancelButton'], true);
|
setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], true);
|
||||||
}
|
}
|
||||||
function enableInput() {
|
function enableInput() {
|
||||||
return setInputDisabled(this.getInput(), false);
|
return setInputDisabled(this.getInput(), false);
|
||||||
|
@ -2315,25 +2402,30 @@
|
||||||
init(params);
|
init(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var SHOW_CLASS_TIMEOUT = 10;
|
||||||
/**
|
/**
|
||||||
* Open popup, add necessary classes and styles, fix scrollbar
|
* Open popup, add necessary classes and styles, fix scrollbar
|
||||||
*
|
*
|
||||||
* @param {Array} params
|
* @param params
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var openPopup = function openPopup(params) {
|
var openPopup = function openPopup(params) {
|
||||||
var container = getContainer();
|
var container = getContainer();
|
||||||
var popup = getPopup();
|
var popup = getPopup();
|
||||||
|
|
||||||
if (typeof params.onBeforeOpen === 'function') {
|
if (typeof params.willOpen === 'function') {
|
||||||
params.onBeforeOpen(popup);
|
params.willOpen(popup);
|
||||||
|
} else if (typeof params.onBeforeOpen === 'function') {
|
||||||
|
params.onBeforeOpen(popup); // @deprecated
|
||||||
}
|
}
|
||||||
|
|
||||||
var bodyStyles = window.getComputedStyle(document.body);
|
var bodyStyles = window.getComputedStyle(document.body);
|
||||||
var initialBodyOverflow = bodyStyles.overflowY;
|
var initialBodyOverflow = bodyStyles.overflowY;
|
||||||
addClasses$1(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'
|
addClasses$1(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
setScrollingVisibility(container, popup);
|
setScrollingVisibility(container, popup);
|
||||||
|
}, SHOW_CLASS_TIMEOUT);
|
||||||
|
|
||||||
if (isModal()) {
|
if (isModal()) {
|
||||||
fixScrollContainer(container, params.scrollbarPadding, initialBodyOverflow);
|
fixScrollContainer(container, params.scrollbarPadding, initialBodyOverflow);
|
||||||
|
@ -2344,16 +2436,23 @@
|
||||||
globalState.previousActiveElement = document.activeElement;
|
globalState.previousActiveElement = document.activeElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof params.onOpen === 'function') {
|
runDidOpen(popup, params);
|
||||||
setTimeout(function () {
|
|
||||||
return params.onOpen(popup);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
removeClass(container, swalClasses['no-transition']);
|
removeClass(container, swalClasses['no-transition']);
|
||||||
};
|
};
|
||||||
|
|
||||||
function swalOpenAnimationFinished(event) {
|
var runDidOpen = function runDidOpen(popup, params) {
|
||||||
|
if (typeof params.didOpen === 'function') {
|
||||||
|
setTimeout(function () {
|
||||||
|
return params.didOpen(popup);
|
||||||
|
});
|
||||||
|
} else if (typeof params.onOpen === 'function') {
|
||||||
|
setTimeout(function () {
|
||||||
|
return params.onOpen(popup);
|
||||||
|
}); // @deprecated
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var swalOpenAnimationFinished = function swalOpenAnimationFinished(event) {
|
||||||
var popup = getPopup();
|
var popup = getPopup();
|
||||||
|
|
||||||
if (event.target !== popup) {
|
if (event.target !== popup) {
|
||||||
|
@ -2363,7 +2462,7 @@
|
||||||
var container = getContainer();
|
var container = getContainer();
|
||||||
popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);
|
popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);
|
||||||
container.style.overflowY = 'auto';
|
container.style.overflowY = 'auto';
|
||||||
}
|
};
|
||||||
|
|
||||||
var setScrollingVisibility = function setScrollingVisibility(container, popup) {
|
var setScrollingVisibility = function setScrollingVisibility(container, popup) {
|
||||||
if (animationEndEvent && hasCssAnimation(popup)) {
|
if (animationEndEvent && hasCssAnimation(popup)) {
|
||||||
|
@ -2389,10 +2488,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var addClasses$1 = function addClasses(container, popup, params) {
|
var addClasses$1 = function addClasses(container, popup, params) {
|
||||||
addClass(container, params.showClass.backdrop);
|
addClass(container, params.showClass.backdrop); // the workaround with setting/unsetting opacity is needed for #2019 and 2059
|
||||||
show(popup); // Animate popup right after showing it
|
|
||||||
|
popup.style.setProperty('opacity', '0', 'important');
|
||||||
|
show(popup);
|
||||||
|
setTimeout(function () {
|
||||||
|
// Animate popup right after showing it
|
||||||
|
addClass(popup, params.showClass.popup); // and remove the opacity workaround
|
||||||
|
|
||||||
|
popup.style.removeProperty('opacity');
|
||||||
|
}, SHOW_CLASS_TIMEOUT); // 10ms in order to fix #2062
|
||||||
|
|
||||||
addClass(popup, params.showClass.popup);
|
|
||||||
addClass([document.documentElement, document.body], swalClasses.shown);
|
addClass([document.documentElement, document.body], swalClasses.shown);
|
||||||
|
|
||||||
if (params.heightAuto && params.backdrop && !params.toast) {
|
if (params.heightAuto && params.backdrop && !params.toast) {
|
||||||
|
@ -2591,6 +2697,11 @@
|
||||||
confirm(instance, innerParams, true);
|
confirm(instance, innerParams, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
var handleDenyButtonClick = function handleDenyButtonClick(instance) {
|
||||||
|
instance.disableButtons(); // here we could add preDeny in future, if needed
|
||||||
|
|
||||||
|
deny(instance);
|
||||||
|
};
|
||||||
var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
|
var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
|
||||||
instance.disableButtons();
|
instance.disableButtons();
|
||||||
dismissWith(DismissReason.cancel);
|
dismissWith(DismissReason.cancel);
|
||||||
|
@ -2622,8 +2733,16 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var deny = function deny(instance) {
|
||||||
|
instance.closePopup({
|
||||||
|
isDenied: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
var succeedWith = function succeedWith(instance, value) {
|
var succeedWith = function succeedWith(instance, value) {
|
||||||
instance.closePopup({
|
instance.closePopup({
|
||||||
|
isConfirmed: true,
|
||||||
value: value
|
value: value
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -2690,7 +2809,9 @@
|
||||||
|
|
||||||
getPopup().focus();
|
getPopup().focus();
|
||||||
};
|
};
|
||||||
var arrowKeys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Left', 'Right', 'Up', 'Down' // IE11
|
var arrowKeysNextButton = ['ArrowRight', 'ArrowDown', 'Right', 'Down' // IE11
|
||||||
|
];
|
||||||
|
var arrowKeysPreviousButton = ['ArrowLeft', 'ArrowUp', 'Left', 'Up' // IE11
|
||||||
];
|
];
|
||||||
var escKeys = ['Escape', 'Esc' // IE11
|
var escKeys = ['Escape', 'Esc' // IE11
|
||||||
];
|
];
|
||||||
|
@ -2707,8 +2828,8 @@
|
||||||
handleEnter(instance, e, innerParams); // TAB
|
handleEnter(instance, e, innerParams); // TAB
|
||||||
} else if (e.key === 'Tab') {
|
} else if (e.key === 'Tab') {
|
||||||
handleTab(e, innerParams); // ARROWS - switch focus between buttons
|
handleTab(e, innerParams); // ARROWS - switch focus between buttons
|
||||||
} else if (arrowKeys.indexOf(e.key) !== -1) {
|
} else if ([].concat(arrowKeysNextButton, arrowKeysPreviousButton).indexOf(e.key) !== -1) {
|
||||||
handleArrows(); // ESC
|
handleArrows(e.key); // ESC
|
||||||
} else if (escKeys.indexOf(e.key) !== -1) {
|
} else if (escKeys.indexOf(e.key) !== -1) {
|
||||||
handleEsc(e, innerParams, dismissWith);
|
handleEsc(e, innerParams, dismissWith);
|
||||||
}
|
}
|
||||||
|
@ -2754,14 +2875,20 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
var handleArrows = function handleArrows() {
|
var handleArrows = function handleArrows(key) {
|
||||||
var confirmButton = getConfirmButton();
|
var confirmButton = getConfirmButton();
|
||||||
var cancelButton = getCancelButton(); // focus Cancel button if Confirm button is currently focused
|
var denyButton = getDenyButton();
|
||||||
|
var cancelButton = getCancelButton();
|
||||||
|
|
||||||
if (document.activeElement === confirmButton && isVisible(cancelButton)) {
|
if (!([confirmButton, denyButton, cancelButton].indexOf(document.activeElement) !== -1)) {
|
||||||
cancelButton.focus(); // and vice versa
|
return;
|
||||||
} else if (document.activeElement === cancelButton && isVisible(confirmButton)) {
|
}
|
||||||
confirmButton.focus();
|
|
||||||
|
var sibling = arrowKeysNextButton.indexOf(key) !== -1 ? 'nextElementSibling' : 'previousElementSibling';
|
||||||
|
var buttonToFocus = document.activeElement[sibling];
|
||||||
|
|
||||||
|
if (buttonToFocus) {
|
||||||
|
buttonToFocus.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2792,7 +2919,7 @@
|
||||||
domCache.popup.onclick = function () {
|
domCache.popup.onclick = function () {
|
||||||
var innerParams = privateProps.innerParams.get(instance);
|
var innerParams = privateProps.innerParams.get(instance);
|
||||||
|
|
||||||
if (innerParams.showConfirmButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.input) {
|
if (innerParams.showConfirmButton || innerParams.showDenyButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.input) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2893,6 +3020,7 @@
|
||||||
// functions to handle all closings/dismissals
|
// functions to handle all closings/dismissals
|
||||||
var dismissWith = function dismissWith(dismiss) {
|
var dismissWith = function dismissWith(dismiss) {
|
||||||
instance.closePopup({
|
instance.closePopup({
|
||||||
|
isDismissed: true,
|
||||||
dismiss: dismiss
|
dismiss: dismiss
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -2903,6 +3031,10 @@
|
||||||
return handleConfirmButtonClick(instance, innerParams);
|
return handleConfirmButtonClick(instance, innerParams);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
domCache.denyButton.onclick = function () {
|
||||||
|
return handleDenyButtonClick(instance);
|
||||||
|
};
|
||||||
|
|
||||||
domCache.cancelButton.onclick = function () {
|
domCache.cancelButton.onclick = function () {
|
||||||
return handleCancelButtonClick(instance, dismissWith);
|
return handleCancelButtonClick(instance, dismissWith);
|
||||||
};
|
};
|
||||||
|
@ -2938,7 +3070,9 @@
|
||||||
content: getContent(),
|
content: getContent(),
|
||||||
actions: getActions(),
|
actions: getActions(),
|
||||||
confirmButton: getConfirmButton(),
|
confirmButton: getConfirmButton(),
|
||||||
|
denyButton: getDenyButton(),
|
||||||
cancelButton: getCancelButton(),
|
cancelButton: getCancelButton(),
|
||||||
|
loader: getLoader(),
|
||||||
closeButton: getCloseButton(),
|
closeButton: getCloseButton(),
|
||||||
validationMessage: getValidationMessage(),
|
validationMessage: getValidationMessage(),
|
||||||
progressSteps: getProgressSteps()
|
progressSteps: getProgressSteps()
|
||||||
|
@ -2978,15 +3112,28 @@
|
||||||
return blurActiveElement();
|
return blurActiveElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!focusButton(domCache, innerParams)) {
|
||||||
|
setFocus(innerParams, -1, 1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var focusButton = function focusButton(domCache, innerParams) {
|
||||||
|
if (innerParams.focusDeny && isVisible(domCache.denyButton)) {
|
||||||
|
domCache.denyButton.focus();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
|
if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
|
||||||
return domCache.cancelButton.focus();
|
domCache.cancelButton.focus();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
|
if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
|
||||||
return domCache.confirmButton.focus();
|
domCache.confirmButton.focus();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
setFocus(innerParams, -1, 1);
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
var blurActiveElement = function blurActiveElement() {
|
var blurActiveElement = function blurActiveElement() {
|
||||||
|
@ -3013,7 +3160,7 @@
|
||||||
if (Swal.isUpdatableParameter(param)) {
|
if (Swal.isUpdatableParameter(param)) {
|
||||||
validUpdatableParams[param] = params[param];
|
validUpdatableParams[param] = params[param];
|
||||||
} else {
|
} else {
|
||||||
warn("Invalid parameter to update: \"".concat(param, "\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js"));
|
warn("Invalid parameter to update: \"".concat(param, "\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3050,13 +3197,18 @@
|
||||||
delete globalState.deferDisposalTimer;
|
delete globalState.deferDisposalTimer;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof innerParams.onDestroy === 'function') {
|
runDidDestroy(innerParams);
|
||||||
innerParams.onDestroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
disposeSwal(this);
|
disposeSwal(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var runDidDestroy = function runDidDestroy(innerParams) {
|
||||||
|
if (typeof innerParams.didDestroy === 'function') {
|
||||||
|
innerParams.didDestroy();
|
||||||
|
} else if (typeof innerParams.onDestroy === 'function') {
|
||||||
|
innerParams.onDestroy(); // @deprecated
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
var disposeSwal = function disposeSwal(instance) {
|
var disposeSwal = function disposeSwal(instance) {
|
||||||
// Unset this.params so GC will dispose it (#1569)
|
// Unset this.params so GC will dispose it (#1569)
|
||||||
delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)
|
delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)
|
||||||
|
@ -3168,7 +3320,7 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
SweetAlert.DismissReason = DismissReason;
|
SweetAlert.DismissReason = DismissReason;
|
||||||
SweetAlert.version = '9.17.2';
|
SweetAlert.version = '10.3.5';
|
||||||
|
|
||||||
var Swal = SweetAlert;
|
var Swal = SweetAlert;
|
||||||
Swal["default"] = Swal;
|
Swal["default"] = Swal;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue