@admin-layout/client 7.3.8-alpha.0 → 7.3.8-alpha.7

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.
@@ -1,294 +1,6 @@
1
1
  export declare const languages: {
2
- en: {
3
- title: string;
4
- };
5
- es: {
6
- title: string;
7
- };
8
- fr: {
9
- title: string;
10
- };
11
- de: {
12
- title: string;
13
- };
14
- it: {
15
- title: string;
16
- };
17
- pt: {
18
- title: string;
19
- };
20
- ru: {
21
- title: string;
22
- };
23
- zh: {
24
- title: string;
25
- };
26
- ja: {
27
- title: string;
28
- };
29
- ko: {
30
- title: string;
31
- };
32
- ar: {
33
- title: string;
34
- };
35
- hi: {
36
- title: string;
37
- };
38
- bn: {
39
- title: string;
40
- };
41
- pa: {
42
- title: string;
43
- };
44
- jv: {
45
- title: string;
46
- };
47
- ms: {
48
- title: string;
49
- };
50
- vi: {
51
- title: string;
52
- };
53
- th: {
54
- title: string;
55
- };
56
- id: {
57
- title: string;
58
- };
59
- tr: {
60
- title: string;
61
- };
62
- fa: {
63
- title: string;
64
- };
65
- he: {
66
- title: string;
67
- };
68
- sv: {
69
- title: string;
70
- };
71
- nl: {
72
- title: string;
73
- };
74
- no: {
75
- title: string;
76
- };
77
- da: {
78
- title: string;
79
- };
80
- fi: {
81
- title: string;
82
- };
83
- el: {
84
- title: string;
85
- };
86
- hu: {
87
- title: string;
88
- };
89
- cs: {
90
- title: string;
91
- };
92
- ro: {
93
- title: string;
94
- };
95
- pl: {
96
- title: string;
97
- };
98
- bg: {
99
- title: string;
100
- };
101
- uk: {
102
- title: string;
103
- };
104
- hr: {
105
- title: string;
106
- };
107
- sk: {
108
- title: string;
109
- };
110
- sl: {
111
- title: string;
112
- };
113
- sr: {
114
- title: string;
115
- };
116
- mk: {
117
- title: string;
118
- };
119
- lt: {
120
- title: string;
121
- };
122
- lv: {
123
- title: string;
124
- };
125
- et: {
126
- title: string;
127
- };
128
- is: {
129
- title: string;
130
- };
131
- ga: {
132
- title: string;
133
- };
134
- mt: {
135
- title: string;
136
- };
137
- cy: {
138
- title: string;
139
- };
140
- sq: {
141
- title: string;
142
- };
143
- sw: {
144
- title: string;
145
- };
146
- am: {
147
- title: string;
148
- };
149
- xh: {
150
- title: string;
151
- };
152
- af: {
153
- title: string;
154
- };
155
- ny: {
156
- title: string;
157
- };
158
- lb: {
159
- title: string;
160
- };
161
- mn: {
162
- title: string;
163
- };
164
- km: {
165
- title: string;
166
- };
167
- lo: {
168
- title: string;
169
- };
170
- my: {
171
- title: string;
172
- };
173
- ne: {
174
- title: string;
175
- };
176
- si: {
177
- title: string;
178
- };
179
- ta: {
180
- title: string;
181
- };
182
- te: {
183
- title: string;
184
- };
185
- kn: {
186
- title: string;
187
- };
188
- ml: {
189
- title: string;
190
- };
191
- mr: {
192
- title: string;
193
- };
194
- gu: {
195
- title: string;
196
- };
197
- or: {
198
- title: string;
199
- };
200
- ur: {
201
- title: string;
202
- };
203
- sd: {
204
- title: string;
205
- };
206
- ps: {
207
- title: string;
208
- };
209
- uz: {
210
- title: string;
211
- };
212
- kk: {
213
- title: string;
214
- };
215
- ky: {
216
- title: string;
217
- };
218
- tg: {
219
- title: string;
220
- };
221
- tk: {
222
- title: string;
223
- };
224
- az: {
225
- title: string;
226
- };
227
- hy: {
228
- title: string;
229
- };
230
- ka: {
231
- title: string;
232
- };
233
- os: {
234
- title: string;
235
- };
236
- bs: {
237
- title: string;
238
- };
239
- me: {
240
- title: string;
241
- };
242
- mi: {
243
- title: string;
244
- };
245
- sm: {
246
- title: string;
247
- };
248
- tt: {
249
- title: string;
250
- };
251
- ba: {
252
- title: string;
253
- };
254
- ch: {
255
- title: string;
256
- };
257
- bh: {
258
- title: string;
259
- };
260
- dz: {
261
- title: string;
262
- };
263
- gn: {
264
- title: string;
265
- };
266
- ha: {
267
- title: string;
268
- };
269
- iu: {
270
- title: string;
271
- };
272
- mg: {
273
- title: string;
274
- };
275
- rn: {
276
- title: string;
277
- };
278
- st: {
279
- title: string;
280
- };
281
- tn: {
282
- title: string;
283
- };
284
- ts: {
285
- title: string;
286
- };
287
- yo: {
288
- title: string;
289
- };
290
- zu: {
291
- title: string;
292
- };
293
- };
2
+ key: string;
3
+ label: string;
4
+ flag: string;
5
+ }[];
294
6
  //# sourceMappingURL=languages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/constants/languages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGrB,CAAC"}
