@icure/form 1.0.4 → 1.0.8
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.
- package/{lib/components → components}/index.d.ts +0 -0
- package/{lib/components → components}/index.js +0 -0
- package/{lib/components → components}/iqr-form/fields/datePicker.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/datePicker.js +0 -0
- package/{lib/components → components}/iqr-form/fields/dateTimePicker.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/dateTimePicker.js +0 -0
- package/{lib/components → components}/iqr-form/fields/measureField.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/measureField.js +0 -0
- package/{lib/components → components}/iqr-form/fields/multipleChoice.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/multipleChoice.js +0 -0
- package/{lib/components → components}/iqr-form/fields/numberField.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/numberField.js +0 -0
- package/{lib/components → components}/iqr-form/fields/textfield.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/textfield.js +0 -0
- package/{lib/components → components}/iqr-form/fields/timePicker.d.ts +0 -0
- package/{lib/components → components}/iqr-form/fields/timePicker.js +0 -0
- package/{lib/components → components}/iqr-form/index.d.ts +0 -0
- package/{lib/components → components}/iqr-form/index.js +59 -6
- package/{lib/components → components}/iqr-form/model/index.d.ts +0 -0
- package/{lib → components}/iqr-form/model/index.js +2 -2
- package/{lib/components → components}/iqr-form/renderer/cards.d.ts +0 -0
- package/{lib/components → components}/iqr-form/renderer/cards.js +2 -1
- package/{lib/components → components}/iqr-form/renderer/form.d.ts +0 -0
- package/{lib/components → components}/iqr-form/renderer/form.js +2 -1
- package/{lib/components → components}/iqr-form/renderer/index.d.ts +0 -0
- package/{lib/components → components}/iqr-form/renderer/index.js +0 -0
- package/{lib/components → components}/iqr-text-field/index.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/index.js +751 -7
- package/{lib/components → components}/iqr-text-field/plugin/caret-fix-plugin.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/plugin/caret-fix-plugin.js +2 -1
- package/{lib/components → components}/iqr-text-field/plugin/has-content-class-plugin.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/plugin/has-content-class-plugin.js +2 -1
- package/{lib/components → components}/iqr-text-field/plugin/mask-plugin.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/plugin/mask-plugin.js +2 -1
- package/{lib/components → components}/iqr-text-field/plugin/regexp-plugin.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/plugin/regexp-plugin.js +2 -1
- package/{lib/components → components}/iqr-text-field/prosemirror-commands.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/prosemirror-commands.js +0 -0
- package/{lib/components → components}/iqr-text-field/prosemirror-utils.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/prosemirror-utils.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/common-marks.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/common-marks.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/date-time-schema.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/date-time-schema.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/decimal-schema.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/decimal-schema.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/index.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/index.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/markdown-schema.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/markdown-schema.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/measure-schema.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/measure-schema.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/token-schema.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/token-schema.js +0 -0
- package/{lib/components → components}/iqr-text-field/schema/utils.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/schema/utils.js +0 -0
- package/{lib/components → components}/iqr-text-field/selection-companion.d.ts +0 -0
- package/{lib/components → components}/iqr-text-field/selection-companion.js +0 -0
- package/{lib/components → components}/iqr-text-field/suggestion-palette.d.ts +0 -0
- package/{lib → components}/iqr-text-field/suggestion-palette.js +5 -5
- package/{lib/index.d.ts → index.d.ts} +0 -0
- package/{lib/index.js → index.js} +0 -0
- package/package.json +14 -47
- package/lib/components/iqr-form/model/index.js +0 -114
- package/lib/components/iqr-text-field/suggestion-palette.js +0 -139
- package/lib/iqr-form/fields/datePicker.d.ts +0 -8
- package/lib/iqr-form/fields/datePicker.js +0 -42
- package/lib/iqr-form/fields/dateTimePicker.d.ts +0 -8
- package/lib/iqr-form/fields/dateTimePicker.js +0 -42
- package/lib/iqr-form/fields/measureField.d.ts +0 -8
- package/lib/iqr-form/fields/measureField.js +0 -42
- package/lib/iqr-form/fields/multipleChoice.d.ts +0 -8
- package/lib/iqr-form/fields/multipleChoice.js +0 -42
- package/lib/iqr-form/fields/numberField.d.ts +0 -8
- package/lib/iqr-form/fields/numberField.js +0 -42
- package/lib/iqr-form/fields/textfield.d.ts +0 -1
- package/lib/iqr-form/fields/textfield.js +0 -86
- package/lib/iqr-form/fields/timePicker.d.ts +0 -8
- package/lib/iqr-form/fields/timePicker.js +0 -42
- package/lib/iqr-form/index.d.ts +0 -7
- package/lib/iqr-form/index.js +0 -83
- package/lib/iqr-form/model/index.d.ts +0 -78
- package/lib/iqr-form/renderer/cards.d.ts +0 -2
- package/lib/iqr-form/renderer/cards.js +0 -43
- package/lib/iqr-form/renderer/form.d.ts +0 -2
- package/lib/iqr-form/renderer/form.js +0 -44
- package/lib/iqr-form/renderer/index.d.ts +0 -3
- package/lib/iqr-form/renderer/index.js +0 -2
- package/lib/iqr-text-field/index.d.ts +0 -2
- package/lib/iqr-text-field/index.js +0 -335
- package/lib/iqr-text-field/plugin/caret-fix-plugin.d.ts +0 -2
- package/lib/iqr-text-field/plugin/caret-fix-plugin.js +0 -23
- package/lib/iqr-text-field/plugin/has-content-class-plugin.d.ts +0 -2
- package/lib/iqr-text-field/plugin/has-content-class-plugin.js +0 -18
- package/lib/iqr-text-field/plugin/mask-plugin.d.ts +0 -2
- package/lib/iqr-text-field/plugin/mask-plugin.js +0 -143
- package/lib/iqr-text-field/plugin/regexp-plugin.d.ts +0 -2
- package/lib/iqr-text-field/plugin/regexp-plugin.js +0 -46
- package/lib/iqr-text-field/prosemirror-commands.d.ts +0 -4
- package/lib/iqr-text-field/prosemirror-commands.js +0 -52
- package/lib/iqr-text-field/prosemirror-utils.d.ts +0 -5
- package/lib/iqr-text-field/prosemirror-utils.js +0 -15
- package/lib/iqr-text-field/schema/common-marks.d.ts +0 -10
- package/lib/iqr-text-field/schema/common-marks.js +0 -90
- package/lib/iqr-text-field/schema/date-time-schema.d.ts +0 -7
- package/lib/iqr-text-field/schema/date-time-schema.js +0 -88
- package/lib/iqr-text-field/schema/decimal-schema.d.ts +0 -3
- package/lib/iqr-text-field/schema/decimal-schema.js +0 -27
- package/lib/iqr-text-field/schema/index.d.ts +0 -11
- package/lib/iqr-text-field/schema/index.js +0 -18
- package/lib/iqr-text-field/schema/markdown-schema.d.ts +0 -8
- package/lib/iqr-text-field/schema/markdown-schema.js +0 -139
- package/lib/iqr-text-field/schema/measure-schema.d.ts +0 -3
- package/lib/iqr-text-field/schema/measure-schema.js +0 -35
- package/lib/iqr-text-field/schema/token-schema.d.ts +0 -6
- package/lib/iqr-text-field/schema/token-schema.js +0 -36
- package/lib/iqr-text-field/schema/utils.d.ts +0 -11
- package/lib/iqr-text-field/schema/utils.js +0 -11
- package/lib/iqr-text-field/selection-companion.d.ts +0 -11
- package/lib/iqr-text-field/selection-companion.js +0 -52
- package/lib/iqr-text-field/suggestion-palette.d.ts +0 -33
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
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 0 1em !important;
|
|
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: 12px 0 12px 8px;
|
|
69
|
+
border-radius: 12px;
|
|
70
|
+
margin: 4px 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
|
|
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 [
|
|
101
|
+
return [baseCss, kendoCss];
|
|
49
102
|
}
|
|
50
103
|
render() {
|
|
51
104
|
const renderer = this.renderer === 'form' ? form_1.render :
|
|
File without changes
|
|
@@ -96,7 +96,7 @@ class Section {
|
|
|
96
96
|
this.keywords = keywords;
|
|
97
97
|
}
|
|
98
98
|
static parse(json) {
|
|
99
|
-
return new Section(json.section, json.fields.map((s) => s.group ? Group.parse(s) : Field.parse(s)), json.description, json.keywords);
|
|
99
|
+
return new Section(json.section, (json.fields || json.groups || json.sections || []).map((s) => s.group ? Group.parse(s) : Field.parse(s)), json.description, json.keywords);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
exports.Section = Section;
|
|
@@ -108,7 +108,7 @@ class Form {
|
|
|
108
108
|
this.sections = sections;
|
|
109
109
|
}
|
|
110
110
|
static parse(json) {
|
|
111
|
-
return new Form(json.form, json.sections.map((s) => Section.parse(s)), json.description, json.keywords);
|
|
111
|
+
return new Form(json.form, (json.sections || []).map((s) => Section.parse(s)), json.description, json.keywords);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
exports.Form = Form;
|
|
File without changes
|
|
@@ -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
|
-
|
|
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;
|
|
File without changes
|
|
@@ -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
|
-
|
|
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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|