@g9tm/lynxcontrols-foundation 1.7.2 → 2.1.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.
Files changed (112) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/culture/bidi.d.ts +8 -0
  3. package/dist/culture/bidi.d.ts.map +1 -0
  4. package/dist/culture/bidi.js +16 -0
  5. package/dist/culture/bidi.js.map +1 -0
  6. package/dist/culture/coordinates.d.ts +17 -0
  7. package/dist/culture/coordinates.d.ts.map +1 -0
  8. package/dist/culture/coordinates.js +18 -0
  9. package/dist/culture/coordinates.js.map +1 -0
  10. package/dist/culture/index.d.ts +4 -0
  11. package/dist/culture/index.d.ts.map +1 -1
  12. package/dist/culture/index.js +4 -0
  13. package/dist/culture/natural-date.d.ts +9 -0
  14. package/dist/culture/natural-date.d.ts.map +1 -0
  15. package/dist/culture/natural-date.js +208 -0
  16. package/dist/culture/natural-date.js.map +1 -0
  17. package/dist/culture/text.d.ts +73 -0
  18. package/dist/culture/text.d.ts.map +1 -0
  19. package/dist/culture/text.js +213 -0
  20. package/dist/culture/text.js.map +1 -0
  21. package/dist/enums/index.d.ts +6 -0
  22. package/dist/enums/index.d.ts.map +1 -1
  23. package/dist/enums/index.js +4 -1
  24. package/dist/enums/index.js.map +1 -1
  25. package/dist/icons/index.d.ts +2 -1
  26. package/dist/icons/index.d.ts.map +1 -1
  27. package/dist/icons/index.js +2 -1
  28. package/dist/icons/packs.d.ts +34 -0
  29. package/dist/icons/packs.d.ts.map +1 -0
  30. package/dist/icons/packs.js +70 -0
  31. package/dist/icons/packs.js.map +1 -0
  32. package/dist/icons/svg.d.ts +9 -2
  33. package/dist/icons/svg.d.ts.map +1 -1
  34. package/dist/icons/svg.js +13 -2
  35. package/dist/icons/svg.js.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +1 -0
  39. package/dist/layout/index.d.ts +43 -0
  40. package/dist/layout/index.d.ts.map +1 -0
  41. package/dist/layout/index.js +31 -0
  42. package/dist/layout/index.js.map +1 -0
  43. package/dist/services/contracts.d.ts +32 -0
  44. package/dist/services/contracts.d.ts.map +1 -1
  45. package/dist/services/contracts.js.map +1 -1
  46. package/dist/services/feedback.d.ts +28 -0
  47. package/dist/services/feedback.d.ts.map +1 -0
  48. package/dist/services/feedback.js +27 -0
  49. package/dist/services/feedback.js.map +1 -0
  50. package/dist/services/index.d.ts +3 -1
  51. package/dist/services/index.d.ts.map +1 -1
  52. package/dist/services/index.js +2 -0
  53. package/dist/services/keys.d.ts +39 -0
  54. package/dist/services/keys.d.ts.map +1 -0
  55. package/dist/services/keys.js +96 -0
  56. package/dist/services/keys.js.map +1 -0
  57. package/dist/theme/aliases.d.ts +73 -0
  58. package/dist/theme/aliases.d.ts.map +1 -0
  59. package/dist/theme/aliases.js +76 -0
  60. package/dist/theme/aliases.js.map +1 -0
  61. package/dist/theme/appearance.d.ts +57 -0
  62. package/dist/theme/appearance.d.ts.map +1 -0
  63. package/dist/theme/appearance.js +275 -0
  64. package/dist/theme/appearance.js.map +1 -0
  65. package/dist/theme/brand.d.ts +40 -0
  66. package/dist/theme/brand.d.ts.map +1 -0
  67. package/dist/theme/brand.js +181 -0
  68. package/dist/theme/brand.js.map +1 -0
  69. package/dist/theme/contrast.d.ts +19 -0
  70. package/dist/theme/contrast.d.ts.map +1 -0
  71. package/dist/theme/contrast.js +119 -0
  72. package/dist/theme/contrast.js.map +1 -0
  73. package/dist/theme/css-color.d.ts +20 -0
  74. package/dist/theme/css-color.d.ts.map +1 -0
  75. package/dist/theme/css-color.js +149 -0
  76. package/dist/theme/css-color.js.map +1 -0
  77. package/dist/theme/design.d.ts +33 -0
  78. package/dist/theme/design.d.ts.map +1 -0
  79. package/dist/theme/design.js +162 -0
  80. package/dist/theme/design.js.map +1 -0
  81. package/dist/theme/index.d.ts +10 -2
  82. package/dist/theme/index.d.ts.map +1 -1
  83. package/dist/theme/index.js +10 -2
  84. package/dist/theme/oklch.d.ts +63 -0
  85. package/dist/theme/oklch.d.ts.map +1 -0
  86. package/dist/theme/oklch.js +258 -0
  87. package/dist/theme/oklch.js.map +1 -0
  88. package/dist/theme/recipe.d.ts +44 -0
  89. package/dist/theme/recipe.d.ts.map +1 -0
  90. package/dist/theme/recipe.js +156 -0
  91. package/dist/theme/recipe.js.map +1 -0
  92. package/dist/theme/theme.d.ts +43 -2
  93. package/dist/theme/theme.d.ts.map +1 -1
  94. package/dist/theme/theme.js +85 -9
  95. package/dist/theme/theme.js.map +1 -1
  96. package/dist/theme/variants.d.ts +10 -0
  97. package/dist/theme/variants.d.ts.map +1 -1
  98. package/dist/theme/variants.js +74 -1
  99. package/dist/theme/variants.js.map +1 -1
  100. package/dist/tokens/derived.d.ts +31 -0
  101. package/dist/tokens/derived.d.ts.map +1 -0
  102. package/dist/tokens/derived.js +42 -0
  103. package/dist/tokens/derived.js.map +1 -0
  104. package/dist/tokens/index.d.ts +2 -0
  105. package/dist/tokens/index.d.ts.map +1 -1
  106. package/dist/tokens/index.js +2 -0
  107. package/dist/tokens/shape.d.ts +46 -0
  108. package/dist/tokens/shape.d.ts.map +1 -0
  109. package/dist/tokens/shape.js +95 -0
  110. package/dist/tokens/shape.js.map +1 -0
  111. package/docs/api.md +135 -2
  112. package/package.json +6 -1
