@qoretechnologies/reqraft 0.10.77-pr.145.g489dc0c → 0.10.77-pr.145.g95c8308
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/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +24 -15
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +10 -0
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +20 -13
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/fields/color/Color.d.ts.map +1 -1
- package/dist/components/form/fields/color/Color.js +9 -6
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/supportTicket/meta.d.ts +12 -7
- package/dist/components/supportTicket/meta.d.ts.map +1 -1
- package/dist/components/supportTicket/meta.js +27 -20
- package/dist/components/supportTicket/meta.js.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.js +1 -1
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/helpers/readableColors.d.ts +8 -0
- package/dist/helpers/readableColors.d.ts.map +1 -1
- package/dist/helpers/readableColors.js +12 -1
- package/dist/helpers/readableColors.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormEngine.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/FormEngine.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"FormEngine.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/FormEngine.tsx"],"names":[],"mappings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C;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC7C;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE9C;;;;;;;;;;;;;;;;OAgBG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEnE;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA+gID;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,UAAW,gBAAgB,4CAwBjD,CAAC;AAIF,eAAe,UAAU,CAAC"}
|
|
@@ -892,7 +892,11 @@ var FormEngineImpl = function (_a) {
|
|
|
892
892
|
header's height below the top edge with nothing under it. Read from
|
|
893
893
|
the element rather than from the props that produced it, so every
|
|
894
894
|
route to that decision is accounted for. */
|
|
895
|
-
|
|
895
|
+
/* A Reqore that pins a header only while its panel is clearly taller than its scroller
|
|
896
|
+
(decision 028, reqore#715) says whether it pins in `data-pins-header`, and decides it
|
|
897
|
+
after it has measured, so the toolbar was not sticky yet when this first read it. */
|
|
898
|
+
var says = header.getAttribute('data-pins-header');
|
|
899
|
+
var pinned = says !== null ? says === 'true' : getComputedStyle(header).position === 'sticky';
|
|
896
900
|
var next = pinned ? Math.round(header.getBoundingClientRect().height) : 0;
|
|
897
901
|
return prev === next ? prev : next;
|
|
898
902
|
});
|
|
@@ -900,25 +904,29 @@ var FormEngineImpl = function (_a) {
|
|
|
900
904
|
read();
|
|
901
905
|
/* jsdom and older engines have no ResizeObserver; the one-shot read above
|
|
902
906
|
still gives the right answer for a form whose toolbar never reflows. */
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
907
|
+
var observer = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(read);
|
|
908
|
+
observer === null || observer === void 0 ? void 0 : observer.observe(header);
|
|
909
|
+
/* The pin can change without the toolbar's size changing: Reqore measures first and pins
|
|
910
|
+
after, and pins no more once the form is short. */
|
|
911
|
+
var pinWatch = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(read);
|
|
912
|
+
pinWatch === null || pinWatch === void 0 ? void 0 : pinWatch.observe(header, { attributes: true, attributeFilter: ['data-pins-header'] });
|
|
913
|
+
return function () {
|
|
914
|
+
observer === null || observer === void 0 ? void 0 : observer.disconnect();
|
|
915
|
+
pinWatch === null || pinWatch === void 0 ? void 0 : pinWatch.disconnect();
|
|
916
|
+
};
|
|
909
917
|
/* `compactNarrow` is a dependency, not decoration: crossing the width
|
|
910
918
|
breakpoint takes the pin OFF the toolbar without changing its height, so
|
|
911
919
|
the ResizeObserver never fires and a stale 124px would go on offsetting
|
|
912
920
|
the box headers below a toolbar that is no longer there. */
|
|
913
921
|
}, [compact, compactNested, compactStickyBoxHeaders, compactNarrow, compactWrapNode, options]);
|
|
914
|
-
/* The
|
|
922
|
+
/* The color a calm form sits on, for its pinned toolbar's glass.
|
|
915
923
|
|
|
916
924
|
A calm form has no surface of its own, so the toolbar has to paint one to
|
|
917
925
|
keep the rows that scroll under it from showing through the meter and the
|
|
918
|
-
search — and it has to be the host's
|
|
926
|
+
search — and it has to be the host's color, or it draws a band across the
|
|
919
927
|
form before anything has moved. The host is whatever paints first above the
|
|
920
928
|
form: the page, a drawer's panel surface, a card. Read once it mounts (and
|
|
921
|
-
when the theme changes), not assumed from the theme's main
|
|
929
|
+
when the theme changes), not assumed from the theme's main color. */
|
|
922
930
|
var _13 = (0, react_2.useState)(), compactHostColour = _13[0], setCompactHostColour = _13[1];
|
|
923
931
|
(0, react_2.useLayoutEffect)(function () {
|
|
924
932
|
if (!calm || !compact || compactNested || !compactWrapNode) {
|
|
@@ -2903,7 +2911,7 @@ var FormEngineImpl = function (_a) {
|
|
|
2903
2911
|
var stagedRows = new Map();
|
|
2904
2912
|
// Whether the box being drawn shows its rows: a collapsed one keeps only their places (`useOpenBoxes`)
|
|
2905
2913
|
var drawingRows = true;
|
|
2906
|
-
// Calm: the host's own
|
|
2914
|
+
// Calm: the host's own color (see `compactHostColour`), so the pinned
|
|
2907
2915
|
// toolbar is invisible until something scrolls under it - and opaque, so
|
|
2908
2916
|
// what scrolls under it does not read through. At 88% with a blur the rows
|
|
2909
2917
|
// still showed through crisply around the readiness line and the search
|
|
@@ -3236,10 +3244,10 @@ var FormEngineImpl = function (_a) {
|
|
|
3236
3244
|
if (requiredGroupsInfo.satisfiedBy[grp])
|
|
3237
3245
|
return railed;
|
|
3238
3246
|
// Amber once someone has been to the group (or a submit was attempted); until
|
|
3239
|
-
// then it is still to fill in, in the quiet
|
|
3247
|
+
// then it is still to fill in, in the quiet color, like its members.
|
|
3240
3248
|
var clusterVisited = memberEntries.some(function (e) { return getOptionStatus(e.name) !== 'pending'; });
|
|
3241
3249
|
var clusterColor = clusterVisited ? cWarning : cMuted;
|
|
3242
|
-
// its words and mark: the same
|
|
3250
|
+
// its words and mark: the same color, in the shade of it that reads on the tint
|
|
3243
3251
|
var clusterInk = clusterVisited ? rowInks.warning : rowInks.mutedReason;
|
|
3244
3252
|
return ((0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRequiredClusterBox, { className: 'options-readfirst-required-cluster', "$border": "".concat(clusterColor, "33"), "$tint": "".concat(clusterColor, "0d"), "$calm": calm, children: [(0, jsx_runtime_1.jsxs)(compactRowStyles_1.StyledRequiredClusterHeader, { className: 'options-readfirst-required-cluster-header', "$color": clusterInk, "$calm": calm, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreIcon, { icon: 'LinkM', size: calm ? '13px' : '11px', style: { color: clusterInk } }), feWords.oneOfRequired] }), railed] }, grp));
|
|
3245
3253
|
});
|
|
@@ -3271,7 +3279,7 @@ var FormEngineImpl = function (_a) {
|
|
|
3271
3279
|
(0, jsx_runtime_1.jsx)(reqore_1.ReqoreP, { className: 'options-readfirst-group-subtitle', size: 'small', effect: { opacity: 0.6 }, style: calm ?
|
|
3272
3280
|
// Under the calm heading, at the rows' inset; the space below
|
|
3273
3281
|
// it is the next row's own padding.
|
|
3274
|
-
{ margin: 0, padding: "2px ".concat(compactRowStyles_1.
|
|
3282
|
+
{ margin: 0, padding: "2px ".concat(compactRowStyles_1.CALM_INSET, " 4px") }
|
|
3275
3283
|
: {
|
|
3276
3284
|
marginTop: 2,
|
|
3277
3285
|
marginBottom: 8,
|
|
@@ -3291,7 +3299,8 @@ var FormEngineImpl = function (_a) {
|
|
|
3291
3299
|
$hairline: cHairline,
|
|
3292
3300
|
$divider: cDivider,
|
|
3293
3301
|
$hover: cHover,
|
|
3294
|
-
|
|
3302
|
+
// The keyboard's ring in the one ring color (decision 030); amber said a good row was at fault
|
|
3303
|
+
$focus: (0, readableColors_1.getFocusRingColor)(theme),
|
|
3295
3304
|
// Calm: the text color's wash, as a hovered row has; amber would say the group is wrong (a satisfied one
|
|
3296
3305
|
// stayed amber under the pointer)
|
|
3297
3306
|
$groupHighlight: calm ? cHover : "".concat(cWarning, "1f"),
|