@colijnit/sharedcomponents 1.0.11 → 1.0.12

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 (67) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +1583 -53
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +7 -0
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +8 -1
  6. package/esm2015/lib/components/docsign/docsign.component.js +5 -7
  7. package/esm2015/lib/components/send-method-dialog/enums/send-option.js +8 -0
  8. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +221 -0
  9. package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +27 -0
  10. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +55 -0
  11. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +258 -0
  12. package/esm2015/lib/components/stock/stock-location/stock-location.component.js +68 -0
  13. package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +2 -0
  14. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +98 -0
  15. package/esm2015/lib/components/stock/stock.component.js +107 -0
  16. package/esm2015/lib/components/stock/stock.module.js +45 -0
  17. package/esm2015/lib/enum/icon.enum.js +23 -0
  18. package/esm2015/lib/factory/business-object-factory.js +120 -0
  19. package/esm2015/lib/factory/decorators/boolean.decorator.js +102 -0
  20. package/esm2015/lib/factory/decorators/complex-array.decorator.js +55 -0
  21. package/esm2015/lib/factory/decorators/complex-field.decorator.js +57 -0
  22. package/esm2015/lib/factory/decorators/date-field.decorator.js +36 -0
  23. package/esm2015/lib/factory/decorators/string-number.decorator.js +43 -0
  24. package/esm2015/lib/model/business-object.js +81 -0
  25. package/esm2015/lib/model/icon-svg.js +22 -0
  26. package/esm2015/lib/service/icon-cache.service.js +51 -0
  27. package/esm2015/lib/service/ione-connector-adapter.service.js +164 -0
  28. package/esm2015/lib/service/stock.service.js +41 -0
  29. package/esm2015/lib/utils/array-utils.js +183 -0
  30. package/esm2015/lib/utils/is-nill.function.js +5 -0
  31. package/esm2015/public-api.js +5 -1
  32. package/fesm2015/colijnit-sharedcomponents.js +1817 -8
  33. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  34. package/lib/components/send-method-dialog/enums/send-option.d.ts +6 -0
  35. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +41 -0
  36. package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -0
  37. package/lib/components/send-method-dialog/style/_layout.scss +192 -0
  38. package/lib/components/send-method-dialog/style/_material-definition.scss +1 -0
  39. package/lib/components/send-method-dialog/style/_theme.scss +7 -0
  40. package/lib/components/send-method-dialog/style/material.scss +4 -0
  41. package/lib/components/stock/stock-information/stock-information.component.d.ts +11 -0
  42. package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +47 -0
  43. package/lib/components/stock/stock-location/stock-location.component.d.ts +16 -0
  44. package/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts +4 -0
  45. package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +21 -0
  46. package/lib/components/stock/stock.component.d.ts +32 -0
  47. package/lib/components/stock/stock.module.d.ts +2 -0
  48. package/lib/components/stock/style/_layout.scss +206 -0
  49. package/lib/components/stock/style/_material-definition.scss +20 -0
  50. package/lib/components/stock/style/_theme.scss +8 -0
  51. package/lib/components/stock/style/material.scss +4 -0
  52. package/lib/enum/icon.enum.d.ts +21 -0
  53. package/lib/factory/business-object-factory.d.ts +23 -0
  54. package/lib/factory/decorators/boolean.decorator.d.ts +43 -0
  55. package/lib/factory/decorators/complex-array.decorator.d.ts +25 -0
  56. package/lib/factory/decorators/complex-field.decorator.d.ts +25 -0
  57. package/lib/factory/decorators/date-field.decorator.d.ts +17 -0
  58. package/lib/factory/decorators/string-number.decorator.d.ts +22 -0
  59. package/lib/model/business-object.d.ts +7 -0
  60. package/lib/model/icon-svg.d.ts +4 -0
  61. package/lib/service/icon-cache.service.d.ts +18 -0
  62. package/lib/service/ione-connector-adapter.service.d.ts +26 -0
  63. package/lib/service/stock.service.d.ts +17 -0
  64. package/lib/utils/array-utils.d.ts +57 -0
  65. package/lib/utils/is-nill.function.d.ts +1 -0
  66. package/package.json +5 -10
  67. package/public-api.d.ts +4 -0
