@wirabyte/ui 1.0.0 → 1.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.
- package/CHANGELOG.md +17 -0
- package/config/options.d.ts +7 -0
- package/config/wu-config.service.d.ts +10 -0
- package/datepicker/datepicker.component.d.ts +2 -1
- package/esm2020/asidemenu/asidemenu.component.mjs +3 -3
- package/esm2020/chat/chat.component.mjs +2 -2
- package/esm2020/config/options.mjs +1 -1
- package/esm2020/config/wu-config.service.mjs +14 -1
- package/esm2020/datepicker/datepicker.component.mjs +4 -3
- package/esm2020/scheduler/scheduler.component.mjs +8 -7
- package/esm2020/sitefooter/sitefooter.component.mjs +2 -2
- package/esm2020/table/table.component.mjs +3 -3
- package/esm2020/textarea/textarea.directive.mjs +19 -5
- package/esm2020/thai/thai.pipes.mjs +2 -2
- package/fesm2015/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-chat.mjs +1 -1
- package/fesm2015/wirabyte-ui-chat.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-config.mjs +13 -0
- package/fesm2015/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-datepicker.mjs +4 -3
- package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-scheduler.mjs +7 -6
- package/fesm2015/wirabyte-ui-scheduler.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-table.mjs +2 -2
- package/fesm2015/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-textarea.mjs +18 -4
- package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-thai.mjs +1 -1
- package/fesm2015/wirabyte-ui-thai.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-chat.mjs +1 -1
- package/fesm2020/wirabyte-ui-chat.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-config.mjs +13 -0
- package/fesm2020/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-datepicker.mjs +4 -3
- package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-scheduler.mjs +7 -6
- package/fesm2020/wirabyte-ui-scheduler.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-table.mjs +2 -2
- package/fesm2020/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-textarea.mjs +18 -4
- package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-thai.mjs +1 -1
- package/fesm2020/wirabyte-ui-thai.mjs.map +1 -1
- package/package.json +1 -1
- package/scheduler/scheduler.component.d.ts +1 -1
- package/textarea/textarea.directive.d.ts +1 -0
- package/themes/arun-blue/theme.css +1 -1
- package/themes/arun-green/theme.css +1 -1
- package/themes/arun-orange/theme.css +1 -1
- package/themes/arun-purple/theme.css +1 -1
- package/themes/md-dark-deeppurple/theme.css +1 -1
- package/themes/md-dark-indigo/theme.css +1 -1
- package/themes/md-light-deeppurple/theme.css +1 -1
- package/themes/md-light-indigo/theme.css +1 -1
- package/themes/ratri-blue/theme.css +1 -1
- package/themes/ratri-green/theme.css +1 -1
- package/themes/ratri-orange/theme.css +1 -1
- package/themes/ratri-purple/theme.css +1 -1
- package/themes/sayan-blue/theme.css +1 -1
- package/themes/sayan-green/theme.css +1 -1
- package/themes/sayan-orange/theme.css +1 -1
- package/themes/sayan-purple/theme.css +1 -1
- package/themes/sila-dark-blue/theme.css +1 -1
- package/themes/sila-dark-indigo/theme.css +1 -1
- package/themes/sila-dark-purple/theme.css +1 -1
- package/themes/sila-dark-teal/theme.css +1 -1
- package/themes/sila-light-blue/theme.css +1 -1
- package/themes/sila-light-indigo/theme.css +1 -1
- package/themes/sila-light-purple/theme.css +1 -1
- package/themes/sila-light-teal/theme.css +1 -1
- package/themes/sila-light-wira/theme.css +1 -1
|
@@ -25,6 +25,7 @@ class WuTextarea {
|
|
|
25
25
|
this.el = inject(ElementRef);
|
|
26
26
|
this.ngControl = inject(NgControl, { optional: true, self: true });
|
|
27
27
|
this.width = -1;
|
|
28
|
+
this.frame = 0;
|
|
28
29
|
ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));
|
|
29
30
|
inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);
|
|
30
31
|
}
|
|
@@ -34,16 +35,27 @@ class WuTextarea {
|
|
|
34
35
|
if (changes)
|
|
35
36
|
this.sub = changes.subscribe(() => setTimeout(() => this.resize()));
|
|
36
37
|
// Hidden at first (a closed dialog, a collapsed panel), it measured 0: size it once it shows, and again when its
|
|
37
|
-
// width changes how the text wraps. Its own height changes do not count
|
|
38
|
+
// width changes how the text wraps. Its own height changes do not count.
|
|
38
39
|
if (typeof ResizeObserver !== 'undefined') {
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
const t = this.el.nativeElement;
|
|
41
|
+
const observer = new ResizeObserver(() => {
|
|
42
|
+
const width = t.clientWidth;
|
|
41
43
|
if (width === this.width)
|
|
42
44
|
return;
|
|
43
45
|
this.width = width;
|
|
46
|
+
// Resizing a watched element inside its own callback leaves a notification undelivered, and the browser
|
|
47
|
+
// reports a "ResizeObserver loop" error (WUI-022). So stop watching while it grows, and watch again from
|
|
48
|
+
// the next frame. It still grows in this frame, and the first notification after that sees the same width.
|
|
49
|
+
observer.unobserve(t);
|
|
44
50
|
this.resize();
|
|
51
|
+
cancelAnimationFrame(this.frame);
|
|
52
|
+
this.frame = requestAnimationFrame(() => {
|
|
53
|
+
this.frame = 0;
|
|
54
|
+
observer.observe(t);
|
|
55
|
+
});
|
|
45
56
|
});
|
|
46
|
-
|
|
57
|
+
observer.observe(t);
|
|
58
|
+
this.observer = observer;
|
|
47
59
|
}
|
|
48
60
|
}
|
|
49
61
|
ngDoCheck() {
|
|
@@ -58,6 +70,8 @@ class WuTextarea {
|
|
|
58
70
|
this.sub.unsubscribe();
|
|
59
71
|
if (this.observer)
|
|
60
72
|
this.observer.disconnect();
|
|
73
|
+
if (this.frame)
|
|
74
|
+
cancelAnimationFrame(this.frame);
|
|
61
75
|
}
|
|
62
76
|
resize() {
|
|
63
77
|
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, Directive, DoCheck, ElementRef, inject, Input, OnDestroy } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵtoBool, ɵ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-inputtextarea p-inputtext p-component p-element',\n '[class.wu-textarea-autoresize]': 'autoResize',\n '[class.p-inputtextarea-resizable]': 'autoResize',\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 @Input() set autoResize(v: unknown) { this._autoResize = ɵtoBool(v); }\n get autoResize(): boolean { return this._autoResize; }\n @Input() wuSize?: WuInputSize;\n @Input() variant: WuInputVariant = 'outlined';\n @Input() set fluid(v: unknown) { this._fluid = ɵtoBool(v); }\n get fluid(): boolean { return this._fluid; }\n @Input() set invalid(v: unknown) { this._invalid = ɵtoBool(v); }\n get invalid(): boolean { return this._invalid; }\n\n /** True while the field has a value; floating labels read the `wu-filled` / `p-filled` class. */\n filled = false;\n private _autoResize = false;\n private _fluid = false;\n private _invalid = 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
|
|
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, Directive, DoCheck, ElementRef, inject, Input, OnDestroy } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵtoBool, ɵ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-inputtextarea p-inputtext p-component p-element',\n '[class.wu-textarea-autoresize]': 'autoResize',\n '[class.p-inputtextarea-resizable]': 'autoResize',\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 @Input() set autoResize(v: unknown) { this._autoResize = ɵtoBool(v); }\n get autoResize(): boolean { return this._autoResize; }\n @Input() wuSize?: WuInputSize;\n @Input() variant: WuInputVariant = 'outlined';\n @Input() set fluid(v: unknown) { this._fluid = ɵtoBool(v); }\n get fluid(): boolean { return this._fluid; }\n @Input() set invalid(v: unknown) { this._invalid = ɵtoBool(v); }\n get invalid(): boolean { return this._invalid; }\n\n /** True while the field has a value; floating labels read the `wu-filled` / `p-filled` class. */\n filled = false;\n private _autoResize = false;\n private _fluid = false;\n private _invalid = 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":[],"mappings":";;;;;;AAMA;;;AAGG;MAmBU,UAAU,CAAA;AACrB,IAAA,IAAa,UAAU,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A,OAAA,EAAA,CAHjB,UAAU,CAAA,EAAA,OAAA,EAAA,CACV,UAAU,CAAA,EAAA,CAAA,CAAA;+GAET,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,CAAA;;;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":[],"mappings":";;;;;;AAkBA;;;;;;;;AAQG;MAEU,UAAU,CAAA;AADvB,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC1B,IAAI,CAAA,IAA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,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QAC7G,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IAED,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;KACzB;;wGAxBU,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;sGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB,IAAI;mBAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;;AA4BvD;MAEa,aAAa,CAAA;AAD1B,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC1B,IAAI,CAAA,IAAA,GAAG,qBAAqB,EAAE,CAAC;AASjD,KAAA;IAPC,SAAS,CAAC,KAAc,EAAE,IAAoB,EAAA;
|
|
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":[],"mappings":";;;;;;AAkBA;;;;;;;;AAQG;MAEU,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AAY,EAAE,gBAAgB,CAA1F,EAAA,OAAA,EAAA,CAAA,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;2GAO5F,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,CAAA;;;ACTD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -55,6 +55,7 @@ export declare class WuScheduler implements OnDestroy {
|
|
|
55
55
|
readonly onEventChange: EventEmitter<WuSchedulerEventChangeEvent>;
|
|
56
56
|
protected templates?: QueryList<WuTemplate>;
|
|
57
57
|
protected eventRef?: unknown;
|
|
58
|
+
private readonly config;
|
|
58
59
|
private _events;
|
|
59
60
|
private _view;
|
|
60
61
|
private _date;
|
|
@@ -68,7 +69,6 @@ export declare class WuScheduler implements OnDestroy {
|
|
|
68
69
|
private now;
|
|
69
70
|
private readonly timer;
|
|
70
71
|
private readonly cdr;
|
|
71
|
-
private readonly config;
|
|
72
72
|
private readonly i18n;
|
|
73
73
|
private readonly translated;
|
|
74
74
|
constructor();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"arun","primary":"#2196f3","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","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 ·
|
|
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":"arun","primary":"#4caf50","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","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 ·
|
|
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":"arun","primary":"#ffc107","primaryShades":null,"surface":"classic","primaryContrast":"#212529","semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","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 ·
|
|
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":"arun","primary":"#9c27b0","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","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 ·
|
|
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":"material-classic","primary":"#673ab7","primaryShades":null,"surface":"ratri","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":4,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"material-classic","primary":"#3f51b5","primaryShades":null,"surface":"ratri","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":4,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"material-classic","primary":"#673ab7","primaryShades":null,"surface":"gray","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":4,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","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 ·
|
|
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":"material-classic","primary":"#3f51b5","primaryShades":null,"surface":"gray","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":4,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","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 ·
|
|
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":"ratri","primary":"#2196f3","primaryShades":null,"surface":"ratri","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"ratri","primary":"#4caf50","primaryShades":null,"surface":"ratri","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"ratri","primary":"#ffc107","primaryShades":null,"surface":"ratri","primaryContrast":"#212529","semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"ratri","primary":"#9c27b0","primaryShades":null,"surface":"ratri","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sayan","primary":"#2196f3","primaryShades":null,"surface":"sayan","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sayan","primary":"#4caf50","primaryShades":null,"surface":"sayan","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sayan","primary":"#ffc107","primaryShades":null,"surface":"sayan","primaryContrast":"#212529","semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sayan","primary":"#9c27b0","primaryShades":null,"surface":"sayan","primaryContrast":null,"semantic":{"success":"#689f38","info":"#0288d1","warn":"#fbc02d","danger":"#d32f2f","help":"#9c27b0"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":3,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sila-classic","primary":"#3b82f6","primaryShades":null,"surface":"navy","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sila-classic","primary":"#6366f1","primaryShades":null,"surface":"navy","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sila-classic","primary":"#8b5cf6","primaryShades":null,"surface":"navy","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sila-classic","primary":"#14b8a6","primaryShades":null,"surface":"navy","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"dark","material":"solid","components":{}} */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ─────────────────────────────────────────────────────────────
|
|
2
2
|
WiraUI · wiraui.theme.css
|
|
3
|
-
Generated by WiraUI 0.1.0 ·
|
|
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":"sila-classic","primary":"#3b82f6","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","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 ·
|
|
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":"sila-classic","primary":"#6366f1","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","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 ·
|
|
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":"sila-classic","primary":"#8b5cf6","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","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 ·
|
|
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":"sila-classic","primary":"#14b8a6","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","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 ·
|
|
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":"sila-classic","primary":"#00a86b","primaryShades":null,"surface":"classic","primaryContrast":null,"semantic":{"success":"#22c55e","info":"#3b82f6","warn":"#f59e0b","danger":"#ef4444","help":"#a855f7"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":false,"focusRing":"ring","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|