aboutsummaryrefslogtreecommitdiff
path: root/js/src/collapse.js
AgeCommit message (Collapse)AuthorFilesLines
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-3/+3
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot1-1/+1
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR1-1/+1
* Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto <[email protected]>
2022-11-22Merge branch 'main' into prepare-523XhmikosR1-13/+8
2022-11-21Bump version to 5.2.3XhmikosR1-1/+1
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot1-9/+4
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot1-4/+4
2022-10-03Release v5.2.2 (#37236)XhmikosR1-1/+1
* Bump version to v5.2.2 * Dist
2022-09-07Release v5.2.1 (#37098)XhmikosR1-1/+1
* Bump version to v5.2.1. * Dist
2022-07-19Release v5.2.0 (#36768)XhmikosR1-1/+1
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-06-01Re-ordering js default objectslouismaxime.piton1-4/+4
2022-05-13Prepare v5.2.0-beta1Mark Otto1-1/+1
2022-02-07Optimize jQueryInterface in Collapse (#35689)Anton1-5/+5
extracts config initialization from cycle
2022-01-29collapse: merge class togglingGeoSot1-6/+1
2022-01-29Rename variablesXhmikosR1-8/+8
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot1-12/+7
Co-authored-by: XhmikosR <[email protected]>
2021-10-13Change the way collapse handles its children on openingGeoSot1-21/+9
2021-10-13collapse: extract duplicate code to a functionGeoSot1-7/+10
2021-10-13JS: minor refactoring (#35183)XhmikosR1-25/+12
* add missing comments * shorten block comments * reorder constants * reorder public/private methods * sort exports alphabetically in util/index.js * fix a couple of typos
2021-10-09Merge remote-tracking branch 'remotes/origin/v513'XhmikosR1-1/+1
2021-10-09Bump version to 5.1.3.XhmikosR1-1/+1
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR1-14/+16
2021-10-05Enable `unicorn/no-for-loop` ruleXhmikosR1-5/+2
2021-10-05Release v5.1.2 (#35114)XhmikosR1-1/+1
2021-09-15Fix Collapse regression of handling toggling between sibling chilldren (#34951)GeoSot1-2/+3
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR1-1/+1
* Prepare v5.1.1. * Dist
2021-08-30Collapse on toggle, should not hide descendant tabpanels (#34835)GeoSot1-1/+1
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-07-29transfer `interface` inside `jQueryInterface`GeoSot1-18/+14
2021-07-29simplify initialization on `data-toggle` clickGeoSot1-6/+1
2021-07-29keep parent only as elementGeoSot1-15/+13
2021-07-29remove duplicated `Selector.find`GeoSot1-4/+1
2021-07-29Simplify check for childrenGeoSot1-8/+2
2021-07-29initialize variable properlyGeoSot1-16/+10
2021-07-29Refactor internal function to use it in more cases.GeoSot1-25/+13
Also, remove a few redundant checks since we already check for it in `_addAriaAndCollapsedClass()`.
2021-07-29Add a helper function to check for showingGeoSot1-12/+12
Also, remove the `isTransitioning()` helper.
2021-07-29Remove redundant check on `data-toggle` click.GeoSot1-12/+2
Previously, it was assumed that the trigger element would have its own separate config than the collapse element itself.
2021-07-29streamline `_getConfig` & interfaceGeoSot1-11/+4
2021-07-05Add horizontal collapse supportMark Otto1-1/+2
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-1/+1
* Bump version to v5.0.2. * Dist
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-3/+3
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-1/+1
* Bump version to 5.0.1. * Dist
2021-05-13Move get element functionality to a helper (#33327)GeoSot1-9/+2
Looking around on js components I found out many checks, different expressed but with same purpose. Some of them are trying to parse string to element, others, jQuery element to js simple nodeElement etc With this Pr, I am trying to give a standard way to parse an element So this pr: * Creates `getElement` helper that tries to parse an argument to element or null * Changes `isElement` to make explicit checks and return Boolean * fixes tests deficiencies
2021-05-11Extract static `DATA_KEY` & `EVENT_KEY` to base-component (#33635)GeoSot1-3/+3
* Force each plugin that extends base-components to implement a static method `NAME()` * Remove redundant `NAME` argument from 'Utils.defineJQueryPlugin' & fix test
2021-05-11Refactor: move disposing properties into the base class (#33740)GeoSot1-8/+0
Moves more functionality to `base-component`, transferring the responsibility of disposal to parent class. Each component, dusting disposal, sets its protected properties to `null`. So the same can be done in one place for all children components .
2021-05-10Merge js-components 'transitionend' listener callbacks into one methodGeoSot1-9/+2
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR1-1/+1
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-03-23Release v5.0.0-beta3 (#33439)v5.0.0-beta3XhmikosR1-1/+1
2021-03-02refactor: use a Map instead of an Object in dom/data (#32180)alpadev1-4/+4
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
2021-02-22Allow constructors to accept a CSS selector (#32245)Rohit Sharma1-3/+3
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>