@intuitionrobotics/thunderstorm 0.46.0 → 0.47.0
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/app-backend/api/v1/utils/version/_assert.js +20 -0
- package/app-backend/api/v1/utils/version/_assert.js.map +1 -1
- package/app-backend/api/v1/utils/version/assert.js +20 -0
- package/app-backend/api/v1/utils/version/assert.js.map +1 -1
- package/app-backend/core/BaseStorm.d.ts +1 -1
- package/app-backend/core/BaseStorm.js +22 -2
- package/app-backend/core/BaseStorm.js.map +1 -1
- package/app-backend/core/Storm.d.ts +7 -0
- package/app-backend/core/Storm.js +46 -9
- package/app-backend/core/Storm.js.map +1 -1
- package/app-backend/exceptions.d.ts +3 -3
- package/app-backend/exceptions.js +2 -2
- package/app-backend/exceptions.js.map +1 -1
- package/app-backend/modules/CleanupScheduler.d.ts +2 -2
- package/app-backend/modules/CleanupScheduler.js +5 -6
- package/app-backend/modules/CleanupScheduler.js.map +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.d.ts +3 -3
- package/app-backend/modules/FirestoreBackupScheduler.js +9 -23
- package/app-backend/modules/FirestoreBackupScheduler.js.map +1 -1
- package/app-backend/modules/ForceUpgrade.d.ts +2 -2
- package/app-backend/modules/ForceUpgrade.js +28 -8
- package/app-backend/modules/ForceUpgrade.js.map +1 -1
- package/app-backend/modules/SlackModule.d.ts +5 -6
- package/app-backend/modules/SlackModule.js +7 -9
- package/app-backend/modules/SlackModule.js.map +1 -1
- package/app-backend/modules/_imports.d.ts +10 -0
- package/app-backend/modules/_imports.js +47 -0
- package/app-backend/modules/_imports.js.map +1 -0
- package/app-backend/modules/http/AxiosHttpModule.d.ts +7 -17
- package/app-backend/modules/http/AxiosHttpModule.js +47 -20
- package/app-backend/modules/http/AxiosHttpModule.js.map +1 -1
- package/app-backend/modules/http/types.d.ts +5 -5
- package/app-backend/modules/proxy/RemoteProxy.d.ts +3 -4
- package/app-backend/modules/proxy/RemoteProxy.js +30 -11
- package/app-backend/modules/proxy/RemoteProxy.js.map +1 -1
- package/app-backend/modules/proxy/RemoteProxyCaller.d.ts +7 -7
- package/app-backend/modules/proxy/RemoteProxyCaller.js +30 -12
- package/app-backend/modules/proxy/RemoteProxyCaller.js.map +1 -1
- package/app-backend/modules/server/HttpServer.d.ts +5 -6
- package/app-backend/modules/server/HttpServer.js +32 -10
- package/app-backend/modules/server/HttpServer.js.map +1 -1
- package/app-backend/modules/server/server-api.d.ts +9 -13
- package/app-backend/modules/server/server-api.js +23 -52
- package/app-backend/modules/server/server-api.js.map +1 -1
- package/app-backend/modules/server/server-errors.d.ts +2 -2
- package/app-backend/modules/server/server-errors.js +26 -7
- package/app-backend/modules/server/server-errors.js.map +1 -1
- package/app-backend/utils/LogClient_File.d.ts +2 -2
- package/app-backend/utils/LogClient_File.js +30 -12
- package/app-backend/utils/LogClient_File.js.map +1 -1
- package/app-backend/utils/file.js +20 -0
- package/app-backend/utils/file.js.map +1 -1
- package/app-backend/utils/promisify-request.js +4 -5
- package/app-backend/utils/promisify-request.js.map +1 -1
- package/app-backend/utils/to-be-removed.js +2 -2
- package/app-backend/utils/to-be-removed.js.map +1 -1
- package/app-backend/utils/types.d.ts +10 -7
- package/app-backend/utils/types.js +22 -2
- package/app-backend/utils/types.js.map +1 -1
- package/app-frontend/components/ActionButton.js +20 -0
- package/app-frontend/components/ActionButton.js.map +1 -1
- package/app-frontend/components/DropDown.d.ts +4 -4
- package/app-frontend/components/DropDown.js +25 -6
- package/app-frontend/components/DropDown.js.map +1 -1
- package/app-frontend/components/FilterInput.d.ts +2 -2
- package/app-frontend/components/FilterInput.js +23 -4
- package/app-frontend/components/FilterInput.js.map +1 -1
- package/app-frontend/components/GenericSelect.d.ts +2 -2
- package/app-frontend/components/GenericSelect.js.map +1 -1
- package/app-frontend/components/GenericTabs.d.ts +4 -0
- package/app-frontend/components/GenericTabs.js +11 -0
- package/app-frontend/components/GenericTabs.js.map +1 -0
- package/app-frontend/components/Overlay.d.ts +2 -2
- package/app-frontend/components/Overlay.js +20 -0
- package/app-frontend/components/Overlay.js.map +1 -1
- package/app-frontend/components/TS_Input.d.ts +2 -2
- package/app-frontend/components/TS_Input.js +23 -3
- package/app-frontend/components/TS_Input.js.map +1 -1
- package/app-frontend/components/TS_Table.d.ts +8 -8
- package/app-frontend/components/TS_Table.js +20 -0
- package/app-frontend/components/TS_Table.js.map +1 -1
- package/app-frontend/components/TS_TextArea.d.ts +2 -2
- package/app-frontend/components/TS_TextArea.js +20 -0
- package/app-frontend/components/TS_TextArea.js.map +1 -1
- package/app-frontend/components/Tabs.d.ts +2 -2
- package/app-frontend/components/adapter/Adapter.d.ts +15 -15
- package/app-frontend/components/adapter/Adapter.js +6 -6
- package/app-frontend/components/adapter/Adapter.js.map +1 -1
- package/app-frontend/components/adapter/BaseRenderer.d.ts +7 -7
- package/app-frontend/components/adapter/BaseRenderer.js +20 -0
- package/app-frontend/components/adapter/BaseRenderer.js.map +1 -1
- package/app-frontend/components/checkbox/TS_Checkbox.d.ts +3 -3
- package/app-frontend/components/checkbox/TS_Checkbox.js +1 -2
- package/app-frontend/components/checkbox/TS_Checkbox.js.map +1 -1
- package/app-frontend/components/checkbox/TS_CheckboxField.d.ts +3 -3
- package/app-frontend/components/checkbox/TS_CheckboxField.js +18 -0
- package/app-frontend/components/checkbox/TS_CheckboxField.js.map +1 -1
- package/app-frontend/components/form/Form.d.ts +4 -5
- package/app-frontend/components/form/Form.js +22 -2
- package/app-frontend/components/form/Form.js.map +1 -1
- package/app-frontend/components/form/types.d.ts +5 -6
- package/app-frontend/components/form/types.js +20 -0
- package/app-frontend/components/form/types.js.map +1 -1
- package/app-frontend/components/playground/Playground.d.ts +3 -3
- package/app-frontend/components/playground/Playground.js +2 -3
- package/app-frontend/components/playground/Playground.js.map +1 -1
- package/app-frontend/components/tree/MenuComponent.d.ts +1 -1
- package/app-frontend/components/tree/MenuComponent.js +22 -2
- package/app-frontend/components/tree/MenuComponent.js.map +1 -1
- package/app-frontend/components/tree/MultiTypeAdaptor.d.ts +1 -1
- package/app-frontend/components/tree/MultiTypeAdaptor.js +22 -2
- package/app-frontend/components/tree/MultiTypeAdaptor.js.map +1 -1
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js +20 -0
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js.map +1 -1
- package/app-frontend/components/tree/Tree.d.ts +4 -4
- package/app-frontend/components/tree/Tree.js +13 -13
- package/app-frontend/components/tree/Tree.js.map +1 -1
- package/app-frontend/components/tree/types.d.ts +1 -1
- package/app-frontend/components/tree/types.js +20 -0
- package/app-frontend/components/tree/types.js.map +1 -1
- package/app-frontend/components/treeicons.js.map +1 -1
- package/app-frontend/components/types.d.ts +2 -2
- package/app-frontend/components/types.js +20 -0
- package/app-frontend/components/types.js.map +1 -1
- package/app-frontend/core/AbstractThunder.d.ts +4 -1
- package/app-frontend/core/AbstractThunder.js +32 -0
- package/app-frontend/core/AbstractThunder.js.map +1 -1
- package/app-frontend/core/AppPage.d.ts +1 -1
- package/app-frontend/core/AppPage.js +20 -0
- package/app-frontend/core/AppPage.js.map +1 -1
- package/app-frontend/core/AppWrapper.d.ts +1 -1
- package/app-frontend/core/AppWrapper.js +23 -2
- package/app-frontend/core/AppWrapper.js.map +1 -1
- package/app-frontend/core/BaseComponent.d.ts +1 -2
- package/app-frontend/core/BaseComponent.js +18 -18
- package/app-frontend/core/BaseComponent.js.map +1 -1
- package/app-frontend/core/SimpleScriptInjector.d.ts +1 -1
- package/app-frontend/core/SimpleScriptInjector.js +22 -2
- package/app-frontend/core/SimpleScriptInjector.js.map +1 -1
- package/app-frontend/core/Thunder.js +27 -8
- package/app-frontend/core/Thunder.js.map +1 -1
- package/app-frontend/core/thunder-dispatcher.d.ts +5 -6
- package/app-frontend/core/thunder-dispatcher.js +7 -19
- package/app-frontend/core/thunder-dispatcher.js.map +1 -1
- package/app-frontend/modules/ConnectivityModule.d.ts +1 -1
- package/app-frontend/modules/ConnectivityModule.js +4 -4
- package/app-frontend/modules/ConnectivityModule.js.map +1 -1
- package/app-frontend/modules/ForceUpgrade.d.ts +2 -2
- package/app-frontend/modules/ForceUpgrade.js +25 -6
- package/app-frontend/modules/ForceUpgrade.js.map +1 -1
- package/app-frontend/modules/HistoryModule.d.ts +2 -3
- package/app-frontend/modules/HistoryModule.js +6 -10
- package/app-frontend/modules/HistoryModule.js.map +1 -1
- package/app-frontend/modules/ResourcesModule.d.ts +2 -2
- package/app-frontend/modules/ResourcesModule.js +2 -2
- package/app-frontend/modules/ResourcesModule.js.map +1 -1
- package/app-frontend/modules/StorageModule.d.ts +1 -1
- package/app-frontend/modules/StorageModule.js +5 -6
- package/app-frontend/modules/StorageModule.js.map +1 -1
- package/app-frontend/modules/ThunderstormModule.d.ts +2 -2
- package/app-frontend/modules/ThunderstormModule.js +3 -3
- package/app-frontend/modules/ThunderstormModule.js.map +1 -1
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.d.ts +3 -3
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js +20 -0
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js.map +1 -1
- package/app-frontend/modules/component-loader/entry-component-loading-module.d.ts +1 -1
- package/app-frontend/modules/component-loader/entry-component-loading-module.js +25 -4
- package/app-frontend/modules/component-loader/entry-component-loading-module.js.map +1 -1
- package/app-frontend/modules/dialog/Dialog.d.ts +5 -5
- package/app-frontend/modules/dialog/Dialog.js +23 -1
- package/app-frontend/modules/dialog/Dialog.js.map +1 -1
- package/app-frontend/modules/dialog/DialogModule.d.ts +3 -3
- package/app-frontend/modules/dialog/DialogModule.js +24 -4
- package/app-frontend/modules/dialog/DialogModule.js.map +1 -1
- package/app-frontend/modules/http/HttpClient.js +20 -0
- package/app-frontend/modules/http/HttpClient.js.map +1 -1
- package/app-frontend/modules/http/XhrHttpModule.d.ts +3 -19
- package/app-frontend/modules/http/XhrHttpModule.js +21 -22
- package/app-frontend/modules/http/XhrHttpModule.js.map +1 -1
- package/app-frontend/modules/locale/LocaleModule.d.ts +2 -2
- package/app-frontend/modules/locale/LocaleModule.js +6 -7
- package/app-frontend/modules/locale/LocaleModule.js.map +1 -1
- package/app-frontend/modules/locale/types.d.ts +3 -3
- package/app-frontend/modules/menu/MenuAndButton.d.ts +1 -1
- package/app-frontend/modules/menu/MenuAndButton.js +3 -3
- package/app-frontend/modules/menu/MenuAndButton.js.map +1 -1
- package/app-frontend/modules/menu/MenuModule.d.ts +3 -3
- package/app-frontend/modules/menu/MenuModule.js +5 -6
- package/app-frontend/modules/menu/MenuModule.js.map +1 -1
- package/app-frontend/modules/menu/PopupMenu.d.ts +3 -3
- package/app-frontend/modules/menu/PopupMenu.js +4 -4
- package/app-frontend/modules/menu/PopupMenu.js.map +1 -1
- package/app-frontend/modules/routing/RoutingModule.d.ts +4 -4
- package/app-frontend/modules/routing/RoutingModule.js +25 -6
- package/app-frontend/modules/routing/RoutingModule.js.map +1 -1
- package/app-frontend/modules/routing/route.d.ts +1 -1
- package/app-frontend/modules/routing/route.js +20 -0
- package/app-frontend/modules/routing/route.js.map +1 -1
- package/app-frontend/modules/toaster/BaseToaster.d.ts +4 -4
- package/app-frontend/modules/toaster/BaseToaster.js +22 -0
- package/app-frontend/modules/toaster/BaseToaster.js.map +1 -1
- package/app-frontend/modules/toaster/Toaster.js +20 -0
- package/app-frontend/modules/toaster/Toaster.js.map +1 -1
- package/app-frontend/modules/toaster/ToasterModule.d.ts +5 -5
- package/app-frontend/modules/toaster/ToasterModule.js +28 -8
- package/app-frontend/modules/toaster/ToasterModule.js.map +1 -1
- package/app-frontend/modules/tooltip/Tooltip.d.ts +2 -2
- package/app-frontend/modules/tooltip/Tooltip.js +22 -2
- package/app-frontend/modules/tooltip/Tooltip.js.map +1 -1
- package/app-frontend/modules/tooltip/TooltipModule.d.ts +3 -3
- package/app-frontend/modules/tooltip/TooltipModule.js +25 -6
- package/app-frontend/modules/tooltip/TooltipModule.js.map +1 -1
- package/app-frontend/tools/KeyboardListener.d.ts +1 -1
- package/app-frontend/tools/KeyboardListener.js +17 -0
- package/app-frontend/tools/KeyboardListener.js.map +1 -1
- package/app-frontend/tools/Stylable.d.ts +1 -1
- package/app-frontend/tools/Stylable.js +20 -0
- package/app-frontend/tools/Stylable.js.map +1 -1
- package/app-frontend/types/renderer-map.js +21 -1
- package/app-frontend/types/renderer-map.js.map +1 -1
- package/app-frontend/utils/tools.js +23 -3
- package/app-frontend/utils/tools.js.map +1 -1
- package/app-frontend/widgets/FieldEditor.d.ts +1 -1
- package/app-frontend/widgets/FieldEditorClick.d.ts +2 -2
- package/app-frontend/widgets/FieldEditorClick.js +3 -3
- package/app-frontend/widgets/FieldEditorClick.js.map +1 -1
- package/app-frontend/widgets/FieldEditorWithButtons.d.ts +2 -2
- package/app-frontend/widgets/FieldEditorWithButtons.js +3 -3
- package/app-frontend/widgets/FieldEditorWithButtons.js.map +1 -1
- package/app-frontend/widgets/click-to-drag/ClickToDrag.d.ts +2 -2
- package/app-frontend/widgets/click-to-drag/OverlayWithDocumentListener.d.ts +2 -2
- package/app-frontend/widgets/click-to-drag/OverlayWithDocumentListener.js.map +1 -1
- package/backend-test.d.ts +1 -0
- package/backend-test.js +38 -0
- package/backend-test.js.map +1 -0
- package/backend.d.ts +17 -0
- package/backend.js +54 -0
- package/backend.js.map +1 -0
- package/frontend.d.ts +54 -0
- package/frontend.js +91 -0
- package/frontend.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +41 -0
- package/index.js.map +1 -1
- package/package.json +8 -8
- package/shared/BaseHttpModule.d.ts +4 -6
- package/shared/BaseHttpModule.js +5 -6
- package/shared/BaseHttpModule.js.map +1 -1
- package/shared/BaseHttpRequest.d.ts +5 -7
- package/shared/BaseHttpRequest.js +12 -13
- package/shared/BaseHttpRequest.js.map +1 -1
- package/shared/consts.d.ts +1 -1
- package/shared/consts.js +20 -0
- package/shared/consts.js.map +1 -1
- package/shared/force-upgrade.d.ts +2 -2
- package/shared/force-upgrade.js +20 -0
- package/shared/force-upgrade.js.map +1 -1
- package/shared/request-types.d.ts +5 -5
- package/shared/request-types.js +21 -1
- package/shared/request-types.js.map +1 -1
- package/shared/types.d.ts +12 -11
- package/shared/types.js +21 -1
- package/shared/types.js.map +1 -1
- package/test-backend/StormTester.js +27 -7
- package/test-backend/StormTester.js.map +1 -1
- package/test-frontend/ThunderTester.js +20 -0
- package/test-frontend/ThunderTester.js.map +1 -1
- package/app-frontend/components/playground/Example_NewProps.d.ts +0 -23
- package/app-frontend/components/playground/Example_NewProps.js +0 -43
- package/app-frontend/components/playground/Example_NewProps.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StormTester.js","sourceRoot":"","sources":["../../src/main/test-backend/StormTester.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"StormTester.js","sourceRoot":"","sources":["../../src/main/test-backend/StormTester.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,4DAA4E;AAC5E,6DAAwD;AACxD,yBAAyB;AACzB,iEAG6C;AAC7C,0DAKqC;AAErC,MAAa,WACZ,SAAQ,qBAAS;IAIjB;QACC,KAAK,EAAE,CAAC;QAHD,aAAQ,GAAG,IAAI,mBAAQ,EAAE,CAAC;QAmClC,YAAO,GAAG,GAAG,EAAE;YACd,8BAAoB,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;YAE7D,IAAI,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC;YAC9I,IAAI,CAAC,oBAAoB;gBACxB,MAAM,IAAI,0CAA8B,CAAC,2CAA2C,CAAC,CAAC;YAEvF,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;YAC9E,MAAM,GAAG,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AAG,CAAC,EAAE,CAAC;gBACpB,IAAI,CAAC,QAAQ,CAAC,YAAY,WAAW,uBAAuB,UAAU,IAAI,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACnH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACjB,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,YAAY,WAAW,iCAAiC,CAAC,CAAA;YACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CAAC;aACD,KAAK,CAAC,MAAM,CAAC,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC,YAAY,WAAW,iBAAiB,EAAE,MAAM,CAAC,CAAC;YAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;IACR,CAAC;CA2BD;AA/DD,kCA+DC"}
|
|
@@ -1,2 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Thunderstorm is a full web app framework!
|
|
4
|
+
*
|
|
5
|
+
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
+
* Typescript & React frontend infrastructure
|
|
7
|
+
*
|
|
8
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
2
22
|
//# sourceMappingURL=ThunderTester.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderTester.js","sourceRoot":"","sources":["../../src/main/test-frontend/ThunderTester.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ThunderTester.js","sourceRoot":"","sources":["../../src/main/test-frontend/ThunderTester.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare type Props<P> = {
|
|
3
|
-
name: string;
|
|
4
|
-
renderer: React.ComponentType<P>;
|
|
5
|
-
data: P[];
|
|
6
|
-
showList?: boolean;
|
|
7
|
-
showToggle?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare type State = {
|
|
10
|
-
index: number;
|
|
11
|
-
};
|
|
12
|
-
declare type InferProps<T> = T extends React.ComponentType<infer P> ? P : "blah blah";
|
|
13
|
-
export declare class Example_NewProps<T, P = InferProps<T>> extends React.Component<Props<P>, State> {
|
|
14
|
-
static defaultProps: {
|
|
15
|
-
showList: boolean;
|
|
16
|
-
showToggle: boolean;
|
|
17
|
-
};
|
|
18
|
-
constructor(props: Props<P>);
|
|
19
|
-
render(): React.JSX.Element;
|
|
20
|
-
private renderToggle;
|
|
21
|
-
private renderList;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Example_NewProps = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
class Example_NewProps extends React.Component {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
this.state = { index: 0 };
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const Renderer = this.props.renderer;
|
|
12
|
-
return React.createElement("div", null,
|
|
13
|
-
React.createElement("div", { style: { marginBottom: "10px" } }, this.props.name),
|
|
14
|
-
this.renderList(Renderer),
|
|
15
|
-
this.renderToggle(Renderer));
|
|
16
|
-
}
|
|
17
|
-
renderToggle(Renderer) {
|
|
18
|
-
if (!this.props.showToggle)
|
|
19
|
-
return;
|
|
20
|
-
return React.createElement("div", null,
|
|
21
|
-
React.createElement("div", { onClick: () => {
|
|
22
|
-
this.setState(state => {
|
|
23
|
-
let index = state.index + 1;
|
|
24
|
-
if (index >= this.props.data.length)
|
|
25
|
-
index = 0;
|
|
26
|
-
return { index };
|
|
27
|
-
});
|
|
28
|
-
}, style: { width: "fit-content" } }, "click to switch"),
|
|
29
|
-
React.createElement(Renderer, Object.assign({}, this.props.data[this.state.index])));
|
|
30
|
-
}
|
|
31
|
-
renderList(Renderer) {
|
|
32
|
-
if (!this.props.showList)
|
|
33
|
-
return;
|
|
34
|
-
return React.createElement("div", { className: "ll_v_l", style: { marginBottom: "20px" } }, this.props.data.map((_data, index) => React.createElement("div", { key: index, style: { marginBottom: "5px" } },
|
|
35
|
-
React.createElement(Renderer, Object.assign({}, _data)))));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.Example_NewProps = Example_NewProps;
|
|
39
|
-
Example_NewProps.defaultProps = {
|
|
40
|
-
showList: true,
|
|
41
|
-
showToggle: true
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=Example_NewProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Example_NewProps.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/components/playground/Example_NewProps.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAa/B,MAAa,gBACZ,SAAQ,KAAK,CAAC,SAA0B;IAOxC,YAAY,KAAe;QAC1B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC;IACzB,CAAC;IAED,MAAM;QACL,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;QAC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