Skip to content

Commit

Permalink
[package][s] latest package build
Browse files Browse the repository at this point in the history
  • Loading branch information
sagargg committed May 31, 2021
1 parent c8f4467 commit 6c318fb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function (_React$Component) {
});

_this.state = {
data: _this.props.data,
data: _this.props.data || [],
schema: Object.assign({}, _this.props.schema)
};
return _this;
Expand Down Expand Up @@ -104,9 +104,9 @@ function (_React$Component) {
};
},
showPagination: false,
defaultPageSize: 100,
defaultPageSize: this.state.data.length,
showPageSizeOptions: false,
minRows: 10
minRows: this.state.data.length
});
}
}]);
Expand Down
5 changes: 5 additions & 0 deletions dist/i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ var _translation2 = _interopRequireDefault(require("./locales/da/translation.jso

var _translation3 = _interopRequireDefault(require("./locales/fr/translation.json"));

var _translation4 = _interopRequireDefault(require("./locales/pt_BR/translation.json"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_i18next.default.use(_i18nextBrowserLanguagedetector.default).use(_reactI18next.initReactI18next) // init i18next
Expand All @@ -41,6 +43,9 @@ _i18next.default.use(_i18nextBrowserLanguagedetector.default).use(_reactI18next.
},
fr: {
translation: _translation3.default
},
pt_BR: {
translation: _translation4.default
}
},
react: {
Expand Down
14 changes: 14 additions & 0 deletions dist/i18n/locales/pt_BR/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"No views available": "Nenhuma visão disponível",
"Your browser doesn't support \"iframe\".": "Seu navegador não suporta \"iframes\".",
"Data view unavailable.": "Visão dos dados indisponível.",
"Download the data.": "Fazer download dos dados.",
"Loading...": "Carregando...",
"Invalid lon/lat values": "Valores long/lat inválidos",
"No geo data found": "Nenhum dado geográfico disponível",
"No geodata on resource": "Nenhum dado geográfico no recurso",
"Previous": "Anterior",
"Next": "Próximo",
"Showing rows": "Mostrando as linhas",
"Out of": "de"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datopian/datapackage-views-js",
"version": "1.4.3",
"version": "1.4.4",
"private": false,
"main": "/dist/App.js",
"module": "/dist/App.js",
Expand Down

0 comments on commit 6c318fb

Please sign in to comment.