@colijnit/ioneconnector 2.0.6 → 2.1.8

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.
Files changed (264) hide show
  1. package/build/connector.d.ts +2 -1
  2. package/build/connector.js +4 -13
  3. package/build/connector.js.map +1 -0
  4. package/build/connector.unit.test.js +31 -15
  5. package/build/connector.unit.test.js.map +1 -0
  6. package/build/enum/backend-service-name.enum.js +2 -0
  7. package/build/enum/backend-service-name.enum.js.map +1 -0
  8. package/build/enum/datasession-service-method.enum.js +2 -0
  9. package/build/enum/datasession-service-method.enum.js.map +1 -0
  10. package/build/enum/db-boolean-value-type.enum.js +2 -0
  11. package/build/enum/db-boolean-value-type.enum.js.map +1 -0
  12. package/build/enum/end-point.enum.js +2 -0
  13. package/build/enum/end-point.enum.js.map +1 -0
  14. package/build/enum/filter-type.enum.d.ts +4 -0
  15. package/build/enum/filter-type.enum.js +9 -0
  16. package/build/enum/filter-type.enum.js.map +1 -0
  17. package/build/enum/login-service-method.enum.js +2 -0
  18. package/build/enum/login-service-method.enum.js.map +1 -0
  19. package/build/enum/object-config-kind.d.ts +9 -0
  20. package/build/enum/object-config-kind.js +14 -0
  21. package/build/enum/object-config-kind.js.map +1 -0
  22. package/build/enum/object-configuration-data-type.enum.d.ts +7 -0
  23. package/build/enum/object-configuration-data-type.enum.js +12 -0
  24. package/build/enum/object-configuration-data-type.enum.js.map +1 -0
  25. package/build/enum/object-configuration-value-type.enum.d.ts +10 -0
  26. package/build/enum/object-configuration-value-type.enum.js +15 -0
  27. package/build/enum/object-configuration-value-type.enum.js.map +1 -0
  28. package/build/enum/object-right-type.enum.d.ts +5 -0
  29. package/build/enum/object-right-type.enum.js +10 -0
  30. package/build/enum/object-right-type.enum.js.map +1 -0
  31. package/build/enum/one-zero-bool-db-type.enum.js +2 -0
  32. package/build/enum/one-zero-bool-db-type.enum.js.map +1 -0
  33. package/build/enum/public-service-method.enum.js +2 -0
  34. package/build/enum/public-service-method.enum.js.map +1 -0
  35. package/build/enum/search-data-type.enum.d.ts +4 -0
  36. package/build/enum/search-data-type.enum.js +9 -0
  37. package/build/enum/search-data-type.enum.js.map +1 -0
  38. package/build/enum/search-property-state.enum.d.ts +5 -0
  39. package/build/enum/search-property-state.enum.js +10 -0
  40. package/build/enum/search-property-state.enum.js.map +1 -0
  41. package/build/enum/sort-direction.d.ts +5 -0
  42. package/build/enum/sort-direction.js +13 -0
  43. package/build/enum/sort-direction.js.map +1 -0
  44. package/build/enum/sort-type.enum.d.ts +6 -0
  45. package/build/enum/sort-type.enum.js +11 -0
  46. package/build/enum/sort-type.enum.js.map +1 -0
  47. package/build/enum/true-false-db-type.enum.js +2 -0
  48. package/build/enum/true-false-db-type.enum.js.map +1 -0
  49. package/build/enum/user-right-type.enum.d.ts +7 -0
  50. package/build/enum/user-right-type.enum.js +12 -0
  51. package/build/enum/user-right-type.enum.js.map +1 -0
  52. package/build/enum/value-comparison-type.enum.d.ts +15 -0
  53. package/build/enum/value-comparison-type.enum.js +32 -0
  54. package/build/enum/value-comparison-type.enum.js.map +1 -0
  55. package/build/enum/yes-no-db-type.enum.js +2 -0
  56. package/build/enum/yes-no-db-type.enum.js.map +1 -0
  57. package/build/factory/business-object-factory.d.ts +16 -0
  58. package/build/factory/business-object-factory.js +178 -0
  59. package/build/factory/business-object-factory.js.map +1 -0
  60. package/build/factory/business-object-serializer.d.ts +11 -0
  61. package/build/factory/business-object-serializer.js +146 -0
  62. package/build/factory/business-object-serializer.js.map +1 -0
  63. package/build/factory/decorators/bo-factory-step.decorator.d.ts +4 -0
  64. package/build/factory/decorators/bo-factory-step.decorator.js +17 -0
  65. package/build/factory/decorators/bo-factory-step.decorator.js.map +1 -0
  66. package/build/factory/decorators/bo-serializer-step.decorator.d.ts +4 -0
  67. package/build/factory/decorators/bo-serializer-step.decorator.js +17 -0
  68. package/build/factory/decorators/bo-serializer-step.decorator.js.map +1 -0
  69. package/build/factory/decorators/boolean.decorator.js +6 -4
  70. package/build/factory/decorators/boolean.decorator.js.map +1 -0
  71. package/build/factory/decorators/business-object-data.decorator.d.ts +22 -0
  72. package/build/factory/decorators/business-object-data.decorator.js +87 -0
  73. package/build/factory/decorators/business-object-data.decorator.js.map +1 -0
  74. package/build/factory/decorators/co-inject.decorator.d.ts +6 -0
  75. package/build/factory/decorators/co-inject.decorator.js +54 -0
  76. package/build/factory/decorators/co-inject.decorator.js.map +1 -0
  77. package/build/factory/decorators/complex-array.decorator.js +3 -1
  78. package/build/factory/decorators/complex-array.decorator.js.map +1 -0
  79. package/build/factory/decorators/complex-field.decorator.js +3 -1
  80. package/build/factory/decorators/complex-field.decorator.js.map +1 -0
  81. package/build/factory/decorators/date-field.decorator.js +2 -0
  82. package/build/factory/decorators/date-field.decorator.js.map +1 -0
  83. package/build/factory/decorators/db-field-alias.decorator.js +2 -0
  84. package/build/factory/decorators/db-field-alias.decorator.js.map +1 -0
  85. package/build/factory/decorators/db-method-value.decorator.d.ts +5 -0
  86. package/build/factory/decorators/db-method-value.decorator.js +20 -0
  87. package/build/factory/decorators/db-method-value.decorator.js.map +1 -0
  88. package/build/factory/decorators/db-number.decorator.d.ts +5 -0
  89. package/build/factory/decorators/db-number.decorator.js +35 -0
  90. package/build/factory/decorators/db-number.decorator.js.map +1 -0
  91. package/build/factory/decorators/default-send-value.decorator.d.ts +6 -0
  92. package/build/factory/decorators/default-send-value.decorator.js +53 -0
  93. package/build/factory/decorators/default-send-value.decorator.js.map +1 -0
  94. package/build/factory/decorators/exclude-when-empty-string.decorator.d.ts +5 -0
  95. package/build/factory/decorators/exclude-when-empty-string.decorator.js +20 -0
  96. package/build/factory/decorators/exclude-when-empty-string.decorator.js.map +1 -0
  97. package/build/factory/decorators/json.decorator.js +2 -0
  98. package/build/factory/decorators/json.decorator.js.map +1 -0
  99. package/build/factory/decorators/map-property.decorator.js +2 -0
  100. package/build/factory/decorators/map-property.decorator.js.map +1 -0
  101. package/build/factory/decorators/no-db-field.decorator.js +2 -0
  102. package/build/factory/decorators/no-db-field.decorator.js.map +1 -0
  103. package/build/factory/decorators/number-string.decorator.d.ts +6 -0
  104. package/build/factory/decorators/number-string.decorator.js +24 -0
  105. package/build/factory/decorators/number-string.decorator.js.map +1 -0
  106. package/build/factory/decorators/simple-method-tag.decorator.d.ts +5 -0
  107. package/build/factory/decorators/simple-method-tag.decorator.js +31 -0
  108. package/build/factory/decorators/simple-method-tag.decorator.js.map +1 -0
  109. package/build/factory/decorators/simple-property-tag.decorator.d.ts +5 -0
  110. package/build/factory/decorators/simple-property-tag.decorator.js +38 -0
  111. package/build/factory/decorators/simple-property-tag.decorator.js.map +1 -0
  112. package/build/factory/decorators/string-number.decorator.js +2 -0
  113. package/build/factory/decorators/string-number.decorator.js.map +1 -0
  114. package/build/interface/business-object-data-shape.d.ts +19 -0
  115. package/build/interface/business-object-data-shape.js +3 -0
  116. package/build/interface/business-object-data-shape.js.map +1 -0
  117. package/build/interface/check-precision-and-scale-result.d.ts +4 -0
  118. package/build/interface/check-precision-and-scale-result.js +3 -0
  119. package/build/interface/check-precision-and-scale-result.js.map +1 -0
  120. package/build/interface/check-within-stepped-bounds-result.d.ts +4 -0
  121. package/build/interface/check-within-stepped-bounds-result.js +3 -0
  122. package/build/interface/check-within-stepped-bounds-result.js.map +1 -0
  123. package/build/interface/filter-property.d.ts +9 -0
  124. package/build/interface/filter-property.js +3 -0
  125. package/build/interface/filter-property.js.map +1 -0
  126. package/build/interface/precision-scale-object.d.ts +4 -0
  127. package/build/interface/precision-scale-object.js +3 -0
  128. package/build/interface/precision-scale-object.js.map +1 -0
  129. package/build/interface/search-property.d.ts +11 -0
  130. package/build/interface/search-property.js +3 -0
  131. package/build/interface/search-property.js.map +1 -0
  132. package/build/interface/sort-property.d.ts +11 -0
  133. package/build/interface/sort-property.js +3 -0
  134. package/build/interface/sort-property.js.map +1 -0
  135. package/build/interface/text-part.d.ts +4 -0
  136. package/build/interface/text-part.js +3 -0
  137. package/build/interface/text-part.js.map +1 -0
  138. package/build/interface/value-comparison-type-view-wrapper.d.ts +6 -0
  139. package/build/interface/value-comparison-type-view-wrapper.js +3 -0
  140. package/build/interface/value-comparison-type-view-wrapper.js.map +1 -0
  141. package/build/model/business-object.d.ts +11 -2
  142. package/build/model/business-object.js +28 -60
  143. package/build/model/business-object.js.map +1 -0
  144. package/build/model/constant/java-constants.js +2 -0
  145. package/build/model/constant/java-constants.js.map +1 -0
  146. package/build/model/data-service-data.js +2 -0
  147. package/build/model/data-service-data.js.map +1 -0
  148. package/build/model/data-service-response-data.interface.js +1 -0
  149. package/build/model/data-service-response-data.interface.js.map +1 -0
  150. package/build/model/data-service-response-data.js +10 -8
  151. package/build/model/data-service-response-data.js.map +1 -0
  152. package/build/model/data-service-response-exception.js +1 -0
  153. package/build/model/data-service-response-exception.js.map +1 -0
  154. package/build/model/data-service-response-root.js +1 -0
  155. package/build/model/data-service-response-root.js.map +1 -0
  156. package/build/model/field-validation.interface.js +1 -0
  157. package/build/model/field-validation.interface.js.map +1 -0
  158. package/build/model/field-validation.js +2 -0
  159. package/build/model/field-validation.js.map +1 -0
  160. package/build/model/field-validations-object.interface.js +1 -0
  161. package/build/model/field-validations-object.interface.js.map +1 -0
  162. package/build/model/field-validations-object.js +1 -0
  163. package/build/model/field-validations-object.js.map +1 -0
  164. package/build/model/login-response.interface.js +1 -0
  165. package/build/model/login-response.interface.js.map +1 -0
  166. package/build/model/login-response.js +2 -0
  167. package/build/model/login-response.js.map +1 -0
  168. package/build/model/login.js +2 -0
  169. package/build/model/login.js.map +1 -0
  170. package/build/model/object-configuration.d.ts +50 -0
  171. package/build/model/object-configuration.js +190 -0
  172. package/build/model/object-configuration.js.map +1 -0
  173. package/build/model/options.js +2 -0
  174. package/build/model/options.js.map +1 -0
  175. package/build/model/paging-parameters.interface.js +2 -0
  176. package/build/model/paging-parameters.interface.js.map +1 -0
  177. package/build/model/paging-parameters.js +6 -4
  178. package/build/model/paging-parameters.js.map +1 -0
  179. package/build/model/public-service-request-data.d.ts +5 -0
  180. package/build/model/public-service-request-data.js +3 -0
  181. package/build/model/public-service-request-data.js.map +1 -0
  182. package/build/model/server-response-data.d.ts +1 -1
  183. package/build/model/server-response-data.js +1 -0
  184. package/build/model/server-response-data.js.map +1 -0
  185. package/build/model/server-stack-trace-element.js +1 -0
  186. package/build/model/server-stack-trace-element.js.map +1 -0
  187. package/build/model/session.js +2 -0
  188. package/build/model/session.js.map +1 -0
  189. package/build/model/validation-message.interface.js +1 -0
  190. package/build/model/validation-message.interface.js.map +1 -0
  191. package/build/model/validation-message.js +7 -5
  192. package/build/model/validation-message.js.map +1 -0
  193. package/build/model/validation-result.interface.js +1 -0
  194. package/build/model/validation-result.interface.js.map +1 -0
  195. package/build/model/validation-result.js +2 -0
  196. package/build/model/validation-result.js.map +1 -0
  197. package/build/provider/ajax.service.d.ts +2 -1
  198. package/build/provider/ajax.service.js +21 -32
  199. package/build/provider/ajax.service.js.map +1 -0
  200. package/build/provider/base-backend-connection.service.js +9 -22
  201. package/build/provider/base-backend-connection.service.js.map +1 -0
  202. package/build/service/business-object-factory.js +3 -1
  203. package/build/service/business-object-factory.js.map +1 -0
  204. package/build/service/datasession.service.js +4 -13
  205. package/build/service/datasession.service.js.map +1 -0
  206. package/build/service/encrypt.service.js +2 -0
  207. package/build/service/encrypt.service.js.map +1 -0
  208. package/build/service/encrypt.service.unit.test.js +1 -0
  209. package/build/service/encrypt.service.unit.test.js.map +1 -0
  210. package/build/service/login.service.d.ts +3 -2
  211. package/build/service/login.service.js +32 -26
  212. package/build/service/login.service.js.map +1 -0
  213. package/build/service/public.service.js +2 -0
  214. package/build/service/public.service.js.map +1 -0
  215. package/build/tests/int/connector.int.test.js +1 -0
  216. package/build/tests/int/connector.int.test.js.map +1 -0
  217. package/build/type/business-object-id-type.d.ts +1 -1
  218. package/build/type/business-object-id-type.js +2 -0
  219. package/build/type/business-object-id-type.js.map +1 -0
  220. package/build/type/object-configuration-default-value-type.d.ts +1 -1
  221. package/build/type/object-configuration-default-value-type.js +1 -0
  222. package/build/type/object-configuration-default-value-type.js.map +1 -0
  223. package/build/utils/array-utils.d.ts +33 -0
  224. package/build/utils/array-utils.js +346 -1
  225. package/build/utils/array-utils.js.map +1 -0
  226. package/build/utils/business-object-utils.d.ts +16 -0
  227. package/build/utils/business-object-utils.js +181 -1
  228. package/build/utils/business-object-utils.js.map +1 -0
  229. package/build/utils/date-utils.d.ts +2 -0
  230. package/build/utils/date-utils.js +12 -1
  231. package/build/utils/date-utils.js.map +1 -0
  232. package/build/utils/function/any-nill.function.d.ts +1 -0
  233. package/build/utils/function/any-nill.function.js +17 -0
  234. package/build/utils/function/any-nill.function.js.map +1 -0
  235. package/build/utils/function/is-nill.function.js +2 -0
  236. package/build/utils/function/is-nill.function.js.map +1 -0
  237. package/build/utils/function/not-nill.function.js +2 -0
  238. package/build/utils/function/not-nill.function.js.map +1 -0
  239. package/build/utils/function-utils.d.ts +4 -0
  240. package/build/utils/function-utils.js +32 -0
  241. package/build/utils/function-utils.js.map +1 -0
  242. package/build/utils/image-utils.js +2 -0
  243. package/build/utils/image-utils.js.map +1 -0
  244. package/build/utils/map-utils.d.ts +4 -0
  245. package/build/utils/map-utils.js +32 -0
  246. package/build/utils/map-utils.js.map +1 -0
  247. package/build/utils/number-utils.d.ts +33 -3
  248. package/build/utils/number-utils.js +228 -17
  249. package/build/utils/number-utils.js.map +1 -0
  250. package/build/utils/object-utils.d.ts +13 -7
  251. package/build/utils/object-utils.js +144 -55
  252. package/build/utils/object-utils.js.map +1 -0
  253. package/build/utils/parameter-value-conversion-utils.js +2 -0
  254. package/build/utils/parameter-value-conversion-utils.js.map +1 -0
  255. package/build/utils/promise-utils.js +5 -12
  256. package/build/utils/promise-utils.js.map +1 -0
  257. package/build/utils/ref-code-utils.js +2 -0
  258. package/build/utils/ref-code-utils.js.map +1 -0
  259. package/build/utils/string-utils.d.ts +20 -1
  260. package/build/utils/string-utils.js +183 -4
  261. package/build/utils/string-utils.js.map +1 -0
  262. package/build/utils/url-utils.js +2 -0
  263. package/build/utils/url-utils.js.map +1 -0
  264. package/package.json +4 -2
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=precision-scale-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"precision-scale-object.js","sourceRoot":"","sources":["../../src/interface/precision-scale-object.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { ValueComparisonType } from "../enum/value-comparison-type.enum";
2
+ import { SearchDataType } from "../enum/search-data-type.enum";
3
+ import { SearchPropertyState } from "../enum/search-property-state.enum";
4
+ export interface SearchProperty {
5
+ property?: string;
6
+ label?: string;
7
+ values?: string[];
8
+ comparisonType?: ValueComparisonType;
9
+ dataType?: SearchDataType;
10
+ state?: SearchPropertyState;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=search-property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-property.js","sourceRoot":"","sources":["../../src/interface/search-property.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { SortDirection } from "../enum/sort-direction";
2
+ import { SortType } from "../enum/sort-type.enum";
3
+ export interface SortProperty {
4
+ property: string;
5
+ label?: string;
6
+ direction?: SortDirection;
7
+ evalType?: any;
8
+ switcher?: number;
9
+ type?: SortType;
10
+ active?: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sort-property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-property.js","sourceRoot":"","sources":["../../src/interface/sort-property.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface TextPart {
2
+ text: string;
3
+ match: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=text-part.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-part.js","sourceRoot":"","sources":["../../src/interface/text-part.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { ValueComparisonType } from '../enum/value-comparison-type.enum';
2
+ export interface ValueComparisonTypeViewWrapper {
3
+ type: ValueComparisonType;
4
+ icon?: string;
5
+ label: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=value-comparison-type-view-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value-comparison-type-view-wrapper.js","sourceRoot":"","sources":["../../src/interface/value-comparison-type-view-wrapper.ts"],"names":[],"mappings":""}
@@ -1,4 +1,13 @@
1
- export declare abstract class BusinessObject {
1
+ import { BusinessObjectIDType } from '../type/business-object-id-type';
2
+ export declare class BusinessObject {
3
+ id: BusinessObjectIDType;
4
+ getId(): BusinessObjectIDType;
5
+ setId(value: BusinessObjectIDType): void;
6
+ hasId(): boolean;
7
+ getTitleForSearchResult(): string;
8
+ getDescriptionForSearchResult(): string;
9
+ getLettersForSearchResult(): string;
10
+ getShowCheckbox(): boolean;
11
+ toString(): string;
2
12
  constructor();
3
- protected setOwnMappedPropsFromRawData(rawData?: any): void;
4
13
  }
@@ -1,67 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const map_property_decorator_1 = require("../factory/decorators/map-property.decorator");
4
- const boolean_decorator_1 = require("../factory/decorators/boolean.decorator");
5
- const json_decorator_1 = require("../factory/decorators/json.decorator");
6
- const complex_array_decorator_1 = require("../factory/decorators/complex-array.decorator");
3
+ exports.BusinessObject = void 0;
4
+ const object_utils_1 = require("../utils/object-utils");
5
+ const not_nill_function_1 = require("../utils/function/not-nill.function");
7
6
  class BusinessObject {
8
- constructor() {
7
+ getId() {
8
+ return this.id;
9
+ }
10
+ setId(value) {
11
+ this.id = value;
12
+ }
13
+ hasId() {
14
+ return (0, not_nill_function_1.notNill)(this.getId());
15
+ }
16
+ getTitleForSearchResult() {
17
+ return this.getId();
18
+ }
19
+ getDescriptionForSearchResult() {
20
+ return this.getId();
9
21
  }
10
- setOwnMappedPropsFromRawData(rawData = {}) {
11
- if (!rawData) {
12
- return;
13
- }
14
- Object.keys(this).forEach((key) => {
15
- if (map_property_decorator_1.MapPropertyDecorator.IsMapProperty(this, key)) {
16
- const mapKeys = map_property_decorator_1.MapPropertyDecorator.GetMapProperty(this, key).split(',');
17
- const len = mapKeys.length;
18
- for (let i = 0; i < len; i++) {
19
- const mapKey = mapKeys[i].trim();
20
- const objProp = rawData[mapKey];
21
- let decorated = false;
22
- if (rawData.hasOwnProperty(mapKey)) {
23
- if (boolean_decorator_1.BooleanTextDecorator.IsBooleanTextField(this, key)) {
24
- this[key] = boolean_decorator_1.BooleanTextDecorator.GetLogicalBooleanValue(objProp);
25
- decorated = true;
26
- }
27
- if (json_decorator_1.JsonFieldFieldDecorator.IsJsonField(this, key)) {
28
- this[key] = json_decorator_1.JsonFieldFieldDecorator.StringAsJson(objProp);
29
- decorated = true;
30
- }
31
- if (complex_array_decorator_1.ComplexArrayDecorator.IsComplexArray(this, key)) {
32
- const arrayClass = complex_array_decorator_1.ComplexArrayDecorator.GetComplexArrayType(this, key);
33
- const origArray = this[key];
34
- const newArray = [];
35
- for (let j = 0; j < origArray.length; j++) {
36
- const item = new arrayClass(origArray[j]);
37
- newArray.push(item);
38
- }
39
- this[key] = newArray;
40
- }
41
- else {
42
- if (!decorated) {
43
- this[key] = objProp;
44
- }
45
- }
46
- break;
47
- }
48
- }
49
- }
50
- else {
51
- if (rawData.hasOwnProperty(key)) {
52
- const objProp = rawData[key];
53
- if (boolean_decorator_1.BooleanTextDecorator.IsBooleanTextField(this, key)) {
54
- this[key] = boolean_decorator_1.BooleanTextDecorator.GetLogicalBooleanValue(objProp);
55
- }
56
- else if (json_decorator_1.JsonFieldFieldDecorator.IsJsonField(this, key)) {
57
- this[key] = json_decorator_1.JsonFieldFieldDecorator.StringAsJson(objProp);
58
- }
59
- else {
60
- this[key] = objProp;
61
- }
62
- }
63
- }
64
- });
22
+ getLettersForSearchResult() {
23
+ return undefined;
24
+ }
25
+ getShowCheckbox() {
26
+ return false;
27
+ }
28
+ toString() {
29
+ return object_utils_1.ObjectUtils.GetClassName(this) + ": " + this.getId();
30
+ }
31
+ constructor() {
65
32
  }
66
33
  }
67
34
  exports.BusinessObject = BusinessObject;
35
+ //# sourceMappingURL=business-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-object.js","sourceRoot":"","sources":["../../src/model/business-object.ts"],"names":[],"mappings":";;;AAAA,wDAAkD;AAElD,2EAA4D;AAG5D,MAAa,cAAc;IAKhB,KAAK;QACR,OAAO,IAAI,CAAC,EAAE,CAAC;IACnB,CAAC;IAGM,KAAK,CAAC,KAA2B;QACpC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC;IACpB,CAAC;IAEM,KAAK;QACR,OAAO,IAAA,2BAAO,EAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACjC,CAAC;IAGM,uBAAuB;QAC1B,OAAgB,IAAI,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;IAGM,6BAA6B;QAChC,OAAgB,IAAI,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;IAGM,yBAAyB;QAC5B,OAAO,SAAS,CAAC;IACrB,CAAC;IAEM,eAAe;QAClB,OAAO,KAAK,CAAC;IACjB,CAAC;IAGM,QAAQ;QACX,OAAO,0BAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IAChE,CAAC;IAED;IACA,CAAC;CACJ;AA5CD,wCA4CC"}
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JAVA_MAX_DOUBLE = exports.JAVA_MAX_INT = void 0;
3
4
  exports.JAVA_MAX_INT = 2147483647;
4
5
  exports.JAVA_MAX_DOUBLE = 1.7 * Math.pow(10, 308);
6
+ //# sourceMappingURL=java-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"java-constants.js","sourceRoot":"","sources":["../../../src/model/constant/java-constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAW,UAAU,CAAC;AAClC,QAAA,eAAe,GAAW,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataServiceData = void 0;
3
4
  class DataServiceData {
4
5
  }
5
6
  exports.DataServiceData = DataServiceData;
7
+ //# sourceMappingURL=data-service-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-service-data.js","sourceRoot":"","sources":["../../src/model/data-service-data.ts"],"names":[],"mappings":";;;AAIA,MAAa,eAAe;CAY3B;AAZD,0CAYC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data-service-response-data.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-service-response-data.interface.js","sourceRoot":"","sources":["../../src/model/data-service-response-data.interface.ts"],"names":[],"mappings":""}
@@ -1,16 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataServiceResponseData = void 0;
3
4
  const paging_parameters_1 = require("./paging-parameters");
4
5
  const not_nill_function_1 = require("../utils/function/not-nill.function");
5
6
  const validation_result_1 = require("./validation-result");
6
7
  class DataServiceResponseData {
7
- constructor(rawData) {
8
- this.fieldNames = [];
9
- this.pagingParameters = new paging_parameters_1.PagingParameters();
10
- this.resultObjects = [];
11
- this.validationResult = new validation_result_1.ValidationResult();
12
- this.setData(rawData);
13
- }
14
8
  get success() {
15
9
  return (this.validationResult && this.validationResult.success);
16
10
  }
@@ -28,6 +22,13 @@ class DataServiceResponseData {
28
22
  }
29
23
  return validationMsges.join("\n");
30
24
  }
25
+ constructor(rawData) {
26
+ this.fieldNames = [];
27
+ this.pagingParameters = new paging_parameters_1.PagingParameters();
28
+ this.resultObjects = [];
29
+ this.validationResult = new validation_result_1.ValidationResult();
30
+ this.setData(rawData);
31
+ }
31
32
  setData(rawData) {
32
33
  if (!rawData) {
33
34
  return;
@@ -38,7 +39,7 @@ class DataServiceResponseData {
38
39
  if (rawData.pagingParameters) {
39
40
  this.pagingParameters.setData(rawData.pagingParameters);
40
41
  }
41
- if (not_nill_function_1.notNill(rawData.resultObject)) {
42
+ if ((0, not_nill_function_1.notNill)(rawData.resultObject)) {
42
43
  this.resultObject = rawData.resultObject;
43
44
  }
44
45
  if (rawData.resultObjects) {
@@ -50,3 +51,4 @@ class DataServiceResponseData {
50
51
  }
51
52
  }
52
53
  exports.DataServiceResponseData = DataServiceResponseData;
54
+ //# sourceMappingURL=data-service-response-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-service-response-data.js","sourceRoot":"","sources":["../../src/model/data-service-response-data.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AACrD,2EAA4D;AAE5D,2DAAqD;AAKrD,MAAa,uBAAuB;IAkBhC,IAAW,OAAO;QACd,OAAO,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,IAAW,IAAI;QACX,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;IACzB,CAAC;IAGD,IAAW,0BAA0B;QACjC,MAAM,eAAe,GAAa,EAAE,CAAC;QACrC,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YACzD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,iBAAoC,EAAE,EAAE;gBAC5E,IAAI,iBAAiB,EAAE;oBACnB,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;iBACnD;YACL,CAAC,CAAC,CAAC;SACN;QACD,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,YAAY,OAAa;QACrB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,IAAI,oCAAgB,EAAE,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,gBAAgB,GAAG,IAAI,oCAAgB,EAAE,CAAC;QAC/C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IAMM,OAAO,CAAC,OAAY;QACvB,IAAI,CAAC,OAAO,EAAE;YACV,OAAO;SACV;QAED,IAAI,OAAO,CAAC,UAAU,EAAE;YACpB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;SACxC;QAED,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC1B,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;SAC3D;QAGD,IAAI,IAAA,2BAAO,EAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YAC/B,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;SAC5C;QAED,IAAI,OAAO,CAAC,aAAa,EAAE;YACvB,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;SAC9C;QAED,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC1B,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;SAC3D;IACL,CAAC;CAKJ;AAjFD,0DAiFC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data-service-response-exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-service-response-exception.js","sourceRoot":"","sources":["../../src/model/data-service-response-exception.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data-service-response-root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-service-response-root.js","sourceRoot":"","sources":["../../src/model/data-service-response-root.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=field-validation.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-validation.interface.js","sourceRoot":"","sources":["../../src/model/field-validation.interface.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldValidation = void 0;
3
4
  const validation_result_1 = require("./validation-result");
4
5
  const validation_message_1 = require("./validation-message");
5
6
  class FieldValidation {
@@ -24,3 +25,4 @@ class FieldValidation {
24
25
  }
25
26
  }
26
27
  exports.FieldValidation = FieldValidation;
28
+ //# sourceMappingURL=field-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-validation.js","sourceRoot":"","sources":["../../src/model/field-validation.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AACrD,6DAAuD;AAEvD,MAAa,eAAe;IAKxB,YAAY,OAAa;QAHlB,aAAQ,GAAwB,EAAE,CAAC;QACnC,mBAAc,GAAuB,EAAE,CAAC;QAG3C,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IA+CO,QAAQ,CAAC,OAAY;QACzB,IAAI,OAAO,EAAE;YACT,IAAI,OAAO,CAAC,QAAQ,EAAE;gBAClB,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,GAAG,GAAW,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;oBACzE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,sCAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;iBAClE;aACJ;YAED,IAAI,OAAO,CAAC,cAAc,EAAE;gBACxB,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,GAAG,GAAW,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;oBAC/E,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,oCAAgB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC7E;aACJ;SACJ;IACL,CAAC;CACJ;AArED,0CAqEC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=field-validations-object.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-validations-object.interface.js","sourceRoot":"","sources":["../../src/model/field-validations-object.interface.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=field-validations-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-validations-object.js","sourceRoot":"","sources":["../../src/model/field-validations-object.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=login-response.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-response.interface.js","sourceRoot":"","sources":["../../src/model/login-response.interface.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LoginResponse = void 0;
3
4
  const business_object_1 = require("./business-object");
4
5
  class LoginResponse extends business_object_1.BusinessObject {
5
6
  }
6
7
  exports.LoginResponse = LoginResponse;
8
+ //# sourceMappingURL=login-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-response.js","sourceRoot":"","sources":["../../src/model/login-response.ts"],"names":[],"mappings":";;;AACA,uDAAiD;AAGjD,MAAa,aAAc,SAAQ,gCAAc;CA4BhD;AA5BD,sCA4BC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Login = void 0;
3
4
  class Login {
4
5
  constructor() {
5
6
  this.upId = "";
@@ -35,3 +36,4 @@ class Login {
35
36
  }
36
37
  }
37
38
  exports.Login = Login;
39
+ //# sourceMappingURL=login.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/model/login.ts"],"names":[],"mappings":";;;AAAA,MAAa,KAAK;IAAlB;QAEW,SAAI,GAAW,EAAE,CAAC;QAClB,kBAAa,GAAW,EAAE,CAAC;QAE3B,yBAAoB,GAAW,GAAG,CAAC;QAclC,cAAS,GAAW,OAAO,CAAC;QAC5B,mBAAc,GAAW,OAAO,CAAC;QACjC,cAAS,GAAW,OAAO,CAAC;QAC5B,cAAS,GAAW,GAAG,CAAC;IAapC,CAAC;IA5BG,IAAW,QAAQ,CAAC,KAAa;QAC7B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IACD,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACD,IAAW,QAAQ,CAAC,KAAa;QAC7B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IACD,IAAW,aAAa,CAAC,KAAa;QAClC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;IAChC,CAAC;IAMM,aAAa;QAChB,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS;YACxB,YAAY,EAAE,IAAI,CAAC,SAAS;YAC5B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,QAAQ,EAAE,IAAI,CAAC,SAAS;YACxB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;SAClD,CAAC;IACN,CAAC;CACJ;AAnCD,sBAmCC"}
@@ -0,0 +1,50 @@
1
+ import { BusinessObject } from './business-object';
2
+ import { ObjectConfigKind } from '../enum/object-config-kind';
3
+ import { UserRightType } from '../enum/user-right-type.enum';
4
+ import { ObjectConfigurationDataType } from '../enum/object-configuration-data-type.enum';
5
+ import { ObjectConfigurationValueType } from '../enum/object-configuration-value-type.enum';
6
+ import { ObjectConfigurationDefaultValueType } from '../type/object-configuration-default-value-type';
7
+ export declare class ObjectConfiguration extends BusinessObject {
8
+ completion: boolean;
9
+ completionFactor: number;
10
+ configName: string;
11
+ dataName: string;
12
+ defaultValue: string;
13
+ displayName: string;
14
+ fieldAuthorisation: boolean;
15
+ kind: ObjectConfigKind;
16
+ maxLength: number;
17
+ needsAuthorisation: boolean;
18
+ nullable: boolean;
19
+ rights: UserRightType;
20
+ scale: number;
21
+ type: ObjectConfigurationDataType;
22
+ dateDisplayType: any;
23
+ valueType: ObjectConfigurationValueType;
24
+ static DeepConfigNameDelimiter: string;
25
+ static IdSeparator: string;
26
+ static DefaultValueListSplitChar: string;
27
+ constructor();
28
+ getId(): string;
29
+ isFieldKind(): boolean;
30
+ isRequired(): boolean;
31
+ mayRead(): boolean;
32
+ mayWrite(): boolean;
33
+ immediatelyVisible(): boolean;
34
+ immediatelyHidden(): boolean;
35
+ noRights(): boolean;
36
+ isHidden(): boolean;
37
+ isReadonly(): boolean;
38
+ isActiveFieldValidationObject(): boolean;
39
+ getDefaultValue(): ObjectConfigurationDefaultValueType;
40
+ getDefaultStringValue(): string;
41
+ getDefaultNumberValue(): number;
42
+ getDefaultDateValue(): Date;
43
+ getDefaultBooleanValue(): boolean;
44
+ getDefaultMultiNumbersValue(): number[];
45
+ getDefaultMultiStringsValue(): string[];
46
+ hasDefaultValue(): boolean;
47
+ getDataNameWithoutSubObjectPath(subObjPath: string): string;
48
+ hasMaxLength(): boolean;
49
+ hasDataNameForObjectPath(objectPropertyPath?: string): boolean;
50
+ }
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ObjectConfiguration = void 0;
13
+ const boolean_decorator_1 = require("../factory/decorators/boolean.decorator");
14
+ const no_db_field_decorator_1 = require("../factory/decorators/no-db-field.decorator");
15
+ const string_number_decorator_1 = require("../factory/decorators/string-number.decorator");
16
+ const not_nill_function_1 = require("../utils/function/not-nill.function");
17
+ const string_utils_1 = require("../utils/string-utils");
18
+ const number_utils_1 = require("../utils/number-utils");
19
+ const date_utils_1 = require("../utils/date-utils");
20
+ const business_object_1 = require("./business-object");
21
+ const object_config_kind_1 = require("../enum/object-config-kind");
22
+ const user_right_type_enum_1 = require("../enum/user-right-type.enum");
23
+ const object_configuration_data_type_enum_1 = require("../enum/object-configuration-data-type.enum");
24
+ const object_configuration_value_type_enum_1 = require("../enum/object-configuration-value-type.enum");
25
+ class ObjectConfiguration extends business_object_1.BusinessObject {
26
+ constructor() {
27
+ super();
28
+ }
29
+ getId() {
30
+ return this.configName;
31
+ }
32
+ isFieldKind() {
33
+ return this.kind === object_config_kind_1.ObjectConfigKind.Field;
34
+ }
35
+ isRequired() {
36
+ return !this.nullable;
37
+ }
38
+ mayRead() {
39
+ return this.rights >= user_right_type_enum_1.UserRightType.AvailableRead;
40
+ }
41
+ mayWrite() {
42
+ return this.rights >= user_right_type_enum_1.UserRightType.AvailableReadWrite;
43
+ }
44
+ immediatelyVisible() {
45
+ return this.rights === user_right_type_enum_1.UserRightType.Read || this.rights === user_right_type_enum_1.UserRightType.ReadWrite;
46
+ }
47
+ immediatelyHidden() {
48
+ return this.noRights();
49
+ }
50
+ noRights() {
51
+ return this.rights === user_right_type_enum_1.UserRightType.None;
52
+ }
53
+ isHidden() {
54
+ return !this.immediatelyVisible();
55
+ }
56
+ isReadonly() {
57
+ return !this.mayWrite();
58
+ }
59
+ isActiveFieldValidationObject() {
60
+ return this.mayWrite() && !this.isHidden() && this.isFieldKind() && this.type !== object_configuration_data_type_enum_1.ObjectConfigurationDataType.Boolean;
61
+ }
62
+ getDefaultValue() {
63
+ if ((0, not_nill_function_1.notNill)(this.defaultValue)) {
64
+ switch (this.valueType) {
65
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Alphanumeric:
66
+ return this.getDefaultStringValue();
67
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.ListOfValues:
68
+ if (this.type === object_configuration_data_type_enum_1.ObjectConfigurationDataType.Number) {
69
+ return this.getDefaultNumberValue();
70
+ }
71
+ else if (this.type === object_configuration_data_type_enum_1.ObjectConfigurationDataType.Varchar) {
72
+ return this.getDefaultStringValue();
73
+ }
74
+ break;
75
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Date:
76
+ return this.getDefaultDateValue();
77
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Boolean:
78
+ return this.getDefaultBooleanValue();
79
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Number:
80
+ return this.getDefaultNumberValue();
81
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelect:
82
+ return [this.defaultValue];
83
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelectNumbers:
84
+ return this.getDefaultMultiNumbersValue();
85
+ case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelectStrings:
86
+ return this.getDefaultMultiStringsValue();
87
+ }
88
+ }
89
+ }
90
+ getDefaultStringValue() {
91
+ return string_utils_1.StringUtils.ToStringOrDefault(this.defaultValue, undefined);
92
+ }
93
+ getDefaultNumberValue() {
94
+ return number_utils_1.NumberUtils.ParseFloatKeepPrecision(this.defaultValue);
95
+ }
96
+ getDefaultDateValue() {
97
+ return date_utils_1.DateUtils.StringAsDate(this.defaultValue);
98
+ }
99
+ getDefaultBooleanValue() {
100
+ return boolean_decorator_1.BooleanTextDecorator.GetLogicalBooleanValue(this.defaultValue);
101
+ }
102
+ getDefaultMultiNumbersValue() {
103
+ const numbers = [];
104
+ if (string_utils_1.StringUtils.IsStringWithLength(this.defaultValue)) {
105
+ const defaultValSplit = this.defaultValue.split(ObjectConfiguration.DefaultValueListSplitChar);
106
+ for (let i = 0, len = defaultValSplit.length; i < len; i++) {
107
+ numbers.push(number_utils_1.NumberUtils.ParseFloatKeepPrecision(defaultValSplit[i]));
108
+ }
109
+ }
110
+ return numbers;
111
+ }
112
+ getDefaultMultiStringsValue() {
113
+ let strings = [];
114
+ if (string_utils_1.StringUtils.IsStringWithLength(this.defaultValue)) {
115
+ strings = this.defaultValue.split(ObjectConfiguration.DefaultValueListSplitChar);
116
+ }
117
+ return strings;
118
+ }
119
+ hasDefaultValue() {
120
+ return (0, not_nill_function_1.notNill)(this.getDefaultValue());
121
+ }
122
+ getDataNameWithoutSubObjectPath(subObjPath) {
123
+ if (this.dataName && this.dataName.indexOf(ObjectConfiguration.DeepConfigNameDelimiter) !== -1) {
124
+ const answerWithDelimiterLeadChar = this.dataName.split(subObjPath)[1];
125
+ if (answerWithDelimiterLeadChar) {
126
+ return answerWithDelimiterLeadChar.slice(1);
127
+ }
128
+ }
129
+ else {
130
+ return this.dataName;
131
+ }
132
+ }
133
+ hasMaxLength() {
134
+ return (0, not_nill_function_1.notNill)(this.maxLength);
135
+ }
136
+ hasDataNameForObjectPath(objectPropertyPath = "") {
137
+ if (objectPropertyPath) {
138
+ let answer = true;
139
+ const propPathSplit = objectPropertyPath.split(ObjectConfiguration.DeepConfigNameDelimiter);
140
+ const myCfgNameSplit = this.dataName ? this.dataName.split(ObjectConfiguration.DeepConfigNameDelimiter) : [];
141
+ for (let i = 0, len = propPathSplit.length; i < len; i++) {
142
+ answer = (propPathSplit[i] === myCfgNameSplit[i]);
143
+ if (!answer) {
144
+ break;
145
+ }
146
+ }
147
+ return answer;
148
+ }
149
+ else {
150
+ return this.dataName ? this.dataName.indexOf(ObjectConfiguration.DeepConfigNameDelimiter) === -1 : true;
151
+ }
152
+ }
153
+ }
154
+ ObjectConfiguration.DeepConfigNameDelimiter = "_";
155
+ ObjectConfiguration.IdSeparator = "#";
156
+ ObjectConfiguration.DefaultValueListSplitChar = ",";
157
+ __decorate([
158
+ (0, boolean_decorator_1.BooleanText)("T"),
159
+ __metadata("design:type", Boolean)
160
+ ], ObjectConfiguration.prototype, "completion", void 0);
161
+ __decorate([
162
+ (0, boolean_decorator_1.BooleanText)("T"),
163
+ __metadata("design:type", Boolean)
164
+ ], ObjectConfiguration.prototype, "fieldAuthorisation", void 0);
165
+ __decorate([
166
+ (0, boolean_decorator_1.BooleanText)("T"),
167
+ __metadata("design:type", Boolean)
168
+ ], ObjectConfiguration.prototype, "needsAuthorisation", void 0);
169
+ __decorate([
170
+ (0, boolean_decorator_1.BooleanText)("T"),
171
+ __metadata("design:type", Boolean)
172
+ ], ObjectConfiguration.prototype, "nullable", void 0);
173
+ __decorate([
174
+ (0, string_number_decorator_1.StringNumber)(),
175
+ __metadata("design:type", Number)
176
+ ], ObjectConfiguration.prototype, "rights", void 0);
177
+ __decorate([
178
+ (0, no_db_field_decorator_1.NoDbField)(),
179
+ __metadata("design:type", String)
180
+ ], ObjectConfiguration, "DeepConfigNameDelimiter", void 0);
181
+ __decorate([
182
+ (0, no_db_field_decorator_1.NoDbField)(),
183
+ __metadata("design:type", String)
184
+ ], ObjectConfiguration, "IdSeparator", void 0);
185
+ __decorate([
186
+ (0, no_db_field_decorator_1.NoDbField)(),
187
+ __metadata("design:type", String)
188
+ ], ObjectConfiguration, "DefaultValueListSplitChar", void 0);
189
+ exports.ObjectConfiguration = ObjectConfiguration;
190
+ //# sourceMappingURL=object-configuration.js.map