@icure/form 1.1.24 → 1.1.26

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 (51) hide show
  1. package/.yarn/cache/{prosemirror-view-npm-1.34.2-c94b518ce1-5895d76c3f.zip → prosemirror-view-npm-1.34.3-c79b7cffaa-622a9e4061.zip} +0 -0
  2. package/.yarn/install-state.gz +0 -0
  3. package/components/common/metadata-buttons-bar.js +16 -5
  4. package/components/common/metadata-buttons-bar.js.map +1 -1
  5. package/components/common/utils.js +1 -1
  6. package/components/common/utils.js.map +1 -1
  7. package/components/icure-button/index.d.ts +13 -0
  8. package/components/icure-button/index.js +1106 -0
  9. package/components/icure-button/index.js.map +1 -0
  10. package/components/icure-button-group/index.js +16 -5
  11. package/components/icure-button-group/index.js.map +1 -1
  12. package/components/icure-date-picker/index.js +16 -5
  13. package/components/icure-date-picker/index.js.map +1 -1
  14. package/components/icure-dropdown-field/index.js +16 -6
  15. package/components/icure-dropdown-field/index.js.map +1 -1
  16. package/components/icure-form/fields/button/button.d.ts +13 -0
  17. package/components/icure-form/fields/button/button.js +74 -0
  18. package/components/icure-form/fields/button/button.js.map +1 -0
  19. package/components/icure-form/fields/button/index.d.ts +1 -0
  20. package/components/icure-form/fields/button/index.js +18 -0
  21. package/components/icure-form/fields/button/index.js.map +1 -0
  22. package/components/icure-form/fields/index.d.ts +1 -0
  23. package/components/icure-form/fields/index.js +1 -0
  24. package/components/icure-form/fields/index.js.map +1 -1
  25. package/components/icure-form/fields/label/label.d.ts +2 -0
  26. package/components/icure-form/fields/label/label.js +17 -1
  27. package/components/icure-form/fields/label/label.js.map +1 -1
  28. package/components/icure-form/index.d.ts +1 -0
  29. package/components/icure-form/index.js +22 -6
  30. package/components/icure-form/index.js.map +1 -1
  31. package/components/icure-form/renderer/form/form.js +27 -5
  32. package/components/icure-form/renderer/form/form.js.map +1 -1
  33. package/components/icure-form/renderer/index.d.ts +1 -1
  34. package/components/icure-form/renderer/index.js.map +1 -1
  35. package/components/icure-label/index.d.ts +2 -0
  36. package/components/icure-label/index.js +28 -7
  37. package/components/icure-label/index.js.map +1 -1
  38. package/components/icure-text-field/index.js +16 -5
  39. package/components/icure-text-field/index.js.map +1 -1
  40. package/components/model/index.d.ts +15 -7
  41. package/components/model/index.js +18 -13
  42. package/components/model/index.js.map +1 -1
  43. package/components/themes/default/index.js +3 -0
  44. package/components/themes/default/index.js.map +1 -1
  45. package/components/themes/icure-blue/index.js +29 -2
  46. package/components/themes/icure-blue/index.js.map +1 -1
  47. package/components/themes/kendo/index.js +20 -1
  48. package/components/themes/kendo/index.js.map +1 -1
  49. package/conversion/icure-convert.js +1 -1
  50. package/conversion/icure-convert.js.map +1 -1
  51. package/package.json +1 -1
