@lukso/web-components 1.172.13 → 1.172.14
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/chunks/cn-LM_JlZIN.js +36 -0
- package/dist/chunks/cn-zamUNFMe.js +39 -0
- package/dist/chunks/directive-CY66atYi.js +22 -0
- package/dist/chunks/directive-DUHAbymA.js +15 -0
- package/dist/chunks/index-BNt_JinF.js +212 -0
- package/dist/chunks/{index-DG4rMUh3.js → index-BOEPqh0N.js} +1 -1
- package/dist/chunks/{index-F8ll4iy2.js → index-C5S-_QDF.js} +1 -1
- package/dist/chunks/{index-B_H2eYG_.js → index-CA6SrfZ-.js} +9 -8
- package/dist/chunks/{index-CZGvLdJ0.js → index-CqZm8OfY.js} +1 -2
- package/dist/chunks/index-Cy2_2lFt.js +214 -0
- package/dist/chunks/{index-Dn2DJhID.js → index-Ds-r8fCt.js} +77 -74
- package/dist/chunks/{index-C5YyB6ug.js → index-DvLZWpq9.js} +2 -3
- package/dist/chunks/{index-D_5wz2k1.js → index-UVrFZqIM.js} +79 -76
- package/dist/chunks/{index-BHAtoIlu.js → index-cakeic-M.js} +9 -8
- package/dist/chunks/{style-map-B7XFhSOK.js → style-map-AEeBQfPb.js} +2 -3
- package/dist/chunks/{style-map-BPljJihp.js → style-map-auscxO0L.js} +1 -2
- package/dist/components/index.cjs +4 -5
- package/dist/components/index.js +4 -5
- package/dist/components/lukso-alert/index.cjs +16 -15
- package/dist/components/lukso-alert/index.js +16 -15
- package/dist/components/lukso-button/index.cjs +42 -40
- package/dist/components/lukso-button/index.js +39 -37
- package/dist/components/lukso-card/index.cjs +66 -71
- package/dist/components/lukso-card/index.js +48 -53
- package/dist/components/lukso-checkbox/index.cjs +27 -26
- package/dist/components/lukso-checkbox/index.js +27 -26
- package/dist/components/lukso-collapse/index.cjs +27 -26
- package/dist/components/lukso-collapse/index.js +26 -25
- package/dist/components/lukso-color-picker/index.cjs +33 -31
- package/dist/components/lukso-color-picker/index.js +32 -30
- package/dist/components/lukso-dropdown/index.cjs +20 -19
- package/dist/components/lukso-dropdown/index.js +20 -19
- package/dist/components/lukso-dropdown-option/index.cjs +12 -11
- package/dist/components/lukso-dropdown-option/index.js +12 -11
- package/dist/components/lukso-footer/index.cjs +5 -4
- package/dist/components/lukso-footer/index.js +5 -4
- package/dist/components/lukso-form-description/index.cjs +7 -6
- package/dist/components/lukso-form-description/index.js +7 -6
- package/dist/components/lukso-form-error/index.cjs +7 -6
- package/dist/components/lukso-form-error/index.js +7 -6
- package/dist/components/lukso-form-label/index.cjs +8 -7
- package/dist/components/lukso-form-label/index.js +8 -7
- package/dist/components/lukso-icon/index.cjs +268 -267
- package/dist/components/lukso-icon/index.js +268 -267
- package/dist/components/lukso-image/index.cjs +12 -12
- package/dist/components/lukso-image/index.js +12 -12
- package/dist/components/lukso-input/index.cjs +49 -47
- package/dist/components/lukso-input/index.js +48 -46
- package/dist/components/lukso-markdown/index.cjs +13 -83
- package/dist/components/lukso-markdown/index.js +13 -83
- package/dist/components/lukso-markdown-editor/index.cjs +68 -67
- package/dist/components/lukso-markdown-editor/index.js +67 -66
- package/dist/components/lukso-modal/index.cjs +12 -11
- package/dist/components/lukso-modal/index.js +11 -10
- package/dist/components/lukso-navbar/index.cjs +30 -30
- package/dist/components/lukso-navbar/index.js +30 -30
- package/dist/components/lukso-pagination/index.cjs +16 -16
- package/dist/components/lukso-pagination/index.js +16 -16
- package/dist/components/lukso-profile/index.cjs +162 -11
- package/dist/components/lukso-profile/index.js +165 -5
- package/dist/components/lukso-progress/index.cjs +16 -13
- package/dist/components/lukso-progress/index.js +13 -10
- package/dist/components/lukso-qr-code/index.cjs +17 -34
- package/dist/components/lukso-qr-code/index.js +16 -33
- package/dist/components/lukso-radio/index.cjs +27 -25
- package/dist/components/lukso-radio/index.js +25 -23
- package/dist/components/lukso-radio-group/index.cjs +9 -9
- package/dist/components/lukso-radio-group/index.js +9 -9
- package/dist/components/lukso-sanitize/index.cjs +5 -4
- package/dist/components/lukso-sanitize/index.js +5 -4
- package/dist/components/lukso-search/index.cjs +11 -8
- package/dist/components/lukso-search/index.js +11 -8
- package/dist/components/lukso-select/index.cjs +47 -46
- package/dist/components/lukso-select/index.js +46 -45
- package/dist/components/lukso-share/index.cjs +7 -6
- package/dist/components/lukso-share/index.js +7 -6
- package/dist/components/lukso-switch/index.cjs +16 -15
- package/dist/components/lukso-switch/index.js +16 -15
- package/dist/components/lukso-tag/index.cjs +13 -12
- package/dist/components/lukso-tag/index.js +12 -11
- package/dist/components/lukso-terms/index.cjs +9 -8
- package/dist/components/lukso-terms/index.js +9 -8
- package/dist/components/lukso-textarea/index.cjs +36 -34
- package/dist/components/lukso-textarea/index.js +35 -33
- package/dist/components/lukso-tooltip/index.cjs +27 -3461
- package/dist/components/lukso-tooltip/index.js +27 -3461
- package/dist/components/lukso-username/index.cjs +11 -7
- package/dist/components/lukso-username/index.js +11 -7
- package/dist/components/lukso-wizard/index.cjs +13 -12
- package/dist/components/lukso-wizard/index.js +11 -10
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/dist/shared/tailwind-element/index.cjs +15 -3
- package/dist/shared/tailwind-element/index.js +17 -1
- package/dist/vite.full.config.d.ts.map +1 -1
- package/package.json +7 -1
- package/dist/chunks/_commonjsHelpers-B85MJLTf.js +0 -5
- package/dist/chunks/_commonjsHelpers-CFO10eej.js +0 -7
- package/dist/chunks/axe-DJKac19y.js +0 -35093
- package/dist/chunks/axe-MHuN9KU0.js +0 -35097
- package/dist/chunks/base-Bn-zDNuZ.js +0 -93
- package/dist/chunks/base-Cl6v8-BZ.js +0 -8
- package/dist/chunks/base-KJhhKWYy.js +0 -91
- package/dist/chunks/base-NFGX42U4.js +0 -10
- package/dist/chunks/chunk-LQIOVPBE-CGhQ79Di.js +0 -370
- package/dist/chunks/chunk-LQIOVPBE-kQFZF_OS.js +0 -372
- package/dist/chunks/directive-BKuZRRPO.js +0 -8
- package/dist/chunks/directive-DT5Y-Nw0.js +0 -12
- package/dist/chunks/index-5X9ujrWL.js +0 -41
- package/dist/chunks/index-B9iart53.js +0 -2545
- package/dist/chunks/index-BAf8Hzhe.js +0 -611
- package/dist/chunks/index-BBFSnMaE.js +0 -1345
- package/dist/chunks/index-BDyLu6M0.js +0 -609
- package/dist/chunks/index-BxQ_0s_1.js +0 -50
- package/dist/chunks/index-CaJky2qL.js +0 -2547
- package/dist/chunks/index-glHBylgQ.js +0 -1347
- package/dist/chunks/isAddress-B1R_6-uN.js +0 -745
- package/dist/chunks/isAddress-BUdSrCaY.js +0 -743
- package/dist/chunks/property-D6IL6zax.js +0 -11
- package/dist/chunks/property-DfumgIL6.js +0 -9
- package/dist/chunks/query-CHb9Ft_d.js +0 -9
- package/dist/chunks/query-D3HF7Pde.js +0 -11
- package/dist/chunks/state-CFjY89m3.js +0 -11
- package/dist/chunks/state-CaelFSbE.js +0 -9
- package/dist/chunks/unsafe-html-BHBLEMoa.js +0 -10
- package/dist/chunks/unsafe-html-DiwkOQlV.js +0 -12
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { c as ce } from './index-B9iart53.js';
|
|
1
|
+
import makeBlockie from 'ethereum-blockies-base64';
|
|
2
|
+
import { html, nothing } from 'lit';
|
|
3
|
+
import { property, state } from 'lit/decorators.js';
|
|
4
|
+
import { tv } from 'tailwind-variants';
|
|
6
5
|
import { s as safeCustomElement } from './safe-custom-element-qdGIR_v6.js';
|
|
7
6
|
import '../components/lukso-dropdown/index.js';
|
|
8
7
|
import '../components/lukso-dropdown-option/index.js';
|
|
9
8
|
import '../components/lukso-icon/index.js';
|
|
10
9
|
import '../components/lukso-input/index.js';
|
|
10
|
+
import '../components/lukso-profile/index.js';
|
|
11
11
|
import '../components/lukso-tag/index.js';
|
|
12
|
-
import { s as sliceAddress } from './index-
|
|
12
|
+
import { s as sliceAddress } from './index-BNt_JinF.js';
|
|
13
13
|
import '../components/lukso-tooltip/index.js';
|
|
14
|
+
import { TailwindStyledElement } from '../shared/tailwind-element/index.js';
|
|
14
15
|
import '../tailwind-config.js';
|
|
15
|
-
import './
|
|
16
|
+
import './cn-LM_JlZIN.js';
|
|
17
|
+
import 'viem';
|
|
18
|
+
import 'axe-core';
|
|
16
19
|
import { u as uniqId } from './uniq-id-CGUN-pJV.js';
|
|
17
20
|
|
|
18
21
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
@@ -87,7 +90,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
87
90
|
this.withGroupLabels = false;
|
|
88
91
|
this.isDebouncing = false;
|
|
89
92
|
this.resultsParsed = [];
|
|
90
|
-
this.styles =
|
|
93
|
+
this.styles = tv({
|
|
91
94
|
slots: {
|
|
92
95
|
loading: "bg-neutral-95 w-full animate-pulse animation-delay-none"
|
|
93
96
|
},
|
|
@@ -195,7 +198,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
195
198
|
break;
|
|
196
199
|
}
|
|
197
200
|
resultTemplates.push(
|
|
198
|
-
|
|
201
|
+
html`<div
|
|
199
202
|
class="${index === 0 ? "mb-1 pb-1" : "my-1 py-1"} text-neutral-35 paragraph-inter-12-medium tracking-wider border-b border-b-neutral-95 text-left"
|
|
200
203
|
>
|
|
201
204
|
${headerText}
|
|
@@ -232,22 +235,22 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
232
235
|
break;
|
|
233
236
|
}
|
|
234
237
|
}
|
|
235
|
-
return
|
|
238
|
+
return html`<lukso-dropdown
|
|
236
239
|
size=${this.dropdownSize[this.size]}
|
|
237
240
|
is-open=${this.resultsParsed.length > 0}
|
|
238
241
|
is-open-on-outside-click
|
|
239
242
|
is-full-width
|
|
240
|
-
max-height=${this.maxHeight ||
|
|
243
|
+
max-height=${this.maxHeight || nothing}
|
|
241
244
|
>${resultTemplates}</lukso-dropdown
|
|
242
245
|
>`;
|
|
243
246
|
}
|
|
244
247
|
noResultsTemplate() {
|
|
245
|
-
return
|
|
248
|
+
return html`<lukso-dropdown
|
|
246
249
|
size=${this.dropdownSize[this.size]}
|
|
247
250
|
is-open
|
|
248
251
|
is-open-on-outside-click
|
|
249
252
|
is-full-width
|
|
250
|
-
>${
|
|
253
|
+
>${html`<div class="paragraph-inter-14-semi-bold text-neutral-20 pl-1">
|
|
251
254
|
${this.noResultsText}
|
|
252
255
|
</div>`}</lukso-dropdown
|
|
253
256
|
>`;
|
|
@@ -257,12 +260,12 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
257
260
|
size: this.size
|
|
258
261
|
});
|
|
259
262
|
if (this.showNoResults) {
|
|
260
|
-
return
|
|
263
|
+
return html`<lukso-dropdown
|
|
261
264
|
size=${this.dropdownSize[this.size]}
|
|
262
265
|
is-open
|
|
263
266
|
is-open-on-outside-click
|
|
264
267
|
is-full-width
|
|
265
|
-
>${
|
|
268
|
+
>${html`
|
|
266
269
|
<div role="status" class="flex flex-col gap-1">
|
|
267
270
|
<div class=${loading()}></div>
|
|
268
271
|
</div>
|
|
@@ -270,33 +273,33 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
270
273
|
>`;
|
|
271
274
|
}
|
|
272
275
|
if (this.resultsParsed.length === 0 || this.resultsParsed.length > 5) {
|
|
273
|
-
return
|
|
276
|
+
return html`<lukso-dropdown
|
|
274
277
|
size=${this.dropdownSize[this.size]}
|
|
275
278
|
is-open
|
|
276
279
|
is-open-on-outside-click
|
|
277
280
|
is-full-width
|
|
278
|
-
>${
|
|
281
|
+
>${html`
|
|
279
282
|
<div role="status" class="flex flex-col gap-1">
|
|
280
|
-
${[...Array(5)].map(() =>
|
|
283
|
+
${[...Array(5)].map(() => html`<div class=${loading()}></div>`)}
|
|
281
284
|
</div>
|
|
282
285
|
`}</lukso-dropdown
|
|
283
286
|
>`;
|
|
284
287
|
}
|
|
285
|
-
return
|
|
288
|
+
return html`<lukso-dropdown
|
|
286
289
|
size=${this.dropdownSize[this.size]}
|
|
287
290
|
is-open
|
|
288
291
|
is-open-on-outside-click
|
|
289
292
|
is-full-width
|
|
290
|
-
>${
|
|
293
|
+
>${html`
|
|
291
294
|
<div role="status" class="flex flex-col gap-1">
|
|
292
|
-
${this.resultsParsed.map(() =>
|
|
295
|
+
${this.resultsParsed.map(() => html`<div class=${loading()}></div>`)}
|
|
293
296
|
</div>
|
|
294
297
|
`}</lukso-dropdown
|
|
295
298
|
>`;
|
|
296
299
|
}
|
|
297
300
|
resultStringTemplate(result, index) {
|
|
298
301
|
const dropdownSize = this.size === "large" || this.size === "x-large" ? "medium" : this.size;
|
|
299
|
-
return
|
|
302
|
+
return html`<lukso-dropdown-option
|
|
300
303
|
data-id="${result.id}"
|
|
301
304
|
data-index="${index + 1}"
|
|
302
305
|
?is-selected=${this.selected === index + 1}
|
|
@@ -307,13 +310,13 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
307
310
|
</lukso-dropdown-option>`;
|
|
308
311
|
}
|
|
309
312
|
resultUniversalNameTemplate(result, index) {
|
|
310
|
-
const tag =
|
|
313
|
+
const tag = html`<lukso-tag
|
|
311
314
|
is-rounded
|
|
312
315
|
background-color="${result.status ? "green-95" : "neutral-95"}"
|
|
313
316
|
text-color="${result.status ? "green-45" : "neutral-60"}"
|
|
314
317
|
>${!!result.status ? this.availableText : this.unavailableText}</lukso-tag
|
|
315
318
|
>`;
|
|
316
|
-
return
|
|
319
|
+
return html`<lukso-dropdown-option
|
|
317
320
|
data-id="${result.id}"
|
|
318
321
|
data-index="${index + 1}"
|
|
319
322
|
?is-selected=${this.selected === index + 1}
|
|
@@ -327,12 +330,12 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
327
330
|
</lukso-dropdown-option>`;
|
|
328
331
|
}
|
|
329
332
|
resultProfileTemplate(result, index) {
|
|
330
|
-
const eoaProfilePicture =
|
|
333
|
+
const eoaProfilePicture = html`<lukso-profile
|
|
331
334
|
profile-address="${result.address}"
|
|
332
335
|
profile-url="${result.address ? makeBlockie(result.address) : ""}"
|
|
333
336
|
size=${this.profileSize[this.size]}
|
|
334
337
|
></lukso-profile>`;
|
|
335
|
-
const lsp3ProfilePicture =
|
|
338
|
+
const lsp3ProfilePicture = html`<lukso-profile
|
|
336
339
|
profile-address="${result.address}"
|
|
337
340
|
profile-url="${result.image}"
|
|
338
341
|
size=${this.profileSize[this.size]}
|
|
@@ -340,7 +343,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
340
343
|
></lukso-profile>`;
|
|
341
344
|
const standard = result.standard || STANDARDS.LSP3;
|
|
342
345
|
const profilePicture = standard !== STANDARDS.LSP3 ? eoaProfilePicture : lsp3ProfilePicture;
|
|
343
|
-
const upProfileUsername =
|
|
346
|
+
const upProfileUsername = html`<lukso-username
|
|
344
347
|
name="${result.name?.toLowerCase() || "anonymous-profile"}"
|
|
345
348
|
address="${result.address}"
|
|
346
349
|
name-color="neutral-20"
|
|
@@ -349,7 +352,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
349
352
|
?hide-prefix="${!result.name}"
|
|
350
353
|
class="ml-1"
|
|
351
354
|
></lukso-username>`;
|
|
352
|
-
const eoaUsername =
|
|
355
|
+
const eoaUsername = html`<lukso-username
|
|
353
356
|
name="${sliceAddress(result.address, 8)}"
|
|
354
357
|
address="__EOA"
|
|
355
358
|
name-color="neutral-20"
|
|
@@ -358,7 +361,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
358
361
|
hide-prefix
|
|
359
362
|
class="ml-1"
|
|
360
363
|
></lukso-username>`;
|
|
361
|
-
const scUsername =
|
|
364
|
+
const scUsername = html`<lukso-username
|
|
362
365
|
name="${sliceAddress(result.address, 8)}"
|
|
363
366
|
address=""
|
|
364
367
|
name-color="neutral-20"
|
|
@@ -373,7 +376,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
373
376
|
} else if (standard === STANDARDS.LSP3) {
|
|
374
377
|
profileName = upProfileUsername;
|
|
375
378
|
}
|
|
376
|
-
return
|
|
379
|
+
return html`<lukso-dropdown-option
|
|
377
380
|
data-id="${result.address}"
|
|
378
381
|
data-index="${index + 1}"
|
|
379
382
|
?is-selected=${this.selected === index + 1}
|
|
@@ -384,7 +387,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
384
387
|
</lukso-dropdown-option>`;
|
|
385
388
|
}
|
|
386
389
|
resultAssetTemplate(result, index) {
|
|
387
|
-
return
|
|
390
|
+
return html`<lukso-dropdown-option
|
|
388
391
|
data-id="${result.address}"
|
|
389
392
|
data-index="${index + 1}"
|
|
390
393
|
?is-selected=${this.selected === index + 1}
|
|
@@ -407,7 +410,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
407
410
|
</lukso-dropdown-option>`;
|
|
408
411
|
}
|
|
409
412
|
resultAppTemplate(result, index) {
|
|
410
|
-
return
|
|
413
|
+
return html`<lukso-dropdown-option
|
|
411
414
|
data-id="${result.address}"
|
|
412
415
|
data-index="${index + 1}"
|
|
413
416
|
?is-selected=${this.selected === index + 1}
|
|
@@ -429,7 +432,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
429
432
|
for (const recentSearch of result.value) {
|
|
430
433
|
switch (recentSearch.type) {
|
|
431
434
|
case SEARCH_RESULT_TYPES.PROFILE: {
|
|
432
|
-
const eoaProfilePicture =
|
|
435
|
+
const eoaProfilePicture = html`<lukso-tooltip
|
|
433
436
|
show-delay="2000"
|
|
434
437
|
class="flex"
|
|
435
438
|
>
|
|
@@ -452,7 +455,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
452
455
|
@click=${() => this.handleSelect(recentSearch)}
|
|
453
456
|
></lukso-profile
|
|
454
457
|
></lukso-tooltip>`;
|
|
455
|
-
const lsp3ProfilePicture =
|
|
458
|
+
const lsp3ProfilePicture = html`<lukso-tooltip
|
|
456
459
|
show-delay="2000"
|
|
457
460
|
class="flex"
|
|
458
461
|
>
|
|
@@ -482,7 +485,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
482
485
|
break;
|
|
483
486
|
}
|
|
484
487
|
case SEARCH_RESULT_TYPES.ASSET: {
|
|
485
|
-
const asset =
|
|
488
|
+
const asset = html`<lukso-tooltip show-delay="2000" class="flex">
|
|
486
489
|
<div slot="text">
|
|
487
490
|
<span class="font-600"
|
|
488
491
|
>${recentSearch.name}
|
|
@@ -504,7 +507,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
504
507
|
break;
|
|
505
508
|
}
|
|
506
509
|
case SEARCH_RESULT_TYPES.APP: {
|
|
507
|
-
const app =
|
|
510
|
+
const app = html`<lukso-tooltip show-delay="2000" class="flex">
|
|
508
511
|
<div slot="text">
|
|
509
512
|
<span class="font-600">${recentSearch.name}</span>
|
|
510
513
|
</div>
|
|
@@ -521,7 +524,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
521
524
|
}
|
|
522
525
|
}
|
|
523
526
|
}
|
|
524
|
-
return
|
|
527
|
+
return html`<div class="flex gap-4 mx-3 my-2">
|
|
525
528
|
${recentSearchTemplates}
|
|
526
529
|
</div>`;
|
|
527
530
|
}
|
|
@@ -669,7 +672,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
669
672
|
this.searchDebounce(target.value);
|
|
670
673
|
}
|
|
671
674
|
render() {
|
|
672
|
-
return
|
|
675
|
+
return html`
|
|
673
676
|
<div class="relative w-full">
|
|
674
677
|
<lukso-input
|
|
675
678
|
name=${this.name}
|
|
@@ -698,113 +701,113 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
698
701
|
@on-key-up=${this.handleKeyUp}
|
|
699
702
|
></lukso-input>
|
|
700
703
|
<!-- results dropdown -->
|
|
701
|
-
${this.results && !(this.isSearching || this.isDebouncing) ? this.resultsTemplate() :
|
|
704
|
+
${this.results && !(this.isSearching || this.isDebouncing) ? this.resultsTemplate() : nothing}
|
|
702
705
|
<!-- no results dropdown -->
|
|
703
|
-
${this.showNoResults && !(this.isSearching || this.isDebouncing) ? this.noResultsTemplate() :
|
|
706
|
+
${this.showNoResults && !(this.isSearching || this.isDebouncing) ? this.noResultsTemplate() : nothing}
|
|
704
707
|
<!-- loading dropdown -->
|
|
705
|
-
${!this.hideLoading && this.value && (this.isSearching || this.isDebouncing) ? this.loadingTemplate() :
|
|
708
|
+
${!this.hideLoading && this.value && (this.isSearching || this.isDebouncing) ? this.loadingTemplate() : nothing}
|
|
706
709
|
</div>
|
|
707
710
|
`;
|
|
708
711
|
}
|
|
709
712
|
};
|
|
710
713
|
__decorateClass([
|
|
711
|
-
|
|
714
|
+
property({ type: String })
|
|
712
715
|
], LuksoSearch.prototype, "value", 2);
|
|
713
716
|
__decorateClass([
|
|
714
|
-
|
|
717
|
+
property({ type: String })
|
|
715
718
|
], LuksoSearch.prototype, "name", 2);
|
|
716
719
|
__decorateClass([
|
|
717
|
-
|
|
720
|
+
property({ type: String })
|
|
718
721
|
], LuksoSearch.prototype, "placeholder", 2);
|
|
719
722
|
__decorateClass([
|
|
720
|
-
|
|
723
|
+
property({ type: String })
|
|
721
724
|
], LuksoSearch.prototype, "label", 2);
|
|
722
725
|
__decorateClass([
|
|
723
|
-
|
|
726
|
+
property({ type: String, attribute: "group-labels" })
|
|
724
727
|
], LuksoSearch.prototype, "groupLabels", 2);
|
|
725
728
|
__decorateClass([
|
|
726
|
-
|
|
729
|
+
property({ type: String, attribute: "available-text" })
|
|
727
730
|
], LuksoSearch.prototype, "availableText", 2);
|
|
728
731
|
__decorateClass([
|
|
729
|
-
|
|
732
|
+
property({ type: String, attribute: "unavailable-text" })
|
|
730
733
|
], LuksoSearch.prototype, "unavailableText", 2);
|
|
731
734
|
__decorateClass([
|
|
732
|
-
|
|
735
|
+
property({ type: String })
|
|
733
736
|
], LuksoSearch.prototype, "autocomplete", 2);
|
|
734
737
|
__decorateClass([
|
|
735
|
-
|
|
738
|
+
property({ type: String })
|
|
736
739
|
], LuksoSearch.prototype, "id", 2);
|
|
737
740
|
__decorateClass([
|
|
738
|
-
|
|
741
|
+
property({ type: String })
|
|
739
742
|
], LuksoSearch.prototype, "description", 2);
|
|
740
743
|
__decorateClass([
|
|
741
|
-
|
|
744
|
+
property({ type: String })
|
|
742
745
|
], LuksoSearch.prototype, "error", 2);
|
|
743
746
|
__decorateClass([
|
|
744
|
-
|
|
747
|
+
property({ type: String, attribute: "custom-class" })
|
|
745
748
|
], LuksoSearch.prototype, "customClass", 2);
|
|
746
749
|
__decorateClass([
|
|
747
|
-
|
|
750
|
+
property({ type: Boolean, attribute: "is-full-width" })
|
|
748
751
|
], LuksoSearch.prototype, "isFullWidth", 2);
|
|
749
752
|
__decorateClass([
|
|
750
|
-
|
|
753
|
+
property({ type: Boolean, attribute: "is-readonly" })
|
|
751
754
|
], LuksoSearch.prototype, "isReadonly", 2);
|
|
752
755
|
__decorateClass([
|
|
753
|
-
|
|
756
|
+
property({ type: Boolean, attribute: "is-disabled" })
|
|
754
757
|
], LuksoSearch.prototype, "isDisabled", 2);
|
|
755
758
|
__decorateClass([
|
|
756
|
-
|
|
759
|
+
property({ type: Boolean })
|
|
757
760
|
], LuksoSearch.prototype, "autofocus", 2);
|
|
758
761
|
__decorateClass([
|
|
759
|
-
|
|
762
|
+
property({ type: Boolean })
|
|
760
763
|
], LuksoSearch.prototype, "borderless", 2);
|
|
761
764
|
__decorateClass([
|
|
762
|
-
|
|
765
|
+
property({ type: String })
|
|
763
766
|
], LuksoSearch.prototype, "results", 2);
|
|
764
767
|
__decorateClass([
|
|
765
|
-
|
|
768
|
+
property({ type: String, attribute: "right-icon" })
|
|
766
769
|
], LuksoSearch.prototype, "rightIcon", 2);
|
|
767
770
|
__decorateClass([
|
|
768
|
-
|
|
771
|
+
property({ type: Number })
|
|
769
772
|
], LuksoSearch.prototype, "debounce", 2);
|
|
770
773
|
__decorateClass([
|
|
771
|
-
|
|
774
|
+
property({ type: Boolean, attribute: "is-searching" })
|
|
772
775
|
], LuksoSearch.prototype, "isSearching", 2);
|
|
773
776
|
__decorateClass([
|
|
774
|
-
|
|
777
|
+
property({ type: String, attribute: "no-results-text" })
|
|
775
778
|
], LuksoSearch.prototype, "noResultsText", 2);
|
|
776
779
|
__decorateClass([
|
|
777
|
-
|
|
780
|
+
property({ type: Boolean, attribute: "show-no-results" })
|
|
778
781
|
], LuksoSearch.prototype, "showNoResults", 2);
|
|
779
782
|
__decorateClass([
|
|
780
|
-
|
|
783
|
+
property({ type: Boolean, attribute: "hide-loading" })
|
|
781
784
|
], LuksoSearch.prototype, "hideLoading", 2);
|
|
782
785
|
__decorateClass([
|
|
783
|
-
|
|
786
|
+
property({ type: Boolean, attribute: "has-reset" })
|
|
784
787
|
], LuksoSearch.prototype, "hasReset", 2);
|
|
785
788
|
__decorateClass([
|
|
786
|
-
|
|
789
|
+
property({ type: Boolean, attribute: "keep-value-on-escape-hit" })
|
|
787
790
|
], LuksoSearch.prototype, "keepValueOnEscapeHit", 2);
|
|
788
791
|
__decorateClass([
|
|
789
|
-
|
|
792
|
+
property({ type: Number })
|
|
790
793
|
], LuksoSearch.prototype, "selected", 2);
|
|
791
794
|
__decorateClass([
|
|
792
|
-
|
|
795
|
+
property({ type: String })
|
|
793
796
|
], LuksoSearch.prototype, "size", 2);
|
|
794
797
|
__decorateClass([
|
|
795
|
-
|
|
798
|
+
property({ type: Number, attribute: "max-height" })
|
|
796
799
|
], LuksoSearch.prototype, "maxHeight", 2);
|
|
797
800
|
__decorateClass([
|
|
798
|
-
|
|
801
|
+
property({ type: Boolean, attribute: "with-group-labels" })
|
|
799
802
|
], LuksoSearch.prototype, "withGroupLabels", 2);
|
|
800
803
|
__decorateClass([
|
|
801
|
-
|
|
804
|
+
state()
|
|
802
805
|
], LuksoSearch.prototype, "isDebouncing", 2);
|
|
803
806
|
__decorateClass([
|
|
804
|
-
|
|
807
|
+
state()
|
|
805
808
|
], LuksoSearch.prototype, "debounceTimer", 2);
|
|
806
809
|
__decorateClass([
|
|
807
|
-
|
|
810
|
+
state()
|
|
808
811
|
], LuksoSearch.prototype, "resultsParsed", 2);
|
|
809
812
|
LuksoSearch = __decorateClass([
|
|
810
813
|
safeCustomElement("lukso-search")
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const directive = require('./directive-DT5Y-Nw0.js');
|
|
3
|
+
const directive = require('./directive-CY66atYi.js');
|
|
5
4
|
|
|
6
5
|
class CustomStyleMapDirective extends directive.i {
|
|
7
6
|
constructor(partInfo) {
|
|
@@ -15,7 +14,7 @@ class CustomStyleMapDirective extends directive.i {
|
|
|
15
14
|
render(styleInfoList) {
|
|
16
15
|
const styles = Object.keys(styleInfoList).filter((key) => styleInfoList[key]);
|
|
17
16
|
if (styles.length === 0) {
|
|
18
|
-
return
|
|
17
|
+
return directive.E;
|
|
19
18
|
}
|
|
20
19
|
return ` ${styles.join("; ")} `;
|
|
21
20
|
}
|