1
+ {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/constants/languages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;GAIrB,CAAC"}
@@ -1,99 +1,5 @@
1
- const languages = {
2
- en: { title: 'English' },
3
- es: { title: 'Spanish' },
4
- fr: { title: 'French' },
5
- de: { title: 'German' },
6
- it: { title: 'Italian' },
7
- pt: { title: 'Portuguese' },
8
- ru: { title: 'Russian' },
9
- zh: { title: 'Chinese' },
10
- ja: { title: 'Japanese' },
11
- ko: { title: 'Korean' },
12
- ar: { title: 'Arabic' },
13
- hi: { title: 'Hindi' },
14
- bn: { title: 'Bengali' },
15
- pa: { title: 'Punjabi' },
16
- jv: { title: 'Javanese' },
17
- ms: { title: 'Malay' },
18
- vi: { title: 'Vietnamese' },
19
- th: { title: 'Thai' },
20
- id: { title: 'Indonesian' },
21
- tr: { title: 'Turkish' },
22
- fa: { title: 'Persian' },
23
- he: { title: 'Hebrew' },
24
- sv: { title: 'Swedish' },
25
- nl: { title: 'Dutch' },
26
- no: { title: 'Norwegian' },
27
- da: { title: 'Danish' },
28
- fi: { title: 'Finnish' },
29
- el: { title: 'Greek' },
30
- hu: { title: 'Hungarian' },
31
- cs: { title: 'Czech' },
32
- ro: { title: 'Romanian' },
33
- pl: { title: 'Polish' },
34
- bg: { title: 'Bulgarian' },
35
- uk: { title: 'Ukrainian' },
36
- hr: { title: 'Croatian' },
37
- sk: { title: 'Slovak' },
38
- sl: { title: 'Slovenian' },
39
- sr: { title: 'Serbian' },
40
- mk: { title: 'Macedonian' },
41
- lt: { title: 'Lithuanian' },
42
- lv: { title: 'Latvian' },
43
- et: { title: 'Estonian' },
44
- is: { title: 'Icelandic' },
45
- ga: { title: 'Irish' },
46
- mt: { title: 'Maltese' },
47
- cy: { title: 'Welsh' },
48
- sq: { title: 'Albanian' },
49
- sw: { title: 'Swahili' },
50
- am: { title: 'Amharic' },
51
- xh: { title: 'Xhosa' },
52
- af: { title: 'Afrikaans' },
53
- ny: { title: 'Chichewa' },
54
- lb: { title: 'Luxembourgish' },
55
- mn: { title: 'Mongolian' },
56
- km: { title: 'Khmer' },
57
- lo: { title: 'Lao' },
58
- my: { title: 'Burmese' },
59
- ne: { title: 'Nepali' },
60
- si: { title: 'Sinhala' },
61
- ta: { title: 'Tamil' },
62
- te: { title: 'Telugu' },
63
- kn: { title: 'Kannada' },
64
- ml: { title: 'Malayalam' },
65
- mr: { title: 'Marathi' },
66
- gu: { title: 'Gujarati' },
67
- or: { title: 'Odia' },
68
- ur: { title: 'Urdu' },
69
- sd: { title: 'Sindhi' },
70
- ps: { title: 'Pashto' },
71
- uz: { title: 'Uzbek' },
72
- kk: { title: 'Kazakh' },
73
- ky: { title: 'Kyrgyz' },
74
- tg: { title: 'Tajik' },
75
- tk: { title: 'Turkmen' },
76
- az: { title: 'Azerbaijani' },
77
- hy: { title: 'Armenian' },
78
- ka: { title: 'Georgian' },
79
- os: { title: 'Ossetian' },
80
- bs: { title: 'Bosnian' },
81
- me: { title: 'Montenegrin' },
82
- mi: { title: 'Maori' },
83
- sm: { title: 'Samoan' },
84
- tt: { title: 'Tatar' },
85
- ba: { title: 'Bashkir' },
86
- ch: { title: 'Chamorro' },
87
- bh: { title: 'Bihari' },
88
- dz: { title: 'Dzongkha' },
89
- gn: { title: 'Guarani' },
90
- ha: { title: 'Hausa' },
91
- iu: { title: 'Inuktitut' },
92
- mg: { title: 'Malagasy' },
93
- rn: { title: 'Kirundi' },
94
- st: { title: 'Sesotho' },
95
- tn: { title: 'Tswana' },
96
- ts: { title: 'Tsonga' },
97
- yo: { title: 'Yoruba' },
98
- zu: { title: 'Zulu' }
99
- };export{languages};//# sourceMappingURL=languages.js.map
1
+ const languages = [
2
+ { key: 'en', label: 'English', flag: '🇬🇧' },
3
+ { key: 'de', label: 'German', flag: '🇩🇪' },
4
+ { key: 'es', label: 'Spanish', flag: '🇪🇸' },
5
+ ];export{languages};//# sourceMappingURL=languages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"languages.js","sources":["../../src/constants/languages.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,SAAsB,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"languages.js","sources":["../../src/constants/languages.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,SAAsB,GAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"parentRoute.d.ts","sourceRoot":"","sources":["../../src/utils/parentRoute.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,4CAqB5B,CAAC"}
1
+ {"version":3,"file":"parentRoute.d.ts","sourceRoot":"","sources":["../../src/utils/parentRoute.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,4CAwB5B,CAAC"}
@@ -1,4 +1,4 @@
1
- const matchParentRoute = function (allRoutes, selectedPath) {
1
+ import {cloneDeep}from'lodash';const matchParentRoute = function (allRoutes, selectedPath) {
2
2
  // Helper function to recursively search for the route
3
3
  const findRoute = (routes, path) => {
4
4
  for (const route of routes) {
@@ -17,5 +17,7 @@ const matchParentRoute = function (allRoutes, selectedPath) {
17
17
  return null; // Return null if no matching route is found
18
18
  };
19
19
  // Start the recursive search from the top-level routes
20
- return findRoute(allRoutes, selectedPath);
20
+ const foundRoute = findRoute(allRoutes, selectedPath);
21
+ // Clone the found route deeply and return it
22
+ return foundRoute ? { ...cloneDeep(foundRoute) } : null;
21
23
  };export{matchParentRoute};//# sourceMappingURL=parentRoute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parentRoute.js","sources":["../../src/utils/parentRoute.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAA,gBAAsB,GAAA,UAAA,SAAA,EAAA,YAAA,EAAA;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"parentRoute.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"seperatedMenus.d.ts","sourceRoot":"","sources":["../../src/utils/seperatedMenus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;CAChC,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,kBAe1D,CAAC"}
1
+ {"version":3,"file":"seperatedMenus.d.ts","sourceRoot":"","sources":["../../src/utils/seperatedMenus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;CAChC,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,kBAsB1D,CAAC"}
@@ -1,14 +1,19 @@
1
1
  // @sri custom function
2
2
  const getMenuSeparation = (menus) => {
3
- const upperMenus = menus.filter((menu) => menu.position === 'UPPER');
4
- const middleMenus = menus.filter((menu) => menu.position === 'MIDDLE' ||
5
- (menu.position !== 'UPPER' && menu.position !== 'LOWER' && menu.position !== 'BOTTOM'));
6
- const lowerMenus = menus.filter((menu) => menu.position === 'LOWER');
7
- const bottomMenus = menus.filter((menu) => menu.position === 'BOTTOM');
3
+ if (!Array.isArray(menus)) {
4
+ console.log('------ menus ---', menus);
5
+ }
6
+ // Create new arrays based on the filter conditions
7
+ const upperMenus = menus?.filter((menu) => menu.position === 'UPPER') ?? [];
8
+ const middleMenus = menus?.filter((menu) => menu.position === 'MIDDLE' ||
9
+ (menu.position !== 'UPPER' && menu.position !== 'LOWER' && menu.position !== 'BOTTOM')) ?? [];
10
+ const lowerMenus = menus?.filter((menu) => menu.position === 'LOWER') ?? [];
11
+ const bottomMenus = menus?.filter((menu) => menu.position === 'BOTTOM') ?? [];
12
+ // Return a new object with the separated menus
8
13
  return {
9
- upperMenus,
10
- middleMenus,
11
- lowerMenus,
12
- bottomMenus,
14
+ upperMenus: [...upperMenus],
15
+ middleMenus: [...middleMenus],
16
+ lowerMenus: [...lowerMenus],
17
+ bottomMenus: [...bottomMenus],
13
18
  };
14
19
  };export{getMenuSeparation};//# sourceMappingURL=seperatedMenus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"seperatedMenus.js","sources":["../../src/utils/seperatedMenus.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAGY,uBAAkB,GAAG,CAAA,KAAA,KAAA;AAC7B,IAAA,MAAA,UAAyB,GAAA,KAAA,CAAA,MAAG,CAAA,CAAA,IAAA,KAAA,IAAA,CAAA,QAAA,KAAA,OAAA,CAAA,CAAA;AAC5B,IAAA,MAAA,WAA0B,GAAA,KAAA,CAAA,MAAG,CAAA,CAAA,IAAA,KAAA,IAAA,CAAA,QAAA,KAAA,QAAA;AAC7B,SAAA,IAAA,CAAU,QAAe,KAAA,OAAG,IAAA,IAAA,CAAA,QAAA,KAAA,OAAA,IAAA,IAAA,CAAA,QAAA,KAAA,QAAA,CAAA,CAAA,CAAA;AAC5B,IAAA,MAAA,UAA0B,GAAA,KAAA,CAAA,MAAG,CAAA,CAAA,IAAA,KAAA,IAAA,CAAA,QAAA,KAAA,OAAA,CAAA,CAAA;IAC/B,MAAA,WAAA,GAAA,KAAA,CAAA,MAAA,CAAA,CAAA,IAAA,KAAA,IAAA,CAAA,QAAA,KAAA,QAAA,CAAA,CAAA;AAGF,IAAO,OAAA;;;;;;"}
1
+ {"version":3,"file":"seperatedMenus.js","sources":["../../src/utils/seperatedMenus.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAGY,uBAAkB,GAAG,CAAA,KAAA,KAAA;AAC7B,IAAA,IAAA,CAAA,KAAU,CAAC,OAAc,CAAA,KAAA,CAAA,EAAE;AAC3B,QAAA,OAAW,CAAC,GAAc,CAAA,kBAAG,EAAA,KAAA,CAAA,CAAA;AAC7B,KAAA;AACA;IACF,MAAA,UAAA,GAAA,KAAA,EAAA,MAAA,CAAA,CAAA,IAAA,KAAA,IAAA,CAAA,QAAA,KAAA,OAAA,CAAA,IAAA,EAAA,CAAA;AAGF,IAAO,MAAA,WAAM,GAAiB,KAAA,EAAA,MAAA,CAAA,CAAA,IAAG,KAAO,IAAY,CAAA,QAAA,KAAO,QAAA;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/client",
3
- "version": "7.3.8-alpha.0",
3
+ "version": "7.3.8-alpha.7",
4
4
  "description": "Sample client for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -36,5 +36,5 @@
36
36
  "typescript": {
37
37
  "definition": "lib/index.d.ts"
38
38
  },
39
- "gitHead": "41f14c7edc3985bdb7797e8c62b0b7d1409ffc44"
39
+ "gitHead": "17215fdbde47fd51eede560fdc014c998eb746d9"
40
40
  }