@zerotal/admin 1.7.0 → 1.7.3
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.
- package/api-surface.md +4 -4
- package/package.json +9 -9
package/api-surface.md
CHANGED
|
@@ -100,6 +100,7 @@ class AdminPage = {
|
|
|
100
100
|
static slug: string
|
|
101
101
|
static title: string
|
|
102
102
|
static using: Compose
|
|
103
|
+
$: (strings: TemplateStringsArray, ...values: unknown[]) => void
|
|
103
104
|
$refresh: () => void
|
|
104
105
|
$set: (key: string, value: unknown) => void
|
|
105
106
|
_applyClientUpdate: (key: string, value: unknown, arrayKey?: string) => Promise<void>
|
|
@@ -121,10 +122,10 @@ class AdminPage = {
|
|
|
121
122
|
_prevChildIds: string[]
|
|
122
123
|
_redirectStatus: number | null
|
|
123
124
|
_redirectUrl: string | null
|
|
125
|
+
_resolveTitle: () => string | null
|
|
124
126
|
_shouldRefresh: boolean
|
|
125
127
|
_streamSender: ((ref: string, content: string, replace: boolean) => void) | null
|
|
126
128
|
_taskSignal: AbortSignal | null
|
|
127
|
-
_titleValue: string | null
|
|
128
129
|
_validateField: (field: string) => Promise<void>
|
|
129
130
|
addError: (field: string, message: string) => void
|
|
130
131
|
bind: (key: string, optionValue?: string) => Record<string, unknown>
|
|
@@ -132,7 +133,7 @@ class AdminPage = {
|
|
|
132
133
|
child: <C extends Component>(ChildClass: new () => C, opts?: { key?: string | number; props?: Partial<C>; lazy?: boolean; defer?: boolean; stream?: boolean; slots?: Record<string, string>;}) => Promise<HtmlNode>
|
|
133
134
|
clearDurable: () => void
|
|
134
135
|
client: (script: string) => void
|
|
135
|
-
currentUrl: (
|
|
136
|
+
currentUrl: (options?: CurrentUrlOptions) => string
|
|
136
137
|
dispatch: <K extends string>(name: K, ...args: K extends EventName ? EventArgs<FlowEvents[K]> : [payload?: Record<string, unknown>]) => void
|
|
137
138
|
dispatchSelf: <K extends string>(name: K, ...args: K extends EventName ? EventArgs<FlowEvents[K]> : [payload?: Record<string, unknown>]) => void
|
|
138
139
|
dispatchTo: <K extends string>(component: string, name: K, ...args: K extends EventName ? EventArgs<FlowEvents[K]> : [payload?: Record<string, unknown>]) => void
|
|
@@ -141,7 +142,7 @@ class AdminPage = {
|
|
|
141
142
|
flash: (message: string, optionsOrLevel?: FlashLevel | FlashOptions) => FlashBuilder
|
|
142
143
|
hasSlot: (name?: string) => boolean
|
|
143
144
|
layout: (page: HtmlNode) => HtmlNode | Promise<HtmlNode>
|
|
144
|
-
navigateCurrent: (
|
|
145
|
+
navigateCurrent: (options?: CurrentUrlOptions) => Promise<void>
|
|
145
146
|
onBoot: (_ctx?: HttpContext) => Promise<void>
|
|
146
147
|
onDehydrate: () => Promise<void>
|
|
147
148
|
onError: (error: Error) => Promise<void>
|
|
@@ -162,7 +163,6 @@ class AdminPage = {
|
|
|
162
163
|
signal: AbortSignal
|
|
163
164
|
slot: (name?: string) => HtmlNode
|
|
164
165
|
stream: (ref: string, content: string, opts?: { replace?: boolean;}) => void
|
|
165
|
-
title: { (): string; (value: string): void;}
|
|
166
166
|
validate: (rulesOrForm?: ValidationRules | { __isFlowForm: true; _validateToErrors(): Record<string, string[]>;}) => Promise<void>
|
|
167
167
|
}
|
|
168
168
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/admin",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"typecheck": "tsc --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zerotal/cache": "1.7.
|
|
36
|
-
"@zerotal/core": "1.7.
|
|
37
|
-
"@zerotal/flow": "1.7.
|
|
38
|
-
"@zerotal/flow-ui": "1.7.
|
|
39
|
-
"@zerotal/validator": "1.7.
|
|
35
|
+
"@zerotal/cache": "1.7.3",
|
|
36
|
+
"@zerotal/core": "1.7.3",
|
|
37
|
+
"@zerotal/flow": "1.7.3",
|
|
38
|
+
"@zerotal/flow-ui": "1.7.3",
|
|
39
|
+
"@zerotal/validator": "1.7.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@zerotal/orm": "1.7.
|
|
43
|
-
"@zerotal/auth": "1.7.
|
|
44
|
-
"@zerotal/queue": "1.7.
|
|
42
|
+
"@zerotal/orm": "1.7.3",
|
|
43
|
+
"@zerotal/auth": "1.7.3",
|
|
44
|
+
"@zerotal/queue": "1.7.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@zerotal/orm": "^1.0.0",
|