@xdam/ember-partials 0.9.0-beta.0 → 0.10.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.
Files changed (152) hide show
  1. package/.gitattributes +6 -0
  2. package/LICENSE.md +9 -9
  3. package/README.md +15 -0
  4. package/addon/components/xep-avatar.js +0 -0
  5. package/addon/components/xep-bubble.js +0 -0
  6. package/addon/components/xep-button.js +0 -0
  7. package/addon/components/xep-checkbox.js +0 -0
  8. package/addon/components/xep-chip-icon.js +0 -0
  9. package/addon/components/xep-chip-set.js +0 -0
  10. package/addon/components/xep-chip-text.js +0 -0
  11. package/addon/components/xep-chip.js +0 -0
  12. package/addon/components/xep-dialog-actions.js +0 -0
  13. package/addon/components/xep-dialog-content.js +0 -0
  14. package/addon/components/xep-dialog-title.js +0 -0
  15. package/addon/components/xep-dialog.js +0 -0
  16. package/addon/components/xep-drawer-content.js +0 -0
  17. package/addon/components/xep-drawer-header.js +0 -0
  18. package/addon/components/xep-drawer.js +0 -0
  19. package/addon/components/xep-input.js +0 -0
  20. package/addon/components/xep-list-divider.js +0 -0
  21. package/addon/components/xep-list-item-graphic.js +0 -0
  22. package/addon/components/xep-list-item-meta.js +0 -0
  23. package/addon/components/xep-list-item-text.js +0 -0
  24. package/addon/components/xep-list-item.js +0 -0
  25. package/addon/components/xep-list.js +0 -0
  26. package/addon/components/xep-menu-surface.js +0 -0
  27. package/addon/components/xep-menu.js +0 -0
  28. package/addon/components/xep-radio.js +0 -0
  29. package/addon/components/xep-slider.js +0 -0
  30. package/addon/components/xep-snackbar.js +0 -0
  31. package/addon/components/xep-switch.js +0 -0
  32. package/addon/components/xep-textarea.js +0 -0
  33. package/addon/components/xep-toolbar-divider.js +0 -0
  34. package/addon/components/xep-toolbar-item-icon.js +0 -0
  35. package/addon/components/xep-toolbar-item-text.js +0 -0
  36. package/addon/components/xep-toolbar-item.js +0 -0
  37. package/addon/components/xep-toolbar-section.js +9 -1
  38. package/addon/components/xep-toolbar.js +0 -0
  39. package/addon/mixins/xep-resize.js +0 -0
  40. package/addon/services/xep-manager.js +0 -0
  41. package/addon/templates/components/xep-avatar.hbs +1 -1
  42. package/addon/templates/components/xep-bubble.hbs +0 -0
  43. package/addon/templates/components/xep-button.hbs +0 -0
  44. package/addon/templates/components/xep-checkbox.hbs +0 -0
  45. package/addon/templates/components/xep-chip-icon.hbs +0 -0
  46. package/addon/templates/components/xep-chip-set.hbs +0 -0
  47. package/addon/templates/components/xep-chip-text.hbs +0 -0
  48. package/addon/templates/components/xep-chip.hbs +0 -0
  49. package/addon/templates/components/xep-dialog-actions.hbs +0 -0
  50. package/addon/templates/components/xep-dialog-content.hbs +0 -0
  51. package/addon/templates/components/xep-dialog-title.hbs +0 -0
  52. package/addon/templates/components/xep-dialog.hbs +0 -0
  53. package/addon/templates/components/xep-drawer-content.hbs +0 -0
  54. package/addon/templates/components/xep-drawer-header.hbs +0 -0
  55. package/addon/templates/components/xep-drawer.hbs +0 -0
  56. package/addon/templates/components/xep-input.hbs +0 -0
  57. package/addon/templates/components/xep-list-divider.hbs +0 -0
  58. package/addon/templates/components/xep-list-item-graphic.hbs +0 -0
  59. package/addon/templates/components/xep-list-item-meta.hbs +0 -0
  60. package/addon/templates/components/xep-list-item-text.hbs +0 -0
  61. package/addon/templates/components/xep-list-item.hbs +0 -0
  62. package/addon/templates/components/xep-list.hbs +0 -0
  63. package/addon/templates/components/xep-menu-surface.hbs +0 -0
  64. package/addon/templates/components/xep-menu.hbs +0 -0
  65. package/addon/templates/components/xep-power-select.hbs +0 -0
  66. package/addon/templates/components/xep-radio.hbs +0 -0
  67. package/addon/templates/components/xep-slider.hbs +0 -0
  68. package/addon/templates/components/xep-snackbar.hbs +0 -0
  69. package/addon/templates/components/xep-switch.hbs +0 -0
  70. package/addon/templates/components/xep-textarea.hbs +0 -0
  71. package/addon/templates/components/xep-toolbar-divider.hbs +0 -0
  72. package/addon/templates/components/xep-toolbar-item-icon.hbs +0 -0
  73. package/addon/templates/components/xep-toolbar-item-text.hbs +0 -0
  74. package/addon/templates/components/xep-toolbar-item.hbs +0 -0
  75. package/addon/templates/components/xep-toolbar-section.hbs +0 -0
  76. package/addon/templates/components/xep-toolbar.hbs +0 -0
  77. package/addon/utils/style-string.js +0 -0
  78. package/addon/utils/update-dirty-props.js +0 -0
  79. package/app/components/xep-avatar.js +0 -0
  80. package/app/components/xep-bubble.js +0 -0
  81. package/app/components/xep-button.js +0 -0
  82. package/app/components/xep-checkbox.js +0 -0
  83. package/app/components/xep-chip-icon.js +0 -0
  84. package/app/components/xep-chip-set.js +0 -0
  85. package/app/components/xep-chip-text.js +0 -0
  86. package/app/components/xep-chip.js +0 -0
  87. package/app/components/xep-dialog-actions.js +0 -0
  88. package/app/components/xep-dialog-content.js +0 -0
  89. package/app/components/xep-dialog-title.js +0 -0
  90. package/app/components/xep-dialog.js +0 -0
  91. package/app/components/xep-drawer-content.js +0 -0
  92. package/app/components/xep-drawer-header.js +0 -0
  93. package/app/components/xep-drawer.js +0 -0
  94. package/app/components/xep-input.js +0 -0
  95. package/app/components/xep-list-divider.js +0 -0
  96. package/app/components/xep-list-item-graphic.js +0 -0
  97. package/app/components/xep-list-item-meta.js +0 -0
  98. package/app/components/xep-list-item-text.js +0 -0
  99. package/app/components/xep-list-item.js +0 -0
  100. package/app/components/xep-list.js +0 -0
  101. package/app/components/xep-menu-surface.js +0 -0
  102. package/app/components/xep-menu.js +0 -0
  103. package/app/components/xep-radio.js +0 -0
  104. package/app/components/xep-slider.js +0 -0
  105. package/app/components/xep-snackbar.js +0 -0
  106. package/app/components/xep-switch.js +0 -0
  107. package/app/components/xep-textarea.js +0 -0
  108. package/app/components/xep-toolbar-divider.js +0 -0
  109. package/app/components/xep-toolbar-item-icon.js +0 -0
  110. package/app/components/xep-toolbar-item-text.js +0 -0
  111. package/app/components/xep-toolbar-item.js +0 -0
  112. package/app/components/xep-toolbar-section.js +0 -0
  113. package/app/components/xep-toolbar.js +0 -0
  114. package/app/mixins/xep-resize.js +0 -0
  115. package/app/services/xep-manager.js +0 -0
  116. package/app/styles/ember-partials/components/xep-avatar.scss +24 -24
  117. package/app/styles/ember-partials/components/xep-bubble.scss +20 -20
  118. package/app/styles/ember-partials/components/xep-button.scss +58 -58
  119. package/app/styles/ember-partials/components/xep-drawer.scss +21 -21
  120. package/app/styles/ember-partials/components/xep-snackbar.scss +3 -3
  121. package/app/styles/ember-partials/components/xep-toolbar.scss +107 -107
  122. package/app/styles/ember-partials/dark-theme.scss +42 -42
  123. package/app/styles/ember-partials/helpers/alignment.scss +59 -59
  124. package/app/styles/ember-partials/helpers/color.scss +27 -27
  125. package/app/styles/ember-partials/helpers/display.scss +27 -19
  126. package/app/styles/ember-partials/helpers/overrides.scss +7 -7
  127. package/app/styles/ember-partials/helpers/root.scss +13 -13
  128. package/app/styles/ember-partials/helpers/rotate.scss +11 -0
  129. package/app/styles/ember-partials/helpers/spacing.scss +25 -25
  130. package/app/styles/ember-partials/helpers/typography.scss +5 -0
  131. package/app/styles/ember-partials/helpers/visibility.scss +23 -23
  132. package/app/styles/ember-partials/light-theme.scss +42 -42
  133. package/app/styles/ember-partials/mixins/breakpoints.scss +24 -24
  134. package/app/styles/ember-partials/mixins/strip-unit.scss +10 -10
  135. package/app/styles/ember-partials/variables.scss +35 -35
  136. package/app/styles/ember-partials/xdam-theme.scss +42 -42
  137. package/app/styles/ember-partials.scss +35 -33
  138. package/app/utils/style-string.js +0 -0
  139. package/backstop.json +168 -168
  140. package/blueprints/xep-component/files/__root__/__path__/__name__.js +0 -0
  141. package/blueprints/xep-component/files/__root__/__templatepath__/__templatename__.hbs +0 -0
  142. package/blueprints/xep-component/index.js +0 -0
  143. package/blueprints/xep-component-test/index.js +0 -0
  144. package/blueprints/xep-component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -0
  145. package/config/addon-docs.js +0 -0
  146. package/config/deploy.js +0 -0
  147. package/config/environment.js +0 -0
  148. package/config/release.js +0 -0
  149. package/index.js +2 -2
  150. package/package.json +26 -26
  151. package/.npmignore +0 -36
  152. package/.vscode/settings.json +0 -16
