uiconfig-blueprint 0.1.0-dev.14 → 0.1.0-dev.16
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/LICENSE +21 -190
- package/README.md +26 -15
- package/dist/ConfigObject.d.ts +7 -7
- package/dist/UiConfigRendererBlueprint.d.ts +3 -3
- package/dist/bpComponents/BPButtonComponent.d.ts +4 -4
- package/dist/bpComponents/BPColorInputComponent.d.ts +4 -4
- package/dist/bpComponents/BPComponent.d.ts +4 -4
- package/dist/bpComponents/BPContainerComponent.d.ts +4 -4
- package/dist/bpComponents/BPDropdownInputComponent.d.ts +5 -4
- package/dist/bpComponents/BPFileComponent.d.ts +5 -5
- package/dist/bpComponents/BPFolderComponent.d.ts +6 -6
- package/dist/bpComponents/BPInputComponent.d.ts +5 -5
- package/dist/bpComponents/BPLabelledComponent.d.ts +1 -1
- package/dist/bpComponents/BPNumberInputComponent.d.ts +5 -4
- package/dist/bpComponents/BPPanelComponent.d.ts +5 -5
- package/dist/bpComponents/BPSliderInputComponent.d.ts +4 -4
- package/dist/bpComponents/BPTextInputComponent.d.ts +7 -4
- package/dist/bpComponents/BPToggleInputComponent.d.ts +4 -4
- package/dist/bpComponents/BPValueComponent.d.ts +3 -3
- package/dist/bpComponents/BPVectorInputComponent.d.ts +6 -5
- package/dist/bpComponents/InputGroup2.d.ts +2 -2
- package/dist/components/AppToaster.d.ts +2 -2
- package/dist/components/ConfigurationPanelComponent.d.ts +2 -1
- package/dist/components/DialogContext.d.ts +4 -4
- package/dist/components/DraggableIcon.d.ts +2 -2
- package/dist/components/ExtendedNumericInput.d.ts +3 -3
- package/dist/components/FileComponent.d.ts +3 -3
- package/dist/components/FormGroupComponent.d.ts +2 -2
- package/dist/components/InspectorStackComponent.d.ts +5 -4
- package/dist/components/NumericInput.d.ts +4 -3
- package/dist/components/VisualStyleContext.d.ts +3 -3
- package/dist/components/axesIcons.d.ts +7 -7
- package/dist/components/bpIconWrapper.d.ts +2 -2
- package/dist/components/iconMapping.d.ts +195 -195
- package/dist/components/shapesIcons.d.ts +100 -100
- package/dist/components/variableIcons.d.ts +40 -40
- package/dist/index.cjs +101 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2500 -6
- package/dist/index.mjs.map +1 -1
- package/dist/lib.d.ts +35 -35
- package/docs/assets/icons.js +15 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +40 -22
- package/docs/classes/UI.html +27 -27
- package/docs/classes/UiConfigRendererBlueprint.html +27 -27
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +22 -15
- package/docs/modules.html +3 -3
- package/lib/css/renderer.css +4 -2
- package/lib/css/renderer.css.map +1 -1
- package/lib/esm/ConfigObject.d.ts +3 -3
- package/lib/esm/UiConfigRendererBlueprint.d.ts +1 -1
- package/lib/esm/UiConfigRendererBlueprint.js +25 -23
- package/lib/esm/UiConfigRendererBlueprint.js.map +1 -1
- package/lib/esm/bpComponents/BPButtonComponent.d.ts +3 -3
- package/lib/esm/bpComponents/BPColorInputComponent.d.ts +4 -3
- package/lib/esm/bpComponents/BPColorInputComponent.js +1 -1
- package/lib/esm/bpComponents/BPColorInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPComponent.d.ts +2 -1
- package/lib/esm/bpComponents/BPComponent.js +15 -4
- package/lib/esm/bpComponents/BPComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPContainerComponent.d.ts +4 -4
- package/lib/esm/bpComponents/BPDropdownInputComponent.d.ts +6 -4
- package/lib/esm/bpComponents/BPDropdownInputComponent.js +2 -2
- package/lib/esm/bpComponents/BPDropdownInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPFileComponent.d.ts +6 -5
- package/lib/esm/bpComponents/BPFileComponent.js +1 -1
- package/lib/esm/bpComponents/BPFileComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPFolderComponent.d.ts +3 -3
- package/lib/esm/bpComponents/BPFolderComponent.js +1 -2
- package/lib/esm/bpComponents/BPFolderComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPInputComponent.d.ts +3 -3
- package/lib/esm/bpComponents/BPLabelledComponent.d.ts +1 -1
- package/lib/esm/bpComponents/BPNumberInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPNumberInputComponent.js +1 -1
- package/lib/esm/bpComponents/BPNumberInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPPanelComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPSliderInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPTextInputComponent.d.ts +7 -4
- package/lib/esm/bpComponents/BPTextInputComponent.js +11 -2
- package/lib/esm/bpComponents/BPTextInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPToggleInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPValueComponent.d.ts +2 -2
- package/lib/esm/bpComponents/BPValueComponent.js +4 -4
- package/lib/esm/bpComponents/BPValueComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPVectorInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPVectorInputComponent.js +1 -1
- package/lib/esm/bpComponents/BPVectorInputComponent.js.map +1 -1
- package/lib/esm/components/AppToaster.d.ts +2 -1
- package/lib/esm/components/ConfigurationPanelComponent.d.ts +2 -1
- package/lib/esm/components/ConfigurationPanelComponent.js +1 -2
- package/lib/esm/components/ConfigurationPanelComponent.js.map +1 -1
- package/lib/esm/components/DialogContext.d.ts +3 -3
- package/lib/esm/components/DialogContext.js +1 -2
- package/lib/esm/components/DialogContext.js.map +1 -1
- package/lib/esm/components/DraggableIcon.d.ts +1 -1
- package/lib/esm/components/ExtendedNumericInput.d.ts +1 -1
- package/lib/esm/components/FileComponent.d.ts +2 -2
- package/lib/esm/components/FormGroupComponent.d.ts +1 -1
- package/lib/esm/components/InspectorStackComponent.d.ts +3 -2
- package/lib/esm/components/NumericInput.d.ts +2 -1
- package/lib/esm/components/VisualStyleContext.d.ts +2 -2
- package/lib/esm/components/VisualStyleContext.js +1 -2
- package/lib/esm/components/VisualStyleContext.js.map +1 -1
- package/lib/esm/components/axesIcons.d.ts +8 -7
- package/lib/esm/components/bpIconWrapper.d.ts +1 -1
- package/lib/esm/components/iconMapping.d.ts +146 -146
- package/lib/esm/components/shapesIcons.d.ts +99 -99
- package/lib/esm/components/variableIcons.d.ts +41 -40
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/lib.d.ts +35 -35
- package/lib/esm/renderer.css.js +1 -1
- package/package.json +29 -26
- package/src/UiConfigRendererBlueprint.tsx +26 -23
- package/src/bpComponents/BPComponent.tsx +20 -7
- package/src/bpComponents/BPDropdownInputComponent.tsx +3 -2
- package/src/bpComponents/BPFolderComponent.tsx +2 -2
- package/src/bpComponents/BPTextInputComponent.tsx +15 -2
- package/src/components/ConfigurationPanelComponent.tsx +1 -2
- package/src/components/DialogContext.tsx +1 -2
- package/src/components/VisualStyleContext.tsx +1 -2
- package/dist/allPaths-DANRR6MZ.js +0 -23
- package/dist/allPaths-DANRR6MZ.js.map +0 -1
- package/dist/allPathsLoader-BdHGVD6B.js +0 -27
- package/dist/allPathsLoader-BdHGVD6B.js.map +0 -1
- package/dist/index-6kveHKKU.js +0 -695
- package/dist/index-6kveHKKU.js.map +0 -1
- package/dist/index-D9WNL8Mc.js +0 -695
- package/dist/index-D9WNL8Mc.js.map +0 -1
- package/dist/index-t3WzvX5M.js +0 -13501
- package/dist/index-t3WzvX5M.js.map +0 -1
- package/dist/splitPathsBySizeLoader-Bhwx_O-M.js +0 -36
- package/dist/splitPathsBySizeLoader-Bhwx_O-M.js.map +0 -1
- package/lib/esm/bpComponents/BPTreeComponent.d.ts +0 -46
- package/lib/esm/bpComponents/BPTreeComponent.js +0 -221
- package/lib/esm/bpComponents/BPTreeComponent.js.map +0 -1
- package/lib/esm/bpComponents/BPTreeFolderComponent.d.ts +0 -10
- package/lib/esm/bpComponents/BPTreeFolderComponent.js +0 -37
- package/lib/esm/bpComponents/BPTreeFolderComponent.js.map +0 -1
- package/lib/esm/components/Tree2.d.ts +0 -52
- package/lib/esm/components/Tree2.js +0 -177
- package/lib/esm/components/Tree2.js.map +0 -1
- package/lib/esm/components/TreeNode2.d.ts +0 -43
- package/lib/esm/components/TreeNode2.js +0 -113
- package/lib/esm/components/TreeNode2.js.map +0 -1
- package/lib/esm/components/treeTypes.d.ts +0 -19
- package/lib/esm/components/treeTypes.js +0 -2
- package/lib/esm/components/treeTypes.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uiconfig-blueprint",
|
|
3
3
|
"name:umd": "bpui",
|
|
4
|
-
"version": "0.1.0-dev.
|
|
4
|
+
"version": "0.1.0-dev.16",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"tag": "latest"
|
|
7
|
+
},
|
|
5
8
|
"description": "Blueprint.js wrapper and custom components for web controls UI. To be used with uiconfig.",
|
|
6
|
-
"main": "dist/index.
|
|
9
|
+
"main": "dist/index.cjs",
|
|
7
10
|
"module": "dist/index.mjs",
|
|
8
11
|
"browser": "dist/index.js",
|
|
9
12
|
"types": "dist/index.d.ts",
|
|
10
13
|
"source": "src/index.ts",
|
|
11
|
-
"sideEffects":
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"**/*.css"
|
|
16
|
+
],
|
|
12
17
|
"exports": {
|
|
13
18
|
".": {
|
|
14
19
|
"types": "./dist/index.d.ts",
|
|
15
20
|
"import": "./dist/index.mjs",
|
|
16
|
-
"require": "./dist/index.
|
|
21
|
+
"require": "./dist/index.cjs",
|
|
17
22
|
"browser": "./dist/index.js"
|
|
18
23
|
},
|
|
19
24
|
"./dist/": {
|
|
@@ -52,31 +57,38 @@
|
|
|
52
57
|
],
|
|
53
58
|
"repository": {
|
|
54
59
|
"type": "git",
|
|
55
|
-
"url": "git+https://github.com/repalash/uiconfig
|
|
60
|
+
"url": "git+https://github.com/repalash/uiconfig.js.git",
|
|
61
|
+
"directory": "packages/uiconfig-blueprint"
|
|
56
62
|
},
|
|
57
63
|
"keywords": [
|
|
58
|
-
"javascript",
|
|
59
|
-
"typescript",
|
|
60
|
-
"json",
|
|
61
64
|
"ui",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
65
|
+
"gui",
|
|
66
|
+
"panel",
|
|
67
|
+
"inspector",
|
|
68
|
+
"editor",
|
|
69
|
+
"controls",
|
|
64
70
|
"blueprint",
|
|
65
|
-
"
|
|
71
|
+
"blueprintjs",
|
|
72
|
+
"react",
|
|
73
|
+
"config",
|
|
74
|
+
"uiconfig",
|
|
75
|
+
"three.js",
|
|
76
|
+
"typescript"
|
|
66
77
|
],
|
|
67
78
|
"author": "repalash <palash@shaders.app>",
|
|
68
|
-
"license": "
|
|
79
|
+
"license": "MIT",
|
|
69
80
|
"bugs": {
|
|
70
|
-
"url": "https://github.com/repalash/uiconfig
|
|
81
|
+
"url": "https://github.com/repalash/uiconfig.js/issues"
|
|
71
82
|
},
|
|
72
|
-
"homepage": "https://
|
|
83
|
+
"homepage": "https://repalash.com/uiconfig.js/",
|
|
73
84
|
"dependencies": {
|
|
74
|
-
"ts-browser-helpers": "
|
|
75
|
-
"uiconfig.js": "^0.
|
|
85
|
+
"ts-browser-helpers": ">=0.19.4",
|
|
86
|
+
"uiconfig.js": "^0.4.1",
|
|
76
87
|
"@blueprintjs/icons": "^5.23.0",
|
|
77
88
|
"@blueprintjs/select": "^5.3.21",
|
|
78
89
|
"blueprint-styler": "^5.0.2",
|
|
79
|
-
"react-colorful": "^5.6.1"
|
|
90
|
+
"react-colorful": "^5.6.1",
|
|
91
|
+
"classnames": "^2.5.1"
|
|
80
92
|
},
|
|
81
93
|
"peerDependencies": {
|
|
82
94
|
"@blueprintjs/core": "^5.19.1",
|
|
@@ -88,9 +100,6 @@
|
|
|
88
100
|
"react-dom": "^18.2.0"
|
|
89
101
|
},
|
|
90
102
|
"peerDependenciesMeta": {
|
|
91
|
-
"@blueprintjs/core": {
|
|
92
|
-
"optional": true
|
|
93
|
-
},
|
|
94
103
|
"@types/three": {
|
|
95
104
|
"optional": true
|
|
96
105
|
},
|
|
@@ -102,12 +111,6 @@
|
|
|
102
111
|
},
|
|
103
112
|
"@types/react-dom": {
|
|
104
113
|
"optional": true
|
|
105
|
-
},
|
|
106
|
-
"react": {
|
|
107
|
-
"optional": true
|
|
108
|
-
},
|
|
109
|
-
"react-dom": {
|
|
110
|
-
"optional": true
|
|
111
114
|
}
|
|
112
115
|
},
|
|
113
116
|
"//": {
|
|
@@ -21,33 +21,36 @@ export class UiConfigRendererBlueprint extends UiConfigRenderer {
|
|
|
21
21
|
FocusStyleManager.onlyShowFocusOnTabs();
|
|
22
22
|
|
|
23
23
|
const container = createDiv({id: 'blueprintUiContainer', addToBody: false})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media only screen and (min-width: 1500px) {
|
|
24
|
+
// the styles (about 3 MB) are added to the document once, not for each renderer
|
|
25
|
+
if (!document.querySelector('style[data-uiconfig-blueprint]')) {
|
|
26
|
+
createStyles(css`
|
|
30
27
|
:root {
|
|
31
|
-
--blueprint-ui-container-width:
|
|
28
|
+
--blueprint-ui-container-width: 300px;
|
|
32
29
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
|
|
31
|
+
@media only screen and (min-width: 1500px) {
|
|
32
|
+
:root {
|
|
33
|
+
--blueprint-ui-container-width: 400px;
|
|
34
|
+
}
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
min-width: var(--blueprint-ui-container-width);
|
|
43
|
-
min-height: 200px;
|
|
44
|
-
max-height: 100%;
|
|
45
|
-
max-width: 100%;
|
|
46
|
-
resize: both;
|
|
36
|
+
@media only screen and (min-width: 2500px) {
|
|
37
|
+
:root {
|
|
38
|
+
--blueprint-ui-container-width: 500px;
|
|
39
|
+
}
|
|
47
40
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
|
|
42
|
+
@media only screen and (min-width: 600px) {
|
|
43
|
+
#blueprintUiContainer {
|
|
44
|
+
min-width: var(--blueprint-ui-container-width);
|
|
45
|
+
min-height: 200px;
|
|
46
|
+
max-height: 100%;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
resize: both;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`).dataset.uiconfigBlueprint = 'container'
|
|
52
|
+
createStyles(rendererCss).dataset.uiconfigBlueprint = 'renderer'
|
|
53
|
+
}
|
|
51
54
|
|
|
52
55
|
this._root = createRoot(container, {
|
|
53
56
|
identifierPrefix: 'bpUi',
|
|
@@ -68,6 +68,8 @@ export abstract class BPComponent<TValue, TState extends BPComponentState, TProp
|
|
|
68
68
|
|
|
69
69
|
private _refreshing = false;
|
|
70
70
|
|
|
71
|
+
private _refreshAgain = false
|
|
72
|
+
|
|
71
73
|
/**
|
|
72
74
|
* Refreshes the state from the config
|
|
73
75
|
*
|
|
@@ -76,14 +78,25 @@ export abstract class BPComponent<TValue, TState extends BPComponentState, TProp
|
|
|
76
78
|
*/
|
|
77
79
|
async refreshConfigState(state?: TState) {
|
|
78
80
|
if (!this.props.config) return;
|
|
79
|
-
if (this._refreshing)
|
|
81
|
+
if (this._refreshing) {
|
|
82
|
+
// a refresh asked for while one runs: run once more after it, so that the latest value shows
|
|
83
|
+
this._refreshAgain = true
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
80
86
|
this._refreshing = true
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
try {
|
|
88
|
+
const s = this.getUpdatedState(state || this.state)
|
|
89
|
+
// console.log('set state', s)
|
|
90
|
+
await this.setStatePromise(s)
|
|
91
|
+
} finally {
|
|
92
|
+
// todo debug refresh frequency etc
|
|
93
|
+
// console.log('refreshing', this.props.config.label, this.props.config.type, this.state)
|
|
94
|
+
this._refreshing = false
|
|
95
|
+
}
|
|
96
|
+
if (this._refreshAgain) {
|
|
97
|
+
this._refreshAgain = false
|
|
98
|
+
await this.refreshConfigState()
|
|
99
|
+
}
|
|
87
100
|
}
|
|
88
101
|
|
|
89
102
|
/**
|
|
@@ -8,6 +8,7 @@ import {cleanLabel} from "../utils";
|
|
|
8
8
|
export interface DropdownItem{
|
|
9
9
|
label: string,
|
|
10
10
|
value: string|number,
|
|
11
|
+
uuid?: string
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type BPDropdownComponentState = BPValueComponentState<string|number> & {
|
|
@@ -23,7 +24,7 @@ const renderDropdownItem: ItemRenderer<DropdownItem> = (item, { handleClick, han
|
|
|
23
24
|
label={''}
|
|
24
25
|
roleStructure="listoption"
|
|
25
26
|
active={modifiers.active}
|
|
26
|
-
key={item.value}
|
|
27
|
+
key={item.uuid || (typeof item.value === 'string' ? item.value : item.label)}
|
|
27
28
|
onClick={handleClick}
|
|
28
29
|
onFocus={handleFocus}
|
|
29
30
|
/>
|
|
@@ -44,7 +45,7 @@ export class BPDropdownInputComponent extends BPInputComponent<string|number, BP
|
|
|
44
45
|
const options: DropdownItem[] = children.map((value, i) => {
|
|
45
46
|
let label1 = this.context.methods.getLabel(value)
|
|
46
47
|
const label = cleanLabel(label1) || `Option ${i}`
|
|
47
|
-
return {label, value: value!.value ?? label1}
|
|
48
|
+
return {label, value: value!.value ?? label1, uuid: value!.uuid}
|
|
48
49
|
})
|
|
49
50
|
|
|
50
51
|
// const selected = options.find(o=>o.value===val)||options[0]
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
Icon,
|
|
9
9
|
IconName,
|
|
10
10
|
Intent,
|
|
11
|
-
MaybeElement, Menu, MenuItem, Popover
|
|
11
|
+
MaybeElement, Menu, MenuItem, Popover,
|
|
12
|
+
Classes,
|
|
12
13
|
} from "@blueprintjs/core";
|
|
13
14
|
import {ConfigObject} from "../ConfigObject";
|
|
14
15
|
import {PanelActions} from "@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes";
|
|
15
16
|
import {getOrCall, safeSetProperty} from 'ts-browser-helpers'
|
|
16
17
|
import {BPContainerComponent, BPContainerComponentState, BPContainerComponentProps} from './BPContainerComponent'
|
|
17
18
|
import classNames from "classnames";
|
|
18
|
-
import {Classes} from "@blueprintjs/core/src/common";
|
|
19
19
|
import {AnimationStates} from "@blueprintjs/core/lib/esm/components/collapse/collapse";
|
|
20
20
|
|
|
21
21
|
export type BPFolderComponentState = BPContainerComponentState & {
|
|
@@ -21,11 +21,22 @@ export class BPTextInputComponent extends BPInputComponent<string> {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
private _edited = false
|
|
24
25
|
private _onChange: ChangeEventHandler<HTMLInputElement> = (e) => {
|
|
25
26
|
this._iv+=1
|
|
27
|
+
this._edited = true
|
|
26
28
|
this.setValue(e.target.value, false); // todo: set loading while this promise is happening.
|
|
27
29
|
}
|
|
28
30
|
|
|
31
|
+
// after an edit, blur sets the value once more with `last: true`: the change event marks the end of the edit and
|
|
32
|
+
// the undo manager closes the step that merged the keystrokes
|
|
33
|
+
private _onBlur = (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => {
|
|
34
|
+
if (!this._edited) return
|
|
35
|
+
this._edited = false
|
|
36
|
+
this._iv+=1
|
|
37
|
+
this.setValue(e.target.value, true);
|
|
38
|
+
}
|
|
39
|
+
|
|
29
40
|
renderInput() {
|
|
30
41
|
const config = this.props.config as any;
|
|
31
42
|
const isMultiline = config.multiline === true;
|
|
@@ -42,7 +53,8 @@ export class BPTextInputComponent extends BPInputComponent<string> {
|
|
|
42
53
|
rows={config.rows}
|
|
43
54
|
cols={config.cols}
|
|
44
55
|
autoResize={config.autoResize}
|
|
45
|
-
onChange={this._onChange as any}
|
|
56
|
+
onChange={this._onChange as any}
|
|
57
|
+
onBlur={this._onBlur}/>
|
|
46
58
|
)
|
|
47
59
|
}
|
|
48
60
|
|
|
@@ -54,7 +66,8 @@ export class BPTextInputComponent extends BPInputComponent<string> {
|
|
|
54
66
|
readOnly={this.state.readOnly}
|
|
55
67
|
key={this.props.config.uuid}
|
|
56
68
|
fill={true}
|
|
57
|
-
onChange={this._onChange}
|
|
69
|
+
onChange={this._onChange}
|
|
70
|
+
onBlur={this._onBlur}/>
|
|
58
71
|
)
|
|
59
72
|
}
|
|
60
73
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {Button, Card, Panel, PanelStack2, Popover} from "@blueprintjs/core";
|
|
2
|
+
import {Button, Card, Classes, Panel, PanelStack2, Popover} from "@blueprintjs/core";
|
|
3
3
|
import {ConfigObject, ConfigProps} from "../ConfigObject";
|
|
4
4
|
import {UiObjectConfig} from 'uiconfig.js'
|
|
5
5
|
import {UiConfigRendererContext} from '../bpComponents/BPComponent'
|
|
6
|
-
import {Classes} from '@blueprintjs/core/src/common'
|
|
7
6
|
import {
|
|
8
7
|
defaultVisualStyle,
|
|
9
8
|
setupVisualStyle,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {createContext, Dispatch, ReactNode, SetStateAction, useCallback, useContext, useState} from 'react'
|
|
2
|
-
import {Button, Dialog, DialogBody, DialogFooter, FormGroup, InputGroup} from '@blueprintjs/core'
|
|
2
|
+
import {Button, Dialog, DialogBody, DialogFooter, FormGroup, InputGroup, Intent} from '@blueprintjs/core'
|
|
3
3
|
import {useLoadingState} from './loadingState'
|
|
4
|
-
import {Intent} from '@blueprintjs/core/src/common/intent'
|
|
5
4
|
|
|
6
5
|
export type DialogStateType = {
|
|
7
6
|
isOpen: boolean,
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { I as n } from "./index-6kveHKKU.js";
|
|
2
|
-
import { I as e } from "./index-D9WNL8Mc.js";
|
|
3
|
-
import { p as r, I as s } from "./index-t3WzvX5M.js";
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* uiconfig-blueprint v0.1.0-dev.14
|
|
7
|
-
* Copyright 2022-2025 repalash <palash@shaders.app>
|
|
8
|
-
* Apache-2.0 License
|
|
9
|
-
*/
|
|
10
|
-
function I(o, t) {
|
|
11
|
-
var a = r(o);
|
|
12
|
-
return t === s.STANDARD ? n[a] : e[a];
|
|
13
|
-
}
|
|
14
|
-
function p(o) {
|
|
15
|
-
return r(o);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
n as IconSvgPaths16,
|
|
19
|
-
e as IconSvgPaths20,
|
|
20
|
-
I as getIconPaths,
|
|
21
|
-
p as iconNameToPathsRecordKey
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=allPaths-DANRR6MZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-DANRR6MZ.js","sources":["../node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":["getIconPaths","name","size","key","pascalCase","IconSize","IconSvgPaths16","IconSvgPaths20","iconNameToPathsRecordKey"],"mappings":";;;;;;;;;AA6BO,SAASA,EAAaC,GAAMC,GAAM;AACrC,MAAIC,IAAMC,EAAWH,CAAI;AACzB,SAAOC,MAASG,EAAS,WAAWC,EAAeH,CAAG,IAAII,EAAeJ,CAAG;AAChF;AAOO,SAASK,EAAyBP,GAAM;AAC3C,SAAOG,EAAWH,CAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { _ as n, a as o } from "./index-t3WzvX5M.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* uiconfig-blueprint v0.1.0-dev.14
|
|
5
|
-
* Copyright 2022-2025 repalash <palash@shaders.app>
|
|
6
|
-
* Apache-2.0 License
|
|
7
|
-
*/
|
|
8
|
-
var s = function(a, e) {
|
|
9
|
-
return n(void 0, void 0, void 0, function() {
|
|
10
|
-
var t;
|
|
11
|
-
return o(this, function(r) {
|
|
12
|
-
switch (r.label) {
|
|
13
|
-
case 0:
|
|
14
|
-
return [4, import(
|
|
15
|
-
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
16
|
-
"./allPaths-DANRR6MZ.js"
|
|
17
|
-
)];
|
|
18
|
-
case 1:
|
|
19
|
-
return t = r.sent().getIconPaths, [2, t(a, e)];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
s as allPathsLoader
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=allPathsLoader-BdHGVD6B.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-BdHGVD6B.js","sources":["../node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":["allPathsLoader","name","size","__awaiter","getIconPaths","__generator","_a"],"mappings":";;;;;;;AAmBU,IAACA,IAAiB,SAAUC,GAAMC,GAAM;AAAE,SAAOC,EAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAIC;AACJ,WAAOC,EAAY,MAAM,SAAUC,GAAI;AACnC,cAAQA,EAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,iBAAAF,IAAgBE,EAAG,KAAI,EAAI,cACpB,CAAC,GAAcF,EAAaH,GAAMC,CAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|