@neovici/cosmoz-omnitable 17.1.0 → 17.2.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-footer.d.ts","sourceRoot":"","sources":["../../src/lib/render-footer.js"],"names":[],"mappings":"AAMO;;;;;;;
|
|
1
|
+
{"version":3,"file":"render-footer.d.ts","sourceRoot":"","sources":["../../src/lib/render-footer.js"],"names":[],"mappings":"AAMO;;;;;;;yCAkDe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isEmpty } from '@neovici/cosmoz-utils/template';
|
|
2
2
|
import { t } from 'i18next';
|
|
3
|
+
import { html } from 'lit-html';
|
|
3
4
|
import { saveAsCsvAction } from './save-as-csv-action';
|
|
4
5
|
import { saveAsXlsxAction } from './save-as-xlsx-action';
|
|
5
|
-
import { isEmpty } from '@neovici/cosmoz-utils/template';
|
|
6
6
|
export const renderFooter = ({ columns, selectedItems, csvFilename, xlsxFilename, xlsxSheetname, topPlacement, }) => html `<cosmoz-bottom-bar
|
|
7
7
|
id="bottomBar"
|
|
8
8
|
?active=${!isEmpty(selectedItems.length)}
|
|
@@ -13,10 +13,6 @@ export const renderFooter = ({ columns, selectedItems, csvFilename, xlsxFilename
|
|
|
13
13
|
${t('{count} selected item', { count: selectedItems.length })}
|
|
14
14
|
</slot>
|
|
15
15
|
<slot name="actions" id="actions"></slot>
|
|
16
|
-
<!-- These slots are needed by cosmoz-bottom-bar
|
|
17
|
-
as it might change the slot of the actions to distribute them in the menu -->
|
|
18
|
-
<slot name="bottom-bar-toolbar" slot="bottom-bar-toolbar"></slot>
|
|
19
|
-
<slot name="bottom-bar-menu" slot="bottom-bar-menu"></slot>
|
|
20
16
|
<cosmoz-dropdown-menu part="extra" slot="extra" .placement=${topPlacement}>
|
|
21
17
|
<svg
|
|
22
18
|
slot="button"
|
|
@@ -39,12 +35,12 @@ export const renderFooter = ({ columns, selectedItems, csvFilename, xlsxFilename
|
|
|
39
35
|
<button
|
|
40
36
|
@click=${() => saveAsCsvAction(columns, selectedItems, csvFilename)}
|
|
41
37
|
>
|
|
42
|
-
${t('Save as CSV')}
|
|
38
|
+
${t('Save selected items as CSV')}
|
|
43
39
|
</button>
|
|
44
40
|
<button
|
|
45
41
|
@click=${() => saveAsXlsxAction(columns, selectedItems, xlsxFilename, xlsxSheetname)}
|
|
46
42
|
>
|
|
47
|
-
${t('Save as XLSX')}
|
|
43
|
+
${t('Save selected items as XLSX')}
|
|
48
44
|
</button>
|
|
49
45
|
<slot name="download-menu"></slot>
|
|
50
46
|
</cosmoz-dropdown-menu>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-footer.js","sourceRoot":"","sources":["../../src/lib/render-footer.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"render-footer.js","sourceRoot":"","sources":["../../src/lib/render-footer.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC5B,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACZ,EAAE,EAAE,CACJ,IAAI,CAAA;;YAEO,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC;;;;;KAKrC,CAAC,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,CAAC;;;+DAGD,YAAY;;;;;;;;;;;;;;;;;;;;aAoB9D,GAAG,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC;;MAEjE,CAAC,CAAC,4BAA4B,CAAC;;;aAGxB,GAAG,EAAE,CACb,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,CAAC;;MAEpE,CAAC,CAAC,6BAA6B,CAAC;;;;sBAIhB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.0",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|