adminforth 1.3.54-next.22 → 1.3.54-next.24

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 (125) hide show
  1. package/dist/auth.js +41 -56
  2. package/dist/auth.js.map +1 -1
  3. package/dist/dataConnectors/baseConnector.js +107 -128
  4. package/dist/dataConnectors/baseConnector.js.map +1 -1
  5. package/dist/dataConnectors/clickhouse.js +125 -148
  6. package/dist/dataConnectors/clickhouse.js.map +1 -1
  7. package/dist/dataConnectors/mongo.js +74 -101
  8. package/dist/dataConnectors/mongo.js.map +1 -1
  9. package/dist/dataConnectors/postgres.js +117 -142
  10. package/dist/dataConnectors/postgres.js.map +1 -1
  11. package/dist/dataConnectors/sqlite.js +106 -129
  12. package/dist/dataConnectors/sqlite.js.map +1 -1
  13. package/dist/index.js +196 -217
  14. package/dist/index.js.map +1 -1
  15. package/dist/modules/codeInjector.js +470 -495
  16. package/dist/modules/codeInjector.js.map +1 -1
  17. package/dist/modules/configValidator.js +13 -22
  18. package/dist/modules/configValidator.js.map +1 -1
  19. package/dist/modules/operationalResource.js +49 -70
  20. package/dist/modules/operationalResource.js.map +1 -1
  21. package/dist/modules/restApi.js +103 -116
  22. package/dist/modules/restApi.js.map +1 -1
  23. package/dist/plugins/audit-log/types.js +2 -0
  24. package/dist/plugins/audit-log/types.js.map +1 -0
  25. package/dist/plugins/chat-gpt/types.js +2 -0
  26. package/dist/plugins/chat-gpt/types.js.map +1 -0
  27. package/dist/plugins/email-password-reset/types.js +2 -0
  28. package/dist/plugins/email-password-reset/types.js.map +1 -0
  29. package/dist/plugins/foreign-inline-list/types.js +2 -0
  30. package/dist/plugins/foreign-inline-list/types.js.map +1 -0
  31. package/dist/plugins/import-export/types.js +2 -0
  32. package/dist/plugins/import-export/types.js.map +1 -0
  33. package/dist/plugins/rich-editor/custom/async-queue.js +29 -0
  34. package/dist/plugins/rich-editor/custom/async-queue.js.map +1 -0
  35. package/dist/plugins/rich-editor/dist/async-queue.js +41 -0
  36. package/dist/plugins/rich-editor/dist/custom/async-queue.js +29 -0
  37. package/dist/plugins/rich-editor/dist/custom/async-queue.js.map +1 -0
  38. package/dist/plugins/rich-editor/types.js +16 -0
  39. package/dist/plugins/rich-editor/types.js.map +1 -0
  40. package/dist/plugins/two-factors-auth/types.js +2 -0
  41. package/dist/plugins/two-factors-auth/types.js.map +1 -0
  42. package/dist/plugins/upload/types.js +2 -0
  43. package/dist/plugins/upload/types.js.map +1 -0
  44. package/dist/servers/express.js +29 -42
  45. package/dist/servers/express.js.map +1 -1
  46. package/package.json +4 -1
  47. package/auth.ts +0 -140
  48. package/basePlugin.ts +0 -70
  49. package/dataConnectors/baseConnector.ts +0 -222
  50. package/dataConnectors/clickhouse.ts +0 -343
  51. package/dataConnectors/mongo.ts +0 -202
  52. package/dataConnectors/postgres.ts +0 -310
  53. package/dataConnectors/sqlite.ts +0 -258
  54. package/index.ts +0 -428
  55. package/modules/codeInjector.ts +0 -747
  56. package/modules/configValidator.ts +0 -588
  57. package/modules/operationalResource.ts +0 -98
  58. package/modules/restApi.ts +0 -718
  59. package/modules/styleGenerator.ts +0 -55
  60. package/modules/styles.ts +0 -126
  61. package/modules/utils.ts +0 -472
  62. package/servers/express.ts +0 -259
  63. package/spa/.eslintrc.cjs +0 -14
  64. package/spa/README.md +0 -39
  65. package/spa/env.d.ts +0 -1
  66. package/spa/index.html +0 -23
  67. package/spa/package-lock.json +0 -4659
  68. package/spa/package.json +0 -52
  69. package/spa/postcss.config.js +0 -6
  70. package/spa/public/assets/favicon.png +0 -0
  71. package/spa/src/App.vue +0 -418
  72. package/spa/src/assets/base.css +0 -2
  73. package/spa/src/assets/logo.svg +0 -19
  74. package/spa/src/components/AcceptModal.vue +0 -45
  75. package/spa/src/components/Breadcrumbs.vue +0 -41
  76. package/spa/src/components/BreadcrumbsWithButtons.vue +0 -26
  77. package/spa/src/components/CustomDatePicker.vue +0 -176
  78. package/spa/src/components/CustomDateRangePicker.vue +0 -218
  79. package/spa/src/components/CustomRangePicker.vue +0 -156
  80. package/spa/src/components/Dropdown.vue +0 -168
  81. package/spa/src/components/Filters.vue +0 -222
  82. package/spa/src/components/HelloWorld.vue +0 -17
  83. package/spa/src/components/MenuLink.vue +0 -27
  84. package/spa/src/components/ResourceForm.vue +0 -325
  85. package/spa/src/components/ResourceListTable.vue +0 -466
  86. package/spa/src/components/SingleSkeletLoader.vue +0 -13
  87. package/spa/src/components/SkeleteLoader.vue +0 -23
  88. package/spa/src/components/ThreeDotsMenu.vue +0 -43
  89. package/spa/src/components/Toast.vue +0 -78
  90. package/spa/src/components/ValueRenderer.vue +0 -141
  91. package/spa/src/components/icons/IconCalendar.vue +0 -5
  92. package/spa/src/components/icons/IconCommunity.vue +0 -7
  93. package/spa/src/components/icons/IconDocumentation.vue +0 -7
  94. package/spa/src/components/icons/IconEcosystem.vue +0 -7
  95. package/spa/src/components/icons/IconSupport.vue +0 -7
  96. package/spa/src/components/icons/IconTime.vue +0 -5
  97. package/spa/src/components/icons/IconTooling.vue +0 -19
  98. package/spa/src/composables/useFrontendApi.ts +0 -26
  99. package/spa/src/composables/useStores.ts +0 -131
  100. package/spa/src/index.scss +0 -31
  101. package/spa/src/main.ts +0 -18
  102. package/spa/src/renderers/CompactUUID.vue +0 -48
  103. package/spa/src/renderers/CountryFlag.vue +0 -69
  104. package/spa/src/router/index.ts +0 -59
  105. package/spa/src/spa_types/core.ts +0 -53
  106. package/spa/src/stores/core.ts +0 -148
  107. package/spa/src/stores/filters.ts +0 -27
  108. package/spa/src/stores/modal.ts +0 -48
  109. package/spa/src/stores/toast.ts +0 -31
  110. package/spa/src/stores/user.ts +0 -72
  111. package/spa/src/utils.ts +0 -160
  112. package/spa/src/views/CreateView.vue +0 -167
  113. package/spa/src/views/EditView.vue +0 -170
  114. package/spa/src/views/ListView.vue +0 -352
  115. package/spa/src/views/LoginView.vue +0 -192
  116. package/spa/src/views/ResourceParent.vue +0 -17
  117. package/spa/src/views/ShowView.vue +0 -194
  118. package/spa/tailwind.config.js +0 -17
  119. package/spa/tsconfig.app.json +0 -14
  120. package/spa/tsconfig.json +0 -11
  121. package/spa/tsconfig.node.json +0 -19
  122. package/spa/vite.config.ts +0 -56
  123. package/tsconfig.json +0 -112
  124. package/types/AdminForthConfig.ts +0 -1762
  125. package/types/FrontendAPI.ts +0 -143
