@everymatrix/helper-filters 1.44.0 → 1.45.2

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.
Files changed (50) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/helper-filters.cjs.js +16 -10
  3. package/dist/cjs/helper-filters_2.cjs.entry.js +1307 -440
  4. package/dist/cjs/index-c0a2f0ff.js +1264 -0
  5. package/dist/cjs/loader.cjs.js +6 -12
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/helper-filters/helper-filters.js +368 -398
  8. package/dist/collection/components/helper-filters/index.js +1 -0
  9. package/dist/collection/utils/locale.utils.js +65 -65
  10. package/dist/collection/utils/utils.js +1 -1
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/helper-filters.js +13 -10
  13. package/dist/esm/helper-filters_2.entry.js +1307 -440
  14. package/dist/esm/index-0aa988c9.js +1237 -0
  15. package/dist/esm/loader.js +6 -12
  16. package/dist/helper-filters/helper-filters.esm.js +1 -1
  17. package/dist/helper-filters/{p-a4793f5e.entry.js → p-5e354aa8.entry.js} +1040 -273
  18. package/dist/helper-filters/p-e1255160.js +1 -0
  19. package/dist/helper-filters/p-f48a0fde.js +2 -0
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/helper-filters/helper-filters.d.ts +63 -63
  25. package/dist/types/components/helper-filters/index.d.ts +1 -0
  26. package/dist/types/components.d.ts +20 -3
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/loader/cdn.js +1 -3
  29. package/loader/index.cjs.js +1 -3
  30. package/loader/index.d.ts +13 -1
  31. package/loader/index.es2017.js +1 -3
  32. package/loader/index.js +1 -3
  33. package/loader/package.json +1 -0
  34. package/package.json +9 -2
  35. package/dist/cjs/index-4be1aa12.js +0 -1235
  36. package/dist/components/helper-filters.d.ts +0 -11
  37. package/dist/components/helper-filters.js +0 -23566
  38. package/dist/components/helper-modal.js +0 -6
  39. package/dist/components/helper-modal2.js +0 -93
  40. package/dist/components/index.d.ts +0 -26
  41. package/dist/components/index.js +0 -1
  42. package/dist/esm/index-5f4ed338.js +0 -1209
  43. package/dist/esm/polyfills/core-js.js +0 -11
  44. package/dist/esm/polyfills/css-shim.js +0 -1
  45. package/dist/esm/polyfills/dom.js +0 -79
  46. package/dist/esm/polyfills/es5-html-element.js +0 -1
  47. package/dist/esm/polyfills/index.js +0 -34
  48. package/dist/esm/polyfills/system.js +0 -6
  49. package/dist/helper-filters/p-6a46b66a.js +0 -1
  50. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/helper-filters/.stencil/packages/helper-filters/stencil.config.d.ts +0 -2
@@ -1,75 +1,75 @@
1
- import { r as registerInstance, c as createEvent, h as h$2 } from './index-5f4ed338.js';
1
+ import { r as registerInstance, c as createEvent, h as h$2 } from './index-0aa988c9.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
5
5
  const TRANSLATIONS = {
6
- en: {
7
- filterOpen: 'Filter',
8
- filterClear: 'Clear',
9
- filterModalTicketTitle: 'Ticket Results',
10
- filterModalDrawTitle: 'Draws Results History',
11
- filterTicketPlaceholder: 'Search for a ticket ID',
12
- filterDrawPlaceholder: 'Search for a draw ID',
13
- filterDateRangePlaceholder: 'Date Range',
14
- filterModalButton: 'Search',
15
- filterFromCalendar: 'From',
16
- filterToCalendar: 'To',
17
- filterOrDate: 'or search by date'
18
- },
19
- ro: {
20
- filterOpen: 'Filtrare',
21
- filterClear: 'Stergere',
22
- filterModalTicketTitle: 'Rezultatele biletelor',
23
- filterModalDrawTitle: 'Rezultatele draw-urilor',
24
- filterTicketPlaceholder: 'Cauta ID bilet',
25
- filterDrawPlaceholder: 'Cauta ID draw',
26
- filterDateRangePlaceholder: 'Perioada',
27
- filterModalButton: 'Cauta',
28
- filterOrDate: 'sau cauta dupa data'
29
- },
30
- fr: {
31
- filterOpen: 'Filter',
32
- filterClear: 'Clear',
33
- filterModalTicketTitle: 'Ticket Results',
34
- filterModalDrawTitle: 'Draws Results History',
35
- filterTicketPlaceholder: 'Search for a ticket ID',
36
- filterDrawPlaceholder: 'Search for a draw ID',
37
- filterDateRangePlaceholder: 'Date Range',
38
- filterModalButton: 'Search',
39
- filterFromCalendar: 'From',
40
- filterToCalendar: 'To',
41
- filterOrDate: 'or search by date'
42
- },
43
- ar: {
44
- filterOpen: 'Filter',
45
- filterClear: 'Clear',
46
- filterModalTicketTitle: 'Ticket Results',
47
- filterModalDrawTitle: 'Draws Results History',
48
- filterTicketPlaceholder: 'Search for a ticket ID',
49
- filterDrawPlaceholder: 'Search for a draw ID',
50
- filterDateRangePlaceholder: 'Date Range',
51
- filterModalButton: 'Search',
52
- filterFromCalendar: 'From',
53
- filterToCalendar: 'To',
54
- filterOrDate: 'or search by date'
55
- },
56
- hr: {
57
- filterOpen: 'Filter',
58
- filterClear: 'Očisti',
59
- filterModalTicketTitle: 'Rezultati listića',
60
- filterModalDrawTitle: 'Povijest rezultata Izvlačenja',
61
- filterTicketPlaceholder: 'Pretraga ID listića',
62
- filterDrawPlaceholder: 'Pretraga ID izvlačenja',
63
- filterDateRangePlaceholder: 'Raspon datuma',
64
- filterModalButton: 'Traži',
65
- filterFromCalendar: 'Od',
66
- filterToCalendar: 'Do',
67
- filterOrDate: 'ili tražite po datumu'
68
- }
6
+ en: {
7
+ filterOpen: 'Filter',
8
+ filterClear: 'Clear',
9
+ filterModalTicketTitle: 'Ticket Results',
10
+ filterModalDrawTitle: 'Draws Results History',
11
+ filterTicketPlaceholder: 'Search for a ticket ID',
12
+ filterDrawPlaceholder: 'Search for a draw ID',
13
+ filterDateRangePlaceholder: 'Date Range',
14
+ filterModalButton: 'Search',
15
+ filterFromCalendar: 'From',
16
+ filterToCalendar: 'To',
17
+ filterOrDate: 'or search by date'
18
+ },
19
+ ro: {
20
+ filterOpen: 'Filtrare',
21
+ filterClear: 'Stergere',
22
+ filterModalTicketTitle: 'Rezultatele biletelor',
23
+ filterModalDrawTitle: 'Rezultatele draw-urilor',
24
+ filterTicketPlaceholder: 'Cauta ID bilet',
25
+ filterDrawPlaceholder: 'Cauta ID draw',
26
+ filterDateRangePlaceholder: 'Perioada',
27
+ filterModalButton: 'Cauta',
28
+ filterOrDate: 'sau cauta dupa data'
29
+ },
30
+ fr: {
31
+ filterOpen: 'Filter',
32
+ filterClear: 'Clear',
33
+ filterModalTicketTitle: 'Ticket Results',
34
+ filterModalDrawTitle: 'Draws Results History',
35
+ filterTicketPlaceholder: 'Search for a ticket ID',
36
+ filterDrawPlaceholder: 'Search for a draw ID',
37
+ filterDateRangePlaceholder: 'Date Range',
38
+ filterModalButton: 'Search',
39
+ filterFromCalendar: 'From',
40
+ filterToCalendar: 'To',
41
+ filterOrDate: 'or search by date'
42
+ },
43
+ ar: {
44
+ filterOpen: 'Filter',
45
+ filterClear: 'Clear',
46
+ filterModalTicketTitle: 'Ticket Results',
47
+ filterModalDrawTitle: 'Draws Results History',
48
+ filterTicketPlaceholder: 'Search for a ticket ID',
49
+ filterDrawPlaceholder: 'Search for a draw ID',
50
+ filterDateRangePlaceholder: 'Date Range',
51
+ filterModalButton: 'Search',
52
+ filterFromCalendar: 'From',
53
+ filterToCalendar: 'To',
54
+ filterOrDate: 'or search by date'
55
+ },
56
+ hr: {
57
+ filterOpen: 'Filter',
58
+ filterClear: 'Očisti',
59
+ filterModalTicketTitle: 'Rezultati listića',
60
+ filterModalDrawTitle: 'Povijest rezultata Izvlačenja',
61
+ filterTicketPlaceholder: 'Pretraga ID listića',
62
+ filterDrawPlaceholder: 'Pretraga ID izvlačenja',
63
+ filterDateRangePlaceholder: 'Raspon datuma',
64
+ filterModalButton: 'Traži',
65
+ filterFromCalendar: 'Od',
66
+ filterToCalendar: 'Do',
67
+ filterOrDate: 'ili tražite po datumu'
68
+ }
69
69
  };
70
70
  const translate$1 = (key, customLang) => {
71
- const lang = customLang;
72
- return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
71
+ const lang = customLang;
72
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
73
73
  };
74
74
 
75
75
  /**
@@ -106,17 +106,17 @@ function defineCustomElement(CustomElement) {
106
106
  *
107
107
  * @private
108
108
  */
