@apia/api 4.0.44 → 5.0.0
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/dist/index.d.ts +7 -1
- package/dist/index.js +107 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -546,6 +546,12 @@ type TPoolsParameters = {
|
|
|
546
546
|
};
|
|
547
547
|
declare const makeApiaPoolsModals2: (config?: TPoolsParameters) => QueryModalController;
|
|
548
548
|
|
|
549
|
+
type TFormsParameters$1 = {};
|
|
550
|
+
declare const makeApiaFormsModal2: (config?: TFormsParameters$1) => QueryModalController;
|
|
551
|
+
|
|
552
|
+
type TFormsParameters = {};
|
|
553
|
+
declare const makeApiaLangsModal2: (config?: TFormsParameters) => QueryModalController;
|
|
554
|
+
|
|
549
555
|
type TOpenMonDocModal = {
|
|
550
556
|
docTypeId: string[];
|
|
551
557
|
docTypeSel: string;
|
|
@@ -566,5 +572,5 @@ declare class ApiaMonDocModal2 extends QueryModalController {
|
|
|
566
572
|
}): Promise<T>;
|
|
567
573
|
}
|
|
568
574
|
|
|
569
|
-
export { ApiaApi, ApiaApiHandler, ApiaMonDocModal2, GenericListQuery, type IApiaApiRequestConfig, QueryController, type QueryControllerStructure, QueryModalController, type TApiaApiAxiosResponse, type TApiaApiMethod, type TApiaApiResult, type TFilter, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaPoolsModals2, makeApiaUrl, makeApiaUsersModal2, parseSuccessfulResponse };
|
|
575
|
+
export { ApiaApi, ApiaApiHandler, ApiaMonDocModal2, GenericListQuery, type IApiaApiRequestConfig, QueryController, type QueryControllerStructure, QueryModalController, type TApiaApiAxiosResponse, type TApiaApiMethod, type TApiaApiResult, type TFilter, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaFormsModal2, makeApiaLangsModal2, makeApiaPoolsModals2, makeApiaUrl, makeApiaUsersModal2, parseSuccessfulResponse };
|
|
570
576
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -4513,12 +4513,16 @@ class QueryModalController {
|
|
|
4513
4513
|
title: structure?.title,
|
|
4514
4514
|
onConfirm: () => {
|
|
4515
4515
|
this.onConfirm();
|
|
4516
|
+
this.additionalFiltersController.closeModal();
|
|
4516
4517
|
},
|
|
4517
4518
|
onCancel: () => {
|
|
4518
4519
|
this.additionalFiltersController.closeModal();
|
|
4519
4520
|
this.queryController.tableController.state.finishedFirstLoad = false;
|
|
4520
4521
|
this.emitter.emit("cancel", null);
|
|
4521
4522
|
},
|
|
4523
|
+
onClose: () => {
|
|
4524
|
+
this.additionalFiltersController.closeModal();
|
|
4525
|
+
},
|
|
4522
4526
|
confirmProps: {
|
|
4523
4527
|
confirmButtonText: getLabel("btnCon").text,
|
|
4524
4528
|
cancelButtonText: getLabel("btnCan").text
|
|
@@ -4721,6 +4725,108 @@ class PoolsQuery extends GenericListQuery {
|
|
|
4721
4725
|
}
|
|
4722
4726
|
const makeApiaPoolsModals2 = (config) => new QueryModalController(new PoolsQuery(config));
|
|
4723
4727
|
|
|
4728
|
+
class FormsQuery extends GenericListQuery {
|
|
4729
|
+
constructor(config) {
|
|
4730
|
+
super("apia.modals.FormsAction.run");
|
|
4731
|
+
this.config = config;
|
|
4732
|
+
}
|
|
4733
|
+
getRefreshParameters() {
|
|
4734
|
+
return {
|
|
4735
|
+
...super.getRefreshParameters(),
|
|
4736
|
+
selectOnlyOne: false
|
|
4737
|
+
};
|
|
4738
|
+
}
|
|
4739
|
+
getFiltersValuesMap() {
|
|
4740
|
+
return {
|
|
4741
|
+
...super.getFiltersValuesMap()
|
|
4742
|
+
};
|
|
4743
|
+
}
|
|
4744
|
+
parseRefreshResponse(response) {
|
|
4745
|
+
if (!response)
|
|
4746
|
+
return;
|
|
4747
|
+
const structure = this.parseLoadStructureResponse(response);
|
|
4748
|
+
this.parseStructure(structure);
|
|
4749
|
+
setTimeout(() => {
|
|
4750
|
+
super.parseRefreshResponse(response);
|
|
4751
|
+
}, 0);
|
|
4752
|
+
}
|
|
4753
|
+
parseLoadStructureResponse(response) {
|
|
4754
|
+
const structure = { ...super.parseLoadStructureResponse(response) };
|
|
4755
|
+
structure.hideFilterTypes = true;
|
|
4756
|
+
structure.title = getLabel("btnAddPool").text;
|
|
4757
|
+
return {
|
|
4758
|
+
...structure,
|
|
4759
|
+
columns: [
|
|
4760
|
+
{
|
|
4761
|
+
label: getLabel("lblName").text,
|
|
4762
|
+
name: "name"
|
|
4763
|
+
}
|
|
4764
|
+
],
|
|
4765
|
+
filters: [
|
|
4766
|
+
{
|
|
4767
|
+
id: "txtName",
|
|
4768
|
+
value: this.tableController.state.filters.get("txtName")?.filterState.value,
|
|
4769
|
+
column: "name",
|
|
4770
|
+
runAutomatically: true,
|
|
4771
|
+
title: getLabel("lblName").text
|
|
4772
|
+
}
|
|
4773
|
+
]
|
|
4774
|
+
};
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4777
|
+
const makeApiaFormsModal2 = (config) => new QueryModalController(new FormsQuery(config));
|
|
4778
|
+
|
|
4779
|
+
class LangsModal extends GenericListQuery {
|
|
4780
|
+
constructor(config) {
|
|
4781
|
+
super("apia.modals.LanguageAction.run");
|
|
4782
|
+
this.config = config;
|
|
4783
|
+
}
|
|
4784
|
+
getRefreshParameters() {
|
|
4785
|
+
return {
|
|
4786
|
+
...super.getRefreshParameters(),
|
|
4787
|
+
selectOnlyOne: false
|
|
4788
|
+
};
|
|
4789
|
+
}
|
|
4790
|
+
getFiltersValuesMap() {
|
|
4791
|
+
return {
|
|
4792
|
+
...super.getFiltersValuesMap()
|
|
4793
|
+
};
|
|
4794
|
+
}
|
|
4795
|
+
parseRefreshResponse(response) {
|
|
4796
|
+
if (!response)
|
|
4797
|
+
return;
|
|
4798
|
+
const structure = this.parseLoadStructureResponse(response);
|
|
4799
|
+
this.parseStructure(structure);
|
|
4800
|
+
setTimeout(() => {
|
|
4801
|
+
super.parseRefreshResponse(response);
|
|
4802
|
+
}, 0);
|
|
4803
|
+
}
|
|
4804
|
+
parseLoadStructureResponse(response) {
|
|
4805
|
+
const structure = { ...super.parseLoadStructureResponse(response) };
|
|
4806
|
+
structure.hideFilterTypes = true;
|
|
4807
|
+
structure.title = getLabel("btnAddPool").text;
|
|
4808
|
+
return {
|
|
4809
|
+
...structure,
|
|
4810
|
+
columns: [
|
|
4811
|
+
{
|
|
4812
|
+
label: getLabel("lblName").text,
|
|
4813
|
+
name: "name"
|
|
4814
|
+
}
|
|
4815
|
+
],
|
|
4816
|
+
filters: [
|
|
4817
|
+
{
|
|
4818
|
+
id: "txtName",
|
|
4819
|
+
value: this.tableController.state.filters.get("txtName")?.filterState.value,
|
|
4820
|
+
column: "name",
|
|
4821
|
+
runAutomatically: true,
|
|
4822
|
+
title: getLabel("lblName").text
|
|
4823
|
+
}
|
|
4824
|
+
]
|
|
4825
|
+
};
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4828
|
+
const makeApiaLangsModal2 = (config) => new QueryModalController(new LangsModal(config));
|
|
4829
|
+
|
|
4724
4830
|
var __defProp = Object.defineProperty;
|
|
4725
4831
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4726
4832
|
var __publicField = (obj, key, value) => {
|
|
@@ -5099,5 +5205,5 @@ class ApiaMonDocModal2 extends QueryModalController {
|
|
|
5099
5205
|
}
|
|
5100
5206
|
}
|
|
5101
5207
|
|
|
5102
|
-
export { ApiaApi, ApiaApiHandler, ApiaMonDocModal2, GenericListQuery, QueryController, QueryModalController, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaPoolsModals2, makeApiaUrl, makeApiaUsersModal2, parseSuccessfulResponse };
|
|
5208
|
+
export { ApiaApi, ApiaApiHandler, ApiaMonDocModal2, GenericListQuery, QueryController, QueryModalController, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaFormsModal2, makeApiaLangsModal2, makeApiaPoolsModals2, makeApiaUrl, makeApiaUsersModal2, parseSuccessfulResponse };
|
|
5103
5209
|
//# sourceMappingURL=index.js.map
|