@furo/open-models 1.15.3 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +3545 -3545
- package/dist/protoc-gen-open-models/API_OPTIONS.d.ts +5 -0
- package/dist/protoc-gen-open-models/API_OPTIONS.js +11 -0
- package/dist/protoc-gen-open-models/API_OPTIONS.js.map +1 -0
- package/dist/protoc-gen-open-models/BusinessValidators.d.ts +1 -0
- package/dist/protoc-gen-open-models/BusinessValidators.js +201 -0
- package/dist/protoc-gen-open-models/BusinessValidators.js.map +1 -0
- package/dist/protoc-gen-open-models/CustomPrototypes.d.ts +1 -0
- package/dist/protoc-gen-open-models/CustomPrototypes.js +17 -0
- package/dist/protoc-gen-open-models/CustomPrototypes.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/Colour.d.ts +61 -0
- package/dist/protoc-gen-open-models/furo/cube/Colour.js +110 -0
- package/dist/protoc-gen-open-models/furo/cube/Colour.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeDefinition.d.ts +80 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeDefinition.js +131 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeDefinition.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeEntity.d.ts +57 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeEntity.js +94 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeEntity.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeService.d.ts +12 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeService.js +14 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeService.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListRequest.d.ts +31 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListRequest.js +58 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListRequest.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListResponse.d.ts +26 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListResponse.js +57 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListResponse.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetRequest.d.ts +44 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetRequest.js +79 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetRequest.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetResponse.d.ts +26 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetResponse.js +57 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetResponse.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateRequest.d.ts +37 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateRequest.js +73 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateRequest.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateResponse.d.ts +26 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateResponse.js +57 -0
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateResponse.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/Materials.d.ts +12 -0
- package/dist/protoc-gen-open-models/furo/cube/Materials.js +21 -0
- package/dist/protoc-gen-open-models/furo/cube/Materials.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/cube/Wrappers.d.ts +65 -0
- package/dist/protoc-gen-open-models/furo/cube/Wrappers.js +168 -0
- package/dist/protoc-gen-open-models/furo/cube/Wrappers.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.AttributesEntry.d.ts +50 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.AttributesEntry.js +83 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.LabelsEntry.d.ts +50 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.LabelsEntry.js +83 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.d.ts +74 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.js +96 -0
- package/dist/protoc-gen-open-models/furo/fat/Any.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.LabelsEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Bool.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.LabelsEntry.js +76 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Bytes.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/DecimalRange.d.ts +58 -0
- package/dist/protoc-gen-open-models/furo/fat/DecimalRange.js +82 -0
- package/dist/protoc-gen-open-models/furo/fat/DecimalRange.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.LabelsEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Double.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.LabelsEntry.js +76 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.d.ts +57 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.js +78 -0
- package/dist/protoc-gen-open-models/furo/fat/Empty.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.LabelsEntry.js +76 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Float.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.LabelsEntry.js +76 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Int32.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.LabelsEntry.js +76 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Int64.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/String.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/String.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/String.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/String.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/String.LabelsEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/String.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/String.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/String.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/String.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.LabelsEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint32.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.AttributesEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.AttributesEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.LabelsEntry.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.LabelsEntry.js +75 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.LabelsEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.d.ts +68 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.js +94 -0
- package/dist/protoc-gen-open-models/furo/fat/Uint64.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/BookingCenter.d.ts +11 -0
- package/dist/protoc-gen-open-models/furo/type/BookingCenter.js +15 -0
- package/dist/protoc-gen-open-models/furo/type/BookingCenter.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/ConstraintWrappers.d.ts +75 -0
- package/dist/protoc-gen-open-models/furo/type/ConstraintWrappers.js +230 -0
- package/dist/protoc-gen-open-models/furo/type/ConstraintWrappers.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Decimal.d.ts +37 -0
- package/dist/protoc-gen-open-models/furo/type/Decimal.js +61 -0
- package/dist/protoc-gen-open-models/furo/type/Decimal.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/DecimalB.d.ts +37 -0
- package/dist/protoc-gen-open-models/furo/type/DecimalB.js +61 -0
- package/dist/protoc-gen-open-models/furo/type/DecimalB.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/DecimalRange.d.ts +58 -0
- package/dist/protoc-gen-open-models/furo/type/DecimalRange.js +82 -0
- package/dist/protoc-gen-open-models/furo/type/DecimalRange.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/DeepRecursion.d.ts +31 -0
- package/dist/protoc-gen-open-models/furo/type/DeepRecursion.js +72 -0
- package/dist/protoc-gen-open-models/furo/type/DeepRecursion.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Defaults.AttributesEntry.d.ts +30 -0
- package/dist/protoc-gen-open-models/furo/type/Defaults.AttributesEntry.js +70 -0
- package/dist/protoc-gen-open-models/furo/type/Defaults.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Defaults.d.ts +111 -0
- package/dist/protoc-gen-open-models/furo/type/Defaults.js +222 -0
- package/dist/protoc-gen-open-models/furo/type/Defaults.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Identifier.AttributesEntry.d.ts +30 -0
- package/dist/protoc-gen-open-models/furo/type/Identifier.AttributesEntry.js +70 -0
- package/dist/protoc-gen-open-models/furo/type/Identifier.AttributesEntry.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Identifier.d.ts +117 -0
- package/dist/protoc-gen-open-models/furo/type/Identifier.js +215 -0
- package/dist/protoc-gen-open-models/furo/type/Identifier.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Numeric.d.ts +42 -0
- package/dist/protoc-gen-open-models/furo/type/Numeric.js +81 -0
- package/dist/protoc-gen-open-models/furo/type/Numeric.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Numeric64.d.ts +47 -0
- package/dist/protoc-gen-open-models/furo/type/Numeric64.js +95 -0
- package/dist/protoc-gen-open-models/furo/type/Numeric64.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Other.d.ts +26 -0
- package/dist/protoc-gen-open-models/furo/type/Other.js +57 -0
- package/dist/protoc-gen-open-models/furo/type/Other.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/RefSystem.d.ts +13 -0
- package/dist/protoc-gen-open-models/furo/type/RefSystem.js +17 -0
- package/dist/protoc-gen-open-models/furo/type/RefSystem.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/RefType.d.ts +53 -0
- package/dist/protoc-gen-open-models/furo/type/RefType.js +57 -0
- package/dist/protoc-gen-open-models/furo/type/RefType.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Tree.d.ts +53 -0
- package/dist/protoc-gen-open-models/furo/type/Tree.js +90 -0
- package/dist/protoc-gen-open-models/furo/type/Tree.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Uints.d.ts +46 -0
- package/dist/protoc-gen-open-models/furo/type/Uints.js +113 -0
- package/dist/protoc-gen-open-models/furo/type/Uints.js.map +1 -0
- package/dist/protoc-gen-open-models/furo/type/Wrappers.d.ts +65 -0
- package/dist/protoc-gen-open-models/furo/type/Wrappers.js +168 -0
- package/dist/protoc-gen-open-models/furo/type/Wrappers.js.map +1 -0
- package/dist/protoc-gen-open-models/google/api/CustomHttpPattern.d.ts +45 -0
- package/dist/protoc-gen-open-models/google/api/CustomHttpPattern.js +77 -0
- package/dist/protoc-gen-open-models/google/api/CustomHttpPattern.js.map +1 -0
- package/dist/protoc-gen-open-models/google/api/Http.d.ts +66 -0
- package/dist/protoc-gen-open-models/google/api/Http.js +93 -0
- package/dist/protoc-gen-open-models/google/api/Http.js.map +1 -0
- package/dist/protoc-gen-open-models/google/api/HttpRule.d.ts +985 -0
- package/dist/protoc-gen-open-models/google/api/HttpRule.js +514 -0
- package/dist/protoc-gen-open-models/google/api/HttpRule.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/Any.d.ts +356 -0
- package/dist/protoc-gen-open-models/google/protobuf/Any.js +217 -0
- package/dist/protoc-gen-open-models/google/protobuf/Any.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/BoolValue.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/BoolValue.js +62 -0
- package/dist/protoc-gen-open-models/google/protobuf/BoolValue.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/BytesValue.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/BytesValue.js +62 -0
- package/dist/protoc-gen-open-models/google/protobuf/BytesValue.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ExtensionRange.d.ts +36 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ExtensionRange.js +85 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ExtensionRange.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ReservedRange.d.ts +30 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ReservedRange.js +70 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ReservedRange.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.d.ts +87 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.js +194 -0
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/DoubleValue.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/DoubleValue.js +63 -0
- package/dist/protoc-gen-open-models/google/protobuf/DoubleValue.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/Edition.d.ts +11 -0
- package/dist/protoc-gen-open-models/google/protobuf/Edition.js +26 -0
- package/dist/protoc-gen-open-models/google/protobuf/Edition.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.EnumReservedRange.d.ts +30 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.EnumReservedRange.js +71 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.EnumReservedRange.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.d.ts +69 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.js +127 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumOptions.d.ts +95 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumOptions.js +143 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueDescriptorProto.d.ts +39 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueDescriptorProto.js +87 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueOptions.d.ts +76 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueOptions.js +120 -0
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.Declaration.d.ts +81 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.Declaration.js +132 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.Declaration.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.VerificationState.d.ts +4 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.VerificationState.js +8 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.VerificationState.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.d.ts +76 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.js +120 -0
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.EnumType.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.EnumType.js +15 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.EnumType.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.FieldPresence.d.ts +6 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.FieldPresence.js +16 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.FieldPresence.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.JsonFormat.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.JsonFormat.js +15 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.JsonFormat.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.MessageEncoding.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.MessageEncoding.js +15 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.MessageEncoding.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.RepeatedFieldEncoding.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.RepeatedFieldEncoding.js +15 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.RepeatedFieldEncoding.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.Utf8Validation.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.Utf8Validation.js +15 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.Utf8Validation.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.d.ts +74 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.js +140 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.FeatureSetEditionDefault.d.ts +32 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.FeatureSetEditionDefault.js +73 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.FeatureSetEditionDefault.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.d.ts +65 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.js +100 -0
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Label.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Label.js +10 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Label.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Type.d.ts +20 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Type.js +25 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Type.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.d.ts +189 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.js +282 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.CType.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.CType.js +9 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.CType.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.EditionDefault.d.ts +31 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.EditionDefault.js +71 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.EditionDefault.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.JSType.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.JSType.js +9 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.JSType.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionRetention.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionRetention.js +9 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionRetention.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionTargetType.d.ts +12 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionTargetType.js +16 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionTargetType.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.d.ts +264 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.js +364 -0
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorProto.d.ts +151 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorProto.js +262 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorSet.d.ts +32 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorSet.js +61 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorSet.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.OptimizeMode.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.OptimizeMode.js +9 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.OptimizeMode.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.d.ts +333 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.js +482 -0
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/FloatValue.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/FloatValue.js +62 -0
- package/dist/protoc-gen-open-models/google/protobuf/FloatValue.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.Semantic.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.Semantic.js +12 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.Semantic.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.d.ts +78 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.js +130 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.d.ts +43 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.js +66 -0
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/Int32Value.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/Int32Value.js +62 -0
- package/dist/protoc-gen-open-models/google/protobuf/Int32Value.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/Int64Value.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/Int64Value.js +62 -0
- package/dist/protoc-gen-open-models/google/protobuf/Int64Value.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/MessageOptions.d.ts +201 -0
- package/dist/protoc-gen-open-models/google/protobuf/MessageOptions.js +259 -0
- package/dist/protoc-gen-open-models/google/protobuf/MessageOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodDescriptorProto.d.ts +74 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodDescriptorProto.js +138 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.IdempotencyLevel.d.ts +5 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.IdempotencyLevel.js +9 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.IdempotencyLevel.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.d.ts +67 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.js +115 -0
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/OneofDescriptorProto.d.ts +34 -0
- package/dist/protoc-gen-open-models/google/protobuf/OneofDescriptorProto.js +73 -0
- package/dist/protoc-gen-open-models/google/protobuf/OneofDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/OneofOptions.d.ts +44 -0
- package/dist/protoc-gen-open-models/google/protobuf/OneofOptions.js +77 -0
- package/dist/protoc-gen-open-models/google/protobuf/OneofOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/ServiceDescriptorProto.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/ServiceDescriptorProto.js +87 -0
- package/dist/protoc-gen-open-models/google/protobuf/ServiceDescriptorProto.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/ServiceOptions.d.ts +61 -0
- package/dist/protoc-gen-open-models/google/protobuf/ServiceOptions.js +99 -0
- package/dist/protoc-gen-open-models/google/protobuf/ServiceOptions.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.Location.d.ts +207 -0
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.Location.js +262 -0
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.Location.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.d.ts +122 -0
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.js +147 -0
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/StringValue.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/StringValue.js +63 -0
- package/dist/protoc-gen-open-models/google/protobuf/StringValue.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/UInt32Value.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/UInt32Value.js +63 -0
- package/dist/protoc-gen-open-models/google/protobuf/UInt32Value.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/UInt64Value.d.ts +40 -0
- package/dist/protoc-gen-open-models/google/protobuf/UInt64Value.js +63 -0
- package/dist/protoc-gen-open-models/google/protobuf/UInt64Value.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.NamePart.d.ts +30 -0
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.NamePart.js +70 -0
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.NamePart.js.map +1 -0
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.d.ts +82 -0
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.js +153 -0
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.js.map +1 -0
- package/dist/protoc-gen-open-models/init.d.ts +10 -0
- package/dist/protoc-gen-open-models/init.js +10 -0
- package/dist/protoc-gen-open-models/init.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/AdditionalPropertiesItem.d.ts +31 -0
- package/dist/protoc-gen-open-models/openapiv3/AdditionalPropertiesItem.js +71 -0
- package/dist/protoc-gen-open-models/openapiv3/AdditionalPropertiesItem.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Any.d.ts +30 -0
- package/dist/protoc-gen-open-models/openapiv3/Any.js +70 -0
- package/dist/protoc-gen-open-models/openapiv3/Any.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/AnyOrExpression.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/AnyOrExpression.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/AnyOrExpression.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Callback.d.ts +35 -0
- package/dist/protoc-gen-open-models/openapiv3/Callback.js +74 -0
- package/dist/protoc-gen-open-models/openapiv3/Callback.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/CallbackOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/CallbackOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/CallbackOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/CallbacksOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/CallbacksOrReferences.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/CallbacksOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Components.d.ts +83 -0
- package/dist/protoc-gen-open-models/openapiv3/Components.js +194 -0
- package/dist/protoc-gen-open-models/openapiv3/Components.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Contact.d.ts +44 -0
- package/dist/protoc-gen-open-models/openapiv3/Contact.js +101 -0
- package/dist/protoc-gen-open-models/openapiv3/Contact.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/DefaultType.d.ts +35 -0
- package/dist/protoc-gen-open-models/openapiv3/DefaultType.js +85 -0
- package/dist/protoc-gen-open-models/openapiv3/DefaultType.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Discriminator.d.ts +40 -0
- package/dist/protoc-gen-open-models/openapiv3/Discriminator.js +89 -0
- package/dist/protoc-gen-open-models/openapiv3/Discriminator.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Document.d.ts +73 -0
- package/dist/protoc-gen-open-models/openapiv3/Document.js +176 -0
- package/dist/protoc-gen-open-models/openapiv3/Document.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Encoding.d.ts +55 -0
- package/dist/protoc-gen-open-models/openapiv3/Encoding.js +130 -0
- package/dist/protoc-gen-open-models/openapiv3/Encoding.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Encodings.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/Encodings.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/Encodings.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Example.d.ts +47 -0
- package/dist/protoc-gen-open-models/openapiv3/Example.js +114 -0
- package/dist/protoc-gen-open-models/openapiv3/Example.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ExampleOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/ExampleOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/ExampleOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ExamplesOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/ExamplesOrReferences.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/ExamplesOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Expression.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/Expression.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/Expression.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ExternalDocs.d.ts +39 -0
- package/dist/protoc-gen-open-models/openapiv3/ExternalDocs.js +88 -0
- package/dist/protoc-gen-open-models/openapiv3/ExternalDocs.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Header.d.ts +88 -0
- package/dist/protoc-gen-open-models/openapiv3/Header.js +217 -0
- package/dist/protoc-gen-open-models/openapiv3/Header.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/HeaderOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/HeaderOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/HeaderOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/HeadersOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/HeadersOrReferences.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/HeadersOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Info.d.ts +66 -0
- package/dist/protoc-gen-open-models/openapiv3/Info.js +159 -0
- package/dist/protoc-gen-open-models/openapiv3/Info.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ItemsItem.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/ItemsItem.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/ItemsItem.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/License.d.ts +39 -0
- package/dist/protoc-gen-open-models/openapiv3/License.js +87 -0
- package/dist/protoc-gen-open-models/openapiv3/License.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Link.d.ts +61 -0
- package/dist/protoc-gen-open-models/openapiv3/Link.js +145 -0
- package/dist/protoc-gen-open-models/openapiv3/Link.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/LinkOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/LinkOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/LinkOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/LinksOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/LinksOrReferences.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/LinksOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/MediaType.d.ts +53 -0
- package/dist/protoc-gen-open-models/openapiv3/MediaType.js +119 -0
- package/dist/protoc-gen-open-models/openapiv3/MediaType.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/MediaTypes.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/MediaTypes.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/MediaTypes.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedAny.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedAny.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedAny.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedCallbackOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedCallbackOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedCallbackOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedEncoding.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedEncoding.js +78 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedEncoding.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedExampleOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedExampleOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedExampleOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedHeaderOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedHeaderOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedHeaderOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedLinkOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedLinkOrReference.js +78 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedLinkOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedMediaType.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedMediaType.js +78 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedMediaType.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedParameterOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedParameterOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedParameterOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedPathItem.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedPathItem.js +78 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedPathItem.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedRequestBodyOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedRequestBodyOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedRequestBodyOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedResponseOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedResponseOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedResponseOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedSchemaOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedSchemaOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedSchemaOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedSecuritySchemeOrReference.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedSecuritySchemeOrReference.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedSecuritySchemeOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedServerVariable.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedServerVariable.js +78 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedServerVariable.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedString.d.ts +45 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedString.js +77 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedString.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedStringArray.d.ts +46 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedStringArray.js +79 -0
- package/dist/protoc-gen-open-models/openapiv3/NamedStringArray.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/OauthFlow.d.ts +50 -0
- package/dist/protoc-gen-open-models/openapiv3/OauthFlow.js +116 -0
- package/dist/protoc-gen-open-models/openapiv3/OauthFlow.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/OauthFlows.d.ts +50 -0
- package/dist/protoc-gen-open-models/openapiv3/OauthFlows.js +116 -0
- package/dist/protoc-gen-open-models/openapiv3/OauthFlows.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Object.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/Object.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/Object.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Operation.d.ts +96 -0
- package/dist/protoc-gen-open-models/openapiv3/Operation.js +234 -0
- package/dist/protoc-gen-open-models/openapiv3/Operation.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Parameter.d.ts +98 -0
- package/dist/protoc-gen-open-models/openapiv3/Parameter.js +245 -0
- package/dist/protoc-gen-open-models/openapiv3/Parameter.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ParameterOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/ParameterOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/ParameterOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ParametersOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/ParametersOrReferences.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/ParametersOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/PathItem.d.ts +97 -0
- package/dist/protoc-gen-open-models/openapiv3/PathItem.js +244 -0
- package/dist/protoc-gen-open-models/openapiv3/PathItem.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Paths.d.ts +35 -0
- package/dist/protoc-gen-open-models/openapiv3/Paths.js +74 -0
- package/dist/protoc-gen-open-models/openapiv3/Paths.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Properties.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/Properties.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/Properties.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Reference.d.ts +38 -0
- package/dist/protoc-gen-open-models/openapiv3/Reference.js +86 -0
- package/dist/protoc-gen-open-models/openapiv3/Reference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBodiesOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBodiesOrReferences.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBodiesOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBody.d.ts +45 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBody.js +102 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBody.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBodyOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBodyOrReference.js +72 -0
- package/dist/protoc-gen-open-models/openapiv3/RequestBodyOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Response.d.ts +52 -0
- package/dist/protoc-gen-open-models/openapiv3/Response.js +118 -0
- package/dist/protoc-gen-open-models/openapiv3/Response.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ResponseOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/ResponseOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/ResponseOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Responses.d.ts +41 -0
- package/dist/protoc-gen-open-models/openapiv3/Responses.js +89 -0
- package/dist/protoc-gen-open-models/openapiv3/Responses.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ResponsesOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/ResponsesOrReferences.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/ResponsesOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Schema.d.ts +213 -0
- package/dist/protoc-gen-open-models/openapiv3/Schema.js +558 -0
- package/dist/protoc-gen-open-models/openapiv3/Schema.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SchemaOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/SchemaOrReference.js +73 -0
- package/dist/protoc-gen-open-models/openapiv3/SchemaOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SchemasOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/SchemasOrReferences.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/SchemasOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SecurityRequirement.d.ts +29 -0
- package/dist/protoc-gen-open-models/openapiv3/SecurityRequirement.js +60 -0
- package/dist/protoc-gen-open-models/openapiv3/SecurityRequirement.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SecurityScheme.d.ts +70 -0
- package/dist/protoc-gen-open-models/openapiv3/SecurityScheme.js +173 -0
- package/dist/protoc-gen-open-models/openapiv3/SecurityScheme.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemeOrReference.d.ts +32 -0
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemeOrReference.js +72 -0
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemeOrReference.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemesOrReferences.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemesOrReferences.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemesOrReferences.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Server.d.ts +45 -0
- package/dist/protoc-gen-open-models/openapiv3/Server.js +101 -0
- package/dist/protoc-gen-open-models/openapiv3/Server.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ServerVariable.d.ts +44 -0
- package/dist/protoc-gen-open-models/openapiv3/ServerVariable.js +102 -0
- package/dist/protoc-gen-open-models/openapiv3/ServerVariable.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/ServerVariables.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/ServerVariables.js +58 -0
- package/dist/protoc-gen-open-models/openapiv3/ServerVariables.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/SpecificationExtension.d.ts +38 -0
- package/dist/protoc-gen-open-models/openapiv3/SpecificationExtension.js +86 -0
- package/dist/protoc-gen-open-models/openapiv3/SpecificationExtension.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/StringArray.d.ts +25 -0
- package/dist/protoc-gen-open-models/openapiv3/StringArray.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/StringArray.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Strings.d.ts +26 -0
- package/dist/protoc-gen-open-models/openapiv3/Strings.js +57 -0
- package/dist/protoc-gen-open-models/openapiv3/Strings.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Tag.d.ts +45 -0
- package/dist/protoc-gen-open-models/openapiv3/Tag.js +102 -0
- package/dist/protoc-gen-open-models/openapiv3/Tag.js.map +1 -0
- package/dist/protoc-gen-open-models/openapiv3/Xml.d.ts +54 -0
- package/dist/protoc-gen-open-models/openapiv3/Xml.js +129 -0
- package/dist/protoc-gen-open-models/openapiv3/Xml.js.map +1 -0
- package/dist/web-components/furo-type-renderer.d.ts +6 -0
- package/dist/web-components/furo-type-renderer.js +3 -0
- package/dist/web-components/furo-type-renderer.js.map +1 -0
- package/dist/web-components/impl/TypeRenderer/TypeRenderer.d.ts +158 -0
- package/dist/web-components/impl/TypeRenderer/TypeRenderer.js +309 -0
- package/dist/web-components/impl/TypeRenderer/TypeRenderer.js.map +1 -0
- package/dist/web-components/impl/TypeRenderer/index.d.ts +6 -0
- package/dist/web-components/impl/TypeRenderer/index.js +3 -0
- package/dist/web-components/impl/TypeRenderer/index.js.map +1 -0
- package/package.json +18 -15
- package/tsconfig.json +0 -44
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Xml.js","sourceRoot":"","sources":["../../../protoc-gen-open-models/openapiv3/Xml.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,uCAAuC;AAEvC,OAAO,EACL,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,MAAM,GACP,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,QAAQ,IAAI,iBAAiB,GAG9B,MAAM,YAAY,CAAC;AA4BpB;;;GAGG;AACH,MAAM,OAAO,GAAI,SAAQ,SAAS;IAehC,YACE,QAAe,EACf,MAAkB,EAClB,mBAA4B;QAE5B,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,gBAAgB,CAAC;QACxC,IAAI,CAAC,MAAM,CAAC,WAAW;YACrB,uQAAuQ,CAAC;QAE1Q,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG;YACvB;gBACE,SAAS,EAAE,MAAM;gBACjB,SAAS,EAAE,MAAM;gBACjB,gBAAgB,EAAE,MAAM;gBACxB,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;aAChB;YACD;gBACE,SAAS,EAAE,WAAW;gBACtB,SAAS,EAAE,WAAW;gBACtB,gBAAgB,EAAE,MAAM;gBACxB,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;aAChB;YACD;gBACE,SAAS,EAAE,QAAQ;gBACnB,SAAS,EAAE,QAAQ;gBACnB,gBAAgB,EAAE,MAAM;gBACxB,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;aAChB;YACD;gBACE,SAAS,EAAE,WAAW;gBACtB,SAAS,EAAE,WAAW;gBACtB,gBAAgB,EAA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C,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,IAAW,sBAAsB;QAI/B,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACtC,CAAC;IAED,IAAW,sBAAsB,CAAC,CAAuB;QACvD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,WAAW,CAAC,IAAU;QACpB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,SAAS;QACP,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;CACF;AAED,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC","sourcesContent":["// Code generated by furo protoc-gen-open-models. DO NOT EDIT.\n// protoc-gen-open-models version: ????\n\nimport {\n ARRAY,\n BOOLEAN,\n FieldNode,\n Registry,\n STRING,\n} from '@furo/open-models/dist/index';\nimport {\n NamedAny as OpenapiV3NamedAny,\n type INamedAny as IOpenapiV3NamedAny,\n type TNamedAny as TOpenapiV3NamedAny,\n} from './NamedAny';\n\n/**\n * @interface IXml\n * A metadata object that allows for more fine-tuned XML model definitions. When using arrays, XML element names are *not* inferred (for singular/plural forms) and the `name` property SHOULD be used to add that information. See examples for expected behavior.\n */\nexport interface IXml {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n specificationExtension?: IOpenapiV3NamedAny[];\n}\n\n/**\n * @interface TXml\n * A metadata object that allows for more fine-tuned XML model definitions. When using arrays, XML element names are *not* inferred (for singular/plural forms) and the `name` property SHOULD be used to add that information. See examples for expected behavior.\n */\nexport interface TXml {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n specification_extension?: TOpenapiV3NamedAny[];\n}\n\n/**\n * Xml\n * A metadata object that allows for more fine-tuned XML model definitions. When using arrays, XML element names are *not* inferred (for singular/plural forms) and the `name` property SHOULD be used to add that information. See examples for expected behavior.\n */\nexport class Xml extends FieldNode {\n private _name: STRING;\n\n private _namespace: STRING;\n\n private _prefix: STRING;\n\n private _attribute: BOOLEAN;\n\n private _wrapped: BOOLEAN;\n\n private _specificationExtension: ARRAY<OpenapiV3NamedAny, IOpenapiV3NamedAny>;\n\n public __defaultValues: IXml;\n\n constructor(\n initData?: IXml,\n parent?: FieldNode,\n parentAttributeName?: string,\n ) {\n super(undefined, parent, parentAttributeName);\n this.__meta.typeName = 'openapi.v3.Xml';\n this.__meta.description =\n 'Xml A metadata object that allows for more fine-tuned XML model definitions. When using arrays, XML element names are *not* inferred (for singular/plural forms) and the `name` property SHOULD be used to add that information. See examples for expected behavior.';\n\n this.__meta.nodeFields = [\n {\n fieldName: 'name',\n protoName: 'name',\n FieldConstructor: STRING,\n constraints: {},\n description: '',\n },\n {\n fieldName: 'namespace',\n protoName: 'namespace',\n FieldConstructor: STRING,\n constraints: {},\n description: '',\n },\n {\n fieldName: 'prefix',\n protoName: 'prefix',\n FieldConstructor: STRING,\n constraints: {},\n description: '',\n },\n {\n fieldName: 'attribute',\n protoName: 'attribute',\n FieldConstructor: BOOLEAN,\n constraints: {},\n description: '',\n },\n {\n fieldName: 'wrapped',\n protoName: 'wrapped',\n FieldConstructor: BOOLEAN,\n constraints: {},\n description: '',\n },\n {\n fieldName: 'specificationExtension',\n protoName: 'specification_extension',\n FieldConstructor: OpenapiV3NamedAny,\n constraints: {},\n description: '',\n },\n ];\n\n // Initialize the fields\n this._name = new STRING(undefined, this, 'name');\n\n this._namespace = new STRING(undefined, this, 'namespace');\n\n this._prefix = new STRING(undefined, this, 'prefix');\n\n this._attribute = new BOOLEAN(undefined, this, 'attribute');\n\n this._wrapped = new BOOLEAN(undefined, this, 'wrapped');\n\n this._specificationExtension = new ARRAY<\n OpenapiV3NamedAny,\n IOpenapiV3NamedAny\n >(undefined, this, 'specificationExtension');\n\n // Set required fields\n [].forEach(fieldName => {\n (this[fieldName as keyof Xml] as FieldNode).__meta.required = true;\n });\n\n // Default values from openAPI annotations\n this.__defaultValues = {};\n\n // Initialize the fields with init data\n if (initData !== undefined) {\n this.__fromLiteral({ ...this.__defaultValues, ...initData });\n } else {\n this.__fromLiteral(this.__defaultValues);\n }\n\n // Set readonly fields after the init, so child nodes are readonly too\n [].forEach(fieldName => {\n (this[fieldName as keyof Xml] as FieldNode).__readonly = true;\n });\n\n this.__meta.isPristine = true;\n }\n\n public get name(): STRING {\n return this._name;\n }\n\n public set name(v: string) {\n this.__PrimitivesSetter(this._name, v);\n }\n\n public get namespace(): STRING {\n return this._namespace;\n }\n\n public set namespace(v: string) {\n this.__PrimitivesSetter(this._namespace, v);\n }\n\n public get prefix(): STRING {\n return this._prefix;\n }\n\n public set prefix(v: string) {\n this.__PrimitivesSetter(this._prefix, v);\n }\n\n public get attribute(): BOOLEAN {\n return this._attribute;\n }\n\n public set attribute(v: boolean) {\n this.__PrimitivesSetter(this._attribute, v);\n }\n\n public get wrapped(): BOOLEAN {\n return this._wrapped;\n }\n\n public set wrapped(v: boolean) {\n this.__PrimitivesSetter(this._wrapped, v);\n }\n\n public get specificationExtension(): ARRAY<\n OpenapiV3NamedAny,\n IOpenapiV3NamedAny\n > {\n return this._specificationExtension;\n }\n\n public set specificationExtension(v: IOpenapiV3NamedAny[]) {\n this.__TypeSetter(this._specificationExtension, v);\n }\n\n fromLiteral(data: IXml) {\n super.__fromLiteral(data);\n }\n\n toLiteral(): IXml {\n return super.__toLiteral();\n }\n}\n\nRegistry.register('openapi.v3.Xml', Xml);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"furo-type-renderer.js","sourceRoot":"","sources":["../../src/web-components/furo-type-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import { TypeRenderer } from './impl/TypeRenderer/TypeRenderer';\n\nwindow.customElements.define('furo-type-renderer', TypeRenderer);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'furo-type-renderer': TypeRenderer;\n }\n}\n"]}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { FieldNode } from '../../../FieldNode.js';
|
|
3
|
+
interface Bindable<T = FieldNode> extends HTMLElement {
|
|
4
|
+
/**
|
|
5
|
+
* Binds field data to the renderer component.
|
|
6
|
+
* Components should use this method or the `model` PROPERTY to initialize their state and render.
|
|
7
|
+
*
|
|
8
|
+
* @param model - The FieldNode containing the data to display/edit
|
|
9
|
+
*/
|
|
10
|
+
bindData(model: T): void;
|
|
11
|
+
model: T;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The furo-type-renderer is used to display type specific data. It uses **display** as default context and will warn you
|
|
15
|
+
* on the console if the requested `context-[type-name]` does not exist or was not imported.
|
|
16
|
+
*
|
|
17
|
+
* There is a standard set of display components @furo/ui5/src/standard-type-renderers for rendering the individual types.
|
|
18
|
+
*
|
|
19
|
+
* The standard ui5 set can be integrated with the import
|
|
20
|
+
* - import '@furo/ui5/src/standard-type-renderers/display-registry.js'.
|
|
21
|
+
*
|
|
22
|
+
* If you want to implement an individual display of a type, you need your own `context-[type-name]` component and import it.
|
|
23
|
+
*
|
|
24
|
+
* for repeated fields you should write your own context-[type-name]-repeated component and import it.
|
|
25
|
+
* If no context-[type-name]-repeated exists, the renderer will use the display-[type] component as fallback and
|
|
26
|
+
* display it repeatedly, this is ok for a lot of cases.
|
|
27
|
+
*
|
|
28
|
+
* ## Naming convention
|
|
29
|
+
*
|
|
30
|
+
* ```
|
|
31
|
+
* display-google-type-timeofday
|
|
32
|
+
* ------- ---------------------
|
|
33
|
+
* | |
|
|
34
|
+
* context type-name
|
|
35
|
+
*
|
|
36
|
+
* # examples:
|
|
37
|
+
* cell-string
|
|
38
|
+
* celledit-string
|
|
39
|
+
* display-string
|
|
40
|
+
* yourcontext-string
|
|
41
|
+
*
|
|
42
|
+
* The method to evaluate the renderer is built as following:
|
|
43
|
+
*
|
|
44
|
+
* context-[(package.type).replaceAll('.', '-').toLocaleLowerCase()]
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* ## Basic Usage
|
|
50
|
+
* ```html
|
|
51
|
+
* <furo-type-renderer fn-bind-data="--dao(*.data.fieldname)"></furo-type-renderer>
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## Writing your own renderer
|
|
55
|
+
* The only API you need to implement in your component is the `bindData()` method.
|
|
56
|
+
* You just have to follow the naming convention for your renderer.
|
|
57
|
+
*
|
|
58
|
+
* @summary dynamic type rendering
|
|
59
|
+
* @customElement furo-type-renderer
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Represents any HTMLElement-based component that can bind to field data.
|
|
63
|
+
* This includes Lit elements and other custom web components that implement
|
|
64
|
+
* a bindData() method to initialize with field node information.
|
|
65
|
+
*
|
|
66
|
+
* @template T - The FieldNode type this renderer expects (usually inferred)
|
|
67
|
+
*/
|
|
68
|
+
export declare class TypeRenderer extends LitElement {
|
|
69
|
+
static styles: import("lit").CSSResult;
|
|
70
|
+
/**
|
|
71
|
+
* Set the context if you need another then display.
|
|
72
|
+
*
|
|
73
|
+
* Determines how the component should render or behave.
|
|
74
|
+
*
|
|
75
|
+
* The variable accepts one of several predefined context types
|
|
76
|
+
* (`"display"`, `"form"`, `"edit"`, `"cell-display"`, `"cell-edit"`),
|
|
77
|
+
* or any other string for having custom context.
|
|
78
|
+
*
|
|
79
|
+
* @type {('display' | 'form' | 'edit' | 'cell-display' | 'cell-edit' | string)}
|
|
80
|
+
* @default "display"
|
|
81
|
+
*/
|
|
82
|
+
context: 'display' | 'form' | 'edit' | 'cell-display' | 'cell-edit' | string;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
_field: FieldNode | null;
|
|
85
|
+
private renderName;
|
|
86
|
+
/**
|
|
87
|
+
* Reference to the element that was inserted into the DOM.
|
|
88
|
+
*
|
|
89
|
+
* This variable holds a reference to an {@link HTMLElement} that has been
|
|
90
|
+
* added to the document, or `undefined` if no element has yet been inserted.
|
|
91
|
+
*
|
|
92
|
+
* @type {HTMLElement | undefined}
|
|
93
|
+
*/
|
|
94
|
+
insertedElementRef: HTMLElement | undefined;
|
|
95
|
+
/**
|
|
96
|
+
*@private
|
|
97
|
+
*/
|
|
98
|
+
static get properties(): {
|
|
99
|
+
/**
|
|
100
|
+
* A Boolean attribute which, if present, means this field is displayed in disabled state.
|
|
101
|
+
* @type Boolean
|
|
102
|
+
*/
|
|
103
|
+
disabled: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Set the context if you need another then display.
|
|
108
|
+
* Prebuilt context renderers exist for display, cell, celledit.
|
|
109
|
+
* @type String
|
|
110
|
+
*/
|
|
111
|
+
context: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
private isAnyType;
|
|
116
|
+
/**
|
|
117
|
+
* Bind a fieldnode of any type
|
|
118
|
+
* @param fieldNode {FieldNode} Fieldnode of any type
|
|
119
|
+
*/
|
|
120
|
+
bindData(fieldNode: FieldNode): void;
|
|
121
|
+
private _setRenderNameFromTypeName;
|
|
122
|
+
/**
|
|
123
|
+
* Creates the component for single fields
|
|
124
|
+
* @private
|
|
125
|
+
*/
|
|
126
|
+
_createDisplay(): void;
|
|
127
|
+
/**
|
|
128
|
+
* Creates the component for repeated fields
|
|
129
|
+
* Component naming: [package-type]-repeated
|
|
130
|
+
*
|
|
131
|
+
* Fallback: if no -repeated component is available, a div is used...
|
|
132
|
+
* @private
|
|
133
|
+
*/
|
|
134
|
+
_createRepeatedDisplay(): void;
|
|
135
|
+
/**
|
|
136
|
+
* Attribute handling
|
|
137
|
+
* Adding to DOM
|
|
138
|
+
* @param el
|
|
139
|
+
* @private
|
|
140
|
+
*/
|
|
141
|
+
_addElement(el: Bindable): void;
|
|
142
|
+
/**
|
|
143
|
+
* forward the focus to the created element
|
|
144
|
+
*/
|
|
145
|
+
focus(): void;
|
|
146
|
+
/**
|
|
147
|
+
* Remove the inserted element, if the type renderer itself is removed
|
|
148
|
+
* @private
|
|
149
|
+
*/
|
|
150
|
+
disconnectedCallback(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Append when reconnect
|
|
153
|
+
*/
|
|
154
|
+
connectedCallback(): void;
|
|
155
|
+
private _warningUnbindableRenderer;
|
|
156
|
+
private _warningNoSpecificRendererAvailable;
|
|
157
|
+
}
|
|
158
|
+
export {};
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, LitElement } from 'lit';
|
|
8
|
+
import { property, state } from 'lit/decorators.js';
|
|
9
|
+
import { ANY } from '../../../well_known/ANY.js';
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to determine if an HTMLElement has a bindData method.
|
|
12
|
+
* @param elem - The element to test
|
|
13
|
+
* @returns True if the element is bindable
|
|
14
|
+
*/
|
|
15
|
+
function isBindable(elem) {
|
|
16
|
+
return (elem instanceof HTMLElement &&
|
|
17
|
+
typeof elem.bindData === 'function');
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The furo-type-renderer is used to display type specific data. It uses **display** as default context and will warn you
|
|
21
|
+
* on the console if the requested `context-[type-name]` does not exist or was not imported.
|
|
22
|
+
*
|
|
23
|
+
* There is a standard set of display components @furo/ui5/src/standard-type-renderers for rendering the individual types.
|
|
24
|
+
*
|
|
25
|
+
* The standard ui5 set can be integrated with the import
|
|
26
|
+
* - import '@furo/ui5/src/standard-type-renderers/display-registry.js'.
|
|
27
|
+
*
|
|
28
|
+
* If you want to implement an individual display of a type, you need your own `context-[type-name]` component and import it.
|
|
29
|
+
*
|
|
30
|
+
* for repeated fields you should write your own context-[type-name]-repeated component and import it.
|
|
31
|
+
* If no context-[type-name]-repeated exists, the renderer will use the display-[type] component as fallback and
|
|
32
|
+
* display it repeatedly, this is ok for a lot of cases.
|
|
33
|
+
*
|
|
34
|
+
* ## Naming convention
|
|
35
|
+
*
|
|
36
|
+
* ```
|
|
37
|
+
* display-google-type-timeofday
|
|
38
|
+
* ------- ---------------------
|
|
39
|
+
* | |
|
|
40
|
+
* context type-name
|
|
41
|
+
*
|
|
42
|
+
* # examples:
|
|
43
|
+
* cell-string
|
|
44
|
+
* celledit-string
|
|
45
|
+
* display-string
|
|
46
|
+
* yourcontext-string
|
|
47
|
+
*
|
|
48
|
+
* The method to evaluate the renderer is built as following:
|
|
49
|
+
*
|
|
50
|
+
* context-[(package.type).replaceAll('.', '-').toLocaleLowerCase()]
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* ## Basic Usage
|
|
56
|
+
* ```html
|
|
57
|
+
* <furo-type-renderer fn-bind-data="--dao(*.data.fieldname)"></furo-type-renderer>
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ## Writing your own renderer
|
|
61
|
+
* The only API you need to implement in your component is the `bindData()` method.
|
|
62
|
+
* You just have to follow the naming convention for your renderer.
|
|
63
|
+
*
|
|
64
|
+
* @summary dynamic type rendering
|
|
65
|
+
* @customElement furo-type-renderer
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Represents any HTMLElement-based component that can bind to field data.
|
|
69
|
+
* This includes Lit elements and other custom web components that implement
|
|
70
|
+
* a bindData() method to initialize with field node information.
|
|
71
|
+
*
|
|
72
|
+
* @template T - The FieldNode type this renderer expects (usually inferred)
|
|
73
|
+
*/
|
|
74
|
+
export class TypeRenderer extends LitElement {
|
|
75
|
+
constructor() {
|
|
76
|
+
super(...arguments);
|
|
77
|
+
/**
|
|
78
|
+
* Set the context if you need another then display.
|
|
79
|
+
*
|
|
80
|
+
* Determines how the component should render or behave.
|
|
81
|
+
*
|
|
82
|
+
* The variable accepts one of several predefined context types
|
|
83
|
+
* (`"display"`, `"form"`, `"edit"`, `"cell-display"`, `"cell-edit"`),
|
|
84
|
+
* or any other string for having custom context.
|
|
85
|
+
*
|
|
86
|
+
* @type {('display' | 'form' | 'edit' | 'cell-display' | 'cell-edit' | string)}
|
|
87
|
+
* @default "display"
|
|
88
|
+
*/
|
|
89
|
+
this.context = 'display';
|
|
90
|
+
this.disabled = false;
|
|
91
|
+
this._field = null;
|
|
92
|
+
this.renderName = '';
|
|
93
|
+
this.isAnyType = false;
|
|
94
|
+
}
|
|
95
|
+
static { this.styles = css `
|
|
96
|
+
:host {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
`; }
|
|
100
|
+
/**
|
|
101
|
+
*@private
|
|
102
|
+
*/
|
|
103
|
+
static get properties() {
|
|
104
|
+
return {
|
|
105
|
+
/**
|
|
106
|
+
* A Boolean attribute which, if present, means this field is displayed in disabled state.
|
|
107
|
+
* @type Boolean
|
|
108
|
+
*/
|
|
109
|
+
disabled: { type: Boolean },
|
|
110
|
+
/**
|
|
111
|
+
* Set the context if you need another then display.
|
|
112
|
+
* Prebuilt context renderers exist for display, cell, celledit.
|
|
113
|
+
* @type String
|
|
114
|
+
*/
|
|
115
|
+
context: { type: String },
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Bind a fieldnode of any type
|
|
120
|
+
* @param fieldNode {FieldNode} Fieldnode of any type
|
|
121
|
+
*/
|
|
122
|
+
bindData(fieldNode) {
|
|
123
|
+
/**
|
|
124
|
+
* Evaluates the component name
|
|
125
|
+
* Special treatment for google.protobuf.Any
|
|
126
|
+
*/
|
|
127
|
+
this._field = fieldNode;
|
|
128
|
+
if (this._field) {
|
|
129
|
+
if (this._field instanceof ANY) {
|
|
130
|
+
this.isAnyType = true;
|
|
131
|
+
}
|
|
132
|
+
let typename = this._field.__meta.typeName;
|
|
133
|
+
if (this.isAnyType) {
|
|
134
|
+
// any types are fully available when it has data with the type information
|
|
135
|
+
typename = this._field.typeName.replace(/.*\//, '');
|
|
136
|
+
if (!this._field.value) {
|
|
137
|
+
this._field.__addEventListener('field-value-updated', () => {
|
|
138
|
+
typename = this._field.typeName.replace(/.*\//, '');
|
|
139
|
+
this._setRenderNameFromTypeName(typename);
|
|
140
|
+
this._createDisplay();
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
this._setRenderNameFromTypeName(typename);
|
|
145
|
+
if (this._field.__meta.typeName !== 'primitives.ARRAY<>') {
|
|
146
|
+
this._createDisplay();
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this._createRepeatedDisplay();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
_setRenderNameFromTypeName(typename) {
|
|
154
|
+
// Todo: add handling for MAP types
|
|
155
|
+
this.renderName = `${this.context}-${typename
|
|
156
|
+
.replaceAll('primitives.', '')
|
|
157
|
+
.replaceAll('.', '-')
|
|
158
|
+
.replaceAll('_', '-')
|
|
159
|
+
.replaceAll(/([a-z0-9])([A-Z])/g, (_, p1, p2) => `${p1}-${p2.toLowerCase()}`)
|
|
160
|
+
.toLocaleLowerCase()}`;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Creates the component for single fields
|
|
164
|
+
* @private
|
|
165
|
+
*/
|
|
166
|
+
_createDisplay() {
|
|
167
|
+
// if the component is not defined after 1500ms, we consider it as not existing
|
|
168
|
+
Promise.race([
|
|
169
|
+
window.customElements.whenDefined(this.renderName),
|
|
170
|
+
new Promise((_, reject) => {
|
|
171
|
+
setTimeout(() => reject(new Error('Timeout')), 1500);
|
|
172
|
+
}),
|
|
173
|
+
])
|
|
174
|
+
.then(() => {
|
|
175
|
+
const renderComponent = document.createElement(this.renderName);
|
|
176
|
+
if (isBindable(renderComponent)) {
|
|
177
|
+
this._addElement(renderComponent);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
this._warningUnbindableRenderer(renderComponent);
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
.catch(() => {
|
|
184
|
+
this._warningNoSpecificRendererAvailable();
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Creates the component for repeated fields
|
|
189
|
+
* Component naming: [package-type]-repeated
|
|
190
|
+
*
|
|
191
|
+
* Fallback: if no -repeated component is available, a div is used...
|
|
192
|
+
* @private
|
|
193
|
+
*/
|
|
194
|
+
_createRepeatedDisplay() {
|
|
195
|
+
const fieldDescriptor = this._field.__parentNode.__meta.nodeFields.find(f => f.fieldName === this._field.__meta.fieldName);
|
|
196
|
+
const Constructor = fieldDescriptor?.FieldConstructor;
|
|
197
|
+
const fn = new Constructor();
|
|
198
|
+
this._setRenderNameFromTypeName(fn.__meta.typeName);
|
|
199
|
+
const repeatRenderer = document.createElement(`${this.renderName}-repeated`);
|
|
200
|
+
if (isBindable(repeatRenderer)) {
|
|
201
|
+
this._addElement(repeatRenderer);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
Promise.race([
|
|
205
|
+
window.customElements.whenDefined(this.renderName),
|
|
206
|
+
new Promise((_, reject) => {
|
|
207
|
+
setTimeout(() => reject(new Error('Timeout')), 1500);
|
|
208
|
+
}),
|
|
209
|
+
])
|
|
210
|
+
.then(() => {
|
|
211
|
+
const renderComponent = document.createElement(this.renderName);
|
|
212
|
+
if (isBindable(renderComponent)) {
|
|
213
|
+
// fallback , display the display-[type] component repeatedly
|
|
214
|
+
const container = document.createElement('div');
|
|
215
|
+
// add classes for styling
|
|
216
|
+
container.classList.add('repeated', 'ftr');
|
|
217
|
+
this._field.forEach((field) => {
|
|
218
|
+
const el = document.createElement(this.renderName);
|
|
219
|
+
if (this.isAnyType) {
|
|
220
|
+
el.bindData(field.value);
|
|
221
|
+
}
|
|
222
|
+
el.bindData(field);
|
|
223
|
+
this.insertedElementRef = this.parentNode.insertBefore(el, this);
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
this._warningUnbindableRenderer(renderComponent);
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
.catch(() => {
|
|
231
|
+
this._warningNoSpecificRendererAvailable();
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Attribute handling
|
|
237
|
+
* Adding to DOM
|
|
238
|
+
* @param el
|
|
239
|
+
* @private
|
|
240
|
+
*/
|
|
241
|
+
_addElement(el) {
|
|
242
|
+
const l = this.attributes.length;
|
|
243
|
+
for (let i = 0; i < l; i += 1) {
|
|
244
|
+
const nodeName = this.attributes.item(i).nodeName;
|
|
245
|
+
const nodeValue = this.attributes.item(i)?.nodeValue;
|
|
246
|
+
if (!(nodeName.startsWith('fn-') ||
|
|
247
|
+
nodeName.startsWith('at-') ||
|
|
248
|
+
nodeName === 'context')) {
|
|
249
|
+
el.setAttribute(nodeName, nodeValue || '');
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
this.insertedElementRef = this.parentNode.insertBefore(el, this);
|
|
253
|
+
if (this.isAnyType) {
|
|
254
|
+
// any types have the data in the field `value`
|
|
255
|
+
el.bindData(this._field.value);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
el.bindData(this._field);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* forward the focus to the created element
|
|
263
|
+
*/
|
|
264
|
+
focus() {
|
|
265
|
+
setTimeout(() => {
|
|
266
|
+
if (this.insertedElementRef) {
|
|
267
|
+
this.insertedElementRef.focus();
|
|
268
|
+
}
|
|
269
|
+
}, 16);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Remove the inserted element, if the type renderer itself is removed
|
|
273
|
+
* @private
|
|
274
|
+
*/
|
|
275
|
+
disconnectedCallback() {
|
|
276
|
+
if (this.insertedElementRef) {
|
|
277
|
+
this.insertedElementRef.remove();
|
|
278
|
+
}
|
|
279
|
+
// eslint-disable-next-line wc/guard-super-call
|
|
280
|
+
super.disconnectedCallback();
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Append when reconnect
|
|
284
|
+
*/
|
|
285
|
+
connectedCallback() {
|
|
286
|
+
// reconnect
|
|
287
|
+
if (this.insertedElementRef) {
|
|
288
|
+
this.parentNode.insertBefore(this.insertedElementRef, this);
|
|
289
|
+
}
|
|
290
|
+
// eslint-disable-next-line wc/guard-super-call
|
|
291
|
+
super.connectedCallback();
|
|
292
|
+
}
|
|
293
|
+
_warningUnbindableRenderer(renderComponent) {
|
|
294
|
+
console.error(renderComponent, `is not bindable. Fieldname:${this._field.__fieldPath}`);
|
|
295
|
+
}
|
|
296
|
+
_warningNoSpecificRendererAvailable() {
|
|
297
|
+
console.warn(`No type specific renderer ${this.renderName} loaded \n. Check your imports.\n`, this._field?.__meta.typeName, this._field.__fieldPath);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
__decorate([
|
|
301
|
+
property()
|
|
302
|
+
], TypeRenderer.prototype, "context", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
property({ type: Boolean })
|
|
305
|
+
], TypeRenderer.prototype, "disabled", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
state()
|
|
308
|
+
], TypeRenderer.prototype, "_field", void 0);
|
|
309
|
+
//# sourceMappingURL=TypeRenderer.js.map
|
|
@@ -0,0 +1 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AmB,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK;QACH,UAAU,CAAC,GAAG,EAAE;YACd,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBAC5B,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;YAClC,CAAC;QACH,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;IAED;;;OAGG;IACH,oBAAoB;QAClB,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC5B,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC;QACnC,CAAC;QACD,+CAA+C;QAC/C,KAAK,CAAC,oBAAoB,EAAE,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,YAAY;QACZ,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC5B,IAAI,CAAC,UAAW,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAC/D,CAAC;QAED,+CAA+C;QAC/C,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC5B,CAAC;IAEO,0BAA0B,CAAC,eAA4B;QAC7D,OAAO,CAAC,KAAK,CACX,eAAe,EACf,8BAA8B,IAAI,CAAC,MAAO,CAAC,WAAW,EAAE,CACzD,CAAC;IACJ,CAAC;IAEO,mCAAmC;QACzC,OAAO,CAAC,IAAI,CACV,6BAA6B,IAAI,CAAC,UAAU,mCAAmC,EAC/E,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,EAC5B,IAAI,CAAC,MAAO,CAAC,WAAW,CACzB,CAAC;IACJ,CAAC;;AAlQD;IADC,QAAQ,EAAE;6CAEC;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8CACX;AAGjB;IADC,KAAK,EAAE;4CACwB","sourcesContent":["import { css, LitElement } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { ARRAY } from '@/proxies/ARRAY';\nimport { FieldNode } from '@/FieldNode';\nimport { ANY } from '@/well_known/ANY';\n\ninterface Bindable<T = FieldNode> extends HTMLElement {\n /**\n * Binds field data to the renderer component.\n * Components should use this method or the `model` PROPERTY to initialize their state and render.\n *\n * @param model - The FieldNode containing the data to display/edit\n */\n bindData(model: T): void;\n\n model: T;\n}\n\n/**\n * Type guard to determine if an HTMLElement has a bindData method.\n * @param elem - The element to test\n * @returns True if the element is bindable\n */\nfunction isBindable(elem: unknown): elem is Bindable {\n return (\n elem instanceof HTMLElement &&\n typeof (elem as Bindable).bindData === 'function'\n );\n}\n\n/**\n * The furo-type-renderer is used to display type specific data. It uses **display** as default context and will warn you\n * on the console if the requested `context-[type-name]` does not exist or was not imported.\n *\n * There is a standard set of display components @furo/ui5/src/standard-type-renderers for rendering the individual types.\n *\n * The standard ui5 set can be integrated with the import\n * - import '@furo/ui5/src/standard-type-renderers/display-registry.js'.\n *\n * If you want to implement an individual display of a type, you need your own `context-[type-name]` component and import it.\n *\n * for repeated fields you should write your own context-[type-name]-repeated component and import it.\n * If no context-[type-name]-repeated exists, the renderer will use the display-[type] component as fallback and\n * display it repeatedly, this is ok for a lot of cases.\n *\n * ## Naming convention\n *\n * ```\n * display-google-type-timeofday\n * ------- ---------------------\n * | |\n * context type-name\n *\n * # examples:\n * cell-string\n * celledit-string\n * display-string\n * yourcontext-string\n *\n * The method to evaluate the renderer is built as following:\n *\n * context-[(package.type).replaceAll('.', '-').toLocaleLowerCase()]\n * ```\n *\n *\n *\n * ## Basic Usage\n * ```html\n * <furo-type-renderer fn-bind-data=\"--dao(*.data.fieldname)\"></furo-type-renderer>\n * ```\n *\n * ## Writing your own renderer\n * The only API you need to implement in your component is the `bindData()` method.\n * You just have to follow the naming convention for your renderer.\n *\n * @summary dynamic type rendering\n * @customElement furo-type-renderer\n */\n\n/**\n * Represents any HTMLElement-based component that can bind to field data.\n * This includes Lit elements and other custom web components that implement\n * a bindData() method to initialize with field node information.\n *\n * @template T - The FieldNode type this renderer expects (usually inferred)\n */\nexport class TypeRenderer extends LitElement {\n static styles = css`\n :host {\n display: none;\n }\n `;\n\n /**\n * Set the context if you need another then display.\n *\n * Determines how the component should render or behave.\n *\n * The variable accepts one of several predefined context types\n * (`\"display\"`, `\"form\"`, `\"edit\"`, `\"cell-display\"`, `\"cell-edit\"`),\n * or any other string for having custom context.\n *\n * @type {('display' | 'form' | 'edit' | 'cell-display' | 'cell-edit' | string)}\n * @default \"display\"\n */\n @property()\n context: 'display' | 'form' | 'edit' | 'cell-display' | 'cell-edit' | string =\n 'display';\n\n @property({ type: Boolean })\n disabled = false;\n\n @state()\n _field: FieldNode | null = null;\n\n private renderName: string = '';\n\n /**\n * Reference to the element that was inserted into the DOM.\n *\n * This variable holds a reference to an {@link HTMLElement} that has been\n * added to the document, or `undefined` if no element has yet been inserted.\n *\n * @type {HTMLElement | undefined}\n */\n public insertedElementRef: HTMLElement | undefined;\n\n /**\n *@private\n */\n static get properties() {\n return {\n /**\n * A Boolean attribute which, if present, means this field is displayed in disabled state.\n * @type Boolean\n */\n disabled: { type: Boolean },\n /**\n * Set the context if you need another then display.\n * Prebuilt context renderers exist for display, cell, celledit.\n * @type String\n */\n context: { type: String },\n };\n }\n\n private isAnyType = false;\n\n /**\n * Bind a fieldnode of any type\n * @param fieldNode {FieldNode} Fieldnode of any type\n */\n bindData(fieldNode: FieldNode) {\n /**\n * Evaluates the component name\n * Special treatment for google.protobuf.Any\n */\n\n this._field = fieldNode;\n\n if (this._field) {\n if (this._field instanceof ANY) {\n this.isAnyType = true;\n }\n\n let typename = this._field.__meta.typeName;\n if (this.isAnyType) {\n // any types are fully available when it has data with the type information\n typename = (this._field as ANY).typeName.replace(/.*\\//, '');\n if (!(this._field as ANY).value) {\n this._field.__addEventListener('field-value-updated', () => {\n typename = (this._field as ANY).typeName.replace(/.*\\//, '');\n this._setRenderNameFromTypeName(typename);\n this._createDisplay();\n });\n }\n }\n this._setRenderNameFromTypeName(typename);\n\n if (this._field.__meta.typeName !== 'primitives.ARRAY<>') {\n this._createDisplay();\n } else {\n this._createRepeatedDisplay();\n }\n }\n }\n\n private _setRenderNameFromTypeName(typename: string) {\n // Todo: add handling for MAP types\n this.renderName = `${this.context}-${typename\n .replaceAll('primitives.', '')\n .replaceAll('.', '-')\n .replaceAll('_', '-')\n .replaceAll(\n /([a-z0-9])([A-Z])/g,\n (_, p1, p2) => `${p1}-${p2.toLowerCase()}`,\n )\n .toLocaleLowerCase()}`;\n }\n\n /**\n * Creates the component for single fields\n * @private\n */\n _createDisplay() {\n // if the component is not defined after 1500ms, we consider it as not existing\n Promise.race([\n window.customElements.whenDefined(this.renderName),\n new Promise((_, reject) => {\n setTimeout(() => reject(new Error('Timeout')), 1500);\n }),\n ])\n .then(() => {\n const renderComponent = document.createElement(this.renderName);\n if (isBindable(renderComponent)) {\n this._addElement(renderComponent);\n } else {\n this._warningUnbindableRenderer(renderComponent);\n }\n })\n .catch(() => {\n this._warningNoSpecificRendererAvailable();\n });\n }\n\n /**\n * Creates the component for repeated fields\n * Component naming: [package-type]-repeated\n *\n * Fallback: if no -repeated component is available, a div is used...\n * @private\n */\n _createRepeatedDisplay() {\n const fieldDescriptor = this._field!.__parentNode!.__meta.nodeFields.find(\n f => f.fieldName === this._field!.__meta.fieldName,\n );\n const Constructor: new () => unknown = fieldDescriptor?.FieldConstructor;\n const fn = new Constructor() as FieldNode;\n this._setRenderNameFromTypeName(fn.__meta.typeName);\n\n const repeatRenderer = document.createElement(\n `${this.renderName}-repeated`,\n );\n if (isBindable(repeatRenderer)) {\n this._addElement(repeatRenderer);\n } else {\n Promise.race([\n window.customElements.whenDefined(this.renderName),\n new Promise((_, reject) => {\n setTimeout(() => reject(new Error('Timeout')), 1500);\n }),\n ])\n .then(() => {\n const renderComponent = document.createElement(this.renderName);\n if (isBindable(renderComponent)) {\n // fallback , display the display-[type] component repeatedly\n const container = document.createElement('div');\n // add classes for styling\n container.classList.add('repeated', 'ftr');\n\n (this._field as ARRAY<FieldNode, unknown>).forEach(\n (field: FieldNode) => {\n const el = document.createElement(this.renderName) as Bindable;\n if (this.isAnyType) {\n el.bindData((field as ANY).value as FieldNode);\n }\n el.bindData(field);\n this.insertedElementRef = this.parentNode!.insertBefore(\n el,\n this,\n );\n },\n );\n } else {\n this._warningUnbindableRenderer(renderComponent);\n }\n })\n .catch(() => {\n this._warningNoSpecificRendererAvailable();\n });\n }\n }\n\n /**\n * Attribute handling\n * Adding to DOM\n * @param el\n * @private\n */\n _addElement(el: Bindable) {\n const l = this.attributes.length;\n\n for (let i = 0; i < l; i += 1) {\n const nodeName = this.attributes.item(i)!.nodeName!;\n const nodeValue = this.attributes.item(i)?.nodeValue;\n if (\n !(\n nodeName.startsWith('fn-') ||\n nodeName.startsWith('at-') ||\n nodeName === 'context'\n )\n ) {\n el.setAttribute(nodeName, nodeValue || '');\n }\n }\n this.insertedElementRef = this.parentNode!.insertBefore(el, this);\n\n if (this.isAnyType) {\n // any types have the data in the field `value`\n el.bindData((this._field as ANY).value as FieldNode);\n } else {\n el.bindData(this._field as FieldNode);\n }\n }\n\n /**\n * forward the focus to the created element\n */\n focus() {\n setTimeout(() => {\n if (this.insertedElementRef) {\n this.insertedElementRef.focus();\n }\n }, 16);\n }\n\n /**\n * Remove the inserted element, if the type renderer itself is removed\n * @private\n */\n disconnectedCallback() {\n if (this.insertedElementRef) {\n this.insertedElementRef.remove();\n }\n // eslint-disable-next-line wc/guard-super-call\n super.disconnectedCallback();\n }\n\n /**\n * Append when reconnect\n */\n connectedCallback() {\n // reconnect\n if (this.insertedElementRef) {\n this.parentNode!.insertBefore(this.insertedElementRef, this);\n }\n\n // eslint-disable-next-line wc/guard-super-call\n super.connectedCallback();\n }\n\n private _warningUnbindableRenderer(renderComponent: HTMLElement) {\n console.error(\n renderComponent,\n `is not bindable. Fieldname:${this._field!.__fieldPath}`,\n );\n }\n\n private _warningNoSpecificRendererAvailable() {\n console.warn(\n `No type specific renderer ${this.renderName} loaded \\n. Check your imports.\\n`,\n this._field?.__meta.typeName,\n this._field!.__fieldPath,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/web-components/impl/TypeRenderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import { TypeRenderer } from './TypeRenderer';\n\nwindow.customElements.define('furo-type-renderer', TypeRenderer);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'furo-type-renderer': TypeRenderer;\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furo/open-models",
|
|
3
|
-
"description": "open-models
|
|
3
|
+
"description": "open-models",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/eclipse/eclipsefuro-web/tree/main/packages",
|
|
6
6
|
"repository": {
|
|
@@ -8,10 +8,22 @@
|
|
|
8
8
|
"url": "git+ssh://git@github.com/eclipse/eclipsefuro-web.git"
|
|
9
9
|
},
|
|
10
10
|
"author": "eclipse furo",
|
|
11
|
-
"version": "1.
|
|
11
|
+
"version": "1.16.0",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
|
-
"
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./dist/*": {
|
|
21
|
+
"types": "./dist/*.d.ts",
|
|
22
|
+
"default": "./dist/*.js"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": "./package.json",
|
|
25
|
+
"./custom-elements.json": "./custom-elements.json"
|
|
26
|
+
},
|
|
15
27
|
"scripts": {
|
|
16
28
|
"start": "npm run build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"tsc -p ./tsconfig.test.components.json --watch --preserveWatchOutput\" \"web-dev-server\"",
|
|
17
29
|
"analyze": "cem analyze --litelement --globs ./dist/* --outdir ./",
|
|
@@ -32,18 +44,10 @@
|
|
|
32
44
|
"bootstrap": "npm install && npm link && npm link @furo/open-models"
|
|
33
45
|
},
|
|
34
46
|
"files": [
|
|
35
|
-
"
|
|
36
|
-
"./dist/*.map",
|
|
37
|
-
"./dist/*.ts",
|
|
38
|
-
"./dist/primitives",
|
|
39
|
-
"./dist/proxies",
|
|
40
|
-
"./dist/decorators",
|
|
41
|
-
"./dist/well_known",
|
|
42
|
-
"tsconfig.json",
|
|
43
|
-
"icon.svg",
|
|
44
|
-
"README.md",
|
|
47
|
+
"dist",
|
|
45
48
|
"custom-elements.json",
|
|
46
|
-
"web-types.json"
|
|
49
|
+
"web-types.json",
|
|
50
|
+
"icon.svg"
|
|
47
51
|
],
|
|
48
52
|
"dependencies": {
|
|
49
53
|
"@types/json-schema": "^7.0.15",
|
|
@@ -59,7 +63,6 @@
|
|
|
59
63
|
"@open-wc/testing": "^4.0.0",
|
|
60
64
|
"@rollup/plugin-json": "^6.1.0",
|
|
61
65
|
"@rollup/plugin-replace": "^5.0.7",
|
|
62
|
-
"@types/json-schema": "^7.0.15",
|
|
63
66
|
"@types/mocha": "^10.0.7",
|
|
64
67
|
"@typescript-eslint/eslint-plugin": "^7.16.1",
|
|
65
68
|
"@typescript-eslint/parser": "^7.16.0",
|
package/tsconfig.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"noEmitOnError": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"outDir": "dist",
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"inlineSources": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
// Generate d.ts files
|
|
14
|
-
"declaration": true,
|
|
15
|
-
// "rootDir": "src/",
|
|
16
|
-
"module": "es2022",
|
|
17
|
-
"lib": [
|
|
18
|
-
"es2022",
|
|
19
|
-
"dom",
|
|
20
|
-
"dom.iterable"
|
|
21
|
-
],
|
|
22
|
-
"paths": {
|
|
23
|
-
"@/*": ["./src/*"]
|
|
24
|
-
},
|
|
25
|
-
"useDefineForClassFields": false,
|
|
26
|
-
"plugins": [
|
|
27
|
-
{
|
|
28
|
-
"name": "typescript-lit-html-plugin"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"tsc-alias": {
|
|
33
|
-
"resolveFullPaths": true,
|
|
34
|
-
"verbose": false
|
|
35
|
-
},
|
|
36
|
-
"exclude": [
|
|
37
|
-
"dist",
|
|
38
|
-
"test",
|
|
39
|
-
],
|
|
40
|
-
"include": [
|
|
41
|
-
"src/**/*",
|
|
42
|
-
"global.d.ts"
|
|
43
|
-
]
|
|
44
|
-
}
|