diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 72d5a77..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,244 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased](https://github.com/palcarazm/bootstrap5-toggle/tree/v5) - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v5.0.0...v5) -### Added - -### Changed - -### Fixed - -### Bump - -## [5.0.4](https://github.com/palcarazm/bootstrap5-toggle/tree/v5.0.4) 2023-01-10 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.6...v5.0.4) -## [5.0.0-alpha](https://github.com/palcarazm/bootstrap5-toggle/tree/v5.0.0-alpha) 2023-01-01 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.6...v5.0.0-alpha) - -### Added - -- feat: Click on label switch and focus the toggle element (#97) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/102 -- feat: Add title definition support (#98) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/103 - -### Changed - -- feat!: Set ecmas interface as main interface by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/95 -- feat!: Change on and off option to onlabel and offlabel (#99) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/100 -- feat!: Change toggleOn and toggleOff elements from label to span (#96) by @palcarazm in https://github.com/palcarazm/bootstrap5-toggle/pull/101 - -### Bump - -- bump: bump jquery from 3.6.2 to 3.6.3 -- bump: bump cypress from 12.1.0 to 12.2.0 - -## [4.3.6](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.6) 2022-12-19 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.5...v4.3.6) - -### Fixed - -- fix: Remove attribute for if there is no ID Fixes #80 (co-authored-by [@DarkNami](https://github.com/DarkNami)) - -### Bump - -- bump: Bump cypress from 11.2.0 to 12.1.0 -- bump: Bump jquery from 3.6.1 to 3.6.2 - -## [4.3.5](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.5) 2022-11-23 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.4...v4.3.5) - -### Bump - -- bump: Bump Bootstrap from 5.2.2 to 5.2.3 -- bump: Bump Cypress from 10.3.0 to 11.0.1 - -## [4.3.4](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.4) 2022-10-09 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.3...v4.3.4) - -### Fixed - -- fix: Handle's background color of outline toggles on hover or focus (#71) - -## [4.3.3](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.3) 2022-10-07 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.2...v4.3.3) - -### Changed - -- refactor: More specific CSS selectors -- Update dependencies. Support for Bootstrap v5.2.2 - -## [4.3.2](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.2) 2022-08-08 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.1...v4.3.2) - -### Fixed - -- fix: Transparent inner border (#55) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/58 - -## [4.3.1](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.1) 2022-07-28 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.3.0...v4.3.1) - -### Fixed - -- fix: Toggle stay hover on Bootstrap 5.2.0 (#51) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/52 - -## [4.3.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.3.0) 2022-07-25 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.2.0...v4.3.0) - -### Added - -- feat: Distribution of ECMAS lib (#2) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/36 -- feat: Support readonly attribute (#35) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/37 -- feat: Toggles focusable from the keyboard (#38) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/41 -- feat: Switch toggle from keyboard (#39) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/42 -- feat: Custom value for on and off state on form submit (#34) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/43 -- feat: Tristate toggle (#40) by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/47 - -## [4.2.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.2.0) 2022-07-12 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.1.0...v4.2.0) - -### Added - -- feat: Support toggle silent method by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/30 - -### Changed - -- feat: Remove btn-light from handle by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/21 -- feat: Change default btn off class to secondary by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/22 - -### Fixed - -- fix: Handle border color and btn-light border color by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/17 -- fix: Render in input-group by @palcarazm in https://github.com/palcarazmm/bootstrap5-toggle/pull/29 - -## [4.1.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.1.0) 2022-06-30 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v4.0.0...v4.1.0) - -### Added - -- feat: support for npm and yarn - -## [4.0.0](https://github.com/palcarazm/bootstrap5-toggle/tree/v4.0.0) 2022-06-30 - -### [Full Changelog](https://github.com/palcarazm/bootstrap5-toggle/compare/v3.6.0...v4.0.0) - -### Added - -- feat: support for Boostrap 5 - -## [3.6.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.6.0) 2019-10-17 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.5.0...v3.6.0) - -### Added - -- 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)) -- Added accessibility properties to labels [\#11](https://github.com/gitbrent/bootstrap4-toggle/issue/11) ([aproquot](https://github.com/aproquot)) - -### Changed - -- Fixed URLs in js and css file top comment [\#5](https://github.com/gitbrent/bootstrap4-toggle/issue/5) ([wilecoyte78](https://github.com/wilecoyte78)) -- Disable style is not working [\#18](https://github.com/gitbrent/bootstrap4-toggle/issue/18) ([rychlym](https://github.com/rychlym)) - -## [3.5.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.5.0) 2019-07-02 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.4.0...v3.5.0) - -### Added - -- Added ARIA `role="button"` tag to toggle -- Added `cursor: pointer;` style to toggle - -### Changed - -- Fixed: Touch not working on mobile [\#2](https://github.com/gitbrent/bootstrap4-toggle/issue/2) ([wilecoyte78](https://github.com/wilecoyte78)) -- Updated to Bootstrap version 4.3.1 -- Updated README with better Yarn instructions - -## [3.4.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.4.0) 2019-01-03 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.3.0...v3.4.0) - -### Added - -- Outline button styles are now available - -### Changed - -- Updated to Bootstrap version 4.2.1 - -## [3.3.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.3.0) 2018-12-19 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.2.0...v3.3.0) - -### Added - -- New test created to compare core bootstrap sizes to bootstrap4-toggle - -### Changed - -- Introduced new `size` values that mirror bootstrap 4: (`lg`, `sm`, `xs`) -- Converted all css units from `px` to `rem` -- Properly added border on `light` button (moved from .toggle class) - -### Removed - -**DEPRECATED** Classic `size` values (`large`, `small`, `mini`) - -## [3.2.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.2.0) 2018-11-27 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.1.0...v3.2.0) - -### Added - -### Changed - -- Removed permanent `active` state from "Off" label so mouse-over highlighting works the same as "On" - -### Removed - -## [3.1.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.1.0) 2018-10-25 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.0.0...v3.1.0) - -### Added - -- `index.html` includes new section with dark mode colors - -### Changed - -- `index.html` now fully responsive, better menu, rearranged sections -- Tweaked `border` property to work with all backgrounds and colors - -### Removed - -## [3.0.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.0.0) 2018-10-21 - -### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v2.2.2...v3.0.0) - -### Added - -- Touch support - -### Changed - -- Implements Bootstrap 4 colors/styles - -### Removed - -- Old Bootstrap 2 files diff --git a/README.md b/README.md index aebd527..75633f1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle) [![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) [![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) -[![Security](https://img.shields.io/snyk/vulnerabilities/npm/bootstrap5-toggle@5.0.4?logo=snyk)](https://snyk.io/advisor/npm-package/bootstrap5-toggle) +[![Security](https://img.shields.io/snyk/vulnerabilities/npm/bootstrap5-toggle@5.0.6?logo=snyk)](https://snyk.io/advisor/npm-package/bootstrap5-toggle) [![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) [![Funding](https://img.shields.io/badge/sponsor-30363D?style=flat&logo=GitHub-Sponsors&logoColor=#white)](https://github.com/sponsors/palcarazm) [![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) @@ -45,7 +45,6 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/ - - [Installation](#installation) - [CDN](#cdn) - [ECMAS Interface](#ecmas-interface) @@ -79,18 +78,18 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/ ```html - + ``` ### jQuery Interface ```html - + ``` ## Download @@ -102,13 +101,13 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/ [![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle) ```ksh -npm install bootstrap5-toggle@5.0.4 +npm install bootstrap5-toggle@5.0.6 ``` ## Yarn ```ksh -yarn add bootstrap5-toggle@5.0.4 +yarn add bootstrap5-toggle@5.0.6 ``` # Usage diff --git a/css/bootstrap5-toggle.css b/css/bootstrap5-toggle.css index aa1182f..6bcd1d2 100644 --- a/css/bootstrap5-toggle.css +++ b/css/bootstrap5-toggle.css @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.0.4 + * bootstrap5-toggle v5.0.6 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) diff --git a/css/bootstrap5-toggle.min.css b/css/bootstrap5-toggle.min.css index 2eccdb0..7887261 100644 --- a/css/bootstrap5-toggle.min.css +++ b/css/bootstrap5-toggle.min.css @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.0.4 + * bootstrap5-toggle v5.0.6 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) diff --git a/css/bootstrap5-toggle.min.css.map b/css/bootstrap5-toggle.min.css.map index 1061eb9..60743ef 100644 --- a/css/bootstrap5-toggle.min.css.map +++ b/css/bootstrap5-toggle.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["css\\bootstrap5-toggle.css"],"names":[],"mappings":"AAiBA,mBACA,QACE,QAAS,OAAQ,MAAO,OAAQ,MAChC,UAAW,QACX,YAAa,GACb,cAAe,MAGjB,wBACA,yBACE,YAAa,SACb,aAAc,OAGhB,QACE,SAAU,SACV,SAAU,OAEZ,iCACA,iCACE,MAAO,0BACP,iBAAkB,uBAClB,aAAc,iCAGhB,2CADA,2CAEE,iBAAkB,gBAClB,QAAS,GAEX,6BACE,QAAS,KAEX,sBACE,SAAU,SACV,MAAO,KACP,IAAK,EACL,OAAQ,EACR,KAAM,EACN,WAAY,KAAK,KACjB,mBAAoB,KAAK,KACzB,YAAa,KACb,iBAAkB,KAClB,oBAAqB,KAEvB,2BACE,OAAQ,QAEV,0BACE,KAAM,MAER,oCACE,KAAM,KAER,iCACE,SAAU,SACV,IAAK,EACL,OAAQ,EACR,KAAM,EACN,MAAO,IACP,OAAQ,EACR,OAAQ,EACR,cAAe,EAEjB,kCACE,SAAU,SACV,IAAK,EACL,OAAQ,EACR,KAAM,IACN,MAAO,EACP,OAAQ,EACR,OAAQ,EACR,cAAe,EACf,WAAY,KAEd,qCACE,SAAU,SACV,OAAQ,EAAE,KACV,YAAa,EACb,eAAgB,EAChB,OAAQ,KACR,MAAO,EACP,aAAc,EAAE,IAChB,iBAAkB,gBAClB,aAAc,gBAQhB,+CADA,8CAEE,SAAU,SAGZ,iFAGE,iBAAkB,kBAClB,aAAc,kBAEhB,mFAGE,iBAAkB,oBAClB,aAAc,oBAEhB,iFAGE,iBAAkB,kBAClB,aAAc,kBAEhB,gFAGE,iBAAkB,iBAClB,aAAc,iBAEhB,iFAGE,iBAAkB,kBAClB,aAAc,kBAEhB,8EAGE,iBAAkB,eAClB,aAAc,eAEhB,+EAGE,iBAAkB,gBAClB,aAAc,gBAEhB,8EAGE,iBAAkB,eAClB,aAAc,eAKhB,YACE,UAAW,OACX,WAAY,QAEd,qCACE,cAAe,OAEjB,sCACE,aAAc,OAIhB,eACE,UAAW,KACX,WAAY,SAEd,wCACE,cAAe,KAEjB,yCACE,aAAc,KAEhB,4CACE,MAAO,OAIT,eACE,UAAW,SACX,WAAY,SAEd,wCACE,cAAe,KAEjB,yCACE,aAAc,KAIhB,eACE,UAAW,QACX,WAAY,SAEd,wCACE,cAAe,MAEjB,yCACE,aAAc"} \ No newline at end of file +{"version":3,"sources":["css/bootstrap5-toggle.css"],"names":[],"mappings":"AAiBA,mBACA,QACE,QAAS,OAAQ,MAAO,OAAQ,MAChC,UAAW,QACX,YAAa,GACb,cAAe,MAGjB,wBACA,yBACE,YAAa,SACb,aAAc,OAGhB,QACE,SAAU,SACV,SAAU,OAEZ,iCACA,iCACE,MAAO,0BACP,iBAAkB,uBAClB,aAAc,iCAGhB,2CADA,2CAEE,iBAAkB,gBAClB,QAAS,GAEX,6BACE,QAAS,KAEX,sBACE,SAAU,SACV,MAAO,KACP,IAAK,EACL,OAAQ,EACR,KAAM,EACN,WAAY,KAAK,KACjB,mBAAoB,KAAK,KACzB,YAAa,KACb,iBAAkB,KAClB,oBAAqB,KAEvB,2BACE,OAAQ,QAEV,0BACE,KAAM,MAER,oCACE,KAAM,KAER,iCACE,SAAU,SACV,IAAK,EACL,OAAQ,EACR,KAAM,EACN,MAAO,IACP,OAAQ,EACR,OAAQ,EACR,cAAe,EAEjB,kCACE,SAAU,SACV,IAAK,EACL,OAAQ,EACR,KAAM,IACN,MAAO,EACP,OAAQ,EACR,OAAQ,EACR,cAAe,EACf,WAAY,KAEd,qCACE,SAAU,SACV,OAAQ,EAAE,KACV,YAAa,EACb,eAAgB,EAChB,OAAQ,KACR,MAAO,EACP,aAAc,EAAE,IAChB,iBAAkB,gBAClB,aAAc,gBAQhB,+CADA,8CAEE,SAAU,SAGZ,iFAGE,iBAAkB,kBAClB,aAAc,kBAEhB,mFAGE,iBAAkB,oBAClB,aAAc,oBAEhB,iFAGE,iBAAkB,kBAClB,aAAc,kBAEhB,gFAGE,iBAAkB,iBAClB,aAAc,iBAEhB,iFAGE,iBAAkB,kBAClB,aAAc,kBAEhB,8EAGE,iBAAkB,eAClB,aAAc,eAEhB,+EAGE,iBAAkB,gBAClB,aAAc,gBAEhB,8EAGE,iBAAkB,eAClB,aAAc,eAKhB,YACE,UAAW,OACX,WAAY,QAEd,qCACE,cAAe,OAEjB,sCACE,aAAc,OAIhB,eACE,UAAW,KACX,WAAY,SAEd,wCACE,cAAe,KAEjB,yCACE,aAAc,KAEhB,4CACE,MAAO,OAIT,eACE,UAAW,SACX,WAAY,SAEd,wCACE,cAAe,KAEjB,yCACE,aAAc,KAIhB,eACE,UAAW,QACX,WAAY,SAEd,wCACE,cAAe,MAEjB,yCACE,aAAc"} \ No newline at end of file diff --git a/js/bootstrap5-toggle.ecmas.js b/js/bootstrap5-toggle.ecmas.js index 03b9264..7337535 100644 --- a/js/bootstrap5-toggle.ecmas.js +++ b/js/bootstrap5-toggle.ecmas.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.0.4 + * bootstrap5-toggle v5.0.6 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -259,22 +259,27 @@ { // A: Set style W/H // NOTE: `offsetWidth` returns *rounded* integer values, so use `getBoundingClientRect` instead. - ecmasToggle.style["min-width"] = `${ - Math.max( - ecmasToggleOn.getBoundingClientRect().width, - ecmasToggleOff.getBoundingClientRect().width - ) + - ecmasToggleHandle.getBoundingClientRect().width / 2 - }px`; if (this.options.width) { ecmasToggle.style.width = `${this.options.width}px`; + } else { + ecmasToggle.style["min-width"] = "100px"; // First approach for better calculation + ecmasToggle.style["min-width"] = `${ + Math.max( + ecmasToggleOn.getBoundingClientRect().width, + ecmasToggleOff.getBoundingClientRect().width + ) + + ecmasToggleHandle.getBoundingClientRect().width / 2 + }px`; } - ecmasToggle.style["min-height"] = `${Math.max( - ecmasToggleOn.getBoundingClientRect().height, - ecmasToggleOff.getBoundingClientRect().height - )}px`; + if (this.options.height) { ecmasToggle.style.height = `${this.options.height}px`; + } else { + ecmasToggle.style["min-height"] = "36px"; // First approach for better calculation + ecmasToggle.style["min-height"] = `${Math.max( + ecmasToggleOn.getBoundingClientRect().height, + ecmasToggleOff.getBoundingClientRect().height + )}px`; } // B: Apply on/off class diff --git a/js/bootstrap5-toggle.ecmas.min.js b/js/bootstrap5-toggle.ecmas.min.js index 03afbd5..fbd5944 100644 --- a/js/bootstrap5-toggle.ecmas.min.js +++ b/js/bootstrap5-toggle.ecmas.min.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.0.4 + * bootstrap5-toggle v5.0.6 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -10,5 +10,5 @@ * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE */ -"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["min-width"]=Math.max(i.getBoundingClientRect().width,s.getBoundingClientRect().width)+n.getBoundingClientRect().width/2+"px",this.options.width&&(o.style.width=this.options.width+"px"),o.style["min-height"]=Math.max(i.getBoundingClientRect().height,s.getBoundingClientRect().height)+"px",this.options.height&&(o.style.height=this.options.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)}(); +"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)}(); //# sourceMappingURL=bootstrap5-toggle.ecmas.min.js.map \ No newline at end of file diff --git a/js/bootstrap5-toggle.ecmas.min.js.map b/js/bootstrap5-toggle.ecmas.min.js.map index 88d0566..955b7ed 100644 --- a/js/bootstrap5-toggle.ecmas.min.js.map +++ b/js/bootstrap5-toggle.ecmas.min.js.map @@ -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,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,EAAQmB,OACRZ,EACFa,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.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,QA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AAY,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"} \ No newline at end of file diff --git a/js/bootstrap5-toggle.jquery.js b/js/bootstrap5-toggle.jquery.js index fe261c6..34815bb 100644 --- a/js/bootstrap5-toggle.jquery.js +++ b/js/bootstrap5-toggle.jquery.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.0.4 + * bootstrap5-toggle v5.0.6 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -214,22 +214,27 @@ // 8: Set button W/H, lineHeight { // A: Set style W/H - this.$toggle.css( - "min-width", - `${ - Math.max($toggleOn.outerWidth(), $toggleOff.outerWidth()) + - $toggleHandle.outerWidth() / 2 - }px` - ); - this.$toggle.css( - "min-height", - `${Math.max($toggleOn.outerHeight(), $toggleOff.outerHeight())}px` - ); if (this.options.width) { this.$toggle.css("width", this.options.width); + } else { + this.$toggle.css("min-width", "100px"); // First approach for better calculation + this.$toggle.css( + "min-width", + `${ + Math.max($toggleOn.outerWidth(), $toggleOff.outerWidth()) + + $toggleHandle.outerWidth() / 2 + }px` + ); } + if (this.options.height) { this.$toggle.css("height", this.options.height); + } else { + this.$toggle.css("min-height", "36px"); // First approach for better calculation + this.$toggle.css( + "min-height", + `${Math.max($toggleOn.outerHeight(), $toggleOff.outerHeight())}px` + ); } // B: Apply on/off class diff --git a/js/bootstrap5-toggle.jquery.min.js b/js/bootstrap5-toggle.jquery.min.js index f29ceae..d56f4b1 100644 --- a/js/bootstrap5-toggle.jquery.min.js +++ b/js/bootstrap5-toggle.jquery.min.js @@ -1,5 +1,5 @@ /* Copyright Notice - * bootstrap5-toggle v5.0.4 + * bootstrap5-toggle v5.0.6 * https://palcarazm.github.io/bootstrap5-toggle/ * @author 2011-2014 Min Hur (https://github.com/minhur) * @author 2018-2019 Brent Ely (https://github.com/gitbrent) @@ -10,5 +10,5 @@ * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE */ -!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('').html(this.options.onlabel).addClass("btn-"+this.options.onstyle+" "+t),i=(this.options.ontitle&&e.attr("title",this.options.ontitle),a('').html(this.options.offlabel).addClass("btn-"+this.options.offstyle+" "+t)),o=(this.options.offtitle&&i.attr("title",this.options.offtitle),a('').addClass(t)),s=a('
').append(e,i,o),n=a('
').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.$toggle.css("min-width",Math.max(e.outerWidth(),i.outerWidth())+o.outerWidth()/2+"px"),this.$toggle.css("min-height",Math.max(e.outerHeight(),i.outerHeight())+"px"),this.options.width&&this.$toggle.css("width",this.options.width),this.options.height&&this.$toggle.css("height",this.options.height),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); +!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('').html(this.options.onlabel).addClass("btn-"+this.options.onstyle+" "+t),i=(this.options.ontitle&&e.attr("title",this.options.ontitle),a('').html(this.options.offlabel).addClass("btn-"+this.options.offstyle+" "+t)),o=(this.options.offtitle&&i.attr("title",this.options.offtitle),a('').addClass(t)),s=a('
').append(e,i,o),n=a('
').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); //# sourceMappingURL=bootstrap5-toggle.jquery.min.js.map \ No newline at end of file diff --git a/js/bootstrap5-toggle.jquery.min.js.map b/js/bootstrap5-toggle.jquery.min.js.map index 5a529c4..14eaece 100644 --- a/js/bootstrap5-toggle.jquery.min.js.map +++ b/js/bootstrap5-toggle.jquery.min.js.map @@ -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","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,O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GACdtC,IAAIuC,EAASC,MAAM1C,UAAU2C,MAAMC,KAAKC,UAAW,CAAC,EAAE,GAEtD,OAAOxF,KAAKyF,KAAK,WACf5C,IAAI6C,EAAQ9F,EAAEI,IAAI,EAClB6C,IAAI8C,EAAOD,EAAMC,KAAK,WAAW,EACjC9C,IAAI9C,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"} \ No newline at end of file +{"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","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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/package.json index 7d74df0..e031da6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap5-toggle", - "version": "5.0.4", + "version": "5.0.6", "author": { "name": "Pablo Alcaraz Martínez", "url": "https://github.com/palcarazm/" @@ -13,6 +13,7 @@ "url": "https://github.com/sponsors/palcarazm" }, "main": "js/bootstrap5-toggle.ecmas.min.js", + "style": "css/bootstrap5-toggle.min.css", "files": [ "css/*", "js/*" @@ -20,7 +21,7 @@ "scripts": { "build": "grunt build", "postversion": "grunt build && grunt readme && doctoc README.md --github", - "prepack": "grunt build && grunt readme && doctoc README.md --github && git add -A", + "prepack": "grunt build && grunt readme && doctoc README.md --github && git add -A && git commit", "test": "cypress run --browser=chrome" }, "keywords": [