express-ext 0.6.1 → 0.6.3

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/lib/index.js CHANGED
@@ -366,7 +366,7 @@ function escapeHTML(input) {
366
366
  exports.escapeHTML = escapeHTML
367
367
  function generateChip(value, text, noClose, hasStar) {
368
368
  var s = noClose ? "" : '<span class="close" onclick="removeChip(event)"></span>'
369
- var t = hasStar ? '<i class="star highlight"></i>' : ""
369
+ var t = hasStar ? '<i class="star"></i>' : ""
370
370
  return '<div class="chip" data-value="' + escapeHTML(value) + '">' + escapeHTML(text) + t + s + "</div>"
371
371
  }
372
372
  exports.generateChip = generateChip
package/lib/search.js CHANGED
@@ -253,6 +253,7 @@ exports.removeField = removeField
253
253
  function removePage(search) {
254
254
  search = removeField(search, resources_1.resources.page)
255
255
  search = removeField(search, resources_1.resources.partial)
256
+ search = removeField(search, resources_1.resources.subPartial)
256
257
  return search
257
258
  }
258
259
  exports.removePage = removePage
@@ -269,6 +270,7 @@ exports.buildPageSearchFromUrl = buildPageSearchFromUrl
269
270
  function removeSort(search) {
270
271
  search = removeField(search, resources_1.resources.sort)
271
272
  search = removeField(search, resources_1.resources.partial)
273
+ search = removeField(search, resources_1.resources.subPartial)
272
274
  return search
273
275
  }
274
276
  exports.removeSort = removeSort
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-ext",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "express-ext",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -372,7 +372,7 @@ export function escapeHTML(input: string): string {
372
372
  }
373
373
  export function generateChip(value: string, text: string, noClose?: boolean, hasStar?: boolean): string {
374
374
  const s = noClose ? "" : `<span class="close" onclick="removeChip(event)"></span>`
375
- const t = hasStar ? `<i class="star highlight"></i>` : ""
375
+ const t = hasStar ? `<i class="star"></i>` : ""
376
376
  return `<div class="chip" data-value="${escapeHTML(value)}">${escapeHTML(text)}${t}${s}</div>`
377
377
  }
378
378
  export function generateTags(v?: string[] | null, noClose?: boolean): string {
package/src/search.ts CHANGED
@@ -271,6 +271,7 @@ export function removeField(search: string, fieldName: string): string {
271
271
  export function removePage(search: string): string {
272
272
  search = removeField(search, resources.page)
273
273
  search = removeField(search, resources.partial)
274
+ search = removeField(search, resources.subPartial)
274
275
  return search
275
276
  }
276
277
  export function buildPageSearch(search: string): string {
@@ -284,6 +285,7 @@ export function buildPageSearchFromUrl(url: string): string {
284
285
  export function removeSort(search: string): string {
285
286
  search = removeField(search, resources.sort)
286
287
  search = removeField(search, resources.partial)
288
+ search = removeField(search, resources.subPartial)
287
289
  return search
288
290
  }
289
291
  export interface Sort {