@duskmoon-dev/el-pro-data-grid 2.5.0 → 2.5.2

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.
@@ -134,6 +134,10 @@ var gridControlStyles = css`
134
134
  var operatorLabels = {
135
135
  contains: "Contains",
136
136
  eq: "Equals",
137
+ gt: "Greater than",
138
+ gte: "At least",
139
+ lt: "Less than",
140
+ lte: "At most",
137
141
  in: "Is one of",
138
142
  range: "Is in range",
139
143
  isNull: "Is empty",
@@ -264,6 +268,19 @@ class ElDmGridFilter extends BaseElement {
264
268
  return;
265
269
  rule = { columnId, operator, value: scalar(value.value) };
266
270
  break;
271
+ case "gt":
272
+ case "gte":
273
+ case "lt":
274
+ case "lte": {
275
+ if (!value?.value)
276
+ return;
277
+ rule = {
278
+ columnId,
279
+ operator,
280
+ value: column.valueType === "number" ? Number(value.value) : new Date(value.value).toISOString()
281
+ };
282
+ break;
283
+ }
267
284
  case "in": {
268
285
  const selected = Array.from(value.selectedOptions, (option) => JSON.parse(option.value));
269
286
  if (selected.length === 0)
@@ -559,6 +576,10 @@ import {
559
576
  var operatorLabels2 = {
560
577
  contains: "Contains",
561
578
  eq: "Equals",
579
+ gt: "Greater than",
580
+ gte: "At least",
581
+ lt: "Less than",
582
+ lte: "At most",
562
583
  range: "Between",
563
584
  in: "One of",
564
585
  isNull: "Is empty",
@@ -675,7 +696,10 @@ function readRule(row, column) {
675
696
  return { columnId, operator, value: "" };
676
697
  if (row.dataset.nullRule && input.tagName !== "SELECT")
677
698
  return { columnId, operator, value: null };
699
+ return;
678
700
  }
701
+ if (raw)
702
+ return { columnId, operator, value: column.valueType === "number" ? Number(raw) : raw };
679
703
  }
680
704
 
681
705
  class GridQueryControls {
@@ -10262,5 +10286,5 @@ function register() {
10262
10286
 
10263
10287
  export { ElDmGridFilter, ElDmGridFilterChips, registerGridFilter, ElDmGridColumnSettings, registerGridColumnSettings, ElDmGridSearch, registerGridSearch, VirtualScroller, SortEngine, FilterEngine, QuickFilter, ColumnController, SelectionManager, ColumnMenu, CellEditor, UndoRedoManager, RowGrouping, RowPivot, TreeData, RowExpander, CellSelection, ClipboardService, DataExport, ContextMenu, StatusBar, FindBar, Sparkline, RowPinning, RowDrag, RowStyling, ServerRowModel, InfiniteScroll, TransactionManager, Locale, GridStateManager, AdvancedFilter, Pagination, KeyboardNav, FocusManager, ElDmProDataGrid, registerProDataGrid, ElDmGridColumn, registerGridColumn, ElDmGridColumnGroup, registerGridColumnGroup, register };
10264
10288
 
10265
- //# debugId=6067CC8DC08DA37B64756E2164756E21
10266
- //# sourceMappingURL=index-fdgcth00.js.map
10289
+ //# debugId=DA62EF2ECC25661664756E2164756E21
10290
+ //# sourceMappingURL=index-sd96dmf5.js.map