@apexcura/ui-components 0.0.9-Beta8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -19,6 +19,9 @@ type ElementType = {
19
19
  fieldNames?: any[];
20
20
  onChange?: (value: string | number | boolean | any[]) => void;
21
21
  dropDownOptions?: any[];
22
+ id?: number;
23
+ thead?: any[];
24
+ tbody?: any[];
22
25
  };
23
26
 
24
27
  interface ElementExecuterProps$3 extends ElementType {
@@ -65,6 +68,6 @@ declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element
65
68
 
66
69
  declare const ButtonElement: () => React$1.JSX.Element;
67
70
 
68
- declare const AddMoreTable: () => React$1.JSX.Element;
71
+ declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
69
72
 
70
73
  export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, MultipleSelectElement, NumberElement, PasswordElement, RadioElement, SelectElement, SingleSelectElement, TextElement, TextareaElement };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,9 @@ type ElementType = {
19
19
  fieldNames?: any[];
20
20
  onChange?: (value: string | number | boolean | any[]) => void;
21
21
  dropDownOptions?: any[];
22
+ id?: number;
23
+ thead?: any[];
24
+ tbody?: any[];
22
25
  };
23
26
 
24
27
  interface ElementExecuterProps$3 extends ElementType {
@@ -65,6 +68,6 @@ declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element
65
68
 
66
69
  declare const ButtonElement: () => React$1.JSX.Element;
67
70
 
68
- declare const AddMoreTable: () => React$1.JSX.Element;
71
+ declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
69
72
 
70
73
  export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, MultipleSelectElement, NumberElement, PasswordElement, RadioElement, SelectElement, SingleSelectElement, TextElement, TextareaElement };
package/dist/index.js CHANGED
@@ -361,63 +361,12 @@ var ButtonElement = () => /* @__PURE__ */ import_react12.default.createElement(i
361
361
  // src/Components/AddMoreTable.tsx
362
362
  var import_react13 = __toESM(require("react"));
363
363
  var import_antd11 = require("antd");
364
- var AddMoreTable = () => {
365
- const expandedRowRender = () => {
366
- const data2 = [];
367
- for (let i = 0; i < 3; ++i) {
368
- data2.push({
369
- key: i.toString(),
370
- date: "2014-12-24 23:12:00",
371
- name: "This is production name",
372
- upgradeNum: "Upgraded: 56"
373
- });
374
- }
375
- return /* @__PURE__ */ import_react13.default.createElement(import_antd11.Table, { dataSource: data2, pagination: false });
376
- };
377
- const columns = [
378
- { title: "Name", dataIndex: "name", key: "name" },
379
- { title: "Platform", dataIndex: "platform", key: "platform" },
380
- { title: "Version", dataIndex: "version", key: "version" },
381
- { title: "Upgraded", dataIndex: "upgradeNum", key: "upgradeNum" },
382
- { title: "Creator", dataIndex: "creator", key: "creator" },
383
- { title: "Date", dataIndex: "createdAt", key: "createdAt" },
384
- { title: "Action", key: "operation", render: () => /* @__PURE__ */ import_react13.default.createElement("a", null, "Publish") }
385
- ];
386
- const data = [];
387
- for (let i = 0; i < 3; ++i) {
388
- data.push({
389
- key: i.toString(),
390
- name: "Screen",
391
- platform: "iOS",
392
- version: "10.3.4.5654",
393
- upgradeNum: 500,
394
- creator: "Jack",
395
- createdAt: "2014-12-24 23:12:00"
396
- });
397
- }
364
+ var AddMoreTable = (props) => {
365
+ const { thead } = props;
366
+ console.log("thead--------", thead);
398
367
  return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(
399
368
  import_antd11.Table,
400
- {
401
- columns,
402
- expandable: { expandedRowRender, defaultExpandedRowKeys: ["0"] },
403
- dataSource: data
404
- }
405
- ), /* @__PURE__ */ import_react13.default.createElement(
406
- import_antd11.Table,
407
- {
408
- columns,
409
- expandable: { expandedRowRender, defaultExpandedRowKeys: ["0"] },
410
- dataSource: data,
411
- size: "middle"
412
- }
413
- ), /* @__PURE__ */ import_react13.default.createElement(
414
- import_antd11.Table,
415
- {
416
- columns,
417
- expandable: { expandedRowRender, defaultExpandedRowKeys: ["0"] },
418
- dataSource: data,
419
- size: "small"
420
- }
369
+ null
421
370
  ));
422
371
  };
423
372
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -314,63 +314,12 @@ var ButtonElement = () => /* @__PURE__ */ React11.createElement(Flex2, { gap: "s
314
314
  // src/Components/AddMoreTable.tsx
315
315
  import React12 from "react";
316
316
  import { Table } from "antd";
317
- var AddMoreTable = () => {
318
- const expandedRowRender = () => {
319
- const data2 = [];
320
- for (let i = 0; i < 3; ++i) {
321
- data2.push({
322
- key: i.toString(),
323
- date: "2014-12-24 23:12:00",
324
- name: "This is production name",
325
- upgradeNum: "Upgraded: 56"
326
- });
327
- }
328
- return /* @__PURE__ */ React12.createElement(Table, { dataSource: data2, pagination: false });
329
- };
330
- const columns = [
331
- { title: "Name", dataIndex: "name", key: "name" },
332
- { title: "Platform", dataIndex: "platform", key: "platform" },
333
- { title: "Version", dataIndex: "version", key: "version" },
334
- { title: "Upgraded", dataIndex: "upgradeNum", key: "upgradeNum" },
335
- { title: "Creator", dataIndex: "creator", key: "creator" },
336
- { title: "Date", dataIndex: "createdAt", key: "createdAt" },
337
- { title: "Action", key: "operation", render: () => /* @__PURE__ */ React12.createElement("a", null, "Publish") }
338
- ];
339
- const data = [];
340
- for (let i = 0; i < 3; ++i) {
341
- data.push({
342
- key: i.toString(),
343
- name: "Screen",
344
- platform: "iOS",
345
- version: "10.3.4.5654",
346
- upgradeNum: 500,
347
- creator: "Jack",
348
- createdAt: "2014-12-24 23:12:00"
349
- });
350
- }
317
+ var AddMoreTable = (props) => {
318
+ const { thead } = props;
319
+ console.log("thead--------", thead);
351
320
  return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
352
321
  Table,
353
- {
354
- columns,
355
- expandable: { expandedRowRender, defaultExpandedRowKeys: ["0"] },
356
- dataSource: data
357
- }
358
- ), /* @__PURE__ */ React12.createElement(
359
- Table,
360
- {
361
- columns,
362
- expandable: { expandedRowRender, defaultExpandedRowKeys: ["0"] },
363
- dataSource: data,
364
- size: "middle"
365
- }
366
- ), /* @__PURE__ */ React12.createElement(
367
- Table,
368
- {
369
- columns,
370
- expandable: { expandedRowRender, defaultExpandedRowKeys: ["0"] },
371
- dataSource: data,
372
- size: "small"
373
- }
322
+ null
374
323
  ));
375
324
  };
376
325
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.9-Beta8",
3
+ "version": "0.0.10",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",