@limetech/lime-elements 39.23.1 → 39.24.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/CHANGELOG.md +16 -0
- package/dist/cjs/adapt-color-contrast-Beo1IEl_.js +168 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +14 -2
- package/dist/cjs/limel-email-viewer.cjs.entry.js +9 -2
- package/dist/cjs/limel-form.cjs.entry.js +219 -46
- package/dist/cjs/limel-markdown.cjs.entry.js +25 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/chip-set/chip-set.js +14 -2
- package/dist/collection/components/email-viewer/email-viewer.js +9 -2
- package/dist/collection/components/markdown/markdown.js +46 -1
- package/dist/collection/util/adapt-color-contrast.js +164 -0
- package/dist/esm/adapt-color-contrast-Dgcw_h7C.js +166 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +14 -2
- package/dist/esm/limel-email-viewer.entry.js +9 -2
- package/dist/esm/limel-form.entry.js +219 -46
- package/dist/esm/limel-markdown.entry.js +25 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-9758568e.entry.js → p-4118be32.entry.js} +4 -4
- package/dist/lime-elements/p-83e084f9.entry.js +1 -0
- package/dist/lime-elements/p-96ee6090.entry.js +1 -0
- package/dist/lime-elements/p-Dgcw_h7C.js +1 -0
- package/dist/lime-elements/p-c1c635c1.entry.js +1 -0
- package/dist/types/components/chip-set/chip-set.d.ts +5 -0
- package/dist/types/components/email-viewer/email-viewer.d.ts +2 -0
- package/dist/types/components/markdown/markdown.d.ts +16 -0
- package/dist/types/components.d.ts +15 -0
- package/dist/types/util/adapt-color-contrast.d.ts +38 -0
- package/package.json +1 -1
- package/dist/lime-elements/p-34d1d00a.entry.js +0 -1
- package/dist/lime-elements/p-5b31c118.entry.js +0 -1
- package/dist/lime-elements/p-70541fe3.entry.js +0 -1
|
@@ -20255,6 +20255,15 @@ function requireUtils () {
|
|
|
20255
20255
|
/** @type {(value: string) => boolean} */
|
|
20256
20256
|
const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
20257
20257
|
|
|
20258
|
+
/** @type {(value: string) => boolean} */
|
|
20259
|
+
const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
20260
|
+
|
|
20261
|
+
/** @type {(value: string) => boolean} */
|
|
20262
|
+
const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
20263
|
+
|
|
20264
|
+
/** @type {(value: string) => boolean} */
|
|
20265
|
+
const isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
20266
|
+
|
|
20258
20267
|
/**
|
|
20259
20268
|
* @param {Array<string>} input
|
|
20260
20269
|
* @returns {string}
|
|
@@ -20513,31 +20522,126 @@ function requireUtils () {
|
|
|
20513
20522
|
}
|
|
20514
20523
|
|
|
20515
20524
|
/**
|
|
20516
|
-
*
|
|
20517
|
-
*
|
|
20518
|
-
*
|
|
20525
|
+
* Re-escape RFC 3986 gen-delims that must not appear literally in the host.
|
|
20526
|
+
* After the URI regex parses, these characters cannot be literal in the host
|
|
20527
|
+
* field, so any that appear after decoding came from percent-encoding and
|
|
20528
|
+
* must be restored to prevent authority structure changes.
|
|
20529
|
+
*
|
|
20530
|
+
* @param {string} host
|
|
20531
|
+
* @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)
|
|
20532
|
+
* @returns {string}
|
|
20519
20533
|
*/
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20534
|
+
const HOST_DELIMS = { '@': '%40', '/': '%2F', '?': '%3F', '#': '%23', ':': '%3A' };
|
|
20535
|
+
const HOST_DELIM_RE = /[@/?#:]/g;
|
|
20536
|
+
const HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
20537
|
+
|
|
20538
|
+
function reescapeHostDelimiters (host, isIP) {
|
|
20539
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
20540
|
+
re.lastIndex = 0;
|
|
20541
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch])
|
|
20542
|
+
}
|
|
20543
|
+
|
|
20544
|
+
/**
|
|
20545
|
+
* Normalizes percent escapes and optionally decodes only unreserved ASCII bytes.
|
|
20546
|
+
* Reserved delimiters such as `%2F` and `%2E` stay escaped.
|
|
20547
|
+
*
|
|
20548
|
+
* @param {string} input
|
|
20549
|
+
* @param {boolean} [decodeUnreserved=false]
|
|
20550
|
+
* @returns {string}
|
|
20551
|
+
*/
|
|
20552
|
+
function normalizePercentEncoding (input, decodeUnreserved = false) {
|
|
20553
|
+
if (input.indexOf('%') === -1) {
|
|
20554
|
+
return input
|
|
20530
20555
|
}
|
|
20531
|
-
|
|
20532
|
-
|
|
20556
|
+
|
|
20557
|
+
let output = '';
|
|
20558
|
+
|
|
20559
|
+
for (let i = 0; i < input.length; i++) {
|
|
20560
|
+
if (input[i] === '%' && i + 2 < input.length) {
|
|
20561
|
+
const hex = input.slice(i + 1, i + 3);
|
|
20562
|
+
if (isHexPair(hex)) {
|
|
20563
|
+
const normalizedHex = hex.toUpperCase();
|
|
20564
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
20565
|
+
|
|
20566
|
+
if (decodeUnreserved && isUnreserved(decoded)) {
|
|
20567
|
+
output += decoded;
|
|
20568
|
+
} else {
|
|
20569
|
+
output += '%' + normalizedHex;
|
|
20570
|
+
}
|
|
20571
|
+
|
|
20572
|
+
i += 2;
|
|
20573
|
+
continue
|
|
20574
|
+
}
|
|
20575
|
+
}
|
|
20576
|
+
|
|
20577
|
+
output += input[i];
|
|
20533
20578
|
}
|
|
20534
|
-
|
|
20535
|
-
|
|
20579
|
+
|
|
20580
|
+
return output
|
|
20581
|
+
}
|
|
20582
|
+
|
|
20583
|
+
/**
|
|
20584
|
+
* Normalizes path data without turning reserved escapes into live path syntax.
|
|
20585
|
+
* Valid escapes are uppercased, raw unsafe characters are escaped, and only
|
|
20586
|
+
* unreserved bytes that are not `.` are decoded.
|
|
20587
|
+
*
|
|
20588
|
+
* @param {string} input
|
|
20589
|
+
* @returns {string}
|
|
20590
|
+
*/
|
|
20591
|
+
function normalizePathEncoding (input) {
|
|
20592
|
+
let output = '';
|
|
20593
|
+
|
|
20594
|
+
for (let i = 0; i < input.length; i++) {
|
|
20595
|
+
if (input[i] === '%' && i + 2 < input.length) {
|
|
20596
|
+
const hex = input.slice(i + 1, i + 3);
|
|
20597
|
+
if (isHexPair(hex)) {
|
|
20598
|
+
const normalizedHex = hex.toUpperCase();
|
|
20599
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
20600
|
+
|
|
20601
|
+
if (decoded !== '.' && isUnreserved(decoded)) {
|
|
20602
|
+
output += decoded;
|
|
20603
|
+
} else {
|
|
20604
|
+
output += '%' + normalizedHex;
|
|
20605
|
+
}
|
|
20606
|
+
|
|
20607
|
+
i += 2;
|
|
20608
|
+
continue
|
|
20609
|
+
}
|
|
20610
|
+
}
|
|
20611
|
+
|
|
20612
|
+
if (isPathCharacter(input[i])) {
|
|
20613
|
+
output += input[i];
|
|
20614
|
+
} else {
|
|
20615
|
+
output += escape(input[i]);
|
|
20616
|
+
}
|
|
20536
20617
|
}
|
|
20537
|
-
|
|
20538
|
-
|
|
20618
|
+
|
|
20619
|
+
return output
|
|
20620
|
+
}
|
|
20621
|
+
|
|
20622
|
+
/**
|
|
20623
|
+
* Escapes a component while preserving existing valid percent escapes.
|
|
20624
|
+
*
|
|
20625
|
+
* @param {string} input
|
|
20626
|
+
* @returns {string}
|
|
20627
|
+
*/
|
|
20628
|
+
function escapePreservingEscapes (input) {
|
|
20629
|
+
let output = '';
|
|
20630
|
+
|
|
20631
|
+
for (let i = 0; i < input.length; i++) {
|
|
20632
|
+
if (input[i] === '%' && i + 2 < input.length) {
|
|
20633
|
+
const hex = input.slice(i + 1, i + 3);
|
|
20634
|
+
if (isHexPair(hex)) {
|
|
20635
|
+
output += '%' + hex.toUpperCase();
|
|
20636
|
+
i += 2;
|
|
20637
|
+
continue
|
|
20638
|
+
}
|
|
20639
|
+
}
|
|
20640
|
+
|
|
20641
|
+
output += escape(input[i]);
|
|
20539
20642
|
}
|
|
20540
|
-
|
|
20643
|
+
|
|
20644
|
+
return output
|
|
20541
20645
|
}
|
|
20542
20646
|
|
|
20543
20647
|
/**
|
|
@@ -20559,7 +20663,7 @@ function requireUtils () {
|
|
|
20559
20663
|
if (ipV6res.isIPV6 === true) {
|
|
20560
20664
|
host = `[${ipV6res.escapedHost}]`;
|
|
20561
20665
|
} else {
|
|
20562
|
-
host =
|
|
20666
|
+
host = reescapeHostDelimiters(host, false);
|
|
20563
20667
|
}
|
|
20564
20668
|
}
|
|
20565
20669
|
uriTokens.push(host);
|
|
@@ -20575,7 +20679,10 @@ function requireUtils () {
|
|
|
20575
20679
|
utils = {
|
|
20576
20680
|
nonSimpleDomain,
|
|
20577
20681
|
recomposeAuthority,
|
|
20578
|
-
|
|
20682
|
+
reescapeHostDelimiters,
|
|
20683
|
+
normalizePercentEncoding,
|
|
20684
|
+
normalizePathEncoding,
|
|
20685
|
+
escapePreservingEscapes,
|
|
20579
20686
|
removeDotSegments,
|
|
20580
20687
|
isIPv4,
|
|
20581
20688
|
isUUID,
|
|
@@ -20866,7 +20973,7 @@ function requireFastUri () {
|
|
|
20866
20973
|
if (hasRequiredFastUri) return fastUri.exports;
|
|
20867
20974
|
hasRequiredFastUri = 1;
|
|
20868
20975
|
|
|
20869
|
-
const { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
20976
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = requireUtils();
|
|
20870
20977
|
const { SCHEMES, getSchemeHandler } = requireSchemes();
|
|
20871
20978
|
|
|
20872
20979
|
/**
|
|
@@ -20877,7 +20984,7 @@ function requireFastUri () {
|
|
|
20877
20984
|
*/
|
|
20878
20985
|
function normalize (uri, options) {
|
|
20879
20986
|
if (typeof uri === 'string') {
|
|
20880
|
-
uri = /** @type {T} */ (
|
|
20987
|
+
uri = /** @type {T} */ (normalizeString(uri, options));
|
|
20881
20988
|
} else if (typeof uri === 'object') {
|
|
20882
20989
|
uri = /** @type {T} */ (parse(serialize(uri, options), options));
|
|
20883
20990
|
}
|
|
@@ -20972,21 +21079,10 @@ function requireFastUri () {
|
|
|
20972
21079
|
* @returns {boolean}
|
|
20973
21080
|
*/
|
|
20974
21081
|
function equal (uriA, uriB, options) {
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true });
|
|
20978
|
-
} else if (typeof uriA === 'object') {
|
|
20979
|
-
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
20980
|
-
}
|
|
20981
|
-
|
|
20982
|
-
if (typeof uriB === 'string') {
|
|
20983
|
-
uriB = unescape(uriB);
|
|
20984
|
-
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
|
|
20985
|
-
} else if (typeof uriB === 'object') {
|
|
20986
|
-
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
20987
|
-
}
|
|
21082
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
21083
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
20988
21084
|
|
|
20989
|
-
return
|
|
21085
|
+
return normalizedA !== undefined && normalizedB !== undefined && normalizedA.toLowerCase() === normalizedB.toLowerCase()
|
|
20990
21086
|
}
|
|
20991
21087
|
|
|
20992
21088
|
/**
|
|
@@ -21022,13 +21118,13 @@ function requireFastUri () {
|
|
|
21022
21118
|
|
|
21023
21119
|
if (component.path !== undefined) {
|
|
21024
21120
|
if (!options.skipEscape) {
|
|
21025
|
-
component.path =
|
|
21121
|
+
component.path = escapePreservingEscapes(component.path);
|
|
21026
21122
|
|
|
21027
21123
|
if (component.scheme !== undefined) {
|
|
21028
21124
|
component.path = component.path.split('%3A').join(':');
|
|
21029
21125
|
}
|
|
21030
21126
|
} else {
|
|
21031
|
-
component.path =
|
|
21127
|
+
component.path = normalizePercentEncoding(component.path);
|
|
21032
21128
|
}
|
|
21033
21129
|
}
|
|
21034
21130
|
|
|
@@ -21079,12 +21175,29 @@ function requireFastUri () {
|
|
|
21079
21175
|
|
|
21080
21176
|
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
21081
21177
|
|
|
21178
|
+
/**
|
|
21179
|
+
* @param {import('./types/index').URIComponent} parsed
|
|
21180
|
+
* @param {RegExpMatchArray} matches
|
|
21181
|
+
* @returns {string|undefined}
|
|
21182
|
+
*/
|
|
21183
|
+
function getParseError (parsed, matches) {
|
|
21184
|
+
if (matches[2] !== undefined && parsed.path && parsed.path[0] !== '/') {
|
|
21185
|
+
return 'URI path must start with "/" when authority is present.'
|
|
21186
|
+
}
|
|
21187
|
+
|
|
21188
|
+
if (typeof parsed.port === 'number' && (parsed.port < 0 || parsed.port > 65535)) {
|
|
21189
|
+
return 'URI port is malformed.'
|
|
21190
|
+
}
|
|
21191
|
+
|
|
21192
|
+
return undefined
|
|
21193
|
+
}
|
|
21194
|
+
|
|
21082
21195
|
/**
|
|
21083
21196
|
* @param {string} uri
|
|
21084
21197
|
* @param {import('./types/index').Options} [opts]
|
|
21085
|
-
* @returns
|
|
21198
|
+
* @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean }}
|
|
21086
21199
|
*/
|
|
21087
|
-
function
|
|
21200
|
+
function parseWithStatus (uri, opts) {
|
|
21088
21201
|
const options = Object.assign({}, opts);
|
|
21089
21202
|
/** @type {import('./types/index').URIComponent} */
|
|
21090
21203
|
const parsed = {
|
|
@@ -21097,6 +21210,8 @@ function requireFastUri () {
|
|
|
21097
21210
|
fragment: undefined
|
|
21098
21211
|
};
|
|
21099
21212
|
|
|
21213
|
+
let malformedAuthorityOrPort = false;
|
|
21214
|
+
|
|
21100
21215
|
let isIP = false;
|
|
21101
21216
|
if (options.reference === 'suffix') {
|
|
21102
21217
|
if (options.scheme) {
|
|
@@ -21122,6 +21237,13 @@ function requireFastUri () {
|
|
|
21122
21237
|
if (isNaN(parsed.port)) {
|
|
21123
21238
|
parsed.port = matches[5];
|
|
21124
21239
|
}
|
|
21240
|
+
|
|
21241
|
+
const parseError = getParseError(parsed, matches);
|
|
21242
|
+
if (parseError !== undefined) {
|
|
21243
|
+
parsed.error = parsed.error || parseError;
|
|
21244
|
+
malformedAuthorityOrPort = true;
|
|
21245
|
+
}
|
|
21246
|
+
|
|
21125
21247
|
if (parsed.host) {
|
|
21126
21248
|
const ipv4result = isIPv4(parsed.host);
|
|
21127
21249
|
if (ipv4result === false) {
|
|
@@ -21170,14 +21292,18 @@ function requireFastUri () {
|
|
|
21170
21292
|
parsed.scheme = unescape(parsed.scheme);
|
|
21171
21293
|
}
|
|
21172
21294
|
if (parsed.host !== undefined) {
|
|
21173
|
-
parsed.host = unescape(parsed.host);
|
|
21295
|
+
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
21174
21296
|
}
|
|
21175
21297
|
}
|
|
21176
21298
|
if (parsed.path) {
|
|
21177
|
-
parsed.path =
|
|
21299
|
+
parsed.path = normalizePathEncoding(parsed.path);
|
|
21178
21300
|
}
|
|
21179
21301
|
if (parsed.fragment) {
|
|
21180
|
-
|
|
21302
|
+
try {
|
|
21303
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
21304
|
+
} catch {
|
|
21305
|
+
parsed.error = parsed.error || 'URI malformed';
|
|
21306
|
+
}
|
|
21181
21307
|
}
|
|
21182
21308
|
}
|
|
21183
21309
|
|
|
@@ -21188,7 +21314,54 @@ function requireFastUri () {
|
|
|
21188
21314
|
} else {
|
|
21189
21315
|
parsed.error = parsed.error || 'URI can not be parsed.';
|
|
21190
21316
|
}
|
|
21191
|
-
return parsed
|
|
21317
|
+
return { parsed, malformedAuthorityOrPort }
|
|
21318
|
+
}
|
|
21319
|
+
|
|
21320
|
+
/**
|
|
21321
|
+
* @param {string} uri
|
|
21322
|
+
* @param {import('./types/index').Options} [opts]
|
|
21323
|
+
* @returns
|
|
21324
|
+
*/
|
|
21325
|
+
function parse (uri, opts) {
|
|
21326
|
+
return parseWithStatus(uri, opts).parsed
|
|
21327
|
+
}
|
|
21328
|
+
|
|
21329
|
+
/**
|
|
21330
|
+
* @param {string} uri
|
|
21331
|
+
* @param {import('./types/index').Options} [opts]
|
|
21332
|
+
* @returns {string}
|
|
21333
|
+
*/
|
|
21334
|
+
function normalizeString (uri, opts) {
|
|
21335
|
+
return normalizeStringWithStatus(uri, opts).normalized
|
|
21336
|
+
}
|
|
21337
|
+
|
|
21338
|
+
/**
|
|
21339
|
+
* @param {string} uri
|
|
21340
|
+
* @param {import('./types/index').Options} [opts]
|
|
21341
|
+
* @returns {{ normalized: string, malformedAuthorityOrPort: boolean }}
|
|
21342
|
+
*/
|
|
21343
|
+
function normalizeStringWithStatus (uri, opts) {
|
|
21344
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
21345
|
+
return {
|
|
21346
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
21347
|
+
malformedAuthorityOrPort
|
|
21348
|
+
}
|
|
21349
|
+
}
|
|
21350
|
+
|
|
21351
|
+
/**
|
|
21352
|
+
* @param {import ('./types/index').URIComponent|string} uri
|
|
21353
|
+
* @param {import('./types/index').Options} [opts]
|
|
21354
|
+
* @returns {string|undefined}
|
|
21355
|
+
*/
|
|
21356
|
+
function normalizeComparableURI (uri, opts) {
|
|
21357
|
+
if (typeof uri === 'string') {
|
|
21358
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
21359
|
+
return malformedAuthorityOrPort ? undefined : normalized
|
|
21360
|
+
}
|
|
21361
|
+
|
|
21362
|
+
if (typeof uri === 'object') {
|
|
21363
|
+
return serialize(uri, opts)
|
|
21364
|
+
}
|
|
21192
21365
|
}
|
|
21193
21366
|
|
|
21194
21367
|
const fastUri$1 = {
|
|
@@ -4,6 +4,7 @@ var index$1 = require('./index-BjHIBY-I.js');
|
|
|
4
4
|
var markdownParser = require('./markdown-parser-BIa99LAc.js');
|
|
5
5
|
var config = require('./config-dit--4m5.js');
|
|
6
6
|
var index = require('./index-BgFEL6FF.js');
|
|
7
|
+
var adaptColorContrast = require('./adapt-color-contrast-Beo1IEl_.js');
|
|
7
8
|
require('./_commonjsHelpers-CFO10eej.js');
|
|
8
9
|
|
|
9
10
|
class ImageIntersectionObserver {
|
|
@@ -1102,6 +1103,20 @@ const Markdown = class {
|
|
|
1102
1103
|
* whitespace (`<br />` or ` `).
|
|
1103
1104
|
*/
|
|
1104
1105
|
this.removeEmptyParagraphs = true;
|
|
1106
|
+
/**
|
|
1107
|
+
* Adapt rendered inline `color:` declarations to the surrounding
|
|
1108
|
+
* surface. After each markdown re-render the component walks the
|
|
1109
|
+
* rendered DOM and removes any inline `color` whose contrast against
|
|
1110
|
+
* the resolved background falls below WCAG 3:1, letting the surface's
|
|
1111
|
+
* themed text color inherit through. Brand colors that already meet
|
|
1112
|
+
* contrast are left alone.
|
|
1113
|
+
*
|
|
1114
|
+
* Default `false` so the component remains a neutral renderer; turn
|
|
1115
|
+
* this on for surfaces that render externally-authored content
|
|
1116
|
+
* (e.g. imported email bodies) where the host application's theme
|
|
1117
|
+
* drives the surrounding text color.
|
|
1118
|
+
*/
|
|
1119
|
+
this.adaptColorContrast = false;
|
|
1105
1120
|
this.imageIntersectionObserver = null;
|
|
1106
1121
|
}
|
|
1107
1122
|
async textChanged() {
|
|
@@ -1127,6 +1142,9 @@ const Markdown = class {
|
|
|
1127
1142
|
// into JS properties. URL sanitization happens here because
|
|
1128
1143
|
// rehype-sanitize can't inspect values inside JSON strings.
|
|
1129
1144
|
hydrateCustomElements(this.rootElement, combinedWhitelist);
|
|
1145
|
+
if (this.adaptColorContrast) {
|
|
1146
|
+
adaptColorContrast.adaptColorContrast(this.rootElement);
|
|
1147
|
+
}
|
|
1130
1148
|
this.setupImageIntersectionObserver();
|
|
1131
1149
|
}
|
|
1132
1150
|
catch (error) {
|
|
@@ -1139,6 +1157,9 @@ const Markdown = class {
|
|
|
1139
1157
|
handleRemoveEmptyParagraphsChange() {
|
|
1140
1158
|
return this.textChanged();
|
|
1141
1159
|
}
|
|
1160
|
+
handleAdaptColorContrastChange() {
|
|
1161
|
+
return this.textChanged();
|
|
1162
|
+
}
|
|
1142
1163
|
async componentDidLoad() {
|
|
1143
1164
|
this.textChanged();
|
|
1144
1165
|
}
|
|
@@ -1146,7 +1167,7 @@ const Markdown = class {
|
|
|
1146
1167
|
this.cleanupImageIntersectionObserver();
|
|
1147
1168
|
}
|
|
1148
1169
|
render() {
|
|
1149
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1170
|
+
return (index$1.h(index$1.Host, { key: '3e247fb8cee298825b5f9330fb30a1a71d634a1a' }, index$1.h("div", { key: '5f469a73b6722096ba9f0965355c5d5221753097', id: "markdown", ref: (el) => (this.rootElement = el) })));
|
|
1150
1171
|
}
|
|
1151
1172
|
setupImageIntersectionObserver() {
|
|
1152
1173
|
if (this.lazyLoadImages) {
|
|
@@ -1168,6 +1189,9 @@ const Markdown = class {
|
|
|
1168
1189
|
}],
|
|
1169
1190
|
"removeEmptyParagraphs": [{
|
|
1170
1191
|
"handleRemoveEmptyParagraphsChange": 0
|
|
1192
|
+
}],
|
|
1193
|
+
"adaptColorContrast": [{
|
|
1194
|
+
"handleAdaptColorContrastChange": 0
|
|
1171
1195
|
}]
|
|
1172
1196
|
}; }
|
|
1173
1197
|
};
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ var index = require('./index-BjHIBY-I.js');
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy(JSON.parse("[[\"limel-icon.cjs\",[[1,\"limel-icon\",{\"size\":[513],\"name\":[513],\"badge\":[516]},null,{\"name\":[{\"loadIcon\":0}]}]]],[\"limel-text-editor.cjs\",[[17,\"limel-text-editor\",{\"contentType\":[1,\"content-type\"],\"language\":[513],\"disabled\":[516],\"readonly\":[516],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"label\":[513],\"invalid\":[516],\"value\":[513],\"customElements\":[16],\"triggers\":[16],\"required\":[516],\"allowResize\":[516,\"allow-resize\"],\"ui\":[513]}]]],[\"limel-card.cjs\",[[257,\"limel-card\",{\"heading\":[513],\"subheading\":[513],\"image\":[16],\"icon\":[513],\"value\":[1],\"actions\":[16],\"clickable\":[516],\"orientation\":[513],\"selected\":[516],\"show3dEffect\":[516,\"show-3d-effect\"],\"canScrollUp\":[32],\"canScrollDown\":[32]}]]],[\"limel-file.cjs\",[[1,\"limel-file\",{\"value\":[16],\"label\":[513],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"accept\":[513],\"language\":[1]}]]],[\"limel-code-diff.cjs\",[[1,\"limel-code-diff\",{\"oldValue\":[1,\"old-value\"],\"newValue\":[1,\"new-value\"],\"oldHeading\":[513,\"old-heading\"],\"newHeading\":[513,\"new-heading\"],\"layout\":[513],\"contextLines\":[514,\"context-lines\"],\"lineWrapping\":[516,\"line-wrapping\"],\"language\":[513],\"reformatJson\":[516,\"reformat-json\"],\"translationLanguage\":[513,\"translation-language\"],\"diffResult\":[32],\"liveAnnouncement\":[32],\"copyState\":[32],\"searchVisible\":[32],\"searchTerm\":[32],\"currentMatchIndex\":[32]},null,{\"oldValue\":[{\"watchInputs\":0}],\"newValue\":[{\"watchInputs\":0}],\"contextLines\":[{\"watchInputs\":0}],\"reformatJson\":[{\"watchInputs\":0}],\"layout\":[{\"watchInputs\":0}]}]]],[\"limel-file-viewer.cjs\",[[1,\"limel-file-viewer\",{\"url\":[513],\"filename\":[513],\"alt\":[513],\"allowFullscreen\":[516,\"allow-fullscreen\"],\"allowOpenInNewTab\":[516,\"allow-open-in-new-tab\"],\"allowDownload\":[516,\"allow-download\"],\"language\":[1],\"officeViewer\":[513,\"office-viewer\"],\"actions\":[16],\"isFullscreen\":[32],\"fileType\":[32],\"loading\":[32],\"fileUrl\":[32],\"email\":[32]},null,{\"url\":[{\"watchUrl\":0}]}]]],[\"limel-list-item.cjs\",[[0,\"limel-list-item\",{\"language\":[513],\"value\":[8],\"text\":[513],\"secondaryText\":[513,\"secondary-text\"],\"disabled\":[516],\"icon\":[1],\"iconSize\":[513,\"icon-size\"],\"badgeIcon\":[516,\"badge-icon\"],\"selected\":[516],\"actions\":[16],\"primaryComponent\":[16],\"image\":[16],\"type\":[513]}]]],[\"limel-picker.cjs\",[[17,\"limel-picker\",{\"disabled\":[4],\"readonly\":[516],\"label\":[1],\"searchLabel\":[1,\"search-label\"],\"helperText\":[513,\"helper-text\"],\"leadingIcon\":[1,\"leading-icon\"],\"emptyResultMessage\":[1,\"empty-result-message\"],\"required\":[4],\"invalid\":[516],\"value\":[16],\"searcher\":[16],\"allItems\":[16],\"multiple\":[4],\"delimiter\":[513],\"actions\":[16],\"actionPosition\":[1,\"action-position\"],\"actionScrollBehavior\":[1,\"action-scroll-behavior\"],\"badgeIcons\":[516,\"badge-icons\"],\"items\":[32],\"textValue\":[32],\"loading\":[32],\"chips\":[32]},null,{\"disabled\":[{\"onDisabledChange\":0}],\"value\":[{\"onChangeValue\":0}]}]]],[\"limel-split-button.cjs\",[[17,\"limel-split-button\",{\"label\":[513],\"primary\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"items\":[16]}]]],[\"limel-color-picker.cjs\",[[1,\"limel-color-picker\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"tooltipLabel\":[513,\"tooltip-label\"],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"placeholder\":[513],\"manualInput\":[516,\"manual-input\"],\"palette\":[16],\"paletteColumnCount\":[514,\"palette-column-count\"],\"isOpen\":[32]}]]],[\"limel-profile-picture.cjs\",[[1,\"limel-profile-picture\",{\"language\":[513],\"label\":[513],\"icon\":[1],\"helperText\":[1,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"invalid\":[516],\"loading\":[516],\"value\":[1],\"imageFit\":[513,\"image-fit\"],\"accept\":[513],\"resize\":[16],\"objectUrl\":[32],\"imageError\":[32],\"isErrorMessagePopoverOpen\":[32]},null,{\"value\":[{\"handleValueChange\":0}]}]]],[\"limel-dock.cjs\",[[1,\"limel-dock\",{\"dockItems\":[16],\"dockFooterItems\":[16],\"accessibleLabel\":[513,\"accessible-label\"],\"expanded\":[516],\"allowResize\":[516,\"allow-resize\"],\"mobileBreakPoint\":[514,\"mobile-break-point\"],\"useMobileLayout\":[32]}]]],[\"limel-snackbar.cjs\",[[1,\"limel-snackbar\",{\"open\":[516],\"message\":[1],\"timeout\":[514],\"actionText\":[1,\"action-text\"],\"dismissible\":[4],\"multiline\":[4],\"language\":[1],\"offset\":[32],\"isOpen\":[32],\"closing\":[32],\"show\":[64]},[[0,\"changeOffset\",\"onChangeIndex\"]],{\"open\":[{\"watchOpen\":0}]}]]],[\"limel-date-picker.cjs\",[[1,\"limel-date-picker\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"placeholder\":[513],\"helperText\":[513,\"helper-text\"],\"required\":[516],\"value\":[16],\"type\":[513],\"format\":[513],\"language\":[513],\"formatter\":[16],\"internalFormat\":[32],\"showPortal\":[32]}]]],[\"limel-button-group.cjs\",[[1,\"limel-button-group\",{\"value\":[16],\"disabled\":[516],\"selectedButtonId\":[32]},null,{\"value\":[{\"valueChanged\":0}]}]]],[\"limel-chart.cjs\",[[1,\"limel-chart\",{\"language\":[513],\"accessibleLabel\":[513,\"accessible-label\"],\"accessibleItemsLabel\":[513,\"accessible-items-label\"],\"accessibleValuesLabel\":[513,\"accessible-values-label\"],\"displayAxisLabels\":[516,\"display-axis-labels\"],\"displayItemText\":[516,\"display-item-text\"],\"displayItemValue\":[516,\"display-item-value\"],\"items\":[16],\"type\":[513],\"orientation\":[513],\"maxValue\":[514,\"max-value\"],\"axisIncrement\":[514,\"axis-increment\"],\"loading\":[516]},null,{\"items\":[{\"handleChange\":0}],\"axisIncrement\":[{\"handleChange\":0}],\"maxValue\":[{\"handleChange\":0}]}]]],[\"limel-select.cjs\",[[1,\"limel-select\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"required\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"value\":[16],\"options\":[16],\"multiple\":[4],\"menuOpen\":[32]},null,{\"value\":[{\"resetHasChanged\":0}],\"options\":[{\"resetHasChanged\":0},{\"updateHasPrimaryComponent\":0}],\"menuOpen\":[{\"watchOpen\":0}]}]]],[\"limel-help.cjs\",[[1,\"limel-help\",{\"value\":[1],\"trigger\":[1],\"readMoreLink\":[16],\"openDirection\":[513,\"open-direction\"],\"isOpen\":[32]}]]],[\"limel-info-tile.cjs\",[[257,\"limel-info-tile\",{\"value\":[520],\"icon\":[1],\"label\":[513],\"prefix\":[513],\"suffix\":[513],\"disabled\":[516],\"badge\":[520],\"loading\":[516],\"link\":[16],\"progress\":[16],\"hasPrimarySlot\":[32]}]]],[\"limel-table.cjs\",[[1,\"limel-table\",{\"data\":[16],\"columns\":[16],\"mode\":[513],\"layout\":[513],\"pageSize\":[514,\"page-size\"],\"totalRows\":[514,\"total-rows\"],\"sorting\":[16],\"activeRow\":[1040],\"movableColumns\":[516,\"movable-columns\"],\"movableRows\":[516,\"movable-rows\"],\"sortableColumns\":[516,\"sortable-columns\"],\"loading\":[516],\"page\":[514],\"emptyMessage\":[1,\"empty-message\"],\"aggregates\":[16],\"selectable\":[516],\"selection\":[16],\"language\":[513],\"paginationLocation\":[513,\"pagination-location\"]},null,{\"totalRows\":[{\"totalRowsChanged\":0}],\"pageSize\":[{\"pageSizeChanged\":0}],\"page\":[{\"pageChanged\":0}],\"activeRow\":[{\"activeRowChanged\":0}],\"data\":[{\"updateData\":0}],\"columns\":[{\"updateColumns\":0}],\"aggregates\":[{\"updateAggregates\":0}],\"selection\":[{\"updateSelection\":0}],\"selectable\":[{\"updateSelectable\":0}],\"movableRows\":[{\"updateMovableRows\":0}],\"sortableColumns\":[{\"updateSortableColumns\":0}],\"sorting\":[{\"updateSorting\":0}]}]]],[\"limel-drag-handle.cjs\",[[0,\"limel-drag-handle\",{\"dragDirection\":[513,\"drag-direction\"],\"tooltipOpenDirection\":[513,\"tooltip-open-direction\"],\"language\":[513]}]]],[\"limel-shortcut.cjs\",[[1,\"limel-shortcut\",{\"icon\":[513],\"label\":[513],\"disabled\":[516],\"badge\":[520],\"link\":[16]}]]],[\"limel-switch.cjs\",[[1,\"limel-switch\",{\"label\":[513],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"value\":[516],\"helperText\":[513,\"helper-text\"],\"readonlyLabels\":[16],\"fieldId\":[32]}]]],[\"limel-tab-panel.cjs\",[[257,\"limel-tab-panel\",{\"tabs\":[1040]},null,{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-code-editor.cjs\",[[1,\"limel-code-editor\",{\"value\":[1],\"language\":[1],\"readonly\":[516],\"disabled\":[516],\"invalid\":[516],\"required\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"lineNumbers\":[516,\"line-numbers\"],\"lineWrapping\":[516,\"line-wrapping\"],\"fold\":[516],\"lint\":[516],\"colorScheme\":[513,\"color-scheme\"],\"translationLanguage\":[513,\"translation-language\"],\"showCopyButton\":[516,\"show-copy-button\"],\"random\":[32],\"wasCopied\":[32]},null,{\"value\":[{\"watchValue\":0}],\"disabled\":[{\"watchDisabled\":0}],\"readonly\":[{\"watchReadonly\":0}],\"invalid\":[{\"watchInvalid\":0}],\"required\":[{\"watchRequired\":0}],\"helperText\":[{\"watchHelperText\":0}]}]]],[\"limel-dialog.cjs\",[[257,\"limel-dialog\",{\"heading\":[1],\"fullscreen\":[516],\"open\":[1540],\"closingActions\":[16]},null,{\"open\":[{\"watchHandler\":0}],\"closingActions\":[{\"closingActionsChanged\":0}]}]]],[\"limel-menu-item-meta.cjs\",[[1,\"limel-menu-item-meta\",{\"commandText\":[513,\"command-text\"],\"hotkey\":[513],\"disabled\":[516],\"badge\":[8],\"showChevron\":[4,\"show-chevron\"]}]]],[\"limel-progress-flow.cjs\",[[1,\"limel-progress-flow\",{\"flowItems\":[16],\"disabled\":[4],\"readonly\":[4]}]]],[\"limel-slider.cjs\",[[1,\"limel-slider\",{\"disabled\":[516],\"readonly\":[516],\"factor\":[514],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"required\":[516],\"invalid\":[516],\"displaysPercentageColors\":[516,\"displays-percentage-colors\"],\"unit\":[513],\"value\":[514],\"valuemax\":[514],\"valuemin\":[514],\"step\":[514],\"percentageClass\":[32],\"displayValue\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-banner.cjs\",[[257,\"limel-banner\",{\"message\":[513],\"icon\":[513],\"isOpen\":[32],\"open\":[64],\"close\":[64]}]]],[\"limel-form.cjs\",[[1,\"limel-form\",{\"schema\":[16],\"value\":[16],\"disabled\":[4],\"propsFactory\":[16],\"transformErrors\":[16],\"errors\":[16]}]]],[\"limel-radio-button-group.cjs\",[[0,\"limel-radio-button-group\",{\"items\":[16],\"selectedItem\":[16],\"disabled\":[516],\"badgeIcons\":[516,\"badge-icons\"],\"maxLinesSecondaryText\":[514,\"max-lines-secondary-text\"]}]]],[\"limel-ai-avatar.cjs\",[[1,\"limel-ai-avatar\",{\"isThinking\":[516,\"is-thinking\"],\"language\":[513]}]]],[\"limel-config.cjs\",[[1,\"limel-config\",{\"config\":[16]}]]],[\"limel-flex-container.cjs\",[[257,\"limel-flex-container\",{\"direction\":[513],\"justify\":[513],\"align\":[513],\"reverse\":[516]}]]],[\"limel-grid.cjs\",[[257,\"limel-grid\"]]],[\"limel-masonry-layout.cjs\",[[257,\"limel-masonry-layout\",{\"ordered\":[516],\"containerHeight\":[32]},null,{\"ordered\":[{\"onOrderedChange\":0}]}]]],[\"limel-prosemirror-adapter.cjs\",[[17,\"limel-prosemirror-adapter\",{\"contentType\":[1,\"content-type\"],\"value\":[1],\"language\":[513],\"disabled\":[516],\"customElements\":[16],\"triggerCharacters\":[16],\"ui\":[1],\"view\":[32],\"actionBarItems\":[32],\"link\":[32],\"isLinkMenuOpen\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-email-viewer.cjs\",[[257,\"limel-email-viewer\",{\"email\":[16],\"fallbackUrl\":[513,\"fallback-url\"],\"language\":[513],\"allowRemoteImages\":[4,\"allow-remote-images\"],\"allowRemoteImagesState\":[32]},null,{\"email\":[{\"resetAllowRemoteImages\":0}]}]]],[\"limel-dock-button.cjs\",[[0,\"limel-dock-button\",{\"item\":[16],\"expanded\":[516],\"useMobileLayout\":[516,\"use-mobile-layout\"],\"isOpen\":[32]},null,{\"isOpen\":[{\"openWatcher\":0}]}]]],[\"limel-color-picker-palette.cjs\",[[17,\"limel-color-picker-palette\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"required\":[516],\"invalid\":[516],\"manualInput\":[516,\"manual-input\"],\"columnCount\":[514,\"column-count\"],\"palette\":[16]}]]],[\"limel-checkbox.cjs\",[[1,\"limel-checkbox\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"checked\":[516],\"indeterminate\":[516],\"required\":[516],\"readonlyLabels\":[16],\"modified\":[32]},null,{\"checked\":[{\"handleCheckedChange\":0}],\"indeterminate\":[{\"handleIndeterminateChange\":0}],\"readonly\":[{\"handleReadonlyChange\":0}]}]]],[\"limel-tab-bar.cjs\",[[1,\"limel-tab-bar\",{\"tabs\":[1040],\"canScrollLeft\":[32],\"canScrollRight\":[32]},[[9,\"resize\",\"handleWindowResize\"]],{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-callout.cjs\",[[257,\"limel-callout\",{\"heading\":[513],\"icon\":[513],\"type\":[513],\"language\":[1]}]]],[\"limel-header.cjs\",[[257,\"limel-header\",{\"icon\":[1],\"heading\":[1],\"subheading\":[1],\"supportingText\":[1,\"supporting-text\"],\"subheadingDivider\":[1,\"subheading-divider\"]}]]],[\"limel-help-content.cjs\",[[1,\"limel-help-content\",{\"value\":[1],\"readMoreLink\":[16]}]]],[\"limel-progress-flow-item.cjs\",[[0,\"limel-progress-flow-item\",{\"item\":[16],\"disabled\":[4],\"readonly\":[4],\"currentStep\":[4,\"current-step\"]}]]],[\"limel-circular-progress.cjs\",[[1,\"limel-circular-progress\",{\"value\":[2],\"maxValue\":[2,\"max-value\"],\"prefix\":[513],\"suffix\":[1],\"displayPercentageColors\":[4,\"display-percentage-colors\"],\"size\":[513]}]]],[\"limel-flatpickr-adapter.cjs\",[[1,\"limel-flatpickr-adapter\",{\"value\":[16],\"type\":[1],\"format\":[1],\"isOpen\":[4,\"is-open\"],\"inputElement\":[16],\"language\":[1],\"formatter\":[16]}]]],[\"limel-radio-button.cjs\",[[0,\"limel-radio-button\",{\"checked\":[516],\"disabled\":[516],\"id\":[1],\"label\":[1],\"onChange\":[16]}]]],[\"limel-text-editor-link-menu.cjs\",[[1,\"limel-text-editor-link-menu\",{\"link\":[16],\"language\":[513],\"isOpen\":[516,\"is-open\"]}]]],[\"limel-collapsible-section.cjs\",[[257,\"limel-collapsible-section\",{\"isOpen\":[1540,\"is-open\"],\"header\":[513],\"icon\":[1],\"invalid\":[516],\"actions\":[16],\"language\":[513]}]]],[\"limel-3d-hover-effect-glow.cjs\",[[1,\"limel-3d-hover-effect-glow\"]]],[\"limel-file-dropzone_2.cjs\",[[257,\"limel-file-dropzone\",{\"accept\":[513],\"disabled\":[4],\"text\":[1],\"helperText\":[1,\"helper-text\"],\"hasFileToDrop\":[32]}],[257,\"limel-file-input\",{\"accept\":[513],\"disabled\":[516],\"multiple\":[516]}]]],[\"limel-dynamic-label.cjs\",[[1,\"limel-dynamic-label\",{\"value\":[8],\"defaultLabel\":[16],\"labels\":[16]}]]],[\"limel-linear-progress.cjs\",[[1,\"limel-linear-progress\",{\"language\":[513],\"value\":[514],\"indeterminate\":[516],\"accessibleLabel\":[513,\"accessible-label\"]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-badge.cjs\",[[1,\"limel-badge\",{\"label\":[520]}]]],[\"limel-helper-line_2.cjs\",[[260,\"limel-notched-outline\",{\"required\":[516],\"readonly\":[516],\"invalid\":[516],\"disabled\":[516],\"label\":[513],\"labelId\":[513,\"label-id\"],\"hasValue\":[516,\"has-value\"],\"hasLeadingIcon\":[516,\"has-leading-icon\"],\"hasFloatingLabel\":[516,\"has-floating-label\"]}],[1,\"limel-helper-line\",{\"helperText\":[513,\"helper-text\"],\"length\":[514],\"maxLength\":[514,\"max-length\"],\"invalid\":[516],\"helperTextId\":[513,\"helper-text-id\"]}]]],[\"limel-chip_2.cjs\",[[17,\"limel-chip-set\",{\"value\":[16],\"type\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"inputType\":[513,\"input-type\"],\"maxItems\":[514,\"max-items\"],\"required\":[516],\"searchLabel\":[513,\"search-label\"],\"emptyInputOnBlur\":[516,\"empty-input-on-blur\"],\"clearAllButton\":[4,\"clear-all-button\"],\"leadingIcon\":[513,\"leading-icon\"],\"delimiter\":[513],\"autocomplete\":[513],\"language\":[1],\"editMode\":[32],\"textValue\":[32],\"blurred\":[32],\"inputChipIndexSelected\":[32],\"selectedChipIds\":[32],\"getEditMode\":[64],\"setFocus\":[64],\"emptyInput\":[64]},null,{\"value\":[{\"handleChangeChips\":0}]}],[17,\"limel-chip\",{\"language\":[513],\"text\":[513],\"icon\":[1],\"image\":[16],\"link\":[16],\"badge\":[520],\"disabled\":[516],\"readonly\":[516],\"selected\":[516],\"invalid\":[516],\"removable\":[516],\"type\":[513],\"loading\":[516],\"progress\":[514],\"identifier\":[520],\"size\":[513],\"menuItems\":[16]}]]],[\"limel-button.cjs\",[[17,\"limel-button\",{\"label\":[513],\"primary\":[516],\"outlined\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"justLoaded\":[32]},null,{\"loading\":[{\"loadingWatcher\":0}]}]]],[\"limel-icon-button.cjs\",[[17,\"limel-icon-button\",{\"icon\":[1],\"elevated\":[516],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"disabled\":[516]}]]],[\"limel-markdown.cjs\",[[1,\"limel-markdown\",{\"value\":[1],\"whitelist\":[16],\"lazyLoadImages\":[516,\"lazy-load-images\"],\"removeEmptyParagraphs\":[516,\"remove-empty-paragraphs\"]},null,{\"value\":[{\"textChanged\":0}],\"whitelist\":[{\"handleWhitelistChange\":0}],\"removeEmptyParagraphs\":[{\"handleRemoveEmptyParagraphsChange\":0}]}]]],[\"limel-hotkey_4.cjs\",[[1,\"limel-tooltip\",{\"elementId\":[513,\"element-id\"],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"hotkey\":[513],\"maxlength\":[514],\"openDirection\":[513,\"open-direction\"],\"open\":[32]}],[1,\"limel-tooltip-content\",{\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"maxlength\":[514],\"hotkey\":[513]}],[1,\"limel-hotkey\",{\"value\":[513],\"disabled\":[516]}],[257,\"limel-portal\",{\"openDirection\":[513,\"open-direction\"],\"position\":[513],\"containerId\":[513,\"container-id\"],\"containerStyle\":[16],\"inheritParentWidth\":[516,\"inherit-parent-width\"],\"visible\":[516],\"anchor\":[16]},null,{\"visible\":[{\"onVisible\":0}]}]]],[\"limel-popover_2.cjs\",[[257,\"limel-popover\",{\"open\":[4],\"openDirection\":[513,\"open-direction\"]},null,{\"open\":[{\"watchOpen\":0}]}],[1,\"limel-popover-surface\",{\"contentCollection\":[16]}]]],[\"limel-breadcrumbs_7.cjs\",[[257,\"limel-menu\",{\"items\":[16],\"disabled\":[516],\"openDirection\":[513,\"open-direction\"],\"surfaceWidth\":[513,\"surface-width\"],\"open\":[1540],\"badgeIcons\":[516,\"badge-icons\"],\"gridLayout\":[516,\"grid-layout\"],\"loading\":[516],\"currentSubMenu\":[1040],\"rootItem\":[16],\"searcher\":[16],\"searchPlaceholder\":[1,\"search-placeholder\"],\"emptyResultMessage\":[1,\"empty-result-message\"],\"keepOpenOnSelect\":[516,\"keep-open-on-select\"],\"loadingSubItems\":[32],\"searchValue\":[32],\"searchResults\":[32]},null,{\"items\":[{\"itemsWatcher\":0}],\"open\":[{\"openWatcher\":0}]}],[1,\"limel-breadcrumbs\",{\"items\":[16],\"divider\":[1]}],[17,\"limel-menu-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"]},null,{\"items\":[{\"itemsChanged\":0}]}],[17,\"limel-input-field\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"placeholder\":[513],\"helperText\":[513,\"helper-text\"],\"prefix\":[513],\"suffix\":[513],\"required\":[516],\"value\":[513],\"trailingIcon\":[513,\"trailing-icon\"],\"leadingIcon\":[513,\"leading-icon\"],\"pattern\":[513],\"type\":[513],\"formatNumber\":[516,\"format-number\"],\"step\":[520],\"max\":[514],\"min\":[514],\"maxlength\":[514],\"minlength\":[514],\"completions\":[16],\"showLink\":[516,\"show-link\"],\"locale\":[513],\"isFocused\":[32],\"wasInvalid\":[32],\"showCompletions\":[32],\"getSelectionStart\":[64],\"getSelectionEnd\":[64],\"getSelectionDirection\":[64]},null,{\"value\":[{\"valueWatcher\":0}],\"completions\":[{\"completionsWatcher\":0}]}],[257,\"limel-menu-surface\",{\"open\":[4],\"allowClicksElement\":[16]}],[1,\"limel-spinner\",{\"size\":[513],\"limeBranded\":[4,\"lime-branded\"]}],[17,\"limel-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"],\"type\":[1],\"maxLinesSecondaryText\":[2,\"max-lines-secondary-text\"]},null,{\"type\":[{\"handleType\":0}],\"items\":[{\"itemsChanged\":0}]}]]],[\"limel-action-bar_3.cjs\",[[1,\"limel-action-bar\",{\"actions\":[16],\"accessibleLabel\":[513,\"accessible-label\"],\"language\":[1],\"layout\":[513],\"collapsible\":[516],\"openDirection\":[513,\"open-direction\"],\"overflowCutoff\":[32]}],[0,\"limel-action-bar-overflow-menu\",{\"items\":[16],\"openDirection\":[513,\"open-direction\"]}],[0,\"limel-action-bar-item\",{\"item\":[16],\"isVisible\":[516,\"is-visible\"],\"selected\":[516]}]]]]"), options);
|
|
8
|
+
return index.bootstrapLazy(JSON.parse("[[\"limel-icon.cjs\",[[1,\"limel-icon\",{\"size\":[513],\"name\":[513],\"badge\":[516]},null,{\"name\":[{\"loadIcon\":0}]}]]],[\"limel-text-editor.cjs\",[[17,\"limel-text-editor\",{\"contentType\":[1,\"content-type\"],\"language\":[513],\"disabled\":[516],\"readonly\":[516],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"label\":[513],\"invalid\":[516],\"value\":[513],\"customElements\":[16],\"triggers\":[16],\"required\":[516],\"allowResize\":[516,\"allow-resize\"],\"ui\":[513]}]]],[\"limel-card.cjs\",[[257,\"limel-card\",{\"heading\":[513],\"subheading\":[513],\"image\":[16],\"icon\":[513],\"value\":[1],\"actions\":[16],\"clickable\":[516],\"orientation\":[513],\"selected\":[516],\"show3dEffect\":[516,\"show-3d-effect\"],\"canScrollUp\":[32],\"canScrollDown\":[32]}]]],[\"limel-file.cjs\",[[1,\"limel-file\",{\"value\":[16],\"label\":[513],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"accept\":[513],\"language\":[1]}]]],[\"limel-code-diff.cjs\",[[1,\"limel-code-diff\",{\"oldValue\":[1,\"old-value\"],\"newValue\":[1,\"new-value\"],\"oldHeading\":[513,\"old-heading\"],\"newHeading\":[513,\"new-heading\"],\"layout\":[513],\"contextLines\":[514,\"context-lines\"],\"lineWrapping\":[516,\"line-wrapping\"],\"language\":[513],\"reformatJson\":[516,\"reformat-json\"],\"translationLanguage\":[513,\"translation-language\"],\"diffResult\":[32],\"liveAnnouncement\":[32],\"copyState\":[32],\"searchVisible\":[32],\"searchTerm\":[32],\"currentMatchIndex\":[32]},null,{\"oldValue\":[{\"watchInputs\":0}],\"newValue\":[{\"watchInputs\":0}],\"contextLines\":[{\"watchInputs\":0}],\"reformatJson\":[{\"watchInputs\":0}],\"layout\":[{\"watchInputs\":0}]}]]],[\"limel-file-viewer.cjs\",[[1,\"limel-file-viewer\",{\"url\":[513],\"filename\":[513],\"alt\":[513],\"allowFullscreen\":[516,\"allow-fullscreen\"],\"allowOpenInNewTab\":[516,\"allow-open-in-new-tab\"],\"allowDownload\":[516,\"allow-download\"],\"language\":[1],\"officeViewer\":[513,\"office-viewer\"],\"actions\":[16],\"isFullscreen\":[32],\"fileType\":[32],\"loading\":[32],\"fileUrl\":[32],\"email\":[32]},null,{\"url\":[{\"watchUrl\":0}]}]]],[\"limel-list-item.cjs\",[[0,\"limel-list-item\",{\"language\":[513],\"value\":[8],\"text\":[513],\"secondaryText\":[513,\"secondary-text\"],\"disabled\":[516],\"icon\":[1],\"iconSize\":[513,\"icon-size\"],\"badgeIcon\":[516,\"badge-icon\"],\"selected\":[516],\"actions\":[16],\"primaryComponent\":[16],\"image\":[16],\"type\":[513]}]]],[\"limel-picker.cjs\",[[17,\"limel-picker\",{\"disabled\":[4],\"readonly\":[516],\"label\":[1],\"searchLabel\":[1,\"search-label\"],\"helperText\":[513,\"helper-text\"],\"leadingIcon\":[1,\"leading-icon\"],\"emptyResultMessage\":[1,\"empty-result-message\"],\"required\":[4],\"invalid\":[516],\"value\":[16],\"searcher\":[16],\"allItems\":[16],\"multiple\":[4],\"delimiter\":[513],\"actions\":[16],\"actionPosition\":[1,\"action-position\"],\"actionScrollBehavior\":[1,\"action-scroll-behavior\"],\"badgeIcons\":[516,\"badge-icons\"],\"items\":[32],\"textValue\":[32],\"loading\":[32],\"chips\":[32]},null,{\"disabled\":[{\"onDisabledChange\":0}],\"value\":[{\"onChangeValue\":0}]}]]],[\"limel-split-button.cjs\",[[17,\"limel-split-button\",{\"label\":[513],\"primary\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"items\":[16]}]]],[\"limel-color-picker.cjs\",[[1,\"limel-color-picker\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"tooltipLabel\":[513,\"tooltip-label\"],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"placeholder\":[513],\"manualInput\":[516,\"manual-input\"],\"palette\":[16],\"paletteColumnCount\":[514,\"palette-column-count\"],\"isOpen\":[32]}]]],[\"limel-profile-picture.cjs\",[[1,\"limel-profile-picture\",{\"language\":[513],\"label\":[513],\"icon\":[1],\"helperText\":[1,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"invalid\":[516],\"loading\":[516],\"value\":[1],\"imageFit\":[513,\"image-fit\"],\"accept\":[513],\"resize\":[16],\"objectUrl\":[32],\"imageError\":[32],\"isErrorMessagePopoverOpen\":[32]},null,{\"value\":[{\"handleValueChange\":0}]}]]],[\"limel-dock.cjs\",[[1,\"limel-dock\",{\"dockItems\":[16],\"dockFooterItems\":[16],\"accessibleLabel\":[513,\"accessible-label\"],\"expanded\":[516],\"allowResize\":[516,\"allow-resize\"],\"mobileBreakPoint\":[514,\"mobile-break-point\"],\"useMobileLayout\":[32]}]]],[\"limel-snackbar.cjs\",[[1,\"limel-snackbar\",{\"open\":[516],\"message\":[1],\"timeout\":[514],\"actionText\":[1,\"action-text\"],\"dismissible\":[4],\"multiline\":[4],\"language\":[1],\"offset\":[32],\"isOpen\":[32],\"closing\":[32],\"show\":[64]},[[0,\"changeOffset\",\"onChangeIndex\"]],{\"open\":[{\"watchOpen\":0}]}]]],[\"limel-date-picker.cjs\",[[1,\"limel-date-picker\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"placeholder\":[513],\"helperText\":[513,\"helper-text\"],\"required\":[516],\"value\":[16],\"type\":[513],\"format\":[513],\"language\":[513],\"formatter\":[16],\"internalFormat\":[32],\"showPortal\":[32]}]]],[\"limel-button-group.cjs\",[[1,\"limel-button-group\",{\"value\":[16],\"disabled\":[516],\"selectedButtonId\":[32]},null,{\"value\":[{\"valueChanged\":0}]}]]],[\"limel-chart.cjs\",[[1,\"limel-chart\",{\"language\":[513],\"accessibleLabel\":[513,\"accessible-label\"],\"accessibleItemsLabel\":[513,\"accessible-items-label\"],\"accessibleValuesLabel\":[513,\"accessible-values-label\"],\"displayAxisLabels\":[516,\"display-axis-labels\"],\"displayItemText\":[516,\"display-item-text\"],\"displayItemValue\":[516,\"display-item-value\"],\"items\":[16],\"type\":[513],\"orientation\":[513],\"maxValue\":[514,\"max-value\"],\"axisIncrement\":[514,\"axis-increment\"],\"loading\":[516]},null,{\"items\":[{\"handleChange\":0}],\"axisIncrement\":[{\"handleChange\":0}],\"maxValue\":[{\"handleChange\":0}]}]]],[\"limel-select.cjs\",[[1,\"limel-select\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"required\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"value\":[16],\"options\":[16],\"multiple\":[4],\"menuOpen\":[32]},null,{\"value\":[{\"resetHasChanged\":0}],\"options\":[{\"resetHasChanged\":0},{\"updateHasPrimaryComponent\":0}],\"menuOpen\":[{\"watchOpen\":0}]}]]],[\"limel-help.cjs\",[[1,\"limel-help\",{\"value\":[1],\"trigger\":[1],\"readMoreLink\":[16],\"openDirection\":[513,\"open-direction\"],\"isOpen\":[32]}]]],[\"limel-info-tile.cjs\",[[257,\"limel-info-tile\",{\"value\":[520],\"icon\":[1],\"label\":[513],\"prefix\":[513],\"suffix\":[513],\"disabled\":[516],\"badge\":[520],\"loading\":[516],\"link\":[16],\"progress\":[16],\"hasPrimarySlot\":[32]}]]],[\"limel-table.cjs\",[[1,\"limel-table\",{\"data\":[16],\"columns\":[16],\"mode\":[513],\"layout\":[513],\"pageSize\":[514,\"page-size\"],\"totalRows\":[514,\"total-rows\"],\"sorting\":[16],\"activeRow\":[1040],\"movableColumns\":[516,\"movable-columns\"],\"movableRows\":[516,\"movable-rows\"],\"sortableColumns\":[516,\"sortable-columns\"],\"loading\":[516],\"page\":[514],\"emptyMessage\":[1,\"empty-message\"],\"aggregates\":[16],\"selectable\":[516],\"selection\":[16],\"language\":[513],\"paginationLocation\":[513,\"pagination-location\"]},null,{\"totalRows\":[{\"totalRowsChanged\":0}],\"pageSize\":[{\"pageSizeChanged\":0}],\"page\":[{\"pageChanged\":0}],\"activeRow\":[{\"activeRowChanged\":0}],\"data\":[{\"updateData\":0}],\"columns\":[{\"updateColumns\":0}],\"aggregates\":[{\"updateAggregates\":0}],\"selection\":[{\"updateSelection\":0}],\"selectable\":[{\"updateSelectable\":0}],\"movableRows\":[{\"updateMovableRows\":0}],\"sortableColumns\":[{\"updateSortableColumns\":0}],\"sorting\":[{\"updateSorting\":0}]}]]],[\"limel-drag-handle.cjs\",[[0,\"limel-drag-handle\",{\"dragDirection\":[513,\"drag-direction\"],\"tooltipOpenDirection\":[513,\"tooltip-open-direction\"],\"language\":[513]}]]],[\"limel-shortcut.cjs\",[[1,\"limel-shortcut\",{\"icon\":[513],\"label\":[513],\"disabled\":[516],\"badge\":[520],\"link\":[16]}]]],[\"limel-switch.cjs\",[[1,\"limel-switch\",{\"label\":[513],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"value\":[516],\"helperText\":[513,\"helper-text\"],\"readonlyLabels\":[16],\"fieldId\":[32]}]]],[\"limel-tab-panel.cjs\",[[257,\"limel-tab-panel\",{\"tabs\":[1040]},null,{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-code-editor.cjs\",[[1,\"limel-code-editor\",{\"value\":[1],\"language\":[1],\"readonly\":[516],\"disabled\":[516],\"invalid\":[516],\"required\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"lineNumbers\":[516,\"line-numbers\"],\"lineWrapping\":[516,\"line-wrapping\"],\"fold\":[516],\"lint\":[516],\"colorScheme\":[513,\"color-scheme\"],\"translationLanguage\":[513,\"translation-language\"],\"showCopyButton\":[516,\"show-copy-button\"],\"random\":[32],\"wasCopied\":[32]},null,{\"value\":[{\"watchValue\":0}],\"disabled\":[{\"watchDisabled\":0}],\"readonly\":[{\"watchReadonly\":0}],\"invalid\":[{\"watchInvalid\":0}],\"required\":[{\"watchRequired\":0}],\"helperText\":[{\"watchHelperText\":0}]}]]],[\"limel-dialog.cjs\",[[257,\"limel-dialog\",{\"heading\":[1],\"fullscreen\":[516],\"open\":[1540],\"closingActions\":[16]},null,{\"open\":[{\"watchHandler\":0}],\"closingActions\":[{\"closingActionsChanged\":0}]}]]],[\"limel-menu-item-meta.cjs\",[[1,\"limel-menu-item-meta\",{\"commandText\":[513,\"command-text\"],\"hotkey\":[513],\"disabled\":[516],\"badge\":[8],\"showChevron\":[4,\"show-chevron\"]}]]],[\"limel-progress-flow.cjs\",[[1,\"limel-progress-flow\",{\"flowItems\":[16],\"disabled\":[4],\"readonly\":[4]}]]],[\"limel-slider.cjs\",[[1,\"limel-slider\",{\"disabled\":[516],\"readonly\":[516],\"factor\":[514],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"required\":[516],\"invalid\":[516],\"displaysPercentageColors\":[516,\"displays-percentage-colors\"],\"unit\":[513],\"value\":[514],\"valuemax\":[514],\"valuemin\":[514],\"step\":[514],\"percentageClass\":[32],\"displayValue\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-banner.cjs\",[[257,\"limel-banner\",{\"message\":[513],\"icon\":[513],\"isOpen\":[32],\"open\":[64],\"close\":[64]}]]],[\"limel-form.cjs\",[[1,\"limel-form\",{\"schema\":[16],\"value\":[16],\"disabled\":[4],\"propsFactory\":[16],\"transformErrors\":[16],\"errors\":[16]}]]],[\"limel-radio-button-group.cjs\",[[0,\"limel-radio-button-group\",{\"items\":[16],\"selectedItem\":[16],\"disabled\":[516],\"badgeIcons\":[516,\"badge-icons\"],\"maxLinesSecondaryText\":[514,\"max-lines-secondary-text\"]}]]],[\"limel-ai-avatar.cjs\",[[1,\"limel-ai-avatar\",{\"isThinking\":[516,\"is-thinking\"],\"language\":[513]}]]],[\"limel-config.cjs\",[[1,\"limel-config\",{\"config\":[16]}]]],[\"limel-flex-container.cjs\",[[257,\"limel-flex-container\",{\"direction\":[513],\"justify\":[513],\"align\":[513],\"reverse\":[516]}]]],[\"limel-grid.cjs\",[[257,\"limel-grid\"]]],[\"limel-masonry-layout.cjs\",[[257,\"limel-masonry-layout\",{\"ordered\":[516],\"containerHeight\":[32]},null,{\"ordered\":[{\"onOrderedChange\":0}]}]]],[\"limel-prosemirror-adapter.cjs\",[[17,\"limel-prosemirror-adapter\",{\"contentType\":[1,\"content-type\"],\"value\":[1],\"language\":[513],\"disabled\":[516],\"customElements\":[16],\"triggerCharacters\":[16],\"ui\":[1],\"view\":[32],\"actionBarItems\":[32],\"link\":[32],\"isLinkMenuOpen\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-email-viewer.cjs\",[[257,\"limel-email-viewer\",{\"email\":[16],\"fallbackUrl\":[513,\"fallback-url\"],\"language\":[513],\"allowRemoteImages\":[4,\"allow-remote-images\"],\"allowRemoteImagesState\":[32]},null,{\"email\":[{\"resetAllowRemoteImages\":0}]}]]],[\"limel-dock-button.cjs\",[[0,\"limel-dock-button\",{\"item\":[16],\"expanded\":[516],\"useMobileLayout\":[516,\"use-mobile-layout\"],\"isOpen\":[32]},null,{\"isOpen\":[{\"openWatcher\":0}]}]]],[\"limel-color-picker-palette.cjs\",[[17,\"limel-color-picker-palette\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"required\":[516],\"invalid\":[516],\"manualInput\":[516,\"manual-input\"],\"columnCount\":[514,\"column-count\"],\"palette\":[16]}]]],[\"limel-checkbox.cjs\",[[1,\"limel-checkbox\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"checked\":[516],\"indeterminate\":[516],\"required\":[516],\"readonlyLabels\":[16],\"modified\":[32]},null,{\"checked\":[{\"handleCheckedChange\":0}],\"indeterminate\":[{\"handleIndeterminateChange\":0}],\"readonly\":[{\"handleReadonlyChange\":0}]}]]],[\"limel-tab-bar.cjs\",[[1,\"limel-tab-bar\",{\"tabs\":[1040],\"canScrollLeft\":[32],\"canScrollRight\":[32]},[[9,\"resize\",\"handleWindowResize\"]],{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-callout.cjs\",[[257,\"limel-callout\",{\"heading\":[513],\"icon\":[513],\"type\":[513],\"language\":[1]}]]],[\"limel-header.cjs\",[[257,\"limel-header\",{\"icon\":[1],\"heading\":[1],\"subheading\":[1],\"supportingText\":[1,\"supporting-text\"],\"subheadingDivider\":[1,\"subheading-divider\"]}]]],[\"limel-help-content.cjs\",[[1,\"limel-help-content\",{\"value\":[1],\"readMoreLink\":[16]}]]],[\"limel-progress-flow-item.cjs\",[[0,\"limel-progress-flow-item\",{\"item\":[16],\"disabled\":[4],\"readonly\":[4],\"currentStep\":[4,\"current-step\"]}]]],[\"limel-circular-progress.cjs\",[[1,\"limel-circular-progress\",{\"value\":[2],\"maxValue\":[2,\"max-value\"],\"prefix\":[513],\"suffix\":[1],\"displayPercentageColors\":[4,\"display-percentage-colors\"],\"size\":[513]}]]],[\"limel-flatpickr-adapter.cjs\",[[1,\"limel-flatpickr-adapter\",{\"value\":[16],\"type\":[1],\"format\":[1],\"isOpen\":[4,\"is-open\"],\"inputElement\":[16],\"language\":[1],\"formatter\":[16]}]]],[\"limel-radio-button.cjs\",[[0,\"limel-radio-button\",{\"checked\":[516],\"disabled\":[516],\"id\":[1],\"label\":[1],\"onChange\":[16]}]]],[\"limel-text-editor-link-menu.cjs\",[[1,\"limel-text-editor-link-menu\",{\"link\":[16],\"language\":[513],\"isOpen\":[516,\"is-open\"]}]]],[\"limel-collapsible-section.cjs\",[[257,\"limel-collapsible-section\",{\"isOpen\":[1540,\"is-open\"],\"header\":[513],\"icon\":[1],\"invalid\":[516],\"actions\":[16],\"language\":[513]}]]],[\"limel-3d-hover-effect-glow.cjs\",[[1,\"limel-3d-hover-effect-glow\"]]],[\"limel-file-dropzone_2.cjs\",[[257,\"limel-file-dropzone\",{\"accept\":[513],\"disabled\":[4],\"text\":[1],\"helperText\":[1,\"helper-text\"],\"hasFileToDrop\":[32]}],[257,\"limel-file-input\",{\"accept\":[513],\"disabled\":[516],\"multiple\":[516]}]]],[\"limel-dynamic-label.cjs\",[[1,\"limel-dynamic-label\",{\"value\":[8],\"defaultLabel\":[16],\"labels\":[16]}]]],[\"limel-linear-progress.cjs\",[[1,\"limel-linear-progress\",{\"language\":[513],\"value\":[514],\"indeterminate\":[516],\"accessibleLabel\":[513,\"accessible-label\"]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-badge.cjs\",[[1,\"limel-badge\",{\"label\":[520]}]]],[\"limel-helper-line_2.cjs\",[[260,\"limel-notched-outline\",{\"required\":[516],\"readonly\":[516],\"invalid\":[516],\"disabled\":[516],\"label\":[513],\"labelId\":[513,\"label-id\"],\"hasValue\":[516,\"has-value\"],\"hasLeadingIcon\":[516,\"has-leading-icon\"],\"hasFloatingLabel\":[516,\"has-floating-label\"]}],[1,\"limel-helper-line\",{\"helperText\":[513,\"helper-text\"],\"length\":[514],\"maxLength\":[514,\"max-length\"],\"invalid\":[516],\"helperTextId\":[513,\"helper-text-id\"]}]]],[\"limel-chip_2.cjs\",[[17,\"limel-chip-set\",{\"value\":[16],\"type\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"inputType\":[513,\"input-type\"],\"maxItems\":[514,\"max-items\"],\"required\":[516],\"searchLabel\":[513,\"search-label\"],\"emptyInputOnBlur\":[516,\"empty-input-on-blur\"],\"clearAllButton\":[4,\"clear-all-button\"],\"leadingIcon\":[513,\"leading-icon\"],\"delimiter\":[513],\"autocomplete\":[513],\"language\":[1],\"editMode\":[32],\"textValue\":[32],\"blurred\":[32],\"inputChipIndexSelected\":[32],\"selectedChipIds\":[32],\"getEditMode\":[64],\"setFocus\":[64],\"emptyInput\":[64]},null,{\"value\":[{\"handleChangeChips\":0}]}],[17,\"limel-chip\",{\"language\":[513],\"text\":[513],\"icon\":[1],\"image\":[16],\"link\":[16],\"badge\":[520],\"disabled\":[516],\"readonly\":[516],\"selected\":[516],\"invalid\":[516],\"removable\":[516],\"type\":[513],\"loading\":[516],\"progress\":[514],\"identifier\":[520],\"size\":[513],\"menuItems\":[16]}]]],[\"limel-button.cjs\",[[17,\"limel-button\",{\"label\":[513],\"primary\":[516],\"outlined\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"justLoaded\":[32]},null,{\"loading\":[{\"loadingWatcher\":0}]}]]],[\"limel-icon-button.cjs\",[[17,\"limel-icon-button\",{\"icon\":[1],\"elevated\":[516],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"disabled\":[516]}]]],[\"limel-markdown.cjs\",[[1,\"limel-markdown\",{\"value\":[1],\"whitelist\":[16],\"lazyLoadImages\":[516,\"lazy-load-images\"],\"removeEmptyParagraphs\":[516,\"remove-empty-paragraphs\"],\"adaptColorContrast\":[516,\"adapt-color-contrast\"]},null,{\"value\":[{\"textChanged\":0}],\"whitelist\":[{\"handleWhitelistChange\":0}],\"removeEmptyParagraphs\":[{\"handleRemoveEmptyParagraphsChange\":0}],\"adaptColorContrast\":[{\"handleAdaptColorContrastChange\":0}]}]]],[\"limel-hotkey_4.cjs\",[[1,\"limel-tooltip\",{\"elementId\":[513,\"element-id\"],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"hotkey\":[513],\"maxlength\":[514],\"openDirection\":[513,\"open-direction\"],\"open\":[32]}],[1,\"limel-tooltip-content\",{\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"maxlength\":[514],\"hotkey\":[513]}],[1,\"limel-hotkey\",{\"value\":[513],\"disabled\":[516]}],[257,\"limel-portal\",{\"openDirection\":[513,\"open-direction\"],\"position\":[513],\"containerId\":[513,\"container-id\"],\"containerStyle\":[16],\"inheritParentWidth\":[516,\"inherit-parent-width\"],\"visible\":[516],\"anchor\":[16]},null,{\"visible\":[{\"onVisible\":0}]}]]],[\"limel-popover_2.cjs\",[[257,\"limel-popover\",{\"open\":[4],\"openDirection\":[513,\"open-direction\"]},null,{\"open\":[{\"watchOpen\":0}]}],[1,\"limel-popover-surface\",{\"contentCollection\":[16]}]]],[\"limel-breadcrumbs_7.cjs\",[[257,\"limel-menu\",{\"items\":[16],\"disabled\":[516],\"openDirection\":[513,\"open-direction\"],\"surfaceWidth\":[513,\"surface-width\"],\"open\":[1540],\"badgeIcons\":[516,\"badge-icons\"],\"gridLayout\":[516,\"grid-layout\"],\"loading\":[516],\"currentSubMenu\":[1040],\"rootItem\":[16],\"searcher\":[16],\"searchPlaceholder\":[1,\"search-placeholder\"],\"emptyResultMessage\":[1,\"empty-result-message\"],\"keepOpenOnSelect\":[516,\"keep-open-on-select\"],\"loadingSubItems\":[32],\"searchValue\":[32],\"searchResults\":[32]},null,{\"items\":[{\"itemsWatcher\":0}],\"open\":[{\"openWatcher\":0}]}],[1,\"limel-breadcrumbs\",{\"items\":[16],\"divider\":[1]}],[17,\"limel-menu-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"]},null,{\"items\":[{\"itemsChanged\":0}]}],[17,\"limel-input-field\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"placeholder\":[513],\"helperText\":[513,\"helper-text\"],\"prefix\":[513],\"suffix\":[513],\"required\":[516],\"value\":[513],\"trailingIcon\":[513,\"trailing-icon\"],\"leadingIcon\":[513,\"leading-icon\"],\"pattern\":[513],\"type\":[513],\"formatNumber\":[516,\"format-number\"],\"step\":[520],\"max\":[514],\"min\":[514],\"maxlength\":[514],\"minlength\":[514],\"completions\":[16],\"showLink\":[516,\"show-link\"],\"locale\":[513],\"isFocused\":[32],\"wasInvalid\":[32],\"showCompletions\":[32],\"getSelectionStart\":[64],\"getSelectionEnd\":[64],\"getSelectionDirection\":[64]},null,{\"value\":[{\"valueWatcher\":0}],\"completions\":[{\"completionsWatcher\":0}]}],[257,\"limel-menu-surface\",{\"open\":[4],\"allowClicksElement\":[16]}],[1,\"limel-spinner\",{\"size\":[513],\"limeBranded\":[4,\"lime-branded\"]}],[17,\"limel-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"],\"type\":[1],\"maxLinesSecondaryText\":[2,\"max-lines-secondary-text\"]},null,{\"type\":[{\"handleType\":0}],\"items\":[{\"itemsChanged\":0}]}]]],[\"limel-action-bar_3.cjs\",[[1,\"limel-action-bar\",{\"actions\":[16],\"accessibleLabel\":[513,\"accessible-label\"],\"language\":[1],\"layout\":[513],\"collapsible\":[516],\"openDirection\":[513,\"open-direction\"],\"overflowCutoff\":[32]}],[0,\"limel-action-bar-overflow-menu\",{\"items\":[16],\"openDirection\":[513,\"open-direction\"]}],[0,\"limel-action-bar-item\",{\"item\":[16],\"isVisible\":[516,\"is-visible\"],\"selected\":[516]}]]]]"), options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -5,6 +5,10 @@ import translate from "../../global/translations";
|
|
|
5
5
|
import { getHref, getTarget } from "../../util/link-helper";
|
|
6
6
|
import { isEqual } from "lodash-es";
|
|
7
7
|
import { createRandomString } from "../../util/random-string";
|
|
8
|
+
function isChipAnnotatedEvent(event) {
|
|
9
|
+
var _a;
|
|
10
|
+
return !!((_a = event === null || event === void 0 ? void 0 : event.Lime) === null || _a === void 0 ? void 0 : _a.chip);
|
|
11
|
+
}
|
|
8
12
|
/**
|
|
9
13
|
* :::note
|
|
10
14
|
* **Regarding `click` and `interact` events:**
|
|
@@ -270,7 +274,7 @@ export class ChipSet {
|
|
|
270
274
|
});
|
|
271
275
|
}
|
|
272
276
|
const value = this.getValue();
|
|
273
|
-
return (h(Host, { key: '
|
|
277
|
+
return (h(Host, { key: 'debc60e705b4963508c42607e445ad1f3d0f4502' }, h("limel-notched-outline", { key: '97fafcf0efaba1abad175afa1057a8e7672f4562', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, h("div", Object.assign({ key: 'dcde98d15b8793359cafef00939ace7c513dcea8', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
|
|
274
278
|
}
|
|
275
279
|
getContentProps() {
|
|
276
280
|
if (this.type === 'input') {
|
|
@@ -328,14 +332,22 @@ export class ChipSet {
|
|
|
328
332
|
}
|
|
329
333
|
/**
|
|
330
334
|
* Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
|
|
335
|
+
* @param event - The originating click or focus event, if any. When a
|
|
336
|
+
* click originates from a chip body (marked by
|
|
337
|
+
* {@link catchInputChipClicks} as `event.Lime.chip`), edit mode is
|
|
338
|
+
* not entered: the chip's `interact` event is the consumer's signal
|
|
339
|
+
* and the input should not steal focus alongside it.
|
|
331
340
|
*/
|
|
332
|
-
handleTextFieldFocus() {
|
|
341
|
+
handleTextFieldFocus(event) {
|
|
333
342
|
if (this.disabled || this.readonly) {
|
|
334
343
|
return;
|
|
335
344
|
}
|
|
336
345
|
if (this.editMode) {
|
|
337
346
|
return;
|
|
338
347
|
}
|
|
348
|
+
if (isChipAnnotatedEvent(event)) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
339
351
|
this.editMode = true;
|
|
340
352
|
this.startEdit.emit();
|
|
341
353
|
}
|