@@ -0,0 +1,73 @@
1
+ import { type G9NumberingSystem } from './digits.js';
2
+ /** Unifies how Persian is written: Arabic letter forms → Persian, digits → ASCII, marks removed, spaces collapsed. */
3
+ export declare function normalizeText(input: string | null | undefined): string;
4
+ /** A key to compare for search: {@link normalizeText}, lower-cased, ZWNJ-split words joined (`می‌روم` = `میروم`). */
5
+ export declare function searchKey(input: string | null | undefined): string;
6
+ /** True when every word of `query` appears in `text` (any order, any spelling variant `normalizeText` unifies). */
7
+ export declare function matchesSearch(text: string | null | undefined, query: string | null | undefined): boolean;
8
+ /** The result of {@link groupWhileTyping}. */
9
+ export interface G9TypedNumber {
10
+ /** The text to show (grouped, in the requested digits). */
11
+ readonly text: string;
12
+ /** Where the caret goes in `text`. */
13
+ readonly caret: number;
14
+ /** The value, or null when the text is empty or only a sign. */
15
+ readonly value: number | null;
16
+ }
17
+ /**
18
+ * Regroups a number while it is typed and keeps the caret after the same digit (SAC `groupTyped`): typing `1234567`
19
+ * shows `1,234,567` (or `۱٬۲۳۴٬۵۶۷`), and the caret does not jump to the end when a digit is inserted in the middle.
20
+ * Accepts any digits and separators the person types; `decimals` 0 refuses a decimal point.
21
+ */
22
+ export declare function groupWhileTyping(raw: string, caret?: number, options?: {
23
+ readonly numberingSystem?: G9NumberingSystem;
24
+ readonly decimals?: number;
25
+ readonly allowNegative?: boolean;
26
+ }): G9TypedNumber;
27
+ /**
28
+ * A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or
29
+ * `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole.
30
+ */
31
+ export declare function formatCompact(value: number, options?: {
32
+ readonly language?: string;
33
+ readonly numberingSystem?: G9NumberingSystem;
34
+ readonly unit?: string;
35
+ }): string;
36
+ /**
37
+ * A weighed quantity (ShopManager `QtyText` / `kg`): kilograms to one decimal, dropped when whole, grouped, in the
38
+ * culture's digits — `2.5` → `۲٫۵ کیلوگرم` (fa, long) / `۲٫۵ کیلو` (fa, short) / `2.5 kg` (en). Under a kilogram,
39
+ * `grams: true` writes grams instead (`0.35` → `۳۵۰ گرم` / `350 g`).
40
+ */
41
+ export declare function formatWeight(kilograms: number, options?: {
42
+ readonly language?: string;
43
+ readonly numberingSystem?: G9NumberingSystem;
44
+ readonly short?: boolean;
45
+ readonly grams?: boolean;
46
+ readonly decimals?: number;
47
+ }): string;
48
+ /** Standard base64 of bytes (PrimJS has neither `btoa` nor `Buffer`): data URIs of generated images. */
49
+ export declare function bytesToBase64(bytes: Uint8Array): string;
50
+ /** Left-to-right isolate (FSI…PDI would guess; LRI forces): keeps `+12.5%` and phone numbers whole inside RTL text. */
51
+ export declare const isolateLtr: (text: string) => string;
52
+ /** Right-to-left isolate. */
53
+ export declare const isolateRtl: (text: string) => string;
54
+ /** First-strong isolate: the direction of the text's first letter. */
55
+ export declare const isolate: (text: string) => string;
56
+ /**
57
+ * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end
58
+ * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.
59
+ */
60
+ export declare function formatSignedPercent(value: number, options?: {
61
+ readonly decimals?: number;
62
+ readonly numberingSystem?: G9NumberingSystem;
63
+ readonly fromFraction?: boolean;
64
+ }): string;
65
+ /**
66
+ * A phone number in E.164 (`+989121234567`), or null. Accepts any digits, spaces, dashes, a leading 0, 00 or +, and the
67
+ * national form; `country` gives the calling code for national numbers (default Iran, 98).
68
+ */
69
+ export declare function normalizePhone(input: string | null | undefined, country?: {
70
+ readonly code: string;
71
+ readonly nationalLength: number;
72
+ }): string | null;
73
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/culture/text.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAoC,MAAM,UAAU,CAAC;AAepF,sHAAsH;AACtH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAItE;AAED,qHAAqH;AACrH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAElE;AAED,mHAAmH;AACnH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAKxG;AAED,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM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,MAAM,KAAG,MAAqB,CAAC;AAChE,sEAAsE;AACtE,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,KAAG,MAAqB,CAAC;AAE7D;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IACP,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,iBAAiB,CAAC;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC5B,GACL,MAAM,CAYR;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAAuC,GACvG,MAAM,GAAG,IAAI,CAUf"}
@@ -0,0 +1,213 @@
1
+ import { normalizeToAscii, toNativeDigits } from "./digits.js";
2
+ import { formatNumber, getNumberSymbols } from "./numbers.js";
3
+ const LETTERS = [
4
+ [
5
+ /[يى]/g,
6
+ 'ی'
7
+ ],
8
+ [
9
+ /ك/g,
10
+ 'ک'
11
+ ],
12
+ [
13
+ /ۀ/g,
14
+ 'ه'
15
+ ],
16
+ [
17
+ /ة/g,
18
+ 'ه'
19
+ ],
20
+ [
21
+ /[أإٱآ]/g,
22
+ 'ا'
23
+ ],
24
+ [
25
+ /ؤ/g,
26
+ 'و'
27
+ ]
28
+ ];
29
+ const MARKS = /[ً-ٰٟـ‌-‏‪-‮⁦-⁩]/g;
30
+ function normalizeText(input) {
31
+ let s = normalizeToAscii(null != input ? input : '');
32
+ for (const [re, to] of LETTERS)s = s.replace(re, to);
33
+ return s.replace(MARKS, '').replace(/\s+/g, ' ').trim();
34
+ }
35
+ function searchKey(input) {
36
+ return normalizeText(input).toLowerCase();
37
+ }
38
+ function matchesSearch(text, query) {
39
+ const words = searchKey(query).split(' ').filter(Boolean);
40
+ if (0 === words.length) return true;
41
+ const hay = searchKey(text);
42
+ return words.every((w)=>hay.includes(w));
43
+ }
44
+ function groupWhileTyping(raw, caret = raw.length, options = {}) {
45
+ var _options_numberingSystem, _options_decimals;
46
+ const system = null != (_options_numberingSystem = options.numberingSystem) ? _options_numberingSystem : 'latin';
47
+ const sym = getNumberSymbols(system);
48
+ const decimals = null != (_options_decimals = options.decimals) ? _options_decimals : 0;
49
+ const ascii = normalizeToAscii(raw);
50
+ const isDecimal = (ch)=>'.' === ch || '٫' === ch || '/' === ch || ',' === ch && false;
51
+ let before = 0;
52
+ let digits = '';
53
+ let point = false;
54
+ let negative = false;
55
+ for(let i = 0; i < ascii.length; i++){
56
+ const ch = ascii[i];
57
+ let kept = false;
58
+ if (ch >= '0' && ch <= '9') {
59
+ digits += ch;
60
+ kept = true;
61
+ } else if (isDecimal(ch) && decimals > 0 && !point) {
62
+ digits += '.';
63
+ point = true;
64
+ kept = true;
65
+ } else if (('-' === ch || '−' === ch) && options.allowNegative && 0 === digits.length && !negative) {
66
+ negative = true;
67
+ kept = true;
68
+ }
69
+ if (kept && i < caret) before++;
70
+ }
71
+ let [int = '', frac] = digits.split('.');
72
+ int = int.replace(/^0+(?=\d)/, '');
73
+ if (void 0 !== frac) frac = frac.slice(0, decimals);
74
+ const grouped = int.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
75
+ const asciiText = `${negative ? '-' : ''}${grouped}${point ? `.${null != frac ? frac : ''}` : ''}`;
76
+ let pos = 0;
77
+ let seen = 0;
78
+ while(pos < asciiText.length && seen < before){
79
+ if (',' !== asciiText[pos]) seen++;
80
+ pos++;
81
+ }
82
+ const value = '' !== int || frac ? Number(`${negative ? '-' : ''}${int || '0'}${frac ? `.${frac}` : ''}`) : null;
83
+ const text = 'latin' === system ? asciiText : toNativeDigits(asciiText.replace(/,/g, sym.group).replace('.', sym.decimal).replace('-', sym.minus), system);
84
+ const extra = negative && 'latin' !== system ? sym.minus.length - 1 : 0;
85
+ return {
86
+ text,
87
+ caret: pos + (pos > 0 ? extra : 0),
88
+ value: Number.isFinite(value) ? value : null
89
+ };
90
+ }
91
+ const FA_UNITS = [
92
+ [
93
+ 1e12,
94
+ 'هزار میلیارد'
95
+ ],
96
+ [
97
+ 1e9,
98
+ 'میلیارد'
99
+ ],
100
+ [
101
+ 1e6,
102
+ 'میلیون'
103
+ ],
104
+ [
105
+ 1e3,
106
+ 'هزار'
107
+ ]
108
+ ];
109
+ const EN_UNITS = [
110
+ [
111
+ 1e12,
112
+ 'T'
113
+ ],
114
+ [
115
+ 1e9,
116
+ 'B'
117
+ ],
118
+ [
119
+ 1e6,
120
+ 'M'
121
+ ],
122
+ [
123
+ 1e3,
124
+ 'K'
125
+ ]
126
+ ];
127
+ function formatCompact(value, options = {}) {
128
+ var _options_language, _options_numberingSystem;
129
+ const fa = (null != (_options_language = options.language) ? _options_language : 'en').startsWith('fa');
130
+ const system = null != (_options_numberingSystem = options.numberingSystem) ? _options_numberingSystem : fa ? 'persian' : 'latin';
131
+ const abs = Math.abs(value);
132
+ const units = fa ? FA_UNITS : EN_UNITS;
133
+ const hit = units.find(([n])=>abs >= n);
134
+ const n = hit ? value / hit[0] : value;
135
+ const body = formatNumber(n, {
136
+ numberingSystem: system,
137
+ maximumFractionDigits: hit ? 1 : 0,
138
+ useGrouping: true
139
+ });
140
+ const unit = hit ? fa ? ` ${hit[1]}` : hit[1] : '';
141
+ return `${body}${unit}${options.unit ? ` ${options.unit}` : ''}`;
142
+ }
143
+ function formatWeight(kilograms, options = {}) {
144
+ var _options_language, _options_numberingSystem, _options_decimals;
145
+ const fa = (null != (_options_language = options.language) ? _options_language : 'en').startsWith('fa');
146
+ const system = null != (_options_numberingSystem = options.numberingSystem) ? _options_numberingSystem : fa ? 'persian' : 'latin';
147
+ if (options.grams && Math.abs(kilograms) < 1 && 0 !== kilograms) {
148
+ const g = formatNumber(Math.round(1000 * kilograms), {
149
+ numberingSystem: system,
150
+ maximumFractionDigits: 0
151
+ });
152
+ return fa ? `${g} گرم` : `${g} g`;
153
+ }
154
+ const body = formatNumber(kilograms, {
155
+ numberingSystem: system,
156
+ maximumFractionDigits: null != (_options_decimals = options.decimals) ? _options_decimals : 1
157
+ });
158
+ return fa ? `${body} ${options.short ? 'کیلو' : 'کیلوگرم'}` : `${body} kg`;
159
+ }
160
+ const B64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
161
+ function bytesToBase64(bytes) {
162
+ const parts = [];
163
+ let line = '';
164
+ for(let i = 0; i < bytes.length; i += 3){
165
+ const a = bytes[i];
166
+ const b = i + 1 < bytes.length ? bytes[i + 1] : 0;
167
+ const c = i + 2 < bytes.length ? bytes[i + 2] : 0;
168
+ const n = a << 16 | b << 8 | c;
169
+ line += B64.charAt(n >> 18 & 63) + B64.charAt(n >> 12 & 63);
170
+ line += i + 1 < bytes.length ? B64.charAt(n >> 6 & 63) : '=';
171
+ line += i + 2 < bytes.length ? B64.charAt(63 & n) : '=';
172
+ if (line.length >= 4096) {
173
+ parts.push(line);
174
+ line = '';
175
+ }
176
+ }
177
+ parts.push(line);
178
+ return parts.join('');
179
+ }
180
+ const isolateLtr = (text)=>`⁦${text}⁩`;
181
+ const isolateRtl = (text)=>`⁧${text}⁩`;
182
+ const isolate = (text)=>`⁨${text}⁩`;
183
+ function formatSignedPercent(value, options = {}) {
184
+ var _options_decimals, _options_numberingSystem;
185
+ const v = false === options.fromFraction ? value : 100 * value;
186
+ const decimals = null != (_options_decimals = options.decimals) ? _options_decimals : 1;
187
+ const rounded = Number(v.toFixed(decimals));
188
+ const sign = rounded > 0 ? '+' : rounded < 0 ? '−' : '';
189
+ const body = formatNumber(Math.abs(rounded), {
190
+ numberingSystem: null != (_options_numberingSystem = options.numberingSystem) ? _options_numberingSystem : 'latin',
191
+ maximumFractionDigits: decimals,
192
+ useGrouping: true
193
+ });
194
+ const percent = options.numberingSystem && 'latin' !== options.numberingSystem ? '٪' : '%';
195
+ return isolateLtr(`${sign}${body}${percent}`);
196
+ }
197
+ function normalizePhone(input, country = {
198
+ code: '98',
199
+ nationalLength: 10
200
+ }) {
201
+ const ascii = normalizeToAscii(null != input ? input : '').replace(/[\s\-().]/g, '');
202
+ if (!/^\+?\d+$/.test(ascii)) return null;
203
+ let digits = ascii.startsWith('+') ? ascii.slice(1) : ascii.startsWith('00') ? ascii.slice(2) : ascii;
204
+ if (!ascii.startsWith('+') && !ascii.startsWith('00')) {
205
+ if (digits.startsWith('0')) digits = digits.slice(1);
206
+ if (digits.length === country.nationalLength) digits = country.code + digits;
207
+ }
208
+ if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;
209
+ return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;
210
+ }
211
+ export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey };
212
+
213
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"culture/text.js","sources":["../../src/culture/text.ts"],"sourcesContent":["// Text helpers every app re-wrote (SAC core/text.ts, Riskara core/text.ts, ShopManager core/text.ts, G9Hub intl): search\n// keys that match Persian however it was typed, numbers grouped while the person types (caret kept), compact money,\n// signed percentages that survive right-to-left text, bidi isolation and phone numbers.\nimport { type G9NumberingSystem, normalizeToAscii, toNativeDigits } from './digits';\nimport { formatNumber, getNumberSymbols } from './numbers';\n\n/** Arabic letter forms typed on Arabic keyboards → the Persian forms (ي ك ى ة ۀ), plus Arabic-Indic digits → Persian. */\nconst LETTERS: ReadonlyArray<readonly [RegExp, string]> = [\n [/[يى]/g, 'ی'],\n [/ك/g, 'ک'],\n [/ۀ/g, 'ه'],\n [/ة/g, 'ه'],\n [/[أإٱآ]/g, 'ا'],\n [/ؤ/g, 'و'],\n];\n// Harakat, tatweel, and the ZWNJ / bidi marks that make identical-looking words differ.\nconst MARKS = /[ً-ٰٟـ‌-‏‪-‮⁦-⁩]/g;\n\n/** Unifies how Persian is written: Arabic letter forms → Persian, digits → ASCII, marks removed, spaces collapsed. */\nexport function normalizeText(input: string | null | undefined): string {\n let s = normalizeToAscii(input ?? '');\n for (const [re, to] of LETTERS) s = s.replace(re, to);\n return s.replace(MARKS, '').replace(/\\s+/g, ' ').trim();\n}\n\n/** A key to compare for search: {@link normalizeText}, lower-cased, ZWNJ-split words joined (`می‌روم` = `میروم`). */\nexport function searchKey(input: string | null | undefined): string {\n return normalizeText(input).toLowerCase();\n}\n\n/** True when every word of `query` appears in `text` (any order, any spelling variant `normalizeText` unifies). */\nexport function matchesSearch(text: string | null | undefined, query: string | null | undefined): boolean {\n const words = searchKey(query).split(' ').filter(Boolean);\n if (words.length === 0) return true;\n const hay = searchKey(text);\n return words.every((w) => hay.includes(w));\n}\n\n/** The result of {@link groupWhileTyping}. */\nexport interface G9TypedNumber {\n /** The text to show (grouped, in the requested digits). */\n readonly text: string;\n /** Where the caret goes in `text`. */\n readonly caret: number;\n /** The value, or null when the text is empty or only a sign. */\n readonly value: number | null;\n}\n\n/**\n * Regroups a number while it is typed and keeps the caret after the same digit (SAC `groupTyped`): typing `1234567`\n * shows `1,234,567` (or `۱٬۲۳۴٬۵۶۷`), and the caret does not jump to the end when a digit is inserted in the middle.\n * Accepts any digits and separators the person types; `decimals` 0 refuses a decimal point.\n */\nexport function groupWhileTyping(\n raw: string,\n caret: number = raw.length,\n options: {\n readonly numberingSystem?: G9NumberingSystem;\n readonly decimals?: number;\n readonly allowNegative?: boolean;\n } = {},\n): G9TypedNumber {\n const system = options.numberingSystem ?? 'latin';\n const sym = getNumberSymbols(system);\n const decimals = options.decimals ?? 0;\n // how many significant characters (digits, the decimal point, a minus) stand before the caret\n const ascii = normalizeToAscii(raw);\n const isDecimal = (ch: string) => ch === '.' || ch === '٫' || ch === '/' || (ch === ',' && false);\n let before = 0;\n let digits = '';\n let point = false;\n let negative = false;\n for (let i = 0; i < ascii.length; i++) {\n const ch = ascii[i] as string;\n let kept = false;\n if (ch >= '0' && ch <= '9') {\n digits += ch;\n kept = true;\n } else if (isDecimal(ch) && decimals > 0 && !point) {\n digits += '.';\n point = true;\n kept = true;\n } else if ((ch === '-' || ch === '−') && options.allowNegative && digits.length === 0 && !negative) {\n negative = true;\n kept = true;\n }\n if (kept && i < caret) before++;\n }\n let [int = '', frac] = digits.split('.');\n int = int.replace(/^0+(?=\\d)/, '');\n if (frac !== undefined) frac = frac.slice(0, decimals);\n const grouped = int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n const asciiText = `${negative ? '-' : ''}${grouped}${point ? `.${frac ?? ''}` : ''}`;\n // place the caret after the same number of significant characters\n let pos = 0;\n let seen = 0;\n while (pos < asciiText.length && seen < before) {\n if (asciiText[pos] !== ',') seen++;\n pos++;\n }\n const value = int === '' && !frac ? null : Number(`${negative ? '-' : ''}${int || '0'}${frac ? `.${frac}` : ''}`);\n const text =\n system === 'latin'\n ? asciiText\n : toNativeDigits(asciiText.replace(/,/g, sym.group).replace('.', sym.decimal).replace('-', sym.minus), system);\n // the native minus may be two characters (a bidi mark + the sign): shift the caret by the extra length\n const extra = negative && system !== 'latin' ? sym.minus.length - 1 : 0;\n return { text, caret: pos + (pos > 0 ? extra : 0), value: Number.isFinite(value as number) ? value : null };\n}\n\nconst FA_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'هزار میلیارد'],\n [1e9, 'میلیارد'],\n [1e6, 'میلیون'],\n [1e3, 'هزار'],\n];\nconst EN_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'T'],\n [1e9, 'B'],\n [1e6, 'M'],\n [1e3, 'K'],\n];\n\n/**\n * A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or\n * `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole.\n */\nexport function formatCompact(\n value: number,\n options: { readonly language?: string; readonly numberingSystem?: G9NumberingSystem; readonly unit?: string } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n const abs = Math.abs(value);\n const units = fa ? FA_UNITS : EN_UNITS;\n const hit = units.find(([n]) => abs >= n);\n const n = hit ? value / hit[0] : value;\n const body = formatNumber(n, { numberingSystem: system, maximumFractionDigits: hit ? 1 : 0, useGrouping: true });\n const unit = hit ? (fa ? ` ${hit[1]}` : hit[1]) : '';\n return `${body}${unit}${options.unit ? ` ${options.unit}` : ''}`;\n}\n\n/**\n * A weighed quantity (ShopManager `QtyText` / `kg`): kilograms to one decimal, dropped when whole, grouped, in the\n * culture's digits — `2.5` → `۲٫۵ کیلوگرم` (fa, long) / `۲٫۵ کیلو` (fa, short) / `2.5 kg` (en). Under a kilogram,\n * `grams: true` writes grams instead (`0.35` → `۳۵۰ گرم` / `350 g`).\n */\nexport function formatWeight(\n kilograms: number,\n options: {\n readonly language?: string;\n readonly numberingSystem?: G9NumberingSystem;\n readonly short?: boolean;\n readonly grams?: boolean;\n readonly decimals?: number;\n } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n if (options.grams && Math.abs(kilograms) < 1 && kilograms !== 0) {\n const g = formatNumber(Math.round(kilograms * 1000), { numberingSystem: system, maximumFractionDigits: 0 });\n return fa ? `${g} گرم` : `${g} g`;\n }\n const body = formatNumber(kilograms, { numberingSystem: system, maximumFractionDigits: options.decimals ?? 1 });\n return fa ? `${body} ${options.short ? 'کیلو' : 'کیلوگرم'}` : `${body} kg`;\n}\n\nconst B64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n/** Standard base64 of bytes (PrimJS has neither `btoa` nor `Buffer`): data URIs of generated images. */\nexport function bytesToBase64(bytes: Uint8Array): string {\n const parts: string[] = [];\n let line = '';\n for (let i = 0; i < bytes.length; i += 3) {\n const a = bytes[i] as number;\n const b = i + 1 < bytes.length ? (bytes[i + 1] as number) : 0;\n const c = i + 2 < bytes.length ? (bytes[i + 2] as number) : 0;\n const n = (a << 16) | (b << 8) | c;\n line += B64.charAt((n >> 18) & 63) + B64.charAt((n >> 12) & 63);\n line += i + 1 < bytes.length ? B64.charAt((n >> 6) & 63) : '=';\n line += i + 2 < bytes.length ? B64.charAt(n & 63) : '=';\n // join in pieces: one string grown by += for 40 KB is slow on an interpreter\n if (line.length >= 4096) {\n parts.push(line);\n line = '';\n }\n }\n parts.push(line);\n return parts.join('');\n}\n\n/** Left-to-right isolate (FSI…PDI would guess; LRI forces): keeps `+12.5%` and phone numbers whole inside RTL text. */\nexport const isolateLtr = (text: string): string => `⁦${text}⁩`;\n/** Right-to-left isolate. */\nexport const isolateRtl = (text: string): string => `⁧${text}⁩`;\n/** First-strong isolate: the direction of the text's first letter. */\nexport const isolate = (text: string): string => `⁨${text}⁩`;\n\n/**\n * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end\n * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.\n */\nexport function formatSignedPercent(\n value: number,\n options: {\n readonly decimals?: number;\n readonly numberingSystem?: G9NumberingSystem;\n readonly fromFraction?: boolean;\n } = {},\n): string {\n const v = options.fromFraction === false ? value : value * 100;\n const decimals = options.decimals ?? 1;\n const rounded = Number(v.toFixed(decimals));\n const sign = rounded > 0 ? '+' : rounded < 0 ? '−' : '';\n const body = formatNumber(Math.abs(rounded), {\n numberingSystem: options.numberingSystem ?? 'latin',\n maximumFractionDigits: decimals,\n useGrouping: true,\n });\n const percent = options.numberingSystem && options.numberingSystem !== 'latin' ? '٪' : '%';\n return isolateLtr(`${sign}${body}${percent}`);\n}\n\n/**\n * A phone number in E.164 (`+989121234567`), or null. Accepts any digits, spaces, dashes, a leading 0, 00 or +, and the\n * national form; `country` gives the calling code for national numbers (default Iran, 98).\n */\nexport function normalizePhone(\n input: string | null | undefined,\n country: { readonly code: string; readonly nationalLength: number } = { code: '98', nationalLength: 10 },\n): string | null {\n const ascii = normalizeToAscii(input ?? '').replace(/[\\s\\-().]/g, '');\n if (!/^\\+?\\d+$/.test(ascii)) return null;\n let digits = ascii.startsWith('+') ? ascii.slice(1) : ascii.startsWith('00') ? ascii.slice(2) : ascii;\n if (!ascii.startsWith('+') && !ascii.startsWith('00')) {\n if (digits.startsWith('0')) digits = digits.slice(1);\n if (digits.length === country.nationalLength) digits = country.code + digits;\n }\n if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;\n return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;\n}\n"],"names":["LETTERS","MARKS","normalizeText","input","s","normalizeToAscii","re","to","searchKey","matchesSearch","text","query","words","Boolean","hay","w","groupWhileTyping","raw","caret","options","_options_numberingSystem","_options_decimals","system","sym","getNumberSymbols","decimals","ascii","isDecimal","ch","before","digits","point","negative","i","kept","int","frac","undefined","grouped","asciiText","pos","seen","value","Number","toNativeDigits","extra","FA_UNITS","EN_UNITS","formatCompact","_options_language","fa","abs","Math","units","hit","n","body","formatNumber","unit","formatWeight","kilograms","g","B64","bytesToBase64","bytes","parts","line","a","b","c","isolateLtr","isolateRtl","isolate","formatSignedPercent","v","rounded","sign","percent","normalizePhone","country"],"mappings":";;AAOA,MAAMA,UAAoD;IACxD;QAAC;QAAS;KAAI;IACd;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAW;KAAI;IAChB;QAAC;QAAM;KAAI;CACZ;AAED,MAAMC,QAAQ;AAGP,SAASC,cAAcC,KAAgC;IAC5D,IAAIC,IAAIC,iBAAiBF,QAAAA,QAAAA,QAAS;IAClC,KAAK,MAAM,CAACG,IAAIC,GAAG,IAAIP,QAASI,IAAIA,EAAE,OAAO,CAACE,IAAIC;IAClD,OAAOH,EAAE,OAAO,CAACH,OAAO,IAAI,OAAO,CAAC,QAAQ,K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MAAM,UAAU,CAAC,OAAOA,MAAM,KAAK,CAAC,KAAKA,MAAM,UAAU,CAAC,QAAQA,MAAM,KAAK,CAAC,KAAKA;IAChG,IAAI,CAACA,MAAM,UAAU,CAAC,QAAQ,CAACA,MAAM,UAAU,CAAC,OAAO;QACrD,IAAII,OAAO,UAAU,CAAC,MAAMA,SAASA,OAAO,KAAK,CAAC;QAClD,IAAIA,OAAO,MAAM,KAAKiD,QAAQ,cAAc,EAAEjD,SAASiD,QAAQ,IAAI,GAAGjD;IACxE;IACA,IAAIA,OAAO,UAAU,CAACiD,QAAQ,IAAI,KAAKjD,OAAO,MAAM,KAAKiD,QAAQ,IAAI,CAAC,MAAM,GAAGA,QAAQ,cAAc,EAAE,OAAO;IAC9G,OAAOjD,OAAO,MAAM,IAAI,KAAKA,OAAO,MAAM,IAAI,KAAK,CAAC,CAAC,EAAEA,QAAQ,GAAG;AACpE"}
@@ -17,6 +17,12 @@ export declare const G9ButtonVariant: {
17
17
  readonly Surface: "surface";
18
18
  readonly Outline: "outline";
19
19
  readonly Text: "text";
20
+ /** Neutral text on no fill and no border (G9Hub/SAC `ghost`): the quietest action. */
21
+ readonly Ghost: "ghost";
22
+ /** The inverse surface (SAC `ink`): a dark button on a light page, a light one on a dark page. */
23
+ readonly Inverse: "inverse";
24
+ /** The tertiary (accent) role, solid (SAC `acc`). */
25
+ readonly Accent: "accent";
20
26
  };
