UNPKG

@progress/kendo-vue-charts

Version:
9 lines (8 loc) 1.33 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("@progress/kendo-vue-common"),l=t.defineComponent({name:"KendoCollectionConfiguration",props:{chartKey:String,parentKey:String,parentStore:Object},provide(){return{childOption:!1,chartCollection:this.$props.chartKey,parentKey:this.$props.parentKey,child:this.child,addChild:this.addChild,removeChild:this.removeChild}},inject:{dispatchOptions:{default:null},observersStore:{default:null},childrenObserver:{default:null}},created(){const e=this.dispatchOptions;e({chartKey:this.$props.chartKey,payload:[]})},data(){return{child:{collection:[]}}},render(){const e=n.getDefaultSlots(this);return t.createVNode("div",null,[e,t.createTextVNode(" ")])},methods:{addChild(e){this.child.collection.push(e)},removeChild(e){const i=this.child.collection.findIndex(o=>o.uid===e.uid);this.child.collection.splice(i,1)}}});exports.CollectionConfiguration=l;