@limetech/lime-elements 39.24.0 → 39.24.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 (154) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{_assignValue-DpsLUlF4.js → _assignValue-DQh76m39.js} +2 -2
  3. package/dist/cjs/{_baseEach-C570gT5Y.js → _baseEach-Bygi-un6.js} +2 -2
  4. package/dist/cjs/{_baseIsEqual-aOPReRWl.js → _baseIsEqual-CQZKiKbe.js} +20 -365
  5. package/dist/cjs/{_baseIteratee-DggA4e7a.js → _baseIteratee-DDklwtn9.js} +6 -4
  6. package/dist/cjs/{_defineProperty-BDFOiqJL.js → _defineProperty-Csu6P9HT.js} +1 -1
  7. package/dist/cjs/{_getAllKeysIn-BQIV8aw7.js → _getAllKeysIn-BJsgUTAt.js} +5 -4
  8. package/dist/cjs/{_getNative-B4n5HX2B.js → _getNative-Cf52giNE.js} +2 -2
  9. package/dist/cjs/_getTag-BC28Za7d.js +355 -0
  10. package/dist/cjs/_isIndex-Bu45fvR7.js +27 -0
  11. package/dist/cjs/{_isIterateeCall-CPWXFS_s.js → _isIterateeCall-BUGt9SrH.js} +4 -3
  12. package/dist/cjs/{cloneDeep-CxFNKF1Y.js → cloneDeep-hE40Q8aw.js} +13 -12
  13. package/dist/cjs/{difference-Bfsq4sXB.js → difference-B543MGsY.js} +5 -4
  14. package/dist/cjs/eq-DFcUoVzv.js +39 -0
  15. package/dist/cjs/file-metadata-BrhOssGG.js +76 -0
  16. package/dist/cjs/{files-Cf615Ytp.js → files-Bt11HLi4.js} +1 -1
  17. package/dist/cjs/{focus-trigger-element-Brw8VubX.js → focus-trigger-element-BfnJmxKO.js} +1 -1
  18. package/dist/{esm/file-metadata-BwF9vTXN.js → cjs/icons-isR5V1X0.js} +4 -69
  19. package/dist/cjs/{isArrayLike-_dR1U5-Y.js → isArrayLike-C2RwZMG4.js} +2 -27
  20. package/dist/cjs/{isEmpty-EBCFxX1S.js → isEmpty-CCxl3bYc.js} +6 -6
  21. package/dist/cjs/{isEqual-bXyw7kXo.js → isEqual-Cd9J8a5-.js} +1 -1
  22. package/dist/cjs/{eq-B1KBAwmK.js → isFunction-RSHwsz1x.js} +0 -37
  23. package/dist/cjs/lime-elements.cjs.js +1 -1
  24. package/dist/cjs/{limel-breadcrumbs_7.cjs.entry.js → limel-breadcrumbs_8.cjs.entry.js} +74 -8
  25. package/dist/cjs/limel-chip-set.cjs.entry.js +578 -0
  26. package/dist/cjs/limel-chip_2.cjs.entry.js +33 -528
  27. package/dist/cjs/limel-dialog.cjs.entry.js +9 -6
  28. package/dist/cjs/limel-email-viewer.cjs.entry.js +15 -10
  29. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +12 -8
  30. package/dist/cjs/limel-file.cjs.entry.js +2 -1
  31. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +5 -3
  32. package/dist/cjs/limel-form.cjs.entry.js +247 -71
  33. package/dist/cjs/limel-helper-line.cjs.entry.js +42 -0
  34. package/dist/cjs/limel-popover_2.cjs.entry.js +6 -5
  35. package/dist/cjs/limel-profile-picture.cjs.entry.js +3 -2
  36. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +16 -12
  37. package/dist/cjs/limel-tab-bar.cjs.entry.js +11 -8
  38. package/dist/cjs/limel-table.cjs.entry.js +14 -11
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/{pickBy-kLjYLoam.js → pickBy-D-X6S5kg.js} +5 -5
  41. package/dist/collection/components/chip-set/chip-set.js +14 -2
  42. package/dist/collection/components/email-viewer/email-viewer.css +12 -32
  43. package/dist/collection/components/email-viewer/email-viewer.js +16 -9
  44. package/dist/esm/{_assignValue-DOEO9byf.js → _assignValue-CEFvyZxO.js} +2 -2
  45. package/dist/esm/{_baseEach-C4UJIc96.js → _baseEach-lvj-g1Zj.js} +2 -2
  46. package/dist/esm/{_baseIsEqual-DCZXUzsZ.js → _baseIsEqual-B6bIeexY.js} +10 -346
  47. package/dist/esm/{_baseIteratee-CI-QZdpx.js → _baseIteratee-CEZRuq23.js} +4 -2
  48. package/dist/esm/{_defineProperty-yVdnnt__.js → _defineProperty-C69Btzid.js} +1 -1
  49. package/dist/esm/{_getAllKeysIn-v-KlW5r_.js → _getAllKeysIn-kT3KizYN.js} +3 -2
  50. package/dist/esm/{_getNative-aN4R8EiP.js → _getNative-COawFdVX.js} +1 -1
  51. package/dist/esm/_getTag-CMJL-6hk.js +344 -0
  52. package/dist/esm/_isIndex-B--C3qwe.js +25 -0
  53. package/dist/esm/{_isIterateeCall-CTcCv8Mb.js → _isIterateeCall-Bb4gUZLK.js} +3 -2
  54. package/dist/esm/{cloneDeep-V4fB8wfG.js → cloneDeep-CL7UD3mR.js} +4 -3
  55. package/dist/esm/{difference-CWrdq-hd.js → difference-DND5tWiA.js} +4 -3
  56. package/dist/esm/eq-CZ30nDJE.js +37 -0
  57. package/dist/esm/file-metadata-BHzkIH4g.js +71 -0
  58. package/dist/esm/{files-P324wLau.js → files-CZAZotms.js} +1 -1
  59. package/dist/esm/{focus-trigger-element-DubROLkE.js → focus-trigger-element-BOFcjLq3.js} +1 -1
  60. package/dist/{cjs/file-metadata-rQ0WzFlZ.js → esm/icons-Bu_YRgCL.js} +1 -75
  61. package/dist/esm/{isArrayLike-D1QkaJU2.js → isArrayLike-CyVGB489.js} +2 -26
  62. package/dist/esm/{isEmpty-BFxMjh_H.js → isEmpty-DHgukT5k.js} +2 -2
  63. package/dist/esm/{isEqual-CsrptmTU.js → isEqual-4tbMaaf_.js} +1 -1
  64. package/dist/esm/{eq-D7VMHFyO.js → isFunction-9zQTeQI8.js} +1 -37
  65. package/dist/esm/lime-elements.js +1 -1
  66. package/dist/esm/{limel-breadcrumbs_7.entry.js → limel-breadcrumbs_8.entry.js} +71 -6
  67. package/dist/esm/limel-chip-set.entry.js +576 -0
  68. package/dist/esm/limel-chip_2.entry.js +35 -530
  69. package/dist/esm/limel-dialog.entry.js +9 -6
  70. package/dist/esm/limel-email-viewer.entry.js +15 -10
  71. package/dist/esm/limel-file-dropzone_2.entry.js +12 -8
  72. package/dist/esm/limel-file.entry.js +2 -1
  73. package/dist/esm/limel-flatpickr-adapter.entry.js +5 -3
  74. package/dist/esm/limel-form.entry.js +237 -61
  75. package/dist/esm/limel-helper-line.entry.js +40 -0
  76. package/dist/esm/limel-popover_2.entry.js +6 -5
  77. package/dist/esm/limel-profile-picture.entry.js +3 -2
  78. package/dist/esm/limel-prosemirror-adapter.entry.js +16 -12
  79. package/dist/esm/limel-tab-bar.entry.js +11 -8
  80. package/dist/esm/limel-table.entry.js +14 -11
  81. package/dist/esm/loader.js +1 -1
  82. package/dist/esm/{pickBy-D8CUtxE4.js → pickBy-C4C3CM4m.js} +4 -4
  83. package/dist/lime-elements/lime-elements.esm.js +1 -1
  84. package/dist/lime-elements/p-00b424d7.entry.js +1 -0
  85. package/dist/lime-elements/p-01651634.entry.js +1 -0
  86. package/dist/lime-elements/p-4ecd565b.entry.js +1 -0
  87. package/dist/lime-elements/p-5442e09e.entry.js +13 -0
  88. package/dist/lime-elements/p-56bkn1D-.js +1 -0
  89. package/dist/lime-elements/p-60327283.entry.js +1 -0
  90. package/dist/lime-elements/{p-cfe85e59.entry.js → p-6eaa9776.entry.js} +10 -10
  91. package/dist/lime-elements/p-72b9d03e.entry.js +1 -0
  92. package/dist/lime-elements/p-80162ba0.entry.js +1 -0
  93. package/dist/lime-elements/p-86ff06d1.entry.js +1 -0
  94. package/dist/lime-elements/p-9W8bTt2G.js +1 -0
  95. package/dist/lime-elements/p-B--C3qwe.js +1 -0
  96. package/dist/lime-elements/p-B8yl2MCT.js +1 -0
  97. package/dist/lime-elements/p-BAR6am-7.js +1 -0
  98. package/dist/lime-elements/p-BCq5M9TE.js +1 -0
  99. package/dist/lime-elements/p-BE1Efiuj.js +1 -0
  100. package/dist/lime-elements/p-BYfPV0O4.js +1 -0
  101. package/dist/lime-elements/p-BcJ-TDVt.js +1 -0
  102. package/dist/lime-elements/p-BsX7ma3n.js +1 -0
  103. package/dist/lime-elements/p-Bu_YRgCL.js +1 -0
  104. package/dist/lime-elements/p-ByzvFNMm.js +1 -0
  105. package/dist/lime-elements/{p-CWuGCKo1.js → p-C4caLnTg.js} +1 -1
  106. package/dist/lime-elements/p-CR7u-m0b.js +1 -0
  107. package/dist/lime-elements/p-CVzgpz9P.js +1 -0
  108. package/dist/lime-elements/p-CZ30nDJE.js +1 -0
  109. package/dist/lime-elements/{p-BvDmWgCs.js → p-D0F7gOYG.js} +1 -1
  110. package/dist/lime-elements/p-D4RdItCq.js +1 -0
  111. package/dist/lime-elements/p-D8H5afYg.js +1 -0
  112. package/dist/lime-elements/p-DbBZn7JO.js +1 -0
  113. package/dist/lime-elements/p-DtrvybFR.js +1 -0
  114. package/dist/lime-elements/{p-8139d26a.entry.js → p-a712087a.entry.js} +3 -3
  115. package/dist/lime-elements/p-b1645d2d.entry.js +1 -0
  116. package/dist/lime-elements/{p-e720f65c.entry.js → p-d00ec6c2.entry.js} +3 -3
  117. package/dist/lime-elements/{p-a416d439.entry.js → p-e5c7cac0.entry.js} +2 -2
  118. package/dist/lime-elements/p-f6e58e6c.entry.js +1 -0
  119. package/dist/lime-elements/p-f867b424.entry.js +1 -0
  120. package/dist/lime-elements/p-mmkVLOjW.js +1 -0
  121. package/dist/types/components/chip-set/chip-set.d.ts +5 -0
  122. package/dist/types/components/email-viewer/email-viewer.d.ts +0 -1
  123. package/package.json +1 -1
  124. package/dist/cjs/limel-helper-line_2.cjs.entry.js +0 -107
  125. package/dist/cjs/limel-linear-progress.cjs.entry.js +0 -59
  126. package/dist/esm/limel-helper-line_2.entry.js +0 -104
  127. package/dist/esm/limel-linear-progress.entry.js +0 -57
  128. package/dist/lime-elements/p-34d1d00a.entry.js +0 -1
  129. package/dist/lime-elements/p-48db87d3.entry.js +0 -1
  130. package/dist/lime-elements/p-4e9baf08.entry.js +0 -1
  131. package/dist/lime-elements/p-59f1460d.entry.js +0 -1
  132. package/dist/lime-elements/p-7uuv3HUP.js +0 -1
  133. package/dist/lime-elements/p-811c4820.entry.js +0 -1
  134. package/dist/lime-elements/p-9758568e.entry.js +0 -13
  135. package/dist/lime-elements/p-9a378cf0.entry.js +0 -1
  136. package/dist/lime-elements/p-BTHqaZIi.js +0 -1
  137. package/dist/lime-elements/p-Bj622DVt.js +0 -1
  138. package/dist/lime-elements/p-Bp0tNo1s.js +0 -1
  139. package/dist/lime-elements/p-C3Myy3mA.js +0 -1
  140. package/dist/lime-elements/p-CXgJVvTe.js +0 -1
  141. package/dist/lime-elements/p-CxfAgSVd.js +0 -1
  142. package/dist/lime-elements/p-DNIqLXTL.js +0 -1
  143. package/dist/lime-elements/p-D_uMnX5g.js +0 -1
  144. package/dist/lime-elements/p-DbC-smVQ.js +0 -1
  145. package/dist/lime-elements/p-DlJXKdhK.js +0 -1
  146. package/dist/lime-elements/p-DtS35Df5.js +0 -1
  147. package/dist/lime-elements/p-SvuA3Boo.js +0 -1
  148. package/dist/lime-elements/p-b306735b.entry.js +0 -1
  149. package/dist/lime-elements/p-c1c635c1.entry.js +0 -1
  150. package/dist/lime-elements/p-cebdd797.entry.js +0 -1
  151. package/dist/lime-elements/p-efBXH4mj.js +0 -1
  152. package/dist/lime-elements/p-f_1nwOC8.js +0 -1
  153. package/dist/lime-elements/p-fd4a4f87.entry.js +0 -1
  154. package/dist/lime-elements/p-v6b303K5.js +0 -1
