Socket
Socket
Sign inDemoInstall

@uxf/data-grid

Package Overview
Dependencies
Maintainers
1
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxf/data-grid - npm Package Compare versions

Comparing version 11.0.0-beta.14 to 11.0.0-beta.15

2

_story-utils/loader.js

@@ -32,3 +32,3 @@ "use strict";

count: filteredData.length,
totalCount: filteredData.length,
totalCount: data_1.data.length,
result: filteredData.slice(page * perPage, page * perPage + perPage),

@@ -35,0 +35,0 @@ };

@@ -26,3 +26,3 @@ "use strict";

function DataGrid(props) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
return (react_1.default.createElement(react_1.default.Fragment, null,

@@ -39,6 +39,6 @@ react_1.default.createElement("div", { className: (0, cx_1.cx)("uxf-data-grid", props.noBorder && classes_1.NO_BORDER_CLASS, props.className) },

react_1.default.createElement(rows_per_page_select_1.RowsPerPageSelect, { state: props.state, actions: props.actions }),
react_1.default.createElement(row_counts_1.RowCounts, { state: props.state, totalCount: (_p = (_o = props.data) === null || _o === void 0 ? void 0 : _o.totalCount) !== null && _p !== void 0 ? _p : 0 }),
react_1.default.createElement(pagination_1.Pagination, { state: props.state, actions: props.actions, count: (_r = (_q = props.data) === null || _q === void 0 ? void 0 : _q.count) !== null && _r !== void 0 ? _r : 0 }))),
react_1.default.createElement(selected_rows_toolbar_1.SelectedRowsToolbar, { state: props.state, actions: props.actions, Actions: (_t = (_s = props.ui) === null || _s === void 0 ? void 0 : _s.SelectedRowsToolbarActions) !== null && _t !== void 0 ? _t : DefaultSelectedRowsToolbarActions })));
react_1.default.createElement(row_counts_1.RowCounts, { state: props.state, count: (_p = (_o = props.data) === null || _o === void 0 ? void 0 : _o.count) !== null && _p !== void 0 ? _p : 0, totalCount: (_r = (_q = props.data) === null || _q === void 0 ? void 0 : _q.totalCount) !== null && _r !== void 0 ? _r : 0 }),
react_1.default.createElement(pagination_1.Pagination, { state: props.state, actions: props.actions, count: (_t = (_s = props.data) === null || _s === void 0 ? void 0 : _s.count) !== null && _t !== void 0 ? _t : 0 }))),
react_1.default.createElement(selected_rows_toolbar_1.SelectedRowsToolbar, { state: props.state, actions: props.actions, Actions: (_v = (_u = props.ui) === null || _u === void 0 ? void 0 : _u.SelectedRowsToolbarActions) !== null && _v !== void 0 ? _v : DefaultSelectedRowsToolbarActions })));
}
exports.DataGrid = DataGrid;
{
"name": "@uxf/data-grid",
"version": "11.0.0-beta.14",
"version": "11.0.0-beta.15",
"description": "UXF DataGrid",

@@ -5,0 +5,0 @@ "homepage": "https://gitlab.com/uxf-npm/data-grid#readme",

@@ -6,3 +6,4 @@ import React from "react";

totalCount: number;
count: number;
}
export declare function RowCounts(props: RowCountsProps): React.JSX.Element;

@@ -7,2 +7,3 @@ "use strict";

exports.RowCounts = void 0;
const show_1 = require("@uxf/core/components/show");
const react_1 = __importDefault(require("react"));

@@ -17,4 +18,9 @@ function RowCounts(props) {

" z ",
props.totalCount));
props.count,
" ",
react_1.default.createElement(show_1.Show, { when: props.count !== props.totalCount },
"(celkem ",
props.totalCount,
")")));
}
exports.RowCounts = RowCounts;

@@ -13,4 +13,4 @@ "use strict";

const { state } = (0, use_data_grid_control_1.useDataGridControl)({ schema: schema_1.schema });
return react_1.default.createElement(row_counts_1.RowCounts, { state: state, totalCount: 150 });
return react_1.default.createElement(row_counts_1.RowCounts, { state: state, totalCount: 150, count: 100 });
}
exports.Default = Default;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc