@triniwiz/nativescript-masonkit 1.0.0-alpha.4 → 1.0.0-alpha.6
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/common.d.ts +7 -9
- package/common.js +277 -552
- package/common.js.map +1 -1
- package/helpers.d.ts +32 -10
- package/helpers.js +772 -286
- package/helpers.js.map +1 -1
- package/index.android.d.ts +6 -2
- package/index.android.js +21 -3
- package/index.android.js.map +1 -1
- package/index.d.ts +64 -7
- package/index.ios.d.ts +9 -6
- package/index.ios.js +39 -25
- package/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/include.gradle +18 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +108 -64
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +47 -20
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +216 -128
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +47 -20
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +43 -43
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/build.xcconfig +1 -2
- package/platforms/ios/src/MasonV8Module.h +583 -0
- package/platforms/ios/src/MasonV8Module.mm +1005 -0
- package/platforms/ios/src/{include → cpp/include}/mason_native.h +47 -20
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/module.modulemap +2 -2
- package/platforms/new_native_src/cpp/Caches.cpp +36 -0
- package/platforms/new_native_src/cpp/Caches.h +42 -0
- package/platforms/new_native_src/cpp/Common.h +34 -0
- package/platforms/new_native_src/cpp/ConcurrentMap.h +57 -0
- package/platforms/new_native_src/cpp/Helpers.cpp +101 -0
- package/platforms/new_native_src/cpp/Helpers.h +364 -0
- package/platforms/new_native_src/cpp/MasonImpl.cpp +68 -0
- package/platforms/new_native_src/cpp/MasonImpl.h +40 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +89 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.h +47 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +2181 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.h +420 -0
- package/platforms/{ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders → new_native_src/cpp/include}/mason_native.h +464 -168
- package/platforms/new_native_src/cpp/include/robin_hood.h +2544 -0
- package/pods/Headers/include/APIDesign.md +72 -0
- package/pods/Headers/include/DEPS +10 -0
- package/pods/Headers/include/DIR_METADATA +11 -0
- package/pods/Headers/include/OWNERS +23 -0
- package/pods/Headers/include/cppgc/DEPS +8 -0
- package/pods/Headers/include/cppgc/OWNERS +2 -0
- package/pods/Headers/include/cppgc/README.md +133 -0
- package/pods/Headers/include/cppgc/allocation.h +310 -0
- package/pods/Headers/include/cppgc/common.h +29 -0
- package/pods/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/pods/Headers/include/cppgc/custom-space.h +97 -0
- package/pods/Headers/include/cppgc/default-platform.h +67 -0
- package/pods/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/pods/Headers/include/cppgc/explicit-management.h +100 -0
- package/pods/Headers/include/cppgc/garbage-collected.h +106 -0
- package/pods/Headers/include/cppgc/heap-consistency.h +266 -0
- package/pods/Headers/include/cppgc/heap-state.h +82 -0
- package/pods/Headers/include/cppgc/heap-statistics.h +120 -0
- package/pods/Headers/include/cppgc/heap.h +206 -0
- package/pods/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/pods/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/pods/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/pods/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/pods/Headers/include/cppgc/internal/logging.h +50 -0
- package/pods/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/pods/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/pods/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/pods/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/pods/Headers/include/cppgc/liveness-broker.h +77 -0
- package/pods/Headers/include/cppgc/macros.h +26 -0
- package/pods/Headers/include/cppgc/member.h +291 -0
- package/pods/Headers/include/cppgc/name-provider.h +65 -0
- package/pods/Headers/include/cppgc/object-size-trait.h +58 -0
- package/pods/Headers/include/cppgc/persistent.h +370 -0
- package/pods/Headers/include/cppgc/platform.h +156 -0
- package/pods/Headers/include/cppgc/prefinalizer.h +75 -0
- package/pods/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/pods/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/pods/Headers/include/cppgc/source-location.h +92 -0
- package/pods/Headers/include/cppgc/testing.h +106 -0
- package/pods/Headers/include/cppgc/trace-trait.h +116 -0
- package/pods/Headers/include/cppgc/type-traits.h +240 -0
- package/pods/Headers/include/cppgc/visitor.h +379 -0
- package/pods/Headers/include/js_protocol-1.2.json +936 -0
- package/pods/Headers/include/js_protocol-1.3.json +1112 -0
- package/pods/Headers/include/js_protocol.pdl +1709 -0
- package/pods/Headers/include/libffi/arm64/ffi.h +524 -0
- package/pods/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/pods/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/pods/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/pods/Headers/include/libffi.h +12 -0
- package/pods/Headers/include/libplatform/DEPS +9 -0
- package/pods/Headers/include/libplatform/libplatform-export.h +29 -0
- package/pods/Headers/include/libplatform/libplatform.h +106 -0
- package/pods/Headers/include/libplatform/v8-tracing.h +333 -0
- package/pods/Headers/include/v8-array-buffer.h +433 -0
- package/pods/Headers/include/v8-callbacks.h +397 -0
- package/pods/Headers/include/v8-container.h +129 -0
- package/pods/Headers/include/v8-context.h +407 -0
- package/pods/Headers/include/v8-cppgc.h +215 -0
- package/pods/Headers/include/v8-data.h +80 -0
- package/pods/Headers/include/v8-date.h +43 -0
- package/pods/Headers/include/v8-debug.h +168 -0
- package/pods/Headers/include/v8-embedder-heap.h +218 -0
- package/pods/Headers/include/v8-embedder-state-scope.h +51 -0
- package/pods/Headers/include/v8-exception.h +217 -0
- package/pods/Headers/include/v8-extension.h +62 -0
- package/pods/Headers/include/v8-external.h +37 -0
- package/pods/Headers/include/v8-fast-api-calls.h +939 -0
- package/pods/Headers/include/v8-forward.h +81 -0
- package/pods/Headers/include/v8-function-callback.h +475 -0
- package/pods/Headers/include/v8-function.h +125 -0
- package/pods/Headers/include/v8-initialization.h +315 -0
- package/pods/Headers/include/v8-inspector-protocol.h +13 -0
- package/pods/Headers/include/v8-inspector.h +376 -0
- package/pods/Headers/include/v8-internal.h +661 -0
- package/pods/Headers/include/v8-isolate.h +1709 -0
- package/pods/Headers/include/v8-json.h +47 -0
- package/pods/Headers/include/v8-local-handle.h +455 -0
- package/pods/Headers/include/v8-locker.h +149 -0
- package/pods/Headers/include/v8-maybe.h +137 -0
- package/pods/Headers/include/v8-memory-span.h +43 -0
- package/pods/Headers/include/v8-message.h +216 -0
- package/pods/Headers/include/v8-metrics.h +255 -0
- package/pods/Headers/include/v8-microtask-queue.h +152 -0
- package/pods/Headers/include/v8-microtask.h +28 -0
- package/pods/Headers/include/v8-object.h +775 -0
- package/pods/Headers/include/v8-persistent-handle.h +590 -0
- package/pods/Headers/include/v8-platform.h +1092 -0
- package/pods/Headers/include/v8-primitive-object.h +118 -0
- package/pods/Headers/include/v8-primitive.h +866 -0
- package/pods/Headers/include/v8-profiler.h +1198 -0
- package/pods/Headers/include/v8-promise.h +174 -0
- package/pods/Headers/include/v8-proxy.h +50 -0
- package/pods/Headers/include/v8-regexp.h +105 -0
- package/pods/Headers/include/v8-script.h +748 -0
- package/pods/Headers/include/v8-snapshot.h +196 -0
- package/pods/Headers/include/v8-statistics.h +217 -0
- package/pods/Headers/include/v8-template.h +1079 -0
- package/pods/Headers/include/v8-traced-handle.h +420 -0
- package/pods/Headers/include/v8-typed-array.h +282 -0
- package/pods/Headers/include/v8-unwinder-state.h +31 -0
- package/pods/Headers/include/v8-unwinder.h +132 -0
- package/pods/Headers/include/v8-util.h +658 -0
- package/pods/Headers/include/v8-value-serializer-version.h +24 -0
- package/pods/Headers/include/v8-value-serializer.h +279 -0
- package/pods/Headers/include/v8-value.h +526 -0
- package/pods/Headers/include/v8-version-string.h +38 -0
- package/pods/Headers/include/v8-version.h +20 -0
- package/pods/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/pods/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/pods/Headers/include/v8-wasm.h +257 -0
- package/pods/Headers/include/v8-weak-callback-info.h +86 -0
- package/pods/Headers/include/v8.h +88 -0
- package/pods/Headers/include/v8config.h +605 -0
- package/pods/Headers/inspector/InspectorServer.h +20 -0
- package/pods/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/pods/Headers/inspector/base64.h +9 -0
- package/pods/Headers/inspector/src/base/address-region.h +95 -0
- package/pods/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/pods/Headers/inspector/src/base/atomicops.h +332 -0
- package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/pods/Headers/inspector/src/base/base-export.h +31 -0
- package/pods/Headers/inspector/src/base/bits.h +343 -0
- package/pods/Headers/inspector/src/base/build_config.h +234 -0
- package/pods/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/pods/Headers/inspector/src/base/export-template.h +163 -0
- package/pods/Headers/inspector/src/base/flags.h +130 -0
- package/pods/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/pods/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/pods/Headers/inspector/src/base/logging.h +417 -0
- package/pods/Headers/inspector/src/base/macros.h +423 -0
- package/pods/Headers/inspector/src/base/memory.h +89 -0
- package/pods/Headers/inspector/src/base/once.h +108 -0
- package/pods/Headers/inspector/src/base/optional.h +882 -0
- package/pods/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/pods/Headers/inspector/src/base/platform/platform.h +476 -0
- package/pods/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/pods/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/pods/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/pods/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/pods/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/pods/Headers/inspector/src/base/template-utils.h +113 -0
- package/pods/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/pods/Headers/inspector/src/common/checks.h +38 -0
- package/pods/Headers/inspector/src/common/globals.h +1842 -0
- package/pods/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/pods/Headers/inspector/src/debug/interface-types.h +175 -0
- package/pods/Headers/inspector/src/init/v8.h +52 -0
- package/pods/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/pods/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/pods/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/pods/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/pods/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/pods/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/pods/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/pods/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/pods/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/pods/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/pods/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/pods/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/pods/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/pods/Headers/inspector/src/inspector/search-util.h +26 -0
- package/pods/Headers/inspector/src/inspector/string-16.h +180 -0
- package/pods/Headers/inspector/src/inspector/string-util.h +128 -0
- package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/pods/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/pods/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/pods/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/pods/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/pods/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/pods/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/pods/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/pods/Headers/inspector/src/numbers/conversions.h +183 -0
- package/pods/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/pods/Headers/inspector/src/utils/allocation.h +367 -0
- package/pods/Headers/inspector/src/utils/vector.h +324 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/pods/Headers/inspector/utils.h +32 -0
- package/pods/Headers/inspector/v8-inspector-platform.h +44 -0
- package/pods/Headers/jsi/decorator.h +762 -0
- package/pods/Headers/jsi/instrumentation.h +117 -0
- package/pods/Headers/jsi/jsi-inl.h +322 -0
- package/pods/Headers/jsi/jsi.h +1387 -0
- package/pods/Headers/jsi/jsilib.h +59 -0
- package/pods/Headers/jsi/threadsafe.h +79 -0
- package/pods/Headers/runtime/ArgConverter.h +61 -0
- package/pods/Headers/runtime/ArrayAdapter.h +13 -0
- package/pods/Headers/runtime/Caches.h +98 -0
- package/pods/Headers/runtime/ClassBuilder.h +61 -0
- package/pods/Headers/runtime/Common.h +9 -0
- package/pods/Headers/runtime/ConcurrentMap.h +55 -0
- package/pods/Headers/runtime/ConcurrentQueue.h +28 -0
- package/pods/Headers/runtime/Console.h +27 -0
- package/pods/Headers/runtime/Constants.h +15 -0
- package/pods/Headers/runtime/DataWrapper.h +671 -0
- package/pods/Headers/runtime/DictionaryAdapter.h +13 -0
- package/pods/Headers/runtime/ExtVector.h +21 -0
- package/pods/Headers/runtime/FFICall.h +105 -0
- package/pods/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/pods/Headers/runtime/FunctionReference.h +18 -0
- package/pods/Headers/runtime/Helpers.h +84 -0
- package/pods/Headers/runtime/InlineFunctions.h +16 -0
- package/pods/Headers/runtime/Interop.h +202 -0
- package/pods/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/pods/Headers/runtime/Metadata.h +981 -0
- package/pods/Headers/runtime/MetadataBuilder.h +72 -0
- package/pods/Headers/runtime/MetadataInlines.h +157 -0
- package/pods/Headers/runtime/ModuleInternal.h +59 -0
- package/pods/Headers/runtime/NSDataAdapter.h +13 -0
- package/pods/Headers/runtime/NativeScriptException.h +27 -0
- package/pods/Headers/runtime/ObjectManager.h +31 -0
- package/pods/Headers/runtime/OneByteStringResource.h +21 -0
- package/pods/Headers/runtime/Pointer.h +26 -0
- package/pods/Headers/runtime/PromiseProxy.h +15 -0
- package/pods/Headers/runtime/Reference.h +38 -0
- package/pods/Headers/runtime/Runtime.h +67 -0
- package/pods/Headers/runtime/RuntimeConfig.h +17 -0
- package/pods/Headers/runtime/SetTimeout.h +34 -0
- package/pods/Headers/runtime/SimpleAllocator.h +23 -0
- package/pods/Headers/runtime/StringHasher.h +315 -0
- package/pods/Headers/runtime/SymbolIterator.h +18 -0
- package/pods/Headers/runtime/SymbolLoader.h +27 -0
- package/pods/Headers/runtime/TNSDerivedClass.h +8 -0
- package/pods/Headers/runtime/TSHelpers.h +15 -0
- package/pods/Headers/runtime/Tasks.h +19 -0
- package/pods/Headers/runtime/UnmanagedType.h +21 -0
- package/pods/Headers/runtime/WeakRef.h +15 -0
- package/pods/Headers/runtime/Worker.h +26 -0
- package/pods/Headers/runtime/robin_hood.h +2184 -0
- package/pods/Headers/v8runtime/HostProxy.h +71 -0
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +70 -0
- package/pods/Headers/v8runtime/V8PointerValue.h +44 -0
- package/pods/Headers/v8runtime/V8Runtime.h +215 -0
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +26 -0
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +21 -0
- package/pods/NativeScript.podspec +68 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/src/JSIModule.h +0 -217
- package/platforms/ios/src/JSIModule.mm +0 -2788
package/common.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
3
|
+
import { CSSType, CssProperty, CustomLayoutView, Length as NSLength, ShorthandProperty, Style, View, borderBottomWidthProperty, borderLeftWidthProperty, borderRightWidthProperty, borderTopWidthProperty, getViewById, heightProperty, marginBottomProperty, marginLeftProperty, marginRightProperty, marginTopProperty, minHeightProperty, minWidthProperty, paddingBottomProperty, paddingLeftProperty, paddingRightProperty, paddingTopProperty, unsetValue, widthProperty } from '@nativescript/core';
|
|
4
|
+
import { alignItemsProperty, alignSelfProperty, flexDirectionProperty, flexGrowProperty, flexWrapProperty, justifyContentProperty } from '@nativescript/core/ui/layouts/flexbox-layout';
|
|
5
|
+
import { _forceStyleUpdate, _getAlignContent, _getAlignItems, _getAlignSelf, _getAspectRatio, _getColumnGap, _getDisplay, _getFlexBasis, _getFlexDirection, _getFlexGrow, _getFlexShrink, _getFlexWrap, _getHeight, _getJustifyContent, _getJustifyItems, _getJustifySelf, _getOverflow, _getOverflowX, _getOverflowY, _getPosition, _getRowGap, _getWidth, _parseGridTemplates, _setAlignContent, _setAlignItems, _setAlignSelf, _setAspectRatio, _setBorderBottom, _setBorderLeft, _setBorderRight, _setBorderTop, _setBottom, _setColumnGap, _setDisplay, _setFlexBasis, _setFlexDirection, _setFlexGrow, _setFlexShrink, _setFlexWrap, _setGridAutoColumns, _setGridAutoFlow, _setGridAutoRows, _setGridColumnEnd, _setGridColumnStart, _setGridRowEnd, _setGridRowStart, _setGridTemplateColumns, _setGridTemplateRows, _setHeight, _setJustifyContent, _setJustifyItems, _setJustifySelf, _setLeft, _setMarginBottom, _setMarginLeft, _setMarginRight, _setMarginTop, _setMaxHeight, _setMaxWidth, _setMinHeight, _setMinWidth, _setOverflow, _setOverflowX, _setOverflowY, _setPaddingBottom, _setPaddingLeft, _setPaddingRight, _setPaddingTop, _setPosition, _setRight, _setRowGap, _setScrollbarWidth, _setTop, _setWidth, getScrollbarWidth, } from './helpers';
|
|
3
6
|
// let widgetMasonView: typeof org.nativescript.mason.masonkit.View;
|
|
4
7
|
// function ensureNativeTypes() {
|
|
5
8
|
// if (!widgetMasonView) {
|
|
@@ -181,12 +184,12 @@ export function overrideViewBase() {
|
|
|
181
184
|
set flexWrap(value) {
|
|
182
185
|
this.style.flexWrap = value;
|
|
183
186
|
}
|
|
184
|
-
[flexWrapProperty.setNative](value) {
|
|
185
|
-
_setFlexWrap(value, this);
|
|
186
|
-
}
|
|
187
187
|
get flexWrap() {
|
|
188
188
|
return _getFlexWrap(this);
|
|
189
189
|
}
|
|
190
|
+
[flexWrapProperty.setNative](value) {
|
|
191
|
+
_setFlexWrap(value, this);
|
|
192
|
+
}
|
|
190
193
|
set alignItems(value) {
|
|
191
194
|
this.style.alignItems = value;
|
|
192
195
|
}
|
|
@@ -210,39 +213,39 @@ export function overrideViewBase() {
|
|
|
210
213
|
set alignContent(value) {
|
|
211
214
|
this.style.alignContent = value;
|
|
212
215
|
}
|
|
213
|
-
[alignContentProperty.setNative](value) {
|
|
214
|
-
_setAlignContent(value, this);
|
|
215
|
-
}
|
|
216
216
|
get alignContent() {
|
|
217
217
|
return _getAlignContent(this);
|
|
218
218
|
}
|
|
219
|
+
[alignContentProperty.setNative](value) {
|
|
220
|
+
_setAlignContent(value, this);
|
|
221
|
+
}
|
|
219
222
|
set justifyItems(value) {
|
|
220
223
|
this.style.justifyItems = value;
|
|
221
224
|
}
|
|
222
|
-
[justifyItemsProperty.setNative](value) {
|
|
223
|
-
_setJustifyItems(value, this);
|
|
224
|
-
}
|
|
225
225
|
get justifyItems() {
|
|
226
226
|
return _getJustifyItems(this);
|
|
227
227
|
}
|
|
228
|
+
[justifyItemsProperty.setNative](value) {
|
|
229
|
+
_setJustifyItems(value, this);
|
|
230
|
+
}
|
|
228
231
|
set justifySelf(value) {
|
|
229
232
|
this.style.justifySelf = value;
|
|
230
233
|
}
|
|
231
|
-
[justifySelfProperty.setNative](value) {
|
|
232
|
-
_setJustifySelf(value, this);
|
|
233
|
-
}
|
|
234
234
|
get justifySelf() {
|
|
235
235
|
return _getJustifySelf(this);
|
|
236
236
|
}
|
|
237
|
+
[justifySelfProperty.setNative](value) {
|
|
238
|
+
_setJustifySelf(value, this);
|
|
239
|
+
}
|
|
237
240
|
set justifyContent(value) {
|
|
238
241
|
this.style.justifyContent = value;
|
|
239
242
|
}
|
|
240
|
-
[justifyContentProperty.setNative](value) {
|
|
241
|
-
_setJustifyContent(value, this);
|
|
242
|
-
}
|
|
243
243
|
get justifyContent() {
|
|
244
244
|
return _getJustifyContent(this);
|
|
245
245
|
}
|
|
246
|
+
[justifyContentProperty.setNative](value) {
|
|
247
|
+
_setJustifyContent(value, this);
|
|
248
|
+
}
|
|
246
249
|
//@ts-ignore
|
|
247
250
|
set left(value) {
|
|
248
251
|
this.style.left = value;
|
|
@@ -317,6 +320,18 @@ export function overrideViewBase() {
|
|
|
317
320
|
[flexGrowProperty.setNative](value) {
|
|
318
321
|
_setFlexGrow(value, this);
|
|
319
322
|
}
|
|
323
|
+
get flex() {
|
|
324
|
+
return this.style.flex;
|
|
325
|
+
}
|
|
326
|
+
set flex(value) {
|
|
327
|
+
this.style.flex = value;
|
|
328
|
+
}
|
|
329
|
+
get flexFlow() {
|
|
330
|
+
return this.style.flexFlow;
|
|
331
|
+
}
|
|
332
|
+
set flexFlow(value) {
|
|
333
|
+
this.style.flexFlow = value;
|
|
334
|
+
}
|
|
320
335
|
//@ts-ignore
|
|
321
336
|
get flexShrink() {
|
|
322
337
|
return _getFlexShrink(this);
|
|
@@ -331,6 +346,9 @@ export function overrideViewBase() {
|
|
|
331
346
|
get flexBasis() {
|
|
332
347
|
return _getFlexBasis(this);
|
|
333
348
|
}
|
|
349
|
+
set flexBasis(value) {
|
|
350
|
+
this.style.flexBasis = value;
|
|
351
|
+
}
|
|
334
352
|
[flexBasisProperty.setNative](value) {
|
|
335
353
|
_setFlexBasis(value, this);
|
|
336
354
|
}
|
|
@@ -339,12 +357,12 @@ export function overrideViewBase() {
|
|
|
339
357
|
get gap() {
|
|
340
358
|
return _getGap(this as any);
|
|
341
359
|
}
|
|
342
|
-
|
|
360
|
+
|
|
343
361
|
set gap(value) {
|
|
344
362
|
this.style.gap = value;
|
|
345
363
|
_setGap(value, this as any);
|
|
346
364
|
}
|
|
347
|
-
|
|
365
|
+
|
|
348
366
|
*/
|
|
349
367
|
set rowGap(value) {
|
|
350
368
|
this.style.rowGap = value;
|
|
@@ -400,23 +418,23 @@ export function overrideViewBase() {
|
|
|
400
418
|
set width(value) {
|
|
401
419
|
this.style.width = value;
|
|
402
420
|
}
|
|
403
|
-
[widthProperty.setNative](value) {
|
|
404
|
-
_setWidth(value, this);
|
|
405
|
-
}
|
|
406
421
|
get width() {
|
|
407
422
|
return _getWidth(this);
|
|
408
423
|
}
|
|
424
|
+
[widthProperty.setNative](value) {
|
|
425
|
+
_setWidth(value, this);
|
|
426
|
+
}
|
|
409
427
|
//@ts-ignore
|
|
410
428
|
set height(value) {
|
|
411
429
|
this.style.height = value;
|
|
412
430
|
}
|
|
413
|
-
[heightProperty.setNative](value) {
|
|
414
|
-
_setHeight(value, this);
|
|
415
|
-
}
|
|
416
431
|
//@ts-ignore
|
|
417
432
|
get height() {
|
|
418
433
|
return _getHeight(this);
|
|
419
434
|
}
|
|
435
|
+
[heightProperty.setNative](value) {
|
|
436
|
+
_setHeight(value, this);
|
|
437
|
+
}
|
|
420
438
|
set maxWidth(value) {
|
|
421
439
|
this.style.maxWidth = value;
|
|
422
440
|
}
|
|
@@ -434,66 +452,68 @@ export function overrideViewBase() {
|
|
|
434
452
|
set gridAutoRows(value) {
|
|
435
453
|
this.style.gridAutoRows = value;
|
|
436
454
|
}
|
|
437
|
-
[gridAutoRowsProperty.setNative](value) {
|
|
438
|
-
_setGridAutoRows(value, this);
|
|
439
|
-
}
|
|
440
455
|
//@ts-ignore
|
|
441
456
|
get gridAutoRows() {
|
|
442
457
|
return this.style.gridAutoRows;
|
|
443
458
|
}
|
|
459
|
+
[gridAutoRowsProperty.setNative](value) {
|
|
460
|
+
_setGridAutoRows(value, this);
|
|
461
|
+
}
|
|
444
462
|
//@ts-ignore
|
|
445
463
|
set gridAutoColumns(value) {
|
|
446
464
|
this.style.gridAutoColumns = value;
|
|
447
465
|
}
|
|
448
|
-
[gridAutoColumnsProperty.setNative](value) {
|
|
449
|
-
_setGridAutoColumns(value, this);
|
|
450
|
-
}
|
|
451
466
|
get gridAutoColumns() {
|
|
452
467
|
return this.style.gridAutoColumns;
|
|
453
468
|
}
|
|
469
|
+
[gridAutoColumnsProperty.setNative](value) {
|
|
470
|
+
_setGridAutoColumns(value, this);
|
|
471
|
+
}
|
|
454
472
|
set gridAutoFlow(value) {
|
|
455
473
|
this.style.gridAutoFlow = value;
|
|
456
474
|
}
|
|
457
|
-
[gridAutoFlowProperty.setNative](value) { }
|
|
458
475
|
get gridAutoFlow() {
|
|
459
476
|
return this.style.gridAutoFlow;
|
|
460
477
|
}
|
|
478
|
+
[gridAutoFlowProperty.setNative](value) {
|
|
479
|
+
_setGridAutoFlow(value, this);
|
|
480
|
+
}
|
|
461
481
|
set gridColumnStart(value) {
|
|
462
482
|
this.style.gridColumnStart = value;
|
|
463
483
|
}
|
|
464
|
-
[gridColumnStartProperty.setNative](value) {
|
|
465
|
-
_setGridColumnStart(value, this);
|
|
466
|
-
}
|
|
467
484
|
get gridColumnStart() {
|
|
468
485
|
return this.style.gridColumnStart;
|
|
469
486
|
}
|
|
487
|
+
[gridColumnStartProperty.setNative](value) {
|
|
488
|
+
_setGridColumnStart(value, this);
|
|
489
|
+
}
|
|
470
490
|
set gridColumnEnd(value) {
|
|
471
491
|
this.style.gridColumnEnd = value;
|
|
472
492
|
}
|
|
473
|
-
[gridColumnEndProperty.setNative](value) {
|
|
474
|
-
_setGridColumnEnd(value, this);
|
|
475
|
-
}
|
|
476
493
|
get gridColumnEnd() {
|
|
477
494
|
return this.style.gridColumnEnd;
|
|
478
495
|
}
|
|
496
|
+
[gridColumnEndProperty.setNative](value) {
|
|
497
|
+
_setGridColumnEnd(value, this);
|
|
498
|
+
}
|
|
479
499
|
set gridRowStart(value) {
|
|
480
500
|
this.style.gridRowStart = value;
|
|
481
501
|
}
|
|
482
|
-
[gridRowStartProperty.setNative](value) {
|
|
483
|
-
_setGridRowStart(value, this);
|
|
484
|
-
}
|
|
485
502
|
get gridRowStart() {
|
|
486
503
|
return this.style.gridRowStart;
|
|
487
504
|
}
|
|
505
|
+
[gridRowStartProperty.setNative](value) {
|
|
506
|
+
_setGridRowStart(value, this);
|
|
507
|
+
}
|
|
488
508
|
set gridRowEnd(value) {
|
|
489
509
|
this.style.gridRowEnd = value;
|
|
490
510
|
}
|
|
491
|
-
[gridRowEndProperty.setNative](value) {
|
|
492
|
-
_setGridRowEnd(value, this);
|
|
493
|
-
}
|
|
494
511
|
get gridRowEnd() {
|
|
495
512
|
return this.style.gridRowEnd;
|
|
496
513
|
}
|
|
514
|
+
[gridRowEndProperty.setNative](value) {
|
|
515
|
+
_setGridRowEnd(value, this);
|
|
516
|
+
}
|
|
497
517
|
set gridTemplateRows(value) {
|
|
498
518
|
this.style.gridTemplateRows = value;
|
|
499
519
|
}
|
|
@@ -512,6 +532,42 @@ export function overrideViewBase() {
|
|
|
512
532
|
_setGridTemplateColumns(templates, this);
|
|
513
533
|
}
|
|
514
534
|
}
|
|
535
|
+
get scrollBarWidth() {
|
|
536
|
+
return getScrollbarWidth(this);
|
|
537
|
+
}
|
|
538
|
+
set scrollBarWidth(value) {
|
|
539
|
+
this.style.scrollBarWidth = value;
|
|
540
|
+
}
|
|
541
|
+
[scrollBarWidthProperty.setNative](value) {
|
|
542
|
+
_setScrollbarWidth(value, this);
|
|
543
|
+
}
|
|
544
|
+
get overflow() {
|
|
545
|
+
return _getOverflow(this);
|
|
546
|
+
}
|
|
547
|
+
set overflow(value) {
|
|
548
|
+
this.style.overflow = value;
|
|
549
|
+
}
|
|
550
|
+
[overflowProperty.setNative](value) {
|
|
551
|
+
_setOverflow(value, this);
|
|
552
|
+
}
|
|
553
|
+
get overflowX() {
|
|
554
|
+
return _getOverflowX(this);
|
|
555
|
+
}
|
|
556
|
+
set overflowX(value) {
|
|
557
|
+
this.style.overflowX = value;
|
|
558
|
+
}
|
|
559
|
+
[overflowXProperty.setNative](value) {
|
|
560
|
+
_setOverflowX(value, this);
|
|
561
|
+
}
|
|
562
|
+
get overflowY() {
|
|
563
|
+
return _getOverflowY(this);
|
|
564
|
+
}
|
|
565
|
+
set overflowY(value) {
|
|
566
|
+
this.style.overflowY = value;
|
|
567
|
+
}
|
|
568
|
+
[overflowYProperty.setNative](value) {
|
|
569
|
+
_setOverflowY(value, this);
|
|
570
|
+
}
|
|
515
571
|
}
|
|
516
572
|
applyMixins(NSView, [ViewOverride], { overrideIfExists: '_isMasonViewOrChild' });
|
|
517
573
|
}
|
|
@@ -521,13 +577,57 @@ export function installMixins() {
|
|
|
521
577
|
overrideViewBase();
|
|
522
578
|
}
|
|
523
579
|
}
|
|
524
|
-
const emptyArray =
|
|
525
|
-
export const
|
|
526
|
-
name: '
|
|
527
|
-
cssName: '
|
|
580
|
+
const emptyArray = [];
|
|
581
|
+
export const scrollBarWidthProperty = new CssProperty({
|
|
582
|
+
name: 'scrollBarWidth',
|
|
583
|
+
cssName: 'scroll-bar-width',
|
|
528
584
|
defaultValue: 0,
|
|
529
585
|
valueConverter: parseFloat,
|
|
530
586
|
});
|
|
587
|
+
function overflowConverter(value) {
|
|
588
|
+
if (typeof value === 'number') {
|
|
589
|
+
switch (value) {
|
|
590
|
+
case 0:
|
|
591
|
+
return 'visible';
|
|
592
|
+
case 1:
|
|
593
|
+
return 'hidden';
|
|
594
|
+
case 2:
|
|
595
|
+
return 'scroll';
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
switch (value) {
|
|
599
|
+
case 'visible':
|
|
600
|
+
case 'hidden':
|
|
601
|
+
case 'scroll':
|
|
602
|
+
return value;
|
|
603
|
+
default:
|
|
604
|
+
return 'visible';
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
export const overflowProperty = new CssProperty({
|
|
608
|
+
name: 'overflow',
|
|
609
|
+
cssName: 'overflow',
|
|
610
|
+
defaultValue: 'visible',
|
|
611
|
+
valueConverter: overflowConverter,
|
|
612
|
+
});
|
|
613
|
+
export const overflowXProperty = new CssProperty({
|
|
614
|
+
name: 'overflowX',
|
|
615
|
+
cssName: 'overflow-x',
|
|
616
|
+
defaultValue: 'visible',
|
|
617
|
+
valueConverter: overflowConverter,
|
|
618
|
+
});
|
|
619
|
+
export const overflowYProperty = new CssProperty({
|
|
620
|
+
name: 'overflow',
|
|
621
|
+
cssName: 'overflow-y',
|
|
622
|
+
defaultValue: 'visible',
|
|
623
|
+
valueConverter: overflowConverter,
|
|
624
|
+
});
|
|
625
|
+
// export const flexGrowProperty = new CssProperty<Style, number>({
|
|
626
|
+
// name: 'flexGrow',
|
|
627
|
+
// cssName: 'flex-grow',
|
|
628
|
+
// defaultValue: 0,
|
|
629
|
+
// valueConverter: parseFloat,
|
|
630
|
+
// });
|
|
531
631
|
export const flexShrinkProperty = new CssProperty({
|
|
532
632
|
name: 'flexShrink',
|
|
533
633
|
cssName: 'flex-shrink',
|
|
@@ -547,12 +647,15 @@ export const displayProperty = new CssProperty({
|
|
|
547
647
|
return 'flex';
|
|
548
648
|
case 2:
|
|
549
649
|
return 'grid';
|
|
650
|
+
case 3:
|
|
651
|
+
return 'block';
|
|
550
652
|
}
|
|
551
653
|
}
|
|
552
654
|
switch (value) {
|
|
553
655
|
case 'none':
|
|
554
656
|
case 'flex':
|
|
555
657
|
case 'grid':
|
|
658
|
+
case 'block':
|
|
556
659
|
return value;
|
|
557
660
|
default:
|
|
558
661
|
// todo throw???
|
|
@@ -577,15 +680,15 @@ export const positionProperty = new CssProperty({
|
|
|
577
680
|
cssName: 'position',
|
|
578
681
|
defaultValue: 'relative',
|
|
579
682
|
});
|
|
580
|
-
export const flexDirectionProperty = new CssProperty({
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
});
|
|
584
|
-
export const flexWrapProperty = new CssProperty({
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
});
|
|
683
|
+
// export const flexDirectionProperty = new CssProperty<Style, FlexDirection>({
|
|
684
|
+
// name: 'flexDirection',
|
|
685
|
+
// cssName: 'flex-direction',
|
|
686
|
+
// });
|
|
687
|
+
// export const flexWrapProperty = new CssProperty<Style, FlexWrap>({
|
|
688
|
+
// name: 'flexWrap',
|
|
689
|
+
// cssName: 'flex-wrap',
|
|
690
|
+
// defaultValue: 'no-wrap',
|
|
691
|
+
// });
|
|
589
692
|
export const leftProperty = new CssProperty({
|
|
590
693
|
name: 'left',
|
|
591
694
|
cssName: 'left',
|
|
@@ -720,16 +823,16 @@ export const aspectRatioProperty = new CssProperty({
|
|
|
720
823
|
cssName: 'aspect-ratio',
|
|
721
824
|
defaultValue: Number.NaN,
|
|
722
825
|
});
|
|
723
|
-
export const alignItemsProperty = new CssProperty({
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
});
|
|
728
|
-
export const alignSelfProperty = new CssProperty({
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
});
|
|
826
|
+
// export const alignItemsProperty = new CssProperty<Style, AlignItems>({
|
|
827
|
+
// name: 'alignItems',
|
|
828
|
+
// cssName: 'align-items',
|
|
829
|
+
// defaultValue: 'normal',
|
|
830
|
+
// });
|
|
831
|
+
// export const alignSelfProperty = new CssProperty<Style, AlignSelf>({
|
|
832
|
+
// name: 'alignSelf',
|
|
833
|
+
// cssName: 'align-self',
|
|
834
|
+
// defaultValue: 'normal',
|
|
835
|
+
// });
|
|
733
836
|
export const alignContentProperty = new CssProperty({
|
|
734
837
|
name: 'alignContent',
|
|
735
838
|
cssName: 'align-content',
|
|
@@ -745,11 +848,11 @@ export const justifySelfProperty = new CssProperty({
|
|
|
745
848
|
cssName: 'justify-self',
|
|
746
849
|
defaultValue: 'normal',
|
|
747
850
|
});
|
|
748
|
-
export const justifyContentProperty = new CssProperty({
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
});
|
|
851
|
+
// export const justifyContentProperty = new CssProperty<Style, JustifyContent>({
|
|
852
|
+
// name: 'justifyContent',
|
|
853
|
+
// cssName: 'justify-content',
|
|
854
|
+
// defaultValue: 'normal',
|
|
855
|
+
// });
|
|
753
856
|
export const gridAutoRowsProperty = new CssProperty({
|
|
754
857
|
name: 'gridAutoRows',
|
|
755
858
|
cssName: 'grid-auto-rows',
|
|
@@ -961,6 +1064,91 @@ export const gridTemplateColumnsProperty = new CssProperty({
|
|
|
961
1064
|
cssName: 'grid-template-columns',
|
|
962
1065
|
defaultValue: '',
|
|
963
1066
|
});
|
|
1067
|
+
// flex-flow: <flex-direction> || <flex-wrap>
|
|
1068
|
+
const flexFlowProperty = new ShorthandProperty({
|
|
1069
|
+
name: 'flexFlow',
|
|
1070
|
+
cssName: 'flex-flow',
|
|
1071
|
+
getter: function () {
|
|
1072
|
+
return `${this.flexDirection} ${this.flexWrap}`;
|
|
1073
|
+
},
|
|
1074
|
+
converter: function (value) {
|
|
1075
|
+
const properties = [];
|
|
1076
|
+
if (value === unsetValue) {
|
|
1077
|
+
properties.push([flexDirectionProperty, value]);
|
|
1078
|
+
properties.push([flexWrapProperty, value]);
|
|
1079
|
+
}
|
|
1080
|
+
else {
|
|
1081
|
+
const trimmed = value && value.trim();
|
|
1082
|
+
if (trimmed) {
|
|
1083
|
+
const values = trimmed.split(/\s+/);
|
|
1084
|
+
if (values.length >= 1) {
|
|
1085
|
+
properties.push([flexDirectionProperty, values[0]]);
|
|
1086
|
+
}
|
|
1087
|
+
if (value.length >= 2) {
|
|
1088
|
+
properties.push([flexWrapProperty, values[1]]);
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
return properties;
|
|
1093
|
+
},
|
|
1094
|
+
});
|
|
1095
|
+
// flex: inital | auto | none | <flex-grow> <flex-shrink> || <flex-basis>
|
|
1096
|
+
const flexProperty = new ShorthandProperty({
|
|
1097
|
+
name: 'flex',
|
|
1098
|
+
cssName: 'flex',
|
|
1099
|
+
getter: function () {
|
|
1100
|
+
return `${this.flexGrow} ${this.flexShrink} ${this.flexBasis}`;
|
|
1101
|
+
},
|
|
1102
|
+
converter: function (value) {
|
|
1103
|
+
const properties = [];
|
|
1104
|
+
if (value === unsetValue) {
|
|
1105
|
+
properties.push([flexGrowProperty, value]);
|
|
1106
|
+
properties.push([flexShrinkProperty, value]);
|
|
1107
|
+
}
|
|
1108
|
+
else if (typeof value === 'number') {
|
|
1109
|
+
properties.push([flexGrowProperty, value]);
|
|
1110
|
+
properties.push([flexShrinkProperty, 1]);
|
|
1111
|
+
properties.push([flexBasisProperty, 'auto']);
|
|
1112
|
+
}
|
|
1113
|
+
else {
|
|
1114
|
+
const trimmed = value && value.trim();
|
|
1115
|
+
if (trimmed) {
|
|
1116
|
+
const values = trimmed.split(/\s+/);
|
|
1117
|
+
if (values.length === 1) {
|
|
1118
|
+
switch (values[0]) {
|
|
1119
|
+
case 'inital':
|
|
1120
|
+
properties.push([flexGrowProperty, 0]);
|
|
1121
|
+
properties.push([flexShrinkProperty, 1]);
|
|
1122
|
+
properties.push([flexBasisProperty, 'auto']);
|
|
1123
|
+
break;
|
|
1124
|
+
case 'auto':
|
|
1125
|
+
properties.push([flexGrowProperty, 1]);
|
|
1126
|
+
properties.push([flexShrinkProperty, 1]);
|
|
1127
|
+
properties.push([flexBasisProperty, 'auto']);
|
|
1128
|
+
break;
|
|
1129
|
+
case 'none':
|
|
1130
|
+
properties.push([flexGrowProperty, 0]);
|
|
1131
|
+
properties.push([flexShrinkProperty, 0]);
|
|
1132
|
+
properties.push([flexBasisProperty, 'auto']);
|
|
1133
|
+
break;
|
|
1134
|
+
default:
|
|
1135
|
+
properties.push([flexGrowProperty, values[0]]);
|
|
1136
|
+
properties.push([flexShrinkProperty, 1]);
|
|
1137
|
+
properties.push([flexBasisProperty, 'auto']);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
if (values.length >= 2) {
|
|
1141
|
+
properties.push([flexGrowProperty, values[0]]);
|
|
1142
|
+
properties.push([flexShrinkProperty, values[1]]);
|
|
1143
|
+
}
|
|
1144
|
+
if (value.length >= 3) {
|
|
1145
|
+
properties.push({ property: flexBasisProperty, value: values[2] });
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
return properties;
|
|
1150
|
+
},
|
|
1151
|
+
});
|
|
964
1152
|
let TSCViewBase = class TSCViewBase extends CustomLayoutView {
|
|
965
1153
|
constructor() {
|
|
966
1154
|
super();
|
|
@@ -972,479 +1160,6 @@ let TSCViewBase = class TSCViewBase extends CustomLayoutView {
|
|
|
972
1160
|
forceStyleUpdate() {
|
|
973
1161
|
_forceStyleUpdate(this);
|
|
974
1162
|
}
|
|
975
|
-
/*
|
|
976
|
-
markDirty() {
|
|
977
|
-
_markDirty(this as any);
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
isDirty() {
|
|
981
|
-
return _isDirty(this as any);
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
get display(): Display {
|
|
985
|
-
return _getDisplay(this as any);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
set display(value) {
|
|
989
|
-
this.style.display = value as any;
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
[displayProperty.setNative](value) {
|
|
993
|
-
console.log('displayProperty', 'view');
|
|
994
|
-
_setDisplay(value, this as any);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
set position(value) {
|
|
998
|
-
this.style.position = value;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
get position(): Position {
|
|
1002
|
-
return _getPosition(this as any);
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
[positionProperty.setNative](value) {
|
|
1006
|
-
_setPosition(value, this as any);
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
set flexDirection(value) {
|
|
1010
|
-
this.style.flexDirection = value;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
get flexDirection() {
|
|
1014
|
-
return _getFlexDirection(this as any);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
[flexDirectionProperty.setNative](value) {
|
|
1018
|
-
_setFlexDirection(value, this as any);
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
set flexWrap(value) {
|
|
1022
|
-
this.style.flexWrap = value as any;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
[flexWrapProperty.setNative](value) {
|
|
1026
|
-
_setFlexWrap(value, this as any);
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
get flexWrap() {
|
|
1030
|
-
return _getFlexWrap(this as any);
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
set alignItems(value) {
|
|
1034
|
-
this.style.alignItems = value as any;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
get alignItems() {
|
|
1038
|
-
return _getAlignItems(this as any);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
[alignItemsProperty.setNative](value) {
|
|
1042
|
-
_setAlignItems(value, this as any);
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
//@ts-ignore
|
|
1046
|
-
set alignSelf(value: AlignSelf) {
|
|
1047
|
-
this.style.alignSelf = value as any;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
//@ts-ignore
|
|
1051
|
-
get alignSelf() {
|
|
1052
|
-
return _getAlignSelf(this as any);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
[alignSelfProperty.setNative](value) {
|
|
1056
|
-
_setAlignSelf(value, this as any);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
set alignContent(value) {
|
|
1060
|
-
this.style.alignContent = value as any;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
[alignContentProperty.setNative](value) {
|
|
1064
|
-
_setAlignContent(value, this as any);
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
get alignContent() {
|
|
1068
|
-
return _getAlignContent(this as any);
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
set justifyItems(value) {
|
|
1072
|
-
this.style.justifyItems = value as any;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
[justifyItemsProperty.setNative](value) {
|
|
1076
|
-
_setJustifyItems(value, this as any);
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
get justifyItems() {
|
|
1080
|
-
return _getJustifyItems(this as any);
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
set justifySelf(value) {
|
|
1084
|
-
this.style.justifySelf = value as any;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
[justifySelfProperty.setNative](value) {
|
|
1088
|
-
_setJustifySelf(value, this as any);
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
get justifySelf() {
|
|
1092
|
-
return _getJustifySelf(this as any);
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
set justifyContent(value) {
|
|
1096
|
-
this.style.justifyContent = value as any;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
[justifyContentProperty.setNative](value) {
|
|
1100
|
-
_setJustifyContent(value, this as any);
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
get justifyContent() {
|
|
1104
|
-
return _getJustifyContent(this as any);
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
//@ts-ignore
|
|
1108
|
-
set left(value) {
|
|
1109
|
-
this.style.left = value;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
get left() {
|
|
1113
|
-
return this.style.left;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
[leftProperty.setNative](value) {
|
|
1117
|
-
_setLeft(value, this as any);
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
//@ts-ignore
|
|
1121
|
-
set right(value) {
|
|
1122
|
-
this.style.right = value;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
get right() {
|
|
1126
|
-
return this.style.right;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
[rightProperty.setNative](value) {
|
|
1130
|
-
_setRight(value, this as any);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
//@ts-ignore
|
|
1134
|
-
set top(value) {
|
|
1135
|
-
this.style.top = value;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
get top() {
|
|
1139
|
-
return this.style.top;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
[topProperty.setNative](value) {
|
|
1143
|
-
_setTop(value, this as any);
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
//@ts-ignore
|
|
1147
|
-
set bottom(value) {
|
|
1148
|
-
this.style.bottom = value;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
get bottom() {
|
|
1152
|
-
return this.style.bottom;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
[bottomProperty.setNative](value) {
|
|
1156
|
-
_setBottom(value, this as any);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
[marginLeftProperty.setNative](value) {
|
|
1160
|
-
_setMarginLeft(value, this as any);
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
[marginRightProperty.setNative](value) {
|
|
1164
|
-
_setMarginRight(value, this as any);
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
[marginTopProperty.setNative](value) {
|
|
1168
|
-
_setMarginTop(value, this as any);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
[marginBottomProperty.setNative](value) {
|
|
1172
|
-
_setMarginBottom(value, this as any);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
[borderLeftWidthProperty.setNative](value) {
|
|
1176
|
-
_setBorderLeft(value, this as any);
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
[borderRightWidthProperty.setNative](value) {
|
|
1180
|
-
_setBorderRight(value, this as any);
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
[borderTopWidthProperty.setNative](value) {
|
|
1184
|
-
_setBorderTop(value, this as any);
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
[borderBottomWidthProperty.setNative](value) {
|
|
1188
|
-
_setBorderBottom(value, this as any);
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
//@ts-ignore
|
|
1192
|
-
get flexGrow() {
|
|
1193
|
-
return _getFlexGrow(this as any);
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
set flexGrow(value) {
|
|
1197
|
-
this.style.flexGrow = value;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
[flexGrowProperty.setNative](value) {
|
|
1201
|
-
_setFlexGrow(value, this as any);
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
//@ts-ignore
|
|
1205
|
-
get flexShrink() {
|
|
1206
|
-
return _getFlexShrink(this as any);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
set flexShrink(value) {
|
|
1210
|
-
this.style.flexShrink = value;
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
[flexShrinkProperty.setNative](value) {
|
|
1214
|
-
_setFlexShrink(value, this as any);
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
//@ts-ignore
|
|
1218
|
-
get flexBasis() {
|
|
1219
|
-
return _getFlexBasis(this as any);
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
[flexBasisProperty.setNative](value) {
|
|
1223
|
-
_setFlexBasis(value, this as any);
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
// faster setter/getter
|
|
1227
|
-
//@ts-ignore
|
|
1228
|
-
get gap() {
|
|
1229
|
-
return _getGap(this as any);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
set gap(value) {
|
|
1233
|
-
this.style.gap = value;
|
|
1234
|
-
_setGap(value, this as any);
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
set rowGap(value) {
|
|
1240
|
-
this.style.rowGap = value;
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
[rowGapProperty.setNative](value) {
|
|
1244
|
-
_setRowGap(value, this as any);
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
set columnGap(value) {
|
|
1248
|
-
this.style.columnGap = value;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
[columnGapProperty.setNative](value) {
|
|
1252
|
-
_setColumnGap(value, this as any);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
get aspectRatio() {
|
|
1256
|
-
return _getAspectRatio(this as any);
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
[aspectRatioProperty.setNative](value) {
|
|
1260
|
-
_setAspectRatio(value, this as any);
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
[paddingLeftProperty.setNative](value) {
|
|
1264
|
-
_setPaddingLeft(value, this as any);
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
[paddingTopProperty.setNative](value) {
|
|
1268
|
-
_setPaddingTop(value, this as any);
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
[paddingRightProperty.setNative](value) {
|
|
1272
|
-
_setPaddingRight(value, this as any);
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
[paddingBottomProperty.setNative](value) {
|
|
1276
|
-
_setPaddingBottom(value, this as any);
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
//@ts-ignore
|
|
1280
|
-
set minWidth(value) {
|
|
1281
|
-
this.style.minWidth = value;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
[minWidthProperty.setNative](value) {
|
|
1285
|
-
_setMinWidth(value, this as any);
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
//@ts-ignore
|
|
1289
|
-
set minHeight(value) {
|
|
1290
|
-
this.style.minHeight = value;
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
[minHeightProperty.setNative](value) {
|
|
1294
|
-
_setMinHeight(value, this as any);
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
//@ts-ignore
|
|
1298
|
-
set width(value) {
|
|
1299
|
-
this.style.width = value;
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
[widthProperty.setNative](value) {
|
|
1303
|
-
_setWidth(value, this as any);
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
get width() {
|
|
1307
|
-
return _getWidth(this as any);
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
//@ts-ignore
|
|
1311
|
-
set height(value) {
|
|
1312
|
-
this.style.height = value;
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
[heightProperty.setNative](value) {
|
|
1316
|
-
_setHeight(value, this as any);
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
//@ts-ignore
|
|
1320
|
-
get height() {
|
|
1321
|
-
return _getHeight(this as any);
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
set maxWidth(value) {
|
|
1325
|
-
this.style.maxWidth = value;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
[maxWidthProperty.setNative](value) {
|
|
1329
|
-
_setMaxWidth(value, this as any);
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
//@ts-ignore
|
|
1333
|
-
set maxHeight(value) {
|
|
1334
|
-
this.style.maxHeight = value;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
[maxHeightProperty.setNative](value) {
|
|
1338
|
-
_setMaxHeight(value, this as any);
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
//@ts-ignore
|
|
1342
|
-
set gridAutoRows(value) {
|
|
1343
|
-
this.style.gridAutoRows = value;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
[gridAutoRowsProperty.setNative](value) {
|
|
1347
|
-
_setGridAutoRows(value, this as any);
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
//@ts-ignore
|
|
1351
|
-
get gridAutoRows() {
|
|
1352
|
-
return this.style.gridAutoRows;
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
//@ts-ignore
|
|
1356
|
-
set gridAutoColumns(value) {
|
|
1357
|
-
this.style.gridAutoColumns = value;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
[gridAutoColumnsProperty.setNative](value) {
|
|
1361
|
-
_setGridAutoColumns(value, this as any);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
get gridAutoColumns() {
|
|
1365
|
-
return this.style.gridAutoColumns;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
set gridAutoFlow(value) {
|
|
1369
|
-
this.style.gridAutoFlow = value;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
[gridAutoFlowProperty.setNative](value) {}
|
|
1373
|
-
|
|
1374
|
-
get gridAutoFlow() {
|
|
1375
|
-
return this.style.gridAutoFlow;
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
set gridColumnStart(value) {
|
|
1379
|
-
this.style.gridColumnStart = value;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
[gridColumnStartProperty.setNative](value) {
|
|
1383
|
-
_setGridColumnStart(value, this as any);
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
get gridColumnStart() {
|
|
1387
|
-
return this.style.gridColumnStart;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
set gridColumnEnd(value) {
|
|
1391
|
-
this.style.gridColumnEnd = value;
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
[gridColumnEndProperty.setNative](value) {
|
|
1395
|
-
_setGridColumnEnd(value, this as any);
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
get gridColumnEnd() {
|
|
1399
|
-
return this.style.gridColumnEnd;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
set gridRowStart(value) {
|
|
1403
|
-
this.style.gridRowStart = value;
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
[gridRowStartProperty.setNative](value) {
|
|
1407
|
-
_setGridRowStart(value, this as any);
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
get gridRowStart() {
|
|
1411
|
-
return this.style.gridRowStart;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
set gridRowEnd(value) {
|
|
1415
|
-
this.style.gridRowEnd = value;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
[gridRowEndProperty.setNative](value) {
|
|
1419
|
-
_setGridRowEnd(value, this as any);
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
get gridRowEnd() {
|
|
1423
|
-
return this.style.gridRowEnd;
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
set gridTemplateRows(value) {
|
|
1427
|
-
this.style.gridTemplateRows = value;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
[gridTemplateRowsProperty.setNative](value) {
|
|
1431
|
-
const templates = _parseGridTemplates(value);
|
|
1432
|
-
if (templates) {
|
|
1433
|
-
_setGridTemplateRows(templates, this as any);
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
set gridTemplateColumns(value) {
|
|
1438
|
-
this.style.gridTemplateColumns = value;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
[gridTemplateColumnsProperty.setNative](value) {
|
|
1442
|
-
const templates = _parseGridTemplates(value);
|
|
1443
|
-
if (templates) {
|
|
1444
|
-
_setGridTemplateColumns(templates, this as any);
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
*/
|
|
1448
1163
|
eachLayoutChild(callback) {
|
|
1449
1164
|
let lastChild = null;
|
|
1450
1165
|
this.eachChildView((cv) => {
|
|
@@ -1514,19 +1229,26 @@ TSCViewBase = __decorate([
|
|
|
1514
1229
|
__metadata("design:paramtypes", [])
|
|
1515
1230
|
], TSCViewBase);
|
|
1516
1231
|
export { TSCViewBase };
|
|
1232
|
+
/**
|
|
1233
|
+
* Props are already defined in core flexbox layout,
|
|
1234
|
+
* overriding them breaks the core flexbox layout.
|
|
1235
|
+
*/
|
|
1236
|
+
// flexDirectionProperty.register(Style);
|
|
1237
|
+
// flexWrapProperty.register(Style);
|
|
1238
|
+
// flexGrowProperty.register(Style);
|
|
1239
|
+
// flexShrinkProperty.register(Style);
|
|
1240
|
+
// alignItemsProperty.register(Style);
|
|
1241
|
+
// alignSelfProperty.register(Style);
|
|
1242
|
+
// justifyContentProperty.register(Style);
|
|
1517
1243
|
displayProperty.register(Style);
|
|
1518
1244
|
maxWidthProperty.register(Style);
|
|
1519
1245
|
maxHeightProperty.register(Style);
|
|
1520
1246
|
positionProperty.register(Style);
|
|
1521
|
-
flexDirectionProperty.register(Style);
|
|
1522
|
-
flexWrapProperty.register(Style);
|
|
1523
1247
|
leftProperty.register(Style);
|
|
1524
1248
|
rightProperty.register(Style);
|
|
1525
1249
|
topProperty.register(Style);
|
|
1526
1250
|
bottomProperty.register(Style);
|
|
1527
1251
|
flexBasisProperty.register(Style);
|
|
1528
|
-
flexGrowProperty.register(Style);
|
|
1529
|
-
flexShrinkProperty.register(Style);
|
|
1530
1252
|
rowGapProperty.register(Style);
|
|
1531
1253
|
columnGapProperty.register(Style);
|
|
1532
1254
|
gridRowGapProperty.register(Style);
|
|
@@ -1534,12 +1256,9 @@ gridColumnGapProperty.register(Style);
|
|
|
1534
1256
|
gapProperty.register(Style);
|
|
1535
1257
|
gridGapProperty.register(Style);
|
|
1536
1258
|
aspectRatioProperty.register(Style);
|
|
1537
|
-
alignItemsProperty.register(Style);
|
|
1538
|
-
alignSelfProperty.register(Style);
|
|
1539
1259
|
alignContentProperty.register(Style);
|
|
1540
1260
|
justifyItemsProperty.register(Style);
|
|
1541
1261
|
justifySelfProperty.register(Style);
|
|
1542
|
-
justifyContentProperty.register(Style);
|
|
1543
1262
|
gridAutoRowsProperty.register(Style);
|
|
1544
1263
|
gridAutoColumnsProperty.register(Style);
|
|
1545
1264
|
gridAutoFlowProperty.register(Style);
|
|
@@ -1552,5 +1271,11 @@ gridRowStartProperty.register(Style);
|
|
|
1552
1271
|
gridRowEndProperty.register(Style);
|
|
1553
1272
|
gridTemplateRowsProperty.register(Style);
|
|
1554
1273
|
gridTemplateColumnsProperty.register(Style);
|
|
1274
|
+
overflowProperty.register(Style);
|
|
1275
|
+
overflowXProperty.register(Style);
|
|
1276
|
+
overflowYProperty.register(Style);
|
|
1277
|
+
scrollBarWidthProperty.register(Style);
|
|
1278
|
+
flexFlowProperty.register(Style);
|
|
1279
|
+
flexProperty.register(Style);
|
|
1555
1280
|
installMixins();
|
|
1556
1281
|
//# sourceMappingURL=common.js.map
|