@nativescript/core 9.0.12-next.0 → 9.0.12-next.1
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 +297 -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 +141 -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,1005 @@
|
|
|
1
|
+
import { ListViewBase, separatorColorProperty, itemTemplatesProperty, stickyHeaderProperty, stickyHeaderTemplateProperty, sectionedProperty, showSearchProperty } from './list-view-common';
|
|
2
|
+
import { View } from '../core/view';
|
|
3
|
+
import { PercentLength } from '../styling/length-shared';
|
|
4
|
+
import { unsetValue } from '../core/properties/property-shared';
|
|
5
|
+
import { Color } from '../../color';
|
|
6
|
+
import { Observable } from '../../data/observable';
|
|
7
|
+
import { StackLayout } from '../layouts/stack-layout';
|
|
8
|
+
import { ProxyViewContainer } from '../proxy-view-container';
|
|
9
|
+
import { LayoutBase } from '../layouts/layout-base';
|
|
10
|
+
import { profile } from '../../profiling';
|
|
11
|
+
import { Trace } from '../../trace';
|
|
12
|
+
import { Builder } from '../builder';
|
|
13
|
+
import { Label } from '../label';
|
|
14
|
+
export * from './list-view-common';
|
|
15
|
+
const ITEMLOADING = ListViewBase.itemLoadingEvent;
|
|
16
|
+
const LOADMOREITEMS = ListViewBase.loadMoreItemsEvent;
|
|
17
|
+
const ITEMTAP = ListViewBase.itemTapEvent;
|
|
18
|
+
const SEARCHCHANGE = ListViewBase.searchChangeEvent;
|
|
19
|
+
const STICKY_HEADER_Z_INDEX = 1000;
|
|
20
|
+
const SEARCH_VIEW_Z_INDEX = 2000;
|
|
21
|
+
// View type constants for sectioned lists
|
|
22
|
+
const ITEM_VIEW_TYPE = 0;
|
|
23
|
+
let ItemClickListener;
|
|
24
|
+
function initializeItemClickListener() {
|
|
25
|
+
if (ItemClickListener) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
var ItemClickListenerImpl = (function (_super) {
|
|
29
|
+
__extends(ItemClickListenerImpl, _super);
|
|
30
|
+
function ItemClickListenerImpl(owner) {
|
|
31
|
+
var _this = _super.call(this) || this;
|
|
32
|
+
_this.owner = owner;
|
|
33
|
+
return global.__native(_this);
|
|
34
|
+
}
|
|
35
|
+
ItemClickListenerImpl.prototype.onItemClick = function (parent, convertView, index, id) {
|
|
36
|
+
var owner = this.owner;
|
|
37
|
+
var view = owner._realizedItems.get(convertView).view;
|
|
38
|
+
owner.notify({
|
|
39
|
+
eventName: ITEMTAP,
|
|
40
|
+
object: owner,
|
|
41
|
+
index: index,
|
|
42
|
+
view: view,
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
ItemClickListenerImpl = __decorate([
|
|
46
|
+
Interfaces([android.widget.AdapterView.OnItemClickListener])
|
|
47
|
+
], ItemClickListenerImpl);
|
|
48
|
+
return ItemClickListenerImpl;
|
|
49
|
+
}(java.lang.Object));
|
|
50
|
+
ItemClickListener = ItemClickListenerImpl;
|
|
51
|
+
}
|
|
52
|
+
export class ListView extends ListViewBase {
|
|
53
|
+
constructor() {
|
|
54
|
+
super(...arguments);
|
|
55
|
+
this._androidViewId = -1;
|
|
56
|
+
this._realizedItems = new Map();
|
|
57
|
+
this._availableViews = new Map();
|
|
58
|
+
this._realizedTemplates = new Map();
|
|
59
|
+
this._stickyHeaderHeight = 0;
|
|
60
|
+
this._hiddenHeaderPositions = new Set(); // Track which headers to hide
|
|
61
|
+
}
|
|
62
|
+
get hasSearchView() {
|
|
63
|
+
return !!this._searchView;
|
|
64
|
+
}
|
|
65
|
+
_ensureAvailableViews(templateKey) {
|
|
66
|
+
if (!this._availableViews.has(templateKey)) {
|
|
67
|
+
this._availableViews.set(templateKey, new Set());
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
_registerViewToTemplate(templateKey, nativeView, view) {
|
|
71
|
+
this._realizedItems.set(nativeView, {
|
|
72
|
+
view,
|
|
73
|
+
templateKey,
|
|
74
|
+
});
|
|
75
|
+
if (!this._realizedTemplates.has(templateKey)) {
|
|
76
|
+
this._realizedTemplates.set(templateKey, new Map());
|
|
77
|
+
}
|
|
78
|
+
this._realizedTemplates.get(templateKey).set(nativeView, view);
|
|
79
|
+
this._ensureAvailableViews(templateKey);
|
|
80
|
+
const availableViews = this._availableViews.get(templateKey);
|
|
81
|
+
availableViews.add(nativeView);
|
|
82
|
+
}
|
|
83
|
+
_markViewUsed(nativeView) {
|
|
84
|
+
const viewData = this._realizedItems.get(nativeView);
|
|
85
|
+
if (!viewData) {
|
|
86
|
+
throw new Error('View not registered');
|
|
87
|
+
}
|
|
88
|
+
this._ensureAvailableViews(viewData.templateKey);
|
|
89
|
+
this._availableViews.get(viewData.templateKey).delete(nativeView);
|
|
90
|
+
}
|
|
91
|
+
_markViewUnused(nativeView) {
|
|
92
|
+
const viewData = this._realizedItems.get(nativeView);
|
|
93
|
+
if (!viewData) {
|
|
94
|
+
throw new Error('View not registered');
|
|
95
|
+
}
|
|
96
|
+
this._ensureAvailableViews(viewData.templateKey);
|
|
97
|
+
this._availableViews.get(viewData.templateKey).add(nativeView);
|
|
98
|
+
}
|
|
99
|
+
_getKeyFromView(nativeView) {
|
|
100
|
+
return this._realizedItems.get(nativeView).templateKey;
|
|
101
|
+
}
|
|
102
|
+
_hasAvailableView(templateKey) {
|
|
103
|
+
this._ensureAvailableViews(templateKey);
|
|
104
|
+
return this._availableViews.get(templateKey).size > 0;
|
|
105
|
+
}
|
|
106
|
+
_getAvailableView(templateKey) {
|
|
107
|
+
this._ensureAvailableViews(templateKey);
|
|
108
|
+
if (!this._hasAvailableView(templateKey)) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
const view = this._availableViews.get(templateKey).values().next().value;
|
|
112
|
+
this._markViewUsed(view);
|
|
113
|
+
return view;
|
|
114
|
+
}
|
|
115
|
+
createNativeView() {
|
|
116
|
+
const listView = new android.widget.ListView(this._context);
|
|
117
|
+
listView.setDescendantFocusability(android.view.ViewGroup.FOCUS_AFTER_DESCENDANTS);
|
|
118
|
+
// Fixes issue with black random black items when scrolling
|
|
119
|
+
listView.setCacheColorHint(android.graphics.Color.TRANSPARENT);
|
|
120
|
+
return listView;
|
|
121
|
+
}
|
|
122
|
+
initNativeView() {
|
|
123
|
+
super.initNativeView();
|
|
124
|
+
this.updateEffectiveRowHeight();
|
|
125
|
+
const nativeView = this.nativeViewProtected;
|
|
126
|
+
initializeItemClickListener();
|
|
127
|
+
ensureListViewAdapterClass();
|
|
128
|
+
const adapter = new ListViewAdapterClass(this);
|
|
129
|
+
nativeView.setAdapter(adapter);
|
|
130
|
+
nativeView.adapter = adapter;
|
|
131
|
+
const itemClickListener = new ItemClickListener(this);
|
|
132
|
+
nativeView.setOnItemClickListener(itemClickListener);
|
|
133
|
+
nativeView.itemClickListener = itemClickListener;
|
|
134
|
+
if (this._androidViewId < 0) {
|
|
135
|
+
this._androidViewId = android.view.View.generateViewId();
|
|
136
|
+
}
|
|
137
|
+
nativeView.setId(this._androidViewId);
|
|
138
|
+
// Don't setup search here - wait for onLoaded when context is properly available
|
|
139
|
+
}
|
|
140
|
+
disposeNativeView() {
|
|
141
|
+
const nativeView = this.nativeViewProtected;
|
|
142
|
+
nativeView.setAdapter(null);
|
|
143
|
+
if (nativeView.itemClickListener) {
|
|
144
|
+
nativeView.itemClickListener.owner = null;
|
|
145
|
+
}
|
|
146
|
+
if (nativeView.adapter) {
|
|
147
|
+
nativeView.adapter.owner = null;
|
|
148
|
+
}
|
|
149
|
+
// Cleanup search
|
|
150
|
+
this._cleanupSearchView();
|
|
151
|
+
// Cleanup sticky header
|
|
152
|
+
this._cleanupStickyHeader();
|
|
153
|
+
this.clearRealizedCells();
|
|
154
|
+
super.disposeNativeView();
|
|
155
|
+
}
|
|
156
|
+
_cleanupStickyHeader() {
|
|
157
|
+
// Remove scroll listener
|
|
158
|
+
if (this._scrollListener) {
|
|
159
|
+
this.nativeViewProtected.setOnScrollListener(null);
|
|
160
|
+
this._scrollListener = null;
|
|
161
|
+
}
|
|
162
|
+
// Remove sticky header from parent
|
|
163
|
+
if (this._stickyHeaderView && this._stickyHeaderView.parent) {
|
|
164
|
+
this._stickyHeaderView.parent._removeView(this._stickyHeaderView);
|
|
165
|
+
}
|
|
166
|
+
this._stickyHeaderView = null;
|
|
167
|
+
this._stickyHeaderHeight = 0;
|
|
168
|
+
// Clear hidden headers
|
|
169
|
+
this._hiddenHeaderPositions.clear();
|
|
170
|
+
}
|
|
171
|
+
onLoaded() {
|
|
172
|
+
super.onLoaded();
|
|
173
|
+
// Without this call itemClick won't be fired... :(
|
|
174
|
+
this.requestLayout();
|
|
175
|
+
// Setup sticky header if enabled
|
|
176
|
+
if (this.stickyHeader && this.sectioned && this.stickyHeaderTemplate) {
|
|
177
|
+
this._setupStickyHeader();
|
|
178
|
+
}
|
|
179
|
+
// Setup search if enabled and not already set up
|
|
180
|
+
if (this.showSearch && !this._searchView && this.nativeViewProtected && this.nativeViewProtected.getAdapter()) {
|
|
181
|
+
this._setupSearchView();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
refresh() {
|
|
185
|
+
const nativeView = this.nativeViewProtected;
|
|
186
|
+
if (!nativeView || !nativeView.getAdapter()) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
// clear bindingContext when it is not observable because otherwise bindings to items won't reevaluate
|
|
190
|
+
this._realizedItems.forEach(({ view }, nativeView) => {
|
|
191
|
+
if (!(view.bindingContext instanceof Observable)) {
|
|
192
|
+
view.bindingContext = null;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
// Safely refresh the adapter - no HeaderViewListAdapter issues since we don't use headers
|
|
196
|
+
const adapter = nativeView.getAdapter();
|
|
197
|
+
if (adapter instanceof android.widget.BaseAdapter) {
|
|
198
|
+
try {
|
|
199
|
+
adapter.notifyDataSetChanged();
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
if (Trace.isEnabled()) {
|
|
203
|
+
Trace.error('Error refreshing adapter, recreating: ' + error);
|
|
204
|
+
}
|
|
205
|
+
nativeView.setAdapter(new ListViewAdapterClass(this));
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
scrollToIndex(index) {
|
|
210
|
+
const nativeView = this.nativeViewProtected;
|
|
211
|
+
if (nativeView) {
|
|
212
|
+
nativeView.setSelection(index);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
scrollToIndexAnimated(index) {
|
|
216
|
+
const nativeView = this.nativeViewProtected;
|
|
217
|
+
if (nativeView) {
|
|
218
|
+
nativeView.smoothScrollToPosition(index);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
get _childrenCount() {
|
|
222
|
+
return this._realizedItems.size;
|
|
223
|
+
}
|
|
224
|
+
eachChildView(callback) {
|
|
225
|
+
this._realizedItems.forEach(({ view }, nativeView) => {
|
|
226
|
+
if (view.parent instanceof ListView) {
|
|
227
|
+
callback(view);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
// in some cases (like item is unloaded from another place (like angular) view.parent becomes undefined)
|
|
231
|
+
if (view.parent) {
|
|
232
|
+
callback(view.parent);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
_dumpRealizedTemplates() {
|
|
238
|
+
console.log(`Realized Templates:`);
|
|
239
|
+
this._realizedTemplates.forEach((value, index) => {
|
|
240
|
+
console.log(`\t${index}:`);
|
|
241
|
+
value.forEach((value, index) => {
|
|
242
|
+
console.log(`\t\t${index.hashCode()}: ${value}`);
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
console.log(`Realized Items Size: ${this._realizedItems.size}`);
|
|
246
|
+
}
|
|
247
|
+
clearRealizedCells() {
|
|
248
|
+
// clear the cache
|
|
249
|
+
this._realizedItems.forEach(({ view }, nativeView) => {
|
|
250
|
+
if (view.parent) {
|
|
251
|
+
// This is to clear the StackLayout that is used to wrap non LayoutBase & ProxyViewContainer instances.
|
|
252
|
+
if (!(view.parent instanceof ListView)) {
|
|
253
|
+
this._removeView(view.parent);
|
|
254
|
+
}
|
|
255
|
+
view.parent._removeView(view);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
this._realizedItems.clear();
|
|
259
|
+
this._availableViews.clear();
|
|
260
|
+
this._realizedTemplates.clear();
|
|
261
|
+
}
|
|
262
|
+
isItemAtIndexVisible(index) {
|
|
263
|
+
const nativeView = this.nativeViewProtected;
|
|
264
|
+
const start = nativeView.getFirstVisiblePosition();
|
|
265
|
+
const end = nativeView.getLastVisiblePosition();
|
|
266
|
+
return index >= start && index <= end;
|
|
267
|
+
}
|
|
268
|
+
// Sticky header methods
|
|
269
|
+
_setupStickyHeader() {
|
|
270
|
+
if (!this.stickyHeader || !this.sectioned || !this.stickyHeaderTemplate) {
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
// Create the sticky header view
|
|
274
|
+
this._createStickyHeaderView();
|
|
275
|
+
// Add it as an overlay to the parent
|
|
276
|
+
this._addStickyHeaderToParent();
|
|
277
|
+
// Add padding to ListView so content doesn't hide behind sticky header
|
|
278
|
+
this._addListViewPadding();
|
|
279
|
+
// Setup scroll listener to update header content
|
|
280
|
+
this._setupScrollListener();
|
|
281
|
+
}
|
|
282
|
+
_createStickyHeaderView() {
|
|
283
|
+
if (this._stickyHeaderView) {
|
|
284
|
+
return; // Already created
|
|
285
|
+
}
|
|
286
|
+
// Create header view using the same template as section headers
|
|
287
|
+
if (typeof this.stickyHeaderTemplate === 'string') {
|
|
288
|
+
try {
|
|
289
|
+
this._stickyHeaderView = Builder.parse(this.stickyHeaderTemplate, this);
|
|
290
|
+
}
|
|
291
|
+
catch (error) {
|
|
292
|
+
// Fallback to simple label
|
|
293
|
+
this._stickyHeaderView = new Label();
|
|
294
|
+
this._stickyHeaderView.text = 'Header Error';
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (!this._stickyHeaderView) {
|
|
298
|
+
// Default header
|
|
299
|
+
this._stickyHeaderView = new Label();
|
|
300
|
+
this._stickyHeaderView.text = 'Section 0';
|
|
301
|
+
}
|
|
302
|
+
// Set initial binding context (section 0)
|
|
303
|
+
this._updateStickyHeader(0);
|
|
304
|
+
}
|
|
305
|
+
_addStickyHeaderToParent() {
|
|
306
|
+
if (!this._stickyHeaderView || !this.parent) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
// Remove from current parent if it has one (likely the ListView from Builder.parse)
|
|
310
|
+
if (this._stickyHeaderView.parent) {
|
|
311
|
+
this._stickyHeaderView.parent._removeView(this._stickyHeaderView);
|
|
312
|
+
}
|
|
313
|
+
// Set proper sizing - don't stretch to fill parent
|
|
314
|
+
this._stickyHeaderView.width = { unit: '%', value: 100 };
|
|
315
|
+
this._stickyHeaderView.height = 'auto'; // Let it size to content
|
|
316
|
+
this._stickyHeaderView.verticalAlignment = 'top';
|
|
317
|
+
this._stickyHeaderView.horizontalAlignment = 'stretch';
|
|
318
|
+
// Add sticky header to the parent layout
|
|
319
|
+
// If search view exists, position sticky header after it (index 1), otherwise at top (index 0)
|
|
320
|
+
const parentLayout = this.parent;
|
|
321
|
+
const hasSearchView = this.showSearch && this._searchView && this._searchView._wrapper;
|
|
322
|
+
if (parentLayout instanceof StackLayout) {
|
|
323
|
+
const insertIndex = hasSearchView ? 1 : 0;
|
|
324
|
+
parentLayout.insertChild(this._stickyHeaderView, insertIndex);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
parentLayout._addView(this._stickyHeaderView);
|
|
328
|
+
}
|
|
329
|
+
// When search is enabled, position sticky header below search view with proper top margin
|
|
330
|
+
if (this.showSearch && this._searchView) {
|
|
331
|
+
// Add top margin to push sticky header below search view
|
|
332
|
+
this._stickyHeaderView.marginTop = 0; // Reset any previous margin
|
|
333
|
+
// Position sticky header with proper offset using native positioning
|
|
334
|
+
if (this._stickyHeaderView.nativeViewProtected) {
|
|
335
|
+
this._stickyHeaderView.nativeViewProtected.setZ(STICKY_HEADER_Z_INDEX);
|
|
336
|
+
// Use a timeout to ensure search view is measured first
|
|
337
|
+
setTimeout(() => {
|
|
338
|
+
if (this._searchView && this._searchView._wrapper) {
|
|
339
|
+
const searchWrapper = this._searchView._wrapper;
|
|
340
|
+
if (searchWrapper.nativeViewProtected) {
|
|
341
|
+
const searchHeight = searchWrapper.nativeViewProtected.getMeasuredHeight() || 50;
|
|
342
|
+
// Position sticky header below search view using translation
|
|
343
|
+
if (this._stickyHeaderView.nativeViewProtected) {
|
|
344
|
+
this._stickyHeaderView.nativeViewProtected.setTranslationY(searchHeight);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}, 100);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
// No search view - position at top
|
|
353
|
+
if (this._stickyHeaderView.nativeViewProtected) {
|
|
354
|
+
this._stickyHeaderView.nativeViewProtected.setZ(STICKY_HEADER_Z_INDEX);
|
|
355
|
+
this._stickyHeaderView.nativeViewProtected.setTranslationY(0);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
_addListViewPadding() {
|
|
360
|
+
if (!this._stickyHeaderView) {
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
// Calculate total top padding: search view height + sticky header height
|
|
364
|
+
let searchViewHeight = 0;
|
|
365
|
+
if (this.showSearch && this._searchView && this._searchView._wrapper) {
|
|
366
|
+
const searchWrapper = this._searchView._wrapper;
|
|
367
|
+
if (searchWrapper.nativeViewProtected && searchWrapper.nativeViewProtected.getMeasuredHeight() > 0) {
|
|
368
|
+
searchViewHeight = searchWrapper.nativeViewProtected.getMeasuredHeight();
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
searchViewHeight = 50; // Default search view height
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
// Apply immediate padding with defaults to prevent content hiding
|
|
375
|
+
const defaultHeaderHeight = 50; // Reasonable default height in dp
|
|
376
|
+
const totalPadding = searchViewHeight + defaultHeaderHeight;
|
|
377
|
+
this.nativeViewProtected.setPadding(0, totalPadding, 0, 0);
|
|
378
|
+
this._stickyHeaderHeight = defaultHeaderHeight;
|
|
379
|
+
// Request layout to ensure proper measurement
|
|
380
|
+
this._stickyHeaderView.requestLayout();
|
|
381
|
+
// Then measure and adjust padding if needed using a layout listener for determinism
|
|
382
|
+
const stickyHeaderNativeView = this._stickyHeaderView && this._stickyHeaderView.nativeViewProtected;
|
|
383
|
+
if (stickyHeaderNativeView) {
|
|
384
|
+
const layoutListener = new android.view.View.OnLayoutChangeListener({
|
|
385
|
+
onLayoutChange: (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) => {
|
|
386
|
+
if (v.getMeasuredHeight() > 0) {
|
|
387
|
+
const measuredHeaderHeight = v.getMeasuredHeight();
|
|
388
|
+
let finalSearchHeight = searchViewHeight;
|
|
389
|
+
// Re-measure search view if needed
|
|
390
|
+
if (this.showSearch && this._searchView && this._searchView._wrapper) {
|
|
391
|
+
const searchWrapper = this._searchView._wrapper;
|
|
392
|
+
if (searchWrapper.nativeViewProtected && searchWrapper.nativeViewProtected.getMeasuredHeight() > 0) {
|
|
393
|
+
finalSearchHeight = searchWrapper.nativeViewProtected.getMeasuredHeight();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
// Calculate final padding: search height + sticky header height + small buffer
|
|
397
|
+
const totalPaddingHeight = finalSearchHeight + measuredHeaderHeight + 4;
|
|
398
|
+
this._stickyHeaderHeight = measuredHeaderHeight;
|
|
399
|
+
this.nativeViewProtected.setPadding(0, totalPaddingHeight, 0, 0);
|
|
400
|
+
this.scrollToIndex(0);
|
|
401
|
+
// Remove the listener after first valid layout
|
|
402
|
+
v.removeOnLayoutChangeListener(layoutListener);
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
});
|
|
406
|
+
stickyHeaderNativeView.addOnLayoutChangeListener(layoutListener);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
_setupScrollListener() {
|
|
410
|
+
if (this._scrollListener) {
|
|
411
|
+
return; // Already setup
|
|
412
|
+
}
|
|
413
|
+
const owner = this;
|
|
414
|
+
this._scrollListener = new android.widget.AbsListView.OnScrollListener({
|
|
415
|
+
onScrollStateChanged(view, scrollState) {
|
|
416
|
+
// Not needed for sticky headers
|
|
417
|
+
},
|
|
418
|
+
onScroll(view, firstVisibleItem, visibleItemCount, totalItemCount) {
|
|
419
|
+
if (owner.sectioned && owner._stickyHeaderView) {
|
|
420
|
+
const currentSection = owner._getCurrentSection(firstVisibleItem);
|
|
421
|
+
owner._updateStickyHeader(currentSection);
|
|
422
|
+
// Hide section headers when they would appear right below sticky header
|
|
423
|
+
owner._updateHiddenHeaders(firstVisibleItem);
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
});
|
|
427
|
+
this.nativeViewProtected.setOnScrollListener(this._scrollListener);
|
|
428
|
+
}
|
|
429
|
+
_getCurrentSection(firstVisibleItem) {
|
|
430
|
+
if (!this.sectioned) {
|
|
431
|
+
return 0;
|
|
432
|
+
}
|
|
433
|
+
// Convert the first visible list position to section number
|
|
434
|
+
let currentPosition = 0;
|
|
435
|
+
const sectionCount = this._getSectionCount();
|
|
436
|
+
for (let section = 0; section < sectionCount; section++) {
|
|
437
|
+
// Check if firstVisibleItem is in this section (header or items)
|
|
438
|
+
const sectionItems = this._getItemsInSection(section) || [];
|
|
439
|
+
const itemsInSection = sectionItems.length || 0;
|
|
440
|
+
const sectionEndPosition = currentPosition + 1 + itemsInSection; // +1 for header
|
|
441
|
+
if (firstVisibleItem < sectionEndPosition) {
|
|
442
|
+
return section;
|
|
443
|
+
}
|
|
444
|
+
currentPosition = sectionEndPosition;
|
|
445
|
+
}
|
|
446
|
+
return Math.max(0, sectionCount - 1); // Fallback to last section
|
|
447
|
+
}
|
|
448
|
+
_updateStickyHeader(section) {
|
|
449
|
+
if (!this._stickyHeaderView) {
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
// Update binding context to match the current section
|
|
453
|
+
const sectionData = this._getSectionData(section);
|
|
454
|
+
if (sectionData) {
|
|
455
|
+
this._stickyHeaderView.bindingContext = sectionData;
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
this._stickyHeaderView.bindingContext = { title: `Section ${section}`, section: section };
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
_updateHiddenHeaders(firstVisibleItem) {
|
|
462
|
+
const previousHiddenHeaders = new Set(this._hiddenHeaderPositions);
|
|
463
|
+
this._hiddenHeaderPositions.clear();
|
|
464
|
+
// If we're at the very top (first item is position 0, which is the first section header),
|
|
465
|
+
// hide that section header to avoid duplication with sticky header
|
|
466
|
+
if (firstVisibleItem === 0) {
|
|
467
|
+
this._hiddenHeaderPositions.add(0); // Hide the first section header position
|
|
468
|
+
}
|
|
469
|
+
// If hidden headers changed, refresh the adapter
|
|
470
|
+
const hiddenHeadersChanged = previousHiddenHeaders.size !== this._hiddenHeaderPositions.size || [...previousHiddenHeaders].some((pos) => !this._hiddenHeaderPositions.has(pos));
|
|
471
|
+
if (hiddenHeadersChanged) {
|
|
472
|
+
// Refresh adapter to update visibility
|
|
473
|
+
const adapter = this.nativeViewProtected.getAdapter();
|
|
474
|
+
if (adapter instanceof android.widget.BaseAdapter) {
|
|
475
|
+
adapter.notifyDataSetChanged();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
[separatorColorProperty.getDefault]() {
|
|
480
|
+
const nativeView = this.nativeViewProtected;
|
|
481
|
+
return {
|
|
482
|
+
dividerHeight: nativeView.getDividerHeight(),
|
|
483
|
+
divider: nativeView.getDivider(),
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
[separatorColorProperty.setNative](value) {
|
|
487
|
+
const nativeView = this.nativeViewProtected;
|
|
488
|
+
if (value instanceof Color) {
|
|
489
|
+
nativeView.setDivider(new android.graphics.drawable.ColorDrawable(value.android));
|
|
490
|
+
nativeView.setDividerHeight(1);
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
nativeView.setDivider(value.divider);
|
|
494
|
+
nativeView.setDividerHeight(value.dividerHeight);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
[itemTemplatesProperty.getDefault]() {
|
|
498
|
+
return null;
|
|
499
|
+
}
|
|
500
|
+
[itemTemplatesProperty.setNative](value) {
|
|
501
|
+
this._itemTemplatesInternal = new Array(this._defaultTemplate);
|
|
502
|
+
if (value) {
|
|
503
|
+
this._itemTemplatesInternal = this._itemTemplatesInternal.concat(value);
|
|
504
|
+
}
|
|
505
|
+
if (this.nativeViewProtected) {
|
|
506
|
+
this.nativeViewProtected.setAdapter(new ListViewAdapterClass(this));
|
|
507
|
+
this.refresh();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
// Sticky header property handlers
|
|
511
|
+
[stickyHeaderProperty.setNative](value) {
|
|
512
|
+
// Refresh adapter to handle sectioned vs non-sectioned display
|
|
513
|
+
if (this.nativeViewProtected && this.nativeViewProtected.getAdapter()) {
|
|
514
|
+
this.nativeViewProtected.setAdapter(new ListViewAdapterClass(this));
|
|
515
|
+
}
|
|
516
|
+
// Setup or cleanup sticky header
|
|
517
|
+
if (value && this.sectioned && this.stickyHeaderTemplate && this.isLoaded) {
|
|
518
|
+
this._setupStickyHeader();
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
this._cleanupStickyHeader();
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
[stickyHeaderTemplateProperty.setNative](value) {
|
|
525
|
+
// Refresh adapter when template changes
|
|
526
|
+
if (this.nativeViewProtected && this.nativeViewProtected.getAdapter()) {
|
|
527
|
+
this.nativeViewProtected.setAdapter(new ListViewAdapterClass(this));
|
|
528
|
+
}
|
|
529
|
+
// Recreate sticky header with new template
|
|
530
|
+
this._cleanupStickyHeader();
|
|
531
|
+
if (value && this.stickyHeader && this.sectioned && this.isLoaded) {
|
|
532
|
+
this._setupStickyHeader();
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
[sectionedProperty.setNative](value) {
|
|
536
|
+
// Refresh adapter to handle sectioned vs non-sectioned data
|
|
537
|
+
if (this.nativeViewProtected && this.nativeViewProtected.getAdapter()) {
|
|
538
|
+
this.nativeViewProtected.setAdapter(new ListViewAdapterClass(this));
|
|
539
|
+
}
|
|
540
|
+
// Setup or cleanup sticky header based on sectioned state
|
|
541
|
+
if (value && this.stickyHeader && this.stickyHeaderTemplate && this.isLoaded) {
|
|
542
|
+
this._setupStickyHeader();
|
|
543
|
+
}
|
|
544
|
+
else {
|
|
545
|
+
this._cleanupStickyHeader();
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
// Search methods
|
|
549
|
+
_setupSearchView() {
|
|
550
|
+
if (this._searchView || !this.showSearch || !this.nativeViewProtected) {
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
// Create SearchView using the ListView's context
|
|
554
|
+
this._searchView = new android.widget.SearchView(this.nativeViewProtected.getContext());
|
|
555
|
+
this._searchView.setQueryHint('Search...');
|
|
556
|
+
this._searchView.setIconifiedByDefault(false);
|
|
557
|
+
this._searchView.setSubmitButtonEnabled(false);
|
|
558
|
+
// Setup search listener
|
|
559
|
+
const owner = this;
|
|
560
|
+
this._searchListener = new android.widget.SearchView.OnQueryTextListener({
|
|
561
|
+
onQueryTextChange(newText) {
|
|
562
|
+
const args = {
|
|
563
|
+
eventName: SEARCHCHANGE,
|
|
564
|
+
object: owner,
|
|
565
|
+
text: newText,
|
|
566
|
+
android: owner._searchView,
|
|
567
|
+
};
|
|
568
|
+
owner.notify(args);
|
|
569
|
+
return true;
|
|
570
|
+
},
|
|
571
|
+
onQueryTextSubmit(query) {
|
|
572
|
+
const args = {
|
|
573
|
+
eventName: SEARCHCHANGE,
|
|
574
|
+
object: owner,
|
|
575
|
+
text: query,
|
|
576
|
+
android: owner._searchView,
|
|
577
|
+
};
|
|
578
|
+
owner.notify(args);
|
|
579
|
+
return true;
|
|
580
|
+
},
|
|
581
|
+
});
|
|
582
|
+
this._searchView.setOnQueryTextListener(this._searchListener);
|
|
583
|
+
// Add search view to the parent container above the ListView
|
|
584
|
+
this._addSearchToParent();
|
|
585
|
+
// Add padding to ListView if no sticky header (otherwise sticky header method handles it)
|
|
586
|
+
if (!this.stickyHeader || !this._stickyHeaderView) {
|
|
587
|
+
this._addSearchPadding();
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
_addSearchPadding() {
|
|
591
|
+
if (!this._searchView) {
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
// Add basic padding for search view
|
|
595
|
+
const defaultSearchHeight = 50; // Default search view height
|
|
596
|
+
this.nativeViewProtected.setPadding(0, defaultSearchHeight, 0, 0);
|
|
597
|
+
// Measure and adjust if needed
|
|
598
|
+
setTimeout(() => {
|
|
599
|
+
if (this._searchView && this._searchView._wrapper) {
|
|
600
|
+
const searchWrapper = this._searchView._wrapper;
|
|
601
|
+
if (searchWrapper.nativeViewProtected && searchWrapper.nativeViewProtected.getMeasuredHeight() > 0) {
|
|
602
|
+
const measuredHeight = searchWrapper.nativeViewProtected.getMeasuredHeight();
|
|
603
|
+
this.nativeViewProtected.setPadding(0, measuredHeight + 4, 0, 0);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}, 100);
|
|
607
|
+
}
|
|
608
|
+
_addSearchToParent() {
|
|
609
|
+
if (!this._searchView || !this.parent) {
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
// Get the parent layout
|
|
613
|
+
const parentLayout = this.parent;
|
|
614
|
+
// Create a simple NativeScript wrapper for the native SearchView
|
|
615
|
+
const searchView = this._searchView;
|
|
616
|
+
const searchViewWrapper = new (class extends View {
|
|
617
|
+
createNativeView() {
|
|
618
|
+
return searchView;
|
|
619
|
+
}
|
|
620
|
+
})();
|
|
621
|
+
// Set layout properties - ensure it's at the top
|
|
622
|
+
searchViewWrapper.height = 'auto';
|
|
623
|
+
searchViewWrapper.width = { unit: '%', value: 100 };
|
|
624
|
+
searchViewWrapper.verticalAlignment = 'top';
|
|
625
|
+
searchViewWrapper.horizontalAlignment = 'stretch';
|
|
626
|
+
// Always insert at position 0 (top) regardless of ListView position
|
|
627
|
+
if (parentLayout instanceof StackLayout) {
|
|
628
|
+
parentLayout.insertChild(searchViewWrapper, 0);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
// For other layout types, add as first child
|
|
632
|
+
parentLayout._addView(searchViewWrapper);
|
|
633
|
+
}
|
|
634
|
+
// Ensure search view appears above everything else
|
|
635
|
+
if (searchViewWrapper.nativeViewProtected) {
|
|
636
|
+
searchViewWrapper.nativeViewProtected.setZ(SEARCH_VIEW_Z_INDEX);
|
|
637
|
+
}
|
|
638
|
+
// Store reference for cleanup
|
|
639
|
+
this._searchView._wrapper = searchViewWrapper;
|
|
640
|
+
}
|
|
641
|
+
_cleanupSearchView() {
|
|
642
|
+
if (this._searchView) {
|
|
643
|
+
// Remove search view wrapper from parent
|
|
644
|
+
const wrapper = this._searchView._wrapper;
|
|
645
|
+
if (wrapper && wrapper.parent) {
|
|
646
|
+
wrapper.parent._removeView(wrapper);
|
|
647
|
+
}
|
|
648
|
+
// Clear listener
|
|
649
|
+
if (this._searchListener) {
|
|
650
|
+
this._searchView.setOnQueryTextListener(null);
|
|
651
|
+
this._searchListener = null;
|
|
652
|
+
}
|
|
653
|
+
this._searchView = null;
|
|
654
|
+
// Reset ListView padding if no sticky header
|
|
655
|
+
if (!this.stickyHeader || !this._stickyHeaderView) {
|
|
656
|
+
this.nativeViewProtected.setPadding(0, 0, 0, 0);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
[showSearchProperty.setNative](value) {
|
|
661
|
+
if (value) {
|
|
662
|
+
if (this.isLoaded && this.nativeViewProtected && this.nativeViewProtected.getAdapter()) {
|
|
663
|
+
this._setupSearchView();
|
|
664
|
+
// Reposition sticky header if it exists
|
|
665
|
+
if (this._stickyHeaderView) {
|
|
666
|
+
this._repositionStickyHeader();
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
this._cleanupSearchView();
|
|
672
|
+
// Reposition sticky header if it exists
|
|
673
|
+
if (this._stickyHeaderView) {
|
|
674
|
+
this._repositionStickyHeader();
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
_repositionStickyHeader() {
|
|
679
|
+
if (!this._stickyHeaderView || !this._stickyHeaderView.nativeViewProtected) {
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
// Reset positioning
|
|
683
|
+
this._stickyHeaderView.nativeViewProtected.setTranslationY(0);
|
|
684
|
+
// If search is enabled, position below search view
|
|
685
|
+
if (this.showSearch && this._searchView && this._searchView._wrapper) {
|
|
686
|
+
setTimeout(() => {
|
|
687
|
+
const searchWrapper = this._searchView._wrapper;
|
|
688
|
+
if (searchWrapper.nativeViewProtected) {
|
|
689
|
+
const searchHeight = searchWrapper.nativeViewProtected.getMeasuredHeight() || 50;
|
|
690
|
+
this._stickyHeaderView.nativeViewProtected.setTranslationY(searchHeight);
|
|
691
|
+
}
|
|
692
|
+
}, 100);
|
|
693
|
+
}
|
|
694
|
+
// Update ListView padding
|
|
695
|
+
if (this.stickyHeader && this._stickyHeaderView) {
|
|
696
|
+
this._addListViewPadding();
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
__decorate([
|
|
701
|
+
profile,
|
|
702
|
+
__metadata("design:type", Function),
|
|
703
|
+
__metadata("design:paramtypes", []),
|
|
704
|
+
__metadata("design:returntype", void 0)
|
|
705
|
+
], ListView.prototype, "createNativeView", null);
|
|
706
|
+
let ListViewAdapterClass;
|
|
707
|
+
function ensureListViewAdapterClass() {
|
|
708
|
+
if (ListViewAdapterClass) {
|
|
709
|
+
return;
|
|
710
|
+
}
|
|
711
|
+
var ListViewAdapter = (function (_super) {
|
|
712
|
+
__extends(ListViewAdapter, _super);
|
|
713
|
+
function ListViewAdapter(owner) {
|
|
714
|
+
var _this = _super.call(this) || this;
|
|
715
|
+
_this.owner = owner;
|
|
716
|
+
return global.__native(_this);
|
|
717
|
+
}
|
|
718
|
+
ListViewAdapter.prototype.getCount = function () {
|
|
719
|
+
if (!this.owner) {
|
|
720
|
+
return 0;
|
|
721
|
+
}
|
|
722
|
+
var count = 0;
|
|
723
|
+
if (this.owner.sectioned) {
|
|
724
|
+
var sectionCount = this.owner._getSectionCount();
|
|
725
|
+
if (!this.owner.items || sectionCount <= 0) {
|
|
726
|
+
return 0;
|
|
727
|
+
}
|
|
728
|
+
for (var i = 0; i < sectionCount; i++) {
|
|
729
|
+
var itemsInSection = this.owner._getItemsInSection(i) || [];
|
|
730
|
+
if (itemsInSection.length > 0) {
|
|
731
|
+
count += 1;
|
|
732
|
+
count += itemsInSection.length;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
else {
|
|
737
|
+
var src = this.owner.items;
|
|
738
|
+
count = src && typeof src.length === "number" ? src.length : 0;
|
|
739
|
+
}
|
|
740
|
+
return Math.max(0, count);
|
|
741
|
+
};
|
|
742
|
+
ListViewAdapter.prototype.getItem = function (i) {
|
|
743
|
+
if (!this.owner || !this.owner.items) {
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
var totalCount = this.getCount();
|
|
747
|
+
if (i < 0 || i >= totalCount) {
|
|
748
|
+
return null;
|
|
749
|
+
}
|
|
750
|
+
if (this.owner.sectioned) {
|
|
751
|
+
var positionInfo = this._getPositionInfo(i);
|
|
752
|
+
if (positionInfo.isHeader) {
|
|
753
|
+
return this.owner._getSectionData(positionInfo.section);
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
return this.owner._getDataItemInSection(positionInfo.section, positionInfo.itemIndex);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
else {
|
|
760
|
+
var src = this.owner.items;
|
|
761
|
+
if (src && typeof src.length === "number" && i < src.length) {
|
|
762
|
+
var getItem = src.getItem;
|
|
763
|
+
return getItem ? getItem.call(src, i) : src[i];
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return null;
|
|
767
|
+
};
|
|
768
|
+
ListViewAdapter.prototype._getPositionInfo = function (position) {
|
|
769
|
+
if (!this.owner.sectioned) {
|
|
770
|
+
return { isHeader: false, section: 0, itemIndex: position };
|
|
771
|
+
}
|
|
772
|
+
var currentPosition = 0;
|
|
773
|
+
var sectionCount = this.owner._getSectionCount();
|
|
774
|
+
for (var section = 0; section < sectionCount; section++) {
|
|
775
|
+
var itemsInSection = this.owner._getItemsInSection(section) || [];
|
|
776
|
+
if (itemsInSection.length === 0) {
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
if (currentPosition === position) {
|
|
780
|
+
return { isHeader: true, section: section, itemIndex: -1 };
|
|
781
|
+
}
|
|
782
|
+
currentPosition++;
|
|
783
|
+
if (position < currentPosition + itemsInSection.length) {
|
|
784
|
+
var itemIndex = position - currentPosition;
|
|
785
|
+
return { isHeader: false, section: section, itemIndex: itemIndex };
|
|
786
|
+
}
|
|
787
|
+
currentPosition += itemsInSection.length;
|
|
788
|
+
}
|
|
789
|
+
return { isHeader: false, section: 0, itemIndex: 0 };
|
|
790
|
+
};
|
|
791
|
+
ListViewAdapter.prototype.getItemId = function (i) {
|
|
792
|
+
var item = this.getItem(i);
|
|
793
|
+
var id = i;
|
|
794
|
+
if (this.owner && item && this.owner.items) {
|
|
795
|
+
id = this.owner.itemIdGenerator(item, i, this.owner.items);
|
|
796
|
+
}
|
|
797
|
+
return long(id);
|
|
798
|
+
};
|
|
799
|
+
ListViewAdapter.prototype.hasStableIds = function () {
|
|
800
|
+
return true;
|
|
801
|
+
};
|
|
802
|
+
ListViewAdapter.prototype.isEnabled = function (position) {
|
|
803
|
+
var totalCount = this.getCount();
|
|
804
|
+
if (totalCount === 0 || position < 0 || position >= totalCount) {
|
|
805
|
+
return false;
|
|
806
|
+
}
|
|
807
|
+
if (this.owner.sectioned) {
|
|
808
|
+
var positionInfo = this._getPositionInfo(position);
|
|
809
|
+
return !positionInfo.isHeader;
|
|
810
|
+
}
|
|
811
|
+
return true;
|
|
812
|
+
};
|
|
813
|
+
ListViewAdapter.prototype.getViewTypeCount = function () {
|
|
814
|
+
var count = this.owner._itemTemplatesInternal.length;
|
|
815
|
+
if (this.owner.sectioned && this.owner.stickyHeaderTemplate) {
|
|
816
|
+
count += 1;
|
|
817
|
+
}
|
|
818
|
+
return count;
|
|
819
|
+
};
|
|
820
|
+
ListViewAdapter.prototype.getItemViewType = function (index) {
|
|
821
|
+
if (this.owner.sectioned) {
|
|
822
|
+
var positionInfo = this._getPositionInfo(index);
|
|
823
|
+
if (positionInfo.isHeader) {
|
|
824
|
+
return this.owner._itemTemplatesInternal.length;
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
var template = this.owner._getItemTemplate(positionInfo.itemIndex);
|
|
828
|
+
return this.owner._itemTemplatesInternal.indexOf(template);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
var template = this.owner._getItemTemplate(index);
|
|
833
|
+
return this.owner._itemTemplatesInternal.indexOf(template);
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
ListViewAdapter.prototype.getView = function (index, convertView, parent) {
|
|
837
|
+
if (!this.owner) {
|
|
838
|
+
return null;
|
|
839
|
+
}
|
|
840
|
+
var totalCount = this.getCount();
|
|
841
|
+
if (index < 0 || index >= totalCount) {
|
|
842
|
+
var emptyView = new android.view.View(this.owner._context);
|
|
843
|
+
var layoutParams = new android.view.ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, 0);
|
|
844
|
+
emptyView.setLayoutParams(layoutParams);
|
|
845
|
+
return emptyView;
|
|
846
|
+
}
|
|
847
|
+
if (index === totalCount - 1) {
|
|
848
|
+
this.owner.notify({
|
|
849
|
+
eventName: LOADMOREITEMS,
|
|
850
|
+
object: this.owner,
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
if (this.owner.sectioned) {
|
|
854
|
+
var positionInfo = this._getPositionInfo(index);
|
|
855
|
+
if (positionInfo.isHeader) {
|
|
856
|
+
return this._createHeaderView(positionInfo.section, convertView, parent, index);
|
|
857
|
+
}
|
|
858
|
+
else {
|
|
859
|
+
return this._createItemView(positionInfo.section, positionInfo.itemIndex, convertView, parent);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
else {
|
|
863
|
+
return this._createItemView(0, index, convertView, parent);
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
ListViewAdapter.prototype._createHeaderView = function (section, convertView, parent, index) {
|
|
867
|
+
if (this.owner._hiddenHeaderPositions.has(index)) {
|
|
868
|
+
var emptyView = new android.view.View(this.owner._context);
|
|
869
|
+
var layoutParams = new android.view.ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, 0);
|
|
870
|
+
emptyView.setLayoutParams(layoutParams);
|
|
871
|
+
return emptyView;
|
|
872
|
+
}
|
|
873
|
+
var headerView = null;
|
|
874
|
+
var headerViewType = this.owner._itemTemplatesInternal.length;
|
|
875
|
+
if (convertView) {
|
|
876
|
+
var existingData = this.owner._realizedItems.get(convertView);
|
|
877
|
+
if (existingData && existingData.templateKey === "header_".concat(headerViewType)) {
|
|
878
|
+
headerView = existingData.view;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
if (!headerView) {
|
|
882
|
+
if (this.owner.stickyHeaderTemplate) {
|
|
883
|
+
if (typeof this.owner.stickyHeaderTemplate === "string") {
|
|
884
|
+
try {
|
|
885
|
+
headerView = Builder.parse(this.owner.stickyHeaderTemplate, this.owner);
|
|
886
|
+
}
|
|
887
|
+
catch (error) {
|
|
888
|
+
headerView = new Label();
|
|
889
|
+
headerView.text = "Header Error";
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
if (!headerView) {
|
|
894
|
+
headerView = new Label();
|
|
895
|
+
headerView.text = "Section ".concat(section);
|
|
896
|
+
}
|
|
897
|
+
if (!headerView.parent) {
|
|
898
|
+
if (headerView instanceof LayoutBase && !(headerView instanceof ProxyViewContainer)) {
|
|
899
|
+
this.owner._addView(headerView);
|
|
900
|
+
convertView = headerView.nativeViewProtected;
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
var sp = new StackLayout();
|
|
904
|
+
sp.addChild(headerView);
|
|
905
|
+
this.owner._addView(sp);
|
|
906
|
+
convertView = sp.nativeViewProtected;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
this.owner._realizedItems.set(convertView, {
|
|
910
|
+
view: headerView,
|
|
911
|
+
templateKey: "header_".concat(headerViewType),
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
var sectionData = this.owner._getSectionData(section);
|
|
915
|
+
if (sectionData) {
|
|
916
|
+
headerView.bindingContext = sectionData;
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
headerView.bindingContext = { title: "Section ".concat(section), section: section };
|
|
920
|
+
}
|
|
921
|
+
return convertView;
|
|
922
|
+
};
|
|
923
|
+
ListViewAdapter.prototype._createItemView = function (section, itemIndex, convertView, parent) {
|
|
924
|
+
var template = this.owner._getItemTemplate(itemIndex);
|
|
925
|
+
var view;
|
|
926
|
+
if (convertView && this.owner._getKeyFromView(convertView) !== template.key) {
|
|
927
|
+
this.owner._markViewUnused(convertView);
|
|
928
|
+
convertView = this.owner._getAvailableView(template.key);
|
|
929
|
+
}
|
|
930
|
+
if (convertView) {
|
|
931
|
+
view = this.owner._realizedItems.get(convertView).view;
|
|
932
|
+
}
|
|
933
|
+
if (!view) {
|
|
934
|
+
view = template.createView();
|
|
935
|
+
}
|
|
936
|
+
var args = {
|
|
937
|
+
eventName: ITEMLOADING,
|
|
938
|
+
object: this.owner,
|
|
939
|
+
index: itemIndex,
|
|
940
|
+
view: view,
|
|
941
|
+
android: parent,
|
|
942
|
+
ios: undefined,
|
|
943
|
+
};
|
|
944
|
+
if (this.owner.sectioned) {
|
|
945
|
+
args.section = section;
|
|
946
|
+
}
|
|
947
|
+
this.owner.notify(args);
|
|
948
|
+
if (!args.view) {
|
|
949
|
+
args.view = this.owner._getDefaultItemContent(itemIndex);
|
|
950
|
+
}
|
|
951
|
+
if (args.view) {
|
|
952
|
+
if (this.owner._effectiveRowHeight > -1) {
|
|
953
|
+
args.view.height = this.owner.rowHeight;
|
|
954
|
+
}
|
|
955
|
+
else {
|
|
956
|
+
args.view.height = unsetValue;
|
|
957
|
+
}
|
|
958
|
+
if (this.owner.sectioned) {
|
|
959
|
+
args.view._listViewItemIndex = itemIndex;
|
|
960
|
+
args.view._listViewSectionIndex = section;
|
|
961
|
+
}
|
|
962
|
+
if (this.owner.sectioned) {
|
|
963
|
+
this.owner._prepareItemInSection(args.view, section, itemIndex);
|
|
964
|
+
}
|
|
965
|
+
else {
|
|
966
|
+
this.owner._prepareItem(args.view, itemIndex);
|
|
967
|
+
}
|
|
968
|
+
if (!args.view.parent) {
|
|
969
|
+
if (args.view instanceof LayoutBase && !(args.view instanceof ProxyViewContainer)) {
|
|
970
|
+
var mt = PercentLength.toDevicePixels(args.view.marginTop, 0, Number.NaN);
|
|
971
|
+
var mb = PercentLength.toDevicePixels(args.view.marginBottom, 0, Number.NaN);
|
|
972
|
+
var ml = PercentLength.toDevicePixels(args.view.marginLeft, 0, Number.NaN);
|
|
973
|
+
var mr = PercentLength.toDevicePixels(args.view.marginRight, 0, Number.NaN);
|
|
974
|
+
var hasMargins = mt > 0 || mb > 0 || ml > 0 || mr > 0;
|
|
975
|
+
if (hasMargins) {
|
|
976
|
+
var outer = new StackLayout();
|
|
977
|
+
outer.addChild(args.view);
|
|
978
|
+
this.owner._addView(outer);
|
|
979
|
+
convertView = outer.nativeViewProtected;
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
this.owner._addView(args.view);
|
|
983
|
+
convertView = args.view.nativeViewProtected;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
var sp = new StackLayout();
|
|
988
|
+
sp.addChild(args.view);
|
|
989
|
+
this.owner._addView(sp);
|
|
990
|
+
convertView = sp.nativeViewProtected;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
this.owner._registerViewToTemplate(template.key, convertView, args.view);
|
|
994
|
+
this.owner._markViewUsed(convertView);
|
|
995
|
+
}
|
|
996
|
+
return convertView;
|
|
997
|
+
};
|
|
998
|
+
__decorate([
|
|
999
|
+
profile
|
|
1000
|
+
], ListViewAdapter.prototype, "getView", null);
|
|
1001
|
+
return ListViewAdapter;
|
|
1002
|
+
}(android.widget.BaseAdapter));
|
|
1003
|
+
ListViewAdapterClass = ListViewAdapter;
|
|
1004
|
+
}
|
|
1005
|
+
//# sourceMappingURL=index.android.js.map
|