@icure/form 1.0.4 → 1.0.5

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 (67) hide show
  1. package/lib/components/iqr-form/index.js +59 -6
  2. package/lib/components/iqr-form/renderer/cards.js +2 -1
  3. package/lib/components/iqr-form/renderer/form.js +2 -1
  4. package/lib/components/iqr-text-field/index.js +748 -3
  5. package/lib/components/iqr-text-field/plugin/caret-fix-plugin.js +2 -1
  6. package/lib/components/iqr-text-field/plugin/has-content-class-plugin.js +2 -1
  7. package/lib/components/iqr-text-field/plugin/mask-plugin.js +2 -1
  8. package/lib/components/iqr-text-field/plugin/regexp-plugin.js +2 -1
  9. package/package.json +2 -2
  10. package/lib/iqr-form/fields/datePicker.d.ts +0 -8
  11. package/lib/iqr-form/fields/datePicker.js +0 -42
  12. package/lib/iqr-form/fields/dateTimePicker.d.ts +0 -8
  13. package/lib/iqr-form/fields/dateTimePicker.js +0 -42
  14. package/lib/iqr-form/fields/measureField.d.ts +0 -8
  15. package/lib/iqr-form/fields/measureField.js +0 -42
  16. package/lib/iqr-form/fields/multipleChoice.d.ts +0 -8
  17. package/lib/iqr-form/fields/multipleChoice.js +0 -42
  18. package/lib/iqr-form/fields/numberField.d.ts +0 -8
  19. package/lib/iqr-form/fields/numberField.js +0 -42
  20. package/lib/iqr-form/fields/textfield.d.ts +0 -1
  21. package/lib/iqr-form/fields/textfield.js +0 -86
  22. package/lib/iqr-form/fields/timePicker.d.ts +0 -8
  23. package/lib/iqr-form/fields/timePicker.js +0 -42
  24. package/lib/iqr-form/index.d.ts +0 -7
  25. package/lib/iqr-form/index.js +0 -83
  26. package/lib/iqr-form/model/index.d.ts +0 -78
  27. package/lib/iqr-form/model/index.js +0 -114
  28. package/lib/iqr-form/renderer/cards.d.ts +0 -2
  29. package/lib/iqr-form/renderer/cards.js +0 -43
  30. package/lib/iqr-form/renderer/form.d.ts +0 -2
  31. package/lib/iqr-form/renderer/form.js +0 -44
  32. package/lib/iqr-form/renderer/index.d.ts +0 -3
  33. package/lib/iqr-form/renderer/index.js +0 -2
  34. package/lib/iqr-text-field/index.d.ts +0 -2
  35. package/lib/iqr-text-field/index.js +0 -335
  36. package/lib/iqr-text-field/plugin/caret-fix-plugin.d.ts +0 -2
  37. package/lib/iqr-text-field/plugin/caret-fix-plugin.js +0 -23
  38. package/lib/iqr-text-field/plugin/has-content-class-plugin.d.ts +0 -2
  39. package/lib/iqr-text-field/plugin/has-content-class-plugin.js +0 -18
  40. package/lib/iqr-text-field/plugin/mask-plugin.d.ts +0 -2
  41. package/lib/iqr-text-field/plugin/mask-plugin.js +0 -143
  42. package/lib/iqr-text-field/plugin/regexp-plugin.d.ts +0 -2
  43. package/lib/iqr-text-field/plugin/regexp-plugin.js +0 -46
  44. package/lib/iqr-text-field/prosemirror-commands.d.ts +0 -4
  45. package/lib/iqr-text-field/prosemirror-commands.js +0 -52
  46. package/lib/iqr-text-field/prosemirror-utils.d.ts +0 -5
  47. package/lib/iqr-text-field/prosemirror-utils.js +0 -15
  48. package/lib/iqr-text-field/schema/common-marks.d.ts +0 -10
  49. package/lib/iqr-text-field/schema/common-marks.js +0 -90
  50. package/lib/iqr-text-field/schema/date-time-schema.d.ts +0 -7
  51. package/lib/iqr-text-field/schema/date-time-schema.js +0 -88
  52. package/lib/iqr-text-field/schema/decimal-schema.d.ts +0 -3
  53. package/lib/iqr-text-field/schema/decimal-schema.js +0 -27
  54. package/lib/iqr-text-field/schema/index.d.ts +0 -11
  55. package/lib/iqr-text-field/schema/index.js +0 -18
  56. package/lib/iqr-text-field/schema/markdown-schema.d.ts +0 -8
  57. package/lib/iqr-text-field/schema/markdown-schema.js +0 -139
  58. package/lib/iqr-text-field/schema/measure-schema.d.ts +0 -3
  59. package/lib/iqr-text-field/schema/measure-schema.js +0 -35
  60. package/lib/iqr-text-field/schema/token-schema.d.ts +0 -6
  61. package/lib/iqr-text-field/schema/token-schema.js +0 -36
  62. package/lib/iqr-text-field/schema/utils.d.ts +0 -11
  63. package/lib/iqr-text-field/schema/utils.js +0 -11
  64. package/lib/iqr-text-field/selection-companion.d.ts +0 -11
  65. package/lib/iqr-text-field/selection-companion.js +0 -52
  66. package/lib/iqr-text-field/suggestion-palette.d.ts +0 -33
  67. package/lib/iqr-text-field/suggestion-palette.js +0 -139
