@g9tm/lynxcontrols-foundation 0.0.0-stage → 1.4.2

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.
Files changed (164) hide show
  1. package/README.md +4 -2
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/collections.d.ts +16 -0
  4. package/dist/collections.d.ts.map +1 -0
  5. package/dist/collections.js +40 -0
  6. package/dist/collections.js.map +1 -0
  7. package/dist/culture/calendar.d.ts +122 -0
  8. package/dist/culture/calendar.d.ts.map +1 -0
  9. package/dist/culture/calendar.js +379 -0
  10. package/dist/culture/calendar.js.map +1 -0
  11. package/dist/culture/culture.d.ts +91 -0
  12. package/dist/culture/culture.d.ts.map +1 -0
  13. package/dist/culture/culture.js +173 -0
  14. package/dist/culture/culture.js.map +1 -0
  15. package/dist/culture/date-format.d.ts +19 -0
  16. package/dist/culture/date-format.d.ts.map +1 -0
  17. package/dist/culture/date-format.js +101 -0
  18. package/dist/culture/date-format.js.map +1 -0
  19. package/dist/culture/digits.d.ts +29 -0
  20. package/dist/culture/digits.d.ts.map +1 -0
  21. package/dist/culture/digits.js +43 -0
  22. package/dist/culture/digits.js.map +1 -0
  23. package/dist/culture/duration.d.ts +38 -0
  24. package/dist/culture/duration.d.ts.map +1 -0
  25. package/dist/culture/duration.js +41 -0
  26. package/dist/culture/duration.js.map +1 -0
  27. package/dist/culture/index.d.ts +9 -0
  28. package/dist/culture/index.d.ts.map +1 -0
  29. package/dist/culture/index.js +8 -0
  30. package/dist/culture/numbers.d.ts +38 -0
  31. package/dist/culture/numbers.d.ts.map +1 -0
  32. package/dist/culture/numbers.js +64 -0
  33. package/dist/culture/numbers.js.map +1 -0
  34. package/dist/culture/relative-time.d.ts +50 -0
  35. package/dist/culture/relative-time.d.ts.map +1 -0
  36. package/dist/culture/relative-time.js +63 -0
  37. package/dist/culture/relative-time.js.map +1 -0
  38. package/dist/culture/strings.d.ts +145 -0
  39. package/dist/culture/strings.d.ts.map +1 -0
  40. package/dist/culture/strings.js +345 -0
  41. package/dist/culture/strings.js.map +1 -0
  42. package/dist/enums/index.d.ts +195 -0
  43. package/dist/enums/index.d.ts.map +1 -0
  44. package/dist/enums/index.js +130 -0
  45. package/dist/enums/index.js.map +1 -0
  46. package/dist/errors.d.ts +10 -0
  47. package/dist/errors.d.ts.map +1 -0
  48. package/dist/errors.js +21 -0
  49. package/dist/errors.js.map +1 -0
  50. package/dist/exec/diagnostics.d.ts +74 -0
  51. package/dist/exec/diagnostics.d.ts.map +1 -0
  52. package/dist/exec/diagnostics.js +73 -0
  53. package/dist/exec/diagnostics.js.map +1 -0
  54. package/dist/exec/index.d.ts +5 -0
  55. package/dist/exec/index.d.ts.map +1 -0
  56. package/dist/exec/index.js +4 -0
  57. package/dist/exec/options.d.ts +75 -0
  58. package/dist/exec/options.d.ts.map +1 -0
  59. package/dist/exec/options.js +107 -0
  60. package/dist/exec/options.js.map +1 -0
  61. package/dist/exec/safe-executor.d.ts +138 -0
  62. package/dist/exec/safe-executor.d.ts.map +1 -0
  63. package/dist/exec/safe-executor.js +401 -0
  64. package/dist/exec/safe-executor.js.map +1 -0
  65. package/dist/exec/trace.d.ts +59 -0
  66. package/dist/exec/trace.d.ts.map +1 -0
  67. package/dist/exec/trace.js +108 -0
  68. package/dist/exec/trace.js.map +1 -0
  69. package/dist/icons/generated/glyph-svg.d.ts +37 -0
  70. package/dist/icons/generated/glyph-svg.d.ts.map +1 -0
  71. package/dist/icons/generated/glyph-svg.js +33 -0
  72. package/dist/icons/generated/glyph-svg.js.map +1 -0
  73. package/dist/icons/glyph-slots.d.ts +79 -0
  74. package/dist/icons/glyph-slots.d.ts.map +1 -0
  75. package/dist/icons/glyph-slots.js +50 -0
  76. package/dist/icons/glyph-slots.js.map +1 -0
  77. package/dist/icons/glyph.d.ts +76 -0
  78. package/dist/icons/glyph.d.ts.map +1 -0
  79. package/dist/icons/glyph.js +42 -0
  80. package/dist/icons/glyph.js.map +1 -0
  81. package/dist/icons/icon-fonts.d.ts +55 -0
  82. package/dist/icons/icon-fonts.d.ts.map +1 -0
  83. package/dist/icons/icon-fonts.js +74 -0
  84. package/dist/icons/icon-fonts.js.map +1 -0
  85. package/dist/icons/icon.d.ts +102 -0
  86. package/dist/icons/icon.d.ts.map +1 -0
  87. package/dist/icons/icon.js +132 -0
  88. package/dist/icons/icon.js.map +1 -0
  89. package/dist/icons/index.d.ts +7 -0
  90. package/dist/icons/index.d.ts.map +1 -0
  91. package/dist/icons/index.js +6 -0
  92. package/dist/icons/svg.d.ts +28 -0
  93. package/dist/icons/svg.d.ts.map +1 -0
  94. package/dist/icons/svg.js +59 -0
  95. package/dist/icons/svg.js.map +1 -0
  96. package/dist/index.d.ts +10 -0
  97. package/dist/index.d.ts.map +1 -0
  98. package/dist/index.js +9 -0
  99. package/dist/services/abort.d.ts +31 -0
  100. package/dist/services/abort.d.ts.map +1 -0
  101. package/dist/services/abort.js +47 -0
  102. package/dist/services/abort.js.map +1 -0
  103. package/dist/services/clock.d.ts +35 -0
  104. package/dist/services/clock.d.ts.map +1 -0
  105. package/dist/services/clock.js +37 -0
  106. package/dist/services/clock.js.map +1 -0
  107. package/dist/services/contracts.d.ts +200 -0
  108. package/dist/services/contracts.d.ts.map +1 -0
  109. package/dist/services/contracts.js +37 -0
  110. package/dist/services/contracts.js.map +1 -0
  111. package/dist/services/index.d.ts +5 -0
  112. package/dist/services/index.d.ts.map +1 -0
  113. package/dist/services/index.js +4 -0
  114. package/dist/services/preferences.d.ts +105 -0
  115. package/dist/services/preferences.d.ts.map +1 -0
  116. package/dist/services/preferences.js +253 -0
  117. package/dist/services/preferences.js.map +1 -0
  118. package/dist/theme/color.d.ts +94 -0
  119. package/dist/theme/color.d.ts.map +1 -0
  120. package/dist/theme/color.js +150 -0
  121. package/dist/theme/color.js.map +1 -0
  122. package/dist/theme/control-colors.d.ts +46 -0
  123. package/dist/theme/control-colors.d.ts.map +1 -0
  124. package/dist/theme/control-colors.js +46 -0
  125. package/dist/theme/control-colors.js.map +1 -0
  126. package/dist/theme/index.d.ts +5 -0
  127. package/dist/theme/index.d.ts.map +1 -0
  128. package/dist/theme/index.js +4 -0
  129. package/dist/theme/theme.d.ts +88 -0
  130. package/dist/theme/theme.d.ts.map +1 -0
  131. package/dist/theme/theme.js +190 -0
  132. package/dist/theme/theme.js.map +1 -0
  133. package/dist/theme/variants.d.ts +33 -0
  134. package/dist/theme/variants.d.ts.map +1 -0
  135. package/dist/theme/variants.js +53 -0
  136. package/dist/theme/variants.js.map +1 -0
  137. package/dist/tokens/css-vars.d.ts +41 -0
  138. package/dist/tokens/css-vars.d.ts.map +1 -0
  139. package/dist/tokens/css-vars.js +55 -0
  140. package/dist/tokens/css-vars.js.map +1 -0
  141. package/dist/tokens/generated/metrics.d.ts +184 -0
  142. package/dist/tokens/generated/metrics.d.ts.map +1 -0
  143. package/dist/tokens/generated/metrics.js +349 -0
  144. package/dist/tokens/generated/metrics.js.map +1 -0
  145. package/dist/tokens/generated/palettes.d.ts +113 -0
  146. package/dist/tokens/generated/palettes.d.ts.map +1 -0
  147. package/dist/tokens/generated/palettes.js +391 -0
  148. package/dist/tokens/generated/palettes.js.map +1 -0
  149. package/dist/tokens/index.d.ts +5 -0
  150. package/dist/tokens/index.d.ts.map +1 -0
  151. package/dist/tokens/index.js +4 -0
  152. package/dist/tokens/layout-metrics.d.ts +120 -0
  153. package/dist/tokens/layout-metrics.d.ts.map +1 -0
  154. package/dist/tokens/layout-metrics.js +111 -0
  155. package/dist/tokens/layout-metrics.js.map +1 -0
  156. package/docs/api.md +369 -0
  157. package/docs/foundation.md +370 -0
  158. package/docs/migration/Core.Controls.Shared.md +475 -0
  159. package/docs/migration/Core.Helpers.md +132 -0
  160. package/docs/migration/Core.Icons.md +135 -0
  161. package/docs/migration/Core.Localization.md +118 -0
  162. package/docs/migration/Core.Storage.md +54 -0
  163. package/docs/migration/Core.Theming.md +328 -0
  164. package/package.json +59 -4
