Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 1753436

Browse files
authored
Merge pull request #246 from ovh-ux/develop
Preparing v2.18.0
2 parents d7676b3 + f16aa49 commit 1753436

File tree

126 files changed

+1894
-1385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1894
-1385
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@AxelPeter @FredericEspiau @euhmeuh @JeremyDec

.github/CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [github@ovh.net](mailto:github@ovh.net). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

.github/ISSUE_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### Description
2+
3+
<!-- Required -->
4+
<!-- Description of the issue -->
5+
6+
### Steps to reproduce
7+
8+
<!-- Required -->
9+
1. [First Step]
10+
2. [Second Step]
11+
3. [and so on...]
12+
13+
**Expected behavior**:
14+
15+
<!-- What did you expect to happen -->
16+
17+
**Actual behavior**:
18+
19+
<!-- What actually happens -->
20+
21+
**Frequency**:
22+
<!-- How often does the issue happen, on a scale from 1 (rare) to 5 (always)?-->
23+
24+
### Additional information
25+
<!-- optional -->
26+
<!-- Any additional information, configuration or data that might be necessary to reproduce the issue -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
### Requirements
2+
3+
* Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
4+
* All new code requires tests to ensure against regressions
5+
6+
## Title of the Pull Requests <!-- required -->
7+
8+
9+
### Description of the Change
10+
11+
<!-- required -->
12+
<!-- Can be a listing of commit descriptions -->
13+
14+
### Benefits
15+
16+
<!-- optional -->
17+
<!-- What benefits will be achieved by the code change? -->
18+
19+
### Possible Drawbacks
20+
21+
<!-- optional -->
22+
<!-- What are the possible side-effects or negative impacts of the code change? -->
23+
24+
### Applicable Issues
25+
26+
<!-- optional -->
27+
<!-- Enter any applicable Issues here -->

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1+
# OVH UI Kit (AngularJS)
2+
3+
![OVH component](https://user-images.githubusercontent.com/3379410/27423240-3f944bc4-5731-11e7-87bb-3ff603aff8a7.png)
4+
5+
A set of maintainable components for the OVH ecosystem (AngularJS).
6+
17
[![NPM](https://nodei.co/npm/ovh-ui-angular.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ovh-ui-angular/)
28

39
![Project status stable](https://img.shields.io/badge/status-stable-blue.svg)
410
[![Maintenance](https://img.shields.io/maintenance/yes/2018.svg)]()
511
[![Chat on gitter](https://img.shields.io/gitter/room/ovh/ux.svg)](https://gitter.im/ovh/ux)
612

7-
# OVH UI (Angular)
8-
9-
A set of maintainable components for the OVH ecosystem (Angular).
10-
1113
## Installation
1214

1315
### Prerequisites
1416

15-
This library has been tested with AngularJS 1.6.
17+
This library has been tested with AngularJS 1.6+.
1618

1719
You will also need these dependencies in your project:
1820

@@ -23,25 +25,31 @@ You will also need these dependencies in your project:
2325

2426
Follow the [guide](https://github.com/ovh-ux/ovh-ui-kit) for _ovh-ui-kit_, because you need to integrate it by _yourself_.
2527

26-
### bower
28+
### Install with [npm](https://www.npmjs.com/)
2729

2830
```bash
29-
bower install --save ovh-ui-angular
31+
npm install ovh-ui-angular
3032
```
3133

32-
### npm
34+
### Install with [yarn](https://yarnpkg.com)
3335

3436
```bash
35-
npm install --save ovh-ui-angular
37+
yarn add ovh-ui-angular
38+
```
39+
40+
### Install with [bower](https://bower.io/) (deprecated)
41+
42+
```bash
43+
bower install --save ovh-ui-angular
3644
```
3745

3846
## Usage
3947

40-
1. In your `index.html`, you need to load `oui-angular.js`:
48+
1. In your `index.html`, you need to load `oui-angular.min.js`:
4149

4250
```html
4351
...
44-
<script src="ovh-ui-angular/packages/oui-angular/dist/oui-angular.js" type="text/javascript"></script>
52+
<script src="ovh-ui-angular/dist/oui-angular.min.js" type="text/javascript"></script>
4553
...
4654
```
4755

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333
}
3434
},
3535
"dependencies": {
36-
"clipboard": "2.0.1",
36+
"angular": "^1.6.x",
37+
"angular-aria": "^1.6.x",
38+
"angular-sanitize": "^1.6.x",
39+
"clipboard": "^2.0.1",
3740
"escape-string-regexp": "^1.0.5",
38-
"flatpickr": "4.5.0",
41+
"flatpickr": "^4.5.1",
3942
"popper.js": "^1.14.3"
4043
},
4144
"devDependencies": {
42-
"angular": "~1.6.1",
43-
"angular-aria": "~1.6.1",
44-
"angular-mocks": "~1.6.1",
45-
"angular-sanitize": "~1.6.1",
45+
"angular-mocks": "^1.6.x",
4646
"autoprefixer": "^8.0.0",
4747
"babel-cli": "^6.18.0",
4848
"babel-core": "^6.21.0",
@@ -54,7 +54,6 @@
5454
"babel-preset-env": "^1.6.1",
5555
"babel-preset-stage-2": "^6.22.0",
5656
"babel-register": "^6.18.0",
57-
"bootstrap": "^3.3.7",
5857
"cross-env": "^5.1.0",
5958
"css-loader": "^0.28.4",
6059
"eslint": "^4.3.0",

packages/oui-action-menu/README.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,43 @@
88

99
```html:preview
1010
<oui-action-menu text="Actions">
11-
<oui-action-menu-item text="Action 1 (link)" href="#"></oui-action-menu-item>
12-
<oui-action-menu-item text="Action 2 (button)" on-click="$ctrl.onActionClick()"></oui-action-menu-item>
13-
<oui-action-menu-item text="Action 3 (disabled)" disabled></oui-action-menu-item>
11+
<oui-action-menu-item href="#">Action 1 (link)</oui-action-menu-item>
12+
<oui-action-menu-item on-click="$ctrl.onActionClick()">Action 2 (button)</oui-action-menu-item>
13+
<oui-action-menu-item disabled>Action 3 (disabled)</oui-action-menu-item>
1414
<oui-action-menu-divider></oui-action-menu-divider>
15-
<oui-action-menu-item text="External link" href="#" external></oui-action-menu-item>
15+
<oui-action-menu-item href="#" external>External link</oui-action-menu-item>
1616
</oui-action-menu>
1717
```
1818

1919
### Compact
2020

2121
```html:preview
2222
<oui-action-menu compact>
23-
<oui-action-menu-item text="Action 1 (link)" href="#"></oui-action-menu-item>
24-
<oui-action-menu-item text="Action 2 (button)" on-click="$ctrl.onActionClick()"></oui-action-menu-item>
25-
<oui-action-menu-item text="Action 3 (disabled)" disabled></oui-action-menu-item>
23+
<oui-action-menu-item href="#">Action 1 (link)</oui-action-menu-item>
24+
<oui-action-menu-item on-click="$ctrl.onActionClick()">Action 2 (button)</oui-action-menu-item>
25+
<oui-action-menu-item disabled>Action 3 (disabled)</oui-action-menu-item>
2626
<oui-action-menu-divider></oui-action-menu-divider>
27-
<oui-action-menu-item text="External link" href="#" external></oui-action-menu-item>
27+
<oui-action-menu-item href="#" external>External link</oui-action-menu-item>
2828
</oui-action-menu>
2929
```
3030

3131
### Disabled
3232

3333
```html:preview
3434
<oui-action-menu text="Actions" disabled>
35-
<oui-action-menu-item text="Action 1 (link)" href="#"></oui-action-menu-item>
36-
<oui-action-menu-item text="Action 2 (button)" on-click="$ctrl.onActionClick()"></oui-action-menu-item>
37-
<oui-action-menu-item text="Action 3 (disabled)" disabled></oui-action-menu-item>
35+
<oui-action-menu-item href="#">Action 1 (link)</oui-action-menu-item>
36+
<oui-action-menu-item on-click="$ctrl.onActionClick()">Action 2 (button)</oui-action-menu-item>
37+
<oui-action-menu-item disabled>Action 3 (disabled)</oui-action-menu-item>
3838
<oui-action-menu-divider></oui-action-menu-divider>
39-
<oui-action-menu-item text="External link" href="#" external></oui-action-menu-item>
39+
<oui-action-menu-item href="#" external>External link</oui-action-menu-item>
4040
</oui-action-menu>
4141
4242
<oui-action-menu compact disabled>
43-
<oui-action-menu-item text="Action 1 (link)" href="#"></oui-action-menu-item>
44-
<oui-action-menu-item text="Action 2 (button)" on-click="$ctrl.onActionClick()"></oui-action-menu-item>
45-
<oui-action-menu-item text="Action 3 (disabled)" disabled></oui-action-menu-item>
43+
<oui-action-menu-item href="#">Action 1 (link)</oui-action-menu-item>
44+
<oui-action-menu-item on-click="$ctrl.onActionClick()">Action 2 (button)</oui-action-menu-item>
45+
<oui-action-menu-item disabled>Action 3 (disabled)</oui-action-menu-item>
4646
<oui-action-menu-divider></oui-action-menu-divider>
47-
<oui-action-menu-item text="External link" href="#" external></oui-action-menu-item>
47+
<oui-action-menu-item href="#" external>External link</oui-action-menu-item>
4848
</oui-action-menu>
4949
```
5050

@@ -55,26 +55,26 @@
5555
ng-init="$ctrl.action1 = false; $ctrl.action2 = false; $ctrl.action3 = false">
5656
<oui-action-menu compact>
5757
<oui-action-menu-item
58-
text="Action 1"
5958
aria-label="Server: action 1"
6059
on-click="$ctrl.action1 = true">
60+
Action 1
6161
</oui-action-menu-item>
6262
<oui-action-menu-item
63-
text="Action 2"
6463
aria-label="Server: action 2"
6564
on-click="$ctrl.action2 = true">
65+
Action 2
6666
</oui-action-menu-item>
6767
<oui-action-menu-item
68-
text="Action 3 (disabled)"
6968
aria-label="Server: action 3"
7069
on-click="$ctrl.action3 = true"
7170
disabled>
71+
Action 3 (disabled)
7272
</oui-action-menu-item>
7373
<oui-action-menu-divider></oui-action-menu-divider>
7474
<oui-action-menu-item
75-
text="External link"
7675
href="#"
7776
external>
77+
External link
7878
</oui-action-menu-item>
7979
</oui-action-menu>
8080
</div>
@@ -91,19 +91,22 @@
9191

9292
| Attribute | Type | Binding | One-time binding | Values | Default | Description
9393
| ---- | ---- | ---- | ---- | ---- | ---- | ----
94-
| `text` | string | @ | yes | | | button label
95-
| `aria-label` | string | @? | yes | | | accessibility label
96-
| `align` | string | @? | yes | `start`,`center`,`end` | `center` | menu alignment
97-
| `compact` | boolean | <? | yes | | `false` | use the compact button
98-
| `disabled` | boolean | <? | | | `false` | disable flag
94+
| `text` | string | @ | yes | n/a | n/a | button label
95+
| `aria-label` | string | @? | yes | n/a | n/a | accessibility label
96+
| `align` | string | @? | yes | `start`, `center`, `end` | `center` | menu alignment
97+
| `compact` | boolean | <? | yes | `true`, `false` | `false` | use the compact button
98+
| `disabled` | boolean | <? | no | `true`, `false` | `false` | disable flag
9999

100100
### oui-action-menu-item
101101

102102
| Attribute | Type | Binding | One-time binding | Values | Default | Description
103103
| ---- | ---- | ---- | ---- | ---- | ---- | ----
104-
| `text` | string | @ | | | | button label
105-
| `aria-label` | string | @? | | | | accessibility label
106-
| `href` | string | @? | yes | | | hypertext link (link)
107-
| `disabled` | boolean | <? | | | `false` | disable (button)
108-
| `external` | boolean | @? | yes | | | display external icon (link)
109-
| `on-click` | | &? | | | | on-click handler (button)
104+
| `aria-label` | string | @? | no | n/a | n/a | accessibility label
105+
| `href` | string | @? | yes | n/a | n/a | hypertext link (link)
106+
| `disabled` | boolean | <? | no | `true`, `false` | `false` | disable (button)
107+
| `external` | boolean | @? | yes | `true`, `false` | `false` | display external icon (link)
108+
| `on-click` | function | &? | no | n/a | n/a | on-click handler (button)
109+
110+
#### Deprecated
111+
112+
* `text`: Replaced by transclude value

0 commit comments

Comments
 (0)