@@ -0,0 +1,1106 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.IcureButton = void 0;
13
+ const lit_1 = require("lit");
14
+ const decorators_js_1 = require("lit/decorators.js");
15
+ // @ts-ignore
16
+ const lit_2 = require("lit");
17
+ const baseCss = (0, lit_2.css) `@charset "UTF-8";
18
+ :host {
19
+ --bg-color-1: #f44336;
20
+ }
21
+
22
+ .ProseMirror {
23
+ position: relative;
24
+ width: 100%;
25
+ word-wrap: break-word;
26
+ white-space: pre-wrap;
27
+ -webkit-font-variant-ligatures: none;
28
+ font-variant-ligatures: none;
29
+ font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
30
+ padding: 6px 8px 2px 8px;
31
+ line-height: 1.2;
32
+ color: #274768;
33
+ font-size: 14px;
34
+ font-weight: 400;
35
+ outline: none;
36
+ }
37
+ .ProseMirror p:last-child,
38
+ .ProseMirror h1:last-child,
39
+ .ProseMirror h2:last-child,
40
+ .ProseMirror h3:last-child,
41
+ .ProseMirror h4:last-child,
42
+ .ProseMirror h5:last-child,
43
+ .ProseMirror h6:last-child {
44
+ margin-bottom: 2px;
45
+ }
46
+ .ProseMirror p {
47
+ margin-bottom: 1em;
48
+ }
49
+ .ProseMirror pre {
50
+ white-space: pre-wrap;
51
+ }
52
+ .ProseMirror li {
53
+ position: relative;
54
+ }
55
+ .ProseMirror ul,
56
+ .ProseMirror ol {
57
+ padding-left: 30px;
58
+ }
59
+ .ProseMirror blockquote {
60
+ padding-left: 1em;
61
+ border-left: 3px solid #eee;
62
+ margin-left: 0;
63
+ margin-right: 0;
64
+ }
65
+
66
+ .ProseMirror-hideselection {
67
+ caret-color: transparent;
68
+ }
69
+ .ProseMirror-hideselection *::selection {
70
+ background: transparent;
71
+ }
72
+ .ProseMirror-hideselection *::-moz-selection {
73
+ background: transparent;
74
+ }
75
+
76
+ .ProseMirror-selectednode {
77
+ outline: 2px solid #8cf;
78
+ }
79
+
80
+ /* Make sure li selections wrap around markers */
81
+ li.ProseMirror-selectednode {
82
+ outline: none;
83
+ }
84
+ li.ProseMirror-selectednode :after {
85
+ content: "";
86
+ position: absolute;
87
+ left: -32px;
88
+ right: -2px;
89
+ top: -2px;
90
+ bottom: -2px;
91
+ border: 2px solid #8cf;
92
+ pointer-events: none;
93
+ }
94
+
95
+ .ProseMirror-gapcursor {
96
+ display: none;
97
+ pointer-events: none;
98
+ position: absolute;
99
+ }
100
+ .ProseMirror-gapcursor:after {
101
+ content: "";
102
+ display: block;
103
+ position: absolute;
104
+ top: -2px;
105
+ width: 20px;
106
+ border-top: 1px solid black;
107
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
108
+ }
109
+
110
+ @keyframes ProseMirror-cursor-blink {
111
+ to {
112
+ visibility: hidden;
113
+ }
114
+ }
115
+ .ProseMirror-focused .ProseMirror-gapcursor {
116
+ display: block;
117
+ }
118
+
119
+ /* Add space around the hr to make clicking it easier */
120
+ .ProseMirror-example-setup-style hr {
121
+ padding: 2px 10px;
122
+ border: none;
123
+ margin: 1em 0;
124
+ }
125
+ .ProseMirror-example-setup-style hr:after {
126
+ content: "";
127
+ display: block;
128
+ height: 1px;
129
+ background: silver;
130
+ line-height: 2px;
131
+ }
132
+
133
+ .ProseMirror-example-setup-style img {
134
+ cursor: default;
135
+ }
136
+
137
+ .ProseMirror-prompt {
138
+ background: white;
139
+ padding: 5px 10px 5px 15px;
140
+ border: 1px solid silver;
141
+ position: fixed;
142
+ border-radius: 3px;
143
+ z-index: 11;
144
+ box-shadow: -0.5px 2px 5px rgba(0, 0, 0, 0.2);
145
+ }
146
+ .ProseMirror-prompt h5 {
147
+ margin: 0;
148
+ font-weight: normal;
149
+ font-size: 100%;
150
+ color: #444;
151
+ }
152
+ .ProseMirror-prompt input[type=text],
153
+ .ProseMirror-prompt textarea {
154
+ background: #eee;
155
+ border: none;
156
+ outline: none;
157
+ }
158
+ .ProseMirror-prompt input[type=text] {
159
+ padding: 0 4px;
160
+ }
161
+
162
+ .ProseMirror-prompt-close {
163
+ position: absolute;
164
+ left: 2px;
165
+ top: 1px;
166
+ color: #666;
167
+ border: none;
168
+ background: transparent;
169
+ padding: 0;
170
+ }
171
+ .ProseMirror-prompt-close:after {
172
+ content: "✕";
173
+ font-size: 12px;
174
+ }
175
+
176
+ .ProseMirror-invalid {
177
+ background: #ffc;
178
+ border: 1px solid #cc7;
179
+ border-radius: 4px;
180
+ padding: 5px 10px;
181
+ position: absolute;
182
+ min-width: 10em;
183
+ }
184
+
185
+ .ProseMirror-prompt-buttons {
186
+ margin-top: 5px;
187
+ display: none;
188
+ }
189
+
190
+ #editor,
191
+ .editor {
192
+ color: rgb(101, 101, 101);
193
+ background-clip: padding-box;
194
+ border-radius: 4px;
195
+ border: 2px solid rgba(0, 0, 0, 0.2);
196
+ padding: 5px 0;
197
+ display: flex;
198
+ align-items: flex-end;
199
+ }
200
+
201
+ .icure-input {
202
+ background: #edf2f7;
203
+ border-radius: 8px;
204
+ border: none;
205
+ min-height: 28px;
206
+ height: auto;
207
+ display: flex;
208
+ flex-flow: row nowrap;
209
+ align-items: flex-start;
210
+ justify-content: space-between;
211
+ }
212
+
213
+ #editor {
214
+ background: transparent;
215
+ border: none;
216
+ padding: 0;
217
+ flex-grow: 1;
218
+ display: flex;
219
+ align-items: stretch;
220
+ }
221
+ #editor.tokens-list .ProseMirror, #editor.styled-tokens-list .ProseMirror {
222
+ display: flex;
223
+ flex-direction: row;
224
+ flex-wrap: wrap;
225
+ align-items: flex-start;
226
+ }
227
+ #editor.tokens-list .ProseMirror li, #editor.styled-tokens-list .ProseMirror li {
228
+ display: flex;
229
+ flex-direction: row;
230
+ border-radius: 8px;
231
+ padding: 2px 4px;
232
+ margin-right: 2px;
233
+ background-color: #dadada;
234
+ border-color: rgba(42, 61, 108, 0.44);
235
+ min-height: 20px;
236
+ }
237
+ #editor.tokens-list .ProseMirror li span, #editor.styled-tokens-list .ProseMirror li span {
238
+ display: inline-block;
239
+ min-height: 18px;
240
+ }
241
+ #editor.tokens-list .ProseMirror li span br, #editor.styled-tokens-list .ProseMirror li span br {
242
+ display: none;
243
+ }
244
+ #editor.items-list .ProseMirror {
245
+ display: flex;
246
+ flex-direction: column;
247
+ flex-wrap: nowrap;
248
+ align-items: flex-start;
249
+ gap: 6px;
250
+ }
251
+ #editor.items-list .ProseMirror li {
252
+ list-style-type: none;
253
+ width: 100%;
254
+ padding-bottom: 4px;
255
+ border-bottom: 1px dotted rgba(128, 128, 128, 0.5098039216);
256
+ }
257
+ #editor.items-list .ProseMirror li:last-child {
258
+ border-bottom: none;
259
+ }
260
+
261
+ #content {
262
+ position: relative;
263
+ padding: 0;
264
+ }
265
+
266
+ * {
267
+ font-family: "Roboto", Helvetica, sans-serif;
268
+ }
269
+
270
+ p {
271
+ margin-top: 0;
272
+ }
273
+
274
+ h3 {
275
+ color: #274768;
276
+ margin-top: 0;
277
+ }
278
+
279
+ .icure-input-metadata-container {
280
+ display: flex;
281
+ }
282
+ .icure-input-metadata-container .icure-metadata-container {
283
+ display: flex;
284
+ flex-grow: 1;
285
+ padding: 0 4px;
286
+ border: 1px solid #DDE3E7;
287
+ border-left: none;
288
+ border-radius: 0 6px 6px 0;
289
+ outline: 0;
290
+ box-sizing: border-box;
291
+ }
292
+ .icure-input-metadata-container .icure-metadata-container__validationError {
293
+ border-color: red;
294
+ }
295
+
296
+ .extra {
297
+ min-width: 20px;
298
+ width: auto;
299
+ height: 20px;
300
+ transition: all 0.24s cubic-bezier(0.42, 0.01, 1, 0.62);
301
+ }
302
+ .extra:hover .info {
303
+ display: none;
304
+ }
305
+ .extra:hover .buttons-container .menu-container .btn {
306
+ animation: slideIn 0.24s ease-in forwards;
307
+ pointer-events: none;
308
+ display: unset !important;
309
+ }
310
+ .extra.forced .info, .extra.forced .extra .info.hidden {
311
+ opacity: 0 !important;
312
+ z-index: 0 !important;
313
+ display: none;
314
+ }
315
+ .extra.forced .buttons-container .btn {
316
+ opacity: 1 !important;
317
+ display: unset !important;
318
+ }
319
+ .extra.forced:hover .buttons-container .menu-container .btn {
320
+ animation: none;
321
+ pointer-events: all;
322
+ }
323
+ .extra--metadataButtonsBar {
324
+ height: 100%;
325
+ display: flex;
326
+ align-items: center;
327
+ padding: 0 4px;
328
+ }
329
+ .extra .info {
330
+ color: #809ab4;
331
+ font-size: 15px;
332
+ width: 100%;
333
+ height: auto;
334
+ overflow: hidden;
335
+ pointer-events: none;
336
+ text-align: center;
337
+ }
338
+ .extra .info span {
339
+ font-weight: 700;
340
+ }
341
+ .extra .info.hidden {
342
+ display: none;
343
+ }
344
+ .extra .buttons-container {
345
+ display: flex;
346
+ height: 20px;
347
+ width: auto;
348
+ flex-flow: row nowrap;
349
+ align-items: center;
350
+ justify-content: flex-end;
351
+ transition: all 0.24s cubic-bezier(0.14, 0.69, 0.87, 0.54);
352
+ z-index: 1000;
353
+ }
354
+ .extra .buttons-container .btn {
355
+ border: none;
356
+ background: transparent;
357
+ position: relative;
358
+ top: 0;
359
+ display: none;
360
+ opacity: 0;
361
+ cursor: pointer;
362
+ height: 20px;
363
+ margin-left: 4px;
364
+ margin-right: 4px;
365
+ padding: 0;
366
+ }
367
+ .extra .buttons-container .btn svg {
368
+ width: 15px;
369
+ height: 15px;
370
+ }
371
+ .extra .buttons-container .btn svg path {
372
+ fill: #809ab4;
373
+ }
374
+ .extra .buttons-container .btn.forced {
375
+ opacity: 1 !important;
376
+ display: unset !important;
377
+ }
378
+ .extra .buttons-container .btn.forced svg path {
379
+ fill: crimson !important;
380
+ }
381
+ .extra .buttons-container .btn:focus, .extra .buttons-container .btn:focus-within {
382
+ border: none;
383
+ outline: none;
384
+ }
385
+ .extra .buttons-container .btn:hover svg path {
386
+ fill: #274768;
387
+ }
388
+ .extra .buttons-container .menu-container .btn:hover::before {
389
+ content: "";
390
+ display: block;
391
+ border-color: #274768 transparent transparent transparent;
392
+ border-style: solid;
393
+ border-width: 4px;
394
+ position: absolute;
395
+ top: -6px;
396
+ }
397
+ .extra .buttons-container .menu-container .btn:hover::after {
398
+ content: attr(data-content);
399
+ position: absolute;
400
+ top: -21px;
401
+ height: 16px;
402
+ left: 50%;
403
+ transform: translateX(-50%);
404
+ border-radius: 8px;
405
+ background: #274768;
406
+ color: white;
407
+ display: flex;
408
+ flex-flow: row wrap;
409
+ align-items: center;
410
+ text-transform: capitalize;
411
+ white-space: nowrap;
412
+ padding: 0 12px;
413
+ font-size: 12px;
414
+ line-height: 0;
415
+ }
416
+ .extra .buttons-container .menu-container:last-child .btn {
417
+ margin-right: 0;
418
+ }
419
+
420
+ @keyframes slideIn {
421
+ 0% {
422
+ top: 0;
423
+ opacity: 0;
424
+ pointer-events: none;
425
+ }
426
+ 100% {
427
+ top: 0;
428
+ opacity: 1;
429
+ pointer-events: all;
430
+ }
431
+ }
432
+ .menu-container {
433
+ display: flex;
434
+ align-items: center;
435
+ height: fit-content;
436
+ }
437
+ .menu-container .item {
438
+ height: 30px;
439
+ width: 100%;
440
+ background: transparent;
441
+ border-radius: 4px;
442
+ font-size: 14px;
443
+ color: #274768;
444
+ display: flex;
445
+ flex-flow: row nowrap;
446
+ align-items: center;
447
+ justify-content: flex-start;
448
+ box-shadow: none;
449
+ border: none;
450
+ white-space: nowrap;
451
+ overflow-x: hidden;
452
+ text-overflow: ellipsis;
453
+ }
454
+ .menu-container .item.existing {
455
+ background-color: #BFE8EA;
456
+ }
457
+ .menu-container .item.selected {
458
+ color: white;
459
+ background-color: #084B83;
460
+ }
461
+ .menu-container .item:hover {
462
+ background: #DCE7F2;
463
+ color: #274768;
464
+ font-weight: 500;
465
+ border-radius: 4px;
466
+ }
467
+
468
+ .value-date-menu {
469
+ width: unset !important;
470
+ }
471
+
472
+ .menu {
473
+ display: flex;
474
+ flex-direction: column;
475
+ gap: 2px;
476
+ position: absolute;
477
+ top: 32px;
478
+ right: -12px;
479
+ z-index: 2;
480
+ background: #fff;
481
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
482
+ border-radius: 8px;
483
+ padding: 8px;
484
+ width: 220px;
485
+ min-height: 120px;
486
+ max-height: 320px;
487
+ overflow-y: scroll;
488
+ }
489
+ .menu .input-container {
490
+ background: #edf2f7;
491
+ border-radius: 4px;
492
+ display: flex;
493
+ flex-flow: row nowrap;
494
+ align-items: center;
495
+ justify-content: flex-start;
496
+ height: 32px;
497
+ margin-bottom: 4px;
498
+ padding: 0 4px;
499
+ }
500
+ .menu .input-container:hover {
501
+ box-shadow: 0 0 0 3px rgba(40, 151, 255, 0.2);
502
+ }
503
+ .menu .input-container:focus-within {
504
+ box-shadow: 0 0 0 3px rgba(40, 151, 255, 0.2), 0 0 0 1px rgb(40, 151, 255);
505
+ }
506
+ .menu .input-container input {
507
+ background: transparent;
508
+ border: none;
509
+ flex-grow: 1;
510
+ height: 100%;
511
+ }
512
+ .menu .input-container input:focus {
513
+ background: transparent;
514
+ border: none;
515
+ outline: none;
516
+ }
517
+
518
+ .menu-trigger:focus .menu {
519
+ display: flex;
520
+ }
521
+
522
+ span {
523
+ position: relative;
524
+ z-index: 1;
525
+ }
526
+ span.date {
527
+ margin-right: 1px;
528
+ }
529
+ span.time {
530
+ margin-left: 1px;
531
+ }
532
+ span.measure {
533
+ display: inline-block;
534
+ margin-right: 1px;
535
+ }
536
+ span.unit {
537
+ margin-left: 1px;
538
+ display: inline-block;
539
+ }
540
+ span[data-content]:hover::after {
541
+ position: absolute;
542
+ content: attr(data-content);
543
+ background: #274768;
544
+ color: #ffffff;
545
+ font-size: 9px;
546
+ line-height: 12px;
547
+ top: -12px;
548
+ left: 0px;
549
+ padding: 0px 2px;
550
+ }
551
+ span[data-content]::before {
552
+ position: absolute;
553
+ content: "";
554
+ top: 0;
555
+ left: 0;
556
+ width: 100%;
557
+ height: 100%;
558
+ z-index: -1;
559
+ opacity: 0.3;
560
+ }
561
+
562
+ .masked {
563
+ display: none;
564
+ }
565
+
566
+ .companion {
567
+ position: absolute;
568
+ width: 15px;
569
+ background-color: hsl(194, 100%, 50%);
570
+ color: white;
571
+ z-index: 20;
572
+ padding: 0;
573
+ text-align: center;
574
+ font-size: 14px;
575
+ font-weight: 500;
576
+ display: flex;
577
+ align-items: center;
578
+ justify-content: center;
579
+ cursor: pointer;
580
+ border-radius: 0 2px 2px 0;
581
+ }
582
+ .companion:hover {
583
+ font-weight: 700;
584
+ background: hsl(202, 100%, 50%);
585
+ }
586
+
587
+ *::selection {
588
+ background-color: hsla(194, 100%, 50%, 0.2);
589
+ }
590
+
591
+ .suggestion-palette {
592
+ position: absolute;
593
+ z-index: 20;
594
+ max-width: 380px;
595
+ font-size: 11px;
596
+ overflow: hidden;
597
+ text-overflow: ellipsis;
598
+ padding: 4px;
599
+ border: none;
600
+ border-radius: 8px;
601
+ background: white;
602
+ 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);
603
+ }
604
+ .suggestion-palette ul {
605
+ white-space: nowrap;
606
+ list-style-type: none;
607
+ margin: 0;
608
+ padding: 0;
609
+ }
610
+ .suggestion-palette ul li:not(:first-child) svg.tab-icn,
611
+ .suggestion-palette ul li:not(.focused) svg.return-icn, .suggestion-palette ul.focused li:first-child svg.tab-icn {
612
+ height: 0;
613
+ width: 0;
614
+ transform: scale(0);
615
+ opacity: 0;
616
+ }
617
+ .suggestion-palette ul li {
618
+ padding: 0 8px;
619
+ font-size: 11px;
620
+ height: 20px;
621
+ box-sizing: border-box;
622
+ display: flex;
623
+ align-items: center;
624
+ justify-content: space-between;
625
+ border-radius: 4px;
626
+ color: rgb(39, 71, 104);
627
+ }
628
+ .suggestion-palette ul li.focused {
629
+ background-color: rgb(237, 242, 247);
630
+ }
631
+ .suggestion-palette ul li.focused svg.return-icn {
632
+ animation: growIn 0.24s ease-in forwards;
633
+ }
634
+ .suggestion-palette ul li svg {
635
+ height: 12px;
636
+ width: 12px;
637
+ border-radius: 4px;
638
+ transform-origin: center center;
639
+ }
640
+ .suggestion-palette ul li svg path {
641
+ fill: rgb(128, 154, 180);
642
+ }
643
+
644
+ @keyframes growIn {
645
+ 0% {
646
+ transform: scale(0.5);
647
+ }
648
+ 90% {
649
+ transform: scale(1.1);
650
+ }
651
+ 100% {
652
+ transform: scale(1);
653
+ }
654
+ }
655
+ span.code-count-1::after,
656
+ span.code-count-1::before {
657
+ background: var(--bg-code-color-1);
658
+ color: var(--text-code-color-1);
659
+ }
660
+
661
+ span.code-count-2::after,
662
+ span.code-count-2::before {
663
+ background: var(--bg-code-color-1);
664
+ color: var(--text-code-color-1);
665
+ /* STRIPES */
666
+ /*background: repeating-linear-gradient(*/
667
+ /* 45deg,*/
668
+ /* var(--bg-code-color-1),*/
669
+ /* var(--bg-code-color-1) 10px,*/
670
+ /* var(--bg-code-color-2) 10px,*/
671
+ /* var(--bg-code-color-2) 20px*/
672
+ /*);*/
673
+ /* PAS STRIPES */
674
+ background: linear-gradient(90deg, var(--bg-code-color-1) 0%, var(--bg-code-color-2) 100%);
675
+ }
676
+
677
+ span.code-count-3::after,
678
+ span.code-count-3::before {
679
+ background: var(--bg-code-color-1);
680
+ color: var(--text-code-color-1);
681
+ /* STRIPES */
682
+ 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);
683
+ /* PAS STRIPES */
684
+ /* background: linear-gradient(90deg, var(--bg-code-color-1) 0%, var(--bg-code-color-2) 100%);*/
685
+ }
686
+
687
+ .selected-option {
688
+ padding: 2px;
689
+ margin-right: 5px;
690
+ }
691
+
692
+ .options {
693
+ display: flex;
694
+ flex-direction: column;
695
+ align-items: flex-start;
696
+ position: absolute;
697
+ top: calc(100% + 6px);
698
+ left: 0;
699
+ z-index: 2;
700
+ background: #fff;
701
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
702
+ width: auto;
703
+ min-width: 100%;
704
+ overflow-y: auto;
705
+ max-height: 280px;
706
+ }
707
+
708
+ .date-picker {
709
+ display: flex;
710
+ flex-direction: column;
711
+ align-items: flex-start;
712
+ position: absolute;
713
+ top: calc(100% + 6px);
714
+ left: 0;
715
+ z-index: 2;
716
+ background: #fff;
717
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
718
+ width: 260px;
719
+ overflow-y: auto;
720
+ max-height: 280px;
721
+ }
722
+
723
+ app-date-picker {
724
+ --app-primary: #084B83;
725
+ --app-hover: #5b7da2;
726
+ --app-selected-hover: #5b7da2;
727
+ }
728
+
729
+ .option {
730
+ height: 28px;
731
+ min-height: 28px;
732
+ width: 100%;
733
+ background: transparent;
734
+ border-radius: 4px;
735
+ font-size: 14px;
736
+ color: #545454;
737
+ display: flex;
738
+ flex-flow: row nowrap;
739
+ align-items: center;
740
+ justify-content: flex-start;
741
+ box-shadow: none;
742
+ border: none;
743
+ white-space: nowrap;
744
+ overflow-x: hidden;
745
+ text-overflow: ellipsis;
746
+ padding: 4px 8px;
747
+ -webkit-user-select: none; /* Safari */
748
+ -ms-user-select: none; /* IE 10 and IE 11 */
749
+ user-select: none; /* Standard syntax */
750
+ }
751
+ .option:hover {
752
+ color: #656565;
753
+ background-color: #ededed;
754
+ }
755
+
756
+ .select-arrow {
757
+ border: none;
758
+ background: 0px 0px;
759
+ position: relative;
760
+ top: 0px;
761
+ opacity: 0.5;
762
+ cursor: pointer;
763
+ height: 20px;
764
+ width: 10px;
765
+ margin-left: 4px;
766
+ margin-right: 4px;
767
+ padding: 0px;
768
+ }
769
+
770
+ .hidden {
771
+ display: none;
772
+ }
773
+
774
+ .container {
775
+ position: relative;
776
+ }
777
+
778
+ .group {
779
+ align-items: end;
780
+ display: grid;
781
+ }
782
+
783
+ .subform {
784
+ align-items: end;
785
+ display: grid;
786
+ position: relative;
787
+ margin: 8px -8px 8px;
788
+ padding: 0 8px 0;
789
+ min-height: 64px;
790
+ background-color: #e7f0fd;
791
+ }
792
+
793
+ .icure-form {
794
+ background-color: rgba(0, 0, 0, 0);
795
+ display: grid;
796
+ gap: 16px 6px;
797
+ grid-template-columns: repeat(24, 1fr);
798
+ }
799
+ .icure-form hr {
800
+ display: block;
801
+ margin-top: 20px;
802
+ border-top: 1px solid rgba(8, 75, 131, 0.13);
803
+ margin-bottom: 20px;
804
+ }
805
+ .icure-form h2 {
806
+ font-size: 14.4px;
807
+ font-weight: 700;
808
+ color: #084B83;
809
+ padding: 2px;
810
+ }
811
+ .icure-form h3 {
812
+ font-size: 13.2px;
813
+ font-weight: 500;
814
+ color: #084B83;
815
+ padding: 6px;
816
+ }
817
+ .icure-form .group.bordered {
818
+ background: #f6f6f6;
819
+ border-radius: 12px;
820
+ }
821
+ .icure-form .float-right-btn {
822
+ position: absolute;
823
+ right: 10px;
824
+ cursor: pointer;
825
+ }
826
+ .icure-form .float-right-btn.top {
827
+ top: 6px;
828
+ }
829
+ .icure-form .float-right-btn.bottom {
830
+ bottom: -8px;
831
+ }
832
+
833
+ .icure-form-field {
834
+ display: grid;
835
+ align-items: flex-start;
836
+ }
837
+
838
+ .error {
839
+ color: red;
840
+ font-size: 12px;
841
+ margin-top: 4px;
842
+ }
843
+
844
+ .icure-text-field .icure-label-extra, .icure-button-group .icure-label-extra {
845
+ display: flex;
846
+ width: 100%;
847
+ gap: 12px;
848
+ }
849
+ .icure-text-field .icure-label, .icure-button-group .icure-label {
850
+ z-index: 1;
851
+ pointer-events: none;
852
+ line-height: 1.4em;
853
+ cursor: text;
854
+ font-size: 12px;
855
+ left: 9px;
856
+ color: #084B83;
857
+ align-items: center;
858
+ height: 28px;
859
+ max-width: 85%;
860
+ min-width: 0;
861
+ }
862
+ .icure-text-field .icure-label.float, .icure-button-group .icure-label.float {
863
+ display: flex;
864
+ white-space: nowrap;
865
+ text-overflow: ellipsis;
866
+ overflow: hidden;
867
+ }
868
+
869
+ .icure-text-field {
870
+ position: relative;
871
+ width: 100%;
872
+ }
873
+ .icure-text-field > .icure-label {
874
+ transition: transform 0.2s ease-out, color 0.2s ease-out;
875
+ }
876
+ .icure-text-field > .icure-input {
877
+ flex: 1 1 auto;
878
+ width: auto;
879
+ }
880
+ .icure-text-field > .icure-label.side {
881
+ position: relative;
882
+ }
883
+ .icure-text-field > .icure-label.side.left {
884
+ order: -1;
885
+ margin-right: 1em;
886
+ }
887
+ .icure-text-field > .icure-label.side.right {
888
+ order: 1;
889
+ margin-left: 1em;
890
+ }
891
+ .icure-text-field .icure-input,
892
+ .icure-text-field .input-container {
893
+ padding: 8px;
894
+ width: 100%;
895
+ box-sizing: border-box;
896
+ border-width: 1px;
897
+ border-style: solid;
898
+ border-color: #DDE3E7;
899
+ border-radius: 2px;
900
+ box-sizing: border-box;
901
+ outline: 0;
902
+ font: inherit;
903
+ font-size: 14px;
904
+ line-height: 1.4em;
905
+ display: flex;
906
+ align-items: center;
907
+ vertical-align: middle;
908
+ position: relative;
909
+ -webkit-appearance: none;
910
+ background-color: #ffffff;
911
+ color: #000000;
912
+ }
913
+ .icure-text-field .icure-input__validationError,
914
+ .icure-text-field .input-container__validationError {
915
+ border-color: red;
916
+ }
917
+ .icure-text-field .icure-input__withMetadata,
918
+ .icure-text-field .input-container__withMetadata {
919
+ border-radius: 6px 0 0 6px;
920
+ }
921
+ .icure-text-field .icure-input:focus, .icure-text-field .icure-input:focus-within,
922
+ .icure-text-field .input-container:focus,
923
+ .icure-text-field .input-container:focus-within {
924
+ box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);
925
+ }
926
+ .icure-text-field .icure-input:hover,
927
+ .icure-text-field .input-container:hover {
928
+ border-color: rgba(0, 0, 0, 0.15);
929
+ box-shadow: none;
930
+ }
931
+ .icure-text-field .icure-input:hover:focus, .icure-text-field .icure-input:hover:focus-within,
932
+ .icure-text-field .input-container:hover:focus,
933
+ .icure-text-field .input-container:hover:focus-within {
934
+ box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);
935
+ }
936
+ .icure-text-field .icure-input .ProseMirror,
937
+ .icure-text-field .input-container .ProseMirror {
938
+ padding: 0;
939
+ font-size: 14px;
940
+ line-height: 1.4em;
941
+ color: #000000;
942
+ }
943
+ .icure-text-field .icure-input .ProseMirror .date,
944
+ .icure-text-field .input-container .ProseMirror .date {
945
+ padding: 1px;
946
+ }
947
+ .icure-text-field .icure-input .ProseMirror .time,
948
+ .icure-text-field .input-container .ProseMirror .time {
949
+ padding: 1px;
950
+ }
951
+ .icure-text-field .icure-input .ProseMirror:focus .focused,
952
+ .icure-text-field .input-container .ProseMirror:focus .focused {
953
+ background-color: rgba(0, 0, 0, 0.05);
954
+ border-radius: 3px;
955
+ border-color: rgba(0, 0, 0, 0.1);
956
+ }
957
+ .icure-text-field .icure-input > svg,
958
+ .icure-text-field .input-container > svg {
959
+ opacity: 0.5;
960
+ }
961
+ .icure-text-field .icure-input > svg path,
962
+ .icure-text-field .input-container > svg path {
963
+ fill: #656565;
964
+ }
965
+ .icure-text-field .icure-input .extra,
966
+ .icure-text-field .input-container .extra {
967
+ height: 20px;
968
+ }
969
+ .icure-text-field .icure-input .extra > .info,
970
+ .icure-text-field .input-container .extra > .info {
971
+ color: #656565;
972
+ opacity: 0.5;
973
+ }
974
+ .icure-text-field .icure-input .extra .btn svg path,
975
+ .icure-text-field .input-container .extra .btn svg path {
976
+ fill: #656565;
977
+ opacity: 0.5;
978
+ }
979
+ .icure-text-field .icure-input .extra .btn svg path:hover,
980
+ .icure-text-field .input-container .extra .btn svg path:hover {
981
+ fill: #656565;
982
+ opacity: 1;
983
+ }
984
+
985
+ input[type=radio] {
986
+ margin-top: -1px;
987
+ vertical-align: middle;
988
+ }
989
+
990
+ .icure-checkbox:checked {
991
+ accent-color: #06a070;
992
+ }
993
+
994
+ .icure-button {
995
+ display: flex;
996
+ height: 32px;
997
+ padding: 0 16px;
998
+ background-color: #084B83;
999
+ color: white;
1000
+ border-radius: 6px;
1001
+ cursor: pointer;
1002
+ }
1003
+ .icure-button:hover {
1004
+ background-color: #3D87C5;
1005
+ }
1006
+
1007
+ .icure-button-group {
1008
+ display: flex;
1009
+ flex-direction: column;
1010
+ gap: 4px;
1011
+ }
1012
+ .icure-button-group > div {
1013
+ display: grid;
1014
+ }
1015
+ .icure-button-group > div > div {
1016
+ display: flex;
1017
+ align-items: center;
1018
+ }
1019
+ .icure-button-group > div > div > .icure-button-group-label {
1020
+ z-index: 1;
1021
+ line-height: 1.4em;
1022
+ cursor: text;
1023
+ font-size: 12px;
1024
+ top: calc(1.4em + 1px);
1025
+ left: 9px;
1026
+ transition: transform 0.2s ease-out, color 0.2s ease-out;
1027
+ color: #084B83;
1028
+ display: flex;
1029
+ align-items: center;
1030
+ height: 28px;
1031
+ max-width: 85%;
1032
+ min-width: 0;
1033
+ }
1034
+ .icure-button-group > div > div > .icure-button-group-label > span {
1035
+ display: block;
1036
+ white-space: nowrap;
1037
+ text-overflow: ellipsis;
1038
+ overflow: hidden;
1039
+ padding-right: 8px;
1040
+ }
1041
+ .icure-button-group > .icure-input {
1042
+ flex: 1 1 auto;
1043
+ width: auto;
1044
+ }
1045
+ .icure-button-group > .icure-label {
1046
+ transform: translate(0, 0) scale(1);
1047
+ }
1048
+ .icure-button-group > .icure-label.above, .icure-button-group.has-content > .icure-label, .icure-button-group:focus > .icure-label, .icure-button-group:focus-within > .icure-label {
1049
+ font-weight: 500;
1050
+ height: 1.4em;
1051
+ }`;
1052
+ class IcureButton extends lit_1.LitElement {
1053
+ constructor() {
1054
+ super(...arguments);
1055
+ this.visible = true;
1056
+ this.defaultLanguage = 'en';
1057
+ this.translationProvider = (language, text) => text;
1058
+ this.actionListener = () => undefined;
1059
+ }
1060
+ static get styles() {
1061
+ return [baseCss];
1062
+ }
1063
+ render() {
1064
+ var _a, _b;
1065
+ if (!this.visible) {
1066
+ return (0, lit_1.html) ``;
1067
+ }
1068
+ return (0, lit_1.html) `<div class="icure-button" style="button" @click="${() => this.actionListener(this.event, this.payload)}">
1069
+ ${this.label ? (_b = (_a = this.translationProvider) === null || _a === void 0 ? void 0 : _a.call(this, this.defaultLanguage, this.label)) !== null && _b !== void 0 ? _b : this.label : ''}
1070
+ </div>`;
1071
+ }
1072
+ }
1073
+ exports.IcureButton = IcureButton;
1074
+ __decorate([
1075
+ (0, decorators_js_1.property)(),
1076
+ __metadata("design:type", String)
1077
+ ], IcureButton.prototype, "label", void 0);
1078
+ __decorate([
1079
+ (0, decorators_js_1.property)(),
1080
+ __metadata("design:type", String)
1081
+ ], IcureButton.prototype, "labelPosition", void 0);
1082
+ __decorate([
1083
+ (0, decorators_js_1.property)(),
1084
+ __metadata("design:type", Object)
1085
+ ], IcureButton.prototype, "visible", void 0);
1086
+ __decorate([
1087
+ (0, decorators_js_1.property)(),
1088
+ __metadata("design:type", Object)
1089
+ ], IcureButton.prototype, "defaultLanguage", void 0);
1090
+ __decorate([
1091
+ (0, decorators_js_1.property)(),
1092
+ __metadata("design:type", Function)
1093
+ ], IcureButton.prototype, "translationProvider", void 0);
1094
+ __decorate([
1095
+ (0, decorators_js_1.property)(),
1096
+ __metadata("design:type", Function)
1097
+ ], IcureButton.prototype, "actionListener", void 0);
1098
+ __decorate([
1099
+ (0, decorators_js_1.property)(),
1100
+ __metadata("design:type", String)
1101
+ ], IcureButton.prototype, "event", void 0);
1102
+ __decorate([
1103
+ (0, decorators_js_1.property)(),
1104
+ __metadata("design:type", Object)
1105
+ ], IcureButton.prototype, "payload", void 0);
1106
+ //# sourceMappingURL=index.js.map