@qoretechnologies/reqraft 0.10.44-pr.95.gb67bfb7 → 0.10.44
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/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +5 -1
- package/dist/components/composer/Composer.js.map +1 -1
- 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 +279 -41
- 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 +203 -98
- 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 +108 -20
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/_structuredData/structuredData.d.ts +15 -0
- package/dist/components/form/engine/_structuredData/structuredData.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/structuredData.js +22 -1
- package/dist/components/form/engine/_structuredData/structuredData.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 +21 -4
- 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 +24 -0
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +84 -6
- 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/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +64 -14
- 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/components/searchFilterBar/SearchFilterBar.d.ts +12 -1
- package/dist/components/searchFilterBar/SearchFilterBar.d.ts.map +1 -1
- package/dist/components/searchFilterBar/SearchFilterBar.js +2 -2
- package/dist/components/searchFilterBar/SearchFilterBar.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +1 -1
- package/dist/components/ticketThread/TicketThread.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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/composer/Composer.tsx +7 -3
- package/src/components/form/engine/CompactRow.tsx +391 -29
- 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 +231 -68
- package/src/components/form/engine/_structuredData/SchemaDataView.stories.tsx +123 -0
- package/src/components/form/engine/_structuredData/SchemaDataView.tsx +217 -95
- package/src/components/form/engine/_structuredData/structuredData.ts +20 -0
- package/src/components/form/engine/compactRowStyles.ts +38 -1
- package/src/components/form/engine/compactToolbarContext.ts +8 -0
- package/src/components/form/engine/readFirst.ts +125 -35
- 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/ArrayAutoField.stories.tsx +81 -0
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +47 -1
- package/src/components/form/fields/auto/AutoFormField.tsx +73 -11
- 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/components/searchFilterBar/SearchFilterBar.stories.tsx +62 -0
- package/src/components/searchFilterBar/SearchFilterBar.tsx +13 -0
- package/src/components/ticketThread/TicketThread.tsx +7 -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 +1 -0
|
@@ -31,10 +31,11 @@ var structuredData_1 = require("./structuredData");
|
|
|
31
31
|
* So a described value is rendered the way the form asked for it, in the form's
|
|
32
32
|
* own clothes:
|
|
33
33
|
*
|
|
34
|
-
* - Field names use `
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
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.
|
|
38
39
|
* - Values are formatted by the same `formatOptionValue` the rows use, so an
|
|
39
40
|
* `allowed_values` entry resolves to its display name, a bool to Yes/No, a
|
|
40
41
|
* date to the app's format. The same words appear in the summary, the preview
|
|
@@ -99,10 +100,37 @@ var StyledItemTitle = styled_components_1.default.div(templateObject_4 || (templ
|
|
|
99
100
|
var $mono = _a.$mono;
|
|
100
101
|
return ($mono ? "font-family: ".concat(compactRowStyles_1.MONO_FONT_STACK, "; font-size: 15px;") : '');
|
|
101
102
|
});
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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');
|
|
106
134
|
});
|
|
107
135
|
/**
|
|
108
136
|
* A record's fields: one shared label column, values in the next.
|
|
@@ -112,15 +140,33 @@ var StyledItemFields = styled_components_1.default.div(templateObject_5 || (temp
|
|
|
112
140
|
* and leave the items ragged against each other, which reads as a rendering
|
|
113
141
|
* fault rather than as a list.
|
|
114
142
|
*/
|
|
115
|
-
|
|
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);
|
|
116
162
|
/** A nested level spans both columns and indents under its own name. */
|
|
117
|
-
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) {
|
|
118
164
|
var $border = _a.$border;
|
|
119
165
|
return $border;
|
|
120
166
|
});
|
|
121
|
-
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"])));
|
|
122
168
|
/** A code value is a block, not a cell: it spans the grid under its own name. */
|
|
123
|
-
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"])));
|
|
124
170
|
/** Look inside a `{type, value}` envelope, once. `isUiEncodedValue` is the
|
|
125
171
|
* engine's single authority on what an envelope is — a looser test would unwrap
|
|
126
172
|
* a real user hash that happens to carry a `value` key and drop its siblings. */
|
|
@@ -137,6 +183,10 @@ var isRecord = function (value) {
|
|
|
137
183
|
* the `%` ceiling stops one long name from taking the whole row when the inset
|
|
138
184
|
* is narrow — a phone, or a deeply nested level.
|
|
139
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;
|
|
140
190
|
var labelColumn = function (value, schema) {
|
|
141
191
|
var inner = unwrap(value);
|
|
142
192
|
var records = (Array.isArray(inner) ? inner.map(unwrap) : [inner]).filter(isRecord);
|
|
@@ -146,7 +196,24 @@ var labelColumn = function (value, schema) {
|
|
|
146
196
|
}, 0);
|
|
147
197
|
return Math.max(widest, own);
|
|
148
198
|
}, 0);
|
|
149
|
-
|
|
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);
|
|
150
217
|
};
|
|
151
218
|
/** One field's value, rendered the way its row above renders it. */
|
|
152
219
|
var FieldValue = function (_a) {
|
|
@@ -168,7 +235,14 @@ var FieldValue = function (_a) {
|
|
|
168
235
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'small', minimal: true, intent: field.value === true ? 'success' : 'danger', label: formatted })
|
|
169
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 ?
|
|
170
237
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { image: image, size: '14px', style: { flexShrink: 0, marginRight: 6, verticalAlign: 'middle' } })
|
|
171
|
-
: 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] }) }));
|
|
172
246
|
};
|
|
173
247
|
/** One described hash: its fields as label/value pairs in the shared columns. */
|
|
174
248
|
var SchemaRecord = function (_a) {
|
|
@@ -183,13 +257,27 @@ var SchemaRecord = function (_a) {
|
|
|
183
257
|
.map(function (key) {
|
|
184
258
|
var fieldSchema = schema[key];
|
|
185
259
|
var nested = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.arg_schema;
|
|
186
|
-
|
|
260
|
+
// A schema-declared field the form materialised but never filled in
|
|
261
|
+
// arrives as `{type: 'int'}` with no `value` key. `unwrap` cannot see
|
|
262
|
+
// that — `isUiEncodedValue` requires a `value` — so it fell through as
|
|
263
|
+
// CONTENT and was wrapped as one below, and `formatOptionValue` counted
|
|
264
|
+
// the envelope's own `type` key: an untouched Runtime Defaults read
|
|
265
|
+
// "Timeout (Seconds) 1 field" three times over while the sub-form it
|
|
266
|
+
// previews correctly said 0/3 set. `fieldSchema` is what licenses the
|
|
267
|
+
// reading: the schema declares this field, so a `{type}`-only object
|
|
268
|
+
// under it is an empty envelope, never somebody's data.
|
|
269
|
+
var raw = record[key];
|
|
270
|
+
// `!nested` is the discriminator, and it is not a detail: a field that
|
|
271
|
+
// declares its OWN level describes what is inside it, so `{type: 'default'}`
|
|
272
|
+
// there is content — the scheme's Scheme Type, reading "Default RBAC" —
|
|
273
|
+
// not an envelope. Only a leaf can be empty in this sense.
|
|
274
|
+
var value = fieldSchema && !nested && (0, structuredData_1.isEmptyUiEnvelope)(raw) ? undefined : unwrap(raw);
|
|
187
275
|
var label = (0, readFirst_1.fieldLabel)(key, fieldSchema);
|
|
188
276
|
var labelWithType = showTypes && (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.type) ? "".concat(label, " \u00B7 ").concat(fieldSchema.type) : label;
|
|
189
277
|
// A field that describes its own level renders AS that level, indented
|
|
190
278
|
// under its name — the same decision, one step down.
|
|
191
279
|
if (nested && (isRecord(value) || Array.isArray(value))) {
|
|
192
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledNestedLabel, { children: (0, jsx_runtime_1.jsx)(
|
|
280
|
+
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));
|
|
193
281
|
}
|
|
194
282
|
// A code value is source, and source is read as source: the host's renderer
|
|
195
283
|
// gives it the syntax highlighting (and read-only LSP hover) it has in the
|
|
@@ -197,7 +285,7 @@ var SchemaRecord = function (_a) {
|
|
|
197
285
|
// preview. Flattening it to one mono line — which is what a plain value cell
|
|
198
286
|
// does — throws all of that away for a field whose whole content is code.
|
|
199
287
|
if ((0, readFirst_1.isCodeField)(fieldSchema) && typeof value === 'string') {
|
|
200
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledNestedLabel, { children: (0, jsx_runtime_1.jsx)(
|
|
288
|
+
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 ?
|
|
201
289
|
codePreviewRenderer({
|
|
202
290
|
value: value,
|
|
203
291
|
name: key,
|
|
@@ -207,7 +295,7 @@ var SchemaRecord = function (_a) {
|
|
|
207
295
|
})
|
|
208
296
|
: (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));
|
|
209
297
|
}
|
|
210
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
298
|
+
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));
|
|
211
299
|
}) }));
|
|
212
300
|
};
|
|
213
301
|
/** A level: a list of numbered items, or a single described hash. */
|
|
@@ -217,7 +305,7 @@ var SchemaLevel = function (_a) {
|
|
|
217
305
|
if (Array.isArray(inner)) {
|
|
218
306
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: inner.map(function (item, index) {
|
|
219
307
|
var record = unwrap(item);
|
|
220
|
-
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) ?
|
|
308
|
+
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) ?
|
|
221
309
|
(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(function () {
|
|
222
310
|
var identity = (0, readFirst_1.recordIdentity)(record, schema);
|
|
223
311
|
if (!identity) {
|
|
@@ -257,5 +345,5 @@ var canRenderWithSchema = function (value, schema) {
|
|
|
257
345
|
return isRecord(inner);
|
|
258
346
|
};
|
|
259
347
|
exports.canRenderWithSchema = canRenderWithSchema;
|
|
260
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
348
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
261
349
|
//# 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,0CASsB;AACtB,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,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,2vBAiB/C,EAAiF,IACpF,KA1BU,UAAC,EAAU;QAAR,MAAM,YAAA;IAAO,OAAA,MAAM;AAAN,CAAM,EAOjB,UAAC,EAAW;QAAT,OAAO,aAAA;IAAO,OAAA,UAAG,OAAO,OAAI;AAAd,CAAc,EACpB,UAAC,EAAW;QAAT,OAAO,aAAA;IAAO,OAAA,OAAO;AAAP,CAAO,EAiB/C,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,uBAAgB,kCAAe,uBAAoB,CAAC,CAAC,CAAC,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AAO,MAAM,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,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,wDAK6B;AAC7B,0CASsB;AACtB,mDAAuE;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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AI,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"}
|
|
@@ -10,6 +10,21 @@ export interface IUiEncodedValue {
|
|
|
10
10
|
export declare const UI_ENVELOPE_KEY_LIST: ReadonlyArray<string>;
|
|
11
11
|
export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
|
|
12
12
|
export declare const isStructuredContainerValue: (value: unknown) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A field the form materialised but left UNSET: `{type: 'int'}`, no `value` key.
|
|
15
|
+
*
|
|
16
|
+
* `fixOptions` omits the key entirely when the value is undefined, so this is
|
|
17
|
+
* what an untouched sub-field of a schema-declared hash looks like on the wire.
|
|
18
|
+
* It is an EMPTY ENVELOPE, never content — and every renderer has to agree on
|
|
19
|
+
* that, because the ones that do not count the envelope's own `type` key and
|
|
20
|
+
* report an unset field as "1 field" while the sub-form correctly says 0 set.
|
|
21
|
+
*
|
|
22
|
+
* Deliberately separate from {@link isUiEncodedValue}, which requires a `value`
|
|
23
|
+
* and therefore cannot see this shape. Callers gate on knowing the field is
|
|
24
|
+
* schema-declared: without a schema saying so, a `{type: …}` object could
|
|
25
|
+
* legitimately be somebody's data.
|
|
26
|
+
*/
|
|
27
|
+
export declare const isEmptyUiEnvelope: (value: unknown) => boolean;
|
|
13
28
|
export declare const isUiEncodedValue: (value: unknown) => value is IUiEncodedValue;
|
|
14
29
|
export declare const parseSerializedStructuredText: (value: string) => {
|
|
15
30
|
prefix?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structuredData.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/engine/_structuredData/structuredData.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB,UAAW,MAAM,GAAG,MAAM,GAAG,IAAI,KAAG,MASlE,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAatD,CAAC;AAOF,eAAO,MAAM,QAAQ,UAAW,OAAO,qCACwB,CAAC;AAEhE,eAAO,MAAM,0BAA0B,UAAW,OAAO,KAAG,OACnB,CAAC;AAE1C,eAAO,MAAM,gBAAgB,UAAW,OAAO,6BAM9C,CAAC;AA6BF,eAAO,MAAM,6BAA6B,UACjC,MAAM,KACZ;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,SAsBvC,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,MAAM,GAAG,SAS7D,CAAC"}
|
|
1
|
+
{"version":3,"file":"structuredData.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/engine/_structuredData/structuredData.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB,UAAW,MAAM,GAAG,MAAM,GAAG,IAAI,KAAG,MASlE,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAatD,CAAC;AAOF,eAAO,MAAM,QAAQ,UAAW,OAAO,qCACwB,CAAC;AAEhE,eAAO,MAAM,0BAA0B,UAAW,OAAO,KAAG,OACnB,CAAC;AAE1C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,OAIW,CAAC;AAE/D,eAAO,MAAM,gBAAgB,UAAW,OAAO,6BAM9C,CAAC;AA6BF,eAAO,MAAM,6BAA6B,UACjC,MAAM,KACZ;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,SAsBvC,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,MAAM,GAAG,SAS7D,CAAC"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.qorusDateStringToIso = exports.parseSerializedStructuredText = exports.isUiEncodedValue = exports.isStructuredContainerValue = exports.isRecord = exports.UI_ENVELOPE_KEY_LIST = exports.formatIdeTimestamp = void 0;
|
|
6
|
+
exports.qorusDateStringToIso = exports.parseSerializedStructuredText = exports.isUiEncodedValue = exports.isEmptyUiEnvelope = exports.isStructuredContainerValue = exports.isRecord = exports.UI_ENVELOPE_KEY_LIST = exports.formatIdeTimestamp = void 0;
|
|
7
7
|
var js_yaml_1 = __importDefault(require("js-yaml"));
|
|
8
8
|
// Ported from qorus-ide's `helpers/date` (moment-based) as a native-Date
|
|
9
9
|
// formatter so this copy carries no extra dependency. Same output shape:
|
|
@@ -47,6 +47,27 @@ var isStructuredContainerValue = function (value) {
|
|
|
47
47
|
return Array.isArray(value) || (0, exports.isRecord)(value);
|
|
48
48
|
};
|
|
49
49
|
exports.isStructuredContainerValue = isStructuredContainerValue;
|
|
50
|
+
/**
|
|
51
|
+
* A field the form materialised but left UNSET: `{type: 'int'}`, no `value` key.
|
|
52
|
+
*
|
|
53
|
+
* `fixOptions` omits the key entirely when the value is undefined, so this is
|
|
54
|
+
* what an untouched sub-field of a schema-declared hash looks like on the wire.
|
|
55
|
+
* It is an EMPTY ENVELOPE, never content — and every renderer has to agree on
|
|
56
|
+
* that, because the ones that do not count the envelope's own `type` key and
|
|
57
|
+
* report an unset field as "1 field" while the sub-form correctly says 0 set.
|
|
58
|
+
*
|
|
59
|
+
* Deliberately separate from {@link isUiEncodedValue}, which requires a `value`
|
|
60
|
+
* and therefore cannot see this shape. Callers gate on knowing the field is
|
|
61
|
+
* schema-declared: without a schema saying so, a `{type: …}` object could
|
|
62
|
+
* legitimately be somebody's data.
|
|
63
|
+
*/
|
|
64
|
+
var isEmptyUiEnvelope = function (value) {
|
|
65
|
+
return (0, exports.isRecord)(value) &&
|
|
66
|
+
typeof value.type === 'string' &&
|
|
67
|
+
!('value' in value) &&
|
|
68
|
+
Object.keys(value).every(function (key) { return UI_ENVELOPE_KEYS.has(key); });
|
|
69
|
+
};
|
|
70
|
+
exports.isEmptyUiEnvelope = isEmptyUiEnvelope;
|
|
50
71
|
var isUiEncodedValue = function (value) {
|
|
51
72
|
if (!(0, exports.isRecord)(value) || typeof value.type !== 'string' || !('value' in value)) {
|
|
52
73
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structuredData.js","sourceRoot":"","sources":["../../../../../src/components/form/engine/_structuredData/structuredData.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;AAE3B,yEAAyE;AACzE,yEAAyE;AACzE,6EAA6E;AAC7E,IAAM,GAAG,GAAG,UAAC,CAAS,EAAE,GAAO;IAAP,oBAAA,EAAA,OAAO;IAAa,OAAA,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;AAA5B,CAA4B,CAAC;AAClE,IAAM,kBAAkB,GAAG,UAAC,KAA6B;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CAAC,CAAC;IACrD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAEpB,IAAA,IAAI,GAAgD,KAAK,GAArD,EAAE,IAAI,GAA0C,KAAK,GAA/C,EAAE,QAAQ,GAAgC,KAAK,GAArC,EAAE,WAAW,GAAmB,KAAK,GAAxB,EAAE,aAAa,GAAI,KAAK,GAAT,CAAU;IACnE,IAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,WAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrE,IAAM,MAAM,GAAG,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,UAAG,WAAW,cAAI,aAAa,CAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAErF,OAAO,UAAG,IAAI,cAAI,IAAI,SAAG,EAAE,SAAG,MAAM,CAAE,CAAC;AACzC,CAAC,CAAC;AATW,QAAA,oBAAoB,wBAS/B"}
|
|
@@ -61,4 +61,6 @@ export declare const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, 'SF Mono',
|
|
|
61
61
|
export 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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,KAKjC,CAAC;AAMF,eAAO,MAAM,eAAe,KAQ3B,CAAC;AAMF,eAAO,MAAM,wBAAwB,KAapC,CAAC;AACF,eAAO,MAAM,2BAA2B,KAUvC,CAAC;AAKF,eAAO,MAAM,yBAAyB,KAOrC,CAAC;AAQF,eAAO,MAAM,iBAAiB,KAwB7B,CAAC;AAEF,eAAO,MAAM,cAAc,KAkB1B,CAAC;AAGF,eAAO,MAAM,gBAAgB,KAK5B,CAAC;AAEF,eAAO,MAAM,cAAc,KAW1B,CAAC;AAMF,eAAO,MAAM,eAAe,KAO3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,KAI7B,CAAC;AAIF,eAAO,MAAM,eAAe,KAO3B,CAAC;AAIF,eAAO,MAAM,cAAc,KA2C1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAQ5B,CAAC;AAMF,eAAO,MAAM,eAAe,KAO3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAK5B,CAAC;AAEF,eAAO,MAAM,YAAY,KAGxB,CAAC;AAKF,eAAO,MAAM,cAAc,KAI1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,2FAC8D,CAAC;AAO3F,eAAO,MAAM,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"])));
|
|
@@ -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;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,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,CAAM,EA0BtB,UAAC,EAAU;QAAR,MAAM,YAAA;IAAO,OAAA,MAAM;AAAN,CAAM,EA0D5B,sBAAc,EAkDxB;AAEF,6EAA6E;AAC7E,gFAAgF;AAChF,4EAA4E;AAC5E,6DAA6D;AAC7D,EAAE;AACF,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,wDAAwD;AAC3C,QAAA,mBAAmB,GAAG,2BAAM,CAAC,GAAG,mOAAA,uJAOhB,EAAgC,KAC5D,KAD4B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,UAAG,KAAK,CAAC,IAAI,OAAI;AAAjB,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,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;IACnB;qEACiE;IACjE,KAAK,EAAE;QACL,UAAU,EAAE,OAAO,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IAEF,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAExD,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAEhC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzC,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAE/D,WAAW,EAAE,YAAY,CAAC;IAC1B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACnE,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAG/B,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAC;IACzC,uBAAuB,EAAE,MAAM,IAAI,CAAC;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"}
|
|
@@ -5,6 +5,23 @@ import { IQorusFormField, IQorusFormSchema, TQorusFormFieldSchema } from '@qoret
|
|
|
5
5
|
*/
|
|
6
6
|
/** A value is "empty" (nothing set) when it is nullish, an empty string, or an empty array. */
|
|
7
7
|
export declare const isOptionValueEmpty: (value: unknown) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* A schema-declared hash whose every entry is a materialised-but-unset field.
|
|
10
|
+
*
|
|
11
|
+
* `preselected` on a sub-field means "show this in the form so the author sees
|
|
12
|
+
* it exists" — a FORM instruction. Opening the sub-form materialises each one,
|
|
13
|
+
* `fixOptions` writes `{type: 'int'}` with no value, and the draft autosaves
|
|
14
|
+
* that, so the stored hash permanently carries keys that stand for nothing.
|
|
15
|
+
*
|
|
16
|
+
* The row then read those keys as content: `Runtime Defaults` listed three
|
|
17
|
+
* sub-fields with no values, counted toward "7/12 set", and showed a green
|
|
18
|
+
* set-dot — while the sub-form it summarises correctly said 0/3 set. Nothing
|
|
19
|
+
* was ever entered.
|
|
20
|
+
*
|
|
21
|
+
* Requires the sub-schema, and requires each key to be declared by it: without
|
|
22
|
+
* that, `{type: 'x'}` could be somebody's data rather than an empty envelope.
|
|
23
|
+
*/
|
|
24
|
+
export declare const isUnsetSchemaHash: (value: unknown, schema?: TQorusFormFieldSchema) => boolean;
|
|
8
25
|
export declare const isFixedCompactAllowedValueOption: (schema: TQorusFormFieldSchema | undefined) => boolean;
|
|
9
26
|
export declare const shouldAutoCollapseCompactAllowedValueOption: (schema: TQorusFormFieldSchema | undefined, value: unknown) => boolean;
|
|
10
27
|
/** Boolean fields have three meaningful states: unset, Yes, and No. Once the
|
|
@@ -16,6 +33,13 @@ export declare const shouldAutoCollapseCompactOption: (schema: TQorusFormFieldSc
|
|
|
16
33
|
* Prefer the matching allowed_values entry's display_name (fallback `name`)
|
|
17
34
|
* over the raw stored value.
|
|
18
35
|
*
|
|
36
|
+
* A LIST carries its options under `element_allowed_values` — they constrain
|
|
37
|
+
* each element, not the list itself — so a multi-select that was missing here
|
|
38
|
+
* printed what it stores rather than what you picked: `orders, batch` for
|
|
39
|
+
* fields whose picker reads "Orders, Batch". The gap shows worst exactly where
|
|
40
|
+
* allowed values earn their keep, since the stored form is often not readable
|
|
41
|
+
* at all (a permission code, `PO_REQUIRE_TYPES`, an app-specific id).
|
|
42
|
+
*
|
|
19
43
|
* Exported (as `findAllowedValueOption`) because the form engine's value
|
|
20
44
|
* validation has to answer the SAME question — "is this stored value one of the
|
|
21
45
|
* declared choices?" — and answering it differently loses data. An
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readFirst.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/readFirst.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EAEtB,MAAM,8BAA8B,CAAC;AA4ItC;;;GAGG;AAEH,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,OAIN,CAAC;AAE/C,eAAO,MAAM,gCAAgC,WACnC,qBAAqB,GAAG,SAAS,KACxC,OAiBF,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAC9C,qBAAqB,GAAG,SAAS,SAClC,OAAO,KACb,OAAiF,CAAC;AAErF;;sEAEsE;AACtE,eAAO,MAAM,sBAAsB,WAAY,qBAAqB,GAAG,SAAS,KAAG,OAGlF,CAAC;AAEF,eAAO,MAAM,+BAA+B,WAClC,qBAAqB,GAAG,SAAS,SAClC,OAAO,KACb,OAE2E,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"readFirst.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/readFirst.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EAEtB,MAAM,8BAA8B,CAAC;AA4ItC;;;GAGG;AAEH,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,OAIN,CAAC;AAE/C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,WAAW,qBAAqB,KAAG,OAqBlF,CAAC;AAEF,eAAO,MAAM,gCAAgC,WACnC,qBAAqB,GAAG,SAAS,KACxC,OAiBF,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAC9C,qBAAqB,GAAG,SA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