This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { create } from "zustand"; | |
| import { subscribeWithSelector } from "zustand/middleware"; | |
| import { StoreActions } from "@core/stores/types"; | |
| import { | |
| BizService, | |
| BizSurvey, | |
| BizTitle, | |
| GetBizSurveyRequest, | |
| GetBizTitleViewRequest, | |
| PutBizSurveyRequest, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const lightColors = { | |
| primary_color: QS_PRIMARY, | |
| primary_color_1: QS_PRIMARY_1, | |
| primary_color_2: QS_PRIMARY_2, | |
| primary_color_3: QS_PRIMARY_3, | |
| primary_color_4: QS_PRIMARY_4, | |
| primary_color_5: QS_PRIMARY_5, | |
| secondary_color: QS_SECONDARY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getUniqName(name) { | |
| const re = /\d+(?=\D+$)|\d+$/; | |
| if (re.test(name)) { | |
| return name.replace(re, function(match) { | |
| return ('' + (Number(match) + 1)).padStart(match.length, '0'); | |
| }); | |
| } else { | |
| return `${name}_1`; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import { IDataGrid } from './common/@types'; | |
| interface IProps extends IDataGrid.IProps { | |
| } | |
| interface IState extends IDataGrid.IRootState { | |
| } | |
| declare class DataGrid extends React.Component<IProps, IState> { | |
| static defaultHeight: number; | |
| static defaultColumnKeys: IDataGrid.IColumnKeys; | |
| static defaultHeader: IDataGrid.IOptionHeader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export namespace IDataGrid { | |
| export interface IColumn extends IColPrimitive { | |
| colIndex?: number; | |
| rowIndex?: number; | |
| formatter?: formatterFunction | string; | |
| collector?: collectorFunction | string; | |
| editor?: editorFunction | string | { type?: string }; | |
| hidden?: boolean; | |
| columns?: IColumn[]; | |
| depth?: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from "react"; | |
| import styled from "styled-components"; | |
| import { Input, Icon } from "antd"; | |
| const Container = styled.div` | |
| margin: 10px auto; | |
| padding: 0 10px; | |
| `; | |
| export interface IFilterProps { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onerror = function (msg, url, lineNo, columnNo, error) { | |
| const string = msg.toLowerCase(), substring = "script error"; | |
| if (string.indexOf(substring) > -1) { | |
| axWarningDialog.alert('Script Error: See Browser Console for Detail'); | |
| } else { | |
| sqlgate.api.call({ | |
| method: "POST", | |
| data: JSON.stringify({ | |
| "url": url, | |
| "message": msg, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { | |
| CTInnerWidth: _CTInnerWidth = 0, | |
| frozenPanelWidth: _frozenPanelWidth = 0, | |
| asidePanelWidth: _asidePanelWidth = 0, | |
| rightPanelWidth: _rightPanelWidth = 0, | |
| } = newStoreProps.styles!; | |
| const { printStartColIndex, printEndColIndex } = getPositionPrintColGroup( | |
| newStoreProps.headerColGroup, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const prevBoxWidth = | |
| typeof parsedSQL.boxWidth === 'undefined' | |
| ? this.resultBoxWidth | |
| : parsedSQL.boxWidth; | |
| const prevResizerLeft = e.currentTarget.getBoundingClientRect().left; | |
| const prevScrollLeft = this.resultRef.current.scrollLeft; | |
| mouseEventSubscribe( | |
| (mpos: IMousePosition) => { | |
| const resizerMoveX = mpos.clientX - prevResizerLeft; |
NewerOlder