@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-list-group-row.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-list-group-row.tsx
|
|
47
|
+
var TableListGroupRow = class extends React.Component {
|
|
48
|
+
render() {
|
|
49
|
+
const {
|
|
50
|
+
children,
|
|
51
|
+
className
|
|
52
|
+
} = this.props;
|
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
|
54
|
+
"li",
|
|
55
|
+
{
|
|
56
|
+
className: classNames(
|
|
57
|
+
className,
|
|
58
|
+
"k-table-group-row"
|
|
59
|
+
)
|
|
60
|
+
},
|
|
61
|
+
children
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
})();
|
|
66
|
+
//# sourceMappingURL=table-list-group-row.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-list-group-row.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableListGroupRowProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableListGroupRow extends React.Component<TableListGroupRowProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <li\n className={classNames(\n className,\n 'k-table-group-row'\n )}>\n {children}\n </li>\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,oBAAN,cAAsC,gBAAkC;AAAA,IAE3E,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,78 @@
|
|
|
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-list-row.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-list-row.tsx
|
|
47
|
+
var TableListRow = class extends React.Component {
|
|
48
|
+
render() {
|
|
49
|
+
const {
|
|
50
|
+
children,
|
|
51
|
+
className,
|
|
52
|
+
alt,
|
|
53
|
+
hover,
|
|
54
|
+
focus,
|
|
55
|
+
selected,
|
|
56
|
+
disabled
|
|
57
|
+
} = this.props;
|
|
58
|
+
return /* @__PURE__ */ React.createElement(
|
|
59
|
+
"li",
|
|
60
|
+
{
|
|
61
|
+
className: classNames(
|
|
62
|
+
className,
|
|
63
|
+
"k-table-row",
|
|
64
|
+
{
|
|
65
|
+
"k-table-alt-row": alt,
|
|
66
|
+
"k-hover": hover,
|
|
67
|
+
"k-focus": focus,
|
|
68
|
+
"k-selected": selected,
|
|
69
|
+
"k-disabled": disabled
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
},
|
|
73
|
+
children
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
})();
|
|
78
|
+
//# sourceMappingURL=table-list-row.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-list-row.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableListRowProps {\n children?: React.ReactNode;\n className?: string;\n alt?: boolean;\n hover?: boolean;\n focus?: boolean;\n selected?: boolean;\n disabled?: boolean;\n}\n\n\nexport class TableListRow extends React.Component<TableListRowProps> {\n\n render() {\n const {\n children,\n className,\n alt,\n hover,\n focus,\n selected,\n disabled,\n } = this.props;\n\n return (\n <li\n className={classNames(\n className,\n 'k-table-row',\n {\n 'k-table-alt-row': alt,\n 'k-hover': hover,\n 'k-focus': focus,\n 'k-selected': selected,\n 'k-disabled': disabled\n }\n )}>\n {children}\n </li>\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;;;ADZO,MAAM,eAAN,cAAiC,gBAA6B;AAAA,IAEjE,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,cACI,mBAAmB;AAAA,cACnB,WAAW;AAAA,cACX,WAAW;AAAA,cACX,cAAc;AAAA,cACd,cAAc;AAAA,YAClB;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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-list-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-list-td.tsx
|
|
76
|
+
var TableListTd = class extends React.Component {
|
|
77
|
+
render() {
|
|
78
|
+
const _a = this.props, {
|
|
79
|
+
children,
|
|
80
|
+
className,
|
|
81
|
+
text
|
|
82
|
+
} = _a, htmlAttributes = __objRest(_a, [
|
|
83
|
+
"children",
|
|
84
|
+
"className",
|
|
85
|
+
"text"
|
|
86
|
+
]);
|
|
87
|
+
const textOrChildren = text ? text : children;
|
|
88
|
+
return /* @__PURE__ */ React.createElement(
|
|
89
|
+
"span",
|
|
90
|
+
__spreadProps(__spreadValues({
|
|
91
|
+
style: this.props.style
|
|
92
|
+
}, htmlAttributes), {
|
|
93
|
+
className: classNames(
|
|
94
|
+
className,
|
|
95
|
+
"k-table-td"
|
|
96
|
+
)
|
|
97
|
+
}),
|
|
98
|
+
textOrChildren
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
})();
|
|
103
|
+
//# sourceMappingURL=table-list-td.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-list-td.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableListTdProps {\n children?: React.ReactNode;\n className?: string;\n text?: string;\n style?: React.CSSProperties;\n}\n\n\nexport class TableListTd extends React.Component<TableListTdProps> {\n\n render() {\n const {\n children,\n className,\n text,\n ...htmlAttributes\n } = this.props;\n\n const textOrChildren = text\n ? text\n : children;\n\n return (\n <span\n style={this.props.style}\n {...htmlAttributes}\n className={classNames(\n className,\n 'k-table-td'\n )}>\n {textOrChildren}\n </span>\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,cAAN,cAAgC,gBAA4B;AAAA,IAE/D,SAAS;AACL,YAKI,UAAK,OAJL;AAAA;AAAA,QACA;AAAA,QACA;AAAA,MAjBZ,IAmBY,IADG,2BACH,IADG;AAAA,QAHH;AAAA,QACA;AAAA,QACA;AAAA;AAIJ,YAAM,iBAAiB,OACjB,OACA;AAEN,aACI;AAAA,QAAC;AAAA;AAAA,UACG,OAAO,KAAK,MAAM;AAAA,WACd,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,103 @@
|
|
|
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-list-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-list-th.tsx
|
|
76
|
+
var TableListTh = class extends React.Component {
|
|
77
|
+
render() {
|
|
78
|
+
const _a = this.props, {
|
|
79
|
+
children,
|
|
80
|
+
className,
|
|
81
|
+
text
|
|
82
|
+
} = _a, htmlAttributes = __objRest(_a, [
|
|
83
|
+
"children",
|
|
84
|
+
"className",
|
|
85
|
+
"text"
|
|
86
|
+
]);
|
|
87
|
+
const textOrChildren = text ? text : children;
|
|
88
|
+
return /* @__PURE__ */ React.createElement(
|
|
89
|
+
"span",
|
|
90
|
+
__spreadProps(__spreadValues({
|
|
91
|
+
style: this.props.style
|
|
92
|
+
}, htmlAttributes), {
|
|
93
|
+
className: classNames(
|
|
94
|
+
className,
|
|
95
|
+
"k-table-th"
|
|
96
|
+
)
|
|
97
|
+
}),
|
|
98
|
+
textOrChildren
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
})();
|
|
103
|
+
//# sourceMappingURL=table-list-th.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-list-th.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableListThProps {\n children?: React.ReactNode;\n className?: string;\n text?: string;\n style?: React.CSSProperties;\n}\n\n\nexport class TableListTh extends React.Component<TableListThProps> {\n\n render() {\n const {\n children,\n className,\n text,\n ...htmlAttributes\n } = this.props;\n\n const textOrChildren = text\n ? text\n : children;\n\n return (\n <span\n style={this.props.style}\n {...htmlAttributes}\n className={classNames(\n className,\n 'k-table-th'\n )}>\n {textOrChildren}\n </span>\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,cAAN,cAAgC,gBAA4B;AAAA,IAE/D,SAAS;AACL,YAKI,UAAK,OAJL;AAAA;AAAA,QACA;AAAA,QACA;AAAA,MAjBZ,IAmBY,IADG,2BACH,IADG;AAAA,QAHH;AAAA,QACA;AAAA,QACA;AAAA;AAIJ,YAAM,iBAAiB,OACjB,OACA;AAEN,aACI;AAAA,QAAC;AAAA;AAAA,UACG,OAAO,KAAK,MAAM;AAAA,WACd,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,97 @@
|
|
|
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-list.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-list.tsx
|
|
71
|
+
var TableList = class extends React.Component {
|
|
72
|
+
render() {
|
|
73
|
+
const {
|
|
74
|
+
children,
|
|
75
|
+
className,
|
|
76
|
+
size,
|
|
77
|
+
virtualization
|
|
78
|
+
} = this.props;
|
|
79
|
+
return /* @__PURE__ */ React.createElement(
|
|
80
|
+
"ul",
|
|
81
|
+
{
|
|
82
|
+
className: classNames(
|
|
83
|
+
className,
|
|
84
|
+
"k-table",
|
|
85
|
+
"k-table-list",
|
|
86
|
+
{
|
|
87
|
+
[`k-table-${kendoThemeMaps.sizeMap[size]}`]: size,
|
|
88
|
+
"k-virtual-table": virtualization
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
},
|
|
92
|
+
children
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
})();
|
|
97
|
+
//# sourceMappingURL=table-list.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-list.tsx", "../../src/utils/classNames.ts", "../../src/utils/theme.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\n\nexport interface TableListProps {\n children?: React.ReactNode;\n className?: string;\n size?: null | 'small' | 'medium' | 'large';\n virtualization?: boolean;\n}\n\n\nexport class TableList extends React.Component<TableListProps> {\n\n render() {\n const {\n children,\n className,\n size,\n virtualization,\n } = this.props;\n\n return (\n <ul\n className={classNames(\n className,\n 'k-table',\n 'k-table-list',\n {\n [`k-table-${kendoThemeMaps.sizeMap[size!]}`]: size,\n 'k-virtual-table': virtualization,\n }\n )}>\n {children}\n </ul>\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;;;AFjBO,MAAM,YAAN,cAA8B,gBAA0B;AAAA,IAE3D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,cACI,CAAC,WAAW,eAAe,QAAQ,UAAW;AAAA,cAC9C,mBAAmB;AAAA,YACvB;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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-row.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-row.tsx
|
|
47
|
+
var TableRow = class extends React.Component {
|
|
48
|
+
render() {
|
|
49
|
+
const {
|
|
50
|
+
children,
|
|
51
|
+
className,
|
|
52
|
+
alt,
|
|
53
|
+
hover,
|
|
54
|
+
focus,
|
|
55
|
+
selected,
|
|
56
|
+
disabled
|
|
57
|
+
} = this.props;
|
|
58
|
+
return /* @__PURE__ */ React.createElement(
|
|
59
|
+
"tr",
|
|
60
|
+
{
|
|
61
|
+
className: classNames(
|
|
62
|
+
className,
|
|
63
|
+
"k-table-row",
|
|
64
|
+
{
|
|
65
|
+
"k-table-alt-row": alt,
|
|
66
|
+
"k-hover": hover,
|
|
67
|
+
"k-focus": focus,
|
|
68
|
+
"k-selected": selected,
|
|
69
|
+
"k-disabled": disabled
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
},
|
|
73
|
+
children
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
})();
|
|
78
|
+
//# sourceMappingURL=table-row.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/table/table-row.tsx", "../../src/utils/classNames.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableRowProps {\n children?: React.ReactNode;\n className?: string;\n alt?: boolean;\n hover?: boolean;\n focus?: boolean;\n selected?: boolean;\n disabled?: boolean;\n}\n\n\nexport class TableRow extends React.Component<TableRowProps> {\n\n render() {\n const {\n children,\n className,\n alt,\n hover,\n focus,\n selected,\n disabled,\n } = this.props;\n\n return (\n <tr\n className={classNames(\n className,\n 'k-table-row',\n {\n 'k-table-alt-row': alt,\n 'k-hover': hover,\n 'k-focus': focus,\n 'k-selected': selected,\n 'k-disabled': disabled\n }\n )}>\n {children}\n </tr>\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;;;ADZO,MAAM,WAAN,cAA6B,gBAAyB;AAAA,IAEzD,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,cACI,mBAAmB;AAAA,cACnB,WAAW;AAAA,cACX,WAAW;AAAA,cACX,cAAc;AAAA,cACd,cAAc;AAAA,YAClB;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|