@brggroup/share-lib 0.2.27 → 0.2.28

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.
@@ -14820,7 +14820,7 @@ class LayoutUser extends BaseComponent {
14820
14820
  this.isXSmall = result.matches;
14821
14821
  });
14822
14822
  this.settingService.getByCodeAnonymous('SYSTEM_ONE_USER_MULTI_ORGS').then((res) => {
14823
- if (res?.Data && res.Data == '1') {
14823
+ if (res?.Data && res.Data == 1) {
14824
14824
  this.isOneUserMultiOrgs = true;
14825
14825
  this.getLstOrg();
14826
14826
  }
@@ -16964,9 +16964,9 @@ class LoginComponent extends BaseComponent {
16964
16964
  });
16965
16965
  this.settingService.getByCodeAnonymous('SYSTEM_MODULE_IN_USE').then((res) => (this.MODULE_IN_USE = res?.Data == 1));
16966
16966
  this.settingService.getByCodeAnonymous('SYSTEM_NAME_LOGIN').then((res) => (this.SYSTEM_NAME_LOGIN = res?.Data));
16967
- this.settingService.getByCodeAnonymous('ONE_USER_MULTI_ORGS').then((res) => {
16967
+ this.settingService.getByCodeAnonymous('SYSTEM_ONE_USER_MULTI_ORGS').then((res) => {
16968
16968
  if (res?.Data) {
16969
- if (res.Data == '1') {
16969
+ if (res.Data == 1) {
16970
16970
  this.isOneUserMultiOrgs = true;
16971
16971
  this.loginForm.get('orgid')?.setValidators([Validators.required]);
16972
16972
  this.getLstOrg();
@@ -17032,7 +17032,8 @@ class LoginComponent extends BaseComponent {
17032
17032
  if (orgIdSelectedBefor && this.lstOrg.find((x) => x.App_Org_Id == orgIdSelectedBefor)) {
17033
17033
  this.loginForm.controls['orgid']?.setValue(orgIdSelectedBefor);
17034
17034
  }
17035
- else if (this.lstOrg.length > 0 && (!currentOrgId || !this.lstOrg.find((x) => x.App_Org_Id == currentOrgId))) {
17035
+ else if (this.lstOrg.length > 0 &&
17036
+ (!currentOrgId || !this.lstOrg.find((x) => x.App_Org_Id == currentOrgId))) {
17036
17037
  this.loginForm.controls['orgid']?.setValue(this.lstOrg[0].App_Org_Id);
17037
17038
  }
17038
17039
  }
@@ -17056,7 +17057,9 @@ class LoginComponent extends BaseComponent {
17056
17057
  return;
17057
17058
  }
17058
17059
  }
17059
- if (this.isOneUserMultiOrgs && !this.loginForm.controls['orgid']?.value && this.loginForm.controls['username']?.value) {
17060
+ if (this.isOneUserMultiOrgs &&
17061
+ !this.loginForm.controls['orgid']?.value &&
17062
+ this.loginForm.controls['username']?.value) {
17060
17063
  await this.getLstOrg();
17061
17064
  }
17062
17065
  for (const i in this.loginForm.controls) {
@@ -17159,9 +17162,9 @@ class Login1Component extends BaseComponent {
17159
17162
  .subscribe((val) => this.onUsernameChangedForSsoDiscovery(val));
17160
17163
  this.settingService.getByCodeAnonymous('SYSTEM_MODULE_IN_USE').then((res) => (this.MODULE_IN_USE = res?.Data == 1));
17161
17164
  this.settingService.getByCodeAnonymous('SYSTEM_NAME_LOGIN').then((res) => (this.SYSTEM_NAME_LOGIN = res?.Data));
17162
- this.settingService.getByCodeAnonymous('ONE_USER_MULTI_ORGS').then((res) => {
17165
+ this.settingService.getByCodeAnonymous('SYSTEM_ONE_USER_MULTI_ORGS').then((res) => {
17163
17166
  if (res?.Data) {
17164
- if (res.Data == '1') {
17167
+ if (res.Data == 1) {
17165
17168
  this.isOneUserMultiOrgs = true;
17166
17169
  this.loginForm.get('orgid')?.setValidators([Validators.required]);
17167
17170
  this.getLstOrg();
@@ -17227,7 +17230,8 @@ class Login1Component extends BaseComponent {
17227
17230
  if (orgIdSelectedBefor && this.lstOrg.find((x) => x.App_Org_Id == orgIdSelectedBefor)) {
17228
17231
  this.loginForm.controls['orgid']?.setValue(orgIdSelectedBefor);
17229
17232
  }
17230
- else if (this.lstOrg.length > 0 && (!currentOrgId || !this.lstOrg.find((x) => x.App_Org_Id == currentOrgId))) {
17233
+ else if (this.lstOrg.length > 0 &&
17234
+ (!currentOrgId || !this.lstOrg.find((x) => x.App_Org_Id == currentOrgId))) {
17231
17235
  this.loginForm.controls['orgid']?.setValue(this.lstOrg[0].App_Org_Id);
17232
17236
  }
17233
17237
  }
@@ -17251,7 +17255,9 @@ class Login1Component extends BaseComponent {
17251
17255
  return;
17252
17256
  }
17253
17257
  }
17254
- if (this.isOneUserMultiOrgs && !this.loginForm.controls['orgid']?.value && this.loginForm.controls['username']?.value) {
17258
+ if (this.isOneUserMultiOrgs &&
17259
+ !this.loginForm.controls['orgid']?.value &&
17260
+ this.loginForm.controls['username']?.value) {
17255
17261
  await this.getLstOrg();
17256
17262
  }
17257
17263
  for (const i in this.loginForm.controls) {
@@ -17354,9 +17360,9 @@ class Login2Component extends BaseComponent {
17354
17360
  .subscribe((val) => this.onUsernameChangedForSsoDiscovery(val));
17355
17361
  this.settingService.getByCodeAnonymous('SYSTEM_MODULE_IN_USE').then((res) => (this.MODULE_IN_USE = res?.Data == 1));
17356
17362
  this.settingService.getByCodeAnonymous('SYSTEM_NAME_LOGIN').then((res) => (this.SYSTEM_NAME_LOGIN = res?.Data));
17357
- this.settingService.getByCodeAnonymous('ONE_USER_MULTI_ORGS').then((res) => {
17363
+ this.settingService.getByCodeAnonymous('SYSTEM_ONE_USER_MULTI_ORGS').then((res) => {
17358
17364
  if (res?.Data) {
17359
- if (res.Data == '1') {
17365
+ if (res.Data == 1) {
17360
17366
  this.isOneUserMultiOrgs = true;
17361
17367
  this.loginForm.get('orgid')?.setValidators([Validators.required]);
17362
17368
  this.getLstOrg();
@@ -17438,7 +17444,8 @@ class Login2Component extends BaseComponent {
17438
17444
  if (orgIdSelectedBefor && this.lstOrg.find((x) => x.App_Org_Id == orgIdSelectedBefor)) {
17439
17445
  this.loginForm.controls['orgid']?.setValue(orgIdSelectedBefor);
17440
17446
  }
17441
- else if (this.lstOrg.length > 0 && (!currentOrgId || !this.lstOrg.find((x) => x.App_Org_Id == currentOrgId))) {
17447
+ else if (this.lstOrg.length > 0 &&
17448
+ (!currentOrgId || !this.lstOrg.find((x) => x.App_Org_Id == currentOrgId))) {
17442
17449
  this.loginForm.controls['orgid']?.setValue(this.lstOrg[0].App_Org_Id);
17443
17450
  }
17444
17451
  }
@@ -17462,7 +17469,9 @@ class Login2Component extends BaseComponent {
17462
17469
  return;
17463
17470
  }
17464
17471
  }
17465
- if (this.isOneUserMultiOrgs && !this.loginForm.controls['orgid']?.value && this.loginForm.controls['username']?.value) {
17472
+ if (this.isOneUserMultiOrgs &&
17473
+ !this.loginForm.controls['orgid']?.value &&
17474
+ this.loginForm.controls['username']?.value) {
17466
17475
  await this.getLstOrg();
17467
17476
  }
17468
17477
  for (const i in this.loginForm.controls) {
@@ -21851,7 +21860,7 @@ class SettingListComponent extends BaseComponent {
21851
21860
  this.getData();
21852
21861
  }
21853
21862
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SettingListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
21854
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: SettingListComponent, isStandalone: true, selector: "app-setting-list", usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\r\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\r\n <div class=\"enterprise-toolbar\">\r\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\r\n <nz-input-group [nzPrefix]=\"prefixCode\" [nzSuffix]=\"clearCodeTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo M\u00E3 c\u1EA5u h\u00ECnh (Code)...\" [(ngModel)]=\"filter.Code\" />\r\n </nz-input-group>\r\n <ng-template #prefixCode>\r\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearCodeTpl>\r\n @if (filter.Code) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Code = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixVal\" [nzSuffix]=\"clearValTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo gi\u00E1 tr\u1ECB (Value)...\" [(ngModel)]=\"filter.Value\" />\r\n </nz-input-group>\r\n <ng-template #prefixVal>\r\n <nz-icon nzType=\"setting\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearValTpl>\r\n @if (filter.Value) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Value = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixDesc\" [nzSuffix]=\"clearDescTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo m\u00F4 t\u1EA3...\" [(ngModel)]=\"filter.Description\" />\r\n </nz-input-group>\r\n <ng-template #prefixDesc>\r\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearDescTpl>\r\n @if (filter.Description) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Description = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\r\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\r\n </button>\r\n\r\n @if (hasActiveFilter) {\r\n <button type=\"button\" nz-button nzType=\"dashed\" nzDanger nzSize=\"small\" (click)=\"resetFilters()\">\r\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\r\n </button>\r\n }\r\n </div>\r\n\r\n <div class=\"toolbar-actions\">\r\n <span class=\"kpi-pill\">\r\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\r\n </span>\r\n\r\n <button\r\n type=\"button\"\r\n nz-button\r\n nzType=\"default\"\r\n nzSize=\"small\"\r\n (click)=\"getData()\"\r\n nz-tooltip\r\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\r\n >\r\n <nz-icon nzType=\"reload\"></nz-icon>\r\n </button>\r\n\r\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\r\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <!-- 2. ENTERPRISE DATA TABLE -->\r\n <nz-table\r\n #table\r\n [nzData]=\"data?.LstItem || []\"\r\n [nzLoading]=\"isLoading\"\r\n [nzBordered]=\"true\"\r\n [nzSize]=\"'small'\"\r\n [nzShowPagination]=\"false\"\r\n [nzFrontPagination]=\"false\"\r\n [nzScroll]=\"{ x: '900px', y: 'calc(100vh - 245px)' }\"\r\n >\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\r\n <th\r\n nzWidth=\"280px\"\r\n [nzShowSort]=\"true\"\r\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Code' ? filter.OrderOption.Direction : null\"\r\n [nzSortDirections]=\"['ascend', 'descend']\"\r\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Code'; filter.OrderOption.Direction = $event; getData()\"\r\n >\r\n M\u00E3 c\u1EA5u h\u00ECnh (Code)\r\n </th>\r\n <th nzWidth=\"340px\">Gi\u00E1 tr\u1ECB (Value)</th>\r\n <th>M\u00F4 t\u1EA3 (Description)</th>\r\n <th nzWidth=\"90px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\r\n <th nzWidth=\"130px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (row of table.data; track row.App_Setting_Id || $index; let i = $index) {\r\n <tr\r\n class=\"selectable-row\"\r\n [class.selected-row]=\"selectedRow?.App_Setting_Id === row.App_Setting_Id && drawerVisible\"\r\n (dblclick)=\"openDrawer('edit', row)\"\r\n >\r\n <td class=\"text-center cell-number text-muted\">{{ i + 1 + filter.PageIndex * filter.PageSize }}</td>\r\n <td>\r\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\r\n <code class=\"cell-mono link-detail\" (click)=\"openDrawer('edit', row)\">{{ row.Code }}</code>\r\n @if (row.Code) {\r\n <icon-copy [textToCopy]=\"row.Code\" tooltip=\"Sao ch\u00E9p m\u00E3 c\u1EA5u h\u00ECnh\"></icon-copy>\r\n }\r\n </div>\r\n </td>\r\n <td class=\"break-word font-medium\">{{ row.Value }}</td>\r\n <td class=\"break-word text-secondary\">{{ row.Description || \"\u2014\" }}</td>\r\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\r\n <nz-switch\r\n nzSize=\"small\"\r\n [ngModel]=\"row.IsActive\"\r\n (ngModelChange)=\"quickToggleActive(row, $event)\"\r\n ></nz-switch>\r\n </td>\r\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\r\n <div class=\"action-btn-group\">\r\n <lib-entity-change-history\r\n mode=\"icon\"\r\n tableName=\"App_Setting\"\r\n [entityId]=\"row.App_Setting_Id\"\r\n [entityTitle]=\"row.Code\"\r\n tooltipTitle=\"Xem l\u1ECBch s\u1EED thay \u0111\u1ED5i c\u1EA5u h\u00ECnh\"\r\n ></lib-entity-change-history>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-primary\"\r\n nz-tooltip\r\n nzTooltipTitle=\"Ch\u1EC9nh s\u1EEDa c\u1EA5u h\u00ECnh\"\r\n (click)=\"openDrawer('edit', row)\"\r\n >\r\n <nz-icon nzType=\"edit\"></nz-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-warn\"\r\n nz-tooltip\r\n nzTooltipTitle=\"X\u00F3a c\u1EA5u h\u00ECnh\"\r\n (click)=\"delete(row)\"\r\n >\r\n <nz-icon nzType=\"delete\"></nz-icon>\r\n </button>\r\n </div>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n\r\n <!-- 3. PAGINATION BAR -->\r\n <div class=\"enterprise-pagination-bar\">\r\n <div class=\"pagination-hint\">\r\n Nh\u1EA5p \u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng ho\u1EB7c nh\u1EA5n v\u00E0o <strong>M\u00E3 c\u1EA5u h\u00ECnh</strong> \u0111\u1EC3 ch\u1EC9nh s\u1EEDa trong Drawer.\r\n </div>\r\n\r\n <nz-pagination\r\n [nzSize]=\"'small'\"\r\n [nzPageIndex]=\"filter.PageIndex + 1\"\r\n [nzPageSize]=\"filter.PageSize\"\r\n [nzTotal]=\"data?.TotalCount || 0\"\r\n [nzShowSizeChanger]=\"true\"\r\n [nzShowTotal]=\"showTotalTpl\"\r\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\r\n (nzPageIndexChange)=\"onQueryParamsChange($event, filter.PageSize)\"\r\n (nzPageSizeChange)=\"onQueryParamsChange(1, $event)\"\r\n >\r\n </nz-pagination>\r\n\r\n <ng-template #showTotalTpl let-total let-range=\"range\">\r\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\r\n <strong>{{ total | number }}</strong>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- SIDE DRAWER: CREATE / EDIT SETTING -->\r\n<nz-drawer\r\n [nzVisible]=\"drawerVisible\"\r\n nzPlacement=\"right\"\r\n [nzWidth]=\"540\"\r\n [nzMaskClosable]=\"true\"\r\n [nzTitle]=\"drawerMode === 'create' ? 'Th\u00EAm m\u1EDBi Tham s\u1ED1 c\u1EA5u h\u00ECnh' : 'Ch\u1EC9nh s\u1EEDa Tham s\u1ED1 c\u1EA5u h\u00ECnh'\"\r\n [nzFooter]=\"drawerFooterTpl\"\r\n (nzOnClose)=\"closeDrawer()\"\r\n>\r\n <ng-container *nzDrawerContent>\r\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"save()\">\r\n <div class=\"drawer-section-card\">\r\n <div class=\"drawer-section-header\">\r\n <div class=\"drawer-section-title\">\r\n <nz-icon nzType=\"setting\" class=\"color-primary\"></nz-icon>\r\n <span>Chi ti\u1EBFt tham s\u1ED1 h\u1EC7 th\u1ED1ng</span>\r\n </div>\r\n </div>\r\n\r\n <div nz-row [nzGutter]=\"[16, 12]\">\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\"> M\u00E3 c\u1EA5u h\u00ECnh (Code) <span class=\"required-star\">*</span> </label>\r\n <input\r\n nz-input\r\n formControlName=\"Code\"\r\n [appAutoFocus]=\"drawerVisible\"\r\n placeholder=\"VD: THEME_COLOR, MENU_TYPE, ONE_USER_MULTI_ORGS...\"\r\n />\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">Gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh (Value)</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Value\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 6 }\"\r\n placeholder=\"Nh\u1EADp gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 / Ghi ch\u00FA v\u1EADn h\u00E0nh</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Description\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 4 }\"\r\n placeholder=\"M\u00F4 t\u1EA3 \u00FD ngh\u0129a v\u00E0 c\u00E1c gi\u00E1 tr\u1ECB h\u1EE3p l\u1EC7 c\u1EE7a tham s\u1ED1...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <div class=\"switch-card-item\">\r\n <div>\r\n <div class=\"font-semibold text-sm\">\u0110ang hi\u1EC7u l\u1EF1c</div>\r\n <div class=\"drawer-field-hint\">\u00C1p d\u1EE5ng tham s\u1ED1 c\u1EA5u h\u00ECnh n\u00E0y cho h\u1EC7 th\u1ED1ng</div>\r\n </div>\r\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-container>\r\n\r\n <ng-template #drawerFooterTpl>\r\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\r\n <button type=\"button\" nz-button (click)=\"closeDrawer()\">H\u1EE7y</button>\r\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"save()\">\r\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </ng-template>\r\n</nz-drawer>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i5.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i4.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i4.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i4.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i4.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i4.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i4.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i4.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i4.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzSelectModule }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }, { kind: "component", type: EntityChangeHistoryComponent, selector: "lib-entity-change-history", inputs: ["mode", "tableName", "entityId", "entityTitle", "initialColumnName", "buttonLabel", "tooltipTitle", "drawerWidth"], outputs: ["recordSelected"] }] });
21863
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: SettingListComponent, isStandalone: true, selector: "app-setting-list", usesInheritance: true, ngImport: i0, template: "<div class=\"enterprise-page-shell\">\r\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\r\n <div class=\"enterprise-toolbar\">\r\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\r\n <nz-input-group [nzPrefix]=\"prefixCode\" [nzSuffix]=\"clearCodeTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo M\u00E3 c\u1EA5u h\u00ECnh (Code)...\" [(ngModel)]=\"filter.Code\" />\r\n </nz-input-group>\r\n <ng-template #prefixCode>\r\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearCodeTpl>\r\n @if (filter.Code) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Code = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixVal\" [nzSuffix]=\"clearValTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo gi\u00E1 tr\u1ECB (Value)...\" [(ngModel)]=\"filter.Value\" />\r\n </nz-input-group>\r\n <ng-template #prefixVal>\r\n <nz-icon nzType=\"setting\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearValTpl>\r\n @if (filter.Value) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Value = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixDesc\" [nzSuffix]=\"clearDescTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo m\u00F4 t\u1EA3...\" [(ngModel)]=\"filter.Description\" />\r\n </nz-input-group>\r\n <ng-template #prefixDesc>\r\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearDescTpl>\r\n @if (filter.Description) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Description = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\r\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\r\n </button>\r\n\r\n @if (hasActiveFilter) {\r\n <button type=\"button\" nz-button nzType=\"dashed\" nzDanger nzSize=\"small\" (click)=\"resetFilters()\">\r\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\r\n </button>\r\n }\r\n </div>\r\n\r\n <div class=\"toolbar-actions\">\r\n <span class=\"kpi-pill\">\r\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\r\n </span>\r\n\r\n <button\r\n type=\"button\"\r\n nz-button\r\n nzType=\"default\"\r\n nzSize=\"small\"\r\n (click)=\"getData()\"\r\n nz-tooltip\r\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\r\n >\r\n <nz-icon nzType=\"reload\"></nz-icon>\r\n </button>\r\n\r\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\r\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <!-- 2. ENTERPRISE DATA TABLE -->\r\n <nz-table\r\n #table\r\n [nzData]=\"data?.LstItem || []\"\r\n [nzLoading]=\"isLoading\"\r\n [nzBordered]=\"true\"\r\n [nzSize]=\"'small'\"\r\n [nzShowPagination]=\"false\"\r\n [nzFrontPagination]=\"false\"\r\n [nzScroll]=\"{ x: '900px', y: 'calc(100vh - 245px)' }\"\r\n >\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\r\n <th\r\n nzWidth=\"280px\"\r\n [nzShowSort]=\"true\"\r\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Code' ? filter.OrderOption.Direction : null\"\r\n [nzSortDirections]=\"['ascend', 'descend']\"\r\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Code'; filter.OrderOption.Direction = $event; getData()\"\r\n >\r\n M\u00E3 c\u1EA5u h\u00ECnh (Code)\r\n </th>\r\n <th nzWidth=\"340px\">Gi\u00E1 tr\u1ECB (Value)</th>\r\n <th>M\u00F4 t\u1EA3 (Description)</th>\r\n <th nzWidth=\"90px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\r\n <th nzWidth=\"130px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (row of table.data; track row.App_Setting_Id || $index; let i = $index) {\r\n <tr\r\n class=\"selectable-row\"\r\n [class.selected-row]=\"selectedRow?.App_Setting_Id === row.App_Setting_Id && drawerVisible\"\r\n (dblclick)=\"openDrawer('edit', row)\"\r\n >\r\n <td class=\"text-center cell-number text-muted\">{{ i + 1 + filter.PageIndex * filter.PageSize }}</td>\r\n <td>\r\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\r\n <code class=\"cell-mono link-detail\" (click)=\"openDrawer('edit', row)\">{{ row.Code }}</code>\r\n @if (row.Code) {\r\n <icon-copy [textToCopy]=\"row.Code\" tooltip=\"Sao ch\u00E9p m\u00E3 c\u1EA5u h\u00ECnh\"></icon-copy>\r\n }\r\n </div>\r\n </td>\r\n <td class=\"break-word font-medium\">{{ row.Value }}</td>\r\n <td class=\"break-word text-secondary\">{{ row.Description || \"\u2014\" }}</td>\r\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\r\n <nz-switch\r\n nzSize=\"small\"\r\n [ngModel]=\"row.IsActive\"\r\n (ngModelChange)=\"quickToggleActive(row, $event)\"\r\n ></nz-switch>\r\n </td>\r\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\r\n <div class=\"action-btn-group\">\r\n <lib-entity-change-history\r\n mode=\"icon\"\r\n tableName=\"App_Setting\"\r\n [entityId]=\"row.App_Setting_Id\"\r\n [entityTitle]=\"row.Code\"\r\n tooltipTitle=\"Xem l\u1ECBch s\u1EED thay \u0111\u1ED5i c\u1EA5u h\u00ECnh\"\r\n ></lib-entity-change-history>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-primary\"\r\n nz-tooltip\r\n nzTooltipTitle=\"Ch\u1EC9nh s\u1EEDa c\u1EA5u h\u00ECnh\"\r\n (click)=\"openDrawer('edit', row)\"\r\n >\r\n <nz-icon nzType=\"edit\"></nz-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-warn\"\r\n nz-tooltip\r\n nzTooltipTitle=\"X\u00F3a c\u1EA5u h\u00ECnh\"\r\n (click)=\"delete(row)\"\r\n >\r\n <nz-icon nzType=\"delete\"></nz-icon>\r\n </button>\r\n </div>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n\r\n <!-- 3. PAGINATION BAR -->\r\n <div class=\"enterprise-pagination-bar\">\r\n <div class=\"pagination-hint\">\r\n Nh\u1EA5p \u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng ho\u1EB7c nh\u1EA5n v\u00E0o <strong>M\u00E3 c\u1EA5u h\u00ECnh</strong> \u0111\u1EC3 ch\u1EC9nh s\u1EEDa trong Drawer.\r\n </div>\r\n\r\n <nz-pagination\r\n [nzSize]=\"'small'\"\r\n [nzPageIndex]=\"filter.PageIndex + 1\"\r\n [nzPageSize]=\"filter.PageSize\"\r\n [nzTotal]=\"data?.TotalCount || 0\"\r\n [nzShowSizeChanger]=\"true\"\r\n [nzShowTotal]=\"showTotalTpl\"\r\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\r\n (nzPageIndexChange)=\"onQueryParamsChange($event, filter.PageSize)\"\r\n (nzPageSizeChange)=\"onQueryParamsChange(1, $event)\"\r\n >\r\n </nz-pagination>\r\n\r\n <ng-template #showTotalTpl let-total let-range=\"range\">\r\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\r\n <strong>{{ total | number }}</strong>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- SIDE DRAWER: CREATE / EDIT SETTING -->\r\n<nz-drawer\r\n [nzVisible]=\"drawerVisible\"\r\n nzPlacement=\"right\"\r\n [nzWidth]=\"540\"\r\n [nzMaskClosable]=\"true\"\r\n [nzTitle]=\"drawerMode === 'create' ? 'Th\u00EAm m\u1EDBi Tham s\u1ED1 c\u1EA5u h\u00ECnh' : 'Ch\u1EC9nh s\u1EEDa Tham s\u1ED1 c\u1EA5u h\u00ECnh'\"\r\n [nzFooter]=\"drawerFooterTpl\"\r\n (nzOnClose)=\"closeDrawer()\"\r\n>\r\n <ng-container *nzDrawerContent>\r\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"save()\">\r\n <div class=\"drawer-section-card\">\r\n <div class=\"drawer-section-header\">\r\n <div class=\"drawer-section-title\">\r\n <nz-icon nzType=\"setting\" class=\"color-primary\"></nz-icon>\r\n <span>Chi ti\u1EBFt tham s\u1ED1 h\u1EC7 th\u1ED1ng</span>\r\n </div>\r\n </div>\r\n\r\n <div nz-row [nzGutter]=\"[16, 12]\">\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\"> M\u00E3 c\u1EA5u h\u00ECnh (Code) <span class=\"required-star\">*</span> </label>\r\n <input\r\n nz-input\r\n formControlName=\"Code\"\r\n [appAutoFocus]=\"drawerVisible\"\r\n placeholder=\"VD: THEME_COLOR, MENU_TYPE, SYSTEM_ONE_USER_MULTI_ORGS...\"\r\n />\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">Gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh (Value)</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Value\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 6 }\"\r\n placeholder=\"Nh\u1EADp gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 / Ghi ch\u00FA v\u1EADn h\u00E0nh</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Description\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 4 }\"\r\n placeholder=\"M\u00F4 t\u1EA3 \u00FD ngh\u0129a v\u00E0 c\u00E1c gi\u00E1 tr\u1ECB h\u1EE3p l\u1EC7 c\u1EE7a tham s\u1ED1...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <div class=\"switch-card-item\">\r\n <div>\r\n <div class=\"font-semibold text-sm\">\u0110ang hi\u1EC7u l\u1EF1c</div>\r\n <div class=\"drawer-field-hint\">\u00C1p d\u1EE5ng tham s\u1ED1 c\u1EA5u h\u00ECnh n\u00E0y cho h\u1EC7 th\u1ED1ng</div>\r\n </div>\r\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-container>\r\n\r\n <ng-template #drawerFooterTpl>\r\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\r\n <button type=\"button\" nz-button (click)=\"closeDrawer()\">H\u1EE7y</button>\r\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"save()\">\r\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </ng-template>\r\n</nz-drawer>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i5.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i3$4.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i4.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i4.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i4.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i4.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i4.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i4.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i4.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i4.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "component", type: i7.NzPaginationComponent, selector: "nz-pagination", inputs: ["nzShowTotal", "nzItemRender", "nzSize", "nzPageSizeOptions", "nzShowSizeChanger", "nzShowQuickJumper", "nzSimple", "nzDisabled", "nzResponsive", "nzHideOnSinglePage", "nzTotal", "nzPageIndex", "nzPageSize"], outputs: ["nzPageSizeChange", "nzPageIndexChange"], exportAs: ["nzPagination"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3$3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i12.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i12.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i12.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i12.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: NzSelectModule }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i13$2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzDrawerModule }, { kind: "component", type: i14.NzDrawerComponent, selector: "nz-drawer", inputs: ["nzContent", "nzCloseIcon", "nzClosable", "nzMaskClosable", "nzMask", "nzCloseOnNavigation", "nzNoAnimation", "nzKeyboard", "nzTitle", "nzExtra", "nzFooter", "nzPlacement", "nzSize", "nzMaskStyle", "nzBodyStyle", "nzWrapClassName", "nzWidth", "nzHeight", "nzZIndex", "nzOffsetX", "nzOffsetY", "nzVisible"], outputs: ["nzOnViewInit", "nzOnClose", "nzVisibleChange"], exportAs: ["nzDrawer"] }, { kind: "directive", type: i14.NzDrawerContentDirective, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: IconCopy, selector: "icon-copy", inputs: ["textToCopy", "tooltip", "size"] }, { kind: "directive", type: AutoFocusDirective, selector: "[appAutoFocus]", inputs: ["appAutoFocus"] }, { kind: "component", type: EntityChangeHistoryComponent, selector: "lib-entity-change-history", inputs: ["mode", "tableName", "entityId", "entityTitle", "initialColumnName", "buttonLabel", "tooltipTitle", "drawerWidth"], outputs: ["recordSelected"] }] });
21855
21864
  }
21856
21865
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SettingListComponent, decorators: [{
21857
21866
  type: Component,
@@ -21876,7 +21885,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
21876
21885
  IconCopy,
21877
21886
  AutoFocusDirective,
21878
21887
  EntityChangeHistoryComponent,
21879
- ], template: "<div class=\"enterprise-page-shell\">\r\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\r\n <div class=\"enterprise-toolbar\">\r\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\r\n <nz-input-group [nzPrefix]=\"prefixCode\" [nzSuffix]=\"clearCodeTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo M\u00E3 c\u1EA5u h\u00ECnh (Code)...\" [(ngModel)]=\"filter.Code\" />\r\n </nz-input-group>\r\n <ng-template #prefixCode>\r\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearCodeTpl>\r\n @if (filter.Code) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Code = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixVal\" [nzSuffix]=\"clearValTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo gi\u00E1 tr\u1ECB (Value)...\" [(ngModel)]=\"filter.Value\" />\r\n </nz-input-group>\r\n <ng-template #prefixVal>\r\n <nz-icon nzType=\"setting\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearValTpl>\r\n @if (filter.Value) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Value = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixDesc\" [nzSuffix]=\"clearDescTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo m\u00F4 t\u1EA3...\" [(ngModel)]=\"filter.Description\" />\r\n </nz-input-group>\r\n <ng-template #prefixDesc>\r\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearDescTpl>\r\n @if (filter.Description) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Description = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\r\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\r\n </button>\r\n\r\n @if (hasActiveFilter) {\r\n <button type=\"button\" nz-button nzType=\"dashed\" nzDanger nzSize=\"small\" (click)=\"resetFilters()\">\r\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\r\n </button>\r\n }\r\n </div>\r\n\r\n <div class=\"toolbar-actions\">\r\n <span class=\"kpi-pill\">\r\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\r\n </span>\r\n\r\n <button\r\n type=\"button\"\r\n nz-button\r\n nzType=\"default\"\r\n nzSize=\"small\"\r\n (click)=\"getData()\"\r\n nz-tooltip\r\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\r\n >\r\n <nz-icon nzType=\"reload\"></nz-icon>\r\n </button>\r\n\r\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\r\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <!-- 2. ENTERPRISE DATA TABLE -->\r\n <nz-table\r\n #table\r\n [nzData]=\"data?.LstItem || []\"\r\n [nzLoading]=\"isLoading\"\r\n [nzBordered]=\"true\"\r\n [nzSize]=\"'small'\"\r\n [nzShowPagination]=\"false\"\r\n [nzFrontPagination]=\"false\"\r\n [nzScroll]=\"{ x: '900px', y: 'calc(100vh - 245px)' }\"\r\n >\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\r\n <th\r\n nzWidth=\"280px\"\r\n [nzShowSort]=\"true\"\r\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Code' ? filter.OrderOption.Direction : null\"\r\n [nzSortDirections]=\"['ascend', 'descend']\"\r\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Code'; filter.OrderOption.Direction = $event; getData()\"\r\n >\r\n M\u00E3 c\u1EA5u h\u00ECnh (Code)\r\n </th>\r\n <th nzWidth=\"340px\">Gi\u00E1 tr\u1ECB (Value)</th>\r\n <th>M\u00F4 t\u1EA3 (Description)</th>\r\n <th nzWidth=\"90px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\r\n <th nzWidth=\"130px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (row of table.data; track row.App_Setting_Id || $index; let i = $index) {\r\n <tr\r\n class=\"selectable-row\"\r\n [class.selected-row]=\"selectedRow?.App_Setting_Id === row.App_Setting_Id && drawerVisible\"\r\n (dblclick)=\"openDrawer('edit', row)\"\r\n >\r\n <td class=\"text-center cell-number text-muted\">{{ i + 1 + filter.PageIndex * filter.PageSize }}</td>\r\n <td>\r\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\r\n <code class=\"cell-mono link-detail\" (click)=\"openDrawer('edit', row)\">{{ row.Code }}</code>\r\n @if (row.Code) {\r\n <icon-copy [textToCopy]=\"row.Code\" tooltip=\"Sao ch\u00E9p m\u00E3 c\u1EA5u h\u00ECnh\"></icon-copy>\r\n }\r\n </div>\r\n </td>\r\n <td class=\"break-word font-medium\">{{ row.Value }}</td>\r\n <td class=\"break-word text-secondary\">{{ row.Description || \"\u2014\" }}</td>\r\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\r\n <nz-switch\r\n nzSize=\"small\"\r\n [ngModel]=\"row.IsActive\"\r\n (ngModelChange)=\"quickToggleActive(row, $event)\"\r\n ></nz-switch>\r\n </td>\r\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\r\n <div class=\"action-btn-group\">\r\n <lib-entity-change-history\r\n mode=\"icon\"\r\n tableName=\"App_Setting\"\r\n [entityId]=\"row.App_Setting_Id\"\r\n [entityTitle]=\"row.Code\"\r\n tooltipTitle=\"Xem l\u1ECBch s\u1EED thay \u0111\u1ED5i c\u1EA5u h\u00ECnh\"\r\n ></lib-entity-change-history>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-primary\"\r\n nz-tooltip\r\n nzTooltipTitle=\"Ch\u1EC9nh s\u1EEDa c\u1EA5u h\u00ECnh\"\r\n (click)=\"openDrawer('edit', row)\"\r\n >\r\n <nz-icon nzType=\"edit\"></nz-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-warn\"\r\n nz-tooltip\r\n nzTooltipTitle=\"X\u00F3a c\u1EA5u h\u00ECnh\"\r\n (click)=\"delete(row)\"\r\n >\r\n <nz-icon nzType=\"delete\"></nz-icon>\r\n </button>\r\n </div>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n\r\n <!-- 3. PAGINATION BAR -->\r\n <div class=\"enterprise-pagination-bar\">\r\n <div class=\"pagination-hint\">\r\n Nh\u1EA5p \u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng ho\u1EB7c nh\u1EA5n v\u00E0o <strong>M\u00E3 c\u1EA5u h\u00ECnh</strong> \u0111\u1EC3 ch\u1EC9nh s\u1EEDa trong Drawer.\r\n </div>\r\n\r\n <nz-pagination\r\n [nzSize]=\"'small'\"\r\n [nzPageIndex]=\"filter.PageIndex + 1\"\r\n [nzPageSize]=\"filter.PageSize\"\r\n [nzTotal]=\"data?.TotalCount || 0\"\r\n [nzShowSizeChanger]=\"true\"\r\n [nzShowTotal]=\"showTotalTpl\"\r\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\r\n (nzPageIndexChange)=\"onQueryParamsChange($event, filter.PageSize)\"\r\n (nzPageSizeChange)=\"onQueryParamsChange(1, $event)\"\r\n >\r\n </nz-pagination>\r\n\r\n <ng-template #showTotalTpl let-total let-range=\"range\">\r\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\r\n <strong>{{ total | number }}</strong>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- SIDE DRAWER: CREATE / EDIT SETTING -->\r\n<nz-drawer\r\n [nzVisible]=\"drawerVisible\"\r\n nzPlacement=\"right\"\r\n [nzWidth]=\"540\"\r\n [nzMaskClosable]=\"true\"\r\n [nzTitle]=\"drawerMode === 'create' ? 'Th\u00EAm m\u1EDBi Tham s\u1ED1 c\u1EA5u h\u00ECnh' : 'Ch\u1EC9nh s\u1EEDa Tham s\u1ED1 c\u1EA5u h\u00ECnh'\"\r\n [nzFooter]=\"drawerFooterTpl\"\r\n (nzOnClose)=\"closeDrawer()\"\r\n>\r\n <ng-container *nzDrawerContent>\r\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"save()\">\r\n <div class=\"drawer-section-card\">\r\n <div class=\"drawer-section-header\">\r\n <div class=\"drawer-section-title\">\r\n <nz-icon nzType=\"setting\" class=\"color-primary\"></nz-icon>\r\n <span>Chi ti\u1EBFt tham s\u1ED1 h\u1EC7 th\u1ED1ng</span>\r\n </div>\r\n </div>\r\n\r\n <div nz-row [nzGutter]=\"[16, 12]\">\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\"> M\u00E3 c\u1EA5u h\u00ECnh (Code) <span class=\"required-star\">*</span> </label>\r\n <input\r\n nz-input\r\n formControlName=\"Code\"\r\n [appAutoFocus]=\"drawerVisible\"\r\n placeholder=\"VD: THEME_COLOR, MENU_TYPE, ONE_USER_MULTI_ORGS...\"\r\n />\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">Gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh (Value)</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Value\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 6 }\"\r\n placeholder=\"Nh\u1EADp gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 / Ghi ch\u00FA v\u1EADn h\u00E0nh</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Description\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 4 }\"\r\n placeholder=\"M\u00F4 t\u1EA3 \u00FD ngh\u0129a v\u00E0 c\u00E1c gi\u00E1 tr\u1ECB h\u1EE3p l\u1EC7 c\u1EE7a tham s\u1ED1...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <div class=\"switch-card-item\">\r\n <div>\r\n <div class=\"font-semibold text-sm\">\u0110ang hi\u1EC7u l\u1EF1c</div>\r\n <div class=\"drawer-field-hint\">\u00C1p d\u1EE5ng tham s\u1ED1 c\u1EA5u h\u00ECnh n\u00E0y cho h\u1EC7 th\u1ED1ng</div>\r\n </div>\r\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-container>\r\n\r\n <ng-template #drawerFooterTpl>\r\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\r\n <button type=\"button\" nz-button (click)=\"closeDrawer()\">H\u1EE7y</button>\r\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"save()\">\r\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </ng-template>\r\n</nz-drawer>\r\n" }]
21888
+ ], template: "<div class=\"enterprise-page-shell\">\r\n <!-- 1. UNIFIED FILTER & ACTION TOOLBAR -->\r\n <div class=\"enterprise-toolbar\">\r\n <div class=\"toolbar-filters\" (keyup.enter)=\"search()\">\r\n <nz-input-group [nzPrefix]=\"prefixCode\" [nzSuffix]=\"clearCodeTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo M\u00E3 c\u1EA5u h\u00ECnh (Code)...\" [(ngModel)]=\"filter.Code\" />\r\n </nz-input-group>\r\n <ng-template #prefixCode>\r\n <nz-icon nzType=\"key\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearCodeTpl>\r\n @if (filter.Code) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Code = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixVal\" [nzSuffix]=\"clearValTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"L\u1ECDc theo gi\u00E1 tr\u1ECB (Value)...\" [(ngModel)]=\"filter.Value\" />\r\n </nz-input-group>\r\n <ng-template #prefixVal>\r\n <nz-icon nzType=\"setting\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearValTpl>\r\n @if (filter.Value) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Value = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <nz-input-group [nzPrefix]=\"prefixDesc\" [nzSuffix]=\"clearDescTpl\" nzSize=\"small\" style=\"width: 220px\">\r\n <input nz-input type=\"text\" placeholder=\"T\u00ECm theo m\u00F4 t\u1EA3...\" [(ngModel)]=\"filter.Description\" />\r\n </nz-input-group>\r\n <ng-template #prefixDesc>\r\n <nz-icon nzType=\"search\" class=\"text-muted\"></nz-icon>\r\n </ng-template>\r\n <ng-template #clearDescTpl>\r\n @if (filter.Description) {\r\n <nz-icon\r\n nzType=\"close-circle\"\r\n nzTheme=\"fill\"\r\n class=\"cursor-pointer text-muted\"\r\n (click)=\"filter.Description = ''; search()\"\r\n ></nz-icon>\r\n }\r\n </ng-template>\r\n\r\n <button type=\"button\" nz-button nzType=\"default\" nzSize=\"small\" (click)=\"search()\">\r\n <nz-icon nzType=\"search\"></nz-icon> L\u1ECDc\r\n </button>\r\n\r\n @if (hasActiveFilter) {\r\n <button type=\"button\" nz-button nzType=\"dashed\" nzDanger nzSize=\"small\" (click)=\"resetFilters()\">\r\n <nz-icon nzType=\"clear\"></nz-icon> X\u00F3a l\u1ECDc\r\n </button>\r\n }\r\n </div>\r\n\r\n <div class=\"toolbar-actions\">\r\n <span class=\"kpi-pill\">\r\n T\u1ED5ng: <strong>{{ data?.TotalCount || 0 }}</strong>\r\n </span>\r\n\r\n <button\r\n type=\"button\"\r\n nz-button\r\n nzType=\"default\"\r\n nzSize=\"small\"\r\n (click)=\"getData()\"\r\n nz-tooltip\r\n nzTooltipTitle=\"L\u00E0m m\u1EDBi danh s\u00E1ch\"\r\n >\r\n <nz-icon nzType=\"reload\"></nz-icon>\r\n </button>\r\n\r\n <button type=\"button\" nz-button nzType=\"primary\" nzSize=\"small\" (click)=\"openDrawer('create')\">\r\n <nz-icon nzType=\"plus\"></nz-icon> Th\u00EAm c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <!-- 2. ENTERPRISE DATA TABLE -->\r\n <nz-table\r\n #table\r\n [nzData]=\"data?.LstItem || []\"\r\n [nzLoading]=\"isLoading\"\r\n [nzBordered]=\"true\"\r\n [nzSize]=\"'small'\"\r\n [nzShowPagination]=\"false\"\r\n [nzFrontPagination]=\"false\"\r\n [nzScroll]=\"{ x: '900px', y: 'calc(100vh - 245px)' }\"\r\n >\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"52px\" class=\"text-center\">#</th>\r\n <th\r\n nzWidth=\"280px\"\r\n [nzShowSort]=\"true\"\r\n [nzSortOrder]=\"filter.OrderOption.FieldName == 'Code' ? filter.OrderOption.Direction : null\"\r\n [nzSortDirections]=\"['ascend', 'descend']\"\r\n (nzSortOrderChange)=\"filter.OrderOption.FieldName = 'Code'; filter.OrderOption.Direction = $event; getData()\"\r\n >\r\n M\u00E3 c\u1EA5u h\u00ECnh (Code)\r\n </th>\r\n <th nzWidth=\"340px\">Gi\u00E1 tr\u1ECB (Value)</th>\r\n <th>M\u00F4 t\u1EA3 (Description)</th>\r\n <th nzWidth=\"90px\" class=\"text-center\">Hi\u1EC7u l\u1EF1c</th>\r\n <th nzWidth=\"130px\" class=\"text-center\" nzRight>Thao t\u00E1c</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (row of table.data; track row.App_Setting_Id || $index; let i = $index) {\r\n <tr\r\n class=\"selectable-row\"\r\n [class.selected-row]=\"selectedRow?.App_Setting_Id === row.App_Setting_Id && drawerVisible\"\r\n (dblclick)=\"openDrawer('edit', row)\"\r\n >\r\n <td class=\"text-center cell-number text-muted\">{{ i + 1 + filter.PageIndex * filter.PageSize }}</td>\r\n <td>\r\n <div nz-flex nzAlign=\"center\" [nzGap]=\"6\">\r\n <code class=\"cell-mono link-detail\" (click)=\"openDrawer('edit', row)\">{{ row.Code }}</code>\r\n @if (row.Code) {\r\n <icon-copy [textToCopy]=\"row.Code\" tooltip=\"Sao ch\u00E9p m\u00E3 c\u1EA5u h\u00ECnh\"></icon-copy>\r\n }\r\n </div>\r\n </td>\r\n <td class=\"break-word font-medium\">{{ row.Value }}</td>\r\n <td class=\"break-word text-secondary\">{{ row.Description || \"\u2014\" }}</td>\r\n <td class=\"text-center\" (click)=\"$event.stopPropagation()\">\r\n <nz-switch\r\n nzSize=\"small\"\r\n [ngModel]=\"row.IsActive\"\r\n (ngModelChange)=\"quickToggleActive(row, $event)\"\r\n ></nz-switch>\r\n </td>\r\n <td class=\"text-center\" nzRight (click)=\"$event.stopPropagation()\">\r\n <div class=\"action-btn-group\">\r\n <lib-entity-change-history\r\n mode=\"icon\"\r\n tableName=\"App_Setting\"\r\n [entityId]=\"row.App_Setting_Id\"\r\n [entityTitle]=\"row.Code\"\r\n tooltipTitle=\"Xem l\u1ECBch s\u1EED thay \u0111\u1ED5i c\u1EA5u h\u00ECnh\"\r\n ></lib-entity-change-history>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-primary\"\r\n nz-tooltip\r\n nzTooltipTitle=\"Ch\u1EC9nh s\u1EEDa c\u1EA5u h\u00ECnh\"\r\n (click)=\"openDrawer('edit', row)\"\r\n >\r\n <nz-icon nzType=\"edit\"></nz-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"action-icon-btn color-warn\"\r\n nz-tooltip\r\n nzTooltipTitle=\"X\u00F3a c\u1EA5u h\u00ECnh\"\r\n (click)=\"delete(row)\"\r\n >\r\n <nz-icon nzType=\"delete\"></nz-icon>\r\n </button>\r\n </div>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n\r\n <!-- 3. PAGINATION BAR -->\r\n <div class=\"enterprise-pagination-bar\">\r\n <div class=\"pagination-hint\">\r\n Nh\u1EA5p \u0111\u00FAp chu\u1ED9t v\u00E0o d\u00F2ng ho\u1EB7c nh\u1EA5n v\u00E0o <strong>M\u00E3 c\u1EA5u h\u00ECnh</strong> \u0111\u1EC3 ch\u1EC9nh s\u1EEDa trong Drawer.\r\n </div>\r\n\r\n <nz-pagination\r\n [nzSize]=\"'small'\"\r\n [nzPageIndex]=\"filter.PageIndex + 1\"\r\n [nzPageSize]=\"filter.PageSize\"\r\n [nzTotal]=\"data?.TotalCount || 0\"\r\n [nzShowSizeChanger]=\"true\"\r\n [nzShowTotal]=\"showTotalTpl\"\r\n [nzPageSizeOptions]=\"AppGlobals.pageSizeOptions\"\r\n (nzPageIndexChange)=\"onQueryParamsChange($event, filter.PageSize)\"\r\n (nzPageSizeChange)=\"onQueryParamsChange(1, $event)\"\r\n >\r\n </nz-pagination>\r\n\r\n <ng-template #showTotalTpl let-total let-range=\"range\">\r\n Hi\u1EC3n th\u1ECB <strong>{{ range[0] | number }} - {{ range[1] | number }}</strong> /\r\n <strong>{{ total | number }}</strong>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- SIDE DRAWER: CREATE / EDIT SETTING -->\r\n<nz-drawer\r\n [nzVisible]=\"drawerVisible\"\r\n nzPlacement=\"right\"\r\n [nzWidth]=\"540\"\r\n [nzMaskClosable]=\"true\"\r\n [nzTitle]=\"drawerMode === 'create' ? 'Th\u00EAm m\u1EDBi Tham s\u1ED1 c\u1EA5u h\u00ECnh' : 'Ch\u1EC9nh s\u1EEDa Tham s\u1ED1 c\u1EA5u h\u00ECnh'\"\r\n [nzFooter]=\"drawerFooterTpl\"\r\n (nzOnClose)=\"closeDrawer()\"\r\n>\r\n <ng-container *nzDrawerContent>\r\n <form nz-form [formGroup]=\"formData\" (ngSubmit)=\"save()\">\r\n <div class=\"drawer-section-card\">\r\n <div class=\"drawer-section-header\">\r\n <div class=\"drawer-section-title\">\r\n <nz-icon nzType=\"setting\" class=\"color-primary\"></nz-icon>\r\n <span>Chi ti\u1EBFt tham s\u1ED1 h\u1EC7 th\u1ED1ng</span>\r\n </div>\r\n </div>\r\n\r\n <div nz-row [nzGutter]=\"[16, 12]\">\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\"> M\u00E3 c\u1EA5u h\u00ECnh (Code) <span class=\"required-star\">*</span> </label>\r\n <input\r\n nz-input\r\n formControlName=\"Code\"\r\n [appAutoFocus]=\"drawerVisible\"\r\n placeholder=\"VD: THEME_COLOR, MENU_TYPE, SYSTEM_ONE_USER_MULTI_ORGS...\"\r\n />\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">Gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh (Value)</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Value\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 6 }\"\r\n placeholder=\"Nh\u1EADp gi\u00E1 tr\u1ECB c\u1EA5u h\u00ECnh...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <label class=\"drawer-field-label\">M\u00F4 t\u1EA3 / Ghi ch\u00FA v\u1EADn h\u00E0nh</label>\r\n <textarea\r\n nz-input\r\n formControlName=\"Description\"\r\n [nzAutosize]=\"{ minRows: 2, maxRows: 4 }\"\r\n placeholder=\"M\u00F4 t\u1EA3 \u00FD ngh\u0129a v\u00E0 c\u00E1c gi\u00E1 tr\u1ECB h\u1EE3p l\u1EC7 c\u1EE7a tham s\u1ED1...\"\r\n ></textarea>\r\n </div>\r\n\r\n <div nz-col [nzSpan]=\"24\">\r\n <div class=\"switch-card-item\">\r\n <div>\r\n <div class=\"font-semibold text-sm\">\u0110ang hi\u1EC7u l\u1EF1c</div>\r\n <div class=\"drawer-field-hint\">\u00C1p d\u1EE5ng tham s\u1ED1 c\u1EA5u h\u00ECnh n\u00E0y cho h\u1EC7 th\u1ED1ng</div>\r\n </div>\r\n <nz-switch formControlName=\"IsActive\" nzSize=\"small\"></nz-switch>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-container>\r\n\r\n <ng-template #drawerFooterTpl>\r\n <div nz-flex nzJustify=\"end\" [nzGap]=\"8\">\r\n <button type=\"button\" nz-button (click)=\"closeDrawer()\">H\u1EE7y</button>\r\n <button type=\"button\" nz-button nzType=\"primary\" [nzLoading]=\"isSaving\" (click)=\"save()\">\r\n <nz-icon nzType=\"save\"></nz-icon> L\u01B0u c\u1EA5u h\u00ECnh\r\n </button>\r\n </div>\r\n </ng-template>\r\n</nz-drawer>\r\n" }]
21880
21889
  }] });
21881
21890
 
21882
21891
  class ImportUser extends BaseComponent {
@@ -22209,7 +22218,7 @@ class UserListComponent extends BaseComponent {
22209
22218
  this.orgService.getAll().then((res) => (this.lstOrg = res?.Data || []), () => (this.lstOrg = []));
22210
22219
  this.roleService.getAll().then((res) => (this.lstRole = res?.Data || []), () => (this.lstRole = []));
22211
22220
  this.settingService.getByCodeAnonymous('SYSTEM_ONE_USER_MULTI_ORGS').then((res) => {
22212
- if (res?.Data === '1') {
22221
+ if (res?.Data == 1) {
22213
22222
  this.isOneUserMultiOrgs = true;
22214
22223
  }
22215
22224
  }, () => { });