@icure/form 2.0.10 → 2.1.0

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 (188) hide show
  1. package/.yarn/cache/@babel-runtime-npm-7.28.4-31bc1b0001-934b0a0460.zip +0 -0
  2. package/.yarn/cache/@icure-api-npm-5.3.18-99d397b97c-0da319f009.zip +0 -0
  3. package/.yarn/cache/@icure-motss-app-datepicker-npm-6.0.0-rc.40-ca1da7abbb-9bbe2bed34.zip +0 -0
  4. package/.yarn/cache/@lit-labs-ssr-dom-shim-npm-1.4.0-e5ef5fbeba-e267c25576.zip +0 -0
  5. package/.yarn/cache/@lit-reactive-element-npm-2.1.1-3875228c32-b9bbc9c089.zip +0 -0
  6. package/.yarn/cache/@lit-task-npm-1.0.3-48f265b3e9-790b6a2603.zip +0 -0
  7. package/.yarn/cache/@types-linkify-it-npm-5.0.0-576a16b976-ec98e03aa8.zip +0 -0
  8. package/.yarn/cache/@types-markdown-it-npm-14.1.2-d0c4e12c49-ad66e0b377.zip +0 -0
  9. package/.yarn/cache/@types-mdurl-npm-2.0.0-2f4116c0b0-78746e96c6.zip +0 -0
  10. package/.yarn/cache/big-integer-npm-1.6.52-4bec75720c-6e86885787.zip +0 -0
  11. package/.yarn/cache/date-fns-npm-2.30.0-895c790e0f-f7be015232.zip +0 -0
  12. package/.yarn/cache/libphonenumber-js-npm-1.12.23-68ac3c21d2-aad6c9ddc4.zip +0 -0
  13. package/.yarn/cache/{lit-element-npm-4.1.1-bb20932b82-74d0f2d6fb.zip → lit-element-npm-4.2.1-b5bc114ced-5925326176.zip} +0 -0
  14. package/.yarn/cache/{lit-html-npm-3.2.1-1662fc597d-1bacd9f8b2.zip → lit-html-npm-3.3.1-e3722d4f4a-de07c66945.zip} +0 -0
  15. package/.yarn/cache/{lit-npm-3.2.1-27cb5b7782-ee22bbc53d.zip → lit-npm-3.3.1-8f683c51f1-fb88f1ff80.zip} +0 -0
  16. package/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip +0 -0
  17. package/.yarn/cache/moment-npm-2.30.1-1c51a5c631-859236bab1.zip +0 -0
  18. package/.yarn/cache/prosemirror-commands-npm-1.7.1-5b2afb6640-2316c40ea2.zip +0 -0
  19. package/.yarn/cache/prosemirror-history-npm-1.4.1-ad68c86bb7-90f9bf59bc.zip +0 -0
  20. package/.yarn/cache/prosemirror-keymap-npm-1.2.3-0e7e0c8195-0a2eed2771.zip +0 -0
  21. package/.yarn/cache/prosemirror-markdown-npm-1.13.2-6e2f179fd8-ce9fcb3b13.zip +0 -0
  22. package/.yarn/cache/prosemirror-model-npm-1.25.3-95b23ed79b-2720e49795.zip +0 -0
  23. package/.yarn/cache/prosemirror-schema-basic-npm-1.2.4-8f943ded01-10ed022990.zip +0 -0
  24. package/.yarn/cache/prosemirror-schema-list-npm-1.5.1-7b138c5fed-6c7041e5b8.zip +0 -0
  25. package/.yarn/cache/prosemirror-transform-npm-1.10.4-f765dfe652-7b8b3ed82c.zip +0 -0
  26. package/.yarn/cache/prosemirror-view-npm-1.41.2-7f800b4d2b-263f15bec9.zip +0 -0
  27. package/.yarn/cache/text-encoding-npm-0.7.0-ff0c4af052-b6109a843f.zip +0 -0
  28. package/.yarn/cache/uuid-encoder-npm-1.2.0-6a9a810c6d-dd06230f08.zip +0 -0
  29. package/.yarn/cache/uuid-npm-8.3.2-eca0baba53-5575a8a75c.zip +0 -0
  30. package/.yarn/install-state.gz +0 -0
  31. package/components/common/field-with-options.d.ts +2 -2
  32. package/components/common/field-with-options.js +0 -1
  33. package/components/common/field-with-options.js.map +1 -1
  34. package/components/common/field.d.ts +10 -3
  35. package/components/common/field.js +21 -0
  36. package/components/common/field.js.map +1 -1
  37. package/components/common/metadata-buttons-bar.d.ts +2 -1
  38. package/components/common/metadata-buttons-bar.js +60 -28
  39. package/components/common/metadata-buttons-bar.js.map +1 -1
  40. package/components/common/styles/paths.d.ts +1 -0
  41. package/components/common/styles/paths.js +29 -16
  42. package/components/common/styles/paths.js.map +1 -1
  43. package/components/common/utils.js +4 -4
  44. package/components/common/utils.js.map +1 -1
  45. package/components/icure-button/index.d.ts +1 -1
  46. package/components/icure-button/index.js +54 -14
  47. package/components/icure-button/index.js.map +1 -1
  48. package/components/icure-button-group/index.d.ts +5 -3
  49. package/components/icure-button-group/index.js +81 -45
  50. package/components/icure-button-group/index.js.map +1 -1
  51. package/components/icure-date-picker/index.d.ts +6 -3
  52. package/components/icure-date-picker/index.js +62 -22
  53. package/components/icure-date-picker/index.js.map +1 -1
  54. package/components/icure-dropdown-field/index.d.ts +5 -2
  55. package/components/icure-dropdown-field/index.js +58 -18
  56. package/components/icure-dropdown-field/index.js.map +1 -1
  57. package/components/icure-form/fields/button-group/checkbox.d.ts +2 -1
  58. package/components/icure-form/fields/button-group/checkbox.js +1 -1
  59. package/components/icure-form/fields/button-group/checkbox.js.map +1 -1
  60. package/components/icure-form/fields/button-group/radio-button.d.ts +2 -1
  61. package/components/icure-form/fields/button-group/radio-button.js +1 -1
  62. package/components/icure-form/fields/button-group/radio-button.js.map +1 -1
  63. package/components/icure-form/fields/date-picker/date-picker.d.ts +2 -1
  64. package/components/icure-form/fields/date-picker/date-picker.js +1 -1
  65. package/components/icure-form/fields/date-picker/date-picker.js.map +1 -1
  66. package/components/icure-form/fields/date-picker/date-time-picker.d.ts +2 -1
  67. package/components/icure-form/fields/date-picker/date-time-picker.js +1 -1
  68. package/components/icure-form/fields/date-picker/date-time-picker.js.map +1 -1
  69. package/components/icure-form/fields/date-picker/time-picker.d.ts +2 -1
  70. package/components/icure-form/fields/date-picker/time-picker.js +1 -1
  71. package/components/icure-form/fields/date-picker/time-picker.js.map +1 -1
  72. package/components/icure-form/fields/dropdown/dropdown-field.d.ts +1 -1
  73. package/components/icure-form/fields/dropdown/dropdown-field.js +1 -1
  74. package/components/icure-form/fields/dropdown/dropdown-field.js.map +1 -1
  75. package/components/icure-form/fields/items-list-field/items-list-field.d.ts +2 -1
  76. package/components/icure-form/fields/items-list-field/items-list-field.js +1 -1
  77. package/components/icure-form/fields/items-list-field/items-list-field.js.map +1 -1
  78. package/components/icure-form/fields/measure-field/measure-field.d.ts +2 -1
  79. package/components/icure-form/fields/measure-field/measure-field.js +2 -1
  80. package/components/icure-form/fields/measure-field/measure-field.js.map +1 -1
  81. package/components/icure-form/fields/number-field/number-field.d.ts +2 -1
  82. package/components/icure-form/fields/number-field/number-field.js +2 -1
  83. package/components/icure-form/fields/number-field/number-field.js.map +1 -1
  84. package/components/icure-form/fields/text-field/text-field.d.ts +2 -1
  85. package/components/icure-form/fields/text-field/text-field.js +2 -1
  86. package/components/icure-form/fields/text-field/text-field.js.map +1 -1
  87. package/components/icure-form/fields/token-field/token-field.d.ts +2 -1
  88. package/components/icure-form/fields/token-field/token-field.js +1 -1
  89. package/components/icure-form/fields/token-field/token-field.js.map +1 -1
  90. package/components/icure-form/index.d.ts +6 -2
  91. package/components/icure-form/index.js +111 -21
  92. package/components/icure-form/index.js.map +1 -1
  93. package/components/icure-form/renderer/form/form-selection-button.js +48 -12
  94. package/components/icure-form/renderer/form/form-selection-button.js.map +1 -1
  95. package/components/icure-form/renderer/form/form.js +183 -142
  96. package/components/icure-form/renderer/form/form.js.map +1 -1
  97. package/components/icure-form/renderer/index.d.ts +1 -1
  98. package/components/icure-form/renderer/index.js.map +1 -1
  99. package/components/icure-label/index.js +54 -14
  100. package/components/icure-label/index.js.map +1 -1
  101. package/components/icure-text-field/index.d.ts +5 -2
  102. package/components/icure-text-field/index.js +151 -49
  103. package/components/icure-text-field/index.js.map +1 -1
  104. package/components/icure-text-field/prosemirror-commands.js +2 -3
  105. package/components/icure-text-field/prosemirror-commands.js.map +1 -1
  106. package/components/icure-text-field/prosemirror-utils.js +1 -2
  107. package/components/icure-text-field/prosemirror-utils.js.map +1 -1
  108. package/components/icure-text-field/schema/common-marks.js +2 -2
  109. package/components/icure-text-field/schema/common-marks.js.map +1 -1
  110. package/components/icure-text-field/schema/date-time-schema.js +3 -4
  111. package/components/icure-text-field/schema/date-time-schema.js.map +1 -1
  112. package/components/icure-text-field/schema/decimal-schema.js +1 -2
  113. package/components/icure-text-field/schema/decimal-schema.js.map +1 -1
  114. package/components/icure-text-field/schema/index.js +1 -2
  115. package/components/icure-text-field/schema/index.js.map +1 -1
  116. package/components/icure-text-field/schema/items-list-schema.js +1 -2
  117. package/components/icure-text-field/schema/items-list-schema.js.map +1 -1
  118. package/components/icure-text-field/schema/markdown-schema.js +3 -25
  119. package/components/icure-text-field/schema/markdown-schema.js.map +1 -1
  120. package/components/icure-text-field/schema/measure-schema.js +2 -2
  121. package/components/icure-text-field/schema/measure-schema.js.map +1 -1
  122. package/components/icure-text-field/schema/token-schema.js +1 -2
  123. package/components/icure-text-field/schema/token-schema.js.map +1 -1
  124. package/components/icure-text-field/schema/utils.js +2 -3
  125. package/components/icure-text-field/schema/utils.js.map +1 -1
  126. package/components/themes/default/index.js.map +1 -1
  127. package/components/themes/icure-blue/index.js +58 -3
  128. package/components/themes/icure-blue/index.js.map +1 -1
  129. package/components/themes/kendo/index.js +9 -5
  130. package/components/themes/kendo/index.js.map +1 -1
  131. package/conversion/icure-convert.js +1 -2
  132. package/conversion/icure-convert.js.map +1 -1
  133. package/generic/model.d.ts +5 -4
  134. package/generic/model.js.map +1 -1
  135. package/icure/form-values-container.d.ts +21 -13
  136. package/icure/form-values-container.js +235 -138
  137. package/icure/form-values-container.js.map +1 -1
  138. package/icure/icure-utils.js +6 -6
  139. package/icure/icure-utils.js.map +1 -1
  140. package/index.d.ts +1 -0
  141. package/index.js +2 -0
  142. package/index.js.map +1 -1
  143. package/package.json +16 -13
  144. package/utils/dates.js +6 -7
  145. package/utils/dates.js.map +1 -1
  146. package/utils/fields-values-provider.d.ts +1 -1
  147. package/utils/fields-values-provider.js +16 -8
  148. package/utils/fields-values-provider.js.map +1 -1
  149. package/utils/interpreter.d.ts +2 -3
  150. package/utils/interpreter.js +11 -2
  151. package/utils/interpreter.js.map +1 -1
  152. package/utils/no-lodash.js +3 -4
  153. package/utils/no-lodash.js.map +1 -1
  154. package/utils/primitive.d.ts +1 -1
  155. package/utils/primitive.js +9 -9
  156. package/utils/primitive.js.map +1 -1
  157. package/.yarn/cache/@lit-labs-ssr-dom-shim-npm-1.2.1-d14ce3e3e5-5667c44f58.zip +0 -0
  158. package/.yarn/cache/@lit-reactive-element-npm-2.0.4-4836436301-368d788d9e.zip +0 -0
  159. package/.yarn/cache/app-datepicker-npm-6.0.0-rc.33-f74d593ddf-6490949c45.zip +0 -0
  160. package/.yarn/cache/lit-ntml-npm-3.0.6-98ebc6c1ac-2917c778d9.zip +0 -0
  161. package/.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-05cbffad6e.zip +0 -0
  162. package/.yarn/cache/nodemod-npm-3.0.6-844d650911-47ffe619b3.zip +0 -0
  163. package/.yarn/cache/normalize-diacritics-npm-3.0.12-93e2346015-5ddc2cfaf8.zip +0 -0
  164. package/.yarn/cache/parse5-npm-6.0.1-70a35a494a-7d569a176c.zip +0 -0
  165. package/.yarn/cache/prosemirror-commands-npm-1.5.2-27f8f3fee9-ff65063a8c.zip +0 -0
  166. package/.yarn/cache/prosemirror-history-npm-1.3.2-cc128c8ee6-b85fe6378a.zip +0 -0
  167. package/.yarn/cache/prosemirror-keymap-npm-1.2.2-efb8276b00-85fe4fc303.zip +0 -0
  168. package/.yarn/cache/prosemirror-markdown-npm-1.12.0-28e990f443-d7607ee1a6.zip +0 -0
  169. package/.yarn/cache/prosemirror-model-npm-1.19.4-4fd32211c8-12c277ed30.zip +0 -0
  170. package/.yarn/cache/prosemirror-model-npm-1.23.0-57eb718541-f5ab1593cb.zip +0 -0
  171. package/.yarn/cache/prosemirror-schema-basic-npm-1.2.2-def7bf2ec7-1f93f8678c.zip +0 -0
  172. package/.yarn/cache/prosemirror-schema-list-npm-1.3.0-23c1830a7e-03654e37c8.zip +0 -0
  173. package/.yarn/cache/prosemirror-transform-npm-1.10.2-1c2da9123e-93b0c03aff.zip +0 -0
  174. package/.yarn/cache/prosemirror-transform-npm-1.8.0-ea3ca0411f-6d16ca4f95.zip +0 -0
  175. package/.yarn/cache/prosemirror-view-npm-1.32.7-63c3e4b182-40c9038a52.zip +0 -0
  176. package/.yarn/cache/prosemirror-view-npm-1.36.0-830888802f-38986f55e4.zip +0 -0
  177. package/components/icure-text-field/schema/items-list.d.ts +0 -3
  178. package/components/icure-text-field/schema/items-list.js +0 -31
  179. package/components/icure-text-field/schema/items-list.js.map +0 -1
  180. package/components/themes/ehr-lite/index.d.ts +0 -1
  181. package/components/themes/ehr-lite/index.js +0 -321
  182. package/components/themes/ehr-lite/index.js.map +0 -1
  183. package/utils/form-value-container.d.ts +0 -3
  184. package/utils/form-value-container.js +0 -34
  185. package/utils/form-value-container.js.map +0 -1
  186. package/utils/icure-utils.d.ts +0 -16
  187. package/utils/icure-utils.js +0 -105
  188. package/utils/icure-utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"date-time-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/date-time-schema.ts"],"names":[],"mappings":";;;AAMA,SAAgB,WAAW;IAC1B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,MAAM;aACf;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,YAAY;aAClB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAzBD,kCAyBC;AAED,SAAgB,WAAW;IAC1B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;Y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C","sourcesContent":["import { SchemaSpec } from 'prosemirror-model'\n\nexport type DateSchema = 'date'\nexport type TimeSchema = 'time'\nexport type DateTimeSchema = 'date-time'\n\nexport function getDateSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'date',\n\t\t\t},\n\n\t\t\tdate: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--/--/----',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n\nexport function getTimeSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'time',\n\t\t\t},\n\n\t\t\ttime: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--:--:--',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n\nexport function getDateTimeSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'date time',\n\t\t\t},\n\n\t\t\tdate: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'date' }, 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--/--/----',\n\t\t\t},\n\n\t\t\ttime: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'time' }, 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--:--:--',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n"]}
