@wirabyte/ui 3.0.0 → 3.1.1

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 (195) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/fesm2022/wirabyte-ui-asidemenu.mjs +2 -2
  3. package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
  4. package/fesm2022/wirabyte-ui-chat.mjs +1 -1
  5. package/fesm2022/wirabyte-ui-chat.mjs.map +1 -1
  6. package/fesm2022/wirabyte-ui-config.mjs +13 -0
  7. package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
  8. package/fesm2022/wirabyte-ui-datepicker.mjs +4 -3
  9. package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
  10. package/fesm2022/wirabyte-ui-scheduler.mjs +7 -6
  11. package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -1
  12. package/fesm2022/wirabyte-ui-sitefooter.mjs +1 -1
  13. package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
  14. package/fesm2022/wirabyte-ui-table.mjs +2 -2
  15. package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
  16. package/fesm2022/wirabyte-ui-textarea.mjs +18 -4
  17. package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
  18. package/fesm2022/wirabyte-ui-thai.mjs +1 -1
  19. package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/themes/glass/amber.css +1 -1
  22. package/themes/glass/blue.css +1 -1
  23. package/themes/glass/cyan.css +1 -1
  24. package/themes/glass/emerald.css +1 -1
  25. package/themes/glass/fuchsia.css +1 -1
  26. package/themes/glass/green.css +1 -1
  27. package/themes/glass/indigo.css +1 -1
  28. package/themes/glass/lime.css +1 -1
  29. package/themes/glass/orange.css +1 -1
  30. package/themes/glass/pink.css +1 -1
  31. package/themes/glass/purple.css +1 -1
  32. package/themes/glass/red.css +1 -1
  33. package/themes/glass/rose.css +1 -1
  34. package/themes/glass/sky.css +1 -1
  35. package/themes/glass/teal.css +1 -1
  36. package/themes/glass/theme.css +1 -1
  37. package/themes/glass/violet.css +1 -1
  38. package/themes/glass/wira.css +1 -1
  39. package/themes/glass/yellow.css +1 -1
  40. package/themes/lanna/amber.css +1 -1
  41. package/themes/lanna/blue.css +1 -1
  42. package/themes/lanna/cyan.css +1 -1
  43. package/themes/lanna/emerald.css +1 -1
  44. package/themes/lanna/fuchsia.css +1 -1
  45. package/themes/lanna/green.css +1 -1
  46. package/themes/lanna/indigo.css +1 -1
  47. package/themes/lanna/lime.css +1 -1
  48. package/themes/lanna/orange.css +1 -1
  49. package/themes/lanna/pink.css +1 -1
  50. package/themes/lanna/purple.css +1 -1
  51. package/themes/lanna/red.css +1 -1
  52. package/themes/lanna/rose.css +1 -1
  53. package/themes/lanna/sky.css +1 -1
  54. package/themes/lanna/teal.css +1 -1
  55. package/themes/lanna/theme.css +1 -1
  56. package/themes/lanna/violet.css +1 -1
  57. package/themes/lanna/wira.css +1 -1
  58. package/themes/lanna/yellow.css +1 -1
  59. package/themes/mali/amber.css +1 -1
  60. package/themes/mali/blue.css +1 -1
  61. package/themes/mali/cyan.css +1 -1
  62. package/themes/mali/emerald.css +1 -1
  63. package/themes/mali/fuchsia.css +1 -1
  64. package/themes/mali/green.css +1 -1
  65. package/themes/mali/indigo.css +1 -1
  66. package/themes/mali/lime.css +1 -1
  67. package/themes/mali/orange.css +1 -1
  68. package/themes/mali/pink.css +1 -1
  69. package/themes/mali/purple.css +1 -1
  70. package/themes/mali/red.css +1 -1
  71. package/themes/mali/rose.css +1 -1
  72. package/themes/mali/sky.css +1 -1
  73. package/themes/mali/teal.css +1 -1
  74. package/themes/mali/theme.css +1 -1
  75. package/themes/mali/violet.css +1 -1
  76. package/themes/mali/wira.css +1 -1
  77. package/themes/mali/yellow.css +1 -1
  78. package/themes/material/amber.css +1 -1
  79. package/themes/material/blue.css +1 -1
  80. package/themes/material/cyan.css +1 -1
  81. package/themes/material/emerald.css +1 -1
  82. package/themes/material/fuchsia.css +1 -1
  83. package/themes/material/green.css +1 -1
  84. package/themes/material/indigo.css +1 -1
  85. package/themes/material/lime.css +1 -1
  86. package/themes/material/orange.css +1 -1
  87. package/themes/material/pink.css +1 -1
  88. package/themes/material/purple.css +1 -1
  89. package/themes/material/red.css +1 -1
  90. package/themes/material/rose.css +1 -1
  91. package/themes/material/sky.css +1 -1
  92. package/themes/material/teal.css +1 -1
  93. package/themes/material/theme.css +1 -1
  94. package/themes/material/violet.css +1 -1
  95. package/themes/material/wira.css +1 -1
  96. package/themes/material/yellow.css +1 -1
  97. package/themes/nakhon/amber.css +1 -1
  98. package/themes/nakhon/blue.css +1 -1
  99. package/themes/nakhon/cyan.css +1 -1
  100. package/themes/nakhon/emerald.css +1 -1
  101. package/themes/nakhon/fuchsia.css +1 -1
  102. package/themes/nakhon/green.css +1 -1
  103. package/themes/nakhon/indigo.css +1 -1
  104. package/themes/nakhon/lime.css +1 -1
  105. package/themes/nakhon/orange.css +1 -1
  106. package/themes/nakhon/pink.css +1 -1
  107. package/themes/nakhon/purple.css +1 -1
  108. package/themes/nakhon/red.css +1 -1
  109. package/themes/nakhon/rose.css +1 -1
  110. package/themes/nakhon/sky.css +1 -1
  111. package/themes/nakhon/teal.css +1 -1
  112. package/themes/nakhon/theme.css +1 -1
  113. package/themes/nakhon/violet.css +1 -1
  114. package/themes/nakhon/wira.css +1 -1
  115. package/themes/nakhon/yellow.css +1 -1
  116. package/themes/phet/amber.css +1 -1
  117. package/themes/phet/blue.css +1 -1
  118. package/themes/phet/cyan.css +1 -1
  119. package/themes/phet/emerald.css +1 -1
  120. package/themes/phet/fuchsia.css +1 -1
  121. package/themes/phet/green.css +1 -1
  122. package/themes/phet/indigo.css +1 -1
  123. package/themes/phet/lime.css +1 -1
  124. package/themes/phet/orange.css +1 -1
  125. package/themes/phet/pink.css +1 -1
  126. package/themes/phet/purple.css +1 -1
  127. package/themes/phet/red.css +1 -1
  128. package/themes/phet/rose.css +1 -1
  129. package/themes/phet/sky.css +1 -1
  130. package/themes/phet/teal.css +1 -1
  131. package/themes/phet/theme.css +1 -1
  132. package/themes/phet/violet.css +1 -1
  133. package/themes/phet/wira.css +1 -1
  134. package/themes/phet/yellow.css +1 -1
  135. package/themes/siam/amber.css +1 -1
  136. package/themes/siam/blue.css +1 -1
  137. package/themes/siam/cyan.css +1 -1
  138. package/themes/siam/emerald.css +1 -1
  139. package/themes/siam/fuchsia.css +1 -1
  140. package/themes/siam/green.css +1 -1
  141. package/themes/siam/indigo.css +1 -1
  142. package/themes/siam/lime.css +1 -1
  143. package/themes/siam/orange.css +1 -1
  144. package/themes/siam/pink.css +1 -1
  145. package/themes/siam/purple.css +1 -1
  146. package/themes/siam/red.css +1 -1
  147. package/themes/siam/rose.css +1 -1
  148. package/themes/siam/sky.css +1 -1
  149. package/themes/siam/teal.css +1 -1
  150. package/themes/siam/theme.css +1 -1
  151. package/themes/siam/violet.css +1 -1
  152. package/themes/siam/wira.css +1 -1
  153. package/themes/siam/yellow.css +1 -1
  154. package/themes/sila/amber.css +1 -1
  155. package/themes/sila/blue.css +1 -1
  156. package/themes/sila/cyan.css +1 -1
  157. package/themes/sila/emerald.css +1 -1
  158. package/themes/sila/fuchsia.css +1 -1
  159. package/themes/sila/green.css +1 -1
  160. package/themes/sila/indigo.css +1 -1
  161. package/themes/sila/lime.css +1 -1
  162. package/themes/sila/orange.css +1 -1
  163. package/themes/sila/pink.css +1 -1
  164. package/themes/sila/purple.css +1 -1
  165. package/themes/sila/red.css +1 -1
  166. package/themes/sila/rose.css +1 -1
  167. package/themes/sila/sky.css +1 -1
  168. package/themes/sila/teal.css +1 -1
  169. package/themes/sila/theme.css +1 -1
  170. package/themes/sila/violet.css +1 -1
  171. package/themes/sila/wira.css +1 -1
  172. package/themes/sila/yellow.css +1 -1
  173. package/themes/wira/amber.css +1 -1
  174. package/themes/wira/blue.css +1 -1
  175. package/themes/wira/cyan.css +1 -1
  176. package/themes/wira/emerald.css +1 -1
  177. package/themes/wira/fuchsia.css +1 -1
  178. package/themes/wira/green.css +1 -1
  179. package/themes/wira/indigo.css +1 -1
  180. package/themes/wira/lime.css +1 -1
  181. package/themes/wira/orange.css +1 -1
  182. package/themes/wira/pink.css +1 -1
  183. package/themes/wira/purple.css +1 -1
  184. package/themes/wira/red.css +1 -1
  185. package/themes/wira/rose.css +1 -1
  186. package/themes/wira/sky.css +1 -1
  187. package/themes/wira/teal.css +1 -1
  188. package/themes/wira/theme.css +1 -1
  189. package/themes/wira/violet.css +1 -1
  190. package/themes/wira/wira.css +1 -1
  191. package/themes/wira/yellow.css +1 -1
  192. package/types/wirabyte-ui-config.d.ts +17 -0
  193. package/types/wirabyte-ui-datepicker.d.ts +2 -1
  194. package/types/wirabyte-ui-scheduler.d.ts +1 -1
  195. package/types/wirabyte-ui-textarea.d.ts +1 -0
