@icure/form 1.0.2 → 1.0.6

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 (126) hide show
  1. package/{lib/components → components}/index.d.ts +0 -0
  2. package/{lib/components → components}/index.js +0 -0
  3. package/{lib/components → components}/iqr-form/fields/datePicker.d.ts +0 -0
  4. package/{lib/components → components}/iqr-form/fields/datePicker.js +0 -0
  5. package/{lib/components → components}/iqr-form/fields/dateTimePicker.d.ts +0 -0
  6. package/{lib/components → components}/iqr-form/fields/dateTimePicker.js +0 -0
  7. package/{lib/components → components}/iqr-form/fields/measureField.d.ts +0 -0
  8. package/{lib/components → components}/iqr-form/fields/measureField.js +0 -0
  9. package/{lib/components → components}/iqr-form/fields/multipleChoice.d.ts +0 -0
  10. package/{lib/components → components}/iqr-form/fields/multipleChoice.js +0 -0
  11. package/{lib/components → components}/iqr-form/fields/numberField.d.ts +0 -0
  12. package/{lib/components → components}/iqr-form/fields/numberField.js +0 -0
  13. package/{lib/components → components}/iqr-form/fields/textfield.d.ts +0 -0
  14. package/{lib/components → components}/iqr-form/fields/textfield.js +0 -0
  15. package/{lib/components → components}/iqr-form/fields/timePicker.d.ts +0 -0
  16. package/{lib/components → components}/iqr-form/fields/timePicker.js +0 -0
  17. package/{lib/components → components}/iqr-form/index.d.ts +0 -0
  18. package/{lib/components → components}/iqr-form/index.js +59 -6
  19. package/{lib/components → components}/iqr-form/model/index.d.ts +0 -0
  20. package/{lib/components → components}/iqr-form/model/index.js +2 -2
  21. package/{lib/components → components}/iqr-form/renderer/cards.d.ts +0 -0
  22. package/{lib/components → components}/iqr-form/renderer/cards.js +2 -1
  23. package/{lib/components → components}/iqr-form/renderer/form.d.ts +0 -0
  24. package/{lib → components}/iqr-form/renderer/form.js +2 -1
  25. package/{lib/components → components}/iqr-form/renderer/index.d.ts +0 -0
  26. package/{lib/components → components}/iqr-form/renderer/index.js +0 -0
  27. package/{lib/components → components}/iqr-text-field/index.d.ts +0 -0
  28. package/{lib/components → components}/iqr-text-field/index.js +751 -7
  29. package/{lib/components → components}/iqr-text-field/plugin/caret-fix-plugin.d.ts +0 -0
  30. package/{lib → components}/iqr-text-field/plugin/caret-fix-plugin.js +2 -1
  31. package/{lib/components → components}/iqr-text-field/plugin/has-content-class-plugin.d.ts +0 -0
  32. package/{lib/components → components}/iqr-text-field/plugin/has-content-class-plugin.js +2 -1
  33. package/{lib/components → components}/iqr-text-field/plugin/mask-plugin.d.ts +0 -0
  34. package/{lib/components → components}/iqr-text-field/plugin/mask-plugin.js +2 -1
  35. package/{lib/components → components}/iqr-text-field/plugin/regexp-plugin.d.ts +0 -0
  36. package/{lib/components → components}/iqr-text-field/plugin/regexp-plugin.js +2 -1
  37. package/{lib/components → components}/iqr-text-field/prosemirror-commands.d.ts +0 -0
  38. package/{lib/components → components}/iqr-text-field/prosemirror-commands.js +0 -0
  39. package/{lib/components → components}/iqr-text-field/prosemirror-utils.d.ts +0 -0
  40. package/{lib/components → components}/iqr-text-field/prosemirror-utils.js +0 -0
  41. package/{lib/components → components}/iqr-text-field/schema/common-marks.d.ts +0 -0
  42. package/{lib/components → components}/iqr-text-field/schema/common-marks.js +0 -0
  43. package/{lib/components → components}/iqr-text-field/schema/date-time-schema.d.ts +0 -0
  44. package/{lib/components → components}/iqr-text-field/schema/date-time-schema.js +0 -0
  45. package/{lib/components → components}/iqr-text-field/schema/decimal-schema.d.ts +0 -0
  46. package/{lib/components → components}/iqr-text-field/schema/decimal-schema.js +0 -0
  47. package/{lib/components → components}/iqr-text-field/schema/index.d.ts +0 -0
  48. package/{lib/components → components}/iqr-text-field/schema/index.js +0 -0
  49. package/{lib/components → components}/iqr-text-field/schema/markdown-schema.d.ts +0 -0
  50. package/{lib/components → components}/iqr-text-field/schema/markdown-schema.js +0 -0
  51. package/{lib/components → components}/iqr-text-field/schema/measure-schema.d.ts +0 -0
  52. package/{lib/components → components}/iqr-text-field/schema/measure-schema.js +0 -0
  53. package/{lib/components → components}/iqr-text-field/schema/token-schema.d.ts +0 -0
  54. package/{lib/components → components}/iqr-text-field/schema/token-schema.js +0 -0
  55. package/{lib/components → components}/iqr-text-field/schema/utils.d.ts +0 -0
  56. package/{lib/components → components}/iqr-text-field/schema/utils.js +0 -0
  57. package/{lib/components → components}/iqr-text-field/selection-companion.d.ts +0 -0
  58. package/{lib/components → components}/iqr-text-field/selection-companion.js +0 -0
  59. package/{lib/components → components}/iqr-text-field/suggestion-palette.d.ts +0 -0
  60. package/{lib → components}/iqr-text-field/suggestion-palette.js +5 -5
  61. package/{lib/index.d.ts → index.d.ts} +0 -0
  62. package/{lib/index.js → index.js} +0 -0
  63. package/package.json +14 -47
  64. package/.idea/inspectionProfiles/Project_Default.xml +0 -73
  65. package/.idea/iqr-text-field.iml +0 -9
  66. package/.idea/misc.xml +0 -6
  67. package/.idea/modules.xml +0 -8
  68. package/.idea/vcs.xml +0 -6
  69. package/lib/components/iqr-form/renderer/form.js +0 -44
  70. package/lib/components/iqr-text-field/plugin/caret-fix-plugin.js +0 -23
  71. package/lib/components/iqr-text-field/suggestion-palette.js +0 -139
  72. package/lib/iqr-form/fields/datePicker.d.ts +0 -8
  73. package/lib/iqr-form/fields/datePicker.js +0 -42
  74. package/lib/iqr-form/fields/dateTimePicker.d.ts +0 -8
  75. package/lib/iqr-form/fields/dateTimePicker.js +0 -42
  76. package/lib/iqr-form/fields/measureField.d.ts +0 -8
  77. package/lib/iqr-form/fields/measureField.js +0 -42
  78. package/lib/iqr-form/fields/multipleChoice.d.ts +0 -8
  79. package/lib/iqr-form/fields/multipleChoice.js +0 -42
  80. package/lib/iqr-form/fields/numberField.d.ts +0 -8
  81. package/lib/iqr-form/fields/numberField.js +0 -42
  82. package/lib/iqr-form/fields/textfield.d.ts +0 -1
  83. package/lib/iqr-form/fields/textfield.js +0 -86
  84. package/lib/iqr-form/fields/timePicker.d.ts +0 -8
  85. package/lib/iqr-form/fields/timePicker.js +0 -42
  86. package/lib/iqr-form/index.d.ts +0 -7
  87. package/lib/iqr-form/index.js +0 -83
  88. package/lib/iqr-form/model/index.d.ts +0 -78
  89. package/lib/iqr-form/model/index.js +0 -114
  90. package/lib/iqr-form/renderer/cards.d.ts +0 -2
  91. package/lib/iqr-form/renderer/cards.js +0 -43
  92. package/lib/iqr-form/renderer/form.d.ts +0 -2
  93. package/lib/iqr-form/renderer/index.d.ts +0 -3
  94. package/lib/iqr-form/renderer/index.js +0 -2
  95. package/lib/iqr-text-field/index.d.ts +0 -2
  96. package/lib/iqr-text-field/index.js +0 -335
  97. package/lib/iqr-text-field/plugin/caret-fix-plugin.d.ts +0 -2
  98. package/lib/iqr-text-field/plugin/has-content-class-plugin.d.ts +0 -2
  99. package/lib/iqr-text-field/plugin/has-content-class-plugin.js +0 -18
  100. package/lib/iqr-text-field/plugin/mask-plugin.d.ts +0 -2
  101. package/lib/iqr-text-field/plugin/mask-plugin.js +0 -143
  102. package/lib/iqr-text-field/plugin/regexp-plugin.d.ts +0 -2
  103. package/lib/iqr-text-field/plugin/regexp-plugin.js +0 -46
  104. package/lib/iqr-text-field/prosemirror-commands.d.ts +0 -4
  105. package/lib/iqr-text-field/prosemirror-commands.js +0 -52
  106. package/lib/iqr-text-field/prosemirror-utils.d.ts +0 -5
  107. package/lib/iqr-text-field/prosemirror-utils.js +0 -15
  108. package/lib/iqr-text-field/schema/common-marks.d.ts +0 -10
  109. package/lib/iqr-text-field/schema/common-marks.js +0 -90
  110. package/lib/iqr-text-field/schema/date-time-schema.d.ts +0 -7
  111. package/lib/iqr-text-field/schema/date-time-schema.js +0 -88
  112. package/lib/iqr-text-field/schema/decimal-schema.d.ts +0 -3
  113. package/lib/iqr-text-field/schema/decimal-schema.js +0 -27
  114. package/lib/iqr-text-field/schema/index.d.ts +0 -11
  115. package/lib/iqr-text-field/schema/index.js +0 -18
  116. package/lib/iqr-text-field/schema/markdown-schema.d.ts +0 -8
  117. package/lib/iqr-text-field/schema/markdown-schema.js +0 -139
  118. package/lib/iqr-text-field/schema/measure-schema.d.ts +0 -3
  119. package/lib/iqr-text-field/schema/measure-schema.js +0 -35
  120. package/lib/iqr-text-field/schema/token-schema.d.ts +0 -6
  121. package/lib/iqr-text-field/schema/token-schema.js +0 -36
  122. package/lib/iqr-text-field/schema/utils.d.ts +0 -11
  123. package/lib/iqr-text-field/schema/utils.js +0 -11
  124. package/lib/iqr-text-field/selection-companion.d.ts +0 -11
  125. package/lib/iqr-text-field/selection-companion.js +0 -52
  126. package/lib/iqr-text-field/suggestion-palette.d.ts +0 -33
