@omegagrid/grid 0.3.41 → 0.3.43
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/renderers/ActionRenderer.d.ts.map +1 -1
- package/dist/renderers/ActionRenderer.js +11 -8
- package/dist/renderers/ActionRenderer.js.map +1 -1
- package/dist/ui/table.styles.d.ts.map +1 -1
- package/dist/ui/table.styles.js +11 -0
- package/dist/ui/table.styles.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/ActionRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAY7D,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,GAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"ActionRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/ActionRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAY7D,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,GAAI,cAAc,CAepF"}
|
|
@@ -14,14 +14,17 @@ function ActionRenderer(div, cell) {
|
|
|
14
14
|
var _a;
|
|
15
15
|
const actions = (((_a = cell.editorContent) !== null && _a !== void 0 ? _a : cell.value) || []);
|
|
16
16
|
div.innerHTML = '';
|
|
17
|
-
(0, lit_html_1.render)((0, lit_html_1.html)
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
(0, lit_html_1.render)((0, lit_html_1.html) `
|
|
18
|
+
<div class="actions">
|
|
19
|
+
${(0, map_js_1.map)(actions, action => (0, lit_html_1.html) `
|
|
20
|
+
<og-button
|
|
21
|
+
icon="${action.icon}"
|
|
22
|
+
color="${action.color}"
|
|
23
|
+
@mousedown="${(e) => _onButtonClick.call(this, e, cell, action)}">
|
|
24
|
+
</og-button>
|
|
25
|
+
`)}
|
|
26
|
+
</div>
|
|
27
|
+
`, div);
|
|
25
28
|
return BaseRenderer_1.BaseRenderer.call(this, div, cell);
|
|
26
29
|
}
|
|
27
30
|
exports.ActionRenderer = ActionRenderer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionRenderer.js","sourceRoot":"","sources":["../../src/renderers/ActionRenderer.ts"],"names":[],"mappings":";;;AACA,uCAAwC;AACxC,uDAAiD;AACjD,8BAAyC;AACzC,iDAA8C;AAE9C,SAAS,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"ActionRenderer.js","sourceRoot":"","sources":["../../src/renderers/ActionRenderer.ts"],"names":[],"mappings":";;;AACA,uCAAwC;AACxC,uDAAiD;AACjD,8BAAyC;AACzC,iDAA8C;AAE9C,SAAS,cAAc,CAAC,CAAQ,EAAE,IAAe,EAAE,MAAkB;IACpE,CAAC,CAAC,eAAe,EAAE,CAAC;IACpB,MAAM,IAAI,GAAI,IAAc,CAAC,IAAI,CAAC;IAClC,IAAI,CAAC,aAAa,CAAC,IAAI,cAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAC,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,SAAgB,cAAc,CAAC,GAAmB,EAAE,IAAe;;IAClE,MAAM,OAAO,GAAG,CAAC,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAkB,CAAC;IAC5E,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC;IACnB,IAAA,iBAAM,EAAC,IAAA,eAAI,EAAA;;KAEP,IAAA,YAAG,EAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,IAAA,eAAI,EAAA;;aAEnB,MAAM,CAAC,IAAI;cACV,MAAM,CAAC,KAAK;mBACP,CAAC,CAAe,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;;IAE9E,CAAC;;EAEH,EAAE,GAAG,CAAC,CAAC;IACR,OAAO,2BAAY,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC;AAfD,wCAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../src/ui/table.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../src/ui/table.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yBAyNvB,CAAC"}
|
package/dist/ui/table.styles.js
CHANGED
|
@@ -89,6 +89,17 @@ exports.tableStyles = (0, lit_1.css) `
|
|
|
89
89
|
white-space: nowrap;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
div.actions {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
height: 100%;
|
|
97
|
+
gap: 4px;
|
|
98
|
+
}
|
|
99
|
+
div.actions>og-button {
|
|
100
|
+
height: 16px;
|
|
101
|
+
}
|
|
102
|
+
|
|
92
103
|
th>div {
|
|
93
104
|
display: flex;
|
|
94
105
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../src/ui/table.styles.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,WAAW,GAAG,IAAA,SAAG,EAAA
|
|
1
|
+
{"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../src/ui/table.styles.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,WAAW,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyN7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omegagrid/grid",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.43",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Universal datagrid component",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"_prepublish": "yarn test && yarn lint"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@omegagrid/commands": "^0.3.
|
|
39
|
-
"@omegagrid/core": "^0.3.
|
|
40
|
-
"@omegagrid/grid-core": "^0.3.
|
|
41
|
-
"@omegagrid/localize": "^0.3.
|
|
42
|
-
"@omegagrid/tabs": "^0.3.
|
|
43
|
-
"@omegagrid/tree": "^0.3.
|
|
38
|
+
"@omegagrid/commands": "^0.3.43",
|
|
39
|
+
"@omegagrid/core": "^0.3.43",
|
|
40
|
+
"@omegagrid/grid-core": "^0.3.43",
|
|
41
|
+
"@omegagrid/localize": "^0.3.43",
|
|
42
|
+
"@omegagrid/tabs": "^0.3.43",
|
|
43
|
+
"@omegagrid/tree": "^0.3.43",
|
|
44
44
|
"@stdlib/stats": "^0.0.13",
|
|
45
45
|
"lit": "^3.1.1",
|
|
46
46
|
"lit-html": "^3.1.1",
|