@progress/kendo-themes-html 6.2.1-dev.0 → 6.2.1-dev.44
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/action-sheet/tests/action-sheet-data-table.js +382 -2
- package/dist/action-sheet/tests/action-sheet-data-table.js.map +4 -4
- package/dist/dropdowngrid/dropdowngrid.js +1 -1
- package/dist/dropdowngrid/dropdowngrid.js.map +2 -2
- package/dist/dropdowngrid/tests/dropdowngrid-flat.js +1 -1
- package/dist/dropdowngrid/tests/dropdowngrid-flat.js.map +2 -2
- package/dist/dropdowngrid/tests/dropdowngrid-outline.js +1 -1
- package/dist/dropdowngrid/tests/dropdowngrid-outline.js.map +2 -2
- package/dist/dropdowngrid/tests/dropdowngrid.js +1 -1
- package/dist/dropdowngrid/tests/dropdowngrid.js.map +2 -2
- package/dist/fab/fab-item.js +104 -0
- package/dist/fab/fab-item.js.map +7 -0
- package/dist/fab/fab-items.js +64 -0
- package/dist/fab/fab-items.js.map +7 -0
- package/dist/fab/tests/fab-items.js +51 -4
- package/dist/fab/tests/fab-items.js.map +4 -4
- package/dist/fab/tests/fab-position.js +6 -0
- package/dist/fab/tests/fab-position.js.map +4 -4
- package/dist/fab/tests/fab-size.js +6 -0
- package/dist/fab/tests/fab-size.js.map +4 -4
- package/dist/fab/tests/fab-states.js +6 -0
- package/dist/fab/tests/fab-states.js.map +4 -4
- package/dist/fab/tests/fab.js +6 -0
- package/dist/fab/tests/fab.js.map +4 -4
- package/dist/grid/tests/grid-rows-resizing.js +1131 -0
- package/dist/grid/tests/grid-rows-resizing.js.map +7 -0
- package/dist/index.js +711 -184
- package/dist/index.js.map +4 -4
- package/dist/popup/tests/popup-dropdowngrid.js +508 -0
- package/dist/popup/tests/popup-dropdowngrid.js.map +7 -0
- package/dist/table/data-table.js +97 -0
- package/dist/table/data-table.js.map +7 -0
- package/dist/table/table-body.js +67 -0
- package/dist/table/table-body.js.map +7 -0
- package/dist/table/table-footer.js +66 -0
- package/dist/table/table-footer.js.map +7 -0
- package/dist/table/table-group-header.js +66 -0
- package/dist/table/table-group-header.js.map +7 -0
- package/dist/table/table-group-row.js +66 -0
- package/dist/table/table-group-row.js.map +7 -0
- package/dist/table/table-group-sticky-header.js +66 -0
- package/dist/table/table-group-sticky-header.js.map +7 -0
- package/dist/table/table-header.js +115 -0
- package/dist/table/table-header.js.map +7 -0
- package/dist/table/table-list-group-row.js +66 -0
- package/dist/table/table-list-group-row.js.map +7 -0
- package/dist/table/table-list-row.js +78 -0
- package/dist/table/table-list-row.js.map +7 -0
- package/dist/table/table-list-td.js +103 -0
- package/dist/table/table-list-td.js.map +7 -0
- package/dist/table/table-list-th.js +103 -0
- package/dist/table/table-list-th.js.map +7 -0
- package/dist/table/table-list.js +97 -0
- package/dist/table/table-list.js.map +7 -0
- package/dist/table/table-row.js +78 -0
- package/dist/table/table-row.js.map +7 -0
- package/dist/table/table-tbody.js +66 -0
- package/dist/table/table-tbody.js.map +7 -0
- package/dist/table/table-td.js +105 -0
- package/dist/table/table-td.js.map +7 -0
- package/dist/table/table-tfoot.js +66 -0
- package/dist/table/table-tfoot.js.map +7 -0
- package/dist/table/table-th.js +105 -0
- package/dist/table/table-th.js.map +7 -0
- package/dist/table/table-thead.js +66 -0
- package/dist/table/table-thead.js.map +7 -0
- package/dist/table/table.js +94 -0
- package/dist/table/table.js.map +7 -0
- package/dist/table/tests/table-data-sizes.js +392 -1
- package/dist/table/tests/table-data-sizes.js.map +4 -4
- package/dist/table/tests/table-list-jquery.js +409 -1
- package/dist/table/tests/table-list-jquery.js.map +4 -4
- package/dist/table/tests/table-list-sizes.js +453 -1
- package/dist/table/tests/table-list-sizes.js.map +4 -4
- package/dist/table/tests/table-list-virtual.js +373 -1
- package/dist/table/tests/table-list-virtual.js.map +4 -4
- package/dist/table/tests/table-native-sizes.js +335 -1
- package/dist/table/tests/table-native-sizes.js.map +4 -4
- package/dist/table/tests/table-native-states.js +299 -1
- package/dist/table/tests/table-native-states.js.map +4 -4
- package/package.json +2 -2
- package/src/action-sheet/tests/action-sheet-data-table.tsx +119 -144
- package/src/dropdowngrid/dropdowngrid.tsx +1 -1
- package/src/fab/fab-item.tsx +48 -0
- package/src/fab/fab-items.tsx +32 -0
- package/src/fab/index.ts +2 -0
- package/src/fab/tests/fab-items.tsx +65 -250
- package/src/grid/tests/grid-rows-resizing.tsx +202 -0
- package/src/index.ts +3 -0
- package/src/popup/tests/popup-dropdowngrid.tsx +163 -0
- package/src/table/data-table.tsx +37 -0
- package/src/table/index.ts +19 -0
- package/src/table/table-body.tsx +29 -0
- package/src/table/table-footer.tsx +28 -0
- package/src/table/table-group-header.tsx +28 -0
- package/src/table/table-group-row.tsx +28 -0
- package/src/table/table-group-sticky-header.tsx +28 -0
- package/src/table/table-header.tsx +31 -0
- package/src/table/table-list-group-row.tsx +28 -0
- package/src/table/table-list-row.tsx +45 -0
- package/src/table/table-list-td.tsx +38 -0
- package/src/table/table-list-th.tsx +38 -0
- package/src/table/table-list.tsx +37 -0
- package/src/table/table-row.tsx +45 -0
- package/src/table/table-tbody.tsx +28 -0
- package/src/table/table-td.tsx +39 -0
- package/src/table/table-tfoot.tsx +28 -0
- package/src/table/table-th.tsx +39 -0
- package/src/table/table-thead.tsx +28 -0
- package/src/table/table.tsx +33 -0
- package/src/table/tests/table-data-sizes.tsx +205 -228
- package/src/table/tests/table-list-jquery.tsx +187 -204
- package/src/table/tests/table-list-sizes.tsx +178 -189
- package/src/table/tests/table-list-virtual.tsx +76 -79
- package/src/table/tests/table-native-sizes.tsx +157 -168
- package/src/table/tests/table-native-states.tsx +62 -61
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined")
|
|
12
|
+
return require.apply(this, arguments);
|
|
13
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
// src/table/table-tbody.tsx
|
|
29
|
+
var React = __toESM(__require("react"));
|
|
30
|
+
|
|
31
|
+
// src/utils/classNames.ts
|
|
32
|
+
var classNames = (...args) => {
|
|
33
|
+
const result = {};
|
|
34
|
+
const addLeafKeys = (arg) => {
|
|
35
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
36
|
+
result[key] = arg[key];
|
|
37
|
+
}) : result[arg] = true;
|
|
38
|
+
};
|
|
39
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
40
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
41
|
+
);
|
|
42
|
+
addKeys(args);
|
|
43
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/table/table-tbody.tsx
|
|
47
|
+
var TableTbody = class extends React.Component {
|
|
48
|
+
render() {
|
|
49
|
+
const {
|
|
50
|
+
children,
|
|
51
|
+
className
|
|
52
|
+
} = this.props;
|
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
|
54
|
+
"tbody",
|
|
55
|
+
{
|
|
56
|
+
className: classNames(
|
|
57
|
+
className,
|
|
58
|
+
"k-table-tbody"
|
|
59
|
+
)
|
|
60
|
+
},
|
|
61
|
+
children
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
})();
|
|
66
|
+
//# sourceMappingURL=table-tbody.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-tbody.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableTbodyProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableTbody extends React.Component<TableTbodyProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <tbody\n className={classNames(\n className,\n 'k-table-tbody'\n )}>\n {children}\n </tbody>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,aAAN,cAA+B,gBAA2B;AAAA,IAE7D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b ||= {})
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
26
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
27
|
+
}) : x)(function(x) {
|
|
28
|
+
if (typeof require !== "undefined")
|
|
29
|
+
return require.apply(this, arguments);
|
|
30
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
31
|
+
});
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
var __copyProps = (to, from, except, desc) => {
|
|
45
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
46
|
+
for (let key of __getOwnPropNames(from))
|
|
47
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
48
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
49
|
+
}
|
|
50
|
+
return to;
|
|
51
|
+
};
|
|
52
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
53
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
54
|
+
mod
|
|
55
|
+
));
|
|
56
|
+
|
|
57
|
+
// src/table/table-td.tsx
|
|
58
|
+
var React = __toESM(__require("react"));
|
|
59
|
+
|
|
60
|
+
// src/utils/classNames.ts
|
|
61
|
+
var classNames = (...args) => {
|
|
62
|
+
const result = {};
|
|
63
|
+
const addLeafKeys = (arg) => {
|
|
64
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
65
|
+
result[key] = arg[key];
|
|
66
|
+
}) : result[arg] = true;
|
|
67
|
+
};
|
|
68
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
69
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
70
|
+
);
|
|
71
|
+
addKeys(args);
|
|
72
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/table/table-td.tsx
|
|
76
|
+
var TableTd = class extends React.Component {
|
|
77
|
+
render() {
|
|
78
|
+
const _a = this.props, {
|
|
79
|
+
children,
|
|
80
|
+
className,
|
|
81
|
+
text,
|
|
82
|
+
colspan
|
|
83
|
+
} = _a, htmlAttributes = __objRest(_a, [
|
|
84
|
+
"children",
|
|
85
|
+
"className",
|
|
86
|
+
"text",
|
|
87
|
+
"colspan"
|
|
88
|
+
]);
|
|
89
|
+
const textOrChildren = text ? text : children;
|
|
90
|
+
return /* @__PURE__ */ React.createElement(
|
|
91
|
+
"td",
|
|
92
|
+
__spreadProps(__spreadValues({
|
|
93
|
+
colSpan: colspan
|
|
94
|
+
}, htmlAttributes), {
|
|
95
|
+
className: classNames(
|
|
96
|
+
className,
|
|
97
|
+
"k-table-td"
|
|
98
|
+
)
|
|
99
|
+
}),
|
|
100
|
+
textOrChildren
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
})();
|
|
105
|
+
//# sourceMappingURL=table-td.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-td.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableTdProps {\n children?: React.ReactNode;\n className?: string;\n text?: string;\n colspan?: any;\n}\n\n\nexport class TableTd extends React.Component<TableTdProps> {\n\n render() {\n const {\n children,\n className,\n text,\n colspan,\n ...htmlAttributes\n } = this.props;\n\n const textOrChildren = text\n ? text\n : children;\n\n return (\n <td\n colSpan={colspan}\n {...htmlAttributes}\n className={classNames(\n className,\n 'k-table-td'\n )}>\n {textOrChildren}\n </td>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADfO,MAAM,UAAN,cAA4B,gBAAwB;AAAA,IAEvD,SAAS;AACL,YAMI,UAAK,OALL;AAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAlBZ,IAoBY,IADG,2BACH,IADG;AAAA,QAJH;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAIJ,YAAM,iBAAiB,OACjB,OACA;AAEN,aACI;AAAA,QAAC;AAAA;AAAA,UACG,SAAS;AAAA,WACL,iBAFP;AAAA,UAGG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined")
|
|
12
|
+
return require.apply(this, arguments);
|
|
13
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
// src/table/table-tfoot.tsx
|
|
29
|
+
var React = __toESM(__require("react"));
|
|
30
|
+
|
|
31
|
+
// src/utils/classNames.ts
|
|
32
|
+
var classNames = (...args) => {
|
|
33
|
+
const result = {};
|
|
34
|
+
const addLeafKeys = (arg) => {
|
|
35
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
36
|
+
result[key] = arg[key];
|
|
37
|
+
}) : result[arg] = true;
|
|
38
|
+
};
|
|
39
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
40
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
41
|
+
);
|
|
42
|
+
addKeys(args);
|
|
43
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/table/table-tfoot.tsx
|
|
47
|
+
var TableTfoot = class extends React.Component {
|
|
48
|
+
render() {
|
|
49
|
+
const {
|
|
50
|
+
children,
|
|
51
|
+
className
|
|
52
|
+
} = this.props;
|
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
|
54
|
+
"tfoot",
|
|
55
|
+
{
|
|
56
|
+
className: classNames(
|
|
57
|
+
className,
|
|
58
|
+
"k-table-tfoot"
|
|
59
|
+
)
|
|
60
|
+
},
|
|
61
|
+
children
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
})();
|
|
66
|
+
//# sourceMappingURL=table-tfoot.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-tfoot.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableTfootProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableTfoot extends React.Component<TableTfootProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <tfoot\n className={classNames(\n className,\n 'k-table-tfoot'\n )}>\n {children}\n </tfoot>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,aAAN,cAA+B,gBAA2B;AAAA,IAE7D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b ||= {})
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
26
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
27
|
+
}) : x)(function(x) {
|
|
28
|
+
if (typeof require !== "undefined")
|
|
29
|
+
return require.apply(this, arguments);
|
|
30
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
31
|
+
});
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
var __copyProps = (to, from, except, desc) => {
|
|
45
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
46
|
+
for (let key of __getOwnPropNames(from))
|
|
47
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
48
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
49
|
+
}
|
|
50
|
+
return to;
|
|
51
|
+
};
|
|
52
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
53
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
54
|
+
mod
|
|
55
|
+
));
|
|
56
|
+
|
|
57
|
+
// src/table/table-th.tsx
|
|
58
|
+
var React = __toESM(__require("react"));
|
|
59
|
+
|
|
60
|
+
// src/utils/classNames.ts
|
|
61
|
+
var classNames = (...args) => {
|
|
62
|
+
const result = {};
|
|
63
|
+
const addLeafKeys = (arg) => {
|
|
64
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
65
|
+
result[key] = arg[key];
|
|
66
|
+
}) : result[arg] = true;
|
|
67
|
+
};
|
|
68
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
69
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
70
|
+
);
|
|
71
|
+
addKeys(args);
|
|
72
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/table/table-th.tsx
|
|
76
|
+
var TableTh = class extends React.Component {
|
|
77
|
+
render() {
|
|
78
|
+
const _a = this.props, {
|
|
79
|
+
children,
|
|
80
|
+
className,
|
|
81
|
+
text,
|
|
82
|
+
colspan
|
|
83
|
+
} = _a, htmlAttributes = __objRest(_a, [
|
|
84
|
+
"children",
|
|
85
|
+
"className",
|
|
86
|
+
"text",
|
|
87
|
+
"colspan"
|
|
88
|
+
]);
|
|
89
|
+
const textOrChildren = text ? text : children;
|
|
90
|
+
return /* @__PURE__ */ React.createElement(
|
|
91
|
+
"th",
|
|
92
|
+
__spreadProps(__spreadValues({
|
|
93
|
+
colSpan: colspan
|
|
94
|
+
}, htmlAttributes), {
|
|
95
|
+
className: classNames(
|
|
96
|
+
className,
|
|
97
|
+
"k-table-th"
|
|
98
|
+
)
|
|
99
|
+
}),
|
|
100
|
+
textOrChildren
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
})();
|
|
105
|
+
//# sourceMappingURL=table-th.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-th.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableThProps {\n children?: React.ReactNode;\n className?: string;\n text?: string;\n colspan?: any;\n}\n\n\nexport class TableTh extends React.Component<TableThProps> {\n\n render() {\n const {\n children,\n className,\n text,\n colspan,\n ...htmlAttributes\n } = this.props;\n\n const textOrChildren = text\n ? text\n : children;\n\n return (\n <th\n colSpan={colspan}\n {...htmlAttributes}\n className={classNames(\n className,\n 'k-table-th'\n )}>\n {textOrChildren}\n </th>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADfO,MAAM,UAAN,cAA4B,gBAAwB;AAAA,IAEvD,SAAS;AACL,YAMI,UAAK,OALL;AAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAlBZ,IAoBY,IADG,2BACH,IADG;AAAA,QAJH;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAIJ,YAAM,iBAAiB,OACjB,OACA;AAEN,aACI;AAAA,QAAC;AAAA;AAAA,UACG,SAAS;AAAA,WACL,iBAFP;AAAA,UAGG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined")
|
|
12
|
+
return require.apply(this, arguments);
|
|
13
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
// src/table/table-thead.tsx
|
|
29
|
+
var React = __toESM(__require("react"));
|
|
30
|
+
|
|
31
|
+
// src/utils/classNames.ts
|
|
32
|
+
var classNames = (...args) => {
|
|
33
|
+
const result = {};
|
|
34
|
+
const addLeafKeys = (arg) => {
|
|
35
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
36
|
+
result[key] = arg[key];
|
|
37
|
+
}) : result[arg] = true;
|
|
38
|
+
};
|
|
39
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
40
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
41
|
+
);
|
|
42
|
+
addKeys(args);
|
|
43
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/table/table-thead.tsx
|
|
47
|
+
var TableThead = class extends React.Component {
|
|
48
|
+
render() {
|
|
49
|
+
const {
|
|
50
|
+
children,
|
|
51
|
+
className
|
|
52
|
+
} = this.props;
|
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
|
54
|
+
"thead",
|
|
55
|
+
{
|
|
56
|
+
className: classNames(
|
|
57
|
+
className,
|
|
58
|
+
"k-table-thead"
|
|
59
|
+
)
|
|
60
|
+
},
|
|
61
|
+
children
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
})();
|
|
66
|
+
//# sourceMappingURL=table-thead.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-thead.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableTheadProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableThead extends React.Component<TableTheadProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <thead\n className={classNames(\n className,\n 'k-table-thead'\n )}>\n {children}\n </thead>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,aAAN,cAA+B,gBAA2B;AAAA,IAE7D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined")
|
|
12
|
+
return require.apply(this, arguments);
|
|
13
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
// src/table/table.tsx
|
|
29
|
+
var React = __toESM(__require("react"));
|
|
30
|
+
|
|
31
|
+
// src/utils/classNames.ts
|
|
32
|
+
var classNames = (...args) => {
|
|
33
|
+
const result = {};
|
|
34
|
+
const addLeafKeys = (arg) => {
|
|
35
|
+
typeof arg === "object" ? Object.keys(arg).forEach((key) => {
|
|
36
|
+
result[key] = arg[key];
|
|
37
|
+
}) : result[arg] = true;
|
|
38
|
+
};
|
|
39
|
+
const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
|
|
40
|
+
(arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
|
|
41
|
+
);
|
|
42
|
+
addKeys(args);
|
|
43
|
+
return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/utils/theme.ts
|
|
47
|
+
var kendoThemeMaps = {
|
|
48
|
+
sizeMap: {
|
|
49
|
+
small: "sm",
|
|
50
|
+
medium: "md",
|
|
51
|
+
large: "lg"
|
|
52
|
+
},
|
|
53
|
+
roundedMap: {
|
|
54
|
+
small: "sm",
|
|
55
|
+
medium: "md",
|
|
56
|
+
large: "lg"
|
|
57
|
+
},
|
|
58
|
+
calloutMap: {
|
|
59
|
+
top: "n",
|
|
60
|
+
bottom: "s",
|
|
61
|
+
left: "w",
|
|
62
|
+
right: "e"
|
|
63
|
+
},
|
|
64
|
+
orientationMap: {
|
|
65
|
+
vertical: "vstack",
|
|
66
|
+
horizontal: "hstack"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/table/table.tsx
|
|
71
|
+
var Table = class extends React.Component {
|
|
72
|
+
render() {
|
|
73
|
+
const {
|
|
74
|
+
children,
|
|
75
|
+
className,
|
|
76
|
+
size
|
|
77
|
+
} = this.props;
|
|
78
|
+
return /* @__PURE__ */ React.createElement(
|
|
79
|
+
"table",
|
|
80
|
+
{
|
|
81
|
+
className: classNames(
|
|
82
|
+
className,
|
|
83
|
+
"k-table",
|
|
84
|
+
{
|
|
85
|
+
[`k-table-${kendoThemeMaps.sizeMap[size]}`]: size
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
},
|
|
89
|
+
children
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
})();
|
|
94
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table.tsx", "../../src/utils/classNames.ts", "../../src/utils/theme.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\n\nexport interface TableProps {\n children?: React.ReactNode;\n className?: string;\n size?: null | 'small' | 'medium' | 'large';\n}\n\n\nexport class Table extends React.Component<TableProps> {\n\n render() {\n const {\n children,\n className,\n size,\n } = this.props;\n\n return (\n <table\n className={classNames(\n className,\n 'k-table',\n {\n [`k-table-${kendoThemeMaps.sizeMap[size!]}`]: size,\n }\n )}>\n {children}\n </table>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n", "export interface KendoThemeMaps {\n sizeMap: Record<Exclude<any, null>, string>;\n roundedMap: Record<Exclude<any, null>, string>;\n calloutMap: Record<Exclude<any, null>, string>;\n orientationMap: Record<Exclude<any, null>, string>;\n}\n\nexport const kendoThemeMaps: KendoThemeMaps = {\n sizeMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n roundedMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ACnBO,MAAM,iBAAiC;AAAA,IAC1C,SAAS;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACR,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,IACA,gBAAgB;AAAA,MACZ,UAAU;AAAA,MACV,YAAY;AAAA,IAChB;AAAA,EACJ;;;AFlBO,MAAM,QAAN,cAA0B,gBAAsB;AAAA,IAEnD,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,cACI,CAAC,WAAW,eAAe,QAAQ,UAAW;AAAA,YAClD;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|