@liedekef/ftable 1.0.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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/ftable.esm.js +4749 -0
  4. package/ftable.js +4749 -0
  5. package/ftable.min.js +54 -0
  6. package/ftable.umd.js +4750 -0
  7. package/localization/ftable.ar.js +35 -0
  8. package/localization/ftable.bd.js +33 -0
  9. package/localization/ftable.ca.js +33 -0
  10. package/localization/ftable.cz.js +33 -0
  11. package/localization/ftable.de.js +33 -0
  12. package/localization/ftable.el.js +33 -0
  13. package/localization/ftable.es.js +33 -0
  14. package/localization/ftable.fa.js +33 -0
  15. package/localization/ftable.fr.js +33 -0
  16. package/localization/ftable.hr.js +33 -0
  17. package/localization/ftable.hu.js +33 -0
  18. package/localization/ftable.id.js +34 -0
  19. package/localization/ftable.it.js +33 -0
  20. package/localization/ftable.kr.js +33 -0
  21. package/localization/ftable.lt.js +33 -0
  22. package/localization/ftable.nl.js +33 -0
  23. package/localization/ftable.no.js +33 -0
  24. package/localization/ftable.pl.js +33 -0
  25. package/localization/ftable.pt-BR.js +33 -0
  26. package/localization/ftable.pt-PT.js +32 -0
  27. package/localization/ftable.ro.js +33 -0
  28. package/localization/ftable.ru.js +34 -0
  29. package/localization/ftable.se.js +33 -0
  30. package/localization/ftable.ta.js +33 -0
  31. package/localization/ftable.tr.js +33 -0
  32. package/localization/ftable.ua.js +33 -0
  33. package/localization/ftable.vi.js +33 -0
  34. package/localization/ftable.zh-CN.js +33 -0
  35. package/package.json +44 -0
  36. package/themes/basic/clone.png +0 -0
  37. package/themes/basic/close.png +0 -0
  38. package/themes/basic/column-asc.png +0 -0
  39. package/themes/basic/column-desc.png +0 -0
  40. package/themes/basic/column-sortable.png +0 -0
  41. package/themes/basic/delete.png +0 -0
  42. package/themes/basic/edit.png +0 -0
  43. package/themes/basic/ftable_basic.css +358 -0
  44. package/themes/basic/ftable_basic.less +89 -0
  45. package/themes/basic/ftable_basic.min.css +1 -0
  46. package/themes/ftable_theme_base.less +594 -0
  47. package/themes/lightcolor/add.png +0 -0
  48. package/themes/lightcolor/bg-thead.png +0 -0
  49. package/themes/lightcolor/blue/ftable.css +597 -0
  50. package/themes/lightcolor/blue/ftable.less +88 -0
  51. package/themes/lightcolor/blue/ftable.min.css +1 -0
  52. package/themes/lightcolor/blue/loading.gif +0 -0
  53. package/themes/lightcolor/clone.png +0 -0
  54. package/themes/lightcolor/close.png +0 -0
  55. package/themes/lightcolor/column-asc.png +0 -0
  56. package/themes/lightcolor/column-desc.png +0 -0
  57. package/themes/lightcolor/column-sortable.png +0 -0
  58. package/themes/lightcolor/delete.png +0 -0
  59. package/themes/lightcolor/edit.png +0 -0
  60. package/themes/lightcolor/ftable_lightcolor_base.less +337 -0
  61. package/themes/lightcolor/gray/ftable.css +597 -0
  62. package/themes/lightcolor/gray/ftable.less +88 -0
  63. package/themes/lightcolor/gray/ftable.min.css +1 -0
  64. package/themes/lightcolor/gray/loading.gif +0 -0
  65. package/themes/lightcolor/green/ftable.css +597 -0
  66. package/themes/lightcolor/green/ftable.less +88 -0
  67. package/themes/lightcolor/green/ftable.min.css +1 -0
  68. package/themes/lightcolor/green/loading.gif +0 -0
  69. package/themes/lightcolor/orange/ftable.css +597 -0
  70. package/themes/lightcolor/orange/ftable.less +88 -0
  71. package/themes/lightcolor/orange/ftable.min.css +1 -0
  72. package/themes/lightcolor/orange/loading.gif +0 -0
  73. package/themes/lightcolor/red/ftable.css +597 -0
  74. package/themes/lightcolor/red/ftable.less +88 -0
  75. package/themes/lightcolor/red/ftable.min.css +1 -0
  76. package/themes/lightcolor/red/loading.gif +0 -0
  77. package/themes/metro/add.png +0 -0
  78. package/themes/metro/blue/ftable.css +574 -0
  79. package/themes/metro/blue/ftable.less +9 -0
  80. package/themes/metro/blue/ftable.min.css +1 -0
  81. package/themes/metro/blue/loading.gif +0 -0
  82. package/themes/metro/brown/ftable.css +574 -0
  83. package/themes/metro/brown/ftable.less +9 -0
  84. package/themes/metro/brown/ftable.min.css +1 -0
  85. package/themes/metro/brown/loading.gif +0 -0
  86. package/themes/metro/clone.png +0 -0
  87. package/themes/metro/close.png +0 -0
  88. package/themes/metro/column-asc.png +0 -0
  89. package/themes/metro/column-desc.png +0 -0
  90. package/themes/metro/column-sortable.png +0 -0
  91. package/themes/metro/crimson/ftable.css +574 -0
  92. package/themes/metro/crimson/ftable.less +9 -0
  93. package/themes/metro/crimson/ftable.min.css +1 -0
  94. package/themes/metro/crimson/loading.gif +0 -0
  95. package/themes/metro/darkgray/ftable.css +574 -0
  96. package/themes/metro/darkgray/ftable.less +9 -0
  97. package/themes/metro/darkgray/ftable.min.css +1 -0
  98. package/themes/metro/darkgray/loading.gif +0 -0
  99. package/themes/metro/darkorange/ftable.css +574 -0
  100. package/themes/metro/darkorange/ftable.less +9 -0
  101. package/themes/metro/darkorange/ftable.min.css +1 -0
  102. package/themes/metro/darkorange/loading.gif +0 -0
  103. package/themes/metro/delete.png +0 -0
  104. package/themes/metro/edit.png +0 -0
  105. package/themes/metro/ftable_metro_base.less +450 -0
  106. package/themes/metro/green/ftable.css +574 -0
  107. package/themes/metro/green/ftable.less +9 -0
  108. package/themes/metro/green/ftable.min.css +1 -0
  109. package/themes/metro/green/loading.gif +0 -0
  110. package/themes/metro/lightgray/ftable.css +574 -0
  111. package/themes/metro/lightgray/ftable.less +9 -0
  112. package/themes/metro/lightgray/ftable.min.css +1 -0
  113. package/themes/metro/lightgray/loading.gif +0 -0
  114. package/themes/metro/pink/ftable.css +574 -0
  115. package/themes/metro/pink/ftable.less +9 -0
  116. package/themes/metro/pink/ftable.min.css +1 -0
  117. package/themes/metro/pink/loading.gif +0 -0
  118. package/themes/metro/purple/ftable.css +574 -0
  119. package/themes/metro/purple/ftable.less +9 -0
  120. package/themes/metro/purple/ftable.min.css +1 -0
  121. package/themes/metro/purple/loading.gif +0 -0
  122. package/themes/metro/red/ftable.css +574 -0
  123. package/themes/metro/red/ftable.less +9 -0
  124. package/themes/metro/red/ftable.min.css +1 -0
  125. package/themes/metro/red/loading.gif +0 -0
