@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260923043912 → 0.8.1-dev.20260923103910

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.
@@ -5,6 +5,7 @@ import {
5
5
  } from "./chunk-F4DNLPFN.mjs";
6
6
 
7
7
  // src/clients/OdataBuilder.tsx
8
+ var encodeFilter = (filter) => encodeURIComponent(filter.replace(/'/g, '"'));
8
9
  var OdataBuilder = class {
9
10
  constructor(url) {
10
11
  this.baseUrl = url;
@@ -86,7 +87,7 @@ var OdataBuilder = class {
86
87
  }
87
88
  if (obj) {
88
89
  if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
89
- queryString = queryString + `&$filter=${obj["$filter"]}`;
90
+ queryString = queryString + `&$filter=${encodeFilter(obj["$filter"])}`;
90
91
  }
91
92
  if (obj["$orderby"] && obj["$orderby"] !== null && obj["$orderby"] !== "") {
92
93
  queryString = queryString + `&$orderby=${obj["$orderby"]}`;
@@ -146,7 +147,7 @@ var OdataBuilder = class {
146
147
  getUrl() {
147
148
  let url = `${this.baseUrl}?$skip=${this.skip}&$top=${this.top}&$count=true`;
148
149
  if (this.filterBy !== null && this.filterBy !== "") {
149
- url = url + `&$filter=${this.filterBy}`;
150
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
150
151
  }
151
152
  if (this.orderBy !== null && this.orderBy !== "") {
152
153
  url = url + `&$orderby=${this.orderBy}`;
@@ -163,7 +164,7 @@ var OdataBuilder = class {
163
164
  getNewOrderByUrl(orderBy) {
164
165
  let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
165
166
  if (this.filterBy !== null && this.filterBy !== "") {
166
- url = url + `&$filter=${this.filterBy}`;
167
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
167
168
  }
168
169
  if (this.searchTerm) {
169
170
  url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
@@ -177,7 +178,7 @@ var OdataBuilder = class {
177
178
  getNewFilterUrl(filterBy) {
178
179
  let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
179
180
  if (filterBy !== null && filterBy !== "") {
180
- url = url + `&$filter=${filterBy}`;
181
+ url = url + `&$filter=${encodeFilter(filterBy)}`;
181
182
  }
182
183
  if (this.orderBy !== null && this.orderBy !== "") {
183
184
  url = url + `&$orderby=${this.orderBy}`;
@@ -194,7 +195,7 @@ var OdataBuilder = class {
194
195
  let skip = page * Constants.pagesize - Constants.pagesize;
195
196
  let url = `${this.baseUrl}?$skip=${skip}&$top=${this.top}&$count=true`;
196
197
  if (this.filterBy !== null && this.filterBy !== "") {
197
- url = url + `&$filter=${this.filterBy}`;
198
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
198
199
  }
199
200
  if (this.orderBy !== null && this.orderBy !== "") {
200
201
  url = url + `&$orderby=${this.orderBy}`;
@@ -214,7 +215,7 @@ var OdataBuilder = class {
214
215
  const skip = (currentPage - 1) * pageSize;
215
216
  let url = `${this.baseUrl}?$skip=${skip}&$top=${pageSize}&$count=true`;
216
217
  if (this.filterBy !== null && this.filterBy !== "") {
217
- url = url + `&$filter=${this.filterBy}`;
218
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
218
219
  }
219
220
  if (this.orderBy !== null && this.orderBy !== "") {
220
221
  url = url + `&$orderby=${this.orderBy}`;
@@ -3,7 +3,7 @@
3
3
 
4
4
  // src/components/controls/edit/InputControl.tsx
5
5
  import dynamic from "next/dynamic";
6
- var InputControl = dynamic(() => import("./InputControlClient-H75UIZE3.mjs"), {
6
+ var InputControl = dynamic(() => import("./InputControlClient-A3V5YRWH.mjs"), {
7
7
  ssr: false
8
8
  });
9
9
  var InputControl_default = InputControl;