drf-react-by-schema 0.16.9 → 0.16.11

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/utils.d.ts CHANGED
@@ -175,7 +175,7 @@ export declare const getPatternFormat: (type: string) => string;
175
175
  export type AddParametersToEnd<TFunction extends (...args: any) => any, TParameters extends [...args: any]> = (...args: [...Parameters<TFunction>, ...TParameters]) => ReturnType<TFunction>;
176
176
  export declare function buildDateFormatBySchema(dateViews: string[] | null | undefined): "DD/MM/YYYY" | "MM/YYYY" | "YYYY" | "MM" | "DD";
177
177
  export declare const slugToCamelCase: (str: string) => string;
178
- export declare const slugify: (text: string | null) => "" | undefined;
178
+ export declare const slugify: (text: string | null) => string;
179
179
  export declare function mergeFilterItems(defaultFilter: GridFilterModel | undefined, filter: GridFilterModel | undefined): GridFilterModel | undefined;
180
180
  export type ActionType = 'editInline' | 'remove' | 'edit' | 'view';
181
181
  export type BulkUpdateData = (newData: Item[]) => Promise<{
package/dist/utils.js CHANGED
@@ -322,7 +322,8 @@ const slugify = (text) => {
322
322
  if (!text) {
323
323
  return '';
324
324
  }
325
- text.toString()
325
+ return text
326
+ .toString()
326
327
  .normalize('NFD')
327
328
  .replace(/[\u0300-\u036f]/g, '')
328
329
  .toLowerCase()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drf-react-by-schema",
3
- "version": "0.16.9",
3
+ "version": "0.16.11",
4
4
  "description": "Components and Tools for building a React App having Django Rest Framework (DRF) as server",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",