-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🚩esl-modal]: beta release version of esl-modal module #1969
Draft
NastaLeo
wants to merge
92
commits into
main
Choose a base branch
from
epic/esl-modal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description: Remove the full version of the polyfill for ESL UI site renderer Remove shims and targets =ES5 in the site codebase Remove ES5-related OOTB ESL polyfills except es5-target-shim.ts Drop support for IE11 and ES5 target BREAKING CHANGES: ESL UI site renderer and ESL polyfills no longer support IE11 and ES5 target.
Description: Remove the medium version of the polyfill for ESL UI site renderer Drop support for Edge old versions and ES6 polyfils BREAKING CHANGES: ESL UI site renderer and ESL polyfills no longer support Edge old versions and ES6 polyfils.
refactor: Drop IE11 support
Co-authored-by: ala'n (Alexey Stsefanovich) <astsefanovich@exadel.com> BREAKING CHANGE: `ESLEventUtils.descriptors` alias of `ESLEventUtils.getAutoDescriptors` is no longer supported BREAKING CHANGE: `EventUtils` alias of `ESLEventUtils` is no longer supported BREAKING CHANGE: `esl-media-quey` module no longer supports `addListener` and `removeListener` shorthand BREAKING CHANGE: `SynteticEventTarget` no longer supports `addListener` and `removeListener` shorthand BREAKING CHANGE: 'fallback-duration' is no longer in the JSX shape of ESLPanel and ESLPanelGroup BREAKING CHANGE: `ToggleableActionParams` alias of `ESLToggleableActionParams` is no longer supported BREAKING CHANGE: `TraversingQuery` alias of `ESLTraversingQuery` is no longer supported BREAKING CHANGE: `RTLUtils` retired use separate methods instead BREAKING CHANGE: `TraversingUtils` retired use separate methods instead BREAKING CHANGE: `deepCompare` alias of `isEqual` is no longer supported BREAKING CHANGE: `generateUId` alias of `randUID` no longer supported
Deprecation: use `Array.prototype.flat` instead of `flat` utility
# Conflicts: # package-lock.json # package.json
BREAKING CHANGE: `hasEventListener` no longer accepts min number value use `this.getEventListeners(type).length` to make extended checks BREAKING CHANGE: `dispatchEvent` does not accepts target argument
BREAKING CHANGE: `createZIndexIframe` and `is-fixes` module no longer available due to drop of IE11 support
feat: ES5/IE11 cleanup (part 1)
feat(esl-toggleable): introducing a base trigger class in purpose to simplify and make Trigger-Toggleable constructions more API strict in ESL
# Conflicts: # package-lock.json
dshovchko
reviewed
Jan 4, 2024
Comment on lines
62
to
65
if (!this.cache[selector]) { | ||
this.cache[selector] = this.$fragment.querySelector(selector); | ||
} | ||
return this.cache[selector]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you missed clearing the cache in the clear() method (in row number 52).
expect(ESLModalStack.store[1]).toBe(TEMPLATE.$modal2); | ||
expect(ESLModalStack.store.length).toBe(2); | ||
}); | ||
test('Closing and removing parent modal from store leads to hide all nested modals in case their are opened before target modal closes and its removing from store', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it can be simplified
Suggested change
test('Closing and removing parent modal from store leads to hide all nested modals in case their are opened before target modal closes and its removing from store', () => { | |
test('Removing the parent modal leads to hiding all nested modals if opened', () => { |
fix: popup has wrong positioning leads to a broken popup layout
refactor: small optimization/unification of `Rect` usage in popup
# [5.0.0-beta.4](v5.0.0-beta.3...v5.0.0-beta.4) (2024-01-05) ### Bug Fixes * **esl-utils:** fix getting viewport sizes ([c17d2e3](c17d2e3)) ### Features * **esl-toggleable:** introducing a base trigger class in purpose to simplify and make Trigger-Toggleable constructions more API strict in ESL ([4ea1565](4ea1565))
# [5.0.0-beta.5](v5.0.0-beta.4...v5.0.0-beta.5) (2024-01-05)
# [5.0.0-beta.6](v5.0.0-beta.5...v5.0.0-beta.6) (2024-01-05)
# [5.0.0-beta.7](v5.0.0-beta.6...v5.0.0-beta.7) (2024-01-05)
…ic/esl-modal # Conflicts: # site/src/localdev.ts # site/views/examples/modal.njk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #1376