Skip to content

Commit f3c8301

Browse files
authored
Removed classic layout and ember-decorators (#409)
* refactor: Added default tests for components * chore: Moved components in classic layout to flat * chore: Moved components in nested layout to flat * refactor: Removed ember-decorators from dependencies * chore: Added lockfile --------- Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
1 parent 6a62491 commit f3c8301

25 files changed

+173
-22
lines changed
File renamed without changes.

addon/components/basic-dialog.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
import { tagName, layout as templateLayout } from '@ember-decorators/component';
21
import { computed, set } from '@ember/object';
32
import { inject as service } from '@ember/service';
43
import Component from '@ember/component';
54
import { isEmpty } from '@ember/utils';
6-
import layout from '../templates/components/basic-dialog';
75
import { dasherize } from '@ember/string';
6+
87
import { isIOS, clickHandlerDelay } from '../utils/config-utils';
98

10-
@tagName('')
11-
@templateLayout(layout)
129
export default class BasicDialog extends Component {
10+
tagName = '';
11+
1312
containerClassNames = null;
1413
overlayClassNames = null;
1514
wrapperClassNames = null;
File renamed without changes.

addon/components/in-place-dialog.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { tagName, layout as templateLayout } from '@ember-decorators/component';
21
import Component from '@ember/component';
3-
import layout from '../templates/components/in-place-dialog';
42

5-
@tagName('')
6-
@templateLayout(layout)
73
export default class InPlaceDialog extends Component {
4+
tagName = '';
5+
86
get containerClassNamesString() {
97
const addonClassNamesString = [
108
'ember-modal-dialog',
File renamed without changes.

addon/components/liquid-dialog.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { layout as templateLayout } from '@ember-decorators/component';
21
import BasicDialog from './basic-dialog';
3-
import layout from '../templates/components/liquid-dialog';
42

5-
@templateLayout(layout)
63
export default class LiquidDialog extends BasicDialog {
74
hasOverlay = true;
85
variantWrapperClass = 'emd-animatable';
File renamed without changes.

addon/components/liquid-tether-dialog.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/* eslint-disable ember/no-computed-properties-in-native-classes */
2-
import { layout as templateLayout } from '@ember-decorators/component';
32
import { computed, set } from '@ember/object';
43
import { dasherize } from '@ember/string';
4+
55
import BasicDialog from './basic-dialog';
6-
import layout from '../templates/components/liquid-tether-dialog';
76

8-
@templateLayout(layout)
97
export default class LiquidTetherDialog extends BasicDialog {
108
@computed('targetAttachment')
119
get targetAttachmentClass() {

0 commit comments

Comments
 (0)