@fctc/edu-logic-lib 1.0.9 → 1.0.10

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.
Files changed (47) hide show
  1. package/dist/config.js +257 -6
  2. package/dist/config.mjs +256 -2
  3. package/dist/constants.js +152 -53
  4. package/dist/constants.mjs +141 -2
  5. package/dist/environment.js +839 -16
  6. package/dist/environment.mjs +840 -4
  7. package/dist/hooks.js +4850 -180
  8. package/dist/hooks.mjs +4813 -9
  9. package/dist/index.js +5320 -626
  10. package/dist/index.mjs +5165 -12
  11. package/dist/models.js +1107 -18
  12. package/dist/models.mjs +1107 -9
  13. package/dist/provider.js +1115 -17
  14. package/dist/provider.mjs +1115 -8
  15. package/dist/services.js +1922 -31
  16. package/dist/services.mjs +1922 -7
  17. package/dist/store.js +576 -248
  18. package/dist/store.mjs +519 -1
  19. package/dist/types.js +0 -2
  20. package/dist/types.mjs +1 -1
  21. package/dist/utils.js +2355 -61
  22. package/dist/utils.mjs +2344 -1
  23. package/package.json +2 -1
  24. package/dist/chunk-4K3QAEZ6.js +0 -90
  25. package/dist/chunk-6BLY7NZ6.mjs +0 -120
  26. package/dist/chunk-6QXB3XX7.mjs +0 -256
  27. package/dist/chunk-7JD5GMIZ.js +0 -2
  28. package/dist/chunk-AYUH66EE.mjs +0 -62
  29. package/dist/chunk-CZHZLKNA.mjs +0 -585
  30. package/dist/chunk-EK43MEN4.js +0 -635
  31. package/dist/chunk-ELARQVCE.mjs +0 -2344
  32. package/dist/chunk-FVGPSTJ7.js +0 -122
  33. package/dist/chunk-GGOFXFSX.js +0 -2362
  34. package/dist/chunk-IXDDYGKE.js +0 -61
  35. package/dist/chunk-MLJQPO4Q.mjs +0 -57
  36. package/dist/chunk-OADBRQ4A.js +0 -32
  37. package/dist/chunk-OBR6UTC5.mjs +0 -1
  38. package/dist/chunk-OFUXC2LA.mjs +0 -86
  39. package/dist/chunk-P2IGWJDZ.js +0 -1068
  40. package/dist/chunk-QLUONJPQ.mjs +0 -519
  41. package/dist/chunk-RWRHCIQI.mjs +0 -1059
  42. package/dist/chunk-RZBHZYXG.js +0 -582
  43. package/dist/chunk-S7B3VKMJ.mjs +0 -85
  44. package/dist/chunk-S7YF2I23.js +0 -95
  45. package/dist/chunk-UY6GNZNB.js +0 -262
  46. package/dist/chunk-XYVK476U.mjs +0 -29
  47. package/dist/chunk-YOV6KAT2.js +0 -66
