@scmlatam/web-ui 0.1.96 → 0.1.98

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 (69) hide show
  1. package/dist/src/App.d.ts +2 -0
  2. package/dist/src/api/fake.d.ts +5 -0
  3. package/dist/src/auth.d.ts +26 -0
  4. package/dist/src/components/contextmenu/Contextmenu.d.ts +3 -0
  5. package/dist/src/components/core/Core.d.ts +3 -0
  6. package/dist/src/components/core/context/Context.d.ts +28 -0
  7. package/dist/src/components/core/context/Provider.d.ts +5 -0
  8. package/dist/src/components/core/dashboard/Dashboard.d.ts +3 -0
  9. package/dist/src/components/core/dashboard/account/Account.d.ts +11 -0
  10. package/dist/src/components/core/dashboard/content/Content.d.ts +3 -0
  11. package/dist/src/components/core/dashboard/search/Search.d.ts +2 -0
  12. package/dist/src/components/core/dashboard/sidebar/CompactItem.d.ts +3 -0
  13. package/dist/src/components/core/dashboard/sidebar/Content.d.ts +3 -0
  14. package/dist/src/components/core/dashboard/sidebar/ExtendGroupItem.d.ts +3 -0
  15. package/dist/src/components/core/dashboard/sidebar/Footer.d.ts +3 -0
  16. package/dist/src/components/core/dashboard/sidebar/Header.d.ts +3 -0
  17. package/dist/src/components/core/dashboard/sidebar/Sidebar.d.ts +3 -0
  18. package/dist/src/components/core/dashboard/sidebar/SubItem.d.ts +3 -0
  19. package/dist/src/components/core/signin/SignIn.d.ts +12 -0
  20. package/dist/src/components/core/system/Alert.d.ts +4 -0
  21. package/dist/src/components/form/Form.d.ts +3 -0
  22. package/dist/src/components/form/autocomplete/Autocomplete.d.ts +11 -0
  23. package/dist/src/components/form/datefield/range/DateRangeCalendar.d.ts +11 -0
  24. package/dist/src/components/form/datefield/range/DateRangePicker.d.ts +13 -0
  25. package/dist/src/components/form/datefield/range/Datefield.d.ts +9 -0
  26. package/dist/src/components/form/datefield/simple/DatePicker.d.ts +12 -0
  27. package/dist/src/components/form/datefield/simple/Datefield.d.ts +12 -0
  28. package/dist/src/components/form/datefield/simple/Timefield.d.ts +12 -0
  29. package/dist/src/components/form/file/FileField.d.ts +4 -0
  30. package/dist/src/components/form/select/MultiSelect.d.ts +3 -0
  31. package/dist/src/components/form/select/Select.d.ts +3 -0
  32. package/dist/src/components/form/sheet/Sheet.d.ts +13 -0
  33. package/dist/src/components/form/treewiew/Treeview.d.ts +6 -0
  34. package/dist/src/components/main.d.ts +14 -0
  35. package/dist/src/components/table/Table.d.ts +3 -0
  36. package/dist/src/components/table/toolbar/Toolbar.d.ts +3 -0
  37. package/dist/src/components/table/toolbar/datefield/range/DateRangePicker.d.ts +15 -0
  38. package/dist/src/components/table/toolbar/datefield/range/Datefield.d.ts +10 -0
  39. package/dist/src/components/table/toolbar/datefield/simple/DatePicker.d.ts +12 -0
  40. package/dist/src/components/table/toolbar/datefield/simple/Datefield.d.ts +11 -0
  41. package/dist/src/components/table/toolbar/select/MultiSelect.d.ts +3 -0
  42. package/dist/src/components/table/toolbar/select/Select.d.ts +3 -0
  43. package/dist/src/hooks/useForm.d.ts +2 -0
  44. package/dist/src/hooks/useSidebar.d.ts +6 -0
  45. package/dist/src/hooks/useSystemAlert.d.ts +6 -0
  46. package/dist/src/hooks/useTable.d.ts +18 -0
  47. package/dist/src/main.d.ts +0 -0
  48. package/dist/src/mock/SidebarData.d.ts +35 -0
  49. package/dist/src/mock/TableData.d.ts +3 -0
  50. package/dist/src/pages/Home.d.ts +3 -0
  51. package/dist/src/pages/Timekeeper.d.ts +3 -0
  52. package/dist/src/router/Router.d.ts +12 -0
  53. package/dist/src/shims/chevrotain.d.ts +1 -0
  54. package/dist/src/themes/GoodRabbitButtons.d.ts +32 -0
  55. package/dist/src/themes/GoodRabbitColors.d.ts +193 -0
  56. package/dist/src/themes/GoodRabbitDarkTheme.d.ts +375 -0
  57. package/dist/src/themes/GoodRabbitInputLabel.d.ts +11 -0
  58. package/dist/src/themes/GoodRabbitLightTheme.d.ts +2 -0
  59. package/dist/src/themes/GoodRabbitOutlinedInput.d.ts +43 -0
  60. package/dist/src/themes/GoodRabbitTextField.d.ts +59 -0
  61. package/dist/src/themes/GoodRabbitTypography.d.ts +46 -0
  62. package/dist/web-ui.js +2769 -73982
  63. package/dist/web-ui.umd.cjs +1 -752
  64. package/package.json +14 -11
  65. package/dist/context-CRqFLvGk.js +0 -7
  66. package/dist/extends-9CbO0Z4Q.js +0 -12
  67. package/dist/fp.esm-BNINKTlV.js +0 -1526
  68. package/dist/get-context-qXpuAzJ1.js +0 -106
  69. package/dist/web-ui.d.ts +0 -178
