@leafer-ui/external 1.0.2 → 1.0.4
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/package.json +5 -2
- package/src/index.ts +16 -3
- package/types/index.d.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/external",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "@leafer-ui/external",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
"leafer-ui",
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@leafer/core": "1.0.4"
|
|
26
|
+
},
|
|
24
27
|
"devDependencies": {
|
|
25
|
-
"@leafer-ui/interface": "1.0.
|
|
28
|
+
"@leafer-ui/interface": "1.0.4"
|
|
26
29
|
}
|
|
27
30
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Implemented in partner
|
|
2
|
-
import { IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, ITextConvertModule, IExportModule, IColorConvertModule, IPathArrowModule, IStateModule } from "@leafer-ui/interface"
|
|
3
|
-
|
|
2
|
+
import { IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, ITextConvertModule, IExportModule, IColorConvertModule, IPathArrowModule, IStateModule, IUI, IString, IBoolean, ITransitionModule, ITransitionFunction } from "@leafer-ui/interface"
|
|
3
|
+
import { needPlugin } from '@leafer/core'
|
|
4
4
|
|
|
5
5
|
export const TextConvert = {} as ITextConvertModule
|
|
6
6
|
|
|
@@ -19,4 +19,17 @@ export const Effect = {} as IEffectModule
|
|
|
19
19
|
|
|
20
20
|
export const Export = {} as IExportModule
|
|
21
21
|
|
|
22
|
-
export const State = {
|
|
22
|
+
export const State = {
|
|
23
|
+
setStyleName(_leaf: IUI, _styleName: IString, _value: IBoolean): void { return needPlugin('state') },
|
|
24
|
+
set(_leaf: IUI, _stateName: IString): void { return needPlugin('state') }
|
|
25
|
+
} as IStateModule
|
|
26
|
+
|
|
27
|
+
export const Transition = {
|
|
28
|
+
list: {},
|
|
29
|
+
register(attrName: string, fn: ITransitionFunction): void {
|
|
30
|
+
Transition.list[attrName] = fn
|
|
31
|
+
},
|
|
32
|
+
get(attrName: string): ITransitionFunction {
|
|
33
|
+
return Transition.list[attrName]
|
|
34
|
+
}
|
|
35
|
+
} as ITransitionModule
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITextConvertModule, IColorConvertModule, IPathArrowModule, IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, IExportModule, IStateModule } from '@leafer-ui/interface';
|
|
1
|
+
import { ITextConvertModule, IColorConvertModule, IPathArrowModule, IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, IExportModule, IStateModule, ITransitionModule } from '@leafer-ui/interface';
|
|
2
2
|
|
|
3
3
|
declare const TextConvert: ITextConvertModule;
|
|
4
4
|
declare const ColorConvert: IColorConvertModule;
|
|
@@ -9,5 +9,6 @@ declare const PaintGradient: IPaintGradientModule;
|
|
|
9
9
|
declare const Effect: IEffectModule;
|
|
10
10
|
declare const Export: IExportModule;
|
|
11
11
|
declare const State: IStateModule;
|
|
12
|
+
declare const Transition: ITransitionModule;
|
|
12
13
|
|
|
13
|
-
export { ColorConvert, Effect, Export, Paint, PaintGradient, PaintImage, PathArrow, State, TextConvert };
|
|
14
|
+
export { ColorConvert, Effect, Export, Paint, PaintGradient, PaintImage, PathArrow, State, TextConvert, Transition };
|