@qoretechnologies/reqraft 0.10.41-pr.95.g294e5aa → 0.10.41
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/.claude/CLAUDE.md +12 -0
- package/.tasks/INDEX.md +1 -0
- package/.tasks/TEMPLATE_TOKEN_GRAMMAR.md +72 -0
- package/dist/components/codeSize/index.d.ts +37 -0
- package/dist/components/codeSize/index.d.ts.map +1 -0
- package/dist/components/codeSize/index.js +87 -0
- package/dist/components/codeSize/index.js.map +1 -0
- package/dist/components/form/engine/CompactRow.d.ts +20 -1
- package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
- package/dist/components/form/engine/CompactRow.js +284 -42
- package/dist/components/form/engine/CompactRow.js.map +1 -1
- package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
- package/dist/components/form/engine/CompactToolbar.js +72 -72
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +48 -1
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +163 -75
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +102 -87
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +2 -0
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +22 -5
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +8 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.js.map +1 -1
- package/dist/components/form/engine/readFirst.d.ts +57 -1
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +143 -4
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +1 -1
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +12 -2
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +16 -6
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +44 -26
- package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.js +42 -25
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +32 -4
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/long-string/LongString.d.ts +9 -1
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +25 -4
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/template/ExampleValueModal.d.ts +29 -0
- package/dist/components/form/fields/template/ExampleValueModal.d.ts.map +1 -0
- package/dist/components/form/fields/template/ExampleValueModal.js +122 -0
- package/dist/components/form/fields/template/ExampleValueModal.js.map +1 -0
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +3 -3
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +35 -6
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.d.ts +2 -0
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.d.ts.map +1 -0
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.js +9 -0
- package/dist/components/form/fields/template/__fixtures__/longExampleValue.js.map +1 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +1 -0
- package/dist/components/form/index.js.map +1 -1
- package/dist/helpers/common.d.ts +8 -1
- package/dist/helpers/common.d.ts.map +1 -1
- package/dist/helpers/common.js +9 -1
- package/dist/helpers/common.js.map +1 -1
- package/dist/helpers/optionUiTypes.d.ts +30 -0
- package/dist/helpers/optionUiTypes.d.ts.map +1 -0
- package/dist/helpers/optionUiTypes.js +148 -0
- package/dist/helpers/optionUiTypes.js.map +1 -0
- package/dist/helpers/options.d.ts +19 -0
- package/dist/helpers/options.d.ts.map +1 -1
- package/dist/helpers/options.js +25 -1
- package/dist/helpers/options.js.map +1 -1
- package/dist/helpers/providerValue.d.ts +68 -0
- package/dist/helpers/providerValue.d.ts.map +1 -0
- package/dist/helpers/providerValue.js +50 -0
- package/dist/helpers/providerValue.js.map +1 -0
- package/dist/helpers/singleLineString.d.ts +37 -0
- package/dist/helpers/singleLineString.d.ts.map +1 -0
- package/dist/helpers/singleLineString.js +66 -0
- package/dist/helpers/singleLineString.js.map +1 -0
- package/dist/helpers/templates.d.ts +100 -0
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +237 -4
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validations.d.ts +103 -2
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +858 -91
- package/dist/helpers/validations.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/codeSize/index.tsx +79 -0
- package/src/components/form/engine/CompactRow.tsx +407 -34
- package/src/components/form/engine/CompactToolbar.tsx +105 -98
- package/src/components/form/engine/FormEngine.stories.tsx +863 -12
- package/src/components/form/engine/FormEngine.tsx +183 -33
- package/src/components/form/engine/_structuredData/SchemaDataView.stories.tsx +110 -103
- package/src/components/form/engine/_structuredData/SchemaDataView.tsx +132 -80
- package/src/components/form/engine/compactRowStyles.ts +44 -1
- package/src/components/form/engine/compactToolbarContext.ts +8 -0
- package/src/components/form/engine/readFirst.ts +163 -4
- package/src/components/form/fields/Field.tsx +3 -1
- package/src/components/form/fields/allowed-values/AllowedValues.tsx +24 -2
- package/src/components/form/fields/array/ArrayAuto.tsx +23 -4
- package/src/components/form/fields/array/ArrayAutoField.stories.tsx +134 -0
- package/src/components/form/fields/array/ArrayAutoField.tsx +22 -4
- package/src/components/form/fields/auto/AutoFormField.tsx +31 -1
- package/src/components/form/fields/long-string/LongString.tsx +46 -5
- package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +5 -0
- package/src/components/form/fields/template/ExampleValueModal.stories.tsx +114 -0
- package/src/components/form/fields/template/ExampleValueModal.tsx +99 -0
- package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +8 -4
- package/src/components/form/fields/template/TemplateField.stories.tsx +314 -1
- package/src/components/form/fields/template/TemplateField.tsx +47 -8
- package/src/components/form/fields/template/__fixtures__/longExampleValue.ts +7 -0
- package/src/components/form/index.tsx +1 -0
- package/src/helpers/common.ts +11 -1
- package/src/helpers/optionUiTypes.ts +153 -0
- package/src/helpers/options.ts +23 -0
- package/src/helpers/providerValue.ts +125 -0
- package/src/helpers/singleLineString.ts +61 -0
- package/src/helpers/templates.ts +272 -3
- package/src/helpers/validations.ts +1177 -109
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +23 -2
- package/src/index.tsx +2 -0
|
@@ -3,15 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
7
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
8
|
-
if (ar || !(i in from)) {
|
|
9
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
10
|
-
ar[i] = from[i];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
14
|
-
};
|
|
15
6
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
8
|
};
|
|
@@ -40,10 +31,11 @@ var structuredData_1 = require("./structuredData");
|
|
|
40
31
|
* So a described value is rendered the way the form asked for it, in the form's
|
|
41
32
|
* own clothes:
|
|
42
33
|
*
|
|
43
|
-
* - Field names use `
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
34
|
+
* - Field names use `StyledFieldLabel` (a `StyledRowLabel` in the read-only
|
|
35
|
+
* eyebrow treatment) and values use `StyledRowValue` — the very components the
|
|
36
|
+
* option rows above are built from. Not a copy of their CSS: a copy is a
|
|
37
|
+
* second definition of "what a form label looks like", and the two drift the
|
|
38
|
+
* first time either is touched.
|
|
47
39
|
* - Values are formatted by the same `formatOptionValue` the rows use, so an
|
|
48
40
|
* `allowed_values` entry resolves to its display name, a bool to Yes/No, a
|
|
49
41
|
* date to the app's format. The same words appear in the summary, the preview
|
|
@@ -108,10 +100,37 @@ var StyledItemTitle = styled_components_1.default.div(templateObject_4 || (templ
|
|
|
108
100
|
var $mono = _a.$mono;
|
|
109
101
|
return ($mono ? "font-family: ".concat(compactRowStyles_1.MONO_FONT_STACK, "; font-size: 15px;") : '');
|
|
110
102
|
});
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Does this record have anything to show BELOW its heading?
|
|
105
|
+
*
|
|
106
|
+
* The heading consumes the identifying field, so a record holding only that has
|
|
107
|
+
* an empty body — and a rule drawn down an empty body is a line to nowhere.
|
|
108
|
+
*/
|
|
109
|
+
var hasContentUnderHeading = function (record, schema) {
|
|
110
|
+
if (!isRecord(record)) {
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
var titleKey = (0, readFirst_1.titleKeyFor)(record, schema);
|
|
114
|
+
return Object.entries(record).some(function (_a) {
|
|
115
|
+
var key = _a[0], value = _a[1];
|
|
116
|
+
return key !== titleKey && value !== undefined && value !== null && value !== '';
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
/** The rule tying an item's fields to its number.
|
|
120
|
+
*
|
|
121
|
+
* Same 3px as the heading's accent bar directly above it: at 1px the two read as
|
|
122
|
+
* two different devices stacked on each other rather than one rule running down
|
|
123
|
+
* the item, and the padding drops to 8px so the text stays on the same column.
|
|
124
|
+
*
|
|
125
|
+
* The rule is drawn only when something is actually under the heading. The
|
|
126
|
+
* heading is pulled left of the rule by its own negative margin, so an item
|
|
127
|
+
* whose record holds nothing but its identity showed a 1-2px sliver of line and
|
|
128
|
+
* nothing else — which reads as a rendering artefact, because that is what it
|
|
129
|
+
* was. It keeps a transparent border in that case so the column does not shift.
|
|
130
|
+
*/
|
|
131
|
+
var StyledItemFields = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-left: 3px solid ", ";\n padding-left: 8px;\n min-width: 0;\n"], ["\n border-left: 3px solid ", ";\n padding-left: 8px;\n min-width: 0;\n"])), function (_a) {
|
|
132
|
+
var $border = _a.$border, $rule = _a.$rule;
|
|
133
|
+
return ($rule ? $border : 'transparent');
|
|
115
134
|
});
|
|
116
135
|
/**
|
|
117
136
|
* A record's fields: one shared label column, values in the next.
|
|
@@ -121,15 +140,33 @@ var StyledItemFields = styled_components_1.default.div(templateObject_5 || (temp
|
|
|
121
140
|
* and leave the items ragged against each other, which reads as a rendering
|
|
122
141
|
* fault rather than as a list.
|
|
123
142
|
*/
|
|
124
|
-
|
|
143
|
+
/**
|
|
144
|
+
* A record field's name, in the detail-page vocabulary.
|
|
145
|
+
*
|
|
146
|
+
* Uppercase, tracked and dimmed, so a field name reads as furniture and the
|
|
147
|
+
* VALUE beside it is what the eye lands on. Same treatment the read-only
|
|
148
|
+
* interface panels use, which is the point: an in-editor list of records and a
|
|
149
|
+
* detail-page panel showing the same shape should not look like two components.
|
|
150
|
+
*
|
|
151
|
+
* A variant rather than a change to `StyledRowLabel`: that one is the FORM's own
|
|
152
|
+
* option-row label, and the form's fields are not read-only furniture — they are
|
|
153
|
+
* the things you are about to edit. Composing it keeps the colour, weight base
|
|
154
|
+
* and wrapping behaviour in one place instead of copying them.
|
|
155
|
+
*
|
|
156
|
+
* Applies to the label only. A VALUE is never uppercased: values are frequently
|
|
157
|
+
* case-sensitive — a service method is `onOrderStatus`, not `ONORDERSTATUS` —
|
|
158
|
+
* and the item heading is a value.
|
|
159
|
+
*/
|
|
160
|
+
var StyledFieldLabel = (0, styled_components_1.default)(compactRowStyles_1.StyledRowLabel)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: 12px;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n opacity: 0.55;\n"], ["\n font-size: 12px;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n opacity: 0.55;\n"])));
|
|
161
|
+
var StyledFields = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n /* The supporting fields step in under the heading, so the heading keeps the\n left edge to itself. This is the half that answers \"the name is written in\n the position of the label\": with the labels indented, it no longer is. */\n padding-left: 14px;\n display: grid;\n grid-template-columns: var(", ", 140px) minmax(0, 1fr);\n column-gap: 10px;\n row-gap: 2px;\n align-items: baseline;\n min-width: 0;\n\n /* A row's value truncates because a row is one line high. The preview is the\n place that shows what the row could not, so a long value wraps here instead\n of ellipsising \u2014 otherwise opening the preview would reveal exactly as\n little as the line above it. */\n .options-readfirst-valuetext {\n white-space: normal;\n overflow: visible;\n text-overflow: clip;\n overflow-wrap: anywhere;\n }\n\n /* Mono faces run visually larger than the UI face at the same pixel size, so\n a literal set at the row's 13px looks a step bolder than the label naming\n it. A hair smaller puts the two back on the same footing. */\n .schema-view-data {\n font-size: 12.5px;\n }\n"], ["\n /* The supporting fields step in under the heading, so the heading keeps the\n left edge to itself. This is the half that answers \"the name is written in\n the position of the label\": with the labels indented, it no longer is. */\n padding-left: 14px;\n display: grid;\n grid-template-columns: var(", ", 140px) minmax(0, 1fr);\n column-gap: 10px;\n row-gap: 2px;\n align-items: baseline;\n min-width: 0;\n\n /* A row's value truncates because a row is one line high. The preview is the\n place that shows what the row could not, so a long value wraps here instead\n of ellipsising \u2014 otherwise opening the preview would reveal exactly as\n little as the line above it. */\n .options-readfirst-valuetext {\n white-space: normal;\n overflow: visible;\n text-overflow: clip;\n overflow-wrap: anywhere;\n }\n\n /* Mono faces run visually larger than the UI face at the same pixel size, so\n a literal set at the row's 13px looks a step bolder than the label naming\n it. A hair smaller puts the two back on the same footing. */\n .schema-view-data {\n font-size: 12.5px;\n }\n"])), LABEL_COL_VAR);
|
|
125
162
|
/** A nested level spans both columns and indents under its own name. */
|
|
126
|
-
var StyledNested = styled_components_1.default.div(
|
|
163
|
+
var StyledNested = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n grid-column: 1 / -1;\n margin-left: 2px;\n padding-left: 10px;\n border-left: 1px solid ", ";\n min-width: 0;\n"], ["\n grid-column: 1 / -1;\n margin-left: 2px;\n padding-left: 10px;\n border-left: 1px solid ", ";\n min-width: 0;\n"])), function (_a) {
|
|
127
164
|
var $border = _a.$border;
|
|
128
165
|
return $border;
|
|
129
166
|
});
|
|
130
|
-
var StyledNestedLabel = styled_components_1.default.div(
|
|
167
|
+
var StyledNestedLabel = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n grid-column: 1 / -1;\n"], ["\n grid-column: 1 / -1;\n"])));
|
|
131
168
|
/** A code value is a block, not a cell: it spans the grid under its own name. */
|
|
132
|
-
var StyledCodeCell = styled_components_1.default.div(
|
|
169
|
+
var StyledCodeCell = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n grid-column: 1 / -1;\n min-width: 0;\n margin: 2px 0 4px;\n"], ["\n grid-column: 1 / -1;\n min-width: 0;\n margin: 2px 0 4px;\n"])));
|
|
133
170
|
/** Look inside a `{type, value}` envelope, once. `isUiEncodedValue` is the
|
|
134
171
|
* engine's single authority on what an envelope is — a looser test would unwrap
|
|
135
172
|
* a real user hash that happens to carry a `value` key and drop its siblings. */
|
|
@@ -137,54 +174,6 @@ var unwrap = function (item) { return ((0, structuredData_1.isUiEncodedValue)(it
|
|
|
137
174
|
var isRecord = function (value) {
|
|
138
175
|
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
139
176
|
};
|
|
140
|
-
/** Whether a value is worth a row of its own. `false` and `0` are values. */
|
|
141
|
-
var isSet = function (value) {
|
|
142
|
-
return value !== undefined && value !== null && value !== '' && !(Array.isArray(value) && !value.length);
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* The keys to render, in the order to render them: the schema's own order first
|
|
146
|
-
* (that is the order the form puts the fields in), then anything stored that the
|
|
147
|
-
* schema does not mention, so undescribed data is shown rather than dropped.
|
|
148
|
-
*/
|
|
149
|
-
var orderedKeys = function (record, schema) {
|
|
150
|
-
var described = Object.keys(schema).filter(function (key) { return isSet(unwrap(record[key])); });
|
|
151
|
-
var extra = Object.keys(record).filter(function (key) { return !(key in schema) && isSet(unwrap(record[key])); });
|
|
152
|
-
return __spreadArray(__spreadArray([], described, true), extra, true);
|
|
153
|
-
};
|
|
154
|
-
/** A field whose content is source code. `ui_type` is what the form renders by,
|
|
155
|
-
* so it is what the preview reads by too — the storage type is just `string`. */
|
|
156
|
-
var isCodeField = function (fieldSchema) {
|
|
157
|
-
var uiType = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.ui_type;
|
|
158
|
-
return uiType === 'code-editor';
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* The field whose value heads the item — the first DECLARED one holding a plain
|
|
162
|
-
* scalar.
|
|
163
|
-
*
|
|
164
|
-
* Schema order, not value order: the first declared field is the one the form
|
|
165
|
-
* puts at the top of an item, which is the one that says which item it is. A
|
|
166
|
-
* code body or a nested level is skipped, not because it is unimportant but
|
|
167
|
-
* because it has no one-line form — it belongs in the rows below where it can
|
|
168
|
-
* actually be read.
|
|
169
|
-
*
|
|
170
|
-
* One definition, used both to RENDER the heading and to omit that field from
|
|
171
|
-
* the rows. Computing it twice is how the heading and the rows start disagreeing
|
|
172
|
-
* about which field was promoted, and the item shows its name twice or not at
|
|
173
|
-
* all.
|
|
174
|
-
*/
|
|
175
|
-
var titleKeyFor = function (record, schema) {
|
|
176
|
-
return orderedKeys(record, schema).find(function (key) {
|
|
177
|
-
var fieldSchema = schema[key];
|
|
178
|
-
if (isCodeField(fieldSchema)) {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
var raw = unwrap(record[key]);
|
|
182
|
-
return typeof raw === 'string' || typeof raw === 'number';
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
var fieldLabel = function (key, fieldSchema) {
|
|
186
|
-
return (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.display_name) || key;
|
|
187
|
-
};
|
|
188
177
|
/**
|
|
189
178
|
* The width of the shared label column, measured from the longest name that will
|
|
190
179
|
* actually be rendered.
|
|
@@ -194,16 +183,37 @@ var fieldLabel = function (key, fieldSchema) {
|
|
|
194
183
|
* the `%` ceiling stops one long name from taking the whole row when the inset
|
|
195
184
|
* is narrow — a phone, or a deeply nested level.
|
|
196
185
|
*/
|
|
186
|
+
/** Approximate rendered width of one label character, in px. See `labelColumn`. */
|
|
187
|
+
var LABEL_CHAR_PX = 9.5;
|
|
188
|
+
/** Gap to the value, so the longest label is not flush against it. */
|
|
189
|
+
var LABEL_SLACK_PX = 14;
|
|
197
190
|
var labelColumn = function (value, schema) {
|
|
198
191
|
var inner = unwrap(value);
|
|
199
192
|
var records = (Array.isArray(inner) ? inner.map(unwrap) : [inner]).filter(isRecord);
|
|
200
193
|
var longest = records.reduce(function (widest, record) {
|
|
201
|
-
var own = orderedKeys(record, schema).reduce(function (max, key) {
|
|
202
|
-
return Math.max(max, fieldLabel(key, schema[key]).length);
|
|
194
|
+
var own = (0, readFirst_1.orderedKeys)(record, schema).reduce(function (max, key) {
|
|
195
|
+
return Math.max(max, (0, readFirst_1.fieldLabel)(key, schema[key]).length);
|
|
203
196
|
}, 0);
|
|
204
197
|
return Math.max(widest, own);
|
|
205
198
|
}, 0);
|
|
206
|
-
|
|
199
|
+
// px, not `ch`. `ch` is the base font's `0` advance and knows nothing about
|
|
200
|
+
// the label's own treatment — uppercase, semibold, `letter-spacing: 0.06em`,
|
|
201
|
+
// at 12px — so it under-measures by about a tenth. With `overflow-wrap:
|
|
202
|
+
// anywhere` on the label, an under-measured column does not ellipsise, it
|
|
203
|
+
// BREAKS THE NAME IN HALF: `LEGACY_FLAG` came out over two lines the moment
|
|
204
|
+
// the labels became uppercase. Erring high costs a few px of gap; erring low
|
|
205
|
+
// costs a broken word.
|
|
206
|
+
return longest ? "min(".concat(Math.ceil(longest * LABEL_CHAR_PX + LABEL_SLACK_PX), "px, 45%)") : '140px';
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* `true` when a value is an address a browser can open.
|
|
210
|
+
*
|
|
211
|
+
* Deliberately per VALUE, not per field: a field named `url` frequently holds
|
|
212
|
+
* something that is not one — a bare path, a regex, a template — and offering
|
|
213
|
+
* those a link promises a destination there is not.
|
|
214
|
+
*/
|
|
215
|
+
var isNavigableUrl = function (value) {
|
|
216
|
+
return typeof value === 'string' && /^(https?|wss?|ftps?):\/\//i.test(value);
|
|
207
217
|
};
|
|
208
218
|
/** One field's value, rendered the way its row above renders it. */
|
|
209
219
|
var FieldValue = function (_a) {
|
|
@@ -225,7 +235,14 @@ var FieldValue = function (_a) {
|
|
|
225
235
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, intent: field.value === true ? 'success' : 'danger', label: formatted })
|
|
226
236
|
: (0, jsx_runtime_1.jsxs)("span", { className: "options-readfirst-valuetext".concat(isChosenLabel ? '' : ' schema-view-data'), style: isChosenLabel ? undefined : { fontFamily: compactRowStyles_1.MONO_FONT_STACK }, children: [image ?
|
|
227
237
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { image: image, size: '14px', style: { flexShrink: 0, marginRight: 6, verticalAlign: 'middle' } })
|
|
228
|
-
: null,
|
|
238
|
+
: null, isNavigableUrl(field.value) ?
|
|
239
|
+
// The address IS the link — it used to render as inert text with a
|
|
240
|
+
// separate icon button beside it to open it, which is two things
|
|
241
|
+
// where there is one. ReqoreLink renders a real anchor, so
|
|
242
|
+
// middle-click and "copy link address" still work;
|
|
243
|
+
// `stopPropagation` because the row around it toggles.
|
|
244
|
+
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreLink, { className: 'schema-view-open-url', href: field.value, target: '_blank', rel: 'noreferrer noopener', onClick: function (event) { return event.stopPropagation(); }, children: formatted })
|
|
245
|
+
: formatted] }) }));
|
|
229
246
|
};
|
|
230
247
|
/** One described hash: its fields as label/value pairs in the shared columns. */
|
|
231
248
|
var SchemaRecord = function (_a) {
|
|
@@ -235,26 +252,26 @@ var SchemaRecord = function (_a) {
|
|
|
235
252
|
// deep, and the renderer is a property of the form, not of any one level.
|
|
236
253
|
var codePreviewRenderer = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.codePreviewRenderer; });
|
|
237
254
|
var cHover = (0, use_context_selector_1.useContextSelector)(compactRowContext_1.CompactRowContext, function (v) { return v.cHover; });
|
|
238
|
-
return ((0, jsx_runtime_1.jsx)(StyledFields, { className: 'schema-view-fields', children: orderedKeys(record, schema)
|
|
255
|
+
return ((0, jsx_runtime_1.jsx)(StyledFields, { className: 'schema-view-fields', children: (0, readFirst_1.orderedKeys)(record, schema)
|
|
239
256
|
.filter(function (key) { return key !== skipKey; })
|
|
240
257
|
.map(function (key) {
|
|
241
258
|
var fieldSchema = schema[key];
|
|
242
259
|
var nested = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.arg_schema;
|
|
243
260
|
var value = unwrap(record[key]);
|
|
244
|
-
var label = fieldLabel(key, fieldSchema);
|
|
261
|
+
var label = (0, readFirst_1.fieldLabel)(key, fieldSchema);
|
|
245
262
|
var labelWithType = showTypes && (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.type) ? "".concat(label, " \u00B7 ").concat(fieldSchema.type) : label;
|
|
246
263
|
// A field that describes its own level renders AS that level, indented
|
|
247
264
|
// under its name — the same decision, one step down.
|
|
248
265
|
if (nested && (isRecord(value) || Array.isArray(value))) {
|
|
249
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledNestedLabel, { children: (0, jsx_runtime_1.jsx)(
|
|
266
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledNestedLabel, { children: (0, jsx_runtime_1.jsx)(StyledFieldLabel, { "$color": colors.key, children: labelWithType }) }), (0, jsx_runtime_1.jsx)(StyledNested, { "$border": colors.border, children: (0, jsx_runtime_1.jsx)(SchemaLevel, { value: value, schema: nested, showTypes: showTypes, colors: colors }) })] }, key));
|
|
250
267
|
}
|
|
251
268
|
// A code value is source, and source is read as source: the host's renderer
|
|
252
269
|
// gives it the syntax highlighting (and read-only LSP hover) it has in the
|
|
253
270
|
// Source Code field, and "Show more" keeps a long body from taking over the
|
|
254
271
|
// preview. Flattening it to one mono line — which is what a plain value cell
|
|
255
272
|
// does — throws all of that away for a field whose whole content is code.
|
|
256
|
-
if (isCodeField(fieldSchema) && typeof value === 'string') {
|
|
257
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledNestedLabel, { children: (0, jsx_runtime_1.jsx)(
|
|
273
|
+
if ((0, readFirst_1.isCodeField)(fieldSchema) && typeof value === 'string') {
|
|
274
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledNestedLabel, { children: (0, jsx_runtime_1.jsx)(StyledFieldLabel, { "$color": colors.key, children: labelWithType }) }), (0, jsx_runtime_1.jsx)(StyledCodeCell, { onClick: function (event) { return event.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(reqore_1.ReqoreCollapsibleContent, { maxCollapsedHeight: 96, buttonProps: { className: 'options-readfirst-viewmore' }, children: codePreviewRenderer ?
|
|
258
275
|
codePreviewRenderer({
|
|
259
276
|
value: value,
|
|
260
277
|
name: key,
|
|
@@ -264,7 +281,7 @@ var SchemaRecord = function (_a) {
|
|
|
264
281
|
})
|
|
265
282
|
: (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledCodePreview, { className: 'options-readfirst-code', "$bg": cHover, "$border": "".concat(colors.border, "88"), "$fg": colors.key, children: value }) }) })] }, key));
|
|
266
283
|
}
|
|
267
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
284
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledFieldLabel, { "$color": colors.key, title: label, children: labelWithType }), (0, jsx_runtime_1.jsx)(FieldValue, { field: { type: fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.type, value: value }, fieldSchema: fieldSchema, color: colors.key })] }, key));
|
|
268
285
|
}) }));
|
|
269
286
|
};
|
|
270
287
|
/** A level: a list of numbered items, or a single described hash. */
|
|
@@ -274,16 +291,14 @@ var SchemaLevel = function (_a) {
|
|
|
274
291
|
if (Array.isArray(inner)) {
|
|
275
292
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: inner.map(function (item, index) {
|
|
276
293
|
var record = unwrap(item);
|
|
277
|
-
return ((0, jsx_runtime_1.jsxs)(StyledItem, { className: 'schema-view-item', children: [(0, jsx_runtime_1.jsxs)(StyledMarker, { "$color": colors.muted, children: [index + 1, "."] }), (0, jsx_runtime_1.jsx)(StyledItemFields, { "$border": colors.border, children: isRecord(record) ?
|
|
294
|
+
return ((0, jsx_runtime_1.jsxs)(StyledItem, { className: 'schema-view-item', children: [(0, jsx_runtime_1.jsxs)(StyledMarker, { "$color": colors.muted, children: [index + 1, "."] }), (0, jsx_runtime_1.jsx)(StyledItemFields, { "$border": colors.border, "$rule": hasContentUnderHeading(record, schema), children: isRecord(record) ?
|
|
278
295
|
(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(function () {
|
|
279
|
-
var
|
|
280
|
-
if (!
|
|
296
|
+
var identity = (0, readFirst_1.recordIdentity)(record, schema);
|
|
297
|
+
if (!identity) {
|
|
281
298
|
return null;
|
|
282
299
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
return ((0, jsx_runtime_1.jsx)(StyledItemTitle, { className: 'schema-view-item-title', "$color": colors.key, "$mono": !(0, readFirst_1.findAllowedValueOption)(raw, fieldSchema), "$accent": colors.accent, title: fieldLabel(titleKey, fieldSchema), children: (0, readFirst_1.formatOptionValue)({ type: fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.type, value: raw }, fieldSchema) }));
|
|
286
|
-
})(), (0, jsx_runtime_1.jsx)(SchemaRecord, { record: record, schema: schema, showTypes: showTypes, colors: colors, skipKey: titleKeyFor(record, schema) })] })
|
|
300
|
+
return ((0, jsx_runtime_1.jsx)(StyledItemTitle, { className: 'schema-view-item-title', "$color": colors.key, "$mono": identity.mono, "$accent": colors.accent, title: identity.label, children: identity.text }));
|
|
301
|
+
})(), (0, jsx_runtime_1.jsx)(SchemaRecord, { record: record, schema: schema, showTypes: showTypes, colors: colors, skipKey: (0, readFirst_1.titleKeyFor)(record, schema) })] })
|
|
287
302
|
: (0, jsx_runtime_1.jsx)(compactRowStyles_1.StyledRowValue, { "$color": colors.key, children: (0, jsx_runtime_1.jsx)("span", { className: 'options-readfirst-valuetext schema-view-data', style: { fontFamily: compactRowStyles_1.MONO_FONT_STACK }, children: (0, readFirst_1.formatOptionValue)({ value: record }) }) }) })] }, index));
|
|
288
303
|
}) }));
|
|
289
304
|
}
|
|
@@ -316,5 +331,5 @@ var canRenderWithSchema = function (value, schema) {
|
|
|
316
331
|
return isRecord(inner);
|
|
317
332
|
};
|
|
318
333
|
exports.canRenderWithSchema = canRenderWithSchema;
|
|
319
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
334
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
320
335
|
//# sourceMappingURL=SchemaDataView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaDataView.js","sourceRoot":"","sources":["../../../../../src/components/form/engine/_structuredData/SchemaDataView.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mDAAoG;AAMpG,gDAA0B;AAC1B,wEAAuC;AACvC,6DAA0D;AAC1D,0DAAyD;AACzD,wDAAyG;AACzG,0CAA+F;AAC/F,mDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,kFAAkF;AAClF,IAAM,aAAa,GAAG,yBAAyB,CAAC;AAEhD,IAAM,gBAAgB,GAAG,2BAAM,CAAC,GAAG,kJAAA,+EAKlC,IAAA,CAAC;AAEF;;;;;;GAMG;AACH,IAAM,UAAU,GAAG,2BAAM,CAAC,GAAG,oMAAA,iIAM5B,IAAA,CAAC;AAEF;0DAC0D;AAC1D,IAAM,YAAY,GAAG,2BAAM,CAAC,GAAG,gMAAoB,aACxC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AC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;QACzE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAtB,CAAsB,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC,CAAC;AATW,QAAA,mBAAmB,uBAS9B"}
|
|
1
|
+
{"version":3,"file":"SchemaDataView.js","sourceRoot":"","sources":["../../../../../src/components/form/engine/_structuredData/SchemaDataView.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,mDAMkC;AAMlC,gDAA0B;AAC1B,wEAAuC;AACvC,6DAA0D;AAC1D,0DAAyD;AACzD,wDAAyG;AACzG,0CASsB;AACtB,mDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,kFAAkF;AAClF,IAAM,aAAa,GAAG,yBAAyB,CAAC;AAEhD,IAAM,gBAAgB,GAAG,2BAAM,CAAC,GAAG,kJAAA,+EAKlC,IAAA,CAAC;AAEF;;;;;;GAMG;AACH,IAAM,UAAU,GAAG,2BAAM,CAAC,GAAG,oMAAA,iIAM5B,IAAA,CAAC;AAEF;0DAC0D;AAC1D,IAAM,YAAY,GAAG,2BAAM,CAAC,GAAG,gMAAoB,aACxC,EAAsB,8GAKhC,KALU,UAAC,EAAU;QAAR,MAAM,YAAA;IAAO,OAAA,MAAM;AAAN,CAAM,CAKhC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,IAAM,eAAe,GAAG,2BAAM,CAAC,GAAG,+wCAAqD,aAC5E,EAAsB,0ZAOjB,EAA+B,8BACpB,EAAwB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declare const StyledCodePreview: any;
|
|
62
62
|
export declare const StyledColorSwatch: any;
|
|
63
63
|
export declare const StyledGroupBody: any;
|
|
64
|
+
export declare const StyledAbsorbedField: any;
|
|
65
|
+
export declare const StyledAbsorbedLabel: any;
|
|
64
66
|
//# sourceMappingURL=compactRowStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactRowStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/compactRowStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAKtF,eAAO,MAAM,UAAU,EAAE,MAAc,CAAC;AAOxC,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,kBAAkB,QAA0D,CAAC;AAE1F,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAI1D,eAAO,MAAM,YAAY,SAA2B,CAAC;AASrD,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,aAAa,MAAoB,CAAC;AAC/C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,QAAsB,CAAC;AAC1D,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,SAAS,sCAAkD,CAAC;AACzE,eAAO,MAAM,cAAc,mDAAuE,CAAC;AAQnG,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"compactRowStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/compactRowStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAKtF,eAAO,MAAM,UAAU,EAAE,MAAc,CAAC;AAOxC,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,eAAe,KAAK,CA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M,iBAAiB,KAa7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,KAO7B,CAAC;AAEF,eAAO,MAAM,eAAe,KAmQ3B,CAAC;AAWF,eAAO,MAAM,mBAAmB,KAQ/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,KAG/B,CAAC"}
|
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.StyledGroupBody = exports.StyledColorSwatch = exports.StyledCodePreview = exports.MONO_FONT_STACK = exports.StyledRowInset = exports.StyledColumn = exports.StyledActionSlot = exports.StyledStatusDot = exports.StyledRowActions = exports.StyledRowValue = exports.StyledCardLabel = exports.StyledCardHeading = exports.StyledLabelDesc = exports.StyledRowLabel = exports.StyledLabelBlock = exports.StyledEditCard = exports.StyledClusterNode = exports.StyledStatusBoxGroupLabel = exports.StyledRequiredClusterHeader = exports.StyledRequiredClusterBox = exports.StyledStatusBox = exports.StyledGroupHeaderLine = exports.StyledGroupHeader = exports.StyledCompactPanel = exports.PANEL_LEFT_CSS = exports.LABEL_COL = exports.LABEL_COL_VAR = exports.LABEL_AFFORDANCE_WIDTH = exports.LABEL_COL_MAX = exports.LABEL_COL_MIN = exports.GROUP_INDENT = exports.COMPACT_PANEL_LEFT = exports.COMPACT_VALUE_LEFT = exports.COMPACT_ROW_GAP = exports.COMPACT_ROW_PAD_X = exports.COMPACT_LABEL_COL = exports.HEADER_GAP = void 0;
|
|
10
|
+
exports.StyledAbsorbedLabel = exports.StyledAbsorbedField = exports.StyledGroupBody = exports.StyledColorSwatch = exports.StyledCodePreview = exports.MONO_FONT_STACK = exports.StyledRowInset = exports.StyledColumn = exports.StyledActionSlot = exports.StyledStatusDot = exports.StyledRowActions = exports.StyledRowValue = exports.StyledCardLabel = exports.StyledCardHeading = exports.StyledLabelDesc = exports.StyledRowLabel = exports.StyledLabelBlock = exports.StyledEditCard = exports.StyledClusterNode = exports.StyledStatusBoxGroupLabel = exports.StyledRequiredClusterHeader = exports.StyledRequiredClusterBox = exports.StyledStatusBox = exports.StyledGroupHeaderLine = exports.StyledGroupHeader = exports.StyledCompactPanel = exports.PANEL_LEFT_CSS = exports.LABEL_COL = exports.LABEL_COL_VAR = exports.LABEL_AFFORDANCE_WIDTH = exports.LABEL_COL_MAX = exports.LABEL_COL_MIN = exports.GROUP_INDENT = exports.COMPACT_PANEL_LEFT = exports.COMPACT_VALUE_LEFT = exports.COMPACT_ROW_GAP = exports.COMPACT_ROW_PAD_X = exports.COMPACT_LABEL_COL = exports.HEADER_GAP = void 0;
|
|
11
11
|
var reqore_1 = require("@qoretechnologies/reqore");
|
|
12
12
|
var sizes_1 = require("@qoretechnologies/reqore/dist/constants/sizes");
|
|
13
13
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
@@ -64,10 +64,13 @@ exports.PANEL_LEFT_CSS = "calc(".concat(exports.LABEL_COL, " + ").concat(exports
|
|
|
64
64
|
// promotes the header to its own GPU layer, which stops the backdrop-filter
|
|
65
65
|
// repaint flicker on scroll. `$headerBg` is a pre-mixed translucent colour so
|
|
66
66
|
// content blurs softly through.
|
|
67
|
-
exports.StyledCompactPanel = (0, styled_components_1.default)(reqore_1.ReqorePanel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n > .reqore-panel-title {\n /* The blur + translateZ exist only to make the STICKY top-level toolbar ghost\n content beneath it; a nested sub-form's header isn't sticky, so skip them\n (and the stacking context translateZ creates). */\n ", "\n padding-top: ", "px;\n padding-bottom: ", "px;\n }\n\n /* Group framing. The HORIZONTAL rule is a real element in the header\n (StyledGroupHeaderLine) so it sits on the name's row, centred, and stretches\n from the name out to the status chip pinned at the far end \u2014 which needs the\n title's left group to fill the header width. The VERTICAL group spine is\n drawn by StyledGroupBody (so it shares the required-group rail's coordinate\n space and the two line up instead of doubling). */\n .options-readfirst-group {\n position: relative;\n }\n .options-readfirst-group > .reqore-panel-title > :first-child,\n .options-readfirst-group > .reqore-panel-title > :first-child > :first-child,\n .options-readfirst-group .reqore-panel-title-label-row {\n flex: 1 1 auto;\n min-width: 0;\n }\n\n /* An injected option action declared `show: 'hover'` \u2014 the shape ReqorePanel\n honours on the classic path \u2014 is revealed only while its row or card is\n hovered or holds focus. The compact slots render plain buttons, so the gate\n has to be CSS here. Kept focus-visible too, so the action stays reachable by\n keyboard. Opacity rather than display keeps the slot's width stable, so rows\n don't reflow on hover. */\n .options-injected-action-hover {\n opacity: 0;\n /* Not hit-testable while invisible \u2014 an opacity:0 button still takes taps\n and clicks, which reads as a mystery control firing out of nowhere. */\n pointer-events: none;\n transition: opacity 0.15s ease;\n }\n .readfirst-row:hover .options-injected-action-hover,\n .readfirst-row:focus-within .options-injected-action-hover,\n .options-readfirst-card:hover .options-injected-action-hover,\n .options-readfirst-card:focus-within .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n /* Touch and other hover-less pointers never fire :hover, so a hover-gated\n action would be permanently unreachable there. Show it unconditionally\n instead \u2014 losing the tidiness beats losing the functionality. */\n @media (hover: none), (pointer: coarse) {\n .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n }\n"], ["\n > .reqore-panel-title {\n /* The blur + translateZ exist only to make the STICKY top-level toolbar ghost\n content beneath it; a nested sub-form's header isn't sticky, so skip them\n (and the stacking context translateZ creates). */\n ", "\n padding-top: ", "px;\n padding-bottom: ", "px;\n }\n\n /* Group framing. The HORIZONTAL rule is a real element in the header\n (StyledGroupHeaderLine) so it sits on the name's row, centred, and stretches\n from the name out to the status chip pinned at the far end \u2014 which needs the\n title's left group to fill the header width. The VERTICAL group spine is\n drawn by StyledGroupBody (so it shares the required-group rail's coordinate\n space and the two line up instead of doubling). */\n .options-readfirst-group {\n position: relative;\n }\n .options-readfirst-group > .reqore-panel-title > :first-child,\n .options-readfirst-group > .reqore-panel-title > :first-child > :first-child,\n .options-readfirst-group .reqore-panel-title-label-row {\n flex: 1 1 auto;\n min-width: 0;\n }\n\n /* An injected option action declared \\`show: 'hover'\\` \u2014 the shape ReqorePanel\n honours on the classic path \u2014 is revealed only while its row or card is\n hovered or holds focus. The compact slots render plain buttons, so the gate\n has to be CSS here. Kept focus-visible too, so the action stays reachable by\n keyboard. Opacity rather than display keeps the slot's width stable, so rows\n don't reflow on hover. */\n .options-injected-action-hover {\n opacity: 0;\n /* Not hit-testable while invisible \u2014 an opacity:0 button still takes taps\n and clicks, which reads as a mystery control firing out of nowhere. */\n pointer-events: none;\n transition: opacity 0.15s ease;\n }\n .readfirst-row:hover .options-injected-action-hover,\n .readfirst-row:focus-within .options-injected-action-hover,\n .options-readfirst-card:hover .options-injected-action-hover,\n .options-readfirst-card:focus-within .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n /* Touch and other hover-less pointers never fire :hover, so a hover-gated\n action would be permanently unreachable there. Show it unconditionally\n instead \u2014 losing the tidiness beats losing the functionality. */\n @media (hover: none), (pointer: coarse) {\n .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n }\n"])), function (_a) {
|
|
67
|
+
exports.StyledCompactPanel = (0, styled_components_1.default)(reqore_1.ReqorePanel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n > .reqore-panel-title {\n /* The blur + translateZ exist only to make the STICKY top-level toolbar ghost\n content beneath it; a nested sub-form's header isn't sticky, so skip them\n (and the stacking context translateZ creates). */\n ", "\n padding-top: ", "px;\n /* A header with a SEARCH ROW keeps the `big` gap below it \u2014 a tall\n interactive control earns separation from the content it filters. A\n header without one (search hidden via `compactToolbar`, self-hidden on\n a single-option form, or no toolbar at all) is a thin strip, and at\n `big` its padding stacked onto the panel content's own 8px into a 26px\n dead band between the completion meter and the first status box \u2014\n rejected on build #140 as \"unnecessarily big\". `normal` lands it at\n the boxes' own 10px rhythm, and scoping the change here keeps every\n search-bearing form pixel-identical. */\n padding-bottom: ", "px;\n }\n\n /* Group framing. The HORIZONTAL rule is a real element in the header\n (StyledGroupHeaderLine) so it sits on the name's row, centred, and stretches\n from the name out to the status chip pinned at the far end \u2014 which needs the\n title's left group to fill the header width. The VERTICAL group spine is\n drawn by StyledGroupBody (so it shares the required-group rail's coordinate\n space and the two line up instead of doubling). */\n .options-readfirst-group {\n position: relative;\n }\n .options-readfirst-group > .reqore-panel-title > :first-child,\n .options-readfirst-group > .reqore-panel-title > :first-child > :first-child,\n .options-readfirst-group .reqore-panel-title-label-row {\n flex: 1 1 auto;\n min-width: 0;\n }\n\n /* An injected option action declared `show: 'hover'` \u2014 the shape ReqorePanel\n honours on the classic path \u2014 is revealed only while its row or card is\n hovered or holds focus. The compact slots render plain buttons, so the gate\n has to be CSS here. Kept focus-visible too, so the action stays reachable by\n keyboard. Opacity rather than display keeps the slot's width stable, so rows\n don't reflow on hover. */\n .options-injected-action-hover {\n opacity: 0;\n /* Not hit-testable while invisible \u2014 an opacity:0 button still takes taps\n and clicks, which reads as a mystery control firing out of nowhere. */\n pointer-events: none;\n transition: opacity 0.15s ease;\n }\n .readfirst-row:hover .options-injected-action-hover,\n .readfirst-row:focus-within .options-injected-action-hover,\n .options-readfirst-card:hover .options-injected-action-hover,\n .options-readfirst-card:focus-within .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n /* Touch and other hover-less pointers never fire :hover, so a hover-gated\n action would be permanently unreachable there. Show it unconditionally\n instead \u2014 losing the tidiness beats losing the functionality. */\n @media (hover: none), (pointer: coarse) {\n .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n }\n"], ["\n > .reqore-panel-title {\n /* The blur + translateZ exist only to make the STICKY top-level toolbar ghost\n content beneath it; a nested sub-form's header isn't sticky, so skip them\n (and the stacking context translateZ creates). */\n ", "\n padding-top: ", "px;\n /* A header with a SEARCH ROW keeps the \\`big\\` gap below it \u2014 a tall\n interactive control earns separation from the content it filters. A\n header without one (search hidden via \\`compactToolbar\\`, self-hidden on\n a single-option form, or no toolbar at all) is a thin strip, and at\n \\`big\\` its padding stacked onto the panel content's own 8px into a 26px\n dead band between the completion meter and the first status box \u2014\n rejected on build #140 as \"unnecessarily big\". \\`normal\\` lands it at\n the boxes' own 10px rhythm, and scoping the change here keeps every\n search-bearing form pixel-identical. */\n padding-bottom: ", "px;\n }\n\n /* Group framing. The HORIZONTAL rule is a real element in the header\n (StyledGroupHeaderLine) so it sits on the name's row, centred, and stretches\n from the name out to the status chip pinned at the far end \u2014 which needs the\n title's left group to fill the header width. The VERTICAL group spine is\n drawn by StyledGroupBody (so it shares the required-group rail's coordinate\n space and the two line up instead of doubling). */\n .options-readfirst-group {\n position: relative;\n }\n .options-readfirst-group > .reqore-panel-title > :first-child,\n .options-readfirst-group > .reqore-panel-title > :first-child > :first-child,\n .options-readfirst-group .reqore-panel-title-label-row {\n flex: 1 1 auto;\n min-width: 0;\n }\n\n /* An injected option action declared \\`show: 'hover'\\` \u2014 the shape ReqorePanel\n honours on the classic path \u2014 is revealed only while its row or card is\n hovered or holds focus. The compact slots render plain buttons, so the gate\n has to be CSS here. Kept focus-visible too, so the action stays reachable by\n keyboard. Opacity rather than display keeps the slot's width stable, so rows\n don't reflow on hover. */\n .options-injected-action-hover {\n opacity: 0;\n /* Not hit-testable while invisible \u2014 an opacity:0 button still takes taps\n and clicks, which reads as a mystery control firing out of nowhere. */\n pointer-events: none;\n transition: opacity 0.15s ease;\n }\n .readfirst-row:hover .options-injected-action-hover,\n .readfirst-row:focus-within .options-injected-action-hover,\n .options-readfirst-card:hover .options-injected-action-hover,\n .options-readfirst-card:focus-within .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n /* Touch and other hover-less pointers never fire :hover, so a hover-gated\n action would be permanently unreachable there. Show it unconditionally\n instead \u2014 losing the tidiness beats losing the functionality. */\n @media (hover: none), (pointer: coarse) {\n .options-injected-action-hover {\n opacity: 1;\n pointer-events: auto;\n }\n }\n"])), function (_a) {
|
|
68
68
|
var $nested = _a.$nested;
|
|
69
69
|
return $nested ? '' : ('backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateZ(0);');
|
|
70
|
-
}, sizes_1.GAP_FROM_SIZE[exports.HEADER_GAP],
|
|
70
|
+
}, sizes_1.GAP_FROM_SIZE[exports.HEADER_GAP], function (_a) {
|
|
71
|
+
var $tightHeader = _a.$tightHeader;
|
|
72
|
+
return $tightHeader ? sizes_1.GAP_FROM_SIZE.normal : sizes_1.GAP_FROM_SIZE[exports.HEADER_GAP];
|
|
73
|
+
});
|
|
71
74
|
// Compact group header laid out as the panel's `label`: the group name, a
|
|
72
75
|
// hairline that fades toward the status chip, and the chip pinned at the end.
|
|
73
76
|
exports.StyledGroupHeader = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n"], ["\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n"])));
|
|
@@ -154,7 +157,7 @@ exports.StyledCardLabel = styled_components_1.default.div(templateObject_14 || (
|
|
|
154
157
|
});
|
|
155
158
|
/* min-width: 0 lets the grid cell shrink below its content's intrinsic width
|
|
156
159
|
so the ellipsis engages instead of overflowing. */
|
|
157
|
-
exports.StyledRowValue = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n min-width: 0;\n font-size: 13px;\n /* Value + inline reason(s) share the line, wrapping the reason below only when\n it doesn't fit (the Focus prototype's layout). */\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n column-gap: 10px;\n row-gap: 2px;\n /* The muted/translucent colour applies to the VALUE TEXT only \u2014 not the whole\n cell \u2014 so the message panels and the structured preview below render at full\n opacity instead of inheriting the dimmed value colour. */\n .options-readfirst-valuetext {\n min-width: 0;\n max-width: 100%;\n color: ", ";\n font-style: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .options-readfirst-reason {\n font-style: italic;\n font-size: 12px;\n line-height: 1.3;\n }\n /* Schema message panels: full width of the value column, on their own line\n directly beneath the value. */\n .options-readfirst-info-panel {\n flex-basis: 100%;\n width: 100%;\n display: flex;\n flex-flow: column;\n gap: 4px;\n margin-top: 4px;\n }\n"], ["\n min-width: 0;\n font-size: 13px;\n /* Value + inline reason(s) share the line, wrapping the reason below only when\n it doesn't fit (the Focus prototype's layout). */\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n column-gap: 10px;\n row-gap: 2px;\n /* The muted/translucent colour applies to the VALUE TEXT only \u2014 not the whole\n cell \u2014 so the message panels and the structured preview below render at full\n opacity instead of inheriting the dimmed value colour. */\n .options-readfirst-valuetext {\n min-width: 0;\n max-width: 100%;\n color: ", ";\n font-style: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .options-readfirst-reason {\n font-style: italic;\n font-size: 12px;\n line-height: 1.3;\n }\n /* Schema message panels: full width of the value column, on their own line\n directly beneath the value. */\n .options-readfirst-info-panel {\n flex-basis: 100%;\n width: 100%;\n display: flex;\n flex-flow: column;\n gap: 4px;\n margin-top: 4px;\n }\n"])), function (_a) {
|
|
160
|
+
exports.StyledRowValue = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n min-width: 0;\n font-size: 13px;\n /* Value + inline reason(s) share the line, wrapping the reason below only when\n it doesn't fit (the Focus prototype's layout). */\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n column-gap: 10px;\n row-gap: 2px;\n /* The muted/translucent colour applies to the VALUE TEXT only \u2014 not the whole\n cell \u2014 so the message panels and the structured preview below render at full\n opacity instead of inheriting the dimmed value colour. */\n .options-readfirst-valuetext {\n min-width: 0;\n max-width: 100%;\n color: ", ";\n font-style: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n /* The code size chip kept above an OPEN editor. The read row puts the same chip\n at the top of the value cell with a 2px row-gap under it; matching that here is\n what stops the editor moving as the field opens. */\n .options-readfirst-editing-summary {\n margin-bottom: 2px;\n }\n .options-readfirst-reason {\n font-style: italic;\n font-size: 12px;\n line-height: 1.3;\n }\n /* Schema message panels: full width of the value column, on their own line\n directly beneath the value. */\n .options-readfirst-info-panel {\n flex-basis: 100%;\n width: 100%;\n display: flex;\n flex-flow: column;\n gap: 4px;\n margin-top: 4px;\n }\n"], ["\n min-width: 0;\n font-size: 13px;\n /* Value + inline reason(s) share the line, wrapping the reason below only when\n it doesn't fit (the Focus prototype's layout). */\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n column-gap: 10px;\n row-gap: 2px;\n /* The muted/translucent colour applies to the VALUE TEXT only \u2014 not the whole\n cell \u2014 so the message panels and the structured preview below render at full\n opacity instead of inheriting the dimmed value colour. */\n .options-readfirst-valuetext {\n min-width: 0;\n max-width: 100%;\n color: ", ";\n font-style: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n /* The code size chip kept above an OPEN editor. The read row puts the same chip\n at the top of the value cell with a 2px row-gap under it; matching that here is\n what stops the editor moving as the field opens. */\n .options-readfirst-editing-summary {\n margin-bottom: 2px;\n }\n .options-readfirst-reason {\n font-style: italic;\n font-size: 12px;\n line-height: 1.3;\n }\n /* Schema message panels: full width of the value column, on their own line\n directly beneath the value. */\n .options-readfirst-info-panel {\n flex-basis: 100%;\n width: 100%;\n display: flex;\n flex-flow: column;\n gap: 4px;\n margin-top: 4px;\n }\n"])), function (_a) {
|
|
158
161
|
var $color = _a.$color;
|
|
159
162
|
return $color;
|
|
160
163
|
}, function (_a) {
|
|
@@ -241,5 +244,19 @@ exports.StyledGroupBody = styled_components_1.default.div(templateObject_23 || (
|
|
|
241
244
|
var $hover = _a.$hover;
|
|
242
245
|
return $hover;
|
|
243
246
|
}, exports.PANEL_LEFT_CSS);
|
|
244
|
-
|
|
247
|
+
// One absorbed sibling, rendered inside its host row's container rather than
|
|
248
|
+
// on a row of its own (see `absorb_fields`). The pair this exists for is a code
|
|
249
|
+
// editor and its language: reading them as two unrelated rows one above the
|
|
250
|
+
// other said they were separate decisions, and they are not.
|
|
251
|
+
//
|
|
252
|
+
// Laid out as label-then-control on one line so it reads as a property of the
|
|
253
|
+
// element it now sits in, and separated from the editor below it by a hairline
|
|
254
|
+
// rather than a gap — the two share one container, so the seam has to look like
|
|
255
|
+
// a division inside it and not like two stacked things.
|
|
256
|
+
exports.StyledAbsorbedField = styled_components_1.default.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n padding-bottom: 8px;\n margin-bottom: 8px;\n border-bottom: 1px solid ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n padding-bottom: 8px;\n margin-bottom: 8px;\n border-bottom: 1px solid ", ";\n"])), function (_a) {
|
|
257
|
+
var theme = _a.theme;
|
|
258
|
+
return "".concat(theme.main, "22");
|
|
259
|
+
});
|
|
260
|
+
exports.StyledAbsorbedLabel = (0, styled_components_1.default)(reqore_1.ReqoreP)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n flex: 0 0 auto;\n margin: 0;\n"], ["\n flex: 0 0 auto;\n margin: 0;\n"])));
|
|
261
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25;
|
|
245
262
|
//# sourceMappingURL=compactRowStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactRowStyles.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactRowStyles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mDAAgE;AAChE,uEAAsF;AACtF,wEAAuC;AAEvC,8EAA8E;AAC9E,oEAAoE;AACvD,QAAA,UAAU,GAAW,KAAK,CAAC;AAExC,4EAA4E;AAC5E,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AACjE,QAAA,iBAAiB,GAAG,GAAG,CAAC,CAAC,4CAA4C;AACrE,QAAA,iBAAiB,GAAG,EAAE,CAAC,CAAC,oCAAoC;AAC5D,QAAA,eAAe,GAAG,EAAE,CAAC,CAAC,kBAAkB;AACrD,gFAAgF;AACnE,QAAA,kBAAkB,GAAG,yBAAiB,GAAG,yBAAiB,GAAG,uBAAe,CAAC;AAC1F,6EAA6E;AAChE,QAAA,kBAAkB,GAAG,0BAAkB,GAAG,EAAE,CAAC;AAC1D,iFAAiF;AACjF,iFAAiF;AACjF,6EAA6E;AAChE,QAAA,YAAY,GAAG,UAAG,yBAAiB,OAAI,CAAC;AAErD,6EAA6E;AAC7E,8EAA8E;AAC9E,6EAA6E;AAC7E,iFAAiF;AACjF,iFAAiF;AACjF,2EAA2E;AAC3E,8EAA8E;AACjE,QAAA,aAAa,GAAG,GAAG,CAAC;AACpB,QAAA,aAAa,GAAG,yBAAiB,CAAC,CAAC,MAAM;AACtD;;;;;;;;;;;;;;GAcG;AACU,QAAA,sBAAsB,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7C,QAAA,aAAa,GAAG,uBAAuB,CAAC;AACxC,QAAA,SAAS,GAAG,cAAO,qBAAa,eAAK,yBAAiB,QAAK,CAAC;AAC5D,QAAA,cAAc,GAAG,eAAQ,iBAAS,gBAAM,yBAAiB,GAAG,uBAAe,GAAG,EAAE,QAAK,CAAC;AAEnG,+EAA+E;AAC/E,gFAAgF;AAChF,0EAA0E;AAC1E,4EAA4E;AAC5E,8EAA8E;AAC9E,gCAAgC;AACnB,QAAA,kBAAkB,GAAG,IAAA,2BAAM,EAAC,oBAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"compactRowStyles.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactRowStyles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mDAAgE;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B,CAAiB,EAC3D;AAEW,QAAA,mBAAmB,GAAG,IAAA,2BAAM,EAAC,gBAAO,CAAC,0GAAA,qCAGjD,KAAC"}
|
|
@@ -20,6 +20,14 @@ export interface ICompactToolbarOptionalField {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ICompactToolbarContext {
|
|
22
22
|
readOnly?: boolean;
|
|
23
|
+
/** Which parts to render, already resolved from the engine's `compactToolbar`
|
|
24
|
+
* prop — every key present, no undefined to re-default here. */
|
|
25
|
+
parts: {
|
|
26
|
+
completion: boolean;
|
|
27
|
+
search: boolean;
|
|
28
|
+
fields: boolean;
|
|
29
|
+
help: boolean;
|
|
30
|
+
};
|
|
23
31
|
invalidCount: number;
|
|
24
32
|
attentionCount: number;
|
|
25
33
|
completion: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactToolbarContext.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;wDAEwD;AACxD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnF,8EAA8E;AAC9E,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"compactToolbarContext.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;wDAEwD;AACxD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY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AC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,4BAA4B,EAAE,CAAC;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,gEAEjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactToolbarContext.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":";;;AACA,6DAAqD;
|
|
1
|
+
{"version":3,"file":"compactToolbarContext.js","sourceRoot":"","sources":["../../../../src/components/form/engine/compactToolbarContext.ts"],"names":[],"mappings":";;;AACA,6DAAqD;AAiExC,QAAA,qBAAqB,GAAG,IAAA,oCAAa,EAChD,EAA4B,CAC7B,CAAC"}
|