aboutsummaryrefslogtreecommitdiff
path: root/js/src/base-component.js
AgeCommit message (Collapse)AuthorFilesLines
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-2/+2
2021-06-29Accept argument of different types in the `getInstance` method (#34333)Jeremy Jackson1-1/+1
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-2/+2
* Bump version to v5.0.2. * Dist
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-0/+4
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-03Fix handling of transitionend events dispatched by nested elements(#33845)alpadev1-13/+3
Fix handling of transitionend events dispatched by nested elements Properly handle events from nested elements Change `emulateTransitionEnd` to `executeAfterTransition` &&
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-2/+2
* Bump version to 5.0.1. * Dist
2021-05-13Move get element functionality to a helper (#33327)GeoSot1-1/+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-1/+13
* 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-1/+4
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-0/+17
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR1-2/+2
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-04-11Remove element event listeners through base component (#33429)GeoSot1-0/+2
After some research, I found out that EventHandler saves all the custom events per element using namespace, and is capable of removing handlers using only the element and its namespace (`DATA_KEY`). So, probably is better to utilize the base-component to do the same job.
2021-03-23Release v5.0.0-beta3 (#33439)v5.0.0-beta3XhmikosR1-2/+2
2021-03-02refactor: use a Map instead of an Object in dom/data (#32180)alpadev1-3/+3
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-1/+3
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-10Release v5.0.0-beta2 (#32467)v5.0.0-beta2XhmikosR1-2/+2
* Bump version to 5.0.0-beta2 * Dist
2020-12-07Prepare v5.0.0-beta1.XhmikosR1-2/+2
2020-11-29remove data key in base componentJohann-S1-4/+0
2020-11-29Move `VERSION` to BaseComponent (#32254)Rohit Sharma1-0/+12
2020-11-29add dispose in base componentJohann-S1-0/+5
2020-11-29create a base componentJohann-S1-0/+31