@g9tm/lynxcontrols 1.5.0 → 1.6.0
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/.tsbuildinfo +1 -1
- package/dist/fields/use-text-input.d.ts +1 -1
- package/dist/guide/confirm-sheet.d.ts +26 -0
- package/dist/guide/confirm-sheet.d.ts.map +1 -0
- package/dist/guide/confirm-sheet.jsx +146 -0
- package/dist/guide/confirm-sheet.jsx.map +1 -0
- package/dist/guide/guide.css +63 -88
- package/dist/guide/guide.css.map +1 -1
- package/dist/guide/journey.d.ts.map +1 -1
- package/dist/guide/journey.jsx +10 -12
- package/dist/guide/journey.jsx.map +1 -1
- package/dist/guide/service.d.ts +11 -1
- package/dist/guide/service.d.ts.map +1 -1
- package/dist/guide/service.jsx +44 -98
- package/dist/guide/service.jsx.map +1 -1
- package/dist/guide/settings.d.ts +20 -2
- package/dist/guide/settings.d.ts.map +1 -1
- package/dist/guide/settings.jsx +10 -4
- package/dist/guide/settings.jsx.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type G9ChangeLine, type G9JourneySource } from '@g9tm/lynxcontrols-foundation';
|
|
2
|
+
import type { G9HostHandle } from '../host/registry.js';
|
|
3
|
+
import { type G9ResolvedGuideSettings } from './settings.js';
|
|
4
|
+
/** What the sheet shows (the guide's `G9ConfirmRequest`). */
|
|
5
|
+
export interface G9ConfirmSheetRequest {
|
|
6
|
+
readonly title: string;
|
|
7
|
+
readonly source: G9JourneySource;
|
|
8
|
+
readonly changes: readonly G9ChangeLine[];
|
|
9
|
+
readonly seconds: number;
|
|
10
|
+
readonly destructive: boolean;
|
|
11
|
+
readonly progress?: {
|
|
12
|
+
readonly index: number;
|
|
13
|
+
readonly total: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/** An open confirmation: closes it as declined. */
|
|
17
|
+
export interface G9ConfirmSheetPresentation {
|
|
18
|
+
dismiss(): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Opens the confirmation sheet on the host's sheet stack (stacked over an open sheet, never throttled). `decide` is
|
|
22
|
+
* called exactly once, after the sheet has left the screen: true only for the unlocked confirm; the other button, the
|
|
23
|
+
* header's close, a drag down, a tap on the dim and Android back all decline.
|
|
24
|
+
*/
|
|
25
|
+
export declare function presentConfirmSheet(host: G9HostHandle, settings: G9ResolvedGuideSettings, request: G9ConfirmSheetRequest, decide: (ok: boolean) => void): G9ConfirmSheetPresentation;
|
|
26
|
+
//# sourceMappingURL=confirm-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-sheet.d.ts","sourceRoot":"","sources":["../../src/guide/confirm-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAmB,MAAM,+BAA+B,CAAC;AAGzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKrD,OAAO,EAAsC,KAAK,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAY9F,6DAA6D;AAC7D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACxE;AAED,mDAAmD;AACnD,MAAM,WAAW,0BAA0B;IACzC,OAAO,IAAI,IAAI,CAAC;CACjB;AAOD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,uBAAuB,EACjC,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,IAAI,GAC5B,0BAA0B,CAgF5B"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { g9RuntimeTimers } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
+
import { useSyncExternalStore } from "@lynx-js/react";
|
|
3
|
+
import { G9Button } from "../button/button.jsx";
|
|
4
|
+
import { useG9Direction, useG9Settings } from "../provider/hooks.jsx";
|
|
5
|
+
import { sheetServiceOf } from "../sheet/service.jsx";
|
|
6
|
+
import { formatGuideText } from "./settings.jsx";
|
|
7
|
+
function presentConfirmSheet(host, settings, request, decide) {
|
|
8
|
+
let left = Math.max(0, Math.round(request.seconds));
|
|
9
|
+
const listeners = new Set();
|
|
10
|
+
const countdown = {
|
|
11
|
+
get: ()=>left,
|
|
12
|
+
subscribe (l) {
|
|
13
|
+
listeners.add(l);
|
|
14
|
+
return ()=>{
|
|
15
|
+
listeners.delete(l);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
let timer = null;
|
|
20
|
+
const tick = ()=>{
|
|
21
|
+
left = Math.max(0, left - 1);
|
|
22
|
+
timer = left > 0 ? g9RuntimeTimers.setTimeout(tick, 1000) : null;
|
|
23
|
+
for (const l of Array.from(listeners))l();
|
|
24
|
+
};
|
|
25
|
+
if (left > 0) timer = g9RuntimeTimers.setTimeout(tick, 1000);
|
|
26
|
+
const stop = ()=>{
|
|
27
|
+
if (null !== timer) g9RuntimeTimers.clearTimeout(timer);
|
|
28
|
+
timer = null;
|
|
29
|
+
};
|
|
30
|
+
let chosen = null;
|
|
31
|
+
let handle = null;
|
|
32
|
+
const choose = (ok)=>{
|
|
33
|
+
if (null !== chosen || (null == handle ? void 0 : handle.isOpen) === false || ok && left > 0) return;
|
|
34
|
+
chosen = ok;
|
|
35
|
+
stop();
|
|
36
|
+
null == handle || handle.close();
|
|
37
|
+
};
|
|
38
|
+
const texts = settings.texts;
|
|
39
|
+
const fontSize = settings.confirmButtonFontSize;
|
|
40
|
+
const options = {
|
|
41
|
+
sizeMode: 'fitToContent',
|
|
42
|
+
maxFitToContentHeightRatio: 0.75,
|
|
43
|
+
isCancelable: true,
|
|
44
|
+
isDraggable: true,
|
|
45
|
+
hasHandle: true,
|
|
46
|
+
deferContent: false,
|
|
47
|
+
showToolbar: true,
|
|
48
|
+
showCloseButton: true,
|
|
49
|
+
headerTitlePlacement: 'center',
|
|
50
|
+
scrollIndicator: 'always',
|
|
51
|
+
automationId: 'G9GuideConfirm',
|
|
52
|
+
...settings.confirmSheet(),
|
|
53
|
+
title: request.title,
|
|
54
|
+
footerButtons: [
|
|
55
|
+
<G9Button key="cancel" text={texts.cancel} variant="outline" size="hero" {...null !== fontSize ? {
|
|
56
|
+
fontSize
|
|
57
|
+
} : {}} onPress={()=>choose(false)}/>,
|
|
58
|
+
<ConfirmButton key="confirm" countdown={countdown} texts={texts} destructive={request.destructive} fontSize={fontSize} onPress={()=>choose(true)}/>
|
|
59
|
+
]
|
|
60
|
+
};
|
|
61
|
+
handle = sheetServiceOf(host).stack.show(<ConfirmBody request={request} texts={texts}/>, options, false);
|
|
62
|
+
const settle = ()=>{
|
|
63
|
+
stop();
|
|
64
|
+
decide(true === chosen);
|
|
65
|
+
};
|
|
66
|
+
if (handle) handle.result.then(settle);
|
|
67
|
+
else settle();
|
|
68
|
+
return {
|
|
69
|
+
dismiss: ()=>choose(false)
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function ConfirmButton(props) {
|
|
73
|
+
const left = useSyncExternalStore((l)=>props.countdown.subscribe(l), ()=>props.countdown.get());
|
|
74
|
+
const ready = left <= 0;
|
|
75
|
+
return <G9Button text={ready ? props.texts.confirm : formatGuideText(props.texts.confirmIn, left)} variant={props.destructive ? 'error' : 'primary'} size="hero" {...null !== props.fontSize ? {
|
|
76
|
+
fontSize: props.fontSize
|
|
77
|
+
} : {}} disabled={!ready} onPress={props.onPress}/>;
|
|
78
|
+
}
|
|
79
|
+
function ConfirmBody(props) {
|
|
80
|
+
const { request, texts } = props;
|
|
81
|
+
const rtl = 'rtl' === useG9Direction();
|
|
82
|
+
const edge = useG9Settings().sheets.headerEdgeSpacing;
|
|
83
|
+
const align = {
|
|
84
|
+
textAlign: rtl ? 'right' : 'left'
|
|
85
|
+
};
|
|
86
|
+
const row = {
|
|
87
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
88
|
+
direction: 'ltr'
|
|
89
|
+
};
|
|
90
|
+
const lines = request.changes.length > 0 ? request.changes : [
|
|
91
|
+
{
|
|
92
|
+
action: 'other',
|
|
93
|
+
subject: texts.undescribed
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
const progress = request.progress && request.progress.total > 1 ? request.progress : null;
|
|
97
|
+
return <view className="g9-guide-confirm" style={{
|
|
98
|
+
paddingLeft: `${edge}px`,
|
|
99
|
+
paddingRight: `${edge}px`,
|
|
100
|
+
direction: rtl ? 'rtl' : 'ltr'
|
|
101
|
+
}}>
|
|
102
|
+
<view className="g9-guide-confirm__meta" style={row}>
|
|
103
|
+
<text className="g9-guide-confirm__source" style={align}>
|
|
104
|
+
{texts.sources[request.source]}
|
|
105
|
+
</text>
|
|
106
|
+
{progress ? <text className="g9-guide-confirm__progress">
|
|
107
|
+
{formatGuideText(texts.confirmProgress, progress.index, progress.total)}
|
|
108
|
+
</text> : null}
|
|
109
|
+
</view>
|
|
110
|
+
{'link' === request.source ? <view className="g9-guide-confirm__warning">
|
|
111
|
+
<text className="g9-guide-confirm__warning-text" style={align}>
|
|
112
|
+
{texts.linkWarning}
|
|
113
|
+
</text>
|
|
114
|
+
</view> : null}
|
|
115
|
+
<text className="g9-guide-confirm__heading" style={align}>
|
|
116
|
+
{lines.length > 1 ? `${texts.changesTitle} (${lines.length})` : texts.changesTitle}
|
|
117
|
+
</text>
|
|
118
|
+
<view className="g9-guide-confirm__lines">
|
|
119
|
+
{lines.map((c, i)=>{
|
|
120
|
+
var _c_from, _c_to;
|
|
121
|
+
return <view key={`c${i}`} className={`g9-guide-confirm__line${0 === i ? ' g9-guide-confirm__line--first' : ''}`} style={row}>
|
|
122
|
+
<view className={`g9-guide-confirm__verb g9-guide-confirm__verb--${c.action}`}>
|
|
123
|
+
<text className={`g9-guide-confirm__verb-text g9-guide-confirm__verb-text--${c.action}`}>
|
|
124
|
+
{texts.actions[c.action]}
|
|
125
|
+
</text>
|
|
126
|
+
</view>
|
|
127
|
+
<view className="g9-guide-confirm__line-body">
|
|
128
|
+
<text className="g9-guide-confirm__subject" style={align}>
|
|
129
|
+
{c.field ? `${c.subject} · ${c.field}` : c.subject}
|
|
130
|
+
</text>
|
|
131
|
+
{void 0 !== c.from || void 0 !== c.to ? <text className="g9-guide-confirm__value" style={align}>
|
|
132
|
+
{}
|
|
133
|
+
{`${null != (_c_from = c.from) ? _c_from : '—'} ${rtl ? '←' : '→'} ${null != (_c_to = c.to) ? _c_to : '—'}`}
|
|
134
|
+
</text> : null}
|
|
135
|
+
{c.note ? <text className="g9-guide-confirm__note" style={align}>
|
|
136
|
+
{c.note}
|
|
137
|
+
</text> : null}
|
|
138
|
+
</view>
|
|
139
|
+
</view>;
|
|
140
|
+
})}
|
|
141
|
+
</view>
|
|
142
|
+
</view>;
|
|
143
|
+
}
|
|
144
|
+
export { presentConfirmSheet };
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=confirm-sheet.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guide/confirm-sheet.jsx","sources":["../../src/guide/confirm-sheet.tsx"],"sourcesContent":["import { type G9ChangeLine, type G9JourneySource, g9RuntimeTimers } from '@g9tm/lynxcontrols-foundation';\nimport { type ReactNode, useSyncExternalStore } from '@lynx-js/react';\nimport { G9Button } from '../button/button';\nimport type { G9HostHandle } from '../host/registry';\nimport { useG9Direction, useG9Settings } from '../provider/hooks';\nimport type { G9SheetOptions } from '../sheet/options';\nimport { sheetServiceOf } from '../sheet/service';\nimport type { G9SheetHandle } from '../sheet/stack';\nimport { formatGuideText, type G9GuideTexts, type G9ResolvedGuideSettings } from './settings';\n\n// The guided-save confirmation as the app's own kind of sheet (owner, 2026-11-12): a fit-to-content G9 sheet that grows\n// with what it lists up to 75 % of the screen and is smaller when there is less; the title fixed in the header, the body\n// (who asked, the link warning, every change) scrolling with a visible thumb once it is taller than the sheet allows; the\n// two G9 buttons fixed in the footer — the safe one leading (under the right thumb in Persian), the confirm one counting\n// down. It replaced a hand-drawn card whose buttons were not the app's and that had no height limit: a long list of\n// changes pushed its buttons off the screen.\n//\n// ⛔ The buttons carry no element id: an id makes a control an anchor, and an anchor is something a journey can press —\n// the confirm button must only ever be pressed by the person.\n\n/** What the sheet shows (the guide's `G9ConfirmRequest`). */\nexport interface G9ConfirmSheetRequest {\n readonly title: string;\n readonly source: G9JourneySource;\n readonly changes: readonly G9ChangeLine[];\n readonly seconds: number;\n readonly destructive: boolean;\n readonly progress?: { readonly index: number; readonly total: number };\n}\n\n/** An open confirmation: closes it as declined. */\nexport interface G9ConfirmSheetPresentation {\n dismiss(): void;\n}\n\ninterface Countdown {\n get(): number;\n subscribe(l: () => void): () => void;\n}\n\n/**\n * Opens the confirmation sheet on the host's sheet stack (stacked over an open sheet, never throttled). `decide` is\n * called exactly once, after the sheet has left the screen: true only for the unlocked confirm; the other button, the\n * header's close, a drag down, a tap on the dim and Android back all decline.\n */\nexport function presentConfirmSheet(\n host: G9HostHandle,\n settings: G9ResolvedGuideSettings,\n request: G9ConfirmSheetRequest,\n decide: (ok: boolean) => void,\n): G9ConfirmSheetPresentation {\n let left = Math.max(0, Math.round(request.seconds));\n const listeners = new Set<() => void>();\n const countdown: Countdown = {\n get: () => left,\n subscribe(l) {\n listeners.add(l);\n return () => {\n listeners.delete(l);\n };\n },\n };\n let timer: unknown = null;\n const tick = () => {\n left = Math.max(0, left - 1);\n timer = left > 0 ? g9RuntimeTimers.setTimeout(tick, 1000) : null;\n for (const l of Array.from(listeners)) l();\n };\n if (left > 0) timer = g9RuntimeTimers.setTimeout(tick, 1000);\n const stop = () => {\n if (timer !== null) g9RuntimeTimers.clearTimeout(timer);\n timer = null;\n };\n\n // The answer: set once by a button (a second press, or one after the sheet started closing, is ignored), reported\n // once the sheet has left the screen. A close that no button made — the header, a drag, the dim, back — declines.\n let chosen: boolean | null = null;\n let handle: G9SheetHandle | null = null;\n const choose = (ok: boolean) => {\n // The confirm button is disabled while counting; this holds even for a press that reached it some other way.\n if (chosen !== null || handle?.isOpen === false || (ok && left > 0)) return;\n chosen = ok;\n stop();\n handle?.close();\n };\n\n const texts = settings.texts;\n const fontSize = settings.confirmButtonFontSize;\n const options: G9SheetOptions = {\n sizeMode: 'fitToContent',\n maxFitToContentHeightRatio: 0.75,\n isCancelable: true,\n isDraggable: true,\n hasHandle: true,\n deferContent: false,\n showToolbar: true,\n showCloseButton: true,\n headerTitlePlacement: 'center',\n scrollIndicator: 'always',\n automationId: 'G9GuideConfirm',\n ...settings.confirmSheet(),\n title: request.title,\n footerButtons: [\n <G9Button\n key=\"cancel\"\n text={texts.cancel}\n variant=\"outline\"\n size=\"hero\"\n {...(fontSize !== null ? { fontSize } : {})}\n onPress={() => choose(false)}\n />,\n <ConfirmButton\n key=\"confirm\"\n countdown={countdown}\n texts={texts}\n destructive={request.destructive}\n fontSize={fontSize}\n onPress={() => choose(true)}\n />,\n ],\n };\n handle = sheetServiceOf(host).stack.show(<ConfirmBody request={request} texts={texts} />, options, false);\n const settle = () => {\n stop();\n decide(chosen === true);\n };\n // No sheet (the host's stack is gone): nothing was asked, nothing is confirmed.\n if (handle) void handle.result.then(settle);\n else settle();\n return { dismiss: () => choose(false) };\n}\n\nfunction ConfirmButton(props: {\n readonly countdown: Countdown;\n readonly texts: G9GuideTexts;\n readonly destructive: boolean;\n readonly fontSize: number | null;\n readonly onPress: () => void;\n}): ReactNode {\n const left = useSyncExternalStore(\n (l) => props.countdown.subscribe(l),\n () => props.countdown.get(),\n );\n const ready = left <= 0;\n return (\n <G9Button\n text={ready ? props.texts.confirm : formatGuideText(props.texts.confirmIn, left)}\n variant={props.destructive ? 'error' : 'primary'}\n size=\"hero\"\n {...(props.fontSize !== null ? { fontSize: props.fontSize } : {})}\n disabled={!ready}\n onPress={props.onPress}\n />\n );\n}\n\n/** Who asked, the link's warning, then every change — the part that scrolls. */\nfunction ConfirmBody(props: { readonly request: G9ConfirmSheetRequest; readonly texts: G9GuideTexts }): ReactNode {\n const { request, texts } = props;\n const rtl = useG9Direction() === 'rtl';\n // The header's own side spacing (MAUI EdgeSpacing, an app may scale it): the body lines up under the title.\n const edge = useG9Settings().sheets.headerEdgeSpacing;\n const align = { textAlign: rtl ? ('right' as const) : ('left' as const) };\n const row = { flexDirection: rtl ? ('row-reverse' as const) : ('row' as const), direction: 'ltr' as const };\n const lines: readonly G9ChangeLine[] =\n request.changes.length > 0 ? request.changes : [{ action: 'other', subject: texts.undescribed }];\n const progress = request.progress && request.progress.total > 1 ? request.progress : null;\n return (\n <view\n className=\"g9-guide-confirm\"\n style={{ paddingLeft: `${edge}px`, paddingRight: `${edge}px`, direction: rtl ? 'rtl' : 'ltr' }}\n >\n <view className=\"g9-guide-confirm__meta\" style={row}>\n <text className=\"g9-guide-confirm__source\" style={align}>\n {texts.sources[request.source]}\n </text>\n {progress ? (\n <text className=\"g9-guide-confirm__progress\">\n {formatGuideText(texts.confirmProgress, progress.index, progress.total)}\n </text>\n ) : null}\n </view>\n {request.source === 'link' ? (\n <view className=\"g9-guide-confirm__warning\">\n <text className=\"g9-guide-confirm__warning-text\" style={align}>\n {texts.linkWarning}\n </text>\n </view>\n ) : null}\n <text className=\"g9-guide-confirm__heading\" style={align}>\n {lines.length > 1 ? `${texts.changesTitle} (${lines.length})` : texts.changesTitle}\n </text>\n <view className=\"g9-guide-confirm__lines\">\n {lines.map((c, i) => (\n <view\n key={`c${i}`}\n className={`g9-guide-confirm__line${i === 0 ? ' g9-guide-confirm__line--first' : ''}`}\n style={row}\n >\n <view className={`g9-guide-confirm__verb g9-guide-confirm__verb--${c.action}`}>\n <text className={`g9-guide-confirm__verb-text g9-guide-confirm__verb-text--${c.action}`}>\n {texts.actions[c.action]}\n </text>\n </view>\n <view className=\"g9-guide-confirm__line-body\">\n <text className=\"g9-guide-confirm__subject\" style={align}>\n {c.field ? `${c.subject} · ${c.field}` : c.subject}\n </text>\n {c.from !== undefined || c.to !== undefined ? (\n <text className=\"g9-guide-confirm__value\" style={align}>\n {/* The arrow points from the old value to the new one in the reading direction (→ drawn in a\n right-to-left line pointed back at the old value). */}\n {`${c.from ?? '—'} ${rtl ? '←' : '→'} ${c.to ?? '—'}`}\n </text>\n ) : null}\n {c.note ? (\n <text className=\"g9-guide-confirm__note\" style={align}>\n {c.note}\n </text>\n ) : null}\n </view>\n </view>\n ))}\n </view>\n </view>\n );\n}\n"],"names":["presentConfirmSheet","host","settings","request","decide","left","Math","listeners","Set","countdown","l","timer","tick","g9RuntimeTimers","Array","stop","chosen","handle","choose","ok","texts","fontSize","options","G9Button","ConfirmButton","sheetServiceOf","ConfirmBody","settle","props","useSyncExternalStore","ready","formatGuideText","rtl","useG9Direction","edge","useG9Settings","align","row","lines","progress","view","text","c","i","_c_from","_c_to","undefined"],"mappings":";;;;;;AA6CO,SAASA,oBACdC,IAAkB,EAClBC,QAAiC,EACjCC,OAA8B,EAC9BC,MAA6B;IAE7B,IAAIC,OAAOC,KAAK,GAAG,CAAC,GAAGA,KAAK,KAAK,CAACH,QAAQ,OAAO;IACjD,MAAMI,YAAY,IAAIC;IACtB,MAAMC,YAAuB;QAC3B,KAAK,IAAMJ;QACX,WAAUK,CAAC;YACTH,UAAU,GAAG,CAACG;YACd,OAAO;gBACLH,UAAU,MAAM,CAACG;YACnB;QACF;IACF;IACA,IAAIC,QAAiB;IACrB,MAAMC,OAAO;QACXP,OAAOC,KAAK,GAAG,CAAC,GAAGD,OAAO;QAC1BM,QAAQN,OAAO,IAAIQ,gBAAgB,U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C,CAACC,KAAK,UAAU,4BAA4B,OAAOL,OAAO;gBACxD,CAACM,EAAE,KAAK,GAAG,GAAGA,EAAE,OAAO,CAAC,GAAG,EAAEA,EAAE,KAAK,EAAE,GAAGA,EAAE,OAAO,CAAC;cACrD,EAAED,KAAK;cACP,CAACC,AAAWI,WAAXJ,EAAE,IAAI,IAAkBA,AAASI,WAATJ,EAAE,EAAE,IAC1BD,KAAK,UAAU,0BAA0B,OAAOL,OAAO;kBACtD,EAC0D;kBAC1D,CAAC,GAAG,QAAAQ,CAAAA,UAAAA,EAAE,IAAI,AAAD,IAALA,UAAU,IAAI,EAAE,EAAEZ,MAAM,MAAM,IAAI,EAAE,EAAE,QAAAa,CAAAA,QAAAA,EAAE,EAAE,AAAD,IAAHA,QAAQ,KAAK,CAAC;gBAC1D,EAAEJ,QACA,KAAK;cACT,CAACC,EAAE,IAAI,IACJD,KAAK,UAAU,yBAAyB,OAAOL,OAAO;kBACrD,CAACM,EAAE,IAAI,CAAC;gBACV,EAAED,QACA,KAAK;YACX,EAAED,KAAK;UACT,EAAEA;OACD;MACL,EAAEA,KAAK;IACT,EAAEA;AAEN"}
|
package/dist/guide/guide.css
CHANGED
|
@@ -312,141 +312,116 @@
|
|
|
312
312
|
right: -6px;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.g9-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
justify-content: center;
|
|
319
|
-
align-items: center;
|
|
320
|
-
padding: 24px;
|
|
315
|
+
.g9-guide-confirm {
|
|
316
|
+
flex-direction: column;
|
|
317
|
+
padding-bottom: 12px;
|
|
321
318
|
display: flex;
|
|
322
|
-
position: absolute;
|
|
323
|
-
top: 0;
|
|
324
|
-
bottom: 0;
|
|
325
|
-
left: 0;
|
|
326
|
-
right: 0;
|
|
327
319
|
}
|
|
328
320
|
|
|
329
|
-
.g9-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
flex-direction: column;
|
|
333
|
-
width: 100%;
|
|
334
|
-
max-width: 420px;
|
|
335
|
-
padding: 20px;
|
|
321
|
+
.g9-guide-confirm__meta {
|
|
322
|
+
justify-content: space-between;
|
|
323
|
+
align-items: center;
|
|
336
324
|
display: flex;
|
|
337
325
|
}
|
|
338
326
|
|
|
339
|
-
.g9-
|
|
340
|
-
color: var(--g9-
|
|
341
|
-
|
|
327
|
+
.g9-guide-confirm__source {
|
|
328
|
+
color: var(--g9-text-secondary);
|
|
329
|
+
flex: 1;
|
|
330
|
+
font-size: 13px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.g9-guide-confirm__progress {
|
|
334
|
+
color: var(--g9-on-primary-container);
|
|
335
|
+
background-color: var(--g9-primary-container);
|
|
336
|
+
border-radius: 10px;
|
|
337
|
+
padding: 2px 10px;
|
|
338
|
+
font-size: 12px;
|
|
342
339
|
font-weight: bold;
|
|
343
340
|
}
|
|
344
341
|
|
|
345
|
-
.g9-
|
|
346
|
-
color: var(--g9-
|
|
347
|
-
|
|
348
|
-
|
|
342
|
+
.g9-guide-confirm__warning {
|
|
343
|
+
background-color: var(--g9-error-container);
|
|
344
|
+
border-radius: 10px;
|
|
345
|
+
margin-top: 10px;
|
|
346
|
+
padding: 10px 12px;
|
|
349
347
|
}
|
|
350
348
|
|
|
351
|
-
.g9-
|
|
352
|
-
color: var(--g9-error);
|
|
353
|
-
margin-top: 8px;
|
|
349
|
+
.g9-guide-confirm__warning-text {
|
|
350
|
+
color: var(--g9-on-error-container);
|
|
354
351
|
font-size: 13px;
|
|
352
|
+
line-height: 20px;
|
|
355
353
|
}
|
|
356
354
|
|
|
357
|
-
.g9-
|
|
358
|
-
color: var(--g9-
|
|
359
|
-
margin-top:
|
|
355
|
+
.g9-guide-confirm__heading {
|
|
356
|
+
color: var(--g9-text-primary);
|
|
357
|
+
margin-top: 14px;
|
|
360
358
|
margin-bottom: 8px;
|
|
361
359
|
font-size: 14px;
|
|
362
360
|
font-weight: bold;
|
|
363
361
|
}
|
|
364
362
|
|
|
365
|
-
.g9-
|
|
363
|
+
.g9-guide-confirm__lines {
|
|
364
|
+
border-style: solid;
|
|
365
|
+
border-width: 1px;
|
|
366
|
+
border-color: var(--g9-outline-variant);
|
|
367
|
+
border-radius: 12px;
|
|
366
368
|
flex-direction: column;
|
|
367
369
|
display: flex;
|
|
368
370
|
}
|
|
369
371
|
|
|
370
|
-
.g9-
|
|
372
|
+
.g9-guide-confirm__line {
|
|
373
|
+
border-top-style: solid;
|
|
374
|
+
border-top-width: 1px;
|
|
375
|
+
border-top-color: var(--g9-divider);
|
|
371
376
|
align-items: flex-start;
|
|
372
|
-
padding
|
|
373
|
-
padding-bottom: 6px;
|
|
377
|
+
padding: 10px 12px;
|
|
374
378
|
display: flex;
|
|
375
379
|
}
|
|
376
380
|
|
|
377
|
-
.g9-
|
|
378
|
-
|
|
381
|
+
.g9-guide-confirm__line--first {
|
|
382
|
+
border-top-width: 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.g9-guide-confirm__verb {
|
|
379
386
|
background-color: var(--g9-primary-container);
|
|
380
387
|
border-radius: 10px;
|
|
381
|
-
margin-
|
|
382
|
-
margin-
|
|
388
|
+
margin-top: 1px;
|
|
389
|
+
margin-left: 10px;
|
|
390
|
+
margin-right: 10px;
|
|
383
391
|
padding: 2px 8px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.g9-guide-confirm__verb--delete {
|
|
395
|
+
background-color: var(--g9-error-container);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.g9-guide-confirm__verb-text {
|
|
399
|
+
color: var(--g9-on-primary-container);
|
|
384
400
|
font-size: 12px;
|
|
385
401
|
font-weight: bold;
|
|
386
402
|
}
|
|
387
403
|
|
|
388
|
-
.g9-
|
|
404
|
+
.g9-guide-confirm__verb-text--delete {
|
|
389
405
|
color: var(--g9-on-error-container);
|
|
390
|
-
background-color: var(--g9-error-container);
|
|
391
406
|
}
|
|
392
407
|
|
|
393
|
-
.g9-
|
|
408
|
+
.g9-guide-confirm__line-body {
|
|
394
409
|
flex-direction: column;
|
|
395
410
|
flex: 1;
|
|
396
411
|
display: flex;
|
|
397
412
|
}
|
|
398
413
|
|
|
399
|
-
.g9-
|
|
400
|
-
color: var(--g9-
|
|
414
|
+
.g9-guide-confirm__subject {
|
|
415
|
+
color: var(--g9-text-primary);
|
|
401
416
|
font-size: 14px;
|
|
417
|
+
line-height: 21px;
|
|
402
418
|
}
|
|
403
419
|
|
|
404
|
-
.g9-
|
|
405
|
-
color: var(--g9-
|
|
420
|
+
.g9-guide-confirm__value, .g9-guide-confirm__note {
|
|
421
|
+
color: var(--g9-text-secondary);
|
|
406
422
|
margin-top: 2px;
|
|
407
423
|
font-size: 13px;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
.g9-guide__confirm-actions {
|
|
411
|
-
margin-top: 20px;
|
|
412
|
-
display: flex;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.g9-guide__confirm-button {
|
|
416
|
-
background-color: var(--g9-primary);
|
|
417
|
-
border-radius: 24px;
|
|
418
|
-
flex: 1;
|
|
419
|
-
justify-content: center;
|
|
420
|
-
align-items: center;
|
|
421
|
-
height: 48px;
|
|
422
|
-
margin-left: 6px;
|
|
423
|
-
margin-right: 6px;
|
|
424
|
-
display: flex;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.g9-guide__confirm-button--danger {
|
|
428
|
-
background-color: var(--g9-error);
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.g9-guide__confirm-button--waiting {
|
|
432
|
-
opacity: .45;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.g9-guide__confirm-button--cancel {
|
|
436
|
-
border-style: solid;
|
|
437
|
-
border-width: 1px;
|
|
438
|
-
border-color: var(--g9-outline);
|
|
439
|
-
background-color: #0000;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.g9-guide__confirm-button-text {
|
|
443
|
-
color: var(--g9-on-primary);
|
|
444
|
-
font-size: 15px;
|
|
445
|
-
font-weight: bold;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
.g9-guide__confirm-button-text--cancel {
|
|
449
|
-
color: var(--g9-primary);
|
|
424
|
+
line-height: 20px;
|
|
450
425
|
}
|
|
451
426
|
|
|
452
427
|
|
package/dist/guide/guide.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/guide/guide.css"],"names":[],"mappings":"AAIA;EAHE,oBAAoB;EACpB,aAAa;EACb,eAAe;EACf,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,oBAAoB;EACpB,kBAAkB;AACpB;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;EACpB,2BAA2B;EAC3B,kBAAkB;AACpB;;AAQA;EALE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;;AAQA;EALE,mDAAmD;AACrD;;AAQA;EALE;IACE,UAAU;IACV,mBAAmB;EACrB;;EAEA;IACE,YAAY;IACZ,sBAAsB;EACxB;;EAEA;IACE,UAAU;IACV,mBAAmB;EACrB;AACF;;AAMA;EAHE,oBAAoB;EACpB,aAAa;EACb,kBAAkB;AACpB;;AAMA;EAHE,iDAAiD;AACnD;;AAMA;EAHE,kDAAkD;AACpD;;AAMA;EAHE,sDAAsD;AACxD;;AAMA;EAHE,wDAAwD;AAC1D;;AAMA;EAHE,wDAAwD;AAC1D;;AAOA;EAJE;IACE,WAAW;IACX,yCAAyC;EAC3C;;EAEA;IACE,UAAU;IACV,gCAAgC;EAClC;;EAEA;IACE,kCAAkC;EACpC;;EAEA;IACE,gCAAgC;EAClC;;EAEA;IACE,WAAW;IACX,yCAAyC;EAC3C;AACF;;AAGA;EAAE;IACE,yCAAyC;EAC3C;;EAEA;IACE,kCAAkC;EACpC;;EAEA;IACE,kCAAkC;EACpC;;EAEA;IACE,yCAAyC;EAC3C;AACF;;AAAA;EAGE;IACE,UAAU;IACV,6BAA6B;EAC/B;;EAEA;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ACf;;AARA;EAWE,mCAAmC;EACnC,mBAAmB;EACnB,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;AACf;;AARA;EAWE,iCAAiC;AACnC;;AARA;EAWE,YAAY;AACd;;AARA;EAWE,mBAAmB;EACnB,iBAAiB;EACjB,+BAA+B;EAC/B,uBAAuB;AACzB;;AARA;EAWE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;AACnB;;AARA;EAWE,wBAAwB;AAC1B","sourcesContent":["/* The guide layer (above popups, toasts and floating items). Every piece is absolutely placed in layer coordinates;\n only the modal scrim bands, the bubble's buttons and the confirmation take touches. Animations run only while a\n mark is mounted: the layer renders nothing once the last mark is gone (an idle app does no frame work). */\n/* Fixed (like .g9-popup): see GuideLayer — an open sheet is a fixed SheetView painted above in-flow nodes. */\n.g9-guide {\n display: flex;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n\n.g9-guide__scrim {\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__scrim--modal {\n pointer-events: auto;\n}\n\n.g9-guide__hole {\n position: absolute;\n border-width: 2px;\n border-style: solid;\n border-color: rgba(255, 255, 255, 0.92);\n pointer-events: none;\n}\n\n.g9-guide__highlight {\n position: absolute;\n border-style: solid;\n pointer-events: none;\n}\n\n.g9-guide__highlight--pulse {\n animation: g9-guide-pulse 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-pulse {\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0.55;\n transform: scale(1.04);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.g9-guide__pointer {\n display: flex;\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__pointer--tap {\n animation: g9-guide-tap 1200ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--longPress {\n animation: g9-guide-hold 1800ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeUp {\n animation: g9-guide-swipe-up 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeDown {\n animation: g9-guide-swipe-down 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeStart,\n.g9-guide__pointer--swipeEnd {\n animation: g9-guide-swipe-side 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-tap {\n 0% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n 40% {\n transform: translate(0px, 0px) scale(1);\n opacity: 1;\n }\n 55% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 75% {\n transform: translate(0px, 0px) scale(1);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n}\n\n@keyframes g9-guide-hold {\n 0% {\n transform: translate(10px, 14px) scale(1);\n }\n 25% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 80% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n }\n}\n\n@keyframes g9-guide-swipe-up {\n 0% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-down {\n 0% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-side {\n 0% {\n transform: translate(30px, 0px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(-30px, 0px);\n opacity: 0;\n }\n}\n\n.g9-guide__beacon {\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n pointer-events: none;\n animation: g9-guide-beacon 1200ms ease-out infinite;\n}\n\n@keyframes g9-guide-beacon {\n 0% {\n transform: scale(0.7);\n opacity: 1;\n }\n 70% {\n transform: scale(1.6);\n opacity: 0.25;\n }\n 100% {\n transform: scale(0.7);\n opacity: 1;\n }\n}\n\n.g9-guide__badge {\n display: flex;\n position: absolute;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-primary);\n pointer-events: none;\n}\n\n.g9-guide__badge-text {\n color: var(--g9-on-primary);\n font-size: 12px;\n font-weight: bold;\n}\n\n.g9-guide__ripple {\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 24px;\n background-color: rgba(255, 255, 255, 0.5);\n pointer-events: none;\n animation: g9-guide-ripple 600ms ease-out 1 forwards;\n}\n\n@keyframes g9-guide-ripple {\n 0% {\n transform: scale(0.3);\n opacity: 0.9;\n }\n 100% {\n transform: scale(1.8);\n opacity: 0;\n }\n}\n\n.g9-guide__bubble {\n display: flex;\n flex-direction: column;\n position: absolute;\n padding: 12px 14px;\n border-radius: 14px;\n background-color: var(--g9-inverse-surface);\n pointer-events: auto;\n}\n\n.g9-guide__bubble-title {\n color: var(--g9-inverse-on-surface);\n font-size: 15px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n\n.g9-guide__bubble-text {\n color: var(--g9-inverse-on-surface);\n font-size: 14px;\n line-height: 22px;\n}\n\n.g9-guide__bubble-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: 10px;\n}\n\n.g9-guide__bubble-button {\n display: flex;\n padding: 6px 14px;\n margin-left: 8px;\n border-radius: 16px;\n background-color: var(--g9-inverse-primary);\n}\n\n.g9-guide__bubble-button--quiet {\n background-color: transparent;\n}\n\n.g9-guide__bubble-button-text {\n color: var(--g9-inverse-surface);\n font-size: 14px;\n font-weight: bold;\n}\n\n.g9-guide__bubble-button-text--quiet {\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-guide__arrow {\n position: absolute;\n width: 14px;\n height: 14px;\n background-color: var(--g9-inverse-surface);\n transform: rotate(45deg);\n}\n\n.g9-guide__arrow--below {\n top: -6px;\n}\n\n.g9-guide__arrow--above {\n bottom: -6px;\n}\n\n.g9-guide__arrow--over {\n display: none;\n}\n\n.g9-guide__arrow--end {\n left: -6px;\n}\n\n.g9-guide__arrow--start {\n right: -6px;\n}\n\n.g9-guide__confirm-scrim {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n align-items: center;\n justify-content: center;\n padding: 24px;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: auto;\n}\n\n.g9-guide__confirm {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 420px;\n padding: 20px;\n border-radius: 20px;\n background-color: var(--g9-surface);\n}\n\n.g9-guide__confirm-title {\n color: var(--g9-on-surface);\n font-size: 18px;\n font-weight: bold;\n}\n\n.g9-guide__confirm-source {\n color: var(--g9-on-surface-variant);\n font-size: 13px;\n margin-top: 4px;\n}\n\n.g9-guide__confirm-warning {\n color: var(--g9-error);\n font-size: 13px;\n margin-top: 8px;\n}\n\n.g9-guide__confirm-heading {\n color: var(--g9-on-surface);\n font-size: 14px;\n font-weight: bold;\n margin-top: 16px;\n margin-bottom: 8px;\n}\n\n.g9-guide__confirm-lines {\n display: flex;\n flex-direction: column;\n}\n\n.g9-guide__confirm-line {\n display: flex;\n align-items: flex-start;\n padding-top: 6px;\n padding-bottom: 6px;\n}\n\n.g9-guide__confirm-verb {\n font-size: 12px;\n font-weight: bold;\n padding: 2px 8px;\n margin-left: 8px;\n margin-right: 8px;\n border-radius: 10px;\n color: var(--g9-on-primary-container);\n background-color: var(--g9-primary-container);\n}\n\n.g9-guide__confirm-verb--delete {\n color: var(--g9-on-error-container);\n background-color: var(--g9-error-container);\n}\n\n.g9-guide__confirm-line-body {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.g9-guide__confirm-subject {\n color: var(--g9-on-surface);\n font-size: 14px;\n}\n\n.g9-guide__confirm-value,\n.g9-guide__confirm-note {\n color: var(--g9-on-surface-variant);\n font-size: 13px;\n margin-top: 2px;\n}\n\n.g9-guide__confirm-actions {\n display: flex;\n margin-top: 20px;\n}\n\n.g9-guide__confirm-button {\n display: flex;\n flex: 1;\n height: 48px;\n align-items: center;\n justify-content: center;\n border-radius: 24px;\n margin-left: 6px;\n margin-right: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-guide__confirm-button--danger {\n background-color: var(--g9-error);\n}\n\n.g9-guide__confirm-button--waiting {\n opacity: 0.45;\n}\n\n.g9-guide__confirm-button--cancel {\n background-color: transparent;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline);\n}\n\n.g9-guide__confirm-button-text {\n color: var(--g9-on-primary);\n font-size: 15px;\n font-weight: bold;\n}\n\n.g9-guide__confirm-button-text--cancel {\n color: var(--g9-primary);\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/guide/guide.css"],"names":[],"mappings":"AAIA;EAHE,oBAAoB;EACpB,aAAa;EACb,eAAe;EACf,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,oBAAoB;EACpB,kBAAkB;AACpB;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;EACpB,2BAA2B;EAC3B,kBAAkB;AACpB;;AAQA;EALE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;;AAQA;EALE,mDAAmD;AACrD;;AAQA;EALE;IACE,UAAU;IACV,mBAAmB;EACrB;;EAEA;IACE,YAAY;IACZ,sBAAsB;EACxB;;EAEA;IACE,UAAU;IACV,mBAAmB;EACrB;AACF;;AAMA;EAHE,oBAAoB;EACpB,aAAa;EACb,kBAAkB;AACpB;;AAMA;EAHE,iDAAiD;AACnD;;AAMA;EAHE,kDAAkD;AACpD;;AAMA;EAHE,sDAAsD;AACxD;;AAMA;EAHE,wDAAwD;AAC1D;;AAMA;EAHE,wDAAwD;AAC1D;;AAOA;EAJE;IACE,WAAW;IACX,yCAAyC;EAC3C;;EAEA;IACE,UAAU;IACV,gCAAgC;EAClC;;EAEA;IACE,kCAAkC;EACpC;;EAEA;IACE,gCAAgC;EAClC;;EAEA;IACE,WA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AAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;AAClB;;AAPA;EAUE,2CAA2C;AAC7C;;AAPA;EAUE,qCAAqC;EACrC,eAAe;EACf,iBAAiB;AACnB;;AAPA;EAUE,mCAAmC;AACrC;;AAPA;EAUE,sBAAsB;EACtB,OAAO;EACP,aAAa;AACf;;AAPA;EAUE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;AACnB;;AAPA;EAUE,+BAA+B;EAC/B,eAAe;EACf,eAAe;EACf,iBAAiB;AACnB","sourcesContent":["/* The guide layer (above popups, toasts and floating items). Every piece is absolutely placed in layer coordinates;\n only the modal scrim bands and the bubble's buttons take touches (the confirmation is a sheet). Animations run only while a\n mark is mounted: the layer renders nothing once the last mark is gone (an idle app does no frame work). */\n/* Fixed (like .g9-popup): see GuideLayer — an open sheet is a fixed SheetView painted above in-flow nodes. */\n.g9-guide {\n display: flex;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n\n.g9-guide__scrim {\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__scrim--modal {\n pointer-events: auto;\n}\n\n.g9-guide__hole {\n position: absolute;\n border-width: 2px;\n border-style: solid;\n border-color: rgba(255, 255, 255, 0.92);\n pointer-events: none;\n}\n\n.g9-guide__highlight {\n position: absolute;\n border-style: solid;\n pointer-events: none;\n}\n\n.g9-guide__highlight--pulse {\n animation: g9-guide-pulse 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-pulse {\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0.55;\n transform: scale(1.04);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.g9-guide__pointer {\n display: flex;\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__pointer--tap {\n animation: g9-guide-tap 1200ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--longPress {\n animation: g9-guide-hold 1800ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeUp {\n animation: g9-guide-swipe-up 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeDown {\n animation: g9-guide-swipe-down 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeStart,\n.g9-guide__pointer--swipeEnd {\n animation: g9-guide-swipe-side 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-tap {\n 0% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n 40% {\n transform: translate(0px, 0px) scale(1);\n opacity: 1;\n }\n 55% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 75% {\n transform: translate(0px, 0px) scale(1);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n}\n\n@keyframes g9-guide-hold {\n 0% {\n transform: translate(10px, 14px) scale(1);\n }\n 25% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 80% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n }\n}\n\n@keyframes g9-guide-swipe-up {\n 0% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-down {\n 0% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-side {\n 0% {\n transform: translate(30px, 0px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(-30px, 0px);\n opacity: 0;\n }\n}\n\n.g9-guide__beacon {\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n pointer-events: none;\n animation: g9-guide-beacon 1200ms ease-out infinite;\n}\n\n@keyframes g9-guide-beacon {\n 0% {\n transform: scale(0.7);\n opacity: 1;\n }\n 70% {\n transform: scale(1.6);\n opacity: 0.25;\n }\n 100% {\n transform: scale(0.7);\n opacity: 1;\n }\n}\n\n.g9-guide__badge {\n display: flex;\n position: absolute;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-primary);\n pointer-events: none;\n}\n\n.g9-guide__badge-text {\n color: var(--g9-on-primary);\n font-size: 12px;\n font-weight: bold;\n}\n\n.g9-guide__ripple {\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 24px;\n background-color: rgba(255, 255, 255, 0.5);\n pointer-events: none;\n animation: g9-guide-ripple 600ms ease-out 1 forwards;\n}\n\n@keyframes g9-guide-ripple {\n 0% {\n transform: scale(0.3);\n opacity: 0.9;\n }\n 100% {\n transform: scale(1.8);\n opacity: 0;\n }\n}\n\n.g9-guide__bubble {\n display: flex;\n flex-direction: column;\n position: absolute;\n padding: 12px 14px;\n border-radius: 14px;\n background-color: var(--g9-inverse-surface);\n pointer-events: auto;\n}\n\n.g9-guide__bubble-title {\n color: var(--g9-inverse-on-surface);\n font-size: 15px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n\n.g9-guide__bubble-text {\n color: var(--g9-inverse-on-surface);\n font-size: 14px;\n line-height: 22px;\n}\n\n.g9-guide__bubble-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: 10px;\n}\n\n.g9-guide__bubble-button {\n display: flex;\n padding: 6px 14px;\n margin-left: 8px;\n border-radius: 16px;\n background-color: var(--g9-inverse-primary);\n}\n\n.g9-guide__bubble-button--quiet {\n background-color: transparent;\n}\n\n.g9-guide__bubble-button-text {\n color: var(--g9-inverse-surface);\n font-size: 14px;\n font-weight: bold;\n}\n\n.g9-guide__bubble-button-text--quiet {\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-guide__arrow {\n position: absolute;\n width: 14px;\n height: 14px;\n background-color: var(--g9-inverse-surface);\n transform: rotate(45deg);\n}\n\n.g9-guide__arrow--below {\n top: -6px;\n}\n\n.g9-guide__arrow--above {\n bottom: -6px;\n}\n\n.g9-guide__arrow--over {\n display: none;\n}\n\n.g9-guide__arrow--end {\n left: -6px;\n}\n\n.g9-guide__arrow--start {\n right: -6px;\n}\n\n/* The guided-save confirmation's body (./confirm-sheet.tsx): a G9 fit sheet draws the header, the scrolling and the\n footer buttons; this is only what scrolls — who asked, the link's warning, the list of changes. */\n.g9-guide-confirm {\n display: flex;\n flex-direction: column;\n padding-bottom: 12px;\n}\n\n.g9-guide-confirm__meta {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.g9-guide-confirm__source {\n flex: 1;\n color: var(--g9-text-secondary);\n font-size: 13px;\n}\n\n.g9-guide-confirm__progress {\n color: var(--g9-on-primary-container);\n background-color: var(--g9-primary-container);\n font-size: 12px;\n font-weight: bold;\n padding: 2px 10px;\n border-radius: 10px;\n}\n\n.g9-guide-confirm__warning {\n margin-top: 10px;\n padding: 10px 12px;\n border-radius: 10px;\n background-color: var(--g9-error-container);\n}\n\n.g9-guide-confirm__warning-text {\n color: var(--g9-on-error-container);\n font-size: 13px;\n line-height: 20px;\n}\n\n.g9-guide-confirm__heading {\n color: var(--g9-text-primary);\n font-size: 14px;\n font-weight: bold;\n margin-top: 14px;\n margin-bottom: 8px;\n}\n\n.g9-guide-confirm__lines {\n display: flex;\n flex-direction: column;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n border-radius: 12px;\n}\n\n.g9-guide-confirm__line {\n display: flex;\n align-items: flex-start;\n padding: 10px 12px;\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-divider);\n}\n\n.g9-guide-confirm__line--first {\n border-top-width: 0;\n}\n\n.g9-guide-confirm__verb {\n padding: 2px 8px;\n margin-left: 10px;\n margin-right: 10px;\n margin-top: 1px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-guide-confirm__verb--delete {\n background-color: var(--g9-error-container);\n}\n\n.g9-guide-confirm__verb-text {\n color: var(--g9-on-primary-container);\n font-size: 12px;\n font-weight: bold;\n}\n\n.g9-guide-confirm__verb-text--delete {\n color: var(--g9-on-error-container);\n}\n\n.g9-guide-confirm__line-body {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.g9-guide-confirm__subject {\n color: var(--g9-text-primary);\n font-size: 14px;\n line-height: 21px;\n}\n\n.g9-guide-confirm__value,\n.g9-guide-confirm__note {\n color: var(--g9-text-secondary);\n font-size: 13px;\n line-height: 20px;\n margin-top: 2px;\n}\n"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey.d.ts","sourceRoot":"","sources":["../../src/guide/journey.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,aAAa,EAElB,KAAK,eAAe,EAQrB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAiC,cAAc,EAAe,MAAM,WAAW,CAAC;AAQ5F,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,KAAK,eAAe,GAAG,IAAI,CAAC;IACzF,uFAAuF;IACvF,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,sCAAsC;AACtC,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEtF,kCAAkC;AAClC,MAAM,WAAW,cAAc;IAC7B,QA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ACb,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3C;AAcD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB,GAAG,YAAY,CAwVzF"}
|
package/dist/guide/journey.jsx
CHANGED
|
@@ -319,16 +319,13 @@ function runJourney(journey, options) {
|
|
|
319
319
|
var _info_changes;
|
|
320
320
|
const changes = null != (_ref1 = null != (_ref2 = null == (_info_changes = info.changes) ? void 0 : _info_changes.call(info)) ? _ref2 : lastPlaceChanges(router)) ? _ref1 : [];
|
|
321
321
|
const seconds = confirmSeconds(source, risk, changes.length > 0, guide.settings.confirm);
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
],
|
|
330
|
-
reveal: false
|
|
331
|
-
});
|
|
322
|
+
const presses = journey.steps.filter((s)=>'press' === s.do).length;
|
|
323
|
+
const progress = {
|
|
324
|
+
index: journey.steps.slice(0, index + 1).filter((s)=>'press' === s.do).length,
|
|
325
|
+
total: presses
|
|
326
|
+
};
|
|
327
|
+
const dismiss = ()=>guide.dismissConfirmation();
|
|
328
|
+
cancelHooks.add(dismiss);
|
|
332
329
|
let ok = false;
|
|
333
330
|
try {
|
|
334
331
|
ok = await guide.confirm({
|
|
@@ -336,10 +333,11 @@ function runJourney(journey, options) {
|
|
|
336
333
|
source,
|
|
337
334
|
changes,
|
|
338
335
|
seconds,
|
|
339
|
-
destructive: 'destructive' === risk
|
|
336
|
+
destructive: 'destructive' === risk,
|
|
337
|
+
progress
|
|
340
338
|
});
|
|
341
339
|
} finally{
|
|
342
|
-
|
|
340
|
+
cancelHooks.delete(dismiss);
|
|
343
341
|
}
|
|
344
342
|
if (!ok) throw new Stopped('declined', 'The person did not confirm.');
|
|
345
343
|
}
|