Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK 2.1.0 #302

Merged
merged 65 commits into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
c2eb6c5
WEBSDK-479/Switch (#275)
Pedroglp Dec 12, 2018
720f2be
Change goBack and goHome to private methods (#277)
Pedroglp Dec 12, 2018
81ef867
Environment entrypoints (#278)
kaisermann Dec 12, 2018
bf67f3c
Update input events documentation (#279)
jaikme Dec 12, 2018
bc54654
WEBSDK-466/App (#276)
Pedroglp Dec 12, 2018
9ea325a
Update/dialog docs (#271)
jaikme Dec 12, 2018
31c1064
Add events examples (#272)
Pedroglp Dec 12, 2018
221eb0b
WEBSDK-470/Collection (#273)
Pedroglp Dec 12, 2018
1b6f236
WEBSDK-474 (#274)
Pedroglp Dec 12, 2018
a063ab5
Fix disabled param word (#281)
jaikme Dec 13, 2018
11d47ac
task/WEBSDK-487-Renomear-Tabela-Eventos (#282)
Pedroglp Dec 13, 2018
407a03e
Fix event path (#283)
kaisermann Dec 14, 2018
d4fabbf
Update rollup to the latest version 🚀 (#285)
greenkeeper[bot] Dec 17, 2018
4b16371
chore(package): update rollup-plugin-svelte to version 5.0.0 (#284)
greenkeeper[bot] Dec 17, 2018
2dea6c4
Prevent unlimited intervals. Small refactor (#286)
kaisermann Dec 17, 2018
8be742b
Generalize the simulator usage (#280)
kaisermann Dec 18, 2018
b21131e
Update Row with rightLabel prop (#288)
jaikme Dec 18, 2018
ad3d880
Save simulator registry state for every change. Add screen brightness…
kaisermann Dec 19, 2018
60251ef
Add paramater encodeURI (#287)
jacksongarcia Dec 19, 2018
7b47b34
Pass signal parameters to race handlers
Dec 20, 2018
1e5e488
Merge pull request #290 from stone-payments/fix-race-signal-parameters
jacksongarcia Dec 20, 2018
86f241e
Update file-loader in group default to the latest version 🚀 (#291)
greenkeeper[bot] Dec 21, 2018
69b12a6
Encapsulate convertion data in http to string (#295)
jacksongarcia Dec 26, 2018
9494181
Update rollup to the latest version 🚀 (#297)
greenkeeper[bot] Jan 2, 2019
8cfc366
fix(package): update postcss-html to version 0.36.0 (#299)
greenkeeper[bot] Jan 2, 2019
f5765bb
Update postcss-syntax in group default to the latest version 🚀 (#298)
greenkeeper[bot] Jan 2, 2019
cf85775
Refactor simulator drivers (#292)
kaisermann Jan 2, 2019
64757ab
Add PERSISTENT_SETTINGS support
Jan 2, 2019
01d55bb
Refactor control panel (#300)
kaisermann Jan 2, 2019
ff2e54e
Update dependencies
Jan 3, 2019
c628ae0
Fix hasMods condition
Jan 3, 2019
2780fed
Fix row description size
Jan 3, 2019
c173dfc
Add support for async/await to tests
Jan 4, 2019
f9129a1
Fix rollup check of "svelte" property
Jan 4, 2019
ff3415b
Fix visual scroll glitch on pos screen
Jan 4, 2019
88e0549
Split simulator POS and wrapper (#305)
kaisermann Jan 4, 2019
3199dca
Feature/simulator card drag (#306)
kaisermann Jan 7, 2019
32ca4c4
Graceful card return animation
Jan 7, 2019
68722f8
Fix rollup alias
Jan 7, 2019
3307126
Align component visuals
kaisermann Jan 9, 2019
f246929
Fix unused css
Jan 9, 2019
5822052
Fix sourcemap not working on dev envs (#312)
kaisermann Jan 9, 2019
81f6392
Rename cheap to eval
Jan 9, 2019
5ed1c41
Fix gray color
Jan 9, 2019
bc63c40
Don't allow dragging when card is inserted
Jan 9, 2019
48cca23
Set size to full if width=100%
Jan 9, 2019
3f3552f
Force fixed Row top part height
Jan 9, 2019
2025d96
Remove custom line-heights
Jan 9, 2019
ff37ef6
Rollback to bgColor for @mamba/button (#313)
kaisermann Jan 10, 2019
37f65aa
Remove ref css reference
Jan 10, 2019
37bdbc1
Change Row height to 50px (#314)
kaisermann Jan 10, 2019
985f71e
Revert #287 (#316)
kaisermann Jan 10, 2019
ecb866e
Add default-font-size to theme.pcss
Jan 10, 2019
b72fdaf
Update rollup-plugin-serve to the latest version 🚀 (#317)
greenkeeper[bot] Jan 11, 2019
8b96e1b
Remove unused dependencies (#319)
kaisermann Jan 11, 2019
c66f0fd
Postcss theme refactor (#318)
kaisermann Jan 11, 2019
88feb6e
Deprecate @mamba/store package (#320)
kaisermann Jan 11, 2019
6bc695c
Websdk 535 launcher (#321)
jacksongarcia Jan 11, 2019
149ae5e
Websdk 535 launcher (#322)
jacksongarcia Jan 11, 2019
e808068
Format code
Jan 11, 2019
c675c5e
Fix simulator init file
Jan 11, 2019
04d2f20
v2.1.0
Jan 11, 2019
0334cc7
Fix back button changing the route while at the initial screen (#323)
kaisermann Jan 14, 2019
36e7869
Fix simulated stonecode length
Jan 14, 2019
0f53982
Merge branch 'develop' of github.com:stone-payments/pos-mamba-sdk int…
Jan 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.0",
"version": "2.1.0",
"command": {
"publish": {
"ignoreChanges": [
Expand Down
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,44 +53,43 @@
}
},
"devDependencies": {
"@babel/core": "^7.2.0",
"@babel/core": "^7.2.2",
"@gen/rollup-plugin-generate-html": "^0.1.1",
"@mamba/configs": "file:packages/configs",
"@mamba/app": "file:packages/components/App",
"@mamba/configs": "file:packages/configs",
"@mamba/pos": "file:packages/pos",
"@mamba/styles": "file:packages/styles",
"@mamba/switch": "file:packages/components/Switch",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"case": "^1.6.0",
"cross-env": "^5.2.0",
"deasync": "^0.1.14",
"eslint": "^5.10.0",
"globby": "^8.0.1",
"eslint": "^5.11.1",
"html-minifier": "^3.5.21",
"husky": "^1.2.0",
"husky": "^1.3.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^23.6.0",
"jest-canvas-mock": "^1.1.0",
"lerna": "^3.6.0",
"lerna-wizard": "^1.0.9",
"lerna": "^3.8.4",
"lint-staged": "^8.1.0",
"postcss": "^7.0.6",
"postcss": "^7.0.7",
"prettier": "^1.15.3",
"quickenv": "^0.0.6",
"rollup": "^0.67.4",
"rollup": "^1.0.1",
"rollup-plugin-alias": "^1.5.1",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-babel": "^4.2.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-copy": "^0.2.3",
"rollup-plugin-filesize": "^5.0.1",
"rollup-plugin-filesize": "^6.0.0",
"rollup-plugin-livereload": "^0.6.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-serve": "^0.6.0",
"rollup-plugin-svelte": "^4.4.0",
"rollup-plugin-serve": "^1.0.0",
"rollup-plugin-svelte": "^5.0.1",
"rollup-plugin-url": "^2.1.0",
"rollup-plugin-virtual": "^1.0.1",
"stylelint": "^9.9.0",
"svelte": "^2.15.3",
"svelte": "^2.16.0",
"svelte-preprocess": "^2.4.3"
}
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mamba/cli",
"version": "2.0.0",
"version": "2.1.0",
"description": "Mamba CLI",
"author": "Stone Payments - Mamba Team",
"contributors": [
Expand Down
33 changes: 16 additions & 17 deletions packages/components/App/App.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,11 @@
/** Prevent default back/enter button behaviour */
_onKeydown(e) {
/* istanbul ignore next */
if (
!__TEST__ &&
__BROWSER__ &&
!e.path.find(node => node.id === 'app-root')
) {
return;
if (!__TEST__ && __BROWSER__) {
const eventPath = e.path || (e.composedPath && e.composedPath());
if (eventPath && !eventPath.find(node => node.id === 'app-root')) {
return;
}
}

const keyName = Keyboard.getKeyName(e.keyCode);
Expand All @@ -158,14 +157,16 @@
* allow it to pass through.
* */
/* istanbul ignore next */
if (
!__TEST__ &&
__BROWSER__ &&
!e.path.find(node => node.id === 'app-root') &&
(e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') &&
!Keyboard.isActionKey(keyCode)
) {
return;
if (!__TEST__ && __BROWSER__) {
const eventPath = e.path || (e.composedPath && e.composedPath());
if (
eventPath &&
!eventPath.find(node => node.id === 'app-root') &&
(e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') &&
!Keyboard.isActionKey(keyCode)
) {
return;
}
}

const keyName = Keyboard.getKeyName(keyCode);
Expand Down Expand Up @@ -200,7 +201,7 @@
/** Guarantees that the 'back' button is enabled and navigable is enabled */
if (Keyboard.isBackspaceEnabled() && this.get().navigable.back) {
e.preventDefault();
if (this.root.router && this.root.router.get().path !== '/') {
if (this.root.router && this.root.router.get().context.path !== '/') {
this.root.router.back();
}
}
Expand Down Expand Up @@ -257,8 +258,6 @@
</script>

<style type="text/postcss">
@import '@mamba/styles/theme.pcss';

:global(#app-root) {
background-color: $app-bg-color;

Expand Down
17 changes: 16 additions & 1 deletion packages/components/App/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,24 @@ O componente `Keystroke` associa um evento de tecla á uma tecla específica e o

#### Parâmetros

`<Keystroke ...props on:keystroke="..."/>`
`<Keystroke ...props/>`

| Parâmetro | Descrição | Tipo | Padrão |
|-------------|--------------------------------------------------------|-----------------|------------|
| key | Define a tecla associada ao handler | `string` | `null` |
| active | Define ser o handler deve estar ativo ou não | `boolean` | `true` |

### Eventos

`<Keystroke ... on:event="..."/>`

| Eventos | Disparado quando ... | Tipo |
|-------------|--------------------------------------|-------------------------------------------------------------------------------|
| keystroke | Uma das teclas do POS é pressionada |`function`([keyup](https://developer.mozilla.org/pt-BR/docs/Web/Events/keyup)) |

#### Exemplo:

Chama `myMethod(keyup)` passando como parâmetro o evento de keyup quando a tecla especificada em `key` é pressionada.
```html
<Keystroke key="back" on:keystroke="myMethod(event)" />
```
6 changes: 3 additions & 3 deletions packages/components/App/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mamba/app",
"version": "2.0.0",
"version": "2.1.0",
"svelte": "App.html",
"author": "Stone Payments - Mamba Team",
"contributors": [
Expand All @@ -14,8 +14,8 @@
"start": "rollup -c ../../../tools/rollup/config.component.watch.js -w"
},
"devDependencies": {
"@mamba/pos": "^2.0.0",
"@mamba/styles": "^2.0.0"
"@mamba/pos": "^2.1.0",
"@mamba/styles": "^2.1.0"
},
"peerDependencies": {
"@mamba/pos": "^2.0.0"
Expand Down
9 changes: 4 additions & 5 deletions packages/components/AppBar/AppBar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<header class="appbar" {style}>
{#if _showBack}
<div class="icon-left" on:click="goBack()">
<div class="icon-left" on:click="_goBack()">
<Icon symbol="chevron-left" width="10px" color={textColor} />
</div>
{/if}
Expand All @@ -10,7 +10,7 @@
{/if}

{#if _showHome}
<div class="icon-right" on:click="goHome()">
<div class="icon-right" on:click="_goHome()">
<Icon symbol={_isAtHome ? 'home' : 'app-home'} color={textColor}/>
</div>
{/if}
Expand Down Expand Up @@ -85,7 +85,7 @@
}
},
methods: {
goHome() {
_goHome() {
const { _isAtHome } = this.get();
if (_isAtHome) {
return this.root.close();
Expand All @@ -96,7 +96,7 @@
this.root.router.go('/');
}
},
goBack() {
_goBack() {
/* istanbul ignore else */
if (this.root.router) {
this.root.router.back();
Expand All @@ -108,7 +108,6 @@

<style type="text/postcss">
@import '@mamba/styles/settings.pcss';
@import '@mamba/styles/theme.pcss';

$item-horizontal-margin: 8px;

Expand Down
6 changes: 2 additions & 4 deletions packages/components/AppBar/example/Example.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ <h4>Colorida com Título</h4>
</div>

<script>
import MambaStore from '@mamba/store';

const store = MambaStore();
import { Store } from 'svelte/store.js';

export default {
components: {
AppBar: '@mamba/appbar/AppBar.html',
},
store: () => store,
store: () => new Store(),
};
</script>

Expand Down
12 changes: 6 additions & 6 deletions packages/components/AppBar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mamba/appbar",
"version": "2.0.0",
"version": "2.1.0",
"svelte": "AppBar.html",
"author": "Stone Payments - Mamba Team",
"contributors": [
Expand All @@ -15,14 +15,14 @@
"start": "rollup -c ../../../tools/rollup/config.component.watch.js -w"
},
"dependencies": {
"@mamba/icon": "^2.0.0",
"@mamba/store": "^2.0.0"
"@mamba/icon": "^2.1.0"
},
"peerDependencies": {
"@mamba/styles": "^2.0.0"
"@mamba/styles": "^2.0.0",
"svelte": "^2.16.0"
},
"devDependencies": {
"@mamba/pos": "^2.0.0",
"@mamba/styles": "^2.0.0"
"@mamba/pos": "^2.1.0",
"@mamba/styles": "^2.1.0"
}
}
6 changes: 3 additions & 3 deletions packages/components/Barcode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mamba/barcode",
"version": "2.0.0",
"version": "2.1.0",
"svelte": "Barcode.html",
"author": "Stone Payments - Mamba Team",
"contributors": [
Expand All @@ -15,11 +15,11 @@
"start": "rollup -c ../../../tools/rollup/config.component.watch.js -w"
},
"dependencies": {
"@mamba/styles": "^2.0.0",
"@mamba/styles": "^2.1.0",
"jsbarcode": "^3.11.0"
},
"gitHead": "7118f44e933d2f656166a80822c0b3c1001e6a33",
"devDependencies": {
"@mamba/pos": "^2.0.0"
"@mamba/pos": "^2.1.0"
}
}
Loading