bootstrap5-toggle 5.0.4 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle)
6
6
  [![Build](https://img.shields.io/github/actions/workflow/status/palcarazm/bootstrap5-toggle/build.yml?branch=v5&logo=npm)](https://github.com/palcarazm/bootstrap5-toggle/actions?query=workflow%3A%22Build+Check%22)
7
7
  [![Test](https://img.shields.io/github/actions/workflow/status/palcarazm/bootstrap5-toggle/cypress.yml?branch=v5&label=tests&logo=cypress)](https://github.com/palcarazm/bootstrap5-toggle/actions?query=workflow%3A%22Cypress+Tests%22)
8
- [![Security](https://img.shields.io/snyk/vulnerabilities/npm/bootstrap5-toggle@5.0.4?logo=snyk)](https://snyk.io/advisor/npm-package/bootstrap5-toggle)
8
+ [![Security](https://img.shields.io/snyk/vulnerabilities/npm/bootstrap5-toggle@5.0.5?logo=snyk)](https://snyk.io/advisor/npm-package/bootstrap5-toggle)
9
9
  [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv5)](https://github.com/palcarazm/bootstrap5-toggle/security/policy)
10
10
  [![Funding](https://img.shields.io/badge/sponsor-30363D?style=flat&logo=GitHub-Sponsors&logoColor=#white)](https://github.com/sponsors/palcarazm)
11
11
  [![Rate this package](https://badges.openbase.com/js/rating/bootstrap5-toggle.svg?token=rNvznTVToo+EmX5g+KTvfYqI9+YTWJeUWTxPj7tLA6o=)](https://openbase.com/js/bootstrap5-toggle?utm_source=embedded&utm_medium=badge&utm_campaign=rating-badge&utm_term=js/bootstrap5-toggle)
@@ -18,19 +18,18 @@
18
18
 
19
19
  #### Library Distributions
20
20
 
21
- | Branch | Bootstrap Support | Last Release |
22
- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23
- | [bootstrap5-toggle v5](https://github.com/palcarazm/bootstrap5-toggle/tree/v5) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v5?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) |
24
- | [bootstrap5-toggle v4](https://github.com/palcarazm/bootstrap5-toggle/tree/v4) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v4?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) |
25
- | [bootstrap5-toggle v3](https://github.com/palcarazm/bootstrap5-toggle/tree/v3) | [![Bootstrap 4](https://img.shields.io/static/v1?label=bootstrap&message=%5E4.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/4.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v3?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) |
21
+ | Version | Bootstrap Support | Last Release | End of Life |
22
+ | :----------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
23
+ | [v5](https://github.com/palcarazm/bootstrap5-toggle/tree/v5) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v5?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) | [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv5)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) |
24
+ | [v4](https://github.com/palcarazm/bootstrap5-toggle/tree/v4) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v4?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) | [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv4)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) |
25
+ | [v3](https://github.com/palcarazm/bootstrap5-toggle/tree/v3) | [![Bootstrap 4](https://img.shields.io/static/v1?label=bootstrap&message=%5E4.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/4.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v3?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) | [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv3)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) |
26
26
 
27
27
  See EOL for each version in [Security Policy Page](https://github.com/palcarazm/bootstrap5-toggle/security/policy).
28
+
28
29
  # Demos
29
30
 
30
31
  **Demos and API Docs:** https://palcarazm.github.io/bootstrap5-toggle/
31
32
 
32
- ![Demo GIF](img/bootstrap5-toggle-demo.gif)
33
-
34
33
  # Related Bootstrap Plugins
35
34
 
36
35
  <div align="center">
@@ -79,18 +78,18 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/
79
78
 
80
79
  ```html
81
80
  <link
82
- href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.4/css/bootstrap5-toggle.min.css"
81
+ href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.5/css/bootstrap5-toggle.min.css"
83
82
  rel="stylesheet" />
84
- <script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.4/js/bootstrap5-toggle.ecmas.min.js"></script>
83
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.5/js/bootstrap5-toggle.ecmas.min.js"></script>
85
84
  ```
86
85
 
87
86
  ### jQuery Interface
88
87
 
89
88
  ```html
90
89
  <link
91
- href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.4/css/bootstrap5-toggle.min.css"
90
+ href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.5/css/bootstrap5-toggle.min.css"
92
91
  rel="stylesheet" />
93
- <script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.4/js/bootstrap5-toggle.jquery.min.js"></script>
92
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.0.5/js/bootstrap5-toggle.jquery.min.js"></script>
94
93
  ```
95
94
 
96
95
  ## Download
@@ -102,13 +101,13 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/
102
101
  [![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle)
103
102
 
104
103
  ```ksh
105
- npm install bootstrap5-toggle@5.0.4
104
+ npm install bootstrap5-toggle@5.0.5
106
105
  ```
107
106
 
108
107
  ## Yarn
109
108
 
110
109
  ```ksh
111
- yarn add bootstrap5-toggle@5.0.4
110
+ yarn add bootstrap5-toggle@5.0.5
112
111
  ```
113
112
 
114
113
  # Usage
@@ -165,8 +164,8 @@ EX: Initialize id `chkToggle` with a single line of JavaScript.
165
164
  | `offstyle` | string | "secondary" | Style of the off toggle. Possible values are: `primary`, `secondary`, `success`, `danger`, `warning`, `info`, `light`, `dark` and with `outline-` prefix |
166
165
  | `onvalue` | string | _null_ | Sets on state value |
167
166
  | `offvalue` | string | _null_ | Sets off state value |
168
- | `ontitle` | string | _null_ | Title of the on toggle |
169
- | `offtitle` | string | _null_ | Title of the off toggle |
167
+ | `ontitle` | string | _null_ | Title of the on toggle |
168
+ | `offtitle` | string | _null_ | Title of the off toggle |
170
169
  | `style` | string | | Appends the value to the class attribute of the toggle. This can be used to apply custom styles. Refer to Custom Styles for reference. |
171
170
  | `width` | integer | _null_ | Sets the width of the toggle. if set to _null_, width will be auto-calculated. |
172
171
  | `height` | integer | _null_ | Sets the height of the toggle. if set to _null_, height will be auto-calculated. |
@@ -18,19 +18,18 @@
18
18
 
19
19
  #### Library Distributions
20
20
 
21
- | Branch | Bootstrap Support | Last Release |
22
- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23
- | [bootstrap5-toggle v5](https://github.com/palcarazm/bootstrap5-toggle/tree/v5) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v5?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) |
24
- | [bootstrap5-toggle v4](https://github.com/palcarazm/bootstrap5-toggle/tree/v4) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v4?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) |
25
- | [bootstrap5-toggle v3](https://github.com/palcarazm/bootstrap5-toggle/tree/v3) | [![Bootstrap 4](https://img.shields.io/static/v1?label=bootstrap&message=%5E4.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/4.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v3?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) |
21
+ | Version | Bootstrap Support | Last Release | End of Life |
22
+ | :----------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
23
+ | [v5](https://github.com/palcarazm/bootstrap5-toggle/tree/v5) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v5?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) | [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv5)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) |
24
+ | [v4](https://github.com/palcarazm/bootstrap5-toggle/tree/v4) | [![Bootstrap 5](https://img.shields.io/static/v1?label=bootstrap&message=%5E5.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/5.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v4?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) | [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv4)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) |
25
+ | [v3](https://github.com/palcarazm/bootstrap5-toggle/tree/v3) | [![Bootstrap 4](https://img.shields.io/static/v1?label=bootstrap&message=%5E4.0.0&color=informational&logo=bootstrap&logoColor=white)](https://getbootstrap.com/docs/4.0) | [![Latest release](https://img.shields.io/github/package-json/v/palcarazm/bootstrap5-toggle/v3?logo=github)](https://github.com/palcarazm/bootstrap5-toggle/releases) | [![EOL](https://img.shields.io/endpoint?url=https%3A%2F%2Fpalcarazm.github.io%2Fbootstrap5-toggle%2Fapi%2Feol%2Fv3)](https://github.com/palcarazm/bootstrap5-toggle/security/policy) |
26
26
 
27
27
  See EOL for each version in [Security Policy Page](https://github.com/palcarazm/bootstrap5-toggle/security/policy).
28
+
28
29
  # Demos
29
30
 
30
31
  **Demos and API Docs:** https://palcarazm.github.io/bootstrap5-toggle/
31
32
 
32
- ![Demo GIF](img/bootstrap5-toggle-demo.gif)
33
-
34
33
  # Related Bootstrap Plugins
35
34
 
36
35
  <div align="center">
@@ -46,8 +45,7 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/
46
45
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
47
46
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
48
47
 
49
- - [Bootstrap 5 Toggle](#bootstrap-5-toggle)
50
- - [Library Distributions](#library-distributions)
48
+ - [Bootstrap 5 Toggle](#bootstrap-5-toggle) - [Library Distributions](#library-distributions)
51
49
  - [Demos](#demos)
52
50
  - [Related Bootstrap Plugins](#related-bootstrap-plugins)
53
51
  - [Installation](#installation)
@@ -169,8 +167,8 @@ EX: Initialize id `chkToggle` with a single line of JavaScript.
169
167
  | `offstyle` | string | "secondary" | Style of the off toggle. Possible values are: `primary`, `secondary`, `success`, `danger`, `warning`, `info`, `light`, `dark` and with `outline-` prefix |
170
168
  | `onvalue` | string | _null_ | Sets on state value |
171
169
  | `offvalue` | string | _null_ | Sets off state value |
172
- | `ontitle` | string | _null_ | Title of the on toggle |
173
- | `offtitle` | string | _null_ | Title of the off toggle |
170
+ | `ontitle` | string | _null_ | Title of the on toggle |
171
+ | `offtitle` | string | _null_ | Title of the off toggle |
174
172
  | `style` | string | | Appends the value to the class attribute of the toggle. This can be used to apply custom styles. Refer to Custom Styles for reference. |
175
173
  | `width` | integer | _null_ | Sets the width of the toggle. if set to _null_, width will be auto-calculated. |
176
174
  | `height` | integer | _null_ | Sets the height of the toggle. if set to _null_, height will be auto-calculated. |
@@ -1,5 +1,5 @@
1
1
  /* Copyright Notice
2
- * bootstrap5-toggle v5.0.4
2
+ * bootstrap5-toggle v5.0.5
3
3
  * https://palcarazm.github.io/bootstrap5-toggle/
4
4
  * @author 2011-2014 Min Hur (https://github.com/minhur)
5
5
  * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
@@ -1,5 +1,5 @@
1
1
  /* Copyright Notice
2
- * bootstrap5-toggle v5.0.4
2
+ * bootstrap5-toggle v5.0.5
3
3
  * https://palcarazm.github.io/bootstrap5-toggle/
4
4
  * @author 2011-2014 Min Hur (https://github.com/minhur)
5
5
  * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
@@ -1,5 +1,5 @@
1
1
  /* Copyright Notice
2
- * bootstrap5-toggle v5.0.4
2
+ * bootstrap5-toggle v5.0.5
3
3
  * https://palcarazm.github.io/bootstrap5-toggle/
4
4
  * @author 2011-2014 Min Hur (https://github.com/minhur)
5
5
  * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
@@ -259,19 +259,28 @@
259
259
  {
260
260
  // A: Set style W/H
261
261
  // NOTE: `offsetWidth` returns *rounded* integer values, so use `getBoundingClientRect` instead.
262
- ecmasToggle.style.width =
263
- (this.options.width ||
262
+ if (this.options.width) {
263
+ ecmasToggle.style.width = `${this.options.width}px`;
264
+ } else {
265
+ ecmasToggle.style["min-width"] = "100px"; // First approach for better calculation
266
+ ecmasToggle.style["min-width"] = `${
264
267
  Math.max(
265
268
  ecmasToggleOn.getBoundingClientRect().width,
266
269
  ecmasToggleOff.getBoundingClientRect().width
267
270
  ) +
268
- ecmasToggleHandle.getBoundingClientRect().width / 2) + "px";
269
- ecmasToggle.style.height =
270
- (this.options.height ||
271
- Math.max(
272
- ecmasToggleOn.getBoundingClientRect().height,
273
- ecmasToggleOff.getBoundingClientRect().height
274
- )) + "px";
271
+ ecmasToggleHandle.getBoundingClientRect().width / 2
272
+ }px`;
273
+ }
274
+
275
+ if (this.options.height) {
276
+ ecmasToggle.style.height = `${this.options.height}px`;
277
+ } else {
278
+ ecmasToggle.style["min-height"] = "36px"; // First approach for better calculation
279
+ ecmasToggle.style["min-height"] = `${Math.max(
280
+ ecmasToggleOn.getBoundingClientRect().height,
281
+ ecmasToggleOff.getBoundingClientRect().height
282
+ )}px`;
283
+ }
275
284
 
276
285
  // B: Apply on/off class
277
286
  ecmasToggleOn.classList.add("toggle-on");
@@ -1,5 +1,5 @@
1
1
  /* Copyright Notice
2
- * bootstrap5-toggle v5.0.4
2
+ * bootstrap5-toggle v5.0.5
3
3
  * https://palcarazm.github.io/bootstrap5-toggle/
4
4
  * @author 2011-2014 Min Hur (https://github.com/minhur)
5
5
  * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
@@ -10,5 +10,5 @@
10
10
  * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE
11
11
  */
12
12
 
13
- "use strict";!function(){class s{constructor(e,t){const i="BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",s="attribute",n="option",l=function(e,t,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${t} ${e} is deprected. Use ${i} instead.`)},o="On",a="primary",h=null,d=null,r="Off",m="secondary",g=null,b=null,c="",u="",f=null,p=null,v=0,A=!1,y=null;t=t||{},this.element=e,this.options={onlabel:this.element.getAttribute("data-onlabel")||t.onlabel||i||o,onstyle:this.element.getAttribute("data-onstyle")||t.onstyle||a,onvalue:this.element.getAttribute("value")||this.element.getAttribute("data-onvalue")||t.onvalue||h,ontitle:this.element.getAttribute("data-ontitle")||t.ontitle||this.element.getAttribute("title")||d,offlabel:this.element.getAttribute("data-offlabel")||t.offlabel||i||r,offstyle:this.element.getAttribute("data-offstyle")||t.offstyle||m,offvalue:this.element.getAttribute("data-offvalue")||t.offvalue||g,offtitle:this.element.getAttribute("data-offtitle")||t.offtitle||this.element.getAttribute("title")||b,size:this.element.getAttribute("data-size")||t.size||c,style:this.element.getAttribute("data-style")||t.style||u,width:this.element.getAttribute("data-width")||t.width||f,height:this.element.getAttribute("data-height")||t.height||p,tabindex:this.element.getAttribute("tabindex")||t.tabindex||v,tristate:this.element.hasAttribute("tristate")||t.tristate||A,name:this.element.getAttribute("name")||t.name||y},this.options.onlabel===i&&(this.element.getAttribute("data-on")?(l(s,"data-on","data-onlabel"),this.options.onlabel=this.element.getAttribute("data-on")):t.on?(l(n,"on","onlabel"),this.options.onlabel=t.on):this.options.onlabel=o),this.options.offlabel===i&&(this.element.getAttribute("data-off")?(l(s,"data-off","data-offlabel"),this.options.offlabel=this.element.getAttribute("data-off")):t.off?(l(n,"off","offlabel"),this.options.offlabel=t.off):this.options.offlabel=r),this.render()}render(){function e(e){var t=window.getComputedStyle(e),e=e.offsetHeight,i=parseFloat(t.borderTopWidth);return e-parseFloat(t.borderBottomWidth)-i-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)}let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var i=document.createElement("span"),s=(i.setAttribute("class","btn btn-"+this.options.onstyle+" "+t),i.innerHTML=this.options.onlabel,this.options.ontitle&&i.setAttribute("title",this.options.ontitle),document.createElement("span")),n=(s.setAttribute("class","btn btn-"+this.options.offstyle+" "+t),s.innerHTML=this.options.offlabel,this.options.offtitle&&s.setAttribute("title",this.options.offtitle),document.createElement("span")),l=(n.setAttribute("class","toggle-handle btn "+t),document.createElement("div"));l.setAttribute("class","toggle-group"),l.appendChild(i),l.appendChild(s),l.appendChild(n);let o=document.createElement("div"),a=(o.setAttribute("class","toggle btn"),o.classList.add(this.element.checked?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle),o.setAttribute("tabindex",this.options.tabindex),this.element.checked||o.classList.add("off"),this.options.size&&o.classList.add(t),this.options.style&&this.options.style.split(" ").forEach(e=>{o.classList.add(e)}),(this.element.disabled||this.element.readOnly)&&(o.classList.add("disabled"),o.setAttribute("disabled","disabled")),this.options.onvalue&&this.element.setAttribute("value",this.options.onvalue),null);this.options.offvalue&&((a=this.element.cloneNode()).setAttribute("value",this.options.offvalue),a.setAttribute("data-toggle","invert-toggle"),a.removeAttribute("id"),a.checked=!this.element.checked),this.element.parentElement.insertBefore(o,this.element),o.appendChild(this.element),a&&o.appendChild(a),o.appendChild(l),o.style.width=(this.options.width||Math.max(i.getBoundingClientRect().width,s.getBoundingClientRect().width)+n.getBoundingClientRect().width/2)+"px",o.style.height=(this.options.height||Math.max(i.getBoundingClientRect().height,s.getBoundingClientRect().height))+"px",i.classList.add("toggle-on"),s.classList.add("toggle-off"),this.options.height&&(i.style.lineHeight=e(i)+"px",s.style.lineHeight=e(s)+"px"),o.addEventListener("touchstart",e=>{this.#toggleActionPerformed(e)}),o.addEventListener("click",e=>{this.#toggleActionPerformed(e)}),o.addEventListener("keypress",e=>{" "==e.key&&this.#toggleActionPerformed(e)}),this.element.id&&document.querySelectorAll('label[for="'+this.element.id+'"]').forEach(e=>{e.addEventListener("touchstart",e=>{this.toggle(),o.focus()}),e.addEventListener("click",e=>{this.toggle(),o.focus()})}),this.ecmasToggle=o,this.invElement=a,this.element.bsToggle=this}#toggleActionPerformed(e){this.options.tristate?this.ecmasToggle.classList.contains("indeterminate")?(this.determinate(!0),this.toggle()):this.indeterminate():this.toggle(),e.preventDefault()}toggle(e=!1){this.element.checked?this.off(e):this.on(e)}on(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("btn-"+this.options.onstyle),this.ecmasToggle.classList.remove("off"),this.element.checked=!0,this.invElement&&(this.invElement.checked=!1),e||this.trigger()}off(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.onstyle),this.ecmasToggle.classList.add("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("off"),this.element.checked=!1,this.invElement&&(this.invElement.checked=!0),e||this.trigger()}indeterminate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.add("indeterminate"),this.element.indeterminate=!0,this.element.removeAttribute("name"),this.invElement&&(this.invElement.indeterminate=!0),this.invElement&&this.invElement.removeAttribute("name"),e||this.trigger()}determinate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("indeterminate"),this.element.indeterminate=!1,this.options.name&&this.element.setAttribute("name",this.options.name),this.invElement&&(this.invElement.indeterminate=!1),this.invElement&&this.options.name&&this.invElement.setAttribute("name",this.options.name),e||this.trigger()}enable(){this.ecmasToggle.classList.remove("disabled"),this.ecmasToggle.removeAttribute("disabled"),this.element.removeAttribute("disabled"),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.removeAttribute("readonly"))}disable(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.setAttribute("disabled",""),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.setAttribute("disabled",""),this.invElement.removeAttribute("readonly"))}readonly(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.removeAttribute("disabled"),this.element.setAttribute("readonly",""),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.setAttribute("readonly",""))}update(e){this.element.disabled?this.disable():this.element.readOnly?this.readonly():this.enable(),this.element.checked?this.on(e):this.off(e)}trigger(e){e||this.element.dispatchEvent(new Event("change",{bubbles:!0}))}destroy(){this.ecmasToggle.parentNode.insertBefore(this.element,this.ecmasToggle),this.ecmasToggle.parentNode.removeChild(this.ecmasToggle),delete this.element.bsToggle,delete this.ecmasToggle}}Element.prototype.bootstrapToggle=function(e,t){var i=this.bsToggle||new s(this,e);e&&"string"==typeof e&&("toggle"==e.toLowerCase()?i.toggle(t):"on"==e.toLowerCase()?i.on(t):"off"==e.toLowerCase()?i.off(t):"indeterminate"==e.toLowerCase()?i.indeterminate(t):"determinate"==e.toLowerCase()?i.determinate(t):"enable"==e.toLowerCase()?i.enable():"disable"==e.toLowerCase()?i.disable():"readonly"==e.toLowerCase()?i.readonly():"destroy"==e.toLowerCase()&&i.destroy())},"undefined"!=typeof window&&(window.onload=function(){document.querySelectorAll('input[type=checkbox][data-toggle="toggle"]').forEach(function(e){e.bootstrapToggle()})}),"undefined"!=typeof module&&module.exports&&(module.exports=s)}();
13
+ "use strict";!function(){class s{constructor(e,t){const i="BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",s="attribute",n="option",l=function(e,t,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${t} ${e} is deprected. Use ${i} instead.`)},o="On",a="primary",h=null,d=null,r="Off",m="secondary",g=null,b=null,c="",u="",f=null,p=null,v=0,A=!1,y=null;t=t||{},this.element=e,this.options={onlabel:this.element.getAttribute("data-onlabel")||t.onlabel||i||o,onstyle:this.element.getAttribute("data-onstyle")||t.onstyle||a,onvalue:this.element.getAttribute("value")||this.element.getAttribute("data-onvalue")||t.onvalue||h,ontitle:this.element.getAttribute("data-ontitle")||t.ontitle||this.element.getAttribute("title")||d,offlabel:this.element.getAttribute("data-offlabel")||t.offlabel||i||r,offstyle:this.element.getAttribute("data-offstyle")||t.offstyle||m,offvalue:this.element.getAttribute("data-offvalue")||t.offvalue||g,offtitle:this.element.getAttribute("data-offtitle")||t.offtitle||this.element.getAttribute("title")||b,size:this.element.getAttribute("data-size")||t.size||c,style:this.element.getAttribute("data-style")||t.style||u,width:this.element.getAttribute("data-width")||t.width||f,height:this.element.getAttribute("data-height")||t.height||p,tabindex:this.element.getAttribute("tabindex")||t.tabindex||v,tristate:this.element.hasAttribute("tristate")||t.tristate||A,name:this.element.getAttribute("name")||t.name||y},this.options.onlabel===i&&(this.element.getAttribute("data-on")?(l(s,"data-on","data-onlabel"),this.options.onlabel=this.element.getAttribute("data-on")):t.on?(l(n,"on","onlabel"),this.options.onlabel=t.on):this.options.onlabel=o),this.options.offlabel===i&&(this.element.getAttribute("data-off")?(l(s,"data-off","data-offlabel"),this.options.offlabel=this.element.getAttribute("data-off")):t.off?(l(n,"off","offlabel"),this.options.offlabel=t.off):this.options.offlabel=r),this.render()}render(){function e(e){var t=window.getComputedStyle(e),e=e.offsetHeight,i=parseFloat(t.borderTopWidth);return e-parseFloat(t.borderBottomWidth)-i-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)}let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var i=document.createElement("span"),s=(i.setAttribute("class","btn btn-"+this.options.onstyle+" "+t),i.innerHTML=this.options.onlabel,this.options.ontitle&&i.setAttribute("title",this.options.ontitle),document.createElement("span")),n=(s.setAttribute("class","btn btn-"+this.options.offstyle+" "+t),s.innerHTML=this.options.offlabel,this.options.offtitle&&s.setAttribute("title",this.options.offtitle),document.createElement("span")),l=(n.setAttribute("class","toggle-handle btn "+t),document.createElement("div"));l.setAttribute("class","toggle-group"),l.appendChild(i),l.appendChild(s),l.appendChild(n);let o=document.createElement("div"),a=(o.setAttribute("class","toggle btn"),o.classList.add(this.element.checked?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle),o.setAttribute("tabindex",this.options.tabindex),this.element.checked||o.classList.add("off"),this.options.size&&o.classList.add(t),this.options.style&&this.options.style.split(" ").forEach(e=>{o.classList.add(e)}),(this.element.disabled||this.element.readOnly)&&(o.classList.add("disabled"),o.setAttribute("disabled","disabled")),this.options.onvalue&&this.element.setAttribute("value",this.options.onvalue),null);this.options.offvalue&&((a=this.element.cloneNode()).setAttribute("value",this.options.offvalue),a.setAttribute("data-toggle","invert-toggle"),a.removeAttribute("id"),a.checked=!this.element.checked),this.element.parentElement.insertBefore(o,this.element),o.appendChild(this.element),a&&o.appendChild(a),o.appendChild(l),this.options.width?o.style.width=this.options.width+"px":(o.style["min-width"]="100px",o.style["min-width"]=Math.max(i.getBoundingClientRect().width,s.getBoundingClientRect().width)+n.getBoundingClientRect().width/2+"px"),this.options.height?o.style.height=this.options.height+"px":(o.style["min-height"]="36px",o.style["min-height"]=Math.max(i.getBoundingClientRect().height,s.getBoundingClientRect().height)+"px"),i.classList.add("toggle-on"),s.classList.add("toggle-off"),this.options.height&&(i.style.lineHeight=e(i)+"px",s.style.lineHeight=e(s)+"px"),o.addEventListener("touchstart",e=>{this.#toggleActionPerformed(e)}),o.addEventListener("click",e=>{this.#toggleActionPerformed(e)}),o.addEventListener("keypress",e=>{" "==e.key&&this.#toggleActionPerformed(e)}),this.element.id&&document.querySelectorAll('label[for="'+this.element.id+'"]').forEach(e=>{e.addEventListener("touchstart",e=>{this.toggle(),o.focus()}),e.addEventListener("click",e=>{this.toggle(),o.focus()})}),this.ecmasToggle=o,this.invElement=a,this.element.bsToggle=this}#toggleActionPerformed(e){this.options.tristate?this.ecmasToggle.classList.contains("indeterminate")?(this.determinate(!0),this.toggle()):this.indeterminate():this.toggle(),e.preventDefault()}toggle(e=!1){this.element.checked?this.off(e):this.on(e)}on(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("btn-"+this.options.onstyle),this.ecmasToggle.classList.remove("off"),this.element.checked=!0,this.invElement&&(this.invElement.checked=!1),e||this.trigger()}off(e=!1){if(this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("btn-"+this.options.onstyle),this.ecmasToggle.classList.add("btn-"+this.options.offstyle),this.ecmasToggle.classList.add("off"),this.element.checked=!1,this.invElement&&(this.invElement.checked=!0),e||this.trigger()}indeterminate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.add("indeterminate"),this.element.indeterminate=!0,this.element.removeAttribute("name"),this.invElement&&(this.invElement.indeterminate=!0),this.invElement&&this.invElement.removeAttribute("name"),e||this.trigger()}determinate(e=!1){if(!this.options.tristate||this.element.disabled||this.element.readOnly)return!1;this.ecmasToggle.classList.remove("indeterminate"),this.element.indeterminate=!1,this.options.name&&this.element.setAttribute("name",this.options.name),this.invElement&&(this.invElement.indeterminate=!1),this.invElement&&this.options.name&&this.invElement.setAttribute("name",this.options.name),e||this.trigger()}enable(){this.ecmasToggle.classList.remove("disabled"),this.ecmasToggle.removeAttribute("disabled"),this.element.removeAttribute("disabled"),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.removeAttribute("readonly"))}disable(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.setAttribute("disabled",""),this.element.removeAttribute("readonly"),this.invElement&&(this.invElement.setAttribute("disabled",""),this.invElement.removeAttribute("readonly"))}readonly(){this.ecmasToggle.classList.add("disabled"),this.ecmasToggle.setAttribute("disabled",""),this.element.removeAttribute("disabled"),this.element.setAttribute("readonly",""),this.invElement&&(this.invElement.removeAttribute("disabled"),this.invElement.setAttribute("readonly",""))}update(e){this.element.disabled?this.disable():this.element.readOnly?this.readonly():this.enable(),this.element.checked?this.on(e):this.off(e)}trigger(e){e||this.element.dispatchEvent(new Event("change",{bubbles:!0}))}destroy(){this.ecmasToggle.parentNode.insertBefore(this.element,this.ecmasToggle),this.ecmasToggle.parentNode.removeChild(this.ecmasToggle),delete this.element.bsToggle,delete this.ecmasToggle}}Element.prototype.bootstrapToggle=function(e,t){var i=this.bsToggle||new s(this,e);e&&"string"==typeof e&&("toggle"==e.toLowerCase()?i.toggle(t):"on"==e.toLowerCase()?i.on(t):"off"==e.toLowerCase()?i.off(t):"indeterminate"==e.toLowerCase()?i.indeterminate(t):"determinate"==e.toLowerCase()?i.determinate(t):"enable"==e.toLowerCase()?i.enable():"disable"==e.toLowerCase()?i.disable():"readonly"==e.toLowerCase()?i.readonly():"destroy"==e.toLowerCase()&&i.destroy())},"undefined"!=typeof window&&(window.onload=function(){document.querySelectorAll('input[type=checkbox][data-toggle="toggle"]').forEach(function(e){e.bootstrapToggle()})}),"undefined"!=typeof module&&module.exports&&(module.exports=s)}();
14
14
  //# sourceMappingURL=bootstrap5-toggle.ecmas.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap5-toggle.ecmas.min.js","sources":["bootstrap5-toggle.ecmas.js"],"names":["Toggle","constructor","element","options","DEPRECATION","type","oldlabel","newlabel","console","warn","DEFAULTS","this","onlabel","getAttribute","onstyle","onvalue","ontitle","offlabel","offstyle","offvalue","offtitle","size","style","width","height","tabindex","tristate","hasAttribute","name","on","off","render","calcH","el","styles","window","getComputedStyle","offsetHeight","borderTopWidth","parseFloat","borderBottomWidth","paddingTop","paddingBottom","let","ecmasToggleOn","document","createElement","ecmasToggleOff","setAttribute","innerHTML","ecmasToggleHandle","ecmasToggleGroup","appendChild","ecmasToggle","invElement","classList","add","checked","split","forEach","disabled","readOnly","cloneNode","removeAttribute","parentElement","insertBefore","Math","max","getBoundingClientRect","lineHeight","addEventListener","#toggleActionPerformed","e","key","id","querySelectorAll","label","toggle","focus","bsToggle","contains","determinate","indeterminate","preventDefault","silent","remove","trigger","enable","disable","readonly","update","dispatchEvent","Event","bubbles","destroy","parentNode","removeChild","Element","prototype","bootstrapToggle","_bsToggle","toLowerCase","onload","ele","module","exports"],"mappings":"AAaA,aAEA,CAAA,iBAIQA,EACJC,YAAYC,EAASC,GACnB,MAAMC,EAEF,4GAFEA,EAGO,YAHPA,EAII,SAJJA,EAKC,SAAUC,EAAMC,EAAUC,GAC7BC,QAAQC,oDACyCH,KAAYD,uBAA0BE,YACvF,CACF,EAEIG,EACK,KADLA,EAEK,UAFLA,EAGK,KAHLA,EAIK,KAJLA,EAKM,MALNA,EAMM,YANNA,EAOM,KAPNA,EAQM,KARNA,EASE,GATFA,EAUG,GAVHA,EAWG,KAXHA,EAYI,KAZJA,EAaM,EAbN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YAAY,EAAWD,EAAUvE,GAAGuD,CAAM,EACzB,OAAzBjF,EAAQkG,YAAY,EAAYD,EAAUtE,IAAIsD,CAAM,EAC3B,iBAAzBjF,EAAQkG,YAAY,EAC3BD,EAAUlB,cAAcE,CAAM,EACE,eAAzBjF,EAAQkG,YAAY,EAC3BD,EAAUnB,YAAYG,CAAM,EACI,UAAzBjF,EAAQkG,YAAY,EAAeD,EAAUb,OAAO,EAC3B,WAAzBpF,EAAQkG,YAAY,EAAgBD,EAAUZ,QAAQ,EAC7B,YAAzBrF,EAAQkG,YAAY,EAAiBD,EAAUX,SAAS,EAC/B,WAAzBtF,EAAQkG,YAAY,GAAgBD,EAAUN,QAAQ,EAEnE,EAMsB,aAAlB,OAAO3D,SACTA,OAAOmE,OAAS,WACdzD,SACG8B,iBAAiB,4CAA4C,EAC7DhB,QAAQ,SAAU4C,GACjBA,EAAIJ,gBAAgB,CACtB,CAAC,CACL,GAGoB,aAAlB,OAAOK,QAA0BA,OAAOC,UAC1CD,OAAOC,QAAUzG,EAEpB,EAAE"}
1
+ {"version":3,"file":"bootstrap5-toggle.ecmas.min.js","sources":["bootstrap5-toggle.ecmas.js"],"names":["Toggle","constructor","element","options","DEPRECATION","type","oldlabel","newlabel","console","warn","DEFAULTS","this","onlabel","getAttribute","onstyle","onvalue","ontitle","offlabel","offstyle","offvalue","offtitle","size","style","width","height","tabindex","tristate","hasAttribute","name","on","off","render","calcH","el","styles","window","getComputedStyle","offsetHeight","borderTopWidth","parseFloat","borderBottomWidth","paddingTop","paddingBottom","let","ecmasToggleOn","document","createElement","ecmasToggleOff","setAttribute","innerHTML","ecmasToggleHandle","ecmasToggleGroup","appendChild","ecmasToggle","invElement","classList","add","checked","split","forEach","disabled","readOnly","cloneNode","removeAttribute","parentElement","insertBefore","Math","max","getBoundingClientRect","lineHeight","addEventListener","#toggleActionPerformed","e","key","id","querySelectorAll","label","toggle","focus","bsToggle","contains","determinate","indeterminate","preventDefault","silent","remove","trigger","enable","disable","readonly","update","dispatchEvent","Event","bubbles","destroy","parentNode","removeChild","Element","prototype","bootstrapToggle","_bsToggle","toLowerCase","onload","ele","module","exports"],"mappings":"AAaA,aAEA,CAAA,iBAIQA,EACJC,YAAYC,EAASC,GACnB,MAAMC,EAEF,4GAFEA,EAGO,YAHPA,EAII,SAJJA,EAKC,SAAUC,EAAMC,EAAUC,GAC7BC,QAAQC,oDACyCH,KAAYD,uBAA0BE,YACvF,CACF,EAEIG,EACK,KADLA,EAEK,UAFLA,EAGK,KAHLA,EAIK,KAJLA,EAKM,MALNA,EAMM,YANNA,EAOM,KAPNA,EAQM,KARNA,EASE,GATFA,EAUG,GAVHA,EAWG,KAXHA,EAYI,KAZJA,EAaM,EAbNA,EAcM,CAAA,EAdNA,EAeE,KAERP,EAAUA,GAAW,GAGrBQ,KAAKT,QAAUA,EAGfS,KAAKR,QAAU,CACbS,QACED,KAAKT,QAAQW,aAAa,cAAc,GACxCV,EAAQS,SACRR,GACAM,EACFI,QACEH,KAAKT,QAAQW,aAAa,cAAc,GACxCV,EAAQW,SACRJ,EACFK,QACEJ,KAAKT,QAAQW,aAAa,OAAO,GACjCF,KAAKT,QAAQW,aAAa,cAAc,GACxCV,EAAQY,SACRL,EACFM,QACEL,KAAKT,QAAQW,aAAa,cAAc,GACxCV,EAAQa,SACRL,KAAKT,QAAQW,aAAa,OAAO,GACjCH,EACFO,SACEN,KAAKT,QAAQW,aAAa,eAAe,GACzCV,EAAQc,UACRb,GACAM,EACFQ,SACEP,KAAKT,QAAQW,aAAa,eAAe,GACzCV,EAAQe,UACRR,EACFS,SACER,KAAKT,QAAQW,aAAa,eAAe,GACzCV,EAAQgB,UACRT,EACFU,SACET,KAAKT,QAAQW,aAAa,eAAe,GACzCV,EAAQiB,UACRT,KAAKT,QAAQW,aAAa,OAAO,GACjCH,EACFW,KACEV,KAAKT,QAAQW,aAAa,WAAW,GACrCV,EAAQkB,MACRX,EACFY,MACEX,KAAKT,QAAQW,aAAa,YAAY,GACtCV,EA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AOC,UAC1CD,OAAOC,QAAUzG,EAEpB,EAAE"}
@@ -1,5 +1,5 @@
1
1
  /* Copyright Notice
2
- * bootstrap5-toggle v5.0.4
2
+ * bootstrap5-toggle v5.0.5
3
3
  * https://palcarazm.github.io/bootstrap5-toggle/
4
4
  * @author 2011-2014 Min Hur (https://github.com/minhur)
5
5
  * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
@@ -214,14 +214,28 @@
214
214
  // 8: Set button W/H, lineHeight
215
215
  {
216
216
  // A: Set style W/H
217
- let width =
218
- this.options.width ||
219
- Math.max($toggleOn.outerWidth(), $toggleOff.outerWidth()) +
220
- $toggleHandle.outerWidth() / 2;
221
- let height =
222
- this.options.height ||
223
- Math.max($toggleOn.outerHeight(), $toggleOff.outerHeight());
224
- this.$toggle.css({ width: width, height: height });
217
+ if (this.options.width) {
218
+ this.$toggle.css("width", this.options.width);
219
+ } else {
220
+ this.$toggle.css("min-width", "100px"); // First approach for better calculation
221
+ this.$toggle.css(
222
+ "min-width",
223
+ `${
224
+ Math.max($toggleOn.outerWidth(), $toggleOff.outerWidth()) +
225
+ $toggleHandle.outerWidth() / 2
226
+ }px`
227
+ );
228
+ }
229
+
230
+ if (this.options.height) {
231
+ this.$toggle.css("height", this.options.height);
232
+ } else {
233
+ this.$toggle.css("min-height", "36px"); // First approach for better calculation
234
+ this.$toggle.css(
235
+ "min-height",
236
+ `${Math.max($toggleOn.outerHeight(), $toggleOff.outerHeight())}px`
237
+ );
238
+ }
225
239
 
226
240
  // B: Apply on/off class
227
241
  $toggleOn.addClass("toggle-on");
@@ -1,5 +1,5 @@
1
1
  /* Copyright Notice
2
- * bootstrap5-toggle v5.0.4
2
+ * bootstrap5-toggle v5.0.5
3
3
  * https://palcarazm.github.io/bootstrap5-toggle/
4
4
  * @author 2011-2014 Min Hur (https://github.com/minhur)
5
5
  * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
@@ -10,5 +10,5 @@
10
10
  * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE
11
11
  */
12
12
 
13
- !function(a){"use strict";function s(t,e){this.$element=a(t),this.options=a.extend({},this.defaults(),e),this.options.onlabel===s.DEPRECATION.value&&(this.$element.attr("data-on")?(s.DEPRECATION.log(s.DEPRECATION.ATTRIBUTE,"data-on","data-onlabel"),this.options.onlabel=this.$element.attr("data-on")):e.on?(s.DEPRECATION.log(s.DEPRECATION.OPTION,"on","onlabel"),this.options.onlabel=e.on):this.options.onlabel=s.DEFAULTS.onlabel),this.options.offlabel===s.DEPRECATION.value&&(this.$element.attr("data-off")?(s.DEPRECATION.log(s.DEPRECATION.ATTRIBUTE,"data-off","data-offlabel"),this.options.offlabel=this.$element.attr("data-off")):e.off?(s.DEPRECATION.log(s.DEPRECATION.OPTION,"off","offlabel"),this.options.offlabel=e.off):this.options.offlabel=s.DEFAULTS.offlabel),this.render()}function h(t,e){e.options.tristate?e.$toggle.hasClass("indeterminate")?(e.determinate(!0),e.toggle()):e.indeterminate():e.toggle(),t.preventDefault()}s.DEPRECATION={value:"BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",ATTRIBUTE:"attribute",OPTION:"option",log:function(t,e,o){console.warn(`Bootstrap Toggle deprecation warning: Using ${e} ${t} is deprected. Use ${o} instead.`)}},s.DEFAULTS={onlabel:"On",offlabel:"Off",onstyle:"primary",offstyle:"secondary",onvalue:null,offvalue:null,ontitle:null,offtitle:null,size:"normal",style:"",width:null,height:null,tabindex:0,tristate:!1,name:null},s.prototype.defaults=function(){return{onlabel:this.$element.attr("data-onlabel")||s.DEPRECATION.value||s.DEFAULTS.onlabel,offlabel:this.$element.attr("data-offlabel")||s.DEPRECATION.value||s.DEFAULTS.offlabel,onstyle:this.$element.attr("data-onstyle")||s.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||s.DEFAULTS.offstyle,onvalue:this.$element.attr("value")||this.$element.attr("data-onvalue")||s.DEFAULTS.onvalue,offvalue:this.$element.attr("data-offvalue")||s.DEFAULTS.offvalue,ontitle:this.$element.attr("data-ontitle")||this.$element.attr("title")||s.DEFAULTS.ontitle,offtitle:this.$element.attr("data-offtitle")||this.$element.attr("title")||s.DEFAULTS.offtitle,size:this.$element.attr("data-size")||s.DEFAULTS.size,style:this.$element.attr("data-style")||s.DEFAULTS.style,width:this.$element.attr("data-width")||s.DEFAULTS.width,height:this.$element.attr("data-height")||s.DEFAULTS.height,tabindex:this.$element.attr("tabindex")||s.DEFAULTS.tabindex,tristate:this.$element.is("[tristate]")||s.DEFAULTS.tristate,name:this.$element.attr("name")||s.DEFAULTS.name}},s.prototype.render=function(){let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var e=a('<span class="btn">').html(this.options.onlabel).addClass("btn-"+this.options.onstyle+" "+t),o=(this.options.ontitle&&e.attr("title",this.options.ontitle),a('<span class="btn">').html(this.options.offlabel).addClass("btn-"+this.options.offstyle+" "+t)),i=(this.options.offtitle&&o.attr("title",this.options.offtitle),a('<span class="toggle-handle btn">').addClass(t)),n=a('<div class="toggle-group">').append(e,o,i),s=a('<div class="toggle btn" data-toggle="toggle" role="button">').addClass(this.$element.prop("checked")?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle+" off").addClass(t).addClass(this.options.style).attr("tabindex",this.options.tabindex);(this.$element.prop("disabled")||this.$element.prop("readonly"))&&(s.addClass("disabled"),s.attr("disabled","disabled")),this.options.onvalue&&this.$element.val(this.options.onvalue);let l=null;this.options.offvalue&&((l=this.$element.clone()).val(this.options.offvalue),l.attr("data-toggle","invert-toggle"),l.removeAttr("id"),l.prop("checked",!this.$element.prop("checked"))),this.$element.wrap(s),a.extend(this,{$toggle:this.$element.parent(),$toggleOn:e,$toggleOff:o,$toggleGroup:n,$invElement:l}),this.$toggle.append(l,n);s=this.options.width||Math.max(e.outerWidth(),o.outerWidth())+i.outerWidth()/2,n=this.options.height||Math.max(e.outerHeight(),o.outerHeight());this.$toggle.css({width:s,height:n}),e.addClass("toggle-on"),o.addClass("toggle-off"),this.options.height&&(e.css("line-height",e.height()+"px"),o.css("line-height",o.height()+"px")),this.$toggle.on("touchstart",t=>{h(t,this)}),this.$toggle.on("click",t=>{h(t,this)}),this.$toggle.on("keypress",t=>{" "==t.key&&h(t,this)}),this.$element.prop("id")&&a('label[for="'+this.$element.prop("id")+'"]').on("touchstart click",t=>{this.toggle(),this.$toggle.focus()})},s.prototype.toggle=function(t=!1){this.$element.prop("checked")?this.off(t):this.on(t)},s.prototype.on=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.offstyle+" off").addClass("btn-"+this.options.onstyle),this.$element.prop("checked",!0),this.$invElement&&this.$invElement.prop("checked",!1),t||this.trigger()},s.prototype.off=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.onstyle).addClass("btn-"+this.options.offstyle+" off"),this.$element.prop("checked",!1),this.$invElement&&this.$invElement.prop("checked",!0),t||this.trigger()},s.prototype.indeterminate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.addClass("indeterminate"),this.$element.prop("indeterminate",!0),this.$element.removeAttr("name"),this.$invElement&&this.$invElement.prop("indeterminate",!0),this.$invElement&&this.$invElement.removeAttr("name"),t||this.trigger()},s.prototype.determinate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("indeterminate"),this.$element.prop("indeterminate",!1),this.options.name&&this.$element.attr("name",this.options.name),this.$invElement&&this.$invElement.prop("indeterminate",!1),this.$invElement&&this.options.name&&this.$invElement.attr("name",this.options.name),t||this.trigger()},s.prototype.enable=function(){this.$toggle.removeClass("disabled"),this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!1))},s.prototype.disable=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!0),this.$invElement.prop("readonly",!1))},s.prototype.readonly=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!0),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!0))},s.prototype.update=function(t){this.$element.prop("disabled")?this.disable():this.$element.prop("readonly")?this.readonly():this.enable(),this.$element.prop("checked")?this.on(t):this.off(t)},s.prototype.trigger=function(t){this.$element.off("change.bs.toggle"),t||this.$element.change(),this.$element.on("change.bs.toggle",a.proxy(function(){this.update()},this))},s.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$invElement&&this.$invElement.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};let t=a.fn.bootstrapToggle;a.fn.bootstrapToggle=function(i){let n=Array.prototype.slice.call(arguments,1)[0];return this.each(function(){var t=a(this);let e=t.data("bs.toggle");var o="object"==typeof i&&i;e||(e=new s(this,o),t.data("bs.toggle",e)),"string"==typeof i&&e[i]&&"boolean"==typeof n?e[i](n):"string"==typeof i&&e[i]&&e[i]()})},a.fn.bootstrapToggle.Constructor=s,a.fn.toggle.noConflict=function(){return a.fn.bootstrapToggle=t,this},a(function(){a("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()})}(jQuery);
13
+ !function(a){"use strict";function n(t,e){this.$element=a(t),this.options=a.extend({},this.defaults(),e),this.options.onlabel===n.DEPRECATION.value&&(this.$element.attr("data-on")?(n.DEPRECATION.log(n.DEPRECATION.ATTRIBUTE,"data-on","data-onlabel"),this.options.onlabel=this.$element.attr("data-on")):e.on?(n.DEPRECATION.log(n.DEPRECATION.OPTION,"on","onlabel"),this.options.onlabel=e.on):this.options.onlabel=n.DEFAULTS.onlabel),this.options.offlabel===n.DEPRECATION.value&&(this.$element.attr("data-off")?(n.DEPRECATION.log(n.DEPRECATION.ATTRIBUTE,"data-off","data-offlabel"),this.options.offlabel=this.$element.attr("data-off")):e.off?(n.DEPRECATION.log(n.DEPRECATION.OPTION,"off","offlabel"),this.options.offlabel=e.off):this.options.offlabel=n.DEFAULTS.offlabel),this.render()}function h(t,e){e.options.tristate?e.$toggle.hasClass("indeterminate")?(e.determinate(!0),e.toggle()):e.indeterminate():e.toggle(),t.preventDefault()}n.DEPRECATION={value:"BOOTSTRAP TOGGLE DEPRECATION CHECK -- a0Jhux0QySypjjs4tLtEo8xT2kx0AbYaq9K6mgNjWSs0HF0L8T8J0M0o3Kr7zkm7 --",ATTRIBUTE:"attribute",OPTION:"option",log:function(t,e,i){console.warn(`Bootstrap Toggle deprecation warning: Using ${e} ${t} is deprected. Use ${i} instead.`)}},n.DEFAULTS={onlabel:"On",offlabel:"Off",onstyle:"primary",offstyle:"secondary",onvalue:null,offvalue:null,ontitle:null,offtitle:null,size:"normal",style:"",width:null,height:null,tabindex:0,tristate:!1,name:null},n.prototype.defaults=function(){return{onlabel:this.$element.attr("data-onlabel")||n.DEPRECATION.value||n.DEFAULTS.onlabel,offlabel:this.$element.attr("data-offlabel")||n.DEPRECATION.value||n.DEFAULTS.offlabel,onstyle:this.$element.attr("data-onstyle")||n.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||n.DEFAULTS.offstyle,onvalue:this.$element.attr("value")||this.$element.attr("data-onvalue")||n.DEFAULTS.onvalue,offvalue:this.$element.attr("data-offvalue")||n.DEFAULTS.offvalue,ontitle:this.$element.attr("data-ontitle")||this.$element.attr("title")||n.DEFAULTS.ontitle,offtitle:this.$element.attr("data-offtitle")||this.$element.attr("title")||n.DEFAULTS.offtitle,size:this.$element.attr("data-size")||n.DEFAULTS.size,style:this.$element.attr("data-style")||n.DEFAULTS.style,width:this.$element.attr("data-width")||n.DEFAULTS.width,height:this.$element.attr("data-height")||n.DEFAULTS.height,tabindex:this.$element.attr("tabindex")||n.DEFAULTS.tabindex,tristate:this.$element.is("[tristate]")||n.DEFAULTS.tristate,name:this.$element.attr("name")||n.DEFAULTS.name}},n.prototype.render=function(){let t;switch(this.options.size){case"large":case"lg":t="btn-lg";break;case"small":case"sm":t="btn-sm";break;case"mini":case"xs":t="btn-xs";break;default:t=""}var e=a('<span class="btn">').html(this.options.onlabel).addClass("btn-"+this.options.onstyle+" "+t),i=(this.options.ontitle&&e.attr("title",this.options.ontitle),a('<span class="btn">').html(this.options.offlabel).addClass("btn-"+this.options.offstyle+" "+t)),o=(this.options.offtitle&&i.attr("title",this.options.offtitle),a('<span class="toggle-handle btn">').addClass(t)),s=a('<div class="toggle-group">').append(e,i,o),n=a('<div class="toggle btn" data-toggle="toggle" role="button">').addClass(this.$element.prop("checked")?"btn-"+this.options.onstyle:"btn-"+this.options.offstyle+" off").addClass(t).addClass(this.options.style).attr("tabindex",this.options.tabindex);(this.$element.prop("disabled")||this.$element.prop("readonly"))&&(n.addClass("disabled"),n.attr("disabled","disabled")),this.options.onvalue&&this.$element.val(this.options.onvalue);let l=null;this.options.offvalue&&((l=this.$element.clone()).val(this.options.offvalue),l.attr("data-toggle","invert-toggle"),l.removeAttr("id"),l.prop("checked",!this.$element.prop("checked"))),this.$element.wrap(n),a.extend(this,{$toggle:this.$element.parent(),$toggleOn:e,$toggleOff:i,$toggleGroup:s,$invElement:l}),this.$toggle.append(l,s),this.options.width?this.$toggle.css("width",this.options.width):(this.$toggle.css("min-width","100px"),this.$toggle.css("min-width",Math.max(e.outerWidth(),i.outerWidth())+o.outerWidth()/2+"px")),this.options.height?this.$toggle.css("height",this.options.height):(this.$toggle.css("min-height","36px"),this.$toggle.css("min-height",Math.max(e.outerHeight(),i.outerHeight())+"px")),e.addClass("toggle-on"),i.addClass("toggle-off"),this.options.height&&(e.css("line-height",e.height()+"px"),i.css("line-height",i.height()+"px")),this.$toggle.on("touchstart",t=>{h(t,this)}),this.$toggle.on("click",t=>{h(t,this)}),this.$toggle.on("keypress",t=>{" "==t.key&&h(t,this)}),this.$element.prop("id")&&a('label[for="'+this.$element.prop("id")+'"]').on("touchstart click",t=>{this.toggle(),this.$toggle.focus()})},n.prototype.toggle=function(t=!1){this.$element.prop("checked")?this.off(t):this.on(t)},n.prototype.on=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.offstyle+" off").addClass("btn-"+this.options.onstyle),this.$element.prop("checked",!0),this.$invElement&&this.$invElement.prop("checked",!1),t||this.trigger()},n.prototype.off=function(t=!1){if(this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("btn-"+this.options.onstyle).addClass("btn-"+this.options.offstyle+" off"),this.$element.prop("checked",!1),this.$invElement&&this.$invElement.prop("checked",!0),t||this.trigger()},n.prototype.indeterminate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.addClass("indeterminate"),this.$element.prop("indeterminate",!0),this.$element.removeAttr("name"),this.$invElement&&this.$invElement.prop("indeterminate",!0),this.$invElement&&this.$invElement.removeAttr("name"),t||this.trigger()},n.prototype.determinate=function(t=!1){if(!this.options.tristate||this.$element.prop("disabled")||this.$element.prop("readonly"))return!1;this.$toggle.removeClass("indeterminate"),this.$element.prop("indeterminate",!1),this.options.name&&this.$element.attr("name",this.options.name),this.$invElement&&this.$invElement.prop("indeterminate",!1),this.$invElement&&this.options.name&&this.$invElement.attr("name",this.options.name),t||this.trigger()},n.prototype.enable=function(){this.$toggle.removeClass("disabled"),this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!1))},n.prototype.disable=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0),this.$element.prop("readonly",!1),this.$invElement&&(this.$invElement.prop("disabled",!0),this.$invElement.prop("readonly",!1))},n.prototype.readonly=function(){this.$toggle.addClass("disabled"),this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!1),this.$element.prop("readonly",!0),this.$invElement&&(this.$invElement.prop("disabled",!1),this.$invElement.prop("readonly",!0))},n.prototype.update=function(t){this.$element.prop("disabled")?this.disable():this.$element.prop("readonly")?this.readonly():this.enable(),this.$element.prop("checked")?this.on(t):this.off(t)},n.prototype.trigger=function(t){this.$element.off("change.bs.toggle"),t||this.$element.change(),this.$element.on("change.bs.toggle",a.proxy(function(){this.update()},this))},n.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$invElement&&this.$invElement.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};let t=a.fn.bootstrapToggle;a.fn.bootstrapToggle=function(o){let s=Array.prototype.slice.call(arguments,1)[0];return this.each(function(){var t=a(this);let e=t.data("bs.toggle");var i="object"==typeof o&&o;e||(e=new n(this,i),t.data("bs.toggle",e)),"string"==typeof o&&e[o]&&"boolean"==typeof s?e[o](s):"string"==typeof o&&e[o]&&e[o]()})},a.fn.bootstrapToggle.Constructor=n,a.fn.toggle.noConflict=function(){return a.fn.bootstrapToggle=t,this},a(function(){a("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()})}(jQuery);
14
14
  //# sourceMappingURL=bootstrap5-toggle.jquery.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap5-toggle.jquery.min.js","sources":["bootstrap5-toggle.jquery.js"],"names":["$","Toggle","element","options","this","$element","extend","defaults","onlabel","DEPRECATION","value","attr","log","ATTRIBUTE","on","OPTION","DEFAULTS","offlabel","off","render","toggleActionPerformed","e","target","tristate","$toggle","hasClass","determinate","toggle","indeterminate","preventDefault","type","oldlabel","newlabel","console","warn","onstyle","offstyle","onvalue","offvalue","ontitle","offtitle","size","style","width","height","tabindex","name","prototype","is","let","$toggleOn","html","addClass","$toggleOff","$toggleHandle","$toggleGroup","append","prop","val","$invElement","clone","removeAttr","wrap","parent","Math","max","outerWidth","outerHeight","css","key","focus","silent","removeClass","trigger","enable","disable","readonly","update","change","proxy","destroy","remove","removeData","unwrap","old","fn","bootstrapToggle","option","optArg","Array","slice","call","arguments","each","$this","data","Constructor","noConflict","jQuery"],"mappings":"AAaC,CAAA,SAAWA,GACV,aAKa,SAATC,EAAmBC,EAASC,GAE9BC,KAAKC,SAAWL,EAAEE,CAAO,EAGzBE,KAAKD,QAAUH,EAAEM,OAAO,GAAIF,KAAKG,SAAS,EAAGJ,CAAO,EAGhDC,KAAKD,QAAQK,UAAYP,EAAOQ,YAAYC,QAC1CN,KAAKC,SAASM,KAAK,SAAS,GAC9BV,EAAOQ,YAAYG,IACjBX,EAAOQ,YAAYI,UACnB,UACA,cACF,EACAT,KAAKD,QAAQK,QAAUJ,KAAKC,SAASM,KAAK,SAAS,GAC1CR,EAAQW,IACjBb,EAAOQ,YAAYG,IAAIX,EAAOQ,YAAYM,OAAQ,KAAM,SAAS,EACjEX,KAAKD,QAAQK,QAAUL,EAAQW,IAE/BV,KAAKD,QAAQK,QAAUP,EAAOe,SAASR,SAGvCJ,KAAKD,QAAQc,WAAahB,EAAOQ,YAAYC,QAC3CN,KAAKC,SAASM,KAAK,UAAU,GAC/BV,EAAOQ,YAAYG,IACjBX,EAAOQ,YAAYI,UACnB,WACA,eACF,EACAT,KAAKD,QAAQc,SAAWb,KAAKC,SAASM,KAAK,UAAU,GAC5CR,EAAQe,KACjBjB,EAAOQ,YAAYG,IAAIX,EAAOQ,YAAYM,OAAQ,MAAO,UAAU,EACnEX,KAAKD,QAAQc,SAAWd,EAAQe,KAEhCd,KAAKD,QAAQc,SAAWhB,EAAOe,SAASC,UAK5Cb,KAAKe,OAAO,CACd,CAgNA,SAASC,EAAsBC,EAAGC,GAC5BA,EAAOnB,QAAQoB,SACbD,EAAOE,QAAQC,SAAS,eAAe,GACzCH,EAAOI,YAAY,CAAA,C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"bootstrap5-toggle.jquery.min.js","sources":["bootstrap5-toggle.jquery.js"],"names":["$","Toggle","element","options","this","$element","extend","defaults","onlabel","DEPRECATION","value","attr","log","ATTRIBUTE","on","OPTION","DEFAULTS","offlabel","off","render","toggleActionPerformed","e","target","tristate","$toggle","hasClass","determinate","toggle","indeterminate","preventDefault","type","oldlabel","newlabel","console","warn","onstyle","offstyle","onvalue","offvalue","ontitle","offtitle","size","style","width","height","tabindex","name","prototype","is","let","$toggleOn","html","addClass","$toggleOff","$toggleHandle","$toggleGroup","append","prop","val","$invElement","clone","removeAttr","wrap","parent","css","Math","max","outerWidth","outerHeight","key","focus","silent","removeClass","trigger","enable","disable","readonly","update","change","proxy","destroy","remove","removeData","unwrap","old","fn","bootstrapToggle","option","optArg","Array","slice","call","arguments","each","$this","data","Constructor","noConflict","jQuery"],"mappings":"AAaC,CAAA,SAAWA,GACV,aAKa,SAATC,EAAmBC,EAASC,GAE9BC,KAAKC,SAAWL,EAAEE,CAAO,EAGzBE,KAAKD,QAAUH,EAAEM,OAAO,GAAIF,KAAKG,SAAS,EAAGJ,CAAO,EAGhDC,KAAKD,QAAQK,UAAYP,EAAOQ,YAAYC,QAC1CN,KAAKC,SAASM,KAAK,SAAS,GAC9BV,EAAOQ,YAAYG,IACjBX,EAAOQ,YAAYI,UACnB,UACA,cACF,EACAT,KAAKD,QAAQK,QAAUJ,KAAKC,SAASM,KAAK,SAAS,GAC1CR,EAAQW,IACjBb,EAAOQ,YAAYG,IAAIX,EAAOQ,YAAYM,OAAQ,KAAM,SAAS,EACjEX,KAAKD,QAAQK,QAAUL,EAAQW,IAE/BV,KAAKD,QAAQK,QAAUP,EAAOe,SAASR,SAGvCJ,KAAKD,QAAQc,WAAahB,EAAOQ,YAAYC,QAC3CN,KAAKC,SAASM,KAAK,UAAU,GAC/BV,EAAOQ,YAAYG,IACjBX,EAAOQ,YAAYI,UACnB,WACA,eACF,EACAT,KAAKD,QAAQc,SAAWb,KAAKC,SAASM,KAAK,UA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EAA2B,UAAjB,OAAOoF,GAAsBA,EAEtCQ,IACHA,EAAO,IAAI9F,EAAOG,KAAMD,CAAO,EAC/B2F,EAAMC,KAAK,YAAaA,CAAI,GAGV,UAAlB,OAAOR,GACPQ,EAAKR,IACa,WAAlB,OAAOC,EAEPO,EAAKR,GAAQC,CAAM,EACM,UAAlB,OAAOD,GAAuBQ,EAAKR,IAASQ,EAAKR,GAAQ,CAEpE,CAAC,CACH,EAKAvF,EAAEqF,GAAGC,gBAAgBU,YAAc/F,EAKnCD,EAAEqF,GAAG1D,OAAOsE,WAAa,WAEvB,OADAjG,EAAEqF,GAAGC,gBAAkBF,EAChBhF,IACT,EAMAJ,EAAE,WACAA,EAAE,2CAA2C,EAAEsF,gBAAgB,CACjE,CAAC,CACF,EAAEY,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap5-toggle",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "author": {
5
5
  "name": "Pablo Alcaraz Martínez",
6
6
  "url": "https://github.com/palcarazm/"
@@ -13,6 +13,7 @@
13
13
  "url": "https://github.com/sponsors/palcarazm"
14
14
  },
15
15
  "main": "js/bootstrap5-toggle.ecmas.min.js",
16
+ "style": "css/bootstrap5-toggle.min.css",
16
17
  "files": [
17
18
  "css/*",
18
19
  "js/*"
@@ -47,7 +48,7 @@
47
48
  "cypress": "^12.0.2",
48
49
  "cypress-plugin-tab": "^1.0.5",
49
50
  "doctoc": "^2.2.0",
50
- "dompurify": "^2.4.1",
51
+ "dompurify": "^3.0.0",
51
52
  "grunt": "^1.5.3",
52
53
  "grunt-banner": "^0.6.0",
53
54
  "grunt-contrib-clean": "^2.0.1",
package/CHANGELOG.md DELETED
@@ -1,244 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased](https://github.com/palcarazm/bootstrap5-toggle/tree/v5)
9
-
10
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v5.0.0...v5)
11
- ### Added
12
-
13
- ### Changed
14
-
15
- ### Fixed
16
-
17
- ### Bump
18
-
19
- ## [5.0.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v5.0.0) 2023-01-10
20
-
21
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.6...v5.0.0)
22
- ## [5.0.0-alpha](https://github.com/palcarazm/bootstrap5-toggle/tree/v5.0.0-alpha) 2023-01-01
23
-
24
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.6...v5.0.0-alpha)
25
-
26
- ### Added
27
-
28
- - feat: Click on label switch and focus the toggle element (#97) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/102
29
- - feat: Add title definition support (#98) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/103
30
-
31
- ### Changed
32
-
33
- - feat!: Set ecmas interface as main interface by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/95
34
- - feat!: Change on and off option to onlabel and offlabel (#99) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/100
35
- - feat!: Change toggleOn and toggleOff elements from label to span (#96) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/101
36
-
37
- ### Bump
38
-
39
- - bump: bump jquery from 3.6.2 to 3.6.3
40
- - bump: bump cypress from 12.1.0 to 12.2.0
41
-
42
- ## [4.3.6](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.6) 2022-12-19
43
-
44
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.5...v4.3.6)
45
-
46
- ### Fixed
47
-
48
- - fix: Remove attribute for if there is no ID Fixes #80 (co-authored-by [@DarkNami](https://github.com/DarkNami))
49
-
50
- ### Bump
51
-
52
- - bump: Bump cypress from 11.2.0 to 12.1.0
53
- - bump: Bump jquery from 3.6.1 to 3.6.2
54
-
55
- ## [4.3.5](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.5) 2022-11-23
56
-
57
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.4...v4.3.5)
58
-
59
- ### Bump
60
-
61
- - bump: Bump Bootstrap from 5.2.2 to 5.2.3
62
- - bump: Bump Cypress from 10.3.0 to 11.0.1
63
-
64
- ## [4.3.4](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.4) 2022-10-09
65
-
66
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.3...v4.3.4)
67
-
68
- ### Fixed
69
-
70
- - fix: Handle's background color of outline toggles on hover or focus (#71)
71
-
72
- ## [4.3.3](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.3) 2022-10-07
73
-
74
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.2...v4.3.3)
75
-
76
- ### Changed
77
-
78
- - refactor: More specific CSS selectors
79
- - Update dependencies. Support for Bootstrap v5.2.2
80
-
81
- ## [4.3.2](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.2) 2022-08-08
82
-
83
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.1...v4.3.2)
84
-
85
- ### Fixed
86
-
87
- - fix: Transparent inner border (#55) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/58
88
-
89
- ## [4.3.1](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.1) 2022-07-28
90
-
91
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.0...v4.3.1)
92
-
93
- ### Fixed
94
-
95
- - fix: Toggle stay hover on Bootstrap 5.2.0 (#51) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/52
96
-
97
- ## [4.3.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.0) 2022-07-25
98
-
99
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.2.0...v4.3.0)
100
-
101
- ### Added
102
-
103
- - feat: Distribution of ECMAS lib (#2) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/36
104
- - feat: Support readonly attribute (#35) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/37
105
- - feat: Toggles focusable from the keyboard (#38) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/41
106
- - feat: Switch toggle from keyboard (#39) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/42
107
- - feat: Custom value for on and off state on form submit (#34) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/43
108
- - feat: Tristate toggle (#40) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/47
109
-
110
- ## [4.2.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.2.0) 2022-07-12
111
-
112
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.1.0...v4.2.0)
113
-
114
- ### Added
115
-
116
- - feat: Support toggle silent method by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/30
117
-
118
- ### Changed
119
-
120
- - feat: Remove btn-light from handle by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/21
121
- - feat: Change default btn off class to secondary by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/22
122
-
123
- ### Fixed
124
-
125
- - fix: Handle border color and btn-light border color by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/17
126
- - fix: Render in input-group by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/29
127
-
128
- ## [4.1.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.1.0) 2022-06-30
129
-
130
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.0.0...v4.1.0)
131
-
132
- ### Added
133
-
134
- - feat: support for npm and yarn
135
-
136
- ## [4.0.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.0.0) 2022-06-30
137
-
138
- ### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v3.6.0...v4.0.0)
139
-
140
- ### Added
141
-
142
- - feat: support for Boostrap 5
143
-
144
- ## [3.6.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.6.0) 2019-10-17
145
-
146
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.5.0...v3.6.0)
147
-
148
- ### Added
149
-
150
- - Added option to change toggle without triggering onChange event (silent toggle) [\#7](https://github.com/gitbrent/bootstrap4-toggle/issue/7) ([aswin1980](https://github.com/aswin1980))
151
- - Added accessibility properties to labels [\#11](https://github.com/gitbrent/bootstrap4-toggle/issue/11) ([aproquot](https://github.com/aproquot))
152
-
153
- ### Changed
154
-
155
- - Fixed URLs in js and css file top comment [\#5](https://github.com/gitbrent/bootstrap4-toggle/issue/5) ([wilecoyte78](https://github.com/wilecoyte78))
156
- - Disable style is not working [\#18](https://github.com/gitbrent/bootstrap4-toggle/issue/18) ([rychlym](https://github.com/rychlym))
157
-
158
- ## [3.5.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.5.0) 2019-07-02
159
-
160
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.4.0...v3.5.0)
161
-
162
- ### Added
163
-
164
- - Added ARIA `role="button"` tag to toggle
165
- - Added `cursor: pointer;` style to toggle
166
-
167
- ### Changed
168
-
169
- - Fixed: Touch not working on mobile [\#2](https://github.com/gitbrent/bootstrap4-toggle/issue/2) ([wilecoyte78](https://github.com/wilecoyte78))
170
- - Updated to Bootstrap version 4.3.1
171
- - Updated README with better Yarn instructions
172
-
173
- ## [3.4.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.4.0) 2019-01-03
174
-
175
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.3.0...v3.4.0)
176
-
177
- ### Added
178
-
179
- - Outline button styles are now available
180
-
181
- ### Changed
182
-
183
- - Updated to Bootstrap version 4.2.1
184
-
185
- ## [3.3.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.3.0) 2018-12-19
186
-
187
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.2.0...v3.3.0)
188
-
189
- ### Added
190
-
191
- - New test created to compare core bootstrap sizes to bootstrap4-toggle
192
-
193
- ### Changed
194
-
195
- - Introduced new `size` values that mirror bootstrap 4: (`lg`, `sm`, `xs`)
196
- - Converted all css units from `px` to `rem`
197
- - Properly added border on `light` button (moved from .toggle class)
198
-
199
- ### Removed
200
-
201
- **DEPRECATED** Classic `size` values (`large`, `small`, `mini`)
202
-
203
- ## [3.2.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.2.0) 2018-11-27
204
-
205
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.1.0...v3.2.0)
206
-
207
- ### Added
208
-
209
- ### Changed
210
-
211
- - Removed permanent `active` state from "Off" label so mouse-over highlighting works the same as "On"
212
-
213
- ### Removed
214
-
215
- ## [3.1.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.1.0) 2018-10-25
216
-
217
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.0.0...v3.1.0)
218
-
219
- ### Added
220
-
221
- - `index.html` includes new section with dark mode colors
222
-
223
- ### Changed
224
-
225
- - `index.html` now fully responsive, better menu, rearranged sections
226
- - Tweaked `border` property to work with all backgrounds and colors
227
-
228
- ### Removed
229
-
230
- ## [3.0.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.0.0) 2018-10-21
231
-
232
- ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v2.2.2...v3.0.0)
233
-
234
- ### Added
235
-
236
- - Touch support
237
-
238
- ### Changed
239
-
240
- - Implements Bootstrap 4 colors/styles
241
-
242
- ### Removed
243
-
244
- - Old Bootstrap 2 files