ia-table 0.15.3 → 0.15.5

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.
package/dist/chat.d.ts CHANGED
@@ -100,6 +100,10 @@ declare const ACTION_TYPES: {
100
100
  readonly SET_COMMENT_CONTEXT_REF: "SET_COMMENT_CONTEXT_REF";
101
101
  readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
102
102
  readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
103
+ readonly SET_NO_HEADER_SELECTION_CHECKBOX: "SET_NO_HEADER_SELECTION_CHECKBOX";
104
+ readonly SET_DATA_IS_TREE_DATA: "SET_DATA_IS_TREE_DATA";
105
+ readonly SET_VIRTUALIZATION_CONFIG: "SET_VIRTUALIZATION_CONFIG";
106
+ readonly SET_DISABLE_CURRENT_PAGE_RECORDS: "SET_DISABLE_CURRENT_PAGE_RECORDS";
103
107
  };
104
108
 
105
109
  export declare const CommentWrapper: React.FC<SmartGridCommentWrapperProps>;
@@ -501,6 +505,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
501
505
  tableId: string;
502
506
  getFocusedCell: () => SmartGridFocusedCell | null;
503
507
  getSelectedCells: () => SmartGridSelectedCell[];
508
+ getCellRanges: () => SmartGridCellRange[] | null;
504
509
  getAllDisplayedColumns: () => SmartGridDisplayedColumn[];
505
510
  getDisplayedRowCount: () => number;
506
511
  setFocusedCell: (rowIndex: number, colKey: SmartGridColumnDefinition | string | number) => boolean;
@@ -508,6 +513,7 @@ declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra
508
513
  getColumnByField: (fieldName: string) => SmartGridColumnDefinition | null;
509
514
  getTableInstance: () => SmartGridTableInstance | undefined;
510
515
  getFilterModel: () => SmartGridFilterModel | Record<string, SmartGridFilterModel[]>;
516
+ getSortModel: () => SmartGridSortModel;
511
517
  setFilterModel: (field: string, rules: SmartGridFilterModel) => void;
512
518
  getTableDispatcher: () => (action: SmartGridDisptach) => void;
513
519
  getTableStateContext: () => SmartGridStateContext;
@@ -637,12 +643,14 @@ declare interface SmartGridBaseColumnDefinition {
637
643
  headerTooltip?: string;
638
644
  filter?: string | boolean;
639
645
  filterParams?: {
646
+ [key: string]: unknown;
647
+ } & {
640
648
  filterOptions?: string[];
641
649
  textCustomComparator?: (filter: string, value: unknown, filterText: string) => boolean;
642
650
  numberCustomComparator?: (filter: number, value: unknown) => boolean;
643
651
  dateCustomComparator?: (filterLocalDateAtMidnight: Date, cellValue: string) => number;
644
652
  comparator?: (filterValue: unknown, cellValue: unknown) => boolean;
645
- [key: string]: unknown;
653
+ maxCharLength?: number;
646
654
  };
647
655
  order_of_display?: number;
648
656
  is_hidden?: boolean;
@@ -904,6 +912,23 @@ declare interface SmartGridCallbackRefCurrent {
904
912
  onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
905
913
  }
906
914
 
915
+ /**
916
+ * Represents a cell range selection (similar to AG Grid's CellRange).
917
+ * Contains the start/end rows and the columns included in the range.
918
+ */
919
+ declare interface SmartGridCellRange {
920
+ startRow: {
921
+ rowIndex: number;
922
+ rowPinned: string | null;
923
+ };
924
+ endRow: {
925
+ rowIndex: number;
926
+ rowPinned: string | null;
927
+ };
928
+ columns: SmartGridColumnDefinition[];
929
+ startColumn: SmartGridColumnDefinition;
930
+ }
931
+
907
932
  declare type SmartGridCellRenderer = {
908
933
  value: unknown;
909
934
  data: SmartGridRowData;
@@ -1722,6 +1747,7 @@ declare type SmartGridDefaultColDef = {
1722
1747
  };
1723
1748
  headerComponent?: React.FC<SmartGridHeaderStyleParams> | null;
1724
1749
  enableCellChangeFlash?: boolean;
1750
+ maxCharLengthInSearch?: number;
1725
1751
  };
1726
1752
 
1727
1753
  declare type SmartGridDispatch = (action: {
@@ -2247,6 +2273,12 @@ declare interface SmartGridInternalGetRowsParams {
2247
2273
  noDataUpdate?: boolean;
2248
2274
  }
2249
2275
 
2276
+ declare interface SmartGridIsRowSelectableParams {
2277
+ data: SmartGridRowData;
2278
+ id: string;
2279
+ rowIndex: number;
2280
+ }
2281
+
2250
2282
  /** Last accessed sequence generator */
2251
2283
  declare interface SmartGridLastAccessedSequence {
2252
2284
  value: number;
@@ -2850,6 +2882,11 @@ declare interface SmartGridRowNodeTransaction {
2850
2882
  update: SmartGridRowNode[];
2851
2883
  }
2852
2884
 
2885
+ declare interface SmartGridRowSelectionRefCurrent {
2886
+ isRowSelectable?: (params: SmartGridIsRowSelectableParams) => boolean;
2887
+ hideDisabledCheckboxes?: boolean;
2888
+ }
2889
+
2853
2890
  declare interface SmartGridRowSpanInfo {
2854
2891
  [key: string]: SmartGridRowInfo | boolean | undefined;
2855
2892
  isRowSpan?: boolean;
@@ -3077,6 +3114,7 @@ declare interface SmartGridStateContext {
3077
3114
  clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
3078
3115
  customCallback: SmartGridCustomCallbackRefCurrent;
3079
3116
  contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
3117
+ rowSelectionRef: MutableRefObject<SmartGridRowSelectionRefCurrent> | null;
3080
3118
  tableId: string;
3081
3119
  isSingleSelect: boolean;
3082
3120
  selectable: boolean;
@@ -3098,6 +3136,10 @@ declare interface SmartGridStateContext {
3098
3136
  totalColumnsCount: number;
3099
3137
  isCommentFeatureEnabled: boolean;
3100
3138
  isChatEnabled: boolean;
3139
+ noHeaderSelection: boolean;
3140
+ treeData: boolean;
3141
+ virtualizationConfig: SmartGridVirConfig;
3142
+ disableCurrentPageRecords: boolean;
3101
3143
  [key: string]: unknown;
3102
3144
  }
3103
3145
 
@@ -3368,6 +3410,10 @@ declare interface SmartGridViewportRange {
3368
3410
  endRow: number;
3369
3411
  }
3370
3412
 
3413
+ declare type SmartGridVirConfig = {
3414
+ threshold: number;
3415
+ };
3416
+
3371
3417
  declare interface SmartGridWrappedDataSource {
3372
3418
  _originalDatasource: SmartGridServerSideDataSource;
3373
3419
  _loadingBlocks: Record<number, boolean>;
package/dist/chat.js CHANGED
@@ -4,7 +4,7 @@ import * as _ from "react";
4
4
  import le, { useRef as Ne, useCallback as De, useEffect as ue, createContext as Ro, createElement as ie, memo as vr, useState as R, createRef as vi, useContext as kn, Fragment as _c, useMemo as An, Suspense as i6, useLayoutEffect as $c, Component as a6, useDebugValue as vh, forwardRef as Ll, version as Tu, useImperativeHandle as ed } from "react";
5
5
  import { B as Pe, T as Lh, R as hs, C as fo, c as r6, Q as an, P as xh, M as o6, I as co, b as s6 } from "./RadioGroup-D3RQET6P.js";
6
6
  import kh, { createPortal as Sh, flushSync as l6 } from "react-dom";
7
- import { S as f6, I as c6, J as d6, K as u6, L as Nu, N as Au, M as ja, P as Bo, H as h6, a as Th, A as xs, u as p6 } from "./chat.type-D1TR5GvR.js";
7
+ import { S as f6, Q as c6, R as d6, U as u6, V as Nu, W as Au, M as ja, P as Bo, O as h6, a as Th, A as xs, u as p6 } from "./chat.type-Cwk7LBad.js";
8
8
  import ks from "moment";
9
9
  const m6 = ({
10
10
  open: t,
@@ -49928,7 +49928,7 @@ function Xc(t, e = Mh) {
49928
49928
  const i = Kx(t) % n.length;
49929
49929
  return n[i];
49930
49930
  }
49931
- const qx = `.ia-table-comment-panel-wrapper{visibility:hidden}.ia-table-comment-panel-main-container{visibility:hidden;opacity:0;background-color:#fff;box-shadow:0 0 4px #0000001f;transition:all .2s ease-in-out}.ia-table-comment-panel-main-container .ia-table-comment-panel-header{display:none;justify-content:space-between;align-items:center;padding:12px 16px;background-color:#eceefd;border-top-left-radius:8px;border-top-right-radius:8px}.ia-table-comment-panel-main-container .ia-table-comment-panel-header h2{font-family:Manrope,sans-serif;font-size:16px;color:#0d152c;font-weight:800;line-height:24px;margin:0}.ia-table-comment-panel-main-container .ia-table-comment-panel-header .ia-table-close_icon{background:url("data:image/svg+xml,%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.66667%201.7735L8.72667%200.833496L5%204.56016L1.27333%200.833496L0.333332%201.7735L4.06%205.50016L0.333332%209.22683L1.27333%2010.1668L5%206.44016L8.72667%2010.1668L9.66667%209.22683L5.94%205.50016L9.66667%201.7735Z'%20fill='%23758490'/%3e%3c/svg%3e") no-repeat;background-size:12px;background-position:center;width:12px;height:12px;cursor:pointer}.ia-table-comment-panel-main-container .ia-table-comment-panel-header .ia-table-close_icon:hover{background:#eceefd url("data:image/svg+xml,%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.66667%201.7735L8.72667%200.833496L5%204.56016L1.27333%200.833496L0.333332%201.7735L4.06%205.50016L0.333332%209.22683L1.27333%2010.1668L5%206.44016L8.72667%2010.1668L9.66667%209.22683L5.94%205.50016L9.66667%201.7735Z'%20fill='%23758490'/%3e%3c/svg%3e") no-repeat;color:#3649c6;background-size:12px;background-position:center}.ia-table-comment-panel-main-container .ia-table-comment-panel-body{display:none;align-items:center;padding-top:8px}.ia-table-comment-panel-main-container .ia-table-emptystate{min-height:auto;border:none;border-radius:8px;width:auto;padding:0;margin:0}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-center_svg_with_icon{min-height:0px}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-center_svg{height:70px;width:225px}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-center_svg svg{width:89px;height:70px}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-heading{font-size:14px;line-height:21px;margin-bottom:0}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-paragraph{width:inherit;font-size:10px;line-height:14px;font-weight:500;margin-top:0;color:#7a8294;width:285px}.ia-table-show-comment-panel{visibility:visible}.ia-table-display-comment-panel{width:355px;gap:8px;visibility:visible;opacity:1;z-index:999;padding:0;min-height:400px;border-radius:8px;margin:0 12px 12px}.ia-table-display-comment-panel .ia-table-comment-panel-header{border-bottom:none;display:flex}.ia-table-display-comment-panel .ia-table-comment-panel-header .ia-table-close_icon{padding:0}.ia-table-display-comment-panel .ia-table-comment-panel-body{display:flex}.comment-panel-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:1px solid #d9dde7}.comment-panel-header h2{font-weight:600;font-size:16px;color:#0d152c;margin:0}.comment-panel-header .close_icon{cursor:pointer}.ia-table-comment-panel-search-panel{padding:0 12px}.ia-table-comment-panel-search-panel .ia-table-left-input-icon{padding-top:2px}.ia-table-comment-panel-search-panel .ia-styles.ia-btn.ia-btn-small{padding:14px!important}.ia-table-comment-panel-content{padding:8px 12px;gap:0;line-height:20px;overflow:auto}.ia-table-comment-panel-item{padding:16px;background-color:transparent;cursor:pointer;position:relative}.ia-table-comment-panel-item:not(:last-child){margin-bottom:16px}.ia-table-comment-panel-item:not(:last-child):after{content:"";position:absolute;left:16px;right:16px;height:1px;background:#d9dde7;bottom:-8px}.ia-table-comment-panel-item.active{background-color:#eceefd;border-radius:16px}.ia-table-comment-panel-item-header{margin-bottom:12px}.ia-table-comment-panel-item-header .ia-table-comment-panel-author-info span:first-child{font-weight:600;font-size:14px;color:#31416e;line-height:21px}.ia-table-comment-panel-item-header .ia-table-comment-panel-author-info span:last-child{font-weight:500;font-size:12px;color:#60697d;line-height:16px}.ia-table-comment-panel-item-header .ia-table-comment-panel-item-header-right .ia-table-comment-panel-action-icon{padding:8px;height:32px;width:32px}.ia-table-comment-panel-item-header .ia-table-comment-panel-item-header-right .ia-table-comment-panel-action-button{padding:8px;background-color:transparent}.ia-table-comment-panel-item-content{font-weight:500;font-size:14px;color:#1f2b4d;line-height:20px;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;max-height:60px}.ia-table-comment-panel-item-footer{font-weight:500;font-size:14px;line-height:20px;color:#4259ee;cursor:pointer}.ia-table-comment-mode .ia-table-body-cell{cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cg%20filter='url(%23filter0_d_2758_79991)'%3e%3cpath%20d='M4%204H12C16.4183%204%2020%207.58172%2020%2012C20%2016.4183%2016.4183%2020%2012%2020C7.58172%2020%204%2016.4183%204%2012V4Z'%20fill='%234259EE'/%3e%3cpath%20d='M12%205C15.866%205%2019%208.13401%2019%2012C19%2015.866%2015.866%2019%2012%2019C8.13401%2019%205%2015.866%205%2012V5H12Z'%20stroke='%234259EE'%20stroke-width='2'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_2758_79991'%20x='0'%20y='0'%20width='24'%20height='24'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.12%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2758_79991'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2758_79991'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e") 4 4,pointer}`, Xx = [
49931
+ const qx = `.ia-table-comment-panel-wrapper{visibility:hidden}.ia-table-comment-panel-main-container{visibility:hidden;opacity:0;background-color:#fff;box-shadow:0 0 4px #0000001f;transition:all .2s ease-in-out}.ia-table-comment-panel-main-container .ia-table-comment-panel-header{display:none;justify-content:space-between;align-items:center;padding:12px 16px;background-color:#eceefd;border-top-left-radius:8px;border-top-right-radius:8px}.ia-table-comment-panel-main-container .ia-table-comment-panel-header h2{font-family:Manrope,sans-serif;font-size:16px;color:#0d152c;font-weight:800;line-height:24px;margin:0}.ia-table-comment-panel-main-container .ia-table-comment-panel-header .ia-table-close_icon{background:url("data:image/svg+xml,%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.66667%201.7735L8.72667%200.833496L5%204.56016L1.27333%200.833496L0.333332%201.7735L4.06%205.50016L0.333332%209.22683L1.27333%2010.1668L5%206.44016L8.72667%2010.1668L9.66667%209.22683L5.94%205.50016L9.66667%201.7735Z'%20fill='%23758490'/%3e%3c/svg%3e") no-repeat;background-size:12px;background-position:center;width:12px;height:12px;cursor:pointer}.ia-table-comment-panel-main-container .ia-table-comment-panel-header .ia-table-close_icon:hover{background:#eceefd url("data:image/svg+xml,%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.66667%201.7735L8.72667%200.833496L5%204.56016L1.27333%200.833496L0.333332%201.7735L4.06%205.50016L0.333332%209.22683L1.27333%2010.1668L5%206.44016L8.72667%2010.1668L9.66667%209.22683L5.94%205.50016L9.66667%201.7735Z'%20fill='%23758490'/%3e%3c/svg%3e") no-repeat;color:#3649c6;background-size:12px;background-position:center}.ia-table-comment-panel-main-container .ia-table-comment-panel-body{display:none;align-items:center;padding-top:8px}.ia-table-comment-panel-main-container .ia-table-emptystate{min-height:auto;border:none;border-radius:8px;width:auto;padding:0;margin:0}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-center_svg_with_icon{min-height:0px}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-center_svg{height:70px;width:225px}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-center_svg svg{width:89px;height:70px}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-heading{font-size:14px;line-height:21px;margin-bottom:0}.ia-table-comment-panel-main-container .ia-table-emptystate .ia-table-paragraph{width:inherit;font-size:10px;line-height:14px;font-weight:500;margin-top:0;color:#7a8294;width:285px}.ia-table-show-comment-panel{visibility:visible}.ia-table-display-comment-panel{width:355px;gap:8px;visibility:visible;opacity:1;z-index:999;padding:0;min-height:400px;border-radius:8px;margin:0 12px 12px}.ia-table-display-comment-panel .ia-table-comment-panel-header{border-bottom:none;display:flex}.ia-table-display-comment-panel .ia-table-comment-panel-header .ia-table-close_icon{padding:0}.ia-table-display-comment-panel .ia-table-comment-panel-body{display:flex}.comment-panel-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:1px solid #d9dde7}.comment-panel-header h2{font-weight:600;font-size:16px;color:#0d152c;margin:0}.comment-panel-header .close_icon{cursor:pointer}.ia-table-comment-panel-search-panel{padding:0 12px}.ia-table-comment-panel-search-panel .ia-table-left-input-icon{padding-top:2px}.ia-table-comment-panel-search-panel .ia-styles.ia-btn.ia-btn-small{padding:14px!important}.ia-table-comment-panel-content{padding:8px 12px;gap:0;line-height:20px;overflow:auto}.ia-table-comment-panel-item{padding:16px;background-color:transparent;cursor:pointer;position:relative}.ia-table-comment-panel-item:not(:last-child){margin-bottom:16px}.ia-table-comment-panel-item:not(:last-child):after{content:"";position:absolute;left:16px;right:16px;height:1px;background:#d9dde7;bottom:-8px}.ia-table-comment-panel-item.active{background-color:#eceefd;border-radius:16px}.ia-table-comment-panel-item-header{margin-bottom:12px}.ia-table-comment-panel-item-header .ia-table-comment-panel-author-info span:first-child{font-weight:600;font-size:14px;color:#31416e;line-height:21px}.ia-table-comment-panel-item-header .ia-table-comment-panel-author-info span:last-child{font-weight:500;font-size:12px;color:#60697d;line-height:16px}.ia-table-comment-panel-item-header .ia-table-comment-panel-item-header-right .ia-table-comment-panel-action-icon{padding:8px;height:32px;width:32px}.ia-table-comment-panel-item-header .ia-table-comment-panel-item-header-right .ia-table-comment-panel-action-button{padding:8px;background-color:transparent}.ia-table-comment-panel-item-content{font-weight:500;font-size:14px;color:#1f2b4d;line-height:20px;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;max-height:60px}.ia-table-comment-panel-item-content p{margin:0}.ia-table-comment-panel-item-footer{font-weight:500;font-size:14px;line-height:20px;color:#4259ee;cursor:pointer}.ia-table-comment-mode .ia-table-body-cell{cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cg%20filter='url(%23filter0_d_2758_79991)'%3e%3cpath%20d='M4%204H12C16.4183%204%2020%207.58172%2020%2012C20%2016.4183%2016.4183%2020%2012%2020C7.58172%2020%204%2016.4183%204%2012V4Z'%20fill='%234259EE'/%3e%3cpath%20d='M12%205C15.866%205%2019%208.13401%2019%2012C19%2015.866%2015.866%2019%2012%2019C8.13401%2019%205%2015.866%205%2012V5H12Z'%20stroke='%234259EE'%20stroke-width='2'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_2758_79991'%20x='0'%20y='0'%20width='24'%20height='24'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.12%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2758_79991'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2758_79991'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e") 4 4,pointer}`, Xx = [
49932
49932
  {
49933
49933
  label: "Sort by date",
49934
49934
  value: "opt1",