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