amotify 0.2.166 → 0.2.168
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/demo/esbuild/designBook.tsx +63 -68
- package/demo/esbuild/public/index.js +67 -67
- package/dist/atoms/Img.js +1 -1
- package/dist/fn/Cropper.js +1 -1
- package/dist/fn/Input/Time/index.js +1 -1
- package/dist/fn/Sheet.d.ts +43 -43
- package/dist/fn/Sheet.js +1 -1
- package/dist/fn/Table/Data.js +1 -1
- package/dist/fn/Tooltips.js +1 -1
- package/package.json +2 -2
|
@@ -1926,10 +1926,9 @@ text5`}
|
|
|
1926
1926
|
</>
|
|
1927
1927
|
}
|
|
1928
1928
|
const Styling = () => {
|
|
1929
|
-
const SheetContent = ( type: Sheet.
|
|
1929
|
+
const SheetContent = ( type: Sheet.Type,index?: number,opt?: Partial<Sheet.Input> ) => {
|
|
1930
1930
|
let sheetID = 'testModal' + index
|
|
1931
|
-
Sheet.open( {
|
|
1932
|
-
type,
|
|
1931
|
+
Sheet.open( type,{
|
|
1933
1932
|
sheetID: sheetID,
|
|
1934
1933
|
size: 'S',
|
|
1935
1934
|
padding: 2,
|
|
@@ -2064,7 +2063,7 @@ const Styling = () => {
|
|
|
2064
2063
|
<Box padding={ 1 } overflow={ 'auto' }>
|
|
2065
2064
|
<Literal.Description>
|
|
2066
2065
|
{
|
|
2067
|
-
`Sheet.open( {
|
|
2066
|
+
`Sheet.open( Type,{
|
|
2068
2067
|
sheetID: 'sheetID',
|
|
2069
2068
|
header: ReactElement | React.FC< { modalClose } >,
|
|
2070
2069
|
body: ReactElement | React.FC< { modalClose } >,
|
|
@@ -2086,10 +2085,9 @@ const Styling = () => {
|
|
|
2086
2085
|
return <Sheet.Body padding={ 2 }>
|
|
2087
2086
|
<Button
|
|
2088
2087
|
onClick={ () => {
|
|
2089
|
-
Sheet.open( {
|
|
2088
|
+
Sheet.open( 'middleLeft',{
|
|
2090
2089
|
sheetID: 'testSheet',
|
|
2091
2090
|
closeAtAroundClick: true,
|
|
2092
|
-
type: 'normal.middleLeft',
|
|
2093
2091
|
content: () => {
|
|
2094
2092
|
return <Sheet.Body padding={ 2 }>
|
|
2095
2093
|
END
|
|
@@ -2111,63 +2109,63 @@ const Styling = () => {
|
|
|
2111
2109
|
<Grid gridCols={ 3 } gap={ 1 }>
|
|
2112
2110
|
<Button.Border
|
|
2113
2111
|
onClick={ () => {
|
|
2114
|
-
SheetContent( '
|
|
2112
|
+
SheetContent( 'topLeft' )
|
|
2115
2113
|
} }
|
|
2116
2114
|
>
|
|
2117
2115
|
Top Left
|
|
2118
2116
|
</Button.Border>
|
|
2119
2117
|
<Button.Border
|
|
2120
2118
|
onClick={ () => {
|
|
2121
|
-
SheetContent( '
|
|
2119
|
+
SheetContent( 'topCenter' )
|
|
2122
2120
|
} }
|
|
2123
2121
|
>
|
|
2124
2122
|
Top Center
|
|
2125
2123
|
</Button.Border>
|
|
2126
2124
|
<Button.Border
|
|
2127
2125
|
onClick={ () => {
|
|
2128
|
-
SheetContent( '
|
|
2126
|
+
SheetContent( 'topRight' )
|
|
2129
2127
|
} }
|
|
2130
2128
|
>
|
|
2131
2129
|
Top Right
|
|
2132
2130
|
</Button.Border>
|
|
2133
2131
|
<Button.Border
|
|
2134
2132
|
onClick={ () => {
|
|
2135
|
-
SheetContent( '
|
|
2133
|
+
SheetContent( 'middleLeft' )
|
|
2136
2134
|
} }
|
|
2137
2135
|
>
|
|
2138
2136
|
Middle Left
|
|
2139
2137
|
</Button.Border>
|
|
2140
2138
|
<Button.Border
|
|
2141
2139
|
onClick={ () => {
|
|
2142
|
-
SheetContent( '
|
|
2140
|
+
SheetContent( 'middleCenter' )
|
|
2143
2141
|
} }
|
|
2144
2142
|
>
|
|
2145
2143
|
Middle Center
|
|
2146
2144
|
</Button.Border>
|
|
2147
2145
|
<Button.Border
|
|
2148
2146
|
onClick={ () => {
|
|
2149
|
-
SheetContent( '
|
|
2147
|
+
SheetContent( 'middleRight' )
|
|
2150
2148
|
} }
|
|
2151
2149
|
>
|
|
2152
2150
|
Middle Right
|
|
2153
2151
|
</Button.Border>
|
|
2154
2152
|
<Button.Border
|
|
2155
2153
|
onClick={ () => {
|
|
2156
|
-
SheetContent( '
|
|
2154
|
+
SheetContent( 'bottomLeft' )
|
|
2157
2155
|
} }
|
|
2158
2156
|
>
|
|
2159
2157
|
Bottom Left
|
|
2160
2158
|
</Button.Border>
|
|
2161
2159
|
<Button.Border
|
|
2162
2160
|
onClick={ () => {
|
|
2163
|
-
SheetContent( '
|
|
2161
|
+
SheetContent( 'bottomCenter' )
|
|
2164
2162
|
} }
|
|
2165
2163
|
>
|
|
2166
2164
|
Bottom Center
|
|
2167
2165
|
</Button.Border>
|
|
2168
2166
|
<Button.Border
|
|
2169
2167
|
onClick={ () => {
|
|
2170
|
-
SheetContent( '
|
|
2168
|
+
SheetContent( 'bottomRight' )
|
|
2171
2169
|
} }
|
|
2172
2170
|
>
|
|
2173
2171
|
Bottom Right
|
|
@@ -2528,14 +2526,11 @@ const Cropping = () => {
|
|
|
2528
2526
|
<Row.Center>
|
|
2529
2527
|
<Button.Prime
|
|
2530
2528
|
onClick={ () => {
|
|
2531
|
-
Sheet.
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
'https://png.pngtree.com/background/20210715/original/pngtree-website-banner-abstract-purple-blue-gradient-background-picture-image_1298439.jpg'
|
|
2537
|
-
]
|
|
2538
|
-
} )
|
|
2529
|
+
Sheet.image( {},[
|
|
2530
|
+
'https://png.pngtree.com/background/20210714/original/pngtree-futuristic-shape-abstract-background-chemistry-technology-concept-for-website-picture-image_1250295.jpg',
|
|
2531
|
+
'https://png.pngtree.com/background/20210711/original/pngtree-set-of-instagram-stories-sale-banner-background-instagram-template-photo-can-picture-image_1167343.jpg',
|
|
2532
|
+
'https://png.pngtree.com/background/20210715/original/pngtree-website-banner-abstract-purple-blue-gradient-background-picture-image_1298439.jpg'
|
|
2533
|
+
] )
|
|
2539
2534
|
} }
|
|
2540
2535
|
>
|
|
2541
2536
|
Open Image Sheet
|
|
@@ -2736,55 +2731,55 @@ let DesignBook = () => {
|
|
|
2736
2731
|
$$.queryParams.set( { 'ti': String( val_tabIndex ) } )
|
|
2737
2732
|
},[ val_tabIndex ] )
|
|
2738
2733
|
|
|
2739
|
-
let [ val_refresh,set_refresh ] = useState( UUID() )
|
|
2734
|
+
// let [ val_refresh,set_refresh ] = useState( UUID() )
|
|
2740
2735
|
|
|
2741
|
-
let DataData: Table.Data.BodyRow[] = []
|
|
2742
|
-
for ( var i = 0; i <
|
|
2743
|
-
|
|
2744
|
-
|
|
2736
|
+
// let DataData: Table.Data.BodyRow[] = []
|
|
2737
|
+
// for ( var i = 0; i < 100; i++ ) {
|
|
2738
|
+
// let random1 = $$.randomNumber( 0,10000 )
|
|
2739
|
+
// let random2 = $$.randomNumber( 0,10000 )
|
|
2745
2740
|
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
}
|
|
2764
|
-
DataData[ 1 ].checked = true
|
|
2765
|
-
DataData[ 4 ].checked = true
|
|
2741
|
+
// let Data1 = 'name_' + random1
|
|
2742
|
+
// let Data2 = 'data_' + random2
|
|
2743
|
+
// let Row: Table.Data.BodyRow = [
|
|
2744
|
+
// {
|
|
2745
|
+
// type: 'th',
|
|
2746
|
+
// // children: i + ':' + Data1,
|
|
2747
|
+
// children: [
|
|
2748
|
+
// 'i=' + i,
|
|
2749
|
+
// 'data=' + random1.toLocaleString(),
|
|
2750
|
+
// ].join( '/' ),
|
|
2751
|
+
// data: Data1,
|
|
2752
|
+
// // orderIndex: random1.toLocaleString()
|
|
2753
|
+
// orderIndex: random1
|
|
2754
|
+
// },
|
|
2755
|
+
// { type: 'td',children: Data2,data: Data2 },
|
|
2756
|
+
// ]
|
|
2757
|
+
// DataData.push( Row )
|
|
2758
|
+
// }
|
|
2759
|
+
// DataData[ 1 ].checked = true
|
|
2760
|
+
// DataData[ 4 ].checked = true
|
|
2766
2761
|
|
|
2767
|
-
return <Column>
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2762
|
+
// return <Column>
|
|
2763
|
+
// <Literal>Count: { DataData.length.toLocaleString() }</Literal>
|
|
2764
|
+
// <Table.Data
|
|
2765
|
+
// tableID={ 'aaaa' }
|
|
2766
|
+
// colLength={ 2 }
|
|
2767
|
+
// pageRowLength={ 100 }
|
|
2768
|
+
// head={ [
|
|
2769
|
+
// { data: 'head1' },
|
|
2770
|
+
// { data: 'head2',children: <Box>head2</Box> },
|
|
2771
|
+
// ] }
|
|
2772
|
+
// rows={ DataData }
|
|
2773
|
+
// ssCardBox
|
|
2779
2774
|
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
</Column>
|
|
2775
|
+
// orderPriority='DESC'
|
|
2776
|
+
// cellStyles={ {
|
|
2777
|
+
// padding: '1/2'
|
|
2778
|
+
// } }
|
|
2779
|
+
// // filter={ [ true,true ] }
|
|
2780
|
+
// // checker
|
|
2781
|
+
// />
|
|
2782
|
+
// </Column>
|
|
2788
2783
|
|
|
2789
2784
|
return <>
|
|
2790
2785
|
<UserConfig />
|