@limetech/lime-elements 36.3.1-next.2 → 36.3.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 +1 -1
- 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 +26 -3
- 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/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 +1 -1
- 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-8178b348.entry.js → p-8a2d1761.entry.js} +1 -1
- package/dist/lime-elements/{p-a88f2922.entry.js → p-8d3a9e2c.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 +23 -1
- 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 +1 -1
- 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 +4 -4
- /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
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Check if an element is a descendant of another, even if it is located within a shadow root
|
|
3
|
-
*
|
|
4
3
|
* @param {Node} element the element to check
|
|
5
4
|
* @param {Node} parent the parent element
|
|
6
5
|
* @returns {boolean} true if the element is a descendant of the parent element, false otherwise
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Check if an element is a descendant of another, even if it is located within a shadow root
|
|
3
|
-
*
|
|
4
3
|
* @param {Node} element the element to check
|
|
5
4
|
* @param {Node} parent the parent element
|
|
6
5
|
* @returns {boolean} true if the element is a descendant of the parent element, false otherwise
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-cdfd351d.js';
|
|
2
|
-
import { a as abbreviate } from './format-
|
|
2
|
+
import { a as abbreviate } from './format-c76733cb.js';
|
|
3
3
|
import './_commonjsHelpers-5ec8f9b7.js';
|
|
4
4
|
|
|
5
5
|
const badgeCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host([hidden]){display:none}:host(limel-badge){--limel-min-badge-size:1rem;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;min-height:var(--limel-min-badge-size);min-width:var(--limel-min-badge-size)}span{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);cursor:default;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-size:0.6875rem;line-height:var(--limel-min-badge-size);color:var(--badge-text-color, rgb(var(--contrast-1200)));border-radius:var(--limel-min-badge-size);max-height:var(--limel-min-badge-size);min-width:0.5rem;min-height:0.5rem;background-color:var(--badge-background-color, rgb(var(--contrast-500)))}span:not(:empty){min-width:var(--limel-min-badge-size);max-width:2.75rem;padding:0 0.28125rem}:host(.has-large-label) span{cursor:help}";
|
|
@@ -1629,7 +1629,6 @@ var MDCChipSet = /** @class */ (function (_super) {
|
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Key handler for the input field.
|
|
1631
1631
|
* Lets the user select, activate, and remove chips with the keyboard.
|
|
1632
|
-
*
|
|
1633
1632
|
* @param {KeyboardEvent} event event
|
|
1634
1633
|
* @returns {void}
|
|
1635
1634
|
*/
|
|
@@ -1801,7 +1800,6 @@ const ChipSet = class {
|
|
|
1801
1800
|
}
|
|
1802
1801
|
/**
|
|
1803
1802
|
* Used to find out whether the chip-set is in edit mode.
|
|
1804
|
-
*
|
|
1805
1803
|
* @returns {Promise<boolean>} `true` if the chip-set is in edit mode, `false` otherwise.
|
|
1806
1804
|
*/
|
|
1807
1805
|
async getEditMode() {
|
|
@@ -1809,7 +1807,6 @@ const ChipSet = class {
|
|
|
1809
1807
|
}
|
|
1810
1808
|
/**
|
|
1811
1809
|
* Used to set focus to the chip-set input field.
|
|
1812
|
-
*
|
|
1813
1810
|
* @param {boolean} emptyInput if `true`, any text in the input is discarded
|
|
1814
1811
|
* @returns {Promise<void>} does not return anything, but methods have to be async
|
|
1815
1812
|
*/
|
|
@@ -1827,7 +1824,6 @@ const ChipSet = class {
|
|
|
1827
1824
|
/**
|
|
1828
1825
|
* Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the
|
|
1829
1826
|
* consumer control when the input is emptied.
|
|
1830
|
-
*
|
|
1831
1827
|
* @returns {Promise<void>} does not return anything, but methods have to be async
|
|
1832
1828
|
*/
|
|
1833
1829
|
async emptyInput() {
|
|
@@ -1956,7 +1952,6 @@ const ChipSet = class {
|
|
|
1956
1952
|
}
|
|
1957
1953
|
/**
|
|
1958
1954
|
* Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
|
|
1959
|
-
*
|
|
1960
1955
|
* @returns {void}
|
|
1961
1956
|
*/
|
|
1962
1957
|
handleTextFieldFocus() {
|
|
@@ -1972,7 +1967,6 @@ const ChipSet = class {
|
|
|
1972
1967
|
/**
|
|
1973
1968
|
* Exit edit mode when the input element loses focus. This makes sure the input element does not take up any
|
|
1974
1969
|
* additional space when the user it not typing anything
|
|
1975
|
-
*
|
|
1976
1970
|
* @returns {void}
|
|
1977
1971
|
*/
|
|
1978
1972
|
handleInputBlur() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-cdfd351d.js';
|
|
2
|
-
import { a as abbreviate } from './format-
|
|
2
|
+
import { a as abbreviate } from './format-c76733cb.js';
|
|
3
3
|
import { M as MDCFoundation, a as MDCComponent } from './component-410aad5a.js';
|
|
4
4
|
import { g as getCorrectPropertyName } from './util-f1bde91c.js';
|
|
5
5
|
import './_commonjsHelpers-5ec8f9b7.js';
|
|
@@ -10,7 +10,7 @@ import { b as baseGetTag$1 } from './isObject-c74e273c.js';
|
|
|
10
10
|
import { i as isObjectLike$1 } from './isObjectLike-38996507.js';
|
|
11
11
|
import { a as arrayIncludes$1, b as arrayIncludesWith$1, c as baseRest$1, d as baseFlatten$1, i as isArrayLikeObject$1 } from './_arrayIncludesWith-969bccda.js';
|
|
12
12
|
import { m as moment } from './moment-faa8a4a8.js';
|
|
13
|
-
import { i as isMultiple } from './multiple-
|
|
13
|
+
import { i as isMultiple } from './multiple-0bd62427.js';
|
|
14
14
|
import { c as createRandomString } from './random-string-2246b81e.js';
|
|
15
15
|
import './eq-c1c7f528.js';
|
|
16
16
|
import './_getNative-93d6bfe9.js';
|
|
@@ -23724,7 +23724,6 @@ function renderDescription(description) {
|
|
|
23724
23724
|
* If an object has the key 'title' it will have priority, followed by the key 'name'.
|
|
23725
23725
|
* If 'title' nor 'name' is found, a required item will be considered.
|
|
23726
23726
|
* Otherwise the first occurrence of a nonempty string is chosen.
|
|
23727
|
-
*
|
|
23728
23727
|
* @param {*} data the data to find the title for
|
|
23729
23728
|
* @param {*} fieldSchema schema for the item
|
|
23730
23729
|
* @param {*} formSchema schema for the form
|
|
@@ -24200,7 +24199,6 @@ function isCollapsed(schema) {
|
|
|
24200
24199
|
* the real definition of a primitive in javascript. In this context, primitive
|
|
24201
24200
|
* really means "can be properly rendered to the dom by react". It just so
|
|
24202
24201
|
* happens that react can render most primitives to the dom correctly.
|
|
24203
|
-
*
|
|
24204
24202
|
* @see https://developer.mozilla.org/en-US/docs/Glossary/Primitive
|
|
24205
24203
|
* @param {any} value the value to check
|
|
24206
24204
|
* @returns {boolean} Whether or not the value is primitive
|
|
@@ -24236,7 +24234,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24236
24234
|
/**
|
|
24237
24235
|
* Given a key a value set the value of property named `key` to
|
|
24238
24236
|
* the value of `value`
|
|
24239
|
-
*
|
|
24240
24237
|
* @param {string} key The name of the property
|
|
24241
24238
|
* @param {any} value The value of the property
|
|
24242
24239
|
* @returns {void}
|
|
@@ -24250,7 +24247,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24250
24247
|
*
|
|
24251
24248
|
* Events must be bound using this function otherwise events will bubble up too far
|
|
24252
24249
|
* since react events are different that native dom events
|
|
24253
|
-
*
|
|
24254
24250
|
* @param {string} eventName the name of the event to get the handler for
|
|
24255
24251
|
* @returns {any} the handler to bind to the component for the event name
|
|
24256
24252
|
*/
|
|
@@ -24263,7 +24259,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24263
24259
|
}
|
|
24264
24260
|
/**
|
|
24265
24261
|
* Set events on the web component
|
|
24266
|
-
*
|
|
24267
24262
|
* @param {object} events Event names to handlers
|
|
24268
24263
|
* @returns {void}
|
|
24269
24264
|
*/
|
|
@@ -24275,7 +24270,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24275
24270
|
}
|
|
24276
24271
|
/**
|
|
24277
24272
|
* Remove events on the web component
|
|
24278
|
-
*
|
|
24279
24273
|
* @param {object} events Event names to handlers
|
|
24280
24274
|
* @returns {void}
|
|
24281
24275
|
*/
|
|
@@ -24287,7 +24281,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24287
24281
|
}
|
|
24288
24282
|
/**
|
|
24289
24283
|
* Get the events to remove from the component
|
|
24290
|
-
*
|
|
24291
24284
|
* @param {object} prevEvents previous events
|
|
24292
24285
|
* @param {object} nextEvents new events
|
|
24293
24286
|
* @returns {object} the events to remove
|
|
@@ -24297,7 +24290,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24297
24290
|
}
|
|
24298
24291
|
/**
|
|
24299
24292
|
* Get the events to add to the component
|
|
24300
|
-
*
|
|
24301
24293
|
* @param {object} prevEvents previous events
|
|
24302
24294
|
* @param {object} nextEvents new events
|
|
24303
24295
|
* @returns {object} the events to add
|
|
@@ -24309,7 +24301,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24309
24301
|
* Detect if event handlers have changed. If they
|
|
24310
24302
|
* have changed, store them in the state, and remove and
|
|
24311
24303
|
* re-add the changed event handlers
|
|
24312
|
-
*
|
|
24313
24304
|
* @returns {void}
|
|
24314
24305
|
*/
|
|
24315
24306
|
updateEvents() {
|
|
@@ -24334,7 +24325,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24334
24325
|
}
|
|
24335
24326
|
/**
|
|
24336
24327
|
* Get non primitive props. i.e. object, function, array, etc
|
|
24337
|
-
*
|
|
24338
24328
|
* @param {object} elementProps the props to pass the webcomponet
|
|
24339
24329
|
* @returns {object} non primitive props
|
|
24340
24330
|
*/
|
|
@@ -24343,7 +24333,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24343
24333
|
}
|
|
24344
24334
|
/**
|
|
24345
24335
|
* Get primitive props. i.e. integer, boolean, etc
|
|
24346
|
-
*
|
|
24347
24336
|
* @param {object} elementProps the props to pass the webcomponet
|
|
24348
24337
|
* @returns {object} primitive props
|
|
24349
24338
|
*/
|
|
@@ -24354,7 +24343,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24354
24343
|
* Given the previous renders props and the next renders props,
|
|
24355
24344
|
* check if any of the property values have changed and return an
|
|
24356
24345
|
* object with only those values
|
|
24357
|
-
*
|
|
24358
24346
|
* @param {object} prevNonPrimitiveProps the previous renders non primitive props
|
|
24359
24347
|
* @param {object} nextNonPrimitiveProps the current renders non primitive props
|
|
24360
24348
|
* @returns {object} the changed primitive props
|
|
@@ -24369,7 +24357,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24369
24357
|
* instead of passing them as props the the React.createElement
|
|
24370
24358
|
* function because non primitive props are not passed properly to the web
|
|
24371
24359
|
* component via React.createElement
|
|
24372
|
-
*
|
|
24373
24360
|
* @param {object} elementProps element props to set
|
|
24374
24361
|
* @returns {void}
|
|
24375
24362
|
*/
|
|
@@ -28906,7 +28893,6 @@ SchemaField$1.defaultProps = {
|
|
|
28906
28893
|
/**
|
|
28907
28894
|
* Given two objects, get a list of keys for each value that is different between
|
|
28908
28895
|
* the two objects. Compares using deep comparison
|
|
28909
|
-
*
|
|
28910
28896
|
* @param {object} a first object
|
|
28911
28897
|
* @param {object} b second object
|
|
28912
28898
|
* @returns {any[]} the array of keys
|
|
@@ -28922,7 +28908,6 @@ const getDifferentKeys = (a = {}, b = {}) => {
|
|
|
28922
28908
|
* has any other fields that are dependent on it, and if so reset those dependent fields
|
|
28923
28909
|
* (by deleting them from the data so that their defaults are populated on the next rerender).
|
|
28924
28910
|
* Call onChange with the updated data
|
|
28925
|
-
*
|
|
28926
28911
|
* @param {any} oldData The previous data before a data change event
|
|
28927
28912
|
* @param {any} newData The form data from a change event
|
|
28928
28913
|
* @param {object} schema The schema associated with the data
|
|
@@ -28955,7 +28940,6 @@ const resetDependentFields = (oldData, newData, schema, rootSchema) => {
|
|
|
28955
28940
|
};
|
|
28956
28941
|
/**
|
|
28957
28942
|
* Check if the schema is of type object and have no declared properties
|
|
28958
|
-
*
|
|
28959
28943
|
* @param {any} schema the schema
|
|
28960
28944
|
* @returns {boolean} true if the schema is for a custom object
|
|
28961
28945
|
*/
|
|
@@ -28992,7 +28976,6 @@ function isAdditionalProperty(schema) {
|
|
|
28992
28976
|
* from the form data I would delete all the text from the name input field. Web components would emit this empty value
|
|
28993
28977
|
* as '' or null. If the web component tries to emit `undefined`, null would be emitted instead because CustomEvent has
|
|
28994
28978
|
* a default `detail` value of null
|
|
28995
|
-
*
|
|
28996
28979
|
* @param {any} value the value associated with the schema
|
|
28997
28980
|
* @param {any} schema the schema for the value
|
|
28998
28981
|
* @returns {boolean} whether or not null should be changed to undefined
|
|
@@ -29021,7 +29004,6 @@ const getCustomComponent = (schema) => {
|
|
|
29021
29004
|
};
|
|
29022
29005
|
/**
|
|
29023
29006
|
* Create properties from the factory that is set on `limel-form`
|
|
29024
|
-
*
|
|
29025
29007
|
* @param {*} formContext the form context
|
|
29026
29008
|
* @param {*} schema the schema for the current field
|
|
29027
29009
|
* @returns {object} the properties created by the factory
|
|
@@ -29147,7 +29129,6 @@ class SchemaField extends react.Component {
|
|
|
29147
29129
|
}
|
|
29148
29130
|
/**
|
|
29149
29131
|
* Gets the path to the current property within the schema
|
|
29150
|
-
*
|
|
29151
29132
|
* @param {string} schemaId the id of the schema
|
|
29152
29133
|
* @returns {string[]} an array with the schema path for the current property
|
|
29153
29134
|
* @example
|
|
@@ -14,7 +14,6 @@ class IconCache {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Get icon data from the cache
|
|
17
|
-
*
|
|
18
17
|
* @param {string} name name of the icon
|
|
19
18
|
* @param {string} path path on the server where the assets are located
|
|
20
19
|
* @returns {string} svg markup
|
|
@@ -103,7 +102,6 @@ const Icon = class {
|
|
|
103
102
|
}
|
|
104
103
|
/**
|
|
105
104
|
* Load the SVG data for the icon from the icon cache
|
|
106
|
-
*
|
|
107
105
|
* @param {string} name name of the icon
|
|
108
106
|
* @returns {string} the icon SVG data
|
|
109
107
|
*/
|
|
@@ -479,7 +479,6 @@ const InputField = class {
|
|
|
479
479
|
/**
|
|
480
480
|
* Key handler for the input field
|
|
481
481
|
* Will change focus to the first/last item in the dropdown list to enable selection with the keyboard
|
|
482
|
-
*
|
|
483
482
|
* @param {KeyboardEvent} event event
|
|
484
483
|
* @returns {void}
|
|
485
484
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-cdfd351d.js';
|
|
2
2
|
import { d as MDCList, s as strings, b as MDCMenuSurface, C as Corner } from './component-fffa3419.js';
|
|
3
3
|
import { C as CheckboxTemplate } from './checkbox.template-4ce8d92f.js';
|
|
4
|
-
import { i as isDescendant } from './dom-
|
|
4
|
+
import { i as isDescendant } from './dom-2fe617e7.js';
|
|
5
5
|
import { E as ESCAPE, c as ESCAPE_KEY_CODE, T as TAB, b as TAB_KEY_CODE } from './keycodes-44c01beb.js';
|
|
6
6
|
import './component-410aad5a.js';
|
|
7
7
|
import './ponyfill-30263d5e.js';
|
|
@@ -32,7 +32,6 @@ class ListRenderer {
|
|
|
32
32
|
* and return the index at which that ListItem is located in `items`.
|
|
33
33
|
* Returns `undefined` if no item should have the attribute set.
|
|
34
34
|
* See https://github.com/material-components/material-components-web/tree/e66a43a75fef4f9179e24856649518e15e279a04/packages/mdc-list#accessibility
|
|
35
|
-
*
|
|
36
35
|
* @param {Array<ListItem | ListSeparator>} items the items of the list, including any `ListSeparator`:s
|
|
37
36
|
* @returns {number} the index as per the description
|
|
38
37
|
*/
|
|
@@ -57,7 +56,6 @@ class ListRenderer {
|
|
|
57
56
|
};
|
|
58
57
|
/**
|
|
59
58
|
* Render a single list item
|
|
60
|
-
*
|
|
61
59
|
* @param {ListItem | ListSeparator} item the item to render
|
|
62
60
|
* @param {number} index the index the item had in the `items` array
|
|
63
61
|
* @returns {HTMLElement} the list item
|
|
@@ -92,7 +90,6 @@ class ListRenderer {
|
|
|
92
90
|
};
|
|
93
91
|
/**
|
|
94
92
|
* Render the text of the list item
|
|
95
|
-
*
|
|
96
93
|
* @param {ListItem} item the list item
|
|
97
94
|
* @returns {HTMLElement | string} the text for the list item
|
|
98
95
|
*/
|
|
@@ -110,7 +107,6 @@ class ListRenderer {
|
|
|
110
107
|
};
|
|
111
108
|
/**
|
|
112
109
|
* Render an icon for a list item
|
|
113
|
-
*
|
|
114
110
|
* @param {ListRendererConfig} config the config object, passed on from the `renderListItem` function
|
|
115
111
|
* @param {ListItem} item the list item
|
|
116
112
|
* @returns {HTMLElement} the icon element
|
|
@@ -624,7 +624,6 @@ class MenuListRenderer {
|
|
|
624
624
|
* and return the index at which that MenuItem is located in `items`.
|
|
625
625
|
* Returns `undefined` if no item should have the attribute set.
|
|
626
626
|
* See https://github.com/material-components/material-components-web/tree/e66a43a75fef4f9179e24856649518e15e279a04/packages/mdc-list#accessibility
|
|
627
|
-
*
|
|
628
627
|
* @param {Array<MenuItem | ListSeparator>} items the items of the list, including any `ListSeparator`:s
|
|
629
628
|
* @returns {number} the index as per the description
|
|
630
629
|
*/
|
|
@@ -649,7 +648,6 @@ class MenuListRenderer {
|
|
|
649
648
|
};
|
|
650
649
|
/**
|
|
651
650
|
* Render a single list item
|
|
652
|
-
*
|
|
653
651
|
* @param {MenuItem | ListSeparator} item the item to render
|
|
654
652
|
* @param {number} index the index the item had in the `items` array
|
|
655
653
|
* @returns {HTMLElement} the list item
|
|
@@ -675,7 +673,6 @@ class MenuListRenderer {
|
|
|
675
673
|
};
|
|
676
674
|
/**
|
|
677
675
|
* Render the text of the list item
|
|
678
|
-
*
|
|
679
676
|
* @param {MenuItem} item the list item
|
|
680
677
|
* @returns {HTMLElement | string} the text for the list item
|
|
681
678
|
*/
|
|
@@ -703,7 +700,6 @@ class MenuListRenderer {
|
|
|
703
700
|
};
|
|
704
701
|
/**
|
|
705
702
|
* Render an icon for a list item
|
|
706
|
-
*
|
|
707
703
|
* @param {MenuListRendererConfig} config the config object, passed on from the `renderMenuItem` function
|
|
708
704
|
* @param {MenuItem} item the list item
|
|
709
705
|
* @returns {HTMLElement} the icon element
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cdfd351d.js';
|
|
2
|
-
import { i as isDescendant } from './dom-
|
|
2
|
+
import { i as isDescendant } from './dom-2fe617e7.js';
|
|
3
3
|
import { T as TAB, E as ESCAPE, a as ENTER, b as TAB_KEY_CODE, c as ESCAPE_KEY_CODE, d as ENTER_KEY_CODE, A as ARROW_UP, e as ARROW_UP_KEY_CODE, f as ARROW_DOWN, g as ARROW_DOWN_KEY_CODE } from './keycodes-44c01beb.js';
|
|
4
4
|
import { c as createRandomString } from './random-string-2246b81e.js';
|
|
5
5
|
|
|
@@ -334,7 +334,6 @@ const Picker = class {
|
|
|
334
334
|
/**
|
|
335
335
|
* Renders the dropdown with the items to pick from, or a spinner if the picker
|
|
336
336
|
* is waiting for items to be received
|
|
337
|
-
*
|
|
338
337
|
* @returns {HTMLElement} picker dropdown
|
|
339
338
|
*/
|
|
340
339
|
renderDropdown() {
|
|
@@ -393,7 +392,6 @@ const Picker = class {
|
|
|
393
392
|
/**
|
|
394
393
|
* Returns true if the picker is "full"
|
|
395
394
|
* The picker is considered to be full if it has a value and only one is allowed
|
|
396
|
-
*
|
|
397
395
|
* @returns {boolean} true if the picker is full
|
|
398
396
|
*/
|
|
399
397
|
isFull() {
|
|
@@ -446,7 +444,6 @@ const Picker = class {
|
|
|
446
444
|
}
|
|
447
445
|
/**
|
|
448
446
|
* Check if a descendant still has focus. If not, reset text value and search result.
|
|
449
|
-
*
|
|
450
447
|
* @returns {void}
|
|
451
448
|
*/
|
|
452
449
|
handleStopEditAndBlur() {
|
|
@@ -462,7 +459,6 @@ const Picker = class {
|
|
|
462
459
|
}
|
|
463
460
|
/**
|
|
464
461
|
* Input handler for the input field
|
|
465
|
-
*
|
|
466
462
|
* @param {InputEvent} event event
|
|
467
463
|
* @returns {void}
|
|
468
464
|
*/
|
|
@@ -478,7 +474,6 @@ const Picker = class {
|
|
|
478
474
|
}
|
|
479
475
|
/**
|
|
480
476
|
* Change handler for the list
|
|
481
|
-
*
|
|
482
477
|
* @param {LimelListCustomEvent<ListItem>} event event
|
|
483
478
|
* @returns {void}
|
|
484
479
|
*/
|
|
@@ -499,7 +494,6 @@ const Picker = class {
|
|
|
499
494
|
}
|
|
500
495
|
/**
|
|
501
496
|
* Change handler for the list
|
|
502
|
-
*
|
|
503
497
|
* @param {LimelChipSetCustomEvent} event event
|
|
504
498
|
* @returns {void}
|
|
505
499
|
*/
|
|
@@ -514,7 +508,6 @@ const Picker = class {
|
|
|
514
508
|
/**
|
|
515
509
|
* Focus handler for the chip set
|
|
516
510
|
* Prevent focus if the picker has a value and does not support multiple values
|
|
517
|
-
*
|
|
518
511
|
* @returns {void}
|
|
519
512
|
*/
|
|
520
513
|
async handleInputFieldFocus() {
|
|
@@ -543,7 +536,6 @@ const Picker = class {
|
|
|
543
536
|
/**
|
|
544
537
|
* Key handler for the input field
|
|
545
538
|
* Will change focus to the first/last item in the dropdown list to enable selection with the keyboard
|
|
546
|
-
*
|
|
547
539
|
* @param {KeyboardEvent} event event
|
|
548
540
|
* @returns {void}
|
|
549
541
|
*/
|
|
@@ -574,7 +566,6 @@ const Picker = class {
|
|
|
574
566
|
}
|
|
575
567
|
/**
|
|
576
568
|
* Key handler for the dropdown
|
|
577
|
-
*
|
|
578
569
|
* @param {KeyboardEvent} event event
|
|
579
570
|
* @returns {void}
|
|
580
571
|
*/
|
|
@@ -13,7 +13,6 @@ import './isObject-c74e273c.js';
|
|
|
13
13
|
*
|
|
14
14
|
* If the child element is a descendant of a limel-portal, this function will
|
|
15
15
|
* go back through the portal and check the original tree recursively
|
|
16
|
-
*
|
|
17
16
|
* @param {HTMLElement} element the parent element
|
|
18
17
|
* @param {HTMLElement} child the child element to check
|
|
19
18
|
* @returns {boolean} `true` if child is a descendant of element, taking
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-cdfd351d.js';
|
|
2
2
|
import { b as isMobileDevice } from './device-39db3b5f.js';
|
|
3
3
|
import { a as ENTER, d as ENTER_KEY_CODE, S as SPACE, h as SPACE_KEY_CODE } from './keycodes-44c01beb.js';
|
|
4
|
-
import { i as isMultiple } from './multiple-
|
|
4
|
+
import { i as isMultiple } from './multiple-0bd62427.js';
|
|
5
5
|
import { c as createRandomString } from './random-string-2246b81e.js';
|
|
6
6
|
import { a as MDCFloatingLabel } from './component-19eb6e2b.js';
|
|
7
7
|
import { M as MDCFoundation, a as MDCComponent } from './component-410aad5a.js';
|
|
@@ -540,7 +540,7 @@ const Snackbar = class {
|
|
|
540
540
|
this.action = createEvent(this, "action", 7);
|
|
541
541
|
this.hide = createEvent(this, "hide", 7);
|
|
542
542
|
this.message = undefined;
|
|
543
|
-
this.timeout =
|
|
543
|
+
this.timeout = 5000;
|
|
544
544
|
this.actionText = undefined;
|
|
545
545
|
this.dismissible = undefined;
|
|
546
546
|
this.multiline = undefined;
|
|
@@ -2228,7 +2228,6 @@ var MDCTabBar = /** @class */ (function (_super) {
|
|
|
2228
2228
|
/**
|
|
2229
2229
|
* Set a tabs `active` state to true in a list of tabs. The previous tab with
|
|
2230
2230
|
* `active` set to true will have it set to `false` instead.
|
|
2231
|
-
*
|
|
2232
2231
|
* @param {Tab[]} tabs list of tabs
|
|
2233
2232
|
* @param {number} index the index of the tab to set to active
|
|
2234
2233
|
* @returns {Tab[]} a copy of the list of tabs with the changed tabs replaced
|