@etsoo/materialui 1.3.70 → 1.3.72
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.
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
name: Node.js Package
|
|
7
7
|
|
|
8
8
|
# Event to trigger the action
|
|
9
|
-
on:
|
|
9
|
+
on:
|
|
10
|
+
[push]
|
|
10
11
|
# release:
|
|
11
12
|
# types: [created]
|
|
12
13
|
|
|
@@ -22,14 +23,14 @@ jobs:
|
|
|
22
23
|
steps:
|
|
23
24
|
# https://github.com/actions/checkout, This action checks-out your repository under $GITHUB_WORKSPACE
|
|
24
25
|
# so your workflow can access it.
|
|
25
|
-
- uses: actions/checkout@
|
|
26
|
-
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
27
28
|
# Set up your GitHub Actions workflow with a specific version of node.js
|
|
28
29
|
# Setup .npmrc file to publish to npm
|
|
29
|
-
- uses: actions/setup-node@
|
|
30
|
+
- uses: actions/setup-node@v4
|
|
30
31
|
with:
|
|
31
|
-
node-version:
|
|
32
|
-
registry-url:
|
|
32
|
+
node-version: "20.x"
|
|
33
|
+
registry-url: "https://registry.npmjs.org"
|
|
33
34
|
|
|
34
35
|
# Named after Continuous Integration, installs dependencies directly from package-lock.json
|
|
35
36
|
# ci vs install
|
|
@@ -45,4 +46,4 @@ jobs:
|
|
|
45
46
|
# For scoped package, make it public for free service
|
|
46
47
|
- run: npm publish --access public
|
|
47
48
|
env:
|
|
48
|
-
NODE_AUTH_TOKEN: ${{ secrets.ETSOONpmToken }}
|
|
49
|
+
NODE_AUTH_TOKEN: ${{ secrets.ETSOONpmToken }}
|
package/lib/app/ReactApp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoreApp, IApp, IAppSettings, ICoreApp, IUser } from "@etsoo/appscript";
|
|
1
|
+
import { CoreApp, FormatResultCustomCallback, IApp, IAppSettings, ICoreApp, IUser } from "@etsoo/appscript";
|
|
2
2
|
import { INotifier, NotificationReturn } from "@etsoo/notificationbase";
|
|
3
3
|
import { DataTypes, IActionResult } from "@etsoo/shared";
|
|
4
4
|
import React from "react";
|
|
@@ -143,8 +143,9 @@ export declare class ReactApp<S extends IAppSettings, D extends IUser, P extends
|
|
|
143
143
|
* Override alert action result
|
|
144
144
|
* @param result Action result
|
|
145
145
|
* @param callback Callback
|
|
146
|
+
* @param forceToLocal Force to local labels
|
|
146
147
|
*/
|
|
147
|
-
alertResult(result: IActionResult | string, callback?: NotificationReturn<void
|
|
148
|
+
alertResult(result: IActionResult | string, callback?: NotificationReturn<void>, forceToLocal?: FormatResultCustomCallback): void;
|
|
148
149
|
/**
|
|
149
150
|
* Change culture
|
|
150
151
|
* @param culture New culture definition
|
package/lib/app/ReactApp.js
CHANGED
|
@@ -86,9 +86,12 @@ export class ReactApp extends CoreApp {
|
|
|
86
86
|
* Override alert action result
|
|
87
87
|
* @param result Action result
|
|
88
88
|
* @param callback Callback
|
|
89
|
+
* @param forceToLocal Force to local labels
|
|
89
90
|
*/
|
|
90
|
-
alertResult(result, callback) {
|
|
91
|
-
const message = typeof result === "string"
|
|
91
|
+
alertResult(result, callback, forceToLocal) {
|
|
92
|
+
const message = typeof result === "string"
|
|
93
|
+
? result
|
|
94
|
+
: this.formatResult(result, forceToLocal);
|
|
92
95
|
if (message.endsWith(")")) {
|
|
93
96
|
const startPos = message.lastIndexOf("(");
|
|
94
97
|
if (startPos > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.72",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
51
|
"@emotion/react": "^11.11.4",
|
|
52
52
|
"@emotion/styled": "^11.11.5",
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
53
|
+
"@etsoo/appscript": "^1.4.99",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.43",
|
|
55
|
-
"@etsoo/react": "^1.7.
|
|
55
|
+
"@etsoo/react": "^1.7.57",
|
|
56
56
|
"@etsoo/shared": "^1.2.42",
|
|
57
57
|
"@mui/icons-material": "^5.15.19",
|
|
58
58
|
"@mui/material": "^5.15.19",
|
package/src/app/ReactApp.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
BridgeUtils,
|
|
3
3
|
CoreApp,
|
|
4
4
|
createClient,
|
|
5
|
+
FormatResultCustomCallback,
|
|
5
6
|
IApp,
|
|
6
7
|
IAppSettings,
|
|
7
8
|
ICoreApp,
|
|
@@ -278,13 +279,17 @@ export class ReactApp<
|
|
|
278
279
|
* Override alert action result
|
|
279
280
|
* @param result Action result
|
|
280
281
|
* @param callback Callback
|
|
282
|
+
* @param forceToLocal Force to local labels
|
|
281
283
|
*/
|
|
282
284
|
override alertResult(
|
|
283
285
|
result: IActionResult | string,
|
|
284
|
-
callback?: NotificationReturn<void
|
|
286
|
+
callback?: NotificationReturn<void>,
|
|
287
|
+
forceToLocal?: FormatResultCustomCallback
|
|
285
288
|
) {
|
|
286
289
|
const message =
|
|
287
|
-
typeof result === "string"
|
|
290
|
+
typeof result === "string"
|
|
291
|
+
? result
|
|
292
|
+
: this.formatResult(result, forceToLocal);
|
|
288
293
|
if (message.endsWith(")")) {
|
|
289
294
|
const startPos = message.lastIndexOf("(");
|
|
290
295
|
if (startPos > 0) {
|