@milaboratories/milaboratories.ui-examples.ui 1.5.8 → 1.5.9

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/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta http-equiv="Content-Security-Policy" content="script-src 'self' blob: data: 'unsafe-eval';">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <script type="module" crossorigin src="./assets/index-CkICcSfv.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-CoJnpWax.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="./assets/index-DVTP_zd1.css">
9
9
  </head>
10
10
  <body>
@@ -1 +1 @@
1
- {"version":3,"file":"PlAgDataTableV2Page.vue.d.ts","sourceRoot":"","sources":["../../src/pages/PlAgDataTableV2Page.vue"],"names":[],"mappings":";AAufA,wBAKG"}
1
+ {"version":3,"file":"PlAgDataTableV2Page.vue.d.ts","sourceRoot":"","sources":["../../src/pages/PlAgDataTableV2Page.vue"],"names":[],"mappings":";AAofA,wBAKG"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@milaboratories/milaboratories.ui-examples.ui",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "vue": "^3.5.13",
7
- "@milaboratories/milaboratories.ui-examples.model": "1.2.7",
8
- "@platforma-sdk/model": "^1.40.1"
7
+ "@platforma-sdk/model": "^1.40.1",
8
+ "@milaboratories/milaboratories.ui-examples.model": "1.2.8"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@vitejs/plugin-vue": "^5.2.3",
@@ -18,11 +18,11 @@
18
18
  "ag-grid-enterprise": "^33.3.2",
19
19
  "ag-grid-vue3": "^33.3.2",
20
20
  "rollup-plugin-sourcemaps2": "^0.5.2",
21
- "@platforma-sdk/ui-vue": "^1.40.1",
22
- "@milaboratories/uikit": "^2.3.11",
23
- "@milaboratories/helpers": "^1.6.17",
24
21
  "@milaboratories/build-configs": "1.0.4",
25
- "@milaboratories/ts-configs": "1.0.4"
22
+ "@platforma-sdk/ui-vue": "^1.40.2",
23
+ "@milaboratories/ts-configs": "1.0.4",
24
+ "@milaboratories/uikit": "^2.3.11",
25
+ "@milaboratories/helpers": "^1.6.17"
26
26
  },
27
27
  "scripts": {
28
28
  "dev": "vite",
@@ -32,14 +32,13 @@ const settingsOpen = ref(false);
32
32
  const sources = [...new Array(10)].map((_, i) => {
33
33
  return {
34
34
  label: `Source ${1 + i}`,
35
- value: `source_${i}`,
35
+ value: `source_${1 + i}`,
36
36
  };
37
37
  });
38
- const activeSource = ref(sources[0].value);
39
38
 
40
39
  const loading = ref(false);
41
40
  const tableSettings = usePlDataTableSettingsV2({
42
- sourceId: () => loading.value ? 'loading_source' : activeSource.value,
41
+ sourceId: () => loading.value ? 'loading_source' : app.model.ui.dataTableV2.sourceId,
43
42
  model: () => loading.value ? undefined : app.model.outputs.ptV2,
44
43
  sheets: () => app.model.outputs.ptV2Sheets,
45
44
  filtersConfig: ({ sourceId, column }) => {
@@ -153,7 +152,7 @@ watch(
153
152
  </template>
154
153
  <PlAgDataTableV2
155
154
  ref="tableRef"
156
- v-model="app.model.ui.dataTableStateV2"
155
+ v-model="app.model.ui.dataTableV2.state"
157
156
  v-model:selection="selection"
158
157
  v-model:selection-labeled="selectionLabeled"
159
158
  :settings="tableSettings"
@@ -162,7 +161,7 @@ watch(
162
161
  show-export-button
163
162
  >
164
163
  <template #before-sheets>
165
- <PlDropdown v-model="activeSource" :options="sources" clearable />
164
+ <PlDropdown v-model="app.model.ui.dataTableV2.sourceId" :options="sources" clearable />
166
165
  <PlNumberField v-model="app.model.args.tableNumRows" />
167
166
  </template>
168
167
  </PlAgDataTableV2>