@xdam/ember-partials 0.13.0 → 0.15.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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ Ember components for XDAM applications.
16
16
  Compatibility
17
17
  ------------------------------------------------------------------------------
18
18
 
19
- * Ember.js v3.4 or above
19
+ * Ember.js v3.8 or above
20
20
  * Ember CLI v2.13 or above
21
21
  * Node.js v8 or above
22
22
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable ember/no-new-mixins */
1
2
  import Mixin from '@ember/object/mixin';
2
3
  import { inject as service } from '@ember/service';
3
4
  import { on } from '@ember/object/evented';
@@ -1,11 +1,11 @@
1
1
  <div class="mdc-checkbox">
2
- {{input
2
+ <Input
3
3
  class="mdc-checkbox__native-control"
4
- type="checkbox"
5
- elementId=this.checkboxId
6
- checked=@checked
7
- disabled=@disabled
8
- }}
4
+ @type="checkbox"
5
+ @id={{this.checkboxId}}
6
+ @checked={{@checked}}
7
+ disabled={{@disabled}}
8
+ />
9
9
  <div class="mdc-checkbox__background">
10
10
  <svg
11
11
  class="mdc-checkbox__checkmark"
@@ -2,31 +2,33 @@
2
2
  {{yield}}
3
3
  {{/if}}
4
4
 
5
- {{input
5
+ {{!-- template-lint-disable attribute-indentation --}}
6
+ {{!-- template-lint-disable no-positive-tabindex --}}
7
+ <Input
6
8
  class="mdc-text-field__input"
7
- elementId=this.inputId
8
- type=@type
9
- value=@value
10
- placeholder=@placeholder
11
- tabindex=@tabindex
12
- disabled=@disabled
13
- autofocus=@autofocus
14
- autocomplete=@autocomplete
15
- autocapitalize=@autocapitalize
16
- required=@required
17
- min=@min
18
- max=@max
19
- step=@step
20
- pattern=@pattern
21
- multiple=@multiple
22
- readonly=@readonly
23
- spellcheck=@spellcheck
24
- keyDown=(action (optional @handleKeyDown))
25
- focus-in=(action (optional @handleFocusIn))
26
- focus-out=(action (optional @handleFocusOut))
27
- change=(action (optional @handleChange))
28
- input=(action (optional @handleInput))
29
- }}
9
+ @id={{this.inputId}}
10
+ @type={{@type}}
11
+ @value={{@value}}
12
+ placeholder={{@placeholder}}
13
+ tabindex={{@tabindex}}
14
+ disabled={{@disabled}}
15
+ autofocus={{@autofocus}}
16
+ autocomplete={{@autocomplete}}
17
+ autocapitalize={{@autocapitalize}}
18
+ required={{@required}}
19
+ min={{@min}}
20
+ max={{@max}}
21
+ step={{@step}}
22
+ pattern={{@pattern}}
23
+ multiple={{@multiple}}
24
+ readonly={{@readonly}}
25
+ spellcheck={{@spellcheck}}
26
+ {{on "keyDown" (optional @handleKeyDown)}}
27
+ @focus-in={{optional @handleFocusIn}}
28
+ @focus-out={{optional @handleFocusOut}}
29
+ {{on "change" (optional @handleChange)}}
30
+ {{on "input" (optional @handleInput)}}
31
+ />
30
32
 