109
- class Lumo extends HTMLElement {
109
+ class Lumo$2 extends HTMLElement {
110
110
  static get is() {
111
111
  return 'vaadin-lumo-styles';
112
112
  }
113
113
 
114
114
  static get version() {
115
- return '24.2.5';
115
+ return '24.2.9';
116
116
  }
117
117
  }
118
118
 
119
- defineCustomElement(Lumo);
119
+ defineCustomElement(Lumo$2);
120
120
 
121
121
  /**
122
122
  * @license
@@ -460,7 +460,7 @@ const addGlobalThemeStyles = (id, ...styles) => {
460
460
  document.head.insertAdjacentElement('afterbegin', styleTag);
461
461
  };
462
462
 
463
- const addLumoGlobalStyles = (id, ...styles) => {
463
+ const addLumoGlobalStyles$2 = (id, ...styles) => {
464
464
  addGlobalThemeStyles(`lumo-${id}`, styles);
465
465
  };
466
466
 
@@ -470,7 +470,7 @@ const addLumoGlobalStyles = (id, ...styles) => {
470
470
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
471
471
  */
472
472
 
473
- const colorBase = i$1`
473
+ const colorBase$2 = i$1`
474
474
  :host {
475
475
  /* Base (background) */
476
476
  --lumo-base-color: #fff;
@@ -557,9 +557,9 @@ const colorBase = i$1`
557
557
  }
558
558
  `;
559
559
 
560
- addLumoGlobalStyles('color-props', colorBase);
560
+ addLumoGlobalStyles$2('color-props', colorBase$2);
561
561
 
562
- const color = i$1`
562
+ const color$2 = i$1`
563
563
  [theme~='dark'] {
564
564
  /* Base (background) */
565
565
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -676,7 +676,7 @@ const color = i$1`
676
676
  }
677
677
  `;
678
678
 
679
- registerStyles('', color, { moduleId: 'lumo-color' });
679
+ registerStyles('', color$2, { moduleId: 'lumo-color' });
680
680
 
681
681
  /**
682
682
  * @license
@@ -684,7 +684,7 @@ registerStyles('', color, { moduleId: 'lumo-color' });
684
684
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
685
685
  */
686
686
 
687
- const sizing = i$1`
687
+ const sizing$2 = i$1`
688
688
  :host {
689
689
  --lumo-size-xs: 1.625rem;
690
690
  --lumo-size-s: 1.875rem;
@@ -701,7 +701,7 @@ const sizing = i$1`
701
701
  }
702
702
  `;
703
703
 
704
- addLumoGlobalStyles('sizing-props', sizing);
704
+ addLumoGlobalStyles$2('sizing-props', sizing$2);
705
705
 
706
706
  /**
707
707
  * @license
@@ -709,7 +709,7 @@ addLumoGlobalStyles('sizing-props', sizing);
709
709
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
710
710
  */
711
711
 
712
- const style = i$1`
712
+ const style$2 = i$1`
713
713
  :host {
714
714
  /* Border radius */
715
715
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -739,7 +739,7 @@ i$1`
739
739
  }
740
740
  `;
741
741
 
742
- addLumoGlobalStyles('style-props', style);
742
+ addLumoGlobalStyles$2('style-props', style$2);
743
743
 
744
744
  /**
745
745
  * @license
@@ -747,7 +747,7 @@ addLumoGlobalStyles('style-props', style);
747
747
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
748
748
  */
749
749
 
750
- const font = i$1`
750
+ const font$2 = i$1`
751
751
  :host {
752
752
  /* prettier-ignore */
753
753
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -769,7 +769,7 @@ const font = i$1`
769
769
  }
770
770
  `;
771
771
 
772
- const typography = i$1`
772
+ const typography$2 = i$1`
773
773
  body,
774
774
  :host {
775
775
  font-family: var(--lumo-font-family);
@@ -863,8 +863,8 @@ const typography = i$1`
863
863
  }
864
864
  `;
865
865
 
866
- registerStyles('', typography, { moduleId: 'lumo-typography' });
867
- addLumoGlobalStyles('typography-props', font);
866
+ registerStyles('', typography$2, { moduleId: 'lumo-typography' });
867
+ addLumoGlobalStyles$2('typography-props', font$2);
868
868
 
869
869
  registerStyles(
870
870
  'vaadin-input-container',
@@ -8364,7 +8364,60 @@ defineCustomElement(InputContainer);
8364
8364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8365
8365
  */
8366
8366
 
8367
- const spacing = i$1`
8367
+ /**
8368
+ * Dummy custom element used for collecting
8369
+ * development time usage statistics.
8370
+ *
8371
+ * @private
8372
+ */
8373
+ class Lumo$1 extends HTMLElement {
8374
+ static get is() {
8375
+ return 'vaadin-lumo-styles';
8376
+ }
8377
+
8378
+ static get version() {
8379
+ return '24.2.5';
8380
+ }
8381
+ }
8382
+
8383
+ defineCustomElement(Lumo$1);
8384
+
8385
+ const addLumoGlobalStyles$1 = (id, ...styles) => {
8386
+ addGlobalThemeStyles(`lumo-${id}`, styles);
8387
+ };
8388
+
8389
+ /**
8390
+ * @license
8391
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8392
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8393
+ */
8394
+
8395
+ const sizing$1 = i$1`
8396
+ :host {
8397
+ --lumo-size-xs: 1.625rem;
8398
+ --lumo-size-s: 1.875rem;
8399
+ --lumo-size-m: 2.25rem;
8400
+ --lumo-size-l: 2.75rem;
8401
+ --lumo-size-xl: 3.5rem;
8402
+
8403
+ /* Icons */
8404
+ --lumo-icon-size-s: 1.25em;
8405
+ --lumo-icon-size-m: 1.5em;
8406
+ --lumo-icon-size-l: 2.25em;
8407
+ /* For backwards compatibility */
8408
+ --lumo-icon-size: var(--lumo-icon-size-m);
8409
+ }
8410
+ `;
8411
+
8412
+ addLumoGlobalStyles$1('sizing-props', sizing$1);
8413
+
8414
+ /**
8415
+ * @license
8416
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8417
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8418
+ */
8419
+
8420
+ const spacing$1 = i$1`
8368
8421
  :host {
8369
8422
  /* Square */
8370
8423
  --lumo-space-xs: 0.25rem;
@@ -8389,7 +8442,7 @@ const spacing = i$1`
8389
8442
  }
8390
8443
  `;
8391
8444
 
8392
- addLumoGlobalStyles('spacing-props', spacing);
8445
+ addLumoGlobalStyles$1('spacing-props', spacing$1);
8393
8446
 
8394
8447
  /**
8395
8448
  * @license
@@ -8397,234 +8450,1074 @@ addLumoGlobalStyles('spacing-props', spacing);
8397
8450
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8398
8451
  */
8399
8452
 
8400
- const overlay = i$1`
8453
+ const style$1 = i$1`
8401
8454
  :host {
8402
- top: var(--lumo-space-m);
8403
- right: var(--lumo-space-m);
8404
- bottom: var(--lumo-space-m);
8405
- left: var(--lumo-space-m);
8406
- /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
8407
- /* stylelint-disable-next-line */
8408
- outline: 0px solid transparent;
8409
- }
8455
+ /* Border radius */
8456
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
8457
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
8458
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
8410
8459
 
8411
- [part='overlay'] {
8412
- background-color: var(--lumo-base-color);
8413
- background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
8414
- border-radius: var(--lumo-border-radius-m);
8415
- box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
8416
- color: var(--lumo-body-text-color);
8417
- font-family: var(--lumo-font-family);
8418
- font-size: var(--lumo-font-size-m);
8419
- font-weight: 400;
8420
- line-height: var(--lumo-line-height-m);
8421
- letter-spacing: 0;
8422
- text-transform: none;
8423
- -webkit-text-size-adjust: 100%;
8424
- -webkit-font-smoothing: antialiased;
8425
- -moz-osx-font-smoothing: grayscale;
8426
- }
8460
+ /* Shadow */
8461
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
8462
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
8463
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
8464
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
8465
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
8427
8466
 
8428
- [part='content'] {
8429
- padding: var(--lumo-space-xs);
8467
+ /* Clickable element cursor */
8468
+ --lumo-clickable-cursor: default;
8430
8469
  }
8470
+ `;
8431
8471
 
8432
- [part='backdrop'] {
8433
- background-color: var(--lumo-shade-20pct);
8434
- animation: 0.2s lumo-overlay-backdrop-enter both;
8435
- will-change: opacity;
8472
+ /**
8473
+ * Default values for component-specific custom properties.
8474
+ */
8475
+ i$1`
8476
+ html {
8477
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
8478
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
8479
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
8436
8480
  }
8481
+ `;
8437
8482
 
8438
- @keyframes lumo-overlay-backdrop-enter {
8439
- 0% {
8440
- opacity: 0;
8441
- }
8442
- }
8483
+ addLumoGlobalStyles$1('style-props', style$1);
8443
8484
 
8444
- :host([closing]) [part='backdrop'] {
8445
- animation: 0.2s lumo-overlay-backdrop-exit both;
8446
- }
8485
+ /**
8486
+ * @license
8487
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8488
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8489
+ */
8447
8490
 
8448
- @keyframes lumo-overlay-backdrop-exit {
8449
- 100% {
8450
- opacity: 0;
8451
- }
8452
- }
8491
+ const colorBase$1 = i$1`
8492
+ :host {
8493
+ /* Base (background) */
8494
+ --lumo-base-color: #fff;
8453
8495
 
8454
- @keyframes lumo-overlay-dummy-animation {
8455
- 0% {
8456
- opacity: 1;
8457
- }
8496
+ /* Tint */
8497
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
8498
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
8499
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
8500
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
8501
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
8502
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
8503
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
8504
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
8505
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
8506
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
8507
+ --lumo-tint: #fff;
8458
8508
 
8459
- 100% {
8460
- opacity: 1;
8509
+ /* Shade */
8510
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
8511
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
8512
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
8513
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
8514
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
8515
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
8516
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
8517
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
8518
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
8519
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
8520
+ --lumo-shade: hsl(214, 35%, 15%);
8521
+
8522
+ /* Contrast */
8523
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
8524
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
8525
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
8526
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
8527
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
8528
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
8529
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
8530
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
8531
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
8532
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
8533
+ --lumo-contrast: var(--lumo-shade);
8534
+
8535
+ /* Text */
8536
+ --lumo-header-text-color: var(--lumo-contrast);
8537
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
8538
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
8539
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
8540
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
8541
+
8542
+ /* Primary */
8543
+ --lumo-primary-color: hsl(214, 100%, 48%);
8544
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
8545
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
8546
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
8547
+ --lumo-primary-contrast-color: #fff;
8548
+
8549
+ /* Error */
8550
+ --lumo-error-color: hsl(3, 85%, 48%);
8551
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
8552
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
8553
+ --lumo-error-text-color: hsl(3, 89%, 42%);
8554
+ --lumo-error-contrast-color: #fff;
8555
+
8556
+ /* Success */
8557
+ --lumo-success-color: hsl(145, 72%, 30%);
8558
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
8559
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
8560
+ --lumo-success-text-color: hsl(145, 85%, 25%);
8561
+ --lumo-success-contrast-color: #fff;
8562
+
8563
+ /* Warning */
8564
+ --lumo-warning-color: hsl(48, 100%, 50%);
8565
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
8566
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
8567
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
8568
+ }
8569
+
8570
+ /* forced-colors mode adjustments */
8571
+ @media (forced-colors: active) {
8572
+ html {
8573
+ --lumo-disabled-text-color: GrayText;
8461
8574
  }
8462
8575
  }
8463
8576
  `;
8464
8577
 
8465
- registerStyles('', overlay, { moduleId: 'lumo-overlay' });
8578
+ addLumoGlobalStyles$1('color-props', colorBase$1);
8466
8579
 
8467
- /**
8468
- * @license
8469
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
8470
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8471
- */
8580
+ const color$1 = i$1`
8581
+ [theme~='dark'] {
8582
+ /* Base (background) */
8583
+ --lumo-base-color: hsl(214, 35%, 21%);
8584
+
8585
+ /* Tint */
8586
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
8587
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
8588
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
8589
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
8590
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
8591
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
8592
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
8593
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
8594
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
8595
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
8596
+ --lumo-tint: hsl(214, 100%, 98%);
8597
+
8598
+ /* Shade */
8599
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
8600
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
8601
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
8602
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
8603
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
8604
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
8605
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
8606
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
8607
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
8608
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
8609
+ --lumo-shade: hsl(214, 33%, 13%);
8610
+
8611
+ /* Contrast */
8612
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
8613
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
8614
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
8615
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
8616
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
8617
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
8618
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
8619
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
8620
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
8621
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
8622
+ --lumo-contrast: var(--lumo-tint);
8623
+
8624
+ /* Text */
8625
+ --lumo-header-text-color: var(--lumo-contrast);
8626
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
8627
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
8628
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
8629
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
8630
+
8631
+ /* Primary */
8632
+ --lumo-primary-color: hsl(214, 90%, 48%);
8633
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
8634
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
8635
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
8636
+ --lumo-primary-contrast-color: #fff;
8637
+
8638
+ /* Error */
8639
+ --lumo-error-color: hsl(3, 79%, 49%);
8640
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
8641
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
8642
+ --lumo-error-text-color: hsl(3, 100%, 80%);
8643
+
8644
+ /* Success */
8645
+ --lumo-success-color: hsl(145, 72%, 30%);
8646
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
8647
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
8648
+ --lumo-success-text-color: hsl(145, 85%, 46%);
8649
+
8650
+ /* Warning */
8651
+ --lumo-warning-color: hsl(43, 100%, 48%);
8652
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
8653
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
8654
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
8655
+ }
8656
+
8657
+ html {
8658
+ color: var(--lumo-body-text-color);
8659
+ background-color: var(--lumo-base-color);
8660
+ color-scheme: light;
8661
+ }
8662
+
8663
+ [theme~='dark'] {
8664
+ color: var(--lumo-body-text-color);
8665
+ background-color: var(--lumo-base-color);
8666
+ color-scheme: dark;
8667
+ }
8668
+
8669
+ h1,
8670
+ h2,
8671
+ h3,
8672
+ h4,
8673
+ h5,
8674
+ h6 {
8675
+ color: var(--lumo-header-text-color);
8676
+ }
8677
+
8678
+ a:where(:any-link) {
8679
+ color: var(--lumo-primary-text-color);
8680
+ }
8681
+
8682
+ a:not(:any-link) {
8683
+ color: var(--lumo-disabled-text-color);
8684
+ }
8685
+
8686
+ blockquote {
8687
+ color: var(--lumo-secondary-text-color);
8688
+ }
8689
+
8690
+ code,
8691
+ pre {
8692
+ background-color: var(--lumo-contrast-10pct);
8693
+ border-radius: var(--lumo-border-radius-m);
8694
+ }
8695
+ `;
8696
+
8697
+ registerStyles('', color$1, { moduleId: 'lumo-color' });
8698
+
8699
+ /**
8700
+ * @license
8701
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8702
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8703
+ */
8704
+
8705
+ const font$1 = i$1`
8706
+ :host {
8707
+ /* prettier-ignore */
8708
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
8709
+
8710
+ /* Font sizes */
8711
+ --lumo-font-size-xxs: 0.75rem;
8712
+ --lumo-font-size-xs: 0.8125rem;
8713
+ --lumo-font-size-s: 0.875rem;
8714
+ --lumo-font-size-m: 1rem;
8715
+ --lumo-font-size-l: 1.125rem;
8716
+ --lumo-font-size-xl: 1.375rem;
8717
+ --lumo-font-size-xxl: 1.75rem;
8718
+ --lumo-font-size-xxxl: 2.5rem;
8719
+
8720
+ /* Line heights */
8721
+ --lumo-line-height-xs: 1.25;
8722
+ --lumo-line-height-s: 1.375;
8723
+ --lumo-line-height-m: 1.625;
8724
+ }
8725
+ `;
8726
+
8727
+ const typography$1 = i$1`
8728
+ body,
8729
+ :host {
8730
+ font-family: var(--lumo-font-family);
8731
+ font-size: var(--lumo-font-size-m);
8732
+ line-height: var(--lumo-line-height-m);
8733
+ -webkit-text-size-adjust: 100%;
8734
+ -webkit-font-smoothing: antialiased;
8735
+ -moz-osx-font-smoothing: grayscale;
8736
+ }
8737
+
8738
+ small,
8739
+ [theme~='font-size-s'] {
8740
+ font-size: var(--lumo-font-size-s);
8741
+ line-height: var(--lumo-line-height-s);
8742
+ }
8743
+
8744
+ [theme~='font-size-xs'] {
8745
+ font-size: var(--lumo-font-size-xs);
8746
+ line-height: var(--lumo-line-height-xs);
8747
+ }
8748
+
8749
+ :where(h1, h2, h3, h4, h5, h6) {
8750
+ font-weight: 600;
8751
+ line-height: var(--lumo-line-height-xs);
8752
+ margin-block: 0;
8753
+ }
8754
+
8755
+ :where(h1) {
8756
+ font-size: var(--lumo-font-size-xxxl);
8757
+ }
8758
+
8759
+ :where(h2) {
8760
+ font-size: var(--lumo-font-size-xxl);
8761
+ }
8762
+
8763
+ :where(h3) {
8764
+ font-size: var(--lumo-font-size-xl);
8765
+ }
8766
+
8767
+ :where(h4) {
8768
+ font-size: var(--lumo-font-size-l);
8769
+ }
8770
+
8771
+ :where(h5) {
8772
+ font-size: var(--lumo-font-size-m);
8773
+ }
8774
+
8775
+ :where(h6) {
8776
+ font-size: var(--lumo-font-size-xs);
8777
+ text-transform: uppercase;
8778
+ letter-spacing: 0.03em;
8779
+ }
8780
+
8781
+ p,
8782
+ blockquote {
8783
+ margin-top: 0.5em;
8784
+ margin-bottom: 0.75em;
8785
+ }
8786
+
8787
+ a {
8788
+ text-decoration: none;
8789
+ }
8790
+
8791
+ a:where(:any-link):hover {
8792
+ text-decoration: underline;
8793
+ }
8794
+
8795
+ hr {
8796
+ display: block;
8797
+ align-self: stretch;
8798
+ height: 1px;
8799
+ border: 0;
8800
+ padding: 0;
8801
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
8802
+ background-color: var(--lumo-contrast-10pct);
8803
+ }
8804
+
8805
+ blockquote {
8806
+ border-left: 2px solid var(--lumo-contrast-30pct);
8807
+ }
8808
+
8809
+ b,
8810
+ strong {
8811
+ font-weight: 600;
8812
+ }
8813
+
8814
+ /* RTL specific styles */
8815
+ blockquote[dir='rtl'] {
8816
+ border-left: none;
8817
+ border-right: 2px solid var(--lumo-contrast-30pct);
8818
+ }
8819
+ `;
8820
+
8821
+ registerStyles('', typography$1, { moduleId: 'lumo-typography' });
8822
+ addLumoGlobalStyles$1('typography-props', font$1);
8823
+
8824
+ /**
8825
+ * @license
8826
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8827
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8828
+ */
8829
+
8830
+ const overlay = i$1`
8831
+ :host {
8832
+ top: var(--lumo-space-m);
8833
+ right: var(--lumo-space-m);
8834
+ bottom: var(--lumo-space-m);
8835
+ left: var(--lumo-space-m);
8836
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
8837
+ /* stylelint-disable-next-line */
8838
+ outline: 0px solid transparent;
8839
+ }
8840
+
8841
+ [part='overlay'] {
8842
+ background-color: var(--lumo-base-color);
8843
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
8844
+ border-radius: var(--lumo-border-radius-m);
8845
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
8846
+ color: var(--lumo-body-text-color);
8847
+ font-family: var(--lumo-font-family);
8848
+ font-size: var(--lumo-font-size-m);
8849
+ font-weight: 400;
8850
+ line-height: var(--lumo-line-height-m);
8851
+ letter-spacing: 0;
8852
+ text-transform: none;
8853
+ -webkit-text-size-adjust: 100%;
8854
+ -webkit-font-smoothing: antialiased;
8855
+ -moz-osx-font-smoothing: grayscale;
8856
+ }
8857
+
8858
+ [part='content'] {
8859
+ padding: var(--lumo-space-xs);
8860
+ }
8861
+
8862
+ [part='backdrop'] {
8863
+ background-color: var(--lumo-shade-20pct);
8864
+ animation: 0.2s lumo-overlay-backdrop-enter both;
8865
+ will-change: opacity;
8866
+ }
8867
+
8868
+ @keyframes lumo-overlay-backdrop-enter {
8869
+ 0% {
8870
+ opacity: 0;
8871
+ }
8872
+ }
8873
+
8874
+ :host([closing]) [part='backdrop'] {
8875
+ animation: 0.2s lumo-overlay-backdrop-exit both;
8876
+ }
8877
+
8878
+ @keyframes lumo-overlay-backdrop-exit {
8879
+ 100% {
8880
+ opacity: 0;
8881
+ }
8882
+ }
8883
+
8884
+ @keyframes lumo-overlay-dummy-animation {
8885
+ 0% {
8886
+ opacity: 1;
8887
+ }
8888
+
8889
+ 100% {
8890
+ opacity: 1;
8891
+ }
8892
+ }
8893
+ `;
8894
+
8895
+ registerStyles('', overlay, { moduleId: 'lumo-overlay' });
8896
+
8897
+ /**
8898
+ * @license
8899
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8900
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8901
+ */
8902
+
8903
+ const menuOverlayCore = i$1`
8904
+ :host([opening]),
8905
+ :host([closing]) {
8906
+ animation: 0.14s lumo-overlay-dummy-animation;
8907
+ }
8908
+
8909
+ [part='overlay'] {
8910
+ will-change: opacity, transform;
8911
+ }
8912
+
8913
+ :host([opening]) [part='overlay'] {
8914
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
8915
+ }
8916
+
8917
+ @keyframes lumo-menu-overlay-enter {
8918
+ 0% {
8919
+ opacity: 0;
8920
+ transform: translateY(-4px);
8921
+ }
8922
+ }
8923
+
8924
+ :host([closing]) [part='overlay'] {
8925
+ animation: 0.1s lumo-menu-overlay-exit both;
8926
+ }
8927
+
8928
+ @keyframes lumo-menu-overlay-exit {
8929
+ 100% {
8930
+ opacity: 0;
8931
+ }
8932
+ }
8933
+ `;
8934
+
8935
+ registerStyles('', menuOverlayCore, { moduleId: 'lumo-menu-overlay-core' });
8936
+
8937
+ const menuOverlayExt = i$1`
8938
+ /* Small viewport (bottom sheet) styles */
8939
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
8940
+ @media (max-width: 420px), (max-height: 420px) {
8941
+ :host {
8942
+ top: 0 !important;
8943
+ right: 0 !important;
8944
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
8945
+ left: 0 !important;
8946
+ align-items: stretch !important;
8947
+ justify-content: flex-end !important;
8948
+ }
8949
+
8950
+ [part='overlay'] {
8951
+ max-height: 50vh;
8952
+ width: 100vw;
8953
+ border-radius: 0;
8954
+ box-shadow: var(--lumo-box-shadow-xl);
8955
+ }
8956
+
8957
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
8958
+ [part='content'] {
8959
+ padding: 30px var(--lumo-space-m);
8960
+ max-height: inherit;
8961
+ box-sizing: border-box;
8962
+ -webkit-overflow-scrolling: touch;
8963
+ overflow: auto;
8964
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
8965
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
8966
+ }
8967
+
8968
+ [part='backdrop'] {
8969
+ display: block;
8970
+ }
8971
+
8972
+ /* Animations */
8973
+
8974
+ :host([opening]) [part='overlay'] {
8975
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
8976
+ }
8977
+
8978
+ :host([closing]),
8979
+ :host([closing]) [part='backdrop'] {
8980
+ animation-delay: 0.14s;
8981
+ }
8982
+
8983
+ :host([closing]) [part='overlay'] {
8984
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
8985
+ }
8986
+ }
8987
+
8988
+ @keyframes lumo-mobile-menu-overlay-enter {
8989
+ 0% {
8990
+ transform: translateY(150%);
8991
+ }
8992
+ }
8993
+
8994
+ @keyframes lumo-mobile-menu-overlay-exit {
8995
+ 100% {
8996
+ transform: translateY(150%);
8997
+ }
8998
+ }
8999
+ `;
9000
+
9001
+ const menuOverlay = [overlay, menuOverlayCore, menuOverlayExt];
9002
+
9003
+ registerStyles('', menuOverlay, { moduleId: 'lumo-menu-overlay' });
9004
+
9005
+ const datePickerOverlay = i$1`
9006
+ [part='overlay'] {
9007
+ /*
9008
+ Width:
9009
+ date cell widths
9010
+ + month calendar side padding
9011
+ + year scroller width
9012
+ */
9013
+ /* prettier-ignore */
9014
+ width:
9015
+ calc(
9016
+ var(--lumo-size-m) * 7
9017
+ + var(--lumo-space-xs) * 2
9018
+ + 57px
9019
+ );
9020
+ height: 100%;
9021
+ max-height: calc(var(--lumo-size-m) * 14);
9022
+ overflow: hidden;
9023
+ -webkit-tap-highlight-color: transparent;
9024
+ }
9025
+
9026
+ [part='overlay'] {
9027
+ flex-direction: column;
9028
+ }
9029
+
9030
+ [part='content'] {
9031
+ padding: 0;
9032
+ height: 100%;
9033
+ overflow: hidden;
9034
+ -webkit-mask-image: none;
9035
+ mask-image: none;
9036
+ }
9037
+
9038
+ :host([top-aligned]) [part~='overlay'] {
9039
+ margin-top: var(--lumo-space-xs);
9040
+ }
9041
+
9042
+ :host([bottom-aligned]) [part~='overlay'] {
9043
+ margin-bottom: var(--lumo-space-xs);
9044
+ }
9045
+
9046
+ @media (max-width: 420px), (max-height: 420px) {
9047
+ [part='overlay'] {
9048
+ width: 100vw;
9049
+ height: 70vh;
9050
+ max-height: 70vh;
9051
+ }
9052
+ }
9053
+ `;
9054
+
9055
+ registerStyles('vaadin-date-picker-overlay', [menuOverlay, datePickerOverlay], {
9056
+ moduleId: 'lumo-date-picker-overlay',
9057
+ });
9058
+
9059
+ /**
9060
+ * @license
9061
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
9062
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9063
+ */
9064
+
9065
+ /**
9066
+ * Dummy custom element used for collecting
9067
+ * development time usage statistics.
9068
+ *
9069
+ * @private
9070
+ */
9071
+ class Lumo extends HTMLElement {
9072
+ static get is() {
9073
+ return 'vaadin-lumo-styles';
9074
+ }
9075
+
9076
+ static get version() {
9077
+ return '24.2.9';
9078
+ }
9079
+ }
9080
+
9081
+ defineCustomElement(Lumo);
9082
+
9083
+ const addLumoGlobalStyles = (id, ...styles) => {
9084
+ addGlobalThemeStyles(`lumo-${id}`, styles);
9085
+ };
9086
+
9087
+ /**
9088
+ * @license
9089
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
9090
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9091
+ */
9092
+
9093
+ const colorBase = i$1`
9094
+ :host {
9095
+ /* Base (background) */
9096
+ --lumo-base-color: #fff;
9097
+
9098
+ /* Tint */
9099
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
9100
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
9101
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
9102
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
9103
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
9104
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
9105
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
9106
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
9107
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
9108
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
9109
+ --lumo-tint: #fff;
9110
+
9111
+ /* Shade */
9112
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
9113
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
9114
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
9115
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
9116
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
9117
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
9118
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
9119
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
9120
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
9121
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
9122
+ --lumo-shade: hsl(214, 35%, 15%);
9123
+
9124
+ /* Contrast */
9125
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
9126
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
9127
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
9128
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
9129
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
9130
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
9131
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
9132
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
9133
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
9134
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
9135
+ --lumo-contrast: var(--lumo-shade);
9136
+
9137
+ /* Text */
9138
+ --lumo-header-text-color: var(--lumo-contrast);
9139
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
9140
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
9141
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
9142
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
9143
+
9144
+ /* Primary */
9145
+ --lumo-primary-color: hsl(214, 100%, 48%);
9146
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
9147
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
9148
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
9149
+ --lumo-primary-contrast-color: #fff;
9150
+
9151
+ /* Error */
9152
+ --lumo-error-color: hsl(3, 85%, 48%);
9153
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
9154
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
9155
+ --lumo-error-text-color: hsl(3, 89%, 42%);
9156
+ --lumo-error-contrast-color: #fff;
9157
+
9158
+ /* Success */
9159
+ --lumo-success-color: hsl(145, 72%, 30%);
9160
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
9161
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
9162
+ --lumo-success-text-color: hsl(145, 85%, 25%);
9163
+ --lumo-success-contrast-color: #fff;
9164
+
9165
+ /* Warning */
9166
+ --lumo-warning-color: hsl(48, 100%, 50%);
9167
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
9168
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
9169
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
9170
+ }
9171
+
9172
+ /* forced-colors mode adjustments */
9173
+ @media (forced-colors: active) {
9174
+ html {
9175
+ --lumo-disabled-text-color: GrayText;
9176
+ }
9177
+ }
9178
+ `;
9179
+
9180
+ addLumoGlobalStyles('color-props', colorBase);
9181
+
9182
+ const color = i$1`
9183
+ [theme~='dark'] {
9184
+ /* Base (background) */
9185
+ --lumo-base-color: hsl(214, 35%, 21%);
9186
+
9187
+ /* Tint */
9188
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
9189
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
9190
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
9191
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
9192
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
9193
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
9194
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
9195
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
9196
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
9197
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
9198
+ --lumo-tint: hsl(214, 100%, 98%);
9199
+
9200
+ /* Shade */
9201
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
9202
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
9203
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
9204
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
9205
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
9206
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
9207
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
9208
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
9209
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
9210
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
9211
+ --lumo-shade: hsl(214, 33%, 13%);
9212
+
9213
+ /* Contrast */
9214
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
9215
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
9216
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
9217
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
9218
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
9219
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
9220
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
9221
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
9222
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
9223
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
9224
+ --lumo-contrast: var(--lumo-tint);
9225
+
9226
+ /* Text */
9227
+ --lumo-header-text-color: var(--lumo-contrast);
9228
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
9229
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
9230
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
9231
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
9232
+
9233
+ /* Primary */
9234
+ --lumo-primary-color: hsl(214, 90%, 48%);
9235
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
9236
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
9237
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
9238
+ --lumo-primary-contrast-color: #fff;
9239
+
9240
+ /* Error */
9241
+ --lumo-error-color: hsl(3, 79%, 49%);
9242
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
9243
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
9244
+ --lumo-error-text-color: hsl(3, 100%, 80%);
9245
+
9246
+ /* Success */
9247
+ --lumo-success-color: hsl(145, 72%, 30%);
9248
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
9249
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
9250
+ --lumo-success-text-color: hsl(145, 85%, 46%);
9251
+
9252
+ /* Warning */
9253
+ --lumo-warning-color: hsl(43, 100%, 48%);
9254
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
9255
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
9256
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
9257
+ }
9258
+
9259
+ html {
9260
+ color: var(--lumo-body-text-color);
9261
+ background-color: var(--lumo-base-color);
9262
+ color-scheme: light;
9263
+ }
9264
+
9265
+ [theme~='dark'] {
9266
+ color: var(--lumo-body-text-color);
9267
+ background-color: var(--lumo-base-color);
9268
+ color-scheme: dark;
9269
+ }
9270
+
9271
+ h1,
9272
+ h2,
9273
+ h3,
9274
+ h4,
9275
+ h5,
9276
+ h6 {
9277
+ color: var(--lumo-header-text-color);
9278
+ }
9279
+
9280
+ a:where(:any-link) {
9281
+ color: var(--lumo-primary-text-color);
9282
+ }
9283
+
9284
+ a:not(:any-link) {
9285
+ color: var(--lumo-disabled-text-color);
9286
+ }
9287
+
9288
+ blockquote {
9289
+ color: var(--lumo-secondary-text-color);
9290
+ }
9291
+
9292
+ code,
9293
+ pre {
9294
+ background-color: var(--lumo-contrast-10pct);
9295
+ border-radius: var(--lumo-border-radius-m);
9296
+ }
9297
+ `;
9298
+
9299
+ registerStyles('', color, { moduleId: 'lumo-color' });
9300
+
9301
+ /**
9302
+ * @license
9303
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
9304
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9305
+ */
9306
+
9307
+ const sizing = i$1`
9308
+ :host {
9309
+ --lumo-size-xs: 1.625rem;
9310
+ --lumo-size-s: 1.875rem;
9311
+ --lumo-size-m: 2.25rem;
9312
+ --lumo-size-l: 2.75rem;
9313
+ --lumo-size-xl: 3.5rem;
9314
+
9315
+ /* Icons */
9316
+ --lumo-icon-size-s: 1.25em;
9317
+ --lumo-icon-size-m: 1.5em;
9318
+ --lumo-icon-size-l: 2.25em;
9319
+ /* For backwards compatibility */
9320
+ --lumo-icon-size: var(--lumo-icon-size-m);
9321
+ }
9322
+ `;
9323
+
9324
+ addLumoGlobalStyles('sizing-props', sizing);
9325
+
9326
+ /**
9327
+ * @license
9328
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
9329
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9330
+ */
9331
+
9332
+ const spacing = i$1`
9333
+ :host {
9334
+ /* Square */
9335
+ --lumo-space-xs: 0.25rem;
9336
+ --lumo-space-s: 0.5rem;
9337
+ --lumo-space-m: 1rem;
9338
+ --lumo-space-l: 1.5rem;
9339
+ --lumo-space-xl: 2.5rem;
9340
+
9341
+ /* Wide */
9342
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
9343
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
9344
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
9345
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
9346
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
9347
+
9348
+ /* Tall */
9349
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
9350
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
9351
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
9352
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
9353
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
9354
+ }
9355
+ `;
9356
+
9357
+ addLumoGlobalStyles('spacing-props', spacing);
9358
+
9359
+ /**
9360
+ * @license
9361
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
9362
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9363
+ */
9364
+
9365
+ const style = i$1`
9366
+ :host {
9367
+ /* Border radius */
9368
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
9369
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
9370
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
9371
+
9372
+ /* Shadow */
9373
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
9374
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
9375
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
9376
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
9377
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
9378
+
9379
+ /* Clickable element cursor */
9380
+ --lumo-clickable-cursor: default;
9381
+ }
9382
+ `;
9383
+
9384
+ /**
9385
+ * Default values for component-specific custom properties.
9386
+ */
9387
+ i$1`
9388
+ html {
9389
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
9390
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
9391
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
9392
+ }
9393
+ `;
9394
+
9395
+ addLumoGlobalStyles('style-props', style);
9396
+
9397
+ /**
9398
+ * @license
9399
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
9400
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9401
+ */
9402
+
9403
+ const font = i$1`
9404
+ :host {
9405
+ /* prettier-ignore */
9406
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
9407
+
9408
+ /* Font sizes */
9409
+ --lumo-font-size-xxs: 0.75rem;
9410
+ --lumo-font-size-xs: 0.8125rem;
9411
+ --lumo-font-size-s: 0.875rem;
9412
+ --lumo-font-size-m: 1rem;
9413
+ --lumo-font-size-l: 1.125rem;
9414
+ --lumo-font-size-xl: 1.375rem;
9415
+ --lumo-font-size-xxl: 1.75rem;
9416
+ --lumo-font-size-xxxl: 2.5rem;
8472
9417
 
8473
- const menuOverlayCore = i$1`
8474
- :host([opening]),
8475
- :host([closing]) {
8476
- animation: 0.14s lumo-overlay-dummy-animation;
9418
+ /* Line heights */
9419
+ --lumo-line-height-xs: 1.25;
9420
+ --lumo-line-height-s: 1.375;
9421
+ --lumo-line-height-m: 1.625;
8477
9422
  }
9423
+ `;
8478
9424
 
8479
- [part='overlay'] {
8480
- will-change: opacity, transform;
9425
+ const typography = i$1`
9426
+ body,
9427
+ :host {
9428
+ font-family: var(--lumo-font-family);
9429
+ font-size: var(--lumo-font-size-m);
9430
+ line-height: var(--lumo-line-height-m);
9431
+ -webkit-text-size-adjust: 100%;
9432
+ -webkit-font-smoothing: antialiased;
9433
+ -moz-osx-font-smoothing: grayscale;
8481
9434
  }
8482
9435
 
8483
- :host([opening]) [part='overlay'] {
8484
- animation: 0.1s lumo-menu-overlay-enter ease-out both;
9436
+ small,
9437
+ [theme~='font-size-s'] {
9438
+ font-size: var(--lumo-font-size-s);
9439
+ line-height: var(--lumo-line-height-s);
8485
9440
  }
8486
9441
 
8487
- @keyframes lumo-menu-overlay-enter {
8488
- 0% {
8489
- opacity: 0;
8490
- transform: translateY(-4px);
8491
- }
9442
+ [theme~='font-size-xs'] {
9443
+ font-size: var(--lumo-font-size-xs);
9444
+ line-height: var(--lumo-line-height-xs);
8492
9445
  }
8493
9446
 
8494
- :host([closing]) [part='overlay'] {
8495
- animation: 0.1s lumo-menu-overlay-exit both;
9447
+ :where(h1, h2, h3, h4, h5, h6) {
9448
+ font-weight: 600;
9449
+ line-height: var(--lumo-line-height-xs);
9450
+ margin-block: 0;
8496
9451
  }
8497
9452
 
8498
- @keyframes lumo-menu-overlay-exit {
8499
- 100% {
8500
- opacity: 0;
8501
- }
9453
+ :where(h1) {
9454
+ font-size: var(--lumo-font-size-xxxl);
8502
9455
  }
8503
- `;
8504
-
8505
- registerStyles('', menuOverlayCore, { moduleId: 'lumo-menu-overlay-core' });
8506
-
8507
- const menuOverlayExt = i$1`
8508
- /* Small viewport (bottom sheet) styles */
8509
- /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
8510
- @media (max-width: 420px), (max-height: 420px) {
8511
- :host {
8512
- top: 0 !important;
8513
- right: 0 !important;
8514
- bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
8515
- left: 0 !important;
8516
- align-items: stretch !important;
8517
- justify-content: flex-end !important;
8518
- }
8519
-
8520
- [part='overlay'] {
8521
- max-height: 50vh;
8522
- width: 100vw;
8523
- border-radius: 0;
8524
- box-shadow: var(--lumo-box-shadow-xl);
8525
- }
8526
-
8527
- /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
8528
- [part='content'] {
8529
- padding: 30px var(--lumo-space-m);
8530
- max-height: inherit;
8531
- box-sizing: border-box;
8532
- -webkit-overflow-scrolling: touch;
8533
- overflow: auto;
8534
- -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
8535
- mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
8536
- }
8537
-
8538
- [part='backdrop'] {
8539
- display: block;
8540
- }
8541
-
8542
- /* Animations */
8543
-
8544
- :host([opening]) [part='overlay'] {
8545
- animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
8546
- }
8547
9456
 
8548
- :host([closing]),
8549
- :host([closing]) [part='backdrop'] {
8550
- animation-delay: 0.14s;
8551
- }
9457
+ :where(h2) {
9458
+ font-size: var(--lumo-font-size-xxl);
9459
+ }
8552
9460
 
8553
- :host([closing]) [part='overlay'] {
8554
- animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
8555
- }
9461
+ :where(h3) {
9462
+ font-size: var(--lumo-font-size-xl);
8556
9463
  }
8557
9464
 
8558
- @keyframes lumo-mobile-menu-overlay-enter {
8559
- 0% {
8560
- transform: translateY(150%);
8561
- }
9465
+ :where(h4) {
9466
+ font-size: var(--lumo-font-size-l);
8562
9467
  }
8563
9468
 
8564
- @keyframes lumo-mobile-menu-overlay-exit {
8565
- 100% {
8566
- transform: translateY(150%);
8567
- }
9469
+ :where(h5) {
9470
+ font-size: var(--lumo-font-size-m);
8568
9471
  }
8569
- `;
8570
9472
 
8571
- const menuOverlay = [overlay, menuOverlayCore, menuOverlayExt];
9473
+ :where(h6) {
9474
+ font-size: var(--lumo-font-size-xs);
9475
+ text-transform: uppercase;
9476
+ letter-spacing: 0.03em;
9477
+ }
8572
9478
 
8573
- registerStyles('', menuOverlay, { moduleId: 'lumo-menu-overlay' });
9479
+ p,
9480
+ blockquote {
9481
+ margin-top: 0.5em;
9482
+ margin-bottom: 0.75em;
9483
+ }
8574
9484
 
8575
- const datePickerOverlay = i$1`
8576
- [part='overlay'] {
8577
- /*
8578
- Width:
8579
- date cell widths
8580
- + month calendar side padding
8581
- + year scroller width
8582
- */
8583
- /* prettier-ignore */
8584
- width:
8585
- calc(
8586
- var(--lumo-size-m) * 7
8587
- + var(--lumo-space-xs) * 2
8588
- + 57px
8589
- );
8590
- height: 100%;
8591
- max-height: calc(var(--lumo-size-m) * 14);
8592
- overflow: hidden;
8593
- -webkit-tap-highlight-color: transparent;
9485
+ a {
9486
+ text-decoration: none;
8594
9487
  }
8595
9488
 
8596
- [part='overlay'] {
8597
- flex-direction: column;
9489
+ a:where(:any-link):hover {
9490
+ text-decoration: underline;
8598
9491
  }
8599
9492
 
8600
- [part='content'] {
9493
+ hr {
9494
+ display: block;
9495
+ align-self: stretch;
9496
+ height: 1px;
9497
+ border: 0;
8601
9498
  padding: 0;
8602
- height: 100%;
8603
- overflow: hidden;
8604
- -webkit-mask-image: none;
8605
- mask-image: none;
9499
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
9500
+ background-color: var(--lumo-contrast-10pct);
8606
9501
  }
8607
9502
 
8608
- :host([top-aligned]) [part~='overlay'] {
8609
- margin-top: var(--lumo-space-xs);
9503
+ blockquote {
9504
+ border-left: 2px solid var(--lumo-contrast-30pct);
8610
9505
  }
8611
9506
 
8612
- :host([bottom-aligned]) [part~='overlay'] {
8613
- margin-bottom: var(--lumo-space-xs);
9507
+ b,
9508
+ strong {
9509
+ font-weight: 600;
8614
9510
  }
8615
9511
 
8616
- @media (max-width: 420px), (max-height: 420px) {
8617
- [part='overlay'] {
8618
- width: 100vw;
8619
- height: 70vh;
8620
- max-height: 70vh;
8621
- }
9512
+ /* RTL specific styles */
9513
+ blockquote[dir='rtl'] {
9514
+ border-left: none;
9515
+ border-right: 2px solid var(--lumo-contrast-30pct);
8622
9516
  }
8623
9517
  `;
8624
9518
 
8625
- registerStyles('vaadin-date-picker-overlay', [menuOverlay, datePickerOverlay], {
8626
- moduleId: 'lumo-date-picker-overlay',
8627
- });
9519
+ registerStyles('', typography, { moduleId: 'lumo-typography' });
9520
+ addLumoGlobalStyles('typography-props', font);
8628
9521
 
8629
9522
  const button = i$1`
8630
9523
  :host {
@@ -9906,7 +10799,7 @@ const registered = new Set();
9906
10799
  const ElementMixin = (superClass) =>
9907
10800
  class VaadinElementMixin extends DirMixin(superClass) {
9908
10801
  static get version() {
9909
- return '24.2.5';
10802
+ return '24.2.9';
9910
10803
  }
9911
10804
 
9912
10805
  /** @protected */
@@ -11685,6 +12578,8 @@ const KeyboardMixin = dedupingMixin(
11685
12578
  * by the pointer or by releasing the activation key.
11686
12579
  *
11687
12580
  * @polymerMixin
12581
+ * @mixes DisabledMixin
12582
+ * @mixes KeyboardMixin
11688
12583
  */
11689
12584
  const ActiveMixin = (superclass) =>
11690
12585
  class ActiveMixinClass extends DisabledMixin(KeyboardMixin(superclass)) {
@@ -12754,7 +13649,7 @@ const fontIcons = i$1`
12754
13649
  }
12755
13650
  `;
12756
13651
 
12757
- addLumoGlobalStyles('font-icons', fontIcons);
13652
+ addLumoGlobalStyles$1('font-icons', fontIcons);
12758
13653
 
12759
13654
  /**
12760
13655
  * @license
@@ -14075,6 +14970,14 @@ const OverlayMixin = (superClass) =>
14075
14970
  // and <vaadin-context-menu>).
14076
14971
  this.addEventListener('click', () => {});
14077
14972
  this.$.backdrop.addEventListener('click', () => {});
14973
+
14974
+ this.addEventListener('mouseup', () => {
14975
+ // In Chrome, focus moves to body on overlay content mousedown
14976
+ // See https://github.com/vaadin/flow-components/issues/5507
14977
+ if (document.activeElement === document.body && this.$.overlay.getAttribute('tabindex') === '0') {
14978
+ this.$.overlay.focus();
14979
+ }
14980
+ });
14078
14981
  }
14079
14982
 
14080
14983
  /** @protected */
@@ -23395,133 +24298,104 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
23395
24298
  defineCustomElement(DatePicker);
23396
24299
 
23397
24300
  const helperFiltersCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.FilterButtonsWrapper{display:flex;justify-content:flex-end;gap:5px}.FilterButtonsWrapper .FilterOpen{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterOpen:hover{background:#00958f;color:#FFF}.FilterButtonsWrapper .FilterClear{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterClear:hover{background:#00958f;color:#FFF}.FilterModalHeader,.FilterModalBody,.FilterModalFooter{display:flex;flex-direction:column;gap:5px;align-items:center;margin:20px 0}.FilterModalHeader .FilterModalTitle,.FilterModalBody .FilterModalTitle,.FilterModalFooter .FilterModalTitle{margin:0;padding:0;font-weight:700;font-size:16px;color:#009993;text-transform:uppercase}.FilterModalHeader .FilterModalSearch,.FilterModalBody .FilterModalSearch,.FilterModalFooter .FilterModalSearch{border-radius:4px;background:#e8ebef;color:#263445;width:100%;height:26px;max-width:280px;padding:5px;font-size:15px;border:none;outline:#009993}.FilterModalHeader .FilterCalendarWrapper,.FilterModalBody .FilterCalendarWrapper,.FilterModalFooter .FilterCalendarWrapper{display:flex;gap:5px}.FilterModalHeader .FilterCalendarWrapper .VaadinDatePicker,.FilterModalBody .FilterCalendarWrapper .VaadinDatePicker,.FilterModalFooter .FilterCalendarWrapper .VaadinDatePicker{width:50%;max-width:143px}.FilterModalHeader .FilterModalButton,.FilterModalBody .FilterModalButton,.FilterModalFooter .FilterModalButton{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.FilterModalHeader .FilterModalButton:hover,.FilterModalBody .FilterModalButton:hover,.FilterModalFooter .FilterModalButton:hover{background:#00958f;color:#FFF}.FilterModalHeader p,.FilterModalBody p,.FilterModalFooter p{margin:5px 0}";
24301
+ const HelperFiltersStyle0 = helperFiltersCss;
23398
24302
 
23399
24303
  const HelperFilters = class {
23400
- constructor(hostRef) {
23401
- registerInstance(this, hostRef);
23402
- this.filterDraw = createEvent(this, "filterDraw", 7);
23403
- this.filterSelection = createEvent(this, "filterSelection", 7);
23404
- this.filterSelectionReset = createEvent(this, "filterSelectionReset", 7);
23405
- /**
23406
- * Check if show the filter option by id
23407
- */
23408
- this.showFilterId = true;
23409
- /**
23410
- * Choose if filter by draw ID or ticket ID. By default is draw ID.
23411
- */
23412
- this.activateTicketSearch = false;
23413
- /**
23414
- * Game ID
23415
- */
23416
- this.gameId = '';
23417
- /**
23418
- * Player ID
23419
- */
23420
- this.playerId = '';
23421
- /**
23422
- * Session ID
23423
- */
23424
- this.session = '';
23425
- /**
23426
- * Instead of customEvents the widget triggers postMessages
23427
- */
23428
- this.postMessage = false;
23429
- /**
23430
- * Language
23431
- */
23432
- this.language = 'en';
23433
- /**
23434
- * Notifies if the quick filters from tickets are active
23435
- */
23436
- this.quickFiltersActive = false;
23437
- /**
23438
- * Client custom styling via string
23439
- */
23440
- this.clientStyling = '';
23441
- /**
23442
- * Client custom styling via url content
23443
- */
23444
- this.clientStylingUrlContent = '';
23445
- this.showFilterModal = false;
23446
- this.showClearButton = false;
23447
- this.filterData = {};
23448
- this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
23449
- this.limitStylingAppends = false;
23450
- this.setClientStyling = () => {
23451
- let sheet = document.createElement('style');
23452
- sheet.innerHTML = this.clientStyling;
23453
- this.stylingContainer.prepend(sheet);
23454
- };
23455
- this.setClientStylingURL = () => {
23456
- let cssFile = document.createElement('style');
23457
- setTimeout(() => {
23458
- cssFile.innerHTML = this.clientStylingUrlContent;
23459
- this.stylingContainer.prepend(cssFile);
23460
- }, 1);
23461
- };
23462
- }
23463
- // reset field values each time the filter modal opens
23464
- componentDidRender() {
23465
- // @TODO: to way binding?
23466
- if (document.getElementById('#FilterById'))
23467
- document.getElementById('#FilterById').value = '';
23468
- // start custom styling area
23469
- if (!this.limitStylingAppends && this.stylingContainer) {
23470
- if (this.clientStyling)
23471
- this.setClientStyling();
23472
- if (this.clientStylingUrlContent)
23473
- this.setClientStylingURL();
23474
- this.limitStylingAppends = true;
23475
- }
23476
- // end custom styling area
23477
- }
23478
- filterSelectionHandler(event) {
23479
- if (this.postMessage)
23480
- window.postMessage({ type: 'filterSelection', event }, window.location.href);
23481
- if (this.filterData.ticketDrawId || this.filterData.filterFromCalendar || this.filterData.filterToCalendar)
23482
- this.filterSelection.emit(event);
23483
- }
23484
- filterSelectionResetHandler(event) {
23485
- if (this.postMessage)
23486
- window.postMessage({ type: 'filterSelectionReset', event }, window.location.href);
23487
- this.filterSelectionReset.emit(event);
23488
- }
23489
- modalCloseEvent() {
23490
- this.showFilterModal = false;
23491
- }
23492
- // Toggle filter modal
23493
- toggleFilterModal() {
23494
- this.showFilterModal = true;
23495
- }
23496
- // Filter search
23497
- filterSearch() {
23498
- this.modalCloseEvent();
23499
- this.showClearButton = true;
23500
- this.filterSelectionHandler(this.filterData);
23501
- console.log(this.showClearButton);
23502
- }
23503
- resetSearch() {
23504
- this.showClearButton = false;
23505
- this.filterSelectionResetHandler(this.filterDataReset);
23506
- this.filterData = {};
23507
- }
23508
- handleTicketDrawId(event) {
23509
- this.filterData.ticketDrawId = event.target.value;
23510
- }
23511
- handleFilterFrom(event) {
23512
- this.filterData.filterFromCalendar = new Date(event.target.value).toISOString();
23513
- }
23514
- handleFilterTo(event) {
23515
- this.filterData.filterToCalendar = new Date(event.target.value).toISOString();
23516
- }
23517
- render() {
23518
- return (h$2("div", { class: "HelperFilters", ref: el => this.stylingContainer = el }, h$2("div", { class: "FilterButtonsWrapper" }, h$2("button", { class: "FilterOpen", onClick: () => this.toggleFilterModal() }, translate$1('filterOpen', this.language)), console.log('in filter Open', this.showClearButton, this.quickFiltersActive), (this.showClearButton || this.quickFiltersActive) ?
23519
- h$2("button", { class: "FilterClear", onClick: () => this.resetSearch() }, translate$1('filterClear', this.language))
23520
- :
23521
- null), h$2("helper-modal", { "title-modal": "Filter Modal", visible: this.showFilterModal, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h$2("div", { class: "FilterModalHeader" }, h$2("h3", { class: "FilterModalTitle" }, this.activateTicketSearch ? translate$1('filterModalTicketTitle', this.language) : translate$1('filterModalDrawTitle', this.language))), h$2("div", { class: "FilterModalBody" }, h$2("input", { id: "FilterById", type: "text", value: this.filterData.ticketDrawId, onInput: (event) => this.handleTicketDrawId(event), class: "FilterModalSearch", placeholder: this.activateTicketSearch ? translate$1('filterTicketPlaceholder', this.language) : translate$1('filterDrawPlaceholder', this.language) }), h$2("p", null, translate$1('filterOrDate', this.language)), h$2("div", { class: "FilterCalendarWrapper" }, h$2("vaadin-date-picker", { value: this.filterData.filterFromCalendar, onChange: (event) => this.handleFilterFrom(event), placeholder: translate$1('filterFromCalendar', this.language), class: "VaadinDatePicker" }), h$2("vaadin-date-picker", { value: this.filterData.filterToCalendar, onChange: (event) => this.handleFilterTo(event), placeholder: translate$1('filterToCalendar', this.language), class: "VaadinDatePicker" }))), h$2("div", { class: "FilterModalFooter" }, h$2("button", { class: "FilterModalButton", onClick: () => this.filterSearch() }, translate$1('filterModalButton', this.language))))));
23522
- }
24304
+ constructor(hostRef) {
24305
+ registerInstance(this, hostRef);
24306
+ this.filterDraw = createEvent(this, "filterDraw", 7);
24307
+ this.filterSelection = createEvent(this, "filterSelection", 7);
24308
+ this.filterSelectionReset = createEvent(this, "filterSelectionReset", 7);
24309
+ this.setClientStyling = () => {
24310
+ let sheet = document.createElement('style');
24311
+ sheet.innerHTML = this.clientStyling;
24312
+ this.stylingContainer.prepend(sheet);
24313
+ };
24314
+ this.setClientStylingURL = () => {
24315
+ let cssFile = document.createElement('style');
24316
+ setTimeout(() => {
24317
+ cssFile.innerHTML = this.clientStylingUrlContent;
24318
+ this.stylingContainer.prepend(cssFile);
24319
+ }, 1);
24320
+ };
24321
+ this.showFilterId = true;
24322
+ this.activateTicketSearch = false;
24323
+ this.gameId = '';
24324
+ this.playerId = '';
24325
+ this.session = '';
24326
+ this.postMessage = false;
24327
+ this.language = 'en';
24328
+ this.quickFiltersActive = false;
24329
+ this.clientStyling = '';
24330
+ this.clientStylingUrlContent = '';
24331
+ this.showFilterModal = false;
24332
+ this.showClearButton = false;
24333
+ this.filterData = {};
24334
+ this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
24335
+ this.limitStylingAppends = false;
24336
+ }
24337
+ // reset field values each time the filter modal opens
24338
+ componentDidRender() {
24339
+ // @TODO: to way binding?
24340
+ if (document.getElementById('#FilterById'))
24341
+ document.getElementById('#FilterById').value = '';
24342
+ // start custom styling area
24343
+ if (!this.limitStylingAppends && this.stylingContainer) {
24344
+ if (this.clientStyling)
24345
+ this.setClientStyling();
24346
+ if (this.clientStylingUrlContent)
24347
+ this.setClientStylingURL();
24348
+ this.limitStylingAppends = true;
24349
+ }
24350
+ // end custom styling area
24351
+ }
24352
+ filterSelectionHandler(event) {
24353
+ if (this.postMessage)
24354
+ window.postMessage({ type: 'filterSelection', event }, window.location.href);
24355
+ if (this.filterData.ticketDrawId || this.filterData.filterFromCalendar || this.filterData.filterToCalendar)
24356
+ this.filterSelection.emit(event);
24357
+ }
24358
+ filterSelectionResetHandler(event) {
24359
+ if (this.postMessage)
24360
+ window.postMessage({ type: 'filterSelectionReset', event }, window.location.href);
24361
+ this.filterSelectionReset.emit(event);
24362
+ }
24363
+ modalCloseEvent() {
24364
+ this.showFilterModal = false;
24365
+ }
24366
+ // Toggle filter modal
24367
+ toggleFilterModal() {
24368
+ this.showFilterModal = true;
24369
+ }
24370
+ // Filter search
24371
+ filterSearch() {
24372
+ this.modalCloseEvent();
24373
+ this.showClearButton = true;
24374
+ this.filterSelectionHandler(this.filterData);
24375
+ console.log(this.showClearButton);
24376
+ }
24377
+ resetSearch() {
24378
+ this.showClearButton = false;
24379
+ this.filterSelectionResetHandler(this.filterDataReset);
24380
+ this.filterData = {};
24381
+ }
24382
+ handleTicketDrawId(event) {
24383
+ this.filterData.ticketDrawId = event.target.value;
24384
+ }
24385
+ handleFilterFrom(event) {
24386
+ this.filterData.filterFromCalendar = new Date(event.target.value).toISOString();
24387
+ }
24388
+ handleFilterTo(event) {
24389
+ this.filterData.filterToCalendar = new Date(event.target.value).toISOString();
24390
+ }
24391
+ render() {
24392
+ return (h$2("div", { key: 'd74774bd58fa3df6b0038fd979fb4aec4262d43d', class: "HelperFilters", ref: el => this.stylingContainer = el }, h$2("div", { key: '0827128924ba350888ae81e67e0306e536b15047', class: "FilterButtonsWrapper" }, h$2("button", { key: '73ae5aff5896195cd895410caf44dccfa1ac5cfc', class: "FilterOpen", onClick: () => this.toggleFilterModal() }, translate$1('filterOpen', this.language)), console.log('in filter Open', this.showClearButton, this.quickFiltersActive), (this.showClearButton || this.quickFiltersActive) ?
24393
+ h$2("button", { class: "FilterClear", onClick: () => this.resetSearch() }, translate$1('filterClear', this.language))
24394
+ :
24395
+ null), h$2("helper-modal", { key: 'add83df2714fdb69e8dfa7a0f5d1eb0d526fc2b4', "title-modal": "Filter Modal", visible: this.showFilterModal, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h$2("div", { key: '861b04161876b557184fe49c514867788147e4b9', class: "FilterModalHeader" }, h$2("h3", { key: '7471430912f301ff995c401b08298d9006816216', class: "FilterModalTitle" }, this.activateTicketSearch ? translate$1('filterModalTicketTitle', this.language) : translate$1('filterModalDrawTitle', this.language))), h$2("div", { key: 'af6bd8e253f332c8724e1bb40100ba5e1e59838f', class: "FilterModalBody" }, h$2("input", { key: '9edc7e14b801d40d4861625264f82b2fa213a770', id: "FilterById", type: "text", value: this.filterData.ticketDrawId, onInput: (event) => this.handleTicketDrawId(event), class: "FilterModalSearch", placeholder: this.activateTicketSearch ? translate$1('filterTicketPlaceholder', this.language) : translate$1('filterDrawPlaceholder', this.language) }), h$2("p", { key: '9665b359f9d6da19f120eb9bb315c4b144c80ced' }, translate$1('filterOrDate', this.language)), h$2("div", { key: 'd155c7d73a719aaedc581f51aa97cf21ec3125df', class: "FilterCalendarWrapper" }, h$2("vaadin-date-picker", { key: '586fb38bc5c718a4afa06ebec96bec0fd46949eb', value: this.filterData.filterFromCalendar, onChange: (event) => this.handleFilterFrom(event), placeholder: translate$1('filterFromCalendar', this.language), class: "VaadinDatePicker" }), h$2("vaadin-date-picker", { key: '42e8965b2c740c19c53687c114faf6aa22f11de8', value: this.filterData.filterToCalendar, onChange: (event) => this.handleFilterTo(event), placeholder: translate$1('filterToCalendar', this.language), class: "VaadinDatePicker" }))), h$2("div", { key: '7529eef1b25d130d183a55e45862418444054d3c', class: "FilterModalFooter" }, h$2("button", { key: '7dac7dc7b01c1c66dde7c6670a352f597b3f75fc', class: "FilterModalButton", onClick: () => this.filterSearch() }, translate$1('filterModalButton', this.language))))));
24396
+ }
23523
24397
  };
23524
- HelperFilters.style = helperFiltersCss;
24398
+ HelperFilters.style = HelperFiltersStyle0;
23525
24399
 
23526
24400
  /**
23527
24401
  * @name isMobile
@@ -23530,66 +24404,59 @@ HelperFilters.style = helperFiltersCss;
23530
24404
  * @returns {Boolean} true or false
23531
24405
  */
23532
24406
  const isMobile = (userAgent) => {
23533
- return !!(userAgent.toLowerCase().match(/android/i) ||
23534
- userAgent.toLowerCase().match(/blackberry|bb/i) ||
23535
- userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
23536
- userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
24407
+ return !!(userAgent.toLowerCase().match(/android/i) ||
24408
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
24409
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
24410
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
23537
24411
  };
23538
24412
 
23539
24413
  const helperModalCss = ":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px #848e97;box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:#FFF;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:#000}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:#000}";
24414
+ const HelperModalStyle0 = helperModalCss;
23540
24415
 
23541
24416
  const HelperModal = class {
23542
- constructor(hostRef) {
23543
- registerInstance(this, hostRef);
23544
- this.cancel = createEvent(this, "modalCloseEvent", 7);
23545
- /**
23546
- * Toggles if the helper is visible or not
23547
- */
23548
- this.visible = true;
23549
- /**
23550
- * Client custom styling via string
23551
- */
23552
- this.clientStyling = '';
23553
- /**
23554
- * Client custom styling via url content
23555
- */
23556
- this.clientStylingUrlContent = '';
23557
- this.limitStylingAppends = false;
23558
- this.userAgent = window.navigator.userAgent;
23559
- this.setClientStyling = () => {
23560
- let sheet = document.createElement('style');
23561
- sheet.innerHTML = this.clientStyling;
23562
- this.stylingContainer.prepend(sheet);
23563
- };
23564
- this.setClientStylingURL = () => {
23565
- let cssFile = document.createElement('style');
23566
- setTimeout(() => {
23567
- cssFile.innerHTML = this.clientStylingUrlContent;
23568
- this.stylingContainer.prepend(cssFile);
23569
- }, 1);
23570
- };
23571
- }
23572
- handleHelperModalClose() {
23573
- this.visible = false;
23574
- this.cancel.emit();
23575
- }
23576
- ;
23577
- componentDidRender() {
23578
- // start custom styling area
23579
- if (!this.limitStylingAppends && this.stylingContainer) {
23580
- if (this.clientStyling)
23581
- this.setClientStyling();
23582
- if (this.clientStylingUrlContent)
23583
- this.setClientStylingURL();
23584
- this.limitStylingAppends = true;
24417
+ constructor(hostRef) {
24418
+ registerInstance(this, hostRef);
24419
+ this.cancel = createEvent(this, "modalCloseEvent", 7);
24420
+ this.userAgent = window.navigator.userAgent;
24421
+ this.setClientStyling = () => {
24422
+ let sheet = document.createElement('style');
24423
+ sheet.innerHTML = this.clientStyling;
24424
+ this.stylingContainer.prepend(sheet);
24425
+ };
24426
+ this.setClientStylingURL = () => {
24427
+ let cssFile = document.createElement('style');
24428
+ setTimeout(() => {
24429
+ cssFile.innerHTML = this.clientStylingUrlContent;
24430
+ this.stylingContainer.prepend(cssFile);
24431
+ }, 1);
24432
+ };
24433
+ this.titleModal = undefined;
24434
+ this.visible = true;
24435
+ this.clientStyling = '';
24436
+ this.clientStylingUrlContent = '';
24437
+ this.limitStylingAppends = false;
24438
+ }
24439
+ handleHelperModalClose() {
24440
+ this.visible = false;
24441
+ this.cancel.emit();
24442
+ }
24443
+ ;
24444
+ componentDidRender() {
24445
+ // start custom styling area
24446
+ if (!this.limitStylingAppends && this.stylingContainer) {
24447
+ if (this.clientStyling)
24448
+ this.setClientStyling();
24449
+ if (this.clientStylingUrlContent)
24450
+ this.setClientStylingURL();
24451
+ this.limitStylingAppends = true;
24452
+ }
24453
+ // end custom styling area
24454
+ }
24455
+ render() {
24456
+ return ((this.visible &&
24457
+ h$2("div", { key: 'ba2aed789565b37bfdbb34bdf3ccace827231653', class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h$2("div", { key: '151ca4cd80d259ac955b92b10bf6f0df2698a937', class: "HelperModalWrapper HelperModalVisible" }, h$2("div", { key: '804cb1dea73321c4935e4a8ddb1136e98e89a070', class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h$2("span", { key: '30cf7928c1e4baa53f3514fc1930823db76c874c', class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h$2("slot", { key: '5c1323a98cdcd09669020a00affe5673856e807e' }))))));
23585
24458
  }
23586
- // end custom styling area
23587
- }
23588
- render() {
23589
- return ((this.visible &&
23590
- h$2("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h$2("div", { class: "HelperModalWrapper HelperModalVisible" }, h$2("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h$2("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h$2("slot", null))))));
23591
- }
23592
24459
  };
23593
- HelperModal.style = helperModalCss;
24460
+ HelperModal.style = HelperModalStyle0;
23594
24461
 
23595
24462
  export { HelperFilters as helper_filters, HelperModal as helper_modal };