funda-ui 1.0.272
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/BackToTop/index.css +34 -0
- package/BackToTop/index.d.ts +11 -0
- package/BackToTop/index.js +458 -0
- package/CascadingSelect/index.css +159 -0
- package/CascadingSelect/index.d.ts +56 -0
- package/CascadingSelect/index.js +958 -0
- package/CascadingSelectE2E/index.css +159 -0
- package/CascadingSelectE2E/index.d.ts +60 -0
- package/CascadingSelectE2E/index.js +1126 -0
- package/Checkbox/index.d.ts +30 -0
- package/Checkbox/index.js +226 -0
- package/ColorPicker/index.css +38 -0
- package/ColorPicker/index.d.ts +27 -0
- package/ColorPicker/index.js +246 -0
- package/DigitalClock/index.d.ts +7 -0
- package/DigitalClock/index.js +208 -0
- package/DropdownMenu/index.css +127 -0
- package/DropdownMenu/index.d.ts +37 -0
- package/DropdownMenu/index.js +237 -0
- package/DynamicFields/index.d.ts +26 -0
- package/DynamicFields/index.js +412 -0
- package/File/index.d.ts +36 -0
- package/File/index.js +473 -0
- package/Input/index.d.ts +42 -0
- package/Input/index.js +286 -0
- package/LiveSearch/index.d.ts +37 -0
- package/LiveSearch/index.js +1195 -0
- package/ModalDialog/index.d.ts +60 -0
- package/ModalDialog/index.js +725 -0
- package/ModeSwitch/index.d.ts +17 -0
- package/ModeSwitch/index.js +202 -0
- package/MultiFuncSelect/index.css +178 -0
- package/MultiFuncSelect/index.d.ts +67 -0
- package/MultiFuncSelect/index.js +1826 -0
- package/MultilevelDropdownMenu/index.css +35 -0
- package/MultilevelDropdownMenu/index.d.ts +25 -0
- package/MultilevelDropdownMenu/index.js +464 -0
- package/Pagination/index.d.ts +49 -0
- package/Pagination/index.js +341 -0
- package/README.md +108 -0
- package/Radio/index.d.ts +31 -0
- package/Radio/index.js +246 -0
- package/RangeSlider/index.css +149 -0
- package/RangeSlider/index.d.ts +21 -0
- package/RangeSlider/index.js +730 -0
- package/ScrollReveal/index.css +23 -0
- package/ScrollReveal/index.d.ts +21 -0
- package/ScrollReveal/index.js +216 -0
- package/Scrollbar/index.css +168 -0
- package/Scrollbar/index.d.ts +15 -0
- package/Scrollbar/index.js +605 -0
- package/SearchBar/index.d.ts +32 -0
- package/SearchBar/index.js +246 -0
- package/Select/index.d.ts +34 -0
- package/Select/index.js +331 -0
- package/ShowMoreLess/index.css +23 -0
- package/ShowMoreLess/index.d.ts +30 -0
- package/ShowMoreLess/index.js +202 -0
- package/Switch/index.d.ts +29 -0
- package/Switch/index.js +211 -0
- package/Table/index.css +533 -0
- package/Table/index.d.ts +25 -0
- package/Table/index.js +2113 -0
- package/Tabs/index.d.ts +3 -0
- package/Tabs/index.js +323 -0
- package/TagInput/index.css +90 -0
- package/TagInput/index.d.ts +28 -0
- package/TagInput/index.js +370 -0
- package/Textarea/index.d.ts +30 -0
- package/Textarea/index.js +242 -0
- package/Toast/index.css +95 -0
- package/Toast/index.d.ts +35 -0
- package/Toast/index.js +340 -0
- package/Tooltip/index.css +240 -0
- package/Tooltip/index.d.ts +19 -0
- package/Tooltip/index.js +200 -0
- package/Tree/index.css +225 -0
- package/Tree/index.d.ts +37 -0
- package/Tree/index.js +1406 -0
- package/all.d.ts +33 -0
- package/all.js +35 -0
- package/lib/cjs/BackToTop/index.d.ts +11 -0
- package/lib/cjs/BackToTop/index.js +458 -0
- package/lib/cjs/CascadingSelect/index.d.ts +56 -0
- package/lib/cjs/CascadingSelect/index.js +958 -0
- package/lib/cjs/CascadingSelectE2E/index.d.ts +60 -0
- package/lib/cjs/CascadingSelectE2E/index.js +1126 -0
- package/lib/cjs/Checkbox/index.d.ts +30 -0
- package/lib/cjs/Checkbox/index.js +226 -0
- package/lib/cjs/ColorPicker/index.d.ts +27 -0
- package/lib/cjs/ColorPicker/index.js +246 -0
- package/lib/cjs/DigitalClock/index.d.ts +7 -0
- package/lib/cjs/DigitalClock/index.js +208 -0
- package/lib/cjs/DropdownMenu/index.d.ts +37 -0
- package/lib/cjs/DropdownMenu/index.js +237 -0
- package/lib/cjs/DynamicFields/index.d.ts +26 -0
- package/lib/cjs/DynamicFields/index.js +412 -0
- package/lib/cjs/File/index.d.ts +36 -0
- package/lib/cjs/File/index.js +473 -0
- package/lib/cjs/Input/index.d.ts +42 -0
- package/lib/cjs/Input/index.js +286 -0
- package/lib/cjs/LiveSearch/index.d.ts +37 -0
- package/lib/cjs/LiveSearch/index.js +1195 -0
- package/lib/cjs/ModalDialog/index.d.ts +60 -0
- package/lib/cjs/ModalDialog/index.js +725 -0
- package/lib/cjs/ModeSwitch/index.d.ts +17 -0
- package/lib/cjs/ModeSwitch/index.js +202 -0
- package/lib/cjs/MultiFuncSelect/index.d.ts +67 -0
- package/lib/cjs/MultiFuncSelect/index.js +1826 -0
- package/lib/cjs/MultilevelDropdownMenu/index.d.ts +25 -0
- package/lib/cjs/MultilevelDropdownMenu/index.js +464 -0
- package/lib/cjs/Pagination/index.d.ts +49 -0
- package/lib/cjs/Pagination/index.js +341 -0
- package/lib/cjs/Radio/index.d.ts +31 -0
- package/lib/cjs/Radio/index.js +246 -0
- package/lib/cjs/RangeSlider/index.d.ts +21 -0
- package/lib/cjs/RangeSlider/index.js +730 -0
- package/lib/cjs/ScrollReveal/index.d.ts +21 -0
- package/lib/cjs/ScrollReveal/index.js +216 -0
- package/lib/cjs/Scrollbar/index.d.ts +15 -0
- package/lib/cjs/Scrollbar/index.js +605 -0
- package/lib/cjs/SearchBar/index.d.ts +32 -0
- package/lib/cjs/SearchBar/index.js +246 -0
- package/lib/cjs/Select/index.d.ts +34 -0
- package/lib/cjs/Select/index.js +331 -0
- package/lib/cjs/ShowMoreLess/index.d.ts +30 -0
- package/lib/cjs/ShowMoreLess/index.js +202 -0
- package/lib/cjs/Switch/index.d.ts +29 -0
- package/lib/cjs/Switch/index.js +211 -0
- package/lib/cjs/Table/index.d.ts +25 -0
- package/lib/cjs/Table/index.js +2113 -0
- package/lib/cjs/Tabs/index.d.ts +3 -0
- package/lib/cjs/Tabs/index.js +323 -0
- package/lib/cjs/TagInput/index.d.ts +28 -0
- package/lib/cjs/TagInput/index.js +370 -0
- package/lib/cjs/Textarea/index.d.ts +30 -0
- package/lib/cjs/Textarea/index.js +242 -0
- package/lib/cjs/Toast/index.d.ts +35 -0
- package/lib/cjs/Toast/index.js +340 -0
- package/lib/cjs/Tooltip/index.d.ts +19 -0
- package/lib/cjs/Tooltip/index.js +200 -0
- package/lib/cjs/Tree/index.d.ts +37 -0
- package/lib/cjs/Tree/index.js +1406 -0
- package/lib/cjs/index.d.ts +33 -0
- package/lib/cjs/index.js +35 -0
- package/lib/css/BackToTop/index.css +34 -0
- package/lib/css/CascadingSelect/index.css +159 -0
- package/lib/css/CascadingSelectE2E/index.css +159 -0
- package/lib/css/ColorPicker/index.css +38 -0
- package/lib/css/DropdownMenu/index.css +127 -0
- package/lib/css/MultiFuncSelect/index.css +178 -0
- package/lib/css/MultilevelDropdownMenu/index.css +35 -0
- package/lib/css/RangeSlider/index.css +149 -0
- package/lib/css/ScrollReveal/index.css +23 -0
- package/lib/css/Scrollbar/index.css +168 -0
- package/lib/css/ShowMoreLess/index.css +23 -0
- package/lib/css/Table/index.css +533 -0
- package/lib/css/TagInput/index.css +90 -0
- package/lib/css/Toast/index.css +95 -0
- package/lib/css/Tooltip/index.css +240 -0
- package/lib/css/Tree/index.css +225 -0
- package/lib/esm/BackToTop/index.scss +47 -0
- package/lib/esm/BackToTop/index.tsx +182 -0
- package/lib/esm/BackToTop/utils/easing.js +200 -0
- package/lib/esm/BackToTop/utils/performance.js +52 -0
- package/lib/esm/CascadingSelect/Group.tsx +39 -0
- package/lib/esm/CascadingSelect/index.scss +214 -0
- package/lib/esm/CascadingSelect/index.tsx +922 -0
- package/lib/esm/CascadingSelect/utils/performance.js +52 -0
- package/lib/esm/CascadingSelectE2E/Group.tsx +39 -0
- package/lib/esm/CascadingSelectE2E/index.scss +214 -0
- package/lib/esm/CascadingSelectE2E/index.tsx +1091 -0
- package/lib/esm/CascadingSelectE2E/utils/performance.js +52 -0
- package/lib/esm/Checkbox/index.tsx +160 -0
- package/lib/esm/ColorPicker/index.scss +48 -0
- package/lib/esm/ColorPicker/index.tsx +187 -0
- package/lib/esm/DigitalClock/index.tsx +72 -0
- package/lib/esm/DigitalClock/utils/useInterval.js +43 -0
- package/lib/esm/DropdownMenu/Option.tsx +27 -0
- package/lib/esm/DropdownMenu/index.scss +180 -0
- package/lib/esm/DropdownMenu/index.tsx +148 -0
- package/lib/esm/DynamicFields/index.tsx +386 -0
- package/lib/esm/File/index.tsx +302 -0
- package/lib/esm/Input/index.tsx +233 -0
- package/lib/esm/LiveSearch/index.tsx +582 -0
- package/lib/esm/LiveSearch/utils/performance.js +52 -0
- package/lib/esm/LiveSearch/utils/useThrottle.js +36 -0
- package/lib/esm/ModalDialog/index.tsx +479 -0
- package/lib/esm/ModalDialog/plugins/BSL/bodyScrollLock.es6.js +262 -0
- package/lib/esm/ModalDialog/plugins/BSL/index.ts +2 -0
- package/lib/esm/ModeSwitch/index.tsx +82 -0
- package/lib/esm/MultiFuncSelect/index.scss +269 -0
- package/lib/esm/MultiFuncSelect/index.tsx +1597 -0
- package/lib/esm/MultiFuncSelect/utils/performance.js +52 -0
- package/lib/esm/MultiFuncSelect/utils/tree.js +103 -0
- package/lib/esm/MultiFuncSelect/utils/useThrottle.js +36 -0
- package/lib/esm/MultilevelDropdownMenu/MenuList.tsx +230 -0
- package/lib/esm/MultilevelDropdownMenu/index.scss +75 -0
- package/lib/esm/MultilevelDropdownMenu/index.tsx +71 -0
- package/lib/esm/MultilevelDropdownMenu/utils/dom.js +81 -0
- package/lib/esm/Pagination/index.tsx +230 -0
- package/lib/esm/Pagination/pagination-navigators.tsx +60 -0
- package/lib/esm/Radio/index.tsx +201 -0
- package/lib/esm/RangeSlider/index.scss +184 -0
- package/lib/esm/RangeSlider/index.tsx +223 -0
- package/lib/esm/ScrollReveal/index.scss +27 -0
- package/lib/esm/ScrollReveal/index.tsx +146 -0
- package/lib/esm/Scrollbar/index.scss +217 -0
- package/lib/esm/Scrollbar/index.tsx +497 -0
- package/lib/esm/Scrollbar/utils/performance.js +52 -0
- package/lib/esm/SearchBar/index.tsx +181 -0
- package/lib/esm/Select/index.tsx +276 -0
- package/lib/esm/ShowMoreLess/index.scss +27 -0
- package/lib/esm/ShowMoreLess/index.tsx +144 -0
- package/lib/esm/Switch/index.tsx +143 -0
- package/lib/esm/Table/TableColgroup.tsx +29 -0
- package/lib/esm/Table/TableField.tsx +40 -0
- package/lib/esm/Table/TableFieldRow.tsx +212 -0
- package/lib/esm/Table/TableHeaders.tsx +146 -0
- package/lib/esm/Table/TableRow.tsx +127 -0
- package/lib/esm/Table/TableSummaries.tsx +36 -0
- package/lib/esm/Table/index.scss +364 -0
- package/lib/esm/Table/index.tsx +576 -0
- package/lib/esm/Table/table-utils.ts +65 -0
- package/lib/esm/Table/utils/dom.js +81 -0
- package/lib/esm/Table/utils/performance.js +52 -0
- package/lib/esm/Tabs/TabList.tsx +42 -0
- package/lib/esm/Tabs/TabPanel.tsx +34 -0
- package/lib/esm/Tabs/Tabs.tsx +232 -0
- package/lib/esm/Tabs/index.tsx +3 -0
- package/lib/esm/TagInput/index.scss +125 -0
- package/lib/esm/TagInput/index.tsx +314 -0
- package/lib/esm/Textarea/index.tsx +178 -0
- package/lib/esm/Toast/Item.tsx +75 -0
- package/lib/esm/Toast/index.scss +120 -0
- package/lib/esm/Toast/index.tsx +249 -0
- package/lib/esm/Tooltip/index.scss +327 -0
- package/lib/esm/Tooltip/index.tsx +142 -0
- package/lib/esm/Tree/TreeList.tsx +503 -0
- package/lib/esm/Tree/index.scss +375 -0
- package/lib/esm/Tree/index.tsx +301 -0
- package/lib/esm/Tree/init-height.tsx +27 -0
- package/lib/esm/Tree/utils/convert-tree.js +29 -0
- package/lib/esm/Tree/utils/dom.js +81 -0
- package/lib/esm/index.js +31 -0
- package/package.json +40 -0
package/Table/index.css
ADDED
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
/* ======================================================
|
|
2
|
+
<!-- Table -->
|
|
3
|
+
/* ====================================================== */
|
|
4
|
+
.table__wrapper {
|
|
5
|
+
--table-alternant-bg: #f0f0f0;
|
|
6
|
+
--table-dark-bg: #212529;
|
|
7
|
+
--table-padding-x: 1rem;
|
|
8
|
+
--table-padding-y: 0.5rem;
|
|
9
|
+
--table-dis-top: 1rem;
|
|
10
|
+
--table-checkbox-indeterminate-color: #bbbbbb;
|
|
11
|
+
--table-row-active-bg: #f0f8ff;
|
|
12
|
+
/*------ enable sort ------*/
|
|
13
|
+
/*------ has checkbox ------*/
|
|
14
|
+
/*------ allow drag and drop ------*/
|
|
15
|
+
}
|
|
16
|
+
.table__wrapper table td,
|
|
17
|
+
.table__wrapper table th {
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
.table__wrapper table tr {
|
|
21
|
+
transition: 0.1s ease-in-out;
|
|
22
|
+
}
|
|
23
|
+
.table__wrapper table tr.active {
|
|
24
|
+
background-color: var(--table-row-active-bg);
|
|
25
|
+
}
|
|
26
|
+
.table__wrapper table tr.clickable {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
.table__wrapper table.table-colgroup tbody tr td:first-child,
|
|
30
|
+
.table__wrapper table.table-colgroup tbody tr th:first-child {
|
|
31
|
+
color: #fff;
|
|
32
|
+
}
|
|
33
|
+
.table__wrapper table.table-colgroup col:nth-child(odd) {
|
|
34
|
+
background-color: var(--table-alternant-bg);
|
|
35
|
+
}
|
|
36
|
+
.table__wrapper table.table-colgroup col:first-child {
|
|
37
|
+
background-color: var(--table-dark-bg);
|
|
38
|
+
}
|
|
39
|
+
.table__wrapper .sort-trigger {
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
.table__wrapper .sort-trigger svg {
|
|
43
|
+
transition: 0.1s ease-in-out;
|
|
44
|
+
opacity: 0.3;
|
|
45
|
+
}
|
|
46
|
+
.table__wrapper .sort-trigger:hover svg {
|
|
47
|
+
transform: scale(1.2);
|
|
48
|
+
opacity: 0.7;
|
|
49
|
+
}
|
|
50
|
+
.table__wrapper .checkbox-trigger {
|
|
51
|
+
display: none;
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: calc(var(--table-padding-x) / 2);
|
|
54
|
+
z-index: 2;
|
|
55
|
+
}
|
|
56
|
+
.table__wrapper .checkbox-trigger > div {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
}
|
|
59
|
+
.table__wrapper .checkbox-trigger > div .form-check {
|
|
60
|
+
min-height: auto;
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
63
|
+
.table__wrapper .checkbox-trigger > div .form-check [type=checkbox]:indeterminate {
|
|
64
|
+
background-color: var(--table-checkbox-indeterminate-color);
|
|
65
|
+
border-color: var(--table-checkbox-indeterminate-color);
|
|
66
|
+
}
|
|
67
|
+
.table__wrapper .drag-trigger {
|
|
68
|
+
display: none;
|
|
69
|
+
position: absolute;
|
|
70
|
+
left: calc(var(--table-padding-x) / 2);
|
|
71
|
+
z-index: 3;
|
|
72
|
+
cursor: move;
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
.table__wrapper .newsort {
|
|
76
|
+
animation: table-newsort 0.5s linear 1 forwards;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
}
|
|
79
|
+
.table__wrapper .newsort:nth-child(2) {
|
|
80
|
+
animation-delay: 50ms;
|
|
81
|
+
}
|
|
82
|
+
.table__wrapper .newsort:nth-child(3) {
|
|
83
|
+
animation-delay: 100ms;
|
|
84
|
+
}
|
|
85
|
+
.table__wrapper .newsort:nth-child(4) {
|
|
86
|
+
animation-delay: 150ms;
|
|
87
|
+
}
|
|
88
|
+
.table__wrapper .newsort:nth-child(5) {
|
|
89
|
+
animation-delay: 200ms;
|
|
90
|
+
}
|
|
91
|
+
.table__wrapper .newsort:nth-child(6) {
|
|
92
|
+
animation-delay: 250ms;
|
|
93
|
+
}
|
|
94
|
+
.table__wrapper .newsort:nth-child(7) {
|
|
95
|
+
animation-delay: 300ms;
|
|
96
|
+
}
|
|
97
|
+
.table__wrapper .newsort:nth-child(8) {
|
|
98
|
+
animation-delay: 350ms;
|
|
99
|
+
}
|
|
100
|
+
.table__wrapper .newsort:nth-child(9) {
|
|
101
|
+
animation-delay: 400ms;
|
|
102
|
+
}
|
|
103
|
+
.table__wrapper .newsort:nth-child(10) {
|
|
104
|
+
animation-delay: 450ms;
|
|
105
|
+
}
|
|
106
|
+
.table__wrapper .newsort:nth-child(11) {
|
|
107
|
+
animation-delay: 500ms;
|
|
108
|
+
}
|
|
109
|
+
.table__wrapper .newsort:nth-child(12) {
|
|
110
|
+
animation-delay: 550ms;
|
|
111
|
+
}
|
|
112
|
+
.table__wrapper .newsort:nth-child(13) {
|
|
113
|
+
animation-delay: 600ms;
|
|
114
|
+
}
|
|
115
|
+
.table__wrapper .newsort:nth-child(14) {
|
|
116
|
+
animation-delay: 650ms;
|
|
117
|
+
}
|
|
118
|
+
.table__wrapper .newsort:nth-child(15) {
|
|
119
|
+
animation-delay: 700ms;
|
|
120
|
+
}
|
|
121
|
+
.table__wrapper .newsort:nth-child(16) {
|
|
122
|
+
animation-delay: 750ms;
|
|
123
|
+
}
|
|
124
|
+
.table__wrapper .newsort:nth-child(17) {
|
|
125
|
+
animation-delay: 800ms;
|
|
126
|
+
}
|
|
127
|
+
.table__wrapper .newsort:nth-child(18) {
|
|
128
|
+
animation-delay: 850ms;
|
|
129
|
+
}
|
|
130
|
+
.table__wrapper .newsort:nth-child(19) {
|
|
131
|
+
animation-delay: 900ms;
|
|
132
|
+
}
|
|
133
|
+
.table__wrapper .newsort:nth-child(20) {
|
|
134
|
+
animation-delay: 950ms;
|
|
135
|
+
}
|
|
136
|
+
.table__wrapper .newsort:nth-child(21) {
|
|
137
|
+
animation-delay: 1000ms;
|
|
138
|
+
}
|
|
139
|
+
.table__wrapper .newsort:nth-child(22) {
|
|
140
|
+
animation-delay: 1050ms;
|
|
141
|
+
}
|
|
142
|
+
.table__wrapper .newsort:nth-child(23) {
|
|
143
|
+
animation-delay: 1100ms;
|
|
144
|
+
}
|
|
145
|
+
.table__wrapper .newsort:nth-child(24) {
|
|
146
|
+
animation-delay: 1150ms;
|
|
147
|
+
}
|
|
148
|
+
.table__wrapper .newsort:nth-child(25) {
|
|
149
|
+
animation-delay: 1200ms;
|
|
150
|
+
}
|
|
151
|
+
.table__wrapper .newsort:nth-child(26) {
|
|
152
|
+
animation-delay: 1250ms;
|
|
153
|
+
}
|
|
154
|
+
.table__wrapper .newsort:nth-child(27) {
|
|
155
|
+
animation-delay: 1300ms;
|
|
156
|
+
}
|
|
157
|
+
.table__wrapper .newsort:nth-child(28) {
|
|
158
|
+
animation-delay: 1350ms;
|
|
159
|
+
}
|
|
160
|
+
.table__wrapper .newsort:nth-child(29) {
|
|
161
|
+
animation-delay: 1400ms;
|
|
162
|
+
}
|
|
163
|
+
.table__wrapper .newsort:nth-child(30) {
|
|
164
|
+
animation-delay: 1450ms;
|
|
165
|
+
}
|
|
166
|
+
.table__wrapper .newsort:nth-child(31) {
|
|
167
|
+
animation-delay: 1500ms;
|
|
168
|
+
}
|
|
169
|
+
.table__wrapper .newsort:nth-child(32) {
|
|
170
|
+
animation-delay: 1550ms;
|
|
171
|
+
}
|
|
172
|
+
.table__wrapper .newsort:nth-child(33) {
|
|
173
|
+
animation-delay: 1600ms;
|
|
174
|
+
}
|
|
175
|
+
.table__wrapper .newsort:nth-child(34) {
|
|
176
|
+
animation-delay: 1650ms;
|
|
177
|
+
}
|
|
178
|
+
.table__wrapper .newsort:nth-child(35) {
|
|
179
|
+
animation-delay: 1700ms;
|
|
180
|
+
}
|
|
181
|
+
.table__wrapper .newsort:nth-child(36) {
|
|
182
|
+
animation-delay: 1750ms;
|
|
183
|
+
}
|
|
184
|
+
.table__wrapper .newsort:nth-child(37) {
|
|
185
|
+
animation-delay: 1800ms;
|
|
186
|
+
}
|
|
187
|
+
.table__wrapper .newsort:nth-child(38) {
|
|
188
|
+
animation-delay: 1850ms;
|
|
189
|
+
}
|
|
190
|
+
.table__wrapper .newsort:nth-child(39) {
|
|
191
|
+
animation-delay: 1900ms;
|
|
192
|
+
}
|
|
193
|
+
.table__wrapper .newsort:nth-child(40) {
|
|
194
|
+
animation-delay: 1950ms;
|
|
195
|
+
}
|
|
196
|
+
.table__wrapper .newsort:nth-child(41) {
|
|
197
|
+
animation-delay: 2000ms;
|
|
198
|
+
}
|
|
199
|
+
.table__wrapper .newsort:nth-child(42) {
|
|
200
|
+
animation-delay: 2050ms;
|
|
201
|
+
}
|
|
202
|
+
.table__wrapper .newsort:nth-child(43) {
|
|
203
|
+
animation-delay: 2100ms;
|
|
204
|
+
}
|
|
205
|
+
.table__wrapper .newsort:nth-child(44) {
|
|
206
|
+
animation-delay: 2150ms;
|
|
207
|
+
}
|
|
208
|
+
.table__wrapper .newsort:nth-child(45) {
|
|
209
|
+
animation-delay: 2200ms;
|
|
210
|
+
}
|
|
211
|
+
.table__wrapper .newsort:nth-child(46) {
|
|
212
|
+
animation-delay: 2250ms;
|
|
213
|
+
}
|
|
214
|
+
.table__wrapper .newsort:nth-child(47) {
|
|
215
|
+
animation-delay: 2300ms;
|
|
216
|
+
}
|
|
217
|
+
.table__wrapper .newsort:nth-child(48) {
|
|
218
|
+
animation-delay: 2350ms;
|
|
219
|
+
}
|
|
220
|
+
.table__wrapper .newsort:nth-child(49) {
|
|
221
|
+
animation-delay: 2400ms;
|
|
222
|
+
}
|
|
223
|
+
.table__wrapper .newsort:nth-child(50) {
|
|
224
|
+
animation-delay: 2450ms;
|
|
225
|
+
}
|
|
226
|
+
.table__wrapper .newsort:nth-child(51) {
|
|
227
|
+
animation-delay: 2500ms;
|
|
228
|
+
}
|
|
229
|
+
.table__wrapper .newsort:nth-child(52) {
|
|
230
|
+
animation-delay: 2550ms;
|
|
231
|
+
}
|
|
232
|
+
.table__wrapper .newsort:nth-child(53) {
|
|
233
|
+
animation-delay: 2600ms;
|
|
234
|
+
}
|
|
235
|
+
.table__wrapper .newsort:nth-child(54) {
|
|
236
|
+
animation-delay: 2650ms;
|
|
237
|
+
}
|
|
238
|
+
.table__wrapper .newsort:nth-child(55) {
|
|
239
|
+
animation-delay: 2700ms;
|
|
240
|
+
}
|
|
241
|
+
.table__wrapper .newsort:nth-child(56) {
|
|
242
|
+
animation-delay: 2750ms;
|
|
243
|
+
}
|
|
244
|
+
.table__wrapper .newsort:nth-child(57) {
|
|
245
|
+
animation-delay: 2800ms;
|
|
246
|
+
}
|
|
247
|
+
.table__wrapper .newsort:nth-child(58) {
|
|
248
|
+
animation-delay: 2850ms;
|
|
249
|
+
}
|
|
250
|
+
.table__wrapper .newsort:nth-child(59) {
|
|
251
|
+
animation-delay: 2900ms;
|
|
252
|
+
}
|
|
253
|
+
.table__wrapper .newsort:nth-child(60) {
|
|
254
|
+
animation-delay: 2950ms;
|
|
255
|
+
}
|
|
256
|
+
.table__wrapper .newsort:nth-child(61) {
|
|
257
|
+
animation-delay: 3000ms;
|
|
258
|
+
}
|
|
259
|
+
.table__wrapper .newsort:nth-child(62) {
|
|
260
|
+
animation-delay: 3050ms;
|
|
261
|
+
}
|
|
262
|
+
.table__wrapper .newsort:nth-child(63) {
|
|
263
|
+
animation-delay: 3100ms;
|
|
264
|
+
}
|
|
265
|
+
.table__wrapper .newsort:nth-child(64) {
|
|
266
|
+
animation-delay: 3150ms;
|
|
267
|
+
}
|
|
268
|
+
.table__wrapper .newsort:nth-child(65) {
|
|
269
|
+
animation-delay: 3200ms;
|
|
270
|
+
}
|
|
271
|
+
.table__wrapper .newsort:nth-child(66) {
|
|
272
|
+
animation-delay: 3250ms;
|
|
273
|
+
}
|
|
274
|
+
.table__wrapper .newsort:nth-child(67) {
|
|
275
|
+
animation-delay: 3300ms;
|
|
276
|
+
}
|
|
277
|
+
.table__wrapper .newsort:nth-child(68) {
|
|
278
|
+
animation-delay: 3350ms;
|
|
279
|
+
}
|
|
280
|
+
.table__wrapper .newsort:nth-child(69) {
|
|
281
|
+
animation-delay: 3400ms;
|
|
282
|
+
}
|
|
283
|
+
.table__wrapper .newsort:nth-child(70) {
|
|
284
|
+
animation-delay: 3450ms;
|
|
285
|
+
}
|
|
286
|
+
.table__wrapper .newsort:nth-child(71) {
|
|
287
|
+
animation-delay: 3500ms;
|
|
288
|
+
}
|
|
289
|
+
.table__wrapper .newsort:nth-child(72) {
|
|
290
|
+
animation-delay: 3550ms;
|
|
291
|
+
}
|
|
292
|
+
.table__wrapper .newsort:nth-child(73) {
|
|
293
|
+
animation-delay: 3600ms;
|
|
294
|
+
}
|
|
295
|
+
.table__wrapper .newsort:nth-child(74) {
|
|
296
|
+
animation-delay: 3650ms;
|
|
297
|
+
}
|
|
298
|
+
.table__wrapper .newsort:nth-child(75) {
|
|
299
|
+
animation-delay: 3700ms;
|
|
300
|
+
}
|
|
301
|
+
.table__wrapper .newsort:nth-child(76) {
|
|
302
|
+
animation-delay: 3750ms;
|
|
303
|
+
}
|
|
304
|
+
.table__wrapper .newsort:nth-child(77) {
|
|
305
|
+
animation-delay: 3800ms;
|
|
306
|
+
}
|
|
307
|
+
.table__wrapper .newsort:nth-child(78) {
|
|
308
|
+
animation-delay: 3850ms;
|
|
309
|
+
}
|
|
310
|
+
.table__wrapper .newsort:nth-child(79) {
|
|
311
|
+
animation-delay: 3900ms;
|
|
312
|
+
}
|
|
313
|
+
.table__wrapper .newsort:nth-child(80) {
|
|
314
|
+
animation-delay: 3950ms;
|
|
315
|
+
}
|
|
316
|
+
.table__wrapper .newsort:nth-child(81) {
|
|
317
|
+
animation-delay: 4000ms;
|
|
318
|
+
}
|
|
319
|
+
.table__wrapper .newsort:nth-child(82) {
|
|
320
|
+
animation-delay: 4050ms;
|
|
321
|
+
}
|
|
322
|
+
.table__wrapper .newsort:nth-child(83) {
|
|
323
|
+
animation-delay: 4100ms;
|
|
324
|
+
}
|
|
325
|
+
.table__wrapper .newsort:nth-child(84) {
|
|
326
|
+
animation-delay: 4150ms;
|
|
327
|
+
}
|
|
328
|
+
.table__wrapper .newsort:nth-child(85) {
|
|
329
|
+
animation-delay: 4200ms;
|
|
330
|
+
}
|
|
331
|
+
.table__wrapper .newsort:nth-child(86) {
|
|
332
|
+
animation-delay: 4250ms;
|
|
333
|
+
}
|
|
334
|
+
.table__wrapper .newsort:nth-child(87) {
|
|
335
|
+
animation-delay: 4300ms;
|
|
336
|
+
}
|
|
337
|
+
.table__wrapper .newsort:nth-child(88) {
|
|
338
|
+
animation-delay: 4350ms;
|
|
339
|
+
}
|
|
340
|
+
.table__wrapper .newsort:nth-child(89) {
|
|
341
|
+
animation-delay: 4400ms;
|
|
342
|
+
}
|
|
343
|
+
.table__wrapper .newsort:nth-child(90) {
|
|
344
|
+
animation-delay: 4450ms;
|
|
345
|
+
}
|
|
346
|
+
.table__wrapper .newsort:nth-child(91) {
|
|
347
|
+
animation-delay: 4500ms;
|
|
348
|
+
}
|
|
349
|
+
.table__wrapper .newsort:nth-child(92) {
|
|
350
|
+
animation-delay: 4550ms;
|
|
351
|
+
}
|
|
352
|
+
.table__wrapper .newsort:nth-child(93) {
|
|
353
|
+
animation-delay: 4600ms;
|
|
354
|
+
}
|
|
355
|
+
.table__wrapper .newsort:nth-child(94) {
|
|
356
|
+
animation-delay: 4650ms;
|
|
357
|
+
}
|
|
358
|
+
.table__wrapper .newsort:nth-child(95) {
|
|
359
|
+
animation-delay: 4700ms;
|
|
360
|
+
}
|
|
361
|
+
.table__wrapper .newsort:nth-child(96) {
|
|
362
|
+
animation-delay: 4750ms;
|
|
363
|
+
}
|
|
364
|
+
.table__wrapper .newsort:nth-child(97) {
|
|
365
|
+
animation-delay: 4800ms;
|
|
366
|
+
}
|
|
367
|
+
.table__wrapper .newsort:nth-child(98) {
|
|
368
|
+
animation-delay: 4850ms;
|
|
369
|
+
}
|
|
370
|
+
.table__wrapper .newsort:nth-child(99) {
|
|
371
|
+
animation-delay: 4900ms;
|
|
372
|
+
}
|
|
373
|
+
.table__wrapper .newsort:nth-child(100) {
|
|
374
|
+
animation-delay: 4950ms;
|
|
375
|
+
}
|
|
376
|
+
.table__wrapper.has-checkbox .checkbox-trigger {
|
|
377
|
+
display: inline-block;
|
|
378
|
+
}
|
|
379
|
+
.table__wrapper.has-checkbox .checkbox-trigger ~ span:not(.sort-trigger) {
|
|
380
|
+
display: inline-block;
|
|
381
|
+
padding-left: calc(var(--table-padding-x) * 1.5);
|
|
382
|
+
}
|
|
383
|
+
.table__wrapper.allow-dragdrop {
|
|
384
|
+
/* Specify a drag trigger point */
|
|
385
|
+
/* placeholder */
|
|
386
|
+
/* trigger */
|
|
387
|
+
}
|
|
388
|
+
.table__wrapper.allow-dragdrop tbody .row-obj-clonelast {
|
|
389
|
+
height: 0 !important;
|
|
390
|
+
}
|
|
391
|
+
.table__wrapper.allow-dragdrop tbody .row-obj-clonelast td {
|
|
392
|
+
border: none;
|
|
393
|
+
box-shadow: none;
|
|
394
|
+
}
|
|
395
|
+
.table__wrapper.allow-dragdrop tbody td,
|
|
396
|
+
.table__wrapper.allow-dragdrop tbody th {
|
|
397
|
+
pointer-events: none;
|
|
398
|
+
user-select: auto;
|
|
399
|
+
}
|
|
400
|
+
.table__wrapper.allow-dragdrop tbody.drag-trigger-mousedown td,
|
|
401
|
+
.table__wrapper.allow-dragdrop tbody.drag-trigger-mousedown th {
|
|
402
|
+
pointer-events: auto;
|
|
403
|
+
}
|
|
404
|
+
.table__wrapper.allow-dragdrop .row-placeholder {
|
|
405
|
+
border: 2px dotted #b5ba91;
|
|
406
|
+
background-color: #e4e9c3;
|
|
407
|
+
}
|
|
408
|
+
.table__wrapper.allow-dragdrop .drag-trigger {
|
|
409
|
+
display: inline-block;
|
|
410
|
+
pointer-events: auto;
|
|
411
|
+
}
|
|
412
|
+
.table__wrapper.allow-dragdrop .drag-trigger ~ span:not(.checkbox-trigger) {
|
|
413
|
+
display: inline-block;
|
|
414
|
+
padding-left: calc(var(--table-padding-x) * 1.5);
|
|
415
|
+
}
|
|
416
|
+
.table__wrapper.allow-dragdrop.has-checkbox .drag-trigger ~ span:not(.checkbox-trigger) {
|
|
417
|
+
padding-left: calc(var(--table-padding-x) * 3);
|
|
418
|
+
}
|
|
419
|
+
.table__wrapper.allow-dragdrop.has-checkbox tbody .checkbox-trigger {
|
|
420
|
+
padding-left: calc(var(--table-padding-x) * 1.5);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@keyframes table-newsort {
|
|
424
|
+
0% {
|
|
425
|
+
opacity: 0;
|
|
426
|
+
transform: translateX(10px);
|
|
427
|
+
}
|
|
428
|
+
100% {
|
|
429
|
+
opacity: 1;
|
|
430
|
+
transform: translateX(0);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
@media all and (max-width: 768px) {
|
|
434
|
+
.table__wrapper {
|
|
435
|
+
--table-border-color: #dee2e6;
|
|
436
|
+
--table-per-shadow: 0 2px 4px 0 rgba(0,0,0,.1);
|
|
437
|
+
/*------ Enhanced Responsive ------*/
|
|
438
|
+
/*------ Enhanced Responsive with Scroll Bars ------*/
|
|
439
|
+
}
|
|
440
|
+
.table__wrapper.table-enhanced-responsive table thead {
|
|
441
|
+
display: none;
|
|
442
|
+
}
|
|
443
|
+
.table__wrapper.table-enhanced-responsive table tbody tr {
|
|
444
|
+
box-shadow: var(--table-per-shadow);
|
|
445
|
+
margin-bottom: 1rem;
|
|
446
|
+
display: block;
|
|
447
|
+
}
|
|
448
|
+
.table__wrapper.table-enhanced-responsive table tbody td,
|
|
449
|
+
.table__wrapper.table-enhanced-responsive table tbody th {
|
|
450
|
+
display: block;
|
|
451
|
+
}
|
|
452
|
+
.table__wrapper.table-enhanced-responsive table tbody td::before,
|
|
453
|
+
.table__wrapper.table-enhanced-responsive table tbody th::before {
|
|
454
|
+
content: attr(data-table-text);
|
|
455
|
+
display: block;
|
|
456
|
+
float: left;
|
|
457
|
+
width: 40%;
|
|
458
|
+
font-weight: bold;
|
|
459
|
+
border-right: 1px solid var(--table-border-color);
|
|
460
|
+
margin-right: 0.5rem;
|
|
461
|
+
}
|
|
462
|
+
.table__wrapper.table-enhanced-responsive table tbody td::after,
|
|
463
|
+
.table__wrapper.table-enhanced-responsive table tbody th::after {
|
|
464
|
+
content: "";
|
|
465
|
+
display: block;
|
|
466
|
+
clear: both;
|
|
467
|
+
}
|
|
468
|
+
.table__wrapper.table-enhanced-responsive.has-checkbox .checkbox-trigger {
|
|
469
|
+
position: relative;
|
|
470
|
+
left: auto;
|
|
471
|
+
}
|
|
472
|
+
.table__wrapper.table-enhanced-responsive.has-checkbox .checkbox-trigger ~ span {
|
|
473
|
+
padding-left: 0;
|
|
474
|
+
}
|
|
475
|
+
.table__wrapper.table-enhanced-responsive-scrolled table {
|
|
476
|
+
display: block;
|
|
477
|
+
width: 100%;
|
|
478
|
+
border-bottom: 0 !important;
|
|
479
|
+
border-left: 0 !important;
|
|
480
|
+
border-right: 0 !important;
|
|
481
|
+
overflow: auto;
|
|
482
|
+
}
|
|
483
|
+
.table__wrapper.table-enhanced-responsive-scrolled table thead {
|
|
484
|
+
display: block;
|
|
485
|
+
float: left;
|
|
486
|
+
width: 100px;
|
|
487
|
+
border-bottom: 1px solid var(--table-border-color);
|
|
488
|
+
}
|
|
489
|
+
.table__wrapper.table-enhanced-responsive-scrolled table thead th {
|
|
490
|
+
display: block;
|
|
491
|
+
}
|
|
492
|
+
.table__wrapper.table-enhanced-responsive-scrolled table thead th:not(last-child) {
|
|
493
|
+
border-bottom: 0;
|
|
494
|
+
}
|
|
495
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody {
|
|
496
|
+
width: calc(100% - 100px);
|
|
497
|
+
display: block;
|
|
498
|
+
float: left;
|
|
499
|
+
overflow-x: scroll;
|
|
500
|
+
border-bottom: 1px solid var(--table-border-color);
|
|
501
|
+
border-right: 1px solid var(--table-border-color);
|
|
502
|
+
}
|
|
503
|
+
.table__wrapper.table-enhanced-responsive-scrolled table thead tr,
|
|
504
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody tr {
|
|
505
|
+
display: block;
|
|
506
|
+
border-color: var(--table-border-color);
|
|
507
|
+
}
|
|
508
|
+
.table__wrapper.table-enhanced-responsive-scrolled table th,
|
|
509
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody td,
|
|
510
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody th {
|
|
511
|
+
box-sizing: border-box;
|
|
512
|
+
overflow-x: hidden;
|
|
513
|
+
overflow-y: auto;
|
|
514
|
+
}
|
|
515
|
+
.table__wrapper.table-enhanced-responsive-scrolled table th:first-child,
|
|
516
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody td:first-child,
|
|
517
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody th:first-child {
|
|
518
|
+
border-top: 0;
|
|
519
|
+
}
|
|
520
|
+
.table__wrapper.table-enhanced-responsive-scrolled table th:not(last-child),
|
|
521
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody td:not(last-child),
|
|
522
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody th:not(last-child) {
|
|
523
|
+
border-bottom: 0;
|
|
524
|
+
border-right: 0;
|
|
525
|
+
}
|
|
526
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody tr {
|
|
527
|
+
display: table-cell;
|
|
528
|
+
}
|
|
529
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody td,
|
|
530
|
+
.table__wrapper.table-enhanced-responsive-scrolled table tbody th {
|
|
531
|
+
display: block;
|
|
532
|
+
}
|
|
533
|
+
}
|
package/Table/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type TableProps = {
|
|
3
|
+
wrapperClassName?: string;
|
|
4
|
+
tableClassName?: string;
|
|
5
|
+
bodyClassName?: string;
|
|
6
|
+
headClassName?: string;
|
|
7
|
+
footClassName?: string;
|
|
8
|
+
checkable?: boolean;
|
|
9
|
+
useRadio?: boolean;
|
|
10
|
+
draggable?: boolean;
|
|
11
|
+
sortable?: boolean;
|
|
12
|
+
data: any;
|
|
13
|
+
bordered?: boolean;
|
|
14
|
+
colGroup?: boolean;
|
|
15
|
+
responsive?: boolean;
|
|
16
|
+
enhancedResponsive?: boolean;
|
|
17
|
+
enhancedResponsiveWithScrollBar?: boolean;
|
|
18
|
+
/** -- */
|
|
19
|
+
id?: string;
|
|
20
|
+
onClick?: (el: any, val: any) => void;
|
|
21
|
+
onCheck?: (val: any) => void;
|
|
22
|
+
onDrag?: (dragStart: any, dragEnd: any) => void;
|
|
23
|
+
};
|
|
24
|
+
declare const Table: (props: TableProps) => JSX.Element;
|
|
25
|
+
export default Table;
|