31
33
  {{#if (and @label (not @outlined))}}
32
34
  <label for={{this.inputId}} class="mdc-floating-label">
@@ -1,13 +1,13 @@
1
1
  <div class="mdc-radio">
2
- {{input
2
+ <Input
3
3
  class="mdc-radio__native-control"
4
- type="radio"
5
- elementId=this.radioId
6
- checked=@checked
7
- disabled=@disabled
8
- value=@value
9
- name=@name
10
- }}
4
+ @type="radio"
5
+ @id={{this.radioId}}
6
+ checked={{@checked}}
7
+ disabled={{@disabled}}
8
+ @value={{@value}}
9
+ name={{@name}}
10
+ />
11
11
  <div class="mdc-radio__background">
12
12
  <div class="mdc-radio__outer-circle"></div>
13
13
  <div class="mdc-radio__inner-circle"></div>
@@ -10,7 +10,7 @@
10
10
  <button
11
11
  type="button"
12
12
  class="mdc-button mdc-snackbar__action"
13
- {{action this.actionClick}}
13
+ {{on "click" this.actionClick}}
14
14
  >
15
15
  </button>
16
16
  </div>
@@ -2,14 +2,14 @@
2
2
  <div class="mdc-switch__track"></div>
3
3
  <div class="mdc-switch__thumb-underlay">
4
4
  <div class="mdc-switch__thumb">
5
- {{input
5
+ <Input
6
6
  class="mdc-switch__native-control"
7
- type="checkbox"
8
- elementId=this.switchId
7
+ @type="checkbox"
8
+ @id={{this.switchId}}
9
9
  role="switch"
10
- checked=@checked
11
- disabled=@disabled
12
- }}
10
+ checked={{@checked}}
11
+ disabled={{@disabled}}
12
+ />
13
13
  </div>
14
14
  </div>
15
15
  </div>
@@ -1,31 +1,33 @@
1
- {{textarea
1
+ {{!-- template-lint-disable attribute-indentation --}}
2
+ {{!-- template-lint-disable no-positive-tabindex --}}
3
+ <Textarea
2
4
  class="mdc-text-field__input"
3
- elementId=this.textareaId
4
- type=@type
5
- value=@value
6
- placeholder=@placeholder
7
- tabindex=@tabindex
8
- disabled=@disabled
9
- autofocus=@autofocus
10
- autocomplete=@autocomplete
11
- autocapitalize=@autocapitalize
12
- required=@required
13
- step=@step
14
- pattern=@pattern
15
- multiple=@multiple
16
- readonly=@readonly
17
- spellcheck=@spellcheck
18
- rows=@rows
19
- cols=@cols
20
- wrap=@wrap
21
- minlength=@minlength
22
- maxlength=@maxlength
23
- keyDown=(action (optional @handleKeyDown))
24
- focus-in=(action (optional @handleFocusIn))
25
- focus-out=(action (optional @handleFocusOut))
26
- change=(action (optional @handleChange))
27
- input=(action (optional @handleInput))
28
- }}
5
+ @id={{this.textareaId}}
6
+ @type={{@type}}
7
+ @value={{@value}}
8
+ placeholder={{@placeholder}}
9
+ tabindex={{@tabindex}}
10
+ disabled={{@disabled}}
11
+ autofocus={{@autofocus}}
12
+ autocomplete={{@autocomplete}}
13
+ autocapitalize={{@autocapitalize}}
14
+ required={{@required}}
15
+ step={{@step}}
16
+ pattern={{@pattern}}
17
+ multiple={{@multiple}}
18
+ readonly={{@readonly}}
19
+ spellcheck={{@spellcheck}}
20
+ rows={{@rows}}
21
+ cols={{@cols}}
22
+ wrap={{@wrap}}
23
+ minlength={{@minlength}}
24
+ maxlength={{@maxlength}}
25
+ {{on "keydown" (optional @handleKeyDown)}}
26
+ focus-in={{optional @handleFocusIn}}
27
+ focus-out={{optional @handleFocusOut}}
28
+ {{on "change" (optional @handleChange)}}
29
+ {{on "input" (optional @handleInput)}}
30
+ />
29
31
 
30
32
  {{#if (and @label (not @outlined))}}
31
33
  <label for={{this.textareaId}} class="mdc-floating-label">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdam/ember-partials",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Xdam Ember Partials https://xdam.github.io/ember-partials/versions/development/",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -56,8 +56,8 @@
56
56
  "broccoli-funnel": "3.0.8",
57
57
  "broccoli-merge-trees": "4.2.0",
58
58
  "ember-auto-import": "1.5.3",
59
- "ember-cli-babel": "^7.7.3",
60
- "ember-cli-htmlbars": "^3.0.1",
59
+ "ember-cli-babel": "^7.13.0",
60
+ "ember-cli-htmlbars": "^4.2.0",
61
61
  "ember-cli-sass": "11.0.1",
62
62
  "ember-composable-helpers": "2.4.0",
63
63
  "ember-decorators": "^6.1.0",
@@ -66,57 +66,61 @@
66
66
  "sass": "1.60.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@ember/optional-features": "^0.7.0",
69
+ "@ember/optional-features": "^1.1.0",
70
+ "@glimmer/component": "^1.0.0",
70
71
  "babel-eslint": "^10.1.0",
71
72
  "backstopjs": "3.8.5",
72
73
  "broccoli-asset-rev": "^3.0.0",
73
- "ember-cli": "~3.12.0",
74
+ "ember-auto-import": "^1.5.2",
75
+ "ember-cli": "~3.15.2",
74
76
  "ember-cli-addon-docs": "0.8.0",
75
77
  "ember-cli-addon-docs-yuidoc": "0.2.3",
76
78
  "ember-cli-code-coverage": "1.0.3",
77
79
  "ember-cli-content-security-policy": "2.0.3",
78
- "ember-cli-dependency-checker": "^3.1.0",
80
+ "ember-cli-dependency-checker": "^3.2.0",
79
81
  "ember-cli-deploy": "1.0.2",
80
82
  "ember-cli-deploy-build": "2.0.0",
81
83
  "ember-cli-deploy-git": "1.3.4",
82
84
  "ember-cli-deploy-git-ci": "1.0.1",
83
85
  "ember-cli-eslint": "5.1.0",
84
- "ember-cli-htmlbars-inline-precompile": "^2.1.0",
85
86
  "ember-cli-inject-live-reload": "^2.0.1",
86
87
  "ember-cli-release": "1.0.0-beta.2",
87
88
  "ember-cli-sri": "^2.1.1",
88
89
  "ember-cli-string-helpers": "6.1.0",
89
- "ember-cli-template-lint": "0.7.6",
90
- "ember-cli-uglify": "^2.1.0",
91
- "ember-data": "3.9.0",
90
+ "ember-cli-template-lint": "1.0.0-beta.3",
91
+ "ember-cli-uglify": "^3.0.0",
92
+ "ember-data": "3.15.0",
92
93
  "ember-decorators-polyfill": "^1.1.5",
93
94
  "ember-disable-prototype-extensions": "^1.1.3",
94
95
  "ember-exam": "5.0.1",
95
- "ember-export-application-global": "^2.0.0",
96
+ "ember-export-application-global": "^2.0.1",
96
97
  "ember-fetch": "6.7.2",
97
98
  "ember-lifeline": "5.1.0",
98
- "ember-load-initializers": "^2.0.0",
99
+ "ember-load-initializers": "^2.1.1",
99
100
  "ember-maybe-import-regenerator": "0.1.6",
100
- "ember-qunit": "^4.4.1",
101
- "ember-resolver": "^5.0.1",
102
- "ember-source": "~3.12.0",
103
- "ember-source-channel-url": "^1.1.0",
101
+ "ember-qunit": "^4.6.0",
102
+ "ember-resolver": "^7.0.0",
103
+ "ember-source": "~3.15.0",
104
+ "ember-source-channel-url": "^2.0.1",
104
105
  "ember-template-lint": "2.21.0",
105
- "ember-try": "^1.0.0",
106
+ "ember-try": "^1.4.0",
106
107
  "eslint": "^5.12.0",
107
108
  "eslint-config-airbnb-base": "13.1.0",
108
- "eslint-plugin-ember": "^6.2.0",
109
+ "eslint-plugin-ember": "^7.7.1",
109
110
  "eslint-plugin-import": "^2.27.5",
110
- "eslint-plugin-node": "^9.0.1",
111
+ "eslint-plugin-node": "^10.0.0",
111
112
  "loader.js": "^4.7.0",
112
113
  "lodash": "4.17.21",
113
- "qunit-dom": "^0.8.4",
114
+ "qunit-dom": "^0.9.2",
114
115
  "stylelint": "9.9.0",
115
116
  "stylelint-scss": "3.5.1"
116
117
  },
117
118
  "engines": {
118
119
  "node": "8.* || >= 10.*"
119
120
  },
121
+ "ember": {
122
+ "edition": "octane"
123
+ },
120
124
  "ember-addon": {
121
125
  "configPath": "tests/dummy/config"
122
126
  },