@kengic/core.react 0.0.2-beta.26 → 0.0.2-beta.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.2-beta.26",
3
+ "version": "0.0.2-beta.28",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",
@@ -1,15 +1,39 @@
1
1
  /** 执行语句的参数. */
2
2
  export declare class ExecuteQuery {
3
- /** SQL. */
3
+ /** 当前页码. */
4
+ pageIndex?: number | null;
5
+ /** 每页大小. */
6
+ pageSize?: number | null;
7
+ /** 执行的 SQL. */
4
8
  sql?: string | null;
5
9
  constructor(obj?: ExecuteQuery);
6
10
  }
11
+ /** 查询结果的列的元数据. */
12
+ export declare class ExecuteResultColumn {
13
+ /** 列的描述. */
14
+ columnDesc?: string | null;
15
+ /** 列的别名. */
16
+ columnLabel?: string | null;
17
+ /** 列名. */
18
+ columnName?: string | null;
19
+ /** 列的类型. */
20
+ columnType?: string | null;
21
+ /** 表名. */
22
+ tableName?: string | null;
23
+ constructor(obj?: ExecuteResultColumn);
24
+ }
7
25
  /** 执行语句的结果. */
8
26
  export declare class ExecuteResultDTO {
27
+ /** 查询结果的列. */
28
+ columns?: Array<ExecuteResultColumn> | null;
9
29
  /** 执行结果消息. */
10
30
  message?: string | null;
31
+ /** 查询结果的行. */
32
+ rows?: Array<object> | null;
11
33
  /** 该结果对应的语句. */
12
34
  sql?: string | null;
35
+ /** 是否执行成功. */
36
+ success?: boolean | null;
13
37
  constructor(obj?: ExecuteResultDTO);
14
38
  }
15
39
  export declare class IPage<T0> {
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction, Slice, SliceSelectors } from '@reduxjs/toolkit';
2
- import { type IState } from '../../index.store.ts';
2
+ import { type IState } from '../../index.store';
3
3
  export interface IKgOption {
4
4
  /** SQL 客户端. */
5
5
  KgSqlClient?: {
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './KgSqlClient.css';
3
+ import { ExecuteResultDTO } from '../../api/WMS/models';
4
+ export interface KgSqlClientResultTabProps {
5
+ /**
6
+ * 执行结果.
7
+ */
8
+ executeResult: ExecuteResultDTO;
9
+ /**
10
+ * 当前索引, 即当前是第几个执行结果, 从 0 开始.
11
+ */
12
+ index: number;
13
+ }
14
+ /**
15
+ * SQL 客户端 | 执行结果的标签页.
16
+ */
17
+ export declare function KgSqlClientResultTab({ executeResult, index }: KgSqlClientResultTabProps): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
- import { store } from '../../index.store.ts';
2
+ import { store } from '../../index.store';
3
3
  import { IKgSqlClientOnMountEventListener } from './index.event';
4
4
  import { IKgSqlClientState } from './index.store';
5
5
  export interface IDoKgSqlClient {
@@ -1,6 +1,6 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
- import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models.ts';
3
- import { store } from '../../index.store.ts';
2
+ import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
3
+ import { store } from '../../index.store';
4
4
  import { IKgWorkStationOnMountEventListener, IKgWorkStationOnOkEventListener } from './index.event';
5
5
  import { IKgWorkStationState } from './index.store';
6
6
  export interface IDoKgWorkStation {
@@ -1,6 +1,6 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models.ts';
3
- import { type IState } from '../../index.store.ts';
2
+ import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
3
+ import { type IState } from '../../index.store';
4
4
  import { KgWorkStationProps } from './index.vm';
5
5
  export type IKgWorkStationState = Record<string, {
6
6
  /**
@@ -0,0 +1,14 @@
1
+ export declare const cs_CZ: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
3
+ 'KgWorkStation.modalTitle': string;
4
+ 'KgWorkStation.reloadMessage': string;
5
+ 'KgWorkStation.selectWorkStation': string;
6
+ 'KgWorkStation.workStation': string;
7
+ 'KgWorkStation.workStationAndWorkStationArea': string;
8
+ 'KgWorkStation.workStationArea': string;
9
+ 'kg.cancel': string;
10
+ 'kg.confirm': string;
11
+ 'kg.confirmDelete': string;
12
+ 'kg.execute': string;
13
+ 'kg.refresh': string;
14
+ };
package/src/i18n/en.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export declare const en: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
2
3
  'KgWorkStation.modalTitle': string;
3
4
  'KgWorkStation.reloadMessage': string;
4
5
  'KgWorkStation.selectWorkStation': string;
@@ -1,4 +1,5 @@
1
1
  export declare const es_ES: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
2
3
  'KgWorkStation.modalTitle': string;
3
4
  'KgWorkStation.reloadMessage': string;
4
5
  'KgWorkStation.selectWorkStation': string;
@@ -1,4 +1,5 @@
1
1
  export declare const fr_FR: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
2
3
  'KgWorkStation.modalTitle': string;
3
4
  'KgWorkStation.reloadMessage': string;
4
5
  'KgWorkStation.selectWorkStation': string;
@@ -1,4 +1,5 @@
1
1
  export declare const km_KH: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
2
3
  'KgWorkStation.modalTitle': string;
3
4
  'KgWorkStation.reloadMessage': string;
4
5
  'KgWorkStation.selectWorkStation': string;
@@ -1,4 +1,5 @@
1
1
  export declare const ko_KR: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
2
3
  'KgWorkStation.modalTitle': string;
3
4
  'KgWorkStation.reloadMessage': string;
4
5
  'KgWorkStation.selectWorkStation': string;
@@ -1,4 +1,5 @@
1
1
  export declare const vi_VN: {
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
2
3
  'KgWorkStation.modalTitle': string;
3
4
  'KgWorkStation.reloadMessage': string;
4
5
  'KgWorkStation.selectWorkStation': string;
@@ -1,5 +1,5 @@
1
1
  export declare const zh_CN: {
2
- KgSqlClient: string;
2
+ 'KgSqlClient.ResultTab.tabTitlePrefix': string;
3
3
  'KgWorkStation.modalTitle': string;
4
4
  'KgWorkStation.reloadMessage': string;
5
5
  'KgWorkStation.selectWorkStation': string;