@nativescript/core 9.0.9-rc.1 → 9.0.10-next.0
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/css/package.json +36 -0
- package/css-value/package.json +23 -0
- package/package.json +86 -86
- package/LICENSE +0 -19
- package/abortcontroller/abortsignal.d.ts +0 -23
- package/abortcontroller/abortsignal.js +0 -57
- package/abortcontroller/abortsignal.js.map +0 -1
- package/abortcontroller/index.d.ts +0 -20
- package/abortcontroller/index.js +0 -52
- package/abortcontroller/index.js.map +0 -1
- package/accessibility/accessibility-common.d.ts +0 -282
- package/accessibility/accessibility-common.js +0 -416
- package/accessibility/accessibility-common.js.map +0 -1
- package/accessibility/accessibility-properties.d.ts +0 -24
- package/accessibility/accessibility-properties.js +0 -118
- package/accessibility/accessibility-properties.js.map +0 -1
- package/accessibility/index.d.ts +0 -1
- package/accessibility/index.js +0 -2
- package/accessibility/index.js.map +0 -1
- package/animation-frame/animation-native.android.d.ts +0 -1
- package/animation-frame/animation-native.android.js +0 -4
- package/animation-frame/animation-native.android.js.map +0 -1
- package/animation-frame/animation-native.ios.d.ts +0 -1
- package/animation-frame/animation-native.ios.js +0 -3
- package/animation-frame/animation-native.ios.js.map +0 -1
- package/animation-frame/index.js +0 -81
- package/animation-frame/index.js.map +0 -1
- package/application/application-common.d.ts +0 -247
- package/application/application-common.js +0 -578
- package/application/application-common.js.map +0 -1
- package/application/application-interfaces.d.ts +0 -220
- package/application/application-interfaces.js +0 -2
- package/application/application-interfaces.js.map +0 -1
- package/application/application-shims.d.ts +0 -378
- package/application/application-shims.js +0 -380
- package/application/application-shims.js.map +0 -1
- package/application/application.android.d.ts +0 -81
- package/application/application.android.js +0 -1233
- package/application/application.android.js.map +0 -1
- package/application/application.ios.d.ts +0 -145
- package/application/application.ios.js +0 -1481
- package/application/application.ios.js.map +0 -1
- package/application/helpers-common.d.ts +0 -50
- package/application/helpers-common.js +0 -153
- package/application/helpers-common.js.map +0 -1
- package/application/helpers.android.d.ts +0 -8
- package/application/helpers.android.js +0 -119
- package/application/helpers.android.js.map +0 -1
- package/application/helpers.ios.d.ts +0 -8
- package/application/helpers.ios.js +0 -24
- package/application/helpers.ios.js.map +0 -1
- package/application/index.android.d.ts +0 -2
- package/application/index.android.js +0 -3
- package/application/index.android.js.map +0 -1
- package/application/index.ios.d.ts +0 -2
- package/application/index.ios.js +0 -3
- package/application/index.ios.js.map +0 -1
- package/application-settings/application-settings-common.d.ts +0 -2
- package/application-settings/application-settings-common.js +0 -15
- package/application-settings/application-settings-common.js.map +0 -1
- package/application-settings/index.android.d.ts +0 -11
- package/application-settings/index.android.js +0 -124
- package/application-settings/index.android.js.map +0 -1
- package/application-settings/index.ios.d.ts +0 -11
- package/application-settings/index.ios.js +0 -81
- package/application-settings/index.ios.js.map +0 -1
- package/bundle-entry-points.d.ts +0 -1
- package/bundle-entry-points.js +0 -47
- package/bundle-entry-points.js.map +0 -1
- package/color/color-common.d.ts +0 -136
- package/color/color-common.js +0 -341
- package/color/color-common.js.map +0 -1
- package/color/color-types.d.ts +0 -49
- package/color/color-types.js +0 -3
- package/color/color-types.js.map +0 -1
- package/color/color-utils.d.ts +0 -38
- package/color/color-utils.js +0 -213
- package/color/color-utils.js.map +0 -1
- package/color/index.android.d.ts +0 -4
- package/color/index.android.js +0 -7
- package/color/index.android.js.map +0 -1
- package/color/index.ios.d.ts +0 -7
- package/color/index.ios.js +0 -19
- package/color/index.ios.js.map +0 -1
- package/color/known-colors.d.ts +0 -144
- package/color/known-colors.js +0 -165
- package/color/known-colors.js.map +0 -1
- package/config/config.interface.d.ts +0 -275
- package/config/config.interface.js +0 -2
- package/config/config.interface.js.map +0 -1
- package/config/index.d.ts +0 -1
- package/config/index.js +0 -2
- package/config/index.js.map +0 -1
- package/connectivity/index.android.d.ts +0 -11
- package/connectivity/index.android.js +0 -157
- package/connectivity/index.android.js.map +0 -1
- package/connectivity/index.ios.d.ts +0 -11
- package/connectivity/index.ios.js +0 -132
- package/connectivity/index.ios.js.map +0 -1
- package/console/index.d.ts +0 -14
- package/console/index.js +0 -33
- package/console/index.js.map +0 -1
- package/core-types/animation-types.d.ts +0 -11
- package/core-types/animation-types.js +0 -13
- package/core-types/animation-types.js.map +0 -1
- package/core-types/index.d.ts +0 -345
- package/core-types/index.js +0 -290
- package/core-types/index.js.map +0 -1
- package/core-types/validators.d.ts +0 -2
- package/core-types/validators.js +0 -27
- package/core-types/validators.js.map +0 -1
- package/css/CSS3Parser.d.ts +0 -184
- package/css/CSS3Parser.js +0 -534
- package/css/CSS3Parser.js.map +0 -1
- package/css/CSSNativeScript.d.ts +0 -14
- package/css/CSSNativeScript.js +0 -113
- package/css/CSSNativeScript.js.map +0 -1
- package/css/css-tree-parser.d.ts +0 -1
- package/css/css-tree-parser.js +0 -133
- package/css/css-tree-parser.js.map +0 -1
- package/css/lib/parse/index.d.ts +0 -1
- package/css/lib/parse/index.js +0 -500
- package/css/lib/parse/index.js.map +0 -1
- package/css/parser.d.ts +0 -70
- package/css/parser.js +0 -517
- package/css/parser.js.map +0 -1
- package/css/reworkcss.d.ts +0 -44
- package/css/reworkcss.js +0 -5
- package/css/reworkcss.js.map +0 -1
- package/css/system-classes.d.ts +0 -12
- package/css/system-classes.js +0 -47
- package/css/system-classes.js.map +0 -1
- package/css-mediaquery/index.d.ts +0 -27
- package/css-mediaquery/index.js +0 -118
- package/css-mediaquery/index.js.map +0 -1
- package/css-value/reworkcss-value.d.ts +0 -31
- package/css-value/reworkcss-value.js +0 -91
- package/css-value/reworkcss-value.js.map +0 -1
- package/data/observable/index.d.ts +0 -213
- package/data/observable/index.js +0 -452
- package/data/observable/index.js.map +0 -1
- package/data/observable-array/index.d.ts +0 -215
- package/data/observable-array/index.js +0 -325
- package/data/observable-array/index.js.map +0 -1
- package/data/virtual-array/index.d.ts +0 -72
- package/data/virtual-array/index.js +0 -133
- package/data/virtual-array/index.js.map +0 -1
- package/debugger/InspectorBackendCommands.d.ts +0 -1056
- package/debugger/InspectorBackendCommands.js +0 -578
- package/debugger/InspectorBackendCommands.js.map +0 -1
- package/debugger/devtools-elements-interfaces.d.ts +0 -16
- package/debugger/devtools-elements-interfaces.js +0 -2
- package/debugger/devtools-elements-interfaces.js.map +0 -1
- package/debugger/devtools-elements.common.d.ts +0 -7
- package/debugger/devtools-elements.common.js +0 -93
- package/debugger/devtools-elements.common.js.map +0 -1
- package/debugger/devtools-elements.js +0 -20
- package/debugger/devtools-elements.js.map +0 -1
- package/debugger/dom-types.d.ts +0 -24
- package/debugger/dom-types.js +0 -152
- package/debugger/dom-types.js.map +0 -1
- package/debugger/index.d.ts +0 -87
- package/debugger/index.js +0 -118
- package/debugger/index.js.map +0 -1
- package/debugger/webinspector-css.d.ts +0 -34
- package/debugger/webinspector-css.js +0 -72
- package/debugger/webinspector-css.js.map +0 -1
- package/debugger/webinspector-dom.d.ts +0 -33
- package/debugger/webinspector-dom.js +0 -75
- package/debugger/webinspector-dom.js.map +0 -1
- package/debugger/webinspector-network.android.d.ts +0 -79
- package/debugger/webinspector-network.android.js +0 -208
- package/debugger/webinspector-network.android.js.map +0 -1
- package/debugger/webinspector-network.ios.d.ts +0 -79
- package/debugger/webinspector-network.ios.js +0 -204
- package/debugger/webinspector-network.ios.js.map +0 -1
- package/fetch/index.d.ts +0 -72
- package/fetch/index.js +0 -529
- package/fetch/index.js.map +0 -1
- package/file-system/file-system-access.android.d.ts +0 -151
- package/file-system/file-system-access.android.js +0 -1162
- package/file-system/file-system-access.android.js.map +0 -1
- package/file-system/file-system-access.ios.d.ts +0 -85
- package/file-system/file-system-access.ios.js +0 -622
- package/file-system/file-system-access.ios.js.map +0 -1
- package/file-system/index.js +0 -873
- package/file-system/index.js.map +0 -1
- package/fps-meter/fps-native.android.d.ts +0 -11
- package/fps-meter/fps-native.android.js +0 -62
- package/fps-meter/fps-native.android.js.map +0 -1
- package/fps-meter/fps-native.ios.d.ts +0 -10
- package/fps-meter/fps-native.ios.js +0 -56
- package/fps-meter/fps-native.ios.js.map +0 -1
- package/fps-meter/index.js +0 -77
- package/fps-meter/index.js.map +0 -1
- package/globals/global-utils.d.ts +0 -27
- package/globals/global-utils.js +0 -67
- package/globals/global-utils.js.map +0 -1
- package/globals/index.d.ts +0 -3
- package/globals/index.js +0 -313
- package/globals/index.js.map +0 -1
- package/http/http-interfaces.d.ts +0 -84
- package/http/http-interfaces.js +0 -6
- package/http/http-interfaces.js.map +0 -1
- package/http/http-request/http-request-common.d.ts +0 -1
- package/http/http-request/http-request-common.js +0 -15
- package/http/http-request/http-request-common.js.map +0 -1
- package/http/http-request/index.android.d.ts +0 -3
- package/http/http-request/index.android.js +0 -274
- package/http/http-request/index.android.js.map +0 -1
- package/http/http-request/index.ios.d.ts +0 -3
- package/http/http-request/index.ios.js +0 -221
- package/http/http-request/index.ios.js.map +0 -1
- package/http/http-shared.d.ts +0 -3
- package/http/http-shared.js +0 -2
- package/http/http-shared.js.map +0 -1
- package/http/index.js +0 -70
- package/http/index.js.map +0 -1
- package/image-asset/image-asset-common.d.ts +0 -25
- package/image-asset/image-asset-common.js +0 -74
- package/image-asset/image-asset-common.js.map +0 -1
- package/image-asset/index.android.d.ts +0 -9
- package/image-asset/index.android.js +0 -33
- package/image-asset/index.android.js.map +0 -1
- package/image-asset/index.ios.d.ts +0 -10
- package/image-asset/index.ios.js +0 -57
- package/image-asset/index.ios.js.map +0 -1
- package/image-source/image-source-common.d.ts +0 -4
- package/image-source/image-source-common.js +0 -21
- package/image-source/image-source-common.js.map +0 -1
- package/image-source/index.android.d.ts +0 -58
- package/image-source/index.android.js +0 -371
- package/image-source/index.android.js.map +0 -1
- package/image-source/index.ios.d.ts +0 -59
- package/image-source/index.ios.js +0 -454
- package/image-source/index.ios.js.map +0 -1
- package/index.js +0 -38
- package/index.js.map +0 -1
- package/inspector_modules.d.ts +0 -7
- package/inspector_modules.js +0 -233
- package/inspector_modules.js.map +0 -1
- package/matrix/index.js +0 -45
- package/matrix/index.js.map +0 -1
- package/media-query-list/index.d.ts +0 -21
- package/media-query-list/index.js +0 -159
- package/media-query-list/index.js.map +0 -1
- package/module-name-resolver/helpers.d.ts +0 -14
- package/module-name-resolver/helpers.js +0 -27
- package/module-name-resolver/helpers.js.map +0 -1
- package/module-name-resolver/index.d.ts +0 -14
- package/module-name-resolver/index.js +0 -67
- package/module-name-resolver/index.js.map +0 -1
- package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
- package/module-name-resolver/non-bundle-workflow-compat.js +0 -128
- package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
- package/module-name-resolver/qualifier-matcher/index.d.ts +0 -11
- package/module-name-resolver/qualifier-matcher/index.js +0 -141
- package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
- package/platform/common.d.ts +0 -10
- package/platform/common.js +0 -14
- package/platform/common.js.map +0 -1
- package/platform/device/index.android.d.ts +0 -20
- package/platform/device/index.android.js +0 -78
- package/platform/device/index.android.js.map +0 -1
- package/platform/device/index.ios.d.ts +0 -19
- package/platform/device/index.ios.js +0 -69
- package/platform/device/index.ios.js.map +0 -1
- package/platform/index.js +0 -4
- package/platform/index.js.map +0 -1
- package/platform/screen/index.android.d.ts +0 -16
- package/platform/screen/index.android.js +0 -41
- package/platform/screen/index.android.js.map +0 -1
- package/platform/screen/index.ios.d.ts +0 -15
- package/platform/screen/index.ios.js +0 -35
- package/platform/screen/index.ios.js.map +0 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +0 -20
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +0 -21
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +0 -52
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCWinterTC.h +0 -20
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSString+WinterTC.h +0 -21
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Resources/Info.plist +0 -52
- 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/Versions/Current/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/profiling/index.js +0 -273
- package/profiling/index.js.map +0 -1
- package/text/formatted-string.js +0 -2
- package/text/formatted-string.js.map +0 -1
- package/text/index.android.d.ts +0 -9
- package/text/index.android.js +0 -11
- package/text/index.android.js.map +0 -1
- package/text/index.ios.d.ts +0 -9
- package/text/index.ios.js +0 -11
- package/text/index.ios.js.map +0 -1
- package/text/span.js +0 -2
- package/text/span.js.map +0 -1
- package/text/text-common.d.ts +0 -12
- package/text/text-common.js +0 -111
- package/text/text-common.js.map +0 -1
- package/timer/index.android.d.ts +0 -4
- package/timer/index.android.js +0 -83
- package/timer/index.android.js.map +0 -1
- package/timer/index.ios.d.ts +0 -4
- package/timer/index.ios.js +0 -68
- package/timer/index.ios.js.map +0 -1
- package/trace/index.js +0 -255
- package/trace/index.js.map +0 -1
- package/ui/action-bar/action-bar-common.d.ts +0 -85
- package/ui/action-bar/action-bar-common.js +0 -381
- package/ui/action-bar/action-bar-common.js.map +0 -1
- package/ui/action-bar/index.android.d.ts +0 -55
- package/ui/action-bar/index.android.js +0 -502
- package/ui/action-bar/index.android.js.map +0 -1
- package/ui/action-bar/index.ios.d.ts +0 -64
- package/ui/action-bar/index.ios.js +0 -614
- package/ui/action-bar/index.ios.js.map +0 -1
- package/ui/activity-indicator/activity-indicator-common.d.ts +0 -9
- package/ui/activity-indicator/activity-indicator-common.js +0 -22
- package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
- package/ui/activity-indicator/index.android.d.ts +0 -15
- package/ui/activity-indicator/index.android.js +0 -54
- package/ui/activity-indicator/index.android.js.map +0 -1
- package/ui/activity-indicator/index.ios.d.ts +0 -16
- package/ui/activity-indicator/index.ios.js +0 -54
- package/ui/activity-indicator/index.ios.js.map +0 -1
- package/ui/animation/animation-common.d.ts +0 -30
- package/ui/animation/animation-common.js +0 -239
- package/ui/animation/animation-common.js.map +0 -1
- package/ui/animation/animation-shared.d.ts +0 -84
- package/ui/animation/animation-shared.js +0 -4
- package/ui/animation/animation-shared.js.map +0 -1
- package/ui/animation/animation-types.d.ts +0 -1
- package/ui/animation/animation-types.js +0 -3
- package/ui/animation/animation-types.js.map +0 -1
- package/ui/animation/index.android.d.ts +0 -23
- package/ui/animation/index.android.js +0 -432
- package/ui/animation/index.android.js.map +0 -1
- package/ui/animation/index.ios.d.ts +0 -28
- package/ui/animation/index.ios.js +0 -808
- package/ui/animation/index.ios.js.map +0 -1
- package/ui/animation/keyframe-animation.d.ts +0 -76
- package/ui/animation/keyframe-animation.js +0 -238
- package/ui/animation/keyframe-animation.js.map +0 -1
- package/ui/builder/binding-builder.d.ts +0 -13
- package/ui/builder/binding-builder.js +0 -171
- package/ui/builder/binding-builder.js.map +0 -1
- package/ui/builder/component-builder/index.d.ts +0 -7
- package/ui/builder/component-builder/index.js +0 -219
- package/ui/builder/component-builder/index.js.map +0 -1
- package/ui/builder/index.d.ts +0 -193
- package/ui/builder/index.js +0 -643
- package/ui/builder/index.js.map +0 -1
- package/ui/button/button-common.d.ts +0 -9
- package/ui/button/button-common.js +0 -26
- package/ui/button/button-common.js.map +0 -1
- package/ui/button/index.android.d.ts +0 -29
- package/ui/button/index.android.js +0 -166
- package/ui/button/index.android.js.map +0 -1
- package/ui/button/index.ios.d.ts +0 -37
- package/ui/button/index.ios.js +0 -316
- package/ui/button/index.ios.js.map +0 -1
- package/ui/content-view/index.js +0 -87
- package/ui/content-view/index.js.map +0 -1
- package/ui/core/bindable/bindable-expressions.d.ts +0 -7
- package/ui/core/bindable/bindable-expressions.js +0 -255
- package/ui/core/bindable/bindable-expressions.js.map +0 -1
- package/ui/core/bindable/bindable-resources.d.ts +0 -2
- package/ui/core/bindable/bindable-resources.js +0 -8
- package/ui/core/bindable/bindable-resources.js.map +0 -1
- package/ui/core/bindable/bindable-types.d.ts +0 -37
- package/ui/core/bindable/bindable-types.js +0 -3
- package/ui/core/bindable/bindable-types.js.map +0 -1
- package/ui/core/bindable/index.d.ts +0 -53
- package/ui/core/bindable/index.js +0 -555
- package/ui/core/bindable/index.js.map +0 -1
- package/ui/core/control-state-change/index.android.d.ts +0 -6
- package/ui/core/control-state-change/index.android.js +0 -8
- package/ui/core/control-state-change/index.android.js.map +0 -1
- package/ui/core/control-state-change/index.ios.d.ts +0 -10
- package/ui/core/control-state-change/index.ios.js +0 -43
- package/ui/core/control-state-change/index.ios.js.map +0 -1
- package/ui/core/properties/index.d.ts +0 -114
- package/ui/core/properties/index.js +0 -1290
- package/ui/core/properties/index.js.map +0 -1
- package/ui/core/properties/property-shared.d.ts +0 -35
- package/ui/core/properties/property-shared.js +0 -16
- package/ui/core/properties/property-shared.js.map +0 -1
- package/ui/core/view/index.android.d.ts +0 -144
- package/ui/core/view/index.android.js +0 -1576
- package/ui/core/view/index.android.js.map +0 -1
- package/ui/core/view/index.ios.d.ts +0 -151
- package/ui/core/view/index.ios.js +0 -1091
- package/ui/core/view/index.ios.js.map +0 -1
- package/ui/core/view/view-common.d.ts +0 -349
- package/ui/core/view/view-common.js +0 -1147
- package/ui/core/view/view-common.js.map +0 -1
- package/ui/core/view/view-helper/index.android.d.ts +0 -9
- package/ui/core/view/view-helper/index.android.js +0 -56
- package/ui/core/view/view-helper/index.android.js.map +0 -1
- package/ui/core/view/view-helper/index.ios.d.ts +0 -67
- package/ui/core/view/view-helper/index.ios.js +0 -434
- package/ui/core/view/view-helper/index.ios.js.map +0 -1
- package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
- package/ui/core/view/view-helper/view-helper-common.js +0 -166
- package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
- package/ui/core/view/view-helper/view-helper-shared.d.ts +0 -5
- package/ui/core/view/view-helper/view-helper-shared.js +0 -6
- package/ui/core/view/view-helper/view-helper-shared.js.map +0 -1
- package/ui/core/view/view-interfaces.d.ts +0 -76
- package/ui/core/view/view-interfaces.js +0 -2
- package/ui/core/view/view-interfaces.js.map +0 -1
- package/ui/core/view-base/index.d.ts +0 -597
- package/ui/core/view-base/index.js +0 -1154
- package/ui/core/view-base/index.js.map +0 -1
- package/ui/core/view-base/utils.d.ts +0 -1
- package/ui/core/view-base/utils.js +0 -9
- package/ui/core/view-base/utils.js.map +0 -1
- package/ui/core/weak-event-listener/index.js +0 -123
- package/ui/core/weak-event-listener/index.js.map +0 -1
- package/ui/date-picker/date-picker-common.d.ts +0 -28
- package/ui/date-picker/date-picker-common.js +0 -82
- package/ui/date-picker/date-picker-common.js.map +0 -1
- package/ui/date-picker/index.android.d.ts +0 -19
- package/ui/date-picker/index.android.js +0 -131
- package/ui/date-picker/index.android.js.map +0 -1
- package/ui/date-picker/index.ios.d.ts +0 -27
- package/ui/date-picker/index.ios.js +0 -165
- package/ui/date-picker/index.ios.js.map +0 -1
- package/ui/dialogs/dialogs-common.d.ts +0 -211
- package/ui/dialogs/dialogs-common.js +0 -167
- package/ui/dialogs/dialogs-common.js.map +0 -1
- package/ui/dialogs/index.android.d.ts +0 -20
- package/ui/dialogs/index.android.js +0 -330
- package/ui/dialogs/index.android.js.map +0 -1
- package/ui/dialogs/index.ios.d.ts +0 -17
- package/ui/dialogs/index.ios.js +0 -293
- package/ui/dialogs/index.ios.js.map +0 -1
- package/ui/editable-text-base/editable-text-base-common.d.ts +0 -36
- package/ui/editable-text-base/editable-text-base-common.js +0 -91
- package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
- package/ui/editable-text-base/index.android.d.ts +0 -48
- package/ui/editable-text-base/index.android.js +0 -497
- package/ui/editable-text-base/index.android.js.map +0 -1
- package/ui/editable-text-base/index.ios.d.ts +0 -20
- package/ui/editable-text-base/index.ios.js +0 -255
- package/ui/editable-text-base/index.ios.js.map +0 -1
- package/ui/embedding/index.android.d.ts +0 -4
- package/ui/embedding/index.android.js +0 -14
- package/ui/embedding/index.android.js.map +0 -1
- package/ui/embedding/index.ios.d.ts +0 -1
- package/ui/embedding/index.ios.js +0 -4
- package/ui/embedding/index.ios.js.map +0 -1
- package/ui/enums/enums.js +0 -6
- package/ui/enums/enums.js.map +0 -1
- package/ui/enums/index.js +0 -6
- package/ui/enums/index.js.map +0 -1
- package/ui/frame/activity.android.d.ts +0 -1
- package/ui/frame/activity.android.js +0 -110
- package/ui/frame/activity.android.js.map +0 -1
- package/ui/frame/fragment.android.d.ts +0 -3
- package/ui/frame/fragment.android.js +0 -90
- package/ui/frame/fragment.android.js.map +0 -1
- package/ui/frame/fragment.ios.d.ts +0 -3
- package/ui/frame/fragment.ios.js +0 -4
- package/ui/frame/fragment.ios.js.map +0 -1
- package/ui/frame/fragment.transitions.android.d.ts +0 -40
- package/ui/frame/fragment.transitions.android.js +0 -679
- package/ui/frame/fragment.transitions.android.js.map +0 -1
- package/ui/frame/fragment.transitions.types.d.ts +0 -6
- package/ui/frame/fragment.transitions.types.js +0 -2
- package/ui/frame/fragment.transitions.types.js.map +0 -1
- package/ui/frame/frame-common.d.ts +0 -101
- package/ui/frame/frame-common.js +0 -688
- package/ui/frame/frame-common.js.map +0 -1
- package/ui/frame/frame-helper-for-android.d.ts +0 -37
- package/ui/frame/frame-helper-for-android.js +0 -337
- package/ui/frame/frame-helper-for-android.js.map +0 -1
- package/ui/frame/frame-helpers.d.ts +0 -16
- package/ui/frame/frame-helpers.js +0 -19
- package/ui/frame/frame-helpers.js.map +0 -1
- package/ui/frame/frame-interfaces.d.ts +0 -130
- package/ui/frame/frame-interfaces.js +0 -7
- package/ui/frame/frame-interfaces.js.map +0 -1
- package/ui/frame/frame-stack.d.ts +0 -7
- package/ui/frame/frame-stack.js +0 -41
- package/ui/frame/frame-stack.js.map +0 -1
- package/ui/frame/index.android.d.ts +0 -93
- package/ui/frame/index.android.js +0 -977
- package/ui/frame/index.android.js.map +0 -1
- package/ui/frame/index.ios.d.ts +0 -61
- package/ui/frame/index.ios.js +0 -726
- package/ui/frame/index.ios.js.map +0 -1
- package/ui/gestures/gestures-common.d.ts +0 -32
- package/ui/gestures/gestures-common.js +0 -78
- package/ui/gestures/gestures-common.js.map +0 -1
- package/ui/gestures/gestures-types.d.ts +0 -108
- package/ui/gestures/gestures-types.js +0 -40
- package/ui/gestures/gestures-types.js.map +0 -1
- package/ui/gestures/index.android.d.ts +0 -49
- package/ui/gestures/index.android.js +0 -596
- package/ui/gestures/index.android.js.map +0 -1
- package/ui/gestures/index.ios.d.ts +0 -70
- package/ui/gestures/index.ios.js +0 -510
- package/ui/gestures/index.ios.js.map +0 -1
- package/ui/gestures/touch-manager.d.ts +0 -82
- package/ui/gestures/touch-manager.js +0 -268
- package/ui/gestures/touch-manager.js.map +0 -1
- package/ui/html-view/html-view-common.d.ts +0 -12
- package/ui/html-view/html-view-common.js +0 -31
- package/ui/html-view/html-view-common.js.map +0 -1
- package/ui/html-view/index.android.d.ts +0 -27
- package/ui/html-view/index.android.js +0 -90
- package/ui/html-view/index.android.js.map +0 -1
- package/ui/html-view/index.ios.d.ts +0 -22
- package/ui/html-view/index.ios.js +0 -101
- package/ui/html-view/index.ios.js.map +0 -1
- package/ui/image/image-common.d.ts +0 -45
- package/ui/image/image-common.js +0 -195
- package/ui/image/image-common.js.map +0 -1
- package/ui/image/index.android.d.ts +0 -23
- package/ui/image/index.android.js +0 -171
- package/ui/image/index.android.js.map +0 -1
- package/ui/image/index.ios.d.ts +0 -26
- package/ui/image/index.ios.js +0 -186
- package/ui/image/index.ios.js.map +0 -1
- package/ui/image/symbol-effects-common.d.ts +0 -36
- package/ui/image/symbol-effects-common.js +0 -35
- package/ui/image/symbol-effects-common.js.map +0 -1
- package/ui/image/symbol-effects.android.d.ts +0 -5
- package/ui/image/symbol-effects.android.js +0 -8
- package/ui/image/symbol-effects.android.js.map +0 -1
- package/ui/image/symbol-effects.ios.d.ts +0 -6
- package/ui/image/symbol-effects.ios.js +0 -79
- package/ui/image/symbol-effects.ios.js.map +0 -1
- package/ui/image-cache/image-cache-common.d.ts +0 -40
- package/ui/image-cache/image-cache-common.js +0 -176
- package/ui/image-cache/image-cache-common.js.map +0 -1
- package/ui/image-cache/index.android.d.ts +0 -11
- package/ui/image-cache/index.android.js +0 -74
- package/ui/image-cache/index.android.js.map +0 -1
- package/ui/image-cache/index.ios.d.ts +0 -11
- package/ui/image-cache/index.ios.js +0 -78
- package/ui/image-cache/index.ios.js.map +0 -1
- package/ui/index.d.ts +0 -92
- package/ui/index.js +0 -80
- package/ui/index.js.map +0 -1
- package/ui/label/index.android.d.ts +0 -13
- package/ui/label/index.android.js +0 -47
- package/ui/label/index.android.js.map +0 -1
- package/ui/label/index.ios.d.ts +0 -31
- package/ui/label/index.ios.js +0 -234
- package/ui/label/index.ios.js.map +0 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
- package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -72
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
- package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
- package/ui/layouts/absolute-layout/index.android.js +0 -26
- package/ui/layouts/absolute-layout/index.android.js.map +0 -1
- package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
- package/ui/layouts/absolute-layout/index.ios.js +0 -48
- package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
- package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
- package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
- package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
- package/ui/layouts/dock-layout/index.android.d.ts +0 -8
- package/ui/layouts/dock-layout/index.android.js +0 -38
- package/ui/layouts/dock-layout/index.android.js.map +0 -1
- package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
- package/ui/layouts/dock-layout/index.ios.js +0 -115
- package/ui/layouts/dock-layout/index.ios.js.map +0 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -403
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.android.d.ts +0 -23
- package/ui/layouts/flexbox-layout/index.android.js +0 -152
- package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
- package/ui/layouts/flexbox-layout/index.ios.js +0 -1241
- package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
- package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
- package/ui/layouts/grid-layout/grid-layout-common.js +0 -358
- package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
- package/ui/layouts/grid-layout/index.android.d.ts +0 -23
- package/ui/layouts/grid-layout/index.android.js +0 -122
- package/ui/layouts/grid-layout/index.android.js.map +0 -1
- package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
- package/ui/layouts/grid-layout/index.ios.js +0 -778
- package/ui/layouts/grid-layout/index.ios.js.map +0 -1
- package/ui/layouts/index.d.ts +0 -12
- package/ui/layouts/index.js +0 -11
- package/ui/layouts/index.js.map +0 -1
- package/ui/layouts/layout-base-common.d.ts +0 -36
- package/ui/layouts/layout-base-common.js +0 -141
- package/ui/layouts/layout-base-common.js.map +0 -1
- package/ui/layouts/layout-base.android.d.ts +0 -17
- package/ui/layouts/layout-base.android.js +0 -50
- package/ui/layouts/layout-base.android.js.map +0 -1
- package/ui/layouts/layout-base.ios.d.ts +0 -13
- package/ui/layouts/layout-base.ios.js +0 -40
- package/ui/layouts/layout-base.ios.js.map +0 -1
- package/ui/layouts/liquid-glass/index.android.d.ts +0 -5
- package/ui/layouts/liquid-glass/index.android.js +0 -8
- package/ui/layouts/liquid-glass/index.android.js.map +0 -1
- package/ui/layouts/liquid-glass/index.ios.d.ts +0 -10
- package/ui/layouts/liquid-glass/index.ios.js +0 -59
- package/ui/layouts/liquid-glass/index.ios.js.map +0 -1
- package/ui/layouts/liquid-glass/liquid-glass-common.d.ts +0 -3
- package/ui/layouts/liquid-glass/liquid-glass-common.js +0 -4
- package/ui/layouts/liquid-glass/liquid-glass-common.js.map +0 -1
- package/ui/layouts/liquid-glass-container/index.android.d.ts +0 -3
- package/ui/layouts/liquid-glass-container/index.android.js +0 -4
- package/ui/layouts/liquid-glass-container/index.android.js.map +0 -1
- package/ui/layouts/liquid-glass-container/index.ios.d.ts +0 -14
- package/ui/layouts/liquid-glass-container/index.ios.js +0 -121
- package/ui/layouts/liquid-glass-container/index.ios.js.map +0 -1
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.d.ts +0 -4
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js +0 -5
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js.map +0 -1
- package/ui/layouts/root-layout/index.android.d.ts +0 -15
- package/ui/layouts/root-layout/index.android.js +0 -126
- package/ui/layouts/root-layout/index.android.js.map +0 -1
- package/ui/layouts/root-layout/index.ios.d.ts +0 -17
- package/ui/layouts/root-layout/index.ios.js +0 -101
- package/ui/layouts/root-layout/index.ios.js.map +0 -1
- package/ui/layouts/root-layout/root-layout-common.d.ts +0 -61
- package/ui/layouts/root-layout/root-layout-common.js +0 -425
- package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
- package/ui/layouts/root-layout/root-layout-stack.d.ts +0 -5
- package/ui/layouts/root-layout/root-layout-stack.js +0 -19
- package/ui/layouts/root-layout/root-layout-stack.js.map +0 -1
- package/ui/layouts/stack-layout/index.android.d.ts +0 -7
- package/ui/layouts/stack-layout/index.android.js +0 -11
- package/ui/layouts/stack-layout/index.android.js.map +0 -1
- package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
- package/ui/layouts/stack-layout/index.ios.js +0 -155
- package/ui/layouts/stack-layout/index.ios.js.map +0 -1
- package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
- package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
- package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
- package/ui/layouts/wrap-layout/index.android.d.ts +0 -10
- package/ui/layouts/wrap-layout/index.android.js +0 -18
- package/ui/layouts/wrap-layout/index.android.js.map +0 -1
- package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
- package/ui/layouts/wrap-layout/index.ios.js +0 -170
- package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
- package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -40
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
- package/ui/list-picker/index.android.d.ts +0 -18
- package/ui/list-picker/index.android.js +0 -177
- package/ui/list-picker/index.android.js.map +0 -1
- package/ui/list-picker/index.ios.d.ts +0 -19
- package/ui/list-picker/index.ios.js +0 -99
- package/ui/list-picker/index.ios.js.map +0 -1
- package/ui/list-picker/list-picker-common.d.ts +0 -23
- package/ui/list-picker/list-picker-common.js +0 -78
- package/ui/list-picker/list-picker-common.js.map +0 -1
- package/ui/list-view/index.android.d.ts +0 -68
- package/ui/list-view/index.android.js +0 -1005
- package/ui/list-view/index.android.js.map +0 -1
- package/ui/list-view/index.ios.d.ts +0 -84
- package/ui/list-view/index.ios.js +0 -996
- package/ui/list-view/index.ios.js.map +0 -1
- package/ui/list-view/list-view-common.d.ts +0 -87
- package/ui/list-view/list-view-common.js +0 -296
- package/ui/list-view/list-view-common.js.map +0 -1
- package/ui/page/events.d.ts +0 -6
- package/ui/page/events.js +0 -7
- package/ui/page/events.js.map +0 -1
- package/ui/page/index.android.d.ts +0 -16
- package/ui/page/index.android.js +0 -106
- package/ui/page/index.android.js.map +0 -1
- package/ui/page/index.ios.d.ts +0 -52
- package/ui/page/index.ios.js +0 -515
- package/ui/page/index.ios.js.map +0 -1
- package/ui/page/page-common.d.ts +0 -73
- package/ui/page/page-common.js +0 -191
- package/ui/page/page-common.js.map +0 -1
- package/ui/placeholder/index.android.d.ts +0 -12
- package/ui/placeholder/index.android.js +0 -21
- package/ui/placeholder/index.android.js.map +0 -1
- package/ui/placeholder/index.js +0 -16
- package/ui/placeholder/index.js.map +0 -1
- package/ui/placeholder/placeholder-common.d.ts +0 -11
- package/ui/placeholder/placeholder-common.js +0 -2
- package/ui/placeholder/placeholder-common.js.map +0 -1
- package/ui/progress/index.android.d.ts +0 -18
- package/ui/progress/index.android.js +0 -65
- package/ui/progress/index.android.js.map +0 -1
- package/ui/progress/index.ios.d.ts +0 -19
- package/ui/progress/index.ios.js +0 -45
- package/ui/progress/index.ios.js.map +0 -1
- package/ui/progress/progress-common.d.ts +0 -15
- package/ui/progress/progress-common.js +0 -34
- package/ui/progress/progress-common.js.map +0 -1
- package/ui/proxy-view-container/index.d.ts +0 -33
- package/ui/proxy-view-container/index.js +0 -247
- package/ui/proxy-view-container/index.js.map +0 -1
- package/ui/repeater/index.d.ts +0 -67
- package/ui/repeater/index.js +0 -225
- package/ui/repeater/index.js.map +0 -1
- package/ui/scroll-view/index.android.d.ts +0 -27
- package/ui/scroll-view/index.android.js +0 -157
- package/ui/scroll-view/index.android.js.map +0 -1
- package/ui/scroll-view/index.ios.d.ts +0 -29
- package/ui/scroll-view/index.ios.js +0 -193
- package/ui/scroll-view/index.ios.js.map +0 -1
- package/ui/scroll-view/scroll-view-common.d.ts +0 -27
- package/ui/scroll-view/scroll-view-common.js +0 -93
- package/ui/scroll-view/scroll-view-common.js.map +0 -1
- package/ui/search-bar/index.android.d.ts +0 -44
- package/ui/search-bar/index.android.js +0 -260
- package/ui/search-bar/index.android.js.map +0 -1
- package/ui/search-bar/index.ios.d.ts +0 -36
- package/ui/search-bar/index.ios.js +0 -203
- package/ui/search-bar/index.ios.js.map +0 -1
- package/ui/search-bar/search-bar-common.d.ts +0 -19
- package/ui/search-bar/search-bar-common.js +0 -43
- package/ui/search-bar/search-bar-common.js.map +0 -1
- package/ui/segmented-bar/index.android.d.ts +0 -42
- package/ui/segmented-bar/index.android.js +0 -280
- package/ui/segmented-bar/index.android.js.map +0 -1
- package/ui/segmented-bar/index.ios.d.ts +0 -28
- package/ui/segmented-bar/index.ios.js +0 -140
- package/ui/segmented-bar/index.ios.js.map +0 -1
- package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
- package/ui/segmented-bar/segmented-bar-common.js +0 -146
- package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
- package/ui/slider/index.android.d.ts +0 -32
- package/ui/slider/index.android.js +0 -123
- package/ui/slider/index.android.js.map +0 -1
- package/ui/slider/index.ios.d.ts +0 -34
- package/ui/slider/index.ios.js +0 -145
- package/ui/slider/index.ios.js.map +0 -1
- package/ui/slider/slider-common.d.ts +0 -27
- package/ui/slider/slider-common.js +0 -69
- package/ui/slider/slider-common.js.map +0 -1
- package/ui/split-view/index.android.d.ts +0 -3
- package/ui/split-view/index.android.js +0 -4
- package/ui/split-view/index.android.js.map +0 -1
- package/ui/split-view/index.ios.d.ts +0 -51
- package/ui/split-view/index.ios.js +0 -567
- package/ui/split-view/index.ios.js.map +0 -1
- package/ui/split-view/split-view-common.d.ts +0 -59
- package/ui/split-view/split-view-common.js +0 -127
- package/ui/split-view/split-view-common.js.map +0 -1
- package/ui/styling/background-common.d.ts +0 -78
- package/ui/styling/background-common.js +0 -241
- package/ui/styling/background-common.js.map +0 -1
- package/ui/styling/background.android.d.ts +0 -3
- package/ui/styling/background.android.js +0 -82
- package/ui/styling/background.android.js.map +0 -1
- package/ui/styling/background.ios.d.ts +0 -21
- package/ui/styling/background.ios.js +0 -1105
- package/ui/styling/background.ios.js.map +0 -1
- package/ui/styling/box-shadow.d.ts +0 -9
- package/ui/styling/box-shadow.js +0 -3
- package/ui/styling/box-shadow.js.map +0 -1
- package/ui/styling/clip-path-function.d.ts +0 -16
- package/ui/styling/clip-path-function.js +0 -25
- package/ui/styling/clip-path-function.js.map +0 -1
- package/ui/styling/converters.d.ts +0 -2
- package/ui/styling/converters.js +0 -41
- package/ui/styling/converters.js.map +0 -1
- package/ui/styling/css-animation-parser.d.ts +0 -14
- package/ui/styling/css-animation-parser.js +0 -187
- package/ui/styling/css-animation-parser.js.map +0 -1
- package/ui/styling/css-selector.d.ts +0 -270
- package/ui/styling/css-selector.js +0 -934
- package/ui/styling/css-selector.js.map +0 -1
- package/ui/styling/css-shadow.d.ts +0 -19
- package/ui/styling/css-shadow.js +0 -26
- package/ui/styling/css-shadow.js.map +0 -1
- package/ui/styling/css-stroke.d.ts +0 -12
- package/ui/styling/css-stroke.js +0 -19
- package/ui/styling/css-stroke.js.map +0 -1
- package/ui/styling/css-transform.d.ts +0 -2
- package/ui/styling/css-transform.js +0 -110
- package/ui/styling/css-transform.js.map +0 -1
- package/ui/styling/css-utils.d.ts +0 -8
- package/ui/styling/css-utils.js +0 -73
- package/ui/styling/css-utils.js.map +0 -1
- package/ui/styling/font-common.d.ts +0 -62
- package/ui/styling/font-common.js +0 -195
- package/ui/styling/font-common.js.map +0 -1
- package/ui/styling/font-interfaces.d.ts +0 -16
- package/ui/styling/font-interfaces.js +0 -2
- package/ui/styling/font-interfaces.js.map +0 -1
- package/ui/styling/font.android.d.ts +0 -15
- package/ui/styling/font.android.js +0 -226
- package/ui/styling/font.android.js.map +0 -1
- package/ui/styling/font.ios.d.ts +0 -18
- package/ui/styling/font.ios.js +0 -159
- package/ui/styling/font.ios.js.map +0 -1
- package/ui/styling/length-shared.d.ts +0 -52
- package/ui/styling/length-shared.js +0 -173
- package/ui/styling/length-shared.js.map +0 -1
- package/ui/styling/linear-gradient.d.ts +0 -13
- package/ui/styling/linear-gradient.js +0 -48
- package/ui/styling/linear-gradient.js.map +0 -1
- package/ui/styling/style/index.d.ts +0 -166
- package/ui/styling/style/index.js +0 -67
- package/ui/styling/style/index.js.map +0 -1
- package/ui/styling/style-properties.d.ts +0 -63
- package/ui/styling/style-properties.js +0 -1151
- package/ui/styling/style-properties.js.map +0 -1
- package/ui/styling/style-scope.d.ts +0 -87
- package/ui/styling/style-scope.js +0 -1020
- package/ui/styling/style-scope.js.map +0 -1
- package/ui/styling/styling-profile.d.ts +0 -1
- package/ui/styling/styling-profile.js +0 -4
- package/ui/styling/styling-profile.js.map +0 -1
- package/ui/styling/styling-shared.d.ts +0 -3
- package/ui/styling/styling-shared.js +0 -6
- package/ui/styling/styling-shared.js.map +0 -1
- package/ui/switch/index.android.d.ts +0 -23
- package/ui/switch/index.android.js +0 -111
- package/ui/switch/index.android.js.map +0 -1
- package/ui/switch/index.ios.d.ts +0 -26
- package/ui/switch/index.ios.js +0 -185
- package/ui/switch/index.ios.js.map +0 -1
- package/ui/switch/switch-common.d.ts +0 -12
- package/ui/switch/switch-common.js +0 -37
- package/ui/switch/switch-common.js.map +0 -1
- package/ui/tab-view/index.android.d.ts +0 -73
- package/ui/tab-view/index.android.js +0 -646
- package/ui/tab-view/index.android.js.map +0 -1
- package/ui/tab-view/index.ios.d.ts +0 -80
- package/ui/tab-view/index.ios.js +0 -877
- package/ui/tab-view/index.ios.js.map +0 -1
- package/ui/tab-view/tab-view-common.d.ts +0 -86
- package/ui/tab-view/tab-view-common.js +0 -277
- package/ui/tab-view/tab-view-common.js.map +0 -1
- package/ui/text-base/formatted-string.js +0 -163
- package/ui/text-base/formatted-string.js.map +0 -1
- package/ui/text-base/index.android.d.ts +0 -79
- package/ui/text-base/index.android.js +0 -589
- package/ui/text-base/index.android.js.map +0 -1
- package/ui/text-base/index.ios.d.ts +0 -53
- package/ui/text-base/index.ios.js +0 -452
- package/ui/text-base/index.ios.js.map +0 -1
- package/ui/text-base/span.js +0 -113
- package/ui/text-base/span.js.map +0 -1
- package/ui/text-base/text-base-common.d.ts +0 -99
- package/ui/text-base/text-base-common.js +0 -324
- package/ui/text-base/text-base-common.js.map +0 -1
- package/ui/text-field/index.android.d.ts +0 -10
- package/ui/text-field/index.android.js +0 -92
- package/ui/text-field/index.android.js.map +0 -1
- package/ui/text-field/index.ios.d.ts +0 -56
- package/ui/text-field/index.ios.js +0 -315
- package/ui/text-field/index.ios.js.map +0 -1
- package/ui/text-field/text-field-common.d.ts +0 -11
- package/ui/text-field/text-field-common.js +0 -25
- package/ui/text-field/text-field-common.js.map +0 -1
- package/ui/text-view/index.android.d.ts +0 -8
- package/ui/text-view/index.android.js +0 -24
- package/ui/text-view/index.android.js.map +0 -1
- package/ui/text-view/index.ios.d.ts +0 -59
- package/ui/text-view/index.ios.js +0 -432
- package/ui/text-view/index.ios.js.map +0 -1
- package/ui/text-view/text-view-common.d.ts +0 -32
- package/ui/text-view/text-view-common.js +0 -39
- package/ui/text-view/text-view-common.js.map +0 -1
- package/ui/time-picker/index.android.d.ts +0 -10
- package/ui/time-picker/index.android.js +0 -79
- package/ui/time-picker/index.android.js.map +0 -1
- package/ui/time-picker/index.ios.d.ts +0 -31
- package/ui/time-picker/index.ios.js +0 -138
- package/ui/time-picker/index.ios.js.map +0 -1
- package/ui/time-picker/time-picker-common.d.ts +0 -31
- package/ui/time-picker/time-picker-common.js +0 -176
- package/ui/time-picker/time-picker-common.js.map +0 -1
- package/ui/transition/fade-transition.android.d.ts +0 -4
- package/ui/transition/fade-transition.android.js +0 -28
- package/ui/transition/fade-transition.android.js.map +0 -1
- package/ui/transition/fade-transition.ios.d.ts +0 -17
- package/ui/transition/fade-transition.ios.js +0 -64
- package/ui/transition/fade-transition.ios.js.map +0 -1
- package/ui/transition/flip-transition.android.d.ts +0 -6
- package/ui/transition/flip-transition.android.js +0 -90
- package/ui/transition/flip-transition.android.js.map +0 -1
- package/ui/transition/index.android.d.ts +0 -19
- package/ui/transition/index.android.js +0 -37
- package/ui/transition/index.android.js.map +0 -1
- package/ui/transition/index.ios.d.ts +0 -14
- package/ui/transition/index.ios.js +0 -30
- package/ui/transition/index.ios.js.map +0 -1
- package/ui/transition/modal-transition.android.d.ts +0 -5
- package/ui/transition/modal-transition.android.js +0 -7
- package/ui/transition/modal-transition.android.js.map +0 -1
- package/ui/transition/modal-transition.ios.d.ts +0 -34
- package/ui/transition/modal-transition.ios.js +0 -175
- package/ui/transition/modal-transition.ios.js.map +0 -1
- package/ui/transition/page-transition.android.d.ts +0 -9
- package/ui/transition/page-transition.android.js +0 -284
- package/ui/transition/page-transition.android.js.map +0 -1
- package/ui/transition/page-transition.ios.d.ts +0 -35
- package/ui/transition/page-transition.ios.js +0 -193
- package/ui/transition/page-transition.ios.js.map +0 -1
- package/ui/transition/shared-transition-helper.android.d.ts +0 -9
- package/ui/transition/shared-transition-helper.android.js +0 -10
- package/ui/transition/shared-transition-helper.android.js.map +0 -1
- package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
- package/ui/transition/shared-transition-helper.ios.js +0 -539
- package/ui/transition/shared-transition-helper.ios.js.map +0 -1
- package/ui/transition/shared-transition.d.ts +0 -271
- package/ui/transition/shared-transition.js +0 -215
- package/ui/transition/shared-transition.js.map +0 -1
- package/ui/transition/slide-transition.android.d.ts +0 -7
- package/ui/transition/slide-transition.android.js +0 -116
- package/ui/transition/slide-transition.android.js.map +0 -1
- package/ui/transition/slide-transition.ios.d.ts +0 -19
- package/ui/transition/slide-transition.ios.js +0 -94
- package/ui/transition/slide-transition.ios.js.map +0 -1
- package/ui/utils.android.d.ts +0 -5
- package/ui/utils.android.js +0 -16
- package/ui/utils.android.js.map +0 -1
- package/ui/utils.ios.d.ts +0 -11
- package/ui/utils.ios.js +0 -66
- package/ui/utils.ios.js.map +0 -1
- package/ui/web-view/index.android.d.ts +0 -18
- package/ui/web-view/index.android.js +0 -173
- package/ui/web-view/index.android.js.map +0 -1
- package/ui/web-view/index.ios.d.ts +0 -27
- package/ui/web-view/index.ios.js +0 -246
- package/ui/web-view/index.ios.js.map +0 -1
- package/ui/web-view/web-view-common.d.ts +0 -30
- package/ui/web-view/web-view-common.js +0 -74
- package/ui/web-view/web-view-common.js.map +0 -1
- package/ui/web-view/web-view-interfaces.d.ts +0 -11
- package/ui/web-view/web-view-interfaces.js +0 -2
- package/ui/web-view/web-view-interfaces.js.map +0 -1
- package/utils/animation-helpers.d.ts +0 -27
- package/utils/animation-helpers.js +0 -48
- package/utils/animation-helpers.js.map +0 -1
- package/utils/common.d.ts +0 -28
- package/utils/common.js +0 -158
- package/utils/common.js.map +0 -1
- package/utils/constants.android.d.ts +0 -2
- package/utils/constants.android.js +0 -5
- package/utils/constants.android.js.map +0 -1
- package/utils/constants.ios.d.ts +0 -2
- package/utils/constants.ios.js +0 -5
- package/utils/constants.ios.js.map +0 -1
- package/utils/debug-source.d.ts +0 -19
- package/utils/debug-source.js +0 -78
- package/utils/debug-source.js.map +0 -1
- package/utils/debug.js +0 -3
- package/utils/debug.js.map +0 -1
- package/utils/index.android.d.ts +0 -26
- package/utils/index.android.js +0 -205
- package/utils/index.android.js.map +0 -1
- package/utils/index.ios.d.ts +0 -22
- package/utils/index.ios.js +0 -113
- package/utils/index.ios.js.map +0 -1
- package/utils/layout-helper/index.android.d.ts +0 -25
- package/utils/layout-helper/index.android.js +0 -86
- package/utils/layout-helper/index.android.js.map +0 -1
- package/utils/layout-helper/index.ios.d.ts +0 -25
- package/utils/layout-helper/index.ios.js +0 -68
- package/utils/layout-helper/index.ios.js.map +0 -1
- package/utils/layout-helper/layout-helper-common.d.ts +0 -5
- package/utils/layout-helper/layout-helper-common.js +0 -49
- package/utils/layout-helper/layout-helper-common.js.map +0 -1
- package/utils/layout-helper/layout-helper-shared.d.ts +0 -9
- package/utils/layout-helper/layout-helper-shared.js +0 -13
- package/utils/layout-helper/layout-helper-shared.js.map +0 -1
- package/utils/lazy.js +0 -5
- package/utils/lazy.js.map +0 -1
- package/utils/macrotask-scheduler.js +0 -26
- package/utils/macrotask-scheduler.js.map +0 -1
- package/utils/mainthread-helper.android.d.ts +0 -3
- package/utils/mainthread-helper.android.js +0 -28
- package/utils/mainthread-helper.android.js.map +0 -1
- package/utils/mainthread-helper.ios.d.ts +0 -3
- package/utils/mainthread-helper.ios.js +0 -17
- package/utils/mainthread-helper.ios.js.map +0 -1
- package/utils/module-merge.d.ts +0 -1
- package/utils/module-merge.js +0 -8
- package/utils/module-merge.js.map +0 -1
- package/utils/native-helper-for-android.d.ts +0 -45
- package/utils/native-helper-for-android.js +0 -376
- package/utils/native-helper-for-android.js.map +0 -1
- package/utils/native-helper.android.d.ts +0 -42
- package/utils/native-helper.android.js +0 -30
- package/utils/native-helper.android.js.map +0 -1
- package/utils/native-helper.ios.d.ts +0 -79
- package/utils/native-helper.ios.js +0 -339
- package/utils/native-helper.ios.js.map +0 -1
- package/utils/number-utils.d.ts +0 -19
- package/utils/number-utils.js +0 -37
- package/utils/number-utils.js.map +0 -1
- package/utils/platform-check.d.ts +0 -4
- package/utils/platform-check.js +0 -21
- package/utils/platform-check.js.map +0 -1
- package/utils/shared.d.ts +0 -17
- package/utils/shared.js +0 -40
- package/utils/shared.js.map +0 -1
- package/utils/types.js +0 -104
- package/utils/types.js.map +0 -1
- package/utils/utils-shared.d.ts +0 -1
- package/utils/utils-shared.js +0 -8
- package/utils/utils-shared.js.map +0 -1
- package/wgc/atob.d.ts +0 -1
- package/wgc/atob.js +0 -9
- package/wgc/atob.js.map +0 -1
- package/wgc/btoa.d.ts +0 -1
- package/wgc/btoa.js +0 -9
- package/wgc/btoa.js.map +0 -1
- package/wgc/crypto/SubtleCrypto.d.ts +0 -63
- package/wgc/crypto/SubtleCrypto.js +0 -551
- package/wgc/crypto/SubtleCrypto.js.map +0 -1
- package/wgc/crypto/index.d.ts +0 -8
- package/wgc/crypto/index.js +0 -32
- package/wgc/crypto/index.js.map +0 -1
- package/wgc/index.d.ts +0 -2
- package/wgc/index.js +0 -3
- package/wgc/index.js.map +0 -1
- package/xhr/index.d.ts +0 -113
- package/xhr/index.js +0 -486
- package/xhr/index.js.map +0 -1
- package/xml/index.d.ts +0 -108
- package/xml/index.js +0 -574
- package/xml/index.js.map +0 -1
|
@@ -1,996 +0,0 @@
|
|
|
1
|
-
import { ListViewBase, separatorColorProperty, itemTemplatesProperty, iosEstimatedRowHeightProperty, stickyHeaderProperty, stickyHeaderTemplateProperty, stickyHeaderHeightProperty, sectionedProperty, showSearchProperty, searchAutoHideProperty } from './list-view-common';
|
|
2
|
-
import { View } from '../core/view';
|
|
3
|
-
import { Length } from '../styling/length-shared';
|
|
4
|
-
import { Observable } from '../../data/observable';
|
|
5
|
-
import { Color } from '../../color';
|
|
6
|
-
import { layout } from '../../utils';
|
|
7
|
-
import { SDK_VERSION } from '../../utils/constants';
|
|
8
|
-
import { StackLayout } from '../layouts/stack-layout';
|
|
9
|
-
import { ProxyViewContainer } from '../proxy-view-container';
|
|
10
|
-
import { profile } from '../../profiling';
|
|
11
|
-
import { Trace } from '../../trace';
|
|
12
|
-
import { Builder } from '../builder';
|
|
13
|
-
import { Label } from '../label';
|
|
14
|
-
import { isFunction } from '../../utils/types';
|
|
15
|
-
export * from './list-view-common';
|
|
16
|
-
const ITEMLOADING = ListViewBase.itemLoadingEvent;
|
|
17
|
-
const LOADMOREITEMS = ListViewBase.loadMoreItemsEvent;
|
|
18
|
-
const ITEMTAP = ListViewBase.itemTapEvent;
|
|
19
|
-
const DEFAULT_HEIGHT = 44;
|
|
20
|
-
const infinity = layout.makeMeasureSpec(0, layout.UNSPECIFIED);
|
|
21
|
-
var ListViewCell = (function (_super) {
|
|
22
|
-
__extends(ListViewCell, _super);
|
|
23
|
-
function ListViewCell() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
ListViewCell.initWithEmptyBackground = function () {
|
|
27
|
-
var cell = ListViewCell.new();
|
|
28
|
-
cell.backgroundColor = UIColor.clearColor;
|
|
29
|
-
return cell;
|
|
30
|
-
};
|
|
31
|
-
ListViewCell.prototype.initWithStyleReuseIdentifier = function (style, reuseIdentifier) {
|
|
32
|
-
var cell = _super.prototype.initWithStyleReuseIdentifier.call(this, style, reuseIdentifier);
|
|
33
|
-
cell.backgroundColor = UIColor.clearColor;
|
|
34
|
-
return cell;
|
|
35
|
-
};
|
|
36
|
-
ListViewCell.prototype.willMoveToSuperview = function (newSuperview) {
|
|
37
|
-
var parent = (this.view ? this.view.parent : null);
|
|
38
|
-
if (parent && !newSuperview) {
|
|
39
|
-
parent._removeContainer(this);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
Object.defineProperty(ListViewCell.prototype, "view", {
|
|
43
|
-
get: function () {
|
|
44
|
-
return this.owner ? this.owner.deref() : null;
|
|
45
|
-
},
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true
|
|
48
|
-
});
|
|
49
|
-
return ListViewCell;
|
|
50
|
-
}(UITableViewCell));
|
|
51
|
-
var ListViewHeaderCell = (function (_super) {
|
|
52
|
-
__extends(ListViewHeaderCell, _super);
|
|
53
|
-
function ListViewHeaderCell() {
|
|
54
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
-
}
|
|
56
|
-
ListViewHeaderCell.initWithEmptyBackground = function () {
|
|
57
|
-
var cell = ListViewHeaderCell.new();
|
|
58
|
-
cell.backgroundColor = UIColor.clearColor;
|
|
59
|
-
return cell;
|
|
60
|
-
};
|
|
61
|
-
ListViewHeaderCell.prototype.initWithReuseIdentifier = function (reuseIdentifier) {
|
|
62
|
-
var cell = _super.prototype.initWithReuseIdentifier.call(this, reuseIdentifier);
|
|
63
|
-
cell.backgroundColor = UIColor.clearColor;
|
|
64
|
-
return cell;
|
|
65
|
-
};
|
|
66
|
-
ListViewHeaderCell.prototype.willMoveToSuperview = function (newSuperview) {
|
|
67
|
-
var parent = (this.view ? this.view.parent : null);
|
|
68
|
-
if (parent && !newSuperview) {
|
|
69
|
-
parent._removeHeaderContainer(this);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
Object.defineProperty(ListViewHeaderCell.prototype, "view", {
|
|
73
|
-
get: function () {
|
|
74
|
-
return this.owner ? this.owner.deref() : null;
|
|
75
|
-
},
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
return ListViewHeaderCell;
|
|
80
|
-
}(UITableViewHeaderFooterView));
|
|
81
|
-
function notifyForItemAtIndex(listView, cell, view, eventName, indexPath) {
|
|
82
|
-
const args = {
|
|
83
|
-
eventName: eventName,
|
|
84
|
-
object: listView,
|
|
85
|
-
index: indexPath.row,
|
|
86
|
-
section: indexPath.section,
|
|
87
|
-
view: view,
|
|
88
|
-
ios: cell,
|
|
89
|
-
android: undefined,
|
|
90
|
-
};
|
|
91
|
-
listView.notify(args);
|
|
92
|
-
return args;
|
|
93
|
-
}
|
|
94
|
-
var DataSource = (function (_super) {
|
|
95
|
-
__extends(DataSource, _super);
|
|
96
|
-
function DataSource() {
|
|
97
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
98
|
-
}
|
|
99
|
-
DataSource.initWithOwner = function (owner) {
|
|
100
|
-
var dataSource = DataSource.new();
|
|
101
|
-
dataSource._owner = owner;
|
|
102
|
-
return dataSource;
|
|
103
|
-
};
|
|
104
|
-
DataSource.prototype.numberOfSectionsInTableView = function (tableView) {
|
|
105
|
-
var _a;
|
|
106
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
107
|
-
if (!owner) {
|
|
108
|
-
return 1;
|
|
109
|
-
}
|
|
110
|
-
var sections = owner._getSectionCount();
|
|
111
|
-
if (Trace.isEnabled()) {
|
|
112
|
-
Trace.write("ListView: numberOfSections = ".concat(sections, " (sectioned: ").concat(owner.sectioned, ")"), Trace.categories.Debug);
|
|
113
|
-
}
|
|
114
|
-
return sections;
|
|
115
|
-
};
|
|
116
|
-
DataSource.prototype.tableViewNumberOfRowsInSection = function (tableView, section) {
|
|
117
|
-
var _a;
|
|
118
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
119
|
-
if (!owner) {
|
|
120
|
-
return 0;
|
|
121
|
-
}
|
|
122
|
-
var sectionItems = owner._getItemsInSection(section);
|
|
123
|
-
var rowCount = sectionItems ? sectionItems.length : 0;
|
|
124
|
-
if (Trace.isEnabled()) {
|
|
125
|
-
Trace.write("ListView: numberOfRows in section ".concat(section, " = ").concat(rowCount), Trace.categories.Debug);
|
|
126
|
-
}
|
|
127
|
-
return rowCount;
|
|
128
|
-
};
|
|
129
|
-
DataSource.prototype.tableViewCellForRowAtIndexPath = function (tableView, indexPath) {
|
|
130
|
-
var _a;
|
|
131
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
132
|
-
var cell;
|
|
133
|
-
if (owner) {
|
|
134
|
-
var template = owner._getItemTemplate(indexPath.row);
|
|
135
|
-
cell = (tableView.dequeueReusableCellWithIdentifier(template.key) || ListViewCell.initWithEmptyBackground());
|
|
136
|
-
owner._prepareCell(cell, indexPath);
|
|
137
|
-
var cellView = cell.view;
|
|
138
|
-
if (cellView && cellView.isLayoutRequired) {
|
|
139
|
-
var width = layout.getMeasureSpecSize(owner.widthMeasureSpec);
|
|
140
|
-
var rowHeight = owner._effectiveRowHeight;
|
|
141
|
-
var cellHeight = rowHeight > 0 ? rowHeight : owner.getHeight(indexPath.row);
|
|
142
|
-
cellView.iosOverflowSafeAreaEnabled = false;
|
|
143
|
-
View.layoutChild(owner, cellView, 0, 0, width, cellHeight);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
cell = ListViewCell.initWithEmptyBackground();
|
|
148
|
-
}
|
|
149
|
-
return cell;
|
|
150
|
-
};
|
|
151
|
-
DataSource.ObjCProtocols = [UITableViewDataSource];
|
|
152
|
-
return DataSource;
|
|
153
|
-
}(NSObject));
|
|
154
|
-
var UITableViewDelegateImpl = (function (_super) {
|
|
155
|
-
__extends(UITableViewDelegateImpl, _super);
|
|
156
|
-
function UITableViewDelegateImpl() {
|
|
157
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
158
|
-
}
|
|
159
|
-
UITableViewDelegateImpl.initWithOwner = function (owner) {
|
|
160
|
-
var delegate = UITableViewDelegateImpl.new();
|
|
161
|
-
delegate._owner = owner;
|
|
162
|
-
delegate._measureCellMap = new Map();
|
|
163
|
-
return delegate;
|
|
164
|
-
};
|
|
165
|
-
UITableViewDelegateImpl.prototype.tableViewWillDisplayCellForRowAtIndexPath = function (tableView, cell, indexPath) {
|
|
166
|
-
var _a;
|
|
167
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
168
|
-
if (owner && indexPath.row === owner.items.length - 1) {
|
|
169
|
-
owner.notify({
|
|
170
|
-
eventName: LOADMOREITEMS,
|
|
171
|
-
object: owner,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
UITableViewDelegateImpl.prototype.tableViewWillSelectRowAtIndexPath = function (tableView, indexPath) {
|
|
176
|
-
var _a;
|
|
177
|
-
var cell = tableView.cellForRowAtIndexPath(indexPath);
|
|
178
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
179
|
-
if (owner) {
|
|
180
|
-
notifyForItemAtIndex(owner, cell, cell.view, ITEMTAP, indexPath);
|
|
181
|
-
}
|
|
182
|
-
return indexPath;
|
|
183
|
-
};
|
|
184
|
-
UITableViewDelegateImpl.prototype.tableViewDidSelectRowAtIndexPath = function (tableView, indexPath) {
|
|
185
|
-
tableView.deselectRowAtIndexPathAnimated(indexPath, true);
|
|
186
|
-
return indexPath;
|
|
187
|
-
};
|
|
188
|
-
UITableViewDelegateImpl.prototype.tableViewHeightForRowAtIndexPath = function (tableView, indexPath) {
|
|
189
|
-
var _a;
|
|
190
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
191
|
-
if (!owner) {
|
|
192
|
-
return tableView.estimatedRowHeight;
|
|
193
|
-
}
|
|
194
|
-
var height = owner.getHeight(indexPath.row);
|
|
195
|
-
if (height === undefined) {
|
|
196
|
-
var template = owner._getItemTemplate(indexPath.row);
|
|
197
|
-
var cell = this._measureCellMap.get(template.key);
|
|
198
|
-
if (!cell) {
|
|
199
|
-
cell = tableView.dequeueReusableCellWithIdentifier(template.key) || ListViewCell.initWithEmptyBackground();
|
|
200
|
-
this._measureCellMap.set(template.key, cell);
|
|
201
|
-
}
|
|
202
|
-
height = owner._prepareCell(cell, indexPath);
|
|
203
|
-
}
|
|
204
|
-
return layout.toDeviceIndependentPixels(height);
|
|
205
|
-
};
|
|
206
|
-
UITableViewDelegateImpl.prototype.tableViewViewForHeaderInSection = function (tableView, section) {
|
|
207
|
-
var _a;
|
|
208
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
209
|
-
if (!owner || !owner.stickyHeader || !owner.stickyHeaderTemplate) {
|
|
210
|
-
if (Trace.isEnabled()) {
|
|
211
|
-
Trace.write("ListView: No sticky header (stickyHeader: ".concat(owner === null || owner === void 0 ? void 0 : owner.stickyHeader, ", hasTemplate: ").concat(!!(owner === null || owner === void 0 ? void 0 : owner.stickyHeaderTemplate), ")"), Trace.categories.Debug);
|
|
212
|
-
}
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
if (Trace.isEnabled()) {
|
|
216
|
-
Trace.write("ListView: Creating sticky header", Trace.categories.Debug);
|
|
217
|
-
}
|
|
218
|
-
var headerReuseIdentifier = "stickyHeader";
|
|
219
|
-
var headerCell = tableView.dequeueReusableHeaderFooterViewWithIdentifier(headerReuseIdentifier);
|
|
220
|
-
if (!headerCell) {
|
|
221
|
-
headerCell = ListViewHeaderCell.alloc().initWithReuseIdentifier(headerReuseIdentifier);
|
|
222
|
-
headerCell.backgroundColor = UIColor.clearColor;
|
|
223
|
-
}
|
|
224
|
-
owner._prepareHeader(headerCell, section);
|
|
225
|
-
return headerCell;
|
|
226
|
-
};
|
|
227
|
-
UITableViewDelegateImpl.prototype.tableViewHeightForHeaderInSection = function (tableView, section) {
|
|
228
|
-
var _a;
|
|
229
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
230
|
-
if (!owner || !owner.stickyHeader) {
|
|
231
|
-
return 0;
|
|
232
|
-
}
|
|
233
|
-
var height;
|
|
234
|
-
if (owner.stickyHeaderHeight === "auto") {
|
|
235
|
-
height = 44;
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
height = layout.toDeviceIndependentPixels(Length.toDevicePixels(owner.stickyHeaderHeight, 44));
|
|
239
|
-
}
|
|
240
|
-
if (Trace.isEnabled()) {
|
|
241
|
-
Trace.write("ListView: Sticky header height: ".concat(height), Trace.categories.Debug);
|
|
242
|
-
}
|
|
243
|
-
return height;
|
|
244
|
-
};
|
|
245
|
-
UITableViewDelegateImpl.ObjCProtocols = [UITableViewDelegate];
|
|
246
|
-
return UITableViewDelegateImpl;
|
|
247
|
-
}(NSObject));
|
|
248
|
-
var UITableViewRowHeightDelegateImpl = (function (_super) {
|
|
249
|
-
__extends(UITableViewRowHeightDelegateImpl, _super);
|
|
250
|
-
function UITableViewRowHeightDelegateImpl() {
|
|
251
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
252
|
-
}
|
|
253
|
-
UITableViewRowHeightDelegateImpl.initWithOwner = function (owner) {
|
|
254
|
-
var delegate = UITableViewRowHeightDelegateImpl.new();
|
|
255
|
-
delegate._owner = owner;
|
|
256
|
-
return delegate;
|
|
257
|
-
};
|
|
258
|
-
UITableViewRowHeightDelegateImpl.prototype.tableViewWillDisplayCellForRowAtIndexPath = function (tableView, cell, indexPath) {
|
|
259
|
-
var _a;
|
|
260
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
261
|
-
if (owner && indexPath.row === owner.items.length - 1) {
|
|
262
|
-
owner.notify({
|
|
263
|
-
eventName: LOADMOREITEMS,
|
|
264
|
-
object: owner,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
UITableViewRowHeightDelegateImpl.prototype.tableViewWillSelectRowAtIndexPath = function (tableView, indexPath) {
|
|
269
|
-
var _a;
|
|
270
|
-
var cell = tableView.cellForRowAtIndexPath(indexPath);
|
|
271
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
272
|
-
if (owner) {
|
|
273
|
-
notifyForItemAtIndex(owner, cell, cell.view, ITEMTAP, indexPath);
|
|
274
|
-
}
|
|
275
|
-
return indexPath;
|
|
276
|
-
};
|
|
277
|
-
UITableViewRowHeightDelegateImpl.prototype.tableViewDidSelectRowAtIndexPath = function (tableView, indexPath) {
|
|
278
|
-
tableView.deselectRowAtIndexPathAnimated(indexPath, true);
|
|
279
|
-
return indexPath;
|
|
280
|
-
};
|
|
281
|
-
UITableViewRowHeightDelegateImpl.prototype.tableViewHeightForRowAtIndexPath = function (tableView, indexPath) {
|
|
282
|
-
var _a;
|
|
283
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
284
|
-
if (!owner) {
|
|
285
|
-
return tableView.estimatedRowHeight;
|
|
286
|
-
}
|
|
287
|
-
return layout.toDeviceIndependentPixels(owner._effectiveRowHeight);
|
|
288
|
-
};
|
|
289
|
-
UITableViewRowHeightDelegateImpl.prototype.tableViewViewForHeaderInSection = function (tableView, section) {
|
|
290
|
-
var _a;
|
|
291
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
292
|
-
if (!owner || !owner.stickyHeader || !owner.stickyHeaderTemplate) {
|
|
293
|
-
if (Trace.isEnabled()) {
|
|
294
|
-
Trace.write("ListView: No sticky header (stickyHeader: ".concat(owner === null || owner === void 0 ? void 0 : owner.stickyHeader, ", hasTemplate: ").concat(!!(owner === null || owner === void 0 ? void 0 : owner.stickyHeaderTemplate), ")"), Trace.categories.Debug);
|
|
295
|
-
}
|
|
296
|
-
return null;
|
|
297
|
-
}
|
|
298
|
-
if (Trace.isEnabled()) {
|
|
299
|
-
Trace.write("ListView: Creating sticky header", Trace.categories.Debug);
|
|
300
|
-
}
|
|
301
|
-
var headerReuseIdentifier = "stickyHeader";
|
|
302
|
-
var headerCell = tableView.dequeueReusableHeaderFooterViewWithIdentifier(headerReuseIdentifier);
|
|
303
|
-
if (!headerCell) {
|
|
304
|
-
headerCell = ListViewHeaderCell.alloc().initWithReuseIdentifier(headerReuseIdentifier);
|
|
305
|
-
headerCell.backgroundColor = UIColor.clearColor;
|
|
306
|
-
}
|
|
307
|
-
owner._prepareHeader(headerCell, section);
|
|
308
|
-
return headerCell;
|
|
309
|
-
};
|
|
310
|
-
UITableViewRowHeightDelegateImpl.prototype.tableViewHeightForHeaderInSection = function (tableView, section) {
|
|
311
|
-
var _a;
|
|
312
|
-
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
313
|
-
if (!owner || !owner.stickyHeader) {
|
|
314
|
-
return 0;
|
|
315
|
-
}
|
|
316
|
-
var height;
|
|
317
|
-
if (owner.stickyHeaderHeight === "auto") {
|
|
318
|
-
height = 44;
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
height = layout.toDeviceIndependentPixels(Length.toDevicePixels(owner.stickyHeaderHeight, 44));
|
|
322
|
-
}
|
|
323
|
-
if (Trace.isEnabled()) {
|
|
324
|
-
Trace.write("ListView: Sticky header height: ".concat(height), Trace.categories.Debug);
|
|
325
|
-
}
|
|
326
|
-
return height;
|
|
327
|
-
};
|
|
328
|
-
UITableViewRowHeightDelegateImpl.ObjCProtocols = [UITableViewDelegate];
|
|
329
|
-
return UITableViewRowHeightDelegateImpl;
|
|
330
|
-
}(NSObject));
|
|
331
|
-
var UISearchResultsUpdatingImpl = (function (_super) {
|
|
332
|
-
__extends(UISearchResultsUpdatingImpl, _super);
|
|
333
|
-
function UISearchResultsUpdatingImpl() {
|
|
334
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
335
|
-
}
|
|
336
|
-
UISearchResultsUpdatingImpl.initWithOwner = function (owner) {
|
|
337
|
-
var handler = UISearchResultsUpdatingImpl.new();
|
|
338
|
-
handler._owner = owner;
|
|
339
|
-
return handler;
|
|
340
|
-
};
|
|
341
|
-
UISearchResultsUpdatingImpl.prototype.updateSearchResultsForSearchController = function (searchController) {
|
|
342
|
-
var owner = this._owner ? this._owner.get() : null;
|
|
343
|
-
if (!owner) {
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
var searchText = searchController.searchBar.text || "";
|
|
347
|
-
owner._isSearchActive = searchController.active;
|
|
348
|
-
var eventData = {
|
|
349
|
-
eventName: ListViewBase.searchChangeEvent,
|
|
350
|
-
object: owner,
|
|
351
|
-
text: searchText,
|
|
352
|
-
ios: searchController,
|
|
353
|
-
};
|
|
354
|
-
owner.notify(eventData);
|
|
355
|
-
};
|
|
356
|
-
UISearchResultsUpdatingImpl.ObjCProtocols = [UISearchResultsUpdating];
|
|
357
|
-
return UISearchResultsUpdatingImpl;
|
|
358
|
-
}(NSObject));
|
|
359
|
-
export class ListView extends ListViewBase {
|
|
360
|
-
constructor() {
|
|
361
|
-
super();
|
|
362
|
-
this._isSearchActive = false;
|
|
363
|
-
this.widthMeasureSpec = 0;
|
|
364
|
-
this._map = new Map();
|
|
365
|
-
this._headerMap = new Map();
|
|
366
|
-
this._heights = new Array();
|
|
367
|
-
}
|
|
368
|
-
createNativeView() {
|
|
369
|
-
return UITableView.new();
|
|
370
|
-
}
|
|
371
|
-
initNativeView() {
|
|
372
|
-
super.initNativeView();
|
|
373
|
-
const nativeView = this.nativeViewProtected;
|
|
374
|
-
nativeView.registerClassForCellReuseIdentifier(ListViewCell.class(), this._defaultTemplate.key);
|
|
375
|
-
nativeView.registerClassForHeaderFooterViewReuseIdentifier(ListViewHeaderCell.class(), 'stickyHeader');
|
|
376
|
-
nativeView.estimatedRowHeight = DEFAULT_HEIGHT;
|
|
377
|
-
nativeView.rowHeight = UITableViewAutomaticDimension;
|
|
378
|
-
nativeView.dataSource = this._dataSource = DataSource.initWithOwner(new WeakRef(this));
|
|
379
|
-
this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this));
|
|
380
|
-
// Control section header top padding (iOS 15+)
|
|
381
|
-
if (nativeView.respondsToSelector('setSectionHeaderTopPadding:')) {
|
|
382
|
-
if (!this.stickyHeaderTopPadding) {
|
|
383
|
-
nativeView.sectionHeaderTopPadding = 0;
|
|
384
|
-
}
|
|
385
|
-
// When stickyHeaderTopPadding is true, don't set the property to use iOS default
|
|
386
|
-
}
|
|
387
|
-
this._setNativeClipToBounds();
|
|
388
|
-
}
|
|
389
|
-
disposeNativeView() {
|
|
390
|
-
this._cleanupSearchController();
|
|
391
|
-
this._delegate = null;
|
|
392
|
-
this._dataSource = null;
|
|
393
|
-
super.disposeNativeView();
|
|
394
|
-
}
|
|
395
|
-
_setupSearchController() {
|
|
396
|
-
if (!this.showSearch || this._searchController) {
|
|
397
|
-
return; // Already setup or not needed
|
|
398
|
-
}
|
|
399
|
-
// 1. Create UISearchController with nil (show results in this table)
|
|
400
|
-
this._searchController = UISearchController.alloc().initWithSearchResultsController(null);
|
|
401
|
-
this._searchDelegate = UISearchResultsUpdatingImpl.initWithOwner(new WeakRef(this));
|
|
402
|
-
// 2. Tell it who will update results
|
|
403
|
-
this._searchController.searchResultsUpdater = this._searchDelegate;
|
|
404
|
-
// 3. Critical: Don't dim or obscure the table, and prevent extra content
|
|
405
|
-
this._searchController.obscuresBackgroundDuringPresentation = false;
|
|
406
|
-
this._searchController.dimsBackgroundDuringPresentation = false;
|
|
407
|
-
this._searchController.hidesNavigationBarDuringPresentation = false;
|
|
408
|
-
// 4. Placeholder text and styling
|
|
409
|
-
this._searchController.searchBar.placeholder = 'Search';
|
|
410
|
-
this._searchController.searchBar.searchBarStyle = 2 /* UISearchBarStyle.Minimal */;
|
|
411
|
-
// 5. CRITICAL: Proper presentation context setup
|
|
412
|
-
const viewController = this._getViewController();
|
|
413
|
-
if (viewController) {
|
|
414
|
-
viewController.definesPresentationContext = true;
|
|
415
|
-
viewController.providesPresentationContextTransitionStyle = true;
|
|
416
|
-
// 6a. If we're in a UINavigationController (iOS 11+)...
|
|
417
|
-
if (SDK_VERSION >= 11.0 && viewController.navigationItem) {
|
|
418
|
-
viewController.navigationItem.searchController = this._searchController;
|
|
419
|
-
// Set auto-hide behavior based on searchAutoHide property
|
|
420
|
-
viewController.navigationItem.hidesSearchBarWhenScrolling = this.searchAutoHide;
|
|
421
|
-
// Optional: Enable large titles for better auto-hide effect when searchAutoHide is true
|
|
422
|
-
// if (this.searchAutoHide && viewController.navigationController && viewController.navigationController.navigationBar) {
|
|
423
|
-
// // Only set large titles if not already configured
|
|
424
|
-
// if (!viewController.navigationController.navigationBar.prefersLargeTitles) {
|
|
425
|
-
// viewController.navigationController.navigationBar.prefersLargeTitles = true;
|
|
426
|
-
// }
|
|
427
|
-
// // Set large title display mode for this specific view controller
|
|
428
|
-
// if (viewController.navigationItem.largeTitleDisplayMode === UINavigationItemLargeTitleDisplayMode.Automatic) {
|
|
429
|
-
// viewController.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayMode.Always;
|
|
430
|
-
// }
|
|
431
|
-
// }
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
// 6b. Fallback: put it at the top of our table
|
|
435
|
-
this.nativeViewProtected.tableHeaderView = this._searchController.searchBar;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
// Fallback: no view controller found, use table header
|
|
440
|
-
this.nativeViewProtected.tableHeaderView = this._searchController.searchBar;
|
|
441
|
-
}
|
|
442
|
-
// 7. Ensure search bar is properly sized and prevent content inset issues
|
|
443
|
-
this._searchController.searchBar.sizeToFit();
|
|
444
|
-
// 8. Disable automatic content inset adjustment that can cause spacing issues
|
|
445
|
-
if (this.nativeViewProtected.respondsToSelector('setContentInsetAdjustmentBehavior:')) {
|
|
446
|
-
// iOS 11+ - prevent automatic content inset adjustments
|
|
447
|
-
this.nativeViewProtected.contentInsetAdjustmentBehavior = 2 /* UIScrollViewContentInsetAdjustmentBehavior.Never */;
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
// iOS 10 and below - disable automatic content inset
|
|
451
|
-
this.nativeViewProtected.automaticallyAdjustsScrollIndicatorInsets = false;
|
|
452
|
-
}
|
|
453
|
-
if (Trace.isEnabled()) {
|
|
454
|
-
Trace.write(`ListView: UISearchController setup complete with searchAutoHide: ${this.searchAutoHide}`, Trace.categories.Debug);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
_cleanupSearchController() {
|
|
458
|
-
if (!this._searchController) {
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
// Remove search controller from navigation item or table header
|
|
462
|
-
const viewController = this._getViewController();
|
|
463
|
-
if (viewController && viewController.navigationItem && viewController.navigationItem.searchController === this._searchController) {
|
|
464
|
-
viewController.navigationItem.searchController = null;
|
|
465
|
-
}
|
|
466
|
-
else if (this.nativeViewProtected.tableHeaderView === this._searchController.searchBar) {
|
|
467
|
-
this.nativeViewProtected.tableHeaderView = null;
|
|
468
|
-
}
|
|
469
|
-
// Reset content inset adjustment behavior
|
|
470
|
-
if (this.nativeViewProtected.respondsToSelector('setContentInsetAdjustmentBehavior:')) {
|
|
471
|
-
// iOS 11+ - restore automatic content inset adjustments
|
|
472
|
-
this.nativeViewProtected.contentInsetAdjustmentBehavior = 0 /* UIScrollViewContentInsetAdjustmentBehavior.Automatic */;
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
// iOS 10 and below - restore automatic content inset
|
|
476
|
-
this.nativeViewProtected.automaticallyAdjustsScrollIndicatorInsets = true;
|
|
477
|
-
}
|
|
478
|
-
// Cleanup references
|
|
479
|
-
this._searchController.searchResultsUpdater = null;
|
|
480
|
-
this._searchController = null;
|
|
481
|
-
this._searchDelegate = null;
|
|
482
|
-
}
|
|
483
|
-
_getViewController() {
|
|
484
|
-
// Helper to get the current view controller
|
|
485
|
-
let parent = this.parent;
|
|
486
|
-
while (parent) {
|
|
487
|
-
if (parent.viewController) {
|
|
488
|
-
return parent.viewController;
|
|
489
|
-
}
|
|
490
|
-
parent = parent.parent;
|
|
491
|
-
}
|
|
492
|
-
return null;
|
|
493
|
-
}
|
|
494
|
-
_setNativeClipToBounds() {
|
|
495
|
-
// Always set clipsToBounds for list-view
|
|
496
|
-
const view = this.nativeViewProtected;
|
|
497
|
-
if (view) {
|
|
498
|
-
view.clipsToBounds = true;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
onLoaded() {
|
|
502
|
-
super.onLoaded();
|
|
503
|
-
if (this._isDataDirty) {
|
|
504
|
-
this.refresh();
|
|
505
|
-
}
|
|
506
|
-
this.nativeViewProtected.delegate = this._delegate;
|
|
507
|
-
// Setup search controller if enabled
|
|
508
|
-
if (this.showSearch) {
|
|
509
|
-
this._setupSearchController();
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
// @ts-ignore
|
|
513
|
-
get ios() {
|
|
514
|
-
return this.nativeViewProtected;
|
|
515
|
-
}
|
|
516
|
-
get _childrenCount() {
|
|
517
|
-
return this._map.size + this._headerMap.size;
|
|
518
|
-
}
|
|
519
|
-
eachChildView(callback) {
|
|
520
|
-
this._map.forEach((view, key) => {
|
|
521
|
-
callback(view);
|
|
522
|
-
});
|
|
523
|
-
this._headerMap.forEach((view, key) => {
|
|
524
|
-
callback(view);
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
scrollToIndex(index) {
|
|
528
|
-
this._scrollToIndex(index, false);
|
|
529
|
-
}
|
|
530
|
-
scrollToIndexAnimated(index) {
|
|
531
|
-
this._scrollToIndex(index);
|
|
532
|
-
}
|
|
533
|
-
_scrollToIndex(index, animated = true) {
|
|
534
|
-
if (!this.nativeViewProtected) {
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
const itemsLength = this.items ? this.items.length : 0;
|
|
538
|
-
// mimic Android behavior that silently coerces index values within [0, itemsLength - 1] range
|
|
539
|
-
if (itemsLength > 0) {
|
|
540
|
-
if (index < 0) {
|
|
541
|
-
index = 0;
|
|
542
|
-
}
|
|
543
|
-
else if (index >= itemsLength) {
|
|
544
|
-
index = itemsLength - 1;
|
|
545
|
-
}
|
|
546
|
-
this.nativeViewProtected.scrollToRowAtIndexPathAtScrollPositionAnimated(NSIndexPath.indexPathForItemInSection(index, 0), 1 /* UITableViewScrollPosition.Top */, animated);
|
|
547
|
-
}
|
|
548
|
-
else if (Trace.isEnabled()) {
|
|
549
|
-
Trace.write(`Cannot scroll listview to index ${index} when listview items not set`, Trace.categories.Binding);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
refresh() {
|
|
553
|
-
// clear bindingContext when it is not observable because otherwise bindings to items won't reevaluate
|
|
554
|
-
this._map.forEach((view, nativeView, map) => {
|
|
555
|
-
if (!(view.bindingContext instanceof Observable)) {
|
|
556
|
-
view.bindingContext = null;
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
this._headerMap.forEach((view, nativeView, map) => {
|
|
560
|
-
if (!(view.bindingContext instanceof Observable)) {
|
|
561
|
-
view.bindingContext = null;
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
if (this.isLoaded) {
|
|
565
|
-
this.nativeViewProtected.reloadData();
|
|
566
|
-
this.requestLayout();
|
|
567
|
-
this._isDataDirty = false;
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
this._isDataDirty = true;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
isItemAtIndexVisible(itemIndex) {
|
|
574
|
-
const indexes = Array.from(this.nativeViewProtected.indexPathsForVisibleRows);
|
|
575
|
-
return indexes.some((visIndex) => visIndex.row === itemIndex);
|
|
576
|
-
}
|
|
577
|
-
getHeight(index) {
|
|
578
|
-
return this._heights[index];
|
|
579
|
-
}
|
|
580
|
-
setHeight(index, value) {
|
|
581
|
-
this._heights[index] = value;
|
|
582
|
-
}
|
|
583
|
-
_onRowHeightPropertyChanged(oldValue, newValue) {
|
|
584
|
-
const value = layout.toDeviceIndependentPixels(this._effectiveRowHeight);
|
|
585
|
-
const nativeView = this.nativeViewProtected;
|
|
586
|
-
if (value < 0) {
|
|
587
|
-
nativeView.rowHeight = UITableViewAutomaticDimension;
|
|
588
|
-
nativeView.estimatedRowHeight = DEFAULT_HEIGHT;
|
|
589
|
-
this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this));
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
nativeView.rowHeight = value;
|
|
593
|
-
nativeView.estimatedRowHeight = value;
|
|
594
|
-
this._delegate = UITableViewRowHeightDelegateImpl.initWithOwner(new WeakRef(this));
|
|
595
|
-
}
|
|
596
|
-
if (this.isLoaded) {
|
|
597
|
-
nativeView.delegate = this._delegate;
|
|
598
|
-
}
|
|
599
|
-
super._onRowHeightPropertyChanged(oldValue, newValue);
|
|
600
|
-
}
|
|
601
|
-
requestLayout() {
|
|
602
|
-
// When preparing cell or header don't call super - no need to invalidate our measure when cell/header desiredSize is changed.
|
|
603
|
-
if (!this._preparingCell && !this._preparingHeader) {
|
|
604
|
-
super.requestLayout();
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
measure(widthMeasureSpec, heightMeasureSpec) {
|
|
608
|
-
const changed = this._currentWidthMeasureSpec !== widthMeasureSpec || this._currentHeightMeasureSpec !== heightMeasureSpec;
|
|
609
|
-
this.widthMeasureSpec = widthMeasureSpec;
|
|
610
|
-
super.measure(widthMeasureSpec, heightMeasureSpec);
|
|
611
|
-
// Reload native view cells only in the case of size change
|
|
612
|
-
if (changed) {
|
|
613
|
-
this.nativeViewProtected.reloadData();
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
onMeasure(widthMeasureSpec, heightMeasureSpec) {
|
|
617
|
-
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
|
618
|
-
this._map.forEach((childView, listViewCell) => {
|
|
619
|
-
View.measureChild(this, childView, childView._currentWidthMeasureSpec, childView._currentHeightMeasureSpec);
|
|
620
|
-
});
|
|
621
|
-
this._headerMap.forEach((childView, listViewHeaderCell) => {
|
|
622
|
-
View.measureChild(this, childView, childView._currentWidthMeasureSpec, childView._currentHeightMeasureSpec);
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
onLayout(left, top, right, bottom) {
|
|
626
|
-
super.onLayout(left, top, right, bottom);
|
|
627
|
-
this._map.forEach((childView, listViewCell) => {
|
|
628
|
-
const rowHeight = this._effectiveRowHeight;
|
|
629
|
-
const cellHeight = rowHeight > 0 ? rowHeight : this.getHeight(childView._listViewItemIndex);
|
|
630
|
-
if (cellHeight) {
|
|
631
|
-
const width = layout.getMeasureSpecSize(this.widthMeasureSpec);
|
|
632
|
-
childView.iosOverflowSafeAreaEnabled = false;
|
|
633
|
-
View.layoutChild(this, childView, 0, 0, width, cellHeight);
|
|
634
|
-
}
|
|
635
|
-
});
|
|
636
|
-
this._headerMap.forEach((childView, listViewHeaderCell) => {
|
|
637
|
-
const headerHeight = this.stickyHeaderHeight === 'auto' ? 44 : Length.toDevicePixels(this.stickyHeaderHeight, 44);
|
|
638
|
-
const width = layout.getMeasureSpecSize(this.widthMeasureSpec);
|
|
639
|
-
childView.iosOverflowSafeAreaEnabled = false;
|
|
640
|
-
View.layoutChild(this, childView, 0, 0, width, headerHeight);
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
_layoutCell(cellView, indexPath) {
|
|
644
|
-
if (cellView) {
|
|
645
|
-
const rowHeight = this._effectiveRowHeight;
|
|
646
|
-
const heightMeasureSpec = rowHeight >= 0 ? layout.makeMeasureSpec(rowHeight, layout.EXACTLY) : infinity;
|
|
647
|
-
const measuredSize = View.measureChild(this, cellView, this.widthMeasureSpec, heightMeasureSpec);
|
|
648
|
-
const height = measuredSize.measuredHeight;
|
|
649
|
-
this.setHeight(indexPath.row, height);
|
|
650
|
-
return height;
|
|
651
|
-
}
|
|
652
|
-
return this.nativeViewProtected.estimatedRowHeight;
|
|
653
|
-
}
|
|
654
|
-
_prepareCell(cell, indexPath) {
|
|
655
|
-
let cellHeight;
|
|
656
|
-
try {
|
|
657
|
-
this._preparingCell = true;
|
|
658
|
-
let view = cell.view;
|
|
659
|
-
if (!view) {
|
|
660
|
-
if (this.sectioned) {
|
|
661
|
-
// For sectioned data, we need to calculate the absolute index for template selection
|
|
662
|
-
let absoluteIndex = 0;
|
|
663
|
-
for (let i = 0; i < indexPath.section; i++) {
|
|
664
|
-
absoluteIndex += this._getItemsInSection(i).length;
|
|
665
|
-
}
|
|
666
|
-
absoluteIndex += indexPath.row;
|
|
667
|
-
view = this._getItemTemplate(absoluteIndex).createView();
|
|
668
|
-
}
|
|
669
|
-
else {
|
|
670
|
-
view = this._getItemTemplate(indexPath.row).createView();
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
const args = notifyForItemAtIndex(this, cell, view, ITEMLOADING, indexPath);
|
|
674
|
-
view = args.view || this._getDefaultItemContent(this.sectioned ? indexPath.row : indexPath.row);
|
|
675
|
-
// Proxy containers should not get treated as layouts.
|
|
676
|
-
// Wrap them in a real layout as well.
|
|
677
|
-
if (view instanceof ProxyViewContainer) {
|
|
678
|
-
const sp = new StackLayout();
|
|
679
|
-
sp.addChild(view);
|
|
680
|
-
view = sp;
|
|
681
|
-
}
|
|
682
|
-
// If cell is reused it have old content - remove it first.
|
|
683
|
-
if (!cell.view) {
|
|
684
|
-
cell.owner = new WeakRef(view);
|
|
685
|
-
}
|
|
686
|
-
else if (cell.view !== view) {
|
|
687
|
-
// Remove view from super view now as nativeViewProtected will be null afterwards
|
|
688
|
-
cell.view.nativeViewProtected?.removeFromSuperview();
|
|
689
|
-
this._removeContainer(cell);
|
|
690
|
-
cell.owner = new WeakRef(view);
|
|
691
|
-
}
|
|
692
|
-
if (this.sectioned) {
|
|
693
|
-
this._prepareItemInSection(view, indexPath.section, indexPath.row);
|
|
694
|
-
view._listViewItemIndex = indexPath.row; // Keep row index for compatibility
|
|
695
|
-
view._listViewSectionIndex = indexPath.section;
|
|
696
|
-
}
|
|
697
|
-
else {
|
|
698
|
-
this._prepareItem(view, indexPath.row);
|
|
699
|
-
view._listViewItemIndex = indexPath.row;
|
|
700
|
-
}
|
|
701
|
-
this._map.set(cell, view);
|
|
702
|
-
// We expect that views returned from itemLoading are new (e.g. not reused).
|
|
703
|
-
if (view && !view.parent) {
|
|
704
|
-
this._addView(view);
|
|
705
|
-
cell.contentView.addSubview(view.nativeViewProtected);
|
|
706
|
-
}
|
|
707
|
-
cellHeight = this._layoutCell(view, indexPath);
|
|
708
|
-
}
|
|
709
|
-
finally {
|
|
710
|
-
this._preparingCell = false;
|
|
711
|
-
}
|
|
712
|
-
return cellHeight;
|
|
713
|
-
}
|
|
714
|
-
_removeContainer(cell) {
|
|
715
|
-
const view = cell.view;
|
|
716
|
-
// This is to clear the StackLayout that is used to wrap ProxyViewContainer instances.
|
|
717
|
-
if (!(view.parent instanceof ListView)) {
|
|
718
|
-
this._removeView(view.parent);
|
|
719
|
-
}
|
|
720
|
-
// No need to request layout when we are removing cells.
|
|
721
|
-
const preparing = this._preparingCell;
|
|
722
|
-
this._preparingCell = true;
|
|
723
|
-
view.parent._removeView(view);
|
|
724
|
-
view._listViewItemIndex = undefined;
|
|
725
|
-
this._preparingCell = preparing;
|
|
726
|
-
this._map.delete(cell);
|
|
727
|
-
}
|
|
728
|
-
_prepareHeader(headerCell, section) {
|
|
729
|
-
let headerHeight;
|
|
730
|
-
try {
|
|
731
|
-
this._preparingHeader = true;
|
|
732
|
-
let view = headerCell.view;
|
|
733
|
-
if (!view) {
|
|
734
|
-
view = this._getHeaderTemplate();
|
|
735
|
-
if (!view) {
|
|
736
|
-
if (Trace.isEnabled()) {
|
|
737
|
-
Trace.write(`ListView: Failed to create header view for section ${section}`, Trace.categories.Debug);
|
|
738
|
-
}
|
|
739
|
-
// Create a fallback view
|
|
740
|
-
const lbl = new Label();
|
|
741
|
-
lbl.text = `Section ${section}`;
|
|
742
|
-
view = lbl;
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
// Handle header cell reuse
|
|
746
|
-
if (!headerCell.view) {
|
|
747
|
-
headerCell.owner = new WeakRef(view);
|
|
748
|
-
}
|
|
749
|
-
else if (headerCell.view !== view) {
|
|
750
|
-
// Remove old view and set new one
|
|
751
|
-
headerCell.view.nativeViewProtected?.removeFromSuperview();
|
|
752
|
-
this._removeHeaderContainer(headerCell);
|
|
753
|
-
headerCell.owner = new WeakRef(view);
|
|
754
|
-
}
|
|
755
|
-
// Clear existing binding context and set new one
|
|
756
|
-
if (view.bindingContext) {
|
|
757
|
-
view.bindingContext = null;
|
|
758
|
-
}
|
|
759
|
-
if (this.sectioned) {
|
|
760
|
-
const sectionData = this._getSectionData(section);
|
|
761
|
-
if (sectionData) {
|
|
762
|
-
view.bindingContext = sectionData;
|
|
763
|
-
}
|
|
764
|
-
else {
|
|
765
|
-
// Fallback if section data is missing
|
|
766
|
-
view.bindingContext = { title: `Section ${section}`, section: section };
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
view.bindingContext = this.bindingContext;
|
|
771
|
-
}
|
|
772
|
-
// Force immediate binding context evaluation
|
|
773
|
-
if (view && typeof view._onBindingContextChanged === 'function') {
|
|
774
|
-
view._onBindingContextChanged(null, view.bindingContext);
|
|
775
|
-
// Also trigger for child views
|
|
776
|
-
// @ts-ignore
|
|
777
|
-
if (view._childrenCount) {
|
|
778
|
-
view.eachChildView((child) => {
|
|
779
|
-
if (typeof child._onBindingContextChanged === 'function') {
|
|
780
|
-
child._onBindingContextChanged(null, view.bindingContext);
|
|
781
|
-
}
|
|
782
|
-
return true;
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
this._headerMap.set(headerCell, view);
|
|
787
|
-
// Add new header view to the cell
|
|
788
|
-
if (view && !view.parent) {
|
|
789
|
-
this._addView(view);
|
|
790
|
-
headerCell.contentView.addSubview(view.nativeViewProtected);
|
|
791
|
-
}
|
|
792
|
-
// Request layout and measure/layout the header
|
|
793
|
-
if (view && view.bindingContext) {
|
|
794
|
-
view.requestLayout();
|
|
795
|
-
}
|
|
796
|
-
headerHeight = this._layoutHeader(view);
|
|
797
|
-
}
|
|
798
|
-
finally {
|
|
799
|
-
this._preparingHeader = false;
|
|
800
|
-
}
|
|
801
|
-
return headerHeight;
|
|
802
|
-
}
|
|
803
|
-
_layoutHeader(headerView) {
|
|
804
|
-
if (headerView) {
|
|
805
|
-
const headerHeight = this.stickyHeaderHeight === 'auto' ? 44 : Length.toDevicePixels(this.stickyHeaderHeight, 44);
|
|
806
|
-
const heightMeasureSpec = layout.makeMeasureSpec(headerHeight, layout.EXACTLY);
|
|
807
|
-
const measuredSize = View.measureChild(this, headerView, this.widthMeasureSpec, heightMeasureSpec);
|
|
808
|
-
// Layout the header with the measured size
|
|
809
|
-
View.layoutChild(this, headerView, 0, 0, measuredSize.measuredWidth, measuredSize.measuredHeight);
|
|
810
|
-
return measuredSize.measuredHeight;
|
|
811
|
-
}
|
|
812
|
-
return 44;
|
|
813
|
-
}
|
|
814
|
-
_getHeaderTemplate() {
|
|
815
|
-
if (this.stickyHeaderTemplate) {
|
|
816
|
-
if (__UI_USE_EXTERNAL_RENDERER__) {
|
|
817
|
-
if (isFunction(this.stickyHeaderTemplate)) {
|
|
818
|
-
return this.stickyHeaderTemplate();
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
else {
|
|
822
|
-
if (typeof this.stickyHeaderTemplate === 'string') {
|
|
823
|
-
try {
|
|
824
|
-
const parsed = Builder.parse(this.stickyHeaderTemplate, this);
|
|
825
|
-
if (!parsed) {
|
|
826
|
-
// Create a simple fallback
|
|
827
|
-
const fallbackLabel = new Label();
|
|
828
|
-
fallbackLabel.text = 'Parse Failed';
|
|
829
|
-
return fallbackLabel;
|
|
830
|
-
}
|
|
831
|
-
return parsed;
|
|
832
|
-
}
|
|
833
|
-
catch (error) {
|
|
834
|
-
if (Trace.isEnabled()) {
|
|
835
|
-
Trace.write(`ListView: Template parsing error: ${error}`, Trace.categories.Debug);
|
|
836
|
-
}
|
|
837
|
-
// Create a simple fallback
|
|
838
|
-
const errorLabel = new Label();
|
|
839
|
-
errorLabel.text = 'Template Error';
|
|
840
|
-
return errorLabel;
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
else {
|
|
844
|
-
const view = this.stickyHeaderTemplate();
|
|
845
|
-
if (Trace.isEnabled()) {
|
|
846
|
-
Trace.write(`ListView: Created header view from template function: ${!!view} (type: ${view?.constructor?.name})`, Trace.categories.Debug);
|
|
847
|
-
}
|
|
848
|
-
return view;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
if (Trace.isEnabled()) {
|
|
853
|
-
Trace.write(`ListView: No sticky header template, creating default`, Trace.categories.Debug);
|
|
854
|
-
}
|
|
855
|
-
// Return a default header if no template is provided
|
|
856
|
-
const lbl = new Label();
|
|
857
|
-
lbl.text = 'Default Header';
|
|
858
|
-
return lbl;
|
|
859
|
-
}
|
|
860
|
-
_removeHeaderContainer(headerCell) {
|
|
861
|
-
const view = headerCell.view;
|
|
862
|
-
// This is to clear the StackLayout that is used to wrap ProxyViewContainer instances.
|
|
863
|
-
if (!(view.parent instanceof ListView)) {
|
|
864
|
-
this._removeView(view.parent);
|
|
865
|
-
}
|
|
866
|
-
// No need to request layout when we are removing headers.
|
|
867
|
-
const preparing = this._preparingHeader;
|
|
868
|
-
this._preparingHeader = true;
|
|
869
|
-
view.parent._removeView(view);
|
|
870
|
-
this._preparingHeader = preparing;
|
|
871
|
-
this._headerMap.delete(headerCell);
|
|
872
|
-
}
|
|
873
|
-
[separatorColorProperty.getDefault]() {
|
|
874
|
-
return this.nativeViewProtected.separatorColor;
|
|
875
|
-
}
|
|
876
|
-
[separatorColorProperty.setNative](value) {
|
|
877
|
-
this.nativeViewProtected.separatorColor = value instanceof Color ? value.ios : value;
|
|
878
|
-
}
|
|
879
|
-
[itemTemplatesProperty.getDefault]() {
|
|
880
|
-
return null;
|
|
881
|
-
}
|
|
882
|
-
[itemTemplatesProperty.setNative](value) {
|
|
883
|
-
this._itemTemplatesInternal = new Array(this._defaultTemplate);
|
|
884
|
-
if (value) {
|
|
885
|
-
for (let i = 0, length = value.length; i < length; i++) {
|
|
886
|
-
this.nativeViewProtected.registerClassForCellReuseIdentifier(ListViewCell.class(), value[i].key);
|
|
887
|
-
}
|
|
888
|
-
this._itemTemplatesInternal = this._itemTemplatesInternal.concat(value);
|
|
889
|
-
}
|
|
890
|
-
this.refresh();
|
|
891
|
-
}
|
|
892
|
-
[iosEstimatedRowHeightProperty.getDefault]() {
|
|
893
|
-
return DEFAULT_HEIGHT;
|
|
894
|
-
}
|
|
895
|
-
[iosEstimatedRowHeightProperty.setNative](value) {
|
|
896
|
-
const nativeView = this.nativeViewProtected;
|
|
897
|
-
const estimatedHeight = layout.toDeviceIndependentPixels(Length.toDevicePixels(value, 0));
|
|
898
|
-
nativeView.estimatedRowHeight = estimatedHeight < 0 ? DEFAULT_HEIGHT : estimatedHeight;
|
|
899
|
-
}
|
|
900
|
-
[stickyHeaderProperty.getDefault]() {
|
|
901
|
-
return false;
|
|
902
|
-
}
|
|
903
|
-
[stickyHeaderProperty.setNative](value) {
|
|
904
|
-
if (Trace.isEnabled()) {
|
|
905
|
-
Trace.write(`ListView: stickyHeader set to ${value}`, Trace.categories.Debug);
|
|
906
|
-
}
|
|
907
|
-
// Immediately refresh to apply changes
|
|
908
|
-
if (this.isLoaded) {
|
|
909
|
-
this.refresh();
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
[stickyHeaderTemplateProperty.getDefault]() {
|
|
913
|
-
return null;
|
|
914
|
-
}
|
|
915
|
-
[stickyHeaderTemplateProperty.setNative](value) {
|
|
916
|
-
if (Trace.isEnabled()) {
|
|
917
|
-
Trace.write(`ListView: stickyHeaderTemplate set: ${typeof value} ${value ? '(has value)' : '(null)'}`, Trace.categories.Debug);
|
|
918
|
-
}
|
|
919
|
-
// Clear any cached template
|
|
920
|
-
this._headerTemplateCache = null;
|
|
921
|
-
// Immediately refresh to apply changes
|
|
922
|
-
if (this.isLoaded) {
|
|
923
|
-
this.refresh();
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
[stickyHeaderHeightProperty.getDefault]() {
|
|
927
|
-
return 'auto';
|
|
928
|
-
}
|
|
929
|
-
[stickyHeaderHeightProperty.setNative](value) {
|
|
930
|
-
if (Trace.isEnabled()) {
|
|
931
|
-
Trace.write(`ListView: stickyHeaderHeight set to ${value}`, Trace.categories.Debug);
|
|
932
|
-
}
|
|
933
|
-
// Immediately refresh to apply changes
|
|
934
|
-
if (this.isLoaded) {
|
|
935
|
-
this.refresh();
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
[sectionedProperty.getDefault]() {
|
|
939
|
-
return false;
|
|
940
|
-
}
|
|
941
|
-
[sectionedProperty.setNative](value) {
|
|
942
|
-
if (Trace.isEnabled()) {
|
|
943
|
-
Trace.write(`ListView: sectioned set to ${value}`, Trace.categories.Debug);
|
|
944
|
-
}
|
|
945
|
-
// Immediately refresh to apply changes
|
|
946
|
-
if (this.isLoaded) {
|
|
947
|
-
this.refresh();
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
[showSearchProperty.getDefault]() {
|
|
951
|
-
return false;
|
|
952
|
-
}
|
|
953
|
-
[showSearchProperty.setNative](value) {
|
|
954
|
-
if (Trace.isEnabled()) {
|
|
955
|
-
Trace.write(`ListView: showSearch set to ${value}`, Trace.categories.Debug);
|
|
956
|
-
}
|
|
957
|
-
if (value) {
|
|
958
|
-
this._setupSearchController();
|
|
959
|
-
}
|
|
960
|
-
else {
|
|
961
|
-
this._cleanupSearchController();
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
[searchAutoHideProperty.getDefault]() {
|
|
965
|
-
return false;
|
|
966
|
-
}
|
|
967
|
-
[searchAutoHideProperty.setNative](value) {
|
|
968
|
-
if (Trace.isEnabled()) {
|
|
969
|
-
Trace.write(`ListView: searchAutoHide set to ${value}`, Trace.categories.Debug);
|
|
970
|
-
}
|
|
971
|
-
// If search is already enabled, update the existing search controller
|
|
972
|
-
if (this.showSearch && this._searchController) {
|
|
973
|
-
const viewController = this._getViewController();
|
|
974
|
-
if (viewController && viewController.navigationItem && SDK_VERSION >= 11.0) {
|
|
975
|
-
viewController.navigationItem.hidesSearchBarWhenScrolling = value;
|
|
976
|
-
// Enable large titles for better auto-hide effect when searchAutoHide is true
|
|
977
|
-
// if (value && viewController.navigationController && viewController.navigationController.navigationBar) {
|
|
978
|
-
// if (!viewController.navigationController.navigationBar.prefersLargeTitles) {
|
|
979
|
-
// viewController.navigationController.navigationBar.prefersLargeTitles = true;
|
|
980
|
-
// }
|
|
981
|
-
// if (viewController.navigationItem.largeTitleDisplayMode === UINavigationItemLargeTitleDisplayMode.Automatic) {
|
|
982
|
-
// viewController.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayMode.Always;
|
|
983
|
-
// }
|
|
984
|
-
// }
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
// If search is not enabled yet, the property will be used when _setupSearchController is called
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
__decorate([
|
|
991
|
-
profile,
|
|
992
|
-
__metadata("design:type", Function),
|
|
993
|
-
__metadata("design:paramtypes", []),
|
|
994
|
-
__metadata("design:returntype", void 0)
|
|
995
|
-
], ListView.prototype, "onLoaded", null);
|
|
996
|
-
//# sourceMappingURL=index.ios.js.map
|