@xdam/ember-partials 0.10.0 → 0.10.1
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 +75 -75
- package/addon/components/xep-avatar.js +2 -15
- package/addon/components/xep-bubble.js +1 -6
- package/addon/components/xep-button.js +2 -20
- package/addon/components/xep-checkbox.js +1 -11
- package/addon/components/xep-chip-icon.js +0 -4
- package/addon/components/xep-chip-set.js +3 -11
- package/addon/components/xep-chip-text.js +0 -3
- package/addon/components/xep-chip.js +0 -7
- package/addon/components/xep-dialog-actions.js +0 -3
- package/addon/components/xep-dialog-content.js +0 -3
- package/addon/components/xep-dialog-title.js +0 -3
- package/addon/components/xep-dialog.js +2 -10
- package/addon/components/xep-drawer-content.js +0 -3
- package/addon/components/xep-drawer-header.js +0 -3
- package/addon/components/xep-drawer.js +2 -12
- package/addon/components/xep-input.js +1 -37
- package/addon/components/xep-list-divider.js +0 -5
- package/addon/components/xep-list-item-graphic.js +0 -3
- package/addon/components/xep-list-item-meta.js +0 -3
- package/addon/components/xep-list-item-text.js +1 -6
- package/addon/components/xep-list-item.js +0 -8
- package/addon/components/xep-list.js +2 -15
- package/addon/components/xep-menu-surface.js +1 -6
- package/addon/components/xep-menu.js +1 -13
- package/addon/components/xep-radio.js +1 -11
- package/addon/components/xep-slider.js +3 -18
- package/addon/components/xep-snackbar.js +1 -11
- package/addon/components/xep-switch.js +1 -9
- package/addon/components/xep-textarea.js +1 -37
- package/addon/components/xep-toolbar-divider.js +0 -3
- package/addon/components/xep-toolbar-item-icon.js +0 -3
- package/addon/components/xep-toolbar-item-text.js +0 -3
- package/addon/components/xep-toolbar-item.js +0 -4
- package/addon/components/xep-toolbar-section.js +1 -8
- package/addon/components/xep-toolbar.js +2 -17
- package/addon/services/xep-manager.js +1 -1
- package/package.json +124 -125
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import Component from '@ember/component';
|
|
2
2
|
import { classNames, layout, attribute } from '@ember-decorators/component';
|
|
3
3
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-item';
|
|
4
|
-
import { argument } from '@ember-decorators/argument';
|
|
5
|
-
import { optional, Action } from '@ember-decorators/argument/types';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Toolbar items are used to expose actions, page titles, breadcrumbs, etc... within
|
|
@@ -23,7 +21,6 @@ export default class XepToolbarItemComponent extends Component {
|
|
|
23
21
|
* @argument [testSelector]
|
|
24
22
|
* @type {String}
|
|
25
23
|
*/
|
|
26
|
-
@argument(optional('string'))
|
|
27
24
|
@attribute('data-test-toolbar-item')
|
|
28
25
|
testSelector;
|
|
29
26
|
|
|
@@ -32,6 +29,5 @@ export default class XepToolbarItemComponent extends Component {
|
|
|
32
29
|
* @argument [click]
|
|
33
30
|
* @type {Action}
|
|
34
31
|
*/
|
|
35
|
-
@argument(optional(Action))
|
|
36
32
|
click;
|
|
37
33
|
}
|
|
@@ -3,10 +3,7 @@ import {
|
|
|
3
3
|
classNames, layout, tagName, className, attribute,
|
|
4
4
|
} from '@ember-decorators/component';
|
|
5
5
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-section';
|
|
6
|
-
import {
|
|
7
|
-
import { optional, oneOf, Action } from '@ember-decorators/argument/types';
|
|
8
|
-
import { computed } from '@ember-decorators/object';
|
|
9
|
-
import EmberObject from '@ember/object';
|
|
6
|
+
import EmberObject, { computed } from '@ember/object';
|
|
10
7
|
|
|
11
8
|
const ALIGN_TYPES = {
|
|
12
9
|
// Makes section align to the start.
|
|
@@ -39,7 +36,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
39
36
|
* @argument [testSelector]
|
|
40
37
|
* @type {String}
|
|
41
38
|
*/
|
|
42
|
-
@argument(optional('string'))
|
|
43
39
|
@attribute('data-test-toolbar-section')
|
|
44
40
|
testSelector;
|
|
45
41
|
|
|
@@ -48,7 +44,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
48
44
|
* @argument [align]
|
|
49
45
|
* @type {String}
|
|
50
46
|
*/
|
|
51
|
-
@argument(optional(oneOf(...Object.keys(ALIGN_TYPES))))
|
|
52
47
|
align = 'start';
|
|
53
48
|
|
|
54
49
|
// Map of classNames for each alignment type
|
|
@@ -73,7 +68,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
73
68
|
* @argument [flex]
|
|
74
69
|
* @type {String}
|
|
75
70
|
*/
|
|
76
|
-
@argument(optional(oneOf(...Object.keys(FLEX_TYPES))))
|
|
77
71
|
flex = 'grow';
|
|
78
72
|
|
|
79
73
|
// Map of classNames for each flex type
|
|
@@ -97,6 +91,5 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
97
91
|
* @argument [click]
|
|
98
92
|
* @type {Action}
|
|
99
93
|
*/
|
|
100
|
-
@argument(optional(Action))
|
|
101
94
|
click;
|
|
102
95
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classNames, layout, className, attribute,
|
|
3
3
|
} from '@ember-decorators/component';
|
|
4
|
-
import {
|
|
5
|
-
optional, oneOf, shapeOf,
|
|
6
|
-
} from '@ember-decorators/argument/types';
|
|
7
4
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar';
|
|
8
|
-
import { argument } from '@ember-decorators/argument';
|
|
9
|
-
import { computed } from '@ember-decorators/object';
|
|
10
5
|
import Component from '@ember/component';
|
|
11
|
-
import EmberObject from '@ember/object';
|
|
12
|
-
import { inject as service } from '@ember
|
|
6
|
+
import EmberObject, { computed } from '@ember/object';
|
|
7
|
+
import { inject as service } from '@ember/service';
|
|
13
8
|
|
|
14
9
|
import styleString from '@xdam/ember-partials/utils/style-string';
|
|
15
10
|
|
|
@@ -40,7 +35,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
40
35
|
* @argument [testSelector]
|
|
41
36
|
* @type {String}
|
|
42
37
|
*/
|
|
43
|
-
@argument(optional('string'))
|
|
44
38
|
@attribute('data-test-toolbar')
|
|
45
39
|
testSelector;
|
|
46
40
|
|
|
@@ -49,7 +43,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
49
43
|
* @argument [register]
|
|
50
44
|
* @type {String}
|
|
51
45
|
*/
|
|
52
|
-
@argument(optional('string'))
|
|
53
46
|
register;
|
|
54
47
|
|
|
55
48
|
/**
|
|
@@ -57,12 +50,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
57
50
|
* @argument [position]
|
|
58
51
|
* @type {Object<top: String, right: String, bottom: String, left: String>}
|
|
59
52
|
*/
|
|
60
|
-
@argument(optional(shapeOf({
|
|
61
|
-
top: optional('string'),
|
|
62
|
-
right: optional('string'),
|
|
63
|
-
bottom: optional('string'),
|
|
64
|
-
left: optional('string'),
|
|
65
|
-
})))
|
|
66
53
|
position;
|
|
67
54
|
|
|
68
55
|
/**
|
|
@@ -70,7 +57,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
70
57
|
* @argument [orientation]
|
|
71
58
|
* @type {"horizontal"|"vertical"}
|
|
72
59
|
*/
|
|
73
|
-
@argument(oneOf('horizontal', 'vertical'))
|
|
74
60
|
orientation = 'horizontal';
|
|
75
61
|
|
|
76
62
|
/**
|
|
@@ -78,7 +64,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
78
64
|
* @argument [variantType]
|
|
79
65
|
* @type {String}
|
|
80
66
|
*/
|
|
81
|
-
@argument(optional(oneOf(...Object.keys(VARIANT_TYPES))))
|
|
82
67
|
variant = 'standard';
|
|
83
68
|
|
|
84
69
|
// Map of classNames for each variant type
|
package/package.json
CHANGED
|
@@ -1,125 +1,124 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xdam/ember-partials",
|
|
3
|
-
"version": "0.10.
|
|
4
|
-
"description": "Xdam Ember Partials https://xdam.github.io/ember-partials/versions/development/",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"ember-addon"
|
|
7
|
-
],
|
|
8
|
-
"publishConfig": {
|
|
9
|
-
"access": "public"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/XDAM/ember-partials.git"
|
|
14
|
-
},
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"author": "",
|
|
17
|
-
"directories": {
|
|
18
|
-
"doc": "doc",
|
|
19
|
-
"test": "tests"
|
|
20
|
-
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "ember build",
|
|
23
|
-
"start": "ember serve --port 4300",
|
|
24
|
-
"lint": "yarn run lint:js ; yarn run lint:hbs ; yarn run lint:scss",
|
|
25
|
-
"lint:hbs": "ember-template-lint .",
|
|
26
|
-
"lint:js": "eslint .",
|
|
27
|
-
"lint:scss": "stylelint app/styles/**/*",
|
|
28
|
-
"test": "yarn run lint:scss && ember exam --random",
|
|
29
|
-
"test:all": "ember try:each",
|
|
30
|
-
"test:coverage": "cross-env COVERAGE=true ember test",
|
|
31
|
-
"test:auto": "ember exam --test-port 7359 --server --launch Chrome",
|
|
32
|
-
"test:backstop": "backstop test",
|
|
33
|
-
"test:backstop:approve": "backstop approve",
|
|
34
|
-
"test:backstop:reference": "backstop reference",
|
|
35
|
-
"release": "ember release --minor && ember deploy production"
|
|
36
|
-
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@material/
|
|
41
|
-
"@material/
|
|
42
|
-
"@material/
|
|
43
|
-
"@material/
|
|
44
|
-
"@material/
|
|
45
|
-
"@material/
|
|
46
|
-
"@material/
|
|
47
|
-
"@material/
|
|
48
|
-
"@material/
|
|
49
|
-
"@material/
|
|
50
|
-
"@material/
|
|
51
|
-
"@material/
|
|
52
|
-
"@material/
|
|
53
|
-
"@material/
|
|
54
|
-
"@material/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"ember-
|
|
61
|
-
"ember-cli-
|
|
62
|
-
"ember-
|
|
63
|
-
"ember-
|
|
64
|
-
"ember-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"ember-cli": "
|
|
76
|
-
"ember-cli-
|
|
77
|
-
"ember-cli-
|
|
78
|
-
"ember-cli-
|
|
79
|
-
"ember-cli-
|
|
80
|
-
"ember-cli-
|
|
81
|
-
"ember-cli-deploy": "1.
|
|
82
|
-
"ember-cli-deploy-
|
|
83
|
-
"ember-cli-
|
|
84
|
-
"ember-cli-
|
|
85
|
-
"ember-cli-
|
|
86
|
-
"ember-cli-
|
|
87
|
-
"ember-cli-
|
|
88
|
-
"ember-cli-
|
|
89
|
-
"ember-cli-
|
|
90
|
-
"ember-cli-
|
|
91
|
-
"ember-
|
|
92
|
-
"ember-
|
|
93
|
-
"ember-
|
|
94
|
-
"ember-
|
|
95
|
-
"ember-
|
|
96
|
-
"ember-
|
|
97
|
-
"ember-
|
|
98
|
-
"ember-
|
|
99
|
-
"ember-
|
|
100
|
-
"ember-
|
|
101
|
-
"ember-
|
|
102
|
-
"ember-
|
|
103
|
-
"ember-source": "
|
|
104
|
-
"ember-
|
|
105
|
-
"ember-
|
|
106
|
-
"
|
|
107
|
-
"eslint": "
|
|
108
|
-
"eslint-
|
|
109
|
-
"eslint-plugin-
|
|
110
|
-
"eslint-plugin-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"stylelint": "
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@xdam/ember-partials",
|
|
3
|
+
"version": "0.10.1",
|
|
4
|
+
"description": "Xdam Ember Partials https://xdam.github.io/ember-partials/versions/development/",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ember-addon"
|
|
7
|
+
],
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/XDAM/ember-partials.git"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "",
|
|
17
|
+
"directories": {
|
|
18
|
+
"doc": "doc",
|
|
19
|
+
"test": "tests"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "ember build",
|
|
23
|
+
"start": "ember serve --port 4300",
|
|
24
|
+
"lint": "yarn run lint:js ; yarn run lint:hbs ; yarn run lint:scss",
|
|
25
|
+
"lint:hbs": "ember-template-lint .",
|
|
26
|
+
"lint:js": "eslint .",
|
|
27
|
+
"lint:scss": "stylelint app/styles/**/*",
|
|
28
|
+
"test": "yarn run lint:scss && ember exam --random",
|
|
29
|
+
"test:all": "ember try:each",
|
|
30
|
+
"test:coverage": "cross-env COVERAGE=true ember test",
|
|
31
|
+
"test:auto": "ember exam --test-port 7359 --server --launch Chrome",
|
|
32
|
+
"test:backstop": "backstop test",
|
|
33
|
+
"test:backstop:approve": "backstop approve",
|
|
34
|
+
"test:backstop:reference": "backstop reference",
|
|
35
|
+
"release": "ember release --minor && ember deploy production"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@material/animation": "0.41.0",
|
|
39
|
+
"@material/button": "0.44.0",
|
|
40
|
+
"@material/checkbox": "0.44.0",
|
|
41
|
+
"@material/chips": "0.44.0",
|
|
42
|
+
"@material/dialog": "0.44.0",
|
|
43
|
+
"@material/dom": "0.41.0",
|
|
44
|
+
"@material/drawer": "0.44.0",
|
|
45
|
+
"@material/form-field": "0.44.0",
|
|
46
|
+
"@material/list": "0.44.0",
|
|
47
|
+
"@material/menu": "0.44.0",
|
|
48
|
+
"@material/menu-surface": "0.44.0",
|
|
49
|
+
"@material/radio": "0.44.0",
|
|
50
|
+
"@material/slider": "0.44.0",
|
|
51
|
+
"@material/snackbar": "0.44.0",
|
|
52
|
+
"@material/switch": "0.44.0",
|
|
53
|
+
"@material/textfield": "0.44.0",
|
|
54
|
+
"@material/typography": "0.44.0",
|
|
55
|
+
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
|
56
|
+
"broccoli-funnel": "3.0.8",
|
|
57
|
+
"broccoli-merge-trees": "4.2.0",
|
|
58
|
+
"ember-auto-import": "1.5.3",
|
|
59
|
+
"ember-cli-babel": "^7.7.3",
|
|
60
|
+
"ember-cli-htmlbars": "^3.0.0",
|
|
61
|
+
"ember-cli-sass": "11.0.1",
|
|
62
|
+
"ember-composable-helpers": "2.4.0",
|
|
63
|
+
"ember-decorators": "^6.1.0",
|
|
64
|
+
"ember-truth-helpers": "2.1.0",
|
|
65
|
+
"resize-observer-polyfill": "1.5.1",
|
|
66
|
+
"sass": "1.60.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@ember/optional-features": "^0.7.0",
|
|
70
|
+
"babel-eslint": "^10.1.0",
|
|
71
|
+
"backstopjs": "3.8.5",
|
|
72
|
+
"broccoli-asset-rev": "^3.0.0",
|
|
73
|
+
"ember-cli": "~3.9.0",
|
|
74
|
+
"ember-cli-addon-docs": "0.8.0",
|
|
75
|
+
"ember-cli-addon-docs-yuidoc": "0.2.3",
|
|
76
|
+
"ember-cli-code-coverage": "1.0.3",
|
|
77
|
+
"ember-cli-content-security-policy": "2.0.3",
|
|
78
|
+
"ember-cli-dependency-checker": "^3.1.0",
|
|
79
|
+
"ember-cli-deploy": "1.0.2",
|
|
80
|
+
"ember-cli-deploy-build": "2.0.0",
|
|
81
|
+
"ember-cli-deploy-git": "1.3.4",
|
|
82
|
+
"ember-cli-deploy-git-ci": "1.0.1",
|
|
83
|
+
"ember-cli-eslint": "5.0.0",
|
|
84
|
+
"ember-cli-htmlbars-inline-precompile": "^2.0.0",
|
|
85
|
+
"ember-cli-inject-live-reload": "^2.0.1",
|
|
86
|
+
"ember-cli-release": "1.0.0-beta.2",
|
|
87
|
+
"ember-cli-sri": "^2.1.1",
|
|
88
|
+
"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",
|
|
92
|
+
"ember-decorators-polyfill": "^1.1.5",
|
|
93
|
+
"ember-disable-prototype-extensions": "^1.1.3",
|
|
94
|
+
"ember-exam": "5.0.1",
|
|
95
|
+
"ember-export-application-global": "^2.0.0",
|
|
96
|
+
"ember-fetch": "6.7.2",
|
|
97
|
+
"ember-lifeline": "5.1.0",
|
|
98
|
+
"ember-load-initializers": "^2.0.0",
|
|
99
|
+
"ember-maybe-import-regenerator": "0.1.6",
|
|
100
|
+
"ember-qunit": "^4.1.2",
|
|
101
|
+
"ember-resolver": "^5.0.1",
|
|
102
|
+
"ember-source": "~3.9.0",
|
|
103
|
+
"ember-source-channel-url": "^1.1.0",
|
|
104
|
+
"ember-template-lint": "2.21.0",
|
|
105
|
+
"ember-try": "^1.0.0",
|
|
106
|
+
"eslint": "^5.12.0",
|
|
107
|
+
"eslint-config-airbnb-base": "13.1.0",
|
|
108
|
+
"eslint-plugin-ember": "^6.0.0",
|
|
109
|
+
"eslint-plugin-import": "^2.27.5",
|
|
110
|
+
"eslint-plugin-node": "^8.0.1",
|
|
111
|
+
"loader.js": "^4.7.0",
|
|
112
|
+
"lodash": "4.17.21",
|
|
113
|
+
"qunit-dom": "^0.8.4",
|
|
114
|
+
"stylelint": "9.9.0",
|
|
115
|
+
"stylelint-scss": "3.5.1"
|
|
116
|
+
},
|
|
117
|
+
"engines": {
|
|
118
|
+
"node": "10.* || >= 12.*"
|
|
119
|
+
},
|
|
120
|
+
"ember-addon": {
|
|
121
|
+
"configPath": "tests/dummy/config"
|
|
122
|
+
},
|
|
123
|
+
"homepage": "https://XDAM.github.io/ember-partials"
|
|
124
|
+
}
|