@@ -38,9 +38,754 @@ const suggestion_palette_1 = require("./suggestion-palette");
38
38
  const caret_fix_plugin_1 = require("./plugin/caret-fix-plugin");
39
39
  const prosemirror_utils_1 = require("./prosemirror-utils");
40
40
  // @ts-ignore
41
- const style_scss_1 = __importDefault(require("./styles/style.scss"));
41
+ const lit_element_2 = require("lit-element");
42
+ const baseCss = lit_element_2.css `@charset "UTF-8";
43
+ :host {
44
+ --bg-color-1: #F44336;
45
+ }
46
+
47
+ .ProseMirror {
48
+ position: relative;
49
+ }
50
+
51
+ .ProseMirror {
52
+ word-wrap: break-word;
53
+ white-space: pre-wrap;
54
+ -webkit-font-variant-ligatures: none;
55
+ font-variant-ligatures: none;
56
+ font-feature-settings: "liga" 0;
57
+ /* the above doesn't seem to work in Edge */
58
+ }
59
+
60
+ .ProseMirror pre {
61
+ white-space: pre-wrap;
62
+ }
63
+
64
+ .ProseMirror li {
65
+ position: relative;
66
+ }
67
+
68
+ .ProseMirror-hideselection *::selection {
69
+ background: transparent;
70
+ }
71
+
72
+ .ProseMirror-hideselection *::-moz-selection {
73
+ background: transparent;
74
+ }
75
+
76
+ .ProseMirror-hideselection {
77
+ caret-color: transparent;
78
+ }
79
+
80
+ .ProseMirror-selectednode {
81
+ outline: 2px solid #8cf;
82
+ }
83
+
84
+ /* Make sure li selections wrap around markers */
85
+ li.ProseMirror-selectednode {
86
+ outline: none;
87
+ }
88
+
89
+ li.ProseMirror-selectednode:after {
90
+ content: "";
91
+ position: absolute;
92
+ left: -32px;
93
+ right: -2px;
94
+ top: -2px;
95
+ bottom: -2px;
96
+ border: 2px solid #8cf;
97
+ pointer-events: none;
98
+ }
99
+
100
+ .ProseMirror-gapcursor {
101
+ display: none;
102
+ pointer-events: none;
103
+ position: absolute;
104
+ }
105
+
106
+ .ProseMirror-gapcursor:after {
107
+ content: "";
108
+ display: block;
109
+ position: absolute;
110
+ top: -2px;
111
+ width: 20px;
112
+ border-top: 1px solid black;
113
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
114
+ }
115
+
116
+ @keyframes ProseMirror-cursor-blink {
117
+ to {
118
+ visibility: hidden;
119
+ }
120
+ }
121
+ .ProseMirror-focused .ProseMirror-gapcursor {
122
+ display: block;
123
+ }
124
+
125
+ /* Add space around the hr to make clicking it easier */
126
+ .ProseMirror-example-setup-style hr {
127
+ padding: 2px 10px;
128
+ border: none;
129
+ margin: 1em 0;
130
+ }
131
+
132
+ .ProseMirror-example-setup-style hr:after {
133
+ content: "";
134
+ display: block;
135
+ height: 1px;
136
+ background: silver;
137
+ line-height: 2px;
138
+ }
139
+
140
+ .ProseMirror ul, .ProseMirror ol {
141
+ padding-left: 30px;
142
+ }
143
+
144
+ .ProseMirror blockquote {
145
+ padding-left: 1em;
146
+ border-left: 3px solid #eee;
147
+ margin-left: 0;
148
+ margin-right: 0;
149
+ }
150
+
151
+ .ProseMirror-example-setup-style img {
152
+ cursor: default;
153
+ }
154
+
155
+ .ProseMirror-prompt {
156
+ background: white;
157
+ padding: 5px 10px 5px 15px;
158
+ border: 1px solid silver;
159
+ position: fixed;
160
+ border-radius: 3px;
161
+ z-index: 11;
162
+ box-shadow: -0.5px 2px 5px rgba(0, 0, 0, 0.2);
163
+ }
164
+
165
+ .ProseMirror-prompt h5 {
166
+ margin: 0;
167
+ font-weight: normal;
168
+ font-size: 100%;
169
+ color: #444;
170
+ }
171
+
172
+ .ProseMirror-prompt input[type=text],
173
+ .ProseMirror-prompt textarea {
174
+ background: #eee;
175
+ border: none;
176
+ outline: none;
177
+ }
178
+
179
+ .ProseMirror-prompt input[type=text] {
180
+ padding: 0 4px;
181
+ }
182
+
183
+ .ProseMirror-prompt-close {
184
+ position: absolute;
185
+ left: 2px;
186
+ top: 1px;
187
+ color: #666;
188
+ border: none;
189
+ background: transparent;
190
+ padding: 0;
191
+ }
192
+
193
+ .ProseMirror-prompt-close:after {
194
+ content: "✕";
195
+ font-size: 12px;
196
+ }
197
+
198
+ .ProseMirror-invalid {
199
+ background: #ffc;
200
+ border: 1px solid #cc7;
201
+ border-radius: 4px;
202
+ padding: 5px 10px;
203
+ position: absolute;
204
+ min-width: 10em;
205
+ }
206
+
207
+ .ProseMirror-prompt-buttons {
208
+ margin-top: 5px;
209
+ display: none;
210
+ }
211
+
212
+ #editor, .editor {
213
+ color: black;
214
+ background-clip: padding-box;
215
+ border-radius: 4px;
216
+ border: 2px solid rgba(0, 0, 0, 0.2);
217
+ padding: 5px 0;
218
+ }
219
+
220
+ .ProseMirror p:last-child,
221
+ .ProseMirror h1:last-child,
222
+ .ProseMirror h2:last-child,
223
+ .ProseMirror h3:last-child,
224
+ .ProseMirror h4:last-child,
225
+ .ProseMirror h5:last-child,
226
+ .ProseMirror h6:last-child {
227
+ margin-bottom: 2px;
228
+ }
229
+
230
+ .ProseMirror {
231
+ padding: 6px 8px 2px 8px;
232
+ line-height: 1.2;
233
+ color: #274768;
234
+ font-size: 14px;
235
+ font-weight: 400;
236
+ outline: none;
237
+ }
238
+
239
+ .ProseMirror p {
240
+ margin-bottom: 1em;
241
+ }
242
+
243
+ .iqr-input {
244
+ background: #EDF2F7;
245
+ border-radius: 8px;
246
+ border: none;
247
+ min-height: 28px;
248
+ height: auto;
249
+ display: flex;
250
+ flex-flow: row nowrap;
251
+ align-items: flex-start;
252
+ justify-content: space-between;
253
+ }
254
+
255
+ #editor {
256
+ background: transparent;
257
+ border: none;
258
+ padding: 0;
259
+ flex-grow: 1;
260
+ }
261
+
262
+ #content {
263
+ position: relative;
264
+ padding: 0;
265
+ }
266
+
267
+ * {
268
+ font-family: "Inter", Arial, sans-serif;
269
+ }
270
+
271
+ p {
272
+ margin-top: 0;
273
+ }
274
+
275
+ h3 {
276
+ color: #274768;
277
+ margin-top: 0;
278
+ }
279
+
280
+ .extra {
281
+ flex-shrink: 0;
282
+ height: 28px;
283
+ display: flex;
284
+ flex-flow: row nowrap;
285
+ align-items: center;
286
+ padding: 0 8px;
287
+ transition: all 0.24s cubic-bezier(0.42, 0.01, 1, 0.62);
288
+ }
289
+
290
+ .extra > .info {
291
+ color: #809AB4;
292
+ font-size: 12px;
293
+ width: 100%;
294
+ height: auto;
295
+ overflow: hidden;
296
+ pointer-events: none;
297
+ text-align: right;
298
+ }
299
+
300
+ .extra > .info > span {
301
+ font-weight: 700;
302
+ }
303
+
304
+ .extra .buttons-container {
305
+ display: flex;
306
+ height: 100%;
307
+ flex-flow: row nowrap;
308
+ align-items: center;
309
+ justify-content: flex-end;
310
+ width: 0;
311
+ transition: all 0.24s cubic-bezier(0.14, 0.69, 0.87, 0.54);
312
+ }
313
+
314
+ .extra:hover .buttons-container .menu-container .btn {
315
+ animation: slideIn 0.24s ease-in forwards;
316
+ pointer-events: none;
317
+ }
318
+
319
+ .extra:hover .buttons-container .menu-container .btn {
320
+ animation-delay: 0.24s;
321
+ }
322
+
323
+ .extra:hover .buttons-container .menu-container:hover .btn {
324
+ animation-delay: 0.04s;
325
+ }
326
+
327
+ .extra.forced:hover .buttons-container .menu-container .btn {
328
+ animation: none;
329
+ pointer-events: all;
330
+ }
331
+
332
+ .extra.forced .buttons-container .btn {
333
+ opacity: 1 !important;
334
+ }
335
+
336
+ .extra.forced .info {
337
+ opacity: 0 !important;
338
+ }
339
+
340
+ .extra:hover .info {
341
+ opacity: 0 !important;
342
+ z-index: 0 !important;
343
+ }
344
+
345
+ .extra .buttons-container .btn {
346
+ border: none;
347
+ background: transparent;
348
+ position: relative;
349
+ top: 0;
350
+ opacity: 0;
351
+ cursor: pointer;
352
+ height: 20px;
353
+ width: 10px;
354
+ margin-left: 4px;
355
+ margin-right: 4px;
356
+ padding: 0;
357
+ }
358
+
359
+ .extra .buttons-container .menu-container:last-child .btn {
360
+ margin-right: 0;
361
+ }
362
+
363
+ .extra .buttons-container .btn svg path {
364
+ fill: #809AB4;
365
+ }
366
+
367
+ .extra .buttons-container .btn:hover svg path {
368
+ fill: #274768;
369
+ }
370
+
371
+ .extra .buttons-container .menu-container .btn:hover::after {
372
+ content: attr(data-content);
373
+ position: absolute;
374
+ top: -22px;
375
+ height: 16px;
376
+ left: 50%;
377
+ transform: translateX(-50%);
378
+ border-radius: 8px;
379
+ background: #274768;
380
+ color: white;
381
+ display: flex;
382
+ flex-flow: row wrap;
383
+ align-items: center;
384
+ text-transform: capitalize;
385
+ white-space: nowrap;
386
+ padding: 0 12px;
387
+ font-size: 12px;
388
+ line-height: 0;
389
+ }
390
+
391
+ .extra .buttons-container .btn:focus, .extra .buttons-container .btn:focus-within {
392
+ border: none;
393
+ outline: none;
394
+ }
395
+
396
+ .extra .buttons-container .menu-container .btn:hover::before {
397
+ content: "";
398
+ display: block;
399
+ border-color: #274768 transparent transparent transparent;
400
+ border-style: solid;
401
+ border-width: 4px;
402
+ position: absolute;
403
+ top: -6px;
404
+ }
405
+
406
+ @keyframes slideIn {
407
+ 0% {
408
+ top: 12px;
409
+ pointer-events: none;
410
+ }
411
+ 100% {
412
+ top: 0;
413
+ opacity: 1;
414
+ pointer-events: all;
415
+ }
416
+ }
417
+ .menu-container {
418
+ position: relative;
419
+ display: flex;
420
+ align-items: center;
421
+ height: 100%;
422
+ }
423
+
424
+ .menu {
425
+ display: block;
426
+ position: absolute;
427
+ top: 20px;
428
+ right: 0;
429
+ z-index: 2;
430
+ background: #fff;
431
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
432
+ border-radius: 8px;
433
+ padding: 8px;
434
+ }
435
+
436
+ .menu .input-container {
437
+ background: #EDF2F7;
438
+ border-radius: 4px;
439
+ display: flex;
440
+ flex-flow: row nowrap;
441
+ align-items: center;
442
+ justify-content: flex-start;
443
+ height: 32px;
444
+ margin-bottom: 4px;
445
+ padding: 0 4px;
446
+ }
447
+
448
+ .menu .input-container:hover {
449
+ box-shadow: 0 0 0 3px rgba(40, 151, 255, 0.2);
450
+ }
451
+
452
+ .menu .input-container:focus-within {
453
+ box-shadow: 0 0 0 3px rgba(40, 151, 255, 0.2), 0 0 0 1px #2897ff;
454
+ }
455
+
456
+ .menu .input-container input {
457
+ background: transparent;
458
+ border: none;
459
+ flex-grow: 1;
460
+ height: 100%;
461
+ }
462
+
463
+ .menu .input-container input:focus {
464
+ background: transparent;
465
+ border: none;
466
+ outline: none;
467
+ }
468
+
469
+ .menu-trigger:focus .menu {
470
+ display: block;
471
+ }
472
+
473
+ .menu-container .item {
474
+ height: 22px;
475
+ width: 100%;
476
+ background: transparent;
477
+ border-radius: 4px;
478
+ font-size: 14px;
479
+ color: #274768;
480
+ display: flex;
481
+ flex-flow: row nowrap;
482
+ align-items: center;
483
+ justify-content: flex-start;
484
+ box-shadow: none;
485
+ border: none;
486
+ }
487
+
488
+ .menu-container .item:hover {
489
+ background: #F5F9FD;
490
+ font-weight: 500;
491
+ border-radius: 4px;
492
+ }
493
+
494
+ span {
495
+ position: relative;
496
+ z-index: 1;
497
+ }
498
+
499
+ span.date {
500
+ margin-right: 1px;
501
+ }
502
+
503
+ span.time {
504
+ margin-left: 1px;
505
+ }
506
+
507
+ span.measure {
508
+ display: inline-block;
509
+ margin-right: 1px;
510
+ }
511
+
512
+ span.unit {
513
+ margin-left: 1px;
514
+ display: inline-block;
515
+ }
516
+
517
+ span[data-content]:hover::after {
518
+ position: absolute;
519
+ content: attr(data-content);
520
+ background: #274768;
521
+ color: #FFFFFF;
522
+ font-size: 9px;
523
+ top: -10px;
524
+ left: 0px;
525
+ padding: 0px 2px;
526
+ }
527
+
528
+ span[data-content]::before {
529
+ position: absolute;
530
+ content: "";
531
+ top: 0;
532
+ left: 0;
533
+ width: 100%;
534
+ height: 100%;
535
+ z-index: -1;
536
+ opacity: 0.3;
537
+ }
538
+
539
+ .masked {
540
+ display: none;
541
+ }
542
+
543
+ .companion {
544
+ position: absolute;
545
+ width: 15px;
546
+ background-color: #00c4ff;
547
+ color: white;
548
+ z-index: 20;
549
+ padding: 0;
550
+ text-align: center;
551
+ font-size: 14px;
552
+ font-weight: 500;
553
+ display: flex;
554
+ align-items: center;
555
+ justify-content: center;
556
+ cursor: pointer;
557
+ border-radius: 0 2px 2px 0;
558
+ }
559
+
560
+ .companion:hover {
561
+ font-weight: 700;
562
+ background: #00a2ff;
563
+ }
564
+
565
+ *::selection {
566
+ background-color: rgba(0, 196, 255, 0.2);
567
+ }
568
+
569
+ .suggestion-palette {
570
+ position: absolute;
571
+ z-index: 20;
572
+ max-width: 380px;
573
+ font-size: 11px;
574
+ overflow: hidden;
575
+ text-overflow: ellipsis;
576
+ padding: 4px;
577
+ border: none;
578
+ border-radius: 8px;
579
+ background: white;
580
+ box-shadow: 0 1.1px 1.1px rgba(0, 0, 0, 0.022), 0 2.7px 2.7px rgba(0, 0, 0, 0.032), 0 5px 5px rgba(0, 0, 0, 0.04), 0 8.9px 8.9px rgba(0, 0, 0, 0.048), 0 16.7px 16.7px rgba(0, 0, 0, 0.058), 0 40px 40px rgba(0, 0, 0, 0.08);
581
+ }
582
+
583
+ .suggestion-palette ul {
584
+ white-space: nowrap;
585
+ list-style-type: none;
586
+ margin: 0;
587
+ padding: 0;
588
+ }
589
+
590
+ .suggestion-palette ul li {
591
+ padding: 0 8px;
592
+ font-size: 11px;
593
+ height: 20px;
594
+ box-sizing: border-box;
595
+ display: flex;
596
+ align-items: center;
597
+ justify-content: space-between;
598
+ border-radius: 4px;
599
+ color: #274768;
600
+ }
601
+
602
+ .suggestion-palette ul li svg {
603
+ height: 12px;
604
+ width: 12px;
605
+ border-radius: 4px;
606
+ transform-origin: center center;
607
+ }
608
+
609
+ .suggestion-palette ul li svg path {
610
+ fill: #809ab4;
611
+ }
612
+
613
+ .suggestion-palette ul li:not(:first-child) svg.tab-icn, .suggestion-palette ul li:not(.focused) svg.return-icn, .suggestion-palette ul.focused li:first-child svg.tab-icn {
614
+ height: 0;
615
+ width: 0;
616
+ transform: scale(0);
617
+ opacity: 0;
618
+ }
619
+
620
+ .suggestion-palette ul li.focused {
621
+ background-color: #edf2f7;
622
+ }
623
+
624
+ .suggestion-palette ul li.focused svg.return-icn {
625
+ animation: growIn 0.24s ease-in forwards;
626
+ }
627
+
628
+ @keyframes growIn {
629
+ 0% {
630
+ transform: scale(0.5);
631
+ }
632
+ 90% {
633
+ transform: scale(1.1);
634
+ }
635
+ 100% {
636
+ transform: scale(1);
637
+ }
638
+ }
639
+ span.code-count-1::after, span.code-count-1::before {
640
+ background: var(--bg-code-color-1);
641
+ color: var(--text-code-color-1);
642
+ }
643
+
644
+ span.code-count-2::after, span.code-count-2::before {
645
+ background: var(--bg-code-color-1);
646
+ color: var(--text-code-color-1);
647
+ /* STRIPES */
648
+ /*background: repeating-linear-gradient(*/
649
+ /* 45deg,*/
650
+ /* var(--bg-code-color-1),*/
651
+ /* var(--bg-code-color-1) 10px,*/
652
+ /* var(--bg-code-color-2) 10px,*/
653
+ /* var(--bg-code-color-2) 20px*/
654
+ /*);*/
655
+ /* PAS STRIPES */
656
+ background: linear-gradient(90deg, var(--bg-code-color-1) 0%, var(--bg-code-color-2) 100%);
657
+ }
658
+
659
+ span.code-count-3::after, span.code-count-3::before {
660
+ background: var(--bg-code-color-1);
661
+ color: var(--text-code-color-1);
662
+ /* STRIPES */
663
+ background: repeating-linear-gradient(45deg, var(--bg-code-color-1), var(--bg-code-color-1) 10px, var(--bg-code-color-2) 10px, var(--bg-code-color-2) 20px);
664
+ /* PAS STRIPES */
665
+ /* background: linear-gradient(90deg, var(--bg-code-color-1) 0%, var(--bg-code-color-2) 100%);*/
666
+ }`;
42
667
  // @ts-ignore
