@limetech/lime-elements 36.3.1-next.2 → 36.3.2-next.1
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/{dom-20826de0.js → dom-eb080f70.js} +0 -1
- package/dist/cjs/{format-c0047dfb.js → format-5b928cf3.js} +0 -1
- package/dist/cjs/limel-badge.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +0 -6
- package/dist/cjs/limel-circular-progress_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +1 -20
- package/dist/cjs/limel-icon.cjs.entry.js +0 -2
- package/dist/cjs/limel-input-field.cjs.entry.js +0 -1
- package/dist/cjs/limel-list_2.cjs.entry.js +1 -5
- package/dist/cjs/limel-menu-list.cjs.entry.js +0 -4
- package/dist/cjs/limel-picker.cjs.entry.js +1 -10
- package/dist/cjs/limel-popover_4.cjs.entry.js +0 -1
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-bar.cjs.entry.js +0 -1
- package/dist/cjs/limel-table.cjs.entry.js +0 -19
- package/dist/cjs/{multiple-8fab83eb.js → multiple-2af83b6d.js} +0 -1
- package/dist/collection/components/badge/badge.js +0 -1
- package/dist/collection/components/badge/format.js +0 -1
- package/dist/collection/components/button-group/button-group.js +0 -1
- package/dist/collection/components/callout/callout.js +0 -1
- package/dist/collection/components/chip-set/chip-set-input-helpers.js +0 -1
- package/dist/collection/components/chip-set/chip-set.js +0 -5
- package/dist/collection/components/circular-progress/circular-progress.js +0 -1
- package/dist/collection/components/code-editor/code-editor.js +1 -2
- package/dist/collection/components/color-picker/color-picker.js +0 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +0 -1
- package/dist/collection/components/dialog/dialog.js +0 -1
- package/dist/collection/components/file/file.js +2 -3
- package/dist/collection/components/flex-container/flex-container.js +0 -1
- package/dist/collection/components/form/adapters/base-adapter.js +0 -12
- package/dist/collection/components/form/fields/field-helpers.js +0 -3
- package/dist/collection/components/form/fields/schema-field.js +0 -3
- package/dist/collection/components/form/templates/common.js +0 -1
- package/dist/collection/components/grid/grid.js +0 -1
- package/dist/collection/components/header/header.js +0 -1
- package/dist/collection/components/helper-line/helper-line.js +0 -1
- package/dist/collection/components/icon/icon.js +0 -2
- package/dist/collection/components/info-tile/info-tile.js +0 -1
- package/dist/collection/components/input-field/input-field.js +0 -1
- package/dist/collection/components/list/list-renderer.js +0 -4
- package/dist/collection/components/menu-list/menu-list-renderer.js +0 -4
- package/dist/collection/components/picker/picker.js +0 -9
- package/dist/collection/components/popover/popover.js +0 -2
- package/dist/collection/components/portal/contains.js +0 -1
- package/dist/collection/components/portal/portal.js +10 -11
- package/dist/collection/components/shortcut/shortcut.js +0 -1
- package/dist/collection/components/snackbar/snackbar.js +31 -6
- package/dist/collection/components/split-button/split-button.js +0 -1
- package/dist/collection/components/tab-bar/tab-bar.js +1 -2
- package/dist/collection/components/tab-bar/tabs.js +0 -1
- package/dist/collection/components/tab-panel/tab-panel.js +0 -1
- package/dist/collection/components/table/columns.js +0 -9
- package/dist/collection/components/table/element-pool.js +0 -2
- package/dist/collection/components/table/selection.js +0 -4
- package/dist/collection/components/table/table-selection.js +0 -4
- package/dist/collection/components/tooltip/tooltip-content.js +0 -1
- package/dist/collection/components/tooltip/tooltip.js +0 -1
- package/dist/collection/global/icon-cache.js +0 -1
- package/dist/collection/icons/multiply.svg +593 -0
- package/dist/collection/util/dom.js +0 -1
- package/dist/collection/util/multiple.js +0 -1
- package/dist/esm/{dom-0f79cbe7.js → dom-2fe617e7.js} +0 -1
- package/dist/esm/{format-a0e2d949.js → format-c76733cb.js} +0 -1
- package/dist/esm/limel-badge.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +0 -6
- package/dist/esm/limel-circular-progress_2.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +1 -20
- package/dist/esm/limel-icon.entry.js +0 -2
- package/dist/esm/limel-input-field.entry.js +0 -1
- package/dist/esm/limel-list_2.entry.js +1 -5
- package/dist/esm/limel-menu-list.entry.js +0 -4
- package/dist/esm/limel-picker.entry.js +1 -10
- package/dist/esm/limel-popover_4.entry.js +0 -1
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-tab-bar.entry.js +0 -1
- package/dist/esm/limel-table.entry.js +0 -19
- package/dist/esm/{multiple-254f4b61.js → multiple-0bd62427.js} +0 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-4c9ce3d7.entry.js → p-5ab179b4.entry.js} +1 -1
- package/dist/lime-elements/{p-05d88196.entry.js → p-727fd4ea.entry.js} +2 -2
- package/dist/lime-elements/{p-a88f2922.entry.js → p-72cfda76.entry.js} +1 -1
- package/dist/lime-elements/{p-8178b348.entry.js → p-8a2d1761.entry.js} +1 -1
- package/dist/lime-elements/{p-2600928f.entry.js → p-d034bbcf.entry.js} +1 -1
- package/dist/lime-elements/{p-2fd478df.entry.js → p-ef93fd3e.entry.js} +1 -1
- package/dist/lime-elements/{p-58e9df30.entry.js → p-f4cbcdcf.entry.js} +1 -1
- package/dist/types/components/badge/badge.d.ts +0 -1
- package/dist/types/components/badge/format.d.ts +0 -1
- package/dist/types/components/button-group/button-group.d.ts +0 -1
- package/dist/types/components/callout/callout.d.ts +0 -1
- package/dist/types/components/chip-set/chip-set-input-helpers.d.ts +0 -1
- package/dist/types/components/chip-set/chip-set.d.ts +0 -5
- package/dist/types/components/circular-progress/circular-progress.d.ts +0 -1
- package/dist/types/components/code-editor/code-editor.d.ts +1 -2
- package/dist/types/components/color-picker/color-picker.d.ts +0 -1
- package/dist/types/components/date-picker/flatpickr-adapter/flatpickr-adapter.d.ts +0 -1
- package/dist/types/components/dialog/dialog.d.ts +0 -1
- package/dist/types/components/file/file.d.ts +2 -3
- package/dist/types/components/flex-container/flex-container.d.ts +0 -1
- package/dist/types/components/form/adapters/base-adapter.d.ts +0 -11
- package/dist/types/components/form/fields/field-helpers.d.ts +0 -2
- package/dist/types/components/form/fields/schema-field.d.ts +0 -2
- package/dist/types/components/form/templates/common.d.ts +0 -1
- package/dist/types/components/grid/grid.d.ts +0 -1
- package/dist/types/components/header/header.d.ts +0 -1
- package/dist/types/components/helper-line/helper-line.d.ts +0 -1
- package/dist/types/components/icon/icon.d.ts +0 -2
- package/dist/types/components/info-tile/info-tile.d.ts +0 -1
- package/dist/types/components/input-field/input-field.d.ts +0 -1
- package/dist/types/components/list/list-renderer.d.ts +0 -4
- package/dist/types/components/menu-list/menu-list-renderer.d.ts +0 -4
- package/dist/types/components/picker/picker.d.ts +0 -9
- package/dist/types/components/picker/searcher.types.d.ts +0 -1
- package/dist/types/components/popover/popover.d.ts +0 -2
- package/dist/types/components/portal/contains.d.ts +0 -1
- package/dist/types/components/portal/portal.d.ts +10 -11
- package/dist/types/components/shortcut/shortcut.d.ts +0 -1
- package/dist/types/components/snackbar/snackbar.d.ts +26 -2
- package/dist/types/components/split-button/split-button.d.ts +0 -1
- package/dist/types/components/tab-bar/tab-bar.d.ts +1 -2
- package/dist/types/components/tab-bar/tabs.d.ts +0 -1
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -1
- package/dist/types/components/table/columns.d.ts +0 -7
- package/dist/types/components/table/element-pool.d.ts +0 -2
- package/dist/types/components/table/selection.d.ts +0 -4
- package/dist/types/components/table/table-selection.d.ts +0 -4
- package/dist/types/components/table/table.types.d.ts +0 -3
- package/dist/types/components/tooltip/tooltip-content.d.ts +0 -1
- package/dist/types/components/tooltip/tooltip.d.ts +0 -1
- package/dist/types/components.d.ts +3 -3
- package/dist/types/global/icon-cache.d.ts +0 -1
- package/dist/types/util/dom.d.ts +0 -1
- package/dist/types/util/multiple.d.ts +0 -1
- package/package.json +8 -8
- /package/dist/lime-elements/{p-f08f504b.js → p-0eabb204.js} +0 -0
- /package/dist/lime-elements/{p-0534b23b.js → p-5f020b3c.js} +0 -0
- /package/dist/lime-elements/{p-af8d4fe7.js → p-acf307d9.js} +0 -0
|
@@ -7,7 +7,6 @@ export class ColumnDefinitionFactory {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Create Tabulator column definitions from a limel-table column configuration
|
|
10
|
-
*
|
|
11
10
|
* @param {Column} column config describing the column
|
|
12
11
|
* @returns {Tabulator.ColumnDefinition} Tabulator column
|
|
13
12
|
*/
|
|
@@ -34,7 +33,6 @@ export class ColumnDefinitionFactory {
|
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
36
35
|
* Formats the header of the column
|
|
37
|
-
*
|
|
38
36
|
* @param {Column} column the configuration for the column
|
|
39
37
|
* @returns {string | HTMLElement} custom component that renders a column header
|
|
40
38
|
*/
|
|
@@ -57,7 +55,6 @@ export const formatHeader = (column) => () => {
|
|
|
57
55
|
};
|
|
58
56
|
/**
|
|
59
57
|
* Create a formatter to be used to format values in a column
|
|
60
|
-
*
|
|
61
58
|
* @param {Column} column config describing the column
|
|
62
59
|
* @param {ElementPool} pool pool to get custom components from
|
|
63
60
|
* @returns {Tabulator.Formatter} Tabulator formatter
|
|
@@ -90,7 +87,6 @@ function columnElementExists(column) {
|
|
|
90
87
|
}
|
|
91
88
|
/**
|
|
92
89
|
* Format the value of a cell in the table
|
|
93
|
-
*
|
|
94
90
|
* @param {Tabulator.CellComponent} cell the cell being rendered in the table
|
|
95
91
|
* @param {Column} column configuration for the current column
|
|
96
92
|
* @returns {string} the formatted value
|
|
@@ -108,7 +104,6 @@ export function formatCell(cell, column) {
|
|
|
108
104
|
}
|
|
109
105
|
/**
|
|
110
106
|
* Create a custom component that renders a cell value
|
|
111
|
-
*
|
|
112
107
|
* @param {Tabulator.CellComponent} cell Tabulator cell
|
|
113
108
|
* @param {Column} column lime-elements column configuration
|
|
114
109
|
* @param {string} value the value of the cell being rendered
|
|
@@ -131,7 +126,6 @@ export function createCustomComponent(cell, column, value, pool) {
|
|
|
131
126
|
}
|
|
132
127
|
/**
|
|
133
128
|
* Set all properties for a custom element, including event listeners
|
|
134
|
-
*
|
|
135
129
|
* @param {HTMLElement} element the custom element
|
|
136
130
|
* @param {object} props object of properties and event listeners
|
|
137
131
|
*/
|
|
@@ -149,7 +143,6 @@ export function setElementProperties(element, props) {
|
|
|
149
143
|
*
|
|
150
144
|
* An event listener has to be a function and its property name have to start
|
|
151
145
|
* with "on" followed by the name of the event in camel case, e.g. "onEventName"
|
|
152
|
-
*
|
|
153
146
|
* @param {any} value the value to check
|
|
154
147
|
* @param {string} key name of the property
|
|
155
148
|
* @returns {boolean} true if the property of the object is an event listener
|
|
@@ -164,7 +157,6 @@ function isEventListener(value, key) {
|
|
|
164
157
|
* Get the name of an event from the name of an event listener
|
|
165
158
|
*
|
|
166
159
|
* E.g. "onMyEvent" will return "myEvent"
|
|
167
|
-
*
|
|
168
160
|
* @param {string} eventListener name of the event listener
|
|
169
161
|
* @returns {string} the name of the event
|
|
170
162
|
*/
|
|
@@ -195,7 +187,6 @@ function createResizeObserver(element, column) {
|
|
|
195
187
|
}
|
|
196
188
|
/**
|
|
197
189
|
* Create a column sorter from a tabulator sorter
|
|
198
|
-
*
|
|
199
190
|
* @param {Column[]} columns all available columns in the table
|
|
200
191
|
* @returns {Function} function that creates a sorter from a tabulator sorter
|
|
201
192
|
*/
|
|
@@ -9,7 +9,6 @@ export class ElementPool {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Get an element from the pool
|
|
12
|
-
*
|
|
13
12
|
* @param {string} name tag name of the element
|
|
14
13
|
* @returns {HTMLElement} the element
|
|
15
14
|
*/
|
|
@@ -24,7 +23,6 @@ export class ElementPool {
|
|
|
24
23
|
}
|
|
25
24
|
/**
|
|
26
25
|
* Release an element from the pool so that it can be reused
|
|
27
|
-
*
|
|
28
26
|
* @param {HTMLElement} element the element to release from the pool
|
|
29
27
|
*/
|
|
30
28
|
release(element) {
|
|
@@ -10,7 +10,6 @@ export class Selection {
|
|
|
10
10
|
* The provided function `getDataByIndex` is used to provide data for the
|
|
11
11
|
* selected items when selection is toggled by using the item index,
|
|
12
12
|
* which can be the row position in a table.
|
|
13
|
-
*
|
|
14
13
|
* @param {Function} getDataByIndex A function that returns the data at the given index
|
|
15
14
|
*/
|
|
16
15
|
constructor(getDataByIndex) {
|
|
@@ -69,7 +68,6 @@ export class Selection {
|
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
71
70
|
* Checks whether the given item exist in the selection
|
|
72
|
-
*
|
|
73
71
|
* @param {any} data The data to look up
|
|
74
72
|
* @returns {boolean} `true` if the given data exist in the selection, otherwise `false`
|
|
75
73
|
*/
|
|
@@ -78,7 +76,6 @@ export class Selection {
|
|
|
78
76
|
}
|
|
79
77
|
/**
|
|
80
78
|
* Toggles the item at the given index in the selection
|
|
81
|
-
*
|
|
82
79
|
* @param {number} index The index of the item to toggle
|
|
83
80
|
* @returns {SelectionChangeSet} The changes made to the selection
|
|
84
81
|
*/
|
|
@@ -91,7 +88,6 @@ export class Selection {
|
|
|
91
88
|
* their current state in the selection.
|
|
92
89
|
* Initially, when no last toggled index exist, this function behaves like
|
|
93
90
|
* `toggleSelection`.
|
|
94
|
-
*
|
|
95
91
|
* @param {number} index The index of the item to toggle
|
|
96
92
|
* @returns {SelectionChangeSet} The changes made to the selection
|
|
97
93
|
*/
|
|
@@ -8,7 +8,6 @@ const LIMEL_CHECKBOX = 'limel-checkbox';
|
|
|
8
8
|
export class TableSelection {
|
|
9
9
|
/**
|
|
10
10
|
* Creates an instance of the TableSelection class
|
|
11
|
-
*
|
|
12
11
|
* @param {Function} getTable Function that returns the Tabulator instance
|
|
13
12
|
* @param {ElementPool} pool The element pool used to cache the checkbox components
|
|
14
13
|
* @param {EventEmitter<object[]>} selectEvent The event emitter to use when checkboxes are toggled
|
|
@@ -21,7 +20,6 @@ export class TableSelection {
|
|
|
21
20
|
* Tabulator cell click handler that updates the selection for the clicked
|
|
22
21
|
* row and toggles the selection from the last clicked row if the shift key
|
|
23
22
|
* is pressed down.
|
|
24
|
-
*
|
|
25
23
|
* @param {PointerEvent} ev The pointer event
|
|
26
24
|
* @param {Tabulator.CellComponent} cell The clicked cell component
|
|
27
25
|
*/
|
|
@@ -76,7 +74,6 @@ export class TableSelection {
|
|
|
76
74
|
}
|
|
77
75
|
/**
|
|
78
76
|
* Sets the selected items
|
|
79
|
-
*
|
|
80
77
|
* @param {any[]} data The selected items
|
|
81
78
|
*/
|
|
82
79
|
setSelection(data) {
|
|
@@ -89,7 +86,6 @@ export class TableSelection {
|
|
|
89
86
|
}
|
|
90
87
|
/**
|
|
91
88
|
* Prepends a checkbox column used for row selection to the given column definitions
|
|
92
|
-
*
|
|
93
89
|
* @param {Tabulator.ColumnDefinition[]} columnDefinitions The column definition for the table
|
|
94
90
|
* @returns {Tabulator.ColumnDefinition[]} The column definitions with the checkbox column prepended to it
|
|
95
91
|
*/
|
|
@@ -39,7 +39,6 @@ const DEFAULT_MAX_LENGTH = 50;
|
|
|
39
39
|
* use that, not a tooltip.
|
|
40
40
|
* - Make sure to use the tooltip on an element that users naturally and
|
|
41
41
|
* effortlessly recognize can be hovered.
|
|
42
|
-
*
|
|
43
42
|
* @exampleComponent limel-example-tooltip
|
|
44
43
|
* @exampleComponent limel-example-tooltip-max-character
|
|
45
44
|
* @exampleComponent limel-example-tooltip-composite
|