orak-util-ts 0.0.8 → 0.0.10

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/index.d.mts CHANGED
@@ -1,35 +1,100 @@
1
- declare class FiMeta {
2
- txKey: string;
3
- txValue: string;
4
- lnKey: number;
1
+ declare class FiString {
2
+ static orEmpty(value: string | undefined): string;
5
3
  }
6
4
 
7
- declare class Fikeybean {
8
- mapData: Map<any, any>;
9
- constructor();
5
+ declare class FiNumber {
6
+ static orZero(value: number | undefined): number;
7
+ static orMinusOne(value: number | undefined): number;
8
+ }
9
+
10
+ declare class FiMeta {
11
+ txKey?: string;
12
+ txValue?: string;
13
+ lnKey?: number;
14
+ getTxKeyNtn(): string;
15
+ getTxValueNtn(): string;
16
+ getLnKeyOrMinusOne(): number | undefined;
10
17
  }
11
18
 
12
19
  declare class OreLog {
13
- orlTxMessage?: string;
14
- orlTxLogType?: string;
20
+ orlTxMessage?: string;
21
+ orlTxLogType?: string;
15
22
  }
16
23
 
17
24
  declare class Fdr {
18
- boResult?: boolean;
19
- message?: string;
20
- value?: object;
21
- lnResponseCode?: number;
22
- txId?: string;
23
- txName?: string;
24
- logList?: Array<OreLog>;
25
- rowsAffected?: number;
26
- lnTotalCount?: number;
27
- boFalseExist?: boolean;
28
- listException?: Array<object>;
29
- lnStatus?: number;
30
- getLogListNtn(): Array<OreLog>;
25
+ boResult?: boolean;
26
+ message?: string;
27
+ value?: object;
28
+ lnResponseCode?: number;
29
+ txId?: string;
30
+ txName?: string;
31
+ logList?: Array<OreLog>;
32
+ rowsAffected?: number;
33
+ lnTotalCount?: number;
34
+ boFalseExist?: boolean;
35
+ listException?: Array<object>;
36
+ lnStatus?: number;
37
+ getLogListNtn(): Array<OreLog>;
38
+ }
39
+
40
+ declare class FiCol {
41
+ ofcTxFieldName?: string;
42
+ ofcTxHeader?: string;
43
+ txLabel?: string;
44
+ ofcTxDbFieldName?: string;
45
+ txGuid?: string;
46
+ ofiTxIdType?: string;
47
+ ofcBoUniqGro1?: boolean;
48
+ ofcBoNullable?: boolean;
49
+ ofcBoUnique?: boolean;
50
+ ofcBoUtfSupport?: boolean;
51
+ ofcTxDefValue?: string;
52
+ ofcTxCollation?: string;
53
+ ofcTxTypeName?: string;
54
+ ofcLnLength?: number;
55
+ ofcLnPrecision?: number;
56
+ ofcLnScale?: number;
57
+ ofcBoFilterLike?: boolean;
58
+ ofcTxFieldType?: string;
59
+ ofcTxEntityName?: string;
60
+ oftBoTransient?: boolean;
61
+ ficTxSqlFieldDefinition?: string;
62
+ printSize?: number;
63
+ colType?: string;
64
+ boEditable?: boolean;
65
+ boHidden?: boolean;
66
+ boOptional?: boolean;
67
+ boExist?: boolean;
68
+ boRequired?: boolean;
69
+ boEnabled?: boolean;
70
+ entity?: object;
71
+ filterValue?: object;
72
+ boFilterable?: boolean;
73
+ filterNodeClass?: string;
74
+ funcFormatter?: Function;
75
+ colEditorClass?: string;
76
+ colValue?: object;
77
+ colEditorNodeText?: string;
78
+ boNullable?: boolean;
79
+ boNonUpdatable?: boolean;
80
+ boNonEditableForForm?: boolean;
81
+ txParamName?: string;
82
+ boKeyIdField?: boolean;
83
+ boKeyIdentityField?: boolean;
84
+ boUpdateFieldForQuery?: boolean;
85
+ boInsertFieldForQuery?: boolean;
86
+ boParamStatus?: boolean;
87
+ boFilterLike?: boolean;
88
+ lnCode?: number;
89
+ boEditorOnlyNumber?: boolean;
90
+ boWhereField?: boolean;
91
+ }
92
+
93
+ declare class FiKeybean {
94
+ mapData: Map<any, any>;
95
+ constructor();
31
96
  }
32
97
 
33
98
  declare function greet(name: string): string;
34
99
 
35
- export { Fdr, FiMeta, Fikeybean, OreLog, greet };
100
+ export { Fdr, FiCol, FiKeybean, FiMeta, FiNumber, FiString, OreLog, greet };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,19 @@
1
- declare class FiMeta {
2
- txKey: string;
3
- txValue: string;
4
- lnKey: number;
1
+ declare class FiString {
2
+ static orEmpty(value: string | undefined): string;
5
3
  }
6
4
 
7
- declare class Fikeybean {
8
- mapData: Map<any, any>;
9
- constructor();
5
+ declare class FiNumber {
6
+ static orZero(value: number | undefined): number;
7
+ static orMinusOne(value: number | undefined): number;
8
+ }
9
+
10
+ declare class FiMeta {
11
+ txKey?: string;
12
+ txValue?: string;
13
+ lnKey?: number;
14
+ getTxKeyNtn(): string;
15
+ getTxValueNtn(): string;
16
+ getLnKeyOrMinusOne(): number | undefined;
10
17
  }
11
18
 
12
19
  declare class OreLog {
@@ -30,6 +37,64 @@ declare class Fdr {
30
37
  getLogListNtn(): Array<OreLog>;
31
38
  }
32
39
 
40
+ declare class FiCol {
41
+ ofcTxFieldName?: string;
42
+ ofcTxHeader?: string;
43
+ txLabel?: string;
44
+ ofcTxDbFieldName?: string;
45
+ txGuid?: string;
46
+ ofiTxIdType?: string;
47
+ ofcBoUniqGro1?: boolean;
48
+ ofcBoNullable?: boolean;
49
+ ofcBoUnique?: boolean;
50
+ ofcBoUtfSupport?: boolean;
51
+ ofcTxDefValue?: string;
52
+ ofcTxCollation?: string;
53
+ ofcTxTypeName?: string;
54
+ ofcLnLength?: number;
55
+ ofcLnPrecision?: number;
56
+ ofcLnScale?: number;
57
+ ofcBoFilterLike?: boolean;
58
+ ofcTxFieldType?: string;
59
+ ofcTxEntityName?: string;
60
+ oftBoTransient?: boolean;
61
+ ficTxSqlFieldDefinition?: string;
62
+ printSize?: number;
63
+ colType?: string;
64
+ boEditable?: boolean;
65
+ boHidden?: boolean;
66
+ boOptional?: boolean;
67
+ boExist?: boolean;
68
+ boRequired?: boolean;
69
+ boEnabled?: boolean;
70
+ entity?: object;
71
+ filterValue?: object;
72
+ boFilterable?: boolean;
73
+ filterNodeClass?: string;
74
+ funcFormatter?: Function;
75
+ colEditorClass?: string;
76
+ colValue?: object;
77
+ colEditorNodeText?: string;
78
+ boNullable?: boolean;
79
+ boNonUpdatable?: boolean;
80
+ boNonEditableForForm?: boolean;
81
+ txParamName?: string;
82
+ boKeyIdField?: boolean;
83
+ boKeyIdentityField?: boolean;
84
+ boUpdateFieldForQuery?: boolean;
85
+ boInsertFieldForQuery?: boolean;
86
+ boParamStatus?: boolean;
87
+ boFilterLike?: boolean;
88
+ lnCode?: number;
89
+ boEditorOnlyNumber?: boolean;
90
+ boWhereField?: boolean;
91
+ }
92
+
93
+ declare class FiKeybean {
94
+ mapData: Map<any, any>;
95
+ constructor();
96
+ }
97
+
33
98
  declare function greet(name: string): string;
34
99
 
35
- export { Fdr, FiMeta, Fikeybean, OreLog, greet };
100
+ export { Fdr, FiCol, FiKeybean, FiMeta, FiNumber, FiString, OreLog, greet };
package/dist/index.js CHANGED
@@ -21,24 +21,50 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
23
  Fdr: () => Fdr,
24
+ FiCol: () => FiCol,
25
+ FiKeybean: () => FiKeybean,
24
26
  FiMeta: () => FiMeta,
25
- Fikeybean: () => Fikeybean,
27
+ FiNumber: () => FiNumber,
28
+ FiString: () => FiString,
26
29
  OreLog: () => OreLog,
27
30
  greet: () => greet
28
31
  });
29
32
  module.exports = __toCommonJS(src_exports);
30
33
 
34
+ // src/core/FiString.ts
35
+ var FiString = class {
36
+ static orEmpty(value) {
37
+ if (value == void 0) return "";
38
+ return value;
39
+ }
40
+ };
41
+
42
+ // src/core/FiNumber.ts
43
+ var FiNumber = class {
44
+ static orZero(value) {
45
+ if (value == void 0) return 0;
46
+ return value;
47
+ }
48
+ static orMinusOne(value) {
49
+ if (value == void 0) return -1;
50
+ return value;
51
+ }
52
+ };
53
+
31
54
  // src/FiMeta.ts
32
55
  var FiMeta = class {
33
56
  txKey;
34
57
  txValue;
35
58
  lnKey;
36
- };
37
-
38
- // src/Fikeybean.ts
39
- var Fikeybean = class {
40
- mapData = /* @__PURE__ */ new Map();
41
- constructor() {
59
+ // Getters
60
+ getTxKeyNtn() {
61
+ return FiString.orEmpty(this.txKey);
62
+ }
63
+ getTxValueNtn() {
64
+ return FiString.orEmpty(this.txValue);
65
+ }
66
+ getLnKeyOrMinusOne() {
67
+ return FiNumber.orMinusOne(this.lnKey);
42
68
  }
43
69
  };
44
70
 
@@ -83,6 +109,111 @@ var OreLog = class {
83
109
  orlTxLogType;
84
110
  };
85
111
 
112
+ // src/FiCol.ts
113
+ var FiCol = class {
114
+ ofcTxFieldName;
115
+ ofcTxHeader;
116
+ txLabel;
117
+ ofcTxDbFieldName;
118
+ txGuid;
119
+ ofiTxIdType;
120
+ ofcBoUniqGro1;
121
+ ofcBoNullable;
122
+ ofcBoUnique;
123
+ ofcBoUtfSupport;
124
+ ofcTxDefValue;
125
+ ofcTxCollation;
126
+ ofcTxTypeName;
127
+ ofcLnLength;
128
+ ofcLnPrecision;
129
+ ofcLnScale;
130
+ ofcBoFilterLike;
131
+ ofcTxFieldType;
132
+ ofcTxEntityName;
133
+ oftBoTransient;
134
+ ficTxSqlFieldDefinition;
135
+ //prefSize?:ObjectProperty;
136
+ printSize;
137
+ colType;
138
+ //colGenType?:OzColType;
139
+ boEditable;
140
+ boHidden;
141
+ boOptional;
142
+ boExist;
143
+ boRequired;
144
+ boEnabled;
145
+ entity;
146
+ //colFilterNode?:Node;
147
+ //colFilterKeyEvent?:EventHandler;
148
+ //paneHeader?:FxMigPane;
149
+ filterValue;
150
+ boFilterable;
151
+ filterNodeClass;
152
+ funcFormatter;
153
+ //formatter?:Format;
154
+ colEditorClass;
155
+ // colEditorNode?:Node;
156
+ colValue;
157
+ colEditorNodeText;
158
+ // colEditorKeyEvent?:EventHandler;
159
+ // fnEditorSetOnActionWithEntity?:Consumer;
160
+ // fnEditorSetOnAction?:BiConsumer;
161
+ // fnEditorSetOnActionWitCol?:TriConsumer;
162
+ // fnEditorSetOnActionWitValue?:TriConsumer;
163
+ // fnEditorNodeValueFormmatter?:Function;
164
+ // fnEditorNodeRendererBeforeSettingValue?:BiConsumer;
165
+ // fnEditorNodeRendererAfterInitialValue1?:BiConsumer;
166
+ // fnEditorNodeRendererAfterInitialValue2?:BiConsumer;
167
+ // fnEditorNodeRendererAfterFormLoad?:BiConsumer;
168
+ // fnEditorNodeAfterChangeForForm?:BiConsumer;
169
+ // fnEditorNodeRendererWithCol?:TriConsumer;
170
+ // fnEditorNodeRendererWitValue?:TriConsumer;
171
+ // fnEditorNodeLfcAfterAllFormLoad?:Consumer;
172
+ // predEditorDisable?:Predicate;
173
+ // colIndex?:number;
174
+ // listChildCol?:Array<object>;
175
+ // childClazz?:Class;
176
+ // entClass?:Class;
177
+ // colComment?:string;
178
+ // mapStyle?:Map;
179
+ // fnColButton?:BiConsumer;
180
+ boNullable;
181
+ boNonUpdatable;
182
+ boNonEditableForForm;
183
+ txParamName;
184
+ boKeyIdField;
185
+ boKeyIdentityField;
186
+ boUpdateFieldForQuery;
187
+ boInsertFieldForQuery;
188
+ boParamStatus;
189
+ // tableColumnFx?:ObjectProperty;
190
+ // fxTreeTableCol?:ObjectProperty;
191
+ // fxTableCol2?:FxTableCol2;
192
+ // fnColCellManualChanged?:Consumer;
193
+ // summaryLabelNode?:FxLabel;
194
+ // summaryCheckBox?:FxCheckBox;
195
+ // summaryNode?:Node;
196
+ // summaryType?:OzColSummaryType;
197
+ // summaryCalculateFn?:Function;
198
+ // boDontExportExcel?:boolean;
199
+ // boDontExportExcelTemplate?:boolean;
200
+ // ifxNodeEditor?:IfxNode;
201
+ boFilterLike;
202
+ // fnEditorNodeRendererAfterFormLoad2?:TriConsumer;
203
+ // fnNodeFocusTrigger?:Consumer;
204
+ lnCode;
205
+ // fnValidate?:Function;
206
+ boEditorOnlyNumber;
207
+ boWhereField;
208
+ };
209
+
210
+ // src/FiKeybean.ts
211
+ var FiKeybean = class {
212
+ mapData = /* @__PURE__ */ new Map();
213
+ constructor() {
214
+ }
215
+ };
216
+
86
217
  // src/index.ts
87
218
  function greet(name) {
88
219
  return `Hello, ${name}!`;
@@ -90,8 +221,11 @@ function greet(name) {
90
221
  // Annotate the CommonJS export names for ESM import in node:
91
222
  0 && (module.exports = {
92
223
  Fdr,
224
+ FiCol,
225
+ FiKeybean,
93
226
  FiMeta,
94
- Fikeybean,
227
+ FiNumber,
228
+ FiString,
95
229
  OreLog,
96
230
  greet
97
231
  });
package/dist/index.mjs CHANGED
@@ -1,14 +1,37 @@
1
+ // src/core/FiString.ts
2
+ var FiString = class {
3
+ static orEmpty(value) {
4
+ if (value == void 0) return "";
5
+ return value;
6
+ }
7
+ };
8
+
9
+ // src/core/FiNumber.ts
10
+ var FiNumber = class {
11
+ static orZero(value) {
12
+ if (value == void 0) return 0;
13
+ return value;
14
+ }
15
+ static orMinusOne(value) {
16
+ if (value == void 0) return -1;
17
+ return value;
18
+ }
19
+ };
20
+
1
21
  // src/FiMeta.ts
2
22
  var FiMeta = class {
3
23
  txKey;
4
24
  txValue;
5
25
  lnKey;
6
- };
7
-
8
- // src/Fikeybean.ts
9
- var Fikeybean = class {
10
- mapData = /* @__PURE__ */ new Map();
11
- constructor() {
26
+ // Getters
27
+ getTxKeyNtn() {
28
+ return FiString.orEmpty(this.txKey);
29
+ }
30
+ getTxValueNtn() {
31
+ return FiString.orEmpty(this.txValue);
32
+ }
33
+ getLnKeyOrMinusOne() {
34
+ return FiNumber.orMinusOne(this.lnKey);
12
35
  }
13
36
  };
14
37
 
@@ -53,14 +76,122 @@ var OreLog = class {
53
76
  orlTxLogType;
54
77
  };
55
78
 
79
+ // src/FiCol.ts
80
+ var FiCol = class {
81
+ ofcTxFieldName;
82
+ ofcTxHeader;
83
+ txLabel;
84
+ ofcTxDbFieldName;
85
+ txGuid;
86
+ ofiTxIdType;
87
+ ofcBoUniqGro1;
88
+ ofcBoNullable;
89
+ ofcBoUnique;
90
+ ofcBoUtfSupport;
91
+ ofcTxDefValue;
92
+ ofcTxCollation;
93
+ ofcTxTypeName;
94
+ ofcLnLength;
95
+ ofcLnPrecision;
96
+ ofcLnScale;
97
+ ofcBoFilterLike;
98
+ ofcTxFieldType;
99
+ ofcTxEntityName;
100
+ oftBoTransient;
101
+ ficTxSqlFieldDefinition;
102
+ //prefSize?:ObjectProperty;
103
+ printSize;
104
+ colType;
105
+ //colGenType?:OzColType;
106
+ boEditable;
107
+ boHidden;
108
+ boOptional;
109
+ boExist;
110
+ boRequired;
111
+ boEnabled;
112
+ entity;
113
+ //colFilterNode?:Node;
114
+ //colFilterKeyEvent?:EventHandler;
115
+ //paneHeader?:FxMigPane;
116
+ filterValue;
117
+ boFilterable;
118
+ filterNodeClass;
119
+ funcFormatter;
120
+ //formatter?:Format;
121
+ colEditorClass;
122
+ // colEditorNode?:Node;
123
+ colValue;
124
+ colEditorNodeText;
125
+ // colEditorKeyEvent?:EventHandler;
126
+ // fnEditorSetOnActionWithEntity?:Consumer;
127
+ // fnEditorSetOnAction?:BiConsumer;
128
+ // fnEditorSetOnActionWitCol?:TriConsumer;
129
+ // fnEditorSetOnActionWitValue?:TriConsumer;
130
+ // fnEditorNodeValueFormmatter?:Function;
131
+ // fnEditorNodeRendererBeforeSettingValue?:BiConsumer;
132
+ // fnEditorNodeRendererAfterInitialValue1?:BiConsumer;
133
+ // fnEditorNodeRendererAfterInitialValue2?:BiConsumer;
134
+ // fnEditorNodeRendererAfterFormLoad?:BiConsumer;
135
+ // fnEditorNodeAfterChangeForForm?:BiConsumer;
136
+ // fnEditorNodeRendererWithCol?:TriConsumer;
137
+ // fnEditorNodeRendererWitValue?:TriConsumer;
138
+ // fnEditorNodeLfcAfterAllFormLoad?:Consumer;
139
+ // predEditorDisable?:Predicate;
140
+ // colIndex?:number;
141
+ // listChildCol?:Array<object>;
142
+ // childClazz?:Class;
143
+ // entClass?:Class;
144
+ // colComment?:string;
145
+ // mapStyle?:Map;
146
+ // fnColButton?:BiConsumer;
147
+ boNullable;
148
+ boNonUpdatable;
149
+ boNonEditableForForm;
150
+ txParamName;
151
+ boKeyIdField;
152
+ boKeyIdentityField;
153
+ boUpdateFieldForQuery;
154
+ boInsertFieldForQuery;
155
+ boParamStatus;
156
+ // tableColumnFx?:ObjectProperty;
157
+ // fxTreeTableCol?:ObjectProperty;
158
+ // fxTableCol2?:FxTableCol2;
159
+ // fnColCellManualChanged?:Consumer;
160
+ // summaryLabelNode?:FxLabel;
161
+ // summaryCheckBox?:FxCheckBox;
162
+ // summaryNode?:Node;
163
+ // summaryType?:OzColSummaryType;
164
+ // summaryCalculateFn?:Function;
165
+ // boDontExportExcel?:boolean;
166
+ // boDontExportExcelTemplate?:boolean;
167
+ // ifxNodeEditor?:IfxNode;
168
+ boFilterLike;
169
+ // fnEditorNodeRendererAfterFormLoad2?:TriConsumer;
170
+ // fnNodeFocusTrigger?:Consumer;
171
+ lnCode;
172
+ // fnValidate?:Function;
173
+ boEditorOnlyNumber;
174
+ boWhereField;
175
+ };
176
+
177
+ // src/FiKeybean.ts
178
+ var FiKeybean = class {
179
+ mapData = /* @__PURE__ */ new Map();
180
+ constructor() {
181
+ }
182
+ };
183
+
56
184
  // src/index.ts
57
185
  function greet(name) {
58
186
  return `Hello, ${name}!`;
59
187
  }
60
188
  export {
61
189
  Fdr,
190
+ FiCol,
191
+ FiKeybean,
62
192
  FiMeta,
63
- Fikeybean,
193
+ FiNumber,
194
+ FiString,
64
195
  OreLog,
65
196
  greet
66
197
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orak-util-ts",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Orak Software Utility Typescript Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",