Compare commits
165 commits
main-mc-so
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d8bc95c92 | ||
|
|
63880e0e8c | ||
|
|
8c1444f00a | ||
|
|
949fa30152 | ||
|
|
f7d3870567 | ||
|
|
157a27d43d | ||
|
|
1b46601ce8 | ||
|
|
80c0d4deab | ||
|
|
f95004f654 | ||
|
|
c9cd741aff | ||
|
|
e34481b6eb | ||
|
|
d21fb9b627 | ||
|
|
20a9d491a2 | ||
|
|
041de9d5ed | ||
|
|
1cdbf532af | ||
|
|
82e5fe2d8c | ||
|
|
cad88abdb0 | ||
|
|
05249c8c04 | ||
|
|
408b2558dc | ||
|
|
f43133ac41 | ||
|
|
ed5ddca5ba | ||
|
|
69afafe811 | ||
|
|
bf1e913f05 | ||
|
|
0bcaa068f2 | ||
|
|
78c5b503f9 | ||
|
|
d62d18f172 | ||
|
|
a2ae2c364f | ||
|
|
7e6d7b8f81 | ||
|
|
ee8546da18 | ||
|
|
3b773e4265 | ||
|
|
80557b3ac0 | ||
|
|
70175db429 | ||
|
|
d9adaae5b0 | ||
|
|
480e7e61b6 | ||
|
|
f2c504397e | ||
|
|
cefdcf6954 | ||
|
|
417372677f | ||
|
|
fee72a1dbc | ||
|
|
dbd53b8475 | ||
|
|
3c934ddcef | ||
|
|
e635a49536 | ||
|
|
acec356c81 | ||
|
|
d1a62b47c3 | ||
|
|
88d35b725b | ||
|
|
eb45005047 | ||
|
|
265605bba0 | ||
|
|
dfe1b156d1 | ||
|
|
fd48a8732f | ||
|
|
97a3ef357d | ||
|
|
baa8d3702f | ||
|
|
e1e6f5684e | ||
|
|
d5b6971814 | ||
|
|
8f33f7865d | ||
|
|
1bfe4780d4 | ||
|
|
e27bd176bf | ||
|
|
fdd76d6d0c | ||
|
|
c6240401f5 | ||
|
|
ae3fa0e679 | ||
|
|
5672401b15 | ||
|
|
9d95e11eda | ||
|
|
99b3470e82 | ||
|
|
b05145c951 | ||
|
|
122b2bdd48 | ||
|
|
0fc072649e | ||
|
|
93a4c0fbf7 | ||
|
|
a48a29a7a5 | ||
|
|
bcf69163cd | ||
|
|
8e426a32bc | ||
|
|
f50b867be8 | ||
|
|
c1197ad37f | ||
|
|
9b7bb7b568 | ||
|
|
59cd71631e | ||
|
|
2d46e47464 | ||
|
|
44667d89fa | ||
|
|
86802f701c | ||
|
|
e468917731 | ||
|
|
d140f50b35 | ||
|
|
561c0d8cde | ||
|
|
58ab1c2cd5 | ||
|
|
66f323af70 | ||
|
|
517446069a | ||
|
|
f07106e604 | ||
|
|
ef0bc661cf | ||
|
|
df763d6457 | ||
|
|
8984255158 | ||
|
|
b424650ab5 | ||
|
|
f12657b39f | ||
|
|
29e4eb91c1 | ||
|
|
269efc8dc9 | ||
|
|
4e7c9e56fc | ||
|
|
cc3a5cf79a | ||
|
|
65f1bf027a | ||
|
|
479043f255 | ||
|
|
0c195f690a | ||
|
|
c2f67d72e8 | ||
|
|
eae52b1cb0 | ||
|
|
9b6c815148 | ||
|
|
e8d14b302e | ||
|
|
c3e8a0ef2a | ||
|
|
e1f561b53c | ||
|
|
e2324731de | ||
|
|
a3ead0786a | ||
|
|
042a4a255f | ||
|
|
793c79d14b | ||
|
|
25326a0114 | ||
|
|
a60d8c0d58 | ||
|
|
071f914fa1 | ||
|
|
a31ea592d6 | ||
|
|
fe3658672c | ||
|
|
ebce95dc60 | ||
|
|
b85ca045e0 | ||
|
|
e967ecf900 | ||
|
|
f2b39d620c | ||
|
|
78389b2acf | ||
|
|
b2477cc70c | ||
|
|
764e5298de | ||
|
|
93ab072027 | ||
|
|
62eb5a3232 | ||
|
|
81042ff467 | ||
|
|
d154f0df7f | ||
|
|
d28d74f58c | ||
|
|
e534aa2b9f | ||
|
|
f2169e6dc3 | ||
|
|
4535b09c46 | ||
|
|
1edec546cb | ||
|
|
7e47b7ecc9 | ||
|
|
c34385eb01 | ||
|
|
4341c34261 | ||
|
|
ecb38f6ac2 | ||
|
|
6f0545b61b | ||
|
|
c75a56d550 | ||
|
|
9651ebf3c7 | ||
|
|
6f9c38f65e | ||
|
|
8fed098ef9 | ||
|
|
aa2df26b55 | ||
|
|
f132400865 | ||
|
|
0f12f58711 | ||
|
|
0ca5addea4 | ||
|
|
41bc0e26d2 | ||
|
|
77771cdf00 | ||
|
|
290b295173 | ||
|
|
d29680b3cb | ||
|
|
b1290ff189 | ||
|
|
a4d9bc0431 | ||
|
|
f8b5faff45 | ||
|
|
d3946e7646 | ||
|
|
85208ae557 | ||
|
|
07b60d2c3e | ||
|
|
d15a0247ce | ||
|
|
33b275c04b | ||
|
|
5538ffb292 | ||
|
|
ab49e362a7 | ||
|
|
63f3d939ea | ||
|
|
bc4272531b | ||
|
|
8dc85c657e | ||
|
|
9312442338 | ||
|
|
6a27618d21 | ||
|
|
4eea630d16 | ||
|
|
d8f247392d | ||
|
|
4447157446 | ||
|
|
861227887e | ||
|
|
87e56de066 | ||
|
|
adec91e8fc | ||
|
|
6c32de8711 | ||
|
|
adfdf7160b |
254 changed files with 4809 additions and 6417 deletions
|
|
@ -18,11 +18,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap-utilities.css",
|
"path": "./dist/css/bootstrap-utilities.css",
|
||||||
"maxSize": "7 kB"
|
"maxSize": "7.5 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap-utilities.min.css",
|
"path": "./dist/css/bootstrap-utilities.min.css",
|
||||||
"maxSize": "6.25 kB"
|
"maxSize": "6.75 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap.css",
|
"path": "./dist/css/bootstrap.css",
|
||||||
|
|
@ -34,11 +34,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.bundle.js",
|
"path": "./dist/js/bootstrap.bundle.js",
|
||||||
"maxSize": "50 kB"
|
"maxSize": "41 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.bundle.min.js",
|
"path": "./dist/js/bootstrap.bundle.min.js",
|
||||||
"maxSize": "22.25 kB"
|
"maxSize": "21.5 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.esm.js",
|
"path": "./dist/js/bootstrap.esm.js",
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.min.js",
|
"path": "./dist/js/bootstrap.min.js",
|
||||||
"maxSize": "15.75 kB"
|
"maxSize": "15.5 kB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ci": {
|
"ci": {
|
||||||
|
|
|
||||||
|
|
@ -43,15 +43,14 @@
|
||||||
],
|
],
|
||||||
"unicorn/consistent-function-scoping": "off",
|
"unicorn/consistent-function-scoping": "off",
|
||||||
"unicorn/explicit-length-check": "off",
|
"unicorn/explicit-length-check": "off",
|
||||||
"unicorn/import-index": "off",
|
"unicorn/no-array-callback-reference": "off",
|
||||||
"unicorn/no-fn-reference-in-iterator": "off",
|
|
||||||
"unicorn/no-for-loop": "off",
|
"unicorn/no-for-loop": "off",
|
||||||
"unicorn/no-null": "off",
|
"unicorn/no-null": "off",
|
||||||
"unicorn/no-unused-properties": "error",
|
"unicorn/no-unused-properties": "error",
|
||||||
"unicorn/no-useless-undefined": "off",
|
"unicorn/no-useless-undefined": "off",
|
||||||
"unicorn/prefer-dataset": "off",
|
"unicorn/prefer-dom-node-append": "off",
|
||||||
"unicorn/prefer-node-append": "off",
|
"unicorn/prefer-dom-node-dataset": "off",
|
||||||
"unicorn/prefer-node-remove": "off",
|
"unicorn/prefer-dom-node-remove": "off",
|
||||||
"unicorn/prefer-optional-catch-binding": "off",
|
"unicorn/prefer-optional-catch-binding": "off",
|
||||||
"unicorn/prefer-query-selector": "off",
|
"unicorn/prefer-query-selector": "off",
|
||||||
"unicorn/prevent-abbreviations": "off"
|
"unicorn/prevent-abbreviations": "off"
|
||||||
|
|
|
||||||
18
.github/CONTRIBUTING.md
vendored
18
.github/CONTRIBUTING.md
vendored
|
|
@ -101,12 +101,12 @@ Example:
|
||||||
|
|
||||||
Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
|
Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
|
||||||
|
|
||||||
| Vendor(s) | Browser(s) | Rendering engine | Bug reporting website(s) | Notes |
|
| Vendor(s) | Browser(s) | Rendering engine | Bug reporting website(s) | Notes |
|
||||||
| ------------- | ---------------------------- | ---------------- | --------------------------------------------------------------------- | -------------------------------------------------------- |
|
| ------------- | ---------------------------- | ---------------- | ------------------------------------------------------ | -------------------------------------------------------- |
|
||||||
| Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
|
| Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
|
||||||
| Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit | In Apple's bug reporter, choose "Safari" as the product. |
|
| Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit | In Apple's bug reporter, choose "Safari" as the product. |
|
||||||
| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://bugs.chromium.org/p/chromium/issues/list | Click the "New issue" button. |
|
| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://bugs.chromium.org/p/chromium/issues/list | Click the "New issue" button. |
|
||||||
| Microsoft | Edge | Blink | https://developer.microsoft.com/en-us/microsoft-edge/ | Go to "Help > Send Feedback" from the browser |
|
| Microsoft | Edge | Blink | https://developer.microsoft.com/en-us/microsoft-edge/ | Go to "Help > Send Feedback" from the browser |
|
||||||
|
|
||||||
|
|
||||||
## Feature requests
|
## Feature requests
|
||||||
|
|
@ -134,9 +134,9 @@ Please adhere to the [coding guidelines](#code-guidelines) used throughout the
|
||||||
project (indentation, accurate comments, etc.) and any other requirements
|
project (indentation, accurate comments, etc.) and any other requirements
|
||||||
(such as test coverage).
|
(such as test coverage).
|
||||||
|
|
||||||
**Do not edit `bootstrap.css`, or `bootstrap.js`
|
**Do not edit `bootstrap.css` or `bootstrap.js`, and do not commit
|
||||||
directly!** Those files are automatically generated. You should edit the
|
any dist files (`dist/` or `js/dist`).** Those files are automatically generated by our build tools. You should
|
||||||
source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
|
edit the source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
|
||||||
and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
|
and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
|
||||||
|
|
||||||
Similarly, when contributing to Bootstrap's documentation, you should edit the
|
Similarly, when contributing to Bootstrap's documentation, you should edit the
|
||||||
|
|
|
||||||
7
.github/dependabot.yml
vendored
7
.github/dependabot.yml
vendored
|
|
@ -15,3 +15,10 @@ updates:
|
||||||
- v5
|
- v5
|
||||||
versioning-strategy: increase
|
versioning-strategy: increase
|
||||||
rebase-strategy: disabled
|
rebase-strategy: disabled
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: tuesday
|
||||||
|
time: "12:00"
|
||||||
|
timezone: Europe/Athens
|
||||||
|
|
|
||||||
14
.github/release-drafter.yml
vendored
14
.github/release-drafter.yml
vendored
|
|
@ -4,6 +4,9 @@ prerelease: true
|
||||||
exclude-labels:
|
exclude-labels:
|
||||||
- 'skip-changelog'
|
- 'skip-changelog'
|
||||||
categories:
|
categories:
|
||||||
|
- title: '❗ Breaking Changes'
|
||||||
|
labels:
|
||||||
|
- 'breaking-change'
|
||||||
- title: '🚀 Features'
|
- title: '🚀 Features'
|
||||||
labels:
|
labels:
|
||||||
- 'new-feature'
|
- 'new-feature'
|
||||||
|
|
@ -14,6 +17,9 @@ categories:
|
||||||
- 'fix'
|
- 'fix'
|
||||||
- 'bugfix'
|
- 'bugfix'
|
||||||
- 'bug'
|
- 'bug'
|
||||||
|
- title: '⚡ Performance Improvements'
|
||||||
|
labels:
|
||||||
|
- 'performance'
|
||||||
- title: '🎨 CSS'
|
- title: '🎨 CSS'
|
||||||
labels:
|
labels:
|
||||||
- 'css'
|
- 'css'
|
||||||
|
|
@ -26,11 +32,19 @@ categories:
|
||||||
- title: '🌎 Accessibility'
|
- title: '🌎 Accessibility'
|
||||||
labels:
|
labels:
|
||||||
- 'accessibility'
|
- 'accessibility'
|
||||||
|
- title: '🔧 Utility API'
|
||||||
|
labels:
|
||||||
|
- 'utility API'
|
||||||
|
- 'utilities'
|
||||||
|
- title: '🏭 Tests'
|
||||||
|
labels:
|
||||||
|
- 'tests'
|
||||||
- title: '🧰 Misc'
|
- title: '🧰 Misc'
|
||||||
labels:
|
labels:
|
||||||
- 'build'
|
- 'build'
|
||||||
- 'meta'
|
- 'meta'
|
||||||
- 'chore'
|
- 'chore'
|
||||||
|
- 'CI'
|
||||||
- title: '📦 Dependencies'
|
- title: '📦 Dependencies'
|
||||||
labels:
|
labels:
|
||||||
- 'dependencies'
|
- 'dependencies'
|
||||||
|
|
|
||||||
10
.github/workflows/browserstack.yml
vendored
10
.github/workflows/browserstack.yml
vendored
|
|
@ -4,21 +4,21 @@ on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
NODE: 14.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
browserstack:
|
browserstack:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
|
if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -28,8 +28,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
9
.github/workflows/bundlewatch.yml
vendored
9
.github/workflows/bundlewatch.yml
vendored
|
|
@ -7,9 +7,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
NODE: 14.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bundlewatch:
|
bundlewatch:
|
||||||
|
|
@ -20,7 +19,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -30,8 +29,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
9
.github/workflows/codeql.yml
vendored
9
.github/workflows/codeql.yml
vendored
|
|
@ -22,15 +22,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
# We must fetch at least the immediate parents so that if this is
|
|
||||||
# a pull request then we can checkout the head.
|
|
||||||
fetch-depth: 2
|
|
||||||
|
|
||||||
# If this run was triggered by a pull request event, then checkout
|
|
||||||
# the head of the pull request instead of the merge commit.
|
|
||||||
- run: git checkout HEAD^2
|
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
|
||||||
9
.github/workflows/css.yml
vendored
9
.github/workflows/css.yml
vendored
|
|
@ -7,9 +7,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
NODE: 14.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
css:
|
css:
|
||||||
|
|
@ -20,7 +19,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -30,8 +29,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
9
.github/workflows/docs.yml
vendored
9
.github/workflows/docs.yml
vendored
|
|
@ -7,9 +7,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
NODE: 14.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
|
|
@ -20,7 +19,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -32,8 +31,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
7
.github/workflows/js.yml
vendored
7
.github/workflows/js.yml
vendored
|
|
@ -7,7 +7,6 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -25,7 +24,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
|
|
@ -35,8 +34,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
|
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ matrix.node }}-
|
${{ runner.os }}-node-v${{ matrix.node }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
9
.github/workflows/lint.yml
vendored
9
.github/workflows/lint.yml
vendored
|
|
@ -7,9 +7,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
NODE: 14.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|
@ -20,7 +19,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -30,8 +29,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
5
.github/workflows/node-sass.yml
vendored
5
.github/workflows/node-sass.yml
vendored
|
|
@ -7,9 +7,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
|
||||||
FORCE_COLOR: 2
|
FORCE_COLOR: 2
|
||||||
NODE: 14.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
css:
|
css:
|
||||||
|
|
@ -20,7 +19,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
|
||||||
11
.gitignore
vendored
11
.gitignore
vendored
|
|
@ -1,19 +1,8 @@
|
||||||
# Ignore docs files
|
# Ignore docs files
|
||||||
/_gh_pages/
|
/_gh_pages/
|
||||||
# This is the old Jekyll docs dist folder;
|
|
||||||
# keeping it here so that when we switch branches it doesn't show up
|
|
||||||
/site/docs/**/dist/
|
|
||||||
# Jekyll's cache folder; keeping it for the same reason as above
|
|
||||||
/site/.jekyll-cache/
|
|
||||||
# Hugo resources folder
|
# Hugo resources folder
|
||||||
/resources/
|
/resources/
|
||||||
|
|
||||||
# Ignore ruby/bundler files;
|
|
||||||
# keeping them here so that when we switch branches they don't show up
|
|
||||||
/.bundle/
|
|
||||||
/vendor/
|
|
||||||
/.ruby-version
|
|
||||||
|
|
||||||
# Numerous always-ignore extensions
|
# Numerous always-ignore extensions
|
||||||
*.diff
|
*.diff
|
||||||
*.err
|
*.err
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
"stylelint-config-twbs-bootstrap/scss"
|
"stylelint-config-twbs-bootstrap/scss"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"declaration-property-value-disallowed-list": {
|
||||||
|
"border": "none",
|
||||||
|
"outline": "none"
|
||||||
|
},
|
||||||
"function-disallowed-list": [
|
"function-disallowed-list": [
|
||||||
"calc",
|
"calc",
|
||||||
"lighten",
|
"lighten",
|
||||||
|
|
|
||||||
4
LICENSE
4
LICENSE
|
|
@ -1,7 +1,7 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2011-2020 Twitter, Inc.
|
Copyright (c) 2011-2021 Twitter, Inc.
|
||||||
Copyright (c) 2011-2020 The Bootstrap Authors
|
Copyright (c) 2011-2021 The Bootstrap Authors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
||||||
18
README.md
18
README.md
|
|
@ -1,6 +1,6 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://v5.getbootstrap.com/">
|
<a href="https://getbootstrap.com/">
|
||||||
<img src="https://v5.getbootstrap.com/docs/5.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
|
<img src="https://getbootstrap.com/docs/5.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
|
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
|
||||||
<br>
|
<br>
|
||||||
<a href="https://v5.getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a>
|
<a href="https://getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://github.com/twbs/bootstrap/issues/new?template=bug_report.md">Report bug</a>
|
<a href="https://github.com/twbs/bootstrap/issues/new?template=bug_report.md">Report bug</a>
|
||||||
|
|
@ -46,14 +46,14 @@ Our default branch is for development of our upcoming Bootstrap 5 release. Head
|
||||||
|
|
||||||
Several quick start options are available:
|
Several quick start options are available:
|
||||||
|
|
||||||
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.0.0-alpha3.zip)
|
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.0.0-beta1.zip)
|
||||||
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
||||||
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
||||||
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@next`
|
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@next`
|
||||||
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0-alpha3`
|
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0-beta1`
|
||||||
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
|
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
|
||||||
|
|
||||||
Read the [Getting started page](https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
Read the [Getting started page](https://getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
||||||
|
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
@ -141,7 +141,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://v5.getbootstrap.com/>. The docs may also be run locally.
|
Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally.
|
||||||
|
|
||||||
Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/assets/js/search.js`.
|
Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/assets/js/search.js`.
|
||||||
|
|
||||||
|
|
@ -156,7 +156,7 @@ Learn more about using Hugo by reading its [documentation](https://gohugo.io/doc
|
||||||
|
|
||||||
### Documentation for previous releases
|
### Documentation for previous releases
|
||||||
|
|
||||||
You can find all our previous releases docs on <https://v5.getbootstrap.com/docs/versions/>.
|
You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>.
|
||||||
|
|
||||||
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
|
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
|
||||||
|
|
||||||
|
|
@ -236,4 +236,4 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
|
||||||
|
|
||||||
## Copyright and license
|
## Copyright and license
|
||||||
|
|
||||||
Code and documentation copyright 2011–2020 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|
Code and documentation copyright 2011–2021 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Script to build our plugins to use them separately.
|
* Script to build our plugins to use them separately.
|
||||||
* Copyright 2020 The Bootstrap Authors
|
* Copyright 2020-2021 The Bootstrap Authors
|
||||||
* Copyright 2020 Twitter, Inc.
|
* Copyright 2020-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -14,12 +14,13 @@ const rollup = require('rollup')
|
||||||
const { babel } = require('@rollup/plugin-babel')
|
const { babel } = require('@rollup/plugin-babel')
|
||||||
const banner = require('./banner.js')
|
const banner = require('./banner.js')
|
||||||
|
|
||||||
|
const rootPath = path.resolve(__dirname, '../js/dist/')
|
||||||
const plugins = [
|
const plugins = [
|
||||||
babel({
|
babel({
|
||||||
// Only transpile our source code
|
// Only transpile our source code
|
||||||
exclude: 'node_modules/**',
|
exclude: 'node_modules/**',
|
||||||
// Inline the required helpers in each file
|
// Include the helpers in each file, at most one copy of each
|
||||||
babelHelpers: 'inline'
|
babelHelpers: 'bundled'
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
const bsPlugins = {
|
const bsPlugins = {
|
||||||
|
|
@ -28,6 +29,7 @@ const bsPlugins = {
|
||||||
Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.js'),
|
Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.js'),
|
||||||
SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'),
|
SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'),
|
||||||
Alert: path.resolve(__dirname, '../js/src/alert.js'),
|
Alert: path.resolve(__dirname, '../js/src/alert.js'),
|
||||||
|
Base: path.resolve(__dirname, '../js/src/base-component.js'),
|
||||||
Button: path.resolve(__dirname, '../js/src/button.js'),
|
Button: path.resolve(__dirname, '../js/src/button.js'),
|
||||||
Carousel: path.resolve(__dirname, '../js/src/carousel.js'),
|
Carousel: path.resolve(__dirname, '../js/src/carousel.js'),
|
||||||
Collapse: path.resolve(__dirname, '../js/src/collapse.js'),
|
Collapse: path.resolve(__dirname, '../js/src/collapse.js'),
|
||||||
|
|
@ -39,16 +41,17 @@ const bsPlugins = {
|
||||||
Toast: path.resolve(__dirname, '../js/src/toast.js'),
|
Toast: path.resolve(__dirname, '../js/src/toast.js'),
|
||||||
Tooltip: path.resolve(__dirname, '../js/src/tooltip.js')
|
Tooltip: path.resolve(__dirname, '../js/src/tooltip.js')
|
||||||
}
|
}
|
||||||
const rootPath = path.resolve(__dirname, '../js/dist/')
|
|
||||||
|
|
||||||
const defaultPluginConfig = {
|
const defaultPluginConfig = {
|
||||||
external: [
|
external: [
|
||||||
bsPlugins.Data,
|
bsPlugins.Data,
|
||||||
|
bsPlugins.Base,
|
||||||
bsPlugins.EventHandler,
|
bsPlugins.EventHandler,
|
||||||
bsPlugins.SelectorEngine
|
bsPlugins.SelectorEngine
|
||||||
],
|
],
|
||||||
globals: {
|
globals: {
|
||||||
[bsPlugins.Data]: 'Data',
|
[bsPlugins.Data]: 'Data',
|
||||||
|
[bsPlugins.Base]: 'Base',
|
||||||
[bsPlugins.EventHandler]: 'EventHandler',
|
[bsPlugins.EventHandler]: 'EventHandler',
|
||||||
[bsPlugins.SelectorEngine]: 'SelectorEngine'
|
[bsPlugins.SelectorEngine]: 'SelectorEngine'
|
||||||
}
|
}
|
||||||
|
|
@ -73,6 +76,7 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
pluginKey === 'Base' ||
|
||||||
pluginKey === 'Button' ||
|
pluginKey === 'Button' ||
|
||||||
pluginKey === 'Carousel' ||
|
pluginKey === 'Carousel' ||
|
||||||
pluginKey === 'Collapse' ||
|
pluginKey === 'Collapse' ||
|
||||||
|
|
@ -87,9 +91,9 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
|
|
||||||
if (pluginKey === 'Dropdown' || pluginKey === 'Tooltip') {
|
if (pluginKey === 'Dropdown' || pluginKey === 'Tooltip') {
|
||||||
const config = Object.assign(defaultPluginConfig)
|
const config = Object.assign(defaultPluginConfig)
|
||||||
config.external.push(bsPlugins.Manipulator, 'popper.js')
|
config.external.push(bsPlugins.Manipulator, '@popperjs/core')
|
||||||
config.globals[bsPlugins.Manipulator] = 'Manipulator'
|
config.globals[bsPlugins.Manipulator] = 'Manipulator'
|
||||||
config.globals['popper.js'] = 'Popper'
|
config.globals['@popperjs/core'] = 'Popper'
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -112,11 +116,13 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
return {
|
return {
|
||||||
external: [
|
external: [
|
||||||
bsPlugins.Data,
|
bsPlugins.Data,
|
||||||
|
bsPlugins.Base,
|
||||||
bsPlugins.EventHandler,
|
bsPlugins.EventHandler,
|
||||||
bsPlugins.Manipulator
|
bsPlugins.Manipulator
|
||||||
],
|
],
|
||||||
globals: {
|
globals: {
|
||||||
[bsPlugins.Data]: 'Data',
|
[bsPlugins.Data]: 'Data',
|
||||||
|
[bsPlugins.Base]: 'Base',
|
||||||
[bsPlugins.EventHandler]: 'EventHandler',
|
[bsPlugins.EventHandler]: 'EventHandler',
|
||||||
[bsPlugins.Manipulator]: 'Manipulator'
|
[bsPlugins.Manipulator]: 'Manipulator'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Script to update version number references in the project.
|
* Script to update version number references in the project.
|
||||||
* Copyright 2017-2020 The Bootstrap Authors
|
* Copyright 2017-2021 The Bootstrap Authors
|
||||||
* Copyright 2017-2020 Twitter, Inc.
|
* Copyright 2017-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
* Remember to use the same vendor files as the CDN ones,
|
* Remember to use the same vendor files as the CDN ones,
|
||||||
* otherwise the hashes won't match!
|
* otherwise the hashes won't match!
|
||||||
*
|
*
|
||||||
* Copyright 2017-2020 The Bootstrap Authors
|
* Copyright 2017-2021 The Bootstrap Authors
|
||||||
* Copyright 2017-2020 Twitter, Inc.
|
* Copyright 2017-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ const files = [
|
||||||
configPropertyName: 'js_bundle_hash'
|
configPropertyName: 'js_bundle_hash'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: 'node_modules/popper.js/dist/umd/popper.min.js',
|
file: 'node_modules/@popperjs/core/dist/umd/popper.min.js',
|
||||||
configPropertyName: 'popper_hash'
|
configPropertyName: 'popper_hash'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,14 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { babel } = require('@rollup/plugin-babel')
|
const { babel } = require('@rollup/plugin-babel')
|
||||||
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
||||||
|
const replace = require('@rollup/plugin-replace')
|
||||||
const banner = require('./banner.js')
|
const banner = require('./banner.js')
|
||||||
|
|
||||||
const BUNDLE = process.env.BUNDLE === 'true'
|
const BUNDLE = process.env.BUNDLE === 'true'
|
||||||
const ESM = process.env.ESM === 'true'
|
const ESM = process.env.ESM === 'true'
|
||||||
|
|
||||||
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
||||||
const external = ['popper.js']
|
const external = ['@popperjs/core']
|
||||||
const plugins = [
|
const plugins = [
|
||||||
babel({
|
babel({
|
||||||
// Only transpile our source code
|
// Only transpile our source code
|
||||||
|
|
@ -19,15 +20,15 @@ const plugins = [
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
const globals = {
|
const globals = {
|
||||||
'popper.js': 'Popper'
|
'@popperjs/core': 'Popper'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BUNDLE) {
|
if (BUNDLE) {
|
||||||
fileDest += '.bundle'
|
fileDest += '.bundle'
|
||||||
// Remove last entry in external array to bundle Popper
|
// Remove last entry in external array to bundle Popper
|
||||||
external.pop()
|
external.pop()
|
||||||
delete globals['popper.js']
|
delete globals['@popperjs/core']
|
||||||
plugins.push(nodeResolve())
|
plugins.push(replace({ 'process.env.NODE_ENV': '"production"' }), nodeResolve())
|
||||||
}
|
}
|
||||||
|
|
||||||
const rollupConfig = {
|
const rollupConfig = {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Script to run vnu-jar if Java is available.
|
* Script to run vnu-jar if Java is available.
|
||||||
* Copyright 2017-2020 The Bootstrap Authors
|
* Copyright 2017-2021 The Bootstrap Authors
|
||||||
* Copyright 2017-2020 Twitter, Inc.
|
* Copyright 2017-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
/*!
|
/*!
|
||||||
* Script to create the built examples zip archive;
|
* Script to create the built examples zip archive;
|
||||||
* requires the `zip` command to be present!
|
* requires the `zip` command to be present!
|
||||||
* Copyright 2020 The Bootstrap Authors
|
* Copyright 2020-2021 The Bootstrap Authors
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -12,36 +12,67 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const sh = require('shelljs')
|
const sh = require('shelljs')
|
||||||
|
|
||||||
const { version, version_short: versionShort } = require('../package.json')
|
const pkg = require('../package.json')
|
||||||
|
|
||||||
const folderName = `bootstrap-${version}-examples`
|
const versionShort = pkg.config.version_short
|
||||||
|
const distFolder = `bootstrap-${pkg.version}-examples`
|
||||||
|
const rootDocsDir = '_gh_pages'
|
||||||
|
const docsDir = `${rootDocsDir}/docs/${versionShort}/`
|
||||||
|
|
||||||
|
// these are the files we need in the examples
|
||||||
|
const cssFiles = [
|
||||||
|
'bootstrap.min.css',
|
||||||
|
'bootstrap.min.css.map',
|
||||||
|
'bootstrap.rtl.min.css',
|
||||||
|
'bootstrap.rtl.min.css.map'
|
||||||
|
]
|
||||||
|
const jsFiles = [
|
||||||
|
'bootstrap.bundle.min.js',
|
||||||
|
'bootstrap.bundle.min.js.map'
|
||||||
|
]
|
||||||
|
const imgFiles = [
|
||||||
|
'bootstrap-logo.svg',
|
||||||
|
'bootstrap-logo-white.svg'
|
||||||
|
]
|
||||||
|
|
||||||
sh.config.fatal = true
|
sh.config.fatal = true
|
||||||
|
|
||||||
if (!sh.test('-d', '_gh_pages')) {
|
if (!sh.test('-d', rootDocsDir)) {
|
||||||
throw new Error('The "_gh_pages" folder does not exist, did you forget building the docs?')
|
throw new Error(`The "${rootDocsDir}" folder does not exist, did you forget building the docs?`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// switch to the root dir
|
// switch to the root dir
|
||||||
sh.cd(path.join(__dirname, '..'))
|
sh.cd(path.join(__dirname, '..'))
|
||||||
|
|
||||||
// remove any previously created folder with the same name
|
// remove any previously created folder/zip with the same name
|
||||||
sh.rm('-rf', folderName)
|
sh.rm('-rf', [distFolder, `${distFolder}.zip`])
|
||||||
// create any folders so that `cp` works
|
|
||||||
sh.mkdir('-p', folderName)
|
|
||||||
sh.mkdir('-p', `${folderName}/assets/brand/`)
|
|
||||||
|
|
||||||
sh.cp('-Rf', `_gh_pages/docs/${versionShort}/examples/*`, folderName)
|
// create any folders so that `cp` works
|
||||||
sh.cp('-Rf', `_gh_pages/docs/${versionShort}/dist/`, `${folderName}/assets/`)
|
sh.mkdir('-p', [
|
||||||
// also copy the two brand images we use in the examples
|
distFolder,
|
||||||
sh.cp('-f', [
|
`${distFolder}/assets/brand/`,
|
||||||
`_gh_pages/docs/${versionShort}/assets/brand/bootstrap-logo.svg`,
|
`${distFolder}/assets/dist/css/`,
|
||||||
`_gh_pages/docs/${versionShort}/assets/brand/bootstrap-logo-white.svg`
|
`${distFolder}/assets/dist/js/`
|
||||||
], `${folderName}/assets/brand/`)
|
])
|
||||||
sh.rm(`${folderName}/index.html`)
|
|
||||||
|
sh.cp('-Rf', `${docsDir}/examples/*`, distFolder)
|
||||||
|
|
||||||
|
cssFiles.forEach(file => {
|
||||||
|
sh.cp('-f', `${docsDir}/dist/css/${file}`, `${distFolder}/assets/dist/css/`)
|
||||||
|
})
|
||||||
|
|
||||||
|
jsFiles.forEach(file => {
|
||||||
|
sh.cp('-f', `${docsDir}/dist/js/${file}`, `${distFolder}/assets/dist/js/`)
|
||||||
|
})
|
||||||
|
|
||||||
|
imgFiles.forEach(file => {
|
||||||
|
sh.cp('-f', `${docsDir}/assets/brand/${file}`, `${distFolder}/assets/brand/`)
|
||||||
|
})
|
||||||
|
|
||||||
|
sh.rm(`${distFolder}/index.html`)
|
||||||
|
|
||||||
// get all examples' HTML files
|
// get all examples' HTML files
|
||||||
sh.find(`${folderName}/**/*.html`).forEach(file => {
|
sh.find(`${distFolder}/**/*.html`).forEach(file => {
|
||||||
const fileContents = sh.cat(file)
|
const fileContents = sh.cat(file)
|
||||||
.toString()
|
.toString()
|
||||||
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
|
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
|
||||||
|
|
@ -53,7 +84,7 @@ sh.find(`${folderName}/**/*.html`).forEach(file => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// create the zip file
|
// create the zip file
|
||||||
sh.exec(`zip -r9 "${folderName}.zip" "${folderName}"`, { fatal: true })
|
sh.exec(`zip -r9 "${distFolder}.zip" "${distFolder}"`)
|
||||||
|
|
||||||
// remove the folder we created
|
// remove the folder we created
|
||||||
sh.rm('-rf', folderName)
|
sh.rm('-rf', distFolder)
|
||||||
|
|
|
||||||
32
config.yml
32
config.yml
|
|
@ -1,6 +1,6 @@
|
||||||
languageCode: "en"
|
languageCode: "en"
|
||||||
title: "Bootstrap"
|
title: "Bootstrap"
|
||||||
baseURL: "https://v5.getbootstrap.com"
|
baseURL: "https://getbootstrap.com"
|
||||||
enableInlineShortcodes: true
|
enableInlineShortcodes: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
|
|
@ -47,8 +47,8 @@ params:
|
||||||
social_image_path: /docs/5.0/assets/brand/bootstrap-social.png
|
social_image_path: /docs/5.0/assets/brand/bootstrap-social.png
|
||||||
social_logo_path: /docs/5.0/assets/brand/bootstrap-social-logo.png
|
social_logo_path: /docs/5.0/assets/brand/bootstrap-social-logo.png
|
||||||
|
|
||||||
current_version: "5.0.0-alpha3"
|
current_version: "5.0.0-beta1"
|
||||||
current_ruby_version: "5.0.0.alpha3"
|
current_ruby_version: "5.0.0.beta1"
|
||||||
docs_version: "5.0"
|
docs_version: "5.0"
|
||||||
rfs_version: "9.0.3"
|
rfs_version: "9.0.3"
|
||||||
github_org: "https://github.com/twbs"
|
github_org: "https://github.com/twbs"
|
||||||
|
|
@ -61,19 +61,19 @@ params:
|
||||||
icons: "https://icons.getbootstrap.com/"
|
icons: "https://icons.getbootstrap.com/"
|
||||||
|
|
||||||
download:
|
download:
|
||||||
source: "https://github.com/twbs/bootstrap/archive/v5.0.0-alpha3.zip"
|
source: "https://github.com/twbs/bootstrap/archive/v5.0.0-beta1.zip"
|
||||||
dist: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-alpha3/bootstrap-5.0.0-alpha3-dist.zip"
|
dist: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta1/bootstrap-5.0.0-beta1-dist.zip"
|
||||||
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-alpha3/bootstrap-5.0.0-alpha3-examples.zip"
|
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta1/bootstrap-5.0.0-beta1-examples.zip"
|
||||||
|
|
||||||
cdn:
|
cdn:
|
||||||
# See https://www.srihash.org for info on how to generate the hashes
|
# See https://www.srihash.org for info on how to generate the hashes
|
||||||
css: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha3/dist/css/bootstrap.min.css"
|
css: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
|
||||||
css_hash: "sha384-xNSaKzL9Rjah2RV0MGhtlyVs2areDxovNJCBVnI5Jmo4fWjMx5mx1zyOiddHs4kQ"
|
css_hash: "sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
|
||||||
css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha3/dist/css/bootstrap.rtl.min.css"
|
css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.rtl.min.css"
|
||||||
css_rtl_hash: "sha384-eWxmXwoY7jtZGBMpINmwuxW6Bfzjqsh1pjhGbl58bWpKmsbpGOFaMIthSFY2izhq"
|
css_rtl_hash: "sha384-mUkCBeyHPdg0tqB6JDd+65Gpw5h/l8DKcCTV2D2UpaMMFd7Jo8A+mDAosaWgFBPl"
|
||||||
js: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha3/dist/js/bootstrap.min.js"
|
js: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js"
|
||||||
js_hash: "sha384-supZtwqjyYg6XvvTCi4/w6J6Hm6IKqXaaeoyGhIhonCdkSvA70sSucW7OqXIo4lZ"
|
js_hash: "sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj"
|
||||||
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha3/dist/js/bootstrap.bundle.min.js"
|
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
|
||||||
js_bundle_hash: "sha384-G/J8d6sz9bTod37AsZzNtTwT77J24FKjJEO1YsU2vW7iPcmYP3/tznu+LcK824t9"
|
js_bundle_hash: "sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
|
||||||
popper: "https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
|
popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js"
|
||||||
popper_hash: "sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
|
popper_hash: "sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi"
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-grid.css
vendored
2
dist/css/bootstrap-grid.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-grid.css.map
vendored
2
dist/css/bootstrap-grid.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css
vendored
2
dist/css/bootstrap-grid.min.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-grid.min.css.map
vendored
2
dist/css/bootstrap-grid.min.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.rtl.css
vendored
2
dist/css/bootstrap-grid.rtl.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-grid.rtl.css.map
vendored
2
dist/css/bootstrap-grid.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.rtl.min.css
vendored
2
dist/css/bootstrap-grid.rtl.min.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-grid.rtl.min.css.map
vendored
2
dist/css/bootstrap-grid.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.css
vendored
2
dist/css/bootstrap-reboot.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-reboot.css.map
vendored
2
dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.min.css
vendored
2
dist/css/bootstrap-reboot.min.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-reboot.min.css.map
vendored
2
dist/css/bootstrap-reboot.min.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.rtl.css
vendored
2
dist/css/bootstrap-reboot.rtl.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-reboot.rtl.css.map
vendored
2
dist/css/bootstrap-reboot.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.rtl.min.css
vendored
2
dist/css/bootstrap-reboot.rtl.min.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-reboot.rtl.min.css.map
vendored
2
dist/css/bootstrap-reboot.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
12
dist/css/bootstrap-utilities.css
vendored
12
dist/css/bootstrap-utilities.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Utilities v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Utilities v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
@ -182,7 +182,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.translate-middle {
|
.translate-middle {
|
||||||
transform: translateX(-50%) translateY(-50%) !important;
|
transform: translate(-50%, -50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-x {
|
||||||
|
transform: translateX(-50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-y {
|
||||||
|
transform: translateY(-50%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border {
|
.border {
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-utilities.css.map
vendored
2
dist/css/bootstrap-utilities.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap-utilities.min.css
vendored
4
dist/css/bootstrap-utilities.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-utilities.min.css.map
vendored
2
dist/css/bootstrap-utilities.min.css.map
vendored
File diff suppressed because one or more lines are too long
12
dist/css/bootstrap-utilities.rtl.css
vendored
12
dist/css/bootstrap-utilities.rtl.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Utilities v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap Utilities v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
@ -182,7 +182,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.translate-middle {
|
.translate-middle {
|
||||||
transform: translateX(50%) translateY(-50%) !important;
|
transform: translate(50%, -50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-x {
|
||||||
|
transform: translateX(50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-y {
|
||||||
|
transform: translateY(-50%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border {
|
.border {
|
||||||
|
|
|
||||||
2
dist/css/bootstrap-utilities.rtl.css.map
vendored
2
dist/css/bootstrap-utilities.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap-utilities.rtl.min.css
vendored
4
dist/css/bootstrap-utilities.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-utilities.rtl.min.css.map
vendored
2
dist/css/bootstrap-utilities.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
@ -3443,68 +3443,83 @@ textarea.form-control-lg {
|
||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
.dropdown-menu[style] {
|
||||||
|
right: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown-menu-start {
|
.dropdown-menu-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-end {
|
.dropdown-menu-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
.dropdown-menu-sm-start {
|
.dropdown-menu-sm-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-sm-end {
|
.dropdown-menu-sm-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.dropdown-menu-md-start {
|
.dropdown-menu-md-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-md-end {
|
.dropdown-menu-md-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
.dropdown-menu-lg-start {
|
.dropdown-menu-lg-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-lg-end {
|
.dropdown-menu-lg-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.dropdown-menu-xl-start {
|
.dropdown-menu-xl-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xl-end {
|
.dropdown-menu-xl-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1400px) {
|
@media (min-width: 1400px) {
|
||||||
.dropdown-menu-xxl-start {
|
.dropdown-menu-xxl-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto /* rtl:ignore */;
|
right: auto /* rtl:ignore */;
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0 /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xxl-end {
|
.dropdown-menu-xxl-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0 /* rtl:ignore */;
|
||||||
left: auto /* rtl:ignore */;
|
left: auto /* rtl:ignore */;
|
||||||
}
|
}
|
||||||
|
|
@ -3585,12 +3600,6 @@ textarea.form-control-lg {
|
||||||
vertical-align: 0;
|
vertical-align: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu[x-placement^=top], .dropdown-menu[x-placement^=right], .dropdown-menu[x-placement^=bottom], .dropdown-menu[x-placement^=left] {
|
|
||||||
right: auto;
|
|
||||||
bottom: auto;
|
|
||||||
left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-divider {
|
.dropdown-divider {
|
||||||
height: 0;
|
height: 0;
|
||||||
margin: 0.5rem 0;
|
margin: 0.5rem 0;
|
||||||
|
|
@ -5045,29 +5054,34 @@ textarea.form-control-lg {
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast {
|
.toast {
|
||||||
max-width: 350px;
|
width: 350px;
|
||||||
|
max-width: 100%;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
|
pointer-events: auto;
|
||||||
background-color: rgba(255, 255, 255, 0.85);
|
background-color: rgba(255, 255, 255, 0.85);
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
||||||
opacity: 0;
|
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.toast:not(:last-child) {
|
.toast:not(.showing):not(.show) {
|
||||||
margin-bottom: 0.75rem;
|
opacity: 0;
|
||||||
}
|
|
||||||
.toast.showing {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.toast.show {
|
|
||||||
display: block;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
.toast.hide {
|
.toast.hide {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toast-container {
|
||||||
|
width: -webkit-max-content;
|
||||||
|
width: -moz-max-content;
|
||||||
|
width: max-content;
|
||||||
|
max-width: 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.toast-container > :not(:last-child) {
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
.toast-header {
|
.toast-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -5424,56 +5438,56 @@ textarea.form-control-lg {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-top, .bs-tooltip-auto[x-placement^=top] {
|
.bs-tooltip-top, .bs-tooltip-auto[data-popper-placement^=top] {
|
||||||
padding: 0.4rem 0;
|
padding: 0.4rem 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-top .tooltip-arrow, .bs-tooltip-auto[x-placement^=top] .tooltip-arrow {
|
.bs-tooltip-top .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=top] .tooltip-arrow::before {
|
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
|
||||||
top: 0;
|
top: -1px;
|
||||||
border-width: 0.4rem 0.4rem 0;
|
border-width: 0.4rem 0.4rem 0;
|
||||||
border-top-color: #000;
|
border-top-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-end, .bs-tooltip-auto[x-placement^=right] {
|
.bs-tooltip-end, .bs-tooltip-auto[data-popper-placement^=right] {
|
||||||
padding: 0 0.4rem;
|
padding: 0 0.4rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[x-placement^=right] .tooltip-arrow {
|
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow {
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0;
|
||||||
width: 0.4rem;
|
width: 0.4rem;
|
||||||
height: 0.8rem;
|
height: 0.8rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=right] .tooltip-arrow::before {
|
.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
|
||||||
right: 0 /* rtl:ignore */;
|
right: -1px;
|
||||||
border-width: 0.4rem 0.4rem 0.4rem 0 /* rtl:ignore */;
|
border-width: 0.4rem 0.4rem 0.4rem 0;
|
||||||
border-right-color: #000 /* rtl:ignore */;
|
border-right-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^=bottom] {
|
.bs-tooltip-bottom, .bs-tooltip-auto[data-popper-placement^=bottom] {
|
||||||
padding: 0.4rem 0;
|
padding: 0.4rem 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-bottom .tooltip-arrow, .bs-tooltip-auto[x-placement^=bottom] .tooltip-arrow {
|
.bs-tooltip-bottom .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=bottom] .tooltip-arrow::before {
|
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
|
||||||
bottom: 0;
|
bottom: -1px;
|
||||||
border-width: 0 0.4rem 0.4rem;
|
border-width: 0 0.4rem 0.4rem;
|
||||||
border-bottom-color: #000;
|
border-bottom-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-start, .bs-tooltip-auto[x-placement^=left] {
|
.bs-tooltip-start, .bs-tooltip-auto[data-popper-placement^=left] {
|
||||||
padding: 0 0.4rem;
|
padding: 0 0.4rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[x-placement^=left] .tooltip-arrow {
|
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0;
|
||||||
width: 0.4rem;
|
width: 0.4rem;
|
||||||
height: 0.8rem;
|
height: 0.8rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-start .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=left] .tooltip-arrow::before {
|
.bs-tooltip-start .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
|
||||||
left: 0 /* rtl:ignore */;
|
left: -1px;
|
||||||
border-width: 0.4rem 0 0.4rem 0.4rem /* rtl:ignore */;
|
border-width: 0.4rem 0 0.4rem 0.4rem;
|
||||||
border-left-color: #000 /* rtl:ignore */;
|
border-left-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip-inner {
|
.tooltip-inner {
|
||||||
|
|
@ -5528,60 +5542,60 @@ textarea.form-control-lg {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-top, .bs-popover-auto[x-placement^=top] {
|
.bs-popover-top, .bs-popover-auto[data-popper-placement^=top] {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-top > .popover-arrow, .bs-popover-auto[x-placement^=top] > .popover-arrow {
|
.bs-popover-top > .popover-arrow, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow {
|
||||||
bottom: calc(-0.5rem - 1px);
|
bottom: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
.bs-popover-top > .popover-arrow::before, .bs-popover-auto[x-placement^=top] > .popover-arrow::before {
|
.bs-popover-top > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow::before {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
border-width: 0.5rem 0.5rem 0;
|
border-width: 0.5rem 0.5rem 0;
|
||||||
border-top-color: rgba(0, 0, 0, 0.25);
|
border-top-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-top > .popover-arrow::after, .bs-popover-auto[x-placement^=top] > .popover-arrow::after {
|
.bs-popover-top > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after {
|
||||||
bottom: 1px;
|
bottom: 1px;
|
||||||
border-width: 0.5rem 0.5rem 0;
|
border-width: 0.5rem 0.5rem 0;
|
||||||
border-top-color: #fff;
|
border-top-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-end, .bs-popover-auto[x-placement^=right] {
|
.bs-popover-end, .bs-popover-auto[data-popper-placement^=right] {
|
||||||
margin-left: 0.5rem /* rtl:ignore */;
|
margin-left: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow, .bs-popover-auto[x-placement^=right] > .popover-arrow {
|
.bs-popover-end > .popover-arrow, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow {
|
||||||
left: calc(-0.5rem - 1px) /* rtl:ignore */;
|
left: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
margin: 0.3rem 0;
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[x-placement^=right] > .popover-arrow::before {
|
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::before {
|
||||||
left: 0 /* rtl:ignore */;
|
left: 0;
|
||||||
border-width: 0.5rem 0.5rem 0.5rem 0 /* rtl:ignore */;
|
border-width: 0.5rem 0.5rem 0.5rem 0;
|
||||||
border-right-color: rgba(0, 0, 0, 0.25) /* rtl:ignore */;
|
border-right-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow::after, .bs-popover-auto[x-placement^=right] > .popover-arrow::after {
|
.bs-popover-end > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::after {
|
||||||
left: 1px /* rtl:ignore */;
|
left: 1px;
|
||||||
border-width: 0.5rem 0.5rem 0.5rem 0 /* rtl:ignore */;
|
border-width: 0.5rem 0.5rem 0.5rem 0;
|
||||||
border-right-color: #fff /* rtl:ignore */;
|
border-right-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-bottom, .bs-popover-auto[x-placement^=bottom] {
|
.bs-popover-bottom, .bs-popover-auto[data-popper-placement^=bottom] {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[x-placement^=bottom] > .popover-arrow {
|
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow {
|
||||||
top: calc(-0.5rem - 1px);
|
top: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
.bs-popover-bottom > .popover-arrow::before, .bs-popover-auto[x-placement^=bottom] > .popover-arrow::before {
|
.bs-popover-bottom > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::before {
|
||||||
top: 0;
|
top: 0;
|
||||||
border-width: 0 0.5rem 0.5rem 0.5rem;
|
border-width: 0 0.5rem 0.5rem 0.5rem;
|
||||||
border-bottom-color: rgba(0, 0, 0, 0.25);
|
border-bottom-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[x-placement^=bottom] > .popover-arrow::after {
|
.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after {
|
||||||
top: 1px;
|
top: 1px;
|
||||||
border-width: 0 0.5rem 0.5rem 0.5rem;
|
border-width: 0 0.5rem 0.5rem 0.5rem;
|
||||||
border-bottom-color: #fff;
|
border-bottom-color: #fff;
|
||||||
}
|
}
|
||||||
.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^=bottom] .popover-header::before {
|
.bs-popover-bottom .popover-header::before, .bs-popover-auto[data-popper-placement^=bottom] .popover-header::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
|
|
@ -5592,24 +5606,24 @@ textarea.form-control-lg {
|
||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-start, .bs-popover-auto[x-placement^=left] {
|
.bs-popover-start, .bs-popover-auto[data-popper-placement^=left] {
|
||||||
margin-right: 0.5rem /* rtl:ignore */;
|
margin-right: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow, .bs-popover-auto[x-placement^=left] > .popover-arrow {
|
.bs-popover-start > .popover-arrow, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow {
|
||||||
right: calc(-0.5rem - 1px) /* rtl:ignore */;
|
right: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
margin: 0.3rem 0;
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[x-placement^=left] > .popover-arrow::before {
|
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::before {
|
||||||
right: 0 /* rtl:ignore */;
|
right: 0;
|
||||||
border-width: 0.5rem 0 0.5rem 0.5rem /* rtl:ignore */;
|
border-width: 0.5rem 0 0.5rem 0.5rem;
|
||||||
border-left-color: rgba(0, 0, 0, 0.25) /* rtl:ignore */;
|
border-left-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow::after, .bs-popover-auto[x-placement^=left] > .popover-arrow::after {
|
.bs-popover-start > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::after {
|
||||||
right: 1px /* rtl:ignore */;
|
right: 1px;
|
||||||
border-width: 0.5rem 0 0.5rem 0.5rem /* rtl:ignore */;
|
border-width: 0.5rem 0 0.5rem 0.5rem;
|
||||||
border-left-color: #fff /* rtl:ignore */;
|
border-left-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-header {
|
.popover-header {
|
||||||
|
|
@ -6268,7 +6282,15 @@ textarea.form-control-lg {
|
||||||
}
|
}
|
||||||
|
|
||||||
.translate-middle {
|
.translate-middle {
|
||||||
transform: translateX(-50%) translateY(-50%) !important;
|
transform: translate(-50%, -50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-x {
|
||||||
|
transform: translateX(-50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-y {
|
||||||
|
transform: translateY(-50%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border {
|
.border {
|
||||||
|
|
|
||||||
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap.min.css
vendored
4
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
174
dist/css/bootstrap.rtl.css
vendored
174
dist/css/bootstrap.rtl.css
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
@ -3441,68 +3441,83 @@ textarea.form-control-lg {
|
||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
.dropdown-menu[style] {
|
||||||
|
left: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown-menu-start {
|
.dropdown-menu-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-end {
|
.dropdown-menu-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
.dropdown-menu-sm-start {
|
.dropdown-menu-sm-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-sm-end {
|
.dropdown-menu-sm-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.dropdown-menu-md-start {
|
.dropdown-menu-md-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-md-end {
|
.dropdown-menu-md-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
.dropdown-menu-lg-start {
|
.dropdown-menu-lg-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-lg-end {
|
.dropdown-menu-lg-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.dropdown-menu-xl-start {
|
.dropdown-menu-xl-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xl-end {
|
.dropdown-menu-xl-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1400px) {
|
@media (min-width: 1400px) {
|
||||||
.dropdown-menu-xxl-start {
|
.dropdown-menu-xxl-start {
|
||||||
|
--bs-position: start;
|
||||||
right: auto ;
|
right: auto ;
|
||||||
left: 0 ;
|
left: 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-xxl-end {
|
.dropdown-menu-xxl-end {
|
||||||
|
--bs-position: end;
|
||||||
right: 0 ;
|
right: 0 ;
|
||||||
left: auto ;
|
left: auto ;
|
||||||
}
|
}
|
||||||
|
|
@ -3583,12 +3598,6 @@ textarea.form-control-lg {
|
||||||
vertical-align: 0;
|
vertical-align: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu[x-placement^=top], .dropdown-menu[x-placement^=right], .dropdown-menu[x-placement^=bottom], .dropdown-menu[x-placement^=left] {
|
|
||||||
left: auto;
|
|
||||||
bottom: auto;
|
|
||||||
right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-divider {
|
.dropdown-divider {
|
||||||
height: 0;
|
height: 0;
|
||||||
margin: 0.5rem 0;
|
margin: 0.5rem 0;
|
||||||
|
|
@ -5043,29 +5052,34 @@ textarea.form-control-lg {
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast {
|
.toast {
|
||||||
max-width: 350px;
|
width: 350px;
|
||||||
|
max-width: 100%;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
|
pointer-events: auto;
|
||||||
background-color: rgba(255, 255, 255, 0.85);
|
background-color: rgba(255, 255, 255, 0.85);
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
||||||
opacity: 0;
|
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
.toast:not(:last-child) {
|
.toast:not(.showing):not(.show) {
|
||||||
margin-bottom: 0.75rem;
|
opacity: 0;
|
||||||
}
|
|
||||||
.toast.showing {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.toast.show {
|
|
||||||
display: block;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
.toast.hide {
|
.toast.hide {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toast-container {
|
||||||
|
width: -webkit-max-content;
|
||||||
|
width: -moz-max-content;
|
||||||
|
width: max-content;
|
||||||
|
max-width: 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.toast-container > :not(:last-child) {
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
.toast-header {
|
.toast-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -5422,56 +5436,56 @@ textarea.form-control-lg {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-top, .bs-tooltip-auto[x-placement^=top] {
|
.bs-tooltip-top, .bs-tooltip-auto[data-popper-placement^=top] {
|
||||||
padding: 0.4rem 0;
|
padding: 0.4rem 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-top .tooltip-arrow, .bs-tooltip-auto[x-placement^=top] .tooltip-arrow {
|
.bs-tooltip-top .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=top] .tooltip-arrow::before {
|
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
|
||||||
top: 0;
|
top: -1px;
|
||||||
border-width: 0.4rem 0.4rem 0;
|
border-width: 0.4rem 0.4rem 0;
|
||||||
border-top-color: #000;
|
border-top-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-end, .bs-tooltip-auto[x-placement^=right] {
|
.bs-tooltip-end, .bs-tooltip-auto[data-popper-placement^=right] {
|
||||||
padding: 0 0.4rem;
|
padding: 0 0.4rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[x-placement^=right] .tooltip-arrow {
|
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow {
|
||||||
left: 0 ;
|
right: 0;
|
||||||
width: 0.4rem;
|
width: 0.4rem;
|
||||||
height: 0.8rem;
|
height: 0.8rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=right] .tooltip-arrow::before {
|
.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
|
||||||
right: 0 ;
|
left: -1px;
|
||||||
border-width: 0.4rem 0.4rem 0.4rem 0 ;
|
border-width: 0.4rem 0 0.4rem 0.4rem;
|
||||||
border-right-color: #000 ;
|
border-left-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^=bottom] {
|
.bs-tooltip-bottom, .bs-tooltip-auto[data-popper-placement^=bottom] {
|
||||||
padding: 0.4rem 0;
|
padding: 0.4rem 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-bottom .tooltip-arrow, .bs-tooltip-auto[x-placement^=bottom] .tooltip-arrow {
|
.bs-tooltip-bottom .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=bottom] .tooltip-arrow::before {
|
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
|
||||||
bottom: 0;
|
bottom: -1px;
|
||||||
border-width: 0 0.4rem 0.4rem;
|
border-width: 0 0.4rem 0.4rem;
|
||||||
border-bottom-color: #000;
|
border-bottom-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-start, .bs-tooltip-auto[x-placement^=left] {
|
.bs-tooltip-start, .bs-tooltip-auto[data-popper-placement^=left] {
|
||||||
padding: 0 0.4rem;
|
padding: 0 0.4rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[x-placement^=left] .tooltip-arrow {
|
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow {
|
||||||
right: 0 ;
|
left: 0;
|
||||||
width: 0.4rem;
|
width: 0.4rem;
|
||||||
height: 0.8rem;
|
height: 0.8rem;
|
||||||
}
|
}
|
||||||
.bs-tooltip-start .tooltip-arrow::before, .bs-tooltip-auto[x-placement^=left] .tooltip-arrow::before {
|
.bs-tooltip-start .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
|
||||||
left: 0 ;
|
right: -1px;
|
||||||
border-width: 0.4rem 0 0.4rem 0.4rem ;
|
border-width: 0.4rem 0.4rem 0.4rem 0;
|
||||||
border-left-color: #000 ;
|
border-right-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip-inner {
|
.tooltip-inner {
|
||||||
|
|
@ -5526,60 +5540,60 @@ textarea.form-control-lg {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-top, .bs-popover-auto[x-placement^=top] {
|
.bs-popover-top, .bs-popover-auto[data-popper-placement^=top] {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-top > .popover-arrow, .bs-popover-auto[x-placement^=top] > .popover-arrow {
|
.bs-popover-top > .popover-arrow, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow {
|
||||||
bottom: calc(-0.5rem - 1px);
|
bottom: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
.bs-popover-top > .popover-arrow::before, .bs-popover-auto[x-placement^=top] > .popover-arrow::before {
|
.bs-popover-top > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow::before {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
border-width: 0.5rem 0.5rem 0;
|
border-width: 0.5rem 0.5rem 0;
|
||||||
border-top-color: rgba(0, 0, 0, 0.25);
|
border-top-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-top > .popover-arrow::after, .bs-popover-auto[x-placement^=top] > .popover-arrow::after {
|
.bs-popover-top > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after {
|
||||||
bottom: 1px;
|
bottom: 1px;
|
||||||
border-width: 0.5rem 0.5rem 0;
|
border-width: 0.5rem 0.5rem 0;
|
||||||
border-top-color: #fff;
|
border-top-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-end, .bs-popover-auto[x-placement^=right] {
|
.bs-popover-end, .bs-popover-auto[data-popper-placement^=right] {
|
||||||
margin-left: 0.5rem ;
|
margin-right: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow, .bs-popover-auto[x-placement^=right] > .popover-arrow {
|
.bs-popover-end > .popover-arrow, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow {
|
||||||
left: calc(-0.5rem - 1px) ;
|
right: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
margin: 0.3rem 0;
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[x-placement^=right] > .popover-arrow::before {
|
.bs-popover-end > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::before {
|
||||||
left: 0 ;
|
right: 0;
|
||||||
border-width: 0.5rem 0.5rem 0.5rem 0 ;
|
border-width: 0.5rem 0 0.5rem 0.5rem;
|
||||||
border-right-color: rgba(0, 0, 0, 0.25) ;
|
border-left-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-end > .popover-arrow::after, .bs-popover-auto[x-placement^=right] > .popover-arrow::after {
|
.bs-popover-end > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::after {
|
||||||
left: 1px ;
|
right: 1px;
|
||||||
border-width: 0.5rem 0.5rem 0.5rem 0 ;
|
border-width: 0.5rem 0 0.5rem 0.5rem;
|
||||||
border-right-color: #fff ;
|
border-left-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-bottom, .bs-popover-auto[x-placement^=bottom] {
|
.bs-popover-bottom, .bs-popover-auto[data-popper-placement^=bottom] {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[x-placement^=bottom] > .popover-arrow {
|
.bs-popover-bottom > .popover-arrow, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow {
|
||||||
top: calc(-0.5rem - 1px);
|
top: calc(-0.5rem - 1px);
|
||||||
}
|
}
|
||||||
.bs-popover-bottom > .popover-arrow::before, .bs-popover-auto[x-placement^=bottom] > .popover-arrow::before {
|
.bs-popover-bottom > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::before {
|
||||||
top: 0;
|
top: 0;
|
||||||
border-width: 0 0.5rem 0.5rem 0.5rem;
|
border-width: 0 0.5rem 0.5rem 0.5rem;
|
||||||
border-bottom-color: rgba(0, 0, 0, 0.25);
|
border-bottom-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[x-placement^=bottom] > .popover-arrow::after {
|
.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after {
|
||||||
top: 1px;
|
top: 1px;
|
||||||
border-width: 0 0.5rem 0.5rem 0.5rem;
|
border-width: 0 0.5rem 0.5rem 0.5rem;
|
||||||
border-bottom-color: #fff;
|
border-bottom-color: #fff;
|
||||||
}
|
}
|
||||||
.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^=bottom] .popover-header::before {
|
.bs-popover-bottom .popover-header::before, .bs-popover-auto[data-popper-placement^=bottom] .popover-header::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 50%;
|
right: 50%;
|
||||||
|
|
@ -5590,24 +5604,24 @@ textarea.form-control-lg {
|
||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-start, .bs-popover-auto[x-placement^=left] {
|
.bs-popover-start, .bs-popover-auto[data-popper-placement^=left] {
|
||||||
margin-right: 0.5rem ;
|
margin-left: 0.5rem !important;
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow, .bs-popover-auto[x-placement^=left] > .popover-arrow {
|
.bs-popover-start > .popover-arrow, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow {
|
||||||
right: calc(-0.5rem - 1px) ;
|
left: calc(-0.5rem - 1px);
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
margin: 0.3rem 0;
|
margin: 0.3rem 0;
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[x-placement^=left] > .popover-arrow::before {
|
.bs-popover-start > .popover-arrow::before, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::before {
|
||||||
right: 0 ;
|
left: 0;
|
||||||
border-width: 0.5rem 0 0.5rem 0.5rem ;
|
border-width: 0.5rem 0.5rem 0.5rem 0;
|
||||||
border-left-color: rgba(0, 0, 0, 0.25) ;
|
border-right-color: rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
.bs-popover-start > .popover-arrow::after, .bs-popover-auto[x-placement^=left] > .popover-arrow::after {
|
.bs-popover-start > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::after {
|
||||||
right: 1px ;
|
left: 1px;
|
||||||
border-width: 0.5rem 0 0.5rem 0.5rem ;
|
border-width: 0.5rem 0.5rem 0.5rem 0;
|
||||||
border-left-color: #fff ;
|
border-right-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-header {
|
.popover-header {
|
||||||
|
|
@ -6253,7 +6267,15 @@ textarea.form-control-lg {
|
||||||
}
|
}
|
||||||
|
|
||||||
.translate-middle {
|
.translate-middle {
|
||||||
transform: translateX(50%) translateY(-50%) !important;
|
transform: translate(50%, -50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-x {
|
||||||
|
transform: translateX(50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translate-middle-y {
|
||||||
|
transform: translateY(-50%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border {
|
.border {
|
||||||
|
|
|
||||||
2
dist/css/bootstrap.rtl.css.map
vendored
2
dist/css/bootstrap.rtl.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap.rtl.min.css
vendored
4
dist/css/bootstrap.rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.rtl.min.css.map
vendored
2
dist/css/bootstrap.rtl.min.css.map
vendored
File diff suppressed because one or more lines are too long
4248
dist/js/bootstrap.bundle.js
vendored
4248
dist/js/bootstrap.bundle.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/js/bootstrap.bundle.js.map
vendored
2
dist/js/bootstrap.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.bundle.min.js
vendored
4
dist/js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.bundle.min.js.map
vendored
2
dist/js/bootstrap.bundle.min.js.map
vendored
File diff suppressed because one or more lines are too long
226
dist/js/bootstrap.esm.js
vendored
226
dist/js/bootstrap.esm.js
vendored
|
|
@ -1,9 +1,10 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
import Popper from 'popper.js';
|
import * as Popper from '@popperjs/core';
|
||||||
|
import { createPopper } from '@popperjs/core';
|
||||||
|
|
||||||
function _defineProperties(target, props) {
|
function _defineProperties(target, props) {
|
||||||
for (var i = 0; i < props.length; i++) {
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
|
@ -47,7 +48,7 @@ function _inheritsLoose(subClass, superClass) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -232,7 +233,7 @@ var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/data.js
|
* Bootstrap (v5.0.0-beta1): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -299,7 +300,7 @@ var Data = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -578,7 +579,7 @@ var EventHandler = {
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
@ -861,7 +862,7 @@ onDOMContentLoaded(function () {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -933,7 +934,7 @@ var Manipulator = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -2057,9 +2058,7 @@ var CLASS_NAME_SHOW$1 = 'show';
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPEND = 'dropend';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPSTART = 'dropstart';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
var CLASS_NAME_MENUEND = 'dropdown-menu-end';
|
|
||||||
var CLASS_NAME_NAVBAR = 'navbar';
|
var CLASS_NAME_NAVBAR = 'navbar';
|
||||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
|
||||||
var SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="dropdown"]';
|
var SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="dropdown"]';
|
||||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||||
var SELECTOR_MENU = '.dropdown-menu';
|
var SELECTOR_MENU = '.dropdown-menu';
|
||||||
|
|
@ -2074,7 +2073,7 @@ var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
||||||
var Default$2 = {
|
var Default$2 = {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
display: 'dynamic',
|
display: 'dynamic',
|
||||||
popperConfig: null
|
popperConfig: null
|
||||||
|
|
@ -2161,16 +2160,9 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
} // If boundary is not `scrollParent`, then set position to `static`
|
|
||||||
// to allow the menu to "escape" the scroll parent's boundaries
|
|
||||||
// https://github.com/twbs/bootstrap/issues/24251
|
|
||||||
|
|
||||||
|
|
||||||
if (this._config.boundary !== 'scrollParent') {
|
|
||||||
parent.classList.add(CLASS_NAME_POSITION_STATIC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
|
this._popper = createPopper(referenceElement, this._menu, this._getPopperConfig());
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
|
|
@ -2239,7 +2231,7 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
||||||
this._inNavbar = this._detectNavbar();
|
this._inNavbar = this._detectNavbar();
|
||||||
|
|
||||||
if (this._popper) {
|
if (this._popper) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
@ -2267,60 +2259,46 @@ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
|
||||||
_proto._getPlacement = function _getPlacement() {
|
_proto._getPlacement = function _getPlacement() {
|
||||||
var parentDropdown = this._element.parentNode;
|
var parentDropdown = this._element.parentNode;
|
||||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
|
||||||
|
|
||||||
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
||||||
placement = this._menu.classList.contains(CLASS_NAME_MENUEND) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
return PLACEMENT_RIGHT;
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
|
||||||
placement = PLACEMENT_RIGHT;
|
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
|
||||||
placement = PLACEMENT_LEFT;
|
|
||||||
} else if (this._menu.classList.contains(CLASS_NAME_MENUEND)) {
|
|
||||||
placement = PLACEMENT_BOTTOMEND;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return placement;
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
||||||
|
return PLACEMENT_LEFT;
|
||||||
|
} // We need to trim the value because custom properties can also include spaces
|
||||||
|
|
||||||
|
|
||||||
|
var isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
|
||||||
|
|
||||||
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
||||||
|
return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||||
|
}
|
||||||
|
|
||||||
|
return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._detectNavbar = function _detectNavbar() {
|
_proto._detectNavbar = function _detectNavbar() {
|
||||||
return Boolean(this._element.closest("." + CLASS_NAME_NAVBAR));
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this3 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this._config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _extends({}, data.offsets, _this3._config.offset(data.offsets, _this3._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this._config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var popperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: {
|
modifiers: [{
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
enabled: this._config.flip
|
altBoundary: this._config.flip,
|
||||||
},
|
rootBoundary: this._config.boundary
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this._config.boundary
|
|
||||||
}
|
}
|
||||||
}
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers.applyStyle = {
|
popperConfig.modifiers = [{
|
||||||
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
};
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, popperConfig, this._config.popperConfig);
|
||||||
|
|
@ -3161,7 +3139,7 @@ onDOMContentLoaded(function () {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -3307,9 +3285,8 @@ var DefaultType$4 = {
|
||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
offset: '(number|string|function)',
|
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacement: '(string|array)',
|
fallbackPlacements: '(null|array)',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
|
|
@ -3333,10 +3310,9 @@ var Default$4 = {
|
||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
offset: 0,
|
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacement: 'flip',
|
fallbackPlacements: null,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
sanitizeFn: null,
|
sanitizeFn: null,
|
||||||
|
|
@ -3513,7 +3489,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
||||||
this._popper = new Popper(this._element, tip, this._getPopperConfig(attachment));
|
this._popper = createPopper(this._element, tip, this._getPopperConfig(attachment));
|
||||||
tip.classList.add(CLASS_NAME_SHOW$3);
|
tip.classList.add(CLASS_NAME_SHOW$3);
|
||||||
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
||||||
|
|
||||||
|
|
@ -3536,10 +3512,6 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
if (_this2.config.animation) {
|
|
||||||
_this2._fixTransition();
|
|
||||||
}
|
|
||||||
|
|
||||||
var prevHoverState = _this2._hoverState;
|
var prevHoverState = _this2._hoverState;
|
||||||
_this2._hoverState = null;
|
_this2._hoverState = null;
|
||||||
EventHandler.trigger(_this2._element, _this2.constructor.Event.SHOWN);
|
EventHandler.trigger(_this2._element, _this2.constructor.Event.SHOWN);
|
||||||
|
|
@ -3579,7 +3551,11 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
|
||||||
EventHandler.trigger(_this3._element, _this3.constructor.Event.HIDDEN);
|
EventHandler.trigger(_this3._element, _this3.constructor.Event.HIDDEN);
|
||||||
|
|
||||||
_this3._popper.destroy();
|
if (_this3._popper) {
|
||||||
|
_this3._popper.destroy();
|
||||||
|
|
||||||
|
_this3._popper = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(this._element, this.constructor.Event.HIDE);
|
var hideEvent = EventHandler.trigger(this._element, this.constructor.Event.HIDE);
|
||||||
|
|
@ -3616,7 +3592,7 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
|
||||||
_proto.update = function update() {
|
_proto.update = function update() {
|
||||||
if (this._popper !== null) {
|
if (this._popper !== null) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Protected
|
} // Protected
|
||||||
;
|
;
|
||||||
|
|
@ -3702,27 +3678,41 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var flipModifier = {
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (this.config.fallbackPlacements) {
|
||||||
|
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
||||||
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
var defaultBsConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: {
|
modifiers: [flipModifier, {
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
behavior: this.config.fallbackPlacement
|
rootBoundary: this.config.boundary
|
||||||
},
|
|
||||||
arrow: {
|
|
||||||
element: "." + this.constructor.NAME + "-arrow"
|
|
||||||
},
|
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this.config.boundary
|
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
onCreate: function onCreate(data) {
|
name: 'arrow',
|
||||||
if (data.originalPlacement !== data.placement) {
|
options: {
|
||||||
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'onChange',
|
||||||
|
enabled: true,
|
||||||
|
phase: 'afterWrite',
|
||||||
|
fn: function fn(data) {
|
||||||
|
return _this4._handlePopperPlacementChange(data);
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this4._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
onUpdate: function onUpdate(data) {
|
|
||||||
return _this4._handlePopperPlacementChange(data);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
||||||
|
|
@ -3732,23 +3722,6 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this5 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this.config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _extends({}, data.offsets, _this5.config.offset(data.offsets, _this5._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this.config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getContainer = function _getContainer() {
|
_proto._getContainer = function _getContainer() {
|
||||||
if (this.config.container === false) {
|
if (this.config.container === false) {
|
||||||
return document.body;
|
return document.body;
|
||||||
|
|
@ -3766,29 +3739,29 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this6 = this;
|
var _this5 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler.on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
EventHandler.on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||||
return _this6.toggle(event);
|
return _this5.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||||
EventHandler.on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
EventHandler.on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
||||||
return _this6._enter(event);
|
return _this5._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
EventHandler.on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
||||||
return _this6._leave(event);
|
return _this5._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this6._element) {
|
if (_this5._element) {
|
||||||
_this6.hide();
|
_this5.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -3961,26 +3934,17 @@ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
||||||
this.tip = popperData.instance.popper;
|
var state = popperData.state;
|
||||||
|
|
||||||
this._cleanTipClass();
|
if (!state) {
|
||||||
|
|
||||||
this._addAttachmentClass(this._getAttachment(popperData.placement));
|
|
||||||
};
|
|
||||||
|
|
||||||
_proto._fixTransition = function _fixTransition() {
|
|
||||||
var tip = this.getTipElement();
|
|
||||||
var initConfigAnimation = this.config.animation;
|
|
||||||
|
|
||||||
if (tip.getAttribute('x-placement') !== null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tip.classList.remove(CLASS_NAME_FADE$1);
|
this.tip = state.elements.popper;
|
||||||
this.config.animation = false;
|
|
||||||
this.hide();
|
this._cleanTipClass();
|
||||||
this.show();
|
|
||||||
this.config.animation = initConfigAnimation;
|
this._addAttachmentClass(this._getAttachment(state.placement));
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/js/bootstrap.esm.js.map
vendored
2
dist/js/bootstrap.esm.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.esm.min.js
vendored
4
dist/js/bootstrap.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.esm.min.js.map
vendored
2
dist/js/bootstrap.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,17 +1,35 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('popper.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core')) :
|
||||||
typeof define === 'function' && define.amd ? define(['popper.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['@popperjs/core'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.bootstrap = factory(global.Popper));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.bootstrap = factory(global.Popper));
|
||||||
}(this, (function (Popper) { 'use strict';
|
}(this, (function (Popper) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopNamespace(e) {
|
||||||
|
if (e && e.__esModule) return e;
|
||||||
|
var n = Object.create(null);
|
||||||
|
if (e) {
|
||||||
|
Object.keys(e).forEach(function (k) {
|
||||||
|
if (k !== 'default') {
|
||||||
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||||
|
Object.defineProperty(n, k, d.get ? d : {
|
||||||
|
enumerable: true,
|
||||||
|
get: function () {
|
||||||
|
return e[k];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
n['default'] = e;
|
||||||
|
return Object.freeze(n);
|
||||||
|
}
|
||||||
|
|
||||||
var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
|
var Popper__namespace = /*#__PURE__*/_interopNamespace(Popper);
|
||||||
|
|
||||||
function _defineProperties(target, props) {
|
function _defineProperties(target, props) {
|
||||||
for (var i = 0; i < props.length; i++) {
|
for (var i = 0; i < props.length; i++) {
|
||||||
|
|
@ -55,7 +73,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -240,7 +258,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/data.js
|
* Bootstrap (v5.0.0-beta1): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -307,7 +325,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -586,7 +604,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
@ -869,7 +887,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -941,7 +959,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -2065,9 +2083,7 @@
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPEND = 'dropend';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPSTART = 'dropstart';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
var CLASS_NAME_MENUEND = 'dropdown-menu-end';
|
|
||||||
var CLASS_NAME_NAVBAR = 'navbar';
|
var CLASS_NAME_NAVBAR = 'navbar';
|
||||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
|
||||||
var SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="dropdown"]';
|
var SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="dropdown"]';
|
||||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||||
var SELECTOR_MENU = '.dropdown-menu';
|
var SELECTOR_MENU = '.dropdown-menu';
|
||||||
|
|
@ -2082,7 +2098,7 @@
|
||||||
var Default$2 = {
|
var Default$2 = {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
display: 'dynamic',
|
display: 'dynamic',
|
||||||
popperConfig: null
|
popperConfig: null
|
||||||
|
|
@ -2155,7 +2171,7 @@
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (!this._inNavbar) {
|
||||||
if (typeof Popper__default['default'] === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2169,16 +2185,9 @@
|
||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
} // If boundary is not `scrollParent`, then set position to `static`
|
|
||||||
// to allow the menu to "escape" the scroll parent's boundaries
|
|
||||||
// https://github.com/twbs/bootstrap/issues/24251
|
|
||||||
|
|
||||||
|
|
||||||
if (this._config.boundary !== 'scrollParent') {
|
|
||||||
parent.classList.add(CLASS_NAME_POSITION_STATIC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
|
this._popper = Popper.createPopper(referenceElement, this._menu, this._getPopperConfig());
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
|
|
@ -2247,7 +2256,7 @@
|
||||||
this._inNavbar = this._detectNavbar();
|
this._inNavbar = this._detectNavbar();
|
||||||
|
|
||||||
if (this._popper) {
|
if (this._popper) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
@ -2275,60 +2284,46 @@
|
||||||
|
|
||||||
_proto._getPlacement = function _getPlacement() {
|
_proto._getPlacement = function _getPlacement() {
|
||||||
var parentDropdown = this._element.parentNode;
|
var parentDropdown = this._element.parentNode;
|
||||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
|
||||||
|
|
||||||
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
||||||
placement = this._menu.classList.contains(CLASS_NAME_MENUEND) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
return PLACEMENT_RIGHT;
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
|
||||||
placement = PLACEMENT_RIGHT;
|
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
|
||||||
placement = PLACEMENT_LEFT;
|
|
||||||
} else if (this._menu.classList.contains(CLASS_NAME_MENUEND)) {
|
|
||||||
placement = PLACEMENT_BOTTOMEND;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return placement;
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
||||||
|
return PLACEMENT_LEFT;
|
||||||
|
} // We need to trim the value because custom properties can also include spaces
|
||||||
|
|
||||||
|
|
||||||
|
var isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
|
||||||
|
|
||||||
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
||||||
|
return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||||
|
}
|
||||||
|
|
||||||
|
return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._detectNavbar = function _detectNavbar() {
|
_proto._detectNavbar = function _detectNavbar() {
|
||||||
return Boolean(this._element.closest("." + CLASS_NAME_NAVBAR));
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this3 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this._config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _extends({}, data.offsets, _this3._config.offset(data.offsets, _this3._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this._config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var popperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: {
|
modifiers: [{
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
enabled: this._config.flip
|
altBoundary: this._config.flip,
|
||||||
},
|
rootBoundary: this._config.boundary
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this._config.boundary
|
|
||||||
}
|
}
|
||||||
}
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers.applyStyle = {
|
popperConfig.modifiers = [{
|
||||||
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
};
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, popperConfig, this._config.popperConfig);
|
||||||
|
|
@ -3169,7 +3164,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -3315,9 +3310,8 @@
|
||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
offset: '(number|string|function)',
|
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacement: '(string|array)',
|
fallbackPlacements: '(null|array)',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
|
|
@ -3341,10 +3335,9 @@
|
||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
offset: 0,
|
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacement: 'flip',
|
fallbackPlacements: null,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
sanitizeFn: null,
|
sanitizeFn: null,
|
||||||
|
|
@ -3385,7 +3378,7 @@
|
||||||
function Tooltip(element, config) {
|
function Tooltip(element, config) {
|
||||||
var _this;
|
var _this;
|
||||||
|
|
||||||
if (typeof Popper__default['default'] === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3521,7 +3514,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
|
||||||
this._popper = new Popper__default['default'](this._element, tip, this._getPopperConfig(attachment));
|
this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
|
||||||
tip.classList.add(CLASS_NAME_SHOW$3);
|
tip.classList.add(CLASS_NAME_SHOW$3);
|
||||||
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
||||||
|
|
||||||
|
|
@ -3544,10 +3537,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
if (_this2.config.animation) {
|
|
||||||
_this2._fixTransition();
|
|
||||||
}
|
|
||||||
|
|
||||||
var prevHoverState = _this2._hoverState;
|
var prevHoverState = _this2._hoverState;
|
||||||
_this2._hoverState = null;
|
_this2._hoverState = null;
|
||||||
EventHandler.trigger(_this2._element, _this2.constructor.Event.SHOWN);
|
EventHandler.trigger(_this2._element, _this2.constructor.Event.SHOWN);
|
||||||
|
|
@ -3587,7 +3576,11 @@
|
||||||
|
|
||||||
EventHandler.trigger(_this3._element, _this3.constructor.Event.HIDDEN);
|
EventHandler.trigger(_this3._element, _this3.constructor.Event.HIDDEN);
|
||||||
|
|
||||||
_this3._popper.destroy();
|
if (_this3._popper) {
|
||||||
|
_this3._popper.destroy();
|
||||||
|
|
||||||
|
_this3._popper = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(this._element, this.constructor.Event.HIDE);
|
var hideEvent = EventHandler.trigger(this._element, this.constructor.Event.HIDE);
|
||||||
|
|
@ -3624,7 +3617,7 @@
|
||||||
|
|
||||||
_proto.update = function update() {
|
_proto.update = function update() {
|
||||||
if (this._popper !== null) {
|
if (this._popper !== null) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Protected
|
} // Protected
|
||||||
;
|
;
|
||||||
|
|
@ -3710,27 +3703,41 @@
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var flipModifier = {
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (this.config.fallbackPlacements) {
|
||||||
|
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
||||||
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
var defaultBsConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: {
|
modifiers: [flipModifier, {
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
behavior: this.config.fallbackPlacement
|
rootBoundary: this.config.boundary
|
||||||
},
|
|
||||||
arrow: {
|
|
||||||
element: "." + this.constructor.NAME + "-arrow"
|
|
||||||
},
|
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this.config.boundary
|
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
onCreate: function onCreate(data) {
|
name: 'arrow',
|
||||||
if (data.originalPlacement !== data.placement) {
|
options: {
|
||||||
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'onChange',
|
||||||
|
enabled: true,
|
||||||
|
phase: 'afterWrite',
|
||||||
|
fn: function fn(data) {
|
||||||
|
return _this4._handlePopperPlacementChange(data);
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this4._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
onUpdate: function onUpdate(data) {
|
|
||||||
return _this4._handlePopperPlacementChange(data);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
||||||
|
|
@ -3740,23 +3747,6 @@
|
||||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this5 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this.config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _extends({}, data.offsets, _this5.config.offset(data.offsets, _this5._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this.config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getContainer = function _getContainer() {
|
_proto._getContainer = function _getContainer() {
|
||||||
if (this.config.container === false) {
|
if (this.config.container === false) {
|
||||||
return document.body;
|
return document.body;
|
||||||
|
|
@ -3774,29 +3764,29 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this6 = this;
|
var _this5 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler.on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
EventHandler.on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||||
return _this6.toggle(event);
|
return _this5.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||||
EventHandler.on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
EventHandler.on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
||||||
return _this6._enter(event);
|
return _this5._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
EventHandler.on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
||||||
return _this6._leave(event);
|
return _this5._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this6._element) {
|
if (_this5._element) {
|
||||||
_this6.hide();
|
_this5.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -3969,26 +3959,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
||||||
this.tip = popperData.instance.popper;
|
var state = popperData.state;
|
||||||
|
|
||||||
this._cleanTipClass();
|
if (!state) {
|
||||||
|
|
||||||
this._addAttachmentClass(this._getAttachment(popperData.placement));
|
|
||||||
};
|
|
||||||
|
|
||||||
_proto._fixTransition = function _fixTransition() {
|
|
||||||
var tip = this.getTipElement();
|
|
||||||
var initConfigAnimation = this.config.animation;
|
|
||||||
|
|
||||||
if (tip.getAttribute('x-placement') !== null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tip.classList.remove(CLASS_NAME_FADE$1);
|
this.tip = state.elements.popper;
|
||||||
this.config.animation = false;
|
|
||||||
this.hide();
|
this._cleanTipClass();
|
||||||
this.show();
|
|
||||||
this.config.animation = initConfigAnimation;
|
this._addAttachmentClass(this._getAttachment(state.placement));
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -5003,7 +4984,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): index.umd.js
|
* Bootstrap (v5.0.0-beta1): index.umd.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
dist/js/bootstrap.js.map
vendored
2
dist/js/bootstrap.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.min.js
vendored
4
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.min.js.map
vendored
2
dist/js/bootstrap.min.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/alert.js
vendored
6
js/dist/alert.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap alert.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap alert.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -114,7 +114,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/alert.js.map
vendored
2
js/dist/alert.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/button.js
vendored
6
js/dist/button.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap button.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap button.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/button.js.map
vendored
2
js/dist/button.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/carousel.js
vendored
6
js/dist/carousel.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap carousel.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap carousel.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -158,7 +158,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/carousel.js.map
vendored
2
js/dist/carousel.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/collapse.js
vendored
6
js/dist/collapse.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap collapse.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap collapse.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -154,7 +154,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/collapse.js.map
vendored
2
js/dist/collapse.js.map
vendored
File diff suppressed because one or more lines are too long
4
js/dist/dom/data.js
vendored
4
js/dist/dom/data.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap data.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap data.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/data.js
|
* Bootstrap (v5.0.0-beta1): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
js/dist/dom/data.js.map
vendored
2
js/dist/dom/data.js.map
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"data.js","sources":["../../src/dom/data.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha3): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {}\n let id = 1\n return {\n set(element, key, data) {\n if (typeof element.bsKey === 'undefined') {\n element.bsKey = {\n key,\n id\n }\n id++\n }\n\n storeData[element.bsKey.id] = data\n },\n get(element, key) {\n if (!element || typeof element.bsKey === 'undefined') {\n return null\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n return storeData[keyProperties.id]\n }\n\n return null\n },\n delete(element, key) {\n if (typeof element.bsKey === 'undefined') {\n return\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id]\n delete element.bsKey\n }\n }\n }\n})()\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data)\n },\n getData(instance, key) {\n return mapData.get(instance, key)\n },\n removeData(instance, key) {\n mapData.delete(instance, key)\n }\n}\n\nexport default Data\n"],"names":["mapData","storeData","id","set","element","key","data","bsKey","get","keyProperties","delete","Data","setData","instance","getData","removeData"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,OAAO,GAAI,YAAM;EACrB,MAAMC,SAAS,GAAG,EAAlB;EACA,MAAIC,EAAE,GAAG,CAAT;EACA,SAAO;EACLC,IAAAA,GADK,eACDC,OADC,EACQC,GADR,EACaC,IADb,EACmB;EACtB,UAAI,OAAOF,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxCH,QAAAA,OAAO,CAACG,KAAR,GAAgB;EACdF,UAAAA,GAAG,EAAHA,GADc;EAEdH,UAAAA,EAAE,EAAFA;EAFc,SAAhB;EAIAA,QAAAA,EAAE;EACH;;EAEDD,MAAAA,SAAS,CAACG,OAAO,CAACG,KAAR,CAAcL,EAAf,CAAT,GAA8BI,IAA9B;EACD,KAXI;EAYLE,IAAAA,GAZK,eAYDJ,OAZC,EAYQC,GAZR,EAYa;EAChB,UAAI,CAACD,OAAD,IAAY,OAAOA,OAAO,CAACG,KAAf,KAAyB,WAAzC,EAAsD;EACpD,eAAO,IAAP;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACD;;EAED,aAAO,IAAP;EACD,KAvBI;EAwBLQ,IAAAA,MAxBK,mBAwBEN,OAxBF,EAwBWC,GAxBX,EAwBgB;EACnB,UAAI,OAAOD,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxC;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACA,eAAOE,OAAO,CAACG,KAAf;EACD;EACF;EAlCI,GAAP;EAoCD,CAvCe,EAAhB;;MAyCMI,IAAI,GAAG;EACXC,EAAAA,OADW,mBACHC,QADG,EACOR,GADP,EACYC,IADZ,EACkB;EAC3BN,IAAAA,OAAO,CAACG,GAAR,CAAYU,QAAZ,EAAsBR,GAAtB,EAA2BC,IAA3B;EACD,GAHU;EAIXQ,EAAAA,OAJW,mBAIHD,QAJG,EAIOR,GAJP,EAIY;EACrB,WAAOL,OAAO,CAACQ,GAAR,CAAYK,QAAZ,EAAsBR,GAAtB,CAAP;EACD,GANU;EAOXU,EAAAA,UAPW,sBAOAF,QAPA,EAOUR,GAPV,EAOe;EACxBL,IAAAA,OAAO,CAACU,MAAR,CAAeG,QAAf,EAAyBR,GAAzB;EACD;EATU;;;;;;;;"}
|
{"version":3,"file":"data.js","sources":["../../src/dom/data.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {}\n let id = 1\n return {\n set(element, key, data) {\n if (typeof element.bsKey === 'undefined') {\n element.bsKey = {\n key,\n id\n }\n id++\n }\n\n storeData[element.bsKey.id] = data\n },\n get(element, key) {\n if (!element || typeof element.bsKey === 'undefined') {\n return null\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n return storeData[keyProperties.id]\n }\n\n return null\n },\n delete(element, key) {\n if (typeof element.bsKey === 'undefined') {\n return\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id]\n delete element.bsKey\n }\n }\n }\n})()\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data)\n },\n getData(instance, key) {\n return mapData.get(instance, key)\n },\n removeData(instance, key) {\n mapData.delete(instance, key)\n }\n}\n\nexport default Data\n"],"names":["mapData","storeData","id","set","element","key","data","bsKey","get","keyProperties","delete","Data","setData","instance","getData","removeData"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,OAAO,GAAI,YAAM;EACrB,MAAMC,SAAS,GAAG,EAAlB;EACA,MAAIC,EAAE,GAAG,CAAT;EACA,SAAO;EACLC,IAAAA,GADK,eACDC,OADC,EACQC,GADR,EACaC,IADb,EACmB;EACtB,UAAI,OAAOF,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxCH,QAAAA,OAAO,CAACG,KAAR,GAAgB;EACdF,UAAAA,GAAG,EAAHA,GADc;EAEdH,UAAAA,EAAE,EAAFA;EAFc,SAAhB;EAIAA,QAAAA,EAAE;EACH;;EAEDD,MAAAA,SAAS,CAACG,OAAO,CAACG,KAAR,CAAcL,EAAf,CAAT,GAA8BI,IAA9B;EACD,KAXI;EAYLE,IAAAA,GAZK,eAYDJ,OAZC,EAYQC,GAZR,EAYa;EAChB,UAAI,CAACD,OAAD,IAAY,OAAOA,OAAO,CAACG,KAAf,KAAyB,WAAzC,EAAsD;EACpD,eAAO,IAAP;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACD;;EAED,aAAO,IAAP;EACD,KAvBI;EAwBLQ,IAAAA,MAxBK,mBAwBEN,OAxBF,EAwBWC,GAxBX,EAwBgB;EACnB,UAAI,OAAOD,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxC;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACA,eAAOE,OAAO,CAACG,KAAf;EACD;EACF;EAlCI,GAAP;EAoCD,CAvCe,EAAhB;;MAyCMI,IAAI,GAAG;EACXC,EAAAA,OADW,mBACHC,QADG,EACOR,GADP,EACYC,IADZ,EACkB;EAC3BN,IAAAA,OAAO,CAACG,GAAR,CAAYU,QAAZ,EAAsBR,GAAtB,EAA2BC,IAA3B;EACD,GAHU;EAIXQ,EAAAA,OAJW,mBAIHD,QAJG,EAIOR,GAJP,EAIY;EACrB,WAAOL,OAAO,CAACQ,GAAR,CAAYK,QAAZ,EAAsBR,GAAtB,CAAP;EACD,GANU;EAOXU,EAAAA,UAPW,sBAOAF,QAPA,EAOUR,GAPV,EAOe;EACxBL,IAAAA,OAAO,CAACU,MAAR,CAAeG,QAAf,EAAyBR,GAAzB;EACD;EATU;;;;;;;;"}
|
||||||
6
js/dist/dom/event-handler.js
vendored
6
js/dist/dom/event-handler.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap event-handler.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap event-handler.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
js/dist/dom/event-handler.js.map
vendored
2
js/dist/dom/event-handler.js.map
vendored
File diff suppressed because one or more lines are too long
4
js/dist/dom/manipulator.js
vendored
4
js/dist/dom/manipulator.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap manipulator.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap manipulator.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
js/dist/dom/manipulator.js.map
vendored
2
js/dist/dom/manipulator.js.map
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"manipulator.js","sources":["../../src/dom/manipulator.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha3): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true\n }\n\n if (val === 'false') {\n return false\n }\n\n if (val === Number(val).toString()) {\n return Number(val)\n }\n\n if (val === '' || val === 'null') {\n return null\n }\n\n return val\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {}\n\n Object.keys(element.dataset)\n .filter(key => key.startsWith('bs'))\n .forEach(key => {\n let pureKey = key.replace(/^bs/, '')\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)\n attributes[pureKey] = normalizeData(element.dataset[key])\n })\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect()\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft\n }\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft\n }\n }\n}\n\nexport default Manipulator\n"],"names":["normalizeData","val","Number","toString","normalizeDataKey","key","replace","chr","toLowerCase","Manipulator","setDataAttribute","element","value","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","Object","keys","dataset","filter","startsWith","forEach","pureKey","charAt","slice","length","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","document","body","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EAEA,SAASA,aAAT,CAAuBC,GAAvB,EAA4B;EAC1B,MAAIA,GAAG,KAAK,MAAZ,EAAoB;EAClB,WAAO,IAAP;EACD;;EAED,MAAIA,GAAG,KAAK,OAAZ,EAAqB;EACnB,WAAO,KAAP;EACD;;EAED,MAAIA,GAAG,KAAKC,MAAM,CAACD,GAAD,CAAN,CAAYE,QAAZ,EAAZ,EAAoC;EAClC,WAAOD,MAAM,CAACD,GAAD,CAAb;EACD;;EAED,MAAIA,GAAG,KAAK,EAAR,IAAcA,GAAG,KAAK,MAA1B,EAAkC;EAChC,WAAO,IAAP;EACD;;EAED,SAAOA,GAAP;EACD;;EAED,SAASG,gBAAT,CAA0BC,GAA1B,EAA+B;EAC7B,SAAOA,GAAG,CAACC,OAAJ,CAAY,QAAZ,EAAsB,UAAAC,GAAG;EAAA,iBAAQA,GAAG,CAACC,WAAJ,EAAR;EAAA,GAAzB,CAAP;EACD;;MAEKC,WAAW,GAAG;EAClBC,EAAAA,gBADkB,4BACDC,OADC,EACQN,GADR,EACaO,KADb,EACoB;EACpCD,IAAAA,OAAO,CAACE,YAAR,cAAgCT,gBAAgB,CAACC,GAAD,CAAhD,EAAyDO,KAAzD;EACD,GAHiB;EAKlBE,EAAAA,mBALkB,+BAKEH,OALF,EAKWN,GALX,EAKgB;EAChCM,IAAAA,OAAO,CAACI,eAAR,cAAmCX,gBAAgB,CAACC,GAAD,CAAnD;EACD,GAPiB;EASlBW,EAAAA,iBATkB,6BASAL,OATA,EASS;EACzB,QAAI,CAACA,OAAL,EAAc;EACZ,aAAO,EAAP;EACD;;EAED,QAAMM,UAAU,GAAG,EAAnB;EAEAC,IAAAA,MAAM,CAACC,IAAP,CAAYR,OAAO,CAACS,OAApB,EACGC,MADH,CACU,UAAAhB,GAAG;EAAA,aAAIA,GAAG,CAACiB,UAAJ,CAAe,IAAf,CAAJ;EAAA,KADb,EAEGC,OAFH,CAEW,UAAAlB,GAAG,EAAI;EACd,UAAImB,OAAO,GAAGnB,GAAG,CAACC,OAAJ,CAAY,KAAZ,EAAmB,EAAnB,CAAd;EACAkB,MAAAA,OAAO,GAAGA,OAAO,CAACC,MAAR,CAAe,CAAf,EAAkBjB,WAAlB,KAAkCgB,OAAO,CAACE,KAAR,CAAc,CAAd,EAAiBF,OAAO,CAACG,MAAzB,CAA5C;EACAV,MAAAA,UAAU,CAACO,OAAD,CAAV,GAAsBxB,aAAa,CAACW,OAAO,CAACS,OAAR,CAAgBf,GAAhB,CAAD,CAAnC;EACD,KANH;EAQA,WAAOY,UAAP;EACD,GAzBiB;EA2BlBW,EAAAA,gBA3BkB,4BA2BDjB,OA3BC,EA2BQN,GA3BR,EA2Ba;EAC7B,WAAOL,aAAa,CAACW,OAAO,CAACkB,YAAR,cAAgCzB,gBAAgB,CAACC,GAAD,CAAhD,CAAD,CAApB;EACD,GA7BiB;EA+BlByB,EAAAA,MA/BkB,kBA+BXnB,OA/BW,EA+BF;EACd,QAAMoB,IAAI,GAAGpB,OAAO,CAACqB,qBAAR,EAAb;EAEA,WAAO;EACLC,MAAAA,GAAG,EAAEF,IAAI,CAACE,GAAL,GAAWC,QAAQ,CAACC,IAAT,CAAcC,SADzB;EAELC,MAAAA,IAAI,EAAEN,IAAI,CAACM,IAAL,GAAYH,QAAQ,CAACC,IAAT,CAAcG;EAF3B,KAAP;EAID,GAtCiB;EAwClBC,EAAAA,QAxCkB,oBAwCT5B,OAxCS,EAwCA;EAChB,WAAO;EACLsB,MAAAA,GAAG,EAAEtB,OAAO,CAAC6B,SADR;EAELH,MAAAA,IAAI,EAAE1B,OAAO,CAAC8B;EAFT,KAAP;EAID;EA7CiB;;;;;;;;"}
|
{"version":3,"file":"manipulator.js","sources":["../../src/dom/manipulator.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true\n }\n\n if (val === 'false') {\n return false\n }\n\n if (val === Number(val).toString()) {\n return Number(val)\n }\n\n if (val === '' || val === 'null') {\n return null\n }\n\n return val\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {}\n\n Object.keys(element.dataset)\n .filter(key => key.startsWith('bs'))\n .forEach(key => {\n let pureKey = key.replace(/^bs/, '')\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)\n attributes[pureKey] = normalizeData(element.dataset[key])\n })\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect()\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft\n }\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft\n }\n }\n}\n\nexport default Manipulator\n"],"names":["normalizeData","val","Number","toString","normalizeDataKey","key","replace","chr","toLowerCase","Manipulator","setDataAttribute","element","value","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","Object","keys","dataset","filter","startsWith","forEach","pureKey","charAt","slice","length","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","document","body","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EAEA,SAASA,aAAT,CAAuBC,GAAvB,EAA4B;EAC1B,MAAIA,GAAG,KAAK,MAAZ,EAAoB;EAClB,WAAO,IAAP;EACD;;EAED,MAAIA,GAAG,KAAK,OAAZ,EAAqB;EACnB,WAAO,KAAP;EACD;;EAED,MAAIA,GAAG,KAAKC,MAAM,CAACD,GAAD,CAAN,CAAYE,QAAZ,EAAZ,EAAoC;EAClC,WAAOD,MAAM,CAACD,GAAD,CAAb;EACD;;EAED,MAAIA,GAAG,KAAK,EAAR,IAAcA,GAAG,KAAK,MAA1B,EAAkC;EAChC,WAAO,IAAP;EACD;;EAED,SAAOA,GAAP;EACD;;EAED,SAASG,gBAAT,CAA0BC,GAA1B,EAA+B;EAC7B,SAAOA,GAAG,CAACC,OAAJ,CAAY,QAAZ,EAAsB,UAAAC,GAAG;EAAA,iBAAQA,GAAG,CAACC,WAAJ,EAAR;EAAA,GAAzB,CAAP;EACD;;MAEKC,WAAW,GAAG;EAClBC,EAAAA,gBADkB,4BACDC,OADC,EACQN,GADR,EACaO,KADb,EACoB;EACpCD,IAAAA,OAAO,CAACE,YAAR,cAAgCT,gBAAgB,CAACC,GAAD,CAAhD,EAAyDO,KAAzD;EACD,GAHiB;EAKlBE,EAAAA,mBALkB,+BAKEH,OALF,EAKWN,GALX,EAKgB;EAChCM,IAAAA,OAAO,CAACI,eAAR,cAAmCX,gBAAgB,CAACC,GAAD,CAAnD;EACD,GAPiB;EASlBW,EAAAA,iBATkB,6BASAL,OATA,EASS;EACzB,QAAI,CAACA,OAAL,EAAc;EACZ,aAAO,EAAP;EACD;;EAED,QAAMM,UAAU,GAAG,EAAnB;EAEAC,IAAAA,MAAM,CAACC,IAAP,CAAYR,OAAO,CAACS,OAApB,EACGC,MADH,CACU,UAAAhB,GAAG;EAAA,aAAIA,GAAG,CAACiB,UAAJ,CAAe,IAAf,CAAJ;EAAA,KADb,EAEGC,OAFH,CAEW,UAAAlB,GAAG,EAAI;EACd,UAAImB,OAAO,GAAGnB,GAAG,CAACC,OAAJ,CAAY,KAAZ,EAAmB,EAAnB,CAAd;EACAkB,MAAAA,OAAO,GAAGA,OAAO,CAACC,MAAR,CAAe,CAAf,EAAkBjB,WAAlB,KAAkCgB,OAAO,CAACE,KAAR,CAAc,CAAd,EAAiBF,OAAO,CAACG,MAAzB,CAA5C;EACAV,MAAAA,UAAU,CAACO,OAAD,CAAV,GAAsBxB,aAAa,CAACW,OAAO,CAACS,OAAR,CAAgBf,GAAhB,CAAD,CAAnC;EACD,KANH;EAQA,WAAOY,UAAP;EACD,GAzBiB;EA2BlBW,EAAAA,gBA3BkB,4BA2BDjB,OA3BC,EA2BQN,GA3BR,EA2Ba;EAC7B,WAAOL,aAAa,CAACW,OAAO,CAACkB,YAAR,cAAgCzB,gBAAgB,CAACC,GAAD,CAAhD,CAAD,CAApB;EACD,GA7BiB;EA+BlByB,EAAAA,MA/BkB,kBA+BXnB,OA/BW,EA+BF;EACd,QAAMoB,IAAI,GAAGpB,OAAO,CAACqB,qBAAR,EAAb;EAEA,WAAO;EACLC,MAAAA,GAAG,EAAEF,IAAI,CAACE,GAAL,GAAWC,QAAQ,CAACC,IAAT,CAAcC,SADzB;EAELC,MAAAA,IAAI,EAAEN,IAAI,CAACM,IAAL,GAAYH,QAAQ,CAACC,IAAT,CAAcG;EAF3B,KAAP;EAID,GAtCiB;EAwClBC,EAAAA,QAxCkB,oBAwCT5B,OAxCS,EAwCA;EAChB,WAAO;EACLsB,MAAAA,GAAG,EAAEtB,OAAO,CAAC6B,SADR;EAELH,MAAAA,IAAI,EAAE1B,OAAO,CAAC8B;EAFT,KAAP;EAID;EA7CiB;;;;;;;;"}
|
||||||
4
js/dist/dom/selector-engine.js
vendored
4
js/dist/dom/selector-engine.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap selector-engine.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap selector-engine.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
js/dist/dom/selector-engine.js.map
vendored
2
js/dist/dom/selector-engine.js.map
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"selector-engine.js","sources":["../../src/dom/selector-engine.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha3): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3\n\nconst SelectorEngine = {\n matches(element, selector) {\n return element.matches(selector)\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector)\n },\n\n children(element, selector) {\n const children = [].concat(...element.children)\n\n return children.filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n\n let ancestor = element.parentNode\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor)\n }\n\n ancestor = ancestor.parentNode\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n }\n}\n\nexport default SelectorEngine\n"],"names":["NODE_TEXT","SelectorEngine","matches","element","selector","find","document","documentElement","concat","Element","prototype","querySelectorAll","call","findOne","querySelector","children","filter","child","parents","ancestor","parentNode","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,SAAS,GAAG,CAAlB;MAEMC,cAAc,GAAG;EACrBC,EAAAA,OADqB,mBACbC,OADa,EACJC,QADI,EACM;EACzB,WAAOD,OAAO,CAACD,OAAR,CAAgBE,QAAhB,CAAP;EACD,GAHoB;EAKrBC,EAAAA,IALqB,gBAKhBD,QALgB,EAKND,OALM,EAK8B;EAAA;;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACjD,WAAO,YAAGC,MAAH,aAAaC,OAAO,CAACC,SAAR,CAAkBC,gBAAlB,CAAmCC,IAAnC,CAAwCT,OAAxC,EAAiDC,QAAjD,CAAb,CAAP;EACD,GAPoB;EASrBS,EAAAA,OATqB,mBASbT,QATa,EASHD,OATG,EASiC;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACpD,WAAOE,OAAO,CAACC,SAAR,CAAkBI,aAAlB,CAAgCF,IAAhC,CAAqCT,OAArC,EAA8CC,QAA9C,CAAP;EACD,GAXoB;EAarBW,EAAAA,QAbqB,oBAaZZ,OAbY,EAaHC,QAbG,EAaO;EAAA;;EAC1B,QAAMW,QAAQ,GAAG,aAAGP,MAAH,cAAaL,OAAO,CAACY,QAArB,CAAjB;;EAEA,WAAOA,QAAQ,CAACC,MAAT,CAAgB,UAAAC,KAAK;EAAA,aAAIA,KAAK,CAACf,OAAN,CAAcE,QAAd,CAAJ;EAAA,KAArB,CAAP;EACD,GAjBoB;EAmBrBc,EAAAA,OAnBqB,mBAmBbf,OAnBa,EAmBJC,QAnBI,EAmBM;EACzB,QAAMc,OAAO,GAAG,EAAhB;EAEA,QAAIC,QAAQ,GAAGhB,OAAO,CAACiB,UAAvB;;EAEA,WAAOD,QAAQ,IAAIA,QAAQ,CAACE,QAAT,KAAsBC,IAAI,CAACC,YAAvC,IAAuDJ,QAAQ,CAACE,QAAT,KAAsBrB,SAApF,EAA+F;EAC7F,UAAI,KAAKE,OAAL,CAAaiB,QAAb,EAAuBf,QAAvB,CAAJ,EAAsC;EACpCc,QAAAA,OAAO,CAACM,IAAR,CAAaL,QAAb;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,UAApB;EACD;;EAED,WAAOF,OAAP;EACD,GAjCoB;EAmCrBO,EAAAA,IAnCqB,gBAmChBtB,OAnCgB,EAmCPC,QAnCO,EAmCG;EACtB,QAAIsB,QAAQ,GAAGvB,OAAO,CAACwB,sBAAvB;;EAEA,WAAOD,QAAP,EAAiB;EACf,UAAIA,QAAQ,CAACxB,OAAT,CAAiBE,QAAjB,CAAJ,EAAgC;EAC9B,eAAO,CAACsB,QAAD,CAAP;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,sBAApB;EACD;;EAED,WAAO,EAAP;EACD,GA/CoB;EAiDrBC,EAAAA,IAjDqB,gBAiDhBzB,OAjDgB,EAiDPC,QAjDO,EAiDG;EACtB,QAAIwB,IAAI,GAAGzB,OAAO,CAAC0B,kBAAnB;;EAEA,WAAOD,IAAP,EAAa;EACX,UAAI,KAAK1B,OAAL,CAAa0B,IAAb,EAAmBxB,QAAnB,CAAJ,EAAkC;EAChC,eAAO,CAACwB,IAAD,CAAP;EACD;;EAEDA,MAAAA,IAAI,GAAGA,IAAI,CAACC,kBAAZ;EACD;;EAED,WAAO,EAAP;EACD;EA7DoB;;;;;;;;"}
|
{"version":3,"file":"selector-engine.js","sources":["../../src/dom/selector-engine.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3\n\nconst SelectorEngine = {\n matches(element, selector) {\n return element.matches(selector)\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector)\n },\n\n children(element, selector) {\n const children = [].concat(...element.children)\n\n return children.filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n\n let ancestor = element.parentNode\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor)\n }\n\n ancestor = ancestor.parentNode\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n }\n}\n\nexport default SelectorEngine\n"],"names":["NODE_TEXT","SelectorEngine","matches","element","selector","find","document","documentElement","concat","Element","prototype","querySelectorAll","call","findOne","querySelector","children","filter","child","parents","ancestor","parentNode","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,SAAS,GAAG,CAAlB;MAEMC,cAAc,GAAG;EACrBC,EAAAA,OADqB,mBACbC,OADa,EACJC,QADI,EACM;EACzB,WAAOD,OAAO,CAACD,OAAR,CAAgBE,QAAhB,CAAP;EACD,GAHoB;EAKrBC,EAAAA,IALqB,gBAKhBD,QALgB,EAKND,OALM,EAK8B;EAAA;;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACjD,WAAO,YAAGC,MAAH,aAAaC,OAAO,CAACC,SAAR,CAAkBC,gBAAlB,CAAmCC,IAAnC,CAAwCT,OAAxC,EAAiDC,QAAjD,CAAb,CAAP;EACD,GAPoB;EASrBS,EAAAA,OATqB,mBASbT,QATa,EASHD,OATG,EASiC;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACpD,WAAOE,OAAO,CAACC,SAAR,CAAkBI,aAAlB,CAAgCF,IAAhC,CAAqCT,OAArC,EAA8CC,QAA9C,CAAP;EACD,GAXoB;EAarBW,EAAAA,QAbqB,oBAaZZ,OAbY,EAaHC,QAbG,EAaO;EAAA;;EAC1B,QAAMW,QAAQ,GAAG,aAAGP,MAAH,cAAaL,OAAO,CAACY,QAArB,CAAjB;;EAEA,WAAOA,QAAQ,CAACC,MAAT,CAAgB,UAAAC,KAAK;EAAA,aAAIA,KAAK,CAACf,OAAN,CAAcE,QAAd,CAAJ;EAAA,KAArB,CAAP;EACD,GAjBoB;EAmBrBc,EAAAA,OAnBqB,mBAmBbf,OAnBa,EAmBJC,QAnBI,EAmBM;EACzB,QAAMc,OAAO,GAAG,EAAhB;EAEA,QAAIC,QAAQ,GAAGhB,OAAO,CAACiB,UAAvB;;EAEA,WAAOD,QAAQ,IAAIA,QAAQ,CAACE,QAAT,KAAsBC,IAAI,CAACC,YAAvC,IAAuDJ,QAAQ,CAACE,QAAT,KAAsBrB,SAApF,EAA+F;EAC7F,UAAI,KAAKE,OAAL,CAAaiB,QAAb,EAAuBf,QAAvB,CAAJ,EAAsC;EACpCc,QAAAA,OAAO,CAACM,IAAR,CAAaL,QAAb;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,UAApB;EACD;;EAED,WAAOF,OAAP;EACD,GAjCoB;EAmCrBO,EAAAA,IAnCqB,gBAmChBtB,OAnCgB,EAmCPC,QAnCO,EAmCG;EACtB,QAAIsB,QAAQ,GAAGvB,OAAO,CAACwB,sBAAvB;;EAEA,WAAOD,QAAP,EAAiB;EACf,UAAIA,QAAQ,CAACxB,OAAT,CAAiBE,QAAjB,CAAJ,EAAgC;EAC9B,eAAO,CAACsB,QAAD,CAAP;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,sBAApB;EACD;;EAED,WAAO,EAAP;EACD,GA/CoB;EAiDrBC,EAAAA,IAjDqB,gBAiDhBzB,OAjDgB,EAiDPC,QAjDO,EAiDG;EACtB,QAAIwB,IAAI,GAAGzB,OAAO,CAAC0B,kBAAnB;;EAEA,WAAOD,IAAP,EAAa;EACX,UAAI,KAAK1B,OAAL,CAAa0B,IAAb,EAAmBxB,QAAnB,CAAJ,EAAkC;EAChC,eAAO,CAACwB,IAAD,CAAP;EACD;;EAEDA,MAAAA,IAAI,GAAGA,IAAI,CAACC,kBAAZ;EACD;;EAED,WAAO,EAAP;EACD;EA7DoB;;;;;;;;"}
|
||||||
115
js/dist/dropdown.js
vendored
115
js/dist/dropdown.js
vendored
|
|
@ -1,25 +1,45 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap dropdown.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap dropdown.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('popper.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', 'popper.js', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Dropdown = factory(global.Data, global.EventHandler, global.Manipulator, global.Popper, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Dropdown = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, Popper, SelectorEngine) { 'use strict';
|
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
|
function _interopNamespace(e) {
|
||||||
|
if (e && e.__esModule) return e;
|
||||||
|
var n = Object.create(null);
|
||||||
|
if (e) {
|
||||||
|
Object.keys(e).forEach(function (k) {
|
||||||
|
if (k !== 'default') {
|
||||||
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||||
|
Object.defineProperty(n, k, d.get ? d : {
|
||||||
|
enumerable: true,
|
||||||
|
get: function () {
|
||||||
|
return e[k];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
n['default'] = e;
|
||||||
|
return Object.freeze(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
var Popper__namespace = /*#__PURE__*/_interopNamespace(Popper);
|
||||||
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
|
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -112,7 +132,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
@ -185,9 +205,7 @@
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPEND = 'dropend';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPSTART = 'dropstart';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
var CLASS_NAME_MENUEND = 'dropdown-menu-end';
|
|
||||||
var CLASS_NAME_NAVBAR = 'navbar';
|
var CLASS_NAME_NAVBAR = 'navbar';
|
||||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
|
||||||
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="dropdown"]';
|
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="dropdown"]';
|
||||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||||
var SELECTOR_MENU = '.dropdown-menu';
|
var SELECTOR_MENU = '.dropdown-menu';
|
||||||
|
|
@ -202,7 +220,7 @@
|
||||||
var Default = {
|
var Default = {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
display: 'dynamic',
|
display: 'dynamic',
|
||||||
popperConfig: null
|
popperConfig: null
|
||||||
|
|
@ -275,7 +293,7 @@
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (!this._inNavbar) {
|
||||||
if (typeof Popper__default['default'] === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -289,16 +307,9 @@
|
||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
} // If boundary is not `scrollParent`, then set position to `static`
|
|
||||||
// to allow the menu to "escape" the scroll parent's boundaries
|
|
||||||
// https://github.com/twbs/bootstrap/issues/24251
|
|
||||||
|
|
||||||
|
|
||||||
if (this._config.boundary !== 'scrollParent') {
|
|
||||||
parent.classList.add(CLASS_NAME_POSITION_STATIC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
|
this._popper = Popper.createPopper(referenceElement, this._menu, this._getPopperConfig());
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
|
|
@ -367,7 +378,7 @@
|
||||||
this._inNavbar = this._detectNavbar();
|
this._inNavbar = this._detectNavbar();
|
||||||
|
|
||||||
if (this._popper) {
|
if (this._popper) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
@ -395,60 +406,46 @@
|
||||||
|
|
||||||
_proto._getPlacement = function _getPlacement() {
|
_proto._getPlacement = function _getPlacement() {
|
||||||
var parentDropdown = this._element.parentNode;
|
var parentDropdown = this._element.parentNode;
|
||||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
|
||||||
|
|
||||||
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
||||||
placement = this._menu.classList.contains(CLASS_NAME_MENUEND) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
return PLACEMENT_RIGHT;
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
|
||||||
placement = PLACEMENT_RIGHT;
|
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
|
||||||
placement = PLACEMENT_LEFT;
|
|
||||||
} else if (this._menu.classList.contains(CLASS_NAME_MENUEND)) {
|
|
||||||
placement = PLACEMENT_BOTTOMEND;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return placement;
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
||||||
|
return PLACEMENT_LEFT;
|
||||||
|
} // We need to trim the value because custom properties can also include spaces
|
||||||
|
|
||||||
|
|
||||||
|
var isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
|
||||||
|
|
||||||
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
||||||
|
return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||||
|
}
|
||||||
|
|
||||||
|
return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._detectNavbar = function _detectNavbar() {
|
_proto._detectNavbar = function _detectNavbar() {
|
||||||
return Boolean(this._element.closest("." + CLASS_NAME_NAVBAR));
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this3 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this._config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _extends({}, data.offsets, _this3._config.offset(data.offsets, _this3._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this._config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var popperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: {
|
modifiers: [{
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
enabled: this._config.flip
|
altBoundary: this._config.flip,
|
||||||
},
|
rootBoundary: this._config.boundary
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this._config.boundary
|
|
||||||
}
|
}
|
||||||
}
|
}]
|
||||||
}; // Disable Popper if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers.applyStyle = {
|
popperConfig.modifiers = [{
|
||||||
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
};
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _extends({}, popperConfig, this._config.popperConfig);
|
return _extends({}, popperConfig, this._config.popperConfig);
|
||||||
|
|
|
||||||
2
js/dist/dropdown.js.map
vendored
2
js/dist/dropdown.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/modal.js
vendored
6
js/dist/modal.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap modal.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap modal.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -158,7 +158,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/modal.js.map
vendored
2
js/dist/modal.js.map
vendored
File diff suppressed because one or more lines are too long
4
js/dist/popover.js
vendored
4
js/dist/popover.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap popover.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap popover.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
js/dist/popover.js.map
vendored
2
js/dist/popover.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/scrollspy.js
vendored
6
js/dist/scrollspy.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap scrollspy.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap scrollspy.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -113,7 +113,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/scrollspy.js.map
vendored
2
js/dist/scrollspy.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/tab.js
vendored
6
js/dist/tab.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap tab.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap tab.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/tab.js.map
vendored
2
js/dist/tab.js.map
vendored
File diff suppressed because one or more lines are too long
6
js/dist/toast.js
vendored
6
js/dist/toast.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap toast.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap toast.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
|
||||||
2
js/dist/toast.js.map
vendored
2
js/dist/toast.js.map
vendored
File diff suppressed because one or more lines are too long
170
js/dist/tooltip.js
vendored
170
js/dist/tooltip.js
vendored
|
|
@ -1,25 +1,45 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap tooltip.js v5.0.0-alpha3 (https://getbootstrap.com/)
|
* Bootstrap tooltip.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('popper.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', 'popper.js', './dom/selector-engine'], factory) :
|
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.Data, global.EventHandler, global.Manipulator, global.Popper, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, Popper, SelectorEngine) { 'use strict';
|
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
|
|
||||||
|
function _interopNamespace(e) {
|
||||||
|
if (e && e.__esModule) return e;
|
||||||
|
var n = Object.create(null);
|
||||||
|
if (e) {
|
||||||
|
Object.keys(e).forEach(function (k) {
|
||||||
|
if (k !== 'default') {
|
||||||
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||||
|
Object.defineProperty(n, k, d.get ? d : {
|
||||||
|
enumerable: true,
|
||||||
|
get: function () {
|
||||||
|
return e[k];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
n['default'] = e;
|
||||||
|
return Object.freeze(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
var Popper__namespace = /*#__PURE__*/_interopNamespace(Popper);
|
||||||
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
|
|
||||||
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -160,7 +180,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): util/sanitizer.js
|
* Bootstrap (v5.0.0-beta1): util/sanitizer.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -294,7 +314,7 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var VERSION = '5.0.0-alpha3';
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
var BaseComponent = /*#__PURE__*/function () {
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
function BaseComponent(element) {
|
function BaseComponent(element) {
|
||||||
|
|
@ -357,9 +377,8 @@
|
||||||
html: 'boolean',
|
html: 'boolean',
|
||||||
selector: '(string|boolean)',
|
selector: '(string|boolean)',
|
||||||
placement: '(string|function)',
|
placement: '(string|function)',
|
||||||
offset: '(number|string|function)',
|
|
||||||
container: '(string|element|boolean)',
|
container: '(string|element|boolean)',
|
||||||
fallbackPlacement: '(string|array)',
|
fallbackPlacements: '(null|array)',
|
||||||
boundary: '(string|element)',
|
boundary: '(string|element)',
|
||||||
customClass: '(string|function)',
|
customClass: '(string|function)',
|
||||||
sanitize: 'boolean',
|
sanitize: 'boolean',
|
||||||
|
|
@ -383,10 +402,9 @@
|
||||||
html: false,
|
html: false,
|
||||||
selector: false,
|
selector: false,
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
offset: 0,
|
|
||||||
container: false,
|
container: false,
|
||||||
fallbackPlacement: 'flip',
|
fallbackPlacements: null,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
customClass: '',
|
customClass: '',
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
sanitizeFn: null,
|
sanitizeFn: null,
|
||||||
|
|
@ -427,7 +445,7 @@
|
||||||
function Tooltip(element, config) {
|
function Tooltip(element, config) {
|
||||||
var _this;
|
var _this;
|
||||||
|
|
||||||
if (typeof Popper__default['default'] === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -563,7 +581,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler__default['default'].trigger(this._element, this.constructor.Event.INSERTED);
|
EventHandler__default['default'].trigger(this._element, this.constructor.Event.INSERTED);
|
||||||
this._popper = new Popper__default['default'](this._element, tip, this._getPopperConfig(attachment));
|
this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
|
||||||
tip.classList.add(CLASS_NAME_SHOW);
|
tip.classList.add(CLASS_NAME_SHOW);
|
||||||
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
|
||||||
|
|
||||||
|
|
@ -586,10 +604,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
if (_this2.config.animation) {
|
|
||||||
_this2._fixTransition();
|
|
||||||
}
|
|
||||||
|
|
||||||
var prevHoverState = _this2._hoverState;
|
var prevHoverState = _this2._hoverState;
|
||||||
_this2._hoverState = null;
|
_this2._hoverState = null;
|
||||||
EventHandler__default['default'].trigger(_this2._element, _this2.constructor.Event.SHOWN);
|
EventHandler__default['default'].trigger(_this2._element, _this2.constructor.Event.SHOWN);
|
||||||
|
|
@ -629,7 +643,11 @@
|
||||||
|
|
||||||
EventHandler__default['default'].trigger(_this3._element, _this3.constructor.Event.HIDDEN);
|
EventHandler__default['default'].trigger(_this3._element, _this3.constructor.Event.HIDDEN);
|
||||||
|
|
||||||
_this3._popper.destroy();
|
if (_this3._popper) {
|
||||||
|
_this3._popper.destroy();
|
||||||
|
|
||||||
|
_this3._popper = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var hideEvent = EventHandler__default['default'].trigger(this._element, this.constructor.Event.HIDE);
|
var hideEvent = EventHandler__default['default'].trigger(this._element, this.constructor.Event.HIDE);
|
||||||
|
|
@ -666,7 +684,7 @@
|
||||||
|
|
||||||
_proto.update = function update() {
|
_proto.update = function update() {
|
||||||
if (this._popper !== null) {
|
if (this._popper !== null) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Protected
|
} // Protected
|
||||||
;
|
;
|
||||||
|
|
@ -752,27 +770,41 @@
|
||||||
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
_proto._getPopperConfig = function _getPopperConfig(attachment) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
|
var flipModifier = {
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
altBoundary: true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (this.config.fallbackPlacements) {
|
||||||
|
flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
|
||||||
|
}
|
||||||
|
|
||||||
var defaultBsConfig = {
|
var defaultBsConfig = {
|
||||||
placement: attachment,
|
placement: attachment,
|
||||||
modifiers: {
|
modifiers: [flipModifier, {
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
behavior: this.config.fallbackPlacement
|
rootBoundary: this.config.boundary
|
||||||
},
|
|
||||||
arrow: {
|
|
||||||
element: "." + this.constructor.NAME + "-arrow"
|
|
||||||
},
|
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this.config.boundary
|
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
onCreate: function onCreate(data) {
|
name: 'arrow',
|
||||||
if (data.originalPlacement !== data.placement) {
|
options: {
|
||||||
|
element: "." + this.constructor.NAME + "-arrow"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: 'onChange',
|
||||||
|
enabled: true,
|
||||||
|
phase: 'afterWrite',
|
||||||
|
fn: function fn(data) {
|
||||||
|
return _this4._handlePopperPlacementChange(data);
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
onFirstUpdate: function onFirstUpdate(data) {
|
||||||
|
if (data.options.placement !== data.placement) {
|
||||||
_this4._handlePopperPlacementChange(data);
|
_this4._handlePopperPlacementChange(data);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
onUpdate: function onUpdate(data) {
|
|
||||||
return _this4._handlePopperPlacementChange(data);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
return _extends({}, defaultBsConfig, this.config.popperConfig);
|
||||||
|
|
@ -782,23 +814,6 @@
|
||||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this5 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this.config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _extends({}, data.offsets, _this5.config.offset(data.offsets, _this5._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this.config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getContainer = function _getContainer() {
|
_proto._getContainer = function _getContainer() {
|
||||||
if (this.config.container === false) {
|
if (this.config.container === false) {
|
||||||
return document.body;
|
return document.body;
|
||||||
|
|
@ -816,29 +831,29 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._setListeners = function _setListeners() {
|
_proto._setListeners = function _setListeners() {
|
||||||
var _this6 = this;
|
var _this5 = this;
|
||||||
|
|
||||||
var triggers = this.config.trigger.split(' ');
|
var triggers = this.config.trigger.split(' ');
|
||||||
triggers.forEach(function (trigger) {
|
triggers.forEach(function (trigger) {
|
||||||
if (trigger === 'click') {
|
if (trigger === 'click') {
|
||||||
EventHandler__default['default'].on(_this6._element, _this6.constructor.Event.CLICK, _this6.config.selector, function (event) {
|
EventHandler__default['default'].on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
|
||||||
return _this6.toggle(event);
|
return _this5.toggle(event);
|
||||||
});
|
});
|
||||||
} else if (trigger !== TRIGGER_MANUAL) {
|
} else if (trigger !== TRIGGER_MANUAL) {
|
||||||
var eventIn = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSEENTER : _this6.constructor.Event.FOCUSIN;
|
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
|
||||||
var eventOut = trigger === TRIGGER_HOVER ? _this6.constructor.Event.MOUSELEAVE : _this6.constructor.Event.FOCUSOUT;
|
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
|
||||||
EventHandler__default['default'].on(_this6._element, eventIn, _this6.config.selector, function (event) {
|
EventHandler__default['default'].on(_this5._element, eventIn, _this5.config.selector, function (event) {
|
||||||
return _this6._enter(event);
|
return _this5._enter(event);
|
||||||
});
|
});
|
||||||
EventHandler__default['default'].on(_this6._element, eventOut, _this6.config.selector, function (event) {
|
EventHandler__default['default'].on(_this5._element, eventOut, _this5.config.selector, function (event) {
|
||||||
return _this6._leave(event);
|
return _this5._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._hideModalHandler = function () {
|
this._hideModalHandler = function () {
|
||||||
if (_this6._element) {
|
if (_this5._element) {
|
||||||
_this6.hide();
|
_this5.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1011,26 +1026,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
||||||
this.tip = popperData.instance.popper;
|
var state = popperData.state;
|
||||||
|
|
||||||
this._cleanTipClass();
|
if (!state) {
|
||||||
|
|
||||||
this._addAttachmentClass(this._getAttachment(popperData.placement));
|
|
||||||
};
|
|
||||||
|
|
||||||
_proto._fixTransition = function _fixTransition() {
|
|
||||||
var tip = this.getTipElement();
|
|
||||||
var initConfigAnimation = this.config.animation;
|
|
||||||
|
|
||||||
if (tip.getAttribute('x-placement') !== null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tip.classList.remove(CLASS_NAME_FADE);
|
this.tip = state.elements.popper;
|
||||||
this.config.animation = false;
|
|
||||||
this.hide();
|
this._cleanTipClass();
|
||||||
this.show();
|
|
||||||
this.config.animation = initConfigAnimation;
|
this._addAttachmentClass(this._getAttachment(state.placement));
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/tooltip.js.map
vendored
2
js/dist/tooltip.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): index.esm.js
|
* Bootstrap (v5.0.0-beta1): index.esm.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha3): index.umd.js
|
* Bootstrap (v5.0.0-beta1): index.umd.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue