breeze-client 2.1.3-mjs → 2.1.4
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/README.md +18 -5
- package/adapter-ajax-angularjs/{index.d.ts → breeze-client-adapter-ajax-angularjs.d.ts} +0 -1
- package/adapter-ajax-angularjs/breeze-client-adapter-ajax-angularjs.metadata.json +1 -0
- package/adapter-ajax-angularjs/package.json +13 -0
- package/adapter-ajax-fetch/{index.d.ts → breeze-client-adapter-ajax-fetch.d.ts} +0 -1
- package/adapter-ajax-fetch/breeze-client-adapter-ajax-fetch.metadata.json +1 -0
- package/adapter-ajax-fetch/package.json +13 -0
- package/adapter-ajax-httpclient/{index.d.ts → breeze-client-adapter-ajax-httpclient.d.ts} +0 -1
- package/adapter-ajax-httpclient/breeze-client-adapter-ajax-httpclient.metadata.json +1 -0
- package/adapter-ajax-httpclient/package.json +13 -0
- package/adapter-ajax-jquery/{index.d.ts → breeze-client-adapter-ajax-jquery.d.ts} +0 -1
- package/adapter-ajax-jquery/breeze-client-adapter-ajax-jquery.metadata.json +1 -0
- package/adapter-ajax-jquery/package.json +13 -0
- package/adapter-ajax-post/{index.d.ts → breeze-client-adapter-ajax-post.d.ts} +0 -1
- package/adapter-ajax-post/breeze-client-adapter-ajax-post.metadata.json +1 -0
- package/adapter-ajax-post/package.json +13 -0
- package/adapter-data-service-odata/{index.d.ts → breeze-client-adapter-data-service-odata.d.ts} +0 -1
- package/adapter-data-service-odata/breeze-client-adapter-data-service-odata.metadata.json +1 -0
- package/adapter-data-service-odata/package.json +13 -0
- package/adapter-data-service-webapi/{index.d.ts → breeze-client-adapter-data-service-webapi.d.ts} +0 -1
- package/adapter-data-service-webapi/breeze-client-adapter-data-service-webapi.metadata.json +1 -0
- package/adapter-data-service-webapi/package.json +13 -0
- package/adapter-model-library-backing-store/{index.d.ts → breeze-client-adapter-model-library-backing-store.d.ts} +0 -1
- package/adapter-model-library-backing-store/breeze-client-adapter-model-library-backing-store.metadata.json +1 -0
- package/adapter-model-library-backing-store/package.json +13 -0
- package/adapter-model-library-ko/{index.d.ts → breeze-client-adapter-model-library-ko.d.ts} +0 -1
- package/adapter-model-library-ko/breeze-client-adapter-model-library-ko.metadata.json +1 -0
- package/adapter-model-library-ko/package.json +13 -0
- package/adapter-uri-builder-json/{index.d.ts → breeze-client-adapter-uri-builder-json.d.ts} +0 -1
- package/adapter-uri-builder-json/breeze-client-adapter-uri-builder-json.metadata.json +1 -0
- package/adapter-uri-builder-json/package.json +13 -0
- package/adapter-uri-builder-odata/{index.d.ts → breeze-client-adapter-uri-builder-odata.d.ts} +0 -1
- package/adapter-uri-builder-odata/breeze-client-adapter-uri-builder-odata.metadata.json +1 -0
- package/adapter-uri-builder-odata/package.json +13 -0
- package/breeze-client.d.ts +8 -0
- package/breeze-client.metadata.json +1 -0
- package/bundles/breeze-client-adapter-ajax-angularjs.umd.js +190 -0
- package/bundles/breeze-client-adapter-ajax-angularjs.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-angularjs.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-ajax-angularjs.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-fetch.umd.js +190 -0
- package/bundles/breeze-client-adapter-ajax-fetch.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-fetch.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-ajax-fetch.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-httpclient.umd.js +195 -0
- package/bundles/breeze-client-adapter-ajax-httpclient.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-httpclient.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-ajax-httpclient.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-jquery.umd.js +115 -0
- package/bundles/breeze-client-adapter-ajax-jquery.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-jquery.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-ajax-jquery.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-post.umd.js +92 -0
- package/bundles/breeze-client-adapter-ajax-post.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-ajax-post.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-ajax-post.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-data-service-odata.umd.js +743 -0
- package/bundles/breeze-client-adapter-data-service-odata.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-data-service-odata.umd.min.js +16 -0
- package/bundles/breeze-client-adapter-data-service-odata.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-data-service-webapi.umd.js +326 -0
- package/bundles/breeze-client-adapter-data-service-webapi.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-data-service-webapi.umd.min.js +16 -0
- package/bundles/breeze-client-adapter-data-service-webapi.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-model-library-backing-store.umd.js +280 -0
- package/bundles/breeze-client-adapter-model-library-backing-store.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-model-library-backing-store.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-model-library-backing-store.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-model-library-ko.umd.js +252 -0
- package/bundles/breeze-client-adapter-model-library-ko.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-model-library-ko.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-model-library-ko.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-uri-builder-json.umd.js +96 -0
- package/bundles/breeze-client-adapter-uri-builder-json.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-uri-builder-json.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-uri-builder-json.umd.min.js.map +1 -0
- package/bundles/breeze-client-adapter-uri-builder-odata.umd.js +262 -0
- package/bundles/breeze-client-adapter-uri-builder-odata.umd.js.map +1 -0
- package/bundles/breeze-client-adapter-uri-builder-odata.umd.min.js +2 -0
- package/bundles/breeze-client-adapter-uri-builder-odata.umd.min.js.map +1 -0
- package/bundles/breeze-client-mixin-get-entity-graph.umd.js +258 -0
- package/bundles/breeze-client-mixin-get-entity-graph.umd.js.map +1 -0
- package/bundles/breeze-client-mixin-get-entity-graph.umd.min.js +2 -0
- package/bundles/breeze-client-mixin-get-entity-graph.umd.min.js.map +1 -0
- package/bundles/breeze-client-mixin-save-queuing.umd.js +579 -0
- package/bundles/breeze-client-mixin-save-queuing.umd.js.map +1 -0
- package/bundles/breeze-client-mixin-save-queuing.umd.min.js +16 -0
- package/bundles/breeze-client-mixin-save-queuing.umd.min.js.map +1 -0
- package/bundles/breeze-client.umd.js +14098 -0
- package/bundles/breeze-client.umd.js.map +1 -0
- package/bundles/breeze-client.umd.min.js +16 -0
- package/bundles/breeze-client.umd.min.js.map +1 -0
- package/esm2015/adapter-ajax-angularjs/adapter-ajax-angularjs.js +130 -0
- package/esm2015/adapter-ajax-angularjs/adapter-core.js +49 -0
- package/esm2015/adapter-ajax-angularjs/breeze-client-adapter-ajax-angularjs.js +5 -0
- package/esm2015/adapter-ajax-fetch/adapter-ajax-fetch.js +130 -0
- package/esm2015/adapter-ajax-fetch/adapter-core.js +49 -0
- package/esm2015/adapter-ajax-fetch/breeze-client-adapter-ajax-fetch.js +5 -0
- package/esm2015/adapter-ajax-httpclient/adapter-ajax-httpclient.js +137 -0
- package/esm2015/adapter-ajax-httpclient/adapter-core.js +49 -0
- package/esm2015/adapter-ajax-httpclient/breeze-client-adapter-ajax-httpclient.js +5 -0
- package/esm2015/adapter-ajax-jquery/adapter-ajax-jquery.js +103 -0
- package/esm2015/adapter-ajax-jquery/breeze-client-adapter-ajax-jquery.js +5 -0
- package/esm2015/adapter-ajax-post/adapter-ajax-post.js +77 -0
- package/esm2015/adapter-ajax-post/breeze-client-adapter-ajax-post.js +5 -0
- package/esm2015/adapter-data-service-odata/adapter-core.js +49 -0
- package/esm2015/adapter-data-service-odata/adapter-data-service-odata.js +459 -0
- package/esm2015/adapter-data-service-odata/breeze-client-adapter-data-service-odata.js +5 -0
- package/esm2015/adapter-data-service-webapi/adapter-data-service-webapi.js +93 -0
- package/esm2015/adapter-data-service-webapi/breeze-client-adapter-data-service-webapi.js +5 -0
- package/esm2015/adapter-model-library-backing-store/adapter-model-library-backing-store.js +268 -0
- package/esm2015/adapter-model-library-backing-store/breeze-client-adapter-model-library-backing-store.js +5 -0
- package/esm2015/adapter-model-library-ko/adapter-model-library-ko.js +240 -0
- package/esm2015/adapter-model-library-ko/breeze-client-adapter-model-library-ko.js +5 -0
- package/esm2015/adapter-uri-builder-json/adapter-core.js +49 -0
- package/esm2015/adapter-uri-builder-json/adapter-uri-builder-json.js +36 -0
- package/esm2015/adapter-uri-builder-json/breeze-client-adapter-uri-builder-json.js +5 -0
- package/esm2015/adapter-uri-builder-odata/adapter-core.js +49 -0
- package/esm2015/adapter-uri-builder-odata/adapter-uri-builder-odata.js +192 -0
- package/esm2015/adapter-uri-builder-odata/breeze-client-adapter-uri-builder-odata.js +5 -0
- package/esm2015/breeze-client.js +9 -0
- package/esm2015/index.js +2 -0
- package/esm2015/mixin-get-entity-graph/breeze-client-mixin-get-entity-graph.js +5 -0
- package/esm2015/mixin-get-entity-graph/mixin-get-entity-graph.js +269 -0
- package/esm2015/mixin-save-queuing/breeze-client-mixin-save-queuing.js +5 -0
- package/esm2015/mixin-save-queuing/mixin-save-queuing.js +400 -0
- package/esm2015/src/abstract-data-service-adapter.js +296 -0
- package/esm2015/src/array.js +4 -0
- package/esm2015/src/assert-param.js +312 -0
- package/esm2015/src/breeze.js +85 -0
- package/esm2015/src/complex-array.js +119 -0
- package/esm2015/src/config.js +223 -0
- package/esm2015/src/core.js +709 -0
- package/esm2015/src/csdl-metadata-parser.js +385 -0
- package/esm2015/src/data-service.js +203 -0
- package/esm2015/src/data-type.js +444 -0
- package/esm2015/src/default-property-interceptor.js +460 -0
- package/esm2015/src/entity-action.js +45 -0
- package/esm2015/src/entity-aspect.js +806 -0
- package/esm2015/src/entity-group.js +187 -0
- package/esm2015/src/entity-key.js +116 -0
- package/esm2015/src/entity-manager.js +2094 -0
- package/esm2015/src/entity-metadata.js +2109 -0
- package/esm2015/src/entity-query.js +996 -0
- package/esm2015/src/entity-state.js +99 -0
- package/esm2015/src/enum.js +141 -0
- package/esm2015/src/event.js +256 -0
- package/esm2015/src/interface-registry.js +41 -0
- package/esm2015/src/key-generator.js +108 -0
- package/esm2015/src/local-query-comparison-options.js +65 -0
- package/esm2015/src/mapping-context.js +405 -0
- package/esm2015/src/naming-convention.js +88 -0
- package/esm2015/src/observable-array.js +185 -0
- package/esm2015/src/predicate.js +1235 -0
- package/esm2015/src/primitive-array.js +87 -0
- package/esm2015/src/query-options.js +152 -0
- package/esm2015/src/relation-array.js +175 -0
- package/esm2015/src/save-options.js +41 -0
- package/esm2015/src/unattached-children-map.js +58 -0
- package/esm2015/src/validate.js +991 -0
- package/esm2015/src/validation-options.js +64 -0
- package/esm5/adapter-ajax-angularjs/adapter-ajax-angularjs.js +132 -0
- package/esm5/adapter-ajax-angularjs/adapter-core.js +49 -0
- package/esm5/adapter-ajax-angularjs/breeze-client-adapter-ajax-angularjs.js +5 -0
- package/esm5/adapter-ajax-fetch/adapter-ajax-fetch.js +132 -0
- package/esm5/adapter-ajax-fetch/adapter-core.js +49 -0
- package/esm5/adapter-ajax-fetch/breeze-client-adapter-ajax-fetch.js +5 -0
- package/esm5/adapter-ajax-httpclient/adapter-ajax-httpclient.js +139 -0
- package/esm5/adapter-ajax-httpclient/adapter-core.js +49 -0
- package/esm5/adapter-ajax-httpclient/breeze-client-adapter-ajax-httpclient.js +5 -0
- package/esm5/adapter-ajax-jquery/adapter-ajax-jquery.js +105 -0
- package/esm5/adapter-ajax-jquery/breeze-client-adapter-ajax-jquery.js +5 -0
- package/esm5/adapter-ajax-post/adapter-ajax-post.js +81 -0
- package/esm5/adapter-ajax-post/breeze-client-adapter-ajax-post.js +5 -0
- package/esm5/adapter-data-service-odata/adapter-core.js +49 -0
- package/esm5/adapter-data-service-odata/adapter-data-service-odata.js +466 -0
- package/esm5/adapter-data-service-odata/breeze-client-adapter-data-service-odata.js +5 -0
- package/esm5/adapter-data-service-webapi/adapter-data-service-webapi.js +98 -0
- package/esm5/adapter-data-service-webapi/breeze-client-adapter-data-service-webapi.js +5 -0
- package/esm5/adapter-model-library-backing-store/adapter-model-library-backing-store.js +270 -0
- package/esm5/adapter-model-library-backing-store/breeze-client-adapter-model-library-backing-store.js +5 -0
- package/esm5/adapter-model-library-ko/adapter-model-library-ko.js +242 -0
- package/esm5/adapter-model-library-ko/breeze-client-adapter-model-library-ko.js +5 -0
- package/esm5/adapter-uri-builder-json/adapter-core.js +49 -0
- package/esm5/adapter-uri-builder-json/adapter-uri-builder-json.js +38 -0
- package/esm5/adapter-uri-builder-json/breeze-client-adapter-uri-builder-json.js +5 -0
- package/esm5/adapter-uri-builder-odata/adapter-core.js +49 -0
- package/esm5/adapter-uri-builder-odata/adapter-uri-builder-odata.js +197 -0
- package/esm5/adapter-uri-builder-odata/breeze-client-adapter-uri-builder-odata.js +5 -0
- package/esm5/breeze-client.js +9 -0
- package/esm5/index.js +2 -0
- package/esm5/mixin-get-entity-graph/breeze-client-mixin-get-entity-graph.js +5 -0
- package/esm5/mixin-get-entity-graph/mixin-get-entity-graph.js +269 -0
- package/esm5/mixin-save-queuing/breeze-client-mixin-save-queuing.js +5 -0
- package/esm5/mixin-save-queuing/mixin-save-queuing.js +412 -0
- package/esm5/src/abstract-data-service-adapter.js +302 -0
- package/esm5/src/array.js +4 -0
- package/esm5/src/assert-param.js +317 -0
- package/esm5/src/breeze.js +85 -0
- package/esm5/src/complex-array.js +119 -0
- package/esm5/src/config.js +228 -0
- package/esm5/src/core.js +717 -0
- package/esm5/src/csdl-metadata-parser.js +385 -0
- package/esm5/src/data-service.js +207 -0
- package/esm5/src/data-type.js +451 -0
- package/esm5/src/default-property-interceptor.js +460 -0
- package/esm5/src/entity-action.js +52 -0
- package/esm5/src/entity-aspect.js +812 -0
- package/esm5/src/entity-group.js +189 -0
- package/esm5/src/entity-key.js +118 -0
- package/esm5/src/entity-manager.js +2112 -0
- package/esm5/src/entity-metadata.js +2144 -0
- package/esm5/src/entity-query.js +1023 -0
- package/esm5/src/entity-state.js +106 -0
- package/esm5/src/enum.js +144 -0
- package/esm5/src/event.js +259 -0
- package/esm5/src/interface-registry.js +43 -0
- package/esm5/src/key-generator.js +111 -0
- package/esm5/src/local-query-comparison-options.js +67 -0
- package/esm5/src/mapping-context.js +407 -0
- package/esm5/src/naming-convention.js +90 -0
- package/esm5/src/observable-array.js +201 -0
- package/esm5/src/predicate.js +1300 -0
- package/esm5/src/primitive-array.js +87 -0
- package/esm5/src/query-options.js +167 -0
- package/esm5/src/relation-array.js +175 -0
- package/esm5/src/save-options.js +43 -0
- package/esm5/src/unattached-children-map.js +60 -0
- package/esm5/src/validate.js +996 -0
- package/esm5/src/validation-options.js +66 -0
- package/fesm2015/{breeze-client-adapter-ajax-angularjs.mjs → breeze-client-adapter-ajax-angularjs.js} +1 -1
- package/fesm2015/breeze-client-adapter-ajax-angularjs.js.map +1 -0
- package/fesm2015/{breeze-client-adapter-ajax-fetch.mjs → breeze-client-adapter-ajax-fetch.js} +3 -5
- package/fesm2015/breeze-client-adapter-ajax-fetch.js.map +1 -0
- package/fesm2015/{breeze-client-adapter-ajax-httpclient.mjs → breeze-client-adapter-ajax-httpclient.js} +1 -1
- package/fesm2015/breeze-client-adapter-ajax-httpclient.js.map +1 -0
- package/fesm2015/{breeze-client-adapter-ajax-jquery.mjs → breeze-client-adapter-ajax-jquery.js} +2 -2
- package/fesm2015/breeze-client-adapter-ajax-jquery.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-ajax-post.mjs → fesm2015/breeze-client-adapter-ajax-post.js} +1 -1
- package/fesm2015/breeze-client-adapter-ajax-post.js.map +1 -0
- package/fesm2015/{breeze-client-adapter-data-service-odata.mjs → breeze-client-adapter-data-service-odata.js} +22 -20
- package/fesm2015/breeze-client-adapter-data-service-odata.js.map +1 -0
- package/fesm2015/{breeze-client-adapter-data-service-webapi.mjs → breeze-client-adapter-data-service-webapi.js} +13 -13
- package/fesm2015/breeze-client-adapter-data-service-webapi.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-model-library-backing-store.mjs → fesm2015/breeze-client-adapter-model-library-backing-store.js} +13 -13
- package/fesm2015/breeze-client-adapter-model-library-backing-store.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-model-library-ko.mjs → fesm2015/breeze-client-adapter-model-library-ko.js} +13 -13
- package/fesm2015/breeze-client-adapter-model-library-ko.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-uri-builder-json.mjs → fesm2015/breeze-client-adapter-uri-builder-json.js} +8 -8
- package/fesm2015/breeze-client-adapter-uri-builder-json.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-uri-builder-odata.mjs → fesm2015/breeze-client-adapter-uri-builder-odata.js} +86 -85
- package/fesm2015/breeze-client-adapter-uri-builder-odata.js.map +1 -0
- package/fesm2015/{breeze-client-mixin-get-entity-graph.mjs → breeze-client-mixin-get-entity-graph.js} +1 -1
- package/fesm2015/breeze-client-mixin-get-entity-graph.js.map +1 -0
- package/fesm2015/{breeze-client-mixin-save-queuing.mjs → breeze-client-mixin-save-queuing.js} +1 -1
- package/fesm2015/breeze-client-mixin-save-queuing.js.map +1 -0
- package/fesm2015/{breeze-client.mjs → breeze-client.js} +418 -409
- package/fesm2015/breeze-client.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-ajax-angularjs.mjs → fesm5/breeze-client-adapter-ajax-angularjs.js} +42 -41
- package/fesm5/breeze-client-adapter-ajax-angularjs.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-ajax-fetch.mjs → fesm5/breeze-client-adapter-ajax-fetch.js} +43 -44
- package/fesm5/breeze-client-adapter-ajax-fetch.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-ajax-httpclient.mjs → fesm5/breeze-client-adapter-ajax-httpclient.js} +44 -43
- package/fesm5/breeze-client-adapter-ajax-httpclient.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-ajax-jquery.mjs → fesm5/breeze-client-adapter-ajax-jquery.js} +19 -18
- package/fesm5/breeze-client-adapter-ajax-jquery.js.map +1 -0
- package/{fesm2015/breeze-client-adapter-ajax-post.mjs → fesm5/breeze-client-adapter-ajax-post.js} +11 -8
- package/fesm5/breeze-client-adapter-ajax-post.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-data-service-odata.mjs → fesm5/breeze-client-adapter-data-service-odata.js} +134 -126
- package/fesm5/breeze-client-adapter-data-service-odata.js.map +1 -0
- package/{fesm2020/breeze-client-adapter-data-service-webapi.mjs → fesm5/breeze-client-adapter-data-service-webapi.js} +42 -38
- package/fesm5/breeze-client-adapter-data-service-webapi.js.map +1 -0
- package/{fesm2015/breeze-client-adapter-model-library-backing-store.mjs → fesm5/breeze-client-adapter-model-library-backing-store.js} +64 -63
- package/fesm5/breeze-client-adapter-model-library-backing-store.js.map +1 -0
- package/{fesm2015/breeze-client-adapter-model-library-ko.mjs → fesm5/breeze-client-adapter-model-library-ko.js} +58 -57
- package/fesm5/breeze-client-adapter-model-library-ko.js.map +1 -0
- package/fesm5/breeze-client-adapter-uri-builder-json.js +92 -0
- package/fesm5/breeze-client-adapter-uri-builder-json.js.map +1 -0
- package/fesm5/breeze-client-adapter-uri-builder-odata.js +250 -0
- package/fesm5/breeze-client-adapter-uri-builder-odata.js.map +1 -0
- package/{fesm2020/breeze-client-mixin-get-entity-graph.mjs → fesm5/breeze-client-mixin-get-entity-graph.js} +45 -45
- package/fesm5/breeze-client-mixin-get-entity-graph.js.map +1 -0
- package/{fesm2020/breeze-client-mixin-save-queuing.mjs → fesm5/breeze-client-mixin-save-queuing.js} +126 -116
- package/fesm5/breeze-client-mixin-save-queuing.js.map +1 -0
- package/{fesm2020/breeze-client.mjs → fesm5/breeze-client.js} +3630 -3414
- package/fesm5/breeze-client.js.map +1 -0
- package/mixin-get-entity-graph/{index.d.ts → breeze-client-mixin-get-entity-graph.d.ts} +0 -1
- package/mixin-get-entity-graph/breeze-client-mixin-get-entity-graph.metadata.json +1 -0
- package/mixin-get-entity-graph/package.json +13 -0
- package/mixin-save-queuing/{index.d.ts → breeze-client-mixin-save-queuing.d.ts} +0 -1
- package/mixin-save-queuing/breeze-client-mixin-save-queuing.metadata.json +1 -0
- package/mixin-save-queuing/package.json +13 -0
- package/package.json +12 -126
- package/src/entity-metadata.d.ts +4 -6
- package/src/entity-query.d.ts +1 -1
- package/esm2020/adapter-ajax-angularjs/adapter-ajax-angularjs.mjs +0 -130
- package/esm2020/adapter-ajax-angularjs/adapter-core.mjs +0 -49
- package/esm2020/adapter-ajax-angularjs/breeze-client-adapter-ajax-angularjs.mjs +0 -5
- package/esm2020/adapter-ajax-fetch/adapter-ajax-fetch.mjs +0 -132
- package/esm2020/adapter-ajax-fetch/adapter-core.mjs +0 -49
- package/esm2020/adapter-ajax-fetch/breeze-client-adapter-ajax-fetch.mjs +0 -5
- package/esm2020/adapter-ajax-httpclient/adapter-ajax-httpclient.mjs +0 -137
- package/esm2020/adapter-ajax-httpclient/adapter-core.mjs +0 -49
- package/esm2020/adapter-ajax-httpclient/breeze-client-adapter-ajax-httpclient.mjs +0 -5
- package/esm2020/adapter-ajax-jquery/adapter-ajax-jquery.mjs +0 -103
- package/esm2020/adapter-ajax-jquery/breeze-client-adapter-ajax-jquery.mjs +0 -5
- package/esm2020/adapter-ajax-post/adapter-ajax-post.mjs +0 -77
- package/esm2020/adapter-ajax-post/breeze-client-adapter-ajax-post.mjs +0 -5
- package/esm2020/adapter-data-service-odata/adapter-core.mjs +0 -49
- package/esm2020/adapter-data-service-odata/adapter-data-service-odata.mjs +0 -456
- package/esm2020/adapter-data-service-odata/breeze-client-adapter-data-service-odata.mjs +0 -5
- package/esm2020/adapter-data-service-webapi/adapter-data-service-webapi.mjs +0 -93
- package/esm2020/adapter-data-service-webapi/breeze-client-adapter-data-service-webapi.mjs +0 -5
- package/esm2020/adapter-model-library-backing-store/adapter-model-library-backing-store.mjs +0 -268
- package/esm2020/adapter-model-library-backing-store/breeze-client-adapter-model-library-backing-store.mjs +0 -5
- package/esm2020/adapter-model-library-ko/adapter-model-library-ko.mjs +0 -240
- package/esm2020/adapter-model-library-ko/breeze-client-adapter-model-library-ko.mjs +0 -5
- package/esm2020/adapter-uri-builder-json/adapter-core.mjs +0 -49
- package/esm2020/adapter-uri-builder-json/adapter-uri-builder-json.mjs +0 -36
- package/esm2020/adapter-uri-builder-json/breeze-client-adapter-uri-builder-json.mjs +0 -5
- package/esm2020/adapter-uri-builder-odata/adapter-core.mjs +0 -49
- package/esm2020/adapter-uri-builder-odata/adapter-uri-builder-odata.mjs +0 -190
- package/esm2020/adapter-uri-builder-odata/breeze-client-adapter-uri-builder-odata.mjs +0 -5
- package/esm2020/breeze-client.mjs +0 -5
- package/esm2020/index.mjs +0 -2
- package/esm2020/mixin-get-entity-graph/breeze-client-mixin-get-entity-graph.mjs +0 -5
- package/esm2020/mixin-get-entity-graph/mixin-get-entity-graph.mjs +0 -269
- package/esm2020/mixin-save-queuing/breeze-client-mixin-save-queuing.mjs +0 -5
- package/esm2020/mixin-save-queuing/mixin-save-queuing.mjs +0 -400
- package/esm2020/src/abstract-data-service-adapter.mjs +0 -296
- package/esm2020/src/array.mjs +0 -4
- package/esm2020/src/assert-param.mjs +0 -312
- package/esm2020/src/breeze.mjs +0 -85
- package/esm2020/src/complex-array.mjs +0 -117
- package/esm2020/src/config.mjs +0 -223
- package/esm2020/src/core.mjs +0 -707
- package/esm2020/src/csdl-metadata-parser.mjs +0 -385
- package/esm2020/src/data-service.mjs +0 -203
- package/esm2020/src/data-type.mjs +0 -444
- package/esm2020/src/default-property-interceptor.mjs +0 -460
- package/esm2020/src/entity-action.mjs +0 -45
- package/esm2020/src/entity-aspect.mjs +0 -806
- package/esm2020/src/entity-group.mjs +0 -187
- package/esm2020/src/entity-key.mjs +0 -116
- package/esm2020/src/entity-manager.mjs +0 -2094
- package/esm2020/src/entity-metadata.mjs +0 -2109
- package/esm2020/src/entity-query.mjs +0 -996
- package/esm2020/src/entity-state.mjs +0 -99
- package/esm2020/src/enum.mjs +0 -141
- package/esm2020/src/event.mjs +0 -256
- package/esm2020/src/interface-registry.mjs +0 -41
- package/esm2020/src/key-generator.mjs +0 -108
- package/esm2020/src/local-query-comparison-options.mjs +0 -65
- package/esm2020/src/mapping-context.mjs +0 -405
- package/esm2020/src/naming-convention.mjs +0 -88
- package/esm2020/src/observable-array.mjs +0 -183
- package/esm2020/src/predicate.mjs +0 -1232
- package/esm2020/src/primitive-array.mjs +0 -85
- package/esm2020/src/query-options.mjs +0 -152
- package/esm2020/src/relation-array.mjs +0 -173
- package/esm2020/src/save-options.mjs +0 -41
- package/esm2020/src/unattached-children-map.mjs +0 -58
- package/esm2020/src/validate.mjs +0 -988
- package/esm2020/src/validation-options.mjs +0 -64
- package/fesm2015/breeze-client-adapter-ajax-angularjs.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-ajax-fetch.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-ajax-httpclient.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-ajax-jquery.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-ajax-post.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-data-service-odata.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-data-service-webapi.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-model-library-backing-store.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-model-library-ko.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-uri-builder-json.mjs +0 -91
- package/fesm2015/breeze-client-adapter-uri-builder-json.mjs.map +0 -1
- package/fesm2015/breeze-client-adapter-uri-builder-odata.mjs +0 -245
- package/fesm2015/breeze-client-adapter-uri-builder-odata.mjs.map +0 -1
- package/fesm2015/breeze-client-mixin-get-entity-graph.mjs.map +0 -1
- package/fesm2015/breeze-client-mixin-save-queuing.mjs.map +0 -1
- package/fesm2015/breeze-client.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-ajax-angularjs.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-ajax-fetch.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-ajax-httpclient.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-ajax-jquery.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-ajax-post.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-data-service-odata.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-data-service-webapi.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-model-library-backing-store.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-model-library-ko.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-uri-builder-json.mjs.map +0 -1
- package/fesm2020/breeze-client-adapter-uri-builder-odata.mjs.map +0 -1
- package/fesm2020/breeze-client-mixin-get-entity-graph.mjs.map +0 -1
- package/fesm2020/breeze-client-mixin-save-queuing.mjs.map +0 -1
- package/fesm2020/breeze-client.mjs.map +0 -1
|
@@ -142,14 +142,15 @@ class BreezeEnum {
|
|
|
142
142
|
/** See if this comment will make it into .d.ts */
|
|
143
143
|
let hasOwnProperty = uncurry(Object.prototype.hasOwnProperty);
|
|
144
144
|
let arraySlice = uncurry(Array.prototype.slice);
|
|
145
|
-
|
|
145
|
+
const ɵ0 = function () {
|
|
146
146
|
try {
|
|
147
147
|
return !!(Object.getPrototypeOf && Object.defineProperty({}, 'x', {}));
|
|
148
148
|
}
|
|
149
149
|
catch (e) {
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
|
-
}
|
|
152
|
+
};
|
|
153
|
+
let isES5Supported = ɵ0();
|
|
153
154
|
// iterate over object
|
|
154
155
|
function objectForEach(obj, kvFn) {
|
|
155
156
|
for (let key in obj) {
|
|
@@ -725,7 +726,7 @@ function isNumeric(n) {
|
|
|
725
726
|
}
|
|
726
727
|
// end of is Functions
|
|
727
728
|
// string functions
|
|
728
|
-
function stringStartsWith
|
|
729
|
+
function stringStartsWith(str, prefix) {
|
|
729
730
|
// returns true for empty string or null prefix
|
|
730
731
|
if ((!str))
|
|
731
732
|
return false;
|
|
@@ -733,7 +734,7 @@ function stringStartsWith$1(str, prefix) {
|
|
|
733
734
|
return true;
|
|
734
735
|
return str.indexOf(prefix, 0) === 0;
|
|
735
736
|
}
|
|
736
|
-
function stringEndsWith
|
|
737
|
+
function stringEndsWith(str, suffix) {
|
|
737
738
|
// returns true for empty string or null suffix
|
|
738
739
|
if ((!str))
|
|
739
740
|
return false;
|
|
@@ -823,8 +824,8 @@ const core = {
|
|
|
823
824
|
isNumeric: isNumeric,
|
|
824
825
|
identity: identity,
|
|
825
826
|
noop: noop,
|
|
826
|
-
stringStartsWith: stringStartsWith
|
|
827
|
-
stringEndsWith: stringEndsWith
|
|
827
|
+
stringStartsWith: stringStartsWith,
|
|
828
|
+
stringEndsWith: stringEndsWith,
|
|
828
829
|
formatString: formatString,
|
|
829
830
|
titleCase: titleCaseSpace,
|
|
830
831
|
toJson: toJson,
|
|
@@ -1662,7 +1663,7 @@ class DataService {
|
|
|
1662
1663
|
@param config - A configuration object.
|
|
1663
1664
|
**/
|
|
1664
1665
|
constructor(config) {
|
|
1665
|
-
updateWithConfig
|
|
1666
|
+
updateWithConfig(this, config);
|
|
1666
1667
|
}
|
|
1667
1668
|
/**
|
|
1668
1669
|
Returns a copy of this DataService with the specified properties applied.
|
|
@@ -1672,7 +1673,7 @@ class DataService {
|
|
|
1672
1673
|
if (!config)
|
|
1673
1674
|
return this;
|
|
1674
1675
|
let result = new DataService(this);
|
|
1675
|
-
return updateWithConfig
|
|
1676
|
+
return updateWithConfig(result, config);
|
|
1676
1677
|
}
|
|
1677
1678
|
static resolve(dataServices) {
|
|
1678
1679
|
// final defaults
|
|
@@ -1743,7 +1744,7 @@ class DataService {
|
|
|
1743
1744
|
}
|
|
1744
1745
|
}
|
|
1745
1746
|
DataService.prototype._$typeName = "DataService";
|
|
1746
|
-
function updateWithConfig
|
|
1747
|
+
function updateWithConfig(obj, dsConfig) {
|
|
1747
1748
|
if (dsConfig) {
|
|
1748
1749
|
assertConfig(dsConfig)
|
|
1749
1750
|
.whereParam("serviceName").isOptional()
|
|
@@ -1836,16 +1837,17 @@ const INT32_MIN = -2147483648;
|
|
|
1836
1837
|
const INT32_MAX = 2147483647;
|
|
1837
1838
|
const BYTE_MIN = 0;
|
|
1838
1839
|
const BYTE_MAX = 255;
|
|
1840
|
+
const ɵ0$1 = function (context) {
|
|
1841
|
+
if (context.property) {
|
|
1842
|
+
return context.property.resolveProperty("displayName") || context.propertyName || context.property.name;
|
|
1843
|
+
}
|
|
1844
|
+
else {
|
|
1845
|
+
return "Value";
|
|
1846
|
+
}
|
|
1847
|
+
};
|
|
1839
1848
|
// add common props and methods for every validator 'context' here.
|
|
1840
1849
|
let rootContext = {
|
|
1841
|
-
displayName:
|
|
1842
|
-
if (context.property) {
|
|
1843
|
-
return context.property.resolveProperty("displayName") || context.propertyName || context.property.name;
|
|
1844
|
-
}
|
|
1845
|
-
else {
|
|
1846
|
-
return "Value";
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1850
|
+
displayName: ɵ0$1
|
|
1849
1851
|
};
|
|
1850
1852
|
/**
|
|
1851
1853
|
Instances of the Validator class provide the logic to validate another object and provide a description of any errors
|
|
@@ -2702,14 +2704,7 @@ function makeRegExpValidator(validatorName, expression, defaultMessage, context)
|
|
|
2702
2704
|
};
|
|
2703
2705
|
return new Validator(validatorName, valFn, context);
|
|
2704
2706
|
}
|
|
2705
|
-
|
|
2706
|
-
// function luhn(a: string, b: number, c: number, d: number, e: number) {
|
|
2707
|
-
// for (d = +a[b = a.length - 1], e = 0; b--; ) {
|
|
2708
|
-
// c = +a[b], d += ++e % 2 ? 2 * c % 10 + (c > 4) : c;
|
|
2709
|
-
// }
|
|
2710
|
-
// return !(d % 10);
|
|
2711
|
-
// };
|
|
2712
|
-
let luhn = (function () {
|
|
2707
|
+
const ɵ1 = function () {
|
|
2713
2708
|
let luhnArr = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];
|
|
2714
2709
|
return function (str) {
|
|
2715
2710
|
let counter = 0;
|
|
@@ -2724,7 +2719,15 @@ let luhn = (function () {
|
|
|
2724
2719
|
}
|
|
2725
2720
|
return (counter % 10 === 0);
|
|
2726
2721
|
};
|
|
2727
|
-
}
|
|
2722
|
+
};
|
|
2723
|
+
// http://rosettacode.org/wiki/Luhn_test_of_credit_card_numbers#JavaScript
|
|
2724
|
+
// function luhn(a: string, b: number, c: number, d: number, e: number) {
|
|
2725
|
+
// for (d = +a[b = a.length - 1], e = 0; b--; ) {
|
|
2726
|
+
// c = +a[b], d += ++e % 2 ? 2 * c % 10 + (c > 4) : c;
|
|
2727
|
+
// }
|
|
2728
|
+
// return !(d % 10);
|
|
2729
|
+
// };
|
|
2730
|
+
let luhn = (ɵ1)();
|
|
2728
2731
|
/**
|
|
2729
2732
|
A ValidationError is used to describe a failed validation.
|
|
2730
2733
|
|
|
@@ -4553,103 +4556,104 @@ function parseFnExpr(source, parts, tokens, exprContext) {
|
|
|
4553
4556
|
throw e;
|
|
4554
4557
|
}
|
|
4555
4558
|
}
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
unaryPredicate: function (context) {
|
|
4563
|
-
let predFn = this.pred.visit(context);
|
|
4564
|
-
switch (this.op.key) {
|
|
4565
|
-
case "not":
|
|
4566
|
-
return function (entity) {
|
|
4567
|
-
return !predFn(entity);
|
|
4568
|
-
};
|
|
4569
|
-
default:
|
|
4570
|
-
throw new Error("Invalid unary operator:" + this.op.key);
|
|
4571
|
-
}
|
|
4572
|
-
},
|
|
4573
|
-
binaryPredicate: function (context) {
|
|
4574
|
-
let expr1Fn = this.expr1.visit(context);
|
|
4575
|
-
let expr2Fn = this.expr2.visit(context);
|
|
4576
|
-
let dataType = this.expr1.dataType || this.expr2.dataType;
|
|
4577
|
-
let lqco = context.entityType.metadataStore.localQueryComparisonOptions;
|
|
4578
|
-
let predFn = getBinaryPredicateFn(this, dataType, lqco);
|
|
4579
|
-
if (predFn == null) {
|
|
4580
|
-
throw new Error("Invalid binaryPredicate operator:" + this.op.key);
|
|
4581
|
-
}
|
|
4582
|
-
return function (entity) {
|
|
4583
|
-
return predFn(expr1Fn(entity), expr2Fn(entity));
|
|
4584
|
-
};
|
|
4585
|
-
},
|
|
4586
|
-
andOrPredicate: function (context) {
|
|
4587
|
-
let predFns = this.preds.map((pred) => {
|
|
4588
|
-
return pred.visit(context);
|
|
4589
|
-
});
|
|
4590
|
-
switch (this.op.key) {
|
|
4591
|
-
case "and":
|
|
4592
|
-
return function (entity) {
|
|
4593
|
-
let result = predFns.reduce(function (prev, cur) {
|
|
4594
|
-
return prev && cur(entity);
|
|
4595
|
-
}, true);
|
|
4596
|
-
return result;
|
|
4597
|
-
};
|
|
4598
|
-
case "or":
|
|
4599
|
-
return function (entity) {
|
|
4600
|
-
let result = predFns.reduce(function (prev, cur) {
|
|
4601
|
-
return prev || cur(entity);
|
|
4602
|
-
}, false);
|
|
4603
|
-
return result;
|
|
4604
|
-
};
|
|
4605
|
-
default:
|
|
4606
|
-
throw new Error("Invalid boolean operator:" + this.op.key);
|
|
4607
|
-
}
|
|
4608
|
-
},
|
|
4609
|
-
anyAllPredicate: function (context) {
|
|
4610
|
-
let exprFn = this.expr.visit(context);
|
|
4611
|
-
let newContext = core.extend({}, context);
|
|
4612
|
-
newContext.entityType = this.expr.dataType;
|
|
4613
|
-
let predFn = this.pred.visit(newContext);
|
|
4614
|
-
let anyAllPredFn = getAnyAllPredicateFn(this.op);
|
|
4615
|
-
return function (entity) {
|
|
4616
|
-
return anyAllPredFn(exprFn(entity), predFn);
|
|
4617
|
-
};
|
|
4618
|
-
},
|
|
4619
|
-
litExpr: function () {
|
|
4620
|
-
let value = this.value;
|
|
4621
|
-
return function (entity) {
|
|
4622
|
-
return value;
|
|
4623
|
-
};
|
|
4624
|
-
},
|
|
4625
|
-
propExpr: function () {
|
|
4626
|
-
let propertyPath = this.propertyPath;
|
|
4627
|
-
let properties = propertyPath.split('.');
|
|
4628
|
-
if (properties.length === 1) {
|
|
4559
|
+
const ɵ0$2 = function () {
|
|
4560
|
+
throw new Error("Cannot execute an PassthruPredicate expression against the local cache: " + this.value);
|
|
4561
|
+
}, ɵ1$1 = function (context) {
|
|
4562
|
+
let predFn = this.pred.visit(context);
|
|
4563
|
+
switch (this.op.key) {
|
|
4564
|
+
case "not":
|
|
4629
4565
|
return function (entity) {
|
|
4630
|
-
return entity
|
|
4566
|
+
return !predFn(entity);
|
|
4631
4567
|
};
|
|
4632
|
-
|
|
4633
|
-
|
|
4568
|
+
default:
|
|
4569
|
+
throw new Error("Invalid unary operator:" + this.op.key);
|
|
4570
|
+
}
|
|
4571
|
+
}, ɵ2 = function (context) {
|
|
4572
|
+
let expr1Fn = this.expr1.visit(context);
|
|
4573
|
+
let expr2Fn = this.expr2.visit(context);
|
|
4574
|
+
let dataType = this.expr1.dataType || this.expr2.dataType;
|
|
4575
|
+
let lqco = context.entityType.metadataStore.localQueryComparisonOptions;
|
|
4576
|
+
let predFn = getBinaryPredicateFn(this, dataType, lqco);
|
|
4577
|
+
if (predFn == null) {
|
|
4578
|
+
throw new Error("Invalid binaryPredicate operator:" + this.op.key);
|
|
4579
|
+
}
|
|
4580
|
+
return function (entity) {
|
|
4581
|
+
return predFn(expr1Fn(entity), expr2Fn(entity));
|
|
4582
|
+
};
|
|
4583
|
+
}, ɵ3 = function (context) {
|
|
4584
|
+
let predFns = this.preds.map((pred) => {
|
|
4585
|
+
return pred.visit(context);
|
|
4586
|
+
});
|
|
4587
|
+
switch (this.op.key) {
|
|
4588
|
+
case "and":
|
|
4634
4589
|
return function (entity) {
|
|
4635
|
-
|
|
4590
|
+
let result = predFns.reduce(function (prev, cur) {
|
|
4591
|
+
return prev && cur(entity);
|
|
4592
|
+
}, true);
|
|
4593
|
+
return result;
|
|
4636
4594
|
};
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4595
|
+
case "or":
|
|
4596
|
+
return function (entity) {
|
|
4597
|
+
let result = predFns.reduce(function (prev, cur) {
|
|
4598
|
+
return prev || cur(entity);
|
|
4599
|
+
}, false);
|
|
4600
|
+
return result;
|
|
4601
|
+
};
|
|
4602
|
+
default:
|
|
4603
|
+
throw new Error("Invalid boolean operator:" + this.op.key);
|
|
4604
|
+
}
|
|
4605
|
+
}, ɵ4 = function (context) {
|
|
4606
|
+
let exprFn = this.expr.visit(context);
|
|
4607
|
+
let newContext = core.extend({}, context);
|
|
4608
|
+
newContext.entityType = this.expr.dataType;
|
|
4609
|
+
let predFn = this.pred.visit(newContext);
|
|
4610
|
+
let anyAllPredFn = getAnyAllPredicateFn(this.op);
|
|
4611
|
+
return function (entity) {
|
|
4612
|
+
return anyAllPredFn(exprFn(entity), predFn);
|
|
4613
|
+
};
|
|
4614
|
+
}, ɵ5 = function () {
|
|
4615
|
+
let value = this.value;
|
|
4616
|
+
return function (entity) {
|
|
4617
|
+
return value;
|
|
4618
|
+
};
|
|
4619
|
+
}, ɵ6 = function () {
|
|
4620
|
+
let propertyPath = this.propertyPath;
|
|
4621
|
+
let properties = propertyPath.split('.');
|
|
4622
|
+
if (properties.length === 1) {
|
|
4644
4623
|
return function (entity) {
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
return
|
|
4624
|
+
return entity.getProperty(propertyPath);
|
|
4625
|
+
};
|
|
4626
|
+
}
|
|
4627
|
+
else {
|
|
4628
|
+
return function (entity) {
|
|
4629
|
+
return EntityAspect.getPropertyPathValue(entity, properties);
|
|
4651
4630
|
};
|
|
4652
4631
|
}
|
|
4632
|
+
}, ɵ7 = function (context) {
|
|
4633
|
+
let exprFns = this.exprs.map(function (expr) {
|
|
4634
|
+
return expr.visit(context);
|
|
4635
|
+
});
|
|
4636
|
+
let that = this;
|
|
4637
|
+
return function (entity) {
|
|
4638
|
+
let values = exprFns.map(function (exprFn) {
|
|
4639
|
+
let value = exprFn(entity);
|
|
4640
|
+
return value;
|
|
4641
|
+
});
|
|
4642
|
+
let result = that.localFn.apply(null, values);
|
|
4643
|
+
return result;
|
|
4644
|
+
};
|
|
4645
|
+
};
|
|
4646
|
+
// toFunctionVisitor
|
|
4647
|
+
let toFunctionVisitor = {
|
|
4648
|
+
isExtended: false,
|
|
4649
|
+
passthruPredicate: ɵ0$2,
|
|
4650
|
+
unaryPredicate: ɵ1$1,
|
|
4651
|
+
binaryPredicate: ɵ2,
|
|
4652
|
+
andOrPredicate: ɵ3,
|
|
4653
|
+
anyAllPredicate: ɵ4,
|
|
4654
|
+
litExpr: ɵ5,
|
|
4655
|
+
propExpr: ɵ6,
|
|
4656
|
+
fnExpr: ɵ7
|
|
4653
4657
|
};
|
|
4654
4658
|
function getAnyAllPredicateFn(op) {
|
|
4655
4659
|
switch (op.key) {
|
|
@@ -4716,12 +4720,12 @@ function getBinaryPredicateFn(binaryPredicate, dataType, lqco) {
|
|
|
4716
4720
|
break;
|
|
4717
4721
|
case 'startswith':
|
|
4718
4722
|
predFn = function (v1, v2) {
|
|
4719
|
-
return stringStartsWith(v1, v2, lqco);
|
|
4723
|
+
return stringStartsWith$1(v1, v2, lqco);
|
|
4720
4724
|
};
|
|
4721
4725
|
break;
|
|
4722
4726
|
case 'endswith':
|
|
4723
4727
|
predFn = function (v1, v2) {
|
|
4724
|
-
return stringEndsWith(v1, v2, lqco);
|
|
4728
|
+
return stringEndsWith$1(v1, v2, lqco);
|
|
4725
4729
|
};
|
|
4726
4730
|
break;
|
|
4727
4731
|
case 'contains':
|
|
@@ -4757,14 +4761,14 @@ function stringEquals(a, b, lqco) {
|
|
|
4757
4761
|
}
|
|
4758
4762
|
return a === b;
|
|
4759
4763
|
}
|
|
4760
|
-
function stringStartsWith(a, b, lqco) {
|
|
4764
|
+
function stringStartsWith$1(a, b, lqco) {
|
|
4761
4765
|
if (!lqco.isCaseSensitive) {
|
|
4762
4766
|
a = (a || "").toLowerCase();
|
|
4763
4767
|
b = (b || "").toLowerCase();
|
|
4764
4768
|
}
|
|
4765
4769
|
return core.stringStartsWith(a, b);
|
|
4766
4770
|
}
|
|
4767
|
-
function stringEndsWith(a, b, lqco) {
|
|
4771
|
+
function stringEndsWith$1(a, b, lqco) {
|
|
4768
4772
|
if (!lqco.isCaseSensitive) {
|
|
4769
4773
|
a = (a || "").toLowerCase();
|
|
4770
4774
|
b = (b || "").toLowerCase();
|
|
@@ -4778,91 +4782,92 @@ function stringContains(a, b, lqco) {
|
|
|
4778
4782
|
}
|
|
4779
4783
|
return a.indexOf(b) >= 0;
|
|
4780
4784
|
}
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
}
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
}
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
if (this.op.key === "eq") {
|
|
4800
|
-
json[expr1Val] = expr2Val;
|
|
4801
|
-
}
|
|
4802
|
-
else {
|
|
4803
|
-
let value = {};
|
|
4804
|
-
json[expr1Val] = value;
|
|
4805
|
-
value[this.op.key] = expr2Val;
|
|
4806
|
-
}
|
|
4807
|
-
return json;
|
|
4808
|
-
},
|
|
4809
|
-
andOrPredicate: function (context) {
|
|
4810
|
-
let predVals = this.preds.map(function (pred) {
|
|
4811
|
-
return pred.visit(context);
|
|
4812
|
-
});
|
|
4813
|
-
if (!predVals || !predVals.length) {
|
|
4814
|
-
return {};
|
|
4815
|
-
}
|
|
4816
|
-
let json;
|
|
4817
|
-
// normalizeAnd clauses if possible.
|
|
4818
|
-
// passthru predicate will appear as string and their 'ands' can't be 'normalized'
|
|
4819
|
-
if (this.op.key === 'and' && predVals.length === 2 && !predVals.some((v) => v.or || typeof (v) === 'string')) {
|
|
4820
|
-
// normalize 'and' clauses - will return null if can't be combined.
|
|
4821
|
-
json = predVals.reduce(combine);
|
|
4822
|
-
}
|
|
4823
|
-
if (json == null) {
|
|
4824
|
-
json = {};
|
|
4825
|
-
json[this.op.key] = predVals;
|
|
4826
|
-
}
|
|
4827
|
-
return json;
|
|
4828
|
-
},
|
|
4829
|
-
anyAllPredicate: function (context) {
|
|
4830
|
-
let exprVal = this.expr.visit(context);
|
|
4831
|
-
let newContext = core.extend({}, context);
|
|
4832
|
-
newContext.entityType = this.expr.dataType;
|
|
4833
|
-
let predVal = this.pred.visit(newContext);
|
|
4834
|
-
let json = {};
|
|
4785
|
+
const ɵ8 = function () {
|
|
4786
|
+
return this.value;
|
|
4787
|
+
}, ɵ9 = function (context) {
|
|
4788
|
+
let predVal = this.pred.visit(context);
|
|
4789
|
+
let json = {};
|
|
4790
|
+
json[this.op.key] = predVal;
|
|
4791
|
+
return json;
|
|
4792
|
+
}, ɵ10 = function (context) {
|
|
4793
|
+
let expr1Val = this.expr1.visit(context);
|
|
4794
|
+
let expr2Val = this.expr2.visit(context);
|
|
4795
|
+
let json = {};
|
|
4796
|
+
if (this.expr2 instanceof PropExpr) {
|
|
4797
|
+
expr2Val = { value: expr2Val, isProperty: true };
|
|
4798
|
+
}
|
|
4799
|
+
if (this.op.key === "eq") {
|
|
4800
|
+
json[expr1Val] = expr2Val;
|
|
4801
|
+
}
|
|
4802
|
+
else {
|
|
4835
4803
|
let value = {};
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
}
|
|
4856
|
-
|
|
4804
|
+
json[expr1Val] = value;
|
|
4805
|
+
value[this.op.key] = expr2Val;
|
|
4806
|
+
}
|
|
4807
|
+
return json;
|
|
4808
|
+
}, ɵ11 = function (context) {
|
|
4809
|
+
let predVals = this.preds.map(function (pred) {
|
|
4810
|
+
return pred.visit(context);
|
|
4811
|
+
});
|
|
4812
|
+
if (!predVals || !predVals.length) {
|
|
4813
|
+
return {};
|
|
4814
|
+
}
|
|
4815
|
+
let json;
|
|
4816
|
+
// normalizeAnd clauses if possible.
|
|
4817
|
+
// passthru predicate will appear as string and their 'ands' can't be 'normalized'
|
|
4818
|
+
if (this.op.key === 'and' && predVals.length === 2 && !predVals.some((v) => v.or || typeof (v) === 'string')) {
|
|
4819
|
+
// normalize 'and' clauses - will return null if can't be combined.
|
|
4820
|
+
json = predVals.reduce(combine);
|
|
4821
|
+
}
|
|
4822
|
+
if (json == null) {
|
|
4823
|
+
json = {};
|
|
4824
|
+
json[this.op.key] = predVals;
|
|
4825
|
+
}
|
|
4826
|
+
return json;
|
|
4827
|
+
}, ɵ12 = function (context) {
|
|
4828
|
+
let exprVal = this.expr.visit(context);
|
|
4829
|
+
let newContext = core.extend({}, context);
|
|
4830
|
+
newContext.entityType = this.expr.dataType;
|
|
4831
|
+
let predVal = this.pred.visit(newContext);
|
|
4832
|
+
let json = {};
|
|
4833
|
+
let value = {};
|
|
4834
|
+
value[this.op.key] = predVal;
|
|
4835
|
+
json[exprVal] = value;
|
|
4836
|
+
return json;
|
|
4837
|
+
}, ɵ13 = function (context) {
|
|
4838
|
+
if (this.hasExplicitDataType || context.useExplicitDataType) {
|
|
4839
|
+
return { value: this.value, dataType: this.dataType.name };
|
|
4840
|
+
}
|
|
4841
|
+
else {
|
|
4842
|
+
return this.value;
|
|
4843
|
+
}
|
|
4844
|
+
}, ɵ14 = function (context) {
|
|
4845
|
+
if (context.toNameOnServer) {
|
|
4846
|
+
if (!context.entityType) {
|
|
4847
|
+
console.warn(`No EntityType for propertyPath "${this.propertyPath}". ${core.strings.TO_TYPE}`);
|
|
4857
4848
|
return this.propertyPath;
|
|
4858
4849
|
}
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
});
|
|
4864
|
-
return this.fnName + "(" + exprVals.join(",") + ")";
|
|
4850
|
+
return context.entityType.clientPropertyPathToServer(this.propertyPath);
|
|
4851
|
+
}
|
|
4852
|
+
else {
|
|
4853
|
+
return this.propertyPath;
|
|
4865
4854
|
}
|
|
4855
|
+
}, ɵ15 = function (context) {
|
|
4856
|
+
let exprVals = this.exprs.map(function (expr) {
|
|
4857
|
+
return expr.visit(context);
|
|
4858
|
+
});
|
|
4859
|
+
return this.fnName + "(" + exprVals.join(",") + ")";
|
|
4860
|
+
};
|
|
4861
|
+
// toJSONVisitor
|
|
4862
|
+
let toJSONVisitor = {
|
|
4863
|
+
passthruPredicate: ɵ8,
|
|
4864
|
+
unaryPredicate: ɵ9,
|
|
4865
|
+
binaryPredicate: ɵ10,
|
|
4866
|
+
andOrPredicate: ɵ11,
|
|
4867
|
+
anyAllPredicate: ɵ12,
|
|
4868
|
+
litExpr: ɵ13,
|
|
4869
|
+
propExpr: ɵ14,
|
|
4870
|
+
fnExpr: ɵ15
|
|
4866
4871
|
};
|
|
4867
4872
|
function combine(j1, j2) {
|
|
4868
4873
|
let ok = Object.keys(j2).every(function (key) {
|
|
@@ -6113,12 +6118,12 @@ class EntityAspect {
|
|
|
6113
6118
|
let em = this.entityManager;
|
|
6114
6119
|
let needsSave = true;
|
|
6115
6120
|
if (entityState === EntityState.Unchanged) {
|
|
6116
|
-
clearOriginalValues
|
|
6121
|
+
clearOriginalValues(entity);
|
|
6117
6122
|
delete this.hasTempKey;
|
|
6118
6123
|
needsSave = false;
|
|
6119
6124
|
}
|
|
6120
6125
|
else if (entityState === EntityState.Added) {
|
|
6121
|
-
clearOriginalValues
|
|
6126
|
+
clearOriginalValues(entity);
|
|
6122
6127
|
// TODO: more to do here... like regenerating key ???
|
|
6123
6128
|
}
|
|
6124
6129
|
else if (entityState === EntityState.Deleted) {
|
|
@@ -6653,18 +6658,18 @@ class ComplexAspect {
|
|
|
6653
6658
|
return aspect.getPropertyPath(this.parentProperty.name + "." + propName);
|
|
6654
6659
|
}
|
|
6655
6660
|
}
|
|
6656
|
-
function clearOriginalValues
|
|
6661
|
+
function clearOriginalValues(target) {
|
|
6657
6662
|
let aspect = target.entityAspect || target.complexAspect;
|
|
6658
6663
|
aspect.originalValues = {};
|
|
6659
6664
|
let stype = target.entityType || target.complexType;
|
|
6660
6665
|
stype.complexProperties.forEach(function (cp) {
|
|
6661
6666
|
let cos = target.getProperty(cp.name);
|
|
6662
6667
|
if (cp.isScalar) {
|
|
6663
|
-
clearOriginalValues
|
|
6668
|
+
clearOriginalValues(cos);
|
|
6664
6669
|
}
|
|
6665
6670
|
else {
|
|
6666
6671
|
cos._acceptChanges();
|
|
6667
|
-
cos.forEach(clearOriginalValues
|
|
6672
|
+
cos.forEach(clearOriginalValues);
|
|
6668
6673
|
}
|
|
6669
6674
|
});
|
|
6670
6675
|
}
|
|
@@ -10051,7 +10056,7 @@ class ValidationOptions {
|
|
|
10051
10056
|
@param config - A configuration object.
|
|
10052
10057
|
**/
|
|
10053
10058
|
constructor(config) {
|
|
10054
|
-
updateWithConfig(this, config);
|
|
10059
|
+
updateWithConfig$1(this, config);
|
|
10055
10060
|
}
|
|
10056
10061
|
/**
|
|
10057
10062
|
Returns a copy of this ValidationOptions with changes to the specified config properties.
|
|
@@ -10064,7 +10069,7 @@ class ValidationOptions {
|
|
|
10064
10069
|
if (!config)
|
|
10065
10070
|
return this;
|
|
10066
10071
|
let result = new ValidationOptions(this);
|
|
10067
|
-
updateWithConfig(result, config);
|
|
10072
|
+
updateWithConfig$1(result, config);
|
|
10068
10073
|
return result;
|
|
10069
10074
|
}
|
|
10070
10075
|
/**
|
|
@@ -10088,7 +10093,7 @@ ValidationOptions.defaultInstance = new ValidationOptions({
|
|
|
10088
10093
|
validateOnPropertyChange: true
|
|
10089
10094
|
});
|
|
10090
10095
|
ValidationOptions.prototype._$typeName = "ValidationOptions";
|
|
10091
|
-
function updateWithConfig(options, config) {
|
|
10096
|
+
function updateWithConfig$1(options, config) {
|
|
10092
10097
|
if (config) {
|
|
10093
10098
|
assertConfig(config)
|
|
10094
10099
|
.whereParam("validateOnAttach").isBoolean().isOptional()
|
|
@@ -10652,7 +10657,7 @@ function mergeEntity(mc, node, meta) {
|
|
|
10652
10657
|
targetEntity.entityAspect.extraMetadata = meta.extraMetadata;
|
|
10653
10658
|
}
|
|
10654
10659
|
targetEntity.entityAspect.entityState = EntityState.Unchanged;
|
|
10655
|
-
clearOriginalValues(targetEntity);
|
|
10660
|
+
clearOriginalValues$1(targetEntity);
|
|
10656
10661
|
// propertyName not specified because multiple props EntityChangedEventArgs
|
|
10657
10662
|
targetEntity.entityAspect.propertyChanged.publish({ entity: targetEntity, propertyName: null });
|
|
10658
10663
|
let action = isSaving ? EntityAction.MergeOnSave : EntityAction.MergeOnQuery;
|
|
@@ -10685,18 +10690,18 @@ function mergeEntity(mc, node, meta) {
|
|
|
10685
10690
|
return targetEntity;
|
|
10686
10691
|
}
|
|
10687
10692
|
// copied from entityAspect
|
|
10688
|
-
function clearOriginalValues(target) {
|
|
10693
|
+
function clearOriginalValues$1(target) {
|
|
10689
10694
|
let aspect = target.entityAspect || target.complexAspect;
|
|
10690
10695
|
aspect.originalValues = {};
|
|
10691
10696
|
let stype = target.entityType || target.complexType;
|
|
10692
10697
|
stype.complexProperties.forEach(function (cp) {
|
|
10693
10698
|
let cos = target.getProperty(cp.name);
|
|
10694
10699
|
if (cp.isScalar) {
|
|
10695
|
-
clearOriginalValues(cos);
|
|
10700
|
+
clearOriginalValues$1(cos);
|
|
10696
10701
|
}
|
|
10697
10702
|
else {
|
|
10698
10703
|
cos._acceptChanges();
|
|
10699
|
-
cos.forEach(clearOriginalValues);
|
|
10704
|
+
cos.forEach(clearOriginalValues$1);
|
|
10700
10705
|
}
|
|
10701
10706
|
});
|
|
10702
10707
|
}
|
|
@@ -12994,118 +12999,119 @@ config.initializeAdapterInstances = function (irConfig) {
|
|
|
12994
12999
|
return core.objectMap(config, this.initializeAdapterInstance);
|
|
12995
13000
|
};
|
|
12996
13001
|
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
if (objPrototype.push) {
|
|
13027
|
-
result = objPrototype.push.apply(this, goodAdds);
|
|
13028
|
-
}
|
|
13029
|
-
else {
|
|
13030
|
-
result = Array.prototype.push.apply(this, goodAdds);
|
|
13031
|
-
}
|
|
13032
|
-
processAdds$2(this, goodAdds);
|
|
13033
|
-
return result;
|
|
13034
|
-
},
|
|
13035
|
-
unshift: function (...args) {
|
|
13036
|
-
let goodAdds = this._getGoodAdds(args);
|
|
13037
|
-
if (!goodAdds.length) {
|
|
13038
|
-
return this.length;
|
|
13039
|
-
}
|
|
13040
|
-
this._beforeChange();
|
|
13041
|
-
let result;
|
|
13042
|
-
let objPrototype = Object.getPrototypeOf(this);
|
|
13043
|
-
if (objPrototype.unshift) {
|
|
13044
|
-
result = objPrototype.unshift.apply(this, goodAdds);
|
|
13045
|
-
}
|
|
13046
|
-
else {
|
|
13047
|
-
result = Array.prototype.unshift.apply(this, goodAdds);
|
|
13048
|
-
}
|
|
13049
|
-
processAdds$2(this, goodAdds);
|
|
13050
|
-
return result;
|
|
13051
|
-
},
|
|
13052
|
-
pop: function () {
|
|
13053
|
-
this._beforeChange();
|
|
13054
|
-
let result;
|
|
13055
|
-
let objPrototype = Object.getPrototypeOf(this);
|
|
13056
|
-
if (objPrototype.pop) {
|
|
13057
|
-
result = objPrototype.pop.apply(this);
|
|
13058
|
-
}
|
|
13059
|
-
else {
|
|
13060
|
-
result = Array.prototype.pop.apply(this);
|
|
13061
|
-
}
|
|
13062
|
-
processRemoves$2(this, [result]);
|
|
13063
|
-
return result;
|
|
13064
|
-
},
|
|
13065
|
-
shift: function () {
|
|
13066
|
-
this._beforeChange();
|
|
13067
|
-
let result;
|
|
13068
|
-
let objPrototype = Object.getPrototypeOf(this);
|
|
13069
|
-
if (objPrototype.shift) {
|
|
13070
|
-
result = objPrototype.shift.apply(this);
|
|
13071
|
-
}
|
|
13072
|
-
else {
|
|
13073
|
-
result = Array.prototype.shift.apply(this);
|
|
13074
|
-
}
|
|
13075
|
-
processRemoves$2(this, [result]);
|
|
13076
|
-
return result;
|
|
13077
|
-
},
|
|
13078
|
-
splice: function (...args) {
|
|
13079
|
-
let goodAdds = this._getGoodAdds(core.arraySlice(args, 2));
|
|
13080
|
-
let newArgs = core.arraySlice(args, 0, 2).concat(goodAdds);
|
|
13081
|
-
this._beforeChange();
|
|
13082
|
-
let result;
|
|
13083
|
-
let objPrototype = Object.getPrototypeOf(this);
|
|
13084
|
-
if (objPrototype.splice) {
|
|
13085
|
-
result = objPrototype.splice.apply(this, newArgs);
|
|
13086
|
-
}
|
|
13087
|
-
else {
|
|
13088
|
-
result = Array.prototype.splice.apply(this, newArgs);
|
|
13089
|
-
}
|
|
13090
|
-
processRemoves$2(this, result);
|
|
13091
|
-
if (goodAdds.length) {
|
|
13092
|
-
processAdds$2(this, goodAdds);
|
|
13093
|
-
}
|
|
13094
|
-
return result;
|
|
13095
|
-
},
|
|
13096
|
-
getEntityAspect: function () {
|
|
13097
|
-
return this.parent.entityAspect || this.parent.complexAspect.getEntityAspect();
|
|
13098
|
-
},
|
|
13099
|
-
_getEventParent: function () {
|
|
13100
|
-
return this.getEntityAspect();
|
|
13101
|
-
},
|
|
13102
|
-
_getPendingPubs: function () {
|
|
13103
|
-
let em = this.getEntityAspect().entityManager;
|
|
13104
|
-
return em && em._pendingPubs;
|
|
13105
|
-
},
|
|
13106
|
-
_beforeChange: function () {
|
|
13107
|
-
// default is to do nothing
|
|
13002
|
+
const ɵ0$3 = function (...args) {
|
|
13003
|
+
if (this._inProgress) {
|
|
13004
|
+
return -1;
|
|
13005
|
+
}
|
|
13006
|
+
let goodAdds = this._getGoodAdds(args);
|
|
13007
|
+
if (!goodAdds.length) {
|
|
13008
|
+
return this.length;
|
|
13009
|
+
}
|
|
13010
|
+
this._beforeChange();
|
|
13011
|
+
let result;
|
|
13012
|
+
let objPrototype = Object.getPrototypeOf(this);
|
|
13013
|
+
if (objPrototype.push) {
|
|
13014
|
+
result = objPrototype.push.apply(this, goodAdds);
|
|
13015
|
+
}
|
|
13016
|
+
else {
|
|
13017
|
+
result = Array.prototype.push.apply(this, goodAdds);
|
|
13018
|
+
}
|
|
13019
|
+
processAdds(this, goodAdds);
|
|
13020
|
+
return result;
|
|
13021
|
+
}, ɵ1$2 = function (...args) {
|
|
13022
|
+
if (this._inProgress) {
|
|
13023
|
+
return -1;
|
|
13024
|
+
}
|
|
13025
|
+
let goodAdds = args;
|
|
13026
|
+
this._beforeChange();
|
|
13027
|
+
let result;
|
|
13028
|
+
let objPrototype = Object.getPrototypeOf(this);
|
|
13029
|
+
if (objPrototype.push) {
|
|
13030
|
+
result = objPrototype.push.apply(this, goodAdds);
|
|
13108
13031
|
}
|
|
13032
|
+
else {
|
|
13033
|
+
result = Array.prototype.push.apply(this, goodAdds);
|
|
13034
|
+
}
|
|
13035
|
+
processAdds(this, goodAdds);
|
|
13036
|
+
return result;
|
|
13037
|
+
}, ɵ2$1 = function (...args) {
|
|
13038
|
+
let goodAdds = this._getGoodAdds(args);
|
|
13039
|
+
if (!goodAdds.length) {
|
|
13040
|
+
return this.length;
|
|
13041
|
+
}
|
|
13042
|
+
this._beforeChange();
|
|
13043
|
+
let result;
|
|
13044
|
+
let objPrototype = Object.getPrototypeOf(this);
|
|
13045
|
+
if (objPrototype.unshift) {
|
|
13046
|
+
result = objPrototype.unshift.apply(this, goodAdds);
|
|
13047
|
+
}
|
|
13048
|
+
else {
|
|
13049
|
+
result = Array.prototype.unshift.apply(this, goodAdds);
|
|
13050
|
+
}
|
|
13051
|
+
processAdds(this, goodAdds);
|
|
13052
|
+
return result;
|
|
13053
|
+
}, ɵ3$1 = function () {
|
|
13054
|
+
this._beforeChange();
|
|
13055
|
+
let result;
|
|
13056
|
+
let objPrototype = Object.getPrototypeOf(this);
|
|
13057
|
+
if (objPrototype.pop) {
|
|
13058
|
+
result = objPrototype.pop.apply(this);
|
|
13059
|
+
}
|
|
13060
|
+
else {
|
|
13061
|
+
result = Array.prototype.pop.apply(this);
|
|
13062
|
+
}
|
|
13063
|
+
processRemoves(this, [result]);
|
|
13064
|
+
return result;
|
|
13065
|
+
}, ɵ4$1 = function () {
|
|
13066
|
+
this._beforeChange();
|
|
13067
|
+
let result;
|
|
13068
|
+
let objPrototype = Object.getPrototypeOf(this);
|
|
13069
|
+
if (objPrototype.shift) {
|
|
13070
|
+
result = objPrototype.shift.apply(this);
|
|
13071
|
+
}
|
|
13072
|
+
else {
|
|
13073
|
+
result = Array.prototype.shift.apply(this);
|
|
13074
|
+
}
|
|
13075
|
+
processRemoves(this, [result]);
|
|
13076
|
+
return result;
|
|
13077
|
+
}, ɵ5$1 = function (...args) {
|
|
13078
|
+
let goodAdds = this._getGoodAdds(core.arraySlice(args, 2));
|
|
13079
|
+
let newArgs = core.arraySlice(args, 0, 2).concat(goodAdds);
|
|
13080
|
+
this._beforeChange();
|
|
13081
|
+
let result;
|
|
13082
|
+
let objPrototype = Object.getPrototypeOf(this);
|
|
13083
|
+
if (objPrototype.splice) {
|
|
13084
|
+
result = objPrototype.splice.apply(this, newArgs);
|
|
13085
|
+
}
|
|
13086
|
+
else {
|
|
13087
|
+
result = Array.prototype.splice.apply(this, newArgs);
|
|
13088
|
+
}
|
|
13089
|
+
processRemoves(this, result);
|
|
13090
|
+
if (goodAdds.length) {
|
|
13091
|
+
processAdds(this, goodAdds);
|
|
13092
|
+
}
|
|
13093
|
+
return result;
|
|
13094
|
+
}, ɵ6$1 = function () {
|
|
13095
|
+
return this.parent.entityAspect || this.parent.complexAspect.getEntityAspect();
|
|
13096
|
+
}, ɵ7$1 = function () {
|
|
13097
|
+
return this.getEntityAspect();
|
|
13098
|
+
}, ɵ8$1 = function () {
|
|
13099
|
+
let em = this.getEntityAspect().entityManager;
|
|
13100
|
+
return em && em._pendingPubs;
|
|
13101
|
+
}, ɵ9$1 = function () {
|
|
13102
|
+
// default is to do nothing
|
|
13103
|
+
};
|
|
13104
|
+
let mixin = {
|
|
13105
|
+
push: ɵ0$3,
|
|
13106
|
+
_push: ɵ1$2,
|
|
13107
|
+
unshift: ɵ2$1,
|
|
13108
|
+
pop: ɵ3$1,
|
|
13109
|
+
shift: ɵ4$1,
|
|
13110
|
+
splice: ɵ5$1,
|
|
13111
|
+
getEntityAspect: ɵ6$1,
|
|
13112
|
+
_getEventParent: ɵ7$1,
|
|
13113
|
+
_getPendingPubs: ɵ8$1,
|
|
13114
|
+
_beforeChange: ɵ9$1
|
|
13109
13115
|
};
|
|
13110
13116
|
function updateEntityState(obsArray) {
|
|
13111
13117
|
let entityAspect = obsArray.getEntityAspect();
|
|
@@ -13138,14 +13144,14 @@ function initializeParent(obsArray, parent, parentProperty) {
|
|
|
13138
13144
|
obsArray.parent = parent;
|
|
13139
13145
|
obsArray.parentProperty = parentProperty;
|
|
13140
13146
|
}
|
|
13141
|
-
function processAdds
|
|
13147
|
+
function processAdds(obsArray, adds) {
|
|
13142
13148
|
obsArray._processAdds(adds);
|
|
13143
13149
|
// this is referencing the name of the method on the complexArray not the name of the event
|
|
13144
13150
|
//var args = { added: adds };
|
|
13145
13151
|
//args[obsArray._typeName] = obsArray;
|
|
13146
13152
|
publish(obsArray, "arrayChanged", { array: obsArray, added: adds });
|
|
13147
13153
|
}
|
|
13148
|
-
function processRemoves
|
|
13154
|
+
function processRemoves(obsArray, removes) {
|
|
13149
13155
|
obsArray._processRemoves(removes);
|
|
13150
13156
|
// this is referencing the name of the method on the array not the name of the event
|
|
13151
13157
|
publish(obsArray, "arrayChanged", { array: obsArray, removed: removes });
|
|
@@ -13176,6 +13182,23 @@ const observableArray = {
|
|
|
13176
13182
|
initializeParent: initializeParent
|
|
13177
13183
|
};
|
|
13178
13184
|
|
|
13185
|
+
const ɵ0$4 = function (callback, errorCallback) {
|
|
13186
|
+
let parent = this.parentEntity;
|
|
13187
|
+
let query = EntityQuery.fromEntityNavigation(this.parentEntity, this.navigationProperty);
|
|
13188
|
+
let em = parent.entityAspect.entityManager;
|
|
13189
|
+
return em.executeQuery(query, callback, errorCallback);
|
|
13190
|
+
}, ɵ1$3 = function () {
|
|
13191
|
+
return this.parentEntity.entityAspect;
|
|
13192
|
+
}, ɵ2$2 = function () {
|
|
13193
|
+
let em = this.parentEntity.entityAspect.entityManager;
|
|
13194
|
+
return em && em._pendingPubs;
|
|
13195
|
+
}, ɵ3$2 = function (adds) {
|
|
13196
|
+
return getGoodAdds(this, adds);
|
|
13197
|
+
}, ɵ4$2 = function (adds) {
|
|
13198
|
+
processAdds$1(this, adds);
|
|
13199
|
+
}, ɵ5$2 = function (removes) {
|
|
13200
|
+
processRemoves$1(this, removes);
|
|
13201
|
+
};
|
|
13179
13202
|
let relationArrayMixin = {
|
|
13180
13203
|
/**
|
|
13181
13204
|
Relation arrays are not actually classes, they are objects that mimic arrays. A relation array is collection of
|
|
@@ -13212,31 +13235,15 @@ let relationArrayMixin = {
|
|
|
13212
13235
|
@param [errorCallback] {Function}
|
|
13213
13236
|
@return {Promise}
|
|
13214
13237
|
**/
|
|
13215
|
-
load:
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
let em = parent.entityAspect.entityManager;
|
|
13219
|
-
return em.executeQuery(query, callback, errorCallback);
|
|
13220
|
-
},
|
|
13221
|
-
_getEventParent: function () {
|
|
13222
|
-
return this.parentEntity.entityAspect;
|
|
13223
|
-
},
|
|
13224
|
-
_getPendingPubs: function () {
|
|
13225
|
-
let em = this.parentEntity.entityAspect.entityManager;
|
|
13226
|
-
return em && em._pendingPubs;
|
|
13227
|
-
},
|
|
13238
|
+
load: ɵ0$4,
|
|
13239
|
+
_getEventParent: ɵ1$3,
|
|
13240
|
+
_getPendingPubs: ɵ2$2,
|
|
13228
13241
|
// virtual impls
|
|
13229
|
-
_getGoodAdds:
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
_processAdds: function (adds) {
|
|
13233
|
-
processAdds$1(this, adds);
|
|
13234
|
-
},
|
|
13235
|
-
_processRemoves: function (removes) {
|
|
13236
|
-
processRemoves$1(this, removes);
|
|
13237
|
-
}
|
|
13242
|
+
_getGoodAdds: ɵ3$2,
|
|
13243
|
+
_processAdds: ɵ4$2,
|
|
13244
|
+
_processRemoves: ɵ5$2
|
|
13238
13245
|
};
|
|
13239
|
-
function getGoodAdds
|
|
13246
|
+
function getGoodAdds(relationArray, adds) {
|
|
13240
13247
|
let goodAdds = checkForDups(relationArray, adds);
|
|
13241
13248
|
if (!goodAdds.length) {
|
|
13242
13249
|
return goodAdds;
|
|
@@ -13344,6 +13351,28 @@ function makeRelationArray(arr, parentEntity, navigationProperty) {
|
|
|
13344
13351
|
return core.extend(arrX, relationArrayMixin);
|
|
13345
13352
|
}
|
|
13346
13353
|
|
|
13354
|
+
const ɵ0$5 = function (adds) {
|
|
13355
|
+
return getGoodAdds$1(this, adds);
|
|
13356
|
+
}, ɵ1$4 = function () {
|
|
13357
|
+
observableArray.updateEntityState(this);
|
|
13358
|
+
}, ɵ2$3 = function (adds) {
|
|
13359
|
+
processAdds$2(this, adds);
|
|
13360
|
+
}, ɵ3$3 = function (removes) {
|
|
13361
|
+
processRemoves$2(this, removes);
|
|
13362
|
+
}, ɵ4$3 = function () {
|
|
13363
|
+
if (!this._origValues)
|
|
13364
|
+
return;
|
|
13365
|
+
let that = this;
|
|
13366
|
+
this.forEach(function (co) {
|
|
13367
|
+
clearAspect(co, that);
|
|
13368
|
+
});
|
|
13369
|
+
this.length = 0;
|
|
13370
|
+
this._origValues.forEach(function (co) {
|
|
13371
|
+
that.push(co);
|
|
13372
|
+
});
|
|
13373
|
+
}, ɵ5$3 = function () {
|
|
13374
|
+
this._origValues = null;
|
|
13375
|
+
};
|
|
13347
13376
|
let complexArrayMixin = {
|
|
13348
13377
|
// complexArray will have the following props
|
|
13349
13378
|
// parent
|
|
@@ -13378,43 +13407,22 @@ let complexArrayMixin = {
|
|
|
13378
13407
|
@readOnly
|
|
13379
13408
|
**/
|
|
13380
13409
|
// virtual impls
|
|
13381
|
-
_getGoodAdds:
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
_processAdds: function (adds) {
|
|
13388
|
-
processAdds(this, adds);
|
|
13389
|
-
},
|
|
13390
|
-
_processRemoves: function (removes) {
|
|
13391
|
-
processRemoves(this, removes);
|
|
13392
|
-
},
|
|
13393
|
-
_rejectChanges: function () {
|
|
13394
|
-
if (!this._origValues)
|
|
13395
|
-
return;
|
|
13396
|
-
let that = this;
|
|
13397
|
-
this.forEach(function (co) {
|
|
13398
|
-
clearAspect(co, that);
|
|
13399
|
-
});
|
|
13400
|
-
this.length = 0;
|
|
13401
|
-
this._origValues.forEach(function (co) {
|
|
13402
|
-
that.push(co);
|
|
13403
|
-
});
|
|
13404
|
-
},
|
|
13405
|
-
_acceptChanges: function () {
|
|
13406
|
-
this._origValues = null;
|
|
13407
|
-
}
|
|
13410
|
+
_getGoodAdds: ɵ0$5,
|
|
13411
|
+
_beforeChange: ɵ1$4,
|
|
13412
|
+
_processAdds: ɵ2$3,
|
|
13413
|
+
_processRemoves: ɵ3$3,
|
|
13414
|
+
_rejectChanges: ɵ4$3,
|
|
13415
|
+
_acceptChanges: ɵ5$3
|
|
13408
13416
|
};
|
|
13409
13417
|
// local functions
|
|
13410
|
-
function getGoodAdds(complexArray, adds) {
|
|
13418
|
+
function getGoodAdds$1(complexArray, adds) {
|
|
13411
13419
|
// remove any that are already added here
|
|
13412
13420
|
return adds.filter(function (a) {
|
|
13413
13421
|
// return a.parent !== complexArray.parent; // TODO: check if this is actually a bug in original breezejs ???
|
|
13414
13422
|
return a.complexAspect == null || a.complexAspect.parent !== complexArray.parent;
|
|
13415
13423
|
});
|
|
13416
13424
|
}
|
|
13417
|
-
function processAdds(complexArray, adds) {
|
|
13425
|
+
function processAdds$2(complexArray, adds) {
|
|
13418
13426
|
adds.forEach(function (a) {
|
|
13419
13427
|
// if (a.parent != null) { // TODO: check if this is actually a bug in original breezejs ???
|
|
13420
13428
|
if (a.complexAspect && a.complexAspect.parent != null) {
|
|
@@ -13423,7 +13431,7 @@ function processAdds(complexArray, adds) {
|
|
|
13423
13431
|
setAspect(a, complexArray);
|
|
13424
13432
|
});
|
|
13425
13433
|
}
|
|
13426
|
-
function processRemoves(complexArray, removes) {
|
|
13434
|
+
function processRemoves$2(complexArray, removes) {
|
|
13427
13435
|
removes.forEach(function (a) {
|
|
13428
13436
|
clearAspect(a, complexArray);
|
|
13429
13437
|
});
|
|
@@ -13458,6 +13466,28 @@ function makeComplexArray(arr, parent, parentProperty) {
|
|
|
13458
13466
|
return core.extend(arrX, complexArrayMixin);
|
|
13459
13467
|
}
|
|
13460
13468
|
|
|
13469
|
+
const ɵ0$6 = function (adds) {
|
|
13470
|
+
return adds;
|
|
13471
|
+
}, ɵ1$5 = function () {
|
|
13472
|
+
let entityAspect = this.getEntityAspect();
|
|
13473
|
+
if (entityAspect.entityState.isUnchanged()) {
|
|
13474
|
+
entityAspect.setModified();
|
|
13475
|
+
}
|
|
13476
|
+
if (entityAspect.entityState.isModified() && !this._origValues) {
|
|
13477
|
+
this._origValues = this.slice(0);
|
|
13478
|
+
}
|
|
13479
|
+
}, ɵ2$4 = function (adds) {
|
|
13480
|
+
// nothing needed
|
|
13481
|
+
}, ɵ3$4 = function (removes) {
|
|
13482
|
+
// nothing needed;
|
|
13483
|
+
}, ɵ4$4 = function () {
|
|
13484
|
+
if (!this._origValues)
|
|
13485
|
+
return;
|
|
13486
|
+
this.length = 0;
|
|
13487
|
+
Array.prototype.push.apply(this, this._origValues);
|
|
13488
|
+
}, ɵ5$4 = function () {
|
|
13489
|
+
this._origValues = null;
|
|
13490
|
+
};
|
|
13461
13491
|
// TODO: mixin impl is not very typesafe
|
|
13462
13492
|
// Not needed
|
|
13463
13493
|
// interface IPrimitiveArray extends IObservableArray {
|
|
@@ -13499,33 +13529,12 @@ let primitiveArrayMixin = {
|
|
|
13499
13529
|
@readOnly
|
|
13500
13530
|
**/
|
|
13501
13531
|
// virtual impls
|
|
13502
|
-
_getGoodAdds:
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
entityAspect.setModified();
|
|
13509
|
-
}
|
|
13510
|
-
if (entityAspect.entityState.isModified() && !this._origValues) {
|
|
13511
|
-
this._origValues = this.slice(0);
|
|
13512
|
-
}
|
|
13513
|
-
},
|
|
13514
|
-
_processAdds: function (adds) {
|
|
13515
|
-
// nothing needed
|
|
13516
|
-
},
|
|
13517
|
-
_processRemoves: function (removes) {
|
|
13518
|
-
// nothing needed;
|
|
13519
|
-
},
|
|
13520
|
-
_rejectChanges: function () {
|
|
13521
|
-
if (!this._origValues)
|
|
13522
|
-
return;
|
|
13523
|
-
this.length = 0;
|
|
13524
|
-
Array.prototype.push.apply(this, this._origValues);
|
|
13525
|
-
},
|
|
13526
|
-
_acceptChanges: function () {
|
|
13527
|
-
this._origValues = null;
|
|
13528
|
-
}
|
|
13532
|
+
_getGoodAdds: ɵ0$6,
|
|
13533
|
+
_beforeChange: ɵ1$5,
|
|
13534
|
+
_processAdds: ɵ2$4,
|
|
13535
|
+
_processRemoves: ɵ3$4,
|
|
13536
|
+
_rejectChanges: ɵ4$4,
|
|
13537
|
+
_acceptChanges: ɵ5$4
|
|
13529
13538
|
};
|
|
13530
13539
|
// local functions
|
|
13531
13540
|
/** For use by breeze plugin authors only. The class is for use in building a [[IModelLibraryAdapter]] implementation.
|
|
@@ -13583,7 +13592,7 @@ const breeze = {
|
|
|
13583
13592
|
ValidationError: ValidationError,
|
|
13584
13593
|
ValidationOptions: ValidationOptions,
|
|
13585
13594
|
Validator: Validator,
|
|
13586
|
-
version: "2.1.
|
|
13595
|
+
version: "2.1.4"
|
|
13587
13596
|
};
|
|
13588
13597
|
/** @hidden @internal */
|
|
13589
13598
|
let win;
|
|
@@ -13600,5 +13609,5 @@ if (win) {
|
|
|
13600
13609
|
* Generated bundle index. Do not edit.
|
|
13601
13610
|
*/
|
|
13602
13611
|
|
|
13603
|
-
export { AbstractDataServiceAdapter, AndOrPredicate, AnyAllPredicate, AutoGeneratedKeyType, BinaryPredicate, BreezeConfig, BreezeEnum, BreezeEvent, ComplexAspect, ComplexType, DataProperty, DataService, DataType, EntityAction, EntityAspect, EntityKey, EntityManager, EntityQuery, EntityState, EntityType, ExpandClause, FetchStrategy, FilterQueryOp, FnExpr, InterfaceRegistry, JsonResultsAdapter, KeyGenerator, LitExpr, LocalQueryComparisonOptions, MappingContext, MergeStrategy, MetadataStore, NamingConvention, NavigationProperty, OrderByClause, Predicate, PropExpr, QueryOptions, SaveOptions, SelectClause, UnaryPredicate, ValidationError, ValidationOptions, Validator, assertConfig, assertParam, breeze, config, core, makeComplexArray, makePrimitiveArray, makeRelationArray };
|
|
13604
|
-
//# sourceMappingURL=breeze-client.
|
|
13612
|
+
export { AbstractDataServiceAdapter, AndOrPredicate, AnyAllPredicate, AutoGeneratedKeyType, BinaryPredicate, BreezeConfig, BreezeEnum, BreezeEvent, ComplexAspect, ComplexType, DataProperty, DataService, DataType, EntityAction, EntityAspect, EntityKey, EntityManager, EntityQuery, EntityState, EntityType, ExpandClause, FetchStrategy, FilterQueryOp, FnExpr, InterfaceRegistry, JsonResultsAdapter, KeyGenerator, LitExpr, LocalQueryComparisonOptions, MappingContext, MergeStrategy, MetadataStore, NamingConvention, NavigationProperty, OrderByClause, Predicate, PropExpr, QueryOptions, SaveOptions, SelectClause, UnaryPredicate, ValidationError, ValidationOptions, Validator, assertConfig, assertParam, breeze, config, core, makeComplexArray, makePrimitiveArray, makeRelationArray, PredicateExpression as ɵa, Param as ɵb, qualifyTypeName as ɵc, BooleanQueryOp as ɵd };
|
|
13613
|
+
//# sourceMappingURL=breeze-client.js.map
|