@ui5/webcomponents-compat 0.0.0-07d38e78e
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/.env.production +1 -0
- package/.env.testing +4 -0
- package/.npsrc.json +3 -0
- package/CHANGELOG.md +25 -0
- package/README.md +45 -0
- package/dist/Assets.d.ts +3 -0
- package/dist/Assets.js +6 -0
- package/dist/Assets.js.map +1 -0
- package/dist/Table.d.ts +362 -0
- package/dist/Table.js +868 -0
- package/dist/Table.js.map +1 -0
- package/dist/TableCell.d.ts +37 -0
- package/dist/TableCell.js +63 -0
- package/dist/TableCell.js.map +1 -0
- package/dist/TableColumn.d.ts +63 -0
- package/dist/TableColumn.js +59 -0
- package/dist/TableColumn.js.map +1 -0
- package/dist/TableGroupRow.d.ts +44 -0
- package/dist/TableGroupRow.js +102 -0
- package/dist/TableGroupRow.js.map +1 -0
- package/dist/TableRow.d.ts +120 -0
- package/dist/TableRow.js +323 -0
- package/dist/TableRow.js.map +1 -0
- package/dist/bundle.common.bootstrap.d.ts +1 -0
- package/dist/bundle.common.bootstrap.js +3 -0
- package/dist/bundle.common.bootstrap.js.map +1 -0
- package/dist/bundle.esm.d.ts +3 -0
- package/dist/bundle.esm.js +13 -0
- package/dist/bundle.esm.js.map +1 -0
- package/dist/bundle.scoped.esm.d.ts +2 -0
- package/dist/bundle.scoped.esm.js +8 -0
- package/dist/bundle.scoped.esm.js.map +1 -0
- package/dist/css/themes/GrowingButton.css +1 -0
- package/dist/css/themes/Table.css +1 -0
- package/dist/css/themes/TableCell.css +1 -0
- package/dist/css/themes/TableColumn.css +1 -0
- package/dist/css/themes/TableGroupRow.css +1 -0
- package/dist/css/themes/TableRow.css +1 -0
- package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -0
- package/dist/custom-elements-internal.json +1021 -0
- package/dist/custom-elements.json +747 -0
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_in.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -0
- package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -0
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -0
- package/dist/generated/i18n/i18n-defaults.d.ts +12 -0
- package/dist/generated/i18n/i18n-defaults.js +13 -0
- package/dist/generated/i18n/i18n-defaults.js.map +1 -0
- package/dist/generated/json-imports/Themes.d.ts +1 -0
- package/dist/generated/json-imports/Themes.js +25 -0
- package/dist/generated/json-imports/Themes.js.map +1 -0
- package/dist/generated/json-imports/i18n.d.ts +1 -0
- package/dist/generated/json-imports/i18n.js +120 -0
- package/dist/generated/json-imports/i18n.js.map +1 -0
- package/dist/generated/templates/TableCellTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/TableCellTemplate.lit.js +5 -0
- package/dist/generated/templates/TableCellTemplate.lit.js.map +1 -0
- package/dist/generated/templates/TableColumnTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/TableColumnTemplate.lit.js +5 -0
- package/dist/generated/templates/TableColumnTemplate.lit.js.map +1 -0
- package/dist/generated/templates/TableGroupRowTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/TableGroupRowTemplate.lit.js +5 -0
- package/dist/generated/templates/TableGroupRowTemplate.lit.js.map +1 -0
- package/dist/generated/templates/TableRowTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/TableRowTemplate.lit.js +16 -0
- package/dist/generated/templates/TableRowTemplate.lit.js.map +1 -0
- package/dist/generated/templates/TableTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/TableTemplate.lit.js +15 -0
- package/dist/generated/templates/TableTemplate.lit.js.map +1 -0
- package/dist/generated/themes/GrowingButton.css.d.ts +3 -0
- package/dist/generated/themes/GrowingButton.css.js +9 -0
- package/dist/generated/themes/GrowingButton.css.js.map +1 -0
- package/dist/generated/themes/Table.css.d.ts +3 -0
- package/dist/generated/themes/Table.css.js +9 -0
- package/dist/generated/themes/Table.css.js.map +1 -0
- package/dist/generated/themes/TableCell.css.d.ts +3 -0
- package/dist/generated/themes/TableCell.css.js +9 -0
- package/dist/generated/themes/TableCell.css.js.map +1 -0
- package/dist/generated/themes/TableColumn.css.d.ts +3 -0
- package/dist/generated/themes/TableColumn.css.js +9 -0
- package/dist/generated/themes/TableColumn.css.js.map +1 -0
- package/dist/generated/themes/TableGroupRow.css.d.ts +3 -0
- package/dist/generated/themes/TableGroupRow.css.js +9 -0
- package/dist/generated/themes/TableGroupRow.css.js.map +1 -0
- package/dist/generated/themes/TableRow.css.d.ts +3 -0
- package/dist/generated/themes/TableRow.css.js +9 -0
- package/dist/generated/themes/TableRow.css.js.map +1 -0
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -0
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +3 -0
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +4 -0
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -0
- package/dist/types/TableColumnPopinDisplay.d.ts +17 -0
- package/dist/types/TableColumnPopinDisplay.js +19 -0
- package/dist/types/TableColumnPopinDisplay.js.map +1 -0
- package/dist/types/TableGrowingMode.d.ts +23 -0
- package/dist/types/TableGrowingMode.js +25 -0
- package/dist/types/TableGrowingMode.js.map +1 -0
- package/dist/types/TableMode.d.ts +22 -0
- package/dist/types/TableMode.js +24 -0
- package/dist/types/TableMode.js.map +1 -0
- package/dist/types/TableRowType.d.ts +17 -0
- package/dist/types/TableRowType.js +19 -0
- package/dist/types/TableRowType.js.map +1 -0
- package/dist/vscode.html-custom-data.json +136 -0
- package/dist/web-types.json +354 -0
- package/jsconfig.json +11 -0
- package/package-scripts.cjs +15 -0
- package/package.json +57 -0
- package/src/Table.hbs +121 -0
- package/src/TableCell.hbs +7 -0
- package/src/TableColumn.hbs +7 -0
- package/src/TableGroupRow.hbs +11 -0
- package/src/TableRow.hbs +85 -0
- package/src/i18n/messagebundle.properties +32 -0
- package/src/i18n/messagebundle_ar.properties +20 -0
- package/src/i18n/messagebundle_bg.properties +20 -0
- package/src/i18n/messagebundle_ca.properties +20 -0
- package/src/i18n/messagebundle_cnr.properties +20 -0
- package/src/i18n/messagebundle_cs.properties +20 -0
- package/src/i18n/messagebundle_cy.properties +20 -0
- package/src/i18n/messagebundle_da.properties +20 -0
- package/src/i18n/messagebundle_de.properties +20 -0
- package/src/i18n/messagebundle_el.properties +20 -0
- package/src/i18n/messagebundle_en.properties +20 -0
- package/src/i18n/messagebundle_en_GB.properties +20 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +311 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +20 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +311 -0
- package/src/i18n/messagebundle_es.properties +20 -0
- package/src/i18n/messagebundle_es_MX.properties +20 -0
- package/src/i18n/messagebundle_et.properties +20 -0
- package/src/i18n/messagebundle_fi.properties +20 -0
- package/src/i18n/messagebundle_fr.properties +20 -0
- package/src/i18n/messagebundle_fr_CA.properties +20 -0
- package/src/i18n/messagebundle_hi.properties +20 -0
- package/src/i18n/messagebundle_hr.properties +20 -0
- package/src/i18n/messagebundle_hu.properties +20 -0
- package/src/i18n/messagebundle_id.properties +20 -0
- package/src/i18n/messagebundle_in.properties +172 -0
- package/src/i18n/messagebundle_it.properties +20 -0
- package/src/i18n/messagebundle_iw.properties +20 -0
- package/src/i18n/messagebundle_ja.properties +20 -0
- package/src/i18n/messagebundle_kk.properties +20 -0
- package/src/i18n/messagebundle_ko.properties +20 -0
- package/src/i18n/messagebundle_lt.properties +20 -0
- package/src/i18n/messagebundle_lv.properties +20 -0
- package/src/i18n/messagebundle_mk.properties +20 -0
- package/src/i18n/messagebundle_ms.properties +20 -0
- package/src/i18n/messagebundle_nl.properties +20 -0
- package/src/i18n/messagebundle_no.properties +20 -0
- package/src/i18n/messagebundle_pl.properties +20 -0
- package/src/i18n/messagebundle_pt.properties +20 -0
- package/src/i18n/messagebundle_pt_PT.properties +20 -0
- package/src/i18n/messagebundle_ro.properties +20 -0
- package/src/i18n/messagebundle_ru.properties +20 -0
- package/src/i18n/messagebundle_sh.properties +20 -0
- package/src/i18n/messagebundle_sk.properties +20 -0
- package/src/i18n/messagebundle_sl.properties +20 -0
- package/src/i18n/messagebundle_sr.properties +20 -0
- package/src/i18n/messagebundle_sv.properties +20 -0
- package/src/i18n/messagebundle_th.properties +20 -0
- package/src/i18n/messagebundle_tr.properties +20 -0
- package/src/i18n/messagebundle_uk.properties +20 -0
- package/src/i18n/messagebundle_vi.properties +20 -0
- package/src/i18n/messagebundle_zh_CN.properties +20 -0
- package/src/i18n/messagebundle_zh_TW.properties +20 -0
- package/src/themes/GrowingButton.css +68 -0
- package/src/themes/Table.css +106 -0
- package/src/themes/TableCell.css +27 -0
- package/src/themes/TableColumn.css +25 -0
- package/src/themes/TableGroupRow.css +32 -0
- package/src/themes/TableRow.css +130 -0
- package/src/themes/base/GrowingButton-parameters.css +6 -0
- package/src/themes/base/Table-parameters.css +10 -0
- package/src/themes/base/TableColumn-parameters.css +3 -0
- package/src/themes/base/TableGroupRow-parameters.css +4 -0
- package/src/themes/base/TableRow-parameters.css +4 -0
- package/src/themes/base/sizes-parameters.css +22 -0
- package/src/themes/sap_fiori_3/parameters-bundle.css +6 -0
- package/src/themes/sap_fiori_3_dark/parameters-bundle.css +6 -0
- package/src/themes/sap_fiori_3_hcb/GrowingButton-parameters.css +8 -0
- package/src/themes/sap_fiori_3_hcb/Table-parameters.css +5 -0
- package/src/themes/sap_fiori_3_hcb/TableRow-parameters.css +5 -0
- package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +6 -0
- package/src/themes/sap_fiori_3_hcw/GrowingButton-parameters.css +8 -0
- package/src/themes/sap_fiori_3_hcw/Table-parameters.css +5 -0
- package/src/themes/sap_fiori_3_hcw/TableRow-parameters.css +5 -0
- package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +6 -0
- package/src/themes/sap_horizon/GrowingButton-parameters.css +6 -0
- package/src/themes/sap_horizon/Table-parameters.css +9 -0
- package/src/themes/sap_horizon/TableColumn-parameters.css +5 -0
- package/src/themes/sap_horizon/TableGroupRow-parameters.css +6 -0
- package/src/themes/sap_horizon/TableRow-parameters.css +5 -0
- package/src/themes/sap_horizon/parameters-bundle.css +8 -0
- package/src/themes/sap_horizon_dark/GrowingButton-parameters.css +6 -0
- package/src/themes/sap_horizon_dark/Table-parameters.css +9 -0
- package/src/themes/sap_horizon_dark/TableColumn-parameters.css +5 -0
- package/src/themes/sap_horizon_dark/TableGroupRow-parameters.css +6 -0
- package/src/themes/sap_horizon_dark/TableRow-parameters.css +5 -0
- package/src/themes/sap_horizon_dark/parameters-bundle.css +8 -0
- package/src/themes/sap_horizon_hcb/GrowingButton-parameters.css +8 -0
- package/src/themes/sap_horizon_hcb/Table-parameters.css +10 -0
- package/src/themes/sap_horizon_hcb/TableGroupRow-parameters.css +6 -0
- package/src/themes/sap_horizon_hcb/TableRow-parameters.css +5 -0
- package/src/themes/sap_horizon_hcb/parameters-bundle.css +6 -0
- package/src/themes/sap_horizon_hcw/GrowingButton-parameters.css +8 -0
- package/src/themes/sap_horizon_hcw/Table-parameters.css +10 -0
- package/src/themes/sap_horizon_hcw/TableGroupRow-parameters.css +6 -0
- package/src/themes/sap_horizon_hcw/TableRow-parameters.css +5 -0
- package/src/themes/sap_horizon_hcw/parameters-bundle.css +6 -0
- package/tsconfig.json +28 -0
package/.env.production
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
VITE_BUNDLE_PATH="../../dist/bundle.esm.js"
|
package/.env.testing
ADDED
package/.npsrc.json
ADDED
package/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
+
|
6
|
+
# [2.0.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.2...v2.0.0-rc.3) (2024-05-10)
|
7
|
+
|
8
|
+
|
9
|
+
### Code Refactoring
|
10
|
+
|
11
|
+
* **ui5-table:** move Table to `@ui5/webcomponents-compat` ([#8849](https://github.com/SAP/ui5-webcomponents/issues/8849)) ([779bcdc](https://github.com/SAP/ui5-webcomponents/commit/779bcdcaff6693252d0a8b69b886bf7b939c7887))
|
12
|
+
|
13
|
+
|
14
|
+
### BREAKING CHANGES
|
15
|
+
|
16
|
+
* **ui5-table:** If you previously used the Table from `@ui5/webcomponents`, you need to import it from @ui5/webcomponents-compat:
|
17
|
+
```ts
|
18
|
+
import "@ui5/webcomponents-compat/dist/Table.js"; // ui5-table
|
19
|
+
import "@ui5/webcomponents-compat/dist/TableColumn.js"; // ui5-table-column
|
20
|
+
import "@ui5/webcomponents-compat/dist/TableRow.js"; // ui5-table-row`
|
21
|
+
import "@ui5/webcomponents-compat/dist/TableGroupRow.js";` // ui5-table-group-row
|
22
|
+
import "@ui5/webcomponents-compat/dist/TableCell.js"; // ui5-table-cell
|
23
|
+
```
|
24
|
+
|
25
|
+
Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
|
package/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+

|
2
|
+
|
3
|
+
|
4
|
+
# UI5 Web Components - Compatibility
|
5
|
+
|
6
|
+
[](https://www.npmjs.com/package/@ui5/webcomponents)
|
7
|
+
|
8
|
+
Provides Table web component for compatibility (previously part of the "@ui5/webcomponents" package), while brand new Table web component is being developed and will replace it in the "@ui5/webcomponents" package.
|
9
|
+
|
10
|
+
|
11
|
+
**Note:** The package is available since 2.0 and will be available until the next major release (3.0) when it will be removed as the Table "@ui5/webcomponents" will finally replace it.
|
12
|
+
|
13
|
+
|
14
|
+
## Provided components
|
15
|
+
|
16
|
+
| Web Component | Tag name | Module import |
|
17
|
+
|--------------------------|-----------------------------|------------------------------------------------------------|
|
18
|
+
| Table | `ui5-table` | `import "@ui5/webcomponents-compat/dist/Table.js";` |
|
19
|
+
| Table Column | `ui5-table-column` | `import "@ui5/webcomponents-compat/dist/TableColumn.js";` |
|
20
|
+
| Table Row | `ui5-table-row` | `import "@ui5/webcomponents-compat/dist/TableRow.js";` |
|
21
|
+
| Table Group Row | `ui5-table-group-row` | `import "@ui5/webcomponents-compat/dist/TableGroupRow.js";` |
|
22
|
+
| Table Cell | `ui5-table-cell` | `import "@ui5/webcomponents-compat/dist/TableCell.js";` |
|
23
|
+
|
24
|
+
|
25
|
+
## Provided assets
|
26
|
+
|
27
|
+
|
28
|
+
| Assets | Module | Notes
|
29
|
+
|------------|-----------|-----------
|
30
|
+
| `i18n`, `themes` | `@ui5/webcomponents-compat/dist/Assets.js` | Theming parameters and translations for the components
|
31
|
+
|
32
|
+
|
33
|
+
## Resources
|
34
|
+
- [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
|
35
|
+
- [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/)
|
36
|
+
|
37
|
+
## Support
|
38
|
+
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
|
39
|
+
|
40
|
+
## Contribute
|
41
|
+
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
|
42
|
+
|
43
|
+
## License
|
44
|
+
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
|
45
|
+
This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
|
package/dist/Assets.d.ts
ADDED
package/dist/Assets.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Assets.js","sourceRoot":"","sources":["../src/Assets.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,mCAAmC,CAAC;AAE3C,4BAA4B;AAC5B,OAAO,oCAAoC,CAAC;AAC5C,OAAO,kCAAkC,CAAC","sourcesContent":["// main package assets (transitively base, theming and icons)\nimport \"@ui5/webcomponents/dist/Assets.js\";\n\n// own compat package assets\nimport \"./generated/json-imports/Themes.js\";\nimport \"./generated/json-imports/i18n.js\";\n"]}
|
package/dist/Table.d.ts
ADDED
@@ -0,0 +1,362 @@
|
|
1
|
+
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
2
|
+
import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
|
3
|
+
import ItemNavigation from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
|
4
|
+
import type { ITabbable } from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
|
5
|
+
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
6
|
+
import TableGrowingMode from "./types/TableGrowingMode.js";
|
7
|
+
import type { TableRowClickEventDetail, TableRowSelectionRequestedEventDetail, TableRowF7PressEventDetail, TableRowForwardBeforeEventDetail, TableRowForwardAfterEventDetail } from "./TableRow.js";
|
8
|
+
import type TableCell from "./TableCell.js";
|
9
|
+
import type TableColumn from "./TableColumn.js";
|
10
|
+
import type TableColumnPopinDisplay from "./types/TableColumnPopinDisplay.js";
|
11
|
+
import TableMode from "./types/TableMode.js";
|
12
|
+
/**
|
13
|
+
* Interface for components that may be slotted inside a `ui5-table` as rows
|
14
|
+
* @public
|
15
|
+
*/
|
16
|
+
interface ITableRow extends HTMLElement, ITabbable {
|
17
|
+
mode: `${TableMode}`;
|
18
|
+
selected: boolean;
|
19
|
+
forcedBusy: boolean;
|
20
|
+
forcedAriaPosition: string;
|
21
|
+
_columnsInfoString: string;
|
22
|
+
_columnsInfo: Array<TableColumnInfo>;
|
23
|
+
tabbableElements: Array<HTMLElement>;
|
24
|
+
}
|
25
|
+
type TableColumnInfo = {
|
26
|
+
cell?: TableCell;
|
27
|
+
index?: number;
|
28
|
+
text?: string | null;
|
29
|
+
visible?: boolean;
|
30
|
+
demandPopin?: boolean;
|
31
|
+
popinText?: string;
|
32
|
+
popinDisplay?: `${TableColumnPopinDisplay}`;
|
33
|
+
popinDisplayInline?: boolean;
|
34
|
+
classes?: string;
|
35
|
+
minWidth?: number;
|
36
|
+
};
|
37
|
+
type TableColumnHeaderInfo = ITabbable;
|
38
|
+
type TableSelectionChangeEventDetail = {
|
39
|
+
selectedRows: Array<ITableRow>;
|
40
|
+
previouslySelectedRows: Array<ITableRow>;
|
41
|
+
};
|
42
|
+
type TablePopinChangeEventDetail = {
|
43
|
+
poppedColumns: Array<TableColumnInfo>;
|
44
|
+
};
|
45
|
+
declare enum TableFocusTargetElement {
|
46
|
+
Row = "tableRow",
|
47
|
+
GroupRow = "tableGroupRow",
|
48
|
+
ColumnHeader = "columnHeader",
|
49
|
+
MoreButton = "moreButton"
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* @class
|
53
|
+
*
|
54
|
+
* ### Overview
|
55
|
+
*
|
56
|
+
* The `ui5-table` component provides a set of sophisticated and convenient functions for responsive table design.
|
57
|
+
* It provides a comprehensive set of features for displaying and dealing with vast amounts of data.
|
58
|
+
*
|
59
|
+
* To render the `Table` properly, the order of the `columns` should match with the
|
60
|
+
* order of the item `cells` in the `rows`.
|
61
|
+
*
|
62
|
+
* Desktop and tablet devices are supported.
|
63
|
+
* On tablets, special consideration should be given to the number of visible columns
|
64
|
+
* and rows due to the limited performance of some devices.
|
65
|
+
*
|
66
|
+
* ### Selection
|
67
|
+
* To benefit from the selection mechanism of `ui5-table` component, you can use the available selection modes:
|
68
|
+
* `SingleSelect` and `MultiSelect`.
|
69
|
+
*
|
70
|
+
* In additition to the used mode, you can also specify the `ui5-table-row` type choosing between
|
71
|
+
* `Active` or `Inactive`.
|
72
|
+
*
|
73
|
+
* In `SingleSelect` mode, you can select both an `Active` and `Inactive` row via mouse or
|
74
|
+
* by pressing the `Space` or `Enter` keys.
|
75
|
+
*
|
76
|
+
* In `MultiSelect` mode, you can select both an `Active` and `Inactive` row by pressing the
|
77
|
+
* `Space` key when a row is on focus or via mouse click over the selection checkbox of the row.
|
78
|
+
* In order to select all the available rows at once, you can use the selection checkbox presented in the table's header.
|
79
|
+
*
|
80
|
+
* **Note:** Currently, when a column is shown as a pop-in, the visual indication for selection is not presented over it.
|
81
|
+
*
|
82
|
+
* ### Keyboard Handling
|
83
|
+
*
|
84
|
+
* #### Fast Navigation
|
85
|
+
* This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].
|
86
|
+
* In order to use this functionality, you need to import the following module:
|
87
|
+
* `import "@ui5/webcomponents-base/dist/features/F6Navigation.js"`
|
88
|
+
*
|
89
|
+
* Furthermore, you can interact with `ui5-table` via the following keys.
|
90
|
+
*
|
91
|
+
* - [F7] - If focus is on an interactive control inside an item, moves focus to the corresponding item.
|
92
|
+
* - [Ctrl]+[A] - Selects all items, if MultiSelect mode is enabled.
|
93
|
+
* - [Home]/[End] - Focuses the first/last item.
|
94
|
+
* - [Page Up]/[Page Down] - Moves focus up/down by page size (20 items by default).
|
95
|
+
* - [Alt]+[Down]/[Up] - Switches focus between header, last focused item, and More button (if applies) in either direction.
|
96
|
+
* - [Shift]+[Down]/[Up] - Selects the next/previous item in a MultiSelect table, if the current item is selected (Range selection). Otherwise, deselects them (Range deselection).
|
97
|
+
* - [Shift]+[Home]/[End] - Range selection to the first/last item of the List.
|
98
|
+
* - [Ctrl]+[Home]/[End] - Same behavior as HOME & END.
|
99
|
+
*
|
100
|
+
* ### ES6 Module Import
|
101
|
+
*
|
102
|
+
* - `import "@ui5/webcomponents-compat/dist/Table.js";`
|
103
|
+
* - `import "@ui5/webcomponents-compat/dist/TableColumn.js";` (`ui5-table-column`)
|
104
|
+
* - `import "@ui5/webcomponents-compat/dist/TableRow.js";` (`ui5-table-row`)
|
105
|
+
* - `import "@ui5/webcomponents-compat/dist/TableGroupRow.js";` (`ui5-table-group-row`)
|
106
|
+
* - `import "@ui5/webcomponents-compat/dist/TableCell.js";` (`ui5-table-cell`)
|
107
|
+
* @constructor
|
108
|
+
* @extends UI5Element
|
109
|
+
* @public
|
110
|
+
*/
|
111
|
+
declare class Table extends UI5Element {
|
112
|
+
/**
|
113
|
+
* Defines the text that will be displayed when there is no data and `hideNoData` is not present.
|
114
|
+
* @default ""
|
115
|
+
* @public
|
116
|
+
*/
|
117
|
+
noDataText: string;
|
118
|
+
/**
|
119
|
+
* Defines the text that will be displayed inside the growing button at the bottom of the table,
|
120
|
+
* meant for loading more rows upon press.
|
121
|
+
*
|
122
|
+
* **Note:** If not specified a built-in text will be displayed.
|
123
|
+
*
|
124
|
+
* **Note:** This property takes effect if `growing` is set to `Button`.
|
125
|
+
* @default ""
|
126
|
+
* @since 2.0.0
|
127
|
+
* @public
|
128
|
+
*/
|
129
|
+
growingButtonText: string;
|
130
|
+
/**
|
131
|
+
* Defines the subtext that will be displayed under the `growingButtonText`.
|
132
|
+
*
|
133
|
+
* **Note:** This property takes effect if `growing` is set to `Button`.
|
134
|
+
* @default ""
|
135
|
+
* @since 2.0.0
|
136
|
+
* @public
|
137
|
+
*/
|
138
|
+
growingButtonSubtext: string;
|
139
|
+
/**
|
140
|
+
* Defines if the value of `noDataText` will be diplayed when there is no rows present in the table.
|
141
|
+
* @default false
|
142
|
+
* @public
|
143
|
+
* @since 2.0.0
|
144
|
+
*/
|
145
|
+
hideNoData: boolean;
|
146
|
+
/**
|
147
|
+
* Defines whether the table will have growing capability either by pressing a `More` button,
|
148
|
+
* or via user scroll. In both cases `load-more` event is fired.
|
149
|
+
*
|
150
|
+
* Available options:
|
151
|
+
*
|
152
|
+
* `Button` - Shows a `More` button at the bottom of the table, pressing of which triggers the `load-more` event.
|
153
|
+
*
|
154
|
+
* `Scroll` - The `load-more` event is triggered when the user scrolls to the bottom of the table;
|
155
|
+
*
|
156
|
+
* `None` (default) - The growing is off.
|
157
|
+
*
|
158
|
+
* **Restrictions:** `growing="Scroll"` is not supported for Internet Explorer,
|
159
|
+
* and the component will fallback to `growing="Button"`.
|
160
|
+
* @default "None"
|
161
|
+
* @since 2.0.0
|
162
|
+
* @public
|
163
|
+
*/
|
164
|
+
growing: `${TableGrowingMode}`;
|
165
|
+
/**
|
166
|
+
* Defines if the table is in busy state.
|
167
|
+
*
|
168
|
+
* In this state the component's opacity is reduced
|
169
|
+
* and busy indicator is displayed at the bottom of the table.
|
170
|
+
* @default false
|
171
|
+
* @since 2.0.0
|
172
|
+
* @public
|
173
|
+
*/
|
174
|
+
busy: boolean;
|
175
|
+
/**
|
176
|
+
* Defines the delay in milliseconds, after which the busy indicator will show up for this component.
|
177
|
+
* @default 1000
|
178
|
+
* @public
|
179
|
+
*/
|
180
|
+
busyDelay: number;
|
181
|
+
/**
|
182
|
+
* Determines whether the column headers remain fixed at the top of the page during
|
183
|
+
* vertical scrolling as long as the Web Component is in the viewport.
|
184
|
+
*
|
185
|
+
* **Restrictions:**
|
186
|
+
*
|
187
|
+
* - Browsers that do not support this feature:
|
188
|
+
*
|
189
|
+
* - Internet Explorer
|
190
|
+
* - Microsoft Edge lower than version 41 (EdgeHTML 16)
|
191
|
+
* - Mozilla Firefox lower than version 59
|
192
|
+
*
|
193
|
+
* - Scrolling behavior:
|
194
|
+
*
|
195
|
+
* - If the Web Component is placed in layout containers that have the `overflow: hidden`
|
196
|
+
* or `overflow: auto` style definition, this can
|
197
|
+
* prevent the sticky elements of the Web Component from becoming fixed at the top of the viewport.
|
198
|
+
* @default false
|
199
|
+
* @public
|
200
|
+
*/
|
201
|
+
stickyColumnHeader: boolean;
|
202
|
+
/**
|
203
|
+
* Defines the mode of the component.
|
204
|
+
* @default "None"
|
205
|
+
* @since 2.0.0
|
206
|
+
* @public
|
207
|
+
*/
|
208
|
+
mode: `${TableMode}`;
|
209
|
+
/**
|
210
|
+
* Defines the accessible ARIA name of the component.
|
211
|
+
* @default undefined
|
212
|
+
* @public
|
213
|
+
* @since 2.0.0
|
214
|
+
*/
|
215
|
+
accessibleName?: string;
|
216
|
+
/**
|
217
|
+
* Receives id(or many ids) of the elements that label the component.
|
218
|
+
* @default ""
|
219
|
+
* @public
|
220
|
+
* @since 2.0.0
|
221
|
+
*/
|
222
|
+
accessibleNameRef: string;
|
223
|
+
_hiddenColumns: Array<TableColumnInfo>;
|
224
|
+
_noDataDisplayed: boolean;
|
225
|
+
/**
|
226
|
+
* Defines the active state of the `More` button.
|
227
|
+
* @private
|
228
|
+
*/
|
229
|
+
_loadMoreActive: boolean;
|
230
|
+
/**
|
231
|
+
* Used to represent the table column header for the purpose of the item navigation as it does not work with DOM objects directly
|
232
|
+
* @private
|
233
|
+
*/
|
234
|
+
_columnHeader: TableColumnHeaderInfo;
|
235
|
+
/**
|
236
|
+
* Defines if the entire table is in view port.
|
237
|
+
* @private
|
238
|
+
*/
|
239
|
+
_inViewport: boolean;
|
240
|
+
/**
|
241
|
+
* Defines whether all rows are selected or not when table is in MultiSelect mode.
|
242
|
+
* @default false
|
243
|
+
* @since 2.0.0
|
244
|
+
* @private
|
245
|
+
*/
|
246
|
+
_allRowsSelected: boolean;
|
247
|
+
/**
|
248
|
+
* Defines the component rows.
|
249
|
+
*
|
250
|
+
* **Note:** Use `ui5-table-row` for the intended design.
|
251
|
+
* @public
|
252
|
+
*/
|
253
|
+
rows: Array<ITableRow>;
|
254
|
+
/**
|
255
|
+
* Defines the configuration for the columns of the component.
|
256
|
+
*
|
257
|
+
* **Note:** Use `ui5-table-column` for the intended design.
|
258
|
+
* @public
|
259
|
+
*/
|
260
|
+
columns: Array<TableColumn>;
|
261
|
+
static onDefine(): Promise<void>;
|
262
|
+
static i18nBundle: I18nBundle;
|
263
|
+
fnHandleF7: (e: CustomEvent) => void;
|
264
|
+
fnOnRowFocused: (e: CustomEvent) => void;
|
265
|
+
_handleResize: ResizeObserverCallback;
|
266
|
+
moreDataText?: string;
|
267
|
+
tableEndObserved: boolean;
|
268
|
+
visibleColumns: Array<TableColumn>;
|
269
|
+
visibleColumnsCount?: number;
|
270
|
+
lastFocusedElement: HTMLElement | null;
|
271
|
+
growingIntersectionObserver?: IntersectionObserver | null;
|
272
|
+
initialIntersection: boolean;
|
273
|
+
_forwardingFocus: boolean;
|
274
|
+
_prevNestedElementIndex: number;
|
275
|
+
_itemNavigation: ItemNavigation;
|
276
|
+
_prevFocusedRow?: ITableRow;
|
277
|
+
_afterElement?: HTMLElement;
|
278
|
+
_beforeElement?: HTMLElement;
|
279
|
+
constructor();
|
280
|
+
onBeforeRendering(): void;
|
281
|
+
onAfterRendering(): void;
|
282
|
+
onEnterDOM(): void;
|
283
|
+
onExitDOM(): void;
|
284
|
+
_onkeydown(e: KeyboardEvent): void;
|
285
|
+
_handleTab(e: KeyboardEvent): false | void;
|
286
|
+
_focusNextElement(): void;
|
287
|
+
_handleArrowNav(e: KeyboardEvent): void;
|
288
|
+
_handleHomeEndSelection(e: KeyboardEvent): void;
|
289
|
+
/**
|
290
|
+
* Handles Alt + Up/Down.
|
291
|
+
* Switches focus between column header, last focused item, and "More" button (if applicable).
|
292
|
+
* @private
|
293
|
+
*/
|
294
|
+
_handleArrowAlt(e: KeyboardEvent): void;
|
295
|
+
/**
|
296
|
+
* Determines the type of the currently focused element.
|
297
|
+
* @private
|
298
|
+
*/
|
299
|
+
getFocusedElementType(element: HTMLElement): TableFocusTargetElement | undefined;
|
300
|
+
/**
|
301
|
+
* Toggles focus between the table row's root and the last focused nested element.
|
302
|
+
* @private
|
303
|
+
*/
|
304
|
+
_handleF7(e: CustomEvent<TableRowF7PressEventDetail>): void;
|
305
|
+
_onfocusin(e: FocusEvent): void;
|
306
|
+
_onForwardBefore(e: CustomEvent<TableRowForwardBeforeEventDetail>): void;
|
307
|
+
_onForwardAfter(e: CustomEvent<TableRowForwardAfterEventDetail>): void;
|
308
|
+
_focusForwardElement(isAfter: boolean): void;
|
309
|
+
_isForwardElement(element: HTMLElement): boolean;
|
310
|
+
_getForwardElement(isAfter: boolean): HTMLElement | null;
|
311
|
+
_getAfterForwardElement(): HTMLElement;
|
312
|
+
_getBeforeForwardElement(): HTMLElement;
|
313
|
+
onRowFocused(e: CustomEvent): void;
|
314
|
+
_onColumnHeaderFocused(): void;
|
315
|
+
_onColumnHeaderClick(e: MouseEvent | KeyboardEvent): void;
|
316
|
+
_onColumnHeaderKeydown(e: KeyboardEvent): void;
|
317
|
+
_onLoadMoreKeydown(e: KeyboardEvent): void;
|
318
|
+
_onLoadMoreKeyup(e: KeyboardEvent): void;
|
319
|
+
_onLoadMoreClick(): void;
|
320
|
+
observeTableEnd(): void;
|
321
|
+
onInteresection(entries: Array<IntersectionObserverEntry>): void;
|
322
|
+
loadMore(): void;
|
323
|
+
_handleSingleSelect(e: CustomEvent<TableRowSelectionRequestedEventDetail>): void;
|
324
|
+
_handleMultiSelect(e: CustomEvent<TableRowSelectionRequestedEventDetail>): void;
|
325
|
+
_handleSelect(e: CustomEvent<TableRowSelectionRequestedEventDetail>): void;
|
326
|
+
_selectAll(): void;
|
327
|
+
getRowParent(child: HTMLElement): ITableRow | undefined;
|
328
|
+
get columnHeader(): HTMLElement | null;
|
329
|
+
get morеBtn(): HTMLElement | null;
|
330
|
+
handleResize(): void;
|
331
|
+
checkTableInViewport(): void;
|
332
|
+
popinContent(): void;
|
333
|
+
/**
|
334
|
+
* Gets settings to be propagated from columns to rows.
|
335
|
+
*/
|
336
|
+
getColumnPropagationSettings(): Array<TableColumnInfo>;
|
337
|
+
getIntersectionObserver(): IntersectionObserver;
|
338
|
+
get styles(): {
|
339
|
+
busy: {
|
340
|
+
position: string;
|
341
|
+
};
|
342
|
+
};
|
343
|
+
get growsWithButton(): boolean;
|
344
|
+
get growsOnScroll(): boolean;
|
345
|
+
get _growingButtonText(): string;
|
346
|
+
get ariaLabelText(): string;
|
347
|
+
get tableAriaLabelText(): string | undefined;
|
348
|
+
get ariaLabelSelectAllText(): string;
|
349
|
+
get loadMoreAriaLabelledBy(): string;
|
350
|
+
get tableEndDOM(): Element;
|
351
|
+
get busyIndPosition(): string;
|
352
|
+
get isMultiSelect(): boolean;
|
353
|
+
get isSingleSelect(): boolean;
|
354
|
+
get selectedRows(): Array<ITableRow>;
|
355
|
+
get currentItemIdx(): number;
|
356
|
+
get currentItem(): ITableRow;
|
357
|
+
get currentElement(): HTMLElement | undefined;
|
358
|
+
get columnHeaderTabbables(): Array<HTMLElement>;
|
359
|
+
get columnHeaderLastElement(): HTMLElement | null;
|
360
|
+
}
|
361
|
+
export default Table;
|
362
|
+
export type { ITableRow, TableColumnInfo, TableRowClickEventDetail, TableSelectionChangeEventDetail, TablePopinChangeEventDetail, };
|