@swimlane/ngx-datatable 20.1.0 → 21.0.0-alpha.0

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.
Files changed (145) hide show
  1. package/{fesm2020 → fesm2022}/swimlane-ngx-datatable.mjs +3404 -2536
  2. package/fesm2022/swimlane-ngx-datatable.mjs.map +1 -0
  3. package/lib/components/body/body-cell.component.d.ts +28 -23
  4. package/lib/components/body/body-group-header-template.directive.d.ts +3 -4
  5. package/lib/components/body/body-group-header.directive.d.ts +14 -9
  6. package/lib/components/body/body-row-def.component.d.ts +34 -0
  7. package/lib/components/body/body-row-wrapper.component.d.ts +34 -22
  8. package/lib/components/body/body-row.component.d.ts +28 -34
  9. package/lib/components/body/body.component.d.ts +88 -69
  10. package/lib/components/body/ghost-loader/ghost-loader.component.d.ts +12 -0
  11. package/lib/components/body/progress-bar.component.d.ts +1 -1
  12. package/lib/components/body/scroller.component.d.ts +4 -7
  13. package/lib/components/body/selection.component.d.ts +21 -25
  14. package/lib/components/body/summary/summary-row.component.d.ts +4 -3
  15. package/lib/components/columns/column-cell.directive.d.ts +4 -3
  16. package/lib/components/columns/column-ghost-cell.directive.d.ts +6 -0
  17. package/lib/components/columns/column-header.directive.d.ts +3 -4
  18. package/lib/components/columns/column.directive.d.ts +43 -18
  19. package/lib/components/columns/tree.directive.d.ts +1 -2
  20. package/lib/components/datatable.component.d.ts +142 -76
  21. package/lib/components/footer/footer-template.directive.d.ts +3 -4
  22. package/lib/components/footer/footer.component.d.ts +3 -2
  23. package/lib/components/footer/footer.directive.d.ts +6 -4
  24. package/lib/components/footer/pager.component.d.ts +6 -4
  25. package/lib/components/header/header-cell.component.d.ts +18 -18
  26. package/lib/components/header/header.component.d.ts +41 -36
  27. package/lib/components/row-detail/row-detail-template.directive.d.ts +3 -4
  28. package/lib/components/row-detail/row-detail.directive.d.ts +9 -8
  29. package/lib/directives/disable-row.directive.d.ts +22 -0
  30. package/lib/directives/draggable.directive.d.ts +11 -8
  31. package/lib/directives/long-press.directive.d.ts +16 -5
  32. package/lib/directives/orderable.directive.d.ts +21 -10
  33. package/lib/directives/resizeable.directive.d.ts +7 -5
  34. package/lib/directives/visibility.directive.d.ts +2 -3
  35. package/lib/ngx-datatable.module.d.ts +29 -30
  36. package/lib/services/scrollbar-helper.service.d.ts +0 -1
  37. package/lib/types/internal.types.d.ts +31 -0
  38. package/lib/types/public.types.d.ts +142 -0
  39. package/lib/types/table-column.type.d.ts +39 -66
  40. package/lib/utils/column-helper.d.ts +2 -2
  41. package/lib/utils/column-prop-getters.d.ts +1 -1
  42. package/lib/utils/column.d.ts +7 -14
  43. package/lib/utils/keys.d.ts +6 -6
  44. package/lib/utils/math.d.ts +4 -3
  45. package/lib/utils/selection.d.ts +2 -2
  46. package/lib/utils/sort.d.ts +5 -5
  47. package/lib/utils/table-token.d.ts +7 -0
  48. package/lib/utils/tree.d.ts +2 -2
  49. package/package.json +9 -17
  50. package/public-api.d.ts +4 -11
  51. package/LICENSE +0 -22
  52. package/README.md +0 -47
  53. package/assets/app.css +0 -302
  54. package/assets/data/100k.json +0 -100002
  55. package/assets/data/company.json +0 -505
  56. package/assets/data/company_tree.json +0 -61
  57. package/assets/data/forRowGrouping.json +0 -227
  58. package/assets/fonts/data-table.eot +0 -0
  59. package/assets/fonts/data-table.svg +0 -26
  60. package/assets/fonts/data-table.ttf +0 -0
  61. package/assets/fonts/data-table.woff +0 -0
  62. package/assets/icons-reference.html +0 -395
  63. package/assets/icons.css +0 -105
  64. package/esm2020/lib/components/body/body-cell.component.mjs +0 -432
  65. package/esm2020/lib/components/body/body-group-header-template.directive.mjs +0 -16
  66. package/esm2020/lib/components/body/body-group-header.directive.mjs +0 -62
  67. package/esm2020/lib/components/body/body-row-wrapper.component.mjs +0 -140
  68. package/esm2020/lib/components/body/body-row.component.mjs +0 -262
  69. package/esm2020/lib/components/body/body.component.mjs +0 -863
  70. package/esm2020/lib/components/body/progress-bar.component.mjs +0 -27
  71. package/esm2020/lib/components/body/scroller.component.mjs +0 -91
  72. package/esm2020/lib/components/body/selection.component.mjs +0 -150
  73. package/esm2020/lib/components/body/summary/summary-row.component.mjs +0 -105
  74. package/esm2020/lib/components/columns/column-cell.directive.mjs +0 -14
  75. package/esm2020/lib/components/columns/column-header.directive.mjs +0 -14
  76. package/esm2020/lib/components/columns/column.directive.mjs +0 -98
  77. package/esm2020/lib/components/columns/tree.directive.mjs +0 -14
  78. package/esm2020/lib/components/datatable.component.mjs +0 -1008
  79. package/esm2020/lib/components/footer/footer-template.directive.mjs +0 -14
  80. package/esm2020/lib/components/footer/footer.component.mjs +0 -128
  81. package/esm2020/lib/components/footer/footer.directive.mjs +0 -35
  82. package/esm2020/lib/components/footer/pager.component.mjs +0 -181
  83. package/esm2020/lib/components/header/header-cell.component.mjs +0 -243
  84. package/esm2020/lib/components/header/header.component.mjs +0 -376
  85. package/esm2020/lib/components/row-detail/row-detail-template.directive.mjs +0 -16
  86. package/esm2020/lib/components/row-detail/row-detail.directive.mjs +0 -63
  87. package/esm2020/lib/directives/draggable.directive.mjs +0 -108
  88. package/esm2020/lib/directives/long-press.directive.mjs +0 -117
  89. package/esm2020/lib/directives/orderable.directive.mjs +0 -136
  90. package/esm2020/lib/directives/resizeable.directive.mjs +0 -93
  91. package/esm2020/lib/directives/visibility.directive.mjs +0 -63
  92. package/esm2020/lib/events.mjs +0 -7
  93. package/esm2020/lib/ngx-datatable.module.mjs +0 -139
  94. package/esm2020/lib/services/column-changes.service.mjs +0 -24
  95. package/esm2020/lib/services/dimensions-helper.service.mjs +0 -17
  96. package/esm2020/lib/services/scrollbar-helper.service.mjs +0 -37
  97. package/esm2020/lib/types/click.type.mjs +0 -6
  98. package/esm2020/lib/types/column-mode.type.mjs +0 -7
  99. package/esm2020/lib/types/contextmenu.type.mjs +0 -6
  100. package/esm2020/lib/types/selection.type.mjs +0 -9
  101. package/esm2020/lib/types/sort-direction.type.mjs +0 -6
  102. package/esm2020/lib/types/sort-prop-dir.type.mjs +0 -2
  103. package/esm2020/lib/types/sort.type.mjs +0 -6
  104. package/esm2020/lib/types/table-column.type.mjs +0 -2
  105. package/esm2020/lib/utils/camel-case.mjs +0 -28
  106. package/esm2020/lib/utils/column-helper.mjs +0 -95
  107. package/esm2020/lib/utils/column-prop-getters.mjs +0 -96
  108. package/esm2020/lib/utils/column.mjs +0 -69
  109. package/esm2020/lib/utils/elm-from-point.mjs +0 -38
  110. package/esm2020/lib/utils/id.mjs +0 -8
  111. package/esm2020/lib/utils/keys.mjs +0 -10
  112. package/esm2020/lib/utils/math.mjs +0 -146
  113. package/esm2020/lib/utils/prefixes.mjs +0 -38
  114. package/esm2020/lib/utils/row-height-cache.mjs +0 -138
  115. package/esm2020/lib/utils/selection.mjs +0 -40
  116. package/esm2020/lib/utils/sort.mjs +0 -127
  117. package/esm2020/lib/utils/throttle.mjs +0 -60
  118. package/esm2020/lib/utils/translate.mjs +0 -25
  119. package/esm2020/lib/utils/tree.mjs +0 -103
  120. package/esm2020/public-api.mjs +0 -64
  121. package/esm2020/swimlane-ngx-datatable.mjs +0 -5
  122. package/fesm2015/swimlane-ngx-datatable.mjs +0 -5979
  123. package/fesm2015/swimlane-ngx-datatable.mjs.map +0 -1
  124. package/fesm2020/swimlane-ngx-datatable.mjs.map +0 -1
  125. package/index.css +0 -198
  126. package/index.scss +0 -315
  127. package/lib/events.d.ts +0 -3
  128. package/lib/services/dimensions-helper.service.d.ts +0 -10
  129. package/lib/types/click.type.d.ts +0 -4
  130. package/lib/types/column-mode.type.d.ts +0 -5
  131. package/lib/types/contextmenu.type.d.ts +0 -4
  132. package/lib/types/selection.type.d.ts +0 -7
  133. package/lib/types/sort-direction.type.d.ts +0 -4
  134. package/lib/types/sort-prop-dir.type.d.ts +0 -6
  135. package/lib/types/sort.type.d.ts +0 -4
  136. package/lib/utils/elm-from-point.d.ts +0 -8
  137. package/lib/utils/prefixes.d.ts +0 -1
  138. package/lib/utils/translate.d.ts +0 -1
  139. package/themes/bootstrap.css +0 -67
  140. package/themes/bootstrap.scss +0 -101
  141. package/themes/dark.css +0 -75
  142. package/themes/dark.scss +0 -120
  143. package/themes/material.css +0 -305
  144. package/themes/material.scss +0 -480
  145. /package/{swimlane-ngx-datatable.d.ts → index.d.ts} +0 -0