@@ -1,106 +0,0 @@
1
- import { t as e } from "./extends-9CbO0Z4Q.js";
2
- import t from "./context-CRqFLvGk.js";
3
- //#region node_modules/@mui/x-telemetry/runtime/hash-string.mjs
4
- async function n(e) {
5
- let t = new TextEncoder().encode(e), n = await crypto.subtle.digest("SHA-256", t);
6
- return Array.from(new Uint8Array(n)).map((e) => e.toString(16).padStart(2, "0")).join("");
7
- }
8
- //#endregion
9
- //#region node_modules/@mui/x-telemetry/runtime/window-storage.mjs
10
- var r = "__mui_x_telemetry_";
11
- function i(e) {
12
- return r + btoa(e);
13
- }
14
- function a(e, t, n) {
15
- try {
16
- if (typeof window < "u" && window[e]) return window[e].setItem(i(t), n), !0;
17
- } catch {}
18
- return !1;
19
- }
20
- function o(e, t) {
21
- try {
22
- if (typeof window < "u" && window[e]) return window[e].getItem(i(t));
23
- } catch {}
24
- return null;
25
- }
26
- //#endregion
27
- //#region node_modules/@mui/x-telemetry/runtime/get-context.mjs
28
- function s(e) {
29
- let t = "", n = 0;
30
- for (; n < e;) t += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(Math.random() * 62)), n += 1;
31
- return t;
32
- }
33
- function c(e, t) {
34
- return t.reduce((t, n) => (t[n] = e[n], t), {});
35
- }
36
- var l = typeof window > "u" || process.env.NODE_ENV === "test" ? () => void 0 : async () => {
37
- let t = "fingerprint";
38
- try {
39
- let n = o("localStorage", t);
40
- if (n) return JSON.parse(n);
41
- let r = await import("./fp.esm-BNINKTlV.js"), i = e({}, (await (await r.load({ monitoring: !1 })).get()).components);
42
- delete i.cookiesEnabled;
43
- let s = {
44
- fullHash: r.hashComponents(i),
45
- coreHash: r.hashComponents(e({}, c(i, [
46
- "fonts",
47
- "audio",
48
- "languages",
49
- "deviceMemory",
50
- "timezone",
51
- "sessionStorage",
52
- "localStorage",
53
- "indexedDB",
54
- "openDatabase",
55
- "platform",
56
- "canvas",
57
- "vendor",
58
- "vendorFlavors",
59
- "colorGamut",
60
- "forcedColors",
61
- "monochrome",
62
- "contrast",
63
- "reducedMotion",
64
- "math",
65
- "videoCard",
66
- "architecture"
67
- ])))
68
- };
69
- return a("localStorage", t, JSON.stringify(s)), s;
70
- } catch {
71
- return null;
72
- }
73
- };
74
- function u() {
75
- let e = "anonymous_id", t = o("localStorage", e);
76
- if (t) return t;
77
- let n = `anid_${s(32)}`;
78
- return a("localStorage", e, n) ? n : "";
79
- }
80
- function d() {
81
- let e = "session_id", t = o("sessionStorage", e);
82
- if (t) return t;
83
- let n = `sesid_${s(32)}`;
84
- return a("sessionStorage", e, n) ? n : `sestp_${s(32)}`;
85
- }
86
- async function f() {
87
- if (typeof process < "u" && process.env?.npm_package_name) return n(process.env.npm_package_name);
88
- if (typeof window < "u") try {
89
- let e = await fetch("/package.json");
90
- if (e.ok) {
91
- let t = await e.json();
92
- if (t.name && typeof t.name == "string") return n(t.name);
93
- }
94
- } catch {}
95
- return null;
96
- }
97
- async function p() {
98
- if (t.traits.sessionId = d(), t.config.isInitialized || (t.traits.anonymousId = u(), t.config.isInitialized = !0), !t.traits.runtimePackageNameHash && !t.config.runtimePackageNameHashResolved) {
99
- t.config.runtimePackageNameHashResolved = !0;
100
- let e = await f();
101
- t.traits.runtimePackageNameHash = e, e && (t.traits.projectId = t.traits.repoHash || e || t.traits.postinstallPackageNameHash || t.traits.rootPathHash || t.traits.projectId);
102
- }
103
- return t.traits.fingerprint || (t.traits.fingerprint = await l()), t;
104
- }
105
- //#endregion
106
- export { p as default };
package/dist/web-ui.d.ts DELETED
@@ -1,178 +0,0 @@
1
- import { AutoCompleteFieldForm } from './form/types/types';
2
- import { AutoValueItem } from './form/types/types';
3
- import { CheckboxFieldForm } from './form/types/types';
4
- import { CheckboxGroupForm } from './form/types/types';
5
- import { Context } from 'react';
6
- import { ContextMenu } from '../components/table/types/types';
7
- import { CoreProps } from './types/types';
8
- import { CustomTreeItem } from './form/types/types';
9
- import { DateFieldForm } from './form/types/types';
10
- import { DatePickerFieldForm } from './form/types/types';
11
- import { DateRangeCalendarForm } from './form/types/types';
12
- import { DateRangeFieldForm } from './form/types/types';
13
- import { DateRangePickerForm } from './form/types/types';
14
- import { Dispatch } from 'react';
15
- import { FormProps } from './form/types/types';
16
- import { FormProps as FormProps_2 } from './types/types';
17
- import { GridApiPro } from '@mui/x-data-grid-pro';
18
- import { GridRowSelectionModel } from '@mui/x-data-grid';
19
- import { GroupItem } from './core/types/types';
20
- import { ITableContext } from './table/types/types';
21
- import { Item } from './core/types/types';
22
- import { JSX } from 'react/jsx-runtime';
23
- import { Language } from './core/types/types';
24
- import { ListFieldForm } from './form/types/types';
25
- import { Option as Option_2 } from './table/types/types';
26
- import { OptionGroup } from '../components/table/types/types';
27
- import { PageProps } from './core/types/types';
28
- import { PaginationModel } from './table/types/types';
29
- import { PickersShortcutsItem } from '@mui/x-date-pickers';
30
- import { PickerValidValue } from '@mui/x-date-pickers/internals';
31
- import { RadioFieldForm } from './form/types/types';
32
- import { RadioGroupForm } from './form/types/types';
33
- import { RefObject } from 'react';
34
- import { RouteItem } from './core/types/types';
35
- import { Row } from './table/types/types';
36
- import { SelectFieldForm } from './form/types/types';
37
- import { SetStateAction } from 'react';
38
- import { SheetFieldForm } from './form/types/types';
39
- import { SnackbarKey } from 'notistack';
40
- import { TableProps } from './table/types/types';
41
- import { TableProps as TableProps_2 } from './types/types';
42
- import { TableProviderProps } from './table/types/types';
43
- import { TextFieldForm } from './form/types/types';
44
- import { Theme } from '@mui/material';
45
- import { TimeFieldForm } from './form/types/types';
46
- import { TreeviewFieldForm } from './form/types/types';
47
- import { TypographyFieldForm } from './form/types/types';
48
- import { ValueItem } from './form/select/types/types';
49
-
50
- export { AutoCompleteFieldForm }
51
-
52
- export { AutoValueItem }
53
-
54
- export { CheckboxFieldForm }
55
-
56
- export { CheckboxGroupForm }
57
-
58
- export declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, unsavedChangesAlert, }: CoreProps) => JSX.Element;
59
-
60
- export declare const CoreContext: Context<ICoreContext>;
61
-
62
- export declare const CoreProvider: ({ children }: CoreProviderProps) => JSX.Element;
63
-
64
- declare interface CoreProviderProps {
65
- children: React.ReactNode;
66
- }
67
-
68
- export { CustomTreeItem }
69
-
70
- export { DateFieldForm }
71
-
72
- export { DatePickerFieldForm }
73
-
74
- export { DateRangeCalendarForm }
75
-
76
- export { DateRangeFieldForm }
77
-
78
- export { DateRangePickerForm }
79
-
80
- export declare const Form: ({ title, alert, action, fields, open, setOpen, loading, onClickSave, }: FormProps_2) => JSX.Element;
81
-
82
- export { FormProps }
83
-
84
- export declare const GoodRabbitDarkTheme: Theme;
85
-
86
- export declare const GoodRabbitLightTheme: Theme;
87
-
88
- export { GroupItem }
89
-
90
- declare interface ICoreContext {
91
- isAuthenticated: boolean;
92
- setIsAuthenticated: (value: boolean) => void;
93
- user: string;
94
- setUser: (value: string) => void;
95
- pass: string;
96
- setPass: (value: string) => void;
97
- avatar: string;
98
- setAvatar: (value: string) => void;
99
- loadingAuth: boolean;
100
- setLoadingAuth: (value: boolean) => void;
101
- format: string;
102
- setFormat: (value: string) => void;
103
- singleShortcut: PickersShortcutsItem<PickerValidValue>[];
104
- setSingleShortcut: (value: PickersShortcutsItem<PickerValidValue>[]) => void;
105
- rangeShortcut: PickersShortcutsItem<PickerValidValue>[];
106
- setRangeShortcut: (value: PickersShortcutsItem<PickerValidValue>[]) => void;
107
- encrypter: (storage: "session" | "local", key: string, data: string) => void;
108
- decrypter: (storage: "session" | "local", key: string) => string;
109
- openUnsaved: boolean;
110
- setOpenUnsaved: (value: boolean) => void;
111
- redirect: string;
112
- setRedirect: (value: string) => void;
113
- }
114
-
115
- export { ITableContext }
116
-
117
- export { Item }
118
-
119
- export { Language }
120
-
121
- export { ListFieldForm }
122
-
123
- export { Option_2 as Option }
124
-
125
- export { PageProps }
126
-
127
- export { PaginationModel }
128
-
129
- export { RadioFieldForm }
130
-
131
- export { RadioGroupForm }
132
-
133
- export { RouteItem }
134
-
135
- export { Row }
136
-
137
- export { SelectFieldForm }
138
-
139
- export { SheetFieldForm }
140
-
141
- export declare const Table: (props: TableProps_2) => JSX.Element;
142
-
143
- export { TableProps }
144
-
145
- export { TableProviderProps }
146
-
147
- export { TextFieldForm }
148
-
149
- export { TimeFieldForm }
150
-
151
- export { TreeviewFieldForm }
152
-
153
- export { TypographyFieldForm }
154
-
155
- export declare const useSystemAlert: () => {
156
- showAlert: (severity: "error" | "info" | "success" | "warning" | "default", message: string) => SnackbarKey;
157
- closeAlert: (key: SnackbarKey) => void;
158
- };
159
-
160
- export declare const useTable: () => {
161
- apiRef: RefObject<GridApiPro | null>;
162
- rows: any[];
163
- setRows: Dispatch<SetStateAction<any[]>>;
164
- loading: boolean;
165
- setLoading: Dispatch<SetStateAction<boolean>>;
166
- paginationModel: PaginationModel;
167
- setPaginationModel: Dispatch<SetStateAction<PaginationModel>>;
168
- rowSelectionModel: GridRowSelectionModel;
169
- setRowSelectionModel: Dispatch<SetStateAction<GridRowSelectionModel>>;
170
- contextMenu: ContextMenu | null;
171
- setContextMenu: Dispatch<SetStateAction<ContextMenu | null>>;
172
- optionGroup: OptionGroup;
173
- setOptionGroup: Dispatch<SetStateAction<OptionGroup>>;
174
- };
175
-
176
- export { ValueItem }
177
-
178
- export { }