@vuu-ui/vuu-table-extras 0.13.113-alpha.1 → 0.13.113
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.
|
@@ -12,7 +12,7 @@ const classBase = "vuuIconButtonCell";
|
|
|
12
12
|
const IconButtonCell = ({ column, row }) => {
|
|
13
13
|
const targetWindow = window.useWindow();
|
|
14
14
|
styles.useComponentCssInjection({
|
|
15
|
-
testId: "vuu-
|
|
15
|
+
testId: "vuu-iconbutton-cell",
|
|
16
16
|
css: IconButtonCell$1,
|
|
17
17
|
window: targetWindow
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButtonCell.js","sources":["../../../../../packages/vuu-table-extras/src/cell-renderers/button-cell/IconButtonCell.tsx"],"sourcesContent":["import { TableCellRendererProps } from \"@vuu-ui/vuu-table-types\";\nimport { MouseEventHandler, useCallback } from \"react\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\nimport { useWindow } from \"@salt-ds/window\";\n\nimport iconButtonCellCss from \"./IconButtonCell.css\";\nimport { useRowAction } from \"../../table-provider/TableProvider\";\nimport { Button } from \"@salt-ds/core\";\n\nconst classBase = \"vuuIconButtonCell\";\n\n/**\n * To assign an icon to the cell, give the columndescriptor\n * a className. In css, assign an icon variable to --vuu-svg-icon.\n */\nexport const IconButtonCell = ({ column, row }: TableCellRendererProps) => {\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"vuu-
|
|
1
|
+
{"version":3,"file":"IconButtonCell.js","sources":["../../../../../packages/vuu-table-extras/src/cell-renderers/button-cell/IconButtonCell.tsx"],"sourcesContent":["import { TableCellRendererProps } from \"@vuu-ui/vuu-table-types\";\nimport { MouseEventHandler, useCallback } from \"react\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\nimport { useWindow } from \"@salt-ds/window\";\n\nimport iconButtonCellCss from \"./IconButtonCell.css\";\nimport { useRowAction } from \"../../table-provider/TableProvider\";\nimport { Button } from \"@salt-ds/core\";\n\nconst classBase = \"vuuIconButtonCell\";\n\n/**\n * To assign an icon to the cell, give the columndescriptor\n * a className. In css, assign an icon variable to --vuu-svg-icon.\n */\nexport const IconButtonCell = ({ column, row }: TableCellRendererProps) => {\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"vuu-iconbutton-cell\",\n css: iconButtonCellCss,\n window: targetWindow,\n });\n\n const actionHandler = useRowAction(column.name);\n const handleClick = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (evt) => {\n evt.stopPropagation();\n actionHandler(column.name, row);\n },\n [actionHandler, column, row],\n );\n\n return (\n <Button\n appearance=\"transparent\"\n className={classBase}\n data-embedded\n data-icon\n onClick={handleClick}\n />\n );\n};\n"],"names":["useWindow","useComponentCssInjection","iconButtonCellCss","useRowAction","useCallback","jsx","Button"],"mappings":";;;;;;;;;;AASA,MAAM,SAAY,GAAA,mBAAA;AAMX,MAAM,cAAiB,GAAA,CAAC,EAAE,MAAA,EAAQ,KAAkC,KAAA;AACzE,EAAA,MAAM,eAAeA,gBAAU,EAAA;AAC/B,EAAyBC,+BAAA,CAAA;AAAA,IACvB,MAAQ,EAAA,qBAAA;AAAA,IACR,GAAK,EAAAC,gBAAA;AAAA,IACL,MAAQ,EAAA;AAAA,GACT,CAAA;AAED,EAAM,MAAA,aAAA,GAAgBC,0BAAa,CAAA,MAAA,CAAO,IAAI,CAAA;AAC9C,EAAA,MAAM,WAAc,GAAAC,iBAAA;AAAA,IAClB,CAAC,GAAQ,KAAA;AACP,MAAA,GAAA,CAAI,eAAgB,EAAA;AACpB,MAAc,aAAA,CAAA,MAAA,CAAO,MAAM,GAAG,CAAA;AAAA,KAChC;AAAA,IACA,CAAC,aAAe,EAAA,MAAA,EAAQ,GAAG;AAAA,GAC7B;AAEA,EACE,uBAAAC,cAAA;AAAA,IAACC,WAAA;AAAA,IAAA;AAAA,MACC,UAAW,EAAA,aAAA;AAAA,MACX,SAAW,EAAA,SAAA;AAAA,MACX,eAAa,EAAA,IAAA;AAAA,MACb,WAAS,EAAA,IAAA;AAAA,MACT,OAAS,EAAA;AAAA;AAAA,GACX;AAEJ;;;;"}
|
|
@@ -10,7 +10,7 @@ const classBase = "vuuIconButtonCell";
|
|
|
10
10
|
const IconButtonCell = ({ column, row }) => {
|
|
11
11
|
const targetWindow = useWindow();
|
|
12
12
|
useComponentCssInjection({
|
|
13
|
-
testId: "vuu-
|
|
13
|
+
testId: "vuu-iconbutton-cell",
|
|
14
14
|
css: iconButtonCellCss,
|
|
15
15
|
window: targetWindow
|
|
16
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButtonCell.js","sources":["../../../../../packages/vuu-table-extras/src/cell-renderers/button-cell/IconButtonCell.tsx"],"sourcesContent":["import { TableCellRendererProps } from \"@vuu-ui/vuu-table-types\";\nimport { MouseEventHandler, useCallback } from \"react\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\nimport { useWindow } from \"@salt-ds/window\";\n\nimport iconButtonCellCss from \"./IconButtonCell.css\";\nimport { useRowAction } from \"../../table-provider/TableProvider\";\nimport { Button } from \"@salt-ds/core\";\n\nconst classBase = \"vuuIconButtonCell\";\n\n/**\n * To assign an icon to the cell, give the columndescriptor\n * a className. In css, assign an icon variable to --vuu-svg-icon.\n */\nexport const IconButtonCell = ({ column, row }: TableCellRendererProps) => {\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"vuu-
|
|
1
|
+
{"version":3,"file":"IconButtonCell.js","sources":["../../../../../packages/vuu-table-extras/src/cell-renderers/button-cell/IconButtonCell.tsx"],"sourcesContent":["import { TableCellRendererProps } from \"@vuu-ui/vuu-table-types\";\nimport { MouseEventHandler, useCallback } from \"react\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\nimport { useWindow } from \"@salt-ds/window\";\n\nimport iconButtonCellCss from \"./IconButtonCell.css\";\nimport { useRowAction } from \"../../table-provider/TableProvider\";\nimport { Button } from \"@salt-ds/core\";\n\nconst classBase = \"vuuIconButtonCell\";\n\n/**\n * To assign an icon to the cell, give the columndescriptor\n * a className. In css, assign an icon variable to --vuu-svg-icon.\n */\nexport const IconButtonCell = ({ column, row }: TableCellRendererProps) => {\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"vuu-iconbutton-cell\",\n css: iconButtonCellCss,\n window: targetWindow,\n });\n\n const actionHandler = useRowAction(column.name);\n const handleClick = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (evt) => {\n evt.stopPropagation();\n actionHandler(column.name, row);\n },\n [actionHandler, column, row],\n );\n\n return (\n <Button\n appearance=\"transparent\"\n className={classBase}\n data-embedded\n data-icon\n onClick={handleClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;AASA,MAAM,SAAY,GAAA,mBAAA;AAMX,MAAM,cAAiB,GAAA,CAAC,EAAE,MAAA,EAAQ,KAAkC,KAAA;AACzE,EAAA,MAAM,eAAe,SAAU,EAAA;AAC/B,EAAyB,wBAAA,CAAA;AAAA,IACvB,MAAQ,EAAA,qBAAA;AAAA,IACR,GAAK,EAAA,iBAAA;AAAA,IACL,MAAQ,EAAA;AAAA,GACT,CAAA;AAED,EAAM,MAAA,aAAA,GAAgB,YAAa,CAAA,MAAA,CAAO,IAAI,CAAA;AAC9C,EAAA,MAAM,WAAc,GAAA,WAAA;AAAA,IAClB,CAAC,GAAQ,KAAA;AACP,MAAA,GAAA,CAAI,eAAgB,EAAA;AACpB,MAAc,aAAA,CAAA,MAAA,CAAO,MAAM,GAAG,CAAA;AAAA,KAChC;AAAA,IACA,CAAC,aAAe,EAAA,MAAA,EAAQ,GAAG;AAAA,GAC7B;AAEA,EACE,uBAAA,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,UAAW,EAAA,aAAA;AAAA,MACX,SAAW,EAAA,SAAA;AAAA,MACX,eAAa,EAAA,IAAA;AAAA,MACb,WAAS,EAAA,IAAA;AAAA,MACT,OAAS,EAAA;AAAA;AAAA,GACX;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.13.113
|
|
2
|
+
"version": "0.13.113",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@vuu-ui/vuu-filter-types": "0.13.113
|
|
7
|
-
"@vuu-ui/vuu-protocol-types": "0.13.113
|
|
6
|
+
"@vuu-ui/vuu-filter-types": "0.13.113",
|
|
7
|
+
"@vuu-ui/vuu-protocol-types": "0.13.113"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@vuu-ui/vuu-codemirror": "0.13.113
|
|
11
|
-
"@vuu-ui/vuu-data-react": "0.13.113
|
|
12
|
-
"@vuu-ui/vuu-data-types": "0.13.113
|
|
13
|
-
"@vuu-ui/vuu-table-types": "0.13.113
|
|
14
|
-
"@vuu-ui/vuu-popups": "0.13.113
|
|
15
|
-
"@vuu-ui/vuu-table": "0.13.113
|
|
16
|
-
"@vuu-ui/vuu-utils": "0.13.113
|
|
17
|
-
"@vuu-ui/vuu-ui-controls": "0.13.113
|
|
10
|
+
"@vuu-ui/vuu-codemirror": "0.13.113",
|
|
11
|
+
"@vuu-ui/vuu-data-react": "0.13.113",
|
|
12
|
+
"@vuu-ui/vuu-data-types": "0.13.113",
|
|
13
|
+
"@vuu-ui/vuu-table-types": "0.13.113",
|
|
14
|
+
"@vuu-ui/vuu-popups": "0.13.113",
|
|
15
|
+
"@vuu-ui/vuu-table": "0.13.113",
|
|
16
|
+
"@vuu-ui/vuu-utils": "0.13.113",
|
|
17
|
+
"@vuu-ui/vuu-ui-controls": "0.13.113",
|
|
18
18
|
"@lezer/lr": "1.4.2",
|
|
19
19
|
"@salt-ds/core": "1.54.1",
|
|
20
20
|
"@salt-ds/styles": "0.2.1",
|