@sdcorejs/angular 19.2.8 → 19.2.10

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.
Files changed (41) hide show
  1. package/README.md +4 -2
  2. package/components/form-generic/src/models/form-generic-component.model.d.ts +1 -0
  3. package/components/index.d.ts +0 -1
  4. package/components/query-builder/src/query-builder.component.d.ts +3 -0
  5. package/components/table/src/components/action-menu/action-menu.d.ts +10 -0
  6. package/components/table/src/components/command/desktop-command.component.d.ts +1 -0
  7. package/components/table/src/table.component.d.ts +1 -1
  8. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +4 -4
  9. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  10. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  11. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  12. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +35 -2
  13. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  14. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  15. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  16. package/fesm2022/sdcorejs-angular-components-tab.mjs +2 -2
  17. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  18. package/fesm2022/sdcorejs-angular-components-table.mjs +247 -87
  19. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-components.mjs +0 -1
  21. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-directives.mjs +49 -11
  23. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  24. package/fesm2022/sdcorejs-angular-forms-switch.mjs +4 -2
  25. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  26. package/fesm2022/sdcorejs-angular-i18n.mjs +5 -0
  27. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  28. package/fesm2022/sdcorejs-angular-modules-layout.mjs +40 -9
  29. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  30. package/forms/switch/src/switch.component.d.ts +3 -2
  31. package/i18n/src/en.d.ts +1 -0
  32. package/modules/layout/components/shared/menu-tree/menu-tree.component.d.ts +6 -1
  33. package/modules/layout/components/sidebar-v3/main.component.d.ts +1 -0
  34. package/package.json +1 -7
  35. package/components/chart/index.d.ts +0 -4
  36. package/components/chart/src/bar-chart.component.d.ts +0 -18
  37. package/components/chart/src/doughnut-chart.component.d.ts +0 -16
  38. package/components/chart/src/line-chart.component.d.ts +0 -18
  39. package/components/chart/src/pie-chart.component.d.ts +0 -16
  40. package/fesm2022/sdcorejs-angular-components-chart.mjs +0 -290
  41. package/fesm2022/sdcorejs-angular-components-chart.mjs.map +0 -1
package/README.md CHANGED
@@ -91,18 +91,20 @@ Replace the timer with your typed service call and reset `saving` in a `finally`
91
91
 
92
92
  | Area | Representative APIs |
93
93
  | ----------------- | ------------------------------------------------------------------------------------------------------------------------------- |
94
- | UI components | Navigation/data state, PDF preview, job progress, audit diff, modals, drawers, tabs, charts, editors, and document tooling |
94
+ | UI components | Navigation/data state, PDF preview, job progress, audit diff, modals, drawers, tabs, editors, and document tooling |
95
95
  | Data and workflow | Local/server tables, entity/tree pickers, query builders, unsaved-change guards, background tasks, upload, and Excel import |
96
96
  | Form controls | Text/mask, number, time/time range, date/date range, datetime, select, autocomplete, checkbox, radio, switch, chip, and color |
97
97
  | Services | Typed API/retry/cancel, ref-counted loading, graph-safe persistence/cache/storage, viewport signals, notifications, and exports |
98
98
  | Portal modules | Auth, Keycloak, permission, layout, and icon modules |
99
99
  | Localization | Built-in `vi`, `en`, `ja`, `ko`, and `zh` catalogs, plus a synchronous custom-catalog provider |
100
100
 
