@nativescript/core 9.0.10-next.0 → 9.0.10
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/LICENSE +19 -0
- package/abortcontroller/abortsignal.d.ts +23 -0
- package/abortcontroller/abortsignal.js +57 -0
- package/abortcontroller/abortsignal.js.map +1 -0
- package/abortcontroller/index.d.ts +20 -0
- package/abortcontroller/index.js +52 -0
- package/abortcontroller/index.js.map +1 -0
- package/accessibility/accessibility-common.d.ts +282 -0
- package/accessibility/accessibility-common.js +416 -0
- package/accessibility/accessibility-common.js.map +1 -0
- package/accessibility/accessibility-properties.d.ts +24 -0
- package/accessibility/accessibility-properties.js +118 -0
- package/accessibility/accessibility-properties.js.map +1 -0
- package/accessibility/index.d.ts +1 -0
- package/accessibility/index.js +2 -0
- package/accessibility/index.js.map +1 -0
- package/animation-frame/animation-native.android.d.ts +1 -0
- package/animation-frame/animation-native.android.js +4 -0
- package/animation-frame/animation-native.android.js.map +1 -0
- package/animation-frame/animation-native.ios.d.ts +1 -0
- package/animation-frame/animation-native.ios.js +3 -0
- package/animation-frame/animation-native.ios.js.map +1 -0
- package/animation-frame/index.js +81 -0
- package/animation-frame/index.js.map +1 -0
- package/application/application-common.d.ts +247 -0
- package/application/application-common.js +578 -0
- package/application/application-common.js.map +1 -0
- package/application/application-interfaces.d.ts +220 -0
- package/application/application-interfaces.js +2 -0
- package/application/application-interfaces.js.map +1 -0
- package/application/application-shims.d.ts +378 -0
- package/application/application-shims.js +380 -0
- package/application/application-shims.js.map +1 -0
- package/application/application.android.d.ts +81 -0
- package/application/application.android.js +1233 -0
- package/application/application.android.js.map +1 -0
- package/application/application.ios.d.ts +145 -0
- package/application/application.ios.js +1481 -0
- package/application/application.ios.js.map +1 -0
- package/application/helpers-common.d.ts +50 -0
- package/application/helpers-common.js +153 -0
- package/application/helpers-common.js.map +1 -0
- package/application/helpers.android.d.ts +8 -0
- package/application/helpers.android.js +119 -0
- package/application/helpers.android.js.map +1 -0
- package/application/helpers.ios.d.ts +8 -0
- package/application/helpers.ios.js +24 -0
- package/application/helpers.ios.js.map +1 -0
- package/application/index.android.d.ts +2 -0
- package/application/index.android.js +3 -0
- package/application/index.android.js.map +1 -0
- package/application/index.ios.d.ts +2 -0
- package/application/index.ios.js +3 -0
- package/application/index.ios.js.map +1 -0
- package/application-settings/application-settings-common.d.ts +2 -0
- package/application-settings/application-settings-common.js +15 -0
- package/application-settings/application-settings-common.js.map +1 -0
- package/application-settings/index.android.d.ts +11 -0
- package/application-settings/index.android.js +124 -0
- package/application-settings/index.android.js.map +1 -0
- package/application-settings/index.ios.d.ts +11 -0
- package/application-settings/index.ios.js +81 -0
- package/application-settings/index.ios.js.map +1 -0
- package/bundle-entry-points.d.ts +1 -0
- package/bundle-entry-points.js +47 -0
- package/bundle-entry-points.js.map +1 -0
- package/color/color-common.d.ts +136 -0
- package/color/color-common.js +341 -0
- package/color/color-common.js.map +1 -0
- package/color/color-types.d.ts +49 -0
- package/color/color-types.js +3 -0
- package/color/color-types.js.map +1 -0
- package/color/color-utils.d.ts +38 -0
- package/color/color-utils.js +213 -0
- package/color/color-utils.js.map +1 -0
- package/color/index.android.d.ts +4 -0
- package/color/index.android.js +7 -0
- package/color/index.android.js.map +1 -0
- package/color/index.ios.d.ts +7 -0
- package/color/index.ios.js +19 -0
- package/color/index.ios.js.map +1 -0
- package/color/known-colors.d.ts +144 -0
- package/color/known-colors.js +165 -0
- package/color/known-colors.js.map +1 -0
- package/config/config.interface.d.ts +275 -0
- package/config/config.interface.js +2 -0
- package/config/config.interface.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +2 -0
- package/config/index.js.map +1 -0
- package/connectivity/index.android.d.ts +11 -0
- package/connectivity/index.android.js +157 -0
- package/connectivity/index.android.js.map +1 -0
- package/connectivity/index.ios.d.ts +11 -0
- package/connectivity/index.ios.js +132 -0
- package/connectivity/index.ios.js.map +1 -0
- package/console/index.d.ts +14 -0
- package/console/index.js +33 -0
- package/console/index.js.map +1 -0
- package/core-types/animation-types.d.ts +11 -0
- package/core-types/animation-types.js +13 -0
- package/core-types/animation-types.js.map +1 -0
- package/core-types/index.d.ts +345 -0
- package/core-types/index.js +290 -0
- package/core-types/index.js.map +1 -0
- package/core-types/validators.d.ts +2 -0
- package/core-types/validators.js +27 -0
- package/core-types/validators.js.map +1 -0
- package/css/CSS3Parser.d.ts +184 -0
- package/css/CSS3Parser.js +534 -0
- package/css/CSS3Parser.js.map +1 -0
- package/css/CSSNativeScript.d.ts +14 -0
- package/css/CSSNativeScript.js +113 -0
- package/css/CSSNativeScript.js.map +1 -0
- package/css/css-tree-parser.d.ts +1 -0
- package/css/css-tree-parser.js +133 -0
- package/css/css-tree-parser.js.map +1 -0
- package/css/lib/parse/index.d.ts +1 -0
- package/css/lib/parse/index.js +500 -0
- package/css/lib/parse/index.js.map +1 -0
- package/css/parser.d.ts +70 -0
- package/css/parser.js +517 -0
- package/css/parser.js.map +1 -0
- package/css/reworkcss.d.ts +44 -0
- package/css/reworkcss.js +5 -0
- package/css/reworkcss.js.map +1 -0
- package/css/system-classes.d.ts +12 -0
- package/css/system-classes.js +47 -0
- package/css/system-classes.js.map +1 -0
- package/css-mediaquery/index.d.ts +27 -0
- package/css-mediaquery/index.js +118 -0
- package/css-mediaquery/index.js.map +1 -0
- package/css-value/reworkcss-value.d.ts +31 -0
- package/css-value/reworkcss-value.js +91 -0
- package/css-value/reworkcss-value.js.map +1 -0
- package/data/observable/index.d.ts +213 -0
- package/data/observable/index.js +452 -0
- package/data/observable/index.js.map +1 -0
- package/data/observable-array/index.d.ts +215 -0
- package/data/observable-array/index.js +325 -0
- package/data/observable-array/index.js.map +1 -0
- package/data/virtual-array/index.d.ts +72 -0
- package/data/virtual-array/index.js +133 -0
- package/data/virtual-array/index.js.map +1 -0
- package/debugger/InspectorBackendCommands.d.ts +1056 -0
- package/debugger/InspectorBackendCommands.js +578 -0
- package/debugger/InspectorBackendCommands.js.map +1 -0
- package/debugger/devtools-elements-interfaces.d.ts +16 -0
- package/debugger/devtools-elements-interfaces.js +2 -0
- package/debugger/devtools-elements-interfaces.js.map +1 -0
- package/debugger/devtools-elements.common.d.ts +7 -0
- package/debugger/devtools-elements.common.js +93 -0
- package/debugger/devtools-elements.common.js.map +1 -0
- package/debugger/devtools-elements.js +20 -0
- package/debugger/devtools-elements.js.map +1 -0
- package/debugger/dom-types.d.ts +24 -0
- package/debugger/dom-types.js +152 -0
- package/debugger/dom-types.js.map +1 -0
- package/debugger/index.d.ts +87 -0
- package/debugger/index.js +118 -0
- package/debugger/index.js.map +1 -0
- package/debugger/webinspector-css.d.ts +34 -0
- package/debugger/webinspector-css.js +72 -0
- package/debugger/webinspector-css.js.map +1 -0
- package/debugger/webinspector-dom.d.ts +33 -0
- package/debugger/webinspector-dom.js +75 -0
- package/debugger/webinspector-dom.js.map +1 -0
- package/debugger/webinspector-network.android.d.ts +79 -0
- package/debugger/webinspector-network.android.js +208 -0
- package/debugger/webinspector-network.android.js.map +1 -0
- package/debugger/webinspector-network.ios.d.ts +79 -0
- package/debugger/webinspector-network.ios.js +204 -0
- package/debugger/webinspector-network.ios.js.map +1 -0
- package/fetch/index.d.ts +72 -0
- package/fetch/index.js +529 -0
- package/fetch/index.js.map +1 -0
- package/file-system/file-system-access.android.d.ts +151 -0
- package/file-system/file-system-access.android.js +1162 -0
- package/file-system/file-system-access.android.js.map +1 -0
- package/file-system/file-system-access.ios.d.ts +85 -0
- package/file-system/file-system-access.ios.js +622 -0
- package/file-system/file-system-access.ios.js.map +1 -0
- package/file-system/index.js +873 -0
- package/file-system/index.js.map +1 -0
- package/fps-meter/fps-native.android.d.ts +11 -0
- package/fps-meter/fps-native.android.js +62 -0
- package/fps-meter/fps-native.android.js.map +1 -0
- package/fps-meter/fps-native.ios.d.ts +10 -0
- package/fps-meter/fps-native.ios.js +56 -0
- package/fps-meter/fps-native.ios.js.map +1 -0
- package/fps-meter/index.js +77 -0
- package/fps-meter/index.js.map +1 -0
- package/globals/global-utils.d.ts +27 -0
- package/globals/global-utils.js +67 -0
- package/globals/global-utils.js.map +1 -0
- package/globals/index.d.ts +3 -0
- package/globals/index.js +313 -0
- package/globals/index.js.map +1 -0
- package/http/http-interfaces.d.ts +84 -0
- package/http/http-interfaces.js +6 -0
- package/http/http-interfaces.js.map +1 -0
- package/http/http-request/http-request-common.d.ts +1 -0
- package/http/http-request/http-request-common.js +15 -0
- package/http/http-request/http-request-common.js.map +1 -0
- package/http/http-request/index.android.d.ts +3 -0
- package/http/http-request/index.android.js +274 -0
- package/http/http-request/index.android.js.map +1 -0
- package/http/http-request/index.ios.d.ts +3 -0
- package/http/http-request/index.ios.js +221 -0
- package/http/http-request/index.ios.js.map +1 -0
- package/http/http-shared.d.ts +3 -0
- package/http/http-shared.js +2 -0
- package/http/http-shared.js.map +1 -0
- package/http/index.js +70 -0
- package/http/index.js.map +1 -0
- package/image-asset/image-asset-common.d.ts +25 -0
- package/image-asset/image-asset-common.js +74 -0
- package/image-asset/image-asset-common.js.map +1 -0
- package/image-asset/index.android.d.ts +9 -0
- package/image-asset/index.android.js +33 -0
- package/image-asset/index.android.js.map +1 -0
- package/image-asset/index.ios.d.ts +10 -0
- package/image-asset/index.ios.js +57 -0
- package/image-asset/index.ios.js.map +1 -0
- package/image-source/image-source-common.d.ts +4 -0
- package/image-source/image-source-common.js +21 -0
- package/image-source/image-source-common.js.map +1 -0
- package/image-source/index.android.d.ts +58 -0
- package/image-source/index.android.js +371 -0
- package/image-source/index.android.js.map +1 -0
- package/image-source/index.ios.d.ts +59 -0
- package/image-source/index.ios.js +454 -0
- package/image-source/index.ios.js.map +1 -0
- package/index.js +38 -0
- package/index.js.map +1 -0
- package/inspector_modules.d.ts +7 -0
- package/inspector_modules.js +233 -0
- package/inspector_modules.js.map +1 -0
- package/matrix/index.js +45 -0
- package/matrix/index.js.map +1 -0
- package/media-query-list/index.d.ts +21 -0
- package/media-query-list/index.js +159 -0
- package/media-query-list/index.js.map +1 -0
- package/module-name-resolver/helpers.d.ts +14 -0
- package/module-name-resolver/helpers.js +27 -0
- package/module-name-resolver/helpers.js.map +1 -0
- package/module-name-resolver/index.d.ts +14 -0
- package/module-name-resolver/index.js +67 -0
- package/module-name-resolver/index.js.map +1 -0
- package/module-name-resolver/non-bundle-workflow-compat.d.ts +6 -0
- package/module-name-resolver/non-bundle-workflow-compat.js +128 -0
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -0
- package/module-name-resolver/qualifier-matcher/index.d.ts +11 -0
- package/module-name-resolver/qualifier-matcher/index.js +141 -0
- package/module-name-resolver/qualifier-matcher/index.js.map +1 -0
- package/package.json +86 -86
- package/platform/common.d.ts +10 -0
- package/platform/common.js +14 -0
- package/platform/common.js.map +1 -0
- package/platform/device/index.android.d.ts +20 -0
- package/platform/device/index.android.js +78 -0
- package/platform/device/index.android.js.map +1 -0
- package/platform/device/index.ios.d.ts +19 -0
- package/platform/device/index.ios.js +69 -0
- package/platform/device/index.ios.js.map +1 -0
- package/platform/index.js +4 -0
- package/platform/index.js.map +1 -0
- package/platform/screen/index.android.d.ts +16 -0
- package/platform/screen/index.android.js +41 -0
- package/platform/screen/index.android.js.map +1 -0
- package/platform/screen/index.ios.d.ts +15 -0
- package/platform/screen/index.ios.js +35 -0
- package/platform/screen/index.ios.js.map +1 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Modules/module.modulemap +6 -0
- 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 +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/profiling/index.js +273 -0
- package/profiling/index.js.map +1 -0
- package/text/formatted-string.js +2 -0
- package/text/formatted-string.js.map +1 -0
- package/text/index.android.d.ts +9 -0
- package/text/index.android.js +11 -0
- package/text/index.android.js.map +1 -0
- package/text/index.ios.d.ts +9 -0
- package/text/index.ios.js +11 -0
- package/text/index.ios.js.map +1 -0
- package/text/span.js +2 -0
- package/text/span.js.map +1 -0
- package/text/text-common.d.ts +12 -0
- package/text/text-common.js +111 -0
- package/text/text-common.js.map +1 -0
- package/timer/index.android.d.ts +4 -0
- package/timer/index.android.js +83 -0
- package/timer/index.android.js.map +1 -0
- package/timer/index.ios.d.ts +4 -0
- package/timer/index.ios.js +68 -0
- package/timer/index.ios.js.map +1 -0
- package/trace/index.js +255 -0
- package/trace/index.js.map +1 -0
- package/ui/action-bar/action-bar-common.d.ts +85 -0
- package/ui/action-bar/action-bar-common.js +381 -0
- package/ui/action-bar/action-bar-common.js.map +1 -0
- package/ui/action-bar/index.android.d.ts +55 -0
- package/ui/action-bar/index.android.js +502 -0
- package/ui/action-bar/index.android.js.map +1 -0
- package/ui/action-bar/index.ios.d.ts +64 -0
- package/ui/action-bar/index.ios.js +614 -0
- package/ui/action-bar/index.ios.js.map +1 -0
- package/ui/activity-indicator/activity-indicator-common.d.ts +9 -0
- package/ui/activity-indicator/activity-indicator-common.js +22 -0
- package/ui/activity-indicator/activity-indicator-common.js.map +1 -0
- package/ui/activity-indicator/index.android.d.ts +15 -0
- package/ui/activity-indicator/index.android.js +54 -0
- package/ui/activity-indicator/index.android.js.map +1 -0
- package/ui/activity-indicator/index.ios.d.ts +16 -0
- package/ui/activity-indicator/index.ios.js +54 -0
- package/ui/activity-indicator/index.ios.js.map +1 -0
- package/ui/animation/animation-common.d.ts +30 -0
- package/ui/animation/animation-common.js +239 -0
- package/ui/animation/animation-common.js.map +1 -0
- package/ui/animation/animation-shared.d.ts +84 -0
- package/ui/animation/animation-shared.js +4 -0
- package/ui/animation/animation-shared.js.map +1 -0
- package/ui/animation/animation-types.d.ts +1 -0
- package/ui/animation/animation-types.js +3 -0
- package/ui/animation/animation-types.js.map +1 -0
- package/ui/animation/index.android.d.ts +23 -0
- package/ui/animation/index.android.js +432 -0
- package/ui/animation/index.android.js.map +1 -0
- package/ui/animation/index.ios.d.ts +28 -0
- package/ui/animation/index.ios.js +808 -0
- package/ui/animation/index.ios.js.map +1 -0
- package/ui/animation/keyframe-animation.d.ts +76 -0
- package/ui/animation/keyframe-animation.js +238 -0
- package/ui/animation/keyframe-animation.js.map +1 -0
- package/ui/builder/binding-builder.d.ts +13 -0
- package/ui/builder/binding-builder.js +171 -0
- package/ui/builder/binding-builder.js.map +1 -0
- package/ui/builder/component-builder/index.d.ts +7 -0
- package/ui/builder/component-builder/index.js +219 -0
- package/ui/builder/component-builder/index.js.map +1 -0
- package/ui/builder/index.d.ts +193 -0
- package/ui/builder/index.js +643 -0
- package/ui/builder/index.js.map +1 -0
- package/ui/button/button-common.d.ts +9 -0
- package/ui/button/button-common.js +26 -0
- package/ui/button/button-common.js.map +1 -0
- package/ui/button/index.android.d.ts +29 -0
- package/ui/button/index.android.js +166 -0
- package/ui/button/index.android.js.map +1 -0
- package/ui/button/index.ios.d.ts +37 -0
- package/ui/button/index.ios.js +316 -0
- package/ui/button/index.ios.js.map +1 -0
- package/ui/content-view/index.js +87 -0
- package/ui/content-view/index.js.map +1 -0
- package/ui/core/bindable/bindable-expressions.d.ts +7 -0
- package/ui/core/bindable/bindable-expressions.js +255 -0
- package/ui/core/bindable/bindable-expressions.js.map +1 -0
- package/ui/core/bindable/bindable-resources.d.ts +2 -0
- package/ui/core/bindable/bindable-resources.js +8 -0
- package/ui/core/bindable/bindable-resources.js.map +1 -0
- package/ui/core/bindable/bindable-types.d.ts +37 -0
- package/ui/core/bindable/bindable-types.js +3 -0
- package/ui/core/bindable/bindable-types.js.map +1 -0
- package/ui/core/bindable/index.d.ts +53 -0
- package/ui/core/bindable/index.js +555 -0
- package/ui/core/bindable/index.js.map +1 -0
- package/ui/core/control-state-change/index.android.d.ts +6 -0
- package/ui/core/control-state-change/index.android.js +8 -0
- package/ui/core/control-state-change/index.android.js.map +1 -0
- package/ui/core/control-state-change/index.ios.d.ts +10 -0
- package/ui/core/control-state-change/index.ios.js +43 -0
- package/ui/core/control-state-change/index.ios.js.map +1 -0
- package/ui/core/properties/index.d.ts +114 -0
- package/ui/core/properties/index.js +1290 -0
- package/ui/core/properties/index.js.map +1 -0
- package/ui/core/properties/property-shared.d.ts +35 -0
- package/ui/core/properties/property-shared.js +16 -0
- package/ui/core/properties/property-shared.js.map +1 -0
- package/ui/core/view/index.android.d.ts +144 -0
- package/ui/core/view/index.android.js +1576 -0
- package/ui/core/view/index.android.js.map +1 -0
- package/ui/core/view/index.ios.d.ts +151 -0
- package/ui/core/view/index.ios.js +1091 -0
- package/ui/core/view/index.ios.js.map +1 -0
- package/ui/core/view/view-common.d.ts +349 -0
- package/ui/core/view/view-common.js +1147 -0
- package/ui/core/view/view-common.js.map +1 -0
- package/ui/core/view/view-helper/index.android.d.ts +9 -0
- package/ui/core/view/view-helper/index.android.js +56 -0
- package/ui/core/view/view-helper/index.android.js.map +1 -0
- package/ui/core/view/view-helper/index.ios.d.ts +67 -0
- package/ui/core/view/view-helper/index.ios.js +414 -0
- package/ui/core/view/view-helper/index.ios.js.map +1 -0
- package/ui/core/view/view-helper/view-helper-common.d.ts +11 -0
- package/ui/core/view/view-helper/view-helper-common.js +166 -0
- package/ui/core/view/view-helper/view-helper-common.js.map +1 -0
- package/ui/core/view/view-helper/view-helper-shared.d.ts +5 -0
- package/ui/core/view/view-helper/view-helper-shared.js +6 -0
- package/ui/core/view/view-helper/view-helper-shared.js.map +1 -0
- package/ui/core/view/view-interfaces.d.ts +76 -0
- package/ui/core/view/view-interfaces.js +2 -0
- package/ui/core/view/view-interfaces.js.map +1 -0
- package/ui/core/view-base/index.d.ts +597 -0
- package/ui/core/view-base/index.js +1154 -0
- package/ui/core/view-base/index.js.map +1 -0
- package/ui/core/view-base/utils.d.ts +1 -0
- package/ui/core/view-base/utils.js +9 -0
- package/ui/core/view-base/utils.js.map +1 -0
- package/ui/core/weak-event-listener/index.js +123 -0
- package/ui/core/weak-event-listener/index.js.map +1 -0
- package/ui/date-picker/date-picker-common.d.ts +28 -0
- package/ui/date-picker/date-picker-common.js +82 -0
- package/ui/date-picker/date-picker-common.js.map +1 -0
- package/ui/date-picker/index.android.d.ts +19 -0
- package/ui/date-picker/index.android.js +131 -0
- package/ui/date-picker/index.android.js.map +1 -0
- package/ui/date-picker/index.ios.d.ts +27 -0
- package/ui/date-picker/index.ios.js +165 -0
- package/ui/date-picker/index.ios.js.map +1 -0
- package/ui/dialogs/dialogs-common.d.ts +211 -0
- package/ui/dialogs/dialogs-common.js +167 -0
- package/ui/dialogs/dialogs-common.js.map +1 -0
- package/ui/dialogs/index.android.d.ts +20 -0
- package/ui/dialogs/index.android.js +330 -0
- package/ui/dialogs/index.android.js.map +1 -0
- package/ui/dialogs/index.ios.d.ts +17 -0
- package/ui/dialogs/index.ios.js +293 -0
- package/ui/dialogs/index.ios.js.map +1 -0
- package/ui/editable-text-base/editable-text-base-common.d.ts +36 -0
- package/ui/editable-text-base/editable-text-base-common.js +91 -0
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -0
- package/ui/editable-text-base/index.android.d.ts +48 -0
- package/ui/editable-text-base/index.android.js +497 -0
- package/ui/editable-text-base/index.android.js.map +1 -0
- package/ui/editable-text-base/index.ios.d.ts +20 -0
- package/ui/editable-text-base/index.ios.js +255 -0
- package/ui/editable-text-base/index.ios.js.map +1 -0
- package/ui/embedding/index.android.d.ts +4 -0
- package/ui/embedding/index.android.js +14 -0
- package/ui/embedding/index.android.js.map +1 -0
- package/ui/embedding/index.ios.d.ts +1 -0
- package/ui/embedding/index.ios.js +4 -0
- package/ui/embedding/index.ios.js.map +1 -0
- package/ui/enums/enums.js +6 -0
- package/ui/enums/enums.js.map +1 -0
- package/ui/enums/index.js +6 -0
- package/ui/enums/index.js.map +1 -0
- package/ui/frame/activity.android.d.ts +1 -0
- package/ui/frame/activity.android.js +110 -0
- package/ui/frame/activity.android.js.map +1 -0
- package/ui/frame/fragment.android.d.ts +3 -0
- package/ui/frame/fragment.android.js +90 -0
- package/ui/frame/fragment.android.js.map +1 -0
- package/ui/frame/fragment.ios.d.ts +3 -0
- package/ui/frame/fragment.ios.js +4 -0
- package/ui/frame/fragment.ios.js.map +1 -0
- package/ui/frame/fragment.transitions.android.d.ts +40 -0
- package/ui/frame/fragment.transitions.android.js +679 -0
- package/ui/frame/fragment.transitions.android.js.map +1 -0
- package/ui/frame/fragment.transitions.types.d.ts +6 -0
- package/ui/frame/fragment.transitions.types.js +2 -0
- package/ui/frame/fragment.transitions.types.js.map +1 -0
- package/ui/frame/frame-common.d.ts +101 -0
- package/ui/frame/frame-common.js +688 -0
- package/ui/frame/frame-common.js.map +1 -0
- package/ui/frame/frame-helper-for-android.d.ts +37 -0
- package/ui/frame/frame-helper-for-android.js +337 -0
- package/ui/frame/frame-helper-for-android.js.map +1 -0
- package/ui/frame/frame-helpers.d.ts +16 -0
- package/ui/frame/frame-helpers.js +19 -0
- package/ui/frame/frame-helpers.js.map +1 -0
- package/ui/frame/frame-interfaces.d.ts +130 -0
- package/ui/frame/frame-interfaces.js +7 -0
- package/ui/frame/frame-interfaces.js.map +1 -0
- package/ui/frame/frame-stack.d.ts +7 -0
- package/ui/frame/frame-stack.js +41 -0
- package/ui/frame/frame-stack.js.map +1 -0
- package/ui/frame/index.android.d.ts +93 -0
- package/ui/frame/index.android.js +977 -0
- package/ui/frame/index.android.js.map +1 -0
- package/ui/frame/index.ios.d.ts +61 -0
- package/ui/frame/index.ios.js +728 -0
- package/ui/frame/index.ios.js.map +1 -0
- package/ui/gestures/gestures-common.d.ts +32 -0
- package/ui/gestures/gestures-common.js +78 -0
- package/ui/gestures/gestures-common.js.map +1 -0
- package/ui/gestures/gestures-types.d.ts +108 -0
- package/ui/gestures/gestures-types.js +40 -0
- package/ui/gestures/gestures-types.js.map +1 -0
- package/ui/gestures/index.android.d.ts +49 -0
- package/ui/gestures/index.android.js +596 -0
- package/ui/gestures/index.android.js.map +1 -0
- package/ui/gestures/index.ios.d.ts +70 -0
- package/ui/gestures/index.ios.js +510 -0
- package/ui/gestures/index.ios.js.map +1 -0
- package/ui/gestures/touch-manager.d.ts +82 -0
- package/ui/gestures/touch-manager.js +268 -0
- package/ui/gestures/touch-manager.js.map +1 -0
- package/ui/html-view/html-view-common.d.ts +12 -0
- package/ui/html-view/html-view-common.js +31 -0
- package/ui/html-view/html-view-common.js.map +1 -0
- package/ui/html-view/index.android.d.ts +27 -0
- package/ui/html-view/index.android.js +90 -0
- package/ui/html-view/index.android.js.map +1 -0
- package/ui/html-view/index.ios.d.ts +22 -0
- package/ui/html-view/index.ios.js +101 -0
- package/ui/html-view/index.ios.js.map +1 -0
- package/ui/image/image-common.d.ts +45 -0
- package/ui/image/image-common.js +195 -0
- package/ui/image/image-common.js.map +1 -0
- package/ui/image/index.android.d.ts +23 -0
- package/ui/image/index.android.js +171 -0
- package/ui/image/index.android.js.map +1 -0
- package/ui/image/index.ios.d.ts +26 -0
- package/ui/image/index.ios.js +186 -0
- package/ui/image/index.ios.js.map +1 -0
- package/ui/image/symbol-effects-common.d.ts +36 -0
- package/ui/image/symbol-effects-common.js +35 -0
- package/ui/image/symbol-effects-common.js.map +1 -0
- package/ui/image/symbol-effects.android.d.ts +5 -0
- package/ui/image/symbol-effects.android.js +8 -0
- package/ui/image/symbol-effects.android.js.map +1 -0
- package/ui/image/symbol-effects.ios.d.ts +6 -0
- package/ui/image/symbol-effects.ios.js +79 -0
- package/ui/image/symbol-effects.ios.js.map +1 -0
- package/ui/image-cache/image-cache-common.d.ts +40 -0
- package/ui/image-cache/image-cache-common.js +176 -0
- package/ui/image-cache/image-cache-common.js.map +1 -0
- package/ui/image-cache/index.android.d.ts +11 -0
- package/ui/image-cache/index.android.js +74 -0
- package/ui/image-cache/index.android.js.map +1 -0
- package/ui/image-cache/index.ios.d.ts +11 -0
- package/ui/image-cache/index.ios.js +78 -0
- package/ui/image-cache/index.ios.js.map +1 -0
- package/ui/index.d.ts +92 -0
- package/ui/index.js +80 -0
- package/ui/index.js.map +1 -0
- package/ui/label/index.android.d.ts +13 -0
- package/ui/label/index.android.js +47 -0
- package/ui/label/index.android.js.map +1 -0
- package/ui/label/index.ios.d.ts +31 -0
- package/ui/label/index.ios.js +234 -0
- package/ui/label/index.ios.js.map +1 -0
- package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +16 -0
- package/ui/layouts/absolute-layout/absolute-layout-common.js +72 -0
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -0
- package/ui/layouts/absolute-layout/index.android.d.ts +6 -0
- package/ui/layouts/absolute-layout/index.android.js +26 -0
- package/ui/layouts/absolute-layout/index.android.js.map +1 -0
- package/ui/layouts/absolute-layout/index.ios.d.ts +10 -0
- package/ui/layouts/absolute-layout/index.ios.js +48 -0
- package/ui/layouts/absolute-layout/index.ios.js.map +1 -0
- package/ui/layouts/dock-layout/dock-layout-common.d.ts +14 -0
- package/ui/layouts/dock-layout/dock-layout-common.js +51 -0
- package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -0
- package/ui/layouts/dock-layout/index.android.d.ts +8 -0
- package/ui/layouts/dock-layout/index.android.js +38 -0
- package/ui/layouts/dock-layout/index.android.js.map +1 -0
- package/ui/layouts/dock-layout/index.ios.d.ts +8 -0
- package/ui/layouts/dock-layout/index.ios.js +115 -0
- package/ui/layouts/dock-layout/index.ios.js.map +1 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +126 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +403 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -0
- package/ui/layouts/flexbox-layout/index.android.d.ts +23 -0
- package/ui/layouts/flexbox-layout/index.android.js +152 -0
- package/ui/layouts/flexbox-layout/index.android.js.map +1 -0
- package/ui/layouts/flexbox-layout/index.ios.d.ts +44 -0
- package/ui/layouts/flexbox-layout/index.ios.js +1241 -0
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -0
- package/ui/layouts/grid-layout/grid-layout-common.d.ts +72 -0
- package/ui/layouts/grid-layout/grid-layout-common.js +358 -0
- package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -0
- package/ui/layouts/grid-layout/index.android.d.ts +23 -0
- package/ui/layouts/grid-layout/index.android.js +122 -0
- package/ui/layouts/grid-layout/index.android.js.map +1 -0
- package/ui/layouts/grid-layout/index.ios.d.ts +28 -0
- package/ui/layouts/grid-layout/index.ios.js +778 -0
- package/ui/layouts/grid-layout/index.ios.js.map +1 -0
- package/ui/layouts/index.d.ts +12 -0
- package/ui/layouts/index.js +11 -0
- package/ui/layouts/index.js.map +1 -0
- package/ui/layouts/layout-base-common.d.ts +36 -0
- package/ui/layouts/layout-base-common.js +141 -0
- package/ui/layouts/layout-base-common.js.map +1 -0
- package/ui/layouts/layout-base.android.d.ts +17 -0
- package/ui/layouts/layout-base.android.js +50 -0
- package/ui/layouts/layout-base.android.js.map +1 -0
- package/ui/layouts/layout-base.ios.d.ts +13 -0
- package/ui/layouts/layout-base.ios.js +40 -0
- package/ui/layouts/layout-base.ios.js.map +1 -0
- package/ui/layouts/liquid-glass/index.android.d.ts +5 -0
- package/ui/layouts/liquid-glass/index.android.js +8 -0
- package/ui/layouts/liquid-glass/index.android.js.map +1 -0
- package/ui/layouts/liquid-glass/index.ios.d.ts +10 -0
- package/ui/layouts/liquid-glass/index.ios.js +59 -0
- package/ui/layouts/liquid-glass/index.ios.js.map +1 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.d.ts +3 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.js +4 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.js.map +1 -0
- package/ui/layouts/liquid-glass-container/index.android.d.ts +3 -0
- package/ui/layouts/liquid-glass-container/index.android.js +4 -0
- package/ui/layouts/liquid-glass-container/index.android.js.map +1 -0
- package/ui/layouts/liquid-glass-container/index.ios.d.ts +14 -0
- package/ui/layouts/liquid-glass-container/index.ios.js +121 -0
- package/ui/layouts/liquid-glass-container/index.ios.js.map +1 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.d.ts +4 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js +5 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js.map +1 -0
- package/ui/layouts/root-layout/index.android.d.ts +15 -0
- package/ui/layouts/root-layout/index.android.js +126 -0
- package/ui/layouts/root-layout/index.android.js.map +1 -0
- package/ui/layouts/root-layout/index.ios.d.ts +17 -0
- package/ui/layouts/root-layout/index.ios.js +101 -0
- package/ui/layouts/root-layout/index.ios.js.map +1 -0
- package/ui/layouts/root-layout/root-layout-common.d.ts +61 -0
- package/ui/layouts/root-layout/root-layout-common.js +425 -0
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -0
- package/ui/layouts/root-layout/root-layout-stack.d.ts +5 -0
- package/ui/layouts/root-layout/root-layout-stack.js +19 -0
- package/ui/layouts/root-layout/root-layout-stack.js.map +1 -0
- package/ui/layouts/stack-layout/index.android.d.ts +7 -0
- package/ui/layouts/stack-layout/index.android.js +11 -0
- package/ui/layouts/stack-layout/index.android.js.map +1 -0
- package/ui/layouts/stack-layout/index.ios.d.ts +10 -0
- package/ui/layouts/stack-layout/index.ios.js +155 -0
- package/ui/layouts/stack-layout/index.ios.js.map +1 -0
- package/ui/layouts/stack-layout/stack-layout-common.d.ts +8 -0
- package/ui/layouts/stack-layout/stack-layout-common.js +19 -0
- package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -0
- package/ui/layouts/wrap-layout/index.android.d.ts +10 -0
- package/ui/layouts/wrap-layout/index.android.js +18 -0
- package/ui/layouts/wrap-layout/index.android.js.map +1 -0
- package/ui/layouts/wrap-layout/index.ios.d.ts +8 -0
- package/ui/layouts/wrap-layout/index.ios.js +170 -0
- package/ui/layouts/wrap-layout/index.ios.js.map +1 -0
- package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +15 -0
- package/ui/layouts/wrap-layout/wrap-layout-common.js +40 -0
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -0
- package/ui/list-picker/index.android.d.ts +18 -0
- package/ui/list-picker/index.android.js +177 -0
- package/ui/list-picker/index.android.js.map +1 -0
- package/ui/list-picker/index.ios.d.ts +19 -0
- package/ui/list-picker/index.ios.js +99 -0
- package/ui/list-picker/index.ios.js.map +1 -0
- package/ui/list-picker/list-picker-common.d.ts +23 -0
- package/ui/list-picker/list-picker-common.js +78 -0
- package/ui/list-picker/list-picker-common.js.map +1 -0
- package/ui/list-view/index.android.d.ts +68 -0
- package/ui/list-view/index.android.js +1005 -0
- package/ui/list-view/index.android.js.map +1 -0
- package/ui/list-view/index.ios.d.ts +84 -0
- package/ui/list-view/index.ios.js +996 -0
- package/ui/list-view/index.ios.js.map +1 -0
- package/ui/list-view/list-view-common.d.ts +87 -0
- package/ui/list-view/list-view-common.js +296 -0
- package/ui/list-view/list-view-common.js.map +1 -0
- package/ui/page/events.d.ts +6 -0
- package/ui/page/events.js +7 -0
- package/ui/page/events.js.map +1 -0
- package/ui/page/index.android.d.ts +16 -0
- package/ui/page/index.android.js +106 -0
- package/ui/page/index.android.js.map +1 -0
- package/ui/page/index.ios.d.ts +52 -0
- package/ui/page/index.ios.js +515 -0
- package/ui/page/index.ios.js.map +1 -0
- package/ui/page/page-common.d.ts +73 -0
- package/ui/page/page-common.js +191 -0
- package/ui/page/page-common.js.map +1 -0
- package/ui/placeholder/index.android.d.ts +12 -0
- package/ui/placeholder/index.android.js +21 -0
- package/ui/placeholder/index.android.js.map +1 -0
- package/ui/placeholder/index.js +16 -0
- package/ui/placeholder/index.js.map +1 -0
- package/ui/placeholder/placeholder-common.d.ts +11 -0
- package/ui/placeholder/placeholder-common.js +2 -0
- package/ui/placeholder/placeholder-common.js.map +1 -0
- package/ui/progress/index.android.d.ts +18 -0
- package/ui/progress/index.android.js +65 -0
- package/ui/progress/index.android.js.map +1 -0
- package/ui/progress/index.ios.d.ts +19 -0
- package/ui/progress/index.ios.js +45 -0
- package/ui/progress/index.ios.js.map +1 -0
- package/ui/progress/progress-common.d.ts +15 -0
- package/ui/progress/progress-common.js +34 -0
- package/ui/progress/progress-common.js.map +1 -0
- package/ui/proxy-view-container/index.d.ts +33 -0
- package/ui/proxy-view-container/index.js +247 -0
- package/ui/proxy-view-container/index.js.map +1 -0
- package/ui/repeater/index.d.ts +67 -0
- package/ui/repeater/index.js +225 -0
- package/ui/repeater/index.js.map +1 -0
- package/ui/scroll-view/index.android.d.ts +27 -0
- package/ui/scroll-view/index.android.js +157 -0
- package/ui/scroll-view/index.android.js.map +1 -0
- package/ui/scroll-view/index.ios.d.ts +29 -0
- package/ui/scroll-view/index.ios.js +193 -0
- package/ui/scroll-view/index.ios.js.map +1 -0
- package/ui/scroll-view/scroll-view-common.d.ts +27 -0
- package/ui/scroll-view/scroll-view-common.js +93 -0
- package/ui/scroll-view/scroll-view-common.js.map +1 -0
- package/ui/search-bar/index.android.d.ts +44 -0
- package/ui/search-bar/index.android.js +260 -0
- package/ui/search-bar/index.android.js.map +1 -0
- package/ui/search-bar/index.ios.d.ts +36 -0
- package/ui/search-bar/index.ios.js +203 -0
- package/ui/search-bar/index.ios.js.map +1 -0
- package/ui/search-bar/search-bar-common.d.ts +19 -0
- package/ui/search-bar/search-bar-common.js +43 -0
- package/ui/search-bar/search-bar-common.js.map +1 -0
- package/ui/segmented-bar/index.android.d.ts +42 -0
- package/ui/segmented-bar/index.android.js +280 -0
- package/ui/segmented-bar/index.android.js.map +1 -0
- package/ui/segmented-bar/index.ios.d.ts +28 -0
- package/ui/segmented-bar/index.ios.js +140 -0
- package/ui/segmented-bar/index.ios.js.map +1 -0
- package/ui/segmented-bar/segmented-bar-common.d.ts +37 -0
- package/ui/segmented-bar/segmented-bar-common.js +146 -0
- package/ui/segmented-bar/segmented-bar-common.js.map +1 -0
- package/ui/slider/index.android.d.ts +32 -0
- package/ui/slider/index.android.js +123 -0
- package/ui/slider/index.android.js.map +1 -0
- package/ui/slider/index.ios.d.ts +34 -0
- package/ui/slider/index.ios.js +145 -0
- package/ui/slider/index.ios.js.map +1 -0
- package/ui/slider/slider-common.d.ts +27 -0
- package/ui/slider/slider-common.js +69 -0
- package/ui/slider/slider-common.js.map +1 -0
- package/ui/split-view/index.android.d.ts +3 -0
- package/ui/split-view/index.android.js +4 -0
- package/ui/split-view/index.android.js.map +1 -0
- package/ui/split-view/index.ios.d.ts +51 -0
- package/ui/split-view/index.ios.js +567 -0
- package/ui/split-view/index.ios.js.map +1 -0
- package/ui/split-view/split-view-common.d.ts +59 -0
- package/ui/split-view/split-view-common.js +127 -0
- package/ui/split-view/split-view-common.js.map +1 -0
- package/ui/styling/background-common.d.ts +78 -0
- package/ui/styling/background-common.js +241 -0
- package/ui/styling/background-common.js.map +1 -0
- package/ui/styling/background.android.d.ts +3 -0
- package/ui/styling/background.android.js +82 -0
- package/ui/styling/background.android.js.map +1 -0
- package/ui/styling/background.ios.d.ts +21 -0
- package/ui/styling/background.ios.js +1105 -0
- package/ui/styling/background.ios.js.map +1 -0
- package/ui/styling/box-shadow.d.ts +9 -0
- package/ui/styling/box-shadow.js +3 -0
- package/ui/styling/box-shadow.js.map +1 -0
- package/ui/styling/clip-path-function.d.ts +16 -0
- package/ui/styling/clip-path-function.js +25 -0
- package/ui/styling/clip-path-function.js.map +1 -0
- package/ui/styling/converters.d.ts +2 -0
- package/ui/styling/converters.js +41 -0
- package/ui/styling/converters.js.map +1 -0
- package/ui/styling/css-animation-parser.d.ts +14 -0
- package/ui/styling/css-animation-parser.js +187 -0
- package/ui/styling/css-animation-parser.js.map +1 -0
- package/ui/styling/css-selector.d.ts +270 -0
- package/ui/styling/css-selector.js +934 -0
- package/ui/styling/css-selector.js.map +1 -0
- package/ui/styling/css-shadow.d.ts +19 -0
- package/ui/styling/css-shadow.js +26 -0
- package/ui/styling/css-shadow.js.map +1 -0
- package/ui/styling/css-stroke.d.ts +12 -0
- package/ui/styling/css-stroke.js +19 -0
- package/ui/styling/css-stroke.js.map +1 -0
- package/ui/styling/css-transform.d.ts +2 -0
- package/ui/styling/css-transform.js +110 -0
- package/ui/styling/css-transform.js.map +1 -0
- package/ui/styling/css-utils.d.ts +8 -0
- package/ui/styling/css-utils.js +73 -0
- package/ui/styling/css-utils.js.map +1 -0
- package/ui/styling/font-common.d.ts +62 -0
- package/ui/styling/font-common.js +195 -0
- package/ui/styling/font-common.js.map +1 -0
- package/ui/styling/font-interfaces.d.ts +16 -0
- package/ui/styling/font-interfaces.js +2 -0
- package/ui/styling/font-interfaces.js.map +1 -0
- package/ui/styling/font.android.d.ts +15 -0
- package/ui/styling/font.android.js +226 -0
- package/ui/styling/font.android.js.map +1 -0
- package/ui/styling/font.ios.d.ts +18 -0
- package/ui/styling/font.ios.js +159 -0
- package/ui/styling/font.ios.js.map +1 -0
- package/ui/styling/length-shared.d.ts +52 -0
- package/ui/styling/length-shared.js +173 -0
- package/ui/styling/length-shared.js.map +1 -0
- package/ui/styling/linear-gradient.d.ts +13 -0
- package/ui/styling/linear-gradient.js +48 -0
- package/ui/styling/linear-gradient.js.map +1 -0
- package/ui/styling/style/index.d.ts +166 -0
- package/ui/styling/style/index.js +67 -0
- package/ui/styling/style/index.js.map +1 -0
- package/ui/styling/style-properties.d.ts +63 -0
- package/ui/styling/style-properties.js +1151 -0
- package/ui/styling/style-properties.js.map +1 -0
- package/ui/styling/style-scope.d.ts +87 -0
- package/ui/styling/style-scope.js +1020 -0
- package/ui/styling/style-scope.js.map +1 -0
- package/ui/styling/styling-profile.d.ts +1 -0
- package/ui/styling/styling-profile.js +4 -0
- package/ui/styling/styling-profile.js.map +1 -0
- package/ui/styling/styling-shared.d.ts +3 -0
- package/ui/styling/styling-shared.js +6 -0
- package/ui/styling/styling-shared.js.map +1 -0
- package/ui/switch/index.android.d.ts +23 -0
- package/ui/switch/index.android.js +111 -0
- package/ui/switch/index.android.js.map +1 -0
- package/ui/switch/index.ios.d.ts +26 -0
- package/ui/switch/index.ios.js +185 -0
- package/ui/switch/index.ios.js.map +1 -0
- package/ui/switch/switch-common.d.ts +12 -0
- package/ui/switch/switch-common.js +37 -0
- package/ui/switch/switch-common.js.map +1 -0
- package/ui/tab-view/index.android.d.ts +73 -0
- package/ui/tab-view/index.android.js +646 -0
- package/ui/tab-view/index.android.js.map +1 -0
- package/ui/tab-view/index.ios.d.ts +80 -0
- package/ui/tab-view/index.ios.js +877 -0
- package/ui/tab-view/index.ios.js.map +1 -0
- package/ui/tab-view/tab-view-common.d.ts +86 -0
- package/ui/tab-view/tab-view-common.js +277 -0
- package/ui/tab-view/tab-view-common.js.map +1 -0
- package/ui/text-base/formatted-string.js +163 -0
- package/ui/text-base/formatted-string.js.map +1 -0
- package/ui/text-base/index.android.d.ts +79 -0
- package/ui/text-base/index.android.js +589 -0
- package/ui/text-base/index.android.js.map +1 -0
- package/ui/text-base/index.ios.d.ts +53 -0
- package/ui/text-base/index.ios.js +452 -0
- package/ui/text-base/index.ios.js.map +1 -0
- package/ui/text-base/span.js +113 -0
- package/ui/text-base/span.js.map +1 -0
- package/ui/text-base/text-base-common.d.ts +99 -0
- package/ui/text-base/text-base-common.js +324 -0
- package/ui/text-base/text-base-common.js.map +1 -0
- package/ui/text-field/index.android.d.ts +10 -0
- package/ui/text-field/index.android.js +92 -0
- package/ui/text-field/index.android.js.map +1 -0
- package/ui/text-field/index.ios.d.ts +56 -0
- package/ui/text-field/index.ios.js +315 -0
- package/ui/text-field/index.ios.js.map +1 -0
- package/ui/text-field/text-field-common.d.ts +11 -0
- package/ui/text-field/text-field-common.js +25 -0
- package/ui/text-field/text-field-common.js.map +1 -0
- package/ui/text-view/index.android.d.ts +8 -0
- package/ui/text-view/index.android.js +24 -0
- package/ui/text-view/index.android.js.map +1 -0
- package/ui/text-view/index.ios.d.ts +59 -0
- package/ui/text-view/index.ios.js +432 -0
- package/ui/text-view/index.ios.js.map +1 -0
- package/ui/text-view/text-view-common.d.ts +32 -0
- package/ui/text-view/text-view-common.js +39 -0
- package/ui/text-view/text-view-common.js.map +1 -0
- package/ui/time-picker/index.android.d.ts +10 -0
- package/ui/time-picker/index.android.js +79 -0
- package/ui/time-picker/index.android.js.map +1 -0
- package/ui/time-picker/index.ios.d.ts +31 -0
- package/ui/time-picker/index.ios.js +138 -0
- package/ui/time-picker/index.ios.js.map +1 -0
- package/ui/time-picker/time-picker-common.d.ts +31 -0
- package/ui/time-picker/time-picker-common.js +176 -0
- package/ui/time-picker/time-picker-common.js.map +1 -0
- package/ui/transition/fade-transition.android.d.ts +4 -0
- package/ui/transition/fade-transition.android.js +28 -0
- package/ui/transition/fade-transition.android.js.map +1 -0
- package/ui/transition/fade-transition.ios.d.ts +17 -0
- package/ui/transition/fade-transition.ios.js +64 -0
- package/ui/transition/fade-transition.ios.js.map +1 -0
- package/ui/transition/flip-transition.android.d.ts +6 -0
- package/ui/transition/flip-transition.android.js +90 -0
- package/ui/transition/flip-transition.android.js.map +1 -0
- package/ui/transition/index.android.d.ts +19 -0
- package/ui/transition/index.android.js +37 -0
- package/ui/transition/index.android.js.map +1 -0
- package/ui/transition/index.ios.d.ts +14 -0
- package/ui/transition/index.ios.js +30 -0
- package/ui/transition/index.ios.js.map +1 -0
- package/ui/transition/modal-transition.android.d.ts +5 -0
- package/ui/transition/modal-transition.android.js +7 -0
- package/ui/transition/modal-transition.android.js.map +1 -0
- package/ui/transition/modal-transition.ios.d.ts +34 -0
- package/ui/transition/modal-transition.ios.js +175 -0
- package/ui/transition/modal-transition.ios.js.map +1 -0
- package/ui/transition/page-transition.android.d.ts +9 -0
- package/ui/transition/page-transition.android.js +284 -0
- package/ui/transition/page-transition.android.js.map +1 -0
- package/ui/transition/page-transition.ios.d.ts +35 -0
- package/ui/transition/page-transition.ios.js +193 -0
- package/ui/transition/page-transition.ios.js.map +1 -0
- package/ui/transition/shared-transition-helper.android.d.ts +9 -0
- package/ui/transition/shared-transition-helper.android.js +10 -0
- package/ui/transition/shared-transition-helper.android.js.map +1 -0
- package/ui/transition/shared-transition-helper.ios.d.ts +14 -0
- package/ui/transition/shared-transition-helper.ios.js +539 -0
- package/ui/transition/shared-transition-helper.ios.js.map +1 -0
- package/ui/transition/shared-transition.d.ts +271 -0
- package/ui/transition/shared-transition.js +215 -0
- package/ui/transition/shared-transition.js.map +1 -0
- package/ui/transition/slide-transition.android.d.ts +7 -0
- package/ui/transition/slide-transition.android.js +116 -0
- package/ui/transition/slide-transition.android.js.map +1 -0
- package/ui/transition/slide-transition.ios.d.ts +19 -0
- package/ui/transition/slide-transition.ios.js +94 -0
- package/ui/transition/slide-transition.ios.js.map +1 -0
- package/ui/utils.android.d.ts +5 -0
- package/ui/utils.android.js +16 -0
- package/ui/utils.android.js.map +1 -0
- package/ui/utils.ios.d.ts +11 -0
- package/ui/utils.ios.js +66 -0
- package/ui/utils.ios.js.map +1 -0
- package/ui/web-view/index.android.d.ts +18 -0
- package/ui/web-view/index.android.js +173 -0
- package/ui/web-view/index.android.js.map +1 -0
- package/ui/web-view/index.ios.d.ts +27 -0
- package/ui/web-view/index.ios.js +246 -0
- package/ui/web-view/index.ios.js.map +1 -0
- package/ui/web-view/web-view-common.d.ts +30 -0
- package/ui/web-view/web-view-common.js +74 -0
- package/ui/web-view/web-view-common.js.map +1 -0
- package/ui/web-view/web-view-interfaces.d.ts +11 -0
- package/ui/web-view/web-view-interfaces.js +2 -0
- package/ui/web-view/web-view-interfaces.js.map +1 -0
- package/utils/animation-helpers.d.ts +27 -0
- package/utils/animation-helpers.js +48 -0
- package/utils/animation-helpers.js.map +1 -0
- package/utils/common.d.ts +28 -0
- package/utils/common.js +158 -0
- package/utils/common.js.map +1 -0
- package/utils/constants.android.d.ts +2 -0
- package/utils/constants.android.js +5 -0
- package/utils/constants.android.js.map +1 -0
- package/utils/constants.ios.d.ts +2 -0
- package/utils/constants.ios.js +5 -0
- package/utils/constants.ios.js.map +1 -0
- package/utils/debug-source.d.ts +19 -0
- package/utils/debug-source.js +78 -0
- package/utils/debug-source.js.map +1 -0
- package/utils/debug.js +3 -0
- package/utils/debug.js.map +1 -0
- package/utils/index.android.d.ts +26 -0
- package/utils/index.android.js +205 -0
- package/utils/index.android.js.map +1 -0
- package/utils/index.ios.d.ts +22 -0
- package/utils/index.ios.js +113 -0
- package/utils/index.ios.js.map +1 -0
- package/utils/layout-helper/index.android.d.ts +25 -0
- package/utils/layout-helper/index.android.js +86 -0
- package/utils/layout-helper/index.android.js.map +1 -0
- package/utils/layout-helper/index.ios.d.ts +25 -0
- package/utils/layout-helper/index.ios.js +68 -0
- package/utils/layout-helper/index.ios.js.map +1 -0
- package/utils/layout-helper/layout-helper-common.d.ts +5 -0
- package/utils/layout-helper/layout-helper-common.js +49 -0
- package/utils/layout-helper/layout-helper-common.js.map +1 -0
- package/utils/layout-helper/layout-helper-shared.d.ts +9 -0
- package/utils/layout-helper/layout-helper-shared.js +13 -0
- package/utils/layout-helper/layout-helper-shared.js.map +1 -0
- package/utils/lazy.js +5 -0
- package/utils/lazy.js.map +1 -0
- package/utils/macrotask-scheduler.js +26 -0
- package/utils/macrotask-scheduler.js.map +1 -0
- package/utils/mainthread-helper.android.d.ts +3 -0
- package/utils/mainthread-helper.android.js +28 -0
- package/utils/mainthread-helper.android.js.map +1 -0
- package/utils/mainthread-helper.ios.d.ts +3 -0
- package/utils/mainthread-helper.ios.js +17 -0
- package/utils/mainthread-helper.ios.js.map +1 -0
- package/utils/module-merge.d.ts +1 -0
- package/utils/module-merge.js +8 -0
- package/utils/module-merge.js.map +1 -0
- package/utils/native-helper-for-android.d.ts +45 -0
- package/utils/native-helper-for-android.js +376 -0
- package/utils/native-helper-for-android.js.map +1 -0
- package/utils/native-helper.android.d.ts +42 -0
- package/utils/native-helper.android.js +30 -0
- package/utils/native-helper.android.js.map +1 -0
- package/utils/native-helper.ios.d.ts +79 -0
- package/utils/native-helper.ios.js +339 -0
- package/utils/native-helper.ios.js.map +1 -0
- package/utils/number-utils.d.ts +19 -0
- package/utils/number-utils.js +37 -0
- package/utils/number-utils.js.map +1 -0
- package/utils/platform-check.d.ts +4 -0
- package/utils/platform-check.js +21 -0
- package/utils/platform-check.js.map +1 -0
- package/utils/shared.d.ts +17 -0
- package/utils/shared.js +40 -0
- package/utils/shared.js.map +1 -0
- package/utils/types.js +104 -0
- package/utils/types.js.map +1 -0
- package/utils/utils-shared.d.ts +1 -0
- package/utils/utils-shared.js +8 -0
- package/utils/utils-shared.js.map +1 -0
- package/wgc/atob.d.ts +1 -0
- package/wgc/atob.js +9 -0
- package/wgc/atob.js.map +1 -0
- package/wgc/btoa.d.ts +1 -0
- package/wgc/btoa.js +9 -0
- package/wgc/btoa.js.map +1 -0
- package/wgc/crypto/SubtleCrypto.d.ts +63 -0
- package/wgc/crypto/SubtleCrypto.js +551 -0
- package/wgc/crypto/SubtleCrypto.js.map +1 -0
- package/wgc/crypto/index.d.ts +8 -0
- package/wgc/crypto/index.js +32 -0
- package/wgc/crypto/index.js.map +1 -0
- package/wgc/index.d.ts +2 -0
- package/wgc/index.js +3 -0
- package/wgc/index.js.map +1 -0
- package/xhr/index.d.ts +113 -0
- package/xhr/index.js +486 -0
- package/xhr/index.js.map +1 -0
- package/xml/index.d.ts +108 -0
- package/xml/index.js +574 -0
- package/xml/index.js.map +1 -0
- package/css/package.json +0 -36
- package/css-value/package.json +0 -23
|
@@ -0,0 +1,996 @@
|
|
|
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
|