43
- const kendo_scss_1 = __importDefault(require("./styles/kendo.scss"));
668
+ const kendoCss = lit_element_2.css `.iqr-text-field {
669
+ position: relative;
670
+ padding-top: 1.4em;
671
+ display: inline-flex;
672
+ width: 100%;
673
+ flex-direction: column;
674
+ justify-content: stretch;
675
+ }
676
+ .iqr-text-field > .iqr-label {
677
+ z-index: 1;
678
+ pointer-events: none;
679
+ position: absolute;
680
+ line-height: 1.4em;
681
+ cursor: text;
682
+ font-size: 14px;
683
+ top: calc( 1.4em + 5px );
684
+ left: 9px;
685
+ transition: transform 0.2s ease-out, color 0.2s ease-out;
686
+ color: #656565;
687
+ display: flex;
688
+ align-items: center;
689
+ height: 28px;
690
+ max-width: 55%;
691
+ min-width: 0;
692
+ }
693
+ .iqr-text-field > .iqr-label > span {
694
+ display: block;
695
+ white-space: nowrap;
696
+ text-overflow: ellipsis;
697
+ overflow: hidden;
698
+ padding-right: 8px;
699
+ }
700
+ .iqr-text-field > .iqr-input {
701
+ flex: 1 1 auto;
702
+ width: auto;
703
+ }
704
+ .iqr-text-field > .iqr-label {
705
+ transform: translate(0, 0) scale(1);
706
+ }
707
+ .iqr-text-field > .iqr-label.above, .iqr-text-field.has-content > .iqr-label, .iqr-text-field:focus > .iqr-label, .iqr-text-field:focus-within > .iqr-label {
708
+ transform: translate(-8px, -4px) translate(-1px, -1.4em) translate(0%, 0%) scale(1);
709
+ font-weight: 500;
710
+ height: 1.4em;
711
+ max-width: 100%;
712
+ }
713
+ .iqr-text-field .iqr-input, .iqr-text-field .input-container {
714
+ border-radius: 2px;
715
+ padding: 4px 8px;
716
+ width: 100%;
717
+ box-sizing: border-box;
718
+ border-width: 1px;
719
+ border-style: solid;
720
+ outline: 0;
721
+ font: inherit;
722
+ font-size: 14px;
723
+ line-height: 1.4em;
724
+ display: inline-flex;
725
+ align-items: center;
726
+ vertical-align: middle;
727
+ position: relative;
728
+ -webkit-appearance: none;
729
+ background-color: #ffffff;
730
+ border-color: rgba(0, 0, 0, 0.08);
731
+ color: #656565;
732
+ box-sizing: border-box;
733
+ }
734
+ .iqr-text-field .iqr-input:focus, .iqr-text-field .iqr-input:focus-within, .iqr-text-field .input-container:focus, .iqr-text-field .input-container:focus-within {
735
+ box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);
736
+ }
737
+ .iqr-text-field .iqr-input:hover, .iqr-text-field .input-container:hover {
738
+ border-color: rgba(0, 0, 0, 0.15);
739
+ box-shadow: none;
740
+ }
741
+ .iqr-text-field .iqr-input:hover:focus, .iqr-text-field .iqr-input:hover:focus-within, .iqr-text-field .input-container:hover:focus, .iqr-text-field .input-container:hover:focus-within {
742
+ box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);
743
+ }
744
+ .iqr-text-field .iqr-input .ProseMirror, .iqr-text-field .input-container .ProseMirror {
745
+ padding: 0;
746
+ font-size: 14px;
747
+ line-height: 1.4em;
748
+ color: #656565;
749
+ }
750
+ .iqr-text-field .iqr-input .ProseMirror .date, .iqr-text-field .input-container .ProseMirror .date {
751
+ padding: 1px;
752
+ }
753
+ .iqr-text-field .iqr-input .ProseMirror .time, .iqr-text-field .input-container .ProseMirror .time {
754
+ padding: 1px;
755
+ }
756
+ .iqr-text-field .iqr-input .ProseMirror:focus .focused, .iqr-text-field .input-container .ProseMirror:focus .focused {
757
+ background-color: rgba(0, 0, 0, 0.05);
758
+ border-radius: 3px;
759
+ border-color: rgba(0, 0, 0, 0.1);
760
+ }
761
+ .iqr-text-field .iqr-input > svg, .iqr-text-field .input-container > svg {
762
+ opacity: 0.5;
763
+ }
764
+ .iqr-text-field .iqr-input > svg path, .iqr-text-field .input-container > svg path {
765
+ fill: #656565;
766
+ }
767
+ .iqr-text-field .iqr-input .extra, .iqr-text-field .input-container .extra {
768
+ height: 20px;
769
+ }
770
+ .iqr-text-field .iqr-input .extra > .info, .iqr-text-field .input-container .extra > .info {
771
+ color: #656565;
772
+ opacity: 0.5;
773
+ }
774
+ .iqr-text-field .iqr-input .extra .buttons-container .btn svg path, .iqr-text-field .input-container .extra .buttons-container .btn svg path {
775
+ fill: #656565;
776
+ opacity: 0.5;
777
+ }
778
+ .iqr-text-field .iqr-input .extra .buttons-container .btn svg path:hover, .iqr-text-field .input-container .extra .buttons-container .btn svg path:hover {
779
+ fill: #656565;
780
+ opacity: 1;
781
+ }
782
+ .iqr-text-field .iqr-input .extra .buttons-container .menu-container .btn:hover::after, .iqr-text-field .input-container .extra .buttons-container .menu-container .btn:hover::after {
783
+ background: #656565;
784
+ border-radius: 2px;
785
+ }
786
+ .iqr-text-field .iqr-input .extra .buttons-container .menu-container .btn:hover::before, .iqr-text-field .input-container .extra .buttons-container .menu-container .btn:hover::before {
787
+ border-color: #656565 transparent transparent transparent;
788
+ }`;
44
789
  const mask_plugin_1 = require("./plugin/mask-plugin");
