jsl-ui 9.18.2 → 9.18.3

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 (214) hide show
  1. package/lib/grid.css +0 -8
  2. package/lib/index.css.map +1 -1
  3. package/lib/index.js +10198 -61
  4. package/lib/index.js.map +1 -1
  5. package/package.json +1 -1
  6. package/lib/components/IntervalComponent.d.ts +0 -17
  7. package/lib/components/IntervalComponent.js +0 -68
  8. package/lib/components/auto-suggest/AutoSuggestComponent.d.ts +0 -22
  9. package/lib/components/auto-suggest/AutoSuggestComponent.js +0 -49
  10. package/lib/components/button/ButtonComponent.d.ts +0 -18
  11. package/lib/components/button/ButtonComponent.js +0 -46
  12. package/lib/components/checkbox/CheckBoxComponent.d.ts +0 -28
  13. package/lib/components/checkbox/CheckBoxComponent.js +0 -94
  14. package/lib/components/checkbox/CheckBoxStyle.scss +0 -86
  15. package/lib/components/date/DateComponent.d.ts +0 -32
  16. package/lib/components/date/DateComponent.js +0 -106
  17. package/lib/components/date-range/DateRangeComponent.d.ts +0 -35
  18. package/lib/components/date-range/DateRangeComponent.js +0 -136
  19. package/lib/components/date-range/DateRangeStyle.scss +0 -12
  20. package/lib/components/date-time/DateTimeComponent.d.ts +0 -15
  21. package/lib/components/date-time/DateTimeComponent.js +0 -53
  22. package/lib/components/date-time/DateTimeStyle.scss +0 -7
  23. package/lib/components/dialog/DialogComponent.d.ts +0 -67
  24. package/lib/components/dialog/DialogComponent.js +0 -242
  25. package/lib/components/drop-down/DropDownComponent.d.ts +0 -27
  26. package/lib/components/drop-down/DropDownComponent.js +0 -74
  27. package/lib/components/expander/ExpanderComponent.d.ts +0 -27
  28. package/lib/components/expander/ExpanderComponent.js +0 -90
  29. package/lib/components/expander/ExpanderStyle.scss +0 -47
  30. package/lib/components/expander/OldExpanderStyle.scss +0 -37
  31. package/lib/components/form-field/FormComponent.d.ts +0 -12
  32. package/lib/components/form-field/FormComponent.js +0 -26
  33. package/lib/components/form-field/FormFieldComponent.d.ts +0 -38
  34. package/lib/components/form-field/FormFieldComponent.js +0 -139
  35. package/lib/components/form-field/FormFieldStyle.scss +0 -87
  36. package/lib/components/grid/GridComponent.d.ts +0 -26
  37. package/lib/components/grid/GridComponent.js +0 -116
  38. package/lib/components/input/InputComponent.d.ts +0 -33
  39. package/lib/components/input/InputComponent.js +0 -144
  40. package/lib/components/loading/LoadingComponent.d.ts +0 -8
  41. package/lib/components/loading/LoadingComponent.js +0 -22
  42. package/lib/components/loading/LoadingStyle.css +0 -29
  43. package/lib/components/navigation/NavigationComponent.d.ts +0 -34
  44. package/lib/components/navigation/NavigationComponent.js +0 -70
  45. package/lib/components/navigation/NavigationStyle.scss +0 -226
  46. package/lib/components/notification/Notification.d.ts +0 -17
  47. package/lib/components/notification/Notification.js +0 -56
  48. package/lib/components/notification/Notification.scss +0 -19
  49. package/lib/components/number/NumberComponent.d.ts +0 -25
  50. package/lib/components/number/NumberComponent.js +0 -87
  51. package/lib/components/overlay/OverlayComponent.d.ts +0 -27
  52. package/lib/components/overlay/OverlayComponent.js +0 -149
  53. package/lib/components/overlay/overlay.css +0 -57
  54. package/lib/components/progress/ProgressComponent.d.ts +0 -18
  55. package/lib/components/progress/ProgressComponent.js +0 -42
  56. package/lib/components/progress/ProgressStyle.scss +0 -15
  57. package/lib/components/ribbon-menu/RibbonMenuComponent.d.ts +0 -12
  58. package/lib/components/ribbon-menu/RibbonMenuComponent.js +0 -34
  59. package/lib/components/ribbon-menu/RibbonMenuStyle.scss +0 -76
  60. package/lib/components/select/SelectComponent.d.ts +0 -79
  61. package/lib/components/select/SelectComponent.js +0 -362
  62. package/lib/components/select/SelectDDAreaComponent.d.ts +0 -32
  63. package/lib/components/select/SelectDDAreaComponent.js +0 -317
  64. package/lib/components/select/SelectStyle.scss +0 -187
  65. package/lib/components/slider/nouislider.css +0 -310
  66. package/lib/components/slider/nouislider.d.ts +0 -44
  67. package/lib/components/slider/nouislider.js +0 -2158
  68. package/lib/components/stack-panel/SplitterComponent.d.ts +0 -21
  69. package/lib/components/stack-panel/SplitterComponent.js +0 -126
  70. package/lib/components/stack-panel/SplitterStyle.scss +0 -45
  71. package/lib/components/stack-panel/StackPanelComponent.d.ts +0 -20
  72. package/lib/components/stack-panel/StackPanelComponent.js +0 -64
  73. package/lib/components/stack-panel/StackPanelStyle.scss +0 -53
  74. package/lib/components/tabs/TabsComponent.d.ts +0 -39
  75. package/lib/components/tabs/TabsComponent.js +0 -177
  76. package/lib/components/tabs/TabsStyle.scss +0 -76
  77. package/lib/components/time/TimeComponent.d.ts +0 -29
  78. package/lib/components/time/TimeComponent.js +0 -113
  79. package/lib/components/time/TimeComponent.scss +0 -4
  80. package/lib/components/tree-view/TreeViewComponent.d.ts +0 -23
  81. package/lib/components/tree-view/TreeViewComponent.js +0 -45
  82. package/lib/components/tree-view/TreeViewStyle.scss +0 -96
  83. package/lib/components/virtual-render/VirtualRenderComponent.d.ts +0 -30
  84. package/lib/components/virtual-render/VirtualRenderComponent.js +0 -104
  85. package/lib/components/virtual-render/VirtualRenderStyle.scss +0 -9
  86. package/lib/core/culture.d.ts +0 -5
  87. package/lib/core/culture.js +0 -385
  88. package/lib/core/date.d.ts +0 -14
  89. package/lib/core/date.js +0 -350
  90. package/lib/core/helper.d.ts +0 -12
  91. package/lib/core/helper.js +0 -101
  92. package/lib/core/jq.d.ts +0 -37
  93. package/lib/core/jq.js +0 -371
  94. package/lib/core/lang.d.ts +0 -24
  95. package/lib/core/lang.js +0 -28
  96. package/lib/core/numeric.d.ts +0 -7
  97. package/lib/core/numeric.js +0 -143
  98. package/lib/core/polyfills.d.ts +0 -0
  99. package/lib/core/polyfills.js +0 -22
  100. package/lib/core.d.ts +0 -6
  101. package/lib/core.js +0 -6
  102. package/lib/grid/controls/slick.columnpicker.css +0 -46
  103. package/lib/grid/controls/slick.draggablegrouping.css +0 -52
  104. package/lib/grid/controls/slick.gridmenu.css +0 -127
  105. package/lib/grid/controls/slick.pager.css +0 -41
  106. package/lib/grid/examples/examples.css +0 -203
  107. package/lib/grid/filterDialogs/dateRangeFilter.d.ts +0 -7
  108. package/lib/grid/filterDialogs/dateRangeFilter.js +0 -156
  109. package/lib/grid/filterDialogs/excelFilter.d.ts +0 -9
  110. package/lib/grid/filterDialogs/excelFilter.js +0 -313
  111. package/lib/grid/plugins/ext.overlay.css +0 -28
  112. package/lib/grid/plugins/ext.overlay.d.ts +0 -2
  113. package/lib/grid/plugins/ext.overlay.js +0 -291
  114. package/lib/grid/plugins/slick.cellrangedecorator.d.ts +0 -12
  115. package/lib/grid/plugins/slick.cellrangedecorator.js +0 -68
  116. package/lib/grid/plugins/slick.cellrangeselector.d.ts +0 -1
  117. package/lib/grid/plugins/slick.cellrangeselector.js +0 -144
  118. package/lib/grid/plugins/slick.cellselectionmodel.d.ts +0 -1
  119. package/lib/grid/plugins/slick.cellselectionmodel.js +0 -194
  120. package/lib/grid/plugins/slick.headerbuttons.css +0 -40
  121. package/lib/grid/plugins/slick.headerbuttons.d.ts +0 -55
  122. package/lib/grid/plugins/slick.headerbuttons.js +0 -156
  123. package/lib/grid/plugins/slick.headermenu.css +0 -101
  124. package/lib/grid/plugins/slick.headermenu.d.ts +0 -74
  125. package/lib/grid/plugins/slick.headermenu.js +0 -260
  126. package/lib/grid/plugins/slick.rowdetailview.css +0 -37
  127. package/lib/grid/plugins/slick.rowmovemanager.css +0 -8
  128. package/lib/grid/plugins/slick.rowmovemanager.d.ts +0 -18
  129. package/lib/grid/plugins/slick.rowmovemanager.js +0 -249
  130. package/lib/grid/plugins/slick.rowselectionmodel.d.ts +0 -1
  131. package/lib/grid/plugins/slick.rowselectionmodel.js +0 -167
  132. package/lib/grid/slick-default-theme.css +0 -154
  133. package/lib/grid/slick.core.d.ts +0 -90
  134. package/lib/grid/slick.core.js +0 -574
  135. package/lib/grid/slick.creator.d.ts +0 -80
  136. package/lib/grid/slick.creator.js +0 -723
  137. package/lib/grid/slick.dataview.d.ts +0 -71
  138. package/lib/grid/slick.dataview.js +0 -1080
  139. package/lib/grid/slick.editors.core.d.ts +0 -4
  140. package/lib/grid/slick.editors.core.js +0 -232
  141. package/lib/grid/slick.editors.date.d.ts +0 -2
  142. package/lib/grid/slick.editors.date.js +0 -125
  143. package/lib/grid/slick.editors.lookup.d.ts +0 -14
  144. package/lib/grid/slick.editors.lookup.js +0 -353
  145. package/lib/grid/slick.editors.nav.d.ts +0 -6
  146. package/lib/grid/slick.editors.nav.js +0 -22
  147. package/lib/grid/slick.formatters.d.ts +0 -17
  148. package/lib/grid/slick.formatters.js +0 -137
  149. package/lib/grid/slick.grid.css +0 -325
  150. package/lib/grid/slick.grid.d.ts +0 -284
  151. package/lib/grid/slick.grid.js +0 -5395
  152. package/lib/grid/slick.groupitemmetadataprovider.d.ts +0 -39
  153. package/lib/grid/slick.groupitemmetadataprovider.js +0 -165
  154. package/lib/grid/slick.tree.css +0 -20
  155. package/lib/grid/slick.tree.d.ts +0 -33
  156. package/lib/grid/slick.tree.js +0 -220
  157. package/lib/grid.d.ts +0 -13
  158. package/lib/grid.js +0 -13
  159. package/lib/index.css +0 -2584
  160. package/lib/index.d.ts +0 -56
  161. package/lib/interaction/dataconverter.d.ts +0 -4
  162. package/lib/interaction/dataconverter.js +0 -1
  163. package/lib/interaction/eventhandler.d.ts +0 -13
  164. package/lib/interaction/eventhandler.js +0 -42
  165. package/lib/interaction/moveable.css +0 -0
  166. package/lib/interaction/moveable.d.ts +0 -39
  167. package/lib/interaction/moveable.js +0 -172
  168. package/lib/interaction/resizable.css +0 -33
  169. package/lib/interaction/resizable.d.ts +0 -37
  170. package/lib/interaction/resizable.js +0 -123
  171. package/lib/ui/auto.suggest.css +0 -14
  172. package/lib/ui/auto.suggest.d.ts +0 -17
  173. package/lib/ui/auto.suggest.js +0 -255
  174. package/lib/ui/base.css +0 -150
  175. package/lib/ui/date.picker/css/date-range-picker.css +0 -87
  176. package/lib/ui/date.picker/css/tiny-date-picker.css +0 -326
  177. package/lib/ui/date.picker/date-picker-options.d.ts +0 -11
  178. package/lib/ui/date.picker/date-picker-options.js +0 -76
  179. package/lib/ui/date.picker/lib/date-manip.d.ts +0 -74
  180. package/lib/ui/date.picker/lib/date-manip.js +0 -120
  181. package/lib/ui/date.picker/lib/dom.d.ts +0 -23
  182. package/lib/ui/date.picker/lib/dom.js +0 -28
  183. package/lib/ui/date.picker/lib/emitter.d.ts +0 -13
  184. package/lib/ui/date.picker/lib/emitter.js +0 -49
  185. package/lib/ui/date.picker/lib/fns.d.ts +0 -23
  186. package/lib/ui/date.picker/lib/fns.js +0 -43
  187. package/lib/ui/date.picker/mode/base-mode.d.ts +0 -26
  188. package/lib/ui/date.picker/mode/base-mode.js +0 -248
  189. package/lib/ui/date.picker/mode/dropdown-mode.d.ts +0 -28
  190. package/lib/ui/date.picker/mode/dropdown-mode.js +0 -50
  191. package/lib/ui/date.picker/mode/index.d.ts +0 -28
  192. package/lib/ui/date.picker/mode/index.js +0 -18
  193. package/lib/ui/date.picker/mode/modal-mode.d.ts +0 -25
  194. package/lib/ui/date.picker/mode/modal-mode.js +0 -17
  195. package/lib/ui/date.picker/mode/permanent-mode.d.ts +0 -29
  196. package/lib/ui/date.picker/mode/permanent-mode.js +0 -19
  197. package/lib/ui/date.picker/views/day-picker.d.ts +0 -40
  198. package/lib/ui/date.picker/views/day-picker.js +0 -155
  199. package/lib/ui/date.picker/views/month-picker.d.ts +0 -26
  200. package/lib/ui/date.picker/views/month-picker.js +0 -65
  201. package/lib/ui/date.picker/views/year-picker.d.ts +0 -20
  202. package/lib/ui/date.picker/views/year-picker.js +0 -66
  203. package/lib/ui/date.picker.d.ts +0 -66
  204. package/lib/ui/date.picker.js +0 -32
  205. package/lib/ui/dialog.css +0 -109
  206. package/lib/ui/dialog.d.ts +0 -22
  207. package/lib/ui/dialog.js +0 -113
  208. package/lib/ui/drop.down.css +0 -472
  209. package/lib/ui/drop.down.d.ts +0 -52
  210. package/lib/ui/drop.down.js +0 -2112
  211. package/lib/ui/number.input.css +0 -3
  212. package/lib/ui/number.input.d.ts +0 -12
  213. package/lib/ui/number.input.js +0 -64
  214. package/lib/ui/tabs.css +0 -53
