@voplus/morpho-csp 1.0.0-dev002

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 (106) hide show
  1. package/changelog.md +0 -0
  2. package/es/Modules.d.ts +6 -0
  3. package/es/Modules.js +17 -0
  4. package/es/Modules.js.map +1 -0
  5. package/es/components/CurrencyView/index.d.ts +9 -0
  6. package/es/components/CurrencyView/index.js +196 -0
  7. package/es/components/CurrencyView/index.js.map +1 -0
  8. package/es/components/CurrencyView/state.d.ts +9 -0
  9. package/es/components/CurrencyView/state.js +206 -0
  10. package/es/components/CurrencyView/state.js.map +1 -0
  11. package/es/components/TableDragRow/FormRowContext.d.ts +4 -0
  12. package/es/components/TableDragRow/FormRowContext.js +5 -0
  13. package/es/components/TableDragRow/FormRowContext.js.map +1 -0
  14. package/es/components/TableDragRow/index.d.ts +3 -0
  15. package/es/components/TableDragRow/index.js +41 -0
  16. package/es/components/TableDragRow/index.js.map +1 -0
  17. package/es/data/metas.d.ts +0 -0
  18. package/es/data/metas.js +1 -0
  19. package/es/data/metas.js.map +1 -0
  20. package/es/data/shareTransaction/ShareTransactionStore.d.ts +12 -0
  21. package/es/data/shareTransaction/ShareTransactionStore.js +17 -0
  22. package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -0
  23. package/es/data/shareTransaction/hooks.d.ts +9 -0
  24. package/es/data/shareTransaction/hooks.js +20 -0
  25. package/es/data/shareTransaction/hooks.js.map +1 -0
  26. package/es/data/shareTransaction/index.d.ts +4 -0
  27. package/es/data/shareTransaction/index.js +5 -0
  28. package/es/data/shareTransaction/index.js.map +1 -0
  29. package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +20 -0
  30. package/es/data/shareTransaction/interfaces/IShareTransaction.js +1 -0
  31. package/es/data/shareTransaction/interfaces/IShareTransaction.js.map +1 -0
  32. package/es/data/shareTransaction/interfaces/IShareTransactionLine.d.ts +19 -0
  33. package/es/data/shareTransaction/interfaces/IShareTransactionLine.js +1 -0
  34. package/es/data/shareTransaction/interfaces/IShareTransactionLine.js.map +1 -0
  35. package/es/data/shareTransaction/interfaces/index.d.ts +2 -0
  36. package/es/data/shareTransaction/interfaces/index.js +3 -0
  37. package/es/data/shareTransaction/interfaces/index.js.map +1 -0
  38. package/es/data/shareTransaction/metas.d.ts +6 -0
  39. package/es/data/shareTransaction/metas.js +13 -0
  40. package/es/data/shareTransaction/metas.js.map +1 -0
  41. package/es/data/shareTransaction/types/ShareLineCreateOptions.d.ts +12 -0
  42. package/es/data/shareTransaction/types/ShareLineCreateOptions.js +1 -0
  43. package/es/data/shareTransaction/types/ShareLineCreateOptions.js.map +1 -0
  44. package/es/data/shareTransaction/types/ShareTransactionCreateOptions.d.ts +11 -0
  45. package/es/data/shareTransaction/types/ShareTransactionCreateOptions.js +1 -0
  46. package/es/data/shareTransaction/types/ShareTransactionCreateOptions.js.map +1 -0
  47. package/es/data/shareTransaction/types/ShareTransactionEditOptions.d.ts +10 -0
  48. package/es/data/shareTransaction/types/ShareTransactionEditOptions.js +1 -0
  49. package/es/data/shareTransaction/types/ShareTransactionEditOptions.js.map +1 -0
  50. package/es/data/shareTransaction/types/ShareTransactionType.d.ts +1 -0
  51. package/es/data/shareTransaction/types/ShareTransactionType.js +1 -0
  52. package/es/data/shareTransaction/types/ShareTransactionType.js.map +1 -0
  53. package/es/data/shareTransaction/types/index.d.ts +3 -0
  54. package/es/data/shareTransaction/types/index.js +4 -0
  55. package/es/data/shareTransaction/types/index.js.map +1 -0
  56. package/es/modules/legalEntity/shareTransactionsRegister/ShareMovementsDataIcon/index.d.ts +7 -0
  57. package/es/modules/legalEntity/shareTransactionsRegister/ShareMovementsDataIcon/index.js +36 -0
  58. package/es/modules/legalEntity/shareTransactionsRegister/ShareMovementsDataIcon/index.js.map +1 -0
  59. package/es/modules/legalEntity/shareTransactionsRegister/ShareMovementsDataIcon/index.less +11 -0
  60. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.d.ts +4 -0
  61. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +70 -0
  62. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -0
  63. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.less +94 -0
  64. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.d.ts +8 -0
  65. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +36 -0
  66. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -0
  67. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +65 -0
  68. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.d.ts +29 -0
  69. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +64 -0
  70. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js.map +1 -0
  71. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.d.ts +3 -0
  72. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js +90 -0
  73. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map +1 -0
  74. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.d.ts +6 -0
  75. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +152 -0
  76. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -0
  77. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.d.ts +7 -0
  78. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +85 -0
  79. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -0
  80. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.less +15 -0
  81. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.d.ts +7 -0
  82. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js +27 -0
  83. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js.map +1 -0
  84. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.d.ts +4 -0
  85. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +48 -0
  86. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -0
  87. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.less +22 -0
  88. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.d.ts +13 -0
  89. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +34 -0
  90. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -0
  91. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.d.ts +8 -0
  92. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js +23 -0
  93. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js.map +1 -0
  94. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.d.ts +5 -0
  95. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js +28 -0
  96. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +1 -0
  97. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.d.ts +3 -0
  98. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +33 -0
  99. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -0
  100. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.less +5 -0
  101. package/es/routes.d.ts +17 -0
  102. package/es/routes.js +38 -0
  103. package/es/routes.js.map +1 -0
  104. package/es/style/common.less +25 -0
  105. package/package.json +68 -0
  106. package/readme.md +0 -0
