UNPKG

@ackplus/react-tanstack-data-table

Version:

A powerful React data table component built with MUI and TanStack Table

143 lines (142 loc) 3.34 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FILTER_OPERATORS = void 0; exports.FILTER_OPERATORS = { text: [ { value: 'contains', label: 'Contains', }, { value: 'startsWith', label: 'Starts with', }, { value: 'endsWith', label: 'Ends with', }, { value: 'equals', label: 'Equals', }, { value: 'notEquals', label: 'Not equals', }, { value: 'isEmpty', label: 'Is empty', }, { value: 'isNotEmpty', label: 'Is not empty', }, ], boolean: [ { value: 'is', label: 'Is', }, ], number: [ { value: 'equals', label: 'Equals', }, { value: 'notEquals', label: 'Not equals', }, { value: 'greaterThan', label: 'Greater than', }, { value: 'lessThan', label: 'Less than', }, { value: 'greaterThanOrEqual', label: 'Greater than or equal', }, { value: 'lessThanOrEqual', label: 'Less than or equal', }, { value: 'isEmpty', label: 'Is empty', }, { value: 'isNotEmpty', label: 'Is not empty', }, ], date: [ { value: 'equals', label: 'Equals', }, { value: 'notEquals', label: 'Not equals', }, { value: 'after', label: 'After', }, { value: 'before', label: 'Before', }, { value: 'isEmpty', label: 'Is empty', }, { value: 'isNotEmpty', label: 'Is not empty', }, ], select: [ { value: 'equals', label: 'Equals', }, { value: 'notEquals', label: 'Not equals', }, { value: 'in', label: 'In', }, { value: 'notIn', label: 'Not in', }, { value: 'isEmpty', label: 'Is empty', }, { value: 'isNotEmpty', label: 'Is not empty', }, ], }; __exportStar(require("./filter-value-input"), exports);