adminforth 4.18.0 → 4.19.1

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.
@@ -125,5 +125,15 @@ onUnmounted(() => {
125
125
  .apexcharts-legend-text {
126
126
  color: var(--afcl-treemap-text) !important;
127
127
  }
128
+
129
+ // the light apexcharts tooltip has a white background but no text color, so in the dark theme
130
+ // it inherits the light page text; the tooltip is an ink layer and takes the Tooltip tokens
131
+ .apexcharts-tooltip.apexcharts-theme-light {
132
+ @apply border-none rounded-md text-lightTooltipText bg-lightTooltipBackground shadow-popover dark:text-darkTooltipText dark:bg-darkTooltipBackground dark:shadow-darkPopover;
133
+
134
+ .apexcharts-tooltip-title {
135
+ @apply bg-transparent border-b-lightTooltipText/10 dark:border-b-darkTooltipText/10;
136
+ }
137
+ }
128
138
  }
129
139
  </style>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#d97757" fill-rule="evenodd" d="M21 10.95h3v3.1h-3v3.03h-1.49V20H18v-2.92h-1.49V20H15v-2.92H9V20H7.49v-2.92H6V20H4.49v-2.92H3v-3.03H0v-3.1h3V5h18zM6 10.95h1.49V8.1H6zm10.51 0H18V8.1h-1.49z" clip-rule="evenodd"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#2f80ed" fill-rule="evenodd" d="M8.09.46a6.1 6.1 0 0 1 6.61 1.28 6.1 6.1 0 0 1 7.54 7.46 6.1 6.1 0 0 1-2.79 10.26 6.1 6.1 0 0 1-10.22 2.78 6.1 6.1 0 0 1-7.53-7.43A6.1 6.1 0 0 1 4.55 4.53 6 6 0 0 1 8.09.46M7.28 8.31a.85.85 0 0 0-1.47.84l1.69 2.96-1.69 2.85a.85.85 0 0 0 1.46.87l1.94-3.28a.85.85 0 0 0 .01-.85zm5.45 6.24a.85.85 0 0 0 0 1.69h4.85a.85.85 0 0 0 0-1.69z" clip-rule="evenodd"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="gemini" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop stop-color="#4285F4"/><stop offset=".52" stop-color="#9B72CB"/><stop offset="1" stop-color="#D96570"/></linearGradient></defs><path fill="url(#gemini)" d="M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"/></svg>
@@ -15,10 +15,11 @@ export interface StorageAdapter {
15
15
  * @param key - The key of the file to be uploaded e.g. "uploads/file.txt"
16
16
  * @param expiresIn - The expiration time in seconds for the presigned URL
17
17
  * @param contentType - The content type of the file to be uploaded, e.g. "image/png"
18
+ * @param contentLength - Optional exact size of the file in bytes. When passed, the upload should be rejected if the body has another size.
18
19
  *
19
20
  * @returns A promise that resolves to an object containing the upload URL and any extra parameters which should be sent with PUT multipart form data
20
21
  */
21
- getUploadSignedUrl(key: string, contentType: string, expiresIn?: number): Promise<{
22
+ getUploadSignedUrl(key: string, contentType: string, expiresIn?: number, contentLength?: number): Promise<{
22
23
  uploadUrl: string;
23
24
  uploadExtraParams?: Record<string, string>;
24
25
  }>;
@@ -14,10 +14,11 @@ export interface StorageAdapter {
14
14
  * @param key - The key of the file to be uploaded e.g. "uploads/file.txt"
15
15
  * @param expiresIn - The expiration time in seconds for the presigned URL
16
16
  * @param contentType - The content type of the file to be uploaded, e.g. "image/png"
17
+ * @param contentLength - Optional exact size of the file in bytes. When passed, the upload should be rejected if the body has another size.
17
18
  *
18
19
  * @returns A promise that resolves to an object containing the upload URL and any extra parameters which should be sent with PUT multipart form data
19
20
  */
20
- getUploadSignedUrl(key: string, contentType: string, expiresIn?: number): Promise<{
21
+ getUploadSignedUrl(key: string, contentType: string, expiresIn?: number, contentLength?: number): Promise<{
21
22
  uploadUrl: string;
22
23
  uploadExtraParams?: Record<string, string>;
23
24
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"StorageAdapter.d.ts","sourceRoot":"","sources":["../../../types/adapters/StorageAdapter.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAChF,SAAS,EAAE,MAAM,CAAC;QAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC5C,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjE;;;;;OAKG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAG/C;;;;OAIG;IACH,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAGlD;;;;OAIG;IACH,cAAc,CAAC,+BAA+B,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvE;;OAEG;IACH,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;OAIG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9C;;;;;;;;;QASI;IACJ,aAAa,CAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAA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AAC;IAE/C;;;;OAIG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9C;;;;;;;;;QASI;IACJ,aAAa,CAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACnG;AAED,UAAU,YAAY;IACpB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "4.18.0",
3
+ "version": "4.19.1",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",