@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 +1 -1
- package/addon/mixins/xep-resize.js +1 -0
- package/addon/templates/components/xep-checkbox.hbs +6 -6
- package/addon/templates/components/xep-input.hbs +26 -24
- package/addon/templates/components/xep-radio.hbs +8 -8
- package/addon/templates/components/xep-snackbar.hbs +1 -1
- package/addon/templates/components/xep-switch.hbs +6 -6
- package/addon/templates/components/xep-textarea.hbs +29 -27
- package/package.json +24 -20
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<div class="mdc-checkbox">
|
|
2
|
-
|
|
2
|
+
<Input
|
|
3
3
|
class="mdc-checkbox__native-control"
|
|
4
|
-
type="checkbox"
|
|
5
|
-
|
|
6
|
-
checked
|
|
7
|
-
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
|
-
{{
|
|
5
|
+
{{!-- template-lint-disable attribute-indentation --}}
|
|
6
|
+
{{!-- template-lint-disable no-positive-tabindex --}}
|
|
7
|
+
<Input
|
|
6
8
|
class="mdc-text-field__input"
|
|
7
|
-
|
|
8
|
-
type
|
|
9
|
-
value
|
|
10
|
-
placeholder
|
|
11
|
-
tabindex
|
|
12
|
-
disabled
|
|
13
|
-
autofocus
|
|
14
|
-
autocomplete
|
|
15
|
-
autocapitalize
|
|
16
|
-
required
|
|
17
|
-
min
|
|
18
|
-
max
|
|
19
|
-
step
|
|
20
|
-
pattern
|
|
21
|
-
multiple
|
|
22
|
-
readonly
|
|
23
|
-
spellcheck
|
|
24
|
-
keyDown
|
|
25
|
-
focus-in=
|
|
26
|
-
focus-out=
|
|
27
|
-
change
|
|
28
|
-
input
|
|
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
|
-
|
|
2
|
+
<Input
|
|
3
3
|
class="mdc-radio__native-control"
|
|
4
|
-
type="radio"
|
|
5
|
-
|
|
6
|
-
checked
|
|
7
|
-
disabled
|
|
8
|
-
value
|
|
9
|
-
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>
|
|
@@ -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
|
-
|
|
5
|
+
<Input
|
|
6
6
|
class="mdc-switch__native-control"
|
|
7
|
-
type="checkbox"
|
|
8
|
-
|
|
7
|
+
@type="checkbox"
|
|
8
|
+
@id={{this.switchId}}
|
|
9
9
|
role="switch"
|
|
10
|
-
checked
|
|
11
|
-
disabled
|
|
12
|
-
|
|
10
|
+
checked={{@checked}}
|
|
11
|
+
disabled={{@disabled}}
|
|
12
|
+
/>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
{{
|
|
1
|
+
{{!-- template-lint-disable attribute-indentation --}}
|
|
2
|
+
{{!-- template-lint-disable no-positive-tabindex --}}
|
|
3
|
+
<Textarea
|
|
2
4
|
class="mdc-text-field__input"
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
value
|
|
6
|
-
placeholder
|
|
7
|
-
tabindex
|
|
8
|
-
disabled
|
|
9
|
-
autofocus
|
|
10
|
-
autocomplete
|
|
11
|
-
autocapitalize
|
|
12
|
-
required
|
|
13
|
-
step
|
|
14
|
-
pattern
|
|
15
|
-
multiple
|
|
16
|
-
readonly
|
|
17
|
-
spellcheck
|
|
18
|
-
rows
|
|
19
|
-
cols
|
|
20
|
-
wrap
|
|
21
|
-
minlength
|
|
22
|
-
maxlength
|
|
23
|
-
|
|
24
|
-
focus-in=
|
|
25
|
-
focus-out=
|
|
26
|
-
change
|
|
27
|
-
input
|
|
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.
|
|
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.
|
|
60
|
-
"ember-cli-htmlbars": "^
|
|
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": "^
|
|
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-
|
|
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.
|
|
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.
|
|
90
|
-
"ember-cli-uglify": "^
|
|
91
|
-
"ember-data": "3.
|
|
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.
|
|
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.
|
|
99
|
+
"ember-load-initializers": "^2.1.1",
|
|
99
100
|
"ember-maybe-import-regenerator": "0.1.6",
|
|
100
|
-
"ember-qunit": "^4.
|
|
101
|
-
"ember-resolver": "^
|
|
102
|
-
"ember-source": "~3.
|
|
103
|
-
"ember-source-channel-url": "^
|
|
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.
|
|
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": "^
|
|
109
|
+
"eslint-plugin-ember": "^7.7.1",
|
|
109
110
|
"eslint-plugin-import": "^2.27.5",
|
|
110
|
-
"eslint-plugin-node": "^
|
|
111
|
+
"eslint-plugin-node": "^10.0.0",
|
|
111
112
|
"loader.js": "^4.7.0",
|
|
112
113
|
"lodash": "4.17.21",
|
|
113
|
-
"qunit-dom": "^0.
|
|
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
|
},
|