@apia/api 4.0.15 → 4.0.16

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 CHANGED
@@ -7,7 +7,7 @@ import { TNotificationMessage, notify } from '@apia/notifications';
7
7
  import { TModal, TOpenModal, ApiaUtilModalHandler } from '@apia/components';
8
8
  import QueryString from 'qs';
9
9
  import * as lodash from 'lodash';
10
- import { TResponsiveTableColumn, TResponsiveTableContextProps, TResponsiveTableRowsSelectionEvent, TResponsiveTableSortChangeEvent, TResponsiveTableRow } from '@apia/table';
10
+ import { TResponsiveTableColumn, TResponsiveTableContextProps, TResponsiveTableRow, TResponsiveTableRowsSelectionEvent, TResponsiveTableSortChangeEvent } from '@apia/table';
11
11
  import * as theme_ui from 'theme-ui';
12
12
 
13
13
  declare function getConfig<LoadType>(outerBehaveConfig?: IApiaApiRequestConfig<LoadType>): IApiaApiRequestConfig<unknown> & IApiaApiRequestConfig<LoadType> & Partial<IApiaApiRequestConfig<unknown>>;
package/dist/index.js CHANGED
@@ -474,6 +474,7 @@ function makeApiaUrl(props) {
474
474
  function getModal$1(name) {
475
475
  return window[name];
476
476
  }
477
+ var ApiaApi$1 = ApiaApi;
477
478
 
478
479
  const ApiaApiCheckbox = (props) => {
479
480
  const element = React__default.useMemo(() => props.element, [props.element]);
@@ -821,7 +822,7 @@ const defaultFetcher = {
821
822
  (filters ?? []).forEach((currentFilter) => {
822
823
  filterValues[currentFilter.id] = currentFilter.currentValue;
823
824
  });
824
- const result = await ApiaApi.post(
825
+ const result = await ApiaApi$1.post(
825
826
  makeApiaUrl({
826
827
  react: true,
827
828
  action: "filter",
@@ -839,7 +840,7 @@ const defaultFetcher = {
839
840
  return parseResult(result?.data);
840
841
  },
841
842
  async page({ page, path, requestConfig }) {
842
- const result = await ApiaApi.post(
843
+ const result = await ApiaApi$1.post(
843
844
  makeApiaUrl({
844
845
  react: true,
845
846
  action: "page",
@@ -855,7 +856,7 @@ const defaultFetcher = {
855
856
  return parseResult(result?.data);
856
857
  },
857
858
  async refresh({ path, requestConfig }) {
858
- const result = await ApiaApi.post(
859
+ const result = await ApiaApi$1.post(
859
860
  makeApiaUrl({
860
861
  react: true,
861
862
  action: "refresh",
@@ -870,7 +871,7 @@ const defaultFetcher = {
870
871
  return parseResult(result?.data);
871
872
  },
872
873
  async sort({ path, requestConfig, sort }) {
873
- const result = await ApiaApi.post(
874
+ const result = await ApiaApi$1.post(
874
875
  makeApiaUrl({
875
876
  react: true,
876
877
  action: "sort",
@@ -2808,7 +2809,7 @@ const NonMemoizedApiaApiButtonsContainer = (props) => {
2808
2809
  ...current,
2809
2810
  isLoading: true
2810
2811
  }));
2811
- void ApiaApi.post(url, {
2812
+ void ApiaApi$1.post(url, {
2812
2813
  postData: props.state.isMultipart ? formData : QueryString.stringify(
2813
2814
  [...formData.entries(), ["isAjax", true]].reduce((accumulated, [name, value]) => {
2814
2815
  const retValue = { ...accumulated };
@@ -3344,7 +3345,7 @@ class FilterTypes {
3344
3345
  });
3345
3346
  }
3346
3347
  async getFilterTypes() {
3347
- const result = await ApiaApi.post(
3348
+ const result = await ApiaApi$1.post(
3348
3349
  makeApiaUrl({
3349
3350
  ajaxUrl: "apia.query.ModalAction.run?",
3350
3351
  action: "filterOptions"
@@ -3358,7 +3359,7 @@ class FilterTypes {
3358
3359
  await this.getFilterTypes();
3359
3360
  }
3360
3361
  async setFilterOptions() {
3361
- const result = await ApiaApi.post(
3362
+ const result = await ApiaApi$1.post(
3362
3363
  makeApiaUrl({
3363
3364
  ajaxUrl: "apia.query.ModalAction.run?",
3364
3365
  action: "setFilterOptions"
@@ -3679,7 +3680,7 @@ class QueryController {
3679
3680
  ]);
3680
3681
  }
3681
3682
  async getStructure() {
3682
- const result = await ApiaApi.post(
3683
+ const result = await ApiaApi$1.post(
3683
3684
  makeApiaUrl(this.getLoadStructureParameters())
3684
3685
  );
3685
3686
  if (!result?.data) {
@@ -3708,7 +3709,7 @@ class QueryController {
3708
3709
  this.tableController.state.rows = rows;
3709
3710
  }
3710
3711
  async clearFilters() {
3711
- const result = await ApiaApi.post(
3712
+ const result = await ApiaApi$1.post(
3712
3713
  makeApiaUrl({ ...this.getClearFiltersParameters() })
3713
3714
  );
3714
3715
  if (!result?.data)
@@ -3730,7 +3731,7 @@ class QueryController {
3730
3731
  }
3731
3732
  }
3732
3733
  async page(num) {
3733
- const page = await ApiaApi.post(
3734
+ const page = await ApiaApi$1.post(
3734
3735
  makeApiaUrl({ ...this.getPageParameters(), pageNumber: num })
3735
3736
  );
3736
3737
  this.parseRefreshResponse(page?.data);
@@ -3742,7 +3743,7 @@ class QueryController {
3742
3743
  }
3743
3744
  async actualRefreshMethod() {
3744
3745
  if (!this.areRequiredFilters()) {
3745
- const refresh = await ApiaApi.post(
3746
+ const refresh = await ApiaApi$1.post(
3746
3747
  makeApiaUrl(this.getRefreshParameters()),
3747
3748
  {
3748
3749
  postData: this.getFiltersValuesMap(),
@@ -3757,7 +3758,7 @@ class QueryController {
3757
3758
  return now ? this.actualRefreshMethod() : this.executeRefresh();
3758
3759
  }
3759
3760
  async sort(column) {
3760
- const result = await ApiaApi.post(
3761
+ const result = await ApiaApi$1.post(
3761
3762
  makeApiaUrl({ ...this.getSortParameters(), orderBy: column })
3762
3763
  );
3763
3764
  if (result?.data) {
@@ -3826,7 +3827,7 @@ const AdditionalFiltersComponent = ({
3826
3827
  var __defProp$3 = Object.defineProperty;
3827
3828
  var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3828
3829
  var __publicField$3 = (obj, key, value) => {
3829
- __defNormalProp$3(obj, key + "" , value);
3830
+ __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
3830
3831
  return value;
3831
3832
  };
3832
3833
  class AdditionalFiltersModal {
@@ -4009,7 +4010,7 @@ class QueryModalController {
4009
4010
  var __defProp$1 = Object.defineProperty;
4010
4011
  var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4011
4012
  var __publicField$1 = (obj, key, value) => {
4012
- __defNormalProp$1(obj, key + "" , value);
4013
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
4013
4014
  return value;
4014
4015
  };
4015
4016
  class GenericListQuery extends QueryController {
@@ -4043,7 +4044,7 @@ class GenericListQuery extends QueryController {
4043
4044
  return {};
4044
4045
  }
4045
4046
  async filter() {
4046
- const filterResult = await ApiaApi.post(
4047
+ const filterResult = await ApiaApi$1.post(
4047
4048
  makeApiaUrl(this.getFilterParameters()),
4048
4049
  {
4049
4050
  postData: {
@@ -4119,7 +4120,7 @@ class GenericListQuery extends QueryController {
4119
4120
  await this.filter();
4120
4121
  }
4121
4122
  async sort(column) {
4122
- const result = await ApiaApi.post(
4123
+ const result = await ApiaApi$1.post(
4123
4124
  makeApiaUrl({ ...this.getSortParameters(), orderBy: column })
4124
4125
  );
4125
4126
  if (result?.data) {
@@ -4133,15 +4134,17 @@ class GenericListQuery extends QueryController {
4133
4134
  const ApiaUsersModal2 = new QueryModalController(
4134
4135
  new GenericListQuery("apia.modals.UsersAction.run")
4135
4136
  );
4137
+ var ApiaUsersModal2$1 = ApiaUsersModal2;
4136
4138
 
4137
4139
  const ApiaPoolsModals2 = new QueryModalController(
4138
4140
  new GenericListQuery("apia.modals.PoolsAction.run")
4139
4141
  );
4142
+ var ApiaPoolsModals2$1 = ApiaPoolsModals2;
4140
4143
 
4141
4144
  var __defProp = Object.defineProperty;
4142
4145
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4143
4146
  var __publicField = (obj, key, value) => {
4144
- __defNormalProp(obj, key + "" , value);
4147
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4145
4148
  return value;
4146
4149
  };
4147
4150
  class MonDocQuery extends QueryController {
@@ -4192,7 +4195,7 @@ class MonDocQuery extends QueryController {
4192
4195
  };
4193
4196
  }
4194
4197
  async filter() {
4195
- const filterResult = await ApiaApi.post(
4198
+ const filterResult = await ApiaApi$1.post(
4196
4199
  makeApiaUrl(this.getFilterParameters()),
4197
4200
  {
4198
4201
  postData: {
@@ -4292,7 +4295,7 @@ class MonDocQuery extends QueryController {
4292
4295
  return returnObject;
4293
4296
  }
4294
4297
  async sort(column) {
4295
- const result = await ApiaApi.post(
4298
+ const result = await ApiaApi$1.post(
4296
4299
  makeApiaUrl({ ...this.getSortParameters(), orderBy: column })
4297
4300
  );
4298
4301
  if (result?.data) {
@@ -4315,5 +4318,5 @@ class ApiaMonDocModal extends QueryModalController {
4315
4318
  }
4316
4319
  const ApiaMonDocModal2 = new ApiaMonDocModal();
4317
4320
 
4318
- export { ApiaApi, ApiaApiHandler, ApiaMonDocModal2, ApiaPoolsModals2, ApiaUsersModal2, QueryController, QueryModalController, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaUrl, parseSuccessfulResponse };
4321
+ export { ApiaApi$1 as ApiaApi, ApiaApiHandler, ApiaMonDocModal2, ApiaPoolsModals2$1 as ApiaPoolsModals2, ApiaUsersModal2$1 as ApiaUsersModal2, QueryController, QueryModalController, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaUrl, parseSuccessfulResponse };
4319
4322
  //# sourceMappingURL=index.js.map