package/.gitattributes ADDED
@@ -0,0 +1,6 @@
1
+ # default to let git choose the best setting for files not explicitly defined here
2
+ * text=auto
3
+
4
+ # All js files must have lf line ends to pass in the linter
5
+ *.js text eol=lf
6
+ *.hbs text eol=lf
package/LICENSE.md CHANGED
@@ -1,9 +1,9 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -12,6 +12,14 @@ Ember components for XDAM applications.
12
12
  - [Running tests](#running-tests)
13
13
  - [Running the dummy application](#running-the-dummy-application)
14
14
 
15
+
16
+ Compatibility
17
+ ------------------------------------------------------------------------------
18
+
19
+ * Ember.js v2.18 or above
20
+ * Ember CLI v2.13 or above
21
+
22
+
15
23
  Installation
16
24
  ------------------------------------------------------------------------------
17
25
 
@@ -22,9 +30,16 @@ Usage
22
30
 
23
31
  Usage available in the dummy app available at [http://localhost:4200](http://localhost:4200).
24
32
 
33
+
25
34
  Contributing
26
35
  ------------------------------------------------------------------------------
27
36
 
37
+ See the [Contributing](CONTRIBUTING.md) guide for details.
38
+
39
+
40
+ License
41
+ ------------------------------------------------------------------------------
42
+
28
43
  ### Installation
29
44
 
30
45
  * `git clone <repository-url>`
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -4,7 +4,7 @@ import {
4
4
  } from '@ember-decorators/component';
5
5
  import template from '@xdam/ember-partials/templates/components/xep-toolbar-section';
6
6
  import { argument } from '@ember-decorators/argument';
7
- import { optional, oneOf } from '@ember-decorators/argument/types';
7
+ import { optional, oneOf, Action } from '@ember-decorators/argument/types';
8
8
  import { computed } from '@ember-decorators/object';
9
9
  import EmberObject from '@ember/object';
10
10
 
@@ -91,4 +91,12 @@ export default class XepToolbarSectionComponent extends Component {
91
91
  get flexClassName() {
92
92
  return this.flexTypeMap[this.flex];
93
93
  }
94
+
95
+ /**
96
+ * Provide an action for when the component is clicked.
97
+ * @argument [click]
98
+ * @type {Action}
99
+ */
100
+ @argument(optional(Action))
101
+ click;
94
102
  }
File without changes
File without changes
File without changes
@@ -3,7 +3,7 @@
3
3
  class="xep-avatar__image"
4
4
  src={{@image}}
5
5
  alt={{this.name}}
6
- role="presentation"
6
+ role="img"
7
7
  >
8
8
  {{else}}
9
9
  <div class="xep-avatar__text">
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,24 +1,24 @@
1
- .xep-avatar {
2
- display: inline-block;
3
- position: relative;
4
- border-radius: 50%;
5
- overflow: hidden;
6
- text-decoration: none;
7
- display: flex;
8
- justify-content: center;
9
- align-items: center;
10
-
11
- &__image,
12
- &__text {
13
- display: block;
14
- }
15
-
16
- &__image {
17
- border: 0;
18
- }
19
-
20
- &__text {
21
- color: $mdc-theme-on-primary;
22
- text-transform: uppercase;
23
- }
24
- }
1
+ .xep-avatar {
2
+ display: inline-block;
3
+ position: relative;
4
+ border-radius: 50%;
5
+ overflow: hidden;
6
+ text-decoration: none;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+
11
+ &__image,
12
+ &__text {
13
+ display: block;
14
+ }
15
+
16
+ &__image {
17
+ border: 0;
18
+ }
19
+
20
+ &__text {
21
+ color: $mdc-theme-on-primary;
22
+ text-transform: uppercase;
23
+ }
24
+ }
@@ -1,20 +1,20 @@
1
- $xep-bubble-font-size: 0.65rem;
2
-
3
- .xep-bubble {
4
- display: inline-block;
5
- min-width: $xep-bubble-font-size * 2;
6
- line-height: $xep-bubble-font-size * 2;
7
- // padding: 3px;
8
- border-radius: 50%;
9
- font-size: $xep-bubble-font-size;
10
- text-align: center;
11
- background: $mdc-theme-primary;
12
- color: $mdc-theme-on-primary;
13
- font-weight: bold;
14
-
15
- &--floating {
16
- position: absolute;
17
- top: -#{$xep-bubble-font-size / 2};
18
- right: -#{$xep-bubble-font-size / 2};
19
- }
20
- }
1
+ $xep-bubble-font-size: 0.65rem;
2
+
3
+ .xep-bubble {
4
+ display: inline-block;
5
+ min-width: $xep-bubble-font-size * 2;
6
+ line-height: $xep-bubble-font-size * 2;
7
+ // padding: 3px;
8
+ border-radius: 50%;
9
+ font-size: $xep-bubble-font-size;
10
+ text-align: center;
11
+ background: $mdc-theme-primary;
12
+ color: $mdc-theme-on-primary;
13
+ font-weight: bold;
14
+
15
+ &--floating {
16
+ position: absolute;
17
+ top: -#{$xep-bubble-font-size / 2};
18
+ right: -#{$xep-bubble-font-size / 2};
19
+ }
20
+ }
@@ -1,58 +1,58 @@
1
- .xep-button {
2
- &__trailing-icon {
3
- // Note: styles reflect .mdc-button__icon
4
- margin-right: 0;
5
- margin-left: 8px;
6
- display: inline-block;
7
- width: 18px;
8
- height: 18px;
9
- font-size: 18px;
10
- vertical-align: top;
11
- }
12
-
13
- // Attempt to strip down some properties
14
- &--unstyled {
15
- min-width: 0;
16
-
17
- &:not(:disabled) {
18
- color: currentColor;
19
- }
20
-
21
- &::before,
22
- &::after {
23
- background-color: transparent;
24
- }
25
- }
26
-
27
- &.mdc-icon-button {
28
- min-width: 0;
29
- }
30
-
31
- // Button colors...
32
- @each $name, $value in $xep-colors {
33
- &--#{"" + $name}-color {
34
- &:not(:disabled) {
35
- color: $value;
36
- }
37
-
38
- &.mdc-button--raised,
39
- &.mdc-button--unelevated {
40
- &:not(:disabled) {
41
- background-color: $value;
42
- color: $mdc-theme-on-primary;
43
- }
44
- }
45
-
46
- &.mdc-button--outlined {
47
- &:not(:disabled) {
48
- border-color: $value;
49
- }
50
- }
51
-
52
- &::before,
53
- &::after {
54
- background-color: $value;
55
- }
56
- }
57
- }
58
- }
1
+ .xep-button {
2
+ &__trailing-icon {
3
+ // Note: styles reflect .mdc-button__icon
4
+ margin-right: 0;
5
+ margin-left: 8px;
6
+ display: inline-block;
7
+ width: 18px;
8
+ height: 18px;
9
+ font-size: 18px;
10
+ vertical-align: top;
11
+ }
12
+
13
+ // Attempt to strip down some properties
14
+ &--unstyled {
15
+ min-width: 0;
16
+
17
+ &:not(:disabled) {
18
+ color: currentColor;
19
+ }
20
+
21
+ &::before,
22
+ &::after {
23
+ background-color: transparent;
24
+ }
25
+ }
26
+
27
+ &.mdc-icon-button {
28
+ min-width: 0;
29
+ }
30
+
31
+ // Button colors...
32
+ @each $name, $value in $xep-colors {
33
+ &--#{"" + $name}-color {
34
+ &:not(:disabled) {
35
+ color: $value;
36
+ }
37
+
38
+ &.mdc-button--raised,
39
+ &.mdc-button--unelevated {
40
+ &:not(:disabled) {
41
+ background-color: $value;
42
+ color: $mdc-theme-on-primary;
43
+ }
44
+ }
45
+
46
+ &.mdc-button--outlined {
47
+ &:not(:disabled) {
48
+ border-color: $value;
49
+ }
50
+ }
51
+
52
+ &::before,
53
+ &::after {
54
+ background-color: $value;
55
+ }
56
+ }
57
+ }
58
+ }
@@ -1,21 +1,21 @@
1
- .xep-drawer {
2
- top: 0;
3
- border: none;
4
-
5
- &--right {
6
- right: 0;
7
- left: initial;
8
-
9
- &.mdc-drawer--animate {
10
- transform: translateX(100%);
11
- }
12
-
13
- &.mdc-drawer--opening {
14
- transform: translateX(0);
15
- }
16
-
17
- &.mdc-drawer--closing {
18
- transform: translateX(100%);
19
- }
20
- }
21
- }
1
+ .xep-drawer {
2
+ top: 0;
3
+ border: none;
4
+
5
+ &--right {
6
+ right: 0;
7
+ left: initial;
8
+
9
+ &.mdc-drawer--animate {
10
+ transform: translateX(100%);
11
+ }
12
+
13
+ &.mdc-drawer--opening {
14
+ transform: translateX(0);
15
+ }
16
+
17
+ &.mdc-drawer--closing {
18
+ transform: translateX(100%);
19
+ }
20
+ }
21
+ }
@@ -1,3 +1,3 @@
1
- .xep-snackbar {
2
- z-index: 2; // snackbar show be elevated above toolbars
3
- }
1
+ .xep-snackbar {
2
+ z-index: 2; // snackbar show be elevated above toolbars
3
+ }