@@ -1,143 +0,0 @@
1
-
2
- export interface FrontendAPIInterface {
3
-
4
- /**
5
- * Show a confirmation dialog
6
- *
7
- * The dialog will be displayed to the user
8
- *
9
- * Example:
10
- *
11
- * ```ts
12
- * const isConfirmed = await window.adminforth.confirm({message: 'Are you sure?', yes: 'Yes', no: 'No'})
13
- * if (isConfirmed) {
14
- * your code...
15
- * }
16
- * ```
17
- *
18
- * @param params - The parameters of the dialog
19
- * @returns A promise that resolves when the user confirms the dialog
20
- */
21
- confirm(params:ConfirmParams ): Promise<void>;
22
-
23
- /**
24
- * Show an alert
25
- *
26
- * The alert will be displayed to the user
27
- *
28
- * Example:
29
- *
30
- * ```ts
31
- * window.adminforth.alert({message: 'Hello', variant: 'success'})
32
- * ```
33
- *
34
- * @param params - The parameters of the alert
35
- */
36
- alert(params:AlertParams): void;
37
-
38
-
39
- list: {
40
-
41
- /**
42
- * Refresh the list
43
- */
44
- refresh(): void;
45
-
46
- /**
47
- * Close the three dots dropdown
48
- */
49
- closeThreeDotsDropdown(): void;
50
-
51
- /**
52
- * Close the user menu dropdown
53
- */
54
- closeUserMenuDropdown(): void;
55
-
56
- /**
57
- * Set a filter in the list
58
- * Works only when user located on the list page.
59
- * Can be used to set filter from charts or other components in pageInjections.
60
- *
61
- * Example:
62
- *
63
- * ```ts
64
- * window.adminforth.list.setFilter({field: 'name', operator: 'ilike', value: 'john'})
65
- * ```
66
- *
67
- * @param filter - The filter to set
68
- */
69
- setFilter(filter: any): void;
70
-
71
- /**
72
- * Update a filter in the list
73
- *
74
- * Example:
75
- *
76
- * ```ts
77
- * window.adminforth.list.updateFilter({field: 'name', operator: 'ilike', value: 'john'})
78
- * ```
79
- *
80
- * @param filter - The filter to update
81
- */
82
- updateFilter(filter: any): void;
83
-
84
- /**
85
- * Clear all filters from the list
86
- */
87
- clearFilters(): void;
88
- }
89
- }
90
-
91
- export type ConfirmParams = {
92
- /**
93
- * The message to display in the dialog
94
- */
95
- message?: string;
96
- /**
97
- * The text to display in the "accept" button
98
- */
99
- yes?: string;
100
- /**
101
- * The text to display in the "cancel" button
102
- */
103
- no?: string;
104
-
105
- }
106
-
107
- export type AlertParams = {
108
- /**
109
- * The message to display in the alert
110
- */
111
- message?: string;
112
-
113
- /**
114
- * The message to display in the alert as HTML (can be used instead of message)
115
- */
116
- messageHtml?: string;
117
-
118
- /**
119
- * The variant of the alert
120
- */
121
- variant?: AlertVariant | keyof typeof AlertVariant;
122
-
123
- /**
124
- * The timeout of the alert in seconds or 'unlimited' to keep the alert open until the user closes it.
125
- * Default is 10 seconds;
126
- */
127
- timeout?: number | 'unlimited';
128
-
129
- }
130
-
131
-
132
-
133
- export enum AlertVariant {
134
- danger = 'danger',
135
- success = 'success',
136
- warning = 'warning',
137
- info = 'info'
138
- }
139
-
140
-
141
-
142
-
143
-