21
27
  export type G9ButtonVariant = (typeof G9ButtonVariant)[keyof typeof G9ButtonVariant];
22
28
  /** Colour role of a progress indicator (MAUI `G9ProgressType`). */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,eAAO,MAAM,eAAe;;;;;;;;IAQ1B,+FAA+F;;IAE/F;;;OAGG;;;;;CAKK,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,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,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAExF;;;GAGG;AACH,eAAO,MAAM,WAAW;IACtB,qDAAqD;;IAErD,yCAAyC;;IAEzC,uFAAuF;;IAEvF,6DAA6D;;IAE7D,uFAAuF;;IAEvF,sFAAsF;;IAEtF,8FAA8F;;IAE9F,mFAAmF;;IAEnF,8BAA8B;;IAE9B,oCAAoC;;IAEpC,uCAAuC;;IAEvC,uEAAuE;;IAEvE,mEAAmE;;IAEnE,6EAA6E;;IAE7E,iGAAiG;;IAEjG,kEAAkE;;CAE1D,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
@@ -10,7 +10,10 @@ const G9ButtonVariant = {
10
10
  ErrorTonal: 'errorTonal',
11
11
  Surface: 'surface',
12
12
  Outline: 'outline',
13
- Text: 'text'
13
+ Text: 'text',
14
+ Ghost: 'ghost',
15
+ Inverse: 'inverse',
16
+ Accent: 'accent'
14
17
  };
