@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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Check if an element is a descendant of another, even if it is located within a shadow root
|
|
5
|
-
*
|
|
6
5
|
* @param {Node} element the element to check
|
|
7
6
|
* @param {Node} parent the parent element
|
|
8
7
|
* @returns {boolean} true if the element is a descendant of the parent element, false otherwise
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-287e25e0.js');
|
|
6
|
-
const format = require('./format-
|
|
6
|
+
const format = require('./format-5b928cf3.js');
|
|
7
7
|
require('./_commonjsHelpers-0c557e26.js');
|
|
8
8
|
|
|
9
9
|
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}";
|
|
@@ -1633,7 +1633,6 @@ var MDCChipSet = /** @class */ (function (_super) {
|
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Key handler for the input field.
|
|
1635
1635
|
* Lets the user select, activate, and remove chips with the keyboard.
|
|
1636
|
-
*
|
|
1637
1636
|
* @param {KeyboardEvent} event event
|
|
1638
1637
|
* @returns {void}
|
|
1639
1638
|
*/
|
|
@@ -1805,7 +1804,6 @@ const ChipSet = class {
|
|
|
1805
1804
|
}
|
|
1806
1805
|
/**
|
|
1807
1806
|
* Used to find out whether the chip-set is in edit mode.
|
|
1808
|
-
*
|
|
1809
1807
|
* @returns {Promise<boolean>} `true` if the chip-set is in edit mode, `false` otherwise.
|
|
1810
1808
|
*/
|
|
1811
1809
|
async getEditMode() {
|
|
@@ -1813,7 +1811,6 @@ const ChipSet = class {
|
|
|
1813
1811
|
}
|
|
1814
1812
|
/**
|
|
1815
1813
|
* Used to set focus to the chip-set input field.
|
|
1816
|
-
*
|
|
1817
1814
|
* @param {boolean} emptyInput if `true`, any text in the input is discarded
|
|
1818
1815
|
* @returns {Promise<void>} does not return anything, but methods have to be async
|
|
1819
1816
|
*/
|
|
@@ -1831,7 +1828,6 @@ const ChipSet = class {
|
|
|
1831
1828
|
/**
|
|
1832
1829
|
* Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the
|
|
1833
1830
|
* consumer control when the input is emptied.
|
|
1834
|
-
*
|
|
1835
1831
|
* @returns {Promise<void>} does not return anything, but methods have to be async
|
|
1836
1832
|
*/
|
|
1837
1833
|
async emptyInput() {
|
|
@@ -1960,7 +1956,6 @@ const ChipSet = class {
|
|
|
1960
1956
|
}
|
|
1961
1957
|
/**
|
|
1962
1958
|
* Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
|
|
1963
|
-
*
|
|
1964
1959
|
* @returns {void}
|
|
1965
1960
|
*/
|
|
1966
1961
|
handleTextFieldFocus() {
|
|
@@ -1976,7 +1971,6 @@ const ChipSet = class {
|
|
|
1976
1971
|
/**
|
|
1977
1972
|
* Exit edit mode when the input element loses focus. This makes sure the input element does not take up any
|
|
1978
1973
|
* additional space when the user it not typing anything
|
|
1979
|
-
*
|
|
1980
1974
|
* @returns {void}
|
|
1981
1975
|
*/
|
|
1982
1976
|
handleInputBlur() {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-287e25e0.js');
|
|
6
|
-
const format = require('./format-
|
|
6
|
+
const format = require('./format-5b928cf3.js');
|
|
7
7
|
const component = require('./component-67144c1c.js');
|
|
8
8
|
const util = require('./util-b0f5741e.js');
|
|
9
9
|
require('./_commonjsHelpers-0c557e26.js');
|
|
@@ -14,7 +14,7 @@ const isObject$3 = require('./isObject-e28b7997.js');
|
|
|
14
14
|
const isObjectLike$1 = require('./isObjectLike-3e3f0cba.js');
|
|
15
15
|
const _arrayIncludesWith$1 = require('./_arrayIncludesWith-29083f83.js');
|
|
16
16
|
const moment = require('./moment-d1e35cdc.js');
|
|
17
|
-
const multiple = require('./multiple-
|
|
17
|
+
const multiple = require('./multiple-2af83b6d.js');
|
|
18
18
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
19
19
|
require('./eq-9a943b00.js');
|
|
20
20
|
require('./_getNative-60328036.js');
|
|
@@ -23728,7 +23728,6 @@ function renderDescription(description) {
|
|
|
23728
23728
|
* If an object has the key 'title' it will have priority, followed by the key 'name'.
|
|
23729
23729
|
* If 'title' nor 'name' is found, a required item will be considered.
|
|
23730
23730
|
* Otherwise the first occurrence of a nonempty string is chosen.
|
|
23731
|
-
*
|
|
23732
23731
|
* @param {*} data the data to find the title for
|
|
23733
23732
|
* @param {*} fieldSchema schema for the item
|
|
23734
23733
|
* @param {*} formSchema schema for the form
|
|
@@ -24204,7 +24203,6 @@ function isCollapsed(schema) {
|
|
|
24204
24203
|
* the real definition of a primitive in javascript. In this context, primitive
|
|
24205
24204
|
* really means "can be properly rendered to the dom by react". It just so
|
|
24206
24205
|
* happens that react can render most primitives to the dom correctly.
|
|
24207
|
-
*
|
|
24208
24206
|
* @see https://developer.mozilla.org/en-US/docs/Glossary/Primitive
|
|
24209
24207
|
* @param {any} value the value to check
|
|
24210
24208
|
* @returns {boolean} Whether or not the value is primitive
|
|
@@ -24240,7 +24238,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24240
24238
|
/**
|
|
24241
24239
|
* Given a key a value set the value of property named `key` to
|
|
24242
24240
|
* the value of `value`
|
|
24243
|
-
*
|
|
24244
24241
|
* @param {string} key The name of the property
|
|
24245
24242
|
* @param {any} value The value of the property
|
|
24246
24243
|
* @returns {void}
|
|
@@ -24254,7 +24251,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24254
24251
|
*
|
|
24255
24252
|
* Events must be bound using this function otherwise events will bubble up too far
|
|
24256
24253
|
* since react events are different that native dom events
|
|
24257
|
-
*
|
|
24258
24254
|
* @param {string} eventName the name of the event to get the handler for
|
|
24259
24255
|
* @returns {any} the handler to bind to the component for the event name
|
|
24260
24256
|
*/
|
|
@@ -24267,7 +24263,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24267
24263
|
}
|
|
24268
24264
|
/**
|
|
24269
24265
|
* Set events on the web component
|
|
24270
|
-
*
|
|
24271
24266
|
* @param {object} events Event names to handlers
|
|
24272
24267
|
* @returns {void}
|
|
24273
24268
|
*/
|
|
@@ -24279,7 +24274,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24279
24274
|
}
|
|
24280
24275
|
/**
|
|
24281
24276
|
* Remove events on the web component
|
|
24282
|
-
*
|
|
24283
24277
|
* @param {object} events Event names to handlers
|
|
24284
24278
|
* @returns {void}
|
|
24285
24279
|
*/
|
|
@@ -24291,7 +24285,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24291
24285
|
}
|
|
24292
24286
|
/**
|
|
24293
24287
|
* Get the events to remove from the component
|
|
24294
|
-
*
|
|
24295
24288
|
* @param {object} prevEvents previous events
|
|
24296
24289
|
* @param {object} nextEvents new events
|
|
24297
24290
|
* @returns {object} the events to remove
|
|
@@ -24301,7 +24294,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24301
24294
|
}
|
|
24302
24295
|
/**
|
|
24303
24296
|
* Get the events to add to the component
|
|
24304
|
-
*
|
|
24305
24297
|
* @param {object} prevEvents previous events
|
|
24306
24298
|
* @param {object} nextEvents new events
|
|
24307
24299
|
* @returns {object} the events to add
|
|
@@ -24313,7 +24305,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24313
24305
|
* Detect if event handlers have changed. If they
|
|
24314
24306
|
* have changed, store them in the state, and remove and
|
|
24315
24307
|
* re-add the changed event handlers
|
|
24316
|
-
*
|
|
24317
24308
|
* @returns {void}
|
|
24318
24309
|
*/
|
|
24319
24310
|
updateEvents() {
|
|
@@ -24338,7 +24329,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24338
24329
|
}
|
|
24339
24330
|
/**
|
|
24340
24331
|
* Get non primitive props. i.e. object, function, array, etc
|
|
24341
|
-
*
|
|
24342
24332
|
* @param {object} elementProps the props to pass the webcomponet
|
|
24343
24333
|
* @returns {object} non primitive props
|
|
24344
24334
|
*/
|
|
@@ -24347,7 +24337,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24347
24337
|
}
|
|
24348
24338
|
/**
|
|
24349
24339
|
* Get primitive props. i.e. integer, boolean, etc
|
|
24350
|
-
*
|
|
24351
24340
|
* @param {object} elementProps the props to pass the webcomponet
|
|
24352
24341
|
* @returns {object} primitive props
|
|
24353
24342
|
*/
|
|
@@ -24358,7 +24347,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24358
24347
|
* Given the previous renders props and the next renders props,
|
|
24359
24348
|
* check if any of the property values have changed and return an
|
|
24360
24349
|
* object with only those values
|
|
24361
|
-
*
|
|
24362
24350
|
* @param {object} prevNonPrimitiveProps the previous renders non primitive props
|
|
24363
24351
|
* @param {object} nextNonPrimitiveProps the current renders non primitive props
|
|
24364
24352
|
* @returns {object} the changed primitive props
|
|
@@ -24373,7 +24361,6 @@ class LimeElementsAdapter extends react.Component {
|
|
|
24373
24361
|
* instead of passing them as props the the React.createElement
|
|
24374
24362
|
* function because non primitive props are not passed properly to the web
|
|
24375
24363
|
* component via React.createElement
|
|
24376
|
-
*
|
|
24377
24364
|
* @param {object} elementProps element props to set
|
|
24378
24365
|
* @returns {void}
|
|
24379
24366
|
*/
|
|
@@ -28910,7 +28897,6 @@ SchemaField$1.defaultProps = {
|
|
|
28910
28897
|
/**
|
|
28911
28898
|
* Given two objects, get a list of keys for each value that is different between
|
|
28912
28899
|
* the two objects. Compares using deep comparison
|
|
28913
|
-
*
|
|
28914
28900
|
* @param {object} a first object
|
|
28915
28901
|
* @param {object} b second object
|
|
28916
28902
|
* @returns {any[]} the array of keys
|
|
@@ -28926,7 +28912,6 @@ const getDifferentKeys = (a = {}, b = {}) => {
|
|
|
28926
28912
|
* has any other fields that are dependent on it, and if so reset those dependent fields
|
|
28927
28913
|
* (by deleting them from the data so that their defaults are populated on the next rerender).
|
|
28928
28914
|
* Call onChange with the updated data
|
|
28929
|
-
*
|
|
28930
28915
|
* @param {any} oldData The previous data before a data change event
|
|
28931
28916
|
* @param {any} newData The form data from a change event
|
|
28932
28917
|
* @param {object} schema The schema associated with the data
|
|
@@ -28959,7 +28944,6 @@ const resetDependentFields = (oldData, newData, schema, rootSchema) => {
|
|
|
28959
28944
|
};
|
|
28960
28945
|
/**
|
|
28961
28946
|
* Check if the schema is of type object and have no declared properties
|
|
28962
|
-
*
|
|
28963
28947
|
* @param {any} schema the schema
|
|
28964
28948
|
* @returns {boolean} true if the schema is for a custom object
|
|
28965
28949
|
*/
|
|
@@ -28996,7 +28980,6 @@ function isAdditionalProperty(schema) {
|
|
|
28996
28980
|
* from the form data I would delete all the text from the name input field. Web components would emit this empty value
|
|
28997
28981
|
* as '' or null. If the web component tries to emit `undefined`, null would be emitted instead because CustomEvent has
|
|
28998
28982
|
* a default `detail` value of null
|
|
28999
|
-
*
|
|
29000
28983
|
* @param {any} value the value associated with the schema
|
|
29001
28984
|
* @param {any} schema the schema for the value
|
|
29002
28985
|
* @returns {boolean} whether or not null should be changed to undefined
|
|
@@ -29025,7 +29008,6 @@ const getCustomComponent = (schema) => {
|
|
|
29025
29008
|
};
|
|
29026
29009
|
/**
|
|
29027
29010
|
* Create properties from the factory that is set on `limel-form`
|
|
29028
|
-
*
|
|
29029
29011
|
* @param {*} formContext the form context
|
|
29030
29012
|
* @param {*} schema the schema for the current field
|
|
29031
29013
|
* @returns {object} the properties created by the factory
|
|
@@ -29151,7 +29133,6 @@ class SchemaField extends react.Component {
|
|
|
29151
29133
|
}
|
|
29152
29134
|
/**
|
|
29153
29135
|
* Gets the path to the current property within the schema
|
|
29154
|
-
*
|
|
29155
29136
|
* @param {string} schemaId the id of the schema
|
|
29156
29137
|
* @returns {string[]} an array with the schema path for the current property
|
|
29157
29138
|
* @example
|
|
@@ -18,7 +18,6 @@ class IconCache {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Get icon data from the cache
|
|
21
|
-
*
|
|
22
21
|
* @param {string} name name of the icon
|
|
23
22
|
* @param {string} path path on the server where the assets are located
|
|
24
23
|
* @returns {string} svg markup
|
|
@@ -107,7 +106,6 @@ const Icon = class {
|
|
|
107
106
|
}
|
|
108
107
|
/**
|
|
109
108
|
* Load the SVG data for the icon from the icon cache
|
|
110
|
-
*
|
|
111
109
|
* @param {string} name name of the icon
|
|
112
110
|
* @returns {string} the icon SVG data
|
|
113
111
|
*/
|
|
@@ -483,7 +483,6 @@ const InputField = class {
|
|
|
483
483
|
/**
|
|
484
484
|
* Key handler for the input field
|
|
485
485
|
* Will change focus to the first/last item in the dropdown list to enable selection with the keyboard
|
|
486
|
-
*
|
|
487
486
|
* @param {KeyboardEvent} event event
|
|
488
487
|
* @returns {void}
|
|
489
488
|
*/
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-287e25e0.js');
|
|
6
6
|
const component = require('./component-66df95e7.js');
|
|
7
7
|
const checkbox_template = require('./checkbox.template-60ed3ee2.js');
|
|
8
|
-
const dom = require('./dom-
|
|
8
|
+
const dom = require('./dom-eb080f70.js');
|
|
9
9
|
const keycodes = require('./keycodes-3949f425.js');
|
|
10
10
|
require('./component-67144c1c.js');
|
|
11
11
|
require('./ponyfill-98ca4766.js');
|
|
@@ -36,7 +36,6 @@ class ListRenderer {
|
|
|
36
36
|
* and return the index at which that ListItem is located in `items`.
|
|
37
37
|
* Returns `undefined` if no item should have the attribute set.
|
|
38
38
|
* See https://github.com/material-components/material-components-web/tree/e66a43a75fef4f9179e24856649518e15e279a04/packages/mdc-list#accessibility
|
|
39
|
-
*
|
|
40
39
|
* @param {Array<ListItem | ListSeparator>} items the items of the list, including any `ListSeparator`:s
|
|
41
40
|
* @returns {number} the index as per the description
|
|
42
41
|
*/
|
|
@@ -61,7 +60,6 @@ class ListRenderer {
|
|
|
61
60
|
};
|
|
62
61
|
/**
|
|
63
62
|
* Render a single list item
|
|
64
|
-
*
|
|
65
63
|
* @param {ListItem | ListSeparator} item the item to render
|
|
66
64
|
* @param {number} index the index the item had in the `items` array
|
|
67
65
|
* @returns {HTMLElement} the list item
|
|
@@ -96,7 +94,6 @@ class ListRenderer {
|
|
|
96
94
|
};
|
|
97
95
|
/**
|
|
98
96
|
* Render the text of the list item
|
|
99
|
-
*
|
|
100
97
|
* @param {ListItem} item the list item
|
|
101
98
|
* @returns {HTMLElement | string} the text for the list item
|
|
102
99
|
*/
|
|
@@ -114,7 +111,6 @@ class ListRenderer {
|
|
|
114
111
|
};
|
|
115
112
|
/**
|
|
116
113
|
* Render an icon for a list item
|
|
117
|
-
*
|
|
118
114
|
* @param {ListRendererConfig} config the config object, passed on from the `renderListItem` function
|
|
119
115
|
* @param {ListItem} item the list item
|
|
120
116
|
* @returns {HTMLElement} the icon element
|
|
@@ -628,7 +628,6 @@ class MenuListRenderer {
|
|
|
628
628
|
* and return the index at which that MenuItem is located in `items`.
|
|
629
629
|
* Returns `undefined` if no item should have the attribute set.
|
|
630
630
|
* See https://github.com/material-components/material-components-web/tree/e66a43a75fef4f9179e24856649518e15e279a04/packages/mdc-list#accessibility
|
|
631
|
-
*
|
|
632
631
|
* @param {Array<MenuItem | ListSeparator>} items the items of the list, including any `ListSeparator`:s
|
|
633
632
|
* @returns {number} the index as per the description
|
|
634
633
|
*/
|
|
@@ -653,7 +652,6 @@ class MenuListRenderer {
|
|
|
653
652
|
};
|
|
654
653
|
/**
|
|
655
654
|
* Render a single list item
|
|
656
|
-
*
|
|
657
655
|
* @param {MenuItem | ListSeparator} item the item to render
|
|
658
656
|
* @param {number} index the index the item had in the `items` array
|
|
659
657
|
* @returns {HTMLElement} the list item
|
|
@@ -679,7 +677,6 @@ class MenuListRenderer {
|
|
|
679
677
|
};
|
|
680
678
|
/**
|
|
681
679
|
* Render the text of the list item
|
|
682
|
-
*
|
|
683
680
|
* @param {MenuItem} item the list item
|
|
684
681
|
* @returns {HTMLElement | string} the text for the list item
|
|
685
682
|
*/
|
|
@@ -707,7 +704,6 @@ class MenuListRenderer {
|
|
|
707
704
|
};
|
|
708
705
|
/**
|
|
709
706
|
* Render an icon for a list item
|
|
710
|
-
*
|
|
711
707
|
* @param {MenuListRendererConfig} config the config object, passed on from the `renderMenuItem` function
|
|
712
708
|
* @param {MenuItem} item the list item
|
|
713
709
|
* @returns {HTMLElement} the icon element
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-287e25e0.js');
|
|
6
|
-
const dom = require('./dom-
|
|
6
|
+
const dom = require('./dom-eb080f70.js');
|
|
7
7
|
const keycodes = require('./keycodes-3949f425.js');
|
|
8
8
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
9
9
|
|
|
@@ -338,7 +338,6 @@ const Picker = class {
|
|
|
338
338
|
/**
|
|
339
339
|
* Renders the dropdown with the items to pick from, or a spinner if the picker
|
|
340
340
|
* is waiting for items to be received
|
|
341
|
-
*
|
|
342
341
|
* @returns {HTMLElement} picker dropdown
|
|
343
342
|
*/
|
|
344
343
|
renderDropdown() {
|
|
@@ -397,7 +396,6 @@ const Picker = class {
|
|
|
397
396
|
/**
|
|
398
397
|
* Returns true if the picker is "full"
|
|
399
398
|
* The picker is considered to be full if it has a value and only one is allowed
|
|
400
|
-
*
|
|
401
399
|
* @returns {boolean} true if the picker is full
|
|
402
400
|
*/
|
|
403
401
|
isFull() {
|
|
@@ -450,7 +448,6 @@ const Picker = class {
|
|
|
450
448
|
}
|
|
451
449
|
/**
|
|
452
450
|
* Check if a descendant still has focus. If not, reset text value and search result.
|
|
453
|
-
*
|
|
454
451
|
* @returns {void}
|
|
455
452
|
*/
|
|
456
453
|
handleStopEditAndBlur() {
|
|
@@ -466,7 +463,6 @@ const Picker = class {
|
|
|
466
463
|
}
|
|
467
464
|
/**
|
|
468
465
|
* Input handler for the input field
|
|
469
|
-
*
|
|
470
466
|
* @param {InputEvent} event event
|
|
471
467
|
* @returns {void}
|
|
472
468
|
*/
|
|
@@ -482,7 +478,6 @@ const Picker = class {
|
|
|
482
478
|
}
|
|
483
479
|
/**
|
|
484
480
|
* Change handler for the list
|
|
485
|
-
*
|
|
486
481
|
* @param {LimelListCustomEvent<ListItem>} event event
|
|
487
482
|
* @returns {void}
|
|
488
483
|
*/
|
|
@@ -503,7 +498,6 @@ const Picker = class {
|
|
|
503
498
|
}
|
|
504
499
|
/**
|
|
505
500
|
* Change handler for the list
|
|
506
|
-
*
|
|
507
501
|
* @param {LimelChipSetCustomEvent} event event
|
|
508
502
|
* @returns {void}
|
|
509
503
|
*/
|
|
@@ -518,7 +512,6 @@ const Picker = class {
|
|
|
518
512
|
/**
|
|
519
513
|
* Focus handler for the chip set
|
|
520
514
|
* Prevent focus if the picker has a value and does not support multiple values
|
|
521
|
-
*
|
|
522
515
|
* @returns {void}
|
|
523
516
|
*/
|
|
524
517
|
async handleInputFieldFocus() {
|
|
@@ -547,7 +540,6 @@ const Picker = class {
|
|
|
547
540
|
/**
|
|
548
541
|
* Key handler for the input field
|
|
549
542
|
* Will change focus to the first/last item in the dropdown list to enable selection with the keyboard
|
|
550
|
-
*
|
|
551
543
|
* @param {KeyboardEvent} event event
|
|
552
544
|
* @returns {void}
|
|
553
545
|
*/
|
|
@@ -578,7 +570,6 @@ const Picker = class {
|
|
|
578
570
|
}
|
|
579
571
|
/**
|
|
580
572
|
* Key handler for the dropdown
|
|
581
|
-
*
|
|
582
573
|
* @param {KeyboardEvent} event event
|
|
583
574
|
* @returns {void}
|
|
584
575
|
*/
|
|
@@ -17,7 +17,6 @@ require('./isObject-e28b7997.js');
|
|
|
17
17
|
*
|
|
18
18
|
* If the child element is a descendant of a limel-portal, this function will
|
|
19
19
|
* go back through the portal and check the original tree recursively
|
|
20
|
-
*
|
|
21
20
|
* @param {HTMLElement} element the parent element
|
|
22
21
|
* @param {HTMLElement} child the child element to check
|
|
23
22
|
* @returns {boolean} `true` if child is a descendant of element, taking
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-287e25e0.js');
|
|
6
6
|
const device = require('./device-c5841113.js');
|
|
7
7
|
const keycodes = require('./keycodes-3949f425.js');
|
|
8
|
-
const multiple = require('./multiple-
|
|
8
|
+
const multiple = require('./multiple-2af83b6d.js');
|
|
9
9
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
10
10
|
const component$1 = require('./component-dd795ff0.js');
|
|
11
11
|
const component = require('./component-67144c1c.js');
|
|
@@ -544,7 +544,7 @@ const Snackbar = class {
|
|
|
544
544
|
this.action = index.createEvent(this, "action", 7);
|
|
545
545
|
this.hide = index.createEvent(this, "hide", 7);
|
|
546
546
|
this.message = undefined;
|
|
547
|
-
this.timeout =
|
|
547
|
+
this.timeout = 5000;
|
|
548
548
|
this.actionText = undefined;
|
|
549
549
|
this.dismissible = undefined;
|
|
550
550
|
this.multiline = undefined;
|
|
@@ -2232,7 +2232,6 @@ var MDCTabBar = /** @class */ (function (_super) {
|
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Set a tabs `active` state to true in a list of tabs. The previous tab with
|
|
2234
2234
|
* `active` set to true will have it set to `false` instead.
|
|
2235
|
-
*
|
|
2236
2235
|
* @param {Tab[]} tabs list of tabs
|
|
2237
2236
|
* @param {number} index the index of the tab to set to active
|
|
2238
2237
|
* @returns {Tab[]} a copy of the list of tabs with the changed tabs replaced
|
|
@@ -23615,7 +23615,6 @@ class ColumnDefinitionFactory {
|
|
|
23615
23615
|
}
|
|
23616
23616
|
/**
|
|
23617
23617
|
* Create Tabulator column definitions from a limel-table column configuration
|
|
23618
|
-
*
|
|
23619
23618
|
* @param {Column} column config describing the column
|
|
23620
23619
|
* @returns {Tabulator.ColumnDefinition} Tabulator column
|
|
23621
23620
|
*/
|
|
@@ -23642,7 +23641,6 @@ class ColumnDefinitionFactory {
|
|
|
23642
23641
|
}
|
|
23643
23642
|
/**
|
|
23644
23643
|
* Formats the header of the column
|
|
23645
|
-
*
|
|
23646
23644
|
* @param {Column} column the configuration for the column
|
|
23647
23645
|
* @returns {string | HTMLElement} custom component that renders a column header
|
|
23648
23646
|
*/
|
|
@@ -23665,7 +23663,6 @@ const formatHeader = (column) => () => {
|
|
|
23665
23663
|
};
|
|
23666
23664
|
/**
|
|
23667
23665
|
* Create a formatter to be used to format values in a column
|
|
23668
|
-
*
|
|
23669
23666
|
* @param {Column} column config describing the column
|
|
23670
23667
|
* @param {ElementPool} pool pool to get custom components from
|
|
23671
23668
|
* @returns {Tabulator.Formatter} Tabulator formatter
|
|
@@ -23698,7 +23695,6 @@ function columnElementExists(column) {
|
|
|
23698
23695
|
}
|
|
23699
23696
|
/**
|
|
23700
23697
|
* Format the value of a cell in the table
|
|
23701
|
-
*
|
|
23702
23698
|
* @param {Tabulator.CellComponent} cell the cell being rendered in the table
|
|
23703
23699
|
* @param {Column} column configuration for the current column
|
|
23704
23700
|
* @returns {string} the formatted value
|
|
@@ -23716,7 +23712,6 @@ function formatCell(cell, column) {
|
|
|
23716
23712
|
}
|
|
23717
23713
|
/**
|
|
23718
23714
|
* Create a custom component that renders a cell value
|
|
23719
|
-
*
|
|
23720
23715
|
* @param {Tabulator.CellComponent} cell Tabulator cell
|
|
23721
23716
|
* @param {Column} column lime-elements column configuration
|
|
23722
23717
|
* @param {string} value the value of the cell being rendered
|
|
@@ -23739,7 +23734,6 @@ function createCustomComponent(cell, column, value, pool) {
|
|
|
23739
23734
|
}
|
|
23740
23735
|
/**
|
|
23741
23736
|
* Set all properties for a custom element, including event listeners
|
|
23742
|
-
*
|
|
23743
23737
|
* @param {HTMLElement} element the custom element
|
|
23744
23738
|
* @param {object} props object of properties and event listeners
|
|
23745
23739
|
*/
|
|
@@ -23757,7 +23751,6 @@ function setElementProperties(element, props) {
|
|
|
23757
23751
|
*
|
|
23758
23752
|
* An event listener has to be a function and its property name have to start
|
|
23759
23753
|
* with "on" followed by the name of the event in camel case, e.g. "onEventName"
|
|
23760
|
-
*
|
|
23761
23754
|
* @param {any} value the value to check
|
|
23762
23755
|
* @param {string} key name of the property
|
|
23763
23756
|
* @returns {boolean} true if the property of the object is an event listener
|
|
@@ -23772,7 +23765,6 @@ function isEventListener(value, key) {
|
|
|
23772
23765
|
* Get the name of an event from the name of an event listener
|
|
23773
23766
|
*
|
|
23774
23767
|
* E.g. "onMyEvent" will return "myEvent"
|
|
23775
|
-
*
|
|
23776
23768
|
* @param {string} eventListener name of the event listener
|
|
23777
23769
|
* @returns {string} the name of the event
|
|
23778
23770
|
*/
|
|
@@ -23803,7 +23795,6 @@ function createResizeObserver(element, column) {
|
|
|
23803
23795
|
}
|
|
23804
23796
|
/**
|
|
23805
23797
|
* Create a column sorter from a tabulator sorter
|
|
23806
|
-
*
|
|
23807
23798
|
* @param {Column[]} columns all available columns in the table
|
|
23808
23799
|
* @returns {Function} function that creates a sorter from a tabulator sorter
|
|
23809
23800
|
*/
|
|
@@ -23839,7 +23830,6 @@ class ElementPool {
|
|
|
23839
23830
|
}
|
|
23840
23831
|
/**
|
|
23841
23832
|
* Get an element from the pool
|
|
23842
|
-
*
|
|
23843
23833
|
* @param {string} name tag name of the element
|
|
23844
23834
|
* @returns {HTMLElement} the element
|
|
23845
23835
|
*/
|
|
@@ -23854,7 +23844,6 @@ class ElementPool {
|
|
|
23854
23844
|
}
|
|
23855
23845
|
/**
|
|
23856
23846
|
* Release an element from the pool so that it can be reused
|
|
23857
|
-
*
|
|
23858
23847
|
* @param {HTMLElement} element the element to release from the pool
|
|
23859
23848
|
*/
|
|
23860
23849
|
release(element) {
|
|
@@ -23895,7 +23884,6 @@ class Selection {
|
|
|
23895
23884
|
* The provided function `getDataByIndex` is used to provide data for the
|
|
23896
23885
|
* selected items when selection is toggled by using the item index,
|
|
23897
23886
|
* which can be the row position in a table.
|
|
23898
|
-
*
|
|
23899
23887
|
* @param {Function} getDataByIndex A function that returns the data at the given index
|
|
23900
23888
|
*/
|
|
23901
23889
|
constructor(getDataByIndex) {
|
|
@@ -23954,7 +23942,6 @@ class Selection {
|
|
|
23954
23942
|
}
|
|
23955
23943
|
/**
|
|
23956
23944
|
* Checks whether the given item exist in the selection
|
|
23957
|
-
*
|
|
23958
23945
|
* @param {any} data The data to look up
|
|
23959
23946
|
* @returns {boolean} `true` if the given data exist in the selection, otherwise `false`
|
|
23960
23947
|
*/
|
|
@@ -23963,7 +23950,6 @@ class Selection {
|
|
|
23963
23950
|
}
|
|
23964
23951
|
/**
|
|
23965
23952
|
* Toggles the item at the given index in the selection
|
|
23966
|
-
*
|
|
23967
23953
|
* @param {number} index The index of the item to toggle
|
|
23968
23954
|
* @returns {SelectionChangeSet} The changes made to the selection
|
|
23969
23955
|
*/
|
|
@@ -23976,7 +23962,6 @@ class Selection {
|
|
|
23976
23962
|
* their current state in the selection.
|
|
23977
23963
|
* Initially, when no last toggled index exist, this function behaves like
|
|
23978
23964
|
* `toggleSelection`.
|
|
23979
|
-
*
|
|
23980
23965
|
* @param {number} index The index of the item to toggle
|
|
23981
23966
|
* @returns {SelectionChangeSet} The changes made to the selection
|
|
23982
23967
|
*/
|
|
@@ -24002,7 +23987,6 @@ const LIMEL_CHECKBOX = 'limel-checkbox';
|
|
|
24002
23987
|
class TableSelection {
|
|
24003
23988
|
/**
|
|
24004
23989
|
* Creates an instance of the TableSelection class
|
|
24005
|
-
*
|
|
24006
23990
|
* @param {Function} getTable Function that returns the Tabulator instance
|
|
24007
23991
|
* @param {ElementPool} pool The element pool used to cache the checkbox components
|
|
24008
23992
|
* @param {EventEmitter<object[]>} selectEvent The event emitter to use when checkboxes are toggled
|
|
@@ -24015,7 +23999,6 @@ class TableSelection {
|
|
|
24015
23999
|
* Tabulator cell click handler that updates the selection for the clicked
|
|
24016
24000
|
* row and toggles the selection from the last clicked row if the shift key
|
|
24017
24001
|
* is pressed down.
|
|
24018
|
-
*
|
|
24019
24002
|
* @param {PointerEvent} ev The pointer event
|
|
24020
24003
|
* @param {Tabulator.CellComponent} cell The clicked cell component
|
|
24021
24004
|
*/
|
|
@@ -24070,7 +24053,6 @@ class TableSelection {
|
|
|
24070
24053
|
}
|
|
24071
24054
|
/**
|
|
24072
24055
|
* Sets the selected items
|
|
24073
|
-
*
|
|
24074
24056
|
* @param {any[]} data The selected items
|
|
24075
24057
|
*/
|
|
24076
24058
|
setSelection(data) {
|
|
@@ -24083,7 +24065,6 @@ class TableSelection {
|
|
|
24083
24065
|
}
|
|
24084
24066
|
/**
|
|
24085
24067
|
* Prepends a checkbox column used for row selection to the given column definitions
|
|
24086
|
-
*
|
|
24087
24068
|
* @param {Tabulator.ColumnDefinition[]} columnDefinitions The column definition for the table
|
|
24088
24069
|
* @returns {Tabulator.ColumnDefinition[]} The column definitions with the checkbox column prepended to it
|
|
24089
24070
|
*/
|
|
@@ -3,7 +3,6 @@ import { abbreviate } from './format';
|
|
|
3
3
|
/**
|
|
4
4
|
* The Badge component can be used to display a notification badge,
|
|
5
5
|
* optionally with a number or a text label.
|
|
6
|
-
*
|
|
7
6
|
* @exampleComponent limel-example-badge
|
|
8
7
|
* @exampleComponent limel-example-badge-number
|
|
9
8
|
* @exampleComponent limel-example-badge-string
|
|
@@ -29,7 +29,6 @@ import { createRandomString } from '../../util/random-string';
|
|
|
29
29
|
*
|
|
30
30
|
* Within the group, icon buttons will all have the same width, while each text button
|
|
31
31
|
* inherits its width from its content.
|
|
32
|
-
*
|
|
33
32
|
* @exampleComponent limel-example-button-group-icons
|
|
34
33
|
* @exampleComponent limel-example-button-group
|
|
35
34
|
* @exampleComponent limel-example-button-group-mix
|
|
@@ -15,7 +15,6 @@ import { getHeading, getIcon } from './callout.helpers';
|
|
|
15
15
|
* presented. In such cases, a callout should not be used as a static and
|
|
16
16
|
* constantly present element of the UI. Rather, it should be displayed when
|
|
17
17
|
* something unusual or remarkable demands the user's attention.
|
|
18
|
-
*
|
|
19
18
|
* @exampleComponent limel-example-callout-note
|
|
20
19
|
* @exampleComponent limel-example-callout-important
|
|
21
20
|
* @exampleComponent limel-example-callout-tip
|