@xdam/ember-partials 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,13 +153,13 @@ export default class XepAvatarComponent extends Component {
153
153
  init() {
154
154
  super.init(...arguments);
155
155
  if (this.register) {
156
- this.get('xepManager').registerComponent(this, this.register);
156
+ this.xepManager.registerComponent(this, this.register);
157
157
  }
158
158
  }
159
159
 
160
160
  willDestroy() {
161
161
  if (this.register) {
162
- this.get('xepManager').deregisterComponent(this, this.register);
162
+ this.xepManager.deregisterComponent(this, this.register);
163
163
  }
164
164
 
165
165
  super.willDestroy(...arguments);
@@ -46,13 +46,13 @@ export default class XepBubbleComponent extends Component {
46
46
  init() {
47
47
  super.init(...arguments);
48
48
  if (this.register) {
49
- this.get('xepManager').registerComponent(this, this.register);
49
+ this.xepManager.registerComponent(this, this.register);
50
50
  }
51
51
  }
52
52
 
53
53
  willDestroy() {
54
54
  if (this.register) {
55
- this.get('xepManager').deregisterComponent(this, this.register);
55
+ this.xepManager.deregisterComponent(this, this.register);
56
56
  }
57
57
 
58
58
  super.willDestroy(...arguments);
@@ -159,6 +159,7 @@ export default class XepButtonComponent extends Component {
159
159
  * @readOnly
160
160
  */
161
161
  @className
162
+ // eslint-disable-next-line ember/require-computed-property-dependencies
162
163
  @computed('variant')
163
164
  get variantClassNames() {
164
165
  return this.variantTypeMap[this.variant];
@@ -189,13 +190,13 @@ export default class XepButtonComponent extends Component {
189
190
  init() {
190
191
  super.init(...arguments);
191
192
  if (this.register) {
192
- this.get('xepManager').registerComponent(this, this.register);
193
+ this.xepManager.registerComponent(this, this.register);
193
194
  }
194
195
  }
195
196
 
196
197
  willDestroy() {
197
198
  if (this.register) {
198
- this.get('xepManager').deregisterComponent(this, this.register);
199
+ this.xepManager.deregisterComponent(this, this.register);
199
200
  }
200
201
 
201
202
  super.willDestroy(...arguments);
@@ -93,7 +93,7 @@ export default class XepCheckboxComponent extends Component {
93
93
  addEventListener(this, nativeInput, 'change', evt => this.set('checked', evt.srcElement.checked));
94
94
 
95
95
  if (this.register) {
96
- this.get('xepManager').registerComponent(this, this.register);
96
+ this.xepManager.registerComponent(this, this.register);
97
97
  }
98
98
  }
99
99
 
@@ -109,7 +109,7 @@ export default class XepCheckboxComponent extends Component {
109
109
  }
110
110
 
111
111
  if (this.register) {
112
- this.get('xepManager').deregisterComponent(this, this.register);
112
+ this.xepManager.deregisterComponent(this, this.register);
113
113
  }
114
114
 
115
115
  super.willDestroy(...arguments);
@@ -78,6 +78,7 @@ export default class XepChipSetComponent extends Component {
78
78
  * @readOnly
79
79
  */
80
80
  @className
81
+ // eslint-disable-next-line ember/require-computed-property-dependencies
81
82
  @computed('variant')
82
83
  get variantClassNames() {
83
84
  return this.variantTypeMap[this.variant];
@@ -91,7 +92,7 @@ export default class XepChipSetComponent extends Component {
91
92
  () => this.notifyPropertyChange('selectedChipIds'));
92
93
 
93
94
  if (this.register) {
94
- this.get('xepManager').registerComponent(this, this.register);
95
+ this.xepManager.registerComponent(this, this.register);
95
96
  }
96
97
  }
97
98
 
@@ -101,7 +102,7 @@ export default class XepChipSetComponent extends Component {
101
102
  }
102
103
 
103
104
  if (this.register) {
104
- this.get('xepManager').deregisterComponent(this, this.register);
105
+ this.xepManager.deregisterComponent(this, this.register);
105
106
  }
106
107
 
107
108
  super.willDestroy(...arguments);
@@ -109,7 +109,7 @@ export default class XepDialogComponent extends Component {
109
109
  updateDirtyProps(this.trackedProps, this, this.mdcComponent);
110
110
 
111
111
  if (this.register) {
112
- this.get('xepManager').registerComponent(this, this.register);
112
+ this.xepManager.registerComponent(this, this.register);
113
113
  }
114
114
  }
115
115
 
@@ -125,7 +125,7 @@ export default class XepDialogComponent extends Component {
125
125
  }
126
126
 
127
127
  if (this.register) {
128
- this.get('xepManager').deregisterComponent(this, this.register);
128
+ this.xepManager.deregisterComponent(this, this.register);
129
129
  }
130
130
 
131
131
  super.willDestroy(...arguments);
@@ -100,6 +100,7 @@ export default class XepDrawerComponent extends Component {
100
100
  * @readOnly
101
101
  */
102
102
  @className
103
+ // eslint-disable-next-line ember/require-computed-property-dependencies
103
104
  @computed('variant')
104
105
  get variantClassNames() {
105
106
  return this.variantTypeMap[this.variant];
@@ -113,6 +114,7 @@ export default class XepDrawerComponent extends Component {
113
114
  * @readOnly
114
115
  */
115
116
  @className
117
+ // eslint-disable-next-line ember/require-computed-property-dependencies
116
118
  @computed('positionType')
117
119
  get positionClassName() {
118
120
  return this.positionTypeMap[this.positionType];
@@ -140,7 +142,7 @@ export default class XepDrawerComponent extends Component {
140
142
  () => updateDirtyProps(this.trackedProps, this.mdcComponent, this));
141
143
 
142
144
  if (this.register) {
143
- this.get('xepManager').registerComponent(this, this.register);
145
+ this.xepManager.registerComponent(this, this.register);
144
146
  }
145
147
  }
146
148
 
@@ -156,7 +158,7 @@ export default class XepDrawerComponent extends Component {
156
158
  }
157
159
 
158
160
  if (this.register) {
159
- this.get('xepManager').deregisterComponent(this, this.register);
161
+ this.xepManager.deregisterComponent(this, this.register);
160
162
  }
161
163
 
162
164
  super.willDestroy(...arguments);
@@ -284,7 +284,7 @@ export default class XepInputComponent extends Component {
284
284
  }
285
285
 
286
286
  if (this.register) {
287
- this.get('xepManager').registerComponent(this, this.register);
287
+ this.xepManager.registerComponent(this, this.register);
288
288
  }
289
289
  }
290
290
 
@@ -300,7 +300,7 @@ export default class XepInputComponent extends Component {
300
300
  }
301
301
 
302
302
  if (this.register) {
303
- this.get('xepManager').deregisterComponent(this, this.register);
303
+ this.xepManager.deregisterComponent(this, this.register);
304
304
  }
305
305
 
306
306
  super.willDestroy(...arguments);
@@ -50,6 +50,7 @@ export default class XepListItemTextComponent extends Component {
50
50
  * @readOnly
51
51
  */
52
52
  @className
53
+ // eslint-disable-next-line ember/require-computed-property-dependencies
53
54
  @computed('variant')
54
55
  get variantClassNames() {
55
56
  return this.variantTypeMap[this.variant];
@@ -136,7 +136,7 @@ export default class XepListComponent extends Component {
136
136
  }
137
137
 
138
138
  if (this.register) {
139
- this.get('xepManager').registerComponent(this, this.register);
139
+ this.xepManager.registerComponent(this, this.register);
140
140
  }
141
141
  }
142
142
 
@@ -152,7 +152,7 @@ export default class XepListComponent extends Component {
152
152
  }
153
153
 
154
154
  if (this.register) {
155
- this.get('xepManager').deregisterComponent(this, this.register);
155
+ this.xepManager.deregisterComponent(this, this.register);
156
156
  }
157
157
 
158
158
  super.willDestroy(...arguments);
@@ -48,6 +48,7 @@ export default class XepMenuSurfaceComponent extends Component {
48
48
  * @readOnly
49
49
  */
50
50
  @className
51
+ // eslint-disable-next-line ember/require-computed-property-dependencies
51
52
  @computed('variant')
52
53
  get variantClassNames() {
53
54
  return this.variantTypeMap[this.variant];
@@ -120,7 +120,7 @@ export default class XepMenuComponent extends Component {
120
120
  addEventListener(this, this.element, 'MDCList:action', () => this.set('open', false));
121
121
 
122
122
  if (this.register) {
123
- this.get('xepManager').registerComponent(this, this.register);
123
+ this.xepManager.registerComponent(this, this.register);
124
124
  }
125
125
  }
126
126
 
@@ -136,7 +136,7 @@ export default class XepMenuComponent extends Component {
136
136
  }
137
137
 
138
138
  if (this.register) {
139
- this.get('xepManager').deregisterComponent(this, this.register);
139
+ this.xepManager.deregisterComponent(this, this.register);
140
140
  }
141
141
 
142
142
  super.willDestroy(...arguments);
@@ -92,7 +92,7 @@ export default class XepRadioComponent extends Component {
92
92
  addEventListener(this, nativeInput, 'change', evt => this.set('checked', evt.srcElement.checked));
93
93
 
94
94
  if (this.register) {
95
- this.get('xepManager').registerComponent(this, this.register);
95
+ this.xepManager.registerComponent(this, this.register);
96
96
  }
97
97
  }
98
98
 
@@ -108,7 +108,7 @@ export default class XepRadioComponent extends Component {
108
108
  }
109
109
 
110
110
  if (this.register) {
111
- this.get('xepManager').deregisterComponent(this, this.register);
111
+ this.xepManager.deregisterComponent(this, this.register);
112
112
  }
113
113
 
114
114
  super.willDestroy(...arguments);
@@ -163,6 +163,7 @@ export default class XepSliderComponent extends Component {
163
163
  * @readOnly
164
164
  */
165
165
  @className
166
+ // eslint-disable-next-line ember/require-computed-property-dependencies
166
167
  @computed('variant')
167
168
  get variantClassNames() {
168
169
  return this.variantTypeMap[this.variant];
@@ -179,7 +180,7 @@ export default class XepSliderComponent extends Component {
179
180
  () => updateDirtyProps(this.trackedProps, this.mdcComponent, this));
180
181
 
181
182
  if (this.register) {
182
- this.get('xepManager').registerComponent(this, this.register);
183
+ this.xepManager.registerComponent(this, this.register);
183
184
  }
184
185
  }
185
186
 
@@ -195,7 +196,7 @@ export default class XepSliderComponent extends Component {
195
196
  }
196
197
 
197
198
  if (this.register) {
198
- this.get('xepManager').deregisterComponent(this, this.register);
199
+ this.xepManager.deregisterComponent(this, this.register);
199
200
  }
200
201
 
201
202
  super.willDestroy(...arguments);
@@ -92,7 +92,7 @@ export default class XepSnackbarComponent extends Component {
92
92
  updateDirtyProps(this.trackedProps, this, this.mdcComponent);
93
93
 
94
94
  if (this.register) {
95
- this.get('xepManager').registerComponent(this, this.register);
95
+ this.xepManager.registerComponent(this, this.register);
96
96
  }
97
97
  }
98
98
 
@@ -108,7 +108,7 @@ export default class XepSnackbarComponent extends Component {
108
108
  }
109
109
 
110
110
  if (this.register) {
111
- this.get('xepManager').deregisterComponent(this, this.register);
111
+ this.xepManager.deregisterComponent(this, this.register);
112
112
  }
113
113
 
114
114
  super.willDestroy(...arguments);
@@ -76,7 +76,7 @@ export default class XepSwitchComponent extends Component {
76
76
  addEventListener(this, nativeInput, 'change', evt => this.set('checked', evt.srcElement.checked));
77
77
 
78
78
  if (this.register) {
79
- this.get('xepManager').registerComponent(this, this.register);
79
+ this.xepManager.registerComponent(this, this.register);
80
80
  }
81
81
  }
82
82
 
@@ -92,7 +92,7 @@ export default class XepSwitchComponent extends Component {
92
92
  }
93
93
 
94
94
  if (this.register) {
95
- this.get('xepManager').deregisterComponent(this, this.register);
95
+ this.xepManager.deregisterComponent(this, this.register);
96
96
  }
97
97
 
98
98
  super.willDestroy(...arguments);
@@ -278,7 +278,7 @@ export default class XepTextareaComponent extends Component {
278
278
  }
279
279
 
280
280
  if (this.register) {
281
- this.get('xepManager').registerComponent(this, this.register);
281
+ this.xepManager.registerComponent(this, this.register);
282
282
  }
283
283
  }
284
284
 
@@ -288,7 +288,7 @@ export default class XepTextareaComponent extends Component {
288
288
  }
289
289
 
290
290
  if (this.register) {
291
- this.get('xepManager').deregisterComponent(this, this.register);
291
+ this.xepManager.deregisterComponent(this, this.register);
292
292
  }
293
293
 
294
294
  super.willDestroy(...arguments);
@@ -57,6 +57,7 @@ export default class XepToolbarSectionComponent extends Component {
57
57
  * @readOnly
58
58
  */
59
59
  @className
60
+ // eslint-disable-next-line ember/require-computed-property-dependencies
60
61
  @computed('align')
61
62
  get alignClassName() {
62
63
  return this.alignTypeMap[this.align];
@@ -81,6 +82,7 @@ export default class XepToolbarSectionComponent extends Component {
81
82
  * @readOnly
82
83
  */
83
84
  @className
85
+ // eslint-disable-next-line ember/require-computed-property-dependencies
84
86
  @computed('flex')
85
87
  get flexClassName() {
86
88
  return this.flexTypeMap[this.flex];
@@ -79,6 +79,7 @@ export default class XepToolbarComponent extends Component {
79
79
  * @readOnly
80
80
  */
81
81
  @className
82
+ // eslint-disable-next-line ember/require-computed-property-dependencies
82
83
  @computed('variant')
83
84
  get orientationClassName() {
84
85
  return `xep-toolbar--${this.orientation}`;
@@ -92,6 +93,7 @@ export default class XepToolbarComponent extends Component {
92
93
  * @readOnly
93
94
  */
94
95
  @className
96
+ // eslint-disable-next-line ember/require-computed-property-dependencies
95
97
  @computed('variant')
96
98
  get variantClassNames() {
97
99
  return this.variantTypeMap[this.variant];
@@ -113,13 +115,13 @@ export default class XepToolbarComponent extends Component {
113
115
  init() {
114
116
  super.init(...arguments);
115
117
  if (this.register) {
116
- this.get('xepManager').registerComponent(this, this.register);
118
+ this.xepManager.registerComponent(this, this.register);
117
119
  }
118
120
  }
119
121
 
120
122
  willDestroy() {
121
123
  if (this.register) {
122
- this.get('xepManager').deregisterComponent(this, this.register);
124
+ this.xepManager.deregisterComponent(this, this.register);
123
125
  }
124
126
 
125
127
  super.willDestroy(...arguments);
@@ -2,6 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
+ // eslint-disable-next-line node/no-unpublished-require
5
6
  const ComponentBlueprintGenerator = require('ember-source/blueprints/component');
6
7
 
7
8
  module.exports = ComponentBlueprintGenerator;
@@ -2,6 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
+ // eslint-disable-next-line node/no-unpublished-require
5
6
  const ComponentTestBlueprintGenerator = require('ember-source/blueprints/component-test');
6
7
 
7
8
  module.exports = ComponentTestBlueprintGenerator;
@@ -2,6 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
+ // eslint-disable-next-line node/no-unpublished-require
5
6
  const AddonDocsConfig = require('ember-cli-addon-docs/lib/config');
6
7
 
7
8
  module.exports = class extends AddonDocsConfig {
package/index.js CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  const Funnel = require('broccoli-funnel');
6
6
  const mergeTrees = require('broccoli-merge-trees');
7
+ // eslint-disable-next-line node/no-unpublished-require
7
8
  const intersection = require('lodash/intersection');
8
9
  const addonPackage = require('./package.json');
9
10
 
@@ -37,6 +38,7 @@ function camelize(word) {
37
38
  }
38
39
 
39
40
  module.exports = {
41
+ // eslint-disable-next-line global-require
40
42
  name: require('./package.json').name,
41
43
 
42
44
  included(...args) {
@@ -87,6 +89,7 @@ module.exports = {
87
89
  // eslint-disable-next-line no-cond-assign
88
90
  do {
89
91
  app = current.app || app;
92
+ // eslint-disable-next-line no-cond-assign
90
93
  } while (current.parent.parent && (current = current.parent));
91
94
 
92
95
  if (app.project.findAddonByName('ember-cli-sass')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdam/ember-partials",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Xdam Ember Partials https://xdam.github.io/ember-partials/versions/development/",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -20,13 +20,14 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "ember build --environment=production",
23
+ "lint:js": "eslint .",
23
24
  "start": "ember serve --port 4300",
24
- "lint": "yarn run lint:js ; yarn run lint:hbs ; yarn run lint:scss",
25
+ "lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
25
26
  "lint:hbs": "ember-template-lint .",
26
- "lint:js": "eslint .",
27
27
  "lint:scss": "stylelint app/styles/**/*",
28
- "test": "yarn run lint:scss && ember exam --random",
29
- "test:all": "ember try:each",
28
+ "test": "npm-run-all lint:* test:*",
29
+ "test:ember": "ember test",
30
+ "test:ember-compatibility": "ember try:each",
30
31
  "test:coverage": "cross-env COVERAGE=true ember test",
31
32
  "test:auto": "ember exam --test-port 7359 --server --launch Chrome",
32
33
  "test:backstop": "backstop test",
@@ -55,10 +56,10 @@
55
56
  "babel-plugin-transform-object-rest-spread": "6.26.0",
56
57
  "broccoli-funnel": "3.0.8",
57
58
  "broccoli-merge-trees": "4.2.0",
58
- "ember-auto-import": "^1.5.3",
59
+ "ember-auto-import": "^1.6.0",
59
60
  "ember-classic-decorator": "2.0.1",
60
- "ember-cli-babel": "^7.17.2",
61
- "ember-cli-htmlbars": "^4.2.2",
61
+ "ember-cli-babel": "^7.21.0",
62
+ "ember-cli-htmlbars": "^5.2.0",
62
63
  "ember-cli-sass": "11.0.1",
63
64
  "ember-composable-helpers": "4.5.0",
64
65
  "ember-decorators": "^6.1.0",
@@ -68,12 +69,12 @@
68
69
  },
69
70
  "devDependencies": {
70
71
  "@ember/optional-features": "^1.3.0",
71
- "@glimmer/component": "^1.0.0",
72
+ "@glimmer/component": "^1.0.1",
72
73
  "@glimmer/tracking": "^1.0.0",
73
74
  "babel-eslint": "^10.1.0",
74
75
  "backstopjs": "3.8.5",
75
76
  "broccoli-asset-rev": "^3.0.0",
76
- "ember-cli": "~3.16.2",
77
+ "ember-cli": "~3.20.2",
77
78
  "ember-cli-addon-docs": "0.8.0",
78
79
  "ember-cli-addon-docs-yuidoc": "0.2.3",
79
80
  "ember-cli-code-coverage": "1.0.3",
@@ -83,12 +84,10 @@
83
84
  "ember-cli-deploy-build": "2.0.0",
84
85
  "ember-cli-deploy-git": "1.3.4",
85
86
  "ember-cli-deploy-git-ci": "1.0.1",
86
- "ember-cli-eslint": "5.1.0",
87
87
  "ember-cli-inject-live-reload": "^2.0.2",
88
88
  "ember-cli-release": "1.0.0-beta.2",
89
89
  "ember-cli-sri": "^2.1.1",
90
90
  "ember-cli-string-helpers": "6.1.0",
91
- "ember-cli-template-lint": "1.0.0-beta.3",
92
91
  "ember-cli-uglify": "^3.0.0",
93
92
  "ember-data": "3.15.0",
94
93
  "ember-decorators-polyfill": "^1.1.5",
@@ -100,19 +99,20 @@
100
99
  "ember-load-initializers": "^2.1.1",
101
100
  "ember-maybe-import-regenerator": "0.1.6",
102
101
  "ember-qunit": "^4.6.0",
103
- "ember-resolver": "^7.0.0",
104
- "ember-source": "~3.16.0",
102
+ "ember-resolver": "^8.0.0",
103
+ "ember-source": "~3.20.2",
105
104
  "ember-source-channel-url": "^2.0.1",
106
105
  "ember-template-lint": "2.21.0",
107
106
  "ember-try": "^1.4.0",
108
- "eslint": "^5.12.0",
107
+ "eslint": "^7.5.0",
109
108
  "eslint-config-airbnb-base": "13.1.0",
110
- "eslint-plugin-ember": "^7.7.2",
109
+ "eslint-plugin-ember": "^8.9.1",
111
110
  "eslint-plugin-import": "^2.27.5",
112
- "eslint-plugin-node": "^11.0.0",
111
+ "eslint-plugin-node": "^11.1.0",
113
112
  "loader.js": "^4.7.0",
114
113
  "lodash": "4.17.21",
115
- "qunit-dom": "^1.0.0",
114
+ "npm-run-all": "^4.1.5",
115
+ "qunit-dom": "^1.2.0",
116
116
  "stylelint": "9.9.0",
117
117
  "stylelint-scss": "3.5.1"
118
118
  },