1
+ {"version":3,"file":"date-time-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/date-time-schema.ts"],"names":[],"mappings":";;AAMA,kCAyBC;AAED,kCAyBC;AAED,0CAoCC;AA1FD,SAAgB,WAAW;IAC1B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,MAAM;aACf;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,YAAY;aAClB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAED,SAAgB,WAAW;IAC1B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,MAAM;aACf;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,UAAU;aAChB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAED,SAAgB,eAAe;IAC9B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,WAAW;aACpB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;gBACtC,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,YAAY;aAClB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;gBACtC,CAAC;gBACD,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,UAAU;aAChB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC","sourcesContent":["import { SchemaSpec } from 'prosemirror-model'\n\nexport type DateSchema = 'date'\nexport type TimeSchema = 'time'\nexport type DateTimeSchema = 'date-time'\n\nexport function getDateSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'date',\n\t\t\t},\n\n\t\t\tdate: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--/--/----',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n\nexport function getTimeSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'time',\n\t\t\t},\n\n\t\t\ttime: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--:--:--',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n\nexport function getDateTimeSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'date time',\n\t\t\t},\n\n\t\t\tdate: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'date' }, 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--/--/----',\n\t\t\t},\n\n\t\t\ttime: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'time' }, 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[0-9]',\n\t\t\t\tmask: '--:--:--',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDecimalSpec = void 0;
3
+ exports.getDecimalSpec = getDecimalSpec;
4
4
  function getDecimalSpec() {
5
5
  return {
6
6
  topNode: 'paragraph',
@@ -24,5 +24,4 @@ function getDecimalSpec() {
24
24
  marks: {},
25
25
  };
26
26
  }
27
- exports.getDecimalSpec = getDecimalSpec;
28
27
  //# sourceMappingURL=decimal-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"decimal-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/decimal-schema.ts"],"names":[],"mappings":";;;AAIA,SAAgB,cAAc;IAC7B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,SAAS;aAClB;YAED,OAAO,EAAE;gBACR,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,WAAW;aACnB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAxBD,wCAwBC","sourcesContent":["import { SchemaSpec } from 'prosemirror-model'\n\nexport type DecimalSchema = 'decimal'\n\nexport function getDecimalSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'decimal',\n\t\t\t},\n\n\t\t\tdecimal: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[,. 0-9-]',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n"]}
1
+ {"version":3,"file":"decimal-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/decimal-schema.ts"],"names":[],"mappings":";;AAIA,wCAwBC;AAxBD,SAAgB,cAAc;IAC7B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,SAAS;aAClB;YAED,OAAO,EAAE;gBACR,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnB,CAAC;gBACD,MAAM,EAAE,WAAW;aACnB;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC","sourcesContent":["import { SchemaSpec } from 'prosemirror-model'\n\nexport type DecimalSchema = 'decimal'\n\nexport function getDecimalSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'decimal',\n\t\t\t},\n\n\t\t\tdecimal: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', 0]\n\t\t\t\t},\n\t\t\t\tregexp: '[,. 0-9-]',\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = void 0;
3
+ exports.createSchema = createSchema;
4
4
  const prosemirror_model_1 = require("prosemirror-model");
5
5
  const markdown_schema_1 = require("./markdown-schema");
6
6
  const date_time_schema_1 = require("./date-time-schema");
@@ -25,5 +25,4 @@ function createSchema(type, colorProvider, contentProvider) {
25
25
  ? (0, token_schema_1.getTokensSpec)(type, contentProvider, colorProvider)
26
26
  : (0, markdown_schema_1.getMarkdownSpec)(type, contentProvider, colorProvider));
27
27
  }
28
- exports.createSchema = createSchema;
29
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/index.ts"],"names":[],"mappings":";;;AAAA,yDAA0C;AAC1C,uDAAmD;AACnD,yDAA8E;AAC9E,iDAA8C;AAC9C,qDAAiD;AACjD,qDAAiD;AACjD,2DAAsD;AAGtD,SAAgB,YAAY,CAC3B,IAA0B,EAC1B,aAAsE,EACtE,eAAoE;IAEpE,OAAO,IAAI,0BAAM,CAChB,IAAI,KAAK,SAAS;QACjB,CAAC,CAAC,IAAA,+BAAc,GAAE;QAClB,CAAC,CAAC,IAAI,KAAK,SAAS;YACpB,CAAC,CAAC,IAAA,+BAAc,GAAE;YAClB,CAAC,CAAC,IAAI,KAAK,MAAM;gBACjB,CAAC,CAAC,IAAA,8BAAW,GAAE;gBACf,CAAC,CAAC,IAAI,KAAK,MAAM;oBACjB,CAAC,CAAC,IAAA,8BAAW,GAAE;oBACf,CAAC,CAAC,IAAI,KAAK,WAAW;wBACtB,CAAC,CAAC,IAAA,kCAAe,GAAE;wBACnB,CAAC,CAAC,IAAI,KAAK,YAAY;4BACvB,CAAC,CAAC,IAAA,oCAAgB,GAAE;4BACpB,CAAC,CAAC,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,oBAAoB,IAAI,IAAI,KAAK,wBAAwB,IAAI,IAAI,KAAK,+BAA+B;gCAC1I,CAAC,CAAC,IAAA,4BAAa,EAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC;gCACrD,CAAC,CAAC,IAAA,iCAAe,EAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,CACxD,CAAA;AACF,CAAC;AAtBD,oCAsBC","sourcesContent":["import { Schema } from 'prosemirror-model'\nimport { getMarkdownSpec } from './markdown-schema'\nimport { getDateSpec, getDateTimeSpec, getTimeSpec } from './date-time-schema'\nimport { getTokensSpec } from './token-schema'\nimport { getMeasureSpec } from './measure-schema'\nimport { getDecimalSpec } from './decimal-schema'\nimport { getItemsListSpec } from './items-list-schema'\nimport { IcureTextFieldSchema } from '../../model'\n\nexport function createSchema(\n\ttype: IcureTextFieldSchema,\n\tcolorProvider: (type: string, code: string, isCode: boolean) => string,\n\tcontentProvider: (codes: { type: string; code: string }[]) => string,\n): Schema {\n\treturn new Schema(\n\t\ttype === 'decimal'\n\t\t\t? getDecimalSpec()\n\t\t\t: type === 'measure'\n\t\t\t? getMeasureSpec()\n\t\t\t: type === 'date'\n\t\t\t? getDateSpec()\n\t\t\t: type === 'time'\n\t\t\t? getTimeSpec()\n\t\t\t: type === 'date-time'\n\t\t\t? getDateTimeSpec()\n\t\t\t: type === 'items-list'\n\t\t\t? getItemsListSpec()\n\t\t\t: type === 'tokens-list' || type === 'styled-tokens-list' || type === 'tokens-list-with-codes' || type === 'styled-tokens-list-with-codes'\n\t\t\t? getTokensSpec(type, contentProvider, colorProvider)\n\t\t\t: getMarkdownSpec(type, contentProvider, colorProvider),\n\t)\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/index.ts"],"names":[],"mappings":";;AASA,oCAsBC;AA/BD,yDAA0C;AAC1C,uDAAmD;AACnD,yDAA8E;AAC9E,iDAA8C;AAC9C,qDAAiD;AACjD,qDAAiD;AACjD,2DAAsD;AAGtD,SAAgB,YAAY,CAC3B,IAA0B,EAC1B,aAAsE,EACtE,eAAoE;IAEpE,OAAO,IAAI,0BAAM,CAChB,IAAI,KAAK,SAAS;QACjB,CAAC,CAAC,IAAA,+BAAc,GAAE;QAClB,CAAC,CAAC,IAAI,KAAK,SAAS;YACpB,CAAC,CAAC,IAAA,+BAAc,GAAE;YAClB,CAAC,CAAC,IAAI,KAAK,MAAM;gBACjB,CAAC,CAAC,IAAA,8BAAW,GAAE;gBACf,CAAC,CAAC,IAAI,KAAK,MAAM;oBACjB,CAAC,CAAC,IAAA,8BAAW,GAAE;oBACf,CAAC,CAAC,IAAI,KAAK,WAAW;wBACtB,CAAC,CAAC,IAAA,kCAAe,GAAE;wBACnB,CAAC,CAAC,IAAI,KAAK,YAAY;4BACvB,CAAC,CAAC,IAAA,oCAAgB,GAAE;4BACpB,CAAC,CAAC,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,oBAAoB,IAAI,IAAI,KAAK,wBAAwB,IAAI,IAAI,KAAK,+BAA+B;gCAC1I,CAAC,CAAC,IAAA,4BAAa,EAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC;gCACrD,CAAC,CAAC,IAAA,iCAAe,EAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,CACxD,CAAA;AACF,CAAC","sourcesContent":["import { Schema } from 'prosemirror-model'\nimport { getMarkdownSpec } from './markdown-schema'\nimport { getDateSpec, getDateTimeSpec, getTimeSpec } from './date-time-schema'\nimport { getTokensSpec } from './token-schema'\nimport { getMeasureSpec } from './measure-schema'\nimport { getDecimalSpec } from './decimal-schema'\nimport { getItemsListSpec } from './items-list-schema'\nimport { IcureTextFieldSchema } from '../../model'\n\nexport function createSchema(\n\ttype: IcureTextFieldSchema,\n\tcolorProvider: (type: string, code: string, isCode: boolean) => string,\n\tcontentProvider: (codes: { type: string; code: string }[]) => string,\n): Schema {\n\treturn new Schema(\n\t\ttype === 'decimal'\n\t\t\t? getDecimalSpec()\n\t\t\t: type === 'measure'\n\t\t\t? getMeasureSpec()\n\t\t\t: type === 'date'\n\t\t\t? getDateSpec()\n\t\t\t: type === 'time'\n\t\t\t? getTimeSpec()\n\t\t\t: type === 'date-time'\n\t\t\t? getDateTimeSpec()\n\t\t\t: type === 'items-list'\n\t\t\t? getItemsListSpec()\n\t\t\t: type === 'tokens-list' || type === 'styled-tokens-list' || type === 'tokens-list-with-codes' || type === 'styled-tokens-list-with-codes'\n\t\t\t? getTokensSpec(type, contentProvider, colorProvider)\n\t\t\t: getMarkdownSpec(type, contentProvider, colorProvider),\n\t)\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getItemsListSpec = void 0;
3
+ exports.getItemsListSpec = getItemsListSpec;
4
4
  const utils_1 = require("./utils");
5
5
  function getItemsListSpec() {
6
6
  return {
@@ -24,5 +24,4 @@ function getItemsListSpec() {
24
24
  marks: {},
25
25
  };
26
26
  }
27
- exports.getItemsListSpec = getItemsListSpec;
28
27
  //# sourceMappingURL=items-list-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"items-list-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/items-list-schema.ts"],"names":[],"mappings":";;;AACA,mCAAqC;AAIrC,SAAgB,gBAAgB;IAC/B,OAAO;QACN,KAAK,EAAE,IAAA,mBAAW,EAAC;YAClB,GAAG,EAAE;gBACJ,OAAO,EAAE,OAAO;aAChB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;gBACrC,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK;oBACJ,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBACjB,CAAC;aACD;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD,CAAC;QACF,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAvBD,4CAuBC","sourcesContent":["import { SchemaSpec } from 'prosemirror-model'\nimport { reduceNodes } from './utils'\n\nexport type ItemsListSchema = 'items-list'\n\nexport function getItemsListSpec(): SchemaSpec {\n\treturn {\n\t\tnodes: reduceNodes({\n\t\t\tdoc: {\n\t\t\t\tcontent: 'item*',\n\t\t\t},\n\n\t\t\titem: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tattrs: { id: { default: undefined } },\n\t\t\t\tparseDOM: [{ tag: 'li' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['li', 0]\n\t\t\t\t},\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t}),\n\t\tmarks: {},\n\t}\n}\n"]}
1
+ {"version":3,"file":"items-list-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/items-list-schema.ts"],"names":[],"mappings":";;AAKA,4CAuBC;AA3BD,mCAAqC;AAIrC,SAAgB,gBAAgB;IAC/B,OAAO;QACN,KAAK,EAAE,IAAA,mBAAW,EAAC;YAClB,GAAG,EAAE;gBACJ,OAAO,EAAE,OAAO;aAChB;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;gBACrC,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK;oBACJ,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBACjB,CAAC;aACD;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD,CAAC;QACF,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC","sourcesContent":["import { SchemaSpec } from 'prosemirror-model'\nimport { reduceNodes } from './utils'\n\nexport type ItemsListSchema = 'items-list'\n\nexport function getItemsListSpec(): SchemaSpec {\n\treturn {\n\t\tnodes: reduceNodes({\n\t\t\tdoc: {\n\t\t\t\tcontent: 'item*',\n\t\t\t},\n\n\t\t\titem: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tattrs: { id: { default: undefined } },\n\t\t\t\tparseDOM: [{ tag: 'li' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['li', 0]\n\t\t\t\t},\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t}),\n\t\tmarks: {},\n\t}\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMarkdownSpec = void 0;
3
+ exports.getMarkdownSpec = getMarkdownSpec;
4
4
  const utils_1 = require("./utils");
5
5
  const common_marks_1 = require("./common-marks");
6
6
  function getMarkdownSpec(type, contentProvider, colorProvider) {
7
7
  const nodesSelector = (key, spec) => {
8
8
  // noinspection RedundantConditionalExpressionJS
9
- return key === 'paragraph' ? true : (spec.group === 'block' || ['doc', 'list_item', 'hardbreak', 'image'].includes(key)) && type !== 'text-document' ? false : true;
9
+ return key === 'paragraph' ? true : (spec.group === 'block' || ['doc', 'list_item', 'hard_break', 'image'].includes(key)) && type !== 'text-document' ? false : true;
10
10
  };
11
11
  const marksSelector = (key) => {
12
12
  // noinspection RedundantConditionalExpressionJS
@@ -135,28 +135,7 @@ function getMarkdownSpec(type, contentProvider, colorProvider) {
135
135
  return ['img', node.attrs];
136
136
  },
137
137
  },
138
- measure: {
139
- content: 'decimal unit',
140
- group: 'block',
141
- },
142
- decimal: {
143
- content: 'inline*',
144
- group: 'block',
145
- parseDOM: [{ tag: 'span' }],
146
- toDOM() {
147
- return ['span', { class: 'measure' }, 0];
148
- },
149
- regexp: '[,.0-9-]',
150
- },
151
- unit: {
152
- content: 'inline*',
153
- group: 'block',
154
- parseDOM: [{ tag: 'span' }],
155
- toDOM() {
156
- return ['span', { class: 'unit' }, 0];
157
- },
158
- },
159
- hardbreak: {
138
+ hard_break: {
160
139
  inline: true,
161
140
  group: 'inline',
162
141
  selectable: false,
@@ -169,5 +148,4 @@ function getMarkdownSpec(type, contentProvider, colorProvider) {
169
148
  marks: (0, utils_1.reduceMarks)((0, common_marks_1.getMarks)(contentProvider, colorProvider), marksSelector),
170
149
  };
171
150
  }
172
- exports.getMarkdownSpec = getMarkdownSpec;
173
151
  //# sourceMappingURL=markdown-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/markdown-schema.ts"],"names":[],"mappings":";;;AACA,mCAAkD;AAClD,iDAAyC;AAMzC,SAAgB,eAAe,CAC9B,IAAmC,EACnC,eAAoE,EACpE,aAAsE;IAEtE,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,IAAc,EAAE,EAAE;QAC/F,gDAAgD;QAChD,OAAO,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,KAAK,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;IACpK,CAAC,CAAA;IACD,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,EAAE;QAC/E,gDAAgD;QAChD,OAAO,GAAG,KAAK,MAAM,IAAI,CAAC,eAAe,EAAE,aAAa,EAAE,wBAAwB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YACjG,CAAC,CAAC,IAAI;YACN,CAAC,CAAC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AC;aACD;SACD,EACD,aAAa,CACb;QACD,KAAK,EAAE,IAAA,mBAAW,EAAC,IAAA,uBAAQ,EAAC,eAAe,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC;KAC3E,CAAA;AACF,CAAC;AA1LD,0CA0LC","sourcesContent":["import { MarkSpec, NodeSpec, SchemaSpec } from 'prosemirror-model'\nimport { reduceMarks, reduceNodes } from './utils'\nimport { getMarks } from './common-marks'\n\nexport type DocumentSchema = 'text-document'\nexport type InlineSchema = 'styled-text' | 'text' | 'text-with-codes' | 'styled-text-with-codes'\nexport type StyledSchema = 'text-document' | 'styled-text' | 'styled-text-with-codes'\n\nexport function getMarkdownSpec(\n\ttype: DocumentSchema | InlineSchema,\n\tcontentProvider: (codes: { type: string; code: string }[]) => string,\n\tcolorProvider: (type: string, code: string, isCode: boolean) => string,\n): SchemaSpec {\n\tconst nodesSelector: (key: string, spec: NodeSpec) => boolean = (key: string, spec: NodeSpec) => {\n\t\t// noinspection RedundantConditionalExpressionJS\n\t\treturn key === 'paragraph' ? true : (spec.group === 'block' || ['doc', 'list_item', 'hardbreak', 'image'].includes(key)) && type !== 'text-document' ? false : true\n\t}\n\tconst marksSelector: (key: string, spec: MarkSpec) => boolean = (key: string) => {\n\t\t// noinspection RedundantConditionalExpressionJS\n\t\treturn key !== 'link' && ['text-document', 'styled-text', 'styled-text-with-codes'].includes(type)\n\t\t\t? true\n\t\t\t: key === 'link' && ['text-document', 'text-with-codes', 'styled-text-with-codes']\n\t\t\t? true\n\t\t\t: false\n\t}\n\n\treturn {\n\t\ttopNode: type === 'text-document' ? 'doc' : 'paragraph',\n\t\tnodes: reduceNodes(\n\t\t\t{\n\t\t\t\tdoc: {\n\t\t\t\t\tcontent: 'block+',\n\t\t\t\t},\n\n\t\t\t\tparagraph: {\n\t\t\t\t\tcontent: 'inline*',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'p' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['p', 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tblockquote: {\n\t\t\t\t\tcontent: 'block+',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'blockquote' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['blockquote', 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\thorizontal_rule: {\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'hr' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['div', ['hr']]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\theading: {\n\t\t\t\t\tattrs: { level: { default: 1 } },\n\t\t\t\t\tcontent: '(text | image)*',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tdefining: true,\n\t\t\t\t\tparseDOM: [\n\t\t\t\t\t\t{ tag: 'h1', attrs: { level: 1 } },\n\t\t\t\t\t\t{ tag: 'h2', attrs: { level: 2 } },\n\t\t\t\t\t\t{ tag: 'h3', attrs: { level: 3 } },\n\t\t\t\t\t\t{ tag: 'h4', attrs: { level: 4 } },\n\t\t\t\t\t\t{ tag: 'h5', attrs: { level: 5 } },\n\t\t\t\t\t\t{ tag: 'h6', attrs: { level: 6 } },\n\t\t\t\t\t],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn ['h' + node.attrs.level, 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tordered_list: {\n\t\t\t\t\tcontent: 'list_item+',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tattrs: { order: { default: 1 }, tight: { default: false } },\n\t\t\t\t\tparseDOM: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttag: 'ol',\n\t\t\t\t\t\t\tgetAttrs(dom) {\n\t\t\t\t\t\t\t\tconst el = dom as Element\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\torder: el.hasAttribute('start') ? +(el.getAttribute('start') || 0) : 1,\n\t\t\t\t\t\t\t\t\ttight: el.hasAttribute('data-tight'),\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t'ol',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstart: node.attrs.order === 1 ? null : node.attrs.order,\n\t\t\t\t\t\t\t\t'data-tight': node.attrs.tight ? 'true' : null,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tbullet_list: {\n\t\t\t\t\tcontent: 'list_item+',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tattrs: { tight: { default: false } },\n\t\t\t\t\tparseDOM: [{ tag: 'ul', getAttrs: (dom) => ({ tight: (dom as Element).hasAttribute('data-tight') }) }],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn ['ul', { 'data-tight': node.attrs.tight ? 'true' : null }, 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tlist_item: {\n\t\t\t\t\tcontent: 'paragraph block*',\n\t\t\t\t\tdefining: true,\n\t\t\t\t\tparseDOM: [{ tag: 'li' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['li', 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\ttext: {\n\t\t\t\t\tgroup: 'inline',\n\t\t\t\t},\n\n\t\t\t\timage: {\n\t\t\t\t\tinline: true,\n\t\t\t\t\tattrs: {\n\t\t\t\t\t\tsrc: {},\n\t\t\t\t\t\talt: { default: null },\n\t\t\t\t\t\ttitle: { default: null },\n\t\t\t\t\t},\n\t\t\t\t\tgroup: 'inline',\n\t\t\t\t\tdraggable: true,\n\t\t\t\t\tparseDOM: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttag: 'img[src]',\n\t\t\t\t\t\t\tgetAttrs(dom) {\n\t\t\t\t\t\t\t\tconst el = dom as Element\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tsrc: el.getAttribute('src'),\n\t\t\t\t\t\t\t\t\ttitle: el.getAttribute('title'),\n\t\t\t\t\t\t\t\t\talt: el.getAttribute('alt'),\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn ['img', node.attrs]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tmeasure: {\n\t\t\t\t\tcontent: 'decimal unit',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t},\n\n\t\t\t\tdecimal: {\n\t\t\t\t\tcontent: 'inline*',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['span', { class: 'measure' }, 0]\n\t\t\t\t\t},\n\t\t\t\t\tregexp: '[,.0-9-]',\n\t\t\t\t},\n\n\t\t\t\tunit: {\n\t\t\t\t\tcontent: 'inline*',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['span', { class: 'unit' }, 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\thardbreak: {\n\t\t\t\t\tinline: true,\n\t\t\t\t\tgroup: 'inline',\n\t\t\t\t\tselectable: false,\n\t\t\t\t\tparseDOM: [{ tag: 'br' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['br']\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tnodesSelector,\n\t\t),\n\t\tmarks: reduceMarks(getMarks(contentProvider, colorProvider), marksSelector),\n\t}\n}\n"]}
1
+ {"version":3,"file":"markdown-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/markdown-schema.ts"],"names":[],"mappings":";;AAQA,0CAkKC;AAzKD,mCAAkD;AAClD,iDAAyC;AAMzC,SAAgB,eAAe,CAC9B,IAAmC,EACnC,eAAoE,EACpE,aAAsE;IAEtE,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,IAAc,EAAE,EAAE;QAC/F,gDAAgD;QAChD,OAAO,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,KAAK,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;IACrK,CAAC,CAAA;IACD,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,EAAE;QAC/E,gDAAgD;QAChD,OAAO,GAAG,KAAK,MAAM,IAAI,CAAC,eAAe,EAAE,aAAa,EAAE,wBAAwB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YACjG,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,KAAK,MAAM,IAAI,CAAC,eAAe,EAAE,iBAAiB,EAAE,wBAAwB,CAAC;gBAClF,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,KAAK,CAAA;IACT,CAAC,CAAA;IAED,OAAO;QACN,OAAO,EAAE,IAAI,KAAK,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW;QACvD,KAAK,EAAE,IAAA,mBAAW,EACjB;YACC,GAAG,EAAE;gBACJ,OAAO,EAAE,QAAQ;aACjB;YAED,SAAS,EAAE;gBACV,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAA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AAE;gBACX,MAAM,EAAE,IAAI;gBACZ,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK;oBACJ,OAAO,CAAC,IAAI,CAAC,CAAA;gBACd,CAAC;aACD;SACD,EACD,aAAa,CACb;QACD,KAAK,EAAE,IAAA,mBAAW,EAAC,IAAA,uBAAQ,EAAC,eAAe,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC;KAC3E,CAAA;AACF,CAAC","sourcesContent":["import { MarkSpec, NodeSpec, SchemaSpec } from 'prosemirror-model'\nimport { reduceMarks, reduceNodes } from './utils'\nimport { getMarks } from './common-marks'\n\nexport type DocumentSchema = 'text-document'\nexport type InlineSchema = 'styled-text' | 'text' | 'text-with-codes' | 'styled-text-with-codes'\nexport type StyledSchema = 'text-document' | 'styled-text' | 'styled-text-with-codes'\n\nexport function getMarkdownSpec(\n\ttype: DocumentSchema | InlineSchema,\n\tcontentProvider: (codes: { type: string; code: string }[]) => string,\n\tcolorProvider: (type: string, code: string, isCode: boolean) => string,\n): SchemaSpec {\n\tconst nodesSelector: (key: string, spec: NodeSpec) => boolean = (key: string, spec: NodeSpec) => {\n\t\t// noinspection RedundantConditionalExpressionJS\n\t\treturn key === 'paragraph' ? true : (spec.group === 'block' || ['doc', 'list_item', 'hard_break', 'image'].includes(key)) && type !== 'text-document' ? false : true\n\t}\n\tconst marksSelector: (key: string, spec: MarkSpec) => boolean = (key: string) => {\n\t\t// noinspection RedundantConditionalExpressionJS\n\t\treturn key !== 'link' && ['text-document', 'styled-text', 'styled-text-with-codes'].includes(type)\n\t\t\t? true\n\t\t\t: key === 'link' && ['text-document', 'text-with-codes', 'styled-text-with-codes']\n\t\t\t? true\n\t\t\t: false\n\t}\n\n\treturn {\n\t\ttopNode: type === 'text-document' ? 'doc' : 'paragraph',\n\t\tnodes: reduceNodes(\n\t\t\t{\n\t\t\t\tdoc: {\n\t\t\t\t\tcontent: 'block+',\n\t\t\t\t},\n\n\t\t\t\tparagraph: {\n\t\t\t\t\tcontent: 'inline*',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'p' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['p', 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tblockquote: {\n\t\t\t\t\tcontent: 'block+',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'blockquote' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['blockquote', 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\thorizontal_rule: {\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tparseDOM: [{ tag: 'hr' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['div', ['hr']]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\theading: {\n\t\t\t\t\tattrs: { level: { default: 1 } },\n\t\t\t\t\tcontent: '(text | image)*',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tdefining: true,\n\t\t\t\t\tparseDOM: [\n\t\t\t\t\t\t{ tag: 'h1', attrs: { level: 1 } },\n\t\t\t\t\t\t{ tag: 'h2', attrs: { level: 2 } },\n\t\t\t\t\t\t{ tag: 'h3', attrs: { level: 3 } },\n\t\t\t\t\t\t{ tag: 'h4', attrs: { level: 4 } },\n\t\t\t\t\t\t{ tag: 'h5', attrs: { level: 5 } },\n\t\t\t\t\t\t{ tag: 'h6', attrs: { level: 6 } },\n\t\t\t\t\t],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn ['h' + node.attrs.level, 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tordered_list: {\n\t\t\t\t\tcontent: 'list_item+',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tattrs: { order: { default: 1 }, tight: { default: false } },\n\t\t\t\t\tparseDOM: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttag: 'ol',\n\t\t\t\t\t\t\tgetAttrs(dom) {\n\t\t\t\t\t\t\t\tconst el = dom as Element\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\torder: el.hasAttribute('start') ? +(el.getAttribute('start') || 0) : 1,\n\t\t\t\t\t\t\t\t\ttight: el.hasAttribute('data-tight'),\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t'ol',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstart: node.attrs.order === 1 ? null : node.attrs.order,\n\t\t\t\t\t\t\t\t'data-tight': node.attrs.tight ? 'true' : null,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tbullet_list: {\n\t\t\t\t\tcontent: 'list_item+',\n\t\t\t\t\tgroup: 'block',\n\t\t\t\t\tattrs: { tight: { default: false } },\n\t\t\t\t\tparseDOM: [{ tag: 'ul', getAttrs: (dom) => ({ tight: (dom as Element).hasAttribute('data-tight') }) }],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn ['ul', { 'data-tight': node.attrs.tight ? 'true' : null }, 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\tlist_item: {\n\t\t\t\t\tcontent: 'paragraph block*',\n\t\t\t\t\tdefining: true,\n\t\t\t\t\tparseDOM: [{ tag: 'li' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['li', 0]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\ttext: {\n\t\t\t\t\tgroup: 'inline',\n\t\t\t\t},\n\n\t\t\t\timage: {\n\t\t\t\t\tinline: true,\n\t\t\t\t\tattrs: {\n\t\t\t\t\t\tsrc: {},\n\t\t\t\t\t\talt: { default: null },\n\t\t\t\t\t\ttitle: { default: null },\n\t\t\t\t\t},\n\t\t\t\t\tgroup: 'inline',\n\t\t\t\t\tdraggable: true,\n\t\t\t\t\tparseDOM: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttag: 'img[src]',\n\t\t\t\t\t\t\tgetAttrs(dom) {\n\t\t\t\t\t\t\t\tconst el = dom as Element\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tsrc: el.getAttribute('src'),\n\t\t\t\t\t\t\t\t\ttitle: el.getAttribute('title'),\n\t\t\t\t\t\t\t\t\talt: el.getAttribute('alt'),\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ttoDOM(node) {\n\t\t\t\t\t\treturn ['img', node.attrs]\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\thard_break: {\n\t\t\t\t\tinline: true,\n\t\t\t\t\tgroup: 'inline',\n\t\t\t\t\tselectable: false,\n\t\t\t\t\tparseDOM: [{ tag: 'br' }],\n\t\t\t\t\ttoDOM() {\n\t\t\t\t\t\treturn ['br']\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tnodesSelector,\n\t\t),\n\t\tmarks: reduceMarks(getMarks(contentProvider, colorProvider), marksSelector),\n\t}\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.measureOnFocusHandler = exports.measureTransactionMapper = exports.getMeasureSpec = void 0;
3
+ exports.measureOnFocusHandler = exports.measureTransactionMapper = void 0;
4
+ exports.getMeasureSpec = getMeasureSpec;
4
5
  const prosemirror_state_1 = require("prosemirror-state");
5
6
  function getMeasureSpec() {
6
7
  return {
@@ -34,7 +35,6 @@ function getMeasureSpec() {
34
35
  marks: {},
35
36
  };
36
37
  }
37
- exports.getMeasureSpec = getMeasureSpec;
38
38
  const measureTransactionMapper = (tr) => {
39
39
  var _a, _b, _c, _d, _e, _f, _g;
40
40
  const decimal = tr.doc.childCount && tr.doc.child(0).type.name === 'decimal' ? tr.doc.child(0) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"measure-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/measure-schema.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAK9D,SAAgB,cAAc;IAC7B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,eAAe;gBACxB,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;aACxB;YAED,OAAO,EAAE;gBACR,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAA;gBACzC,CAAC;aACD;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;gBAChC,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;gBACtC,CAAC;gBACD,QAAQ,EAAE,KAAK;aACf;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE,EAAE;KACT,CAAA;AACF,CAAC;AAlCD,wCAkCC;AAEM,MAAM,wBAAwB,GAAG,CAAC,EAAe,EAAE,EAAE;;IAC3D,MAAM,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CA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AAP,OAAO,CAAE,WAAW,mCAAI,EAAE,CAAA;IAC9C,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC1F,MAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAA;IAElC,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,KAAI,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAA,EAAE,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QACrC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,iCAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;IACtF,CAAC;AACF,CAAC,CAAA;AAXY,QAAA,qBAAqB,yBAWjC","sourcesContent":["import { Node, SchemaSpec } from 'prosemirror-model'\nimport { TextSelection, Transaction } from 'prosemirror-state'\nimport { EditorView } from 'prosemirror-view'\n\nexport type MeasureSchema = 'measure'\n\nexport function getMeasureSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'decimal unit?',\n\t\t\t\tparseDOM: [{ tag: 'p' }],\n\t\t\t},\n\n\t\t\tdecimal: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'measure' }, 0]\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tunit: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span.unit' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'unit' }, 0]\n\t\t\t\t},\n\t\t\t\teditable: false,\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n\nexport const measureTransactionMapper = (tr: Transaction) => {\n\tconst decimal = tr.doc.childCount && tr.doc.child(0).type.name === 'decimal' ? tr.doc.child(0) : null\n\tconst decimalText = decimal?.textContent ?? ''\n\tconst unit = tr.doc.childCount > 1 && tr.doc.child(1).type.name === 'unit' ? tr.doc.child(1) : null\n\tconst unitText = unit?.textContent\n\tconst schema = tr.doc.type.schema\n\n\tconst from = tr.selection.from\n\n\tconsole.log(`[${decimalText}] <${unitText}> : ${from} - ${tr.selection.to}`)\n\n\tif (decimalText?.match(/^[0-9.,-]+$/)) {\n\t\treturn tr\n\t}\n\n\tconst combinedText = (decimalText ?? '') + (unitText ?? '')\n\n\tconst newUnitText = combinedText.replace(/^[0-9.,-]*/, '').trimStart()\n\tconst newDecimalText = combinedText.replace(/^([0-9.,-]*) *.*$/, '$1').trim()\n\n\tif (newDecimalText === decimalText && newUnitText === unitText) {\n\t\treturn tr\n\t}\n\n\tconst patchedTr = tr.replaceWith(0, tr.doc.content.size, [\n\t\tschema.nodes['paragraph'].create(\n\t\t\t{},\n\t\t\t[\n\t\t\t\tschema.nodes['decimal'].create({}, newDecimalText.length ? [schema.text(newDecimalText)] : []),\n\t\t\t\tnewUnitText?.length ? schema.nodes['unit'].create({}, schema.text(newUnitText)) : undefined,\n\t\t\t].filter((x) => !!x) as Node[],\n\t\t),\n\t])\n\n\tconst newFrom =\n\t\tpatchedTr.steps.slice(tr.steps.length).reduce((acc, step) => step.getMap().map(acc), from) +\n\t\t(newUnitText?.charAt(0) !== unitText?.charAt(0) && (newUnitText?.length ?? 0) > (unitText?.length ?? 0) ? 2 : 0) +\n\t\t((newDecimalText?.length ?? 0) > (decimalText?.length ?? 0) && (newUnitText?.length ?? 0) < (unitText?.length ?? 0) ? -2 : 0)\n\n\treturn patchedTr.setSelection(TextSelection.create(patchedTr.doc, Math.min(newFrom, tr.doc.content.size - 1)))\n}\n\nexport const measureOnFocusHandler = (view: EditorView) => {\n\tconst doc = view.state.tr.doc\n\tconst decimal = doc.childCount && doc.child(0).type.name === 'decimal' ? doc.child(0) : null\n\tconst decimalText = decimal?.textContent ?? ''\n\tconst unit = doc.childCount > 1 && doc.child(1).type.name === 'unit' ? doc.child(1) : null\n\tconst unitText = unit?.textContent\n\n\tif (unitText?.length && !decimalText?.length) {\n\t\tconsole.log('Setting selection to 1')\n\t\tview.dispatch(view.state.tr.setSelection(TextSelection.create(view.state.tr.doc, 1)))\n\t}\n}\n"]}
1
+ {"version":3,"file":"measure-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/measure-schema.ts"],"names":[],"mappings":";;;AAMA,wCAkCC;AAvCD,yDAA8D;AAK9D,SAAgB,cAAc;IAC7B,OAAO;QACN,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE;YACN,SAAS,EAAE;gBACV,OAAO,EAAE,eAAe;gBACxB,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;aACxB;YAED,OAAO,EAAE;gBACR,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;gBAC3B,KAAK;oBACJ,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAA;gBACzC,CAAC;aACD;YAED,IAAI,EAAE;gBACL,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,WA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extSelection, Transaction } from 'prosemirror-state'\nimport { EditorView } from 'prosemirror-view'\n\nexport type MeasureSchema = 'measure'\n\nexport function getMeasureSpec(): SchemaSpec {\n\treturn {\n\t\ttopNode: 'paragraph',\n\t\tnodes: {\n\t\t\tparagraph: {\n\t\t\t\tcontent: 'decimal unit?',\n\t\t\t\tparseDOM: [{ tag: 'p' }],\n\t\t\t},\n\n\t\t\tdecimal: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'measure' }, 0]\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tunit: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tparseDOM: [{ tag: 'span.unit' }],\n\t\t\t\ttoDOM() {\n\t\t\t\t\treturn ['span', { class: 'unit' }, 0]\n\t\t\t\t},\n\t\t\t\teditable: false,\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t},\n\t\tmarks: {},\n\t}\n}\n\nexport const measureTransactionMapper = (tr: Transaction) => {\n\tconst decimal = tr.doc.childCount && tr.doc.child(0).type.name === 'decimal' ? tr.doc.child(0) : null\n\tconst decimalText = decimal?.textContent ?? ''\n\tconst unit = tr.doc.childCount > 1 && tr.doc.child(1).type.name === 'unit' ? tr.doc.child(1) : null\n\tconst unitText = unit?.textContent\n\tconst schema = tr.doc.type.schema\n\n\tconst from = tr.selection.from\n\n\tconsole.log(`[${decimalText}] <${unitText}> : ${from} - ${tr.selection.to}`)\n\n\tif (decimalText?.match(/^[0-9.,-]+$/)) {\n\t\treturn tr\n\t}\n\n\tconst combinedText = (decimalText ?? '') + (unitText ?? '')\n\n\tconst newUnitText = combinedText.replace(/^[0-9.,-]*/, '').trimStart()\n\tconst newDecimalText = combinedText.replace(/^([0-9.,-]*) *.*$/, '$1').trim()\n\n\tif (newDecimalText === decimalText && newUnitText === unitText) {\n\t\treturn tr\n\t}\n\n\tconst patchedTr = tr.replaceWith(0, tr.doc.content.size, [\n\t\tschema.nodes['paragraph'].create(\n\t\t\t{},\n\t\t\t[\n\t\t\t\tschema.nodes['decimal'].create({}, newDecimalText.length ? [schema.text(newDecimalText)] : []),\n\t\t\t\tnewUnitText?.length ? schema.nodes['unit'].create({}, schema.text(newUnitText)) : undefined,\n\t\t\t].filter((x) => !!x) as Node[],\n\t\t),\n\t])\n\n\tconst newFrom =\n\t\tpatchedTr.steps.slice(tr.steps.length).reduce((acc, step) => step.getMap().map(acc), from) +\n\t\t(newUnitText?.charAt(0) !== unitText?.charAt(0) && (newUnitText?.length ?? 0) > (unitText?.length ?? 0) ? 2 : 0) +\n\t\t((newDecimalText?.length ?? 0) > (decimalText?.length ?? 0) && (newUnitText?.length ?? 0) < (unitText?.length ?? 0) ? -2 : 0)\n\n\treturn patchedTr.setSelection(TextSelection.create(patchedTr.doc, Math.min(newFrom, tr.doc.content.size - 1)))\n}\n\nexport const measureOnFocusHandler = (view: EditorView) => {\n\tconst doc = view.state.tr.doc\n\tconst decimal = doc.childCount && doc.child(0).type.name === 'decimal' ? doc.child(0) : null\n\tconst decimalText = decimal?.textContent ?? ''\n\tconst unit = doc.childCount > 1 && doc.child(1).type.name === 'unit' ? doc.child(1) : null\n\tconst unitText = unit?.textContent\n\n\tif (unitText?.length && !decimalText?.length) {\n\t\tconsole.log('Setting selection to 1')\n\t\tview.dispatch(view.state.tr.setSelection(TextSelection.create(view.state.tr.doc, 1)))\n\t}\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTokensSpec = void 0;
3
+ exports.getTokensSpec = getTokensSpec;
4
4
  const utils_1 = require("./utils");
5
5
  const common_marks_1 = require("./common-marks");
6
6
  function getTokensSpec(type, contentProvider, colorProvider) {
@@ -33,5 +33,4 @@ function getTokensSpec(type, contentProvider, colorProvider) {
33
33
  marks: (0, utils_1.reduceMarks)((0, common_marks_1.getMarks)(contentProvider, colorProvider), marksSelector),
34
34
  };
35
35
  }
36
- exports.getTokensSpec = getTokensSpec;
37
36
  //# sourceMappingURL=token-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"token-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/token-schema.ts"],"names":[],"mappings":";;;AACA,mCAAkD;AAClD,iDAAyC;AAIzC,SAAgB,aAAa,CAC5B,IAAkB,EAClB,eAAoE,EACpE,aAAsE;IAEtE,MAAM,aAAa,GAA6C,CAAC,GAAW,EAAE,EAAE;QAC/E,gDAAgD;QAChD,OAAO,GAAG,KAAK,MAAM,IAAI,CAAC,oBAAoB,EAAE,+BAA+B,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC9F,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,KAAK,MAAM,IAAI,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;gBACxE,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,KAAK,CAAA;IACT,CAAC,CAAA;IACD,OAAO;QACN,KAAK,EAAE,IAAA,mBAAW,EAAC;YAClB,GAAG,EAAE;gBACJ,OAAO,EAAE,QAAQ;aACjB;YAED,KAAK,EAAE;gBACN,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;gBACrC,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;gBACzB,KAAK,CAAC,IAAI;oBACT,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;gBAClH,CAAC;aACD;YAED,IAAI,EAAE;gBACL,KAAK,EAAE,QAAQ;aACf;SACD,CAAC;QACF,KAAK,EAAE,IAAA,mBAAW,EAAC,IAAA,uBAAQ,EAAC,eAAe,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC;KAC3E,CAAA;AACF,CAAC;AAnCD,sCAmCC","sourcesContent":["import { MarkSpec, SchemaSpec } from 'prosemirror-model'\nimport { reduceMarks, reduceNodes } from './utils'\nimport { getMarks } from './common-marks'\n\nexport type TokensSchema = 'tokens-list' | 'styled-tokens-list' | 'tokens-list-with-codes' | 'styled-tokens-list-with-codes'\n\nexport function getTokensSpec(\n\ttype: TokensSchema,\n\tcontentProvider: (codes: { type: string; code: string }[]) => string,\n\tcolorProvider: (type: string, code: string, isCode: boolean) => string,\n): SchemaSpec {\n\tconst marksSelector: (key: string, spec: MarkSpec) => boolean = (key: string) => {\n\t\t// noinspection RedundantConditionalExpressionJS\n\t\treturn key !== 'link' && ['styled-tokens-list', 'styled-tokens-list-with-codes'].includes(type)\n\t\t\t? true\n\t\t\t: key === 'link' && ['tokens-list-with-codes', 'styled-text-with-codes']\n\t\t\t? true\n\t\t\t: false\n\t}\n\treturn {\n\t\tnodes: reduceNodes({\n\t\t\tdoc: {\n\t\t\t\tcontent: 'token*',\n\t\t\t},\n\n\t\t\ttoken: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tattrs: { id: { default: undefined } },\n\t\t\t\tparseDOM: [{ tag: 'li' }],\n\t\t\t\ttoDOM(node) {\n\t\t\t\t\treturn ['li', {}, ['span', { class: 'token' }, 0], ['icure-metadata-buttons-bar-wrapper', { id: node.attrs.id }]]\n\t\t\t\t},\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t}),\n\t\tmarks: reduceMarks(getMarks(contentProvider, colorProvider), marksSelector),\n\t}\n}\n"]}
1
+ {"version":3,"file":"token-schema.js","sourceRoot":"","sources":["../../../../tmp/components/icure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SchemaSpec } from 'prosemirror-model'\nimport { reduceMarks, reduceNodes } from './utils'\nimport { getMarks } from './common-marks'\n\nexport type TokensSchema = 'tokens-list' | 'styled-tokens-list' | 'tokens-list-with-codes' | 'styled-tokens-list-with-codes'\n\nexport function getTokensSpec(\n\ttype: TokensSchema,\n\tcontentProvider: (codes: { type: string; code: string }[]) => string,\n\tcolorProvider: (type: string, code: string, isCode: boolean) => string,\n): SchemaSpec {\n\tconst marksSelector: (key: string, spec: MarkSpec) => boolean = (key: string) => {\n\t\t// noinspection RedundantConditionalExpressionJS\n\t\treturn key !== 'link' && ['styled-tokens-list', 'styled-tokens-list-with-codes'].includes(type)\n\t\t\t? true\n\t\t\t: key === 'link' && ['tokens-list-with-codes', 'styled-text-with-codes']\n\t\t\t? true\n\t\t\t: false\n\t}\n\treturn {\n\t\tnodes: reduceNodes({\n\t\t\tdoc: {\n\t\t\t\tcontent: 'token*',\n\t\t\t},\n\n\t\t\ttoken: {\n\t\t\t\tcontent: 'inline*',\n\t\t\t\tgroup: 'block',\n\t\t\t\tattrs: { id: { default: undefined } },\n\t\t\t\tparseDOM: [{ tag: 'li' }],\n\t\t\t\ttoDOM(node) {\n\t\t\t\t\treturn ['li', {}, ['span', { class: 'token' }, 0], ['icure-metadata-buttons-bar-wrapper', { id: node.attrs.id }]]\n\t\t\t\t},\n\t\t\t},\n\n\t\t\ttext: {\n\t\t\t\tgroup: 'inline',\n\t\t\t},\n\t\t}),\n\t\tmarks: reduceMarks(getMarks(contentProvider, colorProvider), marksSelector),\n\t}\n}\n"]}
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reduceMarks = exports.reduceNodes = void 0;
3
+ exports.reduceNodes = reduceNodes;
4
+ exports.reduceMarks = reduceMarks;
4
5
  function reduceNodes(nodes, selector = () => true) {
5
6
  return Object.keys(nodes).reduce((r, k) => (selector(k, nodes[k]) ? Object.assign(r, { [k]: nodes[k] }) : r), {});
6
7
  }
7
- exports.reduceNodes = reduceNodes;
8
8
  function reduceMarks(marks, selector = () => true) {
9
9
  return Object.keys(marks).reduce((r, k) => (selector(k, marks[k]) ? Object.assign(r, { [k]: marks[k] }) : r), {});
10
10
  }
11
- exports.reduceMarks = reduceMarks;
12
11
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/utils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,WAAW,CAAC,KAAkC,EAAE,WAAqD,GAAG,EAAE,CAAC,IAAI;IAC9H,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAiC,CAAC,CAAA;AACjJ,CAAC;AAFD,kCAEC;AAED,SAAgB,WAAW,CAAC,KAAkC,EAAE,WAAqD,GAAG,EAAE,CAAC,IAAI;IAC9H,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAiC,CAAC,CAAA;AACjJ,CAAC;AAFD,kCAEC","sourcesContent":["import { MarkSpec, NodeSpec } from 'prosemirror-model'\n\nexport function reduceNodes(nodes: { [key: string]: NodeSpec }, selector: (key: string, spec: NodeSpec) => boolean = () => true): { [key: string]: NodeSpec } {\n\treturn Object.keys(nodes).reduce((r, k) => (selector(k, nodes[k]) ? Object.assign(r, { [k]: nodes[k] }) : r), {} as { [key: string]: NodeSpec })\n}\n\nexport function reduceMarks(marks: { [key: string]: MarkSpec }, selector: (key: string, spec: MarkSpec) => boolean = () => true): { [key: string]: MarkSpec } {\n\treturn Object.keys(marks).reduce((r, k) => (selector(k, marks[k]) ? Object.assign(r, { [k]: marks[k] }) : r), {} as { [key: string]: MarkSpec })\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../tmp/components/icure-text-field/schema/utils.ts"],"names":[],"mappings":";;AAEA,kCAEC;AAED,kCAEC;AAND,SAAgB,WAAW,CAAC,KAAkC,EAAE,WAAqD,GAAG,EAAE,CAAC,IAAI;IAC9H,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAiC,CAAC,CAAA;AACjJ,CAAC;AAED,SAAgB,WAAW,CAAC,KAAkC,EAAE,WAAqD,GAAG,EAAE,CAAC,IAAI;IAC9H,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAiC,CAAC,CAAA;AACjJ,CAAC","sourcesContent":["import { MarkSpec, NodeSpec } from 'prosemirror-model'\n\nexport function reduceNodes(nodes: { [key: string]: NodeSpec }, selector: (key: string, spec: NodeSpec) => boolean = () => true): { [key: string]: NodeSpec } {\n\treturn Object.keys(nodes).reduce((r, k) => (selector(k, nodes[k]) ? Object.assign(r, { [k]: nodes[k] }) : r), {} as { [key: string]: NodeSpec })\n}\n\nexport function reduceMarks(marks: { [key: string]: MarkSpec }, selector: (key: string, spec: MarkSpec) => boolean = () => true): { [key: string]: MarkSpec } {\n\treturn Object.keys(marks).reduce((r, k) => (selector(k, marks[k]) ? Object.assign(r, { [k]: marks[k] }) : r), {} as { [key: string]: MarkSpec })\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/themes/default/index.ts"],"names":[],"mappings":";;AAAA,oDAcgC;AAChC,iEAA2D;AAC3D,+DAA8D;AAC9D,qEAA+D;AAC/D,iDAA4C;AAC5C,mDAA8C;AAC9C,6DAAuD;AACvD,qDAAgD;AAChD,gGAA0F;AAE1F,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAQ,CAAC,CAAA;AACtD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,6BAA6B,EAAE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,2BAA2B,EAAE,sBAAa,CAAC,CAAA;AACjE,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,qCAAgB,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,wCAAoB,CAAC,CAAA;AACtE,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,yCAAkB,CAAC,CAAA;AACjE,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,sBAAS,CAAC,CAAA;AAC9C,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,wBAAU,CAAC,CAAA;AAChD,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,0BAAW,CAAC,CAAA;AAClD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,iCAAc,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,6BAA6B,EAAE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAK,CAAC,CAAA;AAChD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAM,CAAC,CAAA;AAClD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAY,CAAC,CAAA;AAC/D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAS,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,2CAAmB,CAAC,CAAA","sourcesContent":["import {\n\tCheckBox,\n\tDatePicker,\n\tDateTimePicker,\n\tDropdownField,\n\tItemsListField,\n\tLabel,\n\tButton,\n\tMeasureField,\n\tNumberField,\n\tRadioButton,\n\tTextField,\n\tTimePicker,\n\tTokenField,\n} from '../../icure-form/fields'\nimport { IcureButtonGroup } from '../../icure-button-group'\nimport { IcureDatePickerField } from '../../icure-date-picker'\nimport { IcureDropdownField } from '../../icure-dropdown-field'\nimport { IcureForm } from '../../icure-form'\nimport { IcureLabel } from '../../icure-label'\nimport { IcureTextField } from '../../icure-text-field'\nimport { IcureButton } from '../../icure-button'\nimport { FormSelectionButton } from '../../icure-form/renderer/form/form-selection-button'\n\ncustomElements.define('icure-form-checkbox', CheckBox)\ncustomElements.define('icure-form-date-picker', DatePicker)\ncustomElements.define('icure-form-date-time-picker', DateTimePicker)\ncustomElements.define('icure-form-dropdown-field', DropdownField)\ncustomElements.define('icure-button-group', IcureButtonGroup)\ncustomElements.define('icure-date-picker-field', IcureDatePickerField)\ncustomElements.define('icure-dropdown-field', IcureDropdownField)\ncustomElements.define('icure-form', IcureForm)\ncustomElements.define('icure-label', IcureLabel)\ncustomElements.define('icure-button', IcureButton)\ncustomElements.define('icure-text-field', IcureTextField)\ncustomElements.define('icure-form-items-list-field', ItemsListField)\ncustomElements.define('icure-form-label', Label)\ncustomElements.define('icure-form-button', Button)\ncustomElements.define('icure-form-measure-field', MeasureField)\ncustomElements.define('icure-form-number-field', NumberField)\ncustomElements.define('icure-form-radio-button', RadioButton)\ncustomElements.define('icure-form-text-field', TextField)\ncustomElements.define('icure-form-time-picker', TimePicker)\ncustomElements.define('icure-form-token-field', TokenField)\ncustomElements.define('form-selection-button', FormSelectionButton)\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/themes/default/index.ts"],"names":[],"mappings":";;AAAA,oDAAuM;AACvM,iEAA2D;AAC3D,+DAA8D;AAC9D,qEAA+D;AAC/D,iDAA4C;AAC5C,mDAA8C;AAC9C,6DAAuD;AACvD,qDAAgD;AAChD,gGAA0F;AAE1F,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAQ,CAAC,CAAA;AACtD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,6BAA6B,EAAE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,2BAA2B,EAAE,sBAAa,CAAC,CAAA;AACjE,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,qCAAgB,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,wCAAoB,CAAC,CAAA;AACtE,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,yCAAkB,CAAC,CAAA;AACjE,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,sBAAS,CAAC,CAAA;AAC9C,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,wBAAU,CAAC,CAAA;AAChD,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,0BAAW,CAAC,CAAA;AAClD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,iCAAc,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,6BAA6B,EAAE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAK,CAAC,CAAA;AAChD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAM,CAAC,CAAA;AAClD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAY,CAAC,CAAA;AAC/D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAS,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,2CAAmB,CAAC,CAAA","sourcesContent":["import { CheckBox, DatePicker, DateTimePicker, DropdownField, ItemsListField, Label, Button, MeasureField, NumberField, RadioButton, TextField, TimePicker, TokenField } from '../../icure-form/fields'\nimport { IcureButtonGroup } from '../../icure-button-group'\nimport { IcureDatePickerField } from '../../icure-date-picker'\nimport { IcureDropdownField } from '../../icure-dropdown-field'\nimport { IcureForm } from '../../icure-form'\nimport { IcureLabel } from '../../icure-label'\nimport { IcureTextField } from '../../icure-text-field'\nimport { IcureButton } from '../../icure-button'\nimport { FormSelectionButton } from '../../icure-form/renderer/form/form-selection-button'\n\ncustomElements.define('icure-form-checkbox', CheckBox)\ncustomElements.define('icure-form-date-picker', DatePicker)\ncustomElements.define('icure-form-date-time-picker', DateTimePicker)\ncustomElements.define('icure-form-dropdown-field', DropdownField)\ncustomElements.define('icure-button-group', IcureButtonGroup)\ncustomElements.define('icure-date-picker-field', IcureDatePickerField)\ncustomElements.define('icure-dropdown-field', IcureDropdownField)\ncustomElements.define('icure-form', IcureForm)\ncustomElements.define('icure-label', IcureLabel)\ncustomElements.define('icure-button', IcureButton)\ncustomElements.define('icure-text-field', IcureTextField)\ncustomElements.define('icure-form-items-list-field', ItemsListField)\ncustomElements.define('icure-form-label', Label)\ncustomElements.define('icure-form-button', Button)\ncustomElements.define('icure-form-measure-field', MeasureField)\ncustomElements.define('icure-form-number-field', NumberField)\ncustomElements.define('icure-form-radio-button', RadioButton)\ncustomElements.define('icure-form-text-field', TextField)\ncustomElements.define('icure-form-time-picker', TimePicker)\ncustomElements.define('icure-form-token-field', TokenField)\ncustomElements.define('form-selection-button', FormSelectionButton)\n"]}
@@ -9,7 +9,62 @@ const icure_label_1 = require("../../icure-label");
9
9
  const icure_text_field_1 = require("../../icure-text-field");
10
10
  // @ts-ignore
11
11
  const lit_1 = require("lit");
12
- const ehrLiteCss = (0, lit_1.css) `.icure-text-field,
12
+ const ehrLiteCss = (0, lit_1.css) `.tab-container {
13
+ display: flex;
14
+ flex-direction: column;
15
+ }
16
+ .tab-container .tab-bar {
17
+ display: flex;
18
+ align-self: stretch;
19
+ padding: 0;
20
+ }
21
+ .tab-container .tab-bar ul {
22
+ width: 100%;
23
+ display: flex;
24
+ align-items: flex-end;
25
+ justify-content: flex-start;
26
+ align-self: stretch;
27
+ padding: 0;
28
+ margin: 0;
29
+ gap: 2px;
30
+ box-sizing: border-box;
31
+ position: relative;
32
+ }
33
+ .tab-container .tab-bar ul:before {
34
+ border-bottom: 1px solid #DCE7F2;
35
+ content: "";
36
+ left: 0;
37
+ position: absolute;
38
+ right: 0;
39
+ }
40
+ .tab-container .tab-bar li {
41
+ display: inline-block;
42
+ padding: 8px 16px;
43
+ cursor: pointer;
44
+ color: #303443;
45
+ font-size: 14px;
46
+ font-weight: 400;
47
+ border-radius: 8px 8px 0px 0px;
48
+ z-index: 2;
49
+ border-bottom: 2px solid transparent;
50
+ }
51
+ .tab-container .tab-bar li.active {
52
+ background-color: white;
53
+ border-bottom: 2px solid #084B83;
54
+ color: #084B83;
55
+ font-weight: 600;
56
+ }
57
+ .tab-container .tab-content {
58
+ padding-top: 8px;
59
+ }
60
+ .tab-container .tab-content .tab {
61
+ display: none;
62
+ }
63
+ .tab-container .tab-content .tab.active {
64
+ display: block;
65
+ }
66
+
67
+ .icure-text-field,
13
68
  .icure-button-group {
14
69
  width: 100%;
15
70
  }
@@ -225,8 +280,8 @@ input[type=radio] {
225
280
  line-height: 1.4em;
226
281
  cursor: text;
227
282
  font-size: 14px;
228
- top: calc(1.4em + 1px);
229
- left: 9px;
283
+ top: add-three(1.4em, 1px, 0);
284
+ left: add-two(8px, 1px);
230
285
  transition: transform 0.2s ease-out, color 0.2s ease-out;
231
286
  color: #1D2235;
232
287
  display: flex;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/themes/icure-blue/index.ts"],"names":[],"mappings":";;AAAA,oDAcgC;AAChC,iEAA2D;AAC3D,+DAA8D;AAC9D,qEAA+D;AAC/D,iDAA4C;AAC5C,mDAA8C;AAC9C,6DAAiF;AAEjF,aAAa;AACb,6BAA0B;AAC1B,MAAM,UAAU,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAA;AAChE,cAAc,CAAC,MAAM,CAAC,6BAA6B,EAAE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAA;AACvD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAY,CAAC,CAAA;AAC/D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAS,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,2CAAmB,CAAC,CAAA","sourcesContent":["import {\n\tCheckBox,\n\tDatePicker,\n\tDateTimePicker,\n\tDropdownField,\n\tItemsListField,\n\tLabel,\n\tButton,\n\tMeasureField,\n\tNumberField,\n\tRadioButton,\n\tTextField,\n\tTimePicker,\n\tTokenField,\n} from '../../icure-form/fields'\nimport { IcureButtonGroup } from '../../icure-button-group'\nimport { IcureDatePickerField } from '../../icure-date-picker'\nimport { IcureDropdownField } from '../../icure-dropdown-field'\nimport { IcureForm } from '../../icure-form'\nimport { IcureLabel } from '../../icure-label'\nimport { IcureTextField, MetadataButtonBarWrapper } from '../../icure-text-field'\n\n// @ts-ignore\nimport { css } from 'lit';\nconst ehrLiteCss = css`.icure-text-field,\n.icure-button-group {\n width: 100%;\n}\n.icure-text-field .icure-label,\n.icure-button-group .icure-label {\n color: #1D2235;\n font-size: 14px;\n font-weight: 400;\n}\n.icure-text-field .icure-label > span,\n.icure-button-group .icure-label > span {\n display: block;\n word-wrap: break-word;\n overflow: auto;\n font-weight: 400;\n}\n.icure-text-field > .icure-input,\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}\n.icure-text-field .icure-input,\n.icure-text-field .input-container,\n.icure-button-group .icure-input,\n.icure-button-group .input-container {\n cursor: pointer;\n border-radius: 6px;\n padding: 8px;\n width: 100%;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n outline: 0;\n font: inherit;\n font-size: 13px;\n line-height: 1.4em;\n display: flex;\n align-items: center;\n vertical-align: middle;\n position: relative;\n -webkit-appearance: none;\n background-color: #ffffff;\n border-color: #DDE3E7;\n color: #1D2235;\n box-sizing: border-box;\n}\n.icure-text-field .icure-input__validationError,\n.icure-text-field .input-container__validationError,\n.icure-button-group .icure-input__validationError,\n.icure-button-group .input-container__validationError {\n border-color: red;\n}\n.icure-text-field .icure-input__withMetadata,\n.icure-text-field .input-container__withMetadata,\n.icure-button-group .icure-input__withMetadata,\n.icure-button-group .input-container__withMetadata {\n border-radius: 6px 0 0 6px;\n}\n.icure-text-field .icure-input:focus, .icure-text-field .icure-input:focus-within,\n.icure-text-field .input-container:focus,\n.icure-text-field .input-container:focus-within,\n.icure-button-group .icure-input:focus,\n.icure-button-group .icure-input:focus-within,\n.icure-button-group .input-container:focus,\n.icure-button-group .input-container:focus-within {\n box-shadow: 0px 0px 0px 2px rgba(61, 135, 197, 0.2);\n border-color: #084B83;\n}\n.icure-text-field .icure-input:hover,\n.icure-text-field .input-container:hover,\n.icure-button-group .icure-input:hover,\n.icure-button-group .input-container:hover {\n border-color: #084B83;\n box-shadow: none;\n}\n.icure-text-field .icure-input:hover:focus, .icure-text-field .icure-input:hover:focus-within,\n.icure-text-field .input-container:hover:focus,\n.icure-text-field .input-container:hover:focus-within,\n.icure-button-group .icure-input:hover:focus,\n.icure-button-group .icure-input:hover:focus-within,\n.icure-button-group .input-container:hover:focus,\n.icure-button-group .input-container:hover:focus-within {\n box-shadow: 0px 0px 0px 2px rgba(61, 135, 197, 0.2);\n border-color: #084B83;\n}\n.icure-text-field .icure-input .ProseMirror,\n.icure-text-field .input-container .ProseMirror,\n.icure-button-group .icure-input .ProseMirror,\n.icure-button-group .input-container .ProseMirror {\n padding: 0;\n font-size: 13px;\n line-height: 1.4em;\n color: #1D2235;\n}\n.icure-text-field .icure-input .ProseMirror .date,\n.icure-text-field .input-container .ProseMirror .date,\n.icure-button-group .icure-input .ProseMirror .date,\n.icure-button-group .input-container .ProseMirror .date {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror .time,\n.icure-text-field .input-container .ProseMirror .time,\n.icure-button-group .icure-input .ProseMirror .time,\n.icure-button-group .input-container .ProseMirror .time {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror:focus .focused, .icure-text-field .icure-input .ProseMirror:hover,\n.icure-text-field .input-container .ProseMirror:focus .focused,\n.icure-text-field .input-container .ProseMirror:hover,\n.icure-button-group .icure-input .ProseMirror:focus .focused,\n.icure-button-group .icure-input .ProseMirror:hover,\n.icure-button-group .input-container .ProseMirror:focus .focused,\n.icure-button-group .input-container .ProseMirror:hover {\n border-color: #084B83;\n}\n.icure-text-field .icure-input > svg,\n.icure-text-field .input-container > svg,\n.icure-button-group .icure-input > svg,\n.icure-button-group .input-container > svg {\n opacity: 0.5;\n}\n.icure-text-field .icure-input > svg path,\n.icure-text-field .input-container > svg path,\n.icure-button-group .icure-input > svg path,\n.icure-button-group .input-container > svg path {\n fill: #656565;\n}\n.icure-text-field .icure-input .extra,\n.icure-text-field .input-container .extra,\n.icure-button-group .icure-input .extra,\n.icure-button-group .input-container .extra {\n height: 20px;\n}\n.icure-text-field .icure-input .extra > .info,\n.icure-text-field .input-container .extra > .info,\n.icure-button-group .icure-input .extra > .info,\n.icure-button-group .input-container .extra > .info {\n color: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path,\n.icure-text-field .input-container .extra .buttons-container .btn svg path,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path,\n.icure-button-group .input-container .extra .buttons-container .btn svg path {\n fill: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-text-field .input-container .extra .buttons-container .btn svg path:hover,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-button-group .input-container .extra .buttons-container .btn svg path:hover {\n fill: #656565;\n opacity: 1;\n}\n.icure-text-field .icure-input .extra > .options > .selected,\n.icure-text-field .input-container .extra > .options > .selected,\n.icure-button-group .icure-input .extra > .options > .selected,\n.icure-button-group .input-container .extra > .options > .selected {\n color: white;\n background-color: #084B83;\n}\n\n.icure-button {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 32px;\n padding: 0 16px;\n background-color: #084B83;\n color: white;\n border-radius: 6px;\n cursor: pointer;\n}\n.icure-button:hover {\n background-color: #3D87C5;\n}\n\n.menu-container .item:hover {\n background: #DCE7F2;\n color: #274768;\n cursor: pointer;\n}\n.menu-container .item.existing {\n background-color: #BFE8EA;\n}\n.menu-container .item.selected {\n color: white;\n background-color: #084B83;\n}\n\ninput[type=radio] {\n margin-top: -1px;\n vertical-align: middle;\n}\n\n.icure-checkbox:hover {\n border-color: #DCE7F2;\n}\n.icure-checkbox:checked {\n accent-color: #084B83;\n}\n\n.icure-button-group > div {\n display: grid;\n}\n.icure-button-group > div > div {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.icure-button-group > div > div > .icure-button-group-label {\n z-index: 1;\n line-height: 1.4em;\n cursor: text;\n font-size: 14px;\n top: calc(1.4em + 1px);\n left: 9px;\n transition: transform 0.2s ease-out, color 0.2s ease-out;\n color: #1D2235;\n display: flex;\n align-items: center;\n max-width: 85%;\n min-width: 0;\n}\n.icure-button-group > div > div > .icure-button-group-label > span {\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-right: 8px;\n}\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}\n\n.icure-input #editor {\n color: #1D2235;\n}\n.icure-input #editor.tokens-list .ProseMirror li, .icure-input #editor.styled-tokens-list .ProseMirror li {\n background-color: #DCE7F2;\n}\n.icure-input #editor.tokens-list .ProseMirror li span:after, .icure-input #editor.styled-tokens-list .ProseMirror li span:after {\n background: transparent url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxu cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJPdXRsaW5lIiB2aWV3 Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iIzg4ODg4OCIgZmlsbD0iIzg4ODg4OCIg d2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiPjxwYXRoIGQ9Ik0xNiw4YTEsMSwwLDAs MC0xLjQxNCwwTDEyLDEwLjU4Niw5LjQxNCw4QTEsMSwwLDAsMCw4LDkuNDE0TDEw LjU4NiwxMiw4LDE0LjU4NkExLDEsMCwwLDAsOS40MTQsMTZMMTIsMTMuNDE0LDE0 LjU4NiwxNkExLDEsMCwwLDAsMTYsMTQuNTg2TDEzLjQxNCwxMiwxNiw5LjQxNEEx LDEsMCwwLDAsMTYsOFoiLz48cGF0aCBkPSJNMTIsMEExMiwxMiwwLDEsMCwyNCwx MiwxMi4wMTMsMTIuMDEzLDAsMCwwLDEyLDBabTAsMjJBMTAsMTAsMCwxLDEsMjIs MTIsMTAuMDExLDEwLjAxMSwwLDAsMSwxMiwyMloiLz48L3N2Zz4K\") no-repeat center/16px;\n}\n.icure-input #editor.items-list .ProseMirror li {\n border-bottom: 1px dotted #8DA6BF;\n}\n.icure-input .select-arrow {\n opacity: 1;\n}\n.icure-input .select-arrow svg {\n width: 15px;\n height: 15px;\n}\n.icure-input .select-arrow svg path {\n fill: #9CA8B2;\n}\n.icure-input .options {\n padding: 2px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n border-radius: 6px;\n background: white;\n box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 0px rgba(0, 0, 0, 0.05);\n}\n.icure-input .options .option {\n height: auto;\n min-height: unset;\n display: flex;\n padding: 8px;\n align-items: center;\n align-self: stretch;\n border-radius: 4px;\n background: white;\n color: #1D2235;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n cursor: pointer;\n}\n.icure-input .options .option:hover {\n background: #DCE7F2;\n color: #084B83;\n}\n.icure-input:hover .select-arrow svg path, .icure-input:focus .select-arrow svg path {\n fill: #084B83;\n}` \nimport { MetadataButtonBar } from '../../common/metadata-buttons-bar'\nimport { IcureButton } from '../../icure-button'\nimport { FormSelectionButton } from '../../icure-form/renderer/form/form-selection-button'\n\nclass EhrLiteIcureButtonGroup extends IcureButtonGroup {\n\tstatic get styles() {\n\t\treturn [...IcureButtonGroup.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureDatePickerField extends IcureDatePickerField {\n\tstatic get styles() {\n\t\treturn [...IcureDatePickerField.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureDropdownField extends IcureDropdownField {\n\tstatic get styles() {\n\t\treturn [...IcureDropdownField.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureForm extends IcureForm {\n\tstatic get styles() {\n\t\treturn [...IcureForm.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureLabel extends IcureLabel {\n\tstatic get styles() {\n\t\treturn [...IcureLabel.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureButton extends IcureButton {\n\tstatic get styles() {\n\t\treturn [...IcureButton.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureTextField extends IcureTextField {\n\tstatic get styles() {\n\t\treturn [...IcureTextField.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteLabel extends Label {\n\tstatic get styles() {\n\t\treturn [...Label.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteMetadataButtonBar extends MetadataButtonBar {\n\tstatic get styles() {\n\t\treturn [...MetadataButtonBar.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteButton extends Button {\n\tstatic get styles() {\n\t\treturn [...Button.styles, ehrLiteCss]\n\t}\n}\n\ncustomElements.define('icure-metadata-buttons-bar', EhrLiteMetadataButtonBar)\ncustomElements.define('icure-metadata-buttons-bar-wrapper', MetadataButtonBarWrapper)\n\ncustomElements.define('icure-form-checkbox', CheckBox)\ncustomElements.define('icure-form-date-picker', DatePicker)\ncustomElements.define('icure-form-date-time-picker', DateTimePicker)\ncustomElements.define('icure-form-dropdown-field', DropdownField)\ncustomElements.define('icure-button-group', EhrLiteIcureButtonGroup)\ncustomElements.define('icure-date-picker-field', EhrLiteIcureDatePickerField)\ncustomElements.define('icure-dropdown-field', EhrLiteIcureDropdownField)\ncustomElements.define('icure-form', EhrLiteIcureForm)\ncustomElements.define('icure-label', EhrLiteIcureLabel)\ncustomElements.define('icure-button', EhrLiteIcureButton)\ncustomElements.define('icure-text-field', EhrLiteIcureTextField)\ncustomElements.define('icure-form-items-list-field', ItemsListField)\ncustomElements.define('icure-form-label', EhrLiteLabel)\ncustomElements.define('icure-form-button', EhrLiteButton)\ncustomElements.define('icure-form-measure-field', MeasureField)\ncustomElements.define('icure-form-number-field', NumberField)\ncustomElements.define('icure-form-radio-button', RadioButton)\ncustomElements.define('icure-form-text-field', TextField)\ncustomElements.define('icure-form-time-picker', TimePicker)\ncustomElements.define('icure-form-token-field', TokenField)\ncustomElements.define('form-selection-button', FormSelectionButton)\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/themes/icure-blue/index.ts"],"names":[],"mappings":";;AAAA,oDAcgC;AAChC,iEAA2D;AAC3D,+DAA8D;AAC9D,qEAA+D;AAC/D,iDAA4C;AAC5C,mDAA8C;A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AC,yBAAyB,EAAE,2BAA2B,CAAC,CAAA;AAC7E,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AACxE,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AACrD,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACvD,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAA;AAChE,cAAc,CAAC,MAAM,CAAC,6BAA6B,EAAE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAA;AACvD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAY,CAAC,CAAA;AAC/D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAS,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,2CAAmB,CAAC,CAAA","sourcesContent":["import {\n\tCheckBox,\n\tDatePicker,\n\tDateTimePicker,\n\tDropdownField,\n\tItemsListField,\n\tLabel,\n\tButton,\n\tMeasureField,\n\tNumberField,\n\tRadioButton,\n\tTextField,\n\tTimePicker,\n\tTokenField,\n} from '../../icure-form/fields'\nimport { IcureButtonGroup } from '../../icure-button-group'\nimport { IcureDatePickerField } from '../../icure-date-picker'\nimport { IcureDropdownField } from '../../icure-dropdown-field'\nimport { IcureForm } from '../../icure-form'\nimport { IcureLabel } from '../../icure-label'\nimport { IcureTextField, MetadataButtonBarWrapper } from '../../icure-text-field'\n\n// @ts-ignore\nimport { css } from 'lit';\nconst ehrLiteCss = css`.tab-container {\n display: flex;\n flex-direction: column;\n}\n.tab-container .tab-bar {\n display: flex;\n align-self: stretch;\n padding: 0;\n}\n.tab-container .tab-bar ul {\n width: 100%;\n display: flex;\n align-items: flex-end;\n justify-content: flex-start;\n align-self: stretch;\n padding: 0;\n margin: 0;\n gap: 2px;\n box-sizing: border-box;\n position: relative;\n}\n.tab-container .tab-bar ul:before {\n border-bottom: 1px solid #DCE7F2;\n content: \"\";\n left: 0;\n position: absolute;\n right: 0;\n}\n.tab-container .tab-bar li {\n display: inline-block;\n padding: 8px 16px;\n cursor: pointer;\n color: #303443;\n font-size: 14px;\n font-weight: 400;\n border-radius: 8px 8px 0px 0px;\n z-index: 2;\n border-bottom: 2px solid transparent;\n}\n.tab-container .tab-bar li.active {\n background-color: white;\n border-bottom: 2px solid #084B83;\n color: #084B83;\n font-weight: 600;\n}\n.tab-container .tab-content {\n padding-top: 8px;\n}\n.tab-container .tab-content .tab {\n display: none;\n}\n.tab-container .tab-content .tab.active {\n display: block;\n}\n\n.icure-text-field,\n.icure-button-group {\n width: 100%;\n}\n.icure-text-field .icure-label,\n.icure-button-group .icure-label {\n color: #1D2235;\n font-size: 14px;\n font-weight: 400;\n}\n.icure-text-field .icure-label > span,\n.icure-button-group .icure-label > span {\n display: block;\n word-wrap: break-word;\n overflow: auto;\n font-weight: 400;\n}\n.icure-text-field > .icure-input,\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}\n.icure-text-field .icure-input,\n.icure-text-field .input-container,\n.icure-button-group .icure-input,\n.icure-button-group .input-container {\n cursor: pointer;\n border-radius: 6px;\n padding: 8px;\n width: 100%;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n outline: 0;\n font: inherit;\n font-size: 13px;\n line-height: 1.4em;\n display: flex;\n align-items: center;\n vertical-align: middle;\n position: relative;\n -webkit-appearance: none;\n background-color: #ffffff;\n border-color: #DDE3E7;\n color: #1D2235;\n box-sizing: border-box;\n}\n.icure-text-field .icure-input__validationError,\n.icure-text-field .input-container__validationError,\n.icure-button-group .icure-input__validationError,\n.icure-button-group .input-container__validationError {\n border-color: red;\n}\n.icure-text-field .icure-input__withMetadata,\n.icure-text-field .input-container__withMetadata,\n.icure-button-group .icure-input__withMetadata,\n.icure-button-group .input-container__withMetadata {\n border-radius: 6px 0 0 6px;\n}\n.icure-text-field .icure-input:focus, .icure-text-field .icure-input:focus-within,\n.icure-text-field .input-container:focus,\n.icure-text-field .input-container:focus-within,\n.icure-button-group .icure-input:focus,\n.icure-button-group .icure-input:focus-within,\n.icure-button-group .input-container:focus,\n.icure-button-group .input-container:focus-within {\n box-shadow: 0px 0px 0px 2px rgba(61, 135, 197, 0.2);\n border-color: #084B83;\n}\n.icure-text-field .icure-input:hover,\n.icure-text-field .input-container:hover,\n.icure-button-group .icure-input:hover,\n.icure-button-group .input-container:hover {\n border-color: #084B83;\n box-shadow: none;\n}\n.icure-text-field .icure-input:hover:focus, .icure-text-field .icure-input:hover:focus-within,\n.icure-text-field .input-container:hover:focus,\n.icure-text-field .input-container:hover:focus-within,\n.icure-button-group .icure-input:hover:focus,\n.icure-button-group .icure-input:hover:focus-within,\n.icure-button-group .input-container:hover:focus,\n.icure-button-group .input-container:hover:focus-within {\n box-shadow: 0px 0px 0px 2px rgba(61, 135, 197, 0.2);\n border-color: #084B83;\n}\n.icure-text-field .icure-input .ProseMirror,\n.icure-text-field .input-container .ProseMirror,\n.icure-button-group .icure-input .ProseMirror,\n.icure-button-group .input-container .ProseMirror {\n padding: 0;\n font-size: 13px;\n line-height: 1.4em;\n color: #1D2235;\n}\n.icure-text-field .icure-input .ProseMirror .date,\n.icure-text-field .input-container .ProseMirror .date,\n.icure-button-group .icure-input .ProseMirror .date,\n.icure-button-group .input-container .ProseMirror .date {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror .time,\n.icure-text-field .input-container .ProseMirror .time,\n.icure-button-group .icure-input .ProseMirror .time,\n.icure-button-group .input-container .ProseMirror .time {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror:focus .focused, .icure-text-field .icure-input .ProseMirror:hover,\n.icure-text-field .input-container .ProseMirror:focus .focused,\n.icure-text-field .input-container .ProseMirror:hover,\n.icure-button-group .icure-input .ProseMirror:focus .focused,\n.icure-button-group .icure-input .ProseMirror:hover,\n.icure-button-group .input-container .ProseMirror:focus .focused,\n.icure-button-group .input-container .ProseMirror:hover {\n border-color: #084B83;\n}\n.icure-text-field .icure-input > svg,\n.icure-text-field .input-container > svg,\n.icure-button-group .icure-input > svg,\n.icure-button-group .input-container > svg {\n opacity: 0.5;\n}\n.icure-text-field .icure-input > svg path,\n.icure-text-field .input-container > svg path,\n.icure-button-group .icure-input > svg path,\n.icure-button-group .input-container > svg path {\n fill: #656565;\n}\n.icure-text-field .icure-input .extra,\n.icure-text-field .input-container .extra,\n.icure-button-group .icure-input .extra,\n.icure-button-group .input-container .extra {\n height: 20px;\n}\n.icure-text-field .icure-input .extra > .info,\n.icure-text-field .input-container .extra > .info,\n.icure-button-group .icure-input .extra > .info,\n.icure-button-group .input-container .extra > .info {\n color: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path,\n.icure-text-field .input-container .extra .buttons-container .btn svg path,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path,\n.icure-button-group .input-container .extra .buttons-container .btn svg path {\n fill: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-text-field .input-container .extra .buttons-container .btn svg path:hover,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-button-group .input-container .extra .buttons-container .btn svg path:hover {\n fill: #656565;\n opacity: 1;\n}\n.icure-text-field .icure-input .extra > .options > .selected,\n.icure-text-field .input-container .extra > .options > .selected,\n.icure-button-group .icure-input .extra > .options > .selected,\n.icure-button-group .input-container .extra > .options > .selected {\n color: white;\n background-color: #084B83;\n}\n\n.icure-button {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 32px;\n padding: 0 16px;\n background-color: #084B83;\n color: white;\n border-radius: 6px;\n cursor: pointer;\n}\n.icure-button:hover {\n background-color: #3D87C5;\n}\n\n.menu-container .item:hover {\n background: #DCE7F2;\n color: #274768;\n cursor: pointer;\n}\n.menu-container .item.existing {\n background-color: #BFE8EA;\n}\n.menu-container .item.selected {\n color: white;\n background-color: #084B83;\n}\n\ninput[type=radio] {\n margin-top: -1px;\n vertical-align: middle;\n}\n\n.icure-checkbox:hover {\n border-color: #DCE7F2;\n}\n.icure-checkbox:checked {\n accent-color: #084B83;\n}\n\n.icure-button-group > div {\n display: grid;\n}\n.icure-button-group > div > div {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.icure-button-group > div > div > .icure-button-group-label {\n z-index: 1;\n line-height: 1.4em;\n cursor: text;\n font-size: 14px;\n top: add-three(1.4em, 1px, 0);\n left: add-two(8px, 1px);\n transition: transform 0.2s ease-out, color 0.2s ease-out;\n color: #1D2235;\n display: flex;\n align-items: center;\n max-width: 85%;\n min-width: 0;\n}\n.icure-button-group > div > div > .icure-button-group-label > span {\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-right: 8px;\n}\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}\n\n.icure-input #editor {\n color: #1D2235;\n}\n.icure-input #editor.tokens-list .ProseMirror li, .icure-input #editor.styled-tokens-list .ProseMirror li {\n background-color: #DCE7F2;\n}\n.icure-input #editor.tokens-list .ProseMirror li span:after, .icure-input #editor.styled-tokens-list .ProseMirror li span:after {\n background: transparent url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxu cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJPdXRsaW5lIiB2aWV3 Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iIzg4ODg4OCIgZmlsbD0iIzg4ODg4OCIg d2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiPjxwYXRoIGQ9Ik0xNiw4YTEsMSwwLDAs MC0xLjQxNCwwTDEyLDEwLjU4Niw5LjQxNCw4QTEsMSwwLDAsMCw4LDkuNDE0TDEw LjU4NiwxMiw4LDE0LjU4NkExLDEsMCwwLDAsOS40MTQsMTZMMTIsMTMuNDE0LDE0 LjU4NiwxNkExLDEsMCwwLDAsMTYsMTQuNTg2TDEzLjQxNCwxMiwxNiw5LjQxNEEx LDEsMCwwLDAsMTYsOFoiLz48cGF0aCBkPSJNMTIsMEExMiwxMiwwLDEsMCwyNCwx MiwxMi4wMTMsMTIuMDEzLDAsMCwwLDEyLDBabTAsMjJBMTAsMTAsMCwxLDEsMjIs MTIsMTAuMDExLDEwLjAxMSwwLDAsMSwxMiwyMloiLz48L3N2Zz4K\") no-repeat center/16px;\n}\n.icure-input #editor.items-list .ProseMirror li {\n border-bottom: 1px dotted #8DA6BF;\n}\n.icure-input .select-arrow {\n opacity: 1;\n}\n.icure-input .select-arrow svg {\n width: 15px;\n height: 15px;\n}\n.icure-input .select-arrow svg path {\n fill: #9CA8B2;\n}\n.icure-input .options {\n padding: 2px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n border-radius: 6px;\n background: white;\n box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 0px rgba(0, 0, 0, 0.05);\n}\n.icure-input .options .option {\n height: auto;\n min-height: unset;\n display: flex;\n padding: 8px;\n align-items: center;\n align-self: stretch;\n border-radius: 4px;\n background: white;\n color: #1D2235;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n cursor: pointer;\n}\n.icure-input .options .option:hover {\n background: #DCE7F2;\n color: #084B83;\n}\n.icure-input:hover .select-arrow svg path, .icure-input:focus .select-arrow svg path {\n fill: #084B83;\n}` \nimport { MetadataButtonBar } from '../../common/metadata-buttons-bar'\nimport { IcureButton } from '../../icure-button'\nimport { FormSelectionButton } from '../../icure-form/renderer/form/form-selection-button'\n\nclass EhrLiteIcureButtonGroup extends IcureButtonGroup {\n\tstatic get styles() {\n\t\treturn [...IcureButtonGroup.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureDatePickerField extends IcureDatePickerField {\n\tstatic get styles() {\n\t\treturn [...IcureDatePickerField.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureDropdownField extends IcureDropdownField {\n\tstatic get styles() {\n\t\treturn [...IcureDropdownField.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureForm extends IcureForm {\n\tstatic get styles() {\n\t\treturn [...IcureForm.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureLabel extends IcureLabel {\n\tstatic get styles() {\n\t\treturn [...IcureLabel.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureButton extends IcureButton {\n\tstatic get styles() {\n\t\treturn [...IcureButton.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteIcureTextField extends IcureTextField {\n\tstatic get styles() {\n\t\treturn [...IcureTextField.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteLabel extends Label {\n\tstatic get styles() {\n\t\treturn [...Label.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteMetadataButtonBar extends MetadataButtonBar {\n\tstatic get styles() {\n\t\treturn [...MetadataButtonBar.styles, ehrLiteCss]\n\t}\n}\nclass EhrLiteButton extends Button {\n\tstatic get styles() {\n\t\treturn [...Button.styles, ehrLiteCss]\n\t}\n}\n\ncustomElements.define('icure-metadata-buttons-bar', EhrLiteMetadataButtonBar)\ncustomElements.define('icure-metadata-buttons-bar-wrapper', MetadataButtonBarWrapper)\n\ncustomElements.define('icure-form-checkbox', CheckBox)\ncustomElements.define('icure-form-date-picker', DatePicker)\ncustomElements.define('icure-form-date-time-picker', DateTimePicker)\ncustomElements.define('icure-form-dropdown-field', DropdownField)\ncustomElements.define('icure-button-group', EhrLiteIcureButtonGroup)\ncustomElements.define('icure-date-picker-field', EhrLiteIcureDatePickerField)\ncustomElements.define('icure-dropdown-field', EhrLiteIcureDropdownField)\ncustomElements.define('icure-form', EhrLiteIcureForm)\ncustomElements.define('icure-label', EhrLiteIcureLabel)\ncustomElements.define('icure-button', EhrLiteIcureButton)\ncustomElements.define('icure-text-field', EhrLiteIcureTextField)\ncustomElements.define('icure-form-items-list-field', ItemsListField)\ncustomElements.define('icure-form-label', EhrLiteLabel)\ncustomElements.define('icure-form-button', EhrLiteButton)\ncustomElements.define('icure-form-measure-field', MeasureField)\ncustomElements.define('icure-form-number-field', NumberField)\ncustomElements.define('icure-form-radio-button', RadioButton)\ncustomElements.define('icure-form-text-field', TextField)\ncustomElements.define('icure-form-time-picker', TimePicker)\ncustomElements.define('icure-form-token-field', TokenField)\ncustomElements.define('form-selection-button', FormSelectionButton)\n"]}
@@ -9,7 +9,11 @@ const icure_label_1 = require("../../icure-label");
9
9
  const icure_text_field_1 = require("../../icure-text-field");
10
10
  // @ts-ignore
11
11
  const lit_1 = require("lit");
12
- const kendoCss = (0, lit_1.css) `.icure-text-field,
12
+ const kendoCss = (0, lit_1.css) `.tab-container .tab-bar li.active {
13
+ background-color: #656565;
14
+ }
15
+
16
+ .icure-text-field,
13
17
  .icure-button-group {
14
18
  padding-top: 16px;
15
19
  width: 100%;
@@ -181,8 +185,8 @@ app-date-picker {
181
185
  line-height: 1.4em;
182
186
  cursor: text;
183
187
  font-size: 14px;
184
- top: calc(1.4em + 1px);
185
- left: 9px;
188
+ top: add-three(1.4em, 1px, 0);
189
+ left: add-two(8px, 1px);
186
190
  color: #656565;
187
191
  align-items: center;
188
192
  height: 28px;
@@ -208,8 +212,8 @@ app-date-picker {
208
212
  line-height: 1.4em;
209
213
  cursor: text;
210
214
  font-size: 14px;
211
- top: calc(1.4em + 1px);
212
- left: 9px;
215
+ top: add-three(1.4em, 1px, 0);
216
+ left: add-two(8px, 1px);
213
217
  transition: transform 0.2s ease-out, color 0.2s ease-out;
214
218
  color: #656565;
215
219
  display: flex;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/themes/kendo/index.ts"],"names":[],"mappings":";;AAAA,oDAcgC;AAChC,iEAA2D;AAC3D,+DAA8D;AAC9D,qEAA+D;AAC/D,iDAA4C;AAC5C,mDAA8C;AAC9C,6DAAiF;AAEjF,aAAa;AACb,6BAA0B;AAC1B,MAAM,QAAQ,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2NlB,CAAA;AACF,4EAAqE;AACrE,qDAAgD;AAChD,gGAA0F;AAE1F,MAAM,qBAAsB,SAAQ,qCAAgB;IACnD,MAAM,KAAK,MAAM;QAChB,OAAO,CAAC,GAAG,qCAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC9C,CAAC;CACD;AACD,MAAM,yBAA0B,SAAQ,wCAAoB;IAC3D,MAAM,KAAK,MAAM;QAChB,OAAO,CAAC,GAAG,wCAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAClD,CAAC;CACD;AACD,MAAM,uBAAwB,SAAQ,yCAAkB;IACvD,MAAM,KAAK,MAAM;QAChB,OAAO,CAAC,GAAG,yCAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAChD,CAAC;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,CAAC,CAAA","sourcesContent":["import {\n\tCheckBox,\n\tDatePicker,\n\tDateTimePicker,\n\tDropdownField,\n\tItemsListField,\n\tLabel,\n\tButton,\n\tMeasureField,\n\tNumberField,\n\tRadioButton,\n\tTextField,\n\tTimePicker,\n\tTokenField,\n} from '../../icure-form/fields'\nimport { IcureButtonGroup } from '../../icure-button-group'\nimport { IcureDatePickerField } from '../../icure-date-picker'\nimport { IcureDropdownField } from '../../icure-dropdown-field'\nimport { IcureForm } from '../../icure-form'\nimport { IcureLabel } from '../../icure-label'\nimport { IcureTextField, MetadataButtonBarWrapper } from '../../icure-text-field'\n\n// @ts-ignore\nimport { css } from 'lit';\nconst kendoCss = css`.icure-text-field,\n.icure-button-group {\n padding-top: 16px;\n width: 100%;\n}\n.icure-text-field .icure-label,\n.icure-button-group .icure-label {\n color: #656565;\n font-size: 14px;\n font-weight: 500;\n display: inline !important;\n white-space: initial !important;\n overflow: initial !important;\n word-wrap: normal !important;\n word-break: break-word;\n}\n.icure-text-field > .icure-input,\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}\n.icure-text-field > .icure-label,\n.icure-button-group > .icure-label {\n transform: translate(0, 0) scale(1);\n}\n.icure-text-field .icure-input,\n.icure-text-field .input-container,\n.icure-button-group .icure-input,\n.icure-button-group .input-container {\n border-radius: 2px;\n padding: 0 8px;\n width: 100%;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n outline: 0;\n font: inherit;\n font-size: 14px;\n line-height: 1.4em;\n display: flex;\n align-items: center;\n vertical-align: middle;\n position: relative;\n -webkit-appearance: none;\n background-color: #ffffff;\n border-color: rgba(0, 0, 0, 0.08);\n color: #656565;\n box-sizing: border-box;\n}\n.icure-text-field .icure-input:focus, .icure-text-field .icure-input:focus-within,\n.icure-text-field .input-container:focus,\n.icure-text-field .input-container:focus-within,\n.icure-button-group .icure-input:focus,\n.icure-button-group .icure-input:focus-within,\n.icure-button-group .input-container:focus,\n.icure-button-group .input-container:focus-within {\n box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);\n}\n.icure-text-field .icure-input:hover,\n.icure-text-field .input-container:hover,\n.icure-button-group .icure-input:hover,\n.icure-button-group .input-container:hover {\n border-color: rgba(0, 0, 0, 0.15);\n box-shadow: none;\n}\n.icure-text-field .icure-input:hover:focus, .icure-text-field .icure-input:hover:focus-within,\n.icure-text-field .input-container:hover:focus,\n.icure-text-field .input-container:hover:focus-within,\n.icure-button-group .icure-input:hover:focus,\n.icure-button-group .icure-input:hover:focus-within,\n.icure-button-group .input-container:hover:focus,\n.icure-button-group .input-container:hover:focus-within {\n box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);\n}\n.icure-text-field .icure-input .ProseMirror,\n.icure-text-field .input-container .ProseMirror,\n.icure-button-group .icure-input .ProseMirror,\n.icure-button-group .input-container .ProseMirror {\n padding: 0;\n font-size: 14px;\n line-height: 1.4em;\n color: #656565;\n}\n.icure-text-field .icure-input .ProseMirror .date,\n.icure-text-field .input-container .ProseMirror .date,\n.icure-button-group .icure-input .ProseMirror .date,\n.icure-button-group .input-container .ProseMirror .date {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror .time,\n.icure-text-field .input-container .ProseMirror .time,\n.icure-button-group .icure-input .ProseMirror .time,\n.icure-button-group .input-container .ProseMirror .time {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror:focus .focused,\n.icure-text-field .input-container .ProseMirror:focus .focused,\n.icure-button-group .icure-input .ProseMirror:focus .focused,\n.icure-button-group .input-container .ProseMirror:focus .focused {\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 3px;\n border-color: rgba(0, 0, 0, 0.1);\n}\n.icure-text-field .icure-input > svg,\n.icure-text-field .input-container > svg,\n.icure-button-group .icure-input > svg,\n.icure-button-group .input-container > svg {\n opacity: 0.5;\n}\n.icure-text-field .icure-input > svg path,\n.icure-text-field .input-container > svg path,\n.icure-button-group .icure-input > svg path,\n.icure-button-group .input-container > svg path {\n fill: #656565;\n}\n.icure-text-field .icure-input .extra,\n.icure-text-field .input-container .extra,\n.icure-button-group .icure-input .extra,\n.icure-button-group .input-container .extra {\n height: 20px;\n}\n.icure-text-field .icure-input .extra > .info,\n.icure-text-field .input-container .extra > .info,\n.icure-button-group .icure-input .extra > .info,\n.icure-button-group .input-container .extra > .info {\n color: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path,\n.icure-text-field .input-container .extra .buttons-container .btn svg path,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path,\n.icure-button-group .input-container .extra .buttons-container .btn svg path {\n fill: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-text-field .input-container .extra .buttons-container .btn svg path:hover,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-button-group .input-container .extra .buttons-container .btn svg path:hover {\n fill: #656565;\n opacity: 1;\n}\n.icure-text-field .icure-input .extra > .options > .selected,\n.icure-text-field .input-container .extra > .options > .selected,\n.icure-button-group .icure-input .extra > .options > .selected,\n.icure-button-group .input-container .extra > .options > .selected {\n color: white;\n background-color: #06a070;\n border-radius: 0 !important;\n}\n\ninput[type=radio] {\n margin-top: -1px;\n vertical-align: middle;\n}\n\n.icure-checkbox:checked {\n accent-color: #06a070;\n}\n\napp-date-picker {\n --app-primary: #06a070;\n --app-hover: #06a070;\n --app-selected-hover: #06a070;\n}\n\n.icure-button-group > .icure-label {\n z-index: 1;\n pointer-events: none;\n line-height: 1.4em;\n cursor: text;\n font-size: 14px;\n top: calc(1.4em + 1px);\n left: 9px;\n color: #656565;\n align-items: center;\n height: 28px;\n max-width: 85%;\n min-width: 0;\n}\n.icure-button-group > .icure-label > span {\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-right: 8px;\n}\n.icure-button-group > div {\n display: grid;\n}\n.icure-button-group > div > div {\n display: flex;\n align-items: center;\n}\n.icure-button-group > div > div > .icure-button-group-label {\n z-index: 1;\n line-height: 1.4em;\n cursor: text;\n font-size: 14px;\n top: calc(1.4em + 1px);\n left: 9px;\n transition: transform 0.2s ease-out, color 0.2s ease-out;\n color: #656565;\n display: flex;\n align-items: center;\n height: 28px;\n max-width: 85%;\n min-width: 0;\n}\n.icure-button-group > div > div > .icure-button-group-label > span {\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-right: 8px;\n}\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}` \nimport { MetadataButtonBar } from '../../common/metadata-buttons-bar'\nimport { IcureButton } from '../../icure-button'\nimport { FormSelectionButton } from '../../icure-form/renderer/form/form-selection-button'\n\nclass KendoIcureButtonGroup extends IcureButtonGroup {\n\tstatic get styles() {\n\t\treturn [...IcureButtonGroup.styles, kendoCss]\n\t}\n}\nclass KendoIcureDatePickerField extends IcureDatePickerField {\n\tstatic get styles() {\n\t\treturn [...IcureDatePickerField.styles, kendoCss]\n\t}\n}\nclass KendoIcureDropdownField extends IcureDropdownField {\n\tstatic get styles() {\n\t\treturn [...IcureDropdownField.styles, kendoCss]\n\t}\n}\nclass KendoIcureForm extends IcureForm {\n\tstatic get styles() {\n\t\treturn [...IcureForm.styles, kendoCss]\n\t}\n}\nclass KendoIcureLabel extends IcureLabel {\n\tstatic get styles() {\n\t\treturn [...IcureLabel.styles, kendoCss]\n\t}\n}\nclass KendoIcureButton extends IcureButton {\n\tstatic get styles() {\n\t\treturn [...IcureButton.styles, kendoCss]\n\t}\n}\nclass KendoIcureTextField extends IcureTextField {\n\tstatic get styles() {\n\t\treturn [...IcureTextField.styles, kendoCss]\n\t}\n}\nclass KendoLabel extends Label {\n\tstatic get styles() {\n\t\treturn [...Label.styles, kendoCss]\n\t}\n}\nclass KendoMetadataButtonBar extends MetadataButtonBar {\n\tstatic get styles() {\n\t\treturn [...MetadataButtonBar.styles, kendoCss]\n\t}\n}\nclass KendoButton extends Button {\n\tstatic get styles() {\n\t\treturn [...Button.styles, kendoCss]\n\t}\n}\n\ncustomElements.define('icure-metadata-buttons-bar', KendoMetadataButtonBar)\ncustomElements.define('icure-metadata-buttons-bar-wrapper', MetadataButtonBarWrapper)\n\ncustomElements.define('icure-form-checkbox', CheckBox)\ncustomElements.define('icure-form-date-picker', DatePicker)\ncustomElements.define('icure-form-date-time-picker', DateTimePicker)\ncustomElements.define('icure-form-dropdown-field', DropdownField)\ncustomElements.define('icure-button-group', KendoIcureButtonGroup)\ncustomElements.define('icure-date-picker-field', KendoIcureDatePickerField)\ncustomElements.define('icure-dropdown-field', KendoIcureDropdownField)\ncustomElements.define('icure-form', KendoIcureForm)\ncustomElements.define('icure-label', KendoIcureLabel)\ncustomElements.define('icure-button', KendoIcureButton)\ncustomElements.define('icure-text-field', KendoIcureTextField)\ncustomElements.define('icure-form-items-list-field', ItemsListField)\ncustomElements.define('icure-form-label', KendoLabel)\ncustomElements.define('icure-form-button', KendoButton)\ncustomElements.define('icure-form-measure-field', MeasureField)\ncustomElements.define('icure-form-number-field', NumberField)\ncustomElements.define('icure-form-radio-button', RadioButton)\ncustomElements.define('icure-form-text-field', TextField)\ncustomElements.define('icure-form-time-picker', TimePicker)\ncustomElements.define('icure-form-token-field', TokenField)\ncustomElements.define('form-selection-button', FormSelectionButton)\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tmp/components/themes/kendo/index.ts"],"names":[],"mappings":";;AAAA,oDAcgC;AAChC,iEAA2D;AAC3D,+DAA8D;AAC9D,qEAA+D;AAC/D,iDAA4C;AAC5C,mDAA8C;AAC9C,6DAAiF;AAEjF,aAAa;AACb,6BAA0B;AAC1B,MAAM,QAAQ,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AE,uBAAc,CAAC,CAAA;AACpE,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAA;AACrD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAA;AACvD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAY,CAAC,CAAA;AAC/D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAW,CAAC,CAAA;AAC7D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAS,CAAC,CAAA;AACzD,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,mBAAU,CAAC,CAAA;AAC3D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,2CAAmB,CAAC,CAAA","sourcesContent":["import {\n\tCheckBox,\n\tDatePicker,\n\tDateTimePicker,\n\tDropdownField,\n\tItemsListField,\n\tLabel,\n\tButton,\n\tMeasureField,\n\tNumberField,\n\tRadioButton,\n\tTextField,\n\tTimePicker,\n\tTokenField,\n} from '../../icure-form/fields'\nimport { IcureButtonGroup } from '../../icure-button-group'\nimport { IcureDatePickerField } from '../../icure-date-picker'\nimport { IcureDropdownField } from '../../icure-dropdown-field'\nimport { IcureForm } from '../../icure-form'\nimport { IcureLabel } from '../../icure-label'\nimport { IcureTextField, MetadataButtonBarWrapper } from '../../icure-text-field'\n\n// @ts-ignore\nimport { css } from 'lit';\nconst kendoCss = css`.tab-container .tab-bar li.active {\n background-color: #656565;\n}\n\n.icure-text-field,\n.icure-button-group {\n padding-top: 16px;\n width: 100%;\n}\n.icure-text-field .icure-label,\n.icure-button-group .icure-label {\n color: #656565;\n font-size: 14px;\n font-weight: 500;\n display: inline !important;\n white-space: initial !important;\n overflow: initial !important;\n word-wrap: normal !important;\n word-break: break-word;\n}\n.icure-text-field > .icure-input,\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}\n.icure-text-field > .icure-label,\n.icure-button-group > .icure-label {\n transform: translate(0, 0) scale(1);\n}\n.icure-text-field .icure-input,\n.icure-text-field .input-container,\n.icure-button-group .icure-input,\n.icure-button-group .input-container {\n border-radius: 2px;\n padding: 0 8px;\n width: 100%;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n outline: 0;\n font: inherit;\n font-size: 14px;\n line-height: 1.4em;\n display: flex;\n align-items: center;\n vertical-align: middle;\n position: relative;\n -webkit-appearance: none;\n background-color: #ffffff;\n border-color: rgba(0, 0, 0, 0.08);\n color: #656565;\n box-sizing: border-box;\n}\n.icure-text-field .icure-input:focus, .icure-text-field .icure-input:focus-within,\n.icure-text-field .input-container:focus,\n.icure-text-field .input-container:focus-within,\n.icure-button-group .icure-input:focus,\n.icure-button-group .icure-input:focus-within,\n.icure-button-group .input-container:focus,\n.icure-button-group .input-container:focus-within {\n box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);\n}\n.icure-text-field .icure-input:hover,\n.icure-text-field .input-container:hover,\n.icure-button-group .icure-input:hover,\n.icure-button-group .input-container:hover {\n border-color: rgba(0, 0, 0, 0.15);\n box-shadow: none;\n}\n.icure-text-field .icure-input:hover:focus, .icure-text-field .icure-input:hover:focus-within,\n.icure-text-field .input-container:hover:focus,\n.icure-text-field .input-container:hover:focus-within,\n.icure-button-group .icure-input:hover:focus,\n.icure-button-group .icure-input:hover:focus-within,\n.icure-button-group .input-container:hover:focus,\n.icure-button-group .input-container:hover:focus-within {\n box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.06);\n}\n.icure-text-field .icure-input .ProseMirror,\n.icure-text-field .input-container .ProseMirror,\n.icure-button-group .icure-input .ProseMirror,\n.icure-button-group .input-container .ProseMirror {\n padding: 0;\n font-size: 14px;\n line-height: 1.4em;\n color: #656565;\n}\n.icure-text-field .icure-input .ProseMirror .date,\n.icure-text-field .input-container .ProseMirror .date,\n.icure-button-group .icure-input .ProseMirror .date,\n.icure-button-group .input-container .ProseMirror .date {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror .time,\n.icure-text-field .input-container .ProseMirror .time,\n.icure-button-group .icure-input .ProseMirror .time,\n.icure-button-group .input-container .ProseMirror .time {\n padding: 1px;\n}\n.icure-text-field .icure-input .ProseMirror:focus .focused,\n.icure-text-field .input-container .ProseMirror:focus .focused,\n.icure-button-group .icure-input .ProseMirror:focus .focused,\n.icure-button-group .input-container .ProseMirror:focus .focused {\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 3px;\n border-color: rgba(0, 0, 0, 0.1);\n}\n.icure-text-field .icure-input > svg,\n.icure-text-field .input-container > svg,\n.icure-button-group .icure-input > svg,\n.icure-button-group .input-container > svg {\n opacity: 0.5;\n}\n.icure-text-field .icure-input > svg path,\n.icure-text-field .input-container > svg path,\n.icure-button-group .icure-input > svg path,\n.icure-button-group .input-container > svg path {\n fill: #656565;\n}\n.icure-text-field .icure-input .extra,\n.icure-text-field .input-container .extra,\n.icure-button-group .icure-input .extra,\n.icure-button-group .input-container .extra {\n height: 20px;\n}\n.icure-text-field .icure-input .extra > .info,\n.icure-text-field .input-container .extra > .info,\n.icure-button-group .icure-input .extra > .info,\n.icure-button-group .input-container .extra > .info {\n color: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path,\n.icure-text-field .input-container .extra .buttons-container .btn svg path,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path,\n.icure-button-group .input-container .extra .buttons-container .btn svg path {\n fill: #656565;\n opacity: 0.5;\n}\n.icure-text-field .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-text-field .input-container .extra .buttons-container .btn svg path:hover,\n.icure-button-group .icure-input .extra .buttons-container .btn svg path:hover,\n.icure-button-group .input-container .extra .buttons-container .btn svg path:hover {\n fill: #656565;\n opacity: 1;\n}\n.icure-text-field .icure-input .extra > .options > .selected,\n.icure-text-field .input-container .extra > .options > .selected,\n.icure-button-group .icure-input .extra > .options > .selected,\n.icure-button-group .input-container .extra > .options > .selected {\n color: white;\n background-color: #06a070;\n border-radius: 0 !important;\n}\n\ninput[type=radio] {\n margin-top: -1px;\n vertical-align: middle;\n}\n\n.icure-checkbox:checked {\n accent-color: #06a070;\n}\n\napp-date-picker {\n --app-primary: #06a070;\n --app-hover: #06a070;\n --app-selected-hover: #06a070;\n}\n\n.icure-button-group > .icure-label {\n z-index: 1;\n pointer-events: none;\n line-height: 1.4em;\n cursor: text;\n font-size: 14px;\n top: add-three(1.4em, 1px, 0);\n left: add-two(8px, 1px);\n color: #656565;\n align-items: center;\n height: 28px;\n max-width: 85%;\n min-width: 0;\n}\n.icure-button-group > .icure-label > span {\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-right: 8px;\n}\n.icure-button-group > div {\n display: grid;\n}\n.icure-button-group > div > div {\n display: flex;\n align-items: center;\n}\n.icure-button-group > div > div > .icure-button-group-label {\n z-index: 1;\n line-height: 1.4em;\n cursor: text;\n font-size: 14px;\n top: add-three(1.4em, 1px, 0);\n left: add-two(8px, 1px);\n transition: transform 0.2s ease-out, color 0.2s ease-out;\n color: #656565;\n display: flex;\n align-items: center;\n height: 28px;\n max-width: 85%;\n min-width: 0;\n}\n.icure-button-group > div > div > .icure-button-group-label > span {\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-right: 8px;\n}\n.icure-button-group > .icure-input {\n flex: 1 1 auto;\n width: auto;\n}` \nimport { MetadataButtonBar } from '../../common/metadata-buttons-bar'\nimport { IcureButton } from '../../icure-button'\nimport { FormSelectionButton } from '../../icure-form/renderer/form/form-selection-button'\n\nclass KendoIcureButtonGroup extends IcureButtonGroup {\n\tstatic get styles() {\n\t\treturn [...IcureButtonGroup.styles, kendoCss]\n\t}\n}\nclass KendoIcureDatePickerField extends IcureDatePickerField {\n\tstatic get styles() {\n\t\treturn [...IcureDatePickerField.styles, kendoCss]\n\t}\n}\nclass KendoIcureDropdownField extends IcureDropdownField {\n\tstatic get styles() {\n\t\treturn [...IcureDropdownField.styles, kendoCss]\n\t}\n}\nclass KendoIcureForm extends IcureForm {\n\tstatic get styles() {\n\t\treturn [...IcureForm.styles, kendoCss]\n\t}\n}\nclass KendoIcureLabel extends IcureLabel {\n\tstatic get styles() {\n\t\treturn [...IcureLabel.styles, kendoCss]\n\t}\n}\nclass KendoIcureButton extends IcureButton {\n\tstatic get styles() {\n\t\treturn [...IcureButton.styles, kendoCss]\n\t}\n}\nclass KendoIcureTextField extends IcureTextField {\n\tstatic get styles() {\n\t\treturn [...IcureTextField.styles, kendoCss]\n\t}\n}\nclass KendoLabel extends Label {\n\tstatic get styles() {\n\t\treturn [...Label.styles, kendoCss]\n\t}\n}\nclass KendoMetadataButtonBar extends MetadataButtonBar {\n\tstatic get styles() {\n\t\treturn [...MetadataButtonBar.styles, kendoCss]\n\t}\n}\nclass KendoButton extends Button {\n\tstatic get styles() {\n\t\treturn [...Button.styles, kendoCss]\n\t}\n}\n\ncustomElements.define('icure-metadata-buttons-bar', KendoMetadataButtonBar)\ncustomElements.define('icure-metadata-buttons-bar-wrapper', MetadataButtonBarWrapper)\n\ncustomElements.define('icure-form-checkbox', CheckBox)\ncustomElements.define('icure-form-date-picker', DatePicker)\ncustomElements.define('icure-form-date-time-picker', DateTimePicker)\ncustomElements.define('icure-form-dropdown-field', DropdownField)\ncustomElements.define('icure-button-group', KendoIcureButtonGroup)\ncustomElements.define('icure-date-picker-field', KendoIcureDatePickerField)\ncustomElements.define('icure-dropdown-field', KendoIcureDropdownField)\ncustomElements.define('icure-form', KendoIcureForm)\ncustomElements.define('icure-label', KendoIcureLabel)\ncustomElements.define('icure-button', KendoIcureButton)\ncustomElements.define('icure-text-field', KendoIcureTextField)\ncustomElements.define('icure-form-items-list-field', ItemsListField)\ncustomElements.define('icure-form-label', KendoLabel)\ncustomElements.define('icure-form-button', KendoButton)\ncustomElements.define('icure-form-measure-field', MeasureField)\ncustomElements.define('icure-form-number-field', NumberField)\ncustomElements.define('icure-form-radio-button', RadioButton)\ncustomElements.define('icure-form-text-field', TextField)\ncustomElements.define('icure-form-time-picker', TimePicker)\ncustomElements.define('icure-form-token-field', TokenField)\ncustomElements.define('form-selection-button', FormSelectionButton)\n"]}