@@ -0,0 +1,576 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DBTJNfo7.js';
2
+ import { c as ARROW_LEFT, d as ARROW_RIGHT, a as ENTER, D as DELETE, B as BACKSPACE, E as ESCAPE } from './keycodes-rI0IeKpx.js';
3
+ import { t as translate } from './translations-Dv3YcsA7.js';
4
+ import { a as getTarget, b as getHref } from './link-helper-5KsJICvh.js';
5
+ import { c as createRandomString } from './random-string-JbKhhoXs.js';
6
+ import { i as isEqual } from './isEqual-4tbMaaf_.js';
7
+ import { M as MDCTextField } from './component-wGVqvUmL.js';
8
+ import './_baseIsEqual-B6bIeexY.js';
9
+ import './eq-CZ30nDJE.js';
10
+ import './_getTag-CMJL-6hk.js';
11
+ import './isObject-BJQylLSL.js';
12
+ import './isObjectLike-oiMYqRQ0.js';
13
+ import './isArrayLike-CyVGB489.js';
14
+ import './isFunction-9zQTeQI8.js';
15
+ import './_getNative-COawFdVX.js';
16
+ import './isArray-B8VKuhvH.js';
17
+ import './_isIndex-B--C3qwe.js';
18
+ import './ponyfill-ChRGk668.js';
19
+ import './component-7QB0OUSF.js';
20
+ import './component-D4qgwaTf.js';
21
+
22
+ /**
23
+ * Key handler for the input field.
24
+ * Lets the user select, activate, and remove chips with the keyboard.
25
+ *
26
+ * @param event - event
27
+
28
+ */
29
+ function handleKeyboardEvent(event) {
30
+ var _a;
31
+ if (this.textValue.length > 0) {
32
+ // If there is any text in the input field, keyboard input should
33
+ // navigate the text, not the chips.
34
+ return;
35
+ }
36
+ if (!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length)) {
37
+ // If there are no chips, there is nothing to select.
38
+ return;
39
+ }
40
+ const isArrowLeft = event.key === ARROW_LEFT;
41
+ const isArrowRight = event.key === ARROW_RIGHT;
42
+ const isEnter = event.key === ENTER;
43
+ const isDelete = event.key === DELETE;
44
+ const isBackspace = event.key === BACKSPACE;
45
+ const isEscape = event.key === ESCAPE;
46
+ if (isArrowLeft) {
47
+ return handleLeft(this, event);
48
+ }
49
+ if (isArrowRight) {
50
+ return handleRight(this, event);
51
+ }
52
+ if (isEnter) {
53
+ return handleEnter(this, event);
54
+ }
55
+ if (isDelete) {
56
+ return handleDelete(this, event);
57
+ }
58
+ if (isBackspace) {
59
+ return handleBackspace(this, event);
60
+ }
61
+ if (isEscape) {
62
+ return handleEscape(this, event);
63
+ }
64
+ }
65
+ function handleLeft(host, event) {
66
+ event.preventDefault();
67
+ if (host.inputChipIndexSelected === null) {
68
+ host.inputChipIndexSelected = host.value.length - 1;
69
+ return;
70
+ }
71
+ if (host.inputChipIndexSelected <= 0) {
72
+ return;
73
+ }
74
+ host.inputChipIndexSelected -= 1;
75
+ }
76
+ function handleRight(host, event) {
77
+ event.preventDefault();
78
+ if (host.inputChipIndexSelected === null) {
79
+ host.inputChipIndexSelected = 0;
80
+ return;
81
+ }
82
+ if (host.inputChipIndexSelected >= host.value.length - 1) {
83
+ return;
84
+ }
85
+ host.inputChipIndexSelected += 1;
86
+ }
87
+ function handleEnter(host, event) {
88
+ if (host.inputChipIndexSelected !== null) {
89
+ event.preventDefault();
90
+ host.emitInteraction(host.value[host.inputChipIndexSelected]);
91
+ }
92
+ }
93
+ function handleEscape(host, event) {
94
+ if (host.inputChipIndexSelected !== null) {
95
+ event.preventDefault();
96
+ host.inputChipIndexSelected = null;
97
+ }
98
+ }
99
+ function handleDelete(host, event) {
100
+ if (host.inputChipIndexSelected !== null) {
101
+ event.preventDefault();
102
+ removeChip(host);
103
+ }
104
+ }
105
+ function handleBackspace(host, event) {
106
+ if (host.inputChipIndexSelected !== null) {
107
+ event.preventDefault();
108
+ removeChip(host);
109
+ }
110
+ else if (!event.repeat) {
111
+ host.inputChipIndexSelected = host.value.length - 1;
112
+ }
113
+ }
114
+ function removeChip(host) {
115
+ if (host.inputChipIndexSelected !== null) {
116
+ host.removeChip(host.value[host.inputChipIndexSelected].id);
117
+ host.inputChipIndexSelected = null;
118
+ }
119
+ }
120
+
121
+ const chipSetCss = () => `@charset "UTF-8";:host(limel-chip-set[readonly]) .mdc-text-field.disabled{pointer-events:auto}:host(limel-chip-set:focus),:host(limel-chip-set:focus-visible),:host(limel-chip-set:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-chip-set){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-chip-set:focus) limel-helper-line,:host(limel-chip-set:focus-visible) limel-helper-line,:host(limel-chip-set:focus-within) limel-helper-line,:host(limel-chip-set:hover) limel-helper-line{will-change:grid-template-rows}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity, transform, color}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports (-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0;}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0;}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px;}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px;}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:rgb(244.8, 244.8, 244.8)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px;}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports (-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:0.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined{height:56px}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0;}@supports (top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px);}@supports (top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports (top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{}@supports (top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0;}@supports (top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports (top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{content:none}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px;}.mdc-text-field--outlined{overflow:visible}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:0.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px);}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px);}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0;}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px;}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px;}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1);}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:0.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75);}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl]{}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl]{}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px;}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}.mdc-text-field--disabled .mdc-floating-label{color:GrayText}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:rgb(249.9, 249.9, 249.9)}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left;}[dir=rtl] .mdc-text-field--ltr-text,.mdc-text-field--ltr-text[dir=rtl]{}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text,.mdc-text-field--ltr-text[dir=rtl]{}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl]{}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl]{}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text{margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-character-counter{margin-top:0;line-height:normal;margin-left:auto;margin-right:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto;}.mdc-text-field-character-counter{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px;}.mdc-text-field-character-counter{white-space:nowrap}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px;}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px;}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px;}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px;}.mdc-text-field__icon{display:flex;align-items:center;justify-content:center;color:rgb(var(--contrast-900))}.mdc-text-field__icon limel-icon{width:1.5rem;height:1.5rem}:host(limel-chip-set){isolation:isolate}:host(limel-chip-set[type=input]) limel-notched-outline [slot=content]{min-height:2.5rem}:host(limel-chip-set[type=input]) limel-chip:only-of-type{--chip-max-width:auto}:host(limel-chip-set:not([type=input])) .limel-notched-outline{--limel-notched-outline-border-color:transparent;--limel-notched-outline-background-color:transparent}.mdc-chip-set{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;min-height:2.5rem;position:relative}.mdc-chip-set.mdc-chip-set--input{padding:0.4rem 0.5rem;width:100%}.mdc-chip-set.has-clear-all-button.mdc-chip-set--input{padding-right:2rem}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(var(--contrast-1400), 1);font-size:var(--limel-theme-default-font-size) !important;font-family:inherit !important}.mdc-text-field.mdc-text-field--disabled .mdc-text-field__input{color:rgba(var(--contrast-1400), 0.5)}.mdc-text-field{height:auto;cursor:text;flex-wrap:wrap;row-gap:0.5rem}.mdc-text-field .mdc-text-field__input::placeholder{color:rgb(var(--contrast-900)) !important;font-size:var(--limel-theme-default-font-size) !important;font-family:inherit !important}.mdc-text-field .mdc-text-field__input{width:auto;padding:0 0.5rem;flex-grow:1;flex-shrink:0}.mdc-text-field .mdc-text-field__input.hidden{transition:all 0s;opacity:0;position:absolute;z-index:-100}.mdc-text-field .mdc-text-field__input[type=search]{-webkit-appearance:textfield;background-color:transparent}.mdc-text-field .mdc-text-field__input[type=search]::-webkit-search-cancel-button{display:none}.clear-all-button{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:rgb(var(--contrast-900))}.clear-all-button:hover,.clear-all-button:focus,.clear-all-button:focus-visible{will-change:color, background-color, box-shadow, transform}.clear-all-button:hover,.clear-all-button:focus-visible{transform:translate3d(0, 0.01rem, 0);color:rgb(var(--color-white));background-color:rgb(var(--color-red-default))}.clear-all-button:hover{box-shadow:var(--button-shadow-hovered)}.clear-all-button:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.clear-all-button:hover,.clear-all-button:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.clear-all-button{cursor:pointer;height:1.25rem;width:1.25rem;border-radius:50%;background-repeat:no-repeat;background-position:center;background-size:0.75rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cdefs/%3E%3Cpath%20fill='rgb(255,255,255)'%20d='M7.219%205.781L5.78%207.22%2014.563%2016%205.78%2024.781%207.22%2026.22%2016%2017.437l8.781%208.782%201.438-1.438L17.437%2016l8.782-8.781L24.78%205.78%2016%2014.563z'/%3E%3C/svg%3E")}.clear-all-button:focus{outline:none}.clear-all-button:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.clear-all-button{position:absolute;right:0.5rem;top:calc(2.5rem / 4);opacity:0}.clear-all-button:focus,.has-chips:not(.disabled):hover .clear-all-button,.has-chips:not(.disabled).mdc-text-field--focused .clear-all-button{opacity:1;outline:none}.mdc-chip-set:not(.has-chips) .clear-all-button,.has-chips.disabled .clear-all-button{display:none}.has-leading-icon:not(.has-chips) .mdc-text-field__input{padding-left:1.5rem}.has-leading-icon limel-chip:first-of-type{margin-left:1.5rem}.has-leading-icon .search-icon{transition:transform 0.2s ease;position:absolute;top:0.5625rem;left:0.25rem}.has-leading-icon limel-icon{background-color:transparent}.delimiter{opacity:0.5;padding:0 0.125rem;color:var(--limel-theme-on-surface-color)}limel-chip{border-radius:2rem}limel-chip.can-be-removed{box-shadow:var(--shadow-depth-8-error)}`;
122
+
123
+ function isChipAnnotatedEvent(event) {
124
+ var _a;
125
+ return !!((_a = event === null || event === void 0 ? void 0 : event.Lime) === null || _a === void 0 ? void 0 : _a.chip);
126
+ }
127
+ const ChipSet = class {
128
+ constructor(hostRef) {
129
+ registerInstance(this, hostRef);
130
+ this.interact = createEvent(this, "interact");
131
+ this.change = createEvent(this, "change");
132
+ this.startEdit = createEvent(this, "startEdit");
133
+ this.stopEdit = createEvent(this, "stopEdit");
134
+ this.input = createEvent(this, "input");
135
+ /**
136
+ * List of chips for the set
137
+ */
138
+ this.value = [];
139
+ /**
140
+ * True if the chip set should be disabled
141
+ */
142
+ this.disabled = false;
143
+ /**
144
+ * For chip-sets of type `input`, set to `true` to disable adding and
145
+ * removing chips, but allow interaction with existing chips in the set.
146
+ * For any other types, setting either `readonly` or `disabled` disables
147
+ * the chip-set.
148
+ */
149
+ this.readonly = false;
150
+ /**
151
+ * Set to `true` to indicate that the current value of the input field is
152
+ * invalid.
153
+ */
154
+ this.invalid = false;
155
+ /**
156
+ * For chip-sets of type `input`. Value to use for the `type` attribute on the
157
+ * input field inside the chip-set.
158
+ */
159
+ this.inputType = 'text';
160
+ /**
161
+ * True if the control requires a value
162
+ */
163
+ this.required = false;
164
+ /**
165
+ * Whether the input field should be emptied when the chip-set loses focus.
166
+ */
167
+ this.emptyInputOnBlur = true;
168
+ /**
169
+ * Whether the "Clear all" buttons should be shown
170
+ */
171
+ this.clearAllButton = true;
172
+ /**
173
+ * For chip-sets of type `input`. When the value is null, no leading icon is used.
174
+ * Leading icon to show to the far left in the text field
175
+ */
176
+ this.leadingIcon = null;
177
+ /**
178
+ * For chip-set of type `input`. Sets delimiters between chips.
179
+ */
180
+ this.delimiter = null;
181
+ /**
182
+ * For chip-set of type `input`, defines whether the input field should have autocomplete enabled.
183
+ * Read more about the `autocomplete` attribute
184
+ * [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete).
185
+ */
186
+ this.autocomplete = 'off';
187
+ /**
188
+ * Defines the language for translations.
189
+ * Will translate the translatable strings on the components. For example, the clear all chips label.
190
+ */
191
+ this.language = 'en';
192
+ this.editMode = false;
193
+ this.textValue = '';
194
+ this.blurred = false;
195
+ this.inputChipIndexSelected = null;
196
+ this.handleKeyDown = handleKeyboardEvent;
197
+ this.renderContent = (value) => {
198
+ if (this.type === 'input') {
199
+ return this.renderInputChips();
200
+ }
201
+ return value.map(this.renderChip);
202
+ };
203
+ this.getValue = () => {
204
+ return this.value.map((chip) => (Object.assign(Object.assign({}, chip), (this.type && {
205
+ selected: this.selectedChipIds.includes(chip.id),
206
+ }))));
207
+ };
208
+ this.floatLabelAbove = () => {
209
+ if (this.value.length > 0 ||
210
+ this.editMode ||
211
+ this.readonly ||
212
+ this.textValue) {
213
+ return true;
214
+ }
215
+ };
216
+ this.hasHelperText = () => {
217
+ return this.helperText !== null && this.helperText !== undefined;
218
+ };
219
+ this.renderHelperLine = () => {
220
+ const maxItems = this.maxItems === 1 ? undefined : this.maxItems;
221
+ if (!maxItems && !this.hasHelperText()) {
222
+ return;
223
+ }
224
+ return (h("limel-helper-line", { length: this.value.length, maxLength: maxItems, helperText: this.helperText, invalid: this.isInvalid() }));
225
+ };
226
+ this.catchInputChipClicks = (chip) => (event) => {
227
+ /*
228
+ * We need to add the `chip` to the event object so that the consumer
229
+ * can get the chip object when the chip is clicked.
230
+ * This is necessary for the consumer to be able to handle the click
231
+ * event itself, based on which chip was clicked, or whether the click
232
+ * was on a chip or elsewhere. The reason the consumer can't just look
233
+ * at the event target is that that information is hidden by the
234
+ * shadow DOM.
235
+ *
236
+ * See documentation for the `interact` event for more information.
237
+ */
238
+ event.Lime = { chip: chip };
239
+ if (this.isSelectableChip(chip)) {
240
+ this.updateSelectedChipIds(chip);
241
+ this.change.emit(chip);
242
+ }
243
+ this.emitInteraction(chip);
244
+ };
245
+ this.handleRemoveChip = (event) => {
246
+ this.removeChip(event.detail);
247
+ };
248
+ this.removeChip = (identifier) => {
249
+ const newValue = this.value.filter((chip) => {
250
+ return chip.id !== identifier;
251
+ });
252
+ this.change.emit(newValue);
253
+ };
254
+ this.clearAllChipsLabel = () => {
255
+ return translate.get('chip-set.clear-all', this.language);
256
+ };
257
+ this.labelId = createRandomString();
258
+ this.renderChip = this.renderChip.bind(this);
259
+ this.renderInputChip = this.renderInputChip.bind(this);
260
+ this.isFull = this.isFull.bind(this);
261
+ this.handleTextFieldFocus = this.handleTextFieldFocus.bind(this);
262
+ this.handleInputBlur = this.handleInputBlur.bind(this);
263
+ this.handleTextInput = this.handleTextInput.bind(this);
264
+ this.inputFieldOnChange = this.inputFieldOnChange.bind(this);
265
+ this.handleKeyDown = this.handleKeyDown.bind(this);
266
+ this.inputHidden = this.inputHidden.bind(this);
267
+ this.handleDeleteAllIconClick =
268
+ this.handleDeleteAllIconClick.bind(this);
269
+ this.renderDelimiter = this.renderDelimiter.bind(this);
270
+ }
271
+ connectedCallback() {
272
+ this.initialize();
273
+ }
274
+ initialize() {
275
+ if (this.value.length > 0) {
276
+ this.selectedChipIds = this.value
277
+ .filter((chip) => chip.selected)
278
+ .map((chip) => chip.id);
279
+ }
280
+ }
281
+ /**
282
+ * Used to find out whether the chip-set is in edit mode.
283
+ *
284
+ * @returns `true` if the chip-set is in edit mode, `false` otherwise.
285
+ */
286
+ async getEditMode() {
287
+ return this.editMode;
288
+ }
289
+ /**
290
+ * Used to set focus to the chip-set input field.
291
+ *
292
+ * @param emptyInput - if `true`, any text in the input is discarded
293
+ * @returns does not return anything, but methods have to be async
294
+ */
295
+ async setFocus(emptyInput = false) {
296
+ if (this.disabled || this.readonly) {
297
+ return;
298
+ }
299
+ this.editMode = true;
300
+ if (emptyInput) {
301
+ this.textValue = '';
302
+ }
303
+ this.host.shadowRoot.querySelector('input').focus();
304
+ this.startEdit.emit();
305
+ }
306
+ /**
307
+ * Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the
308
+ * consumer control when the input is emptied.
309
+ *
310
+ * @returns does not return anything, but methods have to be async
311
+ */
312
+ async emptyInput() {
313
+ this.syncEmptyInput();
314
+ }
315
+ componentDidLoad() {
316
+ this.triggerIconColorWarning(this.value);
317
+ if (this.type === 'input') {
318
+ this.mdcTextField = new MDCTextField(this.host.shadowRoot.querySelector('.mdc-text-field'));
319
+ }
320
+ }
321
+ componentDidUpdate() {
322
+ const input = this.host.shadowRoot.querySelector('input');
323
+ if (input && this.editMode) {
324
+ input.focus();
325
+ }
326
+ }
327
+ disconnectedCallback() {
328
+ if (this.mdcTextField) {
329
+ this.mdcTextField.destroy();
330
+ }
331
+ }
332
+ render() {
333
+ var _a;
334
+ const classes = {
335
+ 'mdc-chip-set': true,
336
+ 'mdc-text-field--with-trailing-icon': true,
337
+ disabled: this.disabled || this.readonly,
338
+ };
339
+ if (this.type) {
340
+ classes[`mdc-chip-set--${this.type}`] = true;
341
+ }
342
+ if (this.type === 'input') {
343
+ Object.assign(classes, {
344
+ 'mdc-text-field': true,
345
+ 'mdc-text-field--outlined': true,
346
+ 'mdc-chip-set--input': true,
347
+ 'lime-text-field--readonly': this.readonly,
348
+ 'has-chips': this.value.length > 0,
349
+ 'has-leading-icon': this.leadingIcon !== null,
350
+ 'has-clear-all-button': this.clearAllButton,
351
+ });
352
+ }
353
+ const value = this.getValue();
354
+ return (h(Host, { key: 'debc60e705b4963508c42607e445ad1f3d0f4502' }, h("limel-notched-outline", { key: '97fafcf0efaba1abad175afa1057a8e7672f4562', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, h("div", Object.assign({ key: 'dcde98d15b8793359cafef00939ace7c513dcea8', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
355
+ }
356
+ getContentProps() {
357
+ if (this.type === 'input') {
358
+ return {
359
+ onClick: this.handleTextFieldFocus,
360
+ };
361
+ }
362
+ return {
363
+ role: 'grid',
364
+ };
365
+ }
366
+ handleChangeChips(newValue, oldValue) {
367
+ if (isEqual(newValue, oldValue)) {
368
+ return;
369
+ }
370
+ this.syncEmptyInput();
371
+ this.initialize();
372
+ }
373
+ renderInputChips() {
374
+ return [
375
+ this.value.map(this.renderInputChip),
376
+ h("input", { tabIndex: this.disabled || this.readonly ? -1 : 0, type: this.inputType, id: this.labelId, disabled: this.readonly || this.disabled, class: {
377
+ 'mdc-text-field__input': true,
378
+ hidden: this.inputHidden(),
379
+ }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
380
+ // Some browsers emit a change event on input elements, we need to stop
381
+ // that event from propagating since we are emitting our own change event
382
+ onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull(), autocomplete: this.autocomplete }),
383
+ this.renderLeadingIcon(),
384
+ this.renderClearAllChipsButton(),
385
+ ];
386
+ }
387
+ isFull() {
388
+ return !!this.maxItems && this.value.length >= this.maxItems;
389
+ }
390
+ isInvalid() {
391
+ var _a;
392
+ if (this.readonly) {
393
+ // A readonly field can never be invalid.
394
+ return false;
395
+ }
396
+ if (this.invalid) {
397
+ return true;
398
+ }
399
+ if (!this.required) {
400
+ return false;
401
+ }
402
+ if (!this.blurred) {
403
+ return false;
404
+ }
405
+ return !((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
406
+ }
407
+ inputFieldOnChange(event) {
408
+ event.stopPropagation();
409
+ }
410
+ /**
411
+ * Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
412
+ * @param event - The originating click or focus event, if any. When a
413
+ * click originates from a chip body (marked by
414
+ * {@link catchInputChipClicks} as `event.Lime.chip`), edit mode is
415
+ * not entered: the chip's `interact` event is the consumer's signal
416
+ * and the input should not steal focus alongside it.
417
+ */
418
+ handleTextFieldFocus(event) {
419
+ if (this.disabled || this.readonly) {
420
+ return;
421
+ }
422
+ if (this.editMode) {
423
+ return;
424
+ }
425
+ if (isChipAnnotatedEvent(event)) {
426
+ return;
427
+ }
428
+ this.editMode = true;
429
+ this.startEdit.emit();
430
+ }
431
+ /**
432
+ * Exit edit mode when the input element loses focus. This makes sure the input element does not take up any
433
+ * additional space when the user it not typing anything
434
+ */
435
+ handleInputBlur() {
436
+ if (this.emptyInputOnBlur) {
437
+ this.syncEmptyInput();
438
+ }
439
+ this.editMode = false;
440
+ this.blurred = true;
441
+ this.inputChipIndexSelected = null;
442
+ // This timeout is needed in order to let a new element receive focus
443
+ setTimeout(() => {
444
+ this.stopEdit.emit();
445
+ }, 0);
446
+ }
447
+ syncEmptyInput() {
448
+ this.textValue = '';
449
+ }
450
+ inputHidden() {
451
+ var _a;
452
+ if (this.editMode) {
453
+ return this.isFull();
454
+ }
455
+ // Keep the input visible while it holds uncommitted text, so typed
456
+ // content doesn't disappear when focus leaves (e.g. tabbing to a
457
+ // sibling action).
458
+ if (this.textValue) {
459
+ return false;
460
+ }
461
+ // If there are chips in the picker, hide the input to avoid the input
462
+ // being placed on a new line and adding ugly space beneath the chips.
463
+ // If there are no chips, show the input, or the picker will look weird.
464
+ return !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
465
+ }
466
+ handleTextInput(event) {
467
+ var _a;
468
+ event.stopPropagation();
469
+ this.inputChipIndexSelected = null;
470
+ this.textValue = event.target.value;
471
+ this.input.emit((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim());
472
+ }
473
+ emitInteraction(chip) {
474
+ this.interact.emit(chip);
475
+ }
476
+ renderChip(chip) {
477
+ const chipType = this.type === 'filter' ? 'filter' : 'default';
478
+ const chipProps = this.getChipProps(chip, chipType);
479
+ return h("limel-chip", Object.assign({}, chipProps));
480
+ }
481
+ renderInputChip(chip, index, chips) {
482
+ const chipProps = this.getChipProps(chip, 'default');
483
+ const isLastChip = index === chips.length - 1;
484
+ return [
485
+ h("limel-chip", Object.assign({ key: chip.id, class: {
486
+ 'can-be-removed': this.inputChipIndexSelected === index,
487
+ } }, chipProps)),
488
+ !(isLastChip && this.inputHidden()) && this.renderDelimiter(),
489
+ ];
490
+ }
491
+ getChipProps(chip, chipType) {
492
+ const removable = this.type === 'input' && chip.removable && !this.readonly;
493
+ const readonly = this.readonly && this.type !== 'input';
494
+ return Object.assign({ role: 'row', identifier: chip.id, text: chip.text, icon: chip.icon, image: chip.image, badge: chip.badge, selected: chip.selected, disabled: this.disabled, loading: chip.loading, invalid: chip.invalid, readonly: readonly, type: chipType, removable: removable, menuItems: chip.menuItems, onClick: this.catchInputChipClicks(chip), onRemove: this.handleRemoveChip }, (chip.href && {
495
+ link: {
496
+ href: getHref(chip.href),
497
+ target: getTarget(chip.href),
498
+ },
499
+ }));
500
+ }
501
+ isSelectableChip(chip) {
502
+ return this.type !== 'input' && 'selected' in chip;
503
+ }
504
+ updateSelectedChipIds(chip) {
505
+ chip.selected = !chip.selected;
506
+ const id = chip.id;
507
+ if (this.type === 'choice') {
508
+ this.updateChoiceTypeSelectedIds(id);
509
+ }
510
+ else {
511
+ this.updateFilterTypeSelectedIds(id);
512
+ }
513
+ }
514
+ updateChoiceTypeSelectedIds(id) {
515
+ this.selectedChipIds = this.isChipSelected(id) ? [] : [id];
516
+ }
517
+ isChipSelected(id) {
518
+ return this.selectedChipIds.includes(id);
519
+ }
520
+ updateFilterTypeSelectedIds(id) {
521
+ if (this.isChipSelected(id)) {
522
+ this.removeChipIdFromSelectedChipIds(id);
523
+ }
524
+ else {
525
+ this.addChipIdToSelectedChipIds(id);
526
+ }
527
+ }
528
+ removeChipIdFromSelectedChipIds(id) {
529
+ this.selectedChipIds = this.selectedChipIds.filter((chipId) => chipId !== id);
530
+ }
531
+ addChipIdToSelectedChipIds(id) {
532
+ this.selectedChipIds = [...this.selectedChipIds, id];
533
+ }
534
+ renderLeadingIcon() {
535
+ if (!this.leadingIcon) {
536
+ return;
537
+ }
538
+ return (h("i", { class: "mdc-text-field__icon search-icon" }, h("limel-icon", { name: this.leadingIcon })));
539
+ }
540
+ renderClearAllChipsButton() {
541
+ if (this.disabled || this.readonly || !this.clearAllButton) {
542
+ return;
543
+ }
544
+ return (h("a", { href: "", onClick: this.handleDeleteAllIconClick, class: "mdc-text-field__icon clear-all-button", tabindex: "0", role: "button", title: this.clearAllChipsLabel(), "aria-label": this.clearAllChipsLabel() }));
545
+ }
546
+ handleDeleteAllIconClick(event) {
547
+ event.preventDefault();
548
+ this.change.emit([]);
549
+ }
550
+ renderDelimiter() {
551
+ if (!this.delimiter) {
552
+ return;
553
+ }
554
+ return h("div", { class: "delimiter" }, this.delimiter);
555
+ }
556
+ triggerIconColorWarning(value) {
557
+ for (const chip of value) {
558
+ if (chip.icon &&
559
+ (chip.iconFillColor ||
560
+ chip.iconBackgroundColor ||
561
+ chip.iconTitle)) {
562
+ console.warn("The `iconFillColor`, `iconBackgroundColor`, and `iconTitle` props are deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name', `iconBackgroundColor: 'color-name', and `iconTitle: 'title'`, write `icon { name: 'icon-name', color: 'color-name', backgroundColor: 'color-name', title: 'title' }`.");
563
+ }
564
+ }
565
+ }
566
+ static get delegatesFocus() { return true; }
567
+ get host() { return getElement(this); }
568
+ static get watchers() { return {
569
+ "value": [{
570
+ "handleChangeChips": 0
571
+ }]
572
+ }; }
573
+ };
574
+ ChipSet.style = chipSetCss();
575
+
576
+ export { ChipSet as limel_chip_set };