@@ -0,0 +1,192 @@
1
+ @import "../../../style/mixin";
2
+ @import "../../../style/variables";
3
+
4
+ @include export-module('ione-send-method-dialog-layout') {
5
+ .ione-send-method-dialog {
6
+ .send-method-dialog-wrapper {
7
+ font-family: $sc-font-family;
8
+ }
9
+
10
+ .dialog-content-wrapper {
11
+ padding: 0 20px 0 20px;
12
+ min-width: 350px;
13
+ min-height: 415px;
14
+ overflow: hidden;
15
+ }
16
+
17
+ //.co-dialog-wizard-wrapper {
18
+ // height: 50vh;
19
+ // overflow-y: auto;
20
+ //}
21
+
22
+ .send-options-wrapper {
23
+ display: flex;
24
+ justify-content: center;
25
+ }
26
+
27
+ .custom-button-wrapper {
28
+ width: 45px;
29
+ height: 45px;
30
+ background-color: #f5f5fa;
31
+ padding: 5px;
32
+ margin: 5px;
33
+ border-radius: 10px;
34
+ cursor: pointer;
35
+
36
+ co-icon {
37
+ width: 100%;
38
+ height: 100%;
39
+ }
40
+ }
41
+
42
+ .selected-option {
43
+ background-color: #3e7eff;
44
+
45
+ co-icon svg {
46
+ path {
47
+ fill: white
48
+ }
49
+ rect {
50
+ fill: white
51
+ }
52
+ }
53
+ }
54
+
55
+ .email-option-content {
56
+ display: flex;
57
+ flex-direction: column;
58
+ margin: 10px 0 10px;
59
+ }
60
+
61
+ .emails-container {
62
+ display: flex;
63
+ flex-direction: column;
64
+ }
65
+
66
+ .lov-wrapper {
67
+ margin: 15px 0 10px;
68
+ border: 1px solid #f6f6f8;
69
+ border-radius: 10px;
70
+ padding: 10px;
71
+ }
72
+
73
+ .input-checkbox-wrapper {
74
+ padding: 5px;
75
+ }
76
+
77
+ .input-number-wrapper {
78
+ width: 85px;
79
+ height: 52px;
80
+ margin: 5px;
81
+ }
82
+
83
+ .print-footer-wrapper {
84
+ display: flex;
85
+ justify-content: center;
86
+ }
87
+
88
+ .print-button {
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ width: 120px;
93
+ }
94
+
95
+ .number-picker {
96
+ height: 52px;
97
+ }
98
+
99
+ .signature-button-wrapper {
100
+ display: flex;
101
+ justify-content: center;
102
+ }
103
+
104
+ .signature-button {
105
+ width: 75px;
106
+ }
107
+
108
+ .standard-printer-wrapper {
109
+ width: 100%;
110
+ margin: 15px 0 15px;
111
+ display: flex;
112
+ flex-direction: column;
113
+ justify-content: center;
114
+ }
115
+
116
+ .standard-printer-link {
117
+ display: flex;
118
+ align-items: center;
119
+ cursor: pointer;
120
+
121
+ co-icon svg {
122
+ polygon {
123
+ fill: #3e7eff
124
+ }
125
+ }
126
+ }
127
+
128
+ .arrow-icon {
129
+ width: 30px;
130
+ height: 40px;
131
+ }
132
+
133
+ .standard-printer-message {
134
+ font-family: $sc-font-family;
135
+ font-weight: bold;
136
+ color: #3e7eff;
137
+ font-size: 0.9em;
138
+ }
139
+
140
+ .standard-printer-selections {
141
+ display: flex;
142
+ flex-direction: column;
143
+ }
144
+
145
+ .printer-content-container {
146
+ flex-direction: column;
147
+ align-items: center;
148
+ padding-top: 20px;
149
+ height: 50vh;
150
+ overflow-y: auto;
151
+ }
152
+
153
+ .selected-printer-wrapper {
154
+ display: flex;
155
+ align-items: center;
156
+ justify-content: space-between;
157
+ }
158
+
159
+ .printer-option-list-item {
160
+ display: flex;
161
+ align-items: center;
162
+ }
163
+
164
+ .printer-details {
165
+ display: flex;
166
+ flex-direction: column;
167
+ }
168
+
169
+ .printer-name {
170
+ font-weight: bold;
171
+ }
172
+
173
+ .printer-icon {
174
+ height: 50px;
175
+ width: 50px;
176
+ margin-right: 10px;
177
+ }
178
+
179
+ .select-printer-arrow {
180
+ width: 25px;
181
+ height: 25px;
182
+ }
183
+
184
+ .clickable {
185
+ cursor: pointer;
186
+ }
187
+
188
+ .selection {
189
+ padding: 10px;
190
+ }
191
+ }
192
+ }
@@ -0,0 +1 @@
1
+ $cc-co-input-number-picker-border-color: #757575;
@@ -0,0 +1,7 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('ione-send-method-dialog-theme') {
4
+ .ione-send-method-dialog {
5
+
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/variables";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -0,0 +1,11 @@
1
+ import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
2
+ import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
3
+ export declare class StockInformationComponent {
4
+ stockStatus: string;
5
+ image: string;
6
+ show: boolean;
7
+ hideOrShowLocationTab: boolean;
8
+ article: ArticleExtended;
9
+ articleStock: ArticleStockBo;
10
+ constructor();
11
+ }
@@ -0,0 +1,47 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { StockService } from "../../../service/stock.service";
3
+ import { IconCacheService } from "../../../service/icon-cache.service";
4
+ import { Icon } from "../../../enum/icon.enum";
5
+ import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
6
+ import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
7
+ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
8
+ import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
9
+ export declare class StockInformationGridComponent {
10
+ iconCacheService: IconCacheService;
11
+ private _stockService;
12
+ readonly icons: typeof Icon;
13
+ stock: StockInformationGridComponent;
14
+ articleStockInformation: ArticleStockBo[];
15
+ stockHistoryInformation: GetStockHistoryRequest[];
16
+ stockLocationData: ArticleStockBo[];
17
+ readonly locationLineClicked: EventEmitter<ArticleStock>;
18
+ readonly transferIconClicked: EventEmitter<ArticleStockBo>;
19
+ image: string;
20
+ show: boolean;
21
+ hideOrShowLocationTab: boolean;
22
+ showStockHistory: boolean;
23
+ showSendMethodDialog: boolean;
24
+ data: any[];
25
+ inOrderInformation: Object[];
26
+ orderInformation: any[];
27
+ hideOrShowTabs: boolean;
28
+ dataWareHouseCode: number;
29
+ dataWareHouseFields: Object;
30
+ articleStockSearchInfo: ArticleStock;
31
+ printSticker: PrintStockStickers;
32
+ tabs: string[];
33
+ activeTab: string;
34
+ get activeTabText(): string;
35
+ constructor(iconCacheService: IconCacheService, _stockService: StockService);
36
+ handleTabClick(tabData: any): void;
37
+ onLocationClick(data: ArticleStockBo): void;
38
+ onPopupClose(): void;
39
+ handleHistoryClick(): void;
40
+ handleCloseClick(): void;
41
+ handleStockTransferClick(event: any): void;
42
+ handleBackToStockClick(): Promise<void>;
43
+ openSendMethodDialog(): void;
44
+ printStockStickers(): void;
45
+ onOkClick(): void;
46
+ onCancelClick(): void;
47
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
3
+ export declare class StockLocationComponent {
4
+ stockLocationInformation: ArticleStock;
5
+ backToStockLines: EventEmitter<any>;
6
+ readonly MAX_GRID_ROWS: number;
7
+ stockLocationColumns: any[];
8
+ allWarehouses: any;
9
+ stockLocation: Object[];
10
+ constructor();
11
+ backToStockInformation(): void;
12
+ onStickerClick(event: any): void;
13
+ onOkClick(): void;
14
+ onCancelClick(): void;
15
+ onSelectWarehouse(event: any): void;
16
+ }
@@ -0,0 +1,4 @@
1
+ export interface CoDropDownListFields {
2
+ text: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { PrintStockStickers } from "@colijnit/articleapi/build/model/print-stock-stickers";
3
+ import { StockService } from "../../../service/stock.service";
4
+ import { CoDropDownListFields } from "./co-drop-down-list-fields.interface";
5
+ import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
6
+ export declare class StockTransferComponent {
7
+ private _stockService;
8
+ stockSticker: PrintStockStickers;
9
+ article: ArticleStockBo;
10
+ articleWarehouse: any[];
11
+ allWarehouses: any[];
12
+ handleCancelClicked: EventEmitter<any>;
13
+ handleStickerClicked: EventEmitter<any>;
14
+ allWarehousesDropdownFields: CoDropDownListFields;
15
+ showSendMethodDialog: boolean;
16
+ constructor(_stockService: StockService);
17
+ handleOkClick(): void;
18
+ handleCancelClick(): void;
19
+ handleSelectedWarehouse(event: any): void;
20
+ handleStickerClick(): Promise<void>;
21
+ }
@@ -0,0 +1,32 @@
1
+ import { AfterViewInit, EventEmitter } from "@angular/core";
2
+ import { StockService } from "../../service/stock.service";
3
+ import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
4
+ import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
5
+ import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
6
+ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
7
+ export declare class StockComponent implements AfterViewInit {
8
+ stockService: StockService;
9
+ stock: StockComponent;
10
+ handleStickerClicked: EventEmitter<any>;
11
+ set options(value: any);
12
+ article: ArticleExtended;
13
+ articleWarehouse: any[];
14
+ allWarehouses: any[];
15
+ showClass(): boolean;
16
+ showStockInformationGrid: boolean;
17
+ showStockLocation: boolean;
18
+ showStockTransfer: boolean;
19
+ articleStockInformation: ArticleStock;
20
+ stockInformation: ArticleStockBo[];
21
+ stockLocationInformation: ArticleStockBo[];
22
+ stockTransferArticle: ArticleStockBo;
23
+ constructor(stockService: StockService);
24
+ ngAfterViewInit(): void;
25
+ backToStockLinesClicked(): void;
26
+ handleStockTransferClick(event: any): void;
27
+ backToStock(): void;
28
+ loadStockHistory(data: GetStockHistoryRequest): void;
29
+ buttonClick(): void;
30
+ getStockInformation(data: ArticleStock): Promise<void>;
31
+ getStockLocationInformation(data: ArticleStock): Promise<void>;
32
+ }
@@ -0,0 +1,2 @@
1
+ export declare class StockModule {
2
+ }
@@ -0,0 +1,206 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-stock-layout') {
4
+ .co-stock {
5
+
6
+ .stock-info-container {
7
+ max-width: $sc-stock-info-container-width;
8
+ padding: $sc-stock-info-container-padding;
9
+ }
10
+
11
+ .stock-info {
12
+ margin-top: $sc-stock-info-margin;
13
+ padding: $sc-stock-info-padding;
14
+ display: inline-flex;
15
+ width: 90%;
16
+ justify-content: space-between;
17
+ }
18
+
19
+ .stock-info-row {
20
+ display: inline-flex;
21
+ }
22
+
23
+ .stock-info-row-image {
24
+ display: inline-flex;
25
+ gap: $sc-stock-gap;
26
+ }
27
+
28
+ .stock-image {
29
+ height: $sc-stock-image-height;
30
+ }
31
+
32
+ .stock-good-info {
33
+ display: block;
34
+ }
35
+
36
+ .stock-status {
37
+ display: grid;
38
+ gap: $sc-stock-gap;
39
+ }
40
+
41
+ .stock-info > div:not(:first-child) {
42
+ padding: 0 10px;
43
+ border-left: $sc-stock-border-left;
44
+ }
45
+
46
+ .stock-line {
47
+ font-weight: $sc-stock-line-font-weight;
48
+ margin: $sc-stock-line-margin;
49
+ }
50
+
51
+ .simple-grid-column-header-wrapper {
52
+ font-size: $sc-stock-simple-grid-header-fontsize;
53
+ display: flex;
54
+ flex-direction: row;
55
+ background-color: white;
56
+ border-bottom: $sc-stock-simple-grid-column-header-wrapper-border-bottom;
57
+ }
58
+
59
+ .simple-grid-column-header {
60
+ display: flex;
61
+ flex-direction: row;
62
+ padding-right: 5px;
63
+ flex-basis: 100%;
64
+ }
65
+
66
+ .simple-grid-row {
67
+ font-size: $sc-stock-simple-grid-row-fontsize;
68
+ display: flex;
69
+ flex-direction: row;
70
+ border: $sc-stock-simple-grid-row-border;
71
+ border-bottom: $sc-stock-simple-grid-row-border-bottom;
72
+ }
73
+
74
+ .simple-grid-column-cell {
75
+ display: flex;
76
+ padding: $sc-stock-simple-grid-column-cell-padding;
77
+ flex-basis: 100%;
78
+ }
79
+
80
+ .stock-lines-button {
81
+ margin-bottom: 5%;
82
+ }
83
+
84
+ .tab-link {
85
+ gap: 30px;
86
+ padding: 20px 20px;
87
+ &.hide {
88
+ display: none;
89
+ }
90
+
91
+ &.show {
92
+ display: flex;
93
+ }
94
+ flex-direction: row;
95
+ }
96
+
97
+ .tab-link > div {
98
+ margin: 25px 0;
99
+ padding-right: 10px;
100
+
101
+ &.inactive {
102
+ font-weight: normal;
103
+ }
104
+ }
105
+
106
+ .stock-grid {
107
+ margin: $sc-stock-grid-margin;
108
+ }
109
+
110
+ .buttons-wrapper {
111
+ display: flex;
112
+ }
113
+
114
+ .dropdown-wrapper {
115
+ display: flex;
116
+ float: right;
117
+ max-width: 20%;
118
+ }
119
+
120
+ .stock-location-group {
121
+ margin-bottom: 20px;
122
+ display: flex;
123
+ }
124
+
125
+ .stock-location-left-group {
126
+ float: left;
127
+ display: flex;
128
+ flex: 1;
129
+ justify-content: flex-start;
130
+ }
131
+
132
+ .stock-location-right-group {
133
+ float: right;
134
+ display: flex;
135
+ flex: 1;
136
+ justify-content: flex-end;
137
+ }
138
+
139
+ .stock-button-toolbar {
140
+ display: flex;
141
+ justify-content: space-between;
142
+ margin: 10px;
143
+ }
144
+
145
+ .stock-button-left-group {
146
+ display: flex;
147
+ flex: 1;
148
+ justify-content: flex-start;
149
+
150
+ .co-button {
151
+ margin-right: 10px;
152
+ width: 100px;
153
+ }
154
+ }
155
+ .stock-button-middle-group {
156
+ display: flex;
157
+ flex: 1;
158
+ margin-top: 10px;
159
+ }
160
+
161
+ .stock-transfer-right-column {
162
+ display: flex;
163
+ flex-direction: column;
164
+ width: 25%;
165
+ float: right;
166
+ }
167
+
168
+ .stock-transfer-left-column {
169
+ display: flex;
170
+ flex-direction: column;
171
+ width: 25%;
172
+ float: left;
173
+ }
174
+
175
+ .ok-cancel-buttons {
176
+ display: flex;
177
+ width: 100%;
178
+ justify-content: center;
179
+ padding: 25px;
180
+ }
181
+
182
+ .stock-transfer-columns {
183
+ display: flex;
184
+ width: 100%;
185
+ justify-content: space-around;
186
+ }
187
+
188
+ .tab-link-buttons {
189
+ cursor: $sc-stock-tab-link-buttons-pointer;
190
+ }
191
+
192
+ .active {
193
+ color: $sc-color-action;
194
+ }
195
+
196
+ .stock-button-back {
197
+ color: $sc-color-action;
198
+ cursor: pointer;
199
+ }
200
+
201
+ .drop-list-group {
202
+ height: $sc-stock-grid-height;
203
+ overflow-y: $sc-stock-grid-overflow-y;
204
+ }
205
+ }
206
+ }
@@ -0,0 +1,20 @@
1
+ $sc-stock-info-margin: 10px !default;
2
+ $sc-stock-info-padding: 0 10px !default;
3
+ $sc-stock-gap: 10px !default;
4
+ $sc-stock-border-left: solid 1px lightgray !default;
5
+ $sc-stock-line-margin: 10px 0 20px 0 !default;
6
+ $sc-stock-line-font-weight: bold !default;
7
+ $sc-stock-simple-grid-header-fontsize: 14px !default;
8
+ $sc-stock-simple-grid-row-fontsize: 12px !default;
9
+ $sc-stock-simple-grid-row-border-bottom: 1px solid black !default;
10
+ $sc-stock-simple-grid-row-border: none !default;
11
+ $sc-stock-simple-grid-column-cell-padding: 10px 5px !default;
12
+ $sc-stock-tab-link-buttons-active-color: $sc-color-action !default;
13
+ $sc-stock-tab-link-buttons-pointer: pointer !default;
14
+ $sc-stock-grid-margin: 50px 0 0 0 !default;
15
+ $sc-stock-simple-grid-column-header-wrapper-border-bottom: 1px solid black !default;
16
+ $sc-stock-info-container-width: 100% !default;
17
+ $sc-stock-info-container-padding: 0px !default;
18
+ $sc-stock-image-height: 50px !default;
19
+ $sc-stock-grid-height: 300px !default;
20
+ $sc-stock-grid-overflow-y: auto !default;
@@ -0,0 +1,8 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+
4
+ @include export-module('co-stock-theme') {
5
+ .co-stock {
6
+
7
+ }
8
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/variables";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -0,0 +1,21 @@
1
+ /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
2
+ export declare enum Icon {
3
+ ArrowFatRight = "arrow_fat_right",
4
+ ArrowPointDown = "arrow_point_down",
5
+ ArrowPointLeft = "arrow_point_left",
6
+ ArrowPointRight = "arrow_point_right",
7
+ CalendarDay = "calendar_day",
8
+ Cancel = "cancel",
9
+ DeliveryTruck = "delivery_truck",
10
+ EditPencil = "edit_pencil",
11
+ Email = "email",
12
+ Pdf = "pdf",
13
+ PlusRound = "plus_round",
14
+ Print = "print",
15
+ SignatureField = "signature_field",
16
+ Tag = "tag",
17
+ ThickLines = "thick_lines",
18
+ ThinLines = "thin_lines",
19
+ Txt = "txt",
20
+ Xml = "xml"
21
+ }
@@ -0,0 +1,23 @@
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
+ }
@@ -0,0 +1,43 @@
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
+ }