@microsoft/typespec-msgraph 0.0.1-Preview.1 → 0.0.1-Preview.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/acceptable-media-types-annotation.d.ts +3 -4
- package/dist/src/components/acceptable-media-types-annotation.d.ts.map +1 -1
- package/dist/src/components/acceptable-media-types-annotation.js +2 -6
- package/dist/src/components/acceptable-media-types-annotation.js.map +1 -1
- package/dist/src/components/alternate-keys-annotation.d.ts +4 -4
- package/dist/src/components/alternate-keys-annotation.d.ts.map +1 -1
- package/dist/src/components/alternate-keys-annotation.js +8 -16
- package/dist/src/components/alternate-keys-annotation.js.map +1 -1
- package/dist/src/components/annotations.d.ts +12 -0
- package/dist/src/components/annotations.d.ts.map +1 -0
- package/dist/src/components/annotations.js +63 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +15 -73
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +12 -26
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.d.ts +3 -4
- package/dist/src/components/computed-annotation.d.ts.map +1 -1
- package/dist/src/components/computed-annotation.js +4 -10
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +3 -4
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +4 -13
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/description-annotation.d.ts +3 -4
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +5 -11
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +21 -0
- package/dist/src/components/entity-container-element.d.ts.map +1 -0
- package/dist/src/components/entity-container-element.js +22 -0
- package/dist/src/components/entity-container-element.js.map +1 -0
- package/dist/src/components/enum-type-element.d.ts +6 -0
- package/dist/src/components/enum-type-element.d.ts.map +1 -0
- package/dist/src/components/enum-type-element.js +17 -0
- package/dist/src/components/enum-type-element.js.map +1 -0
- package/dist/src/components/expand-restrictions-annotation.d.ts +4 -5
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +9 -30
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/filter-restrictions-annotation.js +10 -0
- package/dist/src/components/filter-restrictions-annotation.js.map +1 -0
- package/dist/src/components/immutable-annotation.d.ts +5 -0
- package/dist/src/components/immutable-annotation.d.ts.map +1 -0
- package/dist/src/components/immutable-annotation.js +6 -0
- package/dist/src/components/immutable-annotation.js.map +1 -0
- package/dist/src/components/index.d.ts +2 -14
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +9 -14
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/insert-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.js +10 -0
- package/dist/src/components/insert-restrictions-annotation.js.map +1 -0
- package/dist/src/components/operation-element.d.ts +6 -0
- package/dist/src/components/operation-element.d.ts.map +1 -0
- package/dist/src/components/operation-element.js +70 -0
- package/dist/src/components/operation-element.js.map +1 -0
- package/dist/src/components/permissions-annotation.d.ts +3 -4
- package/dist/src/components/permissions-annotation.d.ts.map +1 -1
- package/dist/src/components/permissions-annotation.js +2 -10
- package/dist/src/components/permissions-annotation.js.map +1 -1
- package/dist/src/components/property-element.d.ts +4 -4
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +16 -32
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/revisions-annotation.d.ts +4 -5
- package/dist/src/components/revisions-annotation.d.ts.map +1 -1
- package/dist/src/components/revisions-annotation.js +7 -51
- package/dist/src/components/revisions-annotation.js.map +1 -1
- package/dist/src/components/schema-element.d.ts +6 -0
- package/dist/src/components/schema-element.d.ts.map +1 -0
- package/dist/src/components/schema-element.js +42 -0
- package/dist/src/components/schema-element.js.map +1 -0
- package/dist/src/components/search-restrictions-annotation.d.ts +3 -4
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +4 -13
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts +3 -4
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +2 -11
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +4 -5
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +9 -30
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +7 -4
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +24 -66
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/top-supported-annotation.d.ts +3 -4
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +3 -10
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/components/update-restrictions-annotation.d.ts +5 -0
- package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/update-restrictions-annotation.js +8 -0
- package/dist/src/components/update-restrictions-annotation.js.map +1 -0
- package/dist/src/decorators/abstract.d.ts.map +1 -1
- package/dist/src/decorators/abstract.js +0 -6
- package/dist/src/decorators/abstract.js.map +1 -1
- package/dist/src/decorators/action.d.ts +10 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +16 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +3 -1
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +21 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +14 -0
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
- package/dist/src/decorators/ags-attribute.js +115 -0
- package/dist/src/decorators/ags-attribute.js.map +1 -0
- package/dist/src/decorators/allowed-values.d.ts +13 -0
- package/dist/src/decorators/allowed-values.d.ts.map +1 -0
- package/dist/src/decorators/allowed-values.js +35 -0
- package/dist/src/decorators/allowed-values.js.map +1 -0
- package/dist/src/decorators/complex.d.ts.map +1 -1
- package/dist/src/decorators/complex.js +0 -6
- package/dist/src/decorators/complex.js.map +1 -1
- package/dist/src/decorators/delta-collection.d.ts +8 -0
- package/dist/src/decorators/delta-collection.d.ts.map +1 -0
- package/dist/src/decorators/delta-collection.js +12 -0
- package/dist/src/decorators/delta-collection.js.map +1 -0
- package/dist/src/decorators/entity.d.ts.map +1 -1
- package/dist/src/decorators/entity.js +0 -6
- package/dist/src/decorators/entity.js.map +1 -1
- package/dist/src/decorators/filter.d.ts +11 -0
- package/dist/src/decorators/filter.d.ts.map +1 -0
- package/dist/src/decorators/filter.js +27 -0
- package/dist/src/decorators/filter.js.map +1 -0
- package/dist/src/decorators/flags.d.ts +9 -0
- package/dist/src/decorators/flags.d.ts.map +1 -0
- package/dist/src/decorators/flags.js +13 -0
- package/dist/src/decorators/flags.js.map +1 -0
- package/dist/src/decorators/function.d.ts +10 -0
- package/dist/src/decorators/function.d.ts.map +1 -0
- package/dist/src/decorators/function.js +16 -0
- package/dist/src/decorators/function.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +16 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +98 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- package/dist/src/decorators/has-stream.d.ts +1 -2
- package/dist/src/decorators/has-stream.d.ts.map +1 -1
- package/dist/src/decorators/has-stream.js +1 -14
- package/dist/src/decorators/has-stream.js.map +1 -1
- package/dist/src/decorators/immutable.d.ts +8 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +12 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +20 -1
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +20 -1
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +10 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +17 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/open.d.ts.map +1 -1
- package/dist/src/decorators/open.js +0 -6
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +3 -11
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
- package/dist/src/decorators/operation-parameters.js +15 -0
- package/dist/src/decorators/operation-parameters.js.map +1 -0
- package/dist/src/decorators/paged-collection.d.ts +8 -0
- package/dist/src/decorators/paged-collection.d.ts.map +1 -0
- package/dist/src/decorators/paged-collection.js +12 -0
- package/dist/src/decorators/paged-collection.js.map +1 -0
- package/dist/src/decorators/partial.d.ts +10 -0
- package/dist/src/decorators/partial.d.ts.map +1 -0
- package/dist/src/decorators/partial.js +16 -0
- package/dist/src/decorators/partial.js.map +1 -0
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +0 -10
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +9 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +13 -0
- package/dist/src/decorators/privileged.js.map +1 -0
- package/dist/src/decorators/public-namespace.d.ts +10 -0
- package/dist/src/decorators/public-namespace.d.ts.map +1 -0
- package/dist/src/decorators/public-namespace.js +16 -0
- package/dist/src/decorators/public-namespace.js.map +1 -0
- package/dist/src/decorators/required-for-create.d.ts +10 -0
- package/dist/src/decorators/required-for-create.d.ts.map +1 -0
- package/dist/src/decorators/required-for-create.js +14 -0
- package/dist/src/decorators/required-for-create.js.map +1 -0
- package/dist/src/decorators/workload-name-msa.d.ts +9 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +13 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +9 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +13 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/emitter.d.ts +2 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +7 -3
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +40 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +139 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +15 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -0
- package/dist/src/entities/entity-container.js +42 -0
- package/dist/src/entities/entity-container.js.map +1 -0
- package/dist/src/entities/enum.d.ts +17 -0
- package/dist/src/entities/enum.d.ts.map +1 -0
- package/dist/src/entities/enum.js +24 -0
- package/dist/src/entities/enum.js.map +1 -0
- package/dist/src/entities/model.d.ts +47 -0
- package/dist/src/entities/model.d.ts.map +1 -0
- package/dist/src/entities/model.js +104 -0
- package/dist/src/entities/model.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +21 -0
- package/dist/src/entities/namespace.d.ts.map +1 -0
- package/dist/src/entities/namespace.js +81 -0
- package/dist/src/entities/namespace.js.map +1 -0
- package/dist/src/entities/operation.d.ts +28 -0
- package/dist/src/entities/operation.d.ts.map +1 -0
- package/dist/src/entities/operation.js +103 -0
- package/dist/src/entities/operation.js.map +1 -0
- package/dist/src/entities/property.d.ts +3 -0
- package/dist/src/entities/property.d.ts.map +1 -0
- package/dist/src/entities/property.js +57 -0
- package/dist/src/entities/property.js.map +1 -0
- package/dist/src/entities/revision-definition.d.ts +9 -0
- package/dist/src/entities/revision-definition.d.ts.map +1 -0
- package/dist/src/entities/revision-definition.js +42 -0
- package/dist/src/entities/revision-definition.js.map +1 -0
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +53 -2
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +25 -1
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +34 -25
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/allowed-values.d.ts +6 -0
- package/dist/src/rules/allowed-values.d.ts.map +1 -0
- package/dist/src/rules/allowed-values.js +59 -0
- package/dist/src/rules/allowed-values.js.map +1 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +2 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js +28 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -0
- package/dist/src/rules/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +3 -1
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.js +33 -0
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
- package/dist/src/rules/entity.d.ts +1 -0
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +43 -1
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +2 -0
- package/dist/src/rules/enum.d.ts.map +1 -0
- package/dist/src/rules/enum.js +26 -0
- package/dist/src/rules/enum.js.map +1 -0
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +5 -7
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/extends-on-same-type.d.ts +2 -0
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
- package/dist/src/rules/extends-on-same-type.js +38 -0
- package/dist/src/rules/extends-on-same-type.js.map +1 -0
- package/dist/src/rules/filter.d.ts +4 -0
- package/dist/src/rules/filter.d.ts.map +1 -0
- package/dist/src/rules/filter.js +92 -0
- package/dist/src/rules/filter.js.map +1 -0
- package/dist/src/rules/function.d.ts +2 -0
- package/dist/src/rules/function.d.ts.map +1 -0
- package/dist/src/rules/function.js +26 -0
- package/dist/src/rules/function.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +6 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +88 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +13 -6
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +13 -161
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/namespace.d.ts +3 -0
- package/dist/src/rules/namespace.d.ts.map +1 -0
- package/dist/src/rules/namespace.js +58 -0
- package/dist/src/rules/namespace.js.map +1 -0
- package/dist/src/rules/operation-inside-interface.d.ts +2 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +25 -0
- package/dist/src/rules/operation-inside-interface.js.map +1 -0
- package/dist/src/rules/order-by.d.ts +1 -1
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +11 -10
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/partial.d.ts +5 -0
- package/dist/src/rules/partial.d.ts.map +1 -0
- package/dist/src/rules/partial.js +35 -0
- package/dist/src/rules/partial.js.map +1 -0
- package/dist/src/rules/required-for-create.d.ts +2 -0
- package/dist/src/rules/required-for-create.d.ts.map +1 -0
- package/dist/src/rules/required-for-create.js +40 -0
- package/dist/src/rules/required-for-create.js.map +1 -0
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +3 -1
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +3 -1
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +3 -1
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/utils.d.ts +18 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +160 -4
- package/dist/src/utils.js.map +1 -1
- package/lib/decorators.tsp +182 -39
- package/lib/deployment.tsp +18 -0
- package/lib/lib.tsp +6 -22
- package/lib/msgraph.tsp +4 -0
- package/lib/porcelain.tsp +135 -0
- package/lib/responses.tsp +82 -0
- package/lib/shared-models.tsp +75 -0
- package/package.json +31 -20
- package/dist/src/components/program-context.d.ts +0 -4
- package/dist/src/components/program-context.d.ts.map +0 -1
- package/dist/src/components/program-context.js +0 -3
- package/dist/src/components/program-context.js.map +0 -1
- package/dist/src/csdl.d.ts +0 -8
- package/dist/src/csdl.d.ts.map +0 -1
- package/dist/src/csdl.js +0 -298
- package/dist/src/csdl.js.map +0 -1
- package/dist/src/decorators/attribute-builder.d.ts +0 -2
- package/dist/src/decorators/attribute-builder.d.ts.map +0 -1
- package/dist/src/decorators/attribute-builder.js +0 -166
- package/dist/src/decorators/attribute-builder.js.map +0 -1
- package/dist/src/decorators/attributes.d.ts +0 -57
- package/dist/src/decorators/attributes.d.ts.map +0 -1
- package/dist/src/decorators/attributes.js +0 -50
- package/dist/src/decorators/attributes.js.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -36
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -7
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.js +0 -36
- package/dist/src/decorators/handlers/custom/ags-attribute.js.map +0 -1
- package/dist/src/decorators/handlers/custom/index.d.ts +0 -3
- package/dist/src/decorators/handlers/custom/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/index.js +0 -3
- package/dist/src/decorators/handlers/custom/index.js.map +0 -1
- package/dist/src/decorators/handlers/index.d.ts +0 -30
- package/dist/src/decorators/handlers/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/index.js +0 -121
- package/dist/src/decorators/handlers/index.js.map +0 -1
- package/dist/src/decorators/routed-interfaces.d.ts.map +0 -1
- package/dist/src/decorators/routed-interfaces.js +0 -43
- package/dist/src/decorators/routed-interfaces.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
item: Model;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const AcceptableMediaTypesAnnotation: FC<{
|
|
3
|
+
streamTypes: string[];
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=acceptable-media-types-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptable-media-types-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"acceptable-media-types-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,8BAA8B,EAAE,EAAE,CAAC;IAAE,WAAW,EAAG,MAAM,EAAE,CAAA;CAAE,CAezE,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { getStreamTypes } from "../index.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement, CollectionElement, StringElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
export const AcceptableMediaTypesAnnotation = ({ item }) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const streamTypes = getStreamTypes(program, item);
|
|
3
|
+
export const AcceptableMediaTypesAnnotation = ({ streamTypes }) => {
|
|
8
4
|
if (!streamTypes.length) {
|
|
9
5
|
return React.createElement(React.Fragment, null);
|
|
10
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptable-media-types-annotation.js","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"acceptable-media-types-annotation.js","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE3F,MAAM,CAAC,MAAM,8BAA8B,GAAmC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;IAChG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;QACvB,OAAO,yCAAK,CAAC;KACd;IACD,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,wCAAwC;QAC9D,oBAAC,iBAAiB,QACf,WAAW,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,CAChD,oBAAC,aAAa,IAAC,GAAG,EAAE,KAAK;YACvB,0CAAG,IAAI,CAAI,CACG,CACjB,CAAC,CACgB,CACF,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const AlternateKeysAnnotation:
|
|
4
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AlternateKeyProperty } from "../entities/model.js";
|
|
3
|
+
export declare const AlternateKeysAnnotation: FC<{
|
|
4
|
+
alternateKeys: AlternateKeyProperty[];
|
|
5
5
|
}>;
|
|
6
6
|
//# sourceMappingURL=alternate-keys-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alternate-keys-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,aAAa,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAoBjF,CAAC"}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { ProgramContext } from "./program-context.js";
|
|
5
|
-
export const AlternateKeysAnnotation = ({ model }) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const alternateKeys = [...model.properties.entries()]
|
|
8
|
-
.filter(([_, v]) => isAlternateKey(program, v))
|
|
9
|
-
.reduce((prev, [_, prop]) => [...prev, prop], []);
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
+
export const AlternateKeysAnnotation = ({ alternateKeys }) => {
|
|
10
4
|
if (!alternateKeys.length) {
|
|
11
5
|
return React.createElement(React.Fragment, null);
|
|
12
6
|
}
|
|
13
7
|
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.AlternateKeys" },
|
|
14
|
-
React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.name },
|
|
8
|
+
React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.ModelProperty.name },
|
|
15
9
|
React.createElement(PropertyValueElement, { Property: "Key" },
|
|
16
10
|
React.createElement(CollectionElement, null,
|
|
17
11
|
React.createElement(AlternateKeyRecord, { property: key })))))))));
|
|
18
12
|
};
|
|
19
13
|
const AlternateKeyRecord = ({ property }) => {
|
|
20
|
-
|
|
21
|
-
if (property.type.kind !== "Model" || !isComplex(program, property.type)) {
|
|
14
|
+
if (!property.IsModel) {
|
|
22
15
|
return (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef" },
|
|
23
|
-
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.name })));
|
|
16
|
+
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.ModelProperty.name })));
|
|
24
17
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.name}/${prop.name}` }),
|
|
18
|
+
return (React.createElement(React.Fragment, null, [...property.ModelProperty.type.properties].map(([_, prop]) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
|
|
19
|
+
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.ModelProperty.name}/${prop.name}` }),
|
|
28
20
|
React.createElement(PropertyValueElement, { Property: "Alias", String: prop.name }))))));
|
|
29
21
|
};
|
|
30
22
|
//# sourceMappingURL=alternate-keys-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"alternate-keys-annotation.js","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,IAAI,EAAC,+BAA+B,EAAC,GAAG,EAAE,IAAI,CAAC,IAAI;QAChE,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,GAAI;QACrG,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,GAAI,CAC9C,CACjB,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AllowedValuesAnnotations, CollectionAnnotations, ResourceAnnotations } from "../entities/annotations.js";
|
|
3
|
+
export declare const CollectionAnnotationsList: FC<{
|
|
4
|
+
elements: Map<string, CollectionAnnotations>;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ResourceAnnotationsList: FC<{
|
|
7
|
+
elements: Map<string, ResourceAnnotations>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const AllowedValuesAnnotationsList: FC<{
|
|
10
|
+
elements: Map<string, AllowedValuesAnnotations>;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAUjC,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAYlH,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;CAAE,CAIrF,CAAA;AAEN,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAAE,CAIjF,CAAA;AAEJ,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;CAAG,CAI9F,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CountRestrictionsAnnotation } from "./count-restrictions-annotation.js";
|
|
3
|
+
import { ExpandRestrictionsAnnotation } from "./expand-restrictions-annotation.js";
|
|
4
|
+
import { SearchRestrictionsAnnotation } from "./search-restrictions-annotation.js";
|
|
5
|
+
import { AnnotationElement, CollectionElement, ItemList, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
6
|
+
import { SkipSupportedAnnotation } from "./skip-supported-annotation.js";
|
|
7
|
+
import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
|
|
8
|
+
import { TopSupportedAnnotation } from "./top-supported-annotation.js";
|
|
9
|
+
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
10
|
+
import { UpdateRestrictionsAnnotation } from "./update-restrictions-annotation.js";
|
|
11
|
+
import { InsertRestrictionsAnnotation } from "./insert-restrictions-annotation.js";
|
|
12
|
+
import { FilterRestrictionsAnnotation } from "./filter-restrictions-annotation.js";
|
|
13
|
+
import { getCSDLPrimitiveType } from "../utils.js";
|
|
14
|
+
const AnnotationsElem = (props) => React.createElement("Annotations", props);
|
|
15
|
+
export const CollectionAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(CollectionAnnotationsElement, { element: element }) });
|
|
16
|
+
export const ResourceAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(ResourceAnnotationsElement, { element: element }) });
|
|
17
|
+
export const AllowedValuesAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(AllowedValuesAnnotation, { element: element }) });
|
|
18
|
+
const AllowedValuesAnnotation = ({ element }) => {
|
|
19
|
+
var _a;
|
|
20
|
+
const { Target, allowedValues } = element;
|
|
21
|
+
return (React.createElement(AnnotationsElem, { Target: Target },
|
|
22
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Validation.V1.AllowedValues" },
|
|
23
|
+
React.createElement(CollectionElement, null, (_a = allowedValues === null || allowedValues === void 0 ? void 0 : allowedValues.values) === null || _a === void 0 ? void 0 : _a.map((value) => {
|
|
24
|
+
const csdlType = getCSDLPrimitiveType(allowedValues.type);
|
|
25
|
+
const props = {
|
|
26
|
+
Property: "Value",
|
|
27
|
+
[csdlType]: value
|
|
28
|
+
};
|
|
29
|
+
return (React.createElement(RecordElement, { key: value },
|
|
30
|
+
React.createElement(PropertyValueElement, { ...props })));
|
|
31
|
+
})))));
|
|
32
|
+
};
|
|
33
|
+
const CollectionAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
34
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
35
|
+
React.createElement(RecordElement, null,
|
|
36
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection }),
|
|
37
|
+
React.createElement(PropertyValueElement, { Property: "ReadByKeyRestrictions" },
|
|
38
|
+
React.createElement(RecordElement, null,
|
|
39
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))))),
|
|
40
|
+
React.createElement(InsertRestrictionsAnnotation, { hasPostOnCollection: element.HasPostOnCollection, requiredProperties: element.RequiredProperties }),
|
|
41
|
+
React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnResource }),
|
|
42
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
43
|
+
React.createElement(RecordElement, null,
|
|
44
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
45
|
+
React.createElement(CountRestrictionsAnnotation, { hasCountOnCollection: element.HasCountOnCollection }),
|
|
46
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }),
|
|
47
|
+
React.createElement(SearchRestrictionsAnnotation, { hasSearchOnCollection: element.HasSearchOnCollection }),
|
|
48
|
+
React.createElement(SkipSupportedAnnotation, { hasSkipOnCollection: element.HasSkipOnCollection }),
|
|
49
|
+
React.createElement(FilterRestrictionsAnnotation, { hasFilterOperation: element.HasFilterOperation, nonFilterableProperties: element.NonFilterableProperties }),
|
|
50
|
+
React.createElement(SortRestrictionsAnnotation, { hasSortOnCollection: element.HasSortOnCollection, nonSortableProperties: element.NonSortableProperties }),
|
|
51
|
+
React.createElement(TopSupportedAnnotation, { hasTopOnCollection: element.HasTopOnCollection }),
|
|
52
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
53
|
+
const ResourceAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
54
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
55
|
+
React.createElement(RecordElement, null,
|
|
56
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))),
|
|
57
|
+
React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnResource }),
|
|
58
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
59
|
+
React.createElement(RecordElement, null,
|
|
60
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
61
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }),
|
|
62
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
63
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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AC,kBAAkB,GAAI;IAE1E,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA;AAEtB,MAAM,0BAA0B,GAAyC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,CACtF,oBAAC,eAAe,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM;IACrC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4CAA4C;QAClE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,UAAU,EAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,GAAI,CAC9D,CACE;IAEpB,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,GAAG;IAE/E,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;QACpE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAI,CAClE,CACE;IAEpB,oBAAC,4BAA4B,IAAC,+BAA+B,EAAE,OAAO,CAAC,+BAA+B,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI;IACpK,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA"}
|
|
@@ -2,10 +2,15 @@ import React, { ReactElement } from "react";
|
|
|
2
2
|
interface AnnotationProps {
|
|
3
3
|
Term: string;
|
|
4
4
|
String?: string;
|
|
5
|
-
Bool?:
|
|
5
|
+
Bool?: boolean;
|
|
6
6
|
children?: any;
|
|
7
7
|
}
|
|
8
|
-
export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<
|
|
8
|
+
export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<{
|
|
9
|
+
Bool: string | undefined;
|
|
10
|
+
Term: string;
|
|
11
|
+
String?: string | undefined;
|
|
12
|
+
children?: any;
|
|
13
|
+
}, Element>;
|
|
9
14
|
export declare const AnnotationEnumMemberElement: (props: {
|
|
10
15
|
children?: any;
|
|
11
16
|
}) => React.DOMElement<{
|
|
@@ -43,81 +48,18 @@ interface PropertyValueProps {
|
|
|
43
48
|
Date?: string;
|
|
44
49
|
EnumMember?: string;
|
|
45
50
|
String?: string;
|
|
46
|
-
Bool?:
|
|
51
|
+
Bool?: boolean;
|
|
47
52
|
PropertyPath?: string;
|
|
48
53
|
children?: any;
|
|
49
54
|
}
|
|
50
|
-
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
interface EnumTypeProps {
|
|
58
|
-
Name: string;
|
|
59
|
-
children: any;
|
|
60
|
-
}
|
|
61
|
-
export declare const EnumTypeElement: (props: EnumTypeProps) => React.DOMElement<EnumTypeProps, Element>;
|
|
62
|
-
export declare const PropertyRefElement: (props: {
|
|
63
|
-
Name: string;
|
|
64
|
-
}) => React.ReactElement<{
|
|
65
|
-
Name: string;
|
|
66
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
67
|
-
interface ActionProps {
|
|
68
|
-
Name: string;
|
|
69
|
-
IsBound: string;
|
|
70
|
-
children: any;
|
|
71
|
-
}
|
|
72
|
-
export declare const ActionElement: (props: ActionProps) => React.DOMElement<ActionProps, Element>;
|
|
73
|
-
interface FunctionProps {
|
|
74
|
-
Name: string;
|
|
75
|
-
IsBound: string;
|
|
76
|
-
children: any;
|
|
77
|
-
}
|
|
78
|
-
export declare const FunctionElement: (props: FunctionProps) => React.DOMElement<FunctionProps, Element>;
|
|
79
|
-
interface ParameterProps {
|
|
80
|
-
Name: string;
|
|
81
|
-
Type: string;
|
|
82
|
-
Nullable?: string;
|
|
83
|
-
children?: any;
|
|
84
|
-
}
|
|
85
|
-
export declare const ParameterElement: (props: ParameterProps) => React.DOMElement<ParameterProps, Element>;
|
|
86
|
-
export declare const ReturnTypeElement: (props: {
|
|
87
|
-
Type: string;
|
|
88
|
-
Nullable?: string;
|
|
89
|
-
}) => React.ReactElement<{
|
|
90
|
-
Type: string;
|
|
91
|
-
Nullable?: string | undefined;
|
|
92
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
93
|
-
interface EntityContainerProps {
|
|
94
|
-
Name?: string;
|
|
95
|
-
children: any;
|
|
96
|
-
}
|
|
97
|
-
export declare const EntityContainerElement: (props: EntityContainerProps) => React.DOMElement<EntityContainerProps, Element>;
|
|
98
|
-
interface SingletonProps {
|
|
99
|
-
Name: string;
|
|
100
|
-
Type: string;
|
|
101
|
-
children?: any;
|
|
102
|
-
}
|
|
103
|
-
export declare const SingletonElement: (props: SingletonProps) => React.DOMElement<SingletonProps, Element>;
|
|
104
|
-
interface EntitySetProps {
|
|
105
|
-
Name: string;
|
|
106
|
-
EntityType: string;
|
|
55
|
+
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<{
|
|
56
|
+
Bool: string | undefined;
|
|
57
|
+
Property: string;
|
|
58
|
+
Date?: string | undefined;
|
|
59
|
+
EnumMember?: string | undefined;
|
|
60
|
+
String?: string | undefined;
|
|
61
|
+
PropertyPath?: string | undefined;
|
|
107
62
|
children?: any;
|
|
108
|
-
}
|
|
109
|
-
export declare const EntitySetElement: (props: EntitySetProps) => React.DOMElement<EntitySetProps, Element>;
|
|
110
|
-
interface SchemaProps {
|
|
111
|
-
Namespace: string;
|
|
112
|
-
Alias?: string;
|
|
113
|
-
children: any;
|
|
114
|
-
}
|
|
115
|
-
export declare const SchemaElement: (props: SchemaProps) => React.DOMElement<{
|
|
116
|
-
xmlns: string;
|
|
117
|
-
"xmlns:ags": string;
|
|
118
|
-
Namespace: string;
|
|
119
|
-
Alias?: string | undefined;
|
|
120
|
-
children: any;
|
|
121
63
|
}, Element>;
|
|
122
64
|
interface ItemListProps<T> {
|
|
123
65
|
items: Map<string, T> | T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.d.ts","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"common-elements.d.ts","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,UAAW,eAAe;;UANhD,MAAM;;eAGD,GAAG;WAGwH,CAAC;AAEzI,eAAO,MAAM,2BAA2B,UAAW;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE;eAAL,GAAG;WAA+C,CAAC;AAEnH,eAAO,MAAM,iBAAiB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA+C,CAAC;AAExG,eAAO,MAAM,aAAa,UAAW;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE;;cAAL,GAAG;WAA2C,CAAC;AAE/G,eAAO,MAAM,aAAa,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA2C,CAAC;AAEhG,eAAO,MAAM,6BAA6B,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA2D,CAAC;AAEhI,eAAO,MAAM,mBAAmB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAAiD,CAAC;AAE5G,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,eAAO,MAAM,oBAAoB,UAAW,kBAAkB;;cARlD,MAAM;;;;;eAML,GAAG;WAEiI,CAAC;AAElJ,UAAU,aAAa,CAAC,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,QAAQ,4DAYpB,CAAC"}
|
|
@@ -1,38 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export const AnnotationElement = (props) => React.createElement("Annotation", props);
|
|
2
|
+
export const AnnotationElement = (props) => { var _a; return React.createElement("Annotation", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
|
|
3
3
|
export const AnnotationEnumMemberElement = (props) => React.createElement("EnumMember", props);
|
|
4
4
|
export const CollectionElement = (props) => React.createElement("Collection", props);
|
|
5
5
|
export const RecordElement = (props) => React.createElement("Record", props);
|
|
6
6
|
export const StringElement = (props) => React.createElement("String", props);
|
|
7
7
|
export const NavigationPropertyPathElement = (props) => React.createElement("NavigationPropertyPath", props);
|
|
8
8
|
export const PropertyPathElement = (props) => React.createElement("PropertyPath", props);
|
|
9
|
-
export const PropertyValueElement = (props) => React.createElement("PropertyValue", props);
|
|
10
|
-
export const EnumMemberElement = (props) => React.createElement("Member", props);
|
|
11
|
-
export const EnumTypeElement = (props) => React.createElement("EnumType", props);
|
|
12
|
-
export const PropertyRefElement = (props) => React.createElement("PropertyRef", props);
|
|
13
|
-
export const ActionElement = (props) => React.createElement("Action", props);
|
|
14
|
-
export const FunctionElement = (props) => React.createElement("Function", props);
|
|
15
|
-
export const ParameterElement = (props) => React.createElement("Parameter", props);
|
|
16
|
-
export const ReturnTypeElement = (props) => React.createElement("ReturnType", props);
|
|
17
|
-
export const EntityContainerElement = (props) => React.createElement("EntityContainer", props);
|
|
18
|
-
export const SingletonElement = (props) => React.createElement("Singleton", props);
|
|
19
|
-
export const EntitySetElement = (props) => React.createElement("EntitySet", props);
|
|
20
|
-
export const SchemaElement = (props) => React.createElement("Schema", {
|
|
21
|
-
...props,
|
|
22
|
-
xmlns: "http://docs.oasis-open.org/odata/ns/edm",
|
|
23
|
-
"xmlns:ags": "http://aggregator.microsoft.com/internal",
|
|
24
|
-
});
|
|
9
|
+
export const PropertyValueElement = (props) => { var _a; return React.createElement("PropertyValue", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
|
|
25
10
|
export const ItemList = (props) => {
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
return React.createElement(React.Fragment, null);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
if (props.items.size === 0) {
|
|
33
|
-
return React.createElement(React.Fragment, null);
|
|
34
|
-
}
|
|
11
|
+
if (isEmpty(props.items)) {
|
|
12
|
+
return React.createElement(React.Fragment, null);
|
|
35
13
|
}
|
|
36
14
|
return (React.createElement(React.Fragment, null, [...props.items.entries()].map(([k, v]) => (React.createElement(React.Fragment, { key: k }, props.render(v))))));
|
|
37
15
|
};
|
|
16
|
+
function isEmpty(items) {
|
|
17
|
+
if (Array.isArray(items)) {
|
|
18
|
+
return items.length === 0;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return items.size === 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
38
24
|
//# sourceMappingURL=common-elements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAS5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAsB,EAAE,EAAE,WAAC,OAAA,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,EAAC,GAAG,KAAK,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,0CAAE,QAAQ,EAAE,EAAC,CAAC,CAAA,EAAA,CAAC;AAEzI,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAyB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAEnH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAuC,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE/G,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAEhG,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;AAEhI,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AAW5G,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAyB,EAAE,EAAE,WAAC,OAAA,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,EAAC,GAAG,KAAK,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,0CAAE,QAAQ,EAAE,EAAC,CAAC,CAAA,EAAA,CAAC;AAOlJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAmB,KAAuB,EAAE,EAAE;IACpE,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,CACL,0CACG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAC1C,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,IAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAkB,CAC3D,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,OAAO,CAAC,KAA+B;IAC9C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;KAC3B;SAAM;QACL,OAAO,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;KACzB;AACH,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
property: ModelProperty;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const ComputedAnnotation: FC<{
|
|
3
|
+
isComputed: boolean;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=computed-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"computed-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAGhD,CAAA"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { ProgramContext } from "./program-context.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!isComputed(program, prop)) {
|
|
8
|
-
return React.createElement(React.Fragment, null);
|
|
9
|
-
}
|
|
10
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: "true" });
|
|
11
|
-
};
|
|
3
|
+
export const ComputedAnnotation = ({ isComputed }) => isComputed
|
|
4
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: isComputed })
|
|
5
|
+
: React.createElement(React.Fragment, null);
|
|
12
6
|
//# sourceMappingURL=computed-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAgC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAChF,UAAU;IACR,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4BAA4B,EAAC,IAAI,EAAE,UAAU,GAAI;IAC3E,CAAC,CAAC,yCAAK,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface: Interface;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const CountRestrictionsAnnotation: FC<{
|
|
3
|
+
hasCountOnCollection: boolean;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=count-restrictions-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,CAKxD,CAAA"}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { isCount } from "../index.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const hasCountOperation = [...props.interface.operations].some(([_, operation]) => isCount(program, operation));
|
|
8
|
-
if (hasCountOperation) {
|
|
9
|
-
return React.createElement(React.Fragment, null);
|
|
10
|
-
}
|
|
11
|
-
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.CountRestrictions" },
|
|
12
|
-
React.createElement(RecordElement, null,
|
|
13
|
-
React.createElement(PropertyValueElement, { Property: "Countable", Bool: "false" }))));
|
|
14
|
-
};
|
|
3
|
+
export const CountRestrictionsAnnotation = ({ hasCountOnCollection }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.CountRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Countable", Bool: hasCountOnCollection })));
|
|
15
6
|
//# sourceMappingURL=count-restrictions-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,2BAA2B,GAA0C,CAAC,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAC7G,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6CAA6C;IACnE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,oBAAoB,GAAI,CAC3D,CACE,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: Type;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const DescriptionAnnotation: FC<{
|
|
3
|
+
description: string | undefined;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=description-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAG/D,CAAA"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React, { useContext } from "react";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
export const DescriptionAnnotation = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (text) {
|
|
9
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: text });
|
|
10
|
-
}
|
|
11
|
-
return React.createElement(React.Fragment, null);
|
|
12
|
-
};
|
|
3
|
+
// ToDo: add unit tests to Description annotation
|
|
4
|
+
export const DescriptionAnnotation = ({ description }) => description
|
|
5
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: description })
|
|
6
|
+
: React.createElement(React.Fragment, null);
|
|
13
7
|
//# sourceMappingURL=description-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,iDAAiD;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAA4C,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAChG,WAAW;IACT,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAE,WAAW,GAAI;IACjF,CAAC,CAAC,yCAAK,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { EntitySet, Singleton } from "../entities/entity-container.js";
|
|
3
|
+
interface SingletonProps {
|
|
4
|
+
Name: string | undefined;
|
|
5
|
+
Type: string;
|
|
6
|
+
children?: any;
|
|
7
|
+
}
|
|
8
|
+
declare const Singleton: (props: SingletonProps) => React.DOMElement<SingletonProps, Element>;
|
|
9
|
+
interface EntitySetProps {
|
|
10
|
+
Name: string | undefined;
|
|
11
|
+
EntityType: string;
|
|
12
|
+
children?: any;
|
|
13
|
+
}
|
|
14
|
+
declare const EntitySet: (props: EntitySetProps) => React.DOMElement<EntitySetProps, Element>;
|
|
15
|
+
export declare const EntityContainerElement: FC<{
|
|
16
|
+
singletons: Map<string, Singleton>;
|
|
17
|
+
entitySets: Map<string, EntitySet>;
|
|
18
|
+
agsAttributes: Record<string, string>;
|
|
19
|
+
}>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=entity-container-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-container-element.d.ts","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAQvE,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IACtC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAQf,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ItemList } from "./common-elements.js";
|
|
3
|
+
const EntityContainerElem = (props) => React.createElement("EntityContainer", props);
|
|
4
|
+
const Singleton = (props) => React.createElement("Singleton", props);
|
|
5
|
+
const EntitySet = (props) => React.createElement("EntitySet", props);
|
|
6
|
+
export const EntityContainerElement = ({ singletons, entitySets, agsAttributes, }) => React.createElement(EntityContainerElem, { Name: "container", ...agsAttributes },
|
|
7
|
+
React.createElement(SingletonList, { elements: singletons }),
|
|
8
|
+
React.createElement(EntitySetList, { elements: entitySets }));
|
|
9
|
+
const SingletonList = ({ elements }) => {
|
|
10
|
+
return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(SingletonElement, { element: element }) }));
|
|
11
|
+
};
|
|
12
|
+
const EntitySetList = ({ elements }) => {
|
|
13
|
+
return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EntitySetElement, { element: element }) }));
|
|
14
|
+
};
|
|
15
|
+
const SingletonElement = ({ element }) => React.createElement(Singleton, { Name: element.Name, Type: element.TypeName, ...element.AgsAttributes });
|
|
16
|
+
const EntitySetElement = ({ element }) => {
|
|
17
|
+
if (!element.TypeName) {
|
|
18
|
+
return React.createElement(React.Fragment, null);
|
|
19
|
+
}
|
|
20
|
+
return React.createElement(EntitySet, { Name: element.Name, EntityType: element.TypeName, ...element.AgsAttributes });
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=entity-container-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-container-element.js","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAA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