@limetech/lime-elements 39.10.3 → 39.10.4
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/CHANGELOG.md +8 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +51 -3
- package/dist/cjs/limel-dialog.cjs.entry.js +86 -2
- package/dist/cjs/limel-portal_3.cjs.entry.js +3 -3
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +44 -1494
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/slider/slider.css +215 -642
- package/dist/collection/components/slider/slider.js +45 -165
- package/dist/collection/components/snackbar/snackbar.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table.js +3 -3
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +50 -2
- package/dist/esm/limel-dialog.entry.js +85 -1
- package/dist/esm/limel-portal_3.entry.js +3 -3
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +45 -1495
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +2 -2
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +3 -3
- package/dist/esm/limel-text-editor-link-menu.entry.js +3 -3
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-17e1d911.entry.js → p-2906606d.entry.js} +1 -1
- package/dist/lime-elements/{p-30e54f05.entry.js → p-2b1eda20.entry.js} +3 -3
- package/dist/lime-elements/{p-889a05e4.entry.js → p-3d724fc2.entry.js} +1 -1
- package/dist/lime-elements/{p-b8e5bd98.entry.js → p-3f188493.entry.js} +1 -1
- package/dist/lime-elements/{p-8e3cc9b0.entry.js → p-4e1b8c0a.entry.js} +1 -1
- package/dist/lime-elements/{p-a243b8e2.entry.js → p-730a05e3.entry.js} +1 -1
- package/dist/lime-elements/{p-77f42eff.entry.js → p-8203eea8.entry.js} +1 -1
- package/dist/lime-elements/{p-a44dfaa1.entry.js → p-89b35965.entry.js} +1 -1
- package/dist/lime-elements/{p-9abfb8ba.entry.js → p-9aa07388.entry.js} +1 -1
- package/dist/lime-elements/{p-9d629f5f.entry.js → p-c308e2a5.entry.js} +55 -10
- package/dist/lime-elements/{p-c9591213.entry.js → p-de203f64.entry.js} +1 -1
- package/dist/lime-elements/p-faceccc0.entry.js +1 -0
- package/dist/lime-elements/{p-12646794.entry.js → p-fe993f80.entry.js} +1 -1
- package/dist/types/components/slider/slider.d.ts +6 -24
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/animationframe-ChtL6ouH.js +0 -88
- package/dist/cjs/util-BOQp7lfZ.js +0 -52
- package/dist/esm/animationframe-BDw7dT4x.js +0 -86
- package/dist/esm/util-Dx8swykg.js +0 -50
- package/dist/lime-elements/p-23c1033d.entry.js +0 -45
- package/dist/lime-elements/p-BDw7dT4x.js +0 -23
- package/dist/lime-elements/p-Dx8swykg.js +0 -23
|
@@ -11,7 +11,6 @@ import { _ as __extends, a as __assign, M as MDCFoundation, m as matches, d as c
|
|
|
11
11
|
import { f as focusTriggerElement, z as zipObject } from './focus-trigger-element-6aEStEKM.js';
|
|
12
12
|
import { h as hotkeyFromKeyboardEvent, t as tokenizeHotkeyString, n as normalizeHotkeyString } from './hotkeys-BxrRWYts.js';
|
|
13
13
|
import { i as isFunction } from './eq-D7VMHFyO.js';
|
|
14
|
-
import { g as getCorrectPropertyName } from './util-Dx8swykg.js';
|
|
15
14
|
import { M as MDCRipple } from './component-7QB0OUSF.js';
|
|
16
15
|
import { i as isDescendant } from './dom-B9Ofc5RB.js';
|
|
17
16
|
import './isObject-BJQylLSL.js';
|
|
@@ -3984,6 +3983,55 @@ var MDCMenuSurfaceFoundation = /** @class */ (function (_super) {
|
|
|
3984
3983
|
return MDCMenuSurfaceFoundation;
|
|
3985
3984
|
}(MDCFoundation));
|
|
3986
3985
|
|
|
3986
|
+
/**
|
|
3987
|
+
* @license
|
|
3988
|
+
* Copyright 2016 Google Inc.
|
|
3989
|
+
*
|
|
3990
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3991
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
3992
|
+
* in the Software without restriction, including without limitation the rights
|
|
3993
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3994
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
3995
|
+
* furnished to do so, subject to the following conditions:
|
|
3996
|
+
*
|
|
3997
|
+
* The above copyright notice and this permission notice shall be included in
|
|
3998
|
+
* all copies or substantial portions of the Software.
|
|
3999
|
+
*
|
|
4000
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4001
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4002
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4003
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4004
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4005
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4006
|
+
* THE SOFTWARE.
|
|
4007
|
+
*/
|
|
4008
|
+
var cssPropertyNameMap = {
|
|
4009
|
+
animation: {
|
|
4010
|
+
prefixed: '-webkit-animation',
|
|
4011
|
+
standard: 'animation',
|
|
4012
|
+
},
|
|
4013
|
+
transform: {
|
|
4014
|
+
prefixed: '-webkit-transform',
|
|
4015
|
+
standard: 'transform',
|
|
4016
|
+
},
|
|
4017
|
+
transition: {
|
|
4018
|
+
prefixed: '-webkit-transition',
|
|
4019
|
+
standard: 'transition',
|
|
4020
|
+
},
|
|
4021
|
+
};
|
|
4022
|
+
function isWindow(windowObj) {
|
|
4023
|
+
return Boolean(windowObj.document) && typeof windowObj.document.createElement === 'function';
|
|
4024
|
+
}
|
|
4025
|
+
function getCorrectPropertyName(windowObj, cssProperty) {
|
|
4026
|
+
if (isWindow(windowObj) && cssProperty in cssPropertyNameMap) {
|
|
4027
|
+
var el = windowObj.document.createElement('div');
|
|
4028
|
+
var _a = cssPropertyNameMap[cssProperty], standard = _a.standard, prefixed = _a.prefixed;
|
|
4029
|
+
var isStandard = standard in el.style;
|
|
4030
|
+
return isStandard ? standard : prefixed;
|
|
4031
|
+
}
|
|
4032
|
+
return cssProperty;
|
|
4033
|
+
}
|
|
4034
|
+
|
|
3987
4035
|
/**
|
|
3988
4036
|
* @license
|
|
3989
4037
|
* Copyright 2018 Google Inc.
|
|
@@ -5065,7 +5113,7 @@ const Spinner = class {
|
|
|
5065
5113
|
this.limeBranded = false;
|
|
5066
5114
|
}
|
|
5067
5115
|
render() {
|
|
5068
|
-
return (h(Host, { key: '
|
|
5116
|
+
return (h(Host, { key: 'bb72728921dd48ab02cad031e3b35641c92b4dce' }, h("svg", { key: 'fccd59e394e3e4a0101d2e7f903b1b4f9dffc630', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, this.renderSpinner())));
|
|
5069
5117
|
}
|
|
5070
5118
|
renderSpinner() {
|
|
5071
5119
|
if (!this.limeBranded) {
|
|
@@ -3,7 +3,6 @@ import { d as dispatchResizeEvent } from './dispatch-resize-event-z_E3sq3p.js';
|
|
|
3
3
|
import { c as createRandomString } from './random-string-JbKhhoXs.js';
|
|
4
4
|
import { _ as __extends, a as __assign, M as MDCFoundation, b as __values, c as MDCComponent, d as closest, m as matches } from './ponyfill-ChRGk668.js';
|
|
5
5
|
import { M as MDCRipple } from './component-7QB0OUSF.js';
|
|
6
|
-
import { A as AnimationFrame } from './animationframe-BDw7dT4x.js';
|
|
7
6
|
import { i as isEqual } from './isEqual-m-UUey98.js';
|
|
8
7
|
import './_baseIsEqual-DEKrwcEh.js';
|
|
9
8
|
import './eq-D7VMHFyO.js';
|
|
@@ -201,6 +200,91 @@ var FocusTrap = /** @class */ (function () {
|
|
|
201
200
|
return FocusTrap;
|
|
202
201
|
}());
|
|
203
202
|
|
|
203
|
+
/**
|
|
204
|
+
* @license
|
|
205
|
+
* Copyright 2020 Google Inc.
|
|
206
|
+
*
|
|
207
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
208
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
209
|
+
* in the Software without restriction, including without limitation the rights
|
|
210
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
211
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
212
|
+
* furnished to do so, subject to the following conditions:
|
|
213
|
+
*
|
|
214
|
+
* The above copyright notice and this permission notice shall be included in
|
|
215
|
+
* all copies or substantial portions of the Software.
|
|
216
|
+
*
|
|
217
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
218
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
219
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
220
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
221
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
222
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
223
|
+
* THE SOFTWARE.
|
|
224
|
+
*/
|
|
225
|
+
/**
|
|
226
|
+
* AnimationFrame provides a user-friendly abstraction around requesting
|
|
227
|
+
* and canceling animation frames.
|
|
228
|
+
*/
|
|
229
|
+
var AnimationFrame = /** @class */ (function () {
|
|
230
|
+
function AnimationFrame() {
|
|
231
|
+
this.rafIDs = new Map();
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Requests an animation frame. Cancels any existing frame with the same key.
|
|
235
|
+
* @param {string} key The key for this callback.
|
|
236
|
+
* @param {FrameRequestCallback} callback The callback to be executed.
|
|
237
|
+
*/
|
|
238
|
+
AnimationFrame.prototype.request = function (key, callback) {
|
|
239
|
+
var _this = this;
|
|
240
|
+
this.cancel(key);
|
|
241
|
+
var frameID = requestAnimationFrame(function (frame) {
|
|
242
|
+
_this.rafIDs.delete(key);
|
|
243
|
+
// Callback must come *after* the key is deleted so that nested calls to
|
|
244
|
+
// request with the same key are not deleted.
|
|
245
|
+
callback(frame);
|
|
246
|
+
});
|
|
247
|
+
this.rafIDs.set(key, frameID);
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Cancels a queued callback with the given key.
|
|
251
|
+
* @param {string} key The key for this callback.
|
|
252
|
+
*/
|
|
253
|
+
AnimationFrame.prototype.cancel = function (key) {
|
|
254
|
+
var rafID = this.rafIDs.get(key);
|
|
255
|
+
if (rafID) {
|
|
256
|
+
cancelAnimationFrame(rafID);
|
|
257
|
+
this.rafIDs.delete(key);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Cancels all queued callback.
|
|
262
|
+
*/
|
|
263
|
+
AnimationFrame.prototype.cancelAll = function () {
|
|
264
|
+
var _this = this;
|
|
265
|
+
// Need to use forEach because it's the only iteration method supported
|
|
266
|
+
// by IE11. Suppress the underscore because we don't need it.
|
|
267
|
+
// tslint:disable-next-line:enforce-name-casing
|
|
268
|
+
this.rafIDs.forEach(function (_, key) {
|
|
269
|
+
_this.cancel(key);
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Returns the queue of unexecuted callback keys.
|
|
274
|
+
*/
|
|
275
|
+
AnimationFrame.prototype.getQueue = function () {
|
|
276
|
+
var queue = [];
|
|
277
|
+
// Need to use forEach because it's the only iteration method supported
|
|
278
|
+
// by IE11. Suppress the underscore because we don't need it.
|
|
279
|
+
// tslint:disable-next-line:enforce-name-casing
|
|
280
|
+
this.rafIDs.forEach(function (_, key) {
|
|
281
|
+
queue.push(key);
|
|
282
|
+
});
|
|
283
|
+
return queue;
|
|
284
|
+
};
|
|
285
|
+
return AnimationFrame;
|
|
286
|
+
}());
|
|
287
|
+
|
|
204
288
|
/**
|
|
205
289
|
* @license
|
|
206
290
|
* Copyright 2016 Google Inc.
|
|
@@ -2141,10 +2141,10 @@ const Tooltip = class {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
render() {
|
|
2143
2143
|
const tooltipZIndex = getComputedStyle(this.host).getPropertyValue('--tooltip-z-index');
|
|
2144
|
-
return (h("div", { key: '
|
|
2144
|
+
return (h("div", { key: 'ffc3b079a0fcb1a4065c176228d720c64ca57d2e', class: "trigger-anchor" }, h("limel-portal", { key: 'e18fa14f5c328485f6755bc62c402c16d6dd0fd1', openDirection: this.openDirection, visible: this.open, containerId: this.portalId, containerStyle: {
|
|
2145
2145
|
'z-index': tooltipZIndex,
|
|
2146
2146
|
'pointer-events': 'none',
|
|
2147
|
-
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '
|
|
2147
|
+
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: 'cc3a5f98a22082b4e8c2d0ec6bd71d5cf5770c0a', label: this.label, helperLabel: this.helperLabel, maxlength: this.maxlength, role: "tooltip", "aria-hidden": !this.open, id: this.tooltipId }))));
|
|
2148
2148
|
}
|
|
2149
2149
|
setOwnerAriaLabel() {
|
|
2150
2150
|
var _a;
|
|
@@ -2187,7 +2187,7 @@ const TooltipContent = class {
|
|
|
2187
2187
|
};
|
|
2188
2188
|
}
|
|
2189
2189
|
return [
|
|
2190
|
-
h("text", Object.assign({ key: '
|
|
2190
|
+
h("text", Object.assign({ key: '14fbfda34a833644fd73cbfabb4e481ab5979c69', class: { 'has-column-layout': isLabelsTextLong } }, props), h("div", { key: '672c23e4d0f992395a422f684436ffb18720bd12', class: "label" }, this.label), h("div", { key: '132cffce86c4cd1a274ffbfd3d0ec1bfb9c3c073', class: "helper-label" }, this.helperLabel)),
|
|
2191
2191
|
];
|
|
2192
2192
|
}
|
|
2193
2193
|
};
|
|
@@ -27824,7 +27824,7 @@ const ProsemirrorAdapter = class {
|
|
|
27824
27824
|
(_e = this.view) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
27825
27825
|
}
|
|
27826
27826
|
render() {
|
|
27827
|
-
return (h(Host, { key: '
|
|
27827
|
+
return (h(Host, { key: '125d6d80cfc94a3121cde5d121d3cb2a26cf1635', onFocus: this.handleFocus }, h("div", { key: 'eb076afa683c0dfcb57b6688bc94ce1b81ce5710', id: "editor" }), this.renderToolbar(), this.renderLinkMenu()));
|
|
27828
27828
|
}
|
|
27829
27829
|
renderToolbar() {
|
|
27830
27830
|
if (this.actionBarItems.length === 0 || this.ui === 'no-toolbar') {
|