@kengcom202/kcore-ui 0.6.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengcom202/kcore-ui",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Angular UI กลาง: ช่องเลือกวันที่แบบ พ.ศ., ช่องเลือกเวลาแบบหน้าปัด, dropdown ค้นหาได้, ตัวแก้ข้อความไทยที่คัดลอกจาก PDF และชุดหน้าเข้าสู่ระบบ/ลงทะเบียน/ข้อมูลส่วนตัว/config (ไม่พึ่งไลบรารีภายนอก)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -893,6 +893,8 @@ interface UserEdit extends KcConfigUserUpdate {
893
893
  * ค้นหา แล้วคลิกแถวเพื่อแก้ ชื่อผู้ใช้ / ระดับผู้ใช้ / สถานะ / หน่วยงาน / ตั้งรหัสผ่านใหม่
894
894
  * ไม่มีการลบ — ใช้ "ระงับการใช้งาน" แทน และแก้ระดับ/สถานะของตัวเองไม่ได้ (กันผู้ดูแลล็อกตัวเองออก)
895
895
  * GET {api}/config/users → { users, orgs, roles }, PUT {api}/config/users/{id} ← KcConfigUserUpdate
896
+ * [org] (ไม่บังคับ) — หน่วยงานที่จะดู ส่งเป็น ?org= (เช่นจากตัวเลือกหน่วยงานบน header ของโปรเจกต์) เปลี่ยนค่า = โหลดใหม่
897
+ * API ตัดสินเองว่าผู้เรียกดูหน่วยงานนั้นได้ไหม
896
898
  * ส่วนบน: เปิด/ปิดวิธีเข้าสู่ระบบ (รหัสผ่าน / SSO / ThaiD ที่ provideKcAuth เปิดไว้) ห้ามปิดหมด
897
899
  * GET {api}/user/login-methods → KcLoginMethods, PUT {api}/config/login-methods ← KcLoginMethods (ไม่มี endpoint = ซ่อนส่วนนี้)
898
900
  */
@@ -900,6 +902,8 @@ export declare class KcConfigUsersComponent implements OnInit {
900
902
  protected readonly config: import("@kengcom202/kcore-ui").KcAuthConfig;
901
903
  private readonly auth;
902
904
  private readonly http;
905
+ /** หน่วยงานที่จะดู ('' = ให้ API เลือกเอง เช่นหน่วยงานของผู้เรียก) — ส่งเป็น ?org= */
906
+ readonly org: import("@angular/core").InputSignal<string>;
903
907
  protected readonly users: import("@angular/core").WritableSignal<KcConfigUser[]>;
904
908
  protected readonly orgs: import("@angular/core").WritableSignal<SearchOption[]>;
905
909
  protected readonly roles: import("@angular/core").WritableSignal<SearchOption[]>;
@@ -943,7 +947,13 @@ export declare class KcConfigUsersComponent implements OnInit {
943
947
  protected close(): void;
944
948
  protected save(): void;
945
949
  static ɵfac: i0.ɵɵFactoryDeclaration<KcConfigUsersComponent, never>;
946
- static ɵcmp: i0.ɵɵComponentDeclaration<KcConfigUsersComponent, "kc-config-users", never, {}, {}, never, never, true, never>;
950
+ static ɵcmp: i0.ɵɵComponentDeclaration<KcConfigUsersComponent, "kc-config-users", never, {
951
+ "org": {
952
+ "alias": "org";
953
+ "required": false;
954
+ "isSignal": true;
955
+ };
956
+ }, {}, never, never, true, never>;
947
957
  }
948
958
  /**
949
959
  * หน้า config › ข้อมูลอ้างอิง (ตาราง kcllu) เฉพาะผู้ดูแล — วางใน layout ของโปรเจกต์พร้อม canActivate: [kcAdminGuard]