Skip to content
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

refactor(positioning): refactor positioning service #5027

Merged
merged 25 commits into from
Feb 8, 2019

Conversation

Domainv
Copy link
Contributor

@Domainv Domainv commented Jan 26, 2019

Closes #3303
Closes #2993
Closes #4470
Closes #2796

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@ghost ghost assigned Domainv Jan 26, 2019
@ghost ghost added the needs review label Jan 26, 2019
@Domainv Domainv changed the title refactor(positioning): refactor positioning service [WIP]refactor(positioning): refactor positioning service Jan 26, 2019
@Domainv Domainv added the WIP label Jan 26, 2019
@codecov
Copy link

codecov bot commented Jan 29, 2019

Codecov Report

Merging #5027 into development will decrease coverage by 0.48%.
The diff coverage is 64.8%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #5027      +/-   ##
===============================================
- Coverage        74.79%   74.31%   -0.49%     
===============================================
  Files              281      312      +31     
  Lines             8547     8815     +268     
  Branches          1631     1714      +83     
===============================================
+ Hits              6393     6551     +158     
- Misses            1703     1767      +64     
- Partials           451      497      +46
Impacted Files Coverage Δ
src/tooltip/tooltip-container.component.ts 76.47% <ø> (ø) ⬆️
src/popover/popover-container.component.ts 100% <ø> (ø) ⬆️
src/chronos/test/chain.ts 93.45% <ø> (ø) ⬆️
src/positioning/utils/getRoot.ts 0% <0%> (ø)
src/positioning/utils/getOppositeVariation.ts 0% <0%> (ø)
.../positioning/utils/getFixedPositionOffsetParent.ts 0% <0%> (ø)
src/positioning/utils/includeScroll.ts 0% <0%> (ø)
src/positioning/utils/getParentNode.ts 0% <0%> (ø)
src/positioning/utils/getOppositePlacement.ts 100% <100%> (ø)
src/component-loader/component-loader.class.ts 77.24% <100%> (-1.93%) ⬇️
... and 67 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3396bb...a7d8592. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 29, 2019

Codecov Report

Merging #5027 into development will decrease coverage by 0.35%.
The diff coverage is 64.91%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #5027      +/-   ##
===============================================
- Coverage        74.73%   74.38%   -0.36%     
===============================================
  Files              281      316      +35     
  Lines             8547     8838     +291     
  Branches          1631     1725      +94     
===============================================
+ Hits              6388     6574     +186     
- Misses            1706     1771      +65     
- Partials           453      493      +40
Impacted Files Coverage Δ
src/typeahead/typeahead-container.component.ts 82.11% <ø> (ø) ⬆️
src/tooltip/tooltip-container.component.ts 76.47% <ø> (ø) ⬆️
src/popover/popover-container.component.ts 100% <ø> (ø) ⬆️
src/positioning/utils/getOppositeVariation.ts 0% <0%> (ø)
.../positioning/utils/getFixedPositionOffsetParent.ts 0% <0%> (ø)
src/positioning/utils/includeScroll.ts 0% <0%> (ø)
src/positioning/utils/getRoot.ts 0% <0%> (ø)
src/positioning/utils/getParentNode.ts 0% <0%> (ø)
src/positioning/utils/getBordersSize.ts 100% <100%> (ø)
src/positioning/utils/getOppositePlacement.ts 100% <100%> (ø)
... and 70 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af59314...27d2a8b. Read the comment docs.

@Domainv Domainv removed the WIP label Jan 30, 2019
@Domainv Domainv changed the title [WIP]refactor(positioning): refactor positioning service refactor(positioning): refactor positioning service Jan 30, 2019
@Domainv Domainv force-pushed the refactor-positioning-service branch from e6086c0 to 984fbad Compare January 31, 2019 09:34
@ghost ghost added the needs review label Feb 4, 2019
@kulenkov
Copy link
Contributor

kulenkov commented Feb 5, 2019

@Domainv ,
it seems that the Datepicker become broken. It doesn't appear now by clicking in the inputs or on the buttons, please see the attached video:
datepicker

