@platforma-sdk/ui-vue 1.21.21 → 1.21.24
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/CHANGELOG.md +15 -0
- package/dist/lib.js +14109 -11513
- package/dist/lib.js.map +1 -1
- package/dist/lib.umd.cjs +29 -25
- package/dist/lib.umd.cjs.map +1 -1
- package/dist/src/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue.d.ts +9 -0
- package/dist/src/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue.d.ts.map +1 -0
- package/dist/src/components/PlAgChartHistogramCell/index.d.ts +2 -0
- package/dist/src/components/PlAgChartHistogramCell/index.d.ts.map +1 -0
- package/dist/src/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue.d.ts.map +1 -1
- package/dist/src/lib.d.ts +1 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue +51 -0
- package/src/components/PlAgChartHistogramCell/index.ts +1 -0
- package/src/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue +7 -1
- package/src/lib.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/ui-vue",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/lib.umd.cjs",
|
|
6
6
|
"module": "dist/lib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"canonicalize": "^2.0.0",
|
|
24
24
|
"ag-grid-enterprise": "^33.0.3",
|
|
25
25
|
"ag-grid-vue3": "^33.0.3",
|
|
26
|
-
"@milaboratories/uikit": "^2.2.
|
|
26
|
+
"@milaboratories/uikit": "^2.2.47",
|
|
27
27
|
"@platforma-sdk/model": "^1.21.20"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { ICellRendererParams } from 'ag-grid-enterprise';
|
|
3
|
+
import {
|
|
4
|
+
type InferComponentProps,
|
|
5
|
+
PlChartHistogram,
|
|
6
|
+
} from '@milaboratories/uikit';
|
|
7
|
+
import { computed, ref } from 'vue';
|
|
8
|
+
import { useElementBounding } from '@vueuse/core';
|
|
9
|
+
|
|
10
|
+
type PlChartHistogramSettings = InferComponentProps<typeof PlChartHistogram>['settings'];
|
|
11
|
+
|
|
12
|
+
const props = defineProps<{
|
|
13
|
+
params: ICellRendererParams<unknown, PlChartHistogramSettings | undefined>;
|
|
14
|
+
}>();
|
|
15
|
+
|
|
16
|
+
const root = ref<HTMLElement>();
|
|
17
|
+
|
|
18
|
+
const { width } = useElementBounding(root);
|
|
19
|
+
|
|
20
|
+
const settings = computed<PlChartHistogramSettings | undefined>(() => {
|
|
21
|
+
if (!props.params.value) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!width.value) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return { ...props.params.value, compact: true, totalHeight: 24, totalWidth: width.value };
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<div ref="root" class="pl-ag-chart-histogram-cell">
|
|
35
|
+
<PlChartHistogram v-if="settings" :settings="settings" />
|
|
36
|
+
<div v-else class="pl-ag-chart-histogram-cell__not-ready ">Not ready</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<style>
|
|
41
|
+
.pl-ag-chart-histogram-cell {
|
|
42
|
+
height: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pl-ag-chart-histogram-cell__not-ready {
|
|
49
|
+
color: var(--txt-03) !important;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PlAgChartHistogramCell } from './PlAgChartHistogramCell.vue';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { ICellRendererParams } from 'ag-grid-enterprise';
|
|
3
3
|
import type {
|
|
4
|
-
PlChartStackedBarSettings
|
|
4
|
+
PlChartStackedBarSettings,
|
|
5
|
+
} from '@milaboratories/uikit';
|
|
5
6
|
import {
|
|
6
7
|
PlChartStackedBarCompact,
|
|
7
8
|
} from '@milaboratories/uikit';
|
|
@@ -17,6 +18,7 @@ const settings = computed(() => props.params.value || undefined);
|
|
|
17
18
|
<template>
|
|
18
19
|
<div class="pl-ag-chart-stacked-bar-cell">
|
|
19
20
|
<PlChartStackedBarCompact v-if="settings" :settings="settings" />
|
|
21
|
+
<div v-else class="pl-ag-chart-stacked-bar-cell__not-ready">Not ready</div>
|
|
20
22
|
</div>
|
|
21
23
|
</template>
|
|
22
24
|
|
|
@@ -27,4 +29,8 @@ const settings = computed(() => props.params.value || undefined);
|
|
|
27
29
|
flex-direction: row;
|
|
28
30
|
align-items: center;
|
|
29
31
|
}
|
|
32
|
+
|
|
33
|
+
.pl-ag-chart-stacked-bar-cell__not-ready {
|
|
34
|
+
color: var(--txt-03) !important;
|
|
35
|
+
}
|
|
30
36
|
</style>
|
package/src/lib.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './components/PlAgCellFile';
|
|
|
13
13
|
export * from './components/PlAgCellProgress';
|
|
14
14
|
export * from './components/PlAgCellStatusTag';
|
|
15
15
|
export * from './components/PlAgChartStackedBarCell';
|
|
16
|
+
export * from './components/PlAgChartHistogramCell';
|
|
16
17
|
|
|
17
18
|
export * from './components/PlAgDataTable/types';
|
|
18
19
|
export * from './components/PlAgDataTable/sources/row-number';
|