package/changelog.md ADDED
File without changes
@@ -0,0 +1,6 @@
1
+ import { AppContext } from "@voplus/morpho-data";
2
+ declare const Modules: {
3
+ /** Register necessary module resources. */
4
+ register: (context: AppContext) => void;
5
+ };
6
+ export default Modules;
package/es/Modules.js ADDED
@@ -0,0 +1,17 @@
1
+ import { DocumentMetaStore } from "@voplus/morpho-document/es/data/DocumentMetaStore";
2
+ import Routes from "./routes";
3
+ const Modules = {
4
+ /** Register necessary module resources. */
5
+ register: (context) => {
6
+ if (!context.getStore(DocumentMetaStore.StoreName)) {
7
+ context.addStore(new DocumentMetaStore());
8
+ }
9
+ const store = context.getStore(DocumentMetaStore.StoreName);
10
+ // register coa type metas.
11
+ //store.addMeta(new ChartOfAccountsTypeMeta());
12
+ // register routes.
13
+ Routes.addRoutes();
14
+ }
15
+ };
16
+ export default Modules;
17
+ //# sourceMappingURL=Modules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modules.js","sourceRoot":"","sources":["../src/Modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,GAAG;IACf,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,OAAmB,EAAE,EAAE;QACjC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE;YACnD,OAAO,CAAC,QAAQ,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;SAC1C;QAED,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAsB,CAAC;QAEjF,2BAA2B;QAC3B,+CAA+C;QAE/C,mBAAmB;QACnB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare const CurrencyView: (props: {
3
+ currency?: string | undefined;
4
+ editable?: boolean | undefined;
5
+ readonly?: boolean | undefined;
6
+ className?: string | undefined;
7
+ onChange?: ((currency: string) => void) | undefined;
8
+ }) => JSX.Element;
9
+ export default CurrencyView;
@@ -0,0 +1,196 @@
1
+ import React, { useState } from "react";
2
+ import { Select } from "@voplus/antd";
3
+ const currencyList = [
4
+ "AFN",
5
+ "EUR",
6
+ "ALL",
7
+ "DZD",
8
+ "USD",
9
+ "AOA",
10
+ "XCD",
11
+ "ARS",
12
+ "AMD",
13
+ "AWG",
14
+ "AUD",
15
+ "AZN",
16
+ "BSD",
17
+ "BHD",
18
+ "BDT",
19
+ "BBD",
20
+ "BYN",
21
+ "BZD",
22
+ "BMD",
23
+ "INR",
24
+ "BTN",
25
+ "BOB",
26
+ "BOV",
27
+ "BAM",
28
+ "BWP",
29
+ "NOK",
30
+ "BRL",
31
+ "BND",
32
+ "BGN",
33
+ "XOF",
34
+ "BIF",
35
+ "CVE",
36
+ "KHR",
37
+ "XAF",
38
+ "CAD",
39
+ "KYD",
40
+ "CLP",
41
+ "CLF",
42
+ "CNY",
43
+ "COP",
44
+ "COU",
45
+ "KMF",
46
+ "CDF",
47
+ "NZD",
48
+ "CRC",
49
+ "HRK",
50
+ "CUP",
51
+ "CUC",
52
+ "ANG",
53
+ "CZK",
54
+ "DKK",
55
+ "DJF",
56
+ "DOP",
57
+ "EGP",
58
+ "SVC",
59
+ "ERN",
60
+ "ETB",
61
+ "FKP",
62
+ "FJD",
63
+ "XPF",
64
+ "GMD",
65
+ "GEL",
66
+ "GHS",
67
+ "GIP",
68
+ "GTQ",
69
+ "GBP",
70
+ "GNF",
71
+ "GYD",
72
+ "HTG",
73
+ "HNL",
74
+ "HKD",
75
+ "HUF",
76
+ "ISK",
77
+ "IDR",
78
+ "XDR",
79
+ "IRR",
80
+ "IQD",
81
+ "ILS",
82
+ "JMD",
83
+ "JPY",
84
+ "JOD",
85
+ "KZT",
86
+ "KES",
87
+ "KPW",
88
+ "KRW",
89
+ "KWD",
90
+ "KGS",
91
+ "LAK",
92
+ "LBP",
93
+ "LSL",
94
+ "ZAR",
95
+ "LRD",
96
+ "LYD",
97
+ "CHF",
98
+ "MOP",
99
+ "MKD",
100
+ "MGA",
101
+ "MWK",
102
+ "MYR",
103
+ "MVR",
104
+ "MRU",
105
+ "MUR",
106
+ "XUA",
107
+ "MXN",
108
+ "MXV",
109
+ "MDL",
110
+ "MNT",
111
+ "MAD",
112
+ "MZN",
113
+ "MMK",
114
+ "NAD",
115
+ "NPR",
116
+ "NIO",
117
+ "NGN",
118
+ "OMR",
119
+ "PKR",
120
+ "PAB",
121
+ "PGK",
122
+ "PYG",
123
+ "PEN",
124
+ "PHP",
125
+ "PLN",
126
+ "QAR",
127
+ "RON",
128
+ "RUB",
129
+ "RWF",
130
+ "SHP",
131
+ "WST",
132
+ "STN",
133
+ "SAR",
134
+ "RSD",
135
+ "SCR",
136
+ "SLL",
137
+ "SGD",
138
+ "XSU",
139
+ "SBD",
140
+ "SOS",
141
+ "SSP",
142
+ "LKR",
143
+ "SDG",
144
+ "SRD",
145
+ "SZL",
146
+ "SEK",
147
+ "CHE",
148
+ "CHW",
149
+ "SYP",
150
+ "TWD",
151
+ "TJS",
152
+ "THB",
153
+ "TOP",
154
+ "TTD",
155
+ "TND",
156
+ "TRY",
157
+ "TMT",
158
+ "UGX",
159
+ "UAH",
160
+ "AED",
161
+ "USN",
162
+ "UYU",
163
+ "UYI",
164
+ "UYW",
165
+ "UZS",
166
+ "VUV",
167
+ "VES",
168
+ "VND",
169
+ "YER",
170
+ "ZMW",
171
+ "ZWL",
172
+ "XBA",
173
+ "XBB",
174
+ "XBC",
175
+ "XBD",
176
+ "XTS",
177
+ "XXX",
178
+ "XAU",
179
+ "XPD",
180
+ "XPT",
181
+ "XAG"
182
+ ];
183
+ const CurrencyView = (props) => {
184
+ const { currency, editable, readonly, className, onChange } = props;
185
+ const [value, setValue] = useState(currency);
186
+ const [edit, setEdit] = useState(false);
187
+ return edit || editable ? (React.createElement(Select, { autoFocus: true, showSearch: true, open: edit, style: { width: "100%" }, value: value, optionFilterProp: "children", onChange: changeCurrency, onBlur: () => changeCurrency, onDropdownVisibleChange: open => setEdit(open) }, currencyList.map(currency => (React.createElement(Select.Option, { key: currency, value: currency }, currency))))) : (React.createElement("div", { className: className, onClick: () => !readonly && setEdit(true) }, currency || "Add Currency"));
188
+ function changeCurrency(value) {
189
+ setValue(value);
190
+ if (onChange)
191
+ onChange(value);
192
+ setEdit(false);
193
+ }
194
+ };
195
+ export default CurrencyView;
196
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrencyView/index.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ export declare class State {
2
+ /** EDit To of the quotation. */
3
+ contactEdit: boolean;
4
+ /** EDit To of the quotation. */
5
+ currencyEdit: boolean;
6
+ /** Edit Date of the quotation. */
7
+ dateEdit: boolean;
8
+ }
9
+ export declare const currencyList: string[];
@@ -0,0 +1,206 @@
1
+ import { __decorate } from "tslib";
2
+ import { observable } from "mobx";
3
+ let State = /** @class */ (() => {
4
+ class State {
5
+ constructor() {
6
+ /** EDit To of the quotation. */
7
+ this.contactEdit = false;
8
+ /** EDit To of the quotation. */
9
+ this.currencyEdit = false;
10
+ /** Edit Date of the quotation. */
11
+ this.dateEdit = false;
12
+ }
13
+ }
14
+ __decorate([
15
+ observable
16
+ ], State.prototype, "contactEdit", void 0);
17
+ __decorate([
18
+ observable
19
+ ], State.prototype, "currencyEdit", void 0);
20
+ __decorate([
21
+ observable
22
+ ], State.prototype, "dateEdit", void 0);
23
+ return State;
24
+ })();
25
+ export { State };
26
+ export const currencyList = [
27
+ "AFN",
28
+ "EUR",
29
+ "ALL",
30
+ "DZD",
31
+ "USD",
32
+ "AOA",
33
+ "XCD",
34
+ "ARS",
35
+ "AMD",
36
+ "AWG",
37
+ "AUD",
38
+ "AZN",
39
+ "BSD",
40
+ "BHD",
41
+ "BDT",
42
+ "BBD",
43
+ "BYN",
44
+ "BZD",
45
+ "BMD",
46
+ "INR",
47
+ "BTN",
48
+ "BOB",
49
+ "BOV",
50
+ "BAM",
51
+ "BWP",
52
+ "NOK",
53
+ "BRL",
54
+ "BND",
55
+ "BGN",
56
+ "XOF",
57
+ "BIF",
58
+ "CVE",
59
+ "KHR",
60
+ "XAF",
61
+ "CAD",
62
+ "KYD",
63
+ "CLP",
64
+ "CLF",
65
+ "CNY",
66
+ "COP",
67
+ "COU",
68
+ "KMF",
69
+ "CDF",
70
+ "NZD",
71
+ "CRC",
72
+ "HRK",
73
+ "CUP",
74
+ "CUC",
75
+ "ANG",
76
+ "CZK",
77
+ "DKK",
78
+ "DJF",
79
+ "DOP",
80
+ "EGP",
81
+ "SVC",
82
+ "ERN",
83
+ "ETB",
84
+ "FKP",
85
+ "FJD",
86
+ "XPF",
87
+ "GMD",
88
+ "GEL",
89
+ "GHS",
90
+ "GIP",
91
+ "GTQ",
92
+ "GBP",
93
+ "GNF",
94
+ "GYD",
95
+ "HTG",
96
+ "HNL",
97
+ "HKD",
98
+ "HUF",
99
+ "ISK",
100
+ "IDR",
101
+ "XDR",
102
+ "IRR",
103
+ "IQD",
104
+ "ILS",
105
+ "JMD",
106
+ "JPY",
107
+ "JOD",
108
+ "KZT",
109
+ "KES",
110
+ "KPW",
111
+ "KRW",
112
+ "KWD",
113
+ "KGS",
114
+ "LAK",
115
+ "LBP",
116
+ "LSL",
117
+ "ZAR",
118
+ "LRD",
119
+ "LYD",
120
+ "CHF",
121
+ "MOP",
122
+ "MKD",
123
+ "MGA",
124
+ "MWK",
125
+ "MYR",
126
+ "MVR",
127
+ "MRU",
128
+ "MUR",
129
+ "XUA",
130
+ "MXN",
131
+ "MXV",
132
+ "MDL",
133
+ "MNT",
134
+ "MAD",
135
+ "MZN",
136
+ "MMK",
137
+ "NAD",
138
+ "NPR",
139
+ "NIO",
140
+ "NGN",
141
+ "OMR",
142
+ "PKR",
143
+ "PAB",
144
+ "PGK",
145
+ "PYG",
146
+ "PEN",
147
+ "PHP",
148
+ "PLN",
149
+ "QAR",
150
+ "RON",
151
+ "RUB",
152
+ "RWF",
153
+ "SHP",
154
+ "WST",
155
+ "STN",
156
+ "SAR",
157
+ "RSD",
158
+ "SCR",
159
+ "SLL",
160
+ "SGD",
161
+ "XSU",
162
+ "SBD",
163
+ "SOS",
164
+ "SSP",
165
+ "LKR",
166
+ "SDG",
167
+ "SRD",
168
+ "SZL",
169
+ "SEK",
170
+ "CHE",
171
+ "CHW",
172
+ "SYP",
173
+ "TWD",
174
+ "TJS",
175
+ "THB",
176
+ "TOP",
177
+ "TTD",
178
+ "TND",
179
+ "TRY",
180
+ "TMT",
181
+ "UGX",
182
+ "UAH",
183
+ "AED",
184
+ "USN",
185
+ "UYU",
186
+ "UYI",
187
+ "UYW",
188
+ "UZS",
189
+ "VUV",
190
+ "VES",
191
+ "VND",
192
+ "YER",
193
+ "ZMW",
194
+ "ZWL",
195
+ "XBA",
196
+ "XBB",
197
+ "XBC",
198
+ "XBD",
199
+ "XTS",
200
+ "XXX",
201
+ "XAU",
202
+ "XPD",
203
+ "XPT",
204
+ "XAG"
205
+ ];
206
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/CurrencyView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC;IAAA,MAAa,KAAK;QAAlB;YACC,gCAAgC;YACb,gBAAW,GAAG,KAAK,CAAC;YACvC,gCAAgC;YACb,iBAAY,GAAG,KAAK,CAAC;YACxC,kCAAkC;YACf,aAAQ,GAAG,KAAK,CAAC;QACrC,CAAC;KAAA;IALY;QAAX,UAAU;8CAA4B;IAE3B;QAAX,UAAU;+CAA6B;IAE5B;QAAX,UAAU;2CAAyB;IACrC,YAAC;KAAA;SAPY,KAAK;AASlB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const FormRowContext: import("react").Context<any>;
3
+ /** React hook to retrieve the nearest FormRowContext. */
4
+ export declare const useFormRowContext: () => any;
@@ -0,0 +1,5 @@
1
+ import { createContext, useContext } from "react";
2
+ export const FormRowContext = createContext(null);
3
+ /** React hook to retrieve the nearest FormRowContext. */
4
+ export const useFormRowContext = () => useContext(FormRowContext);
5
+ //# sourceMappingURL=FormRowContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormRowContext.js","sourceRoot":"","sources":["../../../src/components/TableDragRow/FormRowContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,IAAW,CAAC,CAAC;AAEzD,yDAAyD;AACzD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DragTableRow: import("react-dnd").DndComponentClass<import("react-dnd").DndComponentClass<(props: any) => JSX.Element, Pick<any, string | number | symbol>>, Pick<Pick<any, string | number | symbol>, string | number | symbol>>;
3
+ export default DragTableRow;
@@ -0,0 +1,41 @@
1
+ import { DragSource, DropTarget } from "react-dnd";
2
+ import { Form } from "@voplus/antd";
3
+ import { FormRowContext } from "./FormRowContext";
4
+ import React from "react";
5
+ import { useObserver } from "mobx-react-lite";
6
+ const TableRow = (props) => {
7
+ const { isOver, connectDragSource, connectDropTarget, connectDragPreview, moveAfter, ...restProps } = props;
8
+ const opacity = isOver ? 0 : 1;
9
+ const [form] = Form.useForm();
10
+ return useObserver(() => (React.createElement(Form, { form: form, component: false },
11
+ React.createElement(FormRowContext.Provider, { value: { form, connectDragSource } }, connectDropTarget(connectDragPreview(React.createElement("tr", Object.assign({}, restProps, { style: { ...restProps.style, opacity } }))))))));
12
+ };
13
+ let dragIndex = -1;
14
+ const rowSource = {
15
+ beginDrag(props) {
16
+ dragIndex = props.index;
17
+ return {
18
+ index: props.index
19
+ };
20
+ }
21
+ };
22
+ const rowTarget = {
23
+ drop(props, monitor) {
24
+ const dragIndex = monitor.getItem().index;
25
+ const hoverIndex = props.index;
26
+ if (dragIndex === hoverIndex) {
27
+ return;
28
+ }
29
+ props.moveAfter(dragIndex, hoverIndex);
30
+ monitor.getItem().index = hoverIndex;
31
+ }
32
+ };
33
+ const DragTableRow = DropTarget("row", rowTarget, (connect, monitor) => ({
34
+ connectDropTarget: connect.dropTarget(),
35
+ isOver: monitor.isOver()
36
+ }))(DragSource("row", rowSource, connect => ({
37
+ connectDragSource: connect.dragSource(),
38
+ connectDragPreview: connect.dragPreview()
39
+ }))(TableRow));
40
+ export default DragTableRow;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TableDragRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,QAAQ,GAAG,CAAC,KAAU,EAAE,EAAE;IAC/B,MAAM,EACL,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,GAAG,SAAS,EACZ,GAAG,KAAK,CAAC;IACV,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK;QACjC,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IACzD,iBAAiB,CACjB,kBAAkB,CAAC,4CAAQ,SAAS,IAAE,KAAK,EAAE,EAAE,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CACjF,CACwB,CACpB,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC;AACnB,MAAM,SAAS,GAAG;IACjB,SAAS,CAAC,KAAU;QACnB,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC;QACxB,OAAO;YACN,KAAK,EAAE,KAAK,CAAC,KAAK;SAClB,CAAC;IACH,CAAC;CACD,CAAC;AAEF,MAAM,SAAS,GAAG;IACjB,IAAI,CAAC,KAAU,EAAE,OAAY;QAC5B,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC;QAC1C,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC;QAC/B,IAAI,SAAS,KAAK,UAAU,EAAE;YAC7B,OAAO;SACP;QACD,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QACvC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC;IACtC,CAAC;CACD,CAAC;AAEF,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IACxE,iBAAiB,EAAE,OAAO,CAAC,UAAU,EAAE;IACvC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,CACF,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC,UAAU,EAAE;IACvC,kBAAkB,EAAE,OAAO,CAAC,WAAW,EAAE;CACzC,CAAC,CAAC,CAAC,QAAQ,CAAC,CACb,CAAC;AACF,eAAe,YAAY,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../src/data/metas.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document";
2
+ import { ShareTransactionCreateOptions, ShareTransactionEditOptions } from "./types";
3
+ import { ApiEndPoint } from "@voplus/api";
4
+ import { IShareTransaction } from "./interfaces";
5
+ /** Quotation store supply backend functions. */
6
+ export declare class ShareTransactionStore extends DocumentTypeStore<IShareTransaction, LoadDocumentOptions, LoadDocumentListOptions, ShareTransactionCreateOptions, ShareTransactionEditOptions, any> {
7
+ /** Name of the store */
8
+ readonly name: string;
9
+ constructor(endpoint: ApiEndPoint, documents: DocumentStore);
10
+ }
11
+ /** 响应钩子检索 ShareTransactionStore */
12
+ export declare const useShareTransactionStore: () => ShareTransactionStore;
@@ -0,0 +1,17 @@
1
+ import { DocumentTypeStore, useDocumentStore } from "@voplus/morpho-document";
2
+ import { useStore } from "@voplus/morpho-data";
3
+ const StoreName = "ShareTransactionStore";
4
+ /** Quotation store supply backend functions. */
5
+ export class ShareTransactionStore extends DocumentTypeStore {
6
+ constructor(endpoint, documents) {
7
+ super(endpoint, "/api/share-transactions", documents);
8
+ /** Name of the store */
9
+ this.name = StoreName;
10
+ }
11
+ }
12
+ /** 响应钩子检索 ShareTransactionStore */
13
+ export const useShareTransactionStore = () => {
14
+ const documents = useDocumentStore();
15
+ return useStore(StoreName, context => new ShareTransactionStore(context.api.currentEndPoint, documents));
16
+ };
17
+ //# sourceMappingURL=ShareTransactionStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShareTransactionStore.js","sourceRoot":"","sources":["../../../src/data/shareTransaction/ShareTransactionStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAE1C,gDAAgD;AAChD,MAAM,OAAO,qBAAsB,SAAQ,iBAO1C;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;QAJvD,wBAAwB;QACR,SAAI,GAAW,SAAS,CAAC;IAIzC,CAAC;CACD;AAED,mCAAmC;AACnC,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC5C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,QAAQ,CACd,SAAS,EACT,OAAO,CAAC,EAAE,CAAC,IAAI,qBAAqB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC5E,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { IShareTransaction } from ".";
2
+ import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ /** React hook to retrieve a quotation
5
+ * @param {string} id - id of the quotation
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export declare const useShareTransaction: (id: string, options?: LoadDocumentOptions | undefined) => IShareTransaction;
9
+ export declare const useShareTransactionListEffect: (list: ListDataContextState<any> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions | undefined) => void;
@@ -0,0 +1,20 @@
1
+ import { useShareTransactionStore } from ".";
2
+ import { useDocumentListLoaderEffect, useDocumentStore } from "@voplus/morpho-document";
3
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
4
+ /** React hook to retrieve a quotation
5
+ * @param {string} id - id of the quotation
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export const useShareTransaction = (id, options) => {
9
+ options = options ? options : {};
10
+ const store = useShareTransactionStore();
11
+ const documents = useDocumentStore();
12
+ return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
13
+ };
14
+ export const useShareTransactionListEffect = (list, effect, options) => {
15
+ const deps = options ? options : {};
16
+ const tasks = useShareTransactionStore();
17
+ // Call useDocumentListEffect and ensure won't load twice for same loading options.
18
+ return useDocumentListLoaderEffect(list, effect, () => tasks.loadList(options), [deps]);
19
+ };
20
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/shareTransaction/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,wBAAwB,EAAE,MAAM,GAAG,CAAC;AAChE,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IAChF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACc,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC5C,IAAsC,EACtC,MAA6B,EAC7B,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./ShareTransactionStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./ShareTransactionStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/shareTransaction/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { IDocument } from "@voplus/morpho-document";
2
+ import { IShareTransactionLine } from "./IShareTransactionLine";
3
+ import { ShareTransactionType } from "../types/ShareTransactionType";
4
+ export interface IShareTransaction extends IDocument {
5
+ /** Unit info of the To property that this quotation will send to. */
6
+ to?: {
7
+ id: string;
8
+ name: string;
9
+ };
10
+ /** Reference number of the quotation */
11
+ number: string;
12
+ /** Currency of the quotation */
13
+ currency: string;
14
+ /** Date of the quotation */
15
+ date?: Date;
16
+ /** */
17
+ transactionType: ShareTransactionType;
18
+ /** Lines of the quotation. */
19
+ lines: IShareTransactionLine[];
20
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=IShareTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IShareTransaction.js","sourceRoot":"","sources":["../../../../src/data/shareTransaction/interfaces/IShareTransaction.ts"],"names":[],"mappings":""}