@kulenkov
Copy link
Contributor

kulenkov commented Feb 5, 2019

@Domainv ,
Component: Dropdown / Demo: Nested Dropdowns
Doesn't show by clicking - it's actual for all browsers. please see the video below:
dropdowns_nested

Also I've found the issue for Safari:
Component: Dropdown/ Demo: Append to body - the dropdown doesn't show by clicking
please see the video below:
dropdown_safari

@Domainv Domainv force-pushed the refactor-positioning-service branch from 51c92cd to 8cf9fa3 Compare February 5, 2019 13:02
@kulenkov kulenkov removed the in test label Feb 6, 2019
@kulenkov
Copy link
Contributor

kulenkov commented Feb 6, 2019

checked after fixing - looks good to me

@Domainv Domainv added this to the 3.2.1 milestone Feb 6, 2019
@Domainv Domainv force-pushed the refactor-positioning-service branch from 9d87d7c to 1b63027 Compare February 7, 2019 13:56
@kulenkov
Copy link
Contributor

kulenkov commented Feb 7, 2019

@Domainv ,
tested. on safari, chrome, mobile: safari. looks good to me!

@kulenkov
Copy link
Contributor

kulenkov commented Feb 8, 2019

re-checked after last changes: looks good to me

@valorkin valorkin merged commit 66ae92d into development Feb 8, 2019
@ghost ghost removed the ready for merge label Feb 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the refactor-positioning-service branch February 8, 2019 10:58
leo6104 pushed a commit to leo6104/ngx-bootstrap that referenced this pull request Oct 10, 2019
* reafctor(positioning): add popper.js and migrate it to typescript

* temporary disable tslint for popper

* feat(position): refactored base functionality

* update

* feat(positioning): flip on overflow added (dirty)

* refactor(positioning): add logic of arrow position correcting

* refactor(positioning): add shift logic. placement: bottom left/bottom right

* refactor(positioning): refactor logic of real-time processing events to avoid memory leaks

* refactor(positioning): add types for all methods(minimal solution) && fix tslint errors

* refactor(positioning): optimize and fix blur text on tooltip/popover

* refactor(positioning): add auto class placement

* refactor(positioning): clean up the code

* refactor(positioning): unit tests are fixed

* refactor(positioning): fix incorrect styles on bootstrap 3 && fix arrow in popovers when auto

* refactor(positioning): fix tests for sauce

* refactor(positioning): fix typeahead dropup issue

* refactor(positioning): fix center for arrow on shift

* refactor(positioning): fix tooltip out of screen on mobile

* refactor(positioning): refactor modifiers flow

* fix(tooltip): back css style

Closes valor-software#3303
Closes valor-software#2993
Closes valor-software#4470
IraErshova pushed a commit to IraErshova/ngx-bootstrap that referenced this pull request Jan 20, 2020
* reafctor(positioning): add popper.js and migrate it to typescript

* temporary disable tslint for popper

* feat(position): refactored base functionality

* update

* feat(positioning): flip on overflow added (dirty)

* refactor(positioning): add logic of arrow position correcting

* refactor(positioning): add shift logic. placement: bottom left/bottom right

* refactor(positioning): refactor logic of real-time processing events to avoid memory leaks

* refactor(positioning): add types for all methods(minimal solution) && fix tslint errors

* refactor(positioning): optimize and fix blur text on tooltip/popover

* refactor(positioning): add auto class placement

* refactor(positioning): clean up the code

* refactor(positioning): unit tests are fixed

* refactor(positioning): fix incorrect styles on bootstrap 3 && fix arrow in popovers when auto

* refactor(positioning): fix tests for sauce

* refactor(positioning): fix typeahead dropup issue

* refactor(positioning): fix center for arrow on shift

* refactor(positioning): fix tooltip out of screen on mobile

* refactor(positioning): refactor modifiers flow

* fix(tooltip): back css style

Closes valor-software#3303
Closes valor-software#2993
Closes valor-software#4470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants