Skip to content

Commit

Permalink
Merge 56bb5f3 into 3529f71
Browse files Browse the repository at this point in the history
  • Loading branch information
leofavre committed Sep 27, 2018
2 parents 3529f71 + 56bb5f3 commit 670686f
Show file tree
Hide file tree
Showing 73 changed files with 1,761 additions and 912 deletions.
19 changes: 0 additions & 19 deletions .esdoc.json

This file was deleted.

1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @biancarosa @caiomdias @italomarcel @joselitojunior1 @leofavre
File renamed without changes.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<a name="1.6.0"></a>
## 1.6.0 (2018-09-27)

* feat: Brings Login component from `sling-web`
* feat: Brings List component from `sling-web`

<a name="1.5.0"></a>
## 1.5.0 (2018-09-25)

Expand Down
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "1.5.0"
"version": "1.6.0"
}
1,490 changes: 742 additions & 748 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sling-framework",
"description": "Sling Web Framework main repo.",
"version": "1.5.0",
"version": "1.6.0",
"private": true,
"flat": true,
"scripts": {
Expand Down Expand Up @@ -39,7 +39,6 @@
"eslint": "^4.19.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.9.0",
"faker": "^4.1.0",
"fs-extra": "^5.0.0",
"globby": "^8.0.1",
"html-replace-webpack-plugin": "^2.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/sling-assets/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# sling-assets

TODO: Describe sling-assets here.
This package is for store static content on the `sling-web-framework`. The files should never be used directly, only inside others `sling-web-framework` components.
4 changes: 2 additions & 2 deletions packages/sling-assets/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "sling-assets",
"version": "1.5.0",
"version": "1.6.0",
"description": "Sling Assets",
"author": "Stone Pagamentos",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"license": "Apache-2.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/sling-framework/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "sling-framework",
"version": "1.5.0",
"description": "",
"version": "1.6.0",
"description": "Sling Framework",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
"dependencies": {
"sling-helpers": "^1.5.0"
"sling-helpers": "^1.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/sling-helpers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/sling-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "sling-helpers",
"version": "1.5.0",
"description": "",
"version": "1.6.0",
"description": "Sling Helpers",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
Expand Down
5 changes: 2 additions & 3 deletions packages/sling-helpers/src/dom/makeRequest.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sinon from 'sinon';
import faker from 'faker';
import { makeRequest } from './makeRequest.js';

const mockFetch = response => () => Promise.resolve(response);
Expand All @@ -11,8 +10,8 @@ const mockFetchReturningParams = (url, params) => Promise.resolve({
json() { return { url, params }; },
});

const fakeUrl = faker.internet.url();
const fakeUserName = faker.internet.userName();
const fakeUrl = 'http://sling-web.com/';
const fakeUserName = 'Sling Web';

describe('makeRequest', () => {
it('Should have a default error handler that just returns the response ' +
Expand Down
10 changes: 5 additions & 5 deletions packages/sling-web-component-brand-icon/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "sling-web-component-brand-icon",
"version": "1.5.0",
"description": "",
"version": "1.6.0",
"description": "Sling Brand Icon",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
"dependencies": {
"sling-framework": "^1.5.0",
"sling-helpers": "^1.5.0"
"sling-framework": "^1.6.0",
"sling-helpers": "^1.6.0"
}
}
10 changes: 5 additions & 5 deletions packages/sling-web-component-button/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "sling-web-component-button",
"version": "1.5.0",
"description": "",
"version": "1.6.0",
"description": "Sling Button",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
"dependencies": {
"sling-framework": "^1.5.0",
"sling-helpers": "^1.5.0"
"sling-framework": "^1.6.0",
"sling-helpers": "^1.6.0"
}
}
8 changes: 4 additions & 4 deletions packages/sling-web-component-calendar/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# sling-web-component-calendar
`Sling-web-component-calendar` is a simple, customizable calendar,
receives an Array with data to be shown
according to the configuration also passed to the component.
# sling-web-component-calendar

The calendar component is a simple and customizable calendar that receives an array with data to be shown according to the configuration passed.


## Install
```
Expand Down
2 changes: 1 addition & 1 deletion packages/sling-web-component-calendar/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/sling-web-component-calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "sling-web-component-calendar",
"version": "1.5.0",
"description": "Sling Calendar component",
"version": "1.6.0",
"description": "Sling Calendar",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
"dependencies": {
"moment": "^2.22.2",
"sling-framework": "^1.5.0",
"sling-helpers": "^1.5.0",
"sling-web-component-paginator": "^1.5.0"
"sling-framework": "^1.6.0",
"sling-helpers": "^1.6.0",
"sling-web-component-paginator": "^1.6.0"
}
}
2 changes: 0 additions & 2 deletions packages/sling-web-component-card/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# sling-web-component-card

Sling Card Basic Component.

## Install

```
Expand Down
10 changes: 5 additions & 5 deletions packages/sling-web-component-card/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "sling-web-component-card",
"version": "1.5.0",
"description": "",
"version": "1.6.0",
"description": "Sling Card",
"module": "src/index.js",
"main": "dist/cjs/es6/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
"dependencies": {
"sling-framework": "^1.5.0",
"sling-helpers": "^1.5.0"
"sling-framework": "^1.6.0",
"sling-helpers": "^1.6.0"
}
}
2 changes: 2 additions & 0 deletions packages/sling-web-component-form/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dev/
61 changes: 61 additions & 0 deletions packages/sling-web-component-form/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# sling-web-component-form

## Install

```
npm instal sling-web-component-form
```

## Tag

```HTML
<sling-form></sling-form>
```

## Dependencies

### Required

* **sling-framework**
* **sling-helpers**

### Recommended

* **sling-web-component-button**
* **sling-web-component-input**

## Attributes and properties

|Name|Type|Default Values|ReflectToAttribute|Observer|callSdk|
|:--|:--|:--|:--:|:--|:--:|
|formdata|Object|**false**|:x:|:heavy_check_mark:|
|validation|Array|**[]**|:x:|:x:|

### Description

|Name|Description|
|:---|:---|
|formdata|Object that contains the data from the form|
|validation|A list of `sling-helper` methods for validations|

## Events
* **formsubmit**
**Description:** Event triggered every time that the form is submitted.

* **formupdate**
**Description:** Event triggered when any value of the form is changed.

### Use

Use it like you are using a `<form>` tag. You can put anything form-related inside of it.

```HTML
<sling-form>
<sling-input name="name" type="text" label="Name"></sling-input>
<!-- ... -->
</sling-form>
```

## Examples
All component examples can be emulated using the `npm start sling-web-component-form` command.

53 changes: 53 additions & 0 deletions packages/sling-web-component-form/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions packages/sling-web-component-form/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "sling-web-component-form",
"version": "1.6.0",
"description": "Sling Form",
"module": "src/index.js",
"main": "dist/cjs/es5/index.js",
"jsnext:main": "dist/es/es6/index.js",
"browser": "dist/iife/es6/index.js",
"author": "Stone Pagamentos",
"dependencies": {
"sling-framework": "^1.6.0",
"sling-helpers": "^1.6.0",
"sling-web-component-button": "^1.6.0",
"sling-web-component-input": "^1.6.0"
}
}
9 changes: 9 additions & 0 deletions packages/sling-web-component-form/public/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import url('https://fonts.googleapis.com/css?family=Heebo:400,500');

body {
font-family: 'Heebo', sans-serif;
}

body > * {
margin: 20px;
}
Loading

0 comments on commit 670686f

Please sign in to comment.