@limetech/lime-elements 36.0.0-next.22 → 36.0.0-next.25
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/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +9 -1
- package/dist/cjs/limel-table.cjs.entry.js +15 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/code-editor/code-editor.js +9 -1
- package/dist/collection/components/table/layout.js +8 -0
- package/dist/collection/components/table/table.css +4 -1
- package/dist/collection/components/table/table.js +44 -14
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +9 -1
- package/dist/esm/limel-table.entry.js +16 -5
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-179dc0ac.entry.js +1 -0
- package/dist/lime-elements/{p-aaa11eb2.entry.js → p-f5df4d4f.entry.js} +1 -1
- package/dist/types/components/table/layout.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +15 -1
- package/dist/types/components.d.ts +9 -0
- package/package.json +1 -1
- package/dist/lime-elements/p-b95e80c9.entry.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Column, TableParams, ColumnSorter, ColumnAggregate } from './table.types';
|
|
3
|
+
import { Layout } from './layout';
|
|
3
4
|
/**
|
|
4
5
|
* @exampleComponent limel-example-table
|
|
5
6
|
* @exampleComponent limel-example-table-custom-components
|
|
@@ -10,7 +11,11 @@ import { Column, TableParams, ColumnSorter, ColumnAggregate } from './table.type
|
|
|
10
11
|
* @exampleComponent limel-example-table-activate-row
|
|
11
12
|
* @exampleComponent limel-example-table-selectable-rows
|
|
12
13
|
* @exampleComponent limel-example-table-default-sorted
|
|
13
|
-
* @exampleComponent limel-example-table-
|
|
14
|
+
* @exampleComponent limel-example-table-layout-default
|
|
15
|
+
* @exampleComponent limel-example-table-layout-stretch-last-column
|
|
16
|
+
* @exampleComponent limel-example-table-layout-stretch-columns
|
|
17
|
+
* @exampleComponent limel-example-table-layout-low-density
|
|
18
|
+
* @exampleComponent limel-example-table-interactive-rows
|
|
14
19
|
*/
|
|
15
20
|
export declare class Table {
|
|
16
21
|
/**
|
|
@@ -28,6 +33,15 @@ export declare class Table {
|
|
|
28
33
|
* is responsible to give the table new data when a `load` event occurs
|
|
29
34
|
*/
|
|
30
35
|
mode: 'local' | 'remote';
|
|
36
|
+
/**
|
|
37
|
+
* Defines the layout of the table, based on how width of the columns are calculated.
|
|
38
|
+
*
|
|
39
|
+
* - `default`: makes columns as wide as their contents.
|
|
40
|
+
* - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width.
|
|
41
|
+
* - `stretchColumns`: stretches all columns to fill the available width when possible.
|
|
42
|
+
* - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
|
|
43
|
+
*/
|
|
44
|
+
layout: Layout;
|
|
31
45
|
/**
|
|
32
46
|
* Number of rows per page
|
|
33
47
|
*/
|
|
@@ -19,6 +19,7 @@ import { OpenDirection as OpenDirection1 } from "./components/menu/menu.types";
|
|
|
19
19
|
import { FlowItem } from "./components/progress-flow/progress-flow.types";
|
|
20
20
|
import { Tab } from "./components/tab-bar/tab.types";
|
|
21
21
|
import { Column, ColumnAggregate, ColumnSorter, TableParams } from "./components/table/table.types";
|
|
22
|
+
import { Layout } from "./components/table/layout";
|
|
22
23
|
export namespace Components {
|
|
23
24
|
interface LimelBadge {
|
|
24
25
|
/**
|
|
@@ -1058,6 +1059,10 @@ export namespace Components {
|
|
|
1058
1059
|
* A message to display when the table has no data
|
|
1059
1060
|
*/
|
|
1060
1061
|
"emptyMessage": string;
|
|
1062
|
+
/**
|
|
1063
|
+
* Defines the layout of the table, based on how width of the columns are calculated. - `default`: makes columns as wide as their contents. - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width. - `stretchColumns`: stretches all columns to fill the available width when possible. - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
|
|
1064
|
+
*/
|
|
1065
|
+
"layout": Layout;
|
|
1061
1066
|
/**
|
|
1062
1067
|
* Set to `true` to trigger loading animation
|
|
1063
1068
|
*/
|
|
@@ -2665,6 +2670,10 @@ declare namespace LocalJSX {
|
|
|
2665
2670
|
* A message to display when the table has no data
|
|
2666
2671
|
*/
|
|
2667
2672
|
"emptyMessage"?: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* Defines the layout of the table, based on how width of the columns are calculated. - `default`: makes columns as wide as their contents. - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width. - `stretchColumns`: stretches all columns to fill the available width when possible. - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
|
|
2675
|
+
*/
|
|
2676
|
+
"layout"?: Layout;
|
|
2668
2677
|
/**
|
|
2669
2678
|
* Set to `true` to trigger loading animation
|
|
2670
2679
|
*/
|