45
790
  const has_content_class_plugin_1 = require("./plugin/has-content-class-plugin");
46
791
  const regexp_plugin_1 = require("./plugin/regexp-plugin");
@@ -79,7 +824,7 @@ class IqrTextField extends lit_element_1.LitElement {
79
824
  this.windowListeners.forEach(wl => window.removeEventListener(wl[0], wl[1]));
80
825
  }
81
826
  static get styles() {
82
- return [style_scss_1.default, kendo_scss_1.default];
827
+ return [baseCss, kendoCss];
83
828
  }
84
829
  render() {
85
830
  return lit_element_1.html `
@@ -150,7 +895,6 @@ class IqrTextField extends lit_element_1.LitElement {
150
895
  }
151
896
  mouseDown() {
152
897
  this.mouseCount++;
153
- console.log(this.mouseCount);
154
898
  }
155
899
  mouseUp() {
156
900
  var _a, _b, _c, _d, _e, _f, _g;
@@ -316,15 +1060,15 @@ __decorate([
316
1060
  __metadata("design:type", String)
317
1061
  ], IqrTextField.prototype, "owner", void 0);
318
1062
  __decorate([
319
- lit_element_1.property(),
1063
+ lit_element_1.property({ type: Boolean }),
320
1064
  __metadata("design:type", Boolean)
321
1065
  ], IqrTextField.prototype, "displayOwnerMenu", void 0);
322
1066
  __decorate([
323
- lit_element_1.property(),
1067
+ lit_element_1.property({ type: Boolean }),
324
1068
  __metadata("design:type", Boolean)
325
1069
  ], IqrTextField.prototype, "suggestions", void 0);
326
1070
  __decorate([
327
- lit_element_1.property(),
1071
+ lit_element_1.property({ type: Boolean }),
328
1072
  __metadata("design:type", Boolean)
329
1073
  ], IqrTextField.prototype, "links", void 0);
330
1074
  __decorate([