@kingteza/crud-component 1.29.0 → 1.30.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.
@@ -0,0 +1,10 @@
1
+ function f(r, e) {
2
+ return typeof r != "object" || r === null ? r : Array.isArray(e) ? e.reduce((u, t) => u[t], r) : r[e];
3
+ }
4
+ function i(r, e, u) {
5
+ return typeof r != "object" || r === null ? r : Array.isArray(e) ? e.reduce((t, n) => t[n], r) : (r[e] = u, r);
6
+ }
7
+ export {
8
+ f as getValueByPath,
9
+ i as setValueByPath
10
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kingteza/crud-component",
3
3
  "private": false,
4
- "version": "1.29.0",
4
+ "version": "1.30.0",
5
5
  "description": "React CRUD component library with Ant Design",
6
6
  "keywords": [
7
7
  "react",
@@ -1,86 +0,0 @@
1
- import { TRANSLATION_NAMESPACE } from '../locale/hooks/translation-constants';
2
- import { default as en } from './translations/en';
3
- import { i18n as i18nType } from 'i18next';
4
- import { UseTranslationOptions } from 'react-i18next';
5
- export declare const defaultTranslations: {
6
- en: {
7
- "crud-component": {
8
- str: {
9
- delete: string;
10
- clone: string;
11
- update: string;
12
- new: string;
13
- back: string;
14
- next: string;
15
- save: string;
16
- import: string;
17
- cancel: string;
18
- print: string;
19
- hide: string;
20
- no: string;
21
- action: string;
22
- remove: string;
23
- view: string;
24
- ok: string;
25
- yes: string;
26
- warning: string;
27
- success: string;
28
- error: string;
29
- retry: string;
30
- previous: string;
31
- unhide: string;
32
- downloadCsvTemplate: string;
33
- importCsvFile: string;
34
- export: string;
35
- goBack: string;
36
- refresh: string;
37
- fileUploadMessage1: string;
38
- fileUploadMessage2: string;
39
- rotateLeft: string;
40
- rotateRight: string;
41
- flipHorizontal: string;
42
- flipVertical: string;
43
- skipCrop: string;
44
- };
45
- err: {
46
- save: string;
47
- validation: {
48
- required: string;
49
- minLength8: string;
50
- percentage: string;
51
- maximumValueExceeded: string;
52
- invalidNic: string;
53
- invalid: string;
54
- };
55
- notFound: string;
56
- };
57
- message: {
58
- loading: {
59
- saving: string;
60
- };
61
- uploadButtonText: string;
62
- };
63
- qus: {
64
- importWithIssues: string;
65
- doYouWantToDelete: string;
66
- doYouWantToHide: string;
67
- doYouWantToUnhide: string;
68
- };
69
- };
70
- };
71
- };
72
- export type LibTranslations = typeof en;
73
- export interface SetupI18nOptions {
74
- translations?: Record<string, {
75
- [TRANSLATION_NAMESPACE]: LibTranslations;
76
- }>;
77
- language?: string;
78
- i18nInstance?: i18nType;
79
- }
80
- export declare let i18nInstance: i18nType;
81
- export declare const setupI18n: (options?: SetupI18nOptions) => i18nType;
82
- export declare const updateTranslations: (language: string, translations: Record<string, any>, i18nInstance?: i18nType) => void;
83
- export declare const useTranslationLib: (options?: Omit<UseTranslationOptions<string>, "i18n">) => import('react-i18next').UseTranslationResponse<"crud-component", string>;
84
- export declare const useTranslationLibNoNS: (options?: Omit<UseTranslationOptions<string>, "i18n">) => import('react-i18next').UseTranslationResponse<"translation", string>;
85
- export declare const t: (key: string, options?: any) => string | import('node_modules/i18next/typescript/helpers').$SpecialObject | import('i18next').TFunctionDetailedResult<string | import('node_modules/i18next/typescript/helpers').$SpecialObject, any>;
86
- export declare const tWithOrWithoutNS: (key: string, options?: any, fallback?: string) => string | object;