@@ -20,6 +20,7 @@ class WuTextarea {
20
20
  this.el = inject(ElementRef);
21
21
  this.ngControl = inject(NgControl, { optional: true, self: true });
22
22
  this.width = -1;
23
+ this.frame = 0;
23
24
  _assertSupportedAngular(inject(_WU_SKIP_VERSION_CHECK, { optional: true }));
24
25
  inject(_WuStyleLoader).load('inputtext', _WU_INPUTTEXT_CSS);
25
26
  }
@@ -29,16 +30,27 @@ class WuTextarea {
29
30
  if (changes)
30
31
  this.sub = changes.subscribe(() => setTimeout(() => this.resize()));
31
32
  // Hidden at first (a closed dialog, a collapsed panel), it measured 0: size it once it shows, and again when its
32
- // width changes how the text wraps. Its own height changes do not count, so this never loops.
33
+ // width changes how the text wraps. Its own height changes do not count.
33
34
  if (typeof ResizeObserver !== 'undefined') {
34
- this.observer = new ResizeObserver(() => {
35
- const width = this.el.nativeElement.clientWidth;
35
+ const t = this.el.nativeElement;
36
+ const observer = new ResizeObserver(() => {
37
+ const width = t.clientWidth;
36
38
  if (width === this.width)
37
39
  return;
38
40
  this.width = width;
41
+ // Resizing a watched element inside its own callback leaves a notification undelivered, and the browser
42
+ // reports a "ResizeObserver loop" error (WUI-022). So stop watching while it grows, and watch again from
43
+ // the next frame. It still grows in this frame, and the first notification after that sees the same width.
44
+ observer.unobserve(t);
39
45
  this.resize();
46
+ cancelAnimationFrame(this.frame);
47
+ this.frame = requestAnimationFrame(() => {
48
+ this.frame = 0;
49
+ observer.observe(t);
50
+ });
40
51
  });
41
- this.observer.observe(this.el.nativeElement);
52
+ observer.observe(t);
53
+ this.observer = observer;
42
54
  }
43
55
  }
44
56
  ngDoCheck() {
@@ -53,6 +65,8 @@ class WuTextarea {
53
65
  this.sub.unsubscribe();
54
66
  if (this.observer)
55
67
  this.observer.disconnect();
68
+ if (this.frame)
69
+ cancelAnimationFrame(this.frame);
56
70
  }
57
71
  resize() {
58
72
  if (!this.autoResize())
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-textarea.mjs","sources":["../../lib/textarea/textarea.directive.ts","../../lib/textarea/textarea.module.ts","../../lib/textarea/wirabyte-ui-textarea.ts"],"sourcesContent":["import { AfterViewInit, booleanAttribute, Directive, DoCheck, ElementRef, inject, input, OnDestroy } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { WuInputSize, WuInputVariant, ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';\n\n/**\n * Styles a native <textarea> like wuInputText. `autoResize` grows it with its text, including values\n * set from code through ngModel or a form control.\n */\n@Directive({\n selector: 'textarea[wuTextarea], textarea[pTextarea], textarea[wuInputTextarea], textarea[pInputTextarea]',\n standalone: true,\n host: {\n class: 'wu-inputtext wu-textarea p-textarea p-component',\n '[class.wu-textarea-autoresize]': 'autoResize()',\n '[class.p-textarea-resizable]': 'autoResize()',\n '[class.p-variant-filled]': \"variant() === 'filled'\",\n '[class.p-textarea-fluid]': 'fluid()',\n '[class.p-invalid]': 'invalid()',\n '[class.wu-inputtext-sm]': \"wuSize() === 'small'\",\n '[class.wu-inputtext-lg]': \"wuSize() === 'large'\",\n '[class.wu-inputtext-filled]': \"variant() === 'filled'\",\n '[class.wu-inputtext-fluid]': 'fluid()',\n '[class.wu-invalid]': 'invalid()',\n '[attr.aria-invalid]': 'invalid() || null',\n '[class.wu-filled]': 'filled',\n '[class.p-filled]': 'filled',\n '(input)': 'onInput()',\n },\n})\nexport class WuTextarea implements AfterViewInit, DoCheck, OnDestroy {\n readonly autoResize = input(false, { transform: booleanAttribute });\n readonly wuSize = input<WuInputSize>();\n readonly variant = input<WuInputVariant>('outlined');\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n\n /** True while the field has a value; floating labels read the `wu-filled` / `p-filled` class. */\n filled = false;\n private readonly el = inject<ElementRef<HTMLTextAreaElement>>(ElementRef);\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n private sub?: Subscription;\n private observer?: ResizeObserver;\n private width = -1;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);\n }\n\n ngAfterViewInit(): void {\n this.resize();\n const changes = this.ngControl && this.ngControl.valueChanges;\n if (changes) this.sub = changes.subscribe(() => setTimeout(() => this.resize()));\n // Hidden at first (a closed dialog, a collapsed panel), it measured 0: size it once it shows, and again when its\n // width changes how the text wraps. Its own height changes do not count, so this never loops.\n if (typeof ResizeObserver !== 'undefined') {\n this.observer = new ResizeObserver(() => {\n const width = this.el.nativeElement.clientWidth;\n if (width === this.width) return;\n this.width = width;\n this.resize();\n });\n this.observer.observe(this.el.nativeElement);\n }\n }\n\n ngDoCheck(): void {\n this.filled = !!this.el.nativeElement.value;\n }\n\n onInput(): void {\n this.filled = !!this.el.nativeElement.value;\n this.resize();\n }\n\n ngOnDestroy(): void {\n if (this.sub) this.sub.unsubscribe();\n if (this.observer) this.observer.disconnect();\n }\n\n resize(): void {\n if (!this.autoResize()) return;\n const t = this.el.nativeElement;\n // With no layout yet its scrollHeight is 0; the observer sizes it when it shows.\n if (!t.getClientRects().length) return;\n t.style.height = 'auto';\n t.style.height = t.scrollHeight + 'px';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuTextarea } from './textarea.directive';\n\n/** For NgModule apps. Standalone apps can import `WuTextarea` directly. */\n@NgModule({\n imports: [WuTextarea],\n exports: [WuTextarea],\n})\nexport class WuTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_INPUTTEXT_CSS"],"mappings":";;;;;;AAMA;;;AAGG;MAsBU,UAAU,CAAA;AAerB,IAAA,WAAA,GAAA;QAdS,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC1D,IAAA,CAAA,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAe;AAC7B,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAiB,UAAU,8EAAC;QAC3C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACrD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAGhE,IAAA,CAAA,MAAM,GAAG,KAAK;AACG,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAkC,UAAU,CAAC;AACxD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAGtE,IAAA,CAAA,KAAK,GAAG,CAAC,C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QAAQ;AAC7B,wBAAA,kBAAkB,EAAE,QAAQ;AAC5B,wBAAA,SAAS,EAAE,WAAW;AACvB,qBAAA;AACF,iBAAA;;;AC3BD;MAKa,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,OAAA,EAAA,CAHjB,UAAU,CAAA,EAAA,OAAA,EAAA,CACV,UAAU,CAAA,EAAA,CAAA,CAAA;gHAET,gBAAgB,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,UAAU,CAAC;oBACrB,OAAO,EAAE,CAAC,UAAU,CAAC;AACtB,iBAAA;;;ACPD;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-textarea.mjs","sources":["../../lib/textarea/textarea.directive.ts","../../lib/textarea/textarea.module.ts","../../lib/textarea/wirabyte-ui-textarea.ts"],"sourcesContent":["import { AfterViewInit, booleanAttribute, Directive, DoCheck, ElementRef, inject, input, OnDestroy } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { WuInputSize, WuInputVariant, ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';\n\n/**\n * Styles a native <textarea> like wuInputText. `autoResize` grows it with its text, including values\n * set from code through ngModel or a form control.\n */\n@Directive({\n selector: 'textarea[wuTextarea], textarea[pTextarea], textarea[wuInputTextarea], textarea[pInputTextarea]',\n standalone: true,\n host: {\n class: 'wu-inputtext wu-textarea p-textarea p-component',\n '[class.wu-textarea-autoresize]': 'autoResize()',\n '[class.p-textarea-resizable]': 'autoResize()',\n '[class.p-variant-filled]': \"variant() === 'filled'\",\n '[class.p-textarea-fluid]': 'fluid()',\n '[class.p-invalid]': 'invalid()',\n '[class.wu-inputtext-sm]': \"wuSize() === 'small'\",\n '[class.wu-inputtext-lg]': \"wuSize() === 'large'\",\n '[class.wu-inputtext-filled]': \"variant() === 'filled'\",\n '[class.wu-inputtext-fluid]': 'fluid()',\n '[class.wu-invalid]': 'invalid()',\n '[attr.aria-invalid]': 'invalid() || null',\n '[class.wu-filled]': 'filled',\n '[class.p-filled]': 'filled',\n '(input)': 'onInput()',\n },\n})\nexport class WuTextarea implements AfterViewInit, DoCheck, OnDestroy {\n readonly autoResize = input(false, { transform: booleanAttribute });\n readonly wuSize = input<WuInputSize>();\n readonly variant = input<WuInputVariant>('outlined');\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n\n /** True while the field has a value; floating labels read the `wu-filled` / `p-filled` class. */\n filled = false;\n private readonly el = inject<ElementRef<HTMLTextAreaElement>>(ElementRef);\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n private sub?: Subscription;\n private observer?: ResizeObserver;\n private width = -1;\n private frame = 0;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);\n }\n\n ngAfterViewInit(): void {\n this.resize();\n const changes = this.ngControl && this.ngControl.valueChanges;\n if (changes) this.sub = changes.subscribe(() => setTimeout(() => this.resize()));\n // Hidden at first (a closed dialog, a collapsed panel), it measured 0: size it once it shows, and again when its\n // width changes how the text wraps. Its own height changes do not count.\n if (typeof ResizeObserver !== 'undefined') {\n const t = this.el.nativeElement;\n const observer = new ResizeObserver(() => {\n const width = t.clientWidth;\n if (width === this.width) return;\n this.width = width;\n // Resizing a watched element inside its own callback leaves a notification undelivered, and the browser\n // reports a \"ResizeObserver loop\" error (WUI-022). So stop watching while it grows, and watch again from\n // the next frame. It still grows in this frame, and the first notification after that sees the same width.\n observer.unobserve(t);\n this.resize();\n cancelAnimationFrame(this.frame);\n this.frame = requestAnimationFrame(() => {\n this.frame = 0;\n observer.observe(t);\n });\n });\n observer.observe(t);\n this.observer = observer;\n }\n }\n\n ngDoCheck(): void {\n this.filled = !!this.el.nativeElement.value;\n }\n\n onInput(): void {\n this.filled = !!this.el.nativeElement.value;\n this.resize();\n }\n\n ngOnDestroy(): void {\n if (this.sub) this.sub.unsubscribe();\n if (this.observer) this.observer.disconnect();\n if (this.frame) cancelAnimationFrame(this.frame);\n }\n\n resize(): void {\n if (!this.autoResize()) return;\n const t = this.el.nativeElement;\n // With no layout yet its scrollHeight is 0; the observer sizes it when it shows.\n if (!t.getClientRects().length) return;\n t.style.height = 'auto';\n t.style.height = t.scrollHeight + 'px';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuTextarea } from './textarea.directive';\n\n/** For NgModule apps. Standalone apps can import `WuTextarea` directly. */\n@NgModule({\n imports: [WuTextarea],\n exports: [WuTextarea],\n})\nexport class WuTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_INPUTTEXT_CSS"],"mappings":";;;;;;AAMA;;;AAGG;MAsBU,UAAU,CAAA;AAgBrB,IAAA,WAAA,GAAA;QAfS,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC1D,IAAA,CAAA,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAe;AAC7B,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAiB,UAAU,8EAAC;QAC3C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG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;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,UAAU,CAAC;oBACrB,OAAO,EAAE,CAAC,UAAU,CAAC;AACtB,iBAAA;;;ACPD;;AAEG;;"}
@@ -54,7 +54,7 @@ class WuTimeAgoPipe {
54
54
  this.i18n = _refreshOnTranslation();
55
55
  }
56
56
  transform(value, lang) {
57
- return timeAgo(value, lang || this.config.translation.code || 'th');
57
+ return timeAgo(value, lang || this.config.translation.code || 'th', this.config.now());
58
58
  }
59
59
  ngOnDestroy() {
60
60
  this.i18n.unsubscribe();
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-thai.mjs","sources":["../../lib/thai/thai.pipes.ts","../../lib/thai/thai.module.ts","../../lib/thai/wirabyte-ui-thai.ts"],"sourcesContent":["import { inject, OnDestroy, Pipe, PipeTransform } from '@angular/core';\nimport { ɵrefreshOnTranslation, WuConfig } from '@wirabyte/ui/config';\nimport {\n bahtText,\n CalendarSystem,\n datePattern,\n formatDate,\n formatThaiId,\n formatThaiPhone,\n LOCALES,\n ThaiDateFormat,\n timeAgo,\n toDateValue,\n toThaiDigits,\n} from '@wirabyte/ui/core';\n\nexport type { ThaiDateFormat };\n\n/**\n * A date in the app's language, with พ.ศ. years in Thai: `{{ born | wuDate }}` → `14 พ.ค. 2555`. Formats:\n * `short` 14/05/2555 · `medium` 14 พ.ค. 2555 (default) · `long` 14 พฤษภาคม 2555 · `full` วันจันทร์ที่ 14 พฤษภาคม พ.ศ. 2555\n * · `time` 09:30 น. · `shortDateTime` · `dateTime`, or a pattern (`'d MMM yy'`, `\"EEEE d MMMM yyyy 'เวลา' HH:mm\"`).\n * Takes a Date, a time in ms or text (`'2012-05-14'` is that day, not UTC midnight). The calendar follows\n * `provideWiraUI({ calendar })` in Thai and is Gregorian in other languages, unless given:\n * `{{ born | wuDate: 'long' : 'gregorian' }}`; a language too: `{{ born | wuDate: 'long' : null : 'en' }}`.\n * Re-renders by itself when the app's language changes (OnPush and zoneless views included).\n */\n@Pipe({ name: 'wuDate', standalone: true, pure: false })\nexport class WuDatePipe implements PipeTransform, OnDestroy {\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n private lastKey = '';\n private lastLocale: unknown = null;\n private lastValue = '';\n\n transform(value: unknown, format: ThaiDateFormat | string = 'medium', calendar?: CalendarSystem | null, lang?: string | null): string {\n const date = toDateValue(value);\n if (!date) return '';\n const own = this.config.translation;\n const language = lang || own.code || 'th';\n const cal: CalendarSystem = calendar || this.config.calendarFor(language);\n const key = `${date.getTime()}|${format}|${cal}|${language}`;\n if (key === this.lastKey && own === this.lastLocale) return this.lastValue;\n const locale = language === own.code ? own : LOCALES[language] || own;\n this.lastKey = key;\n this.lastLocale = own;\n this.lastValue = formatDate(date, datePattern(format || 'medium', language, cal), { locale, calendar: cal });\n return this.lastValue;\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n}\n\n/** How long ago, in the app's language: `{{ sentAt | wuTimeAgo }}` → `5 นาทีที่ผ่านมา`, `เมื่อวาน`, `in 3 days`. */\n@Pipe({ name: 'wuTimeAgo', standalone: true, pure: false })\nexport class WuTimeAgoPipe implements PipeTransform, OnDestroy {\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n transform(value: unknown, lang?: string | null): string {\n return timeAgo(value, lang || this.config.translation.code || 'th');\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n}\n\n/** An amount in Thai words, as Excel's BAHTTEXT: `{{ 1250.5 | wuBahtText }}` → `หนึ่งพันสองร้อยห้าสิบบาทห้าสิบสตางค์`. */\n@Pipe({ name: 'wuBahtText', standalone: true })\nexport class WuBahtTextPipe implements PipeTransform {\n transform(value: number | string | null | undefined): string {\n return bahtText(value);\n }\n}\n\n/** A Thai phone number with dashes: `{{ '0812345678' | wuThaiPhone }}` → `081-234-5678` (`+66` too). */\n@Pipe({ name: 'wuThaiPhone', standalone: true })\nexport class WuThaiPhonePipe implements PipeTransform {\n transform(value: unknown, separator = '-'): string {\n return formatThaiPhone(value, separator);\n }\n}\n\n/** A Thai national ID with dashes: `{{ '1103702345679' | wuThaiId }}` → `1-1037-02345-67-9`. */\n@Pipe({ name: 'wuThaiId', standalone: true })\nexport class WuThaiIdPipe implements PipeTransform {\n transform(value: unknown): string {\n return value === null || value === undefined ? '' : formatThaiId(String(value));\n }\n}\n\n/** Thai digits for formal documents: `{{ '2569' | wuThaiDigits }}` → `๒๕๖๙` (works after other pipes too). */\n@Pipe({ name: 'wuThaiDigits', standalone: true })\nexport class WuThaiDigitsPipe implements PipeTransform {\n transform(value: unknown): string {\n return toThaiDigits(value);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuBahtTextPipe, WuDatePipe, WuThaiDigitsPipe, WuThaiIdPipe, WuThaiPhonePipe, WuTimeAgoPipe } from './thai.pipes';\n\nconst PIPES = [WuDatePipe, WuTimeAgoPipe, WuBahtTextPipe, WuThaiPhonePipe, WuThaiIdPipe, WuThaiDigitsPipe];\n\n/** For NgModule apps: every Thai pipe. Standalone apps import the pipes they use (`WuDatePipe` …). */\n@NgModule({\n imports: PIPES,\n exports: PIPES,\n})\nexport class WuThaiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation"],"mappings":";;;;;;AAkBA;;;;;;;;AAQG;MAEU,UAAU,CAAA;AADvB,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;QACzB,IAAA,CAAA,IAAI,GAAGA,qBAAqB,EAAE;QACvC,IAAA,CAAA,OAAO,GAAG,EAAE;QACZ,IAAA,CAAA,UAAU,GAAY,IAAI;QAC1B,IAAA,CAAA,SAAS,GAAG,EAAE;AAoBvB,IAAA;IAlBC,SAAS,CAAC,KAAc,EAAE,MAAA,GAAkC,QAAQ,EAAE,QAAgC,EAAE,IAAoB,EAAA;AAC1H,QAAA,MAAM,I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A,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE;;;AC5FhD,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAC;AAE1G;MAKa,YAAY,CAAA;+GAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAZ,YAAY,EAAA,OAAA,EAAA,CAPV,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAA1F,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;gHAO5F,YAAY,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,OAAO,EAAE,KAAK;AACf,iBAAA;;;ACTD;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-thai.mjs","sources":["../../lib/thai/thai.pipes.ts","../../lib/thai/thai.module.ts","../../lib/thai/wirabyte-ui-thai.ts"],"sourcesContent":["import { inject, OnDestroy, Pipe, PipeTransform } from '@angular/core';\nimport { ɵrefreshOnTranslation, WuConfig } from '@wirabyte/ui/config';\nimport {\n bahtText,\n CalendarSystem,\n datePattern,\n formatDate,\n formatThaiId,\n formatThaiPhone,\n LOCALES,\n ThaiDateFormat,\n timeAgo,\n toDateValue,\n toThaiDigits,\n} from '@wirabyte/ui/core';\n\nexport type { ThaiDateFormat };\n\n/**\n * A date in the app's language, with พ.ศ. years in Thai: `{{ born | wuDate }}` → `14 พ.ค. 2555`. Formats:\n * `short` 14/05/2555 · `medium` 14 พ.ค. 2555 (default) · `long` 14 พฤษภาคม 2555 · `full` วันจันทร์ที่ 14 พฤษภาคม พ.ศ. 2555\n * · `time` 09:30 น. · `shortDateTime` · `dateTime`, or a pattern (`'d MMM yy'`, `\"EEEE d MMMM yyyy 'เวลา' HH:mm\"`).\n * Takes a Date, a time in ms or text (`'2012-05-14'` is that day, not UTC midnight). The calendar follows\n * `provideWiraUI({ calendar })` in Thai and is Gregorian in other languages, unless given:\n * `{{ born | wuDate: 'long' : 'gregorian' }}`; a language too: `{{ born | wuDate: 'long' : null : 'en' }}`.\n * Re-renders by itself when the app's language changes (OnPush and zoneless views included).\n */\n@Pipe({ name: 'wuDate', standalone: true, pure: false })\nexport class WuDatePipe implements PipeTransform, OnDestroy {\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n private lastKey = '';\n private lastLocale: unknown = null;\n private lastValue = '';\n\n transform(value: unknown, format: ThaiDateFormat | string = 'medium', calendar?: CalendarSystem | null, lang?: string | null): string {\n const date = toDateValue(value);\n if (!date) return '';\n const own = this.config.translation;\n const language = lang || own.code || 'th';\n const cal: CalendarSystem = calendar || this.config.calendarFor(language);\n const key = `${date.getTime()}|${format}|${cal}|${language}`;\n if (key === this.lastKey && own === this.lastLocale) return this.lastValue;\n const locale = language === own.code ? own : LOCALES[language] || own;\n this.lastKey = key;\n this.lastLocale = own;\n this.lastValue = formatDate(date, datePattern(format || 'medium', language, cal), { locale, calendar: cal });\n return this.lastValue;\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n}\n\n/** How long ago, in the app's language: `{{ sentAt | wuTimeAgo }}` → `5 นาทีที่ผ่านมา`, `เมื่อวาน`, `in 3 days`. */\n@Pipe({ name: 'wuTimeAgo', standalone: true, pure: false })\nexport class WuTimeAgoPipe implements PipeTransform, OnDestroy {\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n transform(value: unknown, lang?: string | null): string {\n return timeAgo(value, lang || this.config.translation.code || 'th', this.config.now());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n}\n\n/** An amount in Thai words, as Excel's BAHTTEXT: `{{ 1250.5 | wuBahtText }}` → `หนึ่งพันสองร้อยห้าสิบบาทห้าสิบสตางค์`. */\n@Pipe({ name: 'wuBahtText', standalone: true })\nexport class WuBahtTextPipe implements PipeTransform {\n transform(value: number | string | null | undefined): string {\n return bahtText(value);\n }\n}\n\n/** A Thai phone number with dashes: `{{ '0812345678' | wuThaiPhone }}` → `081-234-5678` (`+66` too). */\n@Pipe({ name: 'wuThaiPhone', standalone: true })\nexport class WuThaiPhonePipe implements PipeTransform {\n transform(value: unknown, separator = '-'): string {\n return formatThaiPhone(value, separator);\n }\n}\n\n/** A Thai national ID with dashes: `{{ '1103702345679' | wuThaiId }}` → `1-1037-02345-67-9`. */\n@Pipe({ name: 'wuThaiId', standalone: true })\nexport class WuThaiIdPipe implements PipeTransform {\n transform(value: unknown): string {\n return value === null || value === undefined ? '' : formatThaiId(String(value));\n }\n}\n\n/** Thai digits for formal documents: `{{ '2569' | wuThaiDigits }}` → `๒๕๖๙` (works after other pipes too). */\n@Pipe({ name: 'wuThaiDigits', standalone: true })\nexport class WuThaiDigitsPipe implements PipeTransform {\n transform(value: unknown): string {\n return toThaiDigits(value);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuBahtTextPipe, WuDatePipe, WuThaiDigitsPipe, WuThaiIdPipe, WuThaiPhonePipe, WuTimeAgoPipe } from './thai.pipes';\n\nconst PIPES = [WuDatePipe, WuTimeAgoPipe, WuBahtTextPipe, WuThaiPhonePipe, WuThaiIdPipe, WuThaiDigitsPipe];\n\n/** For NgModule apps: every Thai pipe. Standalone apps import the pipes they use (`WuDatePipe` …). */\n@NgModule({\n imports: PIPES,\n exports: PIPES,\n})\nexport class WuThaiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation"],"mappings":";;;;;;AAkBA;;;;;;;;AAQG;MAEU,UAAU,CAAA;AADvB,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;QACzB,IAAA,CAAA,IAAI,GAAGA,qBAAqB,EAAE;QACvC,IAAA,CAAA,OAAO,GAAG,EAAE;QACZ,IAAA,CAAA,UAAU,GAAY,IAAI;QAC1B,IAAA,CAAA,SAAS,GAAG,EAAE;AAoBvB,IAAA;IAlBC,SAAS,CAAC,KAAc,EAAE,MAAA,GAAkC,QAAQ,EAAE,QAAgC,EAAE,IAAoB,EAAA;AAC1H,QAAA,MAAM,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC;AAC/B,QAAA,IAAI,CAAC,IAAI;AAAE,YAAA,OAAO,EAAE;AACpB,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW;QACnC,MAAM,QAAQ,GAAG,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI;AACzC,QAAA,MAAM,GAAG,GAAmB,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC;AACzE,QAAA,MAAM,GAAG,GAAG,CAAA,EAAG,IAAI,CAAC,OAAO,EAAE,CAAA,CAAA,EAAI,MAAM,CAAA,CAAA,EAAI,GAAG,CAAA,CAAA,EAAI,QAAQ,EAAE;QAC5D,IAAI,GAAG,KAAK,IAAI,CAAC,OAAO,IAAI,GAAG,KAAK,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC,SAAS;QAC1E,MAAM,MAAM,GAAG,QAAQ,KAAK,GAAG,CAAC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U,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAA1F,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;gHAO5F,YAAY,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,OAAO,EAAE,KAAK;AACf,iBAAA;;;ACTD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirabyte/ui",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "WiraUI UI components for Angular 21+: familiar API, Thai-first, themable with SCSS, CSS or TypeScript.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ui.wirabyte.com",
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#f59e0b","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#3b82f6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#06b6d4","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#10b981","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#d946ef","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#22c55e","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#6366f1","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#84cc16","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#f97316","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#ec4899","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#a855f7","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#ef4444","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#f43f5e","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#0ea5e9","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#14b8a6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#0a84ff","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#8b5cf6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#1e7ae0","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"glass","primary":"#eab308","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Anuphan","fontSize":14,"lineHeight":1.6,"radius":14,"density":"normal","shadow":"soft","ripple":false,"focusRing":"ring","transition":250,"darkMode":"class","scheme":"light","material":"glass","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#f59e0b","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#3b82f6","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#06b6d4","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#10b981","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#d946ef","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#22c55e","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#6366f1","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#84cc16","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#f97316","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#ec4899","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#a855f7","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#ef4444","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#f43f5e","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#0ea5e9","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#14b8a6","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#0d9488","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#8b5cf6","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
@@ -1,6 +1,6 @@
1
1
  /* ─────────────────────────────────────────────────────────────
2
2
  WiraUI · wiraui.theme.css
3
- Generated by WiraUI 0.1.0 · 04/11/2569 10:07
3
+ Generated by WiraUI 0.1.0 · 16/11/2569 14:35
4
4
  Use: add this file to angular.json → projects.<app>.architect.build.options.styles
5
5
  ───────────────────────────────────────────────────────────── */
6
6
  /* wiraui-config {"v":1,"preset":"lanna","primary":"#1e7ae0","primaryShades":null,"surface":"stone","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#0ea5e9","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Sarabun","fontSize":15,"lineHeight":1.7,"radius":12,"density":"comfortable","shadow":"soft","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */