@@ -102,98 +102,6 @@ export const TABLE_UPDATE = `${DATA_PREFIX}.update`;
102
102
export const TABLE_REPLACE = `${ DATA_PREFIX } .replace` ;
103
103
104
104
105
- /**
106
- * Top level store for table related data. It's mounted as 'table_space' under the application state
107
- * @typedef {object } TableSpace
108
- * @prop {Object.<string, TableModel> } data repository for table model; keyed by tbl_id
109
- * @prop {Object.<string, TableGroup> } results repository for table group information; keyed by tbl_group name
110
- * @prop {Object.<string, Object> } ui repository for table UI state; keyed by tbl_ui_id
111
- */
112
-
113
-
114
- /**
115
- * Table model. The top level table data object with meta info.
116
- * @typedef {object } TableModel
117
- * @prop {string } tbl_id unique ID of this table.
118
- * @prop {string } title title, used on label.
119
- * @prop {TableRequest } request the request used to create this table
120
- * @prop {TableMeta } tableMeta table's meta information stored as key/value pair.
121
- * @prop {TableData } tableData table's meta information stored as key/value pair.
122
- * @prop {number } totalRows total number of rows.
123
- * @prop {number } highlightedRow the current highlighted row index. index is natural order starting from 0.
124
- * @prop {object } selectInfo selection information. use SelectInfo.newInstance take advantage of helper's functions.
125
- * @prop {boolean } isFetching true if data is being fetched and not ready for display.
126
- * @prop {string } error error message if the request fail to create a table.
127
- */
128
-
129
- /**
130
- * Table data. Table data object.
131
- * @typedef {object } TableData
132
- * @prop {TableColumn[] } columns table column definition.
133
- * @prop {string[][] } data 2D array containing the table data
134
- */
135
-
136
- /**
137
- * Table column information.
138
- * @typedef {object } TableColumn
139
- * @prop {string } name name of the column
140
- * @prop {string } label display name of the column
141
- * @prop {string } type data type
142
- * @prop {string } units data units
143
- * @prop {string } desc description of the column
144
- * @prop {number } width column display width
145
- * @prop {number } prefWidth preferred width. if width is not defined
146
- * @prop {boolean } sortable true if undefined
147
- * @prop {string } visibility show, hide, or hidden. hidden columns are not viewable by users.
148
- * @prop {string } sortByCols for multi-columns sorting. column names separated by comma(',').
149
- * @prop {string } related highlight related rows based on this column's value.
150
- */
151
-
152
- /**
153
- * Table meta information. Below is only a small set of predefined meta used by table.
154
- * The meta information in this object are used by many components for many reasons. ie catalog overlay.
155
- * @typedef {object } TableMeta
156
- * @prop {string } Loading-Status COMPLETED or INPROGRESS
157
- * @prop {string } tblFilePath path of the source of this table on the server-side.
158
- * @prop {string } isFullyLoaded 'true' when table is completely loaded on the server-side.
159
- * @prop {string } source path of the original table source before any operations were performed. ie sort, filter, etc. this may not be fully supported.
160
- */
161
-
162
- /**
163
- * Table request. Below is a list of predefined parameters available for table request. All of the options are optional.
164
- * These parameters let you control what data and how it will be returned.
165
- * @typedef {object } TableRequest
166
- * @prop {number } startIdx the starting index to fetch. defaults to zero.
167
- * @prop {number } pageSize the number of rows per page. defaults to 100.
168
- * @prop {string } filters list of conditions separted by comma(,). Format: (col_name|index) operator value.
169
- * operator is one of '> < = ! >= <= IN'. See DataGroupQueryStatement.java doc for more details.
170
- * @prop {string } sortInfo sort information. Format: (ASC|DESC),col_name[,col_name]*
171
- * @prop {string } inclCols list of columns to select. Column names separted by comma(,)
172
- * @prop {string } decimate decimation information.
173
- * @prop {object } META_INFO meta information passed as key/value pair to server then returned as tableMeta.
174
- * @prop {string } use one of 'catalog_overlay', 'catalog_primary', 'data_primary'.
175
- * @prop {string } tbl_id a unique id of a table. auto-create if not given.
176
- */
177
-
178
- /**
179
- * Table group. Define a group of tables used by the UI.
180
- * @typedef {Object } TableGroup
181
- * @prop {string } name unique name of this group
182
- * @prop {string } active tbl_id of the active table in this group
183
- * @prop {Object.<string, TableGroupItem> } tables a map of TableGroupItem(s) keyed by tbl_id
184
- */
185
-
186
- /**
187
- * Table group item. Contains enough key information to identify the table data as well as the UI data associate with this item.
188
- * @typedef {Object } TableGroupItem
189
- * @prop {string } tbl_group table group name
190
- * @prop {string } tbl_id unique id of the table data
191
- * @prop {string } tbl_ui_id unique id of the table's UI data
192
- * @prop {string } title title or label of the table
193
- * @prop {boolean } removable true if this item can be removed from group.
194
- * @prop {Object.<string, *> } options table options, ie. selectable, expandable
195
- */
196
-
197
105
198
106
/*---------------------------- CREATORS ----------------------------*/
199
107
0 commit comments