@wirabyte/ui 2.0.0 → 2.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/esm2022/asidemenu/asidemenu.component.mjs +3 -3
- package/esm2022/chat/chat.component.mjs +2 -2
- package/esm2022/config/options.mjs +1 -1
- package/esm2022/config/wu-config.service.mjs +14 -1
- package/esm2022/datepicker/datepicker.component.mjs +4 -3
- package/esm2022/scheduler/scheduler.component.mjs +8 -7
- package/esm2022/sitefooter/sitefooter.component.mjs +2 -2
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/textarea/textarea.directive.mjs +19 -5
- package/esm2022/thai/thai.pipes.mjs +2 -2
- package/fesm2022/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chat.mjs +1 -1
- package/fesm2022/wirabyte-ui-chat.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-config.mjs +13 -0
- package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-datepicker.mjs +4 -3
- package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scheduler.mjs +7 -6
- package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-table.mjs +2 -2
- package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-textarea.mjs +18 -4
- package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-thai.mjs +1 -1
- package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
- package/package.json +29 -29
- package/scheduler/scheduler.component.d.ts +1 -1
- package/textarea/textarea.directive.d.ts +1 -0
- package/themes/mali/amber.css +1 -1
- package/themes/mali/blue.css +1 -1
- package/themes/mali/cyan.css +1 -1
- package/themes/mali/emerald.css +1 -1
- package/themes/mali/fuchsia.css +1 -1
- package/themes/mali/green.css +1 -1
- package/themes/mali/indigo.css +1 -1
- package/themes/mali/lime.css +1 -1
- package/themes/mali/orange.css +1 -1
- package/themes/mali/pink.css +1 -1
- package/themes/mali/purple.css +1 -1
- package/themes/mali/red.css +1 -1
- package/themes/mali/rose.css +1 -1
- package/themes/mali/sky.css +1 -1
- package/themes/mali/teal.css +1 -1
- package/themes/mali/theme.css +1 -1
- package/themes/mali/violet.css +1 -1
- package/themes/mali/wira.css +1 -1
- package/themes/mali/yellow.css +1 -1
- package/themes/material/amber.css +1 -1
- package/themes/material/blue.css +1 -1
- package/themes/material/cyan.css +1 -1
- package/themes/material/emerald.css +1 -1
- package/themes/material/fuchsia.css +1 -1
- package/themes/material/green.css +1 -1
- package/themes/material/indigo.css +1 -1
- package/themes/material/lime.css +1 -1
- package/themes/material/orange.css +1 -1
- package/themes/material/pink.css +1 -1
- package/themes/material/purple.css +1 -1
- package/themes/material/red.css +1 -1
- package/themes/material/rose.css +1 -1
- package/themes/material/sky.css +1 -1
- package/themes/material/teal.css +1 -1
- package/themes/material/theme.css +1 -1
- package/themes/material/violet.css +1 -1
- package/themes/material/wira.css +1 -1
- package/themes/material/yellow.css +1 -1
- package/themes/phet/amber.css +1 -1
- package/themes/phet/blue.css +1 -1
- package/themes/phet/cyan.css +1 -1
- package/themes/phet/emerald.css +1 -1
- package/themes/phet/fuchsia.css +1 -1
- package/themes/phet/green.css +1 -1
- package/themes/phet/indigo.css +1 -1
- package/themes/phet/lime.css +1 -1
- package/themes/phet/orange.css +1 -1
- package/themes/phet/pink.css +1 -1
- package/themes/phet/purple.css +1 -1
- package/themes/phet/red.css +1 -1
- package/themes/phet/rose.css +1 -1
- package/themes/phet/sky.css +1 -1
- package/themes/phet/teal.css +1 -1
- package/themes/phet/theme.css +1 -1
- package/themes/phet/violet.css +1 -1
- package/themes/phet/wira.css +1 -1
- package/themes/phet/yellow.css +1 -1
- package/themes/sila/amber.css +1 -1
- package/themes/sila/blue.css +1 -1
- package/themes/sila/cyan.css +1 -1
- package/themes/sila/emerald.css +1 -1
- package/themes/sila/fuchsia.css +1 -1
- package/themes/sila/green.css +1 -1
- package/themes/sila/indigo.css +1 -1
- package/themes/sila/lime.css +1 -1
- package/themes/sila/orange.css +1 -1
- package/themes/sila/pink.css +1 -1
- package/themes/sila/purple.css +1 -1
- package/themes/sila/red.css +1 -1
- package/themes/sila/rose.css +1 -1
- package/themes/sila/sky.css +1 -1
- package/themes/sila/teal.css +1 -1
- package/themes/sila/theme.css +1 -1
- package/themes/sila/violet.css +1 -1
- package/themes/sila/wira.css +1 -1
- package/themes/sila/yellow.css +1 -1
|
@@ -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
|
|
33
|
+
// width changes how the text wraps. Its own height changes do not count.
|
|
33
34
|
if (typeof ResizeObserver !== 'undefined') {
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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
|
|
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,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;QAC1D,IAAA,CAAA,MAAM,GAAG,KAAK,EAAe;AAC7B,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAiB,UAAU,CAAC;QAC3C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;QACrD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;;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,CAAC;QACV,IAAA,CAAA,KAAK,GAAG,CAAC;AAGf,QAAAA,uBAAuB,CAAC,MAAM,CAACC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3E,MAAM,CAACC,cAAc,CAAC,CAAC,IAAI,CAAC,WAAW,EAAEC,iBAAiB,CAAC;IAC7D;IAEA,eAAe,GAAA;QACb,IAAI,CAAC,MAAM,EAAE;QACb,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC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AA,4BAA4B,EAAE,SAAS;AACvC,wBAAA,oBAAoB,EAAE,WAAW;AACjC,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,mBAAmB,EAAE,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;;"}
|
|
@@ -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,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,IAAI,GAAG,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,GAAG;AACrE,QAAA,IAAI,CAAC,OAAO,GAAG,GAAG;AAClB,QAAA,IAAI,CAAC,UAAU,GAAG,GAAG;QACrB,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,IAAI,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;QAC5G,OAAO,IAAI,CAAC,SAAS;IACvB;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;IACzB;+GAxBW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAV,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;;AA4BvD;MAEa,aAAa,CAAA;AAD1B,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;QACzB,IAAA,CAAA,IAAI,GAAGA,qBAAqB,EAAE;AAShD,IAAA;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":["ɵ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,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,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;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirabyte/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "WiraUI UI components for Angular 18–20: familiar API, Thai-first, themable with SCSS, CSS or TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://ui.wirabyte.com",
|
|
@@ -73,17 +73,11 @@
|
|
|
73
73
|
"esm": "./esm2022/accordion/wirabyte-ui-accordion.mjs",
|
|
74
74
|
"default": "./fesm2022/wirabyte-ui-accordion.mjs"
|
|
75
75
|
},
|
|
76
|
-
"./
|
|
77
|
-
"types": "./
|
|
78
|
-
"esm2022": "./esm2022/
|
|
79
|
-
"esm": "./esm2022/
|
|
80
|
-
"default": "./fesm2022/wirabyte-ui-
|
|
81
|
-
},
|
|
82
|
-
"./api": {
|
|
83
|
-
"types": "./api/index.d.ts",
|
|
84
|
-
"esm2022": "./esm2022/api/wirabyte-ui-api.mjs",
|
|
85
|
-
"esm": "./esm2022/api/wirabyte-ui-api.mjs",
|
|
86
|
-
"default": "./fesm2022/wirabyte-ui-api.mjs"
|
|
76
|
+
"./animate": {
|
|
77
|
+
"types": "./animate/index.d.ts",
|
|
78
|
+
"esm2022": "./esm2022/animate/wirabyte-ui-animate.mjs",
|
|
79
|
+
"esm": "./esm2022/animate/wirabyte-ui-animate.mjs",
|
|
80
|
+
"default": "./fesm2022/wirabyte-ui-animate.mjs"
|
|
87
81
|
},
|
|
88
82
|
"./asidemenu": {
|
|
89
83
|
"types": "./asidemenu/index.d.ts",
|
|
@@ -97,23 +91,17 @@
|
|
|
97
91
|
"esm": "./esm2022/autocomplete/wirabyte-ui-autocomplete.mjs",
|
|
98
92
|
"default": "./fesm2022/wirabyte-ui-autocomplete.mjs"
|
|
99
93
|
},
|
|
100
|
-
"./animate": {
|
|
101
|
-
"types": "./animate/index.d.ts",
|
|
102
|
-
"esm2022": "./esm2022/animate/wirabyte-ui-animate.mjs",
|
|
103
|
-
"esm": "./esm2022/animate/wirabyte-ui-animate.mjs",
|
|
104
|
-
"default": "./fesm2022/wirabyte-ui-animate.mjs"
|
|
105
|
-
},
|
|
106
94
|
"./avatar": {
|
|
107
95
|
"types": "./avatar/index.d.ts",
|
|
108
96
|
"esm2022": "./esm2022/avatar/wirabyte-ui-avatar.mjs",
|
|
109
97
|
"esm": "./esm2022/avatar/wirabyte-ui-avatar.mjs",
|
|
110
98
|
"default": "./fesm2022/wirabyte-ui-avatar.mjs"
|
|
111
99
|
},
|
|
112
|
-
"./
|
|
113
|
-
"types": "./
|
|
114
|
-
"esm2022": "./esm2022/
|
|
115
|
-
"esm": "./esm2022/
|
|
116
|
-
"default": "./fesm2022/wirabyte-ui-
|
|
100
|
+
"./alert": {
|
|
101
|
+
"types": "./alert/index.d.ts",
|
|
102
|
+
"esm2022": "./esm2022/alert/wirabyte-ui-alert.mjs",
|
|
103
|
+
"esm": "./esm2022/alert/wirabyte-ui-alert.mjs",
|
|
104
|
+
"default": "./fesm2022/wirabyte-ui-alert.mjs"
|
|
117
105
|
},
|
|
118
106
|
"./blockui": {
|
|
119
107
|
"types": "./blockui/index.d.ts",
|
|
@@ -121,6 +109,18 @@
|
|
|
121
109
|
"esm": "./esm2022/blockui/wirabyte-ui-blockui.mjs",
|
|
122
110
|
"default": "./fesm2022/wirabyte-ui-blockui.mjs"
|
|
123
111
|
},
|
|
112
|
+
"./badge": {
|
|
113
|
+
"types": "./badge/index.d.ts",
|
|
114
|
+
"esm2022": "./esm2022/badge/wirabyte-ui-badge.mjs",
|
|
115
|
+
"esm": "./esm2022/badge/wirabyte-ui-badge.mjs",
|
|
116
|
+
"default": "./fesm2022/wirabyte-ui-badge.mjs"
|
|
117
|
+
},
|
|
118
|
+
"./api": {
|
|
119
|
+
"types": "./api/index.d.ts",
|
|
120
|
+
"esm2022": "./esm2022/api/wirabyte-ui-api.mjs",
|
|
121
|
+
"esm": "./esm2022/api/wirabyte-ui-api.mjs",
|
|
122
|
+
"default": "./fesm2022/wirabyte-ui-api.mjs"
|
|
123
|
+
},
|
|
124
124
|
"./bottombar": {
|
|
125
125
|
"types": "./bottombar/index.d.ts",
|
|
126
126
|
"esm2022": "./esm2022/bottombar/wirabyte-ui-bottombar.mjs",
|
|
@@ -415,6 +415,12 @@
|
|
|
415
415
|
"esm": "./esm2022/metergroup/wirabyte-ui-metergroup.mjs",
|
|
416
416
|
"default": "./fesm2022/wirabyte-ui-metergroup.mjs"
|
|
417
417
|
},
|
|
418
|
+
"./multiselect": {
|
|
419
|
+
"types": "./multiselect/index.d.ts",
|
|
420
|
+
"esm2022": "./esm2022/multiselect/wirabyte-ui-multiselect.mjs",
|
|
421
|
+
"esm": "./esm2022/multiselect/wirabyte-ui-multiselect.mjs",
|
|
422
|
+
"default": "./fesm2022/wirabyte-ui-multiselect.mjs"
|
|
423
|
+
},
|
|
418
424
|
"./navbar": {
|
|
419
425
|
"types": "./navbar/index.d.ts",
|
|
420
426
|
"esm2022": "./esm2022/navbar/wirabyte-ui-navbar.mjs",
|
|
@@ -433,12 +439,6 @@
|
|
|
433
439
|
"esm": "./esm2022/organizationchart/wirabyte-ui-organizationchart.mjs",
|
|
434
440
|
"default": "./fesm2022/wirabyte-ui-organizationchart.mjs"
|
|
435
441
|
},
|
|
436
|
-
"./multiselect": {
|
|
437
|
-
"types": "./multiselect/index.d.ts",
|
|
438
|
-
"esm2022": "./esm2022/multiselect/wirabyte-ui-multiselect.mjs",
|
|
439
|
-
"esm": "./esm2022/multiselect/wirabyte-ui-multiselect.mjs",
|
|
440
|
-
"default": "./fesm2022/wirabyte-ui-multiselect.mjs"
|
|
441
|
-
},
|
|
442
442
|
"./paginator": {
|
|
443
443
|
"types": "./paginator/index.d.ts",
|
|
444
444
|
"esm2022": "./esm2022/paginator/wirabyte-ui-paginator.mjs",
|
|
@@ -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();
|
package/themes/mali/amber.css
CHANGED
|
@@ -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":"mali","primary":"#f59e0b","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/blue.css
CHANGED
|
@@ -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":"mali","primary":"#3b82f6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/cyan.css
CHANGED
|
@@ -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":"mali","primary":"#06b6d4","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/emerald.css
CHANGED
|
@@ -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":"mali","primary":"#10b981","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/fuchsia.css
CHANGED
|
@@ -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":"mali","primary":"#d946ef","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/green.css
CHANGED
|
@@ -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":"mali","primary":"#22c55e","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/indigo.css
CHANGED
|
@@ -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":"mali","primary":"#6366f1","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/lime.css
CHANGED
|
@@ -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":"mali","primary":"#84cc16","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/orange.css
CHANGED
|
@@ -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":"mali","primary":"#f97316","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/pink.css
CHANGED
|
@@ -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":"mali","primary":"#ec4899","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/purple.css
CHANGED
|
@@ -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":"mali","primary":"#a855f7","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/red.css
CHANGED
|
@@ -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":"mali","primary":"#ef4444","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/rose.css
CHANGED
|
@@ -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":"mali","primary":"#f43f5e","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/sky.css
CHANGED
|
@@ -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":"mali","primary":"#0ea5e9","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/teal.css
CHANGED
|
@@ -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":"mali","primary":"#14b8a6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/theme.css
CHANGED
|
@@ -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":"mali","primary":"#10b981","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/violet.css
CHANGED
|
@@ -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":"mali","primary":"#8b5cf6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/wira.css
CHANGED
|
@@ -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":"mali","primary":"#1e7ae0","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/mali/yellow.css
CHANGED
|
@@ -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":"mali","primary":"#eab308","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#10b981","info":"#0ea5e9","warn":"#f97316","danger":"#f43f5e","help":"#8b5cf6"},"fontFamily":"Kanit","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"mali","ripple":false,"focusRing":"outline","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","primary":"#f59e0b","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/material/blue.css
CHANGED
|
@@ -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","primary":"#3b82f6","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/material/cyan.css
CHANGED
|
@@ -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","primary":"#06b6d4","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"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","primary":"#10b981","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"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","primary":"#d946ef","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"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","primary":"#22c55e","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"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","primary":"#6366f1","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|
package/themes/material/lime.css
CHANGED
|
@@ -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","primary":"#84cc16","primaryShades":null,"surface":"slate","primaryContrast":null,"semantic":{"success":"#4caf50","info":"#2196f3","warn":"#ff9800","danger":"#f44336","help":"#9c27b0"},"fontFamily":"Roboto","fontSize":16,"lineHeight":1.5,"radius":6,"density":"normal","shadow":"material","ripple":true,"focusRing":"inset","transition":200,"darkMode":"class","scheme":"light","material":"solid","components":{}} */
|