@@ -0,0 +1,59 @@
1
+ import type { G9Clock } from '../services/clock.js';
2
+ import type { G9LogEntry } from './diagnostics.js';
3
+ /** Severity of a trace entry. */
4
+ export type G9TraceLevel = 'info' | 'warning' | 'error';
5
+ /** One recorded step. `elapsedMs` is measured from the trace's start. */
6
+ export interface G9TraceEntry {
7
+ readonly level: G9TraceLevel;
8
+ readonly message: string;
9
+ readonly detail: string | null;
10
+ readonly elapsedMs: number;
11
+ readonly error?: unknown;
12
+ }
13
+ /** A user-facing failure recorded with {@link G9OperationTrace.fail}. */
14
+ export interface G9TraceFailure {
15
+ readonly userMessage: string;
16
+ readonly diagnostics: string | null;
17
+ }
18
+ /**
19
+ * Step-by-step record of one operation (MAUI `G9OperationTrace`), passed to every safe-executor action so the "More
20
+ * details" report says what had already succeeded. Steps are also logged.
21
+ */
22
+ export interface G9OperationTrace {
23
+ /** The operation key and source this trace belongs to. */
24
+ readonly key: string;
25
+ readonly source: string;
26
+ /** Milliseconds since the trace started; frozen once {@link G9OperationTrace.buildReport} ran. */
27
+ readonly elapsedMs: number;
28
+ /** Every entry so far, oldest first. */
29
+ readonly entries: ReadonlyArray<G9TraceEntry>;
30
+ /** The failure recorded with `fail`, or `null`. */
31
+ readonly failure: G9TraceFailure | null;
32
+ /** Records an informational step. */
33
+ step(message: string, detail?: string | null): void;
34
+ /** Records a warning. */
35
+ warning(message: string, detail?: string | null): void;
36
+ /** Records an error. */
37
+ error(message: string, error?: unknown, detail?: string | null): void;
38
+ /**
39
+ * Marks the operation as failed with a message for the user: the executor reports it (and shows it when
40
+ * `showErrorPopup` is on) after the action returns. The last call wins.
41
+ */
42
+ fail(userMessage: string, diagnostics?: string | null): void;
43
+ /** The human-readable report: header, every entry, and the final error when given. Stops the elapsed time. */
44
+ buildReport(error?: unknown): string;
45
+ }
46
+ /** Options of {@link createOperationTrace}. */
47
+ export interface G9OperationTraceOptions {
48
+ /** Wall time for the report timestamp, monotonic time for durations. */
49
+ readonly clock: G9Clock;
50
+ /** Where entries are logged (the diagnostics hub's `log`). */
51
+ readonly log?: (entry: G9LogEntry) => void;
52
+ }
53
+ /** `.NET` round-trip ("O") formatting of a UTC instant: `2024-03-20T06:36:26.1230000+00:00`. */
54
+ export declare function formatRoundTripUtc(epochMs: number): string;
55
+ /** The full text of an error (MAUI `Exception.ToString()`): the stack when the runtime has one. */
56
+ export declare function describeError(error: unknown): string;
57
+ /** Creates a trace that starts now. */
58
+ export declare function createOperationTrace(key: string, source: string, options: G9OperationTraceOptions): G9OperationTrace;
59
+ //# sourceMappingURL=trace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/exec/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AAE5D,iCAAiC;AACjC,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAExD,yEAAyE;AACzE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kGAAkG;IAClG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC9C,mDAAmD;IACnD,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IACxC,qCAAqC;IACrC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACpD,yBAAyB;IACzB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACvD,wBAAwB;IACxB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACtE;;;OAGG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7D,8GAA8G;IAC9G,WAAW,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACtC;AAED,+CAA+C;AAC/C,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,8DAA8D;IAC9D,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CAC5C;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE1D;AAUD,mGAAmG;AACnG,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMpD;AAID,uCAAuC;AACvC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,gBAAgB,CAiFpH"}
@@ -0,0 +1,108 @@
1
+ function formatRoundTripUtc(epochMs) {
2
+ return `${new Date(epochMs).toISOString().slice(0, 23)}0000+00:00`;
3
+ }
4
+ function errorTypeName(error) {
5
+ return error instanceof Error ? error.name : typeof error;
6
+ }
7
+ function errorMessage(error) {
8
+ return error instanceof Error ? error.message : String(error);
9
+ }
10
+ function describeError(error) {
11
+ if (error instanceof Error) {
12
+ const head = `${error.name}: ${error.message}`;
13
+ return 'string' == typeof error.stack && error.stack.includes(error.message) ? error.stack : head;
14
+ }
15
+ return `${errorTypeName(error)}: ${String(error)}`;
16
+ }
17
+ const isBlank = (text)=>null == text || '' === text.trim();
18
+ function createOperationTrace(key, source, options) {
19
+ const { clock, log } = options;
20
+ const started = clock.monotonicNow();
21
+ let stoppedAt = null;
22
+ const entries = [];
23
+ let failure = null;
24
+ const elapsed = ()=>(null != stoppedAt ? stoppedAt : clock.monotonicNow()) - started;
25
+ const emit = (level, message, detail, error)=>{
26
+ if (!log) return;
27
+ try {
28
+ log({
29
+ level,
30
+ message: `${message}${isBlank(detail) ? '' : ` ${detail}`}`,
31
+ source,
32
+ key,
33
+ ...null == error ? {} : {
34
+ error
35
+ }
36
+ });
37
+ } catch {}
38
+ };
39
+ const record = (level, message, detail, error)=>{
40
+ entries.push(Object.freeze({
41
+ level,
42
+ message,
43
+ detail,
44
+ elapsedMs: elapsed(),
45
+ ...null == error ? {} : {
46
+ error
47
+ }
48
+ }));
49
+ };
50
+ return {
51
+ key,
52
+ source,
53
+ get elapsedMs () {
54
+ return elapsed();
55
+ },
56
+ get entries () {
57
+ return entries.slice();
58
+ },
59
+ get failure () {
60
+ return failure;
61
+ },
62
+ step (message, detail = null) {
63
+ record('info', message, detail);
64
+ emit('debug', message, detail);
65
+ },
66
+ warning (message, detail = null) {
67
+ record('warning', message, detail);
68
+ emit('warning', message, detail);
69
+ },
70
+ error (message, error, detail = null) {
71
+ record('error', message, detail, error);
72
+ emit('error', message, detail, error);
73
+ },
74
+ fail (userMessage, diagnostics = null) {
75
+ failure = Object.freeze({
76
+ userMessage,
77
+ diagnostics
78
+ });
79
+ record('error', `Operation failed: ${userMessage}`, diagnostics);
80
+ emit('warning', `Operation failed: ${userMessage}`, null);
81
+ },
82
+ buildReport (error) {
83
+ null != stoppedAt || (stoppedAt = clock.monotonicNow());
84
+ const lines = [
85
+ 'Operation Trace Report',
86
+ '======================',
87
+ `Key: ${key}`,
88
+ `Source: ${source}`,
89
+ `TimestampUtc: ${formatRoundTripUtc(clock.now())}`,
90
+ `Duration: ${Math.round(elapsed())}ms`
91
+ ];
92
+ if (entries.length > 0) {
93
+ lines.push('───────────────────────────────');
94
+ for (const entry of entries){
95
+ const tag = 'warning' === entry.level ? 'WARN' : 'error' === entry.level ? 'ERR ' : 'INFO';
96
+ lines.push(`[${String(Math.round(entry.elapsedMs)).padStart(7)}ms] [${tag}] ${entry.message}`);
97
+ if (!isBlank(entry.detail)) lines.push(` -> ${entry.detail}`);
98
+ if (null != entry.error) lines.push(` !! ${errorTypeName(entry.error)}: ${errorMessage(entry.error)}`);
99
+ }
100
+ }
101
+ if (null != error) lines.push('', '===============================', '[Unhandled Exception]', describeError(error));
102
+ return `${lines.join('\n')}\n`;
103
+ }
104
+ };
105
+ }
106
+ export { createOperationTrace, describeError, formatRoundTripUtc };
107
+
108
+ //# sourceMappingURL=trace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exec/trace.js","sources":["../../src/exec/trace.ts"],"sourcesContent":["import type { G9Clock } from '../services/clock';\nimport type { G9LogEntry, G9LogLevel } from './diagnostics';\n\n/** Severity of a trace entry. */\nexport type G9TraceLevel = 'info' | 'warning' | 'error';\n\n/** One recorded step. `elapsedMs` is measured from the trace's start. */\nexport interface G9TraceEntry {\n readonly level: G9TraceLevel;\n readonly message: string;\n readonly detail: string | null;\n readonly elapsedMs: number;\n readonly error?: unknown;\n}\n\n/** A user-facing failure recorded with {@link G9OperationTrace.fail}. */\nexport interface G9TraceFailure {\n readonly userMessage: string;\n readonly diagnostics: string | null;\n}\n\n/**\n * Step-by-step record of one operation (MAUI `G9OperationTrace`), passed to every safe-executor action so the \"More\n * details\" report says what had already succeeded. Steps are also logged.\n */\nexport interface G9OperationTrace {\n /** The operation key and source this trace belongs to. */\n readonly key: string;\n readonly source: string;\n /** Milliseconds since the trace started; frozen once {@link G9OperationTrace.buildReport} ran. */\n readonly elapsedMs: number;\n /** Every entry so far, oldest first. */\n readonly entries: ReadonlyArray<G9TraceEntry>;\n /** The failure recorded with `fail`, or `null`. */\n readonly failure: G9TraceFailure | null;\n /** Records an informational step. */\n step(message: string, detail?: string | null): void;\n /** Records a warning. */\n warning(message: string, detail?: string | null): void;\n /** Records an error. */\n error(message: string, error?: unknown, detail?: string | null): void;\n /**\n * Marks the operation as failed with a message for the user: the executor reports it (and shows it when\n * `showErrorPopup` is on) after the action returns. The last call wins.\n */\n fail(userMessage: string, diagnostics?: string | null): void;\n /** The human-readable report: header, every entry, and the final error when given. Stops the elapsed time. */\n buildReport(error?: unknown): string;\n}\n\n/** Options of {@link createOperationTrace}. */\nexport interface G9OperationTraceOptions {\n /** Wall time for the report timestamp, monotonic time for durations. */\n readonly clock: G9Clock;\n /** Where entries are logged (the diagnostics hub's `log`). */\n readonly log?: (entry: G9LogEntry) => void;\n}\n\n/** `.NET` round-trip (\"O\") formatting of a UTC instant: `2024-03-20T06:36:26.1230000+00:00`. */\nexport function formatRoundTripUtc(epochMs: number): string {\n return `${new Date(epochMs).toISOString().slice(0, 23)}0000+00:00`;\n}\n\nfunction errorTypeName(error: unknown): string {\n return error instanceof Error ? error.name : typeof error;\n}\n\nfunction errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n\n/** The full text of an error (MAUI `Exception.ToString()`): the stack when the runtime has one. */\nexport function describeError(error: unknown): string {\n if (error instanceof Error) {\n const head = `${error.name}: ${error.message}`;\n return typeof error.stack === 'string' && error.stack.includes(error.message) ? error.stack : head;\n }\n return `${errorTypeName(error)}: ${String(error)}`;\n}\n\nconst isBlank = (text: string | null | undefined) => text == null || text.trim() === '';\n\n/** Creates a trace that starts now. */\nexport function createOperationTrace(key: string, source: string, options: G9OperationTraceOptions): G9OperationTrace {\n const { clock, log } = options;\n const started = clock.monotonicNow();\n let stoppedAt: number | null = null;\n const entries: G9TraceEntry[] = [];\n let failure: G9TraceFailure | null = null;\n const elapsed = () => (stoppedAt ?? clock.monotonicNow()) - started;\n\n const emit = (level: G9LogLevel, message: string, detail: string | null, error?: unknown) => {\n if (!log) return;\n try {\n log({\n level,\n message: `${message}${isBlank(detail) ? '' : ` ${detail}`}`,\n source,\n key,\n ...(error == null ? {} : { error }),\n });\n } catch {\n // Logging must never break the operation.\n }\n };\n const record = (level: G9TraceLevel, message: string, detail: string | null, error?: unknown) => {\n entries.push(Object.freeze({ level, message, detail, elapsedMs: elapsed(), ...(error == null ? {} : { error }) }));\n };\n\n return {\n key,\n source,\n get elapsedMs() {\n return elapsed();\n },\n get entries() {\n return entries.slice();\n },\n get failure() {\n return failure;\n },\n step(message, detail = null) {\n record('info', message, detail);\n emit('debug', message, detail);\n },\n warning(message, detail = null) {\n record('warning', message, detail);\n emit('warning', message, detail);\n },\n error(message, error, detail = null) {\n record('error', message, detail, error);\n emit('error', message, detail, error);\n },\n fail(userMessage, diagnostics = null) {\n failure = Object.freeze({ userMessage, diagnostics });\n record('error', `Operation failed: ${userMessage}`, diagnostics);\n emit('warning', `Operation failed: ${userMessage}`, null);\n },\n buildReport(error) {\n stoppedAt ??= clock.monotonicNow();\n const lines = [\n 'Operation Trace Report',\n '======================',\n `Key: ${key}`,\n `Source: ${source}`,\n `TimestampUtc: ${formatRoundTripUtc(clock.now())}`,\n `Duration: ${Math.round(elapsed())}ms`,\n ];\n if (entries.length > 0) {\n lines.push('───────────────────────────────');\n for (const entry of entries) {\n const tag = entry.level === 'warning' ? 'WARN' : entry.level === 'error' ? 'ERR ' : 'INFO';\n lines.push(`[${String(Math.round(entry.elapsedMs)).padStart(7)}ms] [${tag}] ${entry.message}`);\n if (!isBlank(entry.detail)) lines.push(` -> ${entry.detail}`);\n if (entry.error != null)\n lines.push(` !! ${errorTypeName(entry.error)}: ${errorMessage(entry.error)}`);\n }\n }\n if (error != null) {\n lines.push('', '===============================', '[Unhandled Exception]', describeError(error));\n }\n return `${lines.join('\\n')}\\n`;\n },\n };\n}\n"],"names":["formatRoundTripUtc","epochMs","Date","errorTypeName","error","Error","errorMessage","String","describeError","head","isBlank","text","createOperationTrace","key","source","options","clock","log","started","stoppedAt","entries","failure","elapsed","emit","level","message","detail","record","Object","userMessage","diagnostics","lines","Math","entry","tag"],"mappings":"AA2DO,SAASA,mBAAmBC,OAAe;IAChD,OAAO,GAAG,IAAIC,KAAKD,SAAS,WAAW,GAAG,KAAK,CAAC,GAAG,IAAI,UAAU,CAAC;AACpE;AAEA,SAASE,cAAcC,KAAc;IACnC,OAAOA,iBAAiBC,QAAQD,MAAM,IAAI,GAAG,OAAOA;AACtD;AAEA,SAASE,aAAaF,KAAc;IAClC,OAAOA,iBAAiBC,QAAQD,MAAM,OAAO,GAAGG,OAAOH;AACzD;AAGO,SAASI,cAAcJ,KAAc;IAC1C,IAAIA,iBAAiBC,OAAO;QAC1B,MAAMI,OAAO,GAAGL,MAAM,IAAI,CAAC,EAAE,EAAEA,MAAM,OAAO,EAAE;QAC9C,OAAO,AAAuB,YAAvB,OAAOA,MAAM,KAAK,IAAiBA,MAAM,KAAK,CAAC,QAAQ,CAACA,MAAM,OAAO,IAAIA,MAAM,KAAK,GAAGK;IAChG;IACA,OAAO,GAAGN,cAAcC,OAAO,EAAE,EAAEG,OAAOH,QAAQ;AACpD;AAEA,MAAMM,UAAU,CAACC,OAAoCA,AAAQ,QAARA,QAAgBA,AAAgB,OAAhBA,KAAK,IAAI;AAGvE,SAASC,qBAAqBC,GAAW,EAAEC,MAAc,EAAEC,OAAgC;IAChG,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAE,GAAGF;IACvB,MAAMG,UAAUF,MAAM,YAAY;IAClC,IAAIG,YAA2B;IAC/B,MAAMC,UAA0B,EAAE;IAClC,IAAIC,UAAiC;IACrC,MAAMC,UAAU,IAAM,AAACH,CAAAA,QAAAA,YAAAA,YAAaH,MAAM,YAAY,EAAC,IAAKE;IAE5D,MAAMK,OAAO,CAACC,OAAmBC,SAAiBC,QAAuBtB;QACvE,IAAI,CAACa,KAAK;QACV,IAAI;YACFA,IAAI;gBACFO;gBACA,SAAS,GAAGC,UAAUf,QAAQgB,UAAU,KAAK,CAAC,CAAC,EAAEA,QAAQ,EAAE;gBAC3DZ;gBACAD;gBACA,GAAIT,AAAS,QAATA,QAAgB,CAAC,IAAI;oBAAEA;gBAAM,CAAC;YACpC;QACF,EAAE,OAAM,CAER;IACF;IACA,MAAMuB,SAAS,CAACH,OAAqBC,SAAiBC,QAAuBtB;QAC3EgB,QAAQ,IAAI,CAACQ,OAAO,MAAM,CAAC;YAAEJ;YAAOC;YAASC;YAAQ,WAAWJ;YAAW,GAAIlB,AAAS,QAATA,QAAgB,CAAC,IAAI;gBAAEA;YAAM,CAAC;QAAE;IACjH;IAEA,OAAO;QACLS;QACAC;QACA,IAAI;YACF,OAAOQ;QACT;QACA,IAAI;YACF,OAAOF,QAAQ,KAAK;QACtB;QACA,IAAI;YACF,OAAOC;QACT;QACA,MAAKI,OAAO,EAAEC,SAAS,IAAI;YACzBC,OAAO,QAAQF,SAASC;YACxBH,KAAK,SAASE,SAASC;QACzB;QACA,SAAQD,OAAO,EAAEC,SAAS,IAAI;YAC5BC,OAAO,WAAWF,SAASC;YAC3BH,KAAK,WAAWE,SAASC;QAC3B;QACA,OAAMD,OAAO,EAAErB,KAAK,EAAEsB,SAAS,IAAI;YACjCC,OAAO,SAASF,SAASC,QAAQtB;YACjCmB,KAAK,SAASE,SAASC,QAAQtB;QACjC;QACA,MAAKyB,WAAW,EAAEC,cAAc,IAAI;YAClCT,UAAUO,OAAO,MAAM,CAAC;gBAAEC;gBAAaC;YAAY;YACnDH,OAAO,SAAS,CAAC,kBAAkB,EAAEE,aAAa,EAAEC;YACpDP,KAAK,WAAW,CAAC,kBAAkB,EAAEM,aAAa,EAAE;QACtD;QACA,aAAYzB,KAAK;YACfe,QAAAA,aAAAA,CAAAA,YAAcH,MAAM,YAAY,EAAC;YACjC,MAAMe,QAAQ;gBACZ;gBACA;gBACA,CAAC,KAAK,EAAElB,KAAK;gBACb,CAAC,QAAQ,EAAEC,QAAQ;gBACnB,CAAC,cAAc,EAAEd,mBAAmBgB,MAAM,GAAG,KAAK;gBAClD,CAAC,UAAU,EAAEgB,KAAK,KAAK,CAACV,WAAW,EAAE,CAAC;aACvC;YACD,IAAIF,QAAQ,MAAM,GAAG,GAAG;gBACtBW,MAAM,IAAI,CAAC;gBACX,KAAK,MAAME,SAASb,QAAS;oBAC3B,MAAMc,MAAMD,AAAgB,cAAhBA,MAAM,KAAK,GAAiB,SAASA,AAAgB,YAAhBA,MAAM,KAAK,GAAe,SAAS;oBACpFF,MAAM,IAAI,CAAC,CAAC,CAAC,EAAExB,OAAOyB,KAAK,KAAK,CAACC,MAAM,SAAS,GAAG,QAAQ,CAAC,GAAG,KAAK,EAAEC,IAAI,EAAE,EAAED,MAAM,OAAO,EAAE;oBAC7F,IAAI,CAACvB,QAAQuB,MAAM,MAAM,GAAGF,MAAM,IAAI,CAAC,CAAC,eAAe,EAAEE,MAAM,MAAM,EAAE;oBACvE,IAAIA,AAAe,QAAfA,MAAM,KAAK,EACbF,MAAM,IAAI,CAAC,CAAC,eAAe,EAAE5B,cAAc8B,MAAM,KAAK,EAAE,EAAE,EAAE3B,aAAa2B,MAAM,KAAK,GAAG;gBAC3F;YACF;YACA,IAAI7B,AAAS,QAATA,OACF2B,MAAM,IAAI,CAAC,IAAI,mCAAmC,yBAAyBvB,cAAcJ;YAE3F,OAAO,GAAG2B,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC;IACF;AACF"}
@@ -0,0 +1,37 @@
1
+ /** Stroke width of the built-in glyphs in 24 × 24 design-box units at weight 1 (MAUI `G9GlyphDrawable.StrokeUnits`). */
2
+ export declare const g9GlyphStrokeUnits = 2;
3
+ /**
4
+ * Every built-in glyph as the SVG document the original MAUI drawing code produced (24 × 24 box, stroke
5
+ * `g9GlyphStrokeUnits`, round caps and joins, colour `currentColor`), keyed by the `G9Glyph` value, in MAUI declaration
6
+ * order. Render through `svgForGlyph`, which substitutes the colour and the weight.
7
+ */
8
+ export declare const g9GlyphSvg: {
9
+ readonly chevronDown: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(90) translate(-12 -12)\"/></svg>";
10
+ readonly chevronUp: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(270) translate(-12 -12)\"/></svg>";
11
+ readonly chevronLeft: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)\"/></svg>";
12
+ readonly chevronRight: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)\"/></svg>";
13
+ readonly arrowBack: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"18.5\" y2=\"12\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)\"/><path d=\"M12.5 6 L18.5 12 L12.5 18\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)\"/></svg>";
14
+ readonly arrowForward: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"18.5\" y2=\"12\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)\"/><path d=\"M12.5 6 L18.5 12 L12.5 18\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)\"/></svg>";
15
+ readonly close: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
16
+ readonly search: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"10.5\" cy=\"10.5\" r=\"5.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"14.6\" y1=\"14.6\" x2=\"19\" y2=\"19\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
17
+ readonly language: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"3.5\" y1=\"12\" x2=\"20.5\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M12 3.5 C16.2 7.4 16.2 16.6 12 20.5 C7.8 16.6 7.8 7.4 12 3.5\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
18
+ readonly cloudOff: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7.5 17.5 C4.6 17.5 3 15.6 3 13.4 C3 11.3 4.5 9.7 6.5 9.4 C7.2 6.7 9.6 5 12.2 5 C15.2 5 17.7 7.2 18.1 10.1 C20.1 10.5 21 12.1 21 13.7 C21 15.8 19.4 17.5 17.2 17.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4\" y1=\"4\" x2=\"20\" y2=\"20\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
19
+ readonly scanCode: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"4.5\" y1=\"8.1\" x2=\"4.5\" y2=\"4.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.5\" y1=\"4.5\" x2=\"8.1\" y2=\"4.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.9\" y1=\"4.5\" x2=\"19.5\" y2=\"4.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"19.5\" y1=\"4.5\" x2=\"19.5\" y2=\"8.1\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.5\" y1=\"15.9\" x2=\"4.5\" y2=\"19.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.5\" y1=\"19.5\" x2=\"8.1\" y2=\"19.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.9\" y1=\"19.5\" x2=\"19.5\" y2=\"19.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"19.5\" y1=\"19.5\" x2=\"19.5\" y2=\"15.9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"5.9\" y1=\"12\" x2=\"18.1\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
20
+ readonly eye: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.6 12 Q12 3.6 21.4 12 Q12 20.4 2.6 12 Z\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"12\" r=\"3.1\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
21
+ readonly eyeOff: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.6 12 Q12 3.6 21.4 12 Q12 20.4 2.6 12 Z\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"12\" r=\"3.1\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.4\" y1=\"20.2\" x2=\"19.6\" y2=\"3.8\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
22
+ readonly check: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12.8 L9.6 17.4 L19 7\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
23
+ readonly checkCircle: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"7.8\" y1=\"12.3\" x2=\"10.6\" y2=\"15.1\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"10.6\" y1=\"15.1\" x2=\"16.2\" y2=\"9.3\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
24
+ readonly warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3.6 L21.6 20.4 L2.4 20.4 Z\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"9.4\" x2=\"12\" y2=\"14.6\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"17.6\" r=\"1.24\" fill=\"currentColor\" stroke=\"none\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
25
+ readonly errorCircle: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"8.8\" y1=\"8.8\" x2=\"15.2\" y2=\"15.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.2\" y1=\"8.8\" x2=\"8.8\" y2=\"15.2\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
26
+ readonly info: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"16.4\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"7.8\" r=\"1.24\" fill=\"currentColor\" stroke=\"none\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
27
+ readonly calendar: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3.4\" y=\"5.4\" width=\"17.2\" height=\"15.2\" rx=\"2.4\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"3.4\" y1=\"10\" x2=\"20.6\" y2=\"10\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"8.2\" y1=\"3\" x2=\"8.2\" y2=\"6.4\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.8\" y1=\"3\" x2=\"15.8\" y2=\"6.4\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
28
+ readonly clock: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8.8\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"7.2\" x2=\"12\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"12\" x2=\"15.6\" y2=\"14.2\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
29
+ readonly mic: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9.2\" y=\"2.6\" width=\"5.6\" height=\"11.4\" rx=\"2.8\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M5.4 11 Q5.4 18.2 12 18.2 Q18.6 18.2 18.6 11\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"18.2\" x2=\"12\" y2=\"21.4\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
30
+ readonly micOff: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9.2\" y=\"2.6\" width=\"5.6\" height=\"11.4\" rx=\"2.8\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M5.4 11 Q5.4 18.2 12 18.2 Q18.6 18.2 18.6 11\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"18.2\" x2=\"12\" y2=\"21.4\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.4\" y1=\"20.2\" x2=\"19.6\" y2=\"3.8\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
31
+ readonly plus: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
32
+ readonly minus: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
33
+ readonly menu: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"4\" y1=\"7\" x2=\"20\" y2=\"7\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4\" y1=\"12\" x2=\"20\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4\" y1=\"17\" x2=\"20\" y2=\"17\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
34
+ readonly refresh: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M16.818 5.1191 A8.4 8.4 0 1 1 6.6006 5.5652\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"3.7\" y1=\"4.8\" x2=\"8.3\" y2=\"4.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"8.3\" y1=\"4.2\" x2=\"6.9\" y2=\"8.5\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
35
+ readonly delete: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"4\" y1=\"7\" x2=\"20\" y2=\"7\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"9.6\" y1=\"7\" x2=\"10.2\" y2=\"4.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"10.2\" y1=\"4.2\" x2=\"13.8\" y2=\"4.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"13.8\" y1=\"4.2\" x2=\"14.4\" y2=\"7\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M6 7 L7.2 20.4 L16.8 20.4 L18 7\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"10.2\" y1=\"10.6\" x2=\"10.6\" y2=\"17\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"13.8\" y1=\"10.6\" x2=\"13.4\" y2=\"17\" transform=\"translate(0 0) scale(1 1)\"/></svg>";
36
+ };
37
+ //# sourceMappingURL=glyph-svg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glyph-svg.d.ts","sourceRoot":"","sources":["../../../src/icons/generated/glyph-svg.ts"],"names":[],"mappings":"AAGA,wHAAwH;AACxH,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDb,CAAC"}
@@ -0,0 +1,33 @@
1
+ const g9GlyphStrokeUnits = 2;
2
+ const g9GlyphSvg = {
3
+ chevronDown: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 5.5 L16 12 L9.5 18.5" transform="translate(0 0) scale(1 1) translate(12 12) rotate(90) translate(-12 -12)"/></svg>',
4
+ chevronUp: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 5.5 L16 12 L9.5 18.5" transform="translate(0 0) scale(1 1) translate(12 12) rotate(270) translate(-12 -12)"/></svg>',
5
+ chevronLeft: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 5.5 L16 12 L9.5 18.5" transform="translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)"/></svg>',
6
+ chevronRight: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 5.5 L16 12 L9.5 18.5" transform="translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)"/></svg>',
7
+ arrowBack: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="18.5" y2="12" transform="translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)"/><path d="M12.5 6 L18.5 12 L12.5 18" transform="translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)"/></svg>',
8
+ arrowForward: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="18.5" y2="12" transform="translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)"/><path d="M12.5 6 L18.5 12 L12.5 18" transform="translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)"/></svg>',
9
+ close: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="6" x2="18" y2="18" transform="translate(0 0) scale(1 1)"/><line x1="18" y1="6" x2="6" y2="18" transform="translate(0 0) scale(1 1)"/></svg>',
10
+ search: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="10.5" cy="10.5" r="5.5" transform="translate(0 0) scale(1 1)"/><line x1="14.6" y1="14.6" x2="19" y2="19" transform="translate(0 0) scale(1 1)"/></svg>',
11
+ language: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8.5" transform="translate(0 0) scale(1 1)"/><line x1="3.5" y1="12" x2="20.5" y2="12" transform="translate(0 0) scale(1 1)"/><path d="M12 3.5 C16.2 7.4 16.2 16.6 12 20.5 C7.8 16.6 7.8 7.4 12 3.5" transform="translate(0 0) scale(1 1)"/></svg>',
12
+ cloudOff: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7.5 17.5 C4.6 17.5 3 15.6 3 13.4 C3 11.3 4.5 9.7 6.5 9.4 C7.2 6.7 9.6 5 12.2 5 C15.2 5 17.7 7.2 18.1 10.1 C20.1 10.5 21 12.1 21 13.7 C21 15.8 19.4 17.5 17.2 17.5" transform="translate(0 0) scale(1 1)"/><line x1="4" y1="4" x2="20" y2="20" transform="translate(0 0) scale(1 1)"/></svg>',
13
+ scanCode: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4.5" y1="8.1" x2="4.5" y2="4.5" transform="translate(0 0) scale(1 1)"/><line x1="4.5" y1="4.5" x2="8.1" y2="4.5" transform="translate(0 0) scale(1 1)"/><line x1="15.9" y1="4.5" x2="19.5" y2="4.5" transform="translate(0 0) scale(1 1)"/><line x1="19.5" y1="4.5" x2="19.5" y2="8.1" transform="translate(0 0) scale(1 1)"/><line x1="4.5" y1="15.9" x2="4.5" y2="19.5" transform="translate(0 0) scale(1 1)"/><line x1="4.5" y1="19.5" x2="8.1" y2="19.5" transform="translate(0 0) scale(1 1)"/><line x1="15.9" y1="19.5" x2="19.5" y2="19.5" transform="translate(0 0) scale(1 1)"/><line x1="19.5" y1="19.5" x2="19.5" y2="15.9" transform="translate(0 0) scale(1 1)"/><line x1="5.9" y1="12" x2="18.1" y2="12" transform="translate(0 0) scale(1 1)"/></svg>',
14
+ eye: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.6 12 Q12 3.6 21.4 12 Q12 20.4 2.6 12 Z" transform="translate(0 0) scale(1 1)"/><circle cx="12" cy="12" r="3.1" transform="translate(0 0) scale(1 1)"/></svg>',
15
+ eyeOff: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.6 12 Q12 3.6 21.4 12 Q12 20.4 2.6 12 Z" transform="translate(0 0) scale(1 1)"/><circle cx="12" cy="12" r="3.1" transform="translate(0 0) scale(1 1)"/><line x1="4.4" y1="20.2" x2="19.6" y2="3.8" transform="translate(0 0) scale(1 1)"/></svg>',
16
+ check: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.8 L9.6 17.4 L19 7" transform="translate(0 0) scale(1 1)"/></svg>',
17
+ checkCircle: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9" transform="translate(0 0) scale(1 1)"/><line x1="7.8" y1="12.3" x2="10.6" y2="15.1" transform="translate(0 0) scale(1 1)"/><line x1="10.6" y1="15.1" x2="16.2" y2="9.3" transform="translate(0 0) scale(1 1)"/></svg>',
18
+ warning: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3.6 L21.6 20.4 L2.4 20.4 Z" transform="translate(0 0) scale(1 1)"/><line x1="12" y1="9.4" x2="12" y2="14.6" transform="translate(0 0) scale(1 1)"/><circle cx="12" cy="17.6" r="1.24" fill="currentColor" stroke="none" transform="translate(0 0) scale(1 1)"/></svg>',
19
+ errorCircle: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9" transform="translate(0 0) scale(1 1)"/><line x1="8.8" y1="8.8" x2="15.2" y2="15.2" transform="translate(0 0) scale(1 1)"/><line x1="15.2" y1="8.8" x2="8.8" y2="15.2" transform="translate(0 0) scale(1 1)"/></svg>',
20
+ info: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9" transform="translate(0 0) scale(1 1)"/><line x1="12" y1="11" x2="12" y2="16.4" transform="translate(0 0) scale(1 1)"/><circle cx="12" cy="7.8" r="1.24" fill="currentColor" stroke="none" transform="translate(0 0) scale(1 1)"/></svg>',
21
+ calendar: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3.4" y="5.4" width="17.2" height="15.2" rx="2.4" transform="translate(0 0) scale(1 1)"/><line x1="3.4" y1="10" x2="20.6" y2="10" transform="translate(0 0) scale(1 1)"/><line x1="8.2" y1="3" x2="8.2" y2="6.4" transform="translate(0 0) scale(1 1)"/><line x1="15.8" y1="3" x2="15.8" y2="6.4" transform="translate(0 0) scale(1 1)"/></svg>',
22
+ clock: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8.8" transform="translate(0 0) scale(1 1)"/><line x1="12" y1="7.2" x2="12" y2="12" transform="translate(0 0) scale(1 1)"/><line x1="12" y1="12" x2="15.6" y2="14.2" transform="translate(0 0) scale(1 1)"/></svg>',
23
+ mic: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9.2" y="2.6" width="5.6" height="11.4" rx="2.8" transform="translate(0 0) scale(1 1)"/><path d="M5.4 11 Q5.4 18.2 12 18.2 Q18.6 18.2 18.6 11" transform="translate(0 0) scale(1 1)"/><line x1="12" y1="18.2" x2="12" y2="21.4" transform="translate(0 0) scale(1 1)"/></svg>',
24
+ micOff: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9.2" y="2.6" width="5.6" height="11.4" rx="2.8" transform="translate(0 0) scale(1 1)"/><path d="M5.4 11 Q5.4 18.2 12 18.2 Q18.6 18.2 18.6 11" transform="translate(0 0) scale(1 1)"/><line x1="12" y1="18.2" x2="12" y2="21.4" transform="translate(0 0) scale(1 1)"/><line x1="4.4" y1="20.2" x2="19.6" y2="3.8" transform="translate(0 0) scale(1 1)"/></svg>',
25
+ plus: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19" transform="translate(0 0) scale(1 1)"/><line x1="5" y1="12" x2="19" y2="12" transform="translate(0 0) scale(1 1)"/></svg>',
26
+ minus: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12" transform="translate(0 0) scale(1 1)"/></svg>',
27
+ menu: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="7" x2="20" y2="7" transform="translate(0 0) scale(1 1)"/><line x1="4" y1="12" x2="20" y2="12" transform="translate(0 0) scale(1 1)"/><line x1="4" y1="17" x2="20" y2="17" transform="translate(0 0) scale(1 1)"/></svg>',
28
+ refresh: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16.818 5.1191 A8.4 8.4 0 1 1 6.6006 5.5652" transform="translate(0 0) scale(1 1)"/><line x1="3.7" y1="4.8" x2="8.3" y2="4.2" transform="translate(0 0) scale(1 1)"/><line x1="8.3" y1="4.2" x2="6.9" y2="8.5" transform="translate(0 0) scale(1 1)"/></svg>',
29
+ delete: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="7" x2="20" y2="7" transform="translate(0 0) scale(1 1)"/><line x1="9.6" y1="7" x2="10.2" y2="4.2" transform="translate(0 0) scale(1 1)"/><line x1="10.2" y1="4.2" x2="13.8" y2="4.2" transform="translate(0 0) scale(1 1)"/><line x1="13.8" y1="4.2" x2="14.4" y2="7" transform="translate(0 0) scale(1 1)"/><path d="M6 7 L7.2 20.4 L16.8 20.4 L18 7" transform="translate(0 0) scale(1 1)"/><line x1="10.2" y1="10.6" x2="10.6" y2="17" transform="translate(0 0) scale(1 1)"/><line x1="13.8" y1="10.6" x2="13.4" y2="17" transform="translate(0 0) scale(1 1)"/></svg>'
30
+ };
31
+ export { g9GlyphStrokeUnits, g9GlyphSvg };
32
+
33
+ //# sourceMappingURL=glyph-svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons/generated/glyph-svg.js","sources":["../../../src/icons/generated/glyph-svg.ts"],"sourcesContent":["// GENERATED by scripts/gen-glyphs.mjs from plan/golden/glyphs.json — do not edit; run `npm run gen:glyphs`.\n// Golden source: G9GlyphDrawable (recorded) (https://github.com/ImanKari/G9MAUIControls/blob/a32d6097c661b174b3f2d7b73171f34207cea417/G9MAUIControls/Icons/G9GlyphDrawable.cs).\n\n/** Stroke width of the built-in glyphs in 24 × 24 design-box units at weight 1 (MAUI `G9GlyphDrawable.StrokeUnits`). */\nexport const g9GlyphStrokeUnits = 2;\n\n/**\n * Every built-in glyph as the SVG document the original MAUI drawing code produced (24 × 24 box, stroke\n * `g9GlyphStrokeUnits`, round caps and joins, colour `currentColor`), keyed by the `G9Glyph` value, in MAUI declaration\n * order. Render through `svgForGlyph`, which substitutes the colour and the weight.\n */\nexport const g9GlyphSvg = {\n chevronDown:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(90) translate(-12 -12)\"/></svg>',\n chevronUp:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(270) translate(-12 -12)\"/></svg>',\n chevronLeft:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)\"/></svg>',\n chevronRight:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 5.5 L16 12 L9.5 18.5\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)\"/></svg>',\n arrowBack:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"18.5\" y2=\"12\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)\"/><path d=\"M12.5 6 L18.5 12 L12.5 18\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(180) translate(-12 -12)\"/></svg>',\n arrowForward:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"18.5\" y2=\"12\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)\"/><path d=\"M12.5 6 L18.5 12 L12.5 18\" transform=\"translate(0 0) scale(1 1) translate(12 12) rotate(0) translate(-12 -12)\"/></svg>',\n close:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n search:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"10.5\" cy=\"10.5\" r=\"5.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"14.6\" y1=\"14.6\" x2=\"19\" y2=\"19\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n language:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"3.5\" y1=\"12\" x2=\"20.5\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M12 3.5 C16.2 7.4 16.2 16.6 12 20.5 C7.8 16.6 7.8 7.4 12 3.5\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n cloudOff:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7.5 17.5 C4.6 17.5 3 15.6 3 13.4 C3 11.3 4.5 9.7 6.5 9.4 C7.2 6.7 9.6 5 12.2 5 C15.2 5 17.7 7.2 18.1 10.1 C20.1 10.5 21 12.1 21 13.7 C21 15.8 19.4 17.5 17.2 17.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4\" y1=\"4\" x2=\"20\" y2=\"20\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n scanCode:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"4.5\" y1=\"8.1\" x2=\"4.5\" y2=\"4.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.5\" y1=\"4.5\" x2=\"8.1\" y2=\"4.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.9\" y1=\"4.5\" x2=\"19.5\" y2=\"4.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"19.5\" y1=\"4.5\" x2=\"19.5\" y2=\"8.1\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.5\" y1=\"15.9\" x2=\"4.5\" y2=\"19.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.5\" y1=\"19.5\" x2=\"8.1\" y2=\"19.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.9\" y1=\"19.5\" x2=\"19.5\" y2=\"19.5\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"19.5\" y1=\"19.5\" x2=\"19.5\" y2=\"15.9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"5.9\" y1=\"12\" x2=\"18.1\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n eye: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.6 12 Q12 3.6 21.4 12 Q12 20.4 2.6 12 Z\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"12\" r=\"3.1\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n eyeOff:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.6 12 Q12 3.6 21.4 12 Q12 20.4 2.6 12 Z\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"12\" r=\"3.1\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.4\" y1=\"20.2\" x2=\"19.6\" y2=\"3.8\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n check:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12.8 L9.6 17.4 L19 7\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n checkCircle:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"7.8\" y1=\"12.3\" x2=\"10.6\" y2=\"15.1\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"10.6\" y1=\"15.1\" x2=\"16.2\" y2=\"9.3\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n warning:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3.6 L21.6 20.4 L2.4 20.4 Z\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"9.4\" x2=\"12\" y2=\"14.6\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"17.6\" r=\"1.24\" fill=\"currentColor\" stroke=\"none\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n errorCircle:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"8.8\" y1=\"8.8\" x2=\"15.2\" y2=\"15.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.2\" y1=\"8.8\" x2=\"8.8\" y2=\"15.2\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n info: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"16.4\" transform=\"translate(0 0) scale(1 1)\"/><circle cx=\"12\" cy=\"7.8\" r=\"1.24\" fill=\"currentColor\" stroke=\"none\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n calendar:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3.4\" y=\"5.4\" width=\"17.2\" height=\"15.2\" rx=\"2.4\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"3.4\" y1=\"10\" x2=\"20.6\" y2=\"10\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"8.2\" y1=\"3\" x2=\"8.2\" y2=\"6.4\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"15.8\" y1=\"3\" x2=\"15.8\" y2=\"6.4\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n clock:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8.8\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"7.2\" x2=\"12\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"12\" x2=\"15.6\" y2=\"14.2\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n mic: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9.2\" y=\"2.6\" width=\"5.6\" height=\"11.4\" rx=\"2.8\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M5.4 11 Q5.4 18.2 12 18.2 Q18.6 18.2 18.6 11\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"18.2\" x2=\"12\" y2=\"21.4\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n micOff:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9.2\" y=\"2.6\" width=\"5.6\" height=\"11.4\" rx=\"2.8\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M5.4 11 Q5.4 18.2 12 18.2 Q18.6 18.2 18.6 11\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"12\" y1=\"18.2\" x2=\"12\" y2=\"21.4\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4.4\" y1=\"20.2\" x2=\"19.6\" y2=\"3.8\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n plus: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n minus:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n menu: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"4\" y1=\"7\" x2=\"20\" y2=\"7\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4\" y1=\"12\" x2=\"20\" y2=\"12\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"4\" y1=\"17\" x2=\"20\" y2=\"17\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n refresh:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M16.818 5.1191 A8.4 8.4 0 1 1 6.6006 5.5652\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"3.7\" y1=\"4.8\" x2=\"8.3\" y2=\"4.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"8.3\" y1=\"4.2\" x2=\"6.9\" y2=\"8.5\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n delete:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"4\" y1=\"7\" x2=\"20\" y2=\"7\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"9.6\" y1=\"7\" x2=\"10.2\" y2=\"4.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"10.2\" y1=\"4.2\" x2=\"13.8\" y2=\"4.2\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"13.8\" y1=\"4.2\" x2=\"14.4\" y2=\"7\" transform=\"translate(0 0) scale(1 1)\"/><path d=\"M6 7 L7.2 20.4 L16.8 20.4 L18 7\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"10.2\" y1=\"10.6\" x2=\"10.6\" y2=\"17\" transform=\"translate(0 0) scale(1 1)\"/><line x1=\"13.8\" y1=\"10.6\" x2=\"13.4\" y2=\"17\" transform=\"translate(0 0) scale(1 1)\"/></svg>',\n} as const;\n"],"names":["g9GlyphStrokeUnits","g9GlyphSvg"],"mappings":"AAIO,MAAMA,qBAAqB;AAO3B,MAAMC,aAAa;IACxB,aACE;IACF,WACE;IACF,aACE;IACF,cACE;IACF,WACE;IACF,cACE;IACF,OACE;IACF,QACE;IACF,UACE;IACF,UACE;IACF,UACE;IACF,KAAK;IACL,QACE;IACF,OACE;IACF,aACE;IACF,SACE;IACF,aACE;IACF,MAAM;IACN,UACE;IACF,OACE;IACF,KAAK;IACL,QACE;IACF,MAAM;IACN,OACE;IACF,MAAM;IACN,SACE;IACF,QACE;AACJ"}
@@ -0,0 +1,79 @@
1
+ import { type G9Icon } from './icon.js';
2
+ /**
3
+ * The icons the controls draw for themselves, and the one place to replace them (MAUI `G9Glyphs`). Every slot defaults
4
+ * to a built-in glyph; an app supplies overrides through `G9Provider settings.glyphs` (WP02, specs/03 §6) instead of
5
+ * mutating statics. Per MAUI ADR-0021, a control that exposes a slot draws every icon of that kind from the slot.
6
+ */
7
+ export interface G9GlyphSlots {
8
+ /** Dropdown affordance on picker, combo box and date/time fields. Default `chevronDown`. */
9
+ readonly chevron: G9Icon;
10
+ /** Collapse affordance: the expanded state of an expander / combo box. Default `chevronUp`. */
11
+ readonly chevronCollapse: G9Icon;
12
+ /** Drill-down affordance on nav cards and cascade panel rows. Default `chevronRight`. */
13
+ readonly chevronForward: G9Icon;
14
+ /** Back affordance on cascade panels and full-screen sheet headers. Default `chevronLeft`. */
15
+ readonly chevronBack: G9Icon;
16
+ /** "Go back" on a sheet or page header: a shafted arrow, not a chevron. Pick `arrowForward` under RTL. */
17
+ readonly arrowBack: G9Icon;
18
+ /** The RTL counterpart of `arrowBack`. Default `arrowForward`. */
19
+ readonly arrowForward: G9Icon;
20
+ /** The clear button inside a text entry, and sheet / popup close buttons. Default `close`. */
21
+ readonly clear: G9Icon;
22
+ /** Search entry, and the selection sheet's filter box. Default `search`. */
23
+ readonly search: G9Icon;
24
+ /** Resting call-to-action on a scanner-aware entry; separate from `search` on purpose. Default `scanCode`. */
25
+ readonly scanCode: G9Icon;
26
+ /** The language / locale switcher (the intro carousel's header button). Default `language`. */
27
+ readonly language: G9Icon;
28
+ /** "No connection": the offline notice, distinct from `info`. Default `cloudOff`. */
29
+ readonly cloudOff: G9Icon;
30
+ /** "Jump to today" in the date picker sheet. Its own slot (default `calendar`) so a richer font can differ. */
31
+ readonly calendarToday: G9Icon;
32
+ /** A date range (the time-span picker). Default `calendar`. */
33
+ readonly dateRange: G9Icon;
34
+ /** Password reveal toggle, showing state. Default `eye`. */
35
+ readonly eyeOpen: G9Icon;
36
+ /** Password reveal toggle, hidden state. Default `eyeOff`. */
37
+ readonly eyeClosed: G9Icon;
38
+ /** Selection tick in pickers, combo boxes and chip groups. Default `check`. */
39
+ readonly check: G9Icon;
40
+ /** The date half of a date/time picker. Default `calendar`. */
41
+ readonly calendar: G9Icon;
42
+ /** The time half of a date/time picker, and duration pickers. Default `clock`. */
43
+ readonly clock: G9Icon;
44
+ /** Voice input, idle. Default `mic`. */
45
+ readonly mic: G9Icon;
46
+ /** Voice input, unavailable or permission denied. Default `micOff`. */
47
+ readonly micOff: G9Icon;
48
+ /** The tab bar's centre action button. Default `plus`. */
49
+ readonly plus: G9Icon;
50
+ /** Accent glyph of the Information popup / toast type; keep the four accents distinct. Default `info`. */
51
+ readonly info: G9Icon;
52
+ /** Accent glyph of the Success popup / toast type. Default `checkCircle`. */
53
+ readonly success: G9Icon;
54
+ /** Accent glyph of the Warning popup / toast type. Default `warning`. */
55
+ readonly warning: G9Icon;
56
+ /** Accent glyph of the Error popup / toast type. Default `errorCircle`. */
57
+ readonly error: G9Icon;
58
+ /** Retry action on failure surfaces. Default `refresh`. */
59
+ readonly refresh: G9Icon;
60
+ /** Destructive swipe action. Default `delete`. */
61
+ readonly delete: G9Icon;
62
+ }
63
+ /** A slot name of `G9GlyphSlots`. */
64
+ export type G9GlyphSlot = keyof G9GlyphSlots;
65
+ /** The built-in defaults of every slot, in MAUI declaration order (MAUI `G9Glyphs` initialisers and `Reset()`). */
66
+ export declare const g9DefaultGlyphSlots: G9GlyphSlots;
67
+ /** Every slot name, in MAUI declaration order. */
68
+ export declare const g9GlyphSlotNames: readonly G9GlyphSlot[];
69
+ /** Per-slot replacements; an omitted or `undefined` slot keeps its default. */
70
+ export type G9GlyphSlotOverrides = {
71
+ readonly [K in G9GlyphSlot]?: G9Icon | undefined;
72
+ };
73
+ /**
74
+ * Returns a frozen slot set: the defaults with `overrides` applied (MAUI: assigning `G9Glyphs.X`; no overrides is MAUI
75
+ * `G9Glyphs.Reset()`). An unknown slot name or a malformed icon throws a `G9Error` rather than being ignored. An
76
+ * override may be an empty icon (`{ glyph: 'none' }`), as MAUI allowed `G9IconSource.Empty`.
77
+ */
78
+ export declare function resolveGlyphSlots(overrides?: G9GlyphSlotOverrides | null): G9GlyphSlots;
79
+ //# sourceMappingURL=glyph-slots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glyph-slots.d.ts","sourceRoot":"","sources":["../../src/icons/glyph-slots.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,MAAM,EAAa,MAAM,QAAQ,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,+FAA+F;IAC/F,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,yFAAyF;IACzF,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,8FAA8F;IAC9F,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,0GAA0G;IAC1G,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,kEAAkE;IAClE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,+FAA+F;IAC/F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,qFAAqF;IACrF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,+GAA+G;IAC/G,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,+DAA+D;IAC/D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0GAA0G;IAC1G,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,qCAAqC;AACrC,MAAM,MAAM,WAAW,GAAG,MAAM,YAAY,CAAC;AAE7C,mHAAmH;AACnH,eAAO,MAAM,mBAAmB,EAAE,YA4BhC,CAAC;AAEH,kDAAkD;AAClD,eAAO,MAAM,gBAAgB,EAAE,SAAS,WAAW,EAElD,CAAC;AAEF,+EAA+E;AAC/E,MAAM,MAAM,oBAAoB,GAAG;IAAE,QAAQ,EAAE,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS;CAAE,CAAC;AAExF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,YAAY,CAgBvF"}
@@ -0,0 +1,50 @@
1
+ import { G9Error } from "../errors.js";
2
+ import { assertG9Icon, glyphIcon } from "./icon.js";
3
+ const g9DefaultGlyphSlots = Object.freeze({
4
+ chevron: glyphIcon('chevronDown'),
5
+ chevronCollapse: glyphIcon('chevronUp'),
6
+ chevronForward: glyphIcon('chevronRight'),
7
+ chevronBack: glyphIcon('chevronLeft'),
8
+ arrowBack: glyphIcon('arrowBack'),
9
+ arrowForward: glyphIcon('arrowForward'),
10
+ clear: glyphIcon('close'),
11
+ search: glyphIcon('search'),
12
+ scanCode: glyphIcon('scanCode'),
13
+ language: glyphIcon('language'),
14
+ cloudOff: glyphIcon('cloudOff'),
15
+ calendarToday: glyphIcon('calendar'),
16
+ dateRange: glyphIcon('calendar'),
17
+ eyeOpen: glyphIcon('eye'),
18
+ eyeClosed: glyphIcon('eyeOff'),
19
+ check: glyphIcon('check'),
20
+ calendar: glyphIcon('calendar'),
21
+ clock: glyphIcon('clock'),
22
+ mic: glyphIcon('mic'),
23
+ micOff: glyphIcon('micOff'),
24
+ plus: glyphIcon('plus'),
25
+ info: glyphIcon('info'),
26
+ success: glyphIcon('checkCircle'),
27
+ warning: glyphIcon('warning'),
28
+ error: glyphIcon('errorCircle'),
29
+ refresh: glyphIcon('refresh'),
30
+ delete: glyphIcon('delete')
31
+ });
32
+ const g9GlyphSlotNames = Object.freeze(Object.keys(g9DefaultGlyphSlots));
33
+ function resolveGlyphSlots(overrides) {
34
+ if (null == overrides) return g9DefaultGlyphSlots;
35
+ const out = {
36
+ ...g9DefaultGlyphSlots
37
+ };
38
+ for (const key of Object.keys(overrides)){
39
+ if (!(key in g9DefaultGlyphSlots)) throw new G9Error('icon-slot', `'${key}' is not a G9Glyphs slot (expected one of ${g9GlyphSlotNames.join(', ')}).`);
40
+ const icon = overrides[key];
41
+ if (void 0 !== icon) {
42
+ assertG9Icon(icon);
43
+ out[key] = icon;
44
+ }
45
+ }
46
+ return Object.freeze(out);
47
+ }
48
+ export { g9DefaultGlyphSlots, g9GlyphSlotNames, resolveGlyphSlots };
49
+
50
+ //# sourceMappingURL=glyph-slots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons/glyph-slots.js","sources":["../../src/icons/glyph-slots.ts"],"sourcesContent":["import { G9Error } from '../errors';\nimport { assertG9Icon, type G9Icon, glyphIcon } from './icon';\n\n/**\n * The icons the controls draw for themselves, and the one place to replace them (MAUI `G9Glyphs`). Every slot defaults\n * to a built-in glyph; an app supplies overrides through `G9Provider settings.glyphs` (WP02, specs/03 §6) instead of\n * mutating statics. Per MAUI ADR-0021, a control that exposes a slot draws every icon of that kind from the slot.\n */\nexport interface G9GlyphSlots {\n /** Dropdown affordance on picker, combo box and date/time fields. Default `chevronDown`. */\n readonly chevron: G9Icon;\n /** Collapse affordance: the expanded state of an expander / combo box. Default `chevronUp`. */\n readonly chevronCollapse: G9Icon;\n /** Drill-down affordance on nav cards and cascade panel rows. Default `chevronRight`. */\n readonly chevronForward: G9Icon;\n /** Back affordance on cascade panels and full-screen sheet headers. Default `chevronLeft`. */\n readonly chevronBack: G9Icon;\n /** \"Go back\" on a sheet or page header: a shafted arrow, not a chevron. Pick `arrowForward` under RTL. */\n readonly arrowBack: G9Icon;\n /** The RTL counterpart of `arrowBack`. Default `arrowForward`. */\n readonly arrowForward: G9Icon;\n /** The clear button inside a text entry, and sheet / popup close buttons. Default `close`. */\n readonly clear: G9Icon;\n /** Search entry, and the selection sheet's filter box. Default `search`. */\n readonly search: G9Icon;\n /** Resting call-to-action on a scanner-aware entry; separate from `search` on purpose. Default `scanCode`. */\n readonly scanCode: G9Icon;\n /** The language / locale switcher (the intro carousel's header button). Default `language`. */\n readonly language: G9Icon;\n /** \"No connection\": the offline notice, distinct from `info`. Default `cloudOff`. */\n readonly cloudOff: G9Icon;\n /** \"Jump to today\" in the date picker sheet. Its own slot (default `calendar`) so a richer font can differ. */\n readonly calendarToday: G9Icon;\n /** A date range (the time-span picker). Default `calendar`. */\n readonly dateRange: G9Icon;\n /** Password reveal toggle, showing state. Default `eye`. */\n readonly eyeOpen: G9Icon;\n /** Password reveal toggle, hidden state. Default `eyeOff`. */\n readonly eyeClosed: G9Icon;\n /** Selection tick in pickers, combo boxes and chip groups. Default `check`. */\n readonly check: G9Icon;\n /** The date half of a date/time picker. Default `calendar`. */\n readonly calendar: G9Icon;\n /** The time half of a date/time picker, and duration pickers. Default `clock`. */\n readonly clock: G9Icon;\n /** Voice input, idle. Default `mic`. */\n readonly mic: G9Icon;\n /** Voice input, unavailable or permission denied. Default `micOff`. */\n readonly micOff: G9Icon;\n /** The tab bar's centre action button. Default `plus`. */\n readonly plus: G9Icon;\n /** Accent glyph of the Information popup / toast type; keep the four accents distinct. Default `info`. */\n readonly info: G9Icon;\n /** Accent glyph of the Success popup / toast type. Default `checkCircle`. */\n readonly success: G9Icon;\n /** Accent glyph of the Warning popup / toast type. Default `warning`. */\n readonly warning: G9Icon;\n /** Accent glyph of the Error popup / toast type. Default `errorCircle`. */\n readonly error: G9Icon;\n /** Retry action on failure surfaces. Default `refresh`. */\n readonly refresh: G9Icon;\n /** Destructive swipe action. Default `delete`. */\n readonly delete: G9Icon;\n}\n\n/** A slot name of `G9GlyphSlots`. */\nexport type G9GlyphSlot = keyof G9GlyphSlots;\n\n/** The built-in defaults of every slot, in MAUI declaration order (MAUI `G9Glyphs` initialisers and `Reset()`). */\nexport const g9DefaultGlyphSlots: G9GlyphSlots = Object.freeze({\n chevron: glyphIcon('chevronDown'),\n chevronCollapse: glyphIcon('chevronUp'),\n chevronForward: glyphIcon('chevronRight'),\n chevronBack: glyphIcon('chevronLeft'),\n arrowBack: glyphIcon('arrowBack'),\n arrowForward: glyphIcon('arrowForward'),\n clear: glyphIcon('close'),\n search: glyphIcon('search'),\n scanCode: glyphIcon('scanCode'),\n language: glyphIcon('language'),\n cloudOff: glyphIcon('cloudOff'),\n calendarToday: glyphIcon('calendar'),\n dateRange: glyphIcon('calendar'),\n eyeOpen: glyphIcon('eye'),\n eyeClosed: glyphIcon('eyeOff'),\n check: glyphIcon('check'),\n calendar: glyphIcon('calendar'),\n clock: glyphIcon('clock'),\n mic: glyphIcon('mic'),\n micOff: glyphIcon('micOff'),\n plus: glyphIcon('plus'),\n info: glyphIcon('info'),\n success: glyphIcon('checkCircle'),\n warning: glyphIcon('warning'),\n error: glyphIcon('errorCircle'),\n refresh: glyphIcon('refresh'),\n delete: glyphIcon('delete'),\n});\n\n/** Every slot name, in MAUI declaration order. */\nexport const g9GlyphSlotNames: readonly G9GlyphSlot[] = Object.freeze(\n Object.keys(g9DefaultGlyphSlots) as G9GlyphSlot[],\n);\n\n/** Per-slot replacements; an omitted or `undefined` slot keeps its default. */\nexport type G9GlyphSlotOverrides = { readonly [K in G9GlyphSlot]?: G9Icon | undefined };\n\n/**\n * Returns a frozen slot set: the defaults with `overrides` applied (MAUI: assigning `G9Glyphs.X`; no overrides is MAUI\n * `G9Glyphs.Reset()`). An unknown slot name or a malformed icon throws a `G9Error` rather than being ignored. An\n * override may be an empty icon (`{ glyph: 'none' }`), as MAUI allowed `G9IconSource.Empty`.\n */\nexport function resolveGlyphSlots(overrides?: G9GlyphSlotOverrides | null): G9GlyphSlots {\n if (overrides === undefined || overrides === null) return g9DefaultGlyphSlots;\n const out: Record<string, G9Icon> = { ...g9DefaultGlyphSlots };\n for (const key of Object.keys(overrides)) {\n if (!(key in g9DefaultGlyphSlots)) {\n throw new G9Error(\n 'icon-slot',\n `'${key}' is not a G9Glyphs slot (expected one of ${g9GlyphSlotNames.join(', ')}).`,\n );\n }\n const icon = overrides[key as G9GlyphSlot];\n if (icon === undefined) continue;\n assertG9Icon(icon);\n out[key] = icon;\n }\n return Object.freeze(out) as unknown as G9GlyphSlots;\n}\n"],"names":["g9DefaultGlyphSlots","Object","glyphIcon","g9GlyphSlotNames","resolveGlyphSlots","overrides","out","key","G9Error","icon","undefined","assertG9Icon"],"mappings":";;AAqEO,MAAMA,sBAAoCC,OAAO,MAAM,CAAC;IAC7D,SAASC,UAAU;IACnB,iBAAiBA,UAAU;IAC3B,gBAAgBA,UAAU;IAC1B,aAAaA,UAAU;IACvB,WAAWA,UAAU;IACrB,cAAcA,UAAU;IACxB,OAAOA,UAAU;IACjB,QAAQA,UAAU;IAClB,UAAUA,UAAU;IACpB,UAAUA,UAAU;IACpB,UAAUA,UAAU;IACpB,eAAeA,UAAU;IACzB,WAAWA,UAAU;IACrB,SAASA,UAAU;IACnB,WAAWA,UAAU;IACrB,OAAOA,UAAU;IACjB,UAAUA,UAAU;IACpB,OAAOA,UAAU;IACjB,KAAKA,UAAU;IACf,QAAQA,UAAU;IAClB,MAAMA,UAAU;IAChB,MAAMA,UAAU;IAChB,SAASA,UAAU;IACnB,SAASA,UAAU;IACnB,OAAOA,UAAU;IACjB,SAASA,UAAU;IACnB,QAAQA,UAAU;AACpB;AAGO,MAAMC,mBAA2CF,OAAO,MAAM,CACnEA,OAAO,IAAI,CAACD;AAWP,SAASI,kBAAkBC,SAAuC;IACvE,IAAIA,QAAAA,WAA+C,OAAOL;IAC1D,MAAMM,MAA8B;QAAE,GAAGN,mBAAmB;IAAC;IAC7D,KAAK,MAAMO,OAAON,OAAO,IAAI,CAACI,WAAY;QACxC,IAAI,CAAEE,CAAAA,OAAOP,mBAAkB,GAC7B,MAAM,IAAIQ,QACR,aACA,CAAC,CAAC,EAAED,IAAI,0CAA0C,EAAEJ,iBAAiB,IAAI,CAAC,MAAM,EAAE,CAAC;QAGvF,MAAMM,OAAOJ,SAAS,CAACE,IAAmB;QAC1C,IAAIE,AAASC,WAATD;YACJE,aAAaF;YACbH,GAAG,CAACC,IAAI,GAAGE;;IACb;IACA,OAAOR,OAAO,MAAM,CAACK;AACvB"}