@@ -1,582 +0,0 @@
1
- 'use strict';
2
-
3
- var reactRedux = require('react-redux');
4
- var toolkit = require('@reduxjs/toolkit');
5
-
6
- // src/store/index.ts
7
- var initialState = {
8
- baseUrl: "",
9
- requests: null,
10
- companies: [],
11
- user: {},
12
- envFile: null,
13
- defaultCompany: {
14
- id: null,
15
- logo: "",
16
- secondary_color: "",
17
- primary_color: ""
18
- },
19
- context: {
20
- uid: null,
21
- allowed_company_ids: [],
22
- lang: "vi_VN",
23
- tz: "Asia/Saigon"
24
- }
25
- };
26
- var envSlice = toolkit.createSlice({
27
- name: "env",
28
- initialState,
29
- reducers: {
30
- setEnv: (state, action) => {
31
- Object.assign(state, action.payload);
32
- },
33
- setUid: (state, action) => {
34
- state.context.uid = action.payload;
35
- },
36
- setAllowCompanies: (state, action) => {
37
- state.context.allowed_company_ids = action.payload;
38
- },
39
- setCompanies: (state, action) => {
40
- state.companies = action.payload;
41
- },
42
- setDefaultCompany: (state, action) => {
43
- state.defaultCompany = action.payload;
44
- },
45
- setLang: (state, action) => {
46
- state.context.lang = action.payload;
47
- },
48
- setUser: (state, action) => {
49
- state.user = action.payload;
50
- },
51
- setEnvFile: (state, action) => {
52
- state.envFile = action.payload;
53
- }
54
- }
55
- });
56
- var {
57
- setEnv,
58
- setUid,
59
- setLang,
60
- setAllowCompanies,
61
- setCompanies,
62
- setDefaultCompany,
63
- setUser,
64
- setEnvFile
65
- } = envSlice.actions;
66
- var selectEnv = (state) => state.env;
67
- var env_slice_default = envSlice.reducer;
68
- var initialState2 = {
69
- dataParse: null,
70
- idFile: null,
71
- isFileLoaded: false,
72
- loadingImport: false,
73
- selectedFile: null,
74
- errorData: null
75
- };
76
- var excelSlice = toolkit.createSlice({
77
- name: "excel",
78
- initialState: initialState2,
79
- reducers: {
80
- setDataParse: (state, action) => {
81
- state.dataParse = action.payload;
82
- },
83
- setIdFile: (state, action) => {
84
- state.idFile = action.payload;
85
- },
86
- setIsFileLoaded: (state, action) => {
87
- state.isFileLoaded = action.payload;
88
- },
89
- setLoadingImport: (state, action) => {
90
- state.loadingImport = action.payload;
91
- },
92
- setSelectedFile: (state, action) => {
93
- state.selectedFile = action.payload;
94
- },
95
- setErrorData: (state, action) => {
96
- state.errorData = action.payload;
97
- }
98
- }
99
- });
100
- var {
101
- setDataParse,
102
- setIdFile,
103
- setIsFileLoaded,
104
- setLoadingImport,
105
- setSelectedFile,
106
- setErrorData
107
- } = excelSlice.actions;
108
- var selectExcel = (state) => state.excel;
109
- var excel_slice_default = excelSlice.reducer;
110
- var initialState3 = {
111
- viewDataStore: {},
112
- isShowingModalDetail: false,
113
- isShowModalTranslate: false,
114
- formSubmitComponent: {},
115
- fieldTranslation: null,
116
- listSubject: {},
117
- dataUser: {}
118
- };
119
- var formSlice = toolkit.createSlice({
120
- name: "form",
121
- initialState: initialState3,
122
- reducers: {
123
- setViewDataStore: (state, action) => {
124
- state.viewDataStore = action.payload;
125
- },
126
- setIsShowingModalDetail: (state, action) => {
127
- state.isShowingModalDetail = action.payload;
128
- },
129
- setIsShowModalTranslate: (state, action) => {
130
- state.isShowModalTranslate = action.payload;
131
- },
132
- setFormSubmitComponent: (state, action) => {
133
- state.formSubmitComponent[action.payload.key] = action.payload.component;
134
- },
135
- setFieldTranslate: (state, action) => {
136
- state.fieldTranslation = action.payload;
137
- },
138
- setListSubject: (state, action) => {
139
- state.listSubject = action.payload;
140
- },
141
- setDataUser: (state, action) => {
142
- state.dataUser = action.payload;
143
- }
144
- }
145
- });
146
- var {
147
- setViewDataStore,
148
- setIsShowingModalDetail,
149
- setIsShowModalTranslate,
150
- setFormSubmitComponent,
151
- setFieldTranslate,
152
- setListSubject,
153
- setDataUser
154
- } = formSlice.actions;
155
- var selectForm = (state) => state.form;
156
- var form_slice_default = formSlice.reducer;
157
- var initialState4 = {
158
- pageLimit: 10,
159
- fields: {},
160
- order: "",
161
- selectedRowKeys: [],
162
- indexRowTableModal: -2,
163
- footerGroupTable: {},
164
- page: 0,
165
- domainTable: []
166
- };
167
- var listSlice = toolkit.createSlice({
168
- name: "list",
169
- initialState: initialState4,
170
- reducers: {
171
- setPageLimit: (state, action) => {
172
- state.pageLimit = action.payload;
173
- },
174
- setFields: (state, action) => {
175
- state.fields = action.payload;
176
- },
177
- setOrder: (state, action) => {
178
- state.order = action.payload;
179
- },
180
- setSelectedRowKeys: (state, action) => {
181
- state.selectedRowKeys = action.payload;
182
- },
183
- setIndexRowTableModal: (state, action) => {
184
- state.indexRowTableModal = action.payload;
185
- },
186
- setPage: (state, action) => {
187
- state.page = action.payload;
188
- },
189
- setDomainTable: (state, action) => {
190
- state.domainTable = action.payload;
191
- }
192
- }
193
- });
194
- var {
195
- setPageLimit,
196
- setFields,
197
- setOrder,
198
- setSelectedRowKeys,
199
- setIndexRowTableModal,
200
- setPage,
201
- setDomainTable
202
- } = listSlice.actions;
203
- var selectList = (state) => state.list;
204
- var list_slice_default = listSlice.reducer;
205
- var initialState5 = {
206
- menuList: []
207
- };
208
- var navbarSlice = toolkit.createSlice({
209
- name: "navbar",
210
- initialState: initialState5,
211
- reducers: {
212
- setMenuList: (state, action) => {
213
- state.menuList = action.payload;
214
- }
215
- }
216
- });
217
- var { setMenuList } = navbarSlice.actions;
218
- var selectNavbar = (state) => state.navbar;
219
- var navbar_slice_default = navbarSlice.reducer;
220
- var initialState6 = {
221
- profile: {}
222
- };
223
- var profileSlice = toolkit.createSlice({
224
- name: "profile",
225
- initialState: initialState6,
226
- reducers: {
227
- setProfile: (state, action) => {
228
- state.profile = action.payload;
229
- }
230
- }
231
- });
232
- var { setProfile } = profileSlice.actions;
233
- var selectProfile = (state) => state.profile;
234
- var profile_slice_default = profileSlice.reducer;
235
- var initialState7 = {
236
- groupByDomain: null,
237
- tableHead: [],
238
- searchString: "",
239
- hoveredIndexSearchList: null,
240
- selectedTags: [],
241
- firstDomain: null,
242
- searchMap: {},
243
- typeFieldsSearch: "",
244
- modelSearch: "",
245
- filterBy: [],
246
- groupBy: []
247
- };
248
- var searchSlice = toolkit.createSlice({
249
- name: "search",
250
- initialState: initialState7,
251
- reducers: {
252
- setGroupByDomain: (state, action) => {
253
- state.groupByDomain = action.payload;
254
- },
255
- setTableHead: (state, action) => {
256
- state.tableHead = action.payload;
257
- },
258
- setSearchString: (state, action) => {
259
- state.searchString = action.payload;
260
- },
261
- setHoveredIndexSearchList: (state, action) => {
262
- state.hoveredIndexSearchList = action.payload;
263
- },
264
- setSelectedTags: (state, action) => {
265
- state.selectedTags = action.payload;
266
- },
267
- setFirstDomain: (state, action) => {
268
- state.firstDomain = action.payload;
269
- },
270
- setTypeFieldsSearch: (state, action) => {
271
- state.typeFieldsSearch = action.payload;
272
- },
273
- setModelSearch: (state, action) => {
274
- state.modelSearch = action.payload;
275
- },
276
- setFilterBy: (state, action) => {
277
- state.filterBy = action.payload;
278
- },
279
- setGroupBy: (state, action) => {
280
- state.groupBy = action.payload;
281
- },
282
- setSearchMap: (state, action) => {
283
- state.searchMap = action.payload;
284
- },
285
- updateSearchMap: (state, action) => {
286
- if (!state.searchMap[action.payload.key]) {
287
- state.searchMap[action.payload.key] = [];
288
- }
289
- state.searchMap[action.payload.key].push(action.payload.value);
290
- },
291
- removeKeyFromSearchMap: (state, action) => {
292
- const { key, item } = action.payload;
293
- const values = state.searchMap[key];
294
- if (!values) return;
295
- if (item) {
296
- const filtered = values.filter((value) => value.name !== item.name);
297
- if (filtered.length > 0) {
298
- state.searchMap[key] = filtered;
299
- } else {
300
- delete state.searchMap[key];
301
- }
302
- } else {
303
- delete state.searchMap[key];
304
- }
305
- },
306
- clearSearchMap: (state) => {
307
- state.searchMap = {};
308
- }
309
- }
310
- });
311
- var {
312
- setGroupByDomain,
313
- setSelectedTags,
314
- setSearchString,
315
- setHoveredIndexSearchList,
316
- setFirstDomain,
317
- setTableHead,
318
- setFilterBy,
319
- setTypeFieldsSearch,
320
- setModelSearch,
321
- setSearchMap,
322
- updateSearchMap,
323
- removeKeyFromSearchMap,
324
- setGroupBy,
325
- clearSearchMap
326
- } = searchSlice.actions;
327
- var selectSearch = (state) => state.search;
328
- var selectSearchMap = (state) => state.search.searchMap;
329
- var search_slice_default = searchSlice.reducer;
330
-
331
- // node_modules/redux/dist/redux.mjs
332
- function formatProdErrorMessage(code) {
333
- return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
334
- }
335
- var randomString = () => Math.random().toString(36).substring(7).split("").join(".");
336
- var ActionTypes = {
337
- INIT: `@@redux/INIT${/* @__PURE__ */ randomString()}`,
338
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ randomString()}`,
339
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`
340
- };
341
- var actionTypes_default = ActionTypes;
342
- function isPlainObject(obj) {
343
- if (typeof obj !== "object" || obj === null)
344
- return false;
345
- let proto = obj;
346
- while (Object.getPrototypeOf(proto) !== null) {
347
- proto = Object.getPrototypeOf(proto);
348
- }
349
- return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;
350
- }
351
- function miniKindOf(val) {
352
- if (val === void 0)
353
- return "undefined";
354
- if (val === null)
355
- return "null";
356
- const type = typeof val;
357
- switch (type) {
358
- case "boolean":
359
- case "string":
360
- case "number":
361
- case "symbol":
362
- case "function": {
363
- return type;
364
- }
365
- }
366
- if (Array.isArray(val))
367
- return "array";
368
- if (isDate(val))
369
- return "date";
370
- if (isError(val))
371
- return "error";
372
- const constructorName = ctorName(val);
373
- switch (constructorName) {
374
- case "Symbol":
375
- case "Promise":
376
- case "WeakMap":
377
- case "WeakSet":
378
- case "Map":
379
- case "Set":
380
- return constructorName;
381
- }
382
- return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, "");
383
- }
384
- function ctorName(val) {
385
- return typeof val.constructor === "function" ? val.constructor.name : null;
386
- }
387
- function isError(val) {
388
- return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
389
- }
390
- function isDate(val) {
391
- if (val instanceof Date)
392
- return true;
393
- return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
394
- }
395
- function kindOf(val) {
396
- let typeOfVal = typeof val;
397
- if (process.env.NODE_ENV !== "production") {
398
- typeOfVal = miniKindOf(val);
399
- }
400
- return typeOfVal;
401
- }
402
- function warning(message) {
403
- if (typeof console !== "undefined" && typeof console.error === "function") {
404
- console.error(message);
405
- }
406
- try {
407
- throw new Error(message);
408
- } catch (e) {
409
- }
410
- }
411
- function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
412
- const reducerKeys = Object.keys(reducers);
413
- const argumentName = action && action.type === actionTypes_default.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
414
- if (reducerKeys.length === 0) {
415
- return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
416
- }
417
- if (!isPlainObject(inputState)) {
418
- return `The ${argumentName} has unexpected type of "${kindOf(inputState)}". Expected argument to be an object with the following keys: "${reducerKeys.join('", "')}"`;
419
- }
420
- const unexpectedKeys = Object.keys(inputState).filter((key) => !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]);
421
- unexpectedKeys.forEach((key) => {
422
- unexpectedKeyCache[key] = true;
423
- });
424
- if (action && action.type === actionTypes_default.REPLACE)
425
- return;
426
- if (unexpectedKeys.length > 0) {
427
- return `Unexpected ${unexpectedKeys.length > 1 ? "keys" : "key"} "${unexpectedKeys.join('", "')}" found in ${argumentName}. Expected to find one of the known reducer keys instead: "${reducerKeys.join('", "')}". Unexpected keys will be ignored.`;
428
- }
429
- }
430
- function assertReducerShape(reducers) {
431
- Object.keys(reducers).forEach((key) => {
432
- const reducer = reducers[key];
433
- const initialState8 = reducer(void 0, {
434
- type: actionTypes_default.INIT
435
- });
436
- if (typeof initialState8 === "undefined") {
437
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(12) : `The slice reducer for key "${key}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
438
- }
439
- if (typeof reducer(void 0, {
440
- type: actionTypes_default.PROBE_UNKNOWN_ACTION()
441
- }) === "undefined") {
442
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(13) : `The slice reducer for key "${key}" returned undefined when probed with a random type. Don't try to handle '${actionTypes_default.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
443
- }
444
- });
445
- }
446
- function combineReducers(reducers) {
447
- const reducerKeys = Object.keys(reducers);
448
- const finalReducers = {};
449
- for (let i = 0; i < reducerKeys.length; i++) {
450
- const key = reducerKeys[i];
451
- if (process.env.NODE_ENV !== "production") {
452
- if (typeof reducers[key] === "undefined") {
453
- warning(`No reducer provided for key "${key}"`);
454
- }
455
- }
456
- if (typeof reducers[key] === "function") {
457
- finalReducers[key] = reducers[key];
458
- }
459
- }
460
- const finalReducerKeys = Object.keys(finalReducers);
461
- let unexpectedKeyCache;
462
- if (process.env.NODE_ENV !== "production") {
463
- unexpectedKeyCache = {};
464
- }
465
- let shapeAssertionError;
466
- try {
467
- assertReducerShape(finalReducers);
468
- } catch (e) {
469
- shapeAssertionError = e;
470
- }
471
- return function combination(state = {}, action) {
472
- if (shapeAssertionError) {
473
- throw shapeAssertionError;
474
- }
475
- if (process.env.NODE_ENV !== "production") {
476
- const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
477
- if (warningMessage) {
478
- warning(warningMessage);
479
- }
480
- }
481
- let hasChanged = false;
482
- const nextState = {};
483
- for (let i = 0; i < finalReducerKeys.length; i++) {
484
- const key = finalReducerKeys[i];
485
- const reducer = finalReducers[key];
486
- const previousStateForKey = state[key];
487
- const nextStateForKey = reducer(previousStateForKey, action);
488
- if (typeof nextStateForKey === "undefined") {
489
- const actionType = action && action.type;
490
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(14) : `When called with an action of type ${actionType ? `"${String(actionType)}"` : "(unknown type)"}, the slice reducer for key "${key}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
491
- }
492
- nextState[key] = nextStateForKey;
493
- hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
494
- }
495
- hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
496
- return hasChanged ? nextState : state;
497
- };
498
- }
499
-
500
- // src/store/store.ts
501
- var rootReducer = combineReducers({
502
- env: env_slice_default,
503
- navbar: navbar_slice_default,
504
- list: list_slice_default,
505
- search: search_slice_default,
506
- form: form_slice_default,
507
- excel: excel_slice_default,
508
- profile: profile_slice_default
509
- });
510
- var envStore = toolkit.configureStore({
511
- reducer: rootReducer,
512
- middleware: (getDefaultMiddleware) => getDefaultMiddleware({
513
- serializableCheck: false
514
- })
515
- });
516
-
517
- // src/store/index.ts
518
- var useAppDispatch = reactRedux.useDispatch;
519
- var useAppSelector = reactRedux.useSelector;
520
-
521
- exports.clearSearchMap = clearSearchMap;
522
- exports.envSlice = envSlice;
523
- exports.envStore = envStore;
524
- exports.excelSlice = excelSlice;
525
- exports.formSlice = formSlice;
526
- exports.listSlice = listSlice;
527
- exports.navbarSlice = navbarSlice;
528
- exports.profileSlice = profileSlice;
529
- exports.removeKeyFromSearchMap = removeKeyFromSearchMap;
530
- exports.searchSlice = searchSlice;
531
- exports.selectEnv = selectEnv;
532
- exports.selectExcel = selectExcel;
533
- exports.selectForm = selectForm;
534
- exports.selectList = selectList;
535
- exports.selectNavbar = selectNavbar;
536
- exports.selectProfile = selectProfile;
537
- exports.selectSearch = selectSearch;
538
- exports.selectSearchMap = selectSearchMap;
539
- exports.setAllowCompanies = setAllowCompanies;
540
- exports.setCompanies = setCompanies;
541
- exports.setDataParse = setDataParse;
542
- exports.setDataUser = setDataUser;
543
- exports.setDefaultCompany = setDefaultCompany;
544
- exports.setDomainTable = setDomainTable;
545
- exports.setEnv = setEnv;
546
- exports.setEnvFile = setEnvFile;
547
- exports.setErrorData = setErrorData;
548
- exports.setFieldTranslate = setFieldTranslate;
549
- exports.setFields = setFields;
550
- exports.setFilterBy = setFilterBy;
551
- exports.setFirstDomain = setFirstDomain;
552
- exports.setFormSubmitComponent = setFormSubmitComponent;
553
- exports.setGroupBy = setGroupBy;
554
- exports.setGroupByDomain = setGroupByDomain;
555
- exports.setHoveredIndexSearchList = setHoveredIndexSearchList;
556
- exports.setIdFile = setIdFile;
557
- exports.setIndexRowTableModal = setIndexRowTableModal;
558
- exports.setIsFileLoaded = setIsFileLoaded;
559
- exports.setIsShowModalTranslate = setIsShowModalTranslate;
560
- exports.setIsShowingModalDetail = setIsShowingModalDetail;
561
- exports.setLang = setLang;
562
- exports.setListSubject = setListSubject;
563
- exports.setLoadingImport = setLoadingImport;
564
- exports.setMenuList = setMenuList;
565
- exports.setModelSearch = setModelSearch;
566
- exports.setOrder = setOrder;
567
- exports.setPage = setPage;
568
- exports.setPageLimit = setPageLimit;
569
- exports.setProfile = setProfile;
570
- exports.setSearchMap = setSearchMap;
571
- exports.setSearchString = setSearchString;
572
- exports.setSelectedFile = setSelectedFile;
573
- exports.setSelectedRowKeys = setSelectedRowKeys;
574
- exports.setSelectedTags = setSelectedTags;
575
- exports.setTableHead = setTableHead;
576
- exports.setTypeFieldsSearch = setTypeFieldsSearch;
577
- exports.setUid = setUid;
578
- exports.setUser = setUser;
579
- exports.setViewDataStore = setViewDataStore;
580
- exports.updateSearchMap = updateSearchMap;
581
- exports.useAppDispatch = useAppDispatch;
582
- exports.useAppSelector = useAppSelector;
@@ -1,85 +0,0 @@
1
- // src/constants/field/field-type-constant.ts
2
- var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
3
- FieldTypeConstants2["CHAR"] = "char";
4
- FieldTypeConstants2["TEXT"] = "text";
5
- FieldTypeConstants2["INTEGER"] = "integer";
6
- FieldTypeConstants2["FLOAT"] = "float";
7
- FieldTypeConstants2["BOOLEAN"] = "boolean";
8
- FieldTypeConstants2["DATE"] = "date";
9
- FieldTypeConstants2["DATETIME"] = "datetime";
10
- FieldTypeConstants2["BINARY"] = "binary";
11
- FieldTypeConstants2["SELECTION"] = "selection";
12
- FieldTypeConstants2["HTML"] = "html";
13
- FieldTypeConstants2["MANY2ONE"] = "many2one";
14
- FieldTypeConstants2["ONE2MANY"] = "one2many";
15
- FieldTypeConstants2["MANY2MANY"] = "many2many";
16
- FieldTypeConstants2["MONETARY"] = "monetary";
17
- FieldTypeConstants2["REFERENCE"] = "reference";
18
- FieldTypeConstants2["FUNCTION"] = "function";
19
- FieldTypeConstants2["PROPERTY"] = "property";
20
- return FieldTypeConstants2;
21
- })(FieldTypeConstants || {});
22
-
23
- // src/constants/method/method-type-constant.ts
24
- var MethodType = /* @__PURE__ */ ((MethodType2) => {
25
- MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
26
- MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
27
- MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
28
- MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
29
- MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
30
- return MethodType2;
31
- })(MethodType || {});
32
-
33
- // src/constants/model/model-constant.ts
34
- var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
35
- ModelConstants2["MENU"] = "ir.ui.menu";
36
- ModelConstants2["USER"] = "res.users";
37
- ModelConstants2["COMPANY"] = "res.company";
38
- ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
39
- ModelConstants2["BASE_IMPORT"] = "base_import.import";
40
- ModelConstants2["GET_IMPORT"] = "get_import_templates";
41
- return ModelConstants2;
42
- })(ModelConstants || {});
43
-
44
- // src/constants/type/index.ts
45
- var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
46
- ComponentType2["TREE"] = "tree";
47
- ComponentType2["GROUP"] = "group";
48
- ComponentType2["LIST"] = "list";
49
- ComponentType2["FORM"] = "form";
50
- ComponentType2["FIELD"] = "field";
51
- ComponentType2["DIV"] = "div";
52
- ComponentType2["SPAN"] = "span";
53
- return ComponentType2;
54
- })(ComponentType || {});
55
- var SearchType = {
56
- FILTER: "filter_by",
57
- SEARCH: "search_by",
58
- GROUP: "group_by"
59
- };
60
-
61
- // src/constants/widget/widget-avatar-constant.ts
62
- var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
63
- WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
64
- WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
65
- return WIDGETAVATAR2;
66
- })(WIDGETAVATAR || {});
67
-
68
- // src/constants/widget/widget-color-constant.ts
69
- var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
70
- WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
71
- WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
72
- return WIDGETCOLOR2;
73
- })(WIDGETCOLOR || {});
74
-
75
- // src/constants/widget/widget-status-constant.ts
76
- var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
77
- WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
78
- return WIDGETSTATUS2;
79
- })(WIDGETSTATUS || {});
80
- var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
81
- WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
82
- return WIDGETNOSTRING2;
83
- })(WIDGETNOSTRING || {});
84
-
85
- export { ComponentType, FieldTypeConstants, MethodType, ModelConstants, SearchType, WIDGETAVATAR, WIDGETCOLOR, WIDGETNOSTRING, WIDGETSTATUS };