@nativescript/core 8.9.0-alpha.3 → 8.9.0-next-01-13-2025-12740325729
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/accessibility/accessibility-properties.js +0 -1
- package/accessibility/accessibility-properties.js.map +1 -1
- package/animation-frame/index.d.ts +3 -17
- package/core-types/index.d.ts +2 -2
- package/core-types/index.js +3 -3
- package/core-types/index.js.map +1 -1
- package/css/css-tree-parser.js +17 -21
- package/css/parser.js +2 -1
- package/css/parser.js.map +1 -1
- package/data/observable/index.d.ts +1 -0
- package/data/observable/index.js +1 -0
- package/data/observable/index.js.map +1 -1
- package/debugger/devtools-elements.d.ts +5 -23
- package/debugger/dom-node.d.ts +20 -23
- package/file-system/file-system-access.ios.js +2 -2
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.d.ts +95 -370
- package/fps-meter/index.d.ts +7 -24
- package/globals/index.d.ts +19 -4
- package/globals/index.js +5 -3
- package/globals/index.js.map +1 -1
- package/http/index.d.ts +73 -149
- package/image-source/index.android.d.ts +3 -2
- package/image-source/index.android.js +13 -6
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.ios.d.ts +3 -2
- package/image-source/index.ios.js +10 -3
- package/image-source/index.ios.js.map +1 -1
- package/index.d.ts +6 -23
- package/matrix/index.d.ts +5 -32
- package/module-name-resolver/index.d.ts +13 -21
- package/module-name-resolver/qualifier-matcher/index.d.ts +6 -12
- package/package.json +1 -1
- package/platform/index.d.ts +0 -26
- package/profiling/index.d.ts +26 -153
- package/text/formatted-string.d.ts +1 -1
- package/text/span.d.ts +1 -1
- package/trace/index.d.ts +105 -131
- package/ui/action-bar/index.android.d.ts +1 -0
- package/ui/action-bar/index.android.js +3 -0
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/action-bar/index.ios.d.ts +7 -2
- package/ui/action-bar/index.ios.js +120 -19
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/animation/animation-common.d.ts +1 -8
- package/ui/animation/animation-common.js +0 -8
- package/ui/animation/animation-common.js.map +1 -1
- package/ui/animation/animation-interfaces.d.ts +11 -0
- package/ui/animation/animation-interfaces.js +12 -1
- package/ui/animation/animation-interfaces.js.map +1 -1
- package/ui/animation/index.android.d.ts +2 -2
- package/ui/animation/index.android.js +2 -2
- package/ui/animation/index.android.js.map +1 -1
- package/ui/animation/index.ios.d.ts +2 -2
- package/ui/animation/index.ios.js +4 -4
- package/ui/animation/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.d.ts +67 -118
- package/ui/builder/binding-builder.d.ts +12 -15
- package/ui/builder/index.d.ts +27 -69
- package/ui/button/index.android.d.ts +1 -1
- package/ui/button/index.android.js +17 -15
- package/ui/button/index.android.js.map +1 -1
- package/ui/button/index.ios.js +8 -2
- package/ui/button/index.ios.js.map +1 -1
- package/ui/content-view/index.d.ts +23 -4
- package/ui/core/control-state-change/index.android.d.ts +2 -2
- package/ui/core/control-state-change/index.android.js +1 -1
- package/ui/core/control-state-change/index.android.js.map +1 -1
- package/ui/core/control-state-change/index.ios.d.ts +3 -7
- package/ui/core/control-state-change/index.ios.js +19 -36
- package/ui/core/control-state-change/index.ios.js.map +1 -1
- package/ui/core/view/index.android.d.ts +2 -7
- package/ui/core/view/index.android.js +3 -4
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.ios.d.ts +3 -13
- package/ui/core/view/index.ios.js +16 -8
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +11 -15
- package/ui/core/view/view-common.js +23 -15
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.d.ts +3 -18
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view-base/index.d.ts +107 -4
- package/ui/core/view-base/index.js +55 -7
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/core/weak-event-listener/index.d.ts +2 -18
- package/ui/date-picker/date-picker-common.d.ts +1 -0
- package/ui/date-picker/date-picker-common.js +1 -0
- package/ui/date-picker/date-picker-common.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
- package/ui/editable-text-base/editable-text-base-common.js +13 -7
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/frame/frame-common.d.ts +3 -2
- package/ui/frame/frame-common.js +6 -6
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/gestures/gestures-common.d.ts +22 -0
- package/ui/gestures/gestures-common.js +22 -0
- package/ui/gestures/gestures-common.js.map +1 -1
- package/ui/html-view/html-view-common.d.ts +1 -0
- package/ui/html-view/html-view-common.js.map +1 -1
- package/ui/image/image-common.d.ts +2 -0
- package/ui/image/image-common.js +3 -1
- package/ui/image/image-common.js.map +1 -1
- package/ui/index.d.ts +3 -1
- package/ui/index.js +1 -1
- package/ui/index.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
- package/ui/layouts/index.d.ts +2 -1
- package/ui/layouts/layout-base-common.d.ts +0 -1
- package/ui/layouts/layout-base-common.js +1 -8
- package/ui/layouts/layout-base-common.js.map +1 -1
- package/ui/layouts/stack-layout/index.ios.js.map +1 -1
- package/ui/list-picker/list-picker-common.d.ts +1 -0
- package/ui/list-picker/list-picker-common.js +1 -0
- package/ui/list-picker/list-picker-common.js.map +1 -1
- package/ui/placeholder/index.android.d.ts +1 -1
- package/ui/placeholder/index.d.ts +8 -42
- package/ui/proxy-view-container/index.d.ts +2 -0
- package/ui/proxy-view-container/index.js +2 -0
- package/ui/proxy-view-container/index.js.map +1 -1
- package/ui/repeater/index.d.ts +2 -0
- package/ui/repeater/index.js +2 -0
- package/ui/repeater/index.js.map +1 -1
- package/ui/search-bar/search-bar-common.js.map +1 -1
- package/ui/slider/slider-common.d.ts +1 -0
- package/ui/slider/slider-common.js +1 -0
- package/ui/slider/slider-common.js.map +1 -1
- package/ui/styling/background.ios.d.ts +1 -15
- package/ui/styling/background.ios.js +52 -54
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/style/index.d.ts +3 -1
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.d.ts +81 -100
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +79 -48
- package/ui/switch/switch-common.js +4 -4
- package/ui/switch/switch-common.js.map +1 -1
- package/ui/text-base/formatted-string.d.ts +36 -73
- package/ui/text-base/index.android.js +2 -11
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/span.d.ts +36 -81
- package/ui/text-base/text-base-common.d.ts +2 -0
- package/ui/text-base/text-base-common.js +6 -0
- package/ui/text-base/text-base-common.js.map +1 -1
- package/ui/text-field/text-field-common.js.map +1 -1
- package/ui/text-view/index.android.d.ts +0 -1
- package/ui/text-view/index.android.js +0 -1
- package/ui/text-view/index.android.js.map +1 -1
- package/ui/text-view/index.ios.d.ts +0 -3
- package/ui/text-view/index.ios.js +8 -64
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/text-view/text-view-common.d.ts +0 -26
- package/ui/text-view/text-view-common.js +0 -34
- package/ui/text-view/text-view-common.js.map +1 -1
- package/ui/time-picker/time-picker-common.d.ts +1 -0
- package/ui/time-picker/time-picker-common.js +1 -0
- package/ui/time-picker/time-picker-common.js.map +1 -1
- package/ui/utils.ios.d.ts +1 -2
- package/ui/utils.ios.js.map +1 -1
- package/ui/web-view/web-view-common.d.ts +1 -1
- package/utils/debug.d.ts +17 -61
- package/utils/ios/index.js +4 -4
- package/utils/ios/index.js.map +1 -1
- package/utils/lazy.d.ts +0 -5
- package/utils/macrotask-scheduler.d.ts +1 -5
- package/utils/native-helper.ios.js +1 -0
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/types.d.ts +23 -115
- package/xml/index.d.ts +44 -105
- package/xml/index.js +1 -1
- package/xml/index.js.map +1 -1
- package/accessibility/accessibility-service.d.ts +0 -10
- package/accessibility/font-scale.d.ts +0 -9
- package/accessibility/index.d.ts +0 -37
- package/animation-frame/animation-native.d.ts +0 -4
- package/application/application.d.ts +0 -194
- package/application/index.d.ts +0 -2
- package/application-settings/index.d.ts +0 -70
- package/cli-hooks/before-checkForChanges.js +0 -60
- package/cli-hooks/postinstall.js +0 -2
- package/cli-hooks/preuninstall.js +0 -2
- package/color/index.d.ts +0 -206
- package/connectivity/index.d.ts +0 -52
- package/css/lib/parse/index.js +0 -602
- package/css/package.json +0 -36
- package/css/reworkcss.d.ts +0 -47
- package/css/reworkcss.js +0 -1
- package/css-value/package.json +0 -23
- package/css-value/reworkcss-value.d.ts +0 -8
- package/css-value/reworkcss-value.js +0 -113
- package/debugger/css-agent.d.ts +0 -59
- package/fetch/index.js +0 -539
- package/file-system/file-system-access.d.ts +0 -441
- package/fps-meter/fps-native.d.ts +0 -24
- package/global-types.d.ts +0 -393
- package/http/http-request/index.d.ts +0 -3
- package/image-asset/index.d.ts +0 -17
- package/image-source/index.d.ts +0 -345
- package/js-libs/easysax/easysax.d.ts +0 -8
- package/js-libs/easysax/easysax.js +0 -782
- package/js-libs/easysax/package.json +0 -35
- package/platform/device/index.d.ts +0 -70
- package/platform/screen/index.d.ts +0 -48
- package/platforms/android/native-api-usage.json +0 -32
- package/platforms/android/res/values/ids.xml +0 -4
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/android/winter_cg-release.aar +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/Info.plist +0 -102
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Resources/Info.plist +0 -52
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/_CodeSignature/CodeResources +0 -146
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/_CodeSignature/CodeResources +0 -146
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +0 -102
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
- package/platforms/ios/native-api-usage.json +0 -41
- package/platforms/ios/src/NativeScriptEmbedder.h +0 -31
- package/platforms/ios/src/NativeScriptEmbedder.m +0 -43
- package/platforms/ios/src/NativeScriptMainWindow.swift +0 -179
- package/platforms/ios/src/NativeScriptUtils.h +0 -16
- package/platforms/ios/src/NativeScriptUtils.m +0 -137
- package/platforms/ios/src/UIView+NativeScript.h +0 -15
- package/platforms/ios/src/UIView+NativeScript.m +0 -150
- package/platforms/ios/src/module.modulemap +0 -14
- package/platforms/ios/typings/objc!MaterialComponents.d.ts +0 -808
- package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +0 -18
- package/references.d.ts +0 -10
- package/text/index.d.ts +0 -36
- package/timer/index.d.ts +0 -27
- package/ui/action-bar/index.d.ts +0 -271
- package/ui/activity-indicator/index.d.ts +0 -21
- package/ui/animation/index.d.ts +0 -152
- package/ui/button/index.d.ts +0 -44
- package/ui/core/control-state-change/index.d.ts +0 -15
- package/ui/core/view/index.d.ts +0 -992
- package/ui/core/view/view-helper/index.d.ts +0 -76
- package/ui/date-picker/index.d.ts +0 -65
- package/ui/dialogs/index.d.ts +0 -311
- package/ui/editable-text-base/index.d.ts +0 -100
- package/ui/embedding/index.d.ts +0 -10
- package/ui/frame/fragment.d.ts +0 -5
- package/ui/frame/fragment.transitions.d.ts +0 -43
- package/ui/frame/index.d.ts +0 -553
- package/ui/frame/transition-definitions.android.d.ts +0 -54
- package/ui/gestures/index.d.ts +0 -59
- package/ui/html-view/index.d.ts +0 -27
- package/ui/image/index.d.ts +0 -77
- package/ui/image/symbol-effects.d.ts +0 -13
- package/ui/image-cache/index.d.ts +0 -147
- package/ui/label/index.d.ts +0 -21
- package/ui/layouts/absolute-layout/index.d.ts +0 -40
- package/ui/layouts/dock-layout/index.d.ts +0 -35
- package/ui/layouts/flexbox-layout/index.d.ts +0 -66
- package/ui/layouts/grid-layout/index.d.ts +0 -182
- package/ui/layouts/layout-base.d.ts +0 -105
- package/ui/layouts/root-layout/index.d.ts +0 -45
- package/ui/layouts/stack-layout/index.d.ts +0 -19
- package/ui/layouts/wrap-layout/index.d.ts +0 -43
- package/ui/list-picker/index.d.ts +0 -32
- package/ui/list-view/index.d.ts +0 -208
- package/ui/page/index.d.ts +0 -212
- package/ui/progress/index.d.ts +0 -37
- package/ui/scroll-view/index.d.ts +0 -89
- package/ui/search-bar/index.d.ts +0 -89
- package/ui/segmented-bar/index.d.ts +0 -106
- package/ui/slider/index.d.ts +0 -72
- package/ui/styling/background.d.ts +0 -93
- package/ui/styling/font.d.ts +0 -62
- package/ui/switch/index.d.ts +0 -35
- package/ui/tab-view/index.d.ts +0 -175
- package/ui/text-base/index.d.ts +0 -161
- package/ui/text-field/index.d.ts +0 -41
- package/ui/text-view/index.d.ts +0 -35
- package/ui/time-picker/index.d.ts +0 -80
- package/ui/transition/fade-transition.d.ts +0 -3
- package/ui/transition/flip-transition.d.ts +0 -5
- package/ui/transition/index.d.ts +0 -59
- package/ui/transition/modal-transition.d.ts +0 -2
- package/ui/transition/page-transition.d.ts +0 -4
- package/ui/transition/shared-transition-helper.d.ts +0 -14
- package/ui/transition/slide-transition.d.ts +0 -5
- package/ui/utils.d.ts +0 -44
- package/ui/web-view/index.d.ts +0 -130
- package/utils/constants.d.ts +0 -1
- package/utils/index.d.ts +0 -177
- package/utils/layout-helper/index.d.ts +0 -82
- package/utils/mainthread-helper.d.ts +0 -16
- package/utils/native-helper.d.ts +0 -280
- package/utils/typescript-utils.d.ts +0 -6
package/css/lib/parse/index.js
DELETED
|
@@ -1,602 +0,0 @@
|
|
|
1
|
-
// http://www.w3.org/TR/CSS21/grammar.html
|
|
2
|
-
// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
|
|
3
|
-
var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g
|
|
4
|
-
|
|
5
|
-
module.exports = function(css, options){
|
|
6
|
-
options = options || {};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Positional.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
var lineno = 1;
|
|
13
|
-
var column = 1;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Update lineno and column based on `str`.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
function updatePosition(str) {
|
|
20
|
-
var lines = str.match(/\n/g);
|
|
21
|
-
if (lines) lineno += lines.length;
|
|
22
|
-
var i = str.lastIndexOf('\n');
|
|
23
|
-
column = ~i ? str.length - i : column + str.length;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Mark position and patch `node.position`.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
function position() {
|
|
31
|
-
var start = { line: lineno, column: column };
|
|
32
|
-
return function(node){
|
|
33
|
-
node.position = new Position(start);
|
|
34
|
-
whitespace();
|
|
35
|
-
return node;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Store position information for a node
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
function Position(start) {
|
|
44
|
-
this.start = start;
|
|
45
|
-
this.end = { line: lineno, column: column };
|
|
46
|
-
this.source = options.source;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Non-enumerable source string
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
Position.prototype.content = css;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Error `msg`.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
var errorsList = [];
|
|
60
|
-
|
|
61
|
-
function error(msg) {
|
|
62
|
-
var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg);
|
|
63
|
-
err.reason = msg;
|
|
64
|
-
err.filename = options.source;
|
|
65
|
-
err.line = lineno;
|
|
66
|
-
err.column = column;
|
|
67
|
-
err.source = css;
|
|
68
|
-
|
|
69
|
-
if (options.silent) {
|
|
70
|
-
errorsList.push(err);
|
|
71
|
-
} else {
|
|
72
|
-
throw err;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Parse stylesheet.
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
function stylesheet() {
|
|
81
|
-
var rulesList = rules();
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
type: 'stylesheet',
|
|
85
|
-
stylesheet: {
|
|
86
|
-
rules: rulesList,
|
|
87
|
-
parsingErrors: errorsList
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Opening brace.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
function open() {
|
|
97
|
-
return match(/^{\s*/);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Closing brace.
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
function close() {
|
|
105
|
-
return match(/^}/);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Parse ruleset.
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
function rules() {
|
|
113
|
-
var node;
|
|
114
|
-
var rules = [];
|
|
115
|
-
whitespace();
|
|
116
|
-
comments(rules);
|
|
117
|
-
while (css.length && css.charAt(0) != '}' && (node = atrule() || rule())) {
|
|
118
|
-
if (node !== false) {
|
|
119
|
-
rules.push(node);
|
|
120
|
-
comments(rules);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return rules;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Match `re` and return captures.
|
|
128
|
-
*/
|
|
129
|
-
|
|
130
|
-
function match(re) {
|
|
131
|
-
var m = re.exec(css);
|
|
132
|
-
if (!m) return;
|
|
133
|
-
var str = m[0];
|
|
134
|
-
updatePosition(str);
|
|
135
|
-
css = css.slice(str.length);
|
|
136
|
-
return m;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Parse whitespace.
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
function whitespace() {
|
|
144
|
-
match(/^\s*/);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Parse comments;
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
function comments(rules) {
|
|
152
|
-
var c;
|
|
153
|
-
rules = rules || [];
|
|
154
|
-
while (c = comment()) {
|
|
155
|
-
if (c !== false) {
|
|
156
|
-
rules.push(c);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
return rules;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Parse comment.
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
function comment() {
|
|
167
|
-
var pos = position();
|
|
168
|
-
if ('/' != css.charAt(0) || '*' != css.charAt(1)) return;
|
|
169
|
-
|
|
170
|
-
var i = 2;
|
|
171
|
-
while ("" != css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i;
|
|
172
|
-
i += 2;
|
|
173
|
-
|
|
174
|
-
if ("" === css.charAt(i-1)) {
|
|
175
|
-
return error('End of comment missing');
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
var str = css.slice(2, i - 2);
|
|
179
|
-
column += 2;
|
|
180
|
-
updatePosition(str);
|
|
181
|
-
css = css.slice(i);
|
|
182
|
-
column += 2;
|
|
183
|
-
|
|
184
|
-
return pos({
|
|
185
|
-
type: 'comment',
|
|
186
|
-
comment: str
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Parse selector.
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
function selector() {
|
|
195
|
-
var m = match(/^([^{]+)/);
|
|
196
|
-
if (!m) return;
|
|
197
|
-
/* @fix Remove all comments from selectors
|
|
198
|
-
* http://ostermiller.org/findcomment.html */
|
|
199
|
-
return trim(m[0])
|
|
200
|
-
.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, '')
|
|
201
|
-
.replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function(m) {
|
|
202
|
-
return m.replace(/,/g, '\u200C');
|
|
203
|
-
})
|
|
204
|
-
.split(/\s*(?![^(]*\)),\s*/)
|
|
205
|
-
.map(function(s) {
|
|
206
|
-
return s.replace(/\u200C/g, ',');
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Parse declaration.
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
|
-
function declaration() {
|
|
215
|
-
var pos = position();
|
|
216
|
-
|
|
217
|
-
// prop
|
|
218
|
-
var prop = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
|
|
219
|
-
if (!prop) return;
|
|
220
|
-
prop = trim(prop[0]);
|
|
221
|
-
|
|
222
|
-
// :
|
|
223
|
-
if (!match(/^:\s*/)) return error("property missing ':'");
|
|
224
|
-
|
|
225
|
-
// val
|
|
226
|
-
var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);
|
|
227
|
-
|
|
228
|
-
var ret = pos({
|
|
229
|
-
type: 'declaration',
|
|
230
|
-
property: prop.replace(commentre, ''),
|
|
231
|
-
value: val ? trim(val[0]).replace(commentre, '') : ''
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
// ;
|
|
235
|
-
match(/^[;\s]*/);
|
|
236
|
-
|
|
237
|
-
return ret;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Parse declarations.
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
|
-
function declarations() {
|
|
245
|
-
var decls = [];
|
|
246
|
-
|
|
247
|
-
if (!open()) return error("missing '{'");
|
|
248
|
-
comments(decls);
|
|
249
|
-
|
|
250
|
-
// declarations
|
|
251
|
-
var decl;
|
|
252
|
-
while (decl = declaration()) {
|
|
253
|
-
if (decl !== false) {
|
|
254
|
-
decls.push(decl);
|
|
255
|
-
comments(decls);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (!close()) return error("missing '}'");
|
|
260
|
-
return decls;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Parse keyframe.
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
|
-
function keyframe() {
|
|
268
|
-
var m;
|
|
269
|
-
var vals = [];
|
|
270
|
-
var pos = position();
|
|
271
|
-
|
|
272
|
-
while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) {
|
|
273
|
-
vals.push(m[1]);
|
|
274
|
-
match(/^,\s*/);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
if (!vals.length) return;
|
|
278
|
-
|
|
279
|
-
return pos({
|
|
280
|
-
type: 'keyframe',
|
|
281
|
-
values: vals,
|
|
282
|
-
declarations: declarations()
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Parse keyframes.
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
function atkeyframes() {
|
|
291
|
-
var pos = position();
|
|
292
|
-
var m = match(/^@([-\w]+)?keyframes\s*/);
|
|
293
|
-
|
|
294
|
-
if (!m) return;
|
|
295
|
-
var vendor = m[1];
|
|
296
|
-
|
|
297
|
-
// identifier
|
|
298
|
-
var m = match(/^([-\w]+)\s*/);
|
|
299
|
-
if (!m) return error("@keyframes missing name");
|
|
300
|
-
var name = m[1];
|
|
301
|
-
|
|
302
|
-
if (!open()) return error("@keyframes missing '{'");
|
|
303
|
-
|
|
304
|
-
var frame;
|
|
305
|
-
var frames = comments();
|
|
306
|
-
while (frame = keyframe()) {
|
|
307
|
-
frames.push(frame);
|
|
308
|
-
frames = frames.concat(comments());
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
if (!close()) return error("@keyframes missing '}'");
|
|
312
|
-
|
|
313
|
-
return pos({
|
|
314
|
-
type: 'keyframes',
|
|
315
|
-
name: name,
|
|
316
|
-
vendor: vendor,
|
|
317
|
-
keyframes: frames
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Parse supports.
|
|
323
|
-
*/
|
|
324
|
-
|
|
325
|
-
function atsupports() {
|
|
326
|
-
var pos = position();
|
|
327
|
-
var m = match(/^@supports *([^{]+)/);
|
|
328
|
-
|
|
329
|
-
if (!m) return;
|
|
330
|
-
var supports = trim(m[1]);
|
|
331
|
-
|
|
332
|
-
if (!open()) return error("@supports missing '{'");
|
|
333
|
-
|
|
334
|
-
var style = comments().concat(rules());
|
|
335
|
-
|
|
336
|
-
if (!close()) return error("@supports missing '}'");
|
|
337
|
-
|
|
338
|
-
return pos({
|
|
339
|
-
type: 'supports',
|
|
340
|
-
supports: supports,
|
|
341
|
-
rules: style
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Parse host.
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
function athost() {
|
|
350
|
-
var pos = position();
|
|
351
|
-
var m = match(/^@host\s*/);
|
|
352
|
-
|
|
353
|
-
if (!m) return;
|
|
354
|
-
|
|
355
|
-
if (!open()) return error("@host missing '{'");
|
|
356
|
-
|
|
357
|
-
var style = comments().concat(rules());
|
|
358
|
-
|
|
359
|
-
if (!close()) return error("@host missing '}'");
|
|
360
|
-
|
|
361
|
-
return pos({
|
|
362
|
-
type: 'host',
|
|
363
|
-
rules: style
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Parse media.
|
|
369
|
-
*/
|
|
370
|
-
|
|
371
|
-
function atmedia() {
|
|
372
|
-
var pos = position();
|
|
373
|
-
var m = match(/^@media *([^{]+)/);
|
|
374
|
-
|
|
375
|
-
if (!m) return;
|
|
376
|
-
var media = trim(m[1]);
|
|
377
|
-
|
|
378
|
-
if (!open()) return error("@media missing '{'");
|
|
379
|
-
|
|
380
|
-
var style = comments().concat(rules());
|
|
381
|
-
|
|
382
|
-
if (!close()) return error("@media missing '}'");
|
|
383
|
-
|
|
384
|
-
return pos({
|
|
385
|
-
type: 'media',
|
|
386
|
-
media: media,
|
|
387
|
-
rules: style
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Parse custom-media.
|
|
394
|
-
*/
|
|
395
|
-
|
|
396
|
-
function atcustommedia() {
|
|
397
|
-
var pos = position();
|
|
398
|
-
var m = match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);
|
|
399
|
-
if (!m) return;
|
|
400
|
-
|
|
401
|
-
return pos({
|
|
402
|
-
type: 'custom-media',
|
|
403
|
-
name: trim(m[1]),
|
|
404
|
-
media: trim(m[2])
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Parse paged media.
|
|
410
|
-
*/
|
|
411
|
-
|
|
412
|
-
function atpage() {
|
|
413
|
-
var pos = position();
|
|
414
|
-
var m = match(/^@page */);
|
|
415
|
-
if (!m) return;
|
|
416
|
-
|
|
417
|
-
var sel = selector() || [];
|
|
418
|
-
|
|
419
|
-
if (!open()) return error("@page missing '{'");
|
|
420
|
-
var decls = comments();
|
|
421
|
-
|
|
422
|
-
// declarations
|
|
423
|
-
var decl;
|
|
424
|
-
while (decl = declaration()) {
|
|
425
|
-
decls.push(decl);
|
|
426
|
-
decls = decls.concat(comments());
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
if (!close()) return error("@page missing '}'");
|
|
430
|
-
|
|
431
|
-
return pos({
|
|
432
|
-
type: 'page',
|
|
433
|
-
selectors: sel,
|
|
434
|
-
declarations: decls
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Parse document.
|
|
440
|
-
*/
|
|
441
|
-
|
|
442
|
-
function atdocument() {
|
|
443
|
-
var pos = position();
|
|
444
|
-
var m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
445
|
-
if (!m) return;
|
|
446
|
-
|
|
447
|
-
var vendor = trim(m[1]);
|
|
448
|
-
var doc = trim(m[2]);
|
|
449
|
-
|
|
450
|
-
if (!open()) return error("@document missing '{'");
|
|
451
|
-
|
|
452
|
-
var style = comments().concat(rules());
|
|
453
|
-
|
|
454
|
-
if (!close()) return error("@document missing '}'");
|
|
455
|
-
|
|
456
|
-
return pos({
|
|
457
|
-
type: 'document',
|
|
458
|
-
document: doc,
|
|
459
|
-
vendor: vendor,
|
|
460
|
-
rules: style
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Parse font-face.
|
|
466
|
-
*/
|
|
467
|
-
|
|
468
|
-
function atfontface() {
|
|
469
|
-
var pos = position();
|
|
470
|
-
var m = match(/^@font-face\s*/);
|
|
471
|
-
if (!m) return;
|
|
472
|
-
|
|
473
|
-
if (!open()) return error("@font-face missing '{'");
|
|
474
|
-
var decls = comments();
|
|
475
|
-
|
|
476
|
-
// declarations
|
|
477
|
-
var decl;
|
|
478
|
-
while (decl = declaration()) {
|
|
479
|
-
decls.push(decl);
|
|
480
|
-
decls = decls.concat(comments());
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
if (!close()) return error("@font-face missing '}'");
|
|
484
|
-
|
|
485
|
-
return pos({
|
|
486
|
-
type: 'font-face',
|
|
487
|
-
declarations: decls
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Parse import
|
|
493
|
-
*/
|
|
494
|
-
|
|
495
|
-
var atimport = _compileAtrule('import');
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Parse charset
|
|
499
|
-
*/
|
|
500
|
-
|
|
501
|
-
var atcharset = _compileAtrule('charset');
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Parse namespace
|
|
505
|
-
*/
|
|
506
|
-
|
|
507
|
-
var atnamespace = _compileAtrule('namespace');
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Parse non-block at-rules
|
|
511
|
-
*/
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
function _compileAtrule(name) {
|
|
515
|
-
var re = new RegExp('^@' + name + '\\s*([^;]+);');
|
|
516
|
-
return function() {
|
|
517
|
-
var pos = position();
|
|
518
|
-
var m = match(re);
|
|
519
|
-
if (!m) return;
|
|
520
|
-
var ret = { type: name };
|
|
521
|
-
ret[name] = m[1].trim();
|
|
522
|
-
return pos(ret);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Parse at rule.
|
|
528
|
-
*/
|
|
529
|
-
|
|
530
|
-
function atrule() {
|
|
531
|
-
if (css[0] != '@') return;
|
|
532
|
-
|
|
533
|
-
return atkeyframes()
|
|
534
|
-
|| atmedia()
|
|
535
|
-
|| atcustommedia()
|
|
536
|
-
|| atsupports()
|
|
537
|
-
|| atimport()
|
|
538
|
-
|| atcharset()
|
|
539
|
-
|| atnamespace()
|
|
540
|
-
|| atdocument()
|
|
541
|
-
|| atpage()
|
|
542
|
-
|| athost()
|
|
543
|
-
|| atfontface();
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Parse rule.
|
|
548
|
-
*/
|
|
549
|
-
|
|
550
|
-
function rule() {
|
|
551
|
-
var pos = position();
|
|
552
|
-
var sel = selector();
|
|
553
|
-
|
|
554
|
-
if (!sel) return error('selector missing');
|
|
555
|
-
comments();
|
|
556
|
-
|
|
557
|
-
return pos({
|
|
558
|
-
type: 'rule',
|
|
559
|
-
selectors: sel,
|
|
560
|
-
declarations: declarations()
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
return addParent(stylesheet());
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* Trim `str`.
|
|
569
|
-
*/
|
|
570
|
-
|
|
571
|
-
function trim(str) {
|
|
572
|
-
return str ? str.replace(/^\s+|\s+$/g, '') : '';
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* Adds non-enumerable parent node reference to each node.
|
|
577
|
-
*/
|
|
578
|
-
|
|
579
|
-
function addParent(obj, parent) {
|
|
580
|
-
var isNode = obj && typeof obj.type === 'string';
|
|
581
|
-
var childParent = isNode ? obj : parent;
|
|
582
|
-
|
|
583
|
-
for (var k in obj) {
|
|
584
|
-
var value = obj[k];
|
|
585
|
-
if (Array.isArray(value)) {
|
|
586
|
-
value.forEach(function(v) { addParent(v, childParent); });
|
|
587
|
-
} else if (value && typeof value === 'object') {
|
|
588
|
-
addParent(value, childParent);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
if (isNode) {
|
|
593
|
-
Object.defineProperty(obj, 'parent', {
|
|
594
|
-
configurable: true,
|
|
595
|
-
writable: true,
|
|
596
|
-
enumerable: false,
|
|
597
|
-
value: parent || null
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
return obj;
|
|
602
|
-
}
|
package/css/package.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "css",
|
|
3
|
-
"version": "2.2.1",
|
|
4
|
-
"description": "CSS parser / stringifier",
|
|
5
|
-
"main": "reworkcss",
|
|
6
|
-
"types": "reworkcss.d.ts",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"source-map": "^0.1.38",
|
|
9
|
-
"source-map-resolve": "^0.3.0",
|
|
10
|
-
"urix": "^0.1.0",
|
|
11
|
-
"inherits": "^2.0.1"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"mocha": "^1.21.3",
|
|
15
|
-
"should": "^4.0.4",
|
|
16
|
-
"matcha": "^0.5.0",
|
|
17
|
-
"bytes": "^1.0.0"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"benchmark": "matcha",
|
|
21
|
-
"test": "mocha --require should --reporter spec --bail test/*.js"
|
|
22
|
-
},
|
|
23
|
-
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "https://github.com/reworkcss/css.git"
|
|
28
|
-
},
|
|
29
|
-
"keywords": [
|
|
30
|
-
"css",
|
|
31
|
-
"parser",
|
|
32
|
-
"stringifier",
|
|
33
|
-
"stylesheet"
|
|
34
|
-
],
|
|
35
|
-
"nativescript": {}
|
|
36
|
-
}
|
package/css/reworkcss.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export interface Position {
|
|
2
|
-
start: { line: number; column: number };
|
|
3
|
-
end: { line: number; column: number };
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface Node {
|
|
7
|
-
type: 'rule' | 'keyframes' | 'declaration' | 'import' | 'media';
|
|
8
|
-
position: Position;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface Declaration extends Node {
|
|
12
|
-
property: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface Rule extends Node {
|
|
17
|
-
selectors: string[];
|
|
18
|
-
declarations: Declaration[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type AtRule = KeyFrames | Media;
|
|
22
|
-
|
|
23
|
-
export interface Keyframes extends Rule {
|
|
24
|
-
name: string;
|
|
25
|
-
vendor?: string;
|
|
26
|
-
keyframes?: Array<KeyFrame>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface KeyFrame extends Node {
|
|
30
|
-
values: string[];
|
|
31
|
-
declarations: Array<Declaration>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface Media extends Node {
|
|
35
|
-
media: string;
|
|
36
|
-
rules: Array<Rule | AtRule>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface StyleSheet {
|
|
40
|
-
rules: Rule[];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface SyntaxTree {
|
|
44
|
-
stylesheet: StyleSheet;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function parse(css: string, options: any): SyntaxTree;
|
package/css/reworkcss.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.parse = require('./lib/parse');
|
package/css-value/package.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "css-value",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "CSS value parser",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"css",
|
|
7
|
-
"parser",
|
|
8
|
-
"value"
|
|
9
|
-
],
|
|
10
|
-
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git://github.com/visionmedia/css-value.git"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"mocha": "~1.9.0",
|
|
18
|
-
"should": "~1.2.2"
|
|
19
|
-
},
|
|
20
|
-
"main": "reworkcss-value",
|
|
21
|
-
"types": "reworkcss-value.d.ts",
|
|
22
|
-
"nativescript": {}
|
|
23
|
-
}
|