aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
AgeCommit message (Collapse)AuthorFilesLines
2022-02-25src/tooltip.js OptimizationДилян Палаузов1-3/+1
Util.findShadowRoot() returns either null or an object. It cannot return falsy, which allows this optimization.
2022-02-19Make event name helper and use it on tooltip & popover to reduce dist sizes ↵GeoSot1-37/+22
(#35856) * feat: create eventName getter function in baseComponent * refactor: use `eventName` getter on tooltip & popover
2022-01-30More tooltip refactoring (#35546)GeoSot1-15/+25
* Tooltip.js: move `shown` check to method * Tooltip.js: move Popper's creation to method * Tooltip.js: merge checks before `hide` * Tooltip.js: minor refactoring on `toggle` method
2022-01-29Rename variablesXhmikosR1-6/+6
2021-12-21Popover/Tooltip: Fix vertical alignment on arrow of tip elements (#35527)GeoSot1-1/+10
Regression of #32692 Co-authored-by: XhmikosR <[email protected]>
2021-12-15Tooltip: remove extraneous call to _getConfig() (#35540)GeoSot1-2/+1
BaseClass already initializes the config Co-authored-by: XhmikosR <[email protected]>
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot1-8/+11
Co-authored-by: XhmikosR <[email protected]>
2021-12-07Tooltip: remove title attribute before show & add tests (#35456)GeoSot1-3/+11
2021-12-01Tooltip/Popover: add underscore prefix to protected functionsGeoSot1-10/+10
2021-12-01Tooltip: a simple code-block position changeGeoSot1-16/+16
2021-12-01Tooltip: simplify popper checkGeoSot1-1/+1
2021-12-01Tooltip: refactor `_hoverState` to Boolean to achieve better controlGeoSot1-15/+12
2021-12-01Tooltip: merge timeout functionalityGeoSot1-16/+7
2021-12-01Tooltip: Change `_enter` & `_leave` to work without argumentsGeoSot1-46/+40
2021-12-01Tooltip: Remove redundant `config.delay` checkGeoSot1-2/+2
`config.delay` is always an object after initialization
2021-12-01Tooltip: Remove `Data.set` usage for dynamically created tipGeoSot1-2/+0
This is not used any further, so we were just setting it.
2021-12-01Tooltip: merge `isAnimated` checksGeoSot1-5/+7
2021-12-01Tooltip: refactor jQueryInterfaceGeoSot1-5/+7
2021-12-01Fix popover arrow & tooltip template after the `setContent` addition (#35441)GeoSot1-11/+17
2021-12-01Tooltip: remove leftover method (#35440)GeoSot1-12/+0
Remove a leftover after #32692 Co-authored-by: XhmikosR <[email protected]>
2021-11-25Clean tooltip component unneeded functionality (#32692)GeoSot1-56/+7
2021-11-25tooltip.js: use array.includes instead of for iteration (#35127)GeoSot1-7/+1
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot1-82/+47
Co-authored-by: XhmikosR <[email protected]>
2021-10-13JS: minor refactoring (#35183)XhmikosR1-50/+38
* 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-10tooltip.js: ignore a LGTM error (#35147)XhmikosR1-1/+1
The code on this line is either sanitized or the user chose to not sanitize it.
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-10/+12
2021-10-05Release v5.1.2 (#35114)XhmikosR1-1/+1
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR1-1/+1
* Prepare v5.1.1. * Dist
2021-08-31Fix tooltip `data-bs-original-title` issue (#34842)GeoSot1-8/+17
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-08-03Regression on tooltip template creation process. (#34628)GeoSot1-5/+4
* Regression on tooltip template creation process. * check if template content does not exist, or given argument is empty * call `setContent()` once.
2021-07-30tooltip: move repeated strings to constants (#34619)XhmikosR1-2/+5
2021-07-30Enable a few eslint-config-xo rules (#34620)XhmikosR1-2/+2
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-07-22Use on private method to set content & cleanup templateGeoSot1-2/+12
2021-07-22popover: Move common code in tooltip's `getTipElement()`GeoSot1-1/+4
2021-07-22use one private method to resolve string or functionGeoSot1-13/+8
2021-07-22Use `getOrCreateInstance` on `_initializeOnDelegatedTarget`GeoSot1-9/+1
2021-07-22`_getDelegateConfig()`: add a comment and remove an unneeded config checkGeoSot1-5/+6
2021-07-22use a class private getter to decouple same methods usageGeoSot1-3/+7
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-6/+1
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-05-25Change `element.parentNode.removeChild(element)` to `element.remove()` (#34071)GeoSot1-4/+4
2021-05-20Allow use of `dispose/hide` methods on Tooltip & Popover from ↵GeoSot1-4/+0
jQueryInterface, when component does not exists. (#33371)
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-21/+6
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-12Popover/Tooltip: streamline config property to start with underscore (#33381)GeoSot1-37/+37
2021-05-11Extract static `DATA_KEY` & `EVENT_KEY` to base-component (#33635)GeoSot1-9/+1
* 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-7/+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 .