{"version":3,"file":"PlSelectionModel.cjs","names":[],"sources":["../../src/components/PlSelectionModel.ts"],"sourcesContent":["import type { AxesSpec, PTableValueAxis } from \"@milaboratories/pl-model-common\";\n\n/** Key is a set of all axes values, which means it is unique across rows */\nexport type PTableKey = (PTableValueAxis | null)[];\n\n/**\n * Information on selected rows.\n * for selectedKeys = [[axis1Value, axis2Value, axis3Value], ...]\n * axesSpec would be [axis1Spec, axis2Spec, axis3Spec]\n */\nexport type PlSelectionModel = {\n  /** Specs for {@link AxisValue}'s in {@link PTableKey} */\n  axesSpec: AxesSpec;\n  /** Row keys (arrays of axes values) of selected rows */\n  selectedKeys: PTableKey[];\n};\n\nexport function createPlSelectionModel(): PlSelectionModel {\n  return {\n    axesSpec: [],\n    selectedKeys: [],\n  };\n}\n"],"mappings":";AAiBA,SAAgB,yBAA2C;CACzD,OAAO;EACL,UAAU,CAAC;EACX,cAAc,CAAC;CACjB;AACF"}