@appcorp/stellar-solutions-invoice-module 0.1.21 → 0.1.23
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.
|
@@ -321,18 +321,22 @@ exports.staticServiceSection = (_c = {},
|
|
|
321
321
|
],
|
|
322
322
|
_c);
|
|
323
323
|
exports.staticProductSection = (_d = {},
|
|
324
|
-
_d[form_schema_1.VISTA_FORM_ELEMENTS.
|
|
324
|
+
_d[form_schema_1.VISTA_FORM_ELEMENTS.COMBOBOX_V1] = [
|
|
325
325
|
{
|
|
326
|
-
className: 'col-span-2',
|
|
326
|
+
// className: 'col-span-2',
|
|
327
|
+
// selectKey2: '',
|
|
327
328
|
enabled: true,
|
|
329
|
+
handleInputOnChange: function () { return void 0; },
|
|
330
|
+
handleOnBlur: function () { return void 0; },
|
|
328
331
|
handleOnChange: function () { return void 0; },
|
|
329
332
|
label: 'Product',
|
|
330
333
|
listItems: [],
|
|
334
|
+
nodeQueryKey: 'productQuery',
|
|
331
335
|
nodeSelectKey: 'productId',
|
|
332
336
|
order: 1,
|
|
337
|
+
query: '',
|
|
333
338
|
required: false,
|
|
334
339
|
selectKey1: 'name',
|
|
335
|
-
selectKey2: '',
|
|
336
340
|
selectedItem: { name: '' },
|
|
337
341
|
},
|
|
338
342
|
],
|
|
@@ -752,6 +752,9 @@ var useInvoiceState = function () {
|
|
|
752
752
|
if (comboboxElements) {
|
|
753
753
|
(_d = state.products) === null || _d === void 0 ? void 0 : _d.forEach(function (product, i) {
|
|
754
754
|
comboboxElements[0].listItems = products;
|
|
755
|
+
comboboxElements[0].query = state.productQuery;
|
|
756
|
+
comboboxElements[0].handleInputOnChange = handleChange;
|
|
757
|
+
comboboxElements[0].handleOnBlur = handleChange;
|
|
755
758
|
comboboxElements[0].handleOnChange = function (k, v) {
|
|
756
759
|
var val = __assign({}, v);
|
|
757
760
|
handleItemChangeProducts({
|
|
@@ -777,7 +780,7 @@ var useInvoiceState = function () {
|
|
|
777
780
|
});
|
|
778
781
|
}
|
|
779
782
|
return elements;
|
|
780
|
-
}, [state, handleItemChangeProducts, products]);
|
|
783
|
+
}, [state, handleItemChangeProducts, products, handleChange]);
|
|
781
784
|
var headerActions = [
|
|
782
785
|
{
|
|
783
786
|
enabled: true,
|