@@ -8,9 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  // Import the LitElement base class and html helper function
16
13
  const lit_element_1 = require("lit-element");
@@ -23,9 +20,65 @@ require("./fields/timePicker");
23
20
  require("./fields/dateTimePicker");
24
21
  require("./fields/multipleChoice");
25
22
  // @ts-ignore
26
- const style_scss_1 = __importDefault(require("./styles/style.scss"));
23
+ const lit_element_2 = require("lit-element");
24
+ const baseCss = lit_element_2.css `.iqr-form {
25
+ display: flex;
26
+ flex-flow: row wrap;
27
+ align-items: center;
28
+ font-family: "Roboto", Helvetica, sans-serif;
29
+ }
30
+ .iqr-form h2 {
31
+ width: 100%;
32
+ font-size: 2em;
33
+ margin-top: 1em;
34
+ }
35
+ .iqr-form h3 {
36
+ width: 100%;
37
+ font-size: 1.2em;
38
+ font-weight: normal;
39
+ color: #282829;
40
+ margin: 0;
41
+ }
42
+ .iqr-form > * {
43
+ margin: 0 24px 0 0;
44
+ }
45
+ .iqr-form iqr-form-textfield {
46
+ flex: 2 1 50%;
47
+ }
48
+ .iqr-form iqr-form-date-picker {
49
+ flex: 1 1 25%;
50
+ }
51
+ .iqr-form iqr-form-number-field {
52
+ flex: 1 1 25%;
53
+ }
54
+ .iqr-form iqr-form-measure-field {
55
+ flex: 1 1 25%;
56
+ }
57
+ .iqr-form iqr-form-time-picker {
58
+ flex: 1 1 25%;
59
+ }
60
+ .iqr-form iqr-form-date-time-picker {
61
+ flex: 1 1 25%;
62
+ }
63
+ .iqr-form iqr-form-multiple-choice {
64
+ flex: 2 1 50%;
65
+ }
66
+ .iqr-form .group {
67
+ background: #f6f6f6;
68
+ padding: 24px 0 24px 24px;
69
+ border-radius: 12px;
70
+ margin: 24px 0;
71
+ width: 100%;
72
+ display: flex;
73
+ flex-flow: row wrap;
74
+ align-items: center;
75
+ justify-content: flex-start;
76
+ }
77
+ .iqr-form .group > * {
78
+ margin: 0 24px 0 0;
79
+ }`;
27
80
  // @ts-ignore
28
- const kendo_scss_1 = __importDefault(require("./styles/kendo.scss"));
81
+ const kendoCss = lit_element_2.css ``;
29
82
  const cards_1 = require("./renderer/cards");
30
83
  const form_1 = require("./renderer/form");
31
84
  // Extend the LitElement base class
@@ -45,7 +98,7 @@ class IqrForm extends lit_element_1.LitElement {
45
98
  super.disconnectedCallback();
46
99
  }
47
100
  static get styles() {
48
- return [style_scss_1.default, kendo_scss_1.default];
101
+ return [baseCss, kendoCss];
49
102
  }
50
103
  render() {
51
104
  const renderer = this.renderer === 'form' ? form_1.render :
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.render = void 0;
4
4
  const lit_element_1 = require("lit-element");
5
5
  const model_1 = require("../model");
6
- exports.render = (form, props, state, setState) => {
6
+ const render = (form, props, state, setState) => {
7
7
  var _a;
8
8
  const h = function (level, content) {
9
9
  return level === 1 ? lit_element_1.html `<h1>${content}</h1>` :
@@ -41,3 +41,4 @@ ${(_a = form === null || form === void 0 ? void 0 : form.sections) === null || _
41
41
  </div>
42
42
  `;
43
43
  };
44
+ exports.render = render;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.render = void 0;
4
4
  const lit_element_1 = require("lit-element");
5
5
  const model_1 = require("../model");
6
- exports.render = (form, props, state, setState) => {
6
+ const render = (form, props, state, setState) => {
7
7
  var _a;
8
8
  const h = function (level, content) {
9
9
  return level === 1 ? lit_element_1.html `<h1>${content}</h1>` :
@@ -42,3 +42,4 @@ ${(_a = form === null || form === void 0 ? void 0 : form.sections) === null || _
42
42
  </div>
43
43
  `;
44
44
  };
45
+ exports.render = render;