@colijnit/sharedcomponents 1.0.3 → 1.0.6
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/.browserslistrc +16 -0
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +11 -8
- package/Sharedcomponents.iml +11 -0
- package/angular.json +133 -0
- package/colijnit-sharedcomponents-1.0.6.tgz +0 -0
- package/karma.conf.js +44 -0
- package/move-assets.js +14 -0
- package/package.json +70 -25
- package/projects/sharedcomponents/.browserslistrc +16 -0
- package/projects/sharedcomponents/README.md +24 -0
- package/projects/sharedcomponents/karma.conf.js +44 -0
- package/projects/sharedcomponents/ng-package.json +17 -0
- package/projects/sharedcomponents/package.json +15 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +252 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/enums/send-option.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +215 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +27 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/style/_layout.scss +186 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/style/_material-definition.scss +1 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/style/_theme.scss +7 -0
- package/{lib/components/stock → projects/sharedcomponents/src/lib/components/send-method-dialog}/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +59 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +278 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-location/stock-location.component.ts +82 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts +4 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +111 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +78 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +47 -0
- package/projects/sharedcomponents/src/lib/components/stock/style/_layout.scss +206 -0
- package/projects/sharedcomponents/src/lib/components/stock/style/_material-definition.scss +20 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_theme.scss +0 -0
- package/{lib/components/stock/stock-transfer → projects/sharedcomponents/src/lib/components/stock}/style/material.scss +1 -1
- package/projects/sharedcomponents/src/lib/enum/icon.enum.ts +22 -0
- package/projects/sharedcomponents/src/lib/factory/business-object-factory.ts +120 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/boolean.decorator.ts +113 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-array.decorator.ts +61 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-field.decorator.ts +63 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/date-field.decorator.ts +41 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/string-number.decorator.ts +48 -0
- package/projects/sharedcomponents/src/lib/model/business-object.ts +85 -0
- package/projects/sharedcomponents/src/lib/model/icon-svg.ts +22 -0
- package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +51 -0
- package/projects/sharedcomponents/src/lib/service/ione-connector-adapter.service.ts +113 -0
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +35 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/_mixin.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/_variables.scss +0 -0
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +202 -0
- package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +4 -0
- package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +6 -0
- package/projects/sharedcomponents/src/test.ts +27 -0
- package/projects/sharedcomponents/tsconfig.lib.json +18 -0
- package/projects/sharedcomponents/tsconfig.lib.prod.json +10 -0
- package/projects/sharedcomponents/tsconfig.spec.json +17 -0
- package/src/app/app.component.scss +8 -0
- package/src/app/app.component.spec.ts +31 -0
- package/src/app/app.component.ts +97 -0
- package/src/app/app.module.ts +24 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +13 -0
- package/src/main.ts +12 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +28 -0
- package/src/test.ts +26 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +65 -0
- package/tsconfig.spec.json +18 -0
- package/bundles/colijnit-sharedcomponents.umd.js +0 -1825
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents.d.ts +0 -12
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -13
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +0 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +0 -44
- package/esm2015/lib/components/docsign/docsign.component.js +0 -225
- package/esm2015/lib/components/docsign/docsign.module.js +0 -23
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -54
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -255
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -71
- package/esm2015/lib/components/stock/stock.component.js +0 -61
- package/esm2015/lib/components/stock/stock.module.js +0 -42
- package/esm2015/lib/factory/business-object-factory.js +0 -120
- package/esm2015/lib/factory/decorators/boolean.decorator.js +0 -102
- package/esm2015/lib/factory/decorators/complex-array.decorator.js +0 -55
- package/esm2015/lib/factory/decorators/complex-field.decorator.js +0 -57
- package/esm2015/lib/factory/decorators/date-field.decorator.js +0 -36
- package/esm2015/lib/factory/decorators/string-number.decorator.js +0 -43
- package/esm2015/lib/model/business-object.js +0 -81
- package/esm2015/lib/service/ione-connector-adapter.service.js +0 -47
- package/esm2015/lib/service/stock.service.js +0 -40
- package/esm2015/lib/utils/array-utils.js +0 -183
- package/esm2015/lib/utils/is-nill.function.js +0 -5
- package/esm2015/public-api.js +0 -8
- package/fesm2015/colijnit-sharedcomponents.js +0 -1649
- package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
- package/lib/components/docsign/component/signature/signature.component.d.ts +0 -16
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +0 -12
- package/lib/components/docsign/docsign.component.d.ts +0 -92
- package/lib/components/docsign/docsign.module.d.ts +0 -2
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -7
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -44
- package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -12
- package/lib/components/stock/stock-location/style/_layout.scss +0 -11
- package/lib/components/stock/stock-location/style/_material-definition.scss +0 -1
- package/lib/components/stock/stock-location/style/_theme.scss +0 -18
- package/lib/components/stock/stock-location/style/material.scss +0 -4
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +0 -9
- package/lib/components/stock/stock-transfer/style/_layout.scss +0 -31
- package/lib/components/stock/stock-transfer/style/_material-definition.scss +0 -1
- package/lib/components/stock/stock-transfer/style/_theme.scss +0 -6
- package/lib/components/stock/stock.component.d.ts +0 -18
- package/lib/components/stock/stock.module.d.ts +0 -2
- package/lib/components/stock/style/_layout.scss +0 -146
- package/lib/components/stock/style/_material-definition.scss +0 -1
- package/lib/factory/business-object-factory.d.ts +0 -23
- package/lib/factory/decorators/boolean.decorator.d.ts +0 -43
- package/lib/factory/decorators/complex-array.decorator.d.ts +0 -25
- package/lib/factory/decorators/complex-field.decorator.d.ts +0 -25
- package/lib/factory/decorators/date-field.decorator.d.ts +0 -17
- package/lib/factory/decorators/string-number.decorator.d.ts +0 -22
- package/lib/model/business-object.d.ts +0 -7
- package/lib/service/ione-connector-adapter.service.d.ts +0 -11
- package/lib/service/stock.service.d.ts +0 -9
- package/lib/utils/array-utils.d.ts +0 -57
- package/lib/utils/is-nill.function.d.ts +0 -1
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
@import "../../../style/mixin";
|
|
2
|
-
|
|
3
|
-
@include export-module('co-stock-layout') {
|
|
4
|
-
.co-stock {
|
|
5
|
-
|
|
6
|
-
.stock-info-container {
|
|
7
|
-
max-width: 90%;
|
|
8
|
-
padding: 10px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.stock-info {
|
|
12
|
-
margin-top: 10px;
|
|
13
|
-
padding: 0 10px;
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.stock-info-row {
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.stock-info-row-image {
|
|
22
|
-
display: inline-flex;
|
|
23
|
-
gap: 10px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.stock-image {
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.stock-good-info {
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.stock-status {
|
|
35
|
-
display: grid;
|
|
36
|
-
gap: 10px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.stock-info > div:not(:first-child) {
|
|
40
|
-
padding: 0 10px;
|
|
41
|
-
border-left: solid 1px lightgray;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.stock-line {
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
margin: 10px 0 20px 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.simple-grid-column-header-wrapper {
|
|
50
|
-
font-size: 14px;
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: row;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.simple-grid-column-header {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
padding-right: 5px;
|
|
59
|
-
flex-basis: 100%;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.simple-grid-row {
|
|
63
|
-
font-size: 12px;
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
border: 1px solid;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.simple-grid-column-cell {
|
|
70
|
-
display: flex;
|
|
71
|
-
padding-right: 5px;
|
|
72
|
-
flex-basis: 100%;
|
|
73
|
-
padding-top: 10px;
|
|
74
|
-
padding-bottom: 10px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.stock-lines-button {
|
|
78
|
-
margin-bottom: 5%;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.tab-link {
|
|
82
|
-
gap: 10px;
|
|
83
|
-
&.hide {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.show {
|
|
88
|
-
display: flex;
|
|
89
|
-
}
|
|
90
|
-
flex-direction: row;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.tab-link > div {
|
|
94
|
-
margin: 25px 0;
|
|
95
|
-
padding-right: 10px;
|
|
96
|
-
|
|
97
|
-
&.inactive {
|
|
98
|
-
font-weight: normal;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.stock-grid {
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.stock-location-group {
|
|
106
|
-
margin-bottom: 20px;
|
|
107
|
-
display: flex;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.stock-location-left-group {
|
|
111
|
-
float: left;
|
|
112
|
-
display: flex;
|
|
113
|
-
flex: 1;
|
|
114
|
-
justify-content: flex-start;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.stock-location-right-group {
|
|
118
|
-
float: right;
|
|
119
|
-
display: flex;
|
|
120
|
-
flex: 1;
|
|
121
|
-
justify-content: flex-end;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.stock-button-toolbar {
|
|
125
|
-
display: flex;
|
|
126
|
-
justify-content: space-between;
|
|
127
|
-
margin: 10px;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.stock-button-left-group {
|
|
131
|
-
display: flex;
|
|
132
|
-
flex: 1;
|
|
133
|
-
justify-content: flex-start;
|
|
134
|
-
|
|
135
|
-
co-button {
|
|
136
|
-
margin-right: 10px;
|
|
137
|
-
width: 100px;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.stock-button-middle-group {
|
|
141
|
-
display: flex;
|
|
142
|
-
flex: 1;
|
|
143
|
-
margin-top: 10px;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BusinessObject } from "../model/business-object";
|
|
2
|
-
export declare class BusinessObjectFactory {
|
|
3
|
-
constructor();
|
|
4
|
-
/**
|
|
5
|
-
* Creates and returns a new business data object instance of given class, with all given data properties applied to it in a
|
|
6
|
-
* complex-aware style. That is, all properties on given class that are decorated with @ComplexField(..) or @ComplexArray(..) decorators
|
|
7
|
-
* become strongly typed business objects, with methods that are usable and such.
|
|
8
|
-
*
|
|
9
|
-
* @param modelClass
|
|
10
|
-
* @param {Object} rawData The object with all (possibly raw/flat/not alive) data to be applied to the created model object
|
|
11
|
-
*/
|
|
12
|
-
makeWithRawBackendData(modelClass: any, rawData: Object): BusinessObject;
|
|
13
|
-
makeBOArrayFromRawBackendDataArray(modelClass: any, arrayOfRawDatas: Object[]): BusinessObject[];
|
|
14
|
-
instantiateNewBo(modelClass: any): BusinessObject;
|
|
15
|
-
/**
|
|
16
|
-
* Applies all properties of given 'source' object to the given 'destination' businessobject, if destination has that property.
|
|
17
|
-
* Works with the @ComplexField(), @ComplexArray, @BooleanText, @CoInject and @DateField annotations of given destination model.
|
|
18
|
-
*
|
|
19
|
-
* @param sourceData Raw data to copy to destination model
|
|
20
|
-
* @param {BusinessObject} destinationModel InOut: The annotated businessobject to apply source properties to
|
|
21
|
-
*/
|
|
22
|
-
private _copyAllPropertiesDecoratorProcessedFrom;
|
|
23
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DbBooleanValueType } from "@colijnit/articleapi/build/enum/db-boolean-value-type.enum";
|
|
2
|
-
/**
|
|
3
|
-
* There are 'J', 'T', 'N', 'F', 0 and 1 'boolean values' in the database. These should be translated to true and false boolean values in
|
|
4
|
-
* our client application.
|
|
5
|
-
*
|
|
6
|
-
* The values 'J' and 'N' seem to be most commonly used. This is the default setting when using this decorator.
|
|
7
|
-
* You can pass 'T' or 1 for the other variants as follows:
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
*
|
|
11
|
-
* @BooleanText() or @BooleanText("J") (the default, uses YesNoDbType char values)
|
|
12
|
-
* public foo: boolean // 'J' and 'N' become true and false after BusinessObjectFactoryService and -SerializerService processing
|
|
13
|
-
*
|
|
14
|
-
* @BooleanText('T') (uses TrueFalseDbType char values)
|
|
15
|
-
* public bar: boolean // 'T' and 'F' become true and false after BusinessObjectFactoryService and -SerializerService processing
|
|
16
|
-
*
|
|
17
|
-
* @BooleanText(1)
|
|
18
|
-
* public baz: boolean // 1 and 0 become true and false after BusinessObjectFactoryService and -SerializerService processing
|
|
19
|
-
*/
|
|
20
|
-
export declare function BooleanText(type?: "J" | "T" | 1): PropertyDecorator;
|
|
21
|
-
export declare class BooleanTextDecorator {
|
|
22
|
-
/**
|
|
23
|
-
* Returns whether given property (as a string) on given object is a boolean text field. That is, it's a field that is decorated
|
|
24
|
-
* with the @BooleanText decorator.
|
|
25
|
-
*/
|
|
26
|
-
static IsBooleanTextField(target: Object, propertyKey: string): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the logical true or false value of given character ('J', 'N', 'T' or 'F') or number (0 or 1).
|
|
29
|
-
* Returns UNDEFINED if given boolChar was not recognised as a boolean text.
|
|
30
|
-
*/
|
|
31
|
-
static GetLogicalBooleanValue(dbBoolChar: DbBooleanValueType | string): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the boolean character / number of given logical bool property on target object. Uses its @BooleanText() annotation to decide
|
|
34
|
-
* what character / number to return.
|
|
35
|
-
* Used in BusinessObjectSerializerServiceService to convert logical bools to their original boolean character.
|
|
36
|
-
* @returns {string|number} The original, reverse-engineered boolean character (or number) of given object property, or undefined.
|
|
37
|
-
*/
|
|
38
|
-
static GetDbBooleanValue(target: Object, propertyKey: string): DbBooleanValueType;
|
|
39
|
-
private static _IsJaNeeProp;
|
|
40
|
-
private static _IsTrueFalseProp;
|
|
41
|
-
private static _IsZeroOneProp;
|
|
42
|
-
private static _IsProp;
|
|
43
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Property decorator for properties of businessobject classes that are an array of other strongly typed businessobjects.
|
|
6
|
-
* Ensures that the BusinessObjectFactoryService makes properly typed objects from incoming raw persistence data. Otherwise we couldn't add methods
|
|
7
|
-
* to our own businessobjects and use them, since all fields would be flat data without methods after BusinessObjectFactoryService creation.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
*
|
|
11
|
-
* @ComplexArray(TransactionLine)
|
|
12
|
-
* public transactionLines: TransactionLine[]
|
|
13
|
-
*/
|
|
14
|
-
export declare function ComplexArray(type: any): PropertyDecorator;
|
|
15
|
-
export declare class ComplexArrayDecorator {
|
|
16
|
-
/**
|
|
17
|
-
* Returns whether given property (as a string) on given object is a complex array. A complex array is an array field that is decorated
|
|
18
|
-
* with the @ComplexArray decorator.
|
|
19
|
-
*/
|
|
20
|
-
static IsComplexArray(target: Object, propertyKey: string): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the VALUE of the @ComplexArray(VALUE) property decorator on the given propertyKey on the given modelobject.
|
|
23
|
-
*/
|
|
24
|
-
static GetComplexArrayType(target: Object, propertyKey: string): any;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Property decorator for properties of businessobject classes that are other strongly typed businessobjects.
|
|
6
|
-
* Ensures that the BusinessObjectFactoryService makes properly typed objects from incoming raw persistence data. Otherwise we couldn't add methods
|
|
7
|
-
* to our own businessobjects and use them, since all fields would be flat data without methods after BusinessObjectFactoryService creation.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
*
|
|
11
|
-
* @ComplexField(Transaction)
|
|
12
|
-
* public transaction: Transaction
|
|
13
|
-
*
|
|
14
|
-
* Also keeps track of a "complexFieldProps" metadata on the class-level, as a reflect-metadata workaround to be able to
|
|
15
|
-
* retrieve all properties that have the @ComplexField(..) decorator (impossible with current Reflect API).
|
|
16
|
-
*/
|
|
17
|
-
export declare function ComplexField(type: any): PropertyDecorator;
|
|
18
|
-
export declare class ComplexFieldDecorator {
|
|
19
|
-
/**
|
|
20
|
-
* Returns whether given property (as a string) on given object is a complex field. A complex field is a field that is decorated
|
|
21
|
-
* with the @ComplexField decorator.
|
|
22
|
-
*/
|
|
23
|
-
static IsComplexField(target: Object, propertyKey: string): boolean;
|
|
24
|
-
static GetComplexFieldType(target: Object, propertyKey: string): any;
|
|
25
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Property decorator for properties of businessobject classes that are of type Date, but are sent to us as strings.
|
|
6
|
-
* Ensures that the BusinessObjectFactory makes proper JavaScript Date objects from incoming strings for @DateField() decorated properties.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
*
|
|
10
|
-
* @DateField()
|
|
11
|
-
* public expectedDeliveryDate: Date
|
|
12
|
-
*/
|
|
13
|
-
export declare function DateField(): PropertyDecorator;
|
|
14
|
-
export declare class DateFieldFieldDecorator {
|
|
15
|
-
static IsDateField(target: Object, propertyKey: string): boolean;
|
|
16
|
-
static StringAsDate(str: string): Date;
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Decorator for properties of businessobjects that are sent to us as strings from the database, but which we want to use as a number in the client.
|
|
6
|
-
*
|
|
7
|
-
* Can be handy for incongruent backend api cases, where id data types are communicated wrongly via strings instead of numbers
|
|
8
|
-
* (e.g. on EmployeeFullObject.district, points to a District which has a number id, but in employee it's a string representation of that number...)
|
|
9
|
-
*
|
|
10
|
-
* Used by business object factory and -serializer.
|
|
11
|
-
*
|
|
12
|
-
* Usage:
|
|
13
|
-
*
|
|
14
|
-
* @StringNumber()
|
|
15
|
-
* public rights: UserRightType
|
|
16
|
-
*/
|
|
17
|
-
export declare function StringNumber(): PropertyDecorator;
|
|
18
|
-
export declare class StringNumberDecorator {
|
|
19
|
-
static IsStringNumber(target: Object, propertyKey: string): boolean;
|
|
20
|
-
static StringAsNumber(str: string): number;
|
|
21
|
-
static NumberAsString(nr: number): string;
|
|
22
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Articles } from "@colijnit/articleapi/build/articles";
|
|
2
|
-
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
3
|
-
export declare class IoneConnectorAdapterService {
|
|
4
|
-
options: any;
|
|
5
|
-
connector: Articles;
|
|
6
|
-
private _boFactory;
|
|
7
|
-
constructor();
|
|
8
|
-
connect(options: any): Promise<void>;
|
|
9
|
-
disconnect(): Promise<void>;
|
|
10
|
-
getArticleFullObject(goodId: number): Promise<ArticleExtended>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IoneConnectorAdapterService } from "./ione-connector-adapter.service";
|
|
2
|
-
export declare class StockService {
|
|
3
|
-
private _connector;
|
|
4
|
-
constructor(_connector: IoneConnectorAdapterService);
|
|
5
|
-
connectConnector(options: any): void;
|
|
6
|
-
loadStockLocations(goodId: number): Promise<void>;
|
|
7
|
-
private _loadInOrders;
|
|
8
|
-
private _loadStockOrders;
|
|
9
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare class ArrayUtils {
|
|
2
|
-
/**
|
|
3
|
-
* Returns whether at least one element in given array could be found by given finder function.
|
|
4
|
-
*
|
|
5
|
-
* @param {T[]} array
|
|
6
|
-
* @param {(element: T) => boolean} finder A finder function that takes an element of the array and returns a boolean that represents
|
|
7
|
-
* the 'found status' for that element; whether it should have been found or not.
|
|
8
|
-
*/
|
|
9
|
-
static ContainsAnElementFoundBy<T>(array: T[], finder: (element: T) => boolean): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Cross-browser Array.find() function. Returns the first item in given array for which the foundBy function returns true. Returns
|
|
12
|
-
* undefined when none was found.
|
|
13
|
-
*
|
|
14
|
-
* Example usage:
|
|
15
|
-
* const foundItem: BusinessObject = ArrayUtils.Find<BusinessObject>(modelArray, (modelItem: BusinessObject) => <br>
|
|
16
|
-
* (return modelItem.getId() === '1')
|
|
17
|
-
* * });
|
|
18
|
-
*
|
|
19
|
-
* @param array The array with items to search in.
|
|
20
|
-
* @param foundBy The finder function applied on each items of the array, when that returns true, the item is considered found.
|
|
21
|
-
*/
|
|
22
|
-
static Find<T>(array: T[], foundBy: (item: T) => boolean): T;
|
|
23
|
-
static FindAll<T>(array: T[], foundBy: (item: T) => boolean): T[];
|
|
24
|
-
static CloneArray<T>(array: T[]): T[];
|
|
25
|
-
/**
|
|
26
|
-
* Returns a 'semi deep clone' of given array. Its first-level members are object-shallow-cloned (optionally with a strongly typed constructor),
|
|
27
|
-
* or just as plain object (see param arrayItemsClass).
|
|
28
|
-
* @param array
|
|
29
|
-
* @param arrayItemsClass If provided, the cloned array's first-level items will be strongly typed to / constructed as this class. Otherwise
|
|
30
|
-
* it'll be a plain object.
|
|
31
|
-
* @param deepClone Set to true if array items contain FUNCTIONS that need to be cloned..
|
|
32
|
-
* @returns {Array} semi-deep clone of given array
|
|
33
|
-
*/
|
|
34
|
-
static CloneArrayAndItsItems<T>(array: T[], arrayItemsClass?: any, deepClone?: boolean): T[];
|
|
35
|
-
/**
|
|
36
|
-
* Removes element at given index from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really
|
|
37
|
-
* removes the element using splice().
|
|
38
|
-
*
|
|
39
|
-
* @param {number} index
|
|
40
|
-
* @param {any[]} array in-out
|
|
41
|
-
* @returns {boolean} True if and only if the element on given index is succesfully removed from given array.
|
|
42
|
-
*/
|
|
43
|
-
static RemoveElementAtIndex(index: number, array: any[]): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Removes given element from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really removes the
|
|
46
|
-
* element using splice(). Also works on associative arrays.
|
|
47
|
-
*
|
|
48
|
-
* @param {T} element The element to remove.
|
|
49
|
-
* @param {T[]} array The array to remove the element from.
|
|
50
|
-
* @returns {boolean} True iff given element was truly successfully removed from given array.
|
|
51
|
-
*/
|
|
52
|
-
static RemoveElement<T>(element: T, array: T[]): boolean;
|
|
53
|
-
static IsArrayWithElements<T>(arrayToCheck: T[], classItemsMustBeInstanceOf?: any): boolean;
|
|
54
|
-
static RemoveElementsByFilter(array: any[], filterFunction: (item: any) => boolean): boolean;
|
|
55
|
-
static MoveElement<T>(element: T, toIndex: number, array: T[]): boolean;
|
|
56
|
-
static PlaceElementAfterOther(array: any[], elementToPlace: any, afterThisElement: any): void;
|
|
57
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNill(value: any): boolean;
|