@apexcura/ui-components 0.0.9-Beta7 → 0.0.9-Beta9
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +37 -0
- package/dist/index.mjs +36 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -19,6 +19,7 @@ type ElementType = {
|
|
|
19
19
|
fieldNames?: any[];
|
|
20
20
|
onChange?: (value: string | number | boolean | any[]) => void;
|
|
21
21
|
dropDownOptions?: any[];
|
|
22
|
+
id?: number;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
interface ElementExecuterProps$3 extends ElementType {
|
|
@@ -65,4 +66,6 @@ declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element
|
|
|
65
66
|
|
|
66
67
|
declare const ButtonElement: () => React$1.JSX.Element;
|
|
67
68
|
|
|
68
|
-
|
|
69
|
+
declare const AddMoreTable: () => React$1.JSX.Element;
|
|
70
|
+
|
|
71
|
+
export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, MultipleSelectElement, NumberElement, PasswordElement, RadioElement, SelectElement, SingleSelectElement, TextElement, TextareaElement };
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ type ElementType = {
|
|
|
19
19
|
fieldNames?: any[];
|
|
20
20
|
onChange?: (value: string | number | boolean | any[]) => void;
|
|
21
21
|
dropDownOptions?: any[];
|
|
22
|
+
id?: number;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
interface ElementExecuterProps$3 extends ElementType {
|
|
@@ -65,4 +66,6 @@ declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element
|
|
|
65
66
|
|
|
66
67
|
declare const ButtonElement: () => React$1.JSX.Element;
|
|
67
68
|
|
|
68
|
-
|
|
69
|
+
declare const AddMoreTable: () => React$1.JSX.Element;
|
|
70
|
+
|
|
71
|
+
export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, MultipleSelectElement, NumberElement, PasswordElement, RadioElement, SelectElement, SingleSelectElement, TextElement, TextareaElement };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
AddMoreTable: () => AddMoreTable,
|
|
33
34
|
ButtonElement: () => ButtonElement,
|
|
34
35
|
CheckboxElement: () => CheckboxElement,
|
|
35
36
|
CkEditor: () => CkEditor,
|
|
@@ -356,8 +357,44 @@ var MultipleSelectElement = (props) => {
|
|
|
356
357
|
var import_react12 = __toESM(require("react"));
|
|
357
358
|
var import_antd10 = require("antd");
|
|
358
359
|
var ButtonElement = () => /* @__PURE__ */ import_react12.default.createElement(import_antd10.Flex, { gap: "small" }, /* @__PURE__ */ import_react12.default.createElement(import_antd10.Button, { type: "primary" }, "Primary Button"));
|
|
360
|
+
|
|
361
|
+
// src/Components/AddMoreTable.tsx
|
|
362
|
+
var import_react13 = __toESM(require("react"));
|
|
363
|
+
var import_antd11 = require("antd");
|
|
364
|
+
var AddMoreTable = () => {
|
|
365
|
+
const columns = [
|
|
366
|
+
{ title: "Name", dataIndex: "name", key: "name" },
|
|
367
|
+
{ title: "Platform", dataIndex: "platform", key: "platform" },
|
|
368
|
+
{ title: "Version", dataIndex: "version", key: "version" },
|
|
369
|
+
{ title: "Upgraded", dataIndex: "upgradeNum", key: "upgradeNum" },
|
|
370
|
+
{ title: "Creator", dataIndex: "creator", key: "creator" },
|
|
371
|
+
{ title: "Date", dataIndex: "createdAt", key: "createdAt" },
|
|
372
|
+
{ title: "Action", key: "operation", render: () => /* @__PURE__ */ import_react13.default.createElement("a", null, "Publish") }
|
|
373
|
+
];
|
|
374
|
+
const data = [];
|
|
375
|
+
for (let i = 0; i < 3; ++i) {
|
|
376
|
+
data.push({
|
|
377
|
+
key: i.toString(),
|
|
378
|
+
name: "Screen",
|
|
379
|
+
platform: "iOS",
|
|
380
|
+
version: "10.3.4.5654",
|
|
381
|
+
upgradeNum: 500,
|
|
382
|
+
creator: "Jack",
|
|
383
|
+
createdAt: "2014-12-24 23:12:00"
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(
|
|
387
|
+
import_antd11.Table,
|
|
388
|
+
{
|
|
389
|
+
columns,
|
|
390
|
+
expandable: { defaultExpandedRowKeys: ["0"] },
|
|
391
|
+
dataSource: data
|
|
392
|
+
}
|
|
393
|
+
));
|
|
394
|
+
};
|
|
359
395
|
// Annotate the CommonJS export names for ESM import in node:
|
|
360
396
|
0 && (module.exports = {
|
|
397
|
+
AddMoreTable,
|
|
361
398
|
ButtonElement,
|
|
362
399
|
CheckboxElement,
|
|
363
400
|
CkEditor,
|
package/dist/index.mjs
CHANGED
|
@@ -310,7 +310,43 @@ var MultipleSelectElement = (props) => {
|
|
|
310
310
|
import React11 from "react";
|
|
311
311
|
import { Button as Button2, Flex as Flex2 } from "antd";
|
|
312
312
|
var ButtonElement = () => /* @__PURE__ */ React11.createElement(Flex2, { gap: "small" }, /* @__PURE__ */ React11.createElement(Button2, { type: "primary" }, "Primary Button"));
|
|
313
|
+
|
|
314
|
+
// src/Components/AddMoreTable.tsx
|
|
315
|
+
import React12 from "react";
|
|
316
|
+
import { Table } from "antd";
|
|
317
|
+
var AddMoreTable = () => {
|
|
318
|
+
const columns = [
|
|
319
|
+
{ title: "Name", dataIndex: "name", key: "name" },
|
|
320
|
+
{ title: "Platform", dataIndex: "platform", key: "platform" },
|
|
321
|
+
{ title: "Version", dataIndex: "version", key: "version" },
|
|
322
|
+
{ title: "Upgraded", dataIndex: "upgradeNum", key: "upgradeNum" },
|
|
323
|
+
{ title: "Creator", dataIndex: "creator", key: "creator" },
|
|
324
|
+
{ title: "Date", dataIndex: "createdAt", key: "createdAt" },
|
|
325
|
+
{ title: "Action", key: "operation", render: () => /* @__PURE__ */ React12.createElement("a", null, "Publish") }
|
|
326
|
+
];
|
|
327
|
+
const data = [];
|
|
328
|
+
for (let i = 0; i < 3; ++i) {
|
|
329
|
+
data.push({
|
|
330
|
+
key: i.toString(),
|
|
331
|
+
name: "Screen",
|
|
332
|
+
platform: "iOS",
|
|
333
|
+
version: "10.3.4.5654",
|
|
334
|
+
upgradeNum: 500,
|
|
335
|
+
creator: "Jack",
|
|
336
|
+
createdAt: "2014-12-24 23:12:00"
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
|
|
340
|
+
Table,
|
|
341
|
+
{
|
|
342
|
+
columns,
|
|
343
|
+
expandable: { defaultExpandedRowKeys: ["0"] },
|
|
344
|
+
dataSource: data
|
|
345
|
+
}
|
|
346
|
+
));
|
|
347
|
+
};
|
|
313
348
|
export {
|
|
349
|
+
AddMoreTable,
|
|
314
350
|
ButtonElement,
|
|
315
351
|
CheckboxElement,
|
|
316
352
|
CkEditor,
|