@platforma-sdk/ui-vue 1.11.2 → 1.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/ui-vue",
3
- "version": "1.11.2",
3
+ "version": "1.11.4",
4
4
  "type": "module",
5
5
  "main": "dist/lib.umd.cjs",
6
6
  "module": "dist/lib.js",
@@ -37,7 +37,7 @@
37
37
  "@ag-grid-community/theming": "^32.3.3",
38
38
  "@ag-grid-enterprise/side-bar": "^32.3.3",
39
39
  "@ag-grid-enterprise/column-tool-panel": "^32.3.3",
40
- "@milaboratories/uikit": "^2.2.9",
40
+ "@milaboratories/uikit": "^2.2.10",
41
41
  "@platforma-sdk/model": "^1.10.12"
42
42
  },
43
43
  "devDependencies": {
package/src/aggrid.ts CHANGED
@@ -44,7 +44,7 @@ const agGridOverrideStyles = createPart('headerBottomBorder').withCSS(OverrideCs
44
44
  export const AgGridTheme: Theme = themeQuartz
45
45
  .withParams({
46
46
  headerColumnResizeHandleColor: 'transparent',
47
- accentColor: '#110529',
47
+ accentColor: '#49cc49',
48
48
  borderColor: '#E1E3EB',
49
49
  cellHorizontalPaddingScale: 1,
50
50
  checkboxBorderRadius: '3px',
@@ -0,0 +1,35 @@
1
+ <script lang="ts" setup>
2
+ import type { ICellRendererParams } from '@ag-grid-community/core';
3
+ import type { MaskIconName16 } from '@milaboratories/uikit';
4
+ import { PlMaskIcon16 } from '@milaboratories/uikit';
5
+ import './pl-ag-text-and-button-cell.scss';
6
+
7
+ const props = defineProps<{
8
+ params: ICellRendererParams & { plIcon?: MaskIconName16; plBtnLabel?: string };
9
+ }>();
10
+
11
+ function triggerRowDoubleClick() {
12
+ const rowElement = document.querySelector(`.ag-row[row-index="${props.params.node.rowIndex}"]`);
13
+ if (rowElement) {
14
+ const dblClickEvent = new MouseEvent('dblclick', {
15
+ bubbles: true,
16
+ cancelable: true,
17
+ view: window,
18
+ });
19
+ rowElement.dispatchEvent(dblClickEvent);
20
+ } else {
21
+ console.warn(`Row with index ${props.params.node.rowIndex} not found.`);
22
+ }
23
+ }
24
+ </script>
25
+ <template>
26
+ <div class="pl-ag-grid-open-cell d-flex">
27
+ <div class="pl-ag-grid-open-cell__value">
28
+ {{ params.value }}
29
+ </div>
30
+ <div class="pl-ag-grid-open-cell__activator text-caps11 align-center" @click.stop="triggerRowDoubleClick">
31
+ <PlMaskIcon16 :name="params.plIcon ?? 'maximize'" />
32
+ {{ params.plBtnLabel ?? 'Open' }}
33
+ </div>
34
+ </div>
35
+ </template>
@@ -0,0 +1 @@
1
+ export { default as PlAgTextAndButtonCell } from './PlAgTextAndButtonCell.vue';
@@ -0,0 +1,36 @@
1
+ .pl-ag-grid-open-cell {
2
+ align-items: center;
3
+
4
+ &__activator {
5
+ position: absolute;
6
+ right: 8px;
7
+ border-radius: 4px;
8
+ border: 1px solid var(--border-color-div-grey);
9
+ padding: 4px 6px 4px 4px;
10
+ gap: 3px;
11
+ cursor: pointer;
12
+ display: none;
13
+ background-color: var(--ic-00);
14
+ opacity: 1;
15
+
16
+ &:hover {
17
+ background-color: #EFF2F7;
18
+
19
+ }
20
+
21
+ &:active {
22
+ background-color: #E7EBF3;
23
+ }
24
+ }
25
+
26
+ &__value {
27
+ text-overflow: ellipsis;
28
+ overflow: hidden;
29
+ }
30
+ }
31
+
32
+ .ag-row-hover {
33
+ .pl-ag-grid-open-cell__activator {
34
+ display: flex;
35
+ }
36
+ }
package/src/lib.ts CHANGED
@@ -12,6 +12,8 @@ export * from './components/PlAgCellFile';
12
12
 
13
13
  export * from './components/PlAgDataTable/types';
14
14
 
15
+ export * from './components/PlAgTextAndButtonCell';
16
+
15
17
  export * from './defineApp';
16
18
 
17
19
  export * from './createModel';