15
18
  const G9ProgressType = {
16
19
  Primary: 'primary',
@@ -1 +1 @@
1
- {"version":3,"file":"enums/index.js","sources":["../../src/enums/index.ts"],"sourcesContent":["/** Colour role of a button-like control (MAUI `G9ButtonVariant`). Default for buttons: `'primary'`. */\nexport const G9ButtonVariant = {\n Primary: 'primary',\n Tonal: 'tonal',\n Default: 'default',\n Secondary: 'secondary',\n Info: 'info',\n Success: 'success',\n Warning: 'warning',\n /** Solid red fill, white glyph: the loud, committing destructive action (Delete, Truncate). */\n Error: 'error',\n /**\n * The soft destructive look: an `ErrorContainer` fill with the `Error` glyph on top, quiet enough to stay on screen\n * permanently.\n */\n ErrorTonal: 'errorTonal',\n Surface: 'surface',\n Outline: 'outline',\n Text: 'text',\n} as const;\nexport type G9ButtonVariant = (typeof G9ButtonVariant)[keyof typeof G9ButtonVariant];\n\n/** Colour role of a progress indicator (MAUI `G9ProgressType`). */\nexport const G9ProgressType = {\n Primary: 'primary',\n Success: 'success',\n Warning: 'warning',\n Error: 'error',\n} as const;\nexport type G9ProgressType = (typeof G9ProgressType)[keyof typeof G9ProgressType];\n\n/** Size step of a control (MAUI `G9ControlSize`). Default for controls: `'medium'`. */\nexport const G9ControlSize = {\n Small: 'small',\n Medium: 'medium',\n Large: 'large',\n Hero: 'hero',\n} as const;\nexport type G9ControlSize = (typeof G9ControlSize)[keyof typeof G9ControlSize];\n\n/** Writing direction of a field's entered value (MAUI `G9TextInputDirection`). `'matchParent'` follows the culture. */\nexport const G9TextInputDirection = {\n MatchParent: 'matchParent',\n LeftToRight: 'leftToRight',\n RightToLeft: 'rightToLeft',\n} as const;\nexport type G9TextInputDirection = (typeof G9TextInputDirection)[keyof typeof G9TextInputDirection];\n\n/**\n * How a filled field's value is highlighted (MAUI `G9FilledValueHighlight`): `'inherit'` takes the app-wide setting,\n * `'accent'` tints with the primary colour, `'neutral'` keeps the regular text colour.\n */\nexport const G9FilledValueHighlight = {\n Inherit: 'inherit',\n Accent: 'accent',\n Neutral: 'neutral',\n} as const;\nexport type G9FilledValueHighlight = (typeof G9FilledValueHighlight)[keyof typeof G9FilledValueHighlight];\n\n/** On-screen keyboard of a text field (MAUI `G9KeyboardType`). */\nexport const G9KeyboardType = {\n Default: 'default',\n Email: 'email',\n Phone: 'phone',\n Number: 'number',\n Url: 'url',\n Password: 'password',\n} as const;\nexport type G9KeyboardType = (typeof G9KeyboardType)[keyof typeof G9KeyboardType];\n\n/** What a date/time picker edits (MAUI `G9DateTimePickerMode`). */\nexport const G9DateTimePickerMode = {\n Date: 'date',\n Time: 'time',\n DateTime: 'dateTime',\n} as const;\nexport type G9DateTimePickerMode = (typeof G9DateTimePickerMode)[keyof typeof G9DateTimePickerMode];\n\n/** How a picked date/time is displayed (MAUI `G9DateTimeDisplayFormat`); `'custom'` uses the caller's pattern. */\nexport const G9DateTimeDisplayFormat = {\n ShortDate: 'shortDate',\n LongDate: 'longDate',\n TimeOnly: 'timeOnly',\n ShortDateTime: 'shortDateTime',\n LongDateTime: 'longDateTime',\n Custom: 'custom',\n} as const;\nexport type G9DateTimeDisplayFormat = (typeof G9DateTimeDisplayFormat)[keyof typeof G9DateTimeDisplayFormat];\n\n/** One thumb or two (MAUI `G9RangeSliderMode`). */\nexport const G9RangeSliderMode = {\n Single: 'single',\n Range: 'range',\n} as const;\nexport type G9RangeSliderMode = (typeof G9RangeSliderMode)[keyof typeof G9RangeSliderMode];\n\n/** Characters a PIN entry accepts (MAUI `G9PinEntryType`); `'password'` masks them. */\nexport const G9PinEntryType = {\n Number: 'number',\n Letters: 'letters',\n Alphanumeric: 'alphanumeric',\n Password: 'password',\n} as const;\nexport type G9PinEntryType = (typeof G9PinEntryType)[keyof typeof G9PinEntryType];\n\n/** Selection behaviour of a chip group (MAUI `G9ChipGroupSelectionMode`). */\nexport const G9ChipGroupSelectionMode = {\n MultiSelection: 'multiSelection',\n SingleSelection: 'singleSelection',\n} as const;\nexport type G9ChipGroupSelectionMode = (typeof G9ChipGroupSelectionMode)[keyof typeof G9ChipGroupSelectionMode];\n\n/**\n * Layout of a chip group (MAUI `G9ChipGroupLayoutMode`): wrapping rows, one horizontally scrolling line, or (1.4.9)\n * segmented — equal cells that share each row (`segmentColumns` per row), for short exclusive choices.\n */\nexport const G9ChipGroupLayoutMode = {\n Wrap: 'wrap',\n SingleLineScroll: 'singleLineScroll',\n Segmented: 'segmented',\n} as const;\nexport type G9ChipGroupLayoutMode = (typeof G9ChipGroupLayoutMode)[keyof typeof G9ChipGroupLayoutMode];\n\n/** Where a progress bar's label sits (MAUI `G9ProgressLabelPlacement`). */\nexport const G9ProgressLabelPlacement = {\n None: 'none',\n Above: 'above',\n End: 'end',\n} as const;\nexport type G9ProgressLabelPlacement = (typeof G9ProgressLabelPlacement)[keyof typeof G9ProgressLabelPlacement];\n\n/** Alignment of a separator's title (MAUI `G9SeparatorTitleAlignment`); `'auto'` follows the direction. */\nexport const G9SeparatorTitleAlignment = {\n Auto: 'auto',\n Start: 'start',\n Center: 'center',\n End: 'end',\n} as const;\nexport type G9SeparatorTitleAlignment = (typeof G9SeparatorTitleAlignment)[keyof typeof G9SeparatorTitleAlignment];\n\n/** Tab width behaviour (MAUI `G9TabMode`): equal fixed tabs or a scrolling strip. */\nexport const G9TabMode = {\n Fixed: 'fixed',\n Scrollable: 'scrollable',\n} as const;\nexport type G9TabMode = (typeof G9TabMode)[keyof typeof G9TabMode];\n\n/** Tab indicator style (MAUI `G9TabStyle`). */\nexport const G9TabStyle = {\n Underlined: 'underlined',\n Pill: 'pill',\n} as const;\nexport type G9TabStyle = (typeof G9TabStyle)[keyof typeof G9TabStyle];\n\n/** Direction a cascade (drill-down) panel moves in (MAUI `G9CascadeDirection`); `'auto'` follows the direction. */\nexport const G9CascadeDirection = {\n Auto: 'auto',\n LeftToRight: 'leftToRight',\n RightToLeft: 'rightToLeft',\n TopToBottom: 'topToBottom',\n BottomToTop: 'bottomToTop',\n} as const;\nexport type G9CascadeDirection = (typeof G9CascadeDirection)[keyof typeof G9CascadeDirection];\n\n/** How the next cascade level appears (MAUI `G9CascadeTransition`): over the current one, or pushing it out. */\nexport const G9CascadeTransition = {\n Overlay: 'overlay',\n Push: 'push',\n} as const;\nexport type G9CascadeTransition = (typeof G9CascadeTransition)[keyof typeof G9CascadeTransition];\n\n/** Where a tab bar sits (MAUI `G9TabBarPosition`). */\nexport const G9TabBarPosition = {\n Top: 'top',\n Bottom: 'bottom',\n} as const;\nexport type G9TabBarPosition = (typeof G9TabBarPosition)[keyof typeof G9TabBarPosition];\n\n/**\n * Semantic input type of a text field (MAUI `G9InputType`). One value drives the keyboard, the live keystroke filter\n * and the on-blur validation; the policy itself (filters, validation, LTR preference) lands with the fields in WP03.\n */\nexport const G9InputType = {\n /** No filtering, no validation, default keyboard. */\n Default: 'default',\n /** Digits 0-9 only. Numeric keyboard. */\n Number: 'number',\n /** Digits plus one decimal separator (the culture's, `.` or `٫`). Numeric keyboard. */\n Decimal: 'decimal',\n /** Digits with an optional leading `-`. Numeric keyboard. */\n SignedNumber: 'signedNumber',\n /** Digits with an optional leading `-` and one decimal separator. Numeric keyboard. */\n SignedDecimal: 'signedDecimal',\n /** Digits, `+`, `-`, space, `(` and `)`. Telephone keyboard; no format validation. */\n Phone: 'phone',\n /** Anything but whitespace while typing; `local@domain.tld` shape on blur. Email keyboard. */\n Email: 'email',\n /** Anything but whitespace while typing; an absolute URI on blur. URL keyboard. */\n Url: 'url',\n /** Latin letters a-z, A-Z. */\n Letters: 'letters',\n /** Latin letters and digits 0-9. */\n LettersAndNumbers: 'lettersAndNumbers',\n /** Latin letters, digits and space. */\n LettersNumbersSpace: 'lettersNumbersSpace',\n /** Persian/Arabic letters (U+0600–U+06FF without digits) and space. */\n PersianLetters: 'persianLetters',\n /** Persian/Arabic letters, Persian and ASCII digits, and space. */\n PersianLettersAndNumbers: 'persianLettersAndNumbers',\n /** Latin and Persian/Arabic letters, ASCII and Persian digits, and space. */\n MultilingualLettersAndNumbers: 'multilingualLettersAndNumbers',\n /** Letters (Latin/Persian/Arabic), digits and space; every punctuation or symbol is rejected. */\n NoSpecialChars: 'noSpecialChars',\n /** The field's own allowed-characters and validation patterns. */\n Custom: 'custom',\n} as const;\nexport type G9InputType = (typeof G9InputType)[keyof typeof G9InputType];\n"],"names":["G9ButtonVariant","G9ProgressType","G9ControlSize","G9TextInputDirection","G9FilledValueHighlight","G9KeyboardType","G9DateTimePickerMode","G9DateTimeDisplayFormat","G9RangeSliderMode","G9PinEntryType","G9ChipGroupSelectionMode","G9ChipGroupLayoutMode","G9ProgressLabelPlacement","G9SeparatorTitleAlignment","G9TabMode","G9TabStyle","G9CascadeDirection","G9CascadeTransition","G9TabBarPosition","G9InputType"],"mappings":"AACO,MAAMA,kBAAkB;IAC7B,SAAS;IACT,OAAO;IACP,SAAS;IACT,WAAW;IACX,MAAM;IACN,SAAS;IACT,SAAS;IAET,OAAO;IAKP,YAAY;IACZ,SAAS;IACT,SAAS;IACT,MAAM;AACR;AAIO,MAAMC,iBAAiB;IA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Ef,OAAO;IAEP,OAAO;IAEP,KAAK;IAEL,SAAS;IAET,mBAAmB;IAEnB,qBAAqB;IAErB,gBAAgB;IAEhB,0BAA0B;IAE1B,+BAA+B;IAE/B,gBAAgB;IAEhB,QAAQ;AACV"}
1
+ {"version":3,"file":"enums/index.js","sources":["../../src/enums/index.ts"],"sourcesContent":["/** Colour role of a button-like control (MAUI `G9ButtonVariant`). Default for buttons: `'primary'`. */\nexport const G9ButtonVariant = {\n Primary: 'primary',\n Tonal: 'tonal',\n Default: 'default',\n Secondary: 'secondary',\n Info: 'info',\n Success: 'success',\n Warning: 'warning',\n /** Solid red fill, white glyph: the loud, committing destructive action (Delete, Truncate). */\n Error: 'error',\n /**\n * The soft destructive look: an `ErrorContainer` fill with the `Error` glyph on top, quiet enough to stay on screen\n * permanently.\n */\n ErrorTonal: 'errorTonal',\n Surface: 'surface',\n Outline: 'outline',\n Text: 'text',\n /** Neutral text on no fill and no border (G9Hub/SAC `ghost`): the quietest action. */\n Ghost: 'ghost',\n /** The inverse surface (SAC `ink`): a dark button on a light page, a light one on a dark page. */\n Inverse: 'inverse',\n /** The tertiary (accent) role, solid (SAC `acc`). */\n Accent: 'accent',\n} as const;\nexport type G9ButtonVariant = (typeof G9ButtonVariant)[keyof typeof G9ButtonVariant];\n\n/** Colour role of a progress indicator (MAUI `G9ProgressType`). */\nexport const G9ProgressType = {\n Primary: 'primary',\n Success: 'success',\n Warning: 'warning',\n Error: 'error',\n} as const;\nexport type G9ProgressType = (typeof G9ProgressType)[keyof typeof G9ProgressType];\n\n/** Size step of a control (MAUI `G9ControlSize`). Default for controls: `'medium'`. */\nexport const G9ControlSize = {\n Small: 'small',\n Medium: 'medium',\n Large: 'large',\n Hero: 'hero',\n} as const;\nexport type G9ControlSize = (typeof G9ControlSize)[keyof typeof G9ControlSize];\n\n/** Writing direction of a field's entered value (MAUI `G9TextInputDirection`). `'matchParent'` follows the culture. */\nexport const G9TextInputDirection = {\n MatchParent: 'matchParent',\n LeftToRight: 'leftToRight',\n RightToLeft: 'rightToLeft',\n} as const;\nexport type G9TextInputDirection = (typeof G9TextInputDirection)[keyof typeof G9TextInputDirection];\n\n/**\n * How a filled field's value is highlighted (MAUI `G9FilledValueHighlight`): `'inherit'` takes the app-wide setting,\n * `'accent'` tints with the primary colour, `'neutral'` keeps the regular text colour.\n */\nexport const G9FilledValueHighlight = {\n Inherit: 'inherit',\n Accent: 'accent',\n Neutral: 'neutral',\n} as const;\nexport type G9FilledValueHighlight = (typeof G9FilledValueHighlight)[keyof typeof G9FilledValueHighlight];\n\n/** On-screen keyboard of a text field (MAUI `G9KeyboardType`). */\nexport const G9KeyboardType = {\n Default: 'default',\n Email: 'email',\n Phone: 'phone',\n Number: 'number',\n Url: 'url',\n Password: 'password',\n} as const;\nexport type G9KeyboardType = (typeof G9KeyboardType)[keyof typeof G9KeyboardType];\n\n/** What a date/time picker edits (MAUI `G9DateTimePickerMode`). */\nexport const G9DateTimePickerMode = {\n Date: 'date',\n Time: 'time',\n DateTime: 'dateTime',\n} as const;\nexport type G9DateTimePickerMode = (typeof G9DateTimePickerMode)[keyof typeof G9DateTimePickerMode];\n\n/** How a picked date/time is displayed (MAUI `G9DateTimeDisplayFormat`); `'custom'` uses the caller's pattern. */\nexport const G9DateTimeDisplayFormat = {\n ShortDate: 'shortDate',\n LongDate: 'longDate',\n TimeOnly: 'timeOnly',\n ShortDateTime: 'shortDateTime',\n LongDateTime: 'longDateTime',\n Custom: 'custom',\n} as const;\nexport type G9DateTimeDisplayFormat = (typeof G9DateTimeDisplayFormat)[keyof typeof G9DateTimeDisplayFormat];\n\n/** One thumb or two (MAUI `G9RangeSliderMode`). */\nexport const G9RangeSliderMode = {\n Single: 'single',\n Range: 'range',\n} as const;\nexport type G9RangeSliderMode = (typeof G9RangeSliderMode)[keyof typeof G9RangeSliderMode];\n\n/** Characters a PIN entry accepts (MAUI `G9PinEntryType`); `'password'` masks them. */\nexport const G9PinEntryType = {\n Number: 'number',\n Letters: 'letters',\n Alphanumeric: 'alphanumeric',\n Password: 'password',\n} as const;\nexport type G9PinEntryType = (typeof G9PinEntryType)[keyof typeof G9PinEntryType];\n\n/** Selection behaviour of a chip group (MAUI `G9ChipGroupSelectionMode`). */\nexport const G9ChipGroupSelectionMode = {\n MultiSelection: 'multiSelection',\n SingleSelection: 'singleSelection',\n} as const;\nexport type G9ChipGroupSelectionMode = (typeof G9ChipGroupSelectionMode)[keyof typeof G9ChipGroupSelectionMode];\n\n/**\n * Layout of a chip group (MAUI `G9ChipGroupLayoutMode`): wrapping rows, one horizontally scrolling line, or (1.4.9)\n * segmented — equal cells that share each row (`segmentColumns` per row), for short exclusive choices.\n */\nexport const G9ChipGroupLayoutMode = {\n Wrap: 'wrap',\n SingleLineScroll: 'singleLineScroll',\n Segmented: 'segmented',\n} as const;\nexport type G9ChipGroupLayoutMode = (typeof G9ChipGroupLayoutMode)[keyof typeof G9ChipGroupLayoutMode];\n\n/** Where a progress bar's label sits (MAUI `G9ProgressLabelPlacement`). */\nexport const G9ProgressLabelPlacement = {\n None: 'none',\n Above: 'above',\n End: 'end',\n} as const;\nexport type G9ProgressLabelPlacement = (typeof G9ProgressLabelPlacement)[keyof typeof G9ProgressLabelPlacement];\n\n/** Alignment of a separator's title (MAUI `G9SeparatorTitleAlignment`); `'auto'` follows the direction. */\nexport const G9SeparatorTitleAlignment = {\n Auto: 'auto',\n Start: 'start',\n Center: 'center',\n End: 'end',\n} as const;\nexport type G9SeparatorTitleAlignment = (typeof G9SeparatorTitleAlignment)[keyof typeof G9SeparatorTitleAlignment];\n\n/** Tab width behaviour (MAUI `G9TabMode`): equal fixed tabs or a scrolling strip. */\nexport const G9TabMode = {\n Fixed: 'fixed',\n Scrollable: 'scrollable',\n} as const;\nexport type G9TabMode = (typeof G9TabMode)[keyof typeof G9TabMode];\n\n/** Tab indicator style (MAUI `G9TabStyle`). */\nexport const G9TabStyle = {\n Underlined: 'underlined',\n Pill: 'pill',\n} as const;\nexport type G9TabStyle = (typeof G9TabStyle)[keyof typeof G9TabStyle];\n\n/** Direction a cascade (drill-down) panel moves in (MAUI `G9CascadeDirection`); `'auto'` follows the direction. */\nexport const G9CascadeDirection = {\n Auto: 'auto',\n LeftToRight: 'leftToRight',\n RightToLeft: 'rightToLeft',\n TopToBottom: 'topToBottom',\n BottomToTop: 'bottomToTop',\n} as const;\nexport type G9CascadeDirection = (typeof G9CascadeDirection)[keyof typeof G9CascadeDirection];\n\n/** How the next cascade level appears (MAUI `G9CascadeTransition`): over the current one, or pushing it out. */\nexport const G9CascadeTransition = {\n Overlay: 'overlay',\n Push: 'push',\n} as const;\nexport type G9CascadeTransition = (typeof G9CascadeTransition)[keyof typeof G9CascadeTransition];\n\n/** Where a tab bar sits (MAUI `G9TabBarPosition`). */\nexport const G9TabBarPosition = {\n Top: 'top',\n Bottom: 'bottom',\n} as const;\nexport type G9TabBarPosition = (typeof G9TabBarPosition)[keyof typeof G9TabBarPosition];\n\n/**\n * Semantic input type of a text field (MAUI `G9InputType`). One value drives the keyboard, the live keystroke filter\n * and the on-blur validation; the policy itself (filters, validation, LTR preference) lands with the fields in WP03.\n */\nexport const G9InputType = {\n /** No filtering, no validation, default keyboard. */\n Default: 'default',\n /** Digits 0-9 only. Numeric keyboard. */\n Number: 'number',\n /** Digits plus one decimal separator (the culture's, `.` or `٫`). Numeric keyboard. */\n Decimal: 'decimal',\n /** Digits with an optional leading `-`. Numeric keyboard. */\n SignedNumber: 'signedNumber',\n /** Digits with an optional leading `-` and one decimal separator. Numeric keyboard. */\n SignedDecimal: 'signedDecimal',\n /** Digits, `+`, `-`, space, `(` and `)`. Telephone keyboard; no format validation. */\n Phone: 'phone',\n /** Anything but whitespace while typing; `local@domain.tld` shape on blur. Email keyboard. */\n Email: 'email',\n /** Anything but whitespace while typing; an absolute URI on blur. URL keyboard. */\n Url: 'url',\n /** Latin letters a-z, A-Z. */\n Letters: 'letters',\n /** Latin letters and digits 0-9. */\n LettersAndNumbers: 'lettersAndNumbers',\n /** Latin letters, digits and space. */\n LettersNumbersSpace: 'lettersNumbersSpace',\n /** Persian/Arabic letters (U+0600–U+06FF without digits) and space. */\n PersianLetters: 'persianLetters',\n /** Persian/Arabic letters, Persian and ASCII digits, and space. */\n PersianLettersAndNumbers: 'persianLettersAndNumbers',\n /** Latin and Persian/Arabic letters, ASCII and Persian digits, and space. */\n MultilingualLettersAndNumbers: 'multilingualLettersAndNumbers',\n /** Letters (Latin/Persian/Arabic), digits and space; every punctuation or symbol is rejected. */\n NoSpecialChars: 'noSpecialChars',\n /** The field's own allowed-characters and validation patterns. */\n Custom: 'custom',\n} as const;\nexport type G9InputType = (typeof G9InputType)[keyof typeof G9InputType];\n"],"names":["G9ButtonVariant","G9ProgressType","G9ControlSize","G9TextInputDirection","G9FilledValueHighlight","G9KeyboardType","G9DateTimePickerMode","G9DateTimeDisplayFormat","G9RangeSliderMode","G9PinEntryType","G9ChipGroupSelectionMode","G9ChipGroupLayoutMode","G9ProgressLabelPlacement","G9SeparatorTitleAlignment","G9TabMode","G9TabStyle","G9CascadeDirection","G9CascadeTransition","G9TabBarPosition","G9InputType"],"mappings":"AACO,MAAMA,kBAAkB;IAC7B,SAAS;IACT,OAAO;IACP,SAAS;IACT,WAAW;IACX,MAAM;IACN,SAAS;IACT,SAAS;IAET,OAAO;IAKP,YAAY;IACZ,SAAS;IACT,SAAS;IACT,MAAM;IAEN,OAAO;IAEP,SAAS;IAET,QAAQ;AACV;AAIO,MAAMC,iBAAiB;IAC5B,SAAS;IACT,SAAS;IACT,SAAS;IACT,OAAO;AACT;AAIO,MAAMC,gBAAgB;IAC3B,OAAO;IACP,QAAQ;IACR,OAAO;IACP,MAAM;AACR;AAIO,MAAMC,uBAAuB;IAClC,aAAa;IACb,aAAa;IACb,aAAa;AACf;AAOO,MAAMC,yBAAyB;IACpC,SAAS;IACT,QAAQ;IACR,SAAS;AACX;AAIO,MAAMC,iBAAiB;IAC5B,SAAS;IACT,OAAO;IACP,OAAO;IACP,QAAQ;IACR,KAAK;IACL,UAAU;AACZ;AAIO,MAAMC,uBAAuB;IAClC,MAAM;IACN,MAAM;IACN,UAAU;AACZ;AAIO,MAAMC,0BAA0B;IACrC,WAAW;IACX,UAAU;IACV,UAAU;IACV,eAAe;IACf,cAAc;IACd,QAAQ;AACV;AAIO,MAAMC,oBAAoB;IAC/B,QAAQ;IACR,OAAO;AACT;AAIO,MAAMC,iBAAiB;IAC5B,QAAQ;IACR,SAAS;IACT,cAAc;IACd,UAAU;AACZ;AAIO,MAAMC,2BAA2B;IACtC,gBAAgB;IAChB,iBAAiB;AACnB;AAOO,MAAMC,wBAAwB;IACnC,MAAM;IACN,kBAAkB;IAClB,WAAW;AACb;AAIO,MAAMC,2BAA2B;IACtC,MAAM;IACN,OAAO;IACP,KAAK;AACP;AAIO,MAAMC,4BAA4B;IACvC,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;AACP;AAIO,MAAMC,YAAY;IACvB,OAAO;IACP,YAAY;AACd;AAIO,MAAMC,aAAa;IACxB,YAAY;IACZ,MAAM;AACR;AAIO,MAAMC,qBAAqB;IAChC,MAAM;IACN,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;AACf;AAIO,MAAMC,sBAAsB;IACjC,SAAS;IACT,MAAM;AACR;AAIO,MAAMC,mBAAmB;IAC9B,KAAK;IACL,QAAQ;AACV;AAOO,MAAMC,cAAc;IAEzB,SAAS;IAET,QAAQ;IAER,SAAS;IAET,cAAc;IAEd,eAAe;IAEf,OAAO;IAEP,OAAO;IAEP,KAAK;IAEL,SAAS;IAET,mBAAmB;IAEnB,qBAAqB;IAErB,gBAAgB;IAEhB,0BAA0B;IAE1B,+BAA+B;IAE/B,gBAAgB;IAEhB,QAAQ;AACV"}
@@ -3,5 +3,6 @@ export { assertG9Glyph, type G9DrawableGlyph, G9Glyph, g9Glyphs, isG9Glyph } fro
3
3
  export { type G9GlyphSlot, type G9GlyphSlotOverrides, type G9GlyphSlots, g9DefaultGlyphSlots, g9GlyphSlotNames, resolveGlyphSlots, } from './glyph-slots.js';
4
4
  export { assertG9Icon, builtInGlyph, codePointIcon, defineIconFont, fontIcon, fontIconText, type G9FontCodePointIcon, type G9FontIcon, type G9FontTextIcon, type G9GlyphIcon, type G9Icon, type G9IconFontMemberValue, type G9ImageIcon, type G9ImageSource, type G9SvgIcon, glyphIcon, iconEquals, iconSignature, isFontIcon, isGlyphIcon, isIconEmpty, isImageIcon, isSvgIcon, toIcon, } from './icon.js';
5
5
  export { createIconFontRegistry, type G9IconFontRegistry, iconNameKey } from './icon-fonts.js';
6
- export { createGlyphSvgCache, type G9GlyphSvgCache, g9GlyphSvgCacheDefaultSize, svgForGlyph, } from './svg.js';
6
+ export { findPackIcon, type G9IconPack, type G9PackIcon, listPackIcons, packIconSvg, registerIconPack, unregisterIconPack, } from './packs.js';
7
+ export { createGlyphSvgCache, type G9GlyphSvgCache, g9GlyphSvgCacheDefaultSize, svgForGlyph, toLynxSvg } from './svg.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,MAAM,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,sBAAsB,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5F,OAAO,EACL,mBAAmB,EACnB,KAAK,eAAe,EACpB,0BAA0B,EAC1B,WAAW,GACZ,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,MAAM,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,sBAAsB,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5F,OAAO,EACL,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,KAAK,eAAe,EAAE,0BAA0B,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC"}
@@ -3,4 +3,5 @@ export { G9Glyph, assertG9Glyph, g9Glyphs, isG9Glyph } from "./glyph.js";
3
3
  export { g9DefaultGlyphSlots, g9GlyphSlotNames, resolveGlyphSlots } from "./glyph-slots.js";
4
4
  export { assertG9Icon, builtInGlyph, codePointIcon, defineIconFont, fontIcon, fontIconText, glyphIcon, iconEquals, iconSignature, isFontIcon, isGlyphIcon, isIconEmpty, isImageIcon, isSvgIcon, toIcon } from "./icon.js";
5
5
  export { createIconFontRegistry, iconNameKey } from "./icon-fonts.js";
6
- export { createGlyphSvgCache, g9GlyphSvgCacheDefaultSize, svgForGlyph } from "./svg.js";
6
+ export { findPackIcon, listPackIcons, packIconSvg, registerIconPack, unregisterIconPack } from "./packs.js";
7
+ export { createGlyphSvgCache, g9GlyphSvgCacheDefaultSize, svgForGlyph, toLynxSvg } from "./svg.js";
@@ -0,0 +1,34 @@
1
+ /** A registered set of SVG icons. */
2
+ export interface G9IconPack {
3
+ /** Prefix for qualified names (`'lucide'` → `'lucide:search'`). */
4
+ readonly name: string;
5
+ /** Default `'0 0 24 24'`. */
6
+ readonly viewBox?: string;
7
+ /** Stroke width at weight 1 for outline packs. Default 2. Ignored when `fill` is true. */
8
+ readonly strokeWidth?: number;
9
+ /** Filled icons (fill = colour, no stroke). Default false (outline, Lucide-style). */
10
+ readonly fill?: boolean;
11
+ /** Name → inner SVG markup (`<path d="…"/>`); `currentColor` in it takes the icon's colour. */
12
+ readonly icons: Readonly<Record<string, string>>;
13
+ /** Names drawn for left-to-right that must mirror in right-to-left (`back`, `forward`, `send`…). */
14
+ readonly mirror?: readonly string[];
15
+ }
16
+ /** A resolved pack icon. */
17
+ export interface G9PackIcon {
18
+ readonly pack: G9IconPack;
19
+ readonly key: string;
20
+ readonly body: string;
21
+ /** True when the pack lists the icon as directional. */
22
+ readonly mirror: boolean;
23
+ }
24
+ /** Adds (or replaces, by name) a pack. Later packs win for bare names. */
25
+ export declare function registerIconPack(pack: G9IconPack): void;
26
+ /** Removes a pack (tests, a theme switch that changes icon style). */
27
+ export declare function unregisterIconPack(name: string): void;
28
+ /** The icon for `name` (`'pack:key'` or a bare `'key'`), or null when no pack has it. */
29
+ export declare function findPackIcon(name: string): G9PackIcon | null;
30
+ /** Every registered name (`'pack:key'`), for pickers and docs. */
31
+ export declare const listPackIcons: () => readonly string[];
32
+ /** The SVG document of `icon` in `color` at stroke `weight` (cached; LRU bounded). */
33
+ export declare function packIconSvg(icon: G9PackIcon, color: string, weight?: number): string;
34
+ //# sourceMappingURL=packs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packs.d.ts","sourceRoot":"","sources":["../../src/icons/packs.ts"],"names":[],"mappings":"AAKA,qCAAqC;AACrC,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,sFAAsF;IACtF,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,+FAA+F;IAC/F,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,oGAAoG;IACpG,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,4BAA4B;AAC5B,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAKD,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAMvD;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAKrD;AAED,yFAAyF;AACzF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAsB5D;AAED,kEAAkE;AAClE,eAAO,MAAM,aAAa,QAAO,SAAS,MAAM,EACyB,CAAC;AAK1E,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAiB/E"}
@@ -0,0 +1,70 @@
1
+ const packs = [];
2
+ const lookup = new Map();
3
+ function registerIconPack(pack) {
4
+ const i = packs.findIndex((p)=>p.name === pack.name);
5
+ if (i >= 0) packs.splice(i, 1);
6
+ packs.push(pack);
7
+ lookup.clear();
8
+ svgCache.clear();
9
+ }
10
+ function unregisterIconPack(name) {
11
+ const i = packs.findIndex((p)=>p.name === name);
12
+ if (i >= 0) packs.splice(i, 1);
13
+ lookup.clear();
14
+ svgCache.clear();
15
+ }
16
+ function findPackIcon(name) {
17
+ const cached = lookup.get(name);
18
+ if (void 0 !== cached) return cached;
19
+ let hit = null;
20
+ const colon = name.indexOf(':');
21
+ if (colon > 0) {
22
+ var _pack_mirror;
23
+ const pack = packs.find((p)=>p.name === name.slice(0, colon));
24
+ const key = name.slice(colon + 1);
25
+ const body = null == pack ? void 0 : pack.icons[key];
26
+ if (pack && void 0 !== body) hit = {
27
+ pack,
28
+ key,
29
+ body,
30
+ mirror: (null == (_pack_mirror = pack.mirror) ? void 0 : _pack_mirror.includes(key)) === true
31
+ };
32
+ } else for(let i = packs.length - 1; i >= 0; i--){
33
+ const pack = packs[i];
34
+ const body = pack.icons[name];
35
+ if (void 0 !== body) {
36
+ var _pack_mirror1;
37
+ hit = {
38
+ pack,
39
+ key: name,
40
+ body,
41
+ mirror: (null == (_pack_mirror1 = pack.mirror) ? void 0 : _pack_mirror1.includes(name)) === true
42
+ };
43
+ break;
44
+ }
45
+ }
46
+ lookup.set(name, hit);
47
+ return hit;
48
+ }
49
+ const listPackIcons = ()=>packs.flatMap((p)=>Object.keys(p.icons).map((k)=>`${p.name}:${k}`));
50
+ const svgCache = new Map();
51
+ const CACHE_LIMIT = 512;
52
+ function packIconSvg(icon, color, weight = 1) {
53
+ var _p_strokeWidth, _p_viewBox;
54
+ const id = `${icon.pack.name}:${icon.key}|${color}|${weight}`;
55
+ const hit = svgCache.get(id);
56
+ if (void 0 !== hit) {
57
+ svgCache.delete(id);
58
+ svgCache.set(id, hit);
59
+ return hit;
60
+ }
61
+ const p = icon.pack;
62
+ const paint = p.fill ? `fill="${color}" stroke="none"` : `fill="none" stroke="${color}" stroke-width="${(null != (_p_strokeWidth = p.strokeWidth) ? _p_strokeWidth : 2) * weight}" stroke-linecap="round" stroke-linejoin="round"`;
63
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${null != (_p_viewBox = p.viewBox) ? _p_viewBox : '0 0 24 24'}" ${paint}>${icon.body.replace(/currentColor/g, color)}</svg>`;
64
+ svgCache.set(id, svg);
65
+ if (svgCache.size > CACHE_LIMIT) svgCache.delete(svgCache.keys().next().value);
66
+ return svg;
67
+ }
68
+ export { findPackIcon, listPackIcons, packIconSvg, registerIconPack, unregisterIconPack };
69
+
70
+ //# sourceMappingURL=packs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons/packs.js","sources":["../../src/icons/packs.ts"],"sourcesContent":["// SVG icon packs: an app registers its icon set once (SAC's icons.ts, ShopManager's Lucide set, Riskara's, G9Hub's) and\n// every G9 control takes those names (`icon=\"search\"`, or `icon=\"lucide:search\"` when two packs share a name). Icons are\n// stored as the SVG's inner markup; colour and stroke weight are applied when drawn and the result is cached, so a\n// list of 200 rows with the same icon builds its SVG string once.\n\n/** A registered set of SVG icons. */\nexport interface G9IconPack {\n /** Prefix for qualified names (`'lucide'` → `'lucide:search'`). */\n readonly name: string;\n /** Default `'0 0 24 24'`. */\n readonly viewBox?: string;\n /** Stroke width at weight 1 for outline packs. Default 2. Ignored when `fill` is true. */\n readonly strokeWidth?: number;\n /** Filled icons (fill = colour, no stroke). Default false (outline, Lucide-style). */\n readonly fill?: boolean;\n /** Name → inner SVG markup (`<path d=\"…\"/>`); `currentColor` in it takes the icon's colour. */\n readonly icons: Readonly<Record<string, string>>;\n /** Names drawn for left-to-right that must mirror in right-to-left (`back`, `forward`, `send`…). */\n readonly mirror?: readonly string[];\n}\n\n/** A resolved pack icon. */\nexport interface G9PackIcon {\n readonly pack: G9IconPack;\n readonly key: string;\n readonly body: string;\n /** True when the pack lists the icon as directional. */\n readonly mirror: boolean;\n}\n\nconst packs: G9IconPack[] = [];\nconst lookup = new Map<string, G9PackIcon | null>();\n\n/** Adds (or replaces, by name) a pack. Later packs win for bare names. */\nexport function registerIconPack(pack: G9IconPack): void {\n const i = packs.findIndex((p) => p.name === pack.name);\n if (i >= 0) packs.splice(i, 1);\n packs.push(pack);\n lookup.clear();\n svgCache.clear();\n}\n\n/** Removes a pack (tests, a theme switch that changes icon style). */\nexport function unregisterIconPack(name: string): void {\n const i = packs.findIndex((p) => p.name === name);\n if (i >= 0) packs.splice(i, 1);\n lookup.clear();\n svgCache.clear();\n}\n\n/** The icon for `name` (`'pack:key'` or a bare `'key'`), or null when no pack has it. */\nexport function findPackIcon(name: string): G9PackIcon | null {\n const cached = lookup.get(name);\n if (cached !== undefined) return cached;\n let hit: G9PackIcon | null = null;\n const colon = name.indexOf(':');\n if (colon > 0) {\n const pack = packs.find((p) => p.name === name.slice(0, colon));\n const key = name.slice(colon + 1);\n const body = pack?.icons[key];\n if (pack && body !== undefined) hit = { pack, key, body, mirror: pack.mirror?.includes(key) === true };\n } else {\n for (let i = packs.length - 1; i >= 0; i--) {\n const pack = packs[i] as G9IconPack;\n const body = pack.icons[name];\n if (body !== undefined) {\n hit = { pack, key: name, body, mirror: pack.mirror?.includes(name) === true };\n break;\n }\n }\n }\n lookup.set(name, hit);\n return hit;\n}\n\n/** Every registered name (`'pack:key'`), for pickers and docs. */\nexport const listPackIcons = (): readonly string[] =>\n packs.flatMap((p) => Object.keys(p.icons).map((k) => `${p.name}:${k}`));\n\nconst svgCache = new Map<string, string>();\nconst CACHE_LIMIT = 512;\n\n/** The SVG document of `icon` in `color` at stroke `weight` (cached; LRU bounded). */\nexport function packIconSvg(icon: G9PackIcon, color: string, weight = 1): string {\n const id = `${icon.pack.name}:${icon.key}|${color}|${weight}`;\n const hit = svgCache.get(id);\n if (hit !== undefined) {\n // refresh LRU position\n svgCache.delete(id);\n svgCache.set(id, hit);\n return hit;\n }\n const p = icon.pack;\n const paint = p.fill\n ? `fill=\"${color}\" stroke=\"none\"`\n : `fill=\"none\" stroke=\"${color}\" stroke-width=\"${(p.strokeWidth ?? 2) * weight}\" stroke-linecap=\"round\" stroke-linejoin=\"round\"`;\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${p.viewBox ?? '0 0 24 24'}\" ${paint}>${icon.body.replace(/currentColor/g, color)}</svg>`;\n svgCache.set(id, svg);\n if (svgCache.size > CACHE_LIMIT) svgCache.delete(svgCache.keys().next().value as string);\n return svg;\n}\n"],"names":["packs","lookup","Map","registerIconPack","pack","i","p","svgCache","unregisterIconPack","name","findPackIcon","cached","undefined","hit","colon","_pack_mirror","key","body","_pack_mirror1","listPackIcons","Object","k","CACHE_LIMIT","packIconSvg","icon","color","weight","_p_strokeWidth","_p_viewBox","id","paint","svg"],"mappings":"AA8BA,MAAMA,QAAsB,EAAE;AAC9B,MAAMC,SAAS,IAAIC;AAGZ,SAASC,iBAAiBC,IAAgB;IAC/C,MAAMC,IAAIL,MAAM,SAAS,CAAC,CAACM,IAAMA,EAAE,IAAI,KAAKF,KAA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f,SAAS,MAAM,CAACA,SAAS,IAAI,GAAG,IAAI,GAAG,KAAK;IAC7E,OAAOwB;AACT"}
@@ -14,11 +14,18 @@ export interface G9GlyphSvgCache {
14
14
  /** Drops every cached document. */
15
15
  clear(): void;
16
16
  }
17
+ /**
18
+ * The SVG elements Lynx 4.2's svg element draws, from any SVG text: every line element (x1 y1 x2 y2) becomes the
19
+ * two-point path `M x1 y1 L x2 y2` of the same geometry and attributes. Lynx draws no line element at all (proven on a Galaxy
20
+ * A21s, 2026-11-18: ✕, +, −, ≡ and the search handle were invisible). The golden documents keep MAUI's elements; this is
21
+ * applied where they become Lynx content.
22
+ */
23
+ export declare function toLynxSvg(svg: string): string;
17
24
  /** Creates a bounded LRU cache of glyph SVG documents (default capacity `g9GlyphSvgCacheDefaultSize`). */
18
25
  export declare function createGlyphSvgCache(maxEntries?: number): G9GlyphSvgCache;
19
26
  /**
20
- * The SVG document of a built-in glyph for Lynx `<svg content>` (WP02 renders it): the golden MAUI drawing with every
21
- * `currentColor` replaced by `color` and the stroke width scaled by `weightScale` (MAUI `G9GlyphDrawable.Color`,
27
+ * The SVG document of a built-in glyph for Lynx `<svg content>` (WP02 renders it): the golden MAUI drawing in the
28
+ * elements Lynx draws ({@link toLynxSvg}), every `currentColor` replaced by `color` and the stroke width scaled by `weightScale` (MAUI `G9GlyphDrawable.Color`,
22
29
  * `WeightScale`; stroke = 2 design units × weight; filled dots keep their recorded radius). `'none'` returns `''`
23
30
  * (renders nothing). `color` defaults to `currentColor`; any other value must be a CSS colour `parseColor` reads and
24
31
  * is written normalised (`formatColor`). Invalid glyph, colour or weight (finite, above 0) throws a `G9Error`.
@@ -1 +1 @@
1
- {"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/icons/svg.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAEtD,uFAAuF;AACvF,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,2EAA2E;A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