@@ -1,227 +0,0 @@
1
- [
2
- {
3
- "exppayyes": 1,
4
- "exppayno": 0,
5
- "exppaypending": 0,
6
- "source": "Funder",
7
- "name": "Ethel Price",
8
- "gender": "female",
9
- "company": "Johnson, Johnson and Partners, LLC CMP DDC",
10
- "age": 22,
11
- "comment": "test1",
12
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
13
- },
14
- {
15
- "exppayyes": 0,
16
- "exppayno": 1,
17
- "exppaypending": 0,
18
- "source": "Calculated",
19
- "name": "Wilder Gonzales",
20
- "gender": "male",
21
- "company": "Geekko",
22
- "age": 22,
23
- "comment": "test2",
24
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
25
- },
26
- {
27
- "exppayyes": 0,
28
- "exppayno": 0,
29
- "exppaypending": 1,
30
- "source": "Manual",
31
- "name": "Georgina Schultz",
32
- "gender": "female",
33
- "company": "Suretech",
34
- "age": 22,
35
- "comment": "test3",
36
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
37
- },
38
- {
39
- "exppayyes": 0,
40
- "exppayno": 0,
41
- "exppaypending": 0,
42
- "source": "Manual",
43
- "name": "Carroll Buchanan",
44
- "gender": "male",
45
- "company": "Ecosys",
46
- "age": 22,
47
- "comment": "test4",
48
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
49
- },
50
- {
51
- "exppayyes": 0,
52
- "exppayno": 0,
53
- "exppaypending": 0,
54
- "source": "Funder",
55
- "name": "Claudine Neal",
56
- "startdate": "01/01/2017",
57
- "enddate": "14/01/2017",
58
- "gender": "female",
59
- "company": "Sealoud",
60
- "age": 55,
61
- "groupcomment": "group comment test 2",
62
- "groupstatus": ""
63
- },
64
- {
65
- "name": "Beryl Rice",
66
- "gender": "female",
67
- "company": "Velity",
68
- "age": 67
69
- },
70
- {
71
- "exppayyes": 0,
72
- "exppayno": 0,
73
- "exppaypending": 0,
74
- "source": "Calculated",
75
- "name": "Valarie Atkinson",
76
- "startdate": "01/01/2017",
77
- "enddate": "14/01/2017",
78
- "gender": "female",
79
- "company": "Hopeli",
80
- "age": 55,
81
- "groupcomment": "group comment test 2",
82
- "groupstatus": ""
83
- },
84
- {
85
- "name": "Schroeder Mathews",
86
- "gender": "male",
87
- "company": "Polarium",
88
- "age": 67
89
- },
90
- {
91
- "name": "Lynda Mendoza",
92
- "gender": "female",
93
- "company": "Dogspa",
94
- "age": 10
95
- },
96
- {
97
- "name": "Sarah Massey",
98
- "gender": "female",
99
- "company": "Bisba",
100
- "age": 10
101
- },
102
- {
103
- "name": "Robles Boyle",
104
- "gender": "male",
105
- "company": "Comtract",
106
- "age": 11
107
- },
108
- {
109
- "name": "Evans Hickman",
110
- "gender": "male",
111
- "company": "Parleynet",
112
- "age": 11
113
- },
114
- {
115
- "name": "Robles Boyle",
116
- "gender": "male",
117
- "company": "Comtract",
118
- "age": 50
119
- },
120
- {
121
- "name": "Evans Hickman",
122
- "gender": "male",
123
- "company": "Parleynet",
124
- "age": 50
125
- },
126
- {
127
- "name": "Robles Boyle",
128
- "gender": "male",
129
- "company": "Comtract",
130
- "age": 51
131
- },
132
- {
133
- "name": "Evans Hickman",
134
- "gender": "male",
135
- "company": "Parleynet",
136
- "age": 51
137
- },
138
- {
139
- "name": "Robles Boyle",
140
- "gender": "male",
141
- "company": "Comtract",
142
- "age": 52,
143
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
144
- },
145
- {
146
- "name": "Evans Hickman",
147
- "gender": "male",
148
- "company": "Parleynet",
149
- "age": 52,
150
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
151
- },
152
- {
153
- "name": "Dawson Barber",
154
- "gender": "male",
155
- "company": "Dymi",
156
- "age": 12,
157
- "groupcomment": "group comment test with multiple lines of text. group comment test with multiple lines of text."
158
- },
159
- {
160
- "name": "Robles Boyle",
161
- "gender": "male",
162
- "company": "Comtract",
163
- "age": 53,
164
- "groupcomment": "group comment test with multiple lines of text."
165
- },
166
- {
167
- "name": "Evans Hickman",
168
- "gender": "male",
169
- "company": "Parleynet",
170
- "age": 53,
171
- "groupcomment": "group comment test with multiple lines of text."
172
- },
173
- {
174
- "name": "Robles Boyle",
175
- "gender": "male",
176
- "company": "Comtract",
177
- "age": 54
178
- },
179
- {
180
- "name": "Evans Hickman",
181
- "gender": "male",
182
- "company": "Parleynet",
183
- "age": 54
184
- },
185
- {
186
- "name": "Robles Boyle",
187
- "gender": "male",
188
- "company": "Comtract",
189
- "age": 56
190
- },
191
- {
192
- "name": "Evans Hickman",
193
- "gender": "male",
194
- "company": "Parleynet",
195
- "age": 56
196
- },
197
- {
198
- "name": "Bruce Strong",
199
- "gender": "male",
200
- "company": "Xyqag",
201
- "age": 12
202
- },
203
- {
204
- "name": "No Group1",
205
- "gender": "male",
206
- "company": "Xyqag",
207
- "age": null
208
- },
209
- {
210
- "name": "No Group2",
211
- "gender": "male",
212
- "company": "Xyqag",
213
- "age": null
214
- },
215
- {
216
- "name": "No Group3",
217
- "gender": "male",
218
- "company": "Xyqag",
219
- "age": null
220
- },
221
- {
222
- "name": "No Group4",
223
- "gender": "male",
224
- "company": "Xyqag",
225
- "age": null
226
- }
227
- ]
Binary file
@@ -1,26 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Generated by Fontastic.me</metadata>
5
- <defs>
6
- <font id="data-table" horiz-adv-x="512">
7
- <font-face font-family="data-table" units-per-em="512" ascent="480" descent="-32"/>
8
- <missing-glyph horiz-adv-x="512" />
9
-
10
- <glyph glyph-name="filter" unicode="&#98;" d="M213 128l86 0 0 43-86 0z m-149 256l0-43 384 0 0 43z m64-149l256 0 0 42-256 0z"/>
11
- <glyph glyph-name="collapse" unicode="&#97;" d="M158 115l30-30 68 68 68-68 30 30-98 98z m196 282l-30 30-68-68-68 68-30-30 98-98z"/>
12
- <glyph glyph-name="expand" unicode="&#99;" d="M256 388l68-68 30 30-98 98-98-98 30-30z m0-264l-68 68-30-30 98-98 98 98-30 30z"/>
13
- <glyph glyph-name="close" unicode="&#100;" d="M405 375l-30 30-119-119-119 119-30-30 119-119-119-119 30-30 119 119 119-119 30 30-119 119z"/>
14
- <glyph glyph-name="up" unicode="&#101;" d="M256 341l-128-128 30-30 98 98 98-98 30 30z"/>
15
- <glyph glyph-name="down" unicode="&#102;" d="M354 329l-98-98-98 98-30-30 128-128 128 128z"/>
16
- <glyph glyph-name="sort" unicode="&#103;" d="M64 128l128 0 0 43-128 0z m0 256l0-43 384 0 0 43z m0-149l256 0 0 42-256 0z"/>
17
- <glyph glyph-name="done" unicode="&#104;" d="M192 166l-90 90-29-30 119-119 256 256-30 30z"/>
18
- <glyph glyph-name="done-all" unicode="&#105;" d="M384 363l-30 30-135-136 30-30z m90 30l-225-226-89 89-31-30 120-119 256 256z m-483-167l137-119 30 30-119 119-30-30z"/>
19
- <glyph glyph-name="search" unicode="&#106;" d="M192 128c46 0 87 16 120 42 0 0 164-164 164-164 4-4 9-6 15-6 5 0 11 2 15 6 8 9 8 22 0 30 0 0-164 165-164 165 26 33 42 74 42 119 0 106-86 192-192 192-106 0-192-86-192-192 0-106 86-192 192-192z m0 341c82 0 149-67 149-149 0-82-67-149-149-149-82 0-149 67-149 149 0 82 67 149 149 149z"/>
20
- <glyph glyph-name="pin" unicode="&#107;" d="M224 160l32-160 32 160c-10-1-21-2-32-2-10 0-22 1-32 2z m127 149c-16 9-31 30-31 43l0 32c0 11 6 19 12 26 7 6 12 14 12 22 0 27-31 48-88 48-57 0-87-21-87-48 0-8 4-16 12-22 5-7 11-15 11-26l0-32c0-13-14-34-31-43-19-9-35-27-35-44 0-37 51-74 130-74 80 0 130 37 130 74 0 17-15 34-35 44z"/>
21
- <glyph glyph-name="add" unicode="&#109;" d="M405 235l-128 0 0-128-42 0 0 128-128 0 0 42 128 0 0 128 42 0 0-128 128 0z"/>
22
- <glyph glyph-name="left" unicode="&#111;" d="M329 169l-98 98 98 98-30 30-128-128 128-128z"/>
23
- <glyph glyph-name="right" unicode="&#112;" d="M183 163l98 98-98 98 30 30 128-128-128-128z"/>
24
- <glyph glyph-name="skip" unicode="&#113;" d="M128 128l181 128-181 128z m213 256l0-256 43 0 0 256z"/>
25
- <glyph glyph-name="prev" unicode="&#114;" d="M128 384l43 0 0-256-43 0z m75-128l181-128 0 256z"/>
26
- </font></defs></svg>
Binary file
Binary file
@@ -1,395 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
- <meta name="viewport" content="width=device-width,initial-scale=1" />
7
- <title>Font Reference - Data Table</title>
8
- <link href="http://fonts.googleapis.com/css?family=Dosis:400,500,700" rel="stylesheet" type="text/css" />
9
- <link rel="stylesheet" href="icons.css" />
10
- <style type="text/css">
11
- html,
12
- body,
13
- div,
14
- span,
15
- applet,
16
- object,
17
- iframe,
18
- h1,
19
- h2,
20
- h3,
21
- h4,
22
- h5,
23
- h6,
24
- p,
25
- blockquote,
26
- pre,
27
- a,
28
- abbr,
29
- acronym,
30
- address,
31
- big,
32
- cite,
33
- code,
34
- del,
35
- dfn,
36
- em,
37
- img,
38
- ins,
39
- kbd,
40
- q,
41
- s,
42
- samp,
43
- small,
44
- strike,
45
- strong,
46
- sub,
47
- sup,
48
- tt,
49
- var,
50
- dl,
51
- dt,
52
- dd,
53
- ol,
54
- ul,
55
- li,
56
- fieldset,
57
- form,
58
- label,
59
- legend,
60
- table,
61
- caption,
62
- tbody,
63
- tfoot,
64
- thead,
65
- tr,
66
- th,
67
- td {
68
- margin: 0;
69
- padding: 0;
70
- border: 0;
71
- outline: 0;
72
- font-weight: inherit;
73
- font-style: inherit;
74
- font-family: inherit;
75
- font-size: 100%;
76
- vertical-align: baseline;
77
- }
78
- body {
79
- line-height: 1;
80
- color: #000;
81
- background: #fff;
82
- }
83
- ol,
84
- ul {
85
- list-style: none;
86
- }
87
- table {
88
- border-collapse: separate;
89
- border-spacing: 0;
90
- vertical-align: middle;
91
- }
92
- caption,
93
- th,
94
- td {
95
- text-align: left;
96
- font-weight: normal;
97
- vertical-align: middle;
98
- }
99
- a img {
100
- border: none;
101
- }
102
- * {
103
- -webkit-box-sizing: border-box;
104
- -moz-box-sizing: border-box;
105
- box-sizing: border-box;
106
- }
107
- body {
108
- font-family: 'Dosis', 'Tahoma', sans-serif;
109
- }
110
- .container {
111
- margin: 15px auto;
112
- width: 80%;
113
- }
114
- h1 {
115
- margin: 40px 0 20px;
116
- font-weight: 700;
117
- font-size: 38px;
118
- line-height: 32px;
119
- color: #fb565e;
120
- }
121
- h2 {
122
- font-size: 18px;
123
- padding: 0 0 21px 5px;
124
- margin: 45px 0 0 0;
125
- text-transform: uppercase;
126
- font-weight: 500;
127
- }
128
- .small {
129
- font-size: 14px;
130
- color: #a5adb4;
131
- }
132
- .small a {
133
- color: #a5adb4;
134
- }
135
- .small a:hover {
136
- color: #fb565e;
137
- }
138
- .glyphs.character-mapping {
139
- margin: 0 0 20px 0;
140
- padding: 20px 0 20px 30px;
141
- color: rgba(0, 0, 0, 0.5);
142
- border: 1px solid #d8e0e5;
143
- -webkit-border-radius: 3px;
144
- border-radius: 3px;
145
- }
146
- .glyphs.character-mapping li {
147
- margin: 0 30px 20px 0;
148
- display: inline-block;
149
- width: 90px;
150
- }
151
- .glyphs.character-mapping .icon {
152
- margin: 10px 0 10px 15px;
153
- padding: 15px;
154
- position: relative;
155
- width: 55px;
156
- height: 55px;
157
- color: #162a36 !important;
158
- overflow: hidden;
159
- -webkit-border-radius: 3px;
160
- border-radius: 3px;
161
- font-size: 32px;
162
- }
163
- .glyphs.character-mapping .icon svg {
164
- fill: #000;
165
- }
166
- .glyphs.character-mapping input {
167
- margin: 0;
168
- padding: 5px 0;
169
- line-height: 12px;
170
- font-size: 12px;
171
- display: block;
172
- width: 100%;
173
- border: 1px solid #d8e0e5;
174
- -webkit-border-radius: 5px;
175
- border-radius: 5px;
176
- text-align: center;
177
- outline: 0;
178
- }
179
- .glyphs.character-mapping input:focus {
180
- border: 1px solid #fbde4a;
181
- -webkit-box-shadow: inset 0 0 3px #fbde4a;
182
- box-shadow: inset 0 0 3px #fbde4a;
183
- }
184
- .glyphs.character-mapping input:hover {
185
- -webkit-box-shadow: inset 0 0 3px #fbde4a;
186
- box-shadow: inset 0 0 3px #fbde4a;
187
- }
188
- .glyphs.css-mapping {
189
- margin: 0 0 60px 0;
190
- padding: 30px 0 20px 30px;
191
- color: rgba(0, 0, 0, 0.5);
192
- border: 1px solid #d8e0e5;
193
- -webkit-border-radius: 3px;
194
- border-radius: 3px;
195
- }
196
- .glyphs.css-mapping li {
197
- margin: 0 30px 20px 0;
198
- padding: 0;
199
- display: inline-block;
200
- overflow: hidden;
201
- }
202
- .glyphs.css-mapping .icon {
203
- margin: 0;
204
- margin-right: 10px;
205
- padding: 13px;
206
- height: 50px;
207
- width: 50px;
208
- color: #162a36 !important;
209
- overflow: hidden;
210
- float: left;
211
- font-size: 24px;
212
- }
213
- .glyphs.css-mapping input {
214
- margin: 0;
215
- margin-top: 5px;
216
- padding: 8px;
217
- line-height: 16px;
218
- font-size: 16px;
219
- display: block;
220
- width: 150px;
221
- height: 40px;
222
- border: 1px solid #d8e0e5;
223
- -webkit-border-radius: 5px;
224
- border-radius: 5px;
225
- background: #fff;
226
- outline: 0;
227
- float: right;
228
- }
229
- .glyphs.css-mapping input:focus {
230
- border: 1px solid #fbde4a;
231
- -webkit-box-shadow: inset 0 0 3px #fbde4a;
232
- box-shadow: inset 0 0 3px #fbde4a;
233
- }
234
- .glyphs.css-mapping input:hover {
235
- -webkit-box-shadow: inset 0 0 3px #fbde4a;
236
- box-shadow: inset 0 0 3px #fbde4a;
237
- }
238
- </style>
239
- </head>
240
- <body>
241
- <div class="container">
242
- <h1>Data Table</h1>
243
- <p class="small">This font was created with<a href="http://fontastic.me/">Fontastic</a></p>
244
- <h2>CSS mapping</h2>
245
- <ul class="glyphs css-mapping">
246
- <li>
247
- <div class="icon datatable-icon-filter"></div>
248
- <input type="text" readonly="readonly" value="filter" />
249
- </li>
250
- <li>
251
- <div class="icon datatable-icon-collapse"></div>
252
- <input type="text" readonly="readonly" value="collapse" />
253
- </li>
254
- <li>
255
- <div class="icon datatable-icon-expand"></div>
256
- <input type="text" readonly="readonly" value="expand" />
257
- </li>
258
- <li>
259
- <div class="icon datatable-icon-close"></div>
260
- <input type="text" readonly="readonly" value="close" />
261
- </li>
262
- <li>
263
- <div class="icon datatable-icon-up"></div>
264
- <input type="text" readonly="readonly" value="up" />
265
- </li>
266
- <li>
267
- <div class="icon datatable-icon-down"></div>
268
- <input type="text" readonly="readonly" value="down" />
269
- </li>
270
- <li>
271
- <div class="icon datatable-icon-sort"></div>
272
- <input type="text" readonly="readonly" value="sort" />
273
- </li>
274
- <li>
275
- <div class="icon datatable-icon-done"></div>
276
- <input type="text" readonly="readonly" value="done" />
277
- </li>
278
- <li>
279
- <div class="icon datatable-icon-done-all"></div>
280
- <input type="text" readonly="readonly" value="done-all" />
281
- </li>
282
- <li>
283
- <div class="icon datatable-icon-search"></div>
284
- <input type="text" readonly="readonly" value="search" />
285
- </li>
286
- <li>
287
- <div class="icon datatable-icon-pin"></div>
288
- <input type="text" readonly="readonly" value="pin" />
289
- </li>
290
- <li>
291
- <div class="icon datatable-icon-add"></div>
292
- <input type="text" readonly="readonly" value="add" />
293
- </li>
294
- <li>
295
- <div class="icon datatable-icon-left"></div>
296
- <input type="text" readonly="readonly" value="left" />
297
- </li>
298
- <li>
299
- <div class="icon datatable-icon-right"></div>
300
- <input type="text" readonly="readonly" value="right" />
301
- </li>
302
- <li>
303
- <div class="icon datatable-icon-skip"></div>
304
- <input type="text" readonly="readonly" value="skip" />
305
- </li>
306
- <li>
307
- <div class="icon datatable-icon-prev"></div>
308
- <input type="text" readonly="readonly" value="prev" />
309
- </li>
310
- </ul>
311
- <h2>Character mapping</h2>
312
- <ul class="glyphs character-mapping">
313
- <li>
314
- <div data-icon="b" class="icon"></div>
315
- <input type="text" readonly="readonly" value="b" />
316
- </li>
317
- <li>
318
- <div data-icon="a" class="icon"></div>
319
- <input type="text" readonly="readonly" value="a" />
320
- </li>
321
- <li>
322
- <div data-icon="c" class="icon"></div>
323
- <input type="text" readonly="readonly" value="c" />
324
- </li>
325
- <li>
326
- <div data-icon="d" class="icon"></div>
327
- <input type="text" readonly="readonly" value="d" />
328
- </li>
329
- <li>
330
- <div data-icon="e" class="icon"></div>
331
- <input type="text" readonly="readonly" value="e" />
332
- </li>
333
- <li>
334
- <div data-icon="f" class="icon"></div>
335
- <input type="text" readonly="readonly" value="f" />
336
- </li>
337
- <li>
338
- <div data-icon="g" class="icon"></div>
339
- <input type="text" readonly="readonly" value="g" />
340
- </li>
341
- <li>
342
- <div data-icon="h" class="icon"></div>
343
- <input type="text" readonly="readonly" value="h" />
344
- </li>
345
- <li>
346
- <div data-icon="i" class="icon"></div>
347
- <input type="text" readonly="readonly" value="i" />
348
- </li>
349
- <li>
350
- <div data-icon="j" class="icon"></div>
351
- <input type="text" readonly="readonly" value="j" />
352
- </li>
353
- <li>
354
- <div data-icon="k" class="icon"></div>
355
- <input type="text" readonly="readonly" value="k" />
356
- </li>
357
- <li>
358
- <div data-icon="m" class="icon"></div>
359
- <input type="text" readonly="readonly" value="m" />
360
- </li>
361
- <li>
362
- <div data-icon="o" class="icon"></div>
363
- <input type="text" readonly="readonly" value="o" />
364
- </li>
365
- <li>
366
- <div data-icon="p" class="icon"></div>
367
- <input type="text" readonly="readonly" value="p" />
368
- </li>
369
- <li>
370
- <div data-icon="q" class="icon"></div>
371
- <input type="text" readonly="readonly" value="q" />
372
- </li>
373
- <li>
374
- <div data-icon="r" class="icon"></div>
375
- <input type="text" readonly="readonly" value="r" />
376
- </li>
377
- </ul>
378
- </div>
379
- <script>
380
- (function () {
381
- var glyphs, i, len, ref;
382
-
383
- ref = document.getElementsByClassName('glyphs');
384
- for (i = 0, len = ref.length; i < len; i++) {
385
- glyphs = ref[i];
386
- glyphs.addEventListener('click', function (event) {
387
- if (event.target.tagName === 'INPUT') {
388
- return event.target.select();
389
- }
390
- });
391
- }
392
- }.call(this));
393
- </script>
394
- </body>
395
- </html>