amotify 0.0.43 → 0.0.44
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/@types/fn.tsx
CHANGED
|
@@ -611,6 +611,8 @@ declare global {
|
|
|
611
611
|
|
|
612
612
|
cellStyles?: amotifyUniStyleParams
|
|
613
613
|
sheetStyles?: amotifyUniStyleParams
|
|
614
|
+
|
|
615
|
+
gravityPoint?: number
|
|
614
616
|
}
|
|
615
617
|
|
|
616
618
|
type ValueProps = string | number | boolean | plainObject | void | null
|
|
@@ -619,6 +621,7 @@ declare global {
|
|
|
619
621
|
type?: 'button' | 'label'
|
|
620
622
|
value: ValueProps
|
|
621
623
|
label: ReactElement
|
|
624
|
+
selectedLabel?: ReactElement
|
|
622
625
|
}
|
|
623
626
|
}
|
|
624
627
|
namespace List {
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ $.NoticeHttpStatus = ( params ) => {
|
|
|
29
29
|
...others
|
|
30
30
|
} );
|
|
31
31
|
}
|
|
32
|
-
$.copyToClipboard = async ( rawData ) => {
|
|
32
|
+
$.copyToClipboard = async ( rawData,notice = true ) => {
|
|
33
33
|
let data = '';
|
|
34
34
|
if ( $.is.string( rawData ) ) data = rawData
|
|
35
35
|
else if ( $.is.function( rawData ) ) data = rawData() as any;
|
|
@@ -61,9 +61,12 @@ $.copyToClipboard = async ( rawData ) => {
|
|
|
61
61
|
if ( !result ) return;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
if ( notice ) {
|
|
65
|
+
amotify.fn.SnackBar.add( {
|
|
66
|
+
children: 'クリップボードにコピーしました'
|
|
67
|
+
} );
|
|
68
|
+
}
|
|
69
|
+
|
|
67
70
|
response = {
|
|
68
71
|
ok: true,
|
|
69
72
|
body: ''
|
|
@@ -106,6 +106,7 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
|
|
|
106
106
|
cellStyles,
|
|
107
107
|
sheetStyles,
|
|
108
108
|
|
|
109
|
+
gravityPoint,
|
|
109
110
|
...others
|
|
110
111
|
} = params;
|
|
111
112
|
|
|
@@ -142,7 +143,7 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
|
|
|
142
143
|
if ( val_status.dataValue ) {
|
|
143
144
|
let Selected = options.find( ( option ) => option.type == 'button' && option.value == val_status.dataValue );
|
|
144
145
|
if ( Selected ) {
|
|
145
|
-
SelectedElement = Selected.label;
|
|
146
|
+
SelectedElement = Selected.selectedLabel || Selected.label;
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
|
|
@@ -168,7 +169,7 @@ const Core: React.FC<amotify.fn.Input.RichSelect.PlainParams> = ( params ) => {
|
|
|
168
169
|
Tooltips.open( {
|
|
169
170
|
tipsID: val_tipID,
|
|
170
171
|
parent: e.currentTarget,
|
|
171
|
-
gravityPoint: 13,
|
|
172
|
+
gravityPoint: gravityPoint || 13,
|
|
172
173
|
close_option: {
|
|
173
174
|
elementBlur: ''
|
|
174
175
|
},
|