@@ -1,52 +0,0 @@
1
- .slick-group-toggle-all.expanded {
2
- background: url('../images/collapse.gif') no-repeat center center;
3
- width: 9px;
4
- height: 9px;
5
- position: absolute;
6
- display: inline-block;
7
- right: 10px;
8
- }
9
-
10
- .slick-group-toggle-all.collapsed {
11
- background: url('../images/expand.gif') no-repeat center center;
12
- width: 9px;
13
- height: 9px;
14
- position: absolute;
15
- display: inline-block;
16
- right: 10px;
17
- }
18
-
19
- .slick-column-groupable {
20
- width: 9px;
21
- height: 9px;
22
- display: inline-block;
23
- margin-left: 4px;
24
- }
25
-
26
- .slick-column-groupable-image {
27
- background: url('../images/column-grouping.png') no-repeat center center;
28
- }
29
-
30
- .slick-dropped-grouping {
31
- display: inline-block;
32
- margin-right: 5px;
33
- vertical-align: middle;
34
- cursor: pointer;
35
- }
36
-
37
- .slick-groupby-remove {
38
- padding-right: 20px;
39
- display: inline-flex;
40
- }
41
-
42
- .slick-groupby-remove-image {
43
- background: url(../images/delete.png) no-repeat center right;
44
- }
45
-
46
- .slick-placeholder {
47
- height: 25px;
48
- }
49
-
50
- .ui-droppable {
51
- padding: 5px;
52
- }
@@ -1,127 +0,0 @@
1
- .slick-gridmenu {
2
- border: 1px solid #718BB7;
3
- background: #f0f0f0;
4
- padding: 6px;
5
- -moz-box-shadow: 2px 2px 2px silver;
6
- -webkit-box-shadow: 2px 2px 2px silver;
7
- box-shadow: 2px 2px 2px silver;
8
- min-width: 180px;
9
- cursor: default;
10
- position:absolute;
11
- z-index: 2000;
12
- overflow:auto;
13
- resize: both;
14
- }
15
-
16
- .slick-gridmenu-button {
17
- position: absolute;
18
- cursor: pointer;
19
- right: 0;
20
- padding: 0 2px;
21
- top: 0;
22
- background-color: transparent;
23
- cursor: pointer;
24
- border: 0;
25
- margin-top: 5px;
26
- width: 16px;
27
- }
28
-
29
- .slick-gridmenu > .close {
30
- float: right;
31
- }
32
-
33
- .slick-gridmenu .title {
34
- font-size: 16px;
35
- width: calc(100% - 30px);
36
- border-bottom: solid 1px #d6d6d6;
37
- margin-bottom: 5px;
38
- }
39
-
40
- .slick-gridmenu li {
41
- list-style: none;
42
- margin: 0;
43
- padding: 0;
44
- background: none;
45
- }
46
-
47
- .slick-gridmenu input {
48
- margin: 4px;
49
- }
50
-
51
- .slick-gridmenu li a {
52
- display: block;
53
- padding: 4px;
54
- font-weight: bold;
55
- }
56
-
57
- .slick-gridmenu li a:hover {
58
- background: white;
59
- }
60
-
61
-
62
- .slick-gridmenu-custom {
63
- margin-bottom: 10px;
64
- }
65
-
66
- /* Menu */
67
- .slick-gridmenu- {
68
- position: absolute;
69
- display: inline-block;
70
- margin: 0;
71
- padding: 2px;
72
- cursor: default;
73
- }
74
-
75
-
76
- /* Menu items */
77
- .slick-gridmenu-item {
78
- list-style: none;
79
- margin: 0;
80
- cursor: pointer;
81
- padding: 2px 4px;
82
- border: 1px solid transparent;
83
- border-radius: 3px;
84
- }
85
- .slick-gridmenu-item:hover {
86
- border-color: silver;
87
- background: white;
88
- }
89
- .slick-gridmenu-item-disabled {
90
- border-color: transparent !important;
91
- background: inherit !important;
92
- }
93
-
94
- .slick-gridmenu-icon {
95
- display: inline-block;
96
- width: 16px;
97
- height: 16px;
98
- vertical-align: middle;
99
- margin-right: 4px;
100
- background-repeat: no-repeat;
101
- background-position: center center;
102
- }
103
-
104
- .slick-gridmenu-content {
105
- display: inline-block;
106
- vertical-align: middle;
107
- }
108
-
109
-
110
- /* Disabled */
111
- .slick-gridmenu-item-disabled {
112
- color: silver;
113
- }
114
-
115
- /* Divider */
116
- .slick-gridmenu-item.slick-gridmenu-item-divider {
117
- cursor: default;
118
- border: none;
119
- overflow: hidden;
120
- padding: 0;
121
- height: 1px;
122
- margin: 8px 2px;
123
- background-color: #cecece;
124
- }
125
- .slick-gridmenu-item-divider.slick-gridmenu-item:hover {
126
- background-color: #cecece;
127
- }
@@ -1,41 +0,0 @@
1
- .slick-pager {
2
- width: 100%;
3
- height: 26px;
4
- border: 1px solid gray;
5
- border-top: 0;
6
- background: url('../images/header-columns-bg.gif') repeat-x center bottom;
7
- vertical-align: middle;
8
- }
9
-
10
- .slick-pager .slick-pager-status {
11
- display: inline-block;
12
- padding: 6px;
13
- }
14
-
15
- .slick-pager .ui-icon-container {
16
- display: inline-block;
17
- margin: 2px;
18
- border-color: gray;
19
- }
20
-
21
- .slick-pager .slick-pager-nav {
22
- display: inline-block;
23
- float: left;
24
- padding: 2px;
25
- }
26
-
27
- .slick-pager .slick-pager-settings {
28
- display: block;
29
- float: right;
30
- padding: 2px;
31
- }
32
-
33
- .slick-pager .slick-pager-settings * {
34
- vertical-align: middle;
35
- }
36
-
37
- .slick-pager .slick-pager-settings a {
38
- padding: 2px;
39
- text-decoration: underline;
40
- cursor: pointer;
41
- }
@@ -1,203 +0,0 @@
1
- @import url('../slick-default-theme.css');
2
-
3
- * {
4
- font-family: arial;
5
- font-size: 8pt;
6
- }
7
-
8
- body {
9
- background: beige;
10
- padding: 0;
11
- margin: 8px;
12
- }
13
-
14
- h2 {
15
- font-size: 10pt;
16
- border-bottom: 1px dotted gray;
17
- }
18
-
19
- ul {
20
- margin-left: 0;
21
- padding: 0;
22
- cursor: default;
23
- }
24
-
25
- .options-panel li {
26
- background: url("../images/arrow_right_spearmint.png") no-repeat center left;
27
- padding: 0 0 0 14px;
28
-
29
- list-style: none;
30
- margin: 0;
31
- }
32
-
33
-
34
- .grid-header #txtSearch {
35
- margin: 0 4px 0 4px;
36
- padding: 2px 2px;
37
- -moz-border-radius: 2px;
38
- -webkit-border-radius: 2px;
39
- border: 1px solid silver;
40
- }
41
-
42
- .options-panel {
43
- -moz-border-radius: 6px;
44
- -webkit-border-radius: 6px;
45
- border: 1px solid silver;
46
- background: #f0f0f0;
47
- padding: 4px;
48
- margin-bottom: 20px;
49
- width: 320px;
50
- position: absolute;
51
- top: 0px;
52
- left: 650px;
53
- }
54
-
55
- /* Individual cell styles */
56
- .slick-cell.task-name {
57
- font-weight: bold;
58
- text-align: right;
59
- }
60
-
61
- .slick-cell.task-percent {
62
- text-align: right;
63
- }
64
-
65
- .slick-cell.cell-move-handle {
66
- font-weight: bold;
67
- text-align: right;
68
- border-right: solid gray;
69
-
70
- background: #efefef;
71
- cursor: move;
72
- }
73
-
74
- .cell-move-handle:hover {
75
- background: #b6b9bd;
76
- }
77
-
78
- .slick-row.selected .cell-move-handle {
79
- background: #D5DC8D;
80
- }
81
-
82
- .slick-row .cell-actions {
83
- text-align: left;
84
- }
85
-
86
- .slick-row.complete {
87
- background-color: #DFD;
88
- color: #555;
89
- }
90
-
91
- .percent-complete-bar {
92
- display: inline-block;
93
- height: 6px;
94
- -moz-border-radius: 3px;
95
- -webkit-border-radius: 3px;
96
- }
97
-
98
- /* Slick.Editors.Text, Slick.Editors.Date */
99
- input.editor-text {
100
- width: 100%;
101
- height: 100%;
102
- border: 0;
103
- margin: 0;
104
- background: transparent;
105
- outline: 0;
106
- padding: 0;
107
-
108
- }
109
-
110
- .ui-datepicker-trigger {
111
- background:url("../images/calendar.gif") top left no-repeat;
112
- width: 16px;
113
- height: 16px;
114
-
115
- margin-top: 2px;
116
- padding: 0;
117
- vertical-align: top;
118
- }
119
-
120
- /* Slick.Editors.PercentComplete */
121
- input.editor-percentcomplete {
122
- width: 100%;
123
- height: 100%;
124
- border: 0;
125
- margin: 0;
126
- background: transparent;
127
- outline: 0;
128
- padding: 0;
129
-
130
- float: left;
131
- }
132
-
133
- .editor-percentcomplete-picker {
134
- position: relative;
135
- display: inline-block;
136
- width: 16px;
137
- height: 100%;
138
- background: url("../images/pencil.gif") no-repeat center center;
139
- overflow: visible;
140
- z-index: 1000;
141
- float: right;
142
- }
143
-
144
- .editor-percentcomplete-helper {
145
- border: 0 solid gray;
146
- position: absolute;
147
- top: -2px;
148
- left: -9px;
149
- background: url("../images/editor-helper-bg.gif") no-repeat top left;
150
- padding-left: 9px;
151
-
152
- width: 120px;
153
- height: 140px;
154
- display: none;
155
- overflow: visible;
156
- }
157
-
158
- .editor-percentcomplete-wrapper {
159
- background: beige;
160
- padding: 20px 8px;
161
-
162
- width: 100%;
163
- height: 98px;
164
- border: 1px solid gray;
165
- border-left: 0;
166
- }
167
-
168
- .editor-percentcomplete-buttons {
169
- float: right;
170
- }
171
-
172
- .editor-percentcomplete-buttons button {
173
- width: 80px;
174
- }
175
-
176
- .editor-percentcomplete-slider {
177
- float: left;
178
- }
179
-
180
- .editor-percentcomplete-picker:hover .editor-percentcomplete-helper {
181
- display: block;
182
- }
183
-
184
- .editor-percentcomplete-helper:hover {
185
- display: block;
186
- }
187
-
188
- /* Slick.Editors.YesNoSelect */
189
- select.editor-yesno {
190
- width: 100%;
191
- margin: 0;
192
- vertical-align: middle;
193
- }
194
-
195
- /* Slick.Editors.Checkbox */
196
- input.editor-checkbox {
197
- margin: 0;
198
- height: 100%;
199
- padding: 0;
200
- border: 0;
201
- }
202
-
203
-
@@ -1,7 +0,0 @@
1
- import { ISlickColumn } from "../slick.core";
2
- import { IJSLGrid } from "../../index";
3
- export declare class DateRangeFilter {
4
- private grid;
5
- constructor(grid: IJSLGrid<any>);
6
- show(col: ISlickColumn): Promise<void>;
7
- }
@@ -1,156 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
37
- import { UILang } from "../../core/lang";
38
- import { Dialog } from "../../ui/dialog";
39
- import { JSLRender } from "jsl-render";
40
- import { DateRangeComponent } from "../../components/date-range/DateRangeComponent";
41
- var DateRangeFilter = /** @class */ (function () {
42
- function DateRangeFilter(grid) {
43
- this.grid = grid;
44
- }
45
- DateRangeFilter.prototype.show = function (col) {
46
- return __awaiter(this, void 0, void 0, function () {
47
- var minVal, maxVal, filters, currentFilters, mode, idx, l, v, filterOptions, values, oldminMaxValues, _i, currentFilters_1, f, dlg, dlgBody, dateRangeComp, dlgObj, dlgOkButton, dlgCancelButton, dlgClearButton;
48
- var _this = this;
49
- return __generator(this, function (_a) {
50
- switch (_a.label) {
51
- case 0:
52
- filters = this.grid.getFilters();
53
- currentFilters = filters.filter(function (f) { return f.columnId === col.id; });
54
- mode = this.grid.getOptions().mode;
55
- if (!(mode === "client")) return [3 /*break*/, 1];
56
- // remove any filters for this column
57
- if (currentFilters.length > 0) {
58
- this.grid.clearFilter(col.id);
59
- }
60
- for (idx = 0, l = this.grid.getDataLength(); idx < l; idx++) {
61
- v = this.grid.getDataItemValueForColumn(this.grid.getDataItem(idx), col);
62
- if (minVal == null || v < minVal) {
63
- minVal = v;
64
- }
65
- if (maxVal == null || v > maxVal) {
66
- maxVal = v;
67
- }
68
- }
69
- return [3 /*break*/, 3];
70
- case 1:
71
- filterOptions = this.grid.getOptions().getFilterValues;
72
- if (filterOptions == null) {
73
- throw new Error("getFilterValues option has to be set when filter mode = server");
74
- }
75
- return [4 /*yield*/, filterOptions(col)];
76
- case 2:
77
- values = _a.sent();
78
- // TODO: check if correct type of object was returned
79
- minVal = values[0];
80
- maxVal = values[1];
81
- _a.label = 3;
82
- case 3:
83
- oldminMaxValues = [minVal, maxVal];
84
- if (currentFilters.length > 0) {
85
- for (_i = 0, currentFilters_1 = currentFilters; _i < currentFilters_1.length; _i++) {
86
- f = currentFilters_1[_i];
87
- if (f._checkedValues) {
88
- oldminMaxValues = f._checkedValues;
89
- }
90
- if (mode === "client") {
91
- filters.push(f);
92
- }
93
- }
94
- if (mode === "client") {
95
- this.grid.refreshFilters();
96
- }
97
- }
98
- dlg = document.createElement("div");
99
- dlg.classList.add("jsl-dialog-overlay");
100
- dlg.innerHTML = '<div class="jsl-dialog" style="width:50vw;min-height:50vh;"><div class="dlg-header">' + UILang.grid.Filter + '</div><div class="dlg-body" style="max-height:calc(100vh - 7.5rem)"></div>' +
101
- '<div class="dlg-footer">' +
102
- '<button class="jsl-button ok-button">' + UILang.core.Ok + "</button>" +
103
- (currentFilters.length > 0 ? ('<button class="jsl-button clear-button">' + UILang.grid.ClearFilter + '</button>') : "") +
104
- '<button class="jsl-button close-button">' + UILang.core.Cancel + "</button>" +
105
- "</div></div>";
106
- dlgBody = dlg.querySelector(".dlg-body");
107
- dateRangeComp = new DateRangeComponent({
108
- min: minVal, max: maxVal,
109
- minValue: oldminMaxValues[0], maxValue: oldminMaxValues[1],
110
- increment: "days"
111
- });
112
- new JSLRender(dlgBody, false).render(dateRangeComp);
113
- // const id = helper.newDomGuid();
114
- document.body.appendChild(dlg);
115
- dlgObj = Dialog(dlg, {
116
- autoOpen: true, onClose: function () {
117
- dlg.innerHTML = "";
118
- dlg.parentElement.removeChild(dlg);
119
- }
120
- });
121
- dlgOkButton = dlg.querySelector(".dlg-footer .ok-button");
122
- dlgOkButton.addEventListener("click", function (evt) {
123
- var min = dateRangeComp.getMin();
124
- var max = dateRangeComp.getMax();
125
- _this.grid.clearFilter(col.id, true);
126
- if (min.getDate() !== minVal.getDate() || max.getDate() !== maxVal.getDate()) {
127
- var filterObject = {
128
- field: col.field, columnId: col.id, match: mode === "server" ? function () { return true; } : function (item, field) {
129
- return _this.grid.getDataItemValueForColumn(item, col) >= min && _this.grid.getDataItemValueForColumn(item, col) <= max;
130
- }
131
- };
132
- filterObject._checkedValues = [min, max];
133
- _this.grid.addFilter(filterObject, true);
134
- }
135
- _this.grid.refreshFilters();
136
- dlgObj.close();
137
- });
138
- dlgCancelButton = dlg.querySelector(".dlg-footer .close-button");
139
- dlgCancelButton.addEventListener("click", function (evt) {
140
- dlgObj.close();
141
- });
142
- dlgClearButton = dlg.querySelector(".dlg-footer .clear-button");
143
- if (dlgClearButton != null) {
144
- dlgClearButton.addEventListener("click", function (evt) {
145
- _this.grid.clearFilter(col.id);
146
- dlgObj.close();
147
- });
148
- }
149
- return [2 /*return*/];
150
- }
151
- });
152
- });
153
- };
154
- return DateRangeFilter;
155
- }());
156
- export { DateRangeFilter };
@@ -1,9 +0,0 @@
1
- import { ISlickColumn } from "../slick.core";
2
- import { IJSLGrid } from "../../index";
3
- export declare class ExcelFilter {
4
- private grid;
5
- private static convertRemToPixels;
6
- constructor(grid: IJSLGrid<any>);
7
- show(col: ISlickColumn): Promise<void>;
8
- private getDistinctValues;
9
- }