@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,594 @@
1
+ // Base styles for fTable.
2
+ // All themes must inherit from ftable_theme_base.
3
+
4
+ // GENERAL MIXINGS ////////////////////////////////////////////////////////////
5
+
6
+ .centered()
7
+ {
8
+ text-align: center;
9
+ vertical-align: middle;
10
+ }
11
+
12
+ .clear-list-styles()
13
+ {
14
+ margin: 0px;
15
+ padding: 0px;
16
+ list-style: none;
17
+ }
18
+
19
+ .border-radius(@radius)
20
+ {
21
+ -webkit-border-radius: @radius;
22
+ -moz-border-radius: @radius;
23
+ border-radius: @radius;
24
+ }
25
+
26
+ .text-shadow(@shadow)
27
+ {
28
+ -webkit-text-shadow: @shadow;
29
+ text-shadow: @shadow;
30
+ }
31
+
32
+ .box-shadow(@shadow)
33
+ {
34
+ -webkit-box-shadow: @shadow;
35
+ -moz-box-shadow: @shadow;
36
+ box-shadow: @shadow;
37
+ }
38
+
39
+ .opacity(@value)
40
+ {
41
+ opacity: @value;
42
+ //for IE8 and earlier
43
+ @ieValue: @value * 100;
44
+ filter: alpha(opacity=@ieValue);
45
+ }
46
+
47
+ .vertical-gradient(@top_color, @bottom_color)
48
+ {
49
+ background: @top_color; // Old browsers
50
+ background: -moz-linear-gradient(top, @top_color 0%, @bottom_color 100%); // FF3.6+
51
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@top_color), color-stop(100%,@bottom_color)); // Chrome,Safari4+
52
+ background: -webkit-linear-gradient(top, @top_color 0%,@bottom_color 100%); // Chrome10+,Safari5.1+
53
+ background: -o-linear-gradient(top, @top_color 0%,@bottom_color 100%); // Opera 11.10+
54
+ background: -ms-linear-gradient(top, @top_color 0%,@bottom_color 100%); // IE10+
55
+ background: linear-gradient(to bottom, @top_color 0%,@bottom_color 100%); // W3C
56
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{top_color}', endColorstr='@{bottom_color}',GradientType=0 ); // IE6-9
57
+ }
58
+
59
+ // Docking
60
+
61
+ @default-dock-margin: 0px;
62
+
63
+ .dock(top, @margin: @default-dock-margin)
64
+ {
65
+ left: @margin;
66
+ top: @margin;
67
+ right: @margin;
68
+ }
69
+
70
+ .dock(right, @margin: @default-dock-margin)
71
+ {
72
+ right: @margin;
73
+ top: @margin;
74
+ bottom: @margin;
75
+ }
76
+
77
+ .dock(bottom, @margin: @default-dock-margin)
78
+ {
79
+ left: @margin;
80
+ right: @margin;
81
+ bottom: @margin;
82
+ }
83
+
84
+ .dock(left, @margin: @default-dock-margin)
85
+ {
86
+ left: @margin;
87
+ top: @margin;
88
+ bottom: @margin;
89
+ }
90
+
91
+ .dock(top-left, @margin: @default-dock-margin)
92
+ {
93
+ left: @margin;
94
+ top: @margin;
95
+ }
96
+
97
+ .dock(top-right, @margin: @default-dock-margin)
98
+ {
99
+ top: @margin;
100
+ right: @margin;
101
+ }
102
+
103
+ .dock(bottom-right, @margin: @default-dock-margin)
104
+ {
105
+ bottom: @margin;
106
+ right: @margin;
107
+ }
108
+
109
+ .dock(bottom-left, @margin: @default-dock-margin)
110
+ {
111
+ bottom: @margin;
112
+ left: @margin;
113
+ }
114
+
115
+ .dock(@direction, @margin: @default-dock-margin)
116
+ {
117
+ position: absolute;
118
+ }
119
+
120
+ // JTABLE THEME BASE STYLES ///////////////////////////////////////////////////
121
+
122
+ .ftable_theme_base()
123
+ {
124
+ div.ftable-main-container
125
+ {
126
+ position: relative;
127
+
128
+ div.ftable-title
129
+ {
130
+ position: relative;
131
+ text-align: left;
132
+
133
+ .ftable-close-button
134
+ {
135
+ .dock(right);
136
+ }
137
+
138
+ // Toolbar -------------------------------------------------------------
139
+
140
+ div.ftable-toolbar
141
+ {
142
+ .dock(bottom-right);
143
+
144
+ display: inline-block;
145
+ margin-right: 5px;
146
+
147
+ .ftable-toolbar-item
148
+ {
149
+ position: relative;
150
+ display: inline-block;
151
+ margin: 0px 0px 0px 5px;
152
+ cursor: pointer;
153
+ font-size: 0.9em;
154
+ padding: 2px;
155
+ vertical-align: bottom;
156
+
157
+ span.ftable-toolbar-item-icon
158
+ {
159
+ display: inline-block;
160
+ margin: 2px;
161
+ vertical-align: middle;
162
+ width: 16px;
163
+ height: 16px;
164
+ }
165
+
166
+ span.ftable-toolbar-item-text
167
+ {
168
+ display: inline-block;
169
+ margin: 2px;
170
+ vertical-align: middle;
171
+ }
172
+ }
173
+ }
174
+
175
+ .ftable-close-button+div.ftable-toolbar
176
+ {
177
+ margin-right: 30px;
178
+ }
179
+ }
180
+
181
+ table.ftable
182
+ {
183
+ width: 100%;
184
+
185
+ thead
186
+ {
187
+ th
188
+ {
189
+ padding: 0px 3px 0px 6px;
190
+ vertical-align: middle;
191
+ text-align: left;
192
+
193
+ &.ftable-column-header
194
+ {
195
+ height: 1px; /* this is so the heigth of the div inside can be set to 100% */
196
+
197
+ div.ftable-column-header-container
198
+ {
199
+ position: relative;
200
+ display: table; /* display table so the inside elements can be easily aligned vertically */
201
+ width: 100%; /* width=100% is redundant for regular div, but for display table it is needed */
202
+ height: 100% !important; /* height at 100% so the resize bar in it will have full height too */
203
+
204
+ span.ftable-column-header-text
205
+ {
206
+ display: table-cell;
207
+ vertical-align: middle; /* this works since we have display=table-cell */
208
+ padding-top: 4px;
209
+ padding-bottom: 3px;
210
+ }
211
+
212
+ div.ftable-column-resize-handler
213
+ {
214
+ position: absolute;
215
+ display: table-cell;
216
+ vertical-align: middle;
217
+ height: 100%; /* so the resize bar fills the whole height */
218
+ width: 8px;
219
+ right: -8px;
220
+ z-index: 2;
221
+ cursor: col-resize;
222
+ }
223
+ }
224
+ }
225
+
226
+ &.ftable-command-column-header
227
+ {
228
+ text-align: center;
229
+ }
230
+
231
+ &.ftable-column-header-select
232
+ {
233
+ text-align: center;
234
+ width: 1%;
235
+
236
+ input
237
+ {
238
+ cursor: pointer;
239
+ }
240
+ }
241
+
242
+ &.ftable-column-header-sortable
243
+ {
244
+ cursor: pointer;
245
+ }
246
+ }
247
+ }
248
+
249
+ tbody
250
+ {
251
+ tr
252
+ {
253
+ > td
254
+ {
255
+ .ftable-command-button
256
+ {
257
+ margin: 5px;
258
+ padding: 0px;
259
+ cursor: pointer;
260
+ border: none;
261
+ display: inline;
262
+
263
+ span
264
+ {
265
+ display: none;
266
+ }
267
+ }
268
+
269
+ &.ftable-command-column
270
+ {
271
+ .centered;
272
+ }
273
+
274
+ &.ftable-selecting-column
275
+ {
276
+ .centered;
277
+
278
+ input
279
+ {
280
+ cursor: pointer;
281
+ }
282
+ }
283
+ }
284
+
285
+ &.ftable-no-data-row
286
+ {
287
+ text-align: center;
288
+ }
289
+
290
+ &.ftable-row-created
291
+ {
292
+ }
293
+
294
+ &.ftable-row-updated
295
+ {
296
+ }
297
+
298
+ &.ftable-row-deleting
299
+ {
300
+ }
301
+ }
302
+ }
303
+ }
304
+
305
+ > div.ftable-bottom-panel
306
+ {
307
+ position: relative;
308
+ min-height: 24px;
309
+ text-align: left;
310
+
311
+ div.ftable-right-area
312
+ {
313
+ .dock(right);
314
+ }
315
+
316
+ .ftable-page-list
317
+ {
318
+ display: inline-block;
319
+
320
+ .ftable-page-number,
321
+ .ftable-page-number-space,
322
+ .ftable-page-number-first,
323
+ .ftable-page-number-last,
324
+ .ftable-page-number-previous,
325
+ .ftable-page-number-next,
326
+ .ftable-page-number-active
327
+ {
328
+ padding: 2px 5px;
329
+ display: inline-block;
330
+ cursor: pointer;
331
+ }
332
+
333
+ .ftable-page-number-space,
334
+ .ftable-page-number-active,
335
+ .ftable-page-number-disabled
336
+ {
337
+ cursor: default;
338
+ }
339
+ }
340
+
341
+ span.ftable-page-size-change
342
+ {
343
+ margin-left: 5px;
344
+ }
345
+
346
+ span.ftable-goto-page
347
+ {
348
+ margin-left: 5px;
349
+
350
+ input[type=text]
351
+ {
352
+ width:22px;
353
+ }
354
+ }
355
+
356
+ span.ftable-page-info
357
+ {
358
+ vertical-align: middle;
359
+ }
360
+ }
361
+
362
+ div.ftable-column-resize-bar
363
+ {
364
+ .opacity(0.5);
365
+ position: absolute;
366
+ width: 1px;
367
+ background-color: #000;
368
+ }
369
+
370
+ div.ftable-column-selection-container
371
+ {
372
+ position: absolute;
373
+ border: 1px solid #C8C8C8;
374
+ background: #fff;
375
+ color: #000;
376
+ z-index: 101;
377
+ padding: 5px;
378
+
379
+ ul.ftable-column-select-list
380
+ {
381
+ .clear-list-styles;
382
+
383
+ li
384
+ {
385
+ margin: 0px;
386
+ padding: 2px 0px;
387
+
388
+ label
389
+ {
390
+ span
391
+ {
392
+ position: relative;
393
+ top: -1px;
394
+ margin-left: 4px;
395
+ }
396
+ }
397
+
398
+ input[type="checkbox"]
399
+ {
400
+ cursor: pointer;
401
+ }
402
+ }
403
+ }
404
+ }
405
+ }
406
+
407
+ form.ftable-dialog-form
408
+ {
409
+ div.ftable-input-field-container
410
+ {
411
+ padding: 2px 0px 3px 0px;
412
+ border-bottom: 1px solid #ddd;
413
+
414
+ &:last-child
415
+ {
416
+ border: none;
417
+ }
418
+ }
419
+
420
+ div.ftable-input-label
421
+ {
422
+ padding: 2px 3px;
423
+ font-size: 1.1em;
424
+ color: #666;
425
+ }
426
+
427
+ div.ftable-input
428
+ {
429
+ padding: 2px;
430
+ }
431
+
432
+ div.ftable-date-input
433
+ {
434
+ /* No additional style */
435
+ }
436
+
437
+ div.ftable-text-input
438
+ {
439
+ /* No additional style */
440
+ }
441
+
442
+ span.ftable-option-text-clickable
443
+ {
444
+ position: relative;
445
+ top: -2px;
446
+ }
447
+
448
+ div.ftable-textarea-input textarea
449
+ {
450
+ width: 300px;
451
+ min-height: 60px;
452
+ }
453
+
454
+ div.ftable-password-input
455
+ {
456
+ }
457
+
458
+ div.ftable-dropdown-input
459
+ {
460
+ }
461
+
462
+ div.ftable-radiobuttonlist-input
463
+ {
464
+ }
465
+
466
+ div.ftable-checkbox-input span,
467
+ div.ftable-radio-input span
468
+ {
469
+ padding-left: 4px;
470
+ }
471
+
472
+ div.ftable-radio-input input,
473
+ div.ftable-checkbox-input input,
474
+ span.ftable-option-text-clickable
475
+ {
476
+ cursor: pointer;
477
+ }
478
+ }
479
+
480
+ form.ftable-create-form
481
+ {
482
+ }
483
+
484
+ form.ftable-edit-form
485
+ {
486
+ }
487
+
488
+ .ftable-modal-overlay {
489
+ position: fixed;
490
+ top: 0;
491
+ left: 0;
492
+ right: 0;
493
+ bottom: 0;
494
+ background-color: rgba(0, 0, 0, 0.5);
495
+ z-index: 1000;
496
+ display: none;
497
+ }
498
+
499
+ .ftable-modal {
500
+ position: fixed;
501
+ top: 50%;
502
+ left: 50%;
503
+ transform: translate(-50%, -50%);
504
+ background-color: white;
505
+ padding: 20px;
506
+ border-radius: 5px;
507
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
508
+ z-index: 1001;
509
+ max-width: 90%;
510
+ max-height: 90vh;
511
+ overflow: auto;
512
+ }
513
+
514
+ .ftable-modal-header {
515
+ margin-bottom: 15px;
516
+ margin-top: 0px;
517
+ padding-bottom: 10px;
518
+ border-bottom: 1px solid #eee;
519
+ }
520
+
521
+ .ftable-modal-footer {
522
+ margin-top: 15px;
523
+ padding-top: 10px;
524
+ border-top: 1px solid #eee;
525
+ text-align: right;
526
+ }
527
+
528
+ .ftable-modal-close {
529
+ position: absolute;
530
+ top: 10px;
531
+ right: 10px;
532
+ cursor: pointer;
533
+ font-size: 28px;
534
+ font-weight: bold;
535
+ color: #aaa;
536
+ }
537
+
538
+ .ftable-busy-modal {
539
+ padding: 0px;
540
+ }
541
+
542
+ .ftable-dialog-button {
543
+ opacity: 0.8;
544
+ border: 1px solid #ccc;
545
+ padding: 5px;
546
+ margin: 5px;
547
+ }
548
+
549
+ .ftable-dialog-button:hover {
550
+ background-color: #dedede;
551
+ }
552
+
553
+ div.ftable-busy-message
554
+ {
555
+ cursor: wait;
556
+ margin: 0px;
557
+ }
558
+
559
+ div.ftable-contextmenu-overlay
560
+ {
561
+ position: fixed;
562
+ left: 0px;
563
+ top: 0px;
564
+ width: 100%;
565
+ height: 100%;
566
+ z-index: 100;
567
+ }
568
+
569
+ .ftable-table-div {
570
+ display: block;
571
+ overflow-x:auto;
572
+ }
573
+
574
+ .ftable-table-div > table {
575
+ overflow:hidden;
576
+ }
577
+
578
+ .ftable-delete-confirm-message
579
+ {
580
+ }
581
+
582
+ .ftable-row-ready-to-remove
583
+ {
584
+ }
585
+
586
+ .ftable-toolbarsearch {
587
+ width: 90%;
588
+ min-width: fit-content;
589
+ }
590
+ th.ftable-toolbarsearch-reset {
591
+ text-align: center !important;
592
+ }
593
+
594
+ }
Binary file
Binary file