@kengcom202/kcore-ui 0.2.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,15 @@
1
1
  # @kengcom202/kcore-ui
2
2
 
3
- Angular 22 UI กลาง — ไม่พึ่งไลบรารีภายนอก (peer deps: `@angular/core`, `@angular/forms`)
3
+ Angular 22 UI กลาง — ไม่พึ่งไลบรารีภายนอก (peer deps: `@angular/core`, `@angular/forms`, `@angular/common`, `@angular/router`, `rxjs`)
4
4
 
5
5
  - `[appDatePicker]` — ช่องเลือกวันที่ แสดง พ.ศ. ค่าใน form control เป็น ค.ศ. `yyyy-MM-dd`
6
6
  - `[appClockPicker]` — ช่องเลือกเวลาแบบหน้าปัด ค่า `HH:mm`
7
7
  - `<app-thai-date-picker>` — date picker แบบมือถือ (ปุ่ม + bottom sheet) ค่า ค.ศ. `yyyy-MM-dd`
8
8
  - `<app-search-select>` — dropdown พิมพ์ค้นหาได้ ค่าเป็น `value` ของ `SearchOption` (`''` = ไม่ระบุ) ปรับสีด้วย `--kc-ss-*`
9
- - utils: `toBuddhistText`, `toChristianText`, `parseDate`, `formatDate`
9
+ - `provideThaiPasteFix()` — ใส่ใน `app.config.ts` ครั้งเดียว แก้ข้อความไทยที่คัดลอกจาก PDF (□ แทนวรรณยุกต์, ช่องว่างหน้าวรรณยุกต์, "ํา") ตอนวางลงทุกช่อง
10
+ - หน้าบัญชีผู้ใช้กลาง — `provideKcAuth({...})` + `kcAuthInterceptor` + `kcAuthRoutes()` (`/login`, `/register`, `/sso-callback`, `/thaid-callback`) — ปุ่ม SSO (`sso`) และ ThaiD (`thaid` เข้าสู่ระบบอย่างเดียว)
11
+ และ `<kc-profile>`, `<kc-config-users>`, `<kc-config-kcllu>` คู่กับ `kcAuthGuard` / `kcAdminGuard`, `KcAuthService` — API ต้องทำ endpoint ตามสัญญาใน README ของรีโป kcore
12
+ - utils: `toBuddhistText`, `toChristianText`, `parseDate`, `formatDate`, `fixThaiText`
10
13
 
11
14
  ```ts
12
15
  import { ClockPickerDirective, DatePickerDirective, SearchSelectComponent } from '@kengcom202/kcore-ui';