@@ -0,0 +1,450 @@
1
+ // fTable Metro Style Theme Base
2
+
3
+ // Imports ////////////////////////////////////////////////////////////////////
4
+
5
+ @import "../ftable_theme_base.less";
6
+
7
+ // Font definitions ///////////////////////////////////////////////////////////
8
+
9
+ @font-face
10
+ {
11
+ font-family: 'Open Sans';
12
+ font-style: normal;
13
+ font-weight: 300;
14
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff');
15
+ }
16
+
17
+ @font-face
18
+ {
19
+ font-family: 'Open Sans';
20
+ font-style: italic;
21
+ font-weight: 300;
22
+ src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff');
23
+ }
24
+
25
+ @font-face
26
+ {
27
+ font-family: 'Open Sans';
28
+ font-style: normal;
29
+ font-weight: 400;
30
+ src: local('Open Sans'), local('OpenSans'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
31
+ }
32
+
33
+ @font-face
34
+ {
35
+ font-family: 'Open Sans';
36
+ font-style: italic;
37
+ font-weight: 400;
38
+ src: local('Open Sans Italic'), local('OpenSans-Italic'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff');
39
+ }
40
+
41
+ @font-face
42
+ {
43
+ font-family: 'Open Sans';
44
+ font-style: normal;
45
+ font-weight: 600;
46
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff');
47
+ }
48
+
49
+ @font-face
50
+ {
51
+ font-family: 'Open Sans';
52
+ font-style: italic;
53
+ font-weight: 600;
54
+ src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff');
55
+ }
56
+
57
+ @font-face
58
+ {
59
+ font-family: 'Open Sans';
60
+ font-style: normal;
61
+ font-weight: 700;
62
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff');
63
+ }
64
+
65
+ @font-face
66
+ {
67
+ font-family: 'Open Sans';
68
+ font-style: italic;
69
+ font-weight: 700;
70
+ src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff');
71
+ }
72
+
73
+ // JTABLE THEME - METRO STYLE BASE ////////////////////////////////////////////
74
+
75
+ .ftable_metro_base( @theme-folder, @main-theme-color )
76
+ {
77
+ .ftable_theme_base; //Inherit from ftable_theme_base
78
+
79
+ // Variables //////////////////////////////////////////////////////////////
80
+
81
+ @default-font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
82
+
83
+ @default-font-size: 14px;
84
+ @default-line-height: 1.3;
85
+
86
+ @table-title-font-size: @default-font-size + 5px;
87
+ @table-header-font-size: @default-font-size + 1px;
88
+ @table-bottom-panel-font-size: @default-font-size - 1px;
89
+
90
+ @table-title-background: @main-theme-color - #222;
91
+ @table-header-background: @main-theme-color;
92
+ @table-bottom-panel-background: @main-theme-color - #111;
93
+
94
+ // Mixings //////////////////////////////////////////////////////////////////
95
+
96
+ .font-light(@size: @default-font-size)
97
+ {
98
+ font-family: @default-font-family;
99
+ font-weight: 300;
100
+ font-size: @size;
101
+ }
102
+
103
+ .font-normal(@size: @default-font-size)
104
+ {
105
+ font-family: @default-font-family;
106
+ font-weight: 400;
107
+ font-size: @size;
108
+ }
109
+
110
+ .font-semi-bold(@size: @default-font-size)
111
+ {
112
+ font-family: @default-font-family;
113
+ font-weight: 600;
114
+ font-size: @size;
115
+ }
116
+
117
+ .font-bold(@size: @default-font-size)
118
+ {
119
+ font-family: @default-font-family;
120
+ font-weight: 700;
121
+ font-size: @size;
122
+ }
123
+
124
+ // Styles ///////////////////////////////////////////////////////////////////
125
+
126
+ div.ftable-main-container
127
+ {
128
+ .font-light();
129
+ background: #fff;
130
+ line-height: @default-line-height;
131
+
132
+ // Title ---------------------------------------------------------------
133
+
134
+ div.ftable-title
135
+ {
136
+ background-color: @table-title-background;
137
+ padding-left: 10px;
138
+
139
+ div.ftable-title-text
140
+ {
141
+ .font-light(@table-title-font-size);
142
+ line-height: @table-title-font-size + 15px;
143
+ color: #fff;
144
+ }
145
+
146
+ .ftable-close-button
147
+ {
148
+ .dock(right, 8px);
149
+ .opacity(0.5);
150
+ background: url('close.png') no-repeat;
151
+ width: 16px;
152
+ height: 16px;
153
+
154
+ &:hover
155
+ {
156
+ .opacity(1);
157
+ }
158
+ }
159
+
160
+ // Toolbar -------------------------------------------------------------
161
+
162
+ div.ftable-toolbar
163
+ {
164
+ .dock(bottom-right);
165
+
166
+ span.ftable-toolbar-item
167
+ {
168
+ background-color: @table-title-background + #0A0A0A;
169
+ color: white;
170
+
171
+ &.ftable-toolbar-item-add-record
172
+ {
173
+ span.ftable-toolbar-item-icon
174
+ {
175
+ background-image: url('add.png');
176
+ }
177
+ }
178
+
179
+ &.ftable-toolbar-item-hover
180
+ {
181
+ background-color: @main-theme-color - #111;
182
+ padding-bottom: 6px;
183
+ }
184
+ }
185
+ }
186
+ }
187
+
188
+ // Table ---------------------------------------------------------------
189
+
190
+ table.ftable
191
+ {
192
+ border: 1px solid @main-theme-color;
193
+ border-collapse: collapse;
194
+ border-spacing: 0;
195
+
196
+ > thead
197
+ {
198
+ background-color: @table-header-background;
199
+
200
+ th
201
+ {
202
+ .font-light(@table-header-font-size);
203
+ color: #fff;
204
+
205
+ &.ftable-column-header
206
+ {
207
+ @header-container-height: 24px;
208
+
209
+ div.ftable-column-header-container
210
+ {
211
+ height: @header-container-height;
212
+ margin-left: 4px;
213
+
214
+ div.ftable-column-resize-handler
215
+ {
216
+ height: @header-container-height + 4px;
217
+ }
218
+
219
+ span.ftable-column-header-text
220
+ {
221
+ margin-top: 2px;
222
+ }
223
+ }
224
+ }
225
+
226
+ &.ftable-column-header-sortable
227
+ {
228
+ div.ftable-column-header-container
229
+ {
230
+ background: url('column-sortable.png') no-repeat right;
231
+ }
232
+ }
233
+
234
+ &.ftable-column-header-sorted-asc
235
+ {
236
+ div.ftable-column-header-container
237
+ {
238
+ background: url('column-asc.png') no-repeat right;
239
+ }
240
+ }
241
+
242
+ &.ftable-column-header-sorted-desc
243
+ {
244
+ div.ftable-column-header-container
245
+ {
246
+ background: url('column-desc.png') no-repeat right;
247
+ }
248
+ }
249
+ }
250
+ }
251
+
252
+ > tbody
253
+ {
254
+ > tr
255
+ {
256
+ background-color: #fff;
257
+
258
+ > td
259
+ {
260
+ border: 1px solid #ddd;
261
+ }
262
+
263
+ &.ftable-data-row
264
+ {
265
+ > td
266
+ {
267
+ padding: 4px;
268
+
269
+ > .ftable-edit-command-button
270
+ {
271
+ background: url('edit.png') no-repeat;
272
+ width: 16px;
273
+ height: 16px;
274
+ opacity: 0.4;
275
+
276
+ &:hover
277
+ {
278
+ opacity: 0.8;
279
+ }
280
+ }
281
+
282
+ > .ftable-clone-command-button
283
+ {
284
+ background: url('clone.png') no-repeat;
285
+ width: 16px;
286
+ height: 16px;
287
+ opacity: 0.4;
288
+
289
+ &:hover
290
+ {
291
+ opacity: 0.8;
292
+ }
293
+ }
294
+
295
+ > .ftable-delete-command-button
296
+ {
297
+ background: url('delete.png') no-repeat;
298
+ width: 16px;
299
+ height: 16px;
300
+ opacity: 0.4;
301
+
302
+ &:hover
303
+ {
304
+ opacity: 0.8;
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+ &.ftable-row-even
311
+ {
312
+ background-color: #f9f9f9;
313
+ }
314
+
315
+ &:hover
316
+ {
317
+ background: #e8eaef;
318
+ }
319
+
320
+ &.ftable-row-selected
321
+ {
322
+ color: #fff;
323
+ background-color: @main-theme-color + #222;
324
+ }
325
+
326
+ &.ftable-row-created
327
+ {
328
+ background-color: @main-theme-color + #333;
329
+ }
330
+
331
+ &.ftable-row-updated
332
+ {
333
+ background-color: @main-theme-color + #333;
334
+ }
335
+
336
+ &.ftable-row-deleting
337
+ {
338
+ background-color: #e51400;
339
+ color: #fff;
340
+ }
341
+
342
+ &.ftable-child-row
343
+ {
344
+ > td
345
+ {
346
+ padding: 2px;
347
+ background-color: #fff;
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
353
+
354
+ // Bottom panel --------------------------------------------------------------
355
+
356
+ div.ftable-bottom-panel
357
+ {
358
+ @page-number-margin: 1px;
359
+ @page-number-padding-vertical: 2px;
360
+ @page-number-padding-horizontal: 5px;
361
+
362
+ @bottom-panel-height: (@table-bottom-panel-font-size * @default-line-height) + (@page-number-margin * 2) + (@page-number-padding-vertical * 2);
363
+
364
+ background-color: @table-bottom-panel-background;
365
+ color: #fff;
366
+ min-height: @bottom-panel-height;
367
+ font-size: @table-bottom-panel-font-size;
368
+ border: 1px solid @main-theme-color;
369
+ border-top: none;
370
+
371
+ .ftable-page-list
372
+ {
373
+ margin: 1px 0px 0px 0px;
374
+
375
+ .ftable-page-number,
376
+ .ftable-page-number-space,
377
+ .ftable-page-number-first,
378
+ .ftable-page-number-last,
379
+ .ftable-page-number-previous,
380
+ .ftable-page-number-next,
381
+ .ftable-page-number-active
382
+ {
383
+ background-color: @table-bottom-panel-background + #111;
384
+ margin: @page-number-margin;
385
+ padding: @page-number-padding-vertical @page-number-padding-horizontal;
386
+ color: #fff;
387
+ }
388
+
389
+ .ftable-page-number:hover,
390
+ .ftable-page-number-first:hover,
391
+ .ftable-page-number-last:hover,
392
+ .ftable-page-number-previous:hover,
393
+ .ftable-page-number-next:hover
394
+ {
395
+ background-color: @table-bottom-panel-background + #333;
396
+ }
397
+
398
+ .ftable-page-number-disabled
399
+ {
400
+ .opacity(0.75);
401
+ color: #ccc;
402
+ cursor: default;
403
+
404
+ &:hover
405
+ {
406
+ background-color: @table-bottom-panel-background + #111;
407
+ }
408
+ }
409
+ }
410
+
411
+ span.ftable-page-info
412
+ {
413
+ display: inline-block;
414
+ padding: 4px;
415
+ }
416
+
417
+ span.ftable-page-size-change
418
+ {
419
+ display:inline-block;
420
+ padding:2px 0px 2px 0px;
421
+ }
422
+
423
+ span.ftable-goto-page
424
+ {
425
+ display:inline-block;
426
+ padding:2px 0px 2px 0px;
427
+ }
428
+ }
429
+ }
430
+
431
+ // Forms -------------------------------------------------------------------
432
+
433
+ form.ftable-dialog-form
434
+ {
435
+ .font-normal();
436
+ }
437
+
438
+ // Busy message-------------------------------------------------------------
439
+
440
+ div.ftable-busy-message
441
+ {
442
+ .font-light(16px);
443
+ border: 1px solid #fff;
444
+ padding: 5px 5px 5px 58px;
445
+ color: #fff;
446
+ background: url('@{theme-folder}/loading.gif') no-repeat;
447
+ background-color: @main-theme-color - #222;
448
+ background-position: 8px;
449
+ }
450
+ }