@triniwiz/nativescript-masonkit 1.0.0-alpha.32 → 1.0.0-alpha.34
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 +4 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +59 -20
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +11761 -8215
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +170 -52
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +170 -52
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +3259 -3081
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +124 -46
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +14540 -10994
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +14540 -10994
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +26 -26
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +3259 -3075
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3181 -3002
- package/common.d.ts +0 -138
- package/common.js +0 -1750
- package/common.js.map +0 -1
- package/img/index.android.d.ts +0 -10
- package/img/index.android.js +0 -40
- package/img/index.android.js.map +0 -1
- package/img/index.ios.d.ts +0 -13
- package/img/index.ios.js +0 -102
- package/img/index.ios.js.map +0 -1
- package/index.android.d.ts +0 -5
- package/index.android.js +0 -6
- package/index.android.js.map +0 -1
- package/index.ios.d.ts +0 -5
- package/index.ios.js +0 -6
- package/index.ios.js.map +0 -1
- package/scroll/index.android.d.ts +0 -13
- package/scroll/index.android.js +0 -80
- package/scroll/index.android.js.map +0 -1
- package/scroll/index.ios.d.ts +0 -16
- package/scroll/index.ios.js +0 -154
- package/scroll/index.ios.js.map +0 -1
- package/style.d.ts +0 -207
- package/style.js +0 -2388
- package/style.js.map +0 -1
- package/text/index.android.d.ts +0 -30
- package/text/index.android.js +0 -142
- package/text/index.android.js.map +0 -1
- package/text/index.ios.d.ts +0 -40
- package/text/index.ios.js +0 -294
- package/text/index.ios.js.map +0 -1
- package/tree/index.android.d.ts +0 -27
- package/tree/index.android.js +0 -72
- package/tree/index.android.js.map +0 -1
- package/tree/index.ios.d.ts +0 -28
- package/tree/index.ios.js +0 -73
- package/tree/index.ios.js.map +0 -1
- package/utils/index.android.d.ts +0 -187
- package/utils/index.android.js +0 -594
- package/utils/index.android.js.map +0 -1
- package/utils/index.ios.d.ts +0 -198
- package/utils/index.ios.js +0 -710
- package/utils/index.ios.js.map +0 -1
- package/view/index.android.d.ts +0 -13
- package/view/index.android.js +0 -81
- package/view/index.android.js.map +0 -1
- package/view/index.ios.d.ts +0 -17
- package/view/index.ios.js +0 -154
- package/view/index.ios.js.map +0 -1
- package/web.d.ts +0 -55
- package/web.js +0 -189
- package/web.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triniwiz/nativescript-masonkit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.34",
|
|
4
4
|
"description": "Web Inspired Layout",
|
|
5
5
|
"main": "index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -32,5 +32,8 @@
|
|
|
32
32
|
"homepage": "https://github.com/triniwiz/nativescript-mason",
|
|
33
33
|
"readmeFilename": "README.md",
|
|
34
34
|
"bootstrapper": "@nativescript/plugin-seed",
|
|
35
|
+
"optionalDependencies": {
|
|
36
|
+
"nativescript-vue": "^3.0.0"
|
|
37
|
+
},
|
|
35
38
|
"types": "./index.d.d.ts"
|
|
36
39
|
}
|
|
Binary file
|
|
@@ -308,6 +308,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
308
308
|
|
|
309
309
|
#if defined(__OBJC__)
|
|
310
310
|
|
|
311
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
|
|
312
|
+
MasonAlignAuto = 0,
|
|
313
|
+
MasonAlignLeft = 1,
|
|
314
|
+
MasonAlignRight = 2,
|
|
315
|
+
MasonAlignCenter = 3,
|
|
316
|
+
};
|
|
317
|
+
|
|
311
318
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
|
|
312
319
|
MasonAlignContentNormal = -1,
|
|
313
320
|
MasonAlignContentStart = 0,
|
|
@@ -355,6 +362,14 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open)
|
|
|
355
362
|
MasonDecorationLineLineThrough = 3,
|
|
356
363
|
};
|
|
357
364
|
|
|
365
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
|
|
366
|
+
MasonDecorationStyleSolid = 0,
|
|
367
|
+
MasonDecorationStyleDouble = 1,
|
|
368
|
+
MasonDecorationStyleDotted = 2,
|
|
369
|
+
MasonDecorationStyleDashed = 3,
|
|
370
|
+
MasonDecorationStyleWavy = 4,
|
|
371
|
+
};
|
|
372
|
+
|
|
358
373
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
|
|
359
374
|
MasonDirectionInherit = 0,
|
|
360
375
|
MasonDirectionLTR = 1,
|
|
@@ -460,7 +475,6 @@ SWIFT_CLASS_NAMED("Img")
|
|
|
460
475
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
461
476
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
462
477
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
463
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
464
478
|
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
465
479
|
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
466
480
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
@@ -752,17 +766,43 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
752
766
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
753
767
|
@end
|
|
754
768
|
|
|
769
|
+
@class NSCFontFace;
|
|
755
770
|
@class NSMutableData;
|
|
756
|
-
@class
|
|
771
|
+
@class UIColor;
|
|
772
|
+
enum MasonTextJustify : NSInteger;
|
|
773
|
+
@class MasonTextOverflowCompat;
|
|
774
|
+
enum MasonTextTransform : NSInteger;
|
|
775
|
+
enum MasonWhiteSpace : NSInteger;
|
|
776
|
+
enum MasonTextWrap : NSInteger;
|
|
757
777
|
enum MasonPosition : NSInteger;
|
|
758
778
|
enum MasonTextAlign : NSInteger;
|
|
759
779
|
@class MinMax;
|
|
760
780
|
@class TrackSizingFunction;
|
|
761
781
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
762
782
|
@interface MasonStyle : NSObject
|
|
763
|
-
@property (nonatomic, strong)
|
|
764
|
-
@property (nonatomic,
|
|
783
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
784
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
785
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
765
786
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
787
|
+
@property (nonatomic) uint32_t color;
|
|
788
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
789
|
+
@property (nonatomic) uint32_t backgroundColor;
|
|
790
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
791
|
+
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
792
|
+
@property (nonatomic) float lineHeight;
|
|
793
|
+
@property (nonatomic) float letterSpacing;
|
|
794
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
795
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
796
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
797
|
+
@property (nonatomic) int32_t fontSize;
|
|
798
|
+
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
799
|
+
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
800
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
801
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
802
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
803
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
804
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
805
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
766
806
|
@property (nonatomic) enum MasonDisplay display;
|
|
767
807
|
@property (nonatomic) enum MasonPosition position;
|
|
768
808
|
@property (nonatomic) enum MasonDirection direction;
|
|
@@ -805,6 +845,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
805
845
|
@property (nonatomic) float flexShrink;
|
|
806
846
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
807
847
|
- (void)setScrollBarWidth:(float)value;
|
|
848
|
+
@property (nonatomic) enum MasonAlign align;
|
|
808
849
|
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
809
850
|
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
810
851
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
@@ -846,46 +887,36 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
846
887
|
@end
|
|
847
888
|
|
|
848
889
|
enum MasonTextType : NSInteger;
|
|
849
|
-
@class NSCFontFace;
|
|
850
|
-
@class MasonTextOverflowCompat;
|
|
851
|
-
@class UIColor;
|
|
852
|
-
enum MasonTextTransform : NSInteger;
|
|
853
|
-
enum MasonWhiteSpace : NSInteger;
|
|
854
|
-
enum MasonTextWrap : NSInteger;
|
|
855
890
|
SWIFT_CLASS_NAMED("MasonText")
|
|
856
891
|
@interface MasonText : UIView <MasonElementObjc>
|
|
857
892
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
858
893
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
859
894
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
860
|
-
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
861
895
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
862
896
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
863
|
-
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
864
897
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
865
898
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
866
899
|
- (void)setNeedsDisplay;
|
|
867
900
|
- (void)requestLayout;
|
|
868
|
-
- (void)syncStyle:(NSString * _Nonnull)state textState:(NSString * _Nonnull)textState;
|
|
869
901
|
- (void)addView:(UIView * _Nonnull)view;
|
|
870
902
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
871
903
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
904
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
872
905
|
@property (nonatomic) uint32_t color;
|
|
873
|
-
@property (nonatomic) uint32_t backgroundColorValue;
|
|
874
906
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
907
|
+
@property (nonatomic) uint32_t backgroundColorValue;
|
|
875
908
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
876
909
|
@property (nonatomic) uint32_t decorationColor;
|
|
877
910
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
878
911
|
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
879
|
-
@property (nonatomic)
|
|
912
|
+
@property (nonatomic) int32_t fontSize;
|
|
880
913
|
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
881
914
|
- (void)setFontStyle:(enum MasonFontStyle)style slant:(int32_t)slant;
|
|
882
915
|
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
883
916
|
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
884
917
|
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
885
918
|
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
886
|
-
|
|
887
|
-
/// Helper to get default text attributes for new text nodes
|
|
888
|
-
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
919
|
+
@property (nonatomic) float lineHeight;
|
|
889
920
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
890
921
|
@end
|
|
891
922
|
|
|
@@ -955,7 +986,6 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
955
986
|
- (void)markNodeDirty;
|
|
956
987
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
957
988
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
958
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
959
989
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
960
990
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
961
991
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1139,6 +1169,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
|
1139
1169
|
NSCFontDisplaySwap = 4,
|
|
1140
1170
|
};
|
|
1141
1171
|
|
|
1172
|
+
@class NSData;
|
|
1142
1173
|
enum NSCFontFaceStatus : NSInteger;
|
|
1143
1174
|
enum NSCFontWeight : NSInteger;
|
|
1144
1175
|
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
@@ -1237,6 +1268,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1237
1268
|
@end
|
|
1238
1269
|
|
|
1239
1270
|
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
1271
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
|
|
1240
1272
|
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
1241
1273
|
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1242
1274
|
- (void)mason_markNodeDirty;
|
|
@@ -1294,7 +1326,6 @@ SWIFT_CLASS_NAMED("Scroll")
|
|
|
1294
1326
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1295
1327
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1296
1328
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1297
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
1298
1329
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1299
1330
|
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
1300
1331
|
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
@@ -1349,6 +1380,14 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
|
|
|
1349
1380
|
MasonTextAlignEnd = 6,
|
|
1350
1381
|
};
|
|
1351
1382
|
|
|
1383
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
|
|
1384
|
+
MasonTextJustifyNone = 0,
|
|
1385
|
+
MasonTextJustifyAuto = 1,
|
|
1386
|
+
MasonTextJustifyInterWord = 2,
|
|
1387
|
+
MasonTextJustifyInterCharacter = 3,
|
|
1388
|
+
MasonTextJustifyDistribute = 4,
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1352
1391
|
SWIFT_CLASS_NAMED("TextOverflowCompat")
|
|
1353
1392
|
@interface MasonTextOverflowCompat : NSObject
|
|
1354
1393
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
|
|
Binary file
|