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

feat: legacy dropdown, popover, select, chip and list #635

Merged
merged 53 commits into from
Sep 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
a7d4400
feat(dropdown): replace dropdown
matmkian Aug 26, 2019
79cd48d
feat(chip): replace chip
matmkian Aug 27, 2019
a7f99c5
feat(list): replace list
matmkian Aug 27, 2019
be0ccd5
feat(select): replace select
matmkian Aug 27, 2019
c4bdce3
chore: update yarn.lock
matmkian Aug 27, 2019
f8e133a
feat(select): handle max parameter
matmkian Aug 27, 2019
ca1d498
feat(dropdown): add scroll end event
matmkian Aug 27, 2019
f832563
feat(select): add infinite scroll param support
matmkian Aug 27, 2019
c6b9225
feat(select): add subheader support
matmkian Aug 27, 2019
60d66c8
chore: update lumx core
matmkian Aug 27, 2019
e8dfe77
chore: build dist
matmkian Aug 27, 2019
e373ffe
feat(popover): add component
matmkian Aug 28, 2019
ef317ef
chore: build dist
matmkian Aug 28, 2019
8927933
feat(dropdown): hande new lumx core
matmkian Aug 28, 2019
6ac4515
chore: build dist
matmkian Aug 28, 2019
432c073
fix(select): handle undefined model
matmkian Aug 28, 2019
182cea1
chore: build dist
matmkian Aug 28, 2019
51e9641
fix(dropdown): check close on click param before closing
matmkian Aug 28, 2019
e8f6580
fix(select): add click stop propagation on dropdown open
matmkian Aug 28, 2019
a5400d8
chore: build dist
matmkian Aug 28, 2019
2af63b2
fix(select): handle events everywhere while opening the dropdown
matmkian Aug 28, 2019
b13338d
chore: build dist
matmkian Aug 28, 2019
6991f39
feat(select): toggle dropdown on input/chip click
matmkian Aug 28, 2019
195a663
chore: build dist
matmkian Aug 28, 2019
6b0a841
feat(dropdown): close on destroy
matmkian Aug 28, 2019
c3bf7b3
chore: build dist
matmkian Aug 28, 2019
30f63ee
fix(select): handle undefined model
matmkian Aug 28, 2019
07821e1
chore: build dist
matmkian Aug 28, 2019
678010e
feat(dropdown): apply close on click only if document click
matmkian Aug 28, 2019
c866285
chore: build dist
matmkian Aug 28, 2019
78cbd55
feat(select): hanle subheader display on selected section
matmkian Aug 28, 2019
39a67dc
chore: build dist
matmkian Aug 28, 2019
c1f9b41
fix(select): remove unwanted one time binding
matmkian Aug 28, 2019
c137ac0
chore: build dist
matmkian Aug 28, 2019
045a4fb
fix(select): fix markup conditions
matmkian Aug 28, 2019
6c90e34
chore: build dist
matmkian Aug 28, 2019
9d0c06a
fix(dropdown): remove documentclick param if escape
matmkian Aug 29, 2019
573eab9
chore: build dist
matmkian Aug 29, 2019
5985266
fix(dropdown): work with an array of open dropdowns
matmkian Aug 29, 2019
43c8832
chore: build dist
matmkian Aug 29, 2019
b79f182
fix(dropdown): close self
matmkian Aug 29, 2019
0826ac8
chore: build dist
matmkian Aug 29, 2019
4103ba5
feat(dropdown): don't use event scheduler service
matmkian Aug 29, 2019
0971115
chore: build dist
matmkian Aug 29, 2019
788b797
fix(select): don't stop propogation if escape key code
matmkian Aug 29, 2019
c206817
chore: build dist
matmkian Aug 29, 2019
40753e1
feat(event-sheduler): support multiple events
matmkian Aug 30, 2019
4474b6e
feat(dropdown): prevent close on menu click if !close-on-click
matmkian Aug 30, 2019
01e8d03
chore: build dist
matmkian Aug 30, 2019
cb2be13
feat(dropdown): enhance init backward compatibility
matmkian Aug 30, 2019
bd2f5f0
chore: build dist
matmkian Aug 30, 2019
ffe5115
fix(dropdown): don't close if not open on destroy
matmkian Sep 3, 2019
b4f8548
chore: build dist
matmkian Sep 3, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/js/lumx.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ angular.module('lumx.utils', [

angular.module('lumx.button', []);
angular.module('lumx.checkbox', []);
angular.module('lumx.chip', []);
angular.module('lumx.data-table', []);
angular.module('lumx.date-picker', []);
angular.module('lumx.dialog', ['lumx.utils.event-scheduler']);
angular.module('lumx.dropdown', ['lumx.utils.event-scheduler']);
angular.module('lumx.fab', []);
angular.module('lumx.file-input', []);
angular.module('lumx.icon', []);
angular.module('lumx.list', []);
angular.module('lumx.notification', ['lumx.utils.event-scheduler']);
angular.module('lumx.popover', []);
angular.module('lumx.progress', []);
angular.module('lumx.radio-button', []);
angular.module('lumx.ripple', []);
Expand All @@ -44,14 +47,17 @@ angular.module('lumx.tooltip', []);
angular.module('lumx', [
'lumx.button',
'lumx.checkbox',
'lumx.chip',
'lumx.data-table',
'lumx.date-picker',
'lumx.dialog',
'lumx.dropdown',
'lumx.fab',
'lumx.file-input',
'lumx.icon',
'lumx.list',
'lumx.notification',
'lumx.popover',
'lumx.progress',
'lumx.radio-button',
'lumx.ripple',
Expand Down
8 changes: 7 additions & 1 deletion core/js/utils/event-scheduler_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ function EventSchedulerService($document, LxUtilsService) {
* @param {Event} evt The event.
*/
function _handle(evt) {
const scheduler = _schedule[evt.type];
let scheduler;

for (const [key] of Object.entries(_schedule)) {
if (key.includes(evt.type)) {
scheduler = _schedule[key];
}
}

if (angular.isDefined(scheduler)) {
for (let i = 0, len = scheduler.length; i < len; i++) {
Expand Down
1 change: 0 additions & 1 deletion core/scss/_legacy-theme-lumapps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ $mdi-font-path: '../../node_modules/@mdi/font/fonts' !default;
@import '../../modules/radio-button/scss/radio-button';
@import '../../modules/ripple/scss/ripple';
@import '../../modules/search-filter/scss/search-filter';
@import '../../modules/select/scss/select';
@import '../../modules/stepper/scss/stepper';
@import '../../modules/switch/scss/switch';
@import '../../modules/tabs/scss/tabs';
Expand Down
Loading