Skip to content

Commit

Permalink
feat: esl-scroll moved from draft to beta components
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Feb 10, 2021
1 parent 82b9745 commit 88e6ea6
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 25 deletions.
3 changes: 3 additions & 0 deletions src/modules/all.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
@import "./esl-scrollable-tabs/core.less";

@import "./esl-alert/core.less";

@import "./esl-select/core.less";
@import "./esl-select-list/core.less";
3 changes: 3 additions & 0 deletions src/modules/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ export * from './esl-scrollbar/core';

export * from './esl-alert/core';

export * from './esl-select/core';
export * from './esl-select-list/core';

3 changes: 0 additions & 3 deletions src/modules/draft/all.less
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
@import "./esl-select/core.less";
@import "./esl-select-list/core.less";

@import "./esl-carousel/all.less";
2 changes: 0 additions & 2 deletions src/modules/draft/all.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './esl-select/core';
export * from './esl-select-list/core';
export * from './esl-carousel/all';
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {attr, boolAttr, ESLBaseElement} from '../../esl-base-element/core';
import {ExportNs} from '../../esl-utils/environment/export-ns';

import type {ESLSelectOption} from './esl-select-wrapper';
import {attr, boolAttr, ESLBaseElement} from '../../../esl-base-element/core';

@ExportNs('SelectItem')
export class ESLSelectItem extends ESLBaseElement {
public static readonly is: string = 'esl-select-item';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {attr, boolAttr} from '../../../esl-base-element/core';
import {bind} from '../../../esl-utils/decorators/bind';
import {ESLScrollbar} from '../../../esl-scrollbar/core';
import {attr, boolAttr} from '../../esl-base-element/core';
import {bind} from '../../esl-utils/decorators/bind';
import {ExportNs} from '../../esl-utils/environment/export-ns';
import {ESLScrollbar} from '../../esl-scrollbar/core';
import {ESLSelectItem} from './esl-select-item';

import {ESLSelectWrapper} from './esl-select-wrapper';

@ExportNs('SelectList')
export class ESLSelectList extends ESLSelectWrapper {
public static readonly is = 'esl-select-list';
public static get observedAttributes() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ESLBaseElement} from '../../../esl-base-element/core';
import {EventUtils} from '../../../esl-utils/dom/events';
import {ESLBaseElement} from '../../esl-base-element/core';
import {EventUtils} from '../../esl-utils/dom/events';

export interface ESLSelectOption {
text: string;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ESLToggleable, ToggleableActionParams} from '../../../esl-toggleable/core/esl-toggleable';
import {bind} from '../../../esl-utils/decorators/bind';
import {rafDecorator} from '../../../esl-utils/async/raf';
import {ESLToggleable, ToggleableActionParams} from '../../esl-toggleable/core/esl-toggleable';
import {bind} from '../../esl-utils/decorators/bind';
import {rafDecorator} from '../../esl-utils/async/raf';
import {ESLSelectList} from '../../esl-select-list/core';

import type {ESLSelect} from './esl-select';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {attr, boolAttr, ESLBaseElement} from '../../../esl-base-element/core';
import {rafDecorator} from '../../../esl-utils/async/raf';
import {bind} from '../../../esl-utils/decorators/bind';
import {format} from '../../../esl-utils/misc/format';
import {attr, boolAttr, ESLBaseElement} from '../../esl-base-element/core';
import {rafDecorator} from '../../esl-utils/async/raf';
import {bind} from '../../esl-utils/decorators/bind';
import {format} from '../../esl-utils/misc/format';

import {ESLSelect} from './esl-select';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import {attr, boolAttr} from '../../../esl-base-element/core';
import {bind} from '../../../esl-utils/decorators/bind';
import {CSSUtil} from '../../../esl-utils/dom/styles';
import {attr, boolAttr} from '../../esl-base-element/core';
import {bind} from '../../esl-utils/decorators/bind';
import {CSSUtil} from '../../esl-utils/dom/styles';
import {ExportNs} from '../../esl-utils/environment/export-ns';

import {ESLSelectRenderer} from './esl-select-renderer';
import {ESLSelectDropdown} from './esl-select-dropdown';
import {ESLSelectWrapper} from '../../esl-select-list/core/esl-select-wrapper';

@ExportNs('Select')
export class ESLSelect extends ESLSelectWrapper {
public static readonly is = 'esl-select';
public static get observedAttributes() {
Expand Down
7 changes: 7 additions & 0 deletions src/modules/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import type {ESLPanelStack} from './esl-panel/core/esl-panel-stack';
import type {ESLTabsContainer} from './esl-tab/core/esl-tabs-container';
import type {ESLScrollableTabs} from './esl-scrollable-tabs/core/esl-scrollable-tabs';

import type {ESLSelect} from './esl-select/core';
import type {ESLSelectList, ESLSelectItem} from './esl-select-list/core';

import type {ESLCarousel} from './draft/esl-carousel/core/esl-carousel';
import type {ESLCarouselDotsPlugin} from './draft/esl-carousel/plugin/esl-carousel-dots.plugin';
import type {ESLCarouselLinkPlugin} from './draft/esl-carousel/plugin/esl-carousel-link.plugin';
Expand Down Expand Up @@ -51,6 +54,10 @@ declare global {
TabsContainer?: typeof ESLTabsContainer;
ScrollableTabs?: typeof ESLScrollableTabs;

Select?: typeof ESLSelect;
SelectList?: typeof ESLSelectList;
SelectItem?: typeof ESLSelectItem;

Carousel?: typeof ESLCarousel;
CarouselPlugins: {
Dots?: typeof ESLCarouselDotsPlugin;
Expand Down
6 changes: 3 additions & 3 deletions test-server/src/localdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import {
ESLScrollableTabs,
ESLScrollbar,
ESLAlert,
ESLToggleableDispatcher
ESLToggleableDispatcher,
ESLSelect,
ESLSelectList
} from '../../src/modules/all';

import '../../src/modules/esl-media/providers/iframe-provider';
Expand All @@ -35,8 +37,6 @@ import '../../src/modules/esl-media/providers/youtube-provider';
import '../../src/modules/esl-media/providers/brightcove-provider';

import {
ESLSelect,
ESLSelectList,
ESLCarousel,
ESLCarouselPlugins
} from '../../src/modules/draft/all';
Expand Down

0 comments on commit 88e6ea6

Please sign in to comment.