101
+ Charting libraries are selected, installed, and configured by the consuming application. Core UI does not bundle a chart engine; `sd-org-chart` remains available for organizational hierarchies.
102
+
101
103
  The [live showcase](https://sdcorejs.github.io/sdcorejs-angular/) demonstrates components, forms, and services. The [latest API manifest](https://sdcorejs.github.io/sdcorejs-angular/docs/latest/index.json) lists every published reference document without duplicating the full API here.
102
104
 
103
105
  ## Standalone and subpath imports
104
106
 
105
- Prefer public leaf entry points so dependencies stay explicit and unused entry points can be removed from the application graph. The package declares `sideEffects: false`.
107
+ Prefer public leaf entry points so dependencies stay explicit and unused entry points can be removed from the application graph. Stylesheets and editor registration entry points are retained as side effects.
106
108
 
107
109
  ```ts
108
110
  import { SdButton } from '@sdcorejs/angular/components/button';
@@ -150,6 +150,7 @@ export interface SdFormGenericGroup {
150
150
  properties: {
151
151
  icon: string;
152
152
  color: Color;
153
+ collapsible?: boolean;
153
154
  hidden?: boolean;
154
155
  hiddenWhenExpression?: SdFormGenericExpression;
155
156
  visibleWhenExpression?: SdFormGenericExpression;
@@ -22,7 +22,6 @@ export * from '@sdcorejs/angular/components/import-excel';
22
22
  export * from '@sdcorejs/angular/components/mini-editor';
23
23
  export * from '@sdcorejs/angular/components/view';
24
24
  export * from '@sdcorejs/angular/components/code-editor';
25
- export * from '@sdcorejs/angular/components/chart';
26
25
  export * from '@sdcorejs/angular/components/editor';
27
26
  export * from '@sdcorejs/angular/components/splitter';
28
27
  export * from '@sdcorejs/angular/components/preview';
@@ -1,3 +1,4 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
1
2
  import { Filter, Operator } from '@sdcorejs/utils/models';
2
3
  import { sdIsQbGroup, SdQbComparisonMode, SdQbDateMode, SdQbGroup, SdQbRule, SdQbToken, SdQbValueSource, sdQbFieldIcon, SdQueryBuilderField, SdQueryBuilderFieldOption, SdQueryBuilderOption } from './query-builder.model';
3
4
  import * as i0 from "@angular/core";
@@ -10,6 +11,7 @@ import * as i0 from "@angular/core";
10
11
  */
11
12
  export declare class SdQueryBuilder {
12
13
  #private;
14
+ protected readonly addMenuPositions: ConnectedPosition[];
13
15
  /** Main option object. Prefer this API for new usage; individual inputs stay as a migration bridge. */
14
16
  readonly option: import("@angular/core").InputSignal<SdQueryBuilderOption | undefined>;
15
17
  /** Filterable fields — each declares a `type` that drives the operator set + value editor. */
@@ -80,6 +82,7 @@ export declare class SdQueryBuilder {
80
82
  /** Open this group's "+" menu (closing any other open one). UI-only — does not emit. */
81
83
  toggleDropdown(group: SdQbGroup, event: Event): void;
82
84
  closeAllDropdowns(): void;
85
+ protected onAddMenuKeydown(event: KeyboardEvent): void;
83
86
  /** Append a blank rule to `group`. */
84
87
  addRule(group: SdQbGroup): void;
85
88
  /** Append a nested sub-group (seeded with one blank rule) to `group`. */
@@ -0,0 +1,10 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/cdk/menu";
4
+ export declare const TABLE_ACTION_MENU_POSITIONS: ConnectedPosition[];
5
+ export declare class SdTableMenuButtonDirective {
6
+ #private;
7
+ constructor();
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMenuButtonDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SdTableMenuButtonDirective, "sd-button[sdTableMenuButton]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenuTrigger; inputs: { "cdkMenuTriggerFor": "sdTableMenuButton"; }; outputs: {}; }]>;
10
+ }
@@ -2,6 +2,7 @@ import { SdTableCommand } from '../../models/table-command.model';
2
2
  import { SdTableItem } from '../../models/table-item.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DesktopCommand {
5
+ readonly menuPositions: import("@angular/cdk/overlay").ConnectedPosition[];
5
6
  readonly autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
6
7
  readonly item: import("@angular/core").InputSignal<SdTableItem<any>>;
7
8
  readonly itemIndex: import("@angular/core").InputSignal<number>;
@@ -140,7 +140,7 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
140
140
  ngAfterViewInit(): void;
141
141
  ngOnDestroy(): void;
142
142
  getFilterRequest: () => SdTableFilterRequest;
143
- /** Retry only the still-valid failed server request, without resetting filters or paging. */
143
+ /** Retry current hydration or the still-valid failed server request, without resetting filters or paging. */
144
144
  retryRead: () => Promise<void>;
145
145
  reload: (force?: boolean, scrollTop?: boolean) => Promise<void>;
146
146
  exportExcel: (columns?: SdExcelColumn[]) => void;
@@ -3115,11 +3115,11 @@ class SdFormRender {
3115
3115
  });
3116
3116
  }
3117
3117
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdFormRender, deps: [], target: i0.ɵɵFactoryTarget.Component });
3118
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdFormRender, isStandalone: true, selector: "sd-form-render", inputs: { form: "form", _configuration: ["configuration", "_configuration"], _default: ["defaultEntity", "_default"], _entity: ["entity", "_entity"], _properties: ["properties", "_properties"], _viewed: ["viewed", "_viewed"] }, viewQueries: [{ propertyName: "formRenderItems", predicate: LibItemComponent, descendants: true }], ngImport: i0, template: "@if (form && loadCompleted && hashedValues) {\n <div class=\"row mx-0\">\n @for (component of configuration.components; track component.id) {\n @let expression = hashedValues | whenExpression: component : formValue;\n @if (!expression.hidden) {\n @if (component.type === 'group') {\n @if (!!component.components.length) {\n <div class=\"col-12 mt-16\">\n <sd-section [title]=\"component.label\" [icon]=\"component.properties.icon\">\n <!-- why: `.sd-section-body` \u0111\u1EC3 padding 0 (m\u1ED7i n\u1ED9i dung t\u1EF1 quy\u1EBFt), n\u00EAn c\u00E1c field ch\u1EC9\n c\u00F2n px-8/py-8 c\u1EE7a ri\u00EAng ch\u00FAng v\u00E0 d\u00EDnh s\u00E1t khung section. Group t\u1EF1 ch\u1EEBa l\u1EC1. -->\n <div class=\"row mx-0 c-group-body\">\n @for (childComponent of component.components; track childComponent.id) {\n @let childExpression = hashedValues | whenExpression: childComponent : formValue;\n @if (!childExpression.hidden) {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"childComponent\"\n [required]=\"childExpression.required\"\n [disabled]=\"childExpression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n </div>\n </sd-section>\n </div>\n }\n } @else {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"component\"\n [required]=\"expression.required\"\n [disabled]=\"expression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n }\n <variable [variables]=\"configuration.variables\" [setVariables]=\"setVariables\" [form]=\"form\" [entity]=\"entity\" ></variable>\n </div>\n}\n", styles: [":host{display:contents}.c-group-body{padding:8px 8px 12px}\n"], dependencies: [{ kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: LibItemComponent, selector: "lib-item", inputs: ["setVariables", "form", "entity", "component", "disabled", "required", "viewed", "validator"] }, { kind: "pipe", type: WhenExpressionPipe, name: "whenExpression" }, { kind: "component", type: VariableComponent, selector: "variable", inputs: ["variables", "setVariables", "form", "entity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3118
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdFormRender, isStandalone: true, selector: "sd-form-render", inputs: { form: "form", _configuration: ["configuration", "_configuration"], _default: ["defaultEntity", "_default"], _entity: ["entity", "_entity"], _properties: ["properties", "_properties"], _viewed: ["viewed", "_viewed"] }, viewQueries: [{ propertyName: "formRenderItems", predicate: LibItemComponent, descendants: true }], ngImport: i0, template: "@if (form && loadCompleted && hashedValues) {\n <div class=\"row mx-0\">\n @for (component of configuration.components; track component.id) {\n @let expression = hashedValues | whenExpression: component : formValue;\n @if (!expression.hidden) {\n @if (component.type === 'group') {\n @if (!!component.components.length) {\n <div class=\"col-12 mt-16\">\n <sd-section [title]=\"component.label\" [icon]=\"component.properties.icon\" [collapsible]=\"component.properties.collapsible ?? false\">\n <!-- why: `.sd-section-body` \u0111\u1EC3 padding 0 (m\u1ED7i n\u1ED9i dung t\u1EF1 quy\u1EBFt), n\u00EAn c\u00E1c field ch\u1EC9\n c\u00F2n px-8/py-8 c\u1EE7a ri\u00EAng ch\u00FAng v\u00E0 d\u00EDnh s\u00E1t khung section. Group t\u1EF1 ch\u1EEBa l\u1EC1. -->\n <div class=\"row mx-0 c-group-body\">\n @for (childComponent of component.components; track childComponent.id) {\n @let childExpression = hashedValues | whenExpression: childComponent : formValue;\n @if (!childExpression.hidden) {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"childComponent\"\n [required]=\"childExpression.required\"\n [disabled]=\"childExpression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n </div>\n </sd-section>\n </div>\n }\n } @else {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"component\"\n [required]=\"expression.required\"\n [disabled]=\"expression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n }\n <variable [variables]=\"configuration.variables\" [setVariables]=\"setVariables\" [form]=\"form\" [entity]=\"entity\" ></variable>\n </div>\n}\n", styles: [":host{display:contents}.c-group-body{padding:8px 8px 12px}\n"], dependencies: [{ kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: LibItemComponent, selector: "lib-item", inputs: ["setVariables", "form", "entity", "component", "disabled", "required", "viewed", "validator"] }, { kind: "pipe", type: WhenExpressionPipe, name: "whenExpression" }, { kind: "component", type: VariableComponent, selector: "variable", inputs: ["variables", "setVariables", "form", "entity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3119
3119
  }
3120
3120
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdFormRender, decorators: [{
3121
3121
  type: Component,
3122
- args: [{ selector: 'sd-form-render', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdSection, LibItemComponent, WhenExpressionPipe, VariableComponent], template: "@if (form && loadCompleted && hashedValues) {\n <div class=\"row mx-0\">\n @for (component of configuration.components; track component.id) {\n @let expression = hashedValues | whenExpression: component : formValue;\n @if (!expression.hidden) {\n @if (component.type === 'group') {\n @if (!!component.components.length) {\n <div class=\"col-12 mt-16\">\n <sd-section [title]=\"component.label\" [icon]=\"component.properties.icon\">\n <!-- why: `.sd-section-body` \u0111\u1EC3 padding 0 (m\u1ED7i n\u1ED9i dung t\u1EF1 quy\u1EBFt), n\u00EAn c\u00E1c field ch\u1EC9\n c\u00F2n px-8/py-8 c\u1EE7a ri\u00EAng ch\u00FAng v\u00E0 d\u00EDnh s\u00E1t khung section. Group t\u1EF1 ch\u1EEBa l\u1EC1. -->\n <div class=\"row mx-0 c-group-body\">\n @for (childComponent of component.components; track childComponent.id) {\n @let childExpression = hashedValues | whenExpression: childComponent : formValue;\n @if (!childExpression.hidden) {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"childComponent\"\n [required]=\"childExpression.required\"\n [disabled]=\"childExpression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n </div>\n </sd-section>\n </div>\n }\n } @else {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"component\"\n [required]=\"expression.required\"\n [disabled]=\"expression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n }\n <variable [variables]=\"configuration.variables\" [setVariables]=\"setVariables\" [form]=\"form\" [entity]=\"entity\" ></variable>\n </div>\n}\n", styles: [":host{display:contents}.c-group-body{padding:8px 8px 12px}\n"] }]
3122
+ args: [{ selector: 'sd-form-render', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdSection, LibItemComponent, WhenExpressionPipe, VariableComponent], template: "@if (form && loadCompleted && hashedValues) {\n <div class=\"row mx-0\">\n @for (component of configuration.components; track component.id) {\n @let expression = hashedValues | whenExpression: component : formValue;\n @if (!expression.hidden) {\n @if (component.type === 'group') {\n @if (!!component.components.length) {\n <div class=\"col-12 mt-16\">\n <sd-section [title]=\"component.label\" [icon]=\"component.properties.icon\" [collapsible]=\"component.properties.collapsible ?? false\">\n <!-- why: `.sd-section-body` \u0111\u1EC3 padding 0 (m\u1ED7i n\u1ED9i dung t\u1EF1 quy\u1EBFt), n\u00EAn c\u00E1c field ch\u1EC9\n c\u00F2n px-8/py-8 c\u1EE7a ri\u00EAng ch\u00FAng v\u00E0 d\u00EDnh s\u00E1t khung section. Group t\u1EF1 ch\u1EEBa l\u1EC1. -->\n <div class=\"row mx-0 c-group-body\">\n @for (childComponent of component.components; track childComponent.id) {\n @let childExpression = hashedValues | whenExpression: childComponent : formValue;\n @if (!childExpression.hidden) {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"childComponent\"\n [required]=\"childExpression.required\"\n [disabled]=\"childExpression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n </div>\n </sd-section>\n </div>\n }\n } @else {\n <lib-item\n [setVariables]=\"setVariables\"\n [form]=\"form\"\n [entity]=\"entity\"\n [component]=\"component\"\n [required]=\"expression.required\"\n [disabled]=\"expression.disabled\"\n [viewed]=\"viewed\"></lib-item>\n }\n }\n }\n <variable [variables]=\"configuration.variables\" [setVariables]=\"setVariables\" [form]=\"form\" [entity]=\"entity\" ></variable>\n </div>\n}\n", styles: [":host{display:contents}.c-group-body{padding:8px 8px 12px}\n"] }]
3123
3123
  }], propDecorators: { formRenderItems: [{
3124
3124
  type: ViewChildren,
3125
3125
  args: [LibItemComponent]
@@ -5413,11 +5413,11 @@ class GroupAttribute {
5413
5413
  return 'label' in c ? c.label : c.key || c.id;
5414
5414
  };
5415
5415
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: GroupAttribute, deps: [], target: i0.ɵɵFactoryTarget.Component });
5416
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: GroupAttribute, isStandalone: true, selector: "group-attribute", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let _group = group();\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">info</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.general' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-input [form]=\"form\" [(model)]=\"_group.label\" [label]=\"'core.component.form-builder.label' | sdTranslate\"></attribute-input>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-icon' | sdTranslate }}</div>\n <div class=\"fb-icon-picker\">\n @for (icon of iconPresets; track icon) {\n <button type=\"button\" class=\"fb-icon-picker__btn\"\n [class.is-active]=\"_group.properties.icon === icon\"\n (click)=\"pickIcon(icon)\">\n <span class=\"msi\">{{ icon }}</span>\n </button>\n }\n </div>\n </div>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-accent-color' | sdTranslate }}</div>\n <div class=\"fb-color-swatches\">\n <!-- why: \u00F4 m\u00E0u l\u00E0 control ch\u1ECDn m\u00E0u TH\u1EACT nh\u01B0ng l\u1EA1i l\u00E0 <span (click)> \u2014 kh\u00F4ng nh\u1EADn focus,\n Enter/Space kh\u00F4ng ch\u1ECDn \u0111\u01B0\u1EE3c, v\u00E0 tr\u1EA1ng th\u00E1i \"\u0111ang ch\u1ECDn\" ch\u1EC9 t\u1ED3n t\u1EA1i \u1EDF CSS. \u0110\u1ED5i sang\n <button type=\"button\"> (t\u1EF1 focusable + Enter/Space) v\u00E0 khai aria-pressed \u0111\u1EC3 screen\n reader bi\u1EBFt \u00F4 n\u00E0o \u0111ang \u0111\u01B0\u1EE3c ch\u1ECDn. -->\n @for (color of colorPresets; track color) {\n <button\n type=\"button\"\n class=\"fb-color-swatch\"\n [class]=\"color\"\n [class.is-active]=\"_group.properties.color === color\"\n [attr.aria-pressed]=\"_group.properties.color === color\"\n (click)=\"pickColor(color)\"\n [attr.aria-label]=\"color\"></button>\n }\n </div>\n </div>\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">account_tree</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.group-children' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n @if (!_group.components?.length) {\n <div class=\"fb-children-empty\">{{ 'core.component.form-builder.group-no-children' | sdTranslate }}</div>\n } @else {\n <div class=\"fb-children-list\">\n @for (child of _group.components; track child.id) {\n <div class=\"fb-child-row\">\n <span class=\"fb-child-row__icon\"><span class=\"msi\">{{ symbolForChild(child) }}</span></span>\n <span class=\"fb-child-row__label\">{{ labelForChild(child) }}</span>\n <span class=\"fb-child-row__key\">{{ child.key }}</span>\n </div>\n }\n </div>\n }\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">visibility</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.display' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.visibleWhenExpression\"\n [label]=\"'core.component.form-builder.visible-when' | sdTranslate\">\n </attribute-expression>\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.hiddenWhenExpression\"\n [label]=\"'core.component.form-builder.hidden-when' | sdTranslate\">\n </attribute-expression>\n </div>\n</details>\n", styles: [":host{display:block}.fb-children-empty{font-size:12px;color:var(--md-sys-color-on-surface-variant);font-style:italic;padding:8px 0}\n"], dependencies: [{ kind: "component", type: AttributeInput, selector: "attribute-input", inputs: ["form", "label", "disabled", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: AttributeExpression, selector: "attribute-expression", inputs: ["components", "variables", "label", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5416
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: GroupAttribute, isStandalone: true, selector: "group-attribute", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let _group = group();\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">info</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.general' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-input [form]=\"form\" [(model)]=\"_group.label\" [label]=\"'core.component.form-builder.label' | sdTranslate\"></attribute-input>\n <attribute-switch\n [form]=\"form\"\n [(model)]=\"_group.properties.collapsible\"\n [label]=\"'core.component.form-builder.collapsible' | sdTranslate\"></attribute-switch>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-icon' | sdTranslate }}</div>\n <div class=\"fb-icon-picker\">\n @for (icon of iconPresets; track icon) {\n <button type=\"button\" class=\"fb-icon-picker__btn\"\n [class.is-active]=\"_group.properties.icon === icon\"\n (click)=\"pickIcon(icon)\">\n <span class=\"msi\">{{ icon }}</span>\n </button>\n }\n </div>\n </div>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-accent-color' | sdTranslate }}</div>\n <div class=\"fb-color-swatches\">\n <!-- why: \u00F4 m\u00E0u l\u00E0 control ch\u1ECDn m\u00E0u TH\u1EACT nh\u01B0ng l\u1EA1i l\u00E0 <span (click)> \u2014 kh\u00F4ng nh\u1EADn focus,\n Enter/Space kh\u00F4ng ch\u1ECDn \u0111\u01B0\u1EE3c, v\u00E0 tr\u1EA1ng th\u00E1i \"\u0111ang ch\u1ECDn\" ch\u1EC9 t\u1ED3n t\u1EA1i \u1EDF CSS. \u0110\u1ED5i sang\n <button type=\"button\"> (t\u1EF1 focusable + Enter/Space) v\u00E0 khai aria-pressed \u0111\u1EC3 screen\n reader bi\u1EBFt \u00F4 n\u00E0o \u0111ang \u0111\u01B0\u1EE3c ch\u1ECDn. -->\n @for (color of colorPresets; track color) {\n <button\n type=\"button\"\n class=\"fb-color-swatch\"\n [class]=\"color\"\n [class.is-active]=\"_group.properties.color === color\"\n [attr.aria-pressed]=\"_group.properties.color === color\"\n (click)=\"pickColor(color)\"\n [attr.aria-label]=\"color\"></button>\n }\n </div>\n </div>\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">account_tree</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.group-children' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n @if (!_group.components?.length) {\n <div class=\"fb-children-empty\">{{ 'core.component.form-builder.group-no-children' | sdTranslate }}</div>\n } @else {\n <div class=\"fb-children-list\">\n @for (child of _group.components; track child.id) {\n <div class=\"fb-child-row\">\n <span class=\"fb-child-row__icon\"><span class=\"msi\">{{ symbolForChild(child) }}</span></span>\n <span class=\"fb-child-row__label\">{{ labelForChild(child) }}</span>\n <span class=\"fb-child-row__key\">{{ child.key }}</span>\n </div>\n }\n </div>\n }\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">visibility</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.display' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.visibleWhenExpression\"\n [label]=\"'core.component.form-builder.visible-when' | sdTranslate\">\n </attribute-expression>\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.hiddenWhenExpression\"\n [label]=\"'core.component.form-builder.hidden-when' | sdTranslate\">\n </attribute-expression>\n </div>\n</details>\n", styles: [":host{display:block}.fb-children-empty{font-size:12px;color:var(--md-sys-color-on-surface-variant);font-style:italic;padding:8px 0}\n"], dependencies: [{ kind: "component", type: AttributeInput, selector: "attribute-input", inputs: ["form", "label", "disabled", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: AttributeExpression, selector: "attribute-expression", inputs: ["components", "variables", "label", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: AttributeSwitch, selector: "attribute-switch", inputs: ["form", "label", "model"], outputs: ["modelChange"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5417
5417
  }
5418
5418
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: GroupAttribute, decorators: [{
5419
5419
  type: Component,
5420
- args: [{ selector: 'group-attribute', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AttributeInput, AttributeExpression, SdTranslatePipe], template: "@let _group = group();\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">info</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.general' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-input [form]=\"form\" [(model)]=\"_group.label\" [label]=\"'core.component.form-builder.label' | sdTranslate\"></attribute-input>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-icon' | sdTranslate }}</div>\n <div class=\"fb-icon-picker\">\n @for (icon of iconPresets; track icon) {\n <button type=\"button\" class=\"fb-icon-picker__btn\"\n [class.is-active]=\"_group.properties.icon === icon\"\n (click)=\"pickIcon(icon)\">\n <span class=\"msi\">{{ icon }}</span>\n </button>\n }\n </div>\n </div>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-accent-color' | sdTranslate }}</div>\n <div class=\"fb-color-swatches\">\n <!-- why: \u00F4 m\u00E0u l\u00E0 control ch\u1ECDn m\u00E0u TH\u1EACT nh\u01B0ng l\u1EA1i l\u00E0 <span (click)> \u2014 kh\u00F4ng nh\u1EADn focus,\n Enter/Space kh\u00F4ng ch\u1ECDn \u0111\u01B0\u1EE3c, v\u00E0 tr\u1EA1ng th\u00E1i \"\u0111ang ch\u1ECDn\" ch\u1EC9 t\u1ED3n t\u1EA1i \u1EDF CSS. \u0110\u1ED5i sang\n <button type=\"button\"> (t\u1EF1 focusable + Enter/Space) v\u00E0 khai aria-pressed \u0111\u1EC3 screen\n reader bi\u1EBFt \u00F4 n\u00E0o \u0111ang \u0111\u01B0\u1EE3c ch\u1ECDn. -->\n @for (color of colorPresets; track color) {\n <button\n type=\"button\"\n class=\"fb-color-swatch\"\n [class]=\"color\"\n [class.is-active]=\"_group.properties.color === color\"\n [attr.aria-pressed]=\"_group.properties.color === color\"\n (click)=\"pickColor(color)\"\n [attr.aria-label]=\"color\"></button>\n }\n </div>\n </div>\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">account_tree</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.group-children' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n @if (!_group.components?.length) {\n <div class=\"fb-children-empty\">{{ 'core.component.form-builder.group-no-children' | sdTranslate }}</div>\n } @else {\n <div class=\"fb-children-list\">\n @for (child of _group.components; track child.id) {\n <div class=\"fb-child-row\">\n <span class=\"fb-child-row__icon\"><span class=\"msi\">{{ symbolForChild(child) }}</span></span>\n <span class=\"fb-child-row__label\">{{ labelForChild(child) }}</span>\n <span class=\"fb-child-row__key\">{{ child.key }}</span>\n </div>\n }\n </div>\n }\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">visibility</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.display' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.visibleWhenExpression\"\n [label]=\"'core.component.form-builder.visible-when' | sdTranslate\">\n </attribute-expression>\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.hiddenWhenExpression\"\n [label]=\"'core.component.form-builder.hidden-when' | sdTranslate\">\n </attribute-expression>\n </div>\n</details>\n", styles: [":host{display:block}.fb-children-empty{font-size:12px;color:var(--md-sys-color-on-surface-variant);font-style:italic;padding:8px 0}\n"] }]
5420
+ args: [{ selector: 'group-attribute', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AttributeInput, AttributeExpression, AttributeSwitch, SdTranslatePipe], template: "@let _group = group();\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">info</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.general' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-input [form]=\"form\" [(model)]=\"_group.label\" [label]=\"'core.component.form-builder.label' | sdTranslate\"></attribute-input>\n <attribute-switch\n [form]=\"form\"\n [(model)]=\"_group.properties.collapsible\"\n [label]=\"'core.component.form-builder.collapsible' | sdTranslate\"></attribute-switch>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-icon' | sdTranslate }}</div>\n <div class=\"fb-icon-picker\">\n @for (icon of iconPresets; track icon) {\n <button type=\"button\" class=\"fb-icon-picker__btn\"\n [class.is-active]=\"_group.properties.icon === icon\"\n (click)=\"pickIcon(icon)\">\n <span class=\"msi\">{{ icon }}</span>\n </button>\n }\n </div>\n </div>\n\n <div class=\"fb-field\">\n <div class=\"fb-field__label\">{{ 'core.component.form-builder.group-accent-color' | sdTranslate }}</div>\n <div class=\"fb-color-swatches\">\n <!-- why: \u00F4 m\u00E0u l\u00E0 control ch\u1ECDn m\u00E0u TH\u1EACT nh\u01B0ng l\u1EA1i l\u00E0 <span (click)> \u2014 kh\u00F4ng nh\u1EADn focus,\n Enter/Space kh\u00F4ng ch\u1ECDn \u0111\u01B0\u1EE3c, v\u00E0 tr\u1EA1ng th\u00E1i \"\u0111ang ch\u1ECDn\" ch\u1EC9 t\u1ED3n t\u1EA1i \u1EDF CSS. \u0110\u1ED5i sang\n <button type=\"button\"> (t\u1EF1 focusable + Enter/Space) v\u00E0 khai aria-pressed \u0111\u1EC3 screen\n reader bi\u1EBFt \u00F4 n\u00E0o \u0111ang \u0111\u01B0\u1EE3c ch\u1ECDn. -->\n @for (color of colorPresets; track color) {\n <button\n type=\"button\"\n class=\"fb-color-swatch\"\n [class]=\"color\"\n [class.is-active]=\"_group.properties.color === color\"\n [attr.aria-pressed]=\"_group.properties.color === color\"\n (click)=\"pickColor(color)\"\n [attr.aria-label]=\"color\"></button>\n }\n </div>\n </div>\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">account_tree</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.group-children' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n @if (!_group.components?.length) {\n <div class=\"fb-children-empty\">{{ 'core.component.form-builder.group-no-children' | sdTranslate }}</div>\n } @else {\n <div class=\"fb-children-list\">\n @for (child of _group.components; track child.id) {\n <div class=\"fb-child-row\">\n <span class=\"fb-child-row__icon\"><span class=\"msi\">{{ symbolForChild(child) }}</span></span>\n <span class=\"fb-child-row__label\">{{ labelForChild(child) }}</span>\n <span class=\"fb-child-row__key\">{{ child.key }}</span>\n </div>\n }\n </div>\n }\n </div>\n</details>\n\n<details class=\"fb-section\" open>\n <summary class=\"fb-section__head\">\n <span class=\"msi\">visibility</span>\n <span class=\"fb-section__title\">{{ 'core.component.form-builder.display' | sdTranslate }}</span>\n <span class=\"msi chev\">chevron_right</span>\n </summary>\n <div class=\"fb-section__body\">\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.visibleWhenExpression\"\n [label]=\"'core.component.form-builder.visible-when' | sdTranslate\">\n </attribute-expression>\n <attribute-expression\n [components]=\"[]\"\n [variables]=\"[]\"\n [(model)]=\"_group.properties.hiddenWhenExpression\"\n [label]=\"'core.component.form-builder.hidden-when' | sdTranslate\">\n </attribute-expression>\n </div>\n</details>\n", styles: [":host{display:block}.fb-children-empty{font-size:12px;color:var(--md-sys-color-on-surface-variant);font-style:italic;padding:8px 0}\n"] }]
5421
5421
  }], ctorParameters: () => [] });
5422
5422
 
5423
5423
  // Component xây dựng Expression dựa vào SdFormGenericExpression