ngx-axis-appforge 0.0.20 → 0.0.21

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 (31) hide show
  1. package/axis-components/color-picker/design/index.d.ts +5 -0
  2. package/axis-components/color-picker/index.d.ts +20 -0
  3. package/axis-components/input-json/index.d.ts +1 -0
  4. package/axis-components/select/design/index.d.ts +5 -0
  5. package/axis-components/select/index.d.ts +44 -0
  6. package/axis-components/table/index.d.ts +17 -1
  7. package/axis-components-covers/color-picker.svg +98 -0
  8. package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +97 -0
  9. package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -0
  10. package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +34 -0
  11. package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs.map +1 -0
  12. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +2 -2
  13. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
  14. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +4 -0
  15. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
  16. package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +149 -0
  17. package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -0
  18. package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +130 -0
  19. package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -0
  20. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +4 -2
  21. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
  22. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +50 -4
  23. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
  24. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +6 -6
  25. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
  26. package/fesm2022/ngx-axis-appforge-axis-components.mjs +44 -28
  27. package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
  28. package/fesm2022/ngx-axis-appforge-core.mjs +3 -1
  29. package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
  30. package/package.json +90 -74
  31. /package/axis-components-covers/{single-selector.svg → select.svg} +0 -0
@@ -0,0 +1,5 @@
1
+ import { DesignConfig } from 'ngx-axis-appforge/core';
2
+
3
+ declare const Config: DesignConfig;
4
+
5
+ export { Config };
@@ -0,0 +1,20 @@
1
+ import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
2
+ import * as _angular_core from '@angular/core';
3
+
4
+ declare class ColorPickerOptions extends ValueAccessOptions {
5
+ readonly format: _angular_core.WritableSignal<"rgb" | "hex" | "hsb">;
6
+ readonly size: _angular_core.WritableSignal<"large" | "small" | "default">;
7
+ readonly allowClear: _angular_core.WritableSignal<boolean>;
8
+ readonly trigger: _angular_core.WritableSignal<"hover" | "click">;
9
+ readonly showText: _angular_core.WritableSignal<boolean>;
10
+ readonly disabledAlpha: _angular_core.WritableSignal<boolean>;
11
+ readonly title: _angular_core.WritableSignal<string>;
12
+ }
13
+
14
+ declare class ColorPickerSelector extends ValueAccess<ColorPickerOptions> {
15
+ options: ColorPickerOptions;
16
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPickerSelector, never>;
17
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerSelector, "axis-color-picker", never, {}, {}, never, never, true, never>;
18
+ }
19
+
20
+ export { ColorPickerSelector };
@@ -13,6 +13,7 @@ declare class InputJson extends ValueAccess<ValueAccessOptions> {
13
13
  readonly open: _angular_core.ModelSignal<boolean>;
14
14
  readonly canOk: _angular_core.Signal<boolean>;
15
15
  readonly editData: _angular_core.ModelSignal<string>;
16
+ setInitValue(value: any): void;
16
17
  writeValue(value: any): void;
17
18
  setEditData(): void;
18
19
  onCancel(): void;
@@ -0,0 +1,5 @@
1
+ import { DesignConfig } from 'ngx-axis-appforge/core';
2
+
3
+ declare const Config: DesignConfig;
4
+
5
+ export { Config };
@@ -0,0 +1,44 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
3
+
4
+ declare class SelectOptions extends ValueAccessOptions {
5
+ readonly labelField: _angular_core.WritableSignal<string>;
6
+ readonly valueField: _angular_core.WritableSignal<string>;
7
+ readonly disabledField: _angular_core.WritableSignal<string>;
8
+ readonly fullValue: _angular_core.WritableSignal<boolean>;
9
+ readonly data: _angular_core.WritableSignal<any>;
10
+ readonly mode: _angular_core.WritableSignal<"multiple" | "tags" | "default">;
11
+ readonly allowClear: _angular_core.WritableSignal<boolean>;
12
+ readonly defaultFirst: _angular_core.WritableSignal<boolean>;
13
+ readonly maxMultipleCount: _angular_core.WritableSignal<number>;
14
+ readonly placeholder: _angular_core.WritableSignal<string>;
15
+ readonly backdrop: _angular_core.WritableSignal<boolean>;
16
+ readonly variant: _angular_core.WritableSignal<"outlined" | "borderless" | "filled" | "underlined">;
17
+ readonly dropdownMatchSelectWidth: _angular_core.WritableSignal<boolean>;
18
+ readonly size: _angular_core.WritableSignal<"default" | "large" | "small">;
19
+ readonly optionOverflowSize: _angular_core.WritableSignal<number>;
20
+ readonly selectOnTab: _angular_core.WritableSignal<boolean>;
21
+ readonly tokenSeparators: _angular_core.WritableSignal<string[]>;
22
+ readonly maxTagCount: _angular_core.WritableSignal<number>;
23
+ readonly showSearch: _angular_core.WritableSignal<boolean>;
24
+ readonly serverSearch: _angular_core.WritableSignal<boolean>;
25
+ readonly autoClearSearchValue: _angular_core.WritableSignal<boolean>;
26
+ }
27
+
28
+ declare class Select extends ValueAccess<SelectOptions> {
29
+ constructor();
30
+ options: SelectOptions;
31
+ readonly displayValue: _angular_core.Signal<string>;
32
+ readonly selectorValue: _angular_core.ModelSignal<any[] | undefined>;
33
+ readonly searchText: _angular_core.WritableSignal<string>;
34
+ writeValue(value: any): void;
35
+ setInitValue(value: any): void;
36
+ private valueToSelectorValue;
37
+ onSelectorChange(value: any): void;
38
+ private buildDisplay;
39
+ searchChange(input: string): void;
40
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Select, never>;
41
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Select, "axis-select", never, { "selectorValue": { "alias": "selectorValue"; "required": false; "isSignal": true; }; }, { "selectorValue": "selectorValueChange"; }, never, never, true, never>;
42
+ }
43
+
44
+ export { Select };
@@ -9,6 +9,8 @@ import { Subject, Subscription } from 'rxjs';
9
9
  declare class TableOptions extends DataOptions {
10
10
  readonly keyField: _angular_core.WritableSignal<string>;
11
11
  readonly showExpand: _angular_core.WritableSignal<boolean>;
12
+ readonly expandMode: _angular_core.WritableSignal<"custom" | "tree">;
13
+ readonly treeChildrenFun: _angular_core.WritableSignal<string>;
12
14
  readonly showTableTitleSet: _angular_core.WritableSignal<boolean>;
13
15
  readonly tableSetCacheKey: _angular_core.WritableSignal<string>;
14
16
  readonly size: _angular_core.WritableSignal<"middle" | "small" | "default">;
@@ -66,7 +68,7 @@ declare class TableFieldOptions {
66
68
  readonly filterAble: _angular_core.WritableSignal<boolean>;
67
69
  readonly filterMultiple: _angular_core.WritableSignal<boolean>;
68
70
  readonly width: _angular_core.WritableSignal<number | null>;
69
- readonly align: _angular_core.WritableSignal<"left" | "right" | "center">;
71
+ readonly align: _angular_core.WritableSignal<"center" | "left" | "right">;
70
72
  readonly freezeMode: _angular_core.WritableSignal<"left" | "right" | "none">;
71
73
  readonly groupLevel: _angular_core.WritableSignal<number | null>;
72
74
  readonly totalAble: _angular_core.WritableSignal<boolean>;
@@ -95,8 +97,22 @@ declare class Select {
95
97
  }
96
98
 
97
99
  declare class Expand {
100
+ private options;
101
+ constructor(options: TableOptions);
98
102
  readonly expandedSet: Set<unknown>;
103
+ readonly nodeMap: _angular_core.Signal<Map<string, {
104
+ level: number;
105
+ node: any;
106
+ children?: any[];
107
+ }>>;
108
+ buildNodeMap(): Map<string, {
109
+ level: number;
110
+ node: any;
111
+ children?: any[];
112
+ }>;
99
113
  onExpandChange(key: any, checked: boolean): void;
114
+ buildNodeMapForRow(row: any, nodeMap: Map<string, any>, parentLevel?: number): void;
115
+ getListForExpanded(row: any): any[];
100
116
  }
101
117
 
102
118
  declare class TableSetter implements OnDestroy {
@@ -0,0 +1,98 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="157px" height="138px" viewBox="0 0 157 138" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 6</title>
4
+ <defs>
5
+ <linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
6
+ <stop stop-color="#1677FF" offset="0%"></stop>
7
+ <stop stop-color="#FFFFFF" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="0.0897381757%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#000000" stop-opacity="0" offset="0.0897381757%"></stop>
11
+ <stop stop-color="#000000" offset="100%"></stop>
12
+ </linearGradient>
13
+ <rect id="path-3" x="7.20930233" y="7.22123894" width="140.581395" height="96.2831858" rx="2.40310078"></rect>
14
+ <filter x="-0.4%" y="-0.5%" width="100.7%" height="101.0%" filterUnits="objectBoundingBox" id="filter-4">
15
+ <feGaussianBlur stdDeviation="0.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
16
+ <feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
17
+ <feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
18
+ <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
19
+ </filter>
20
+ <linearGradient x1="-1.11022302e-14%" y1="50%" x2="100%" y2="50%" id="linearGradient-5">
21
+ <stop stop-color="#FF0000" offset="0%"></stop>
22
+ <stop stop-color="#FFEC00" offset="15.8904589%"></stop>
23
+ <stop stop-color="#19FF00" offset="32.7501249%"></stop>
24
+ <stop stop-color="#00BFFF" offset="48.4671926%"></stop>
25
+ <stop stop-color="#0016FF" offset="66.1726094%"></stop>
26
+ <stop stop-color="#FF00F6" offset="84.4271399%"></stop>
27
+ <stop stop-color="#FF0000" offset="100%"></stop>
28
+ </linearGradient>
29
+ <rect id="path-6" x="0" y="1.20353982" width="140" height="4.81415929" rx="2.40310078"></rect>
30
+ <filter x="-0.4%" y="-10.4%" width="100.7%" height="120.8%" filterUnits="objectBoundingBox" id="filter-7">
31
+ <feGaussianBlur stdDeviation="0.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
32
+ <feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
33
+ <feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
34
+ <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.199332817 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
35
+ </filter>
36
+ <rect id="path-8" x="63.6821705" y="0" width="7.20930233" height="7.22123894" rx="3.60465116"></rect>
37
+ <rect id="path-9" x="0" y="0" width="97.3255814" height="4.81415929" rx="2.40310078"></rect>
38
+ <linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-11">
39
+ <stop stop-color="#1677FF" offset="0%"></stop>
40
+ <stop stop-color="#003CF0" stop-opacity="0" offset="100%"></stop>
41
+ </linearGradient>
42
+ <rect id="path-12" x="0" y="1.20353982" width="140" height="4.81415929" rx="2.40310078"></rect>
43
+ <filter x="-0.4%" y="-10.4%" width="100.7%" height="120.8%" filterUnits="objectBoundingBox" id="filter-13">
44
+ <feGaussianBlur stdDeviation="0.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
45
+ <feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
46
+ <feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
47
+ <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
48
+ </filter>
49
+ <rect id="path-14" x="133.341085" y="0" width="7.20930233" height="7.22123894" rx="3.60465116"></rect>
50
+ </defs>
51
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
52
+ <g id="🎉-5.0-新版---白" transform="translate(-539.000000, -2648.000000)">
53
+ <g id="编组-7" transform="translate(540.000000, 2649.000000)">
54
+ <g id="编组-4备份">
55
+ <g id="4.数据展示/2.Popover气泡卡片/亮色/⬅️右上备份-34" fill="#FFFFFF" fill-rule="nonzero" stroke="#000000" stroke-opacity="0.123409565" stroke-width="0.5">
56
+ <path d="M148.838725,-1.60917407e-15 L6.16127451,-6.9723565e-15 C4.01886514,4.05113992e-15 3.24197573,0.223069298 2.45874288,0.641946808 C1.67551004,1.06082432 1.06082432,1.67551004 0.641946808,2.45874288 C0.223069298,3.24197573 0,4.01886514 0,6.16127451 L0,129.838725 C0,131.981135 0.223069298,132.758024 0.641946808,133.541257 C1.06082432,134.32449 1.67551004,134.939176 2.45874288,135.358053 C3.24197573,135.776931 4.01886514,136 6.16127451,136 L148.838725,136 C150.981135,136 151.758024,135.776931 152.541257,135.358053 C153.32449,134.939176 153.939176,134.32449 154.358053,133.541257 C154.776931,132.758024 155,131.981135 155,129.838725 L155,6.16127451 C155,4.01886514 154.776931,3.24197573 154.358053,2.45874288 C153.939176,1.67551004 153.32449,1.06082432 152.541257,0.641946808 C151.758024,0.223069298 150.981135,9.34976478e-16 148.838725,-1.60917407e-15 Z" id="形状结合"></path>
57
+ </g>
58
+ <g id="Rectangle备份-61">
59
+ <use fill="url(#linearGradient-1)" fill-rule="evenodd" xlink:href="#path-3"></use>
60
+ <use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
61
+ <use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
62
+ </g>
63
+ </g>
64
+ <g id="编组-4" transform="translate(7.209302, 109.522124)">
65
+ <g id="Group备份-36">
66
+ <g id="Rectangle">
67
+ <use fill="url(#linearGradient-5)" fill-rule="evenodd" xlink:href="#path-6"></use>
68
+ <use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
69
+ </g>
70
+ <g id="Rectangle">
71
+ <rect stroke="#FFFFFF" stroke-width="1.20155039" stroke-linejoin="square" fill="#1677FF" fill-rule="evenodd" x="64.2829457" y="0.600775194" width="6.00775194" height="6.01968855" rx="3.00387597"></rect>
72
+ <rect stroke-opacity="0.06" stroke="#000000" stroke-width="0.600775194" x="63.3817829" y="-0.300387597" width="7.81007752" height="7.82201413" rx="3.90503876"></rect>
73
+ </g>
74
+ </g>
75
+ <g id="Group-Copy备份-36" transform="translate(0.000000, 12.035398)">
76
+ <g id="编组" transform="translate(0.000000, 1.203540)">
77
+ <mask id="mask-10" fill="white">
78
+ <use xlink:href="#path-9"></use>
79
+ </mask>
80
+ <g id="蒙版"></g>
81
+ <g mask="url(#mask-10)" fill="#000000" fill-opacity="0.056043078" id="形状结合">
82
+ <path d="M0,0 L2.40310078,0 L2.40310078,2.40707965 L0,2.40707965 Z M4.80620155,0 L7.20930233,0 L7.20930233,2.40707965 L4.80620155,2.40707965 Z M2.40310078,2.40707965 L4.80620155,2.40707965 L4.80620155,4.81415929 L2.40310078,4.81415929 Z M7.20930233,2.40707965 L9.6124031,2.40707965 L9.6124031,4.81415929 L7.20930233,4.81415929 Z M12.0155039,2.40707965 L14.4186047,2.40707965 L14.4186047,4.81415929 L12.0155039,4.81415929 Z M16.8217054,2.40707965 L19.2248062,2.40707965 L19.2248062,4.81415929 L16.8217054,4.81415929 Z M21.627907,2.40707965 L24.0310078,2.40707965 L24.0310078,4.81415929 L21.627907,4.81415929 Z M26.4341085,2.40707965 L28.8372093,2.40707965 L28.8372093,4.81415929 L26.4341085,4.81415929 Z M31.2403101,2.40707965 L33.6434109,2.40707965 L33.6434109,4.81415929 L31.2403101,4.81415929 Z M36.0465116,2.40707965 L38.4496124,2.40707965 L38.4496124,4.81415929 L36.0465116,4.81415929 Z M40.8527132,2.40707965 L43.255814,2.40707965 L43.255814,4.81415929 L40.8527132,4.81415929 Z M45.6589147,2.40707965 L48.0620155,2.40707965 L48.0620155,4.81415929 L45.6589147,4.81415929 Z M50.4651163,2.40707965 L52.8682171,2.40707965 L52.8682171,4.81415929 L50.4651163,4.81415929 Z M9.6124031,0 L12.0155039,0 L12.0155039,2.40707965 L9.6124031,2.40707965 Z M14.4186047,0 L16.8217054,0 L16.8217054,2.40707965 L14.4186047,2.40707965 Z M19.2248062,0 L21.627907,0 L21.627907,2.40707965 L19.2248062,2.40707965 Z M24.0310078,0 L26.4341085,0 L26.4341085,2.40707965 L24.0310078,2.40707965 Z M28.8372093,0 L31.2403101,0 L31.2403101,2.40707965 L28.8372093,2.40707965 Z M33.6434109,0 L36.0465116,0 L36.0465116,2.40707965 L33.6434109,2.40707965 Z M38.4496124,0 L40.8527132,0 L40.8527132,2.40707965 L38.4496124,2.40707965 Z M43.255814,0 L45.6589147,0 L45.6589147,2.40707965 L43.255814,2.40707965 Z M48.0620155,0 L50.4651163,0 L50.4651163,2.40707965 L48.0620155,2.40707965 Z M52.8682171,0 L55.2713178,0 L55.2713178,2.40707965 L52.8682171,2.40707965 Z M57.6744186,0 L60.0775194,0 L60.0775194,2.40707965 L57.6744186,2.40707965 Z M62.4806202,0 L64.8837209,0 L64.8837209,2.40707965 L62.4806202,2.40707965 Z M67.2868217,0 L69.6899225,0 L69.6899225,2.40707965 L67.2868217,2.40707965 Z M72.0930233,0 L74.496124,0 L74.496124,2.40707965 L72.0930233,2.40707965 Z M76.8992248,0 L79.3023256,0 L79.3023256,2.40707965 L76.8992248,2.40707965 Z M84.1085271,0 L84.1085271,2.40707965 L81.7054264,2.40707965 L81.7054264,0 L84.1085271,0 Z M86.5116279,0 L88.9147287,0 L88.9147287,2.40707965 L86.5116279,2.40707965 Z M91.3178295,0 L93.7209302,0 L93.7209302,2.40707965 L91.3178295,2.40707965 Z M99.7286822,0 L102.131783,0 L102.131783,2.40707965 L99.7286822,2.40707965 Z M96.124031,0 L98.5271318,0 L98.5271318,2.40707965 L96.124031,2.40707965 Z M55.2713178,2.40707965 L57.6744186,2.40707965 L57.6744186,4.81415929 L55.2713178,4.81415929 Z M60.0775194,2.40707965 L62.4806202,2.40707965 L62.4806202,4.81415929 L60.0775194,4.81415929 Z M64.8837209,2.40707965 L67.2868217,2.40707965 L67.2868217,4.81415929 L64.8837209,4.81415929 Z M69.6899225,2.40707965 L72.0930233,2.40707965 L72.0930233,4.81415929 L69.6899225,4.81415929 Z M74.496124,2.40707965 L76.8992248,2.40707965 L76.8992248,4.81415929 L74.496124,4.81415929 Z M79.3023256,2.40707965 L81.7054264,2.40707965 L81.7054264,4.81415929 L79.3023256,4.81415929 Z M84.1085271,2.40707965 L86.5116279,2.40707965 L86.5116279,4.81415929 L84.1085271,4.81415929 Z M88.9147287,2.40707965 L91.3178295,2.40707965 L91.3178295,4.81415929 L88.9147287,4.81415929 Z M93.7209302,2.40707965 L96.124031,2.40707965 L96.124031,4.81415929 L93.7209302,4.81415929 Z M97.9263566,2.40707965 L100.329457,2.40707965 L100.329457,4.81415929 L97.9263566,4.81415929 Z"></path>
83
+ </g>
84
+ </g>
85
+ <g id="Rectangle">
86
+ <use fill="url(#linearGradient-11)" fill-rule="evenodd" xlink:href="#path-12"></use>
87
+ <use fill="black" fill-opacity="1" filter="url(#filter-13)" xlink:href="#path-12"></use>
88
+ </g>
89
+ <g id="Rectangle">
90
+ <rect stroke="#FFFFFF" stroke-width="1.20155039" stroke-linejoin="square" x="133.94186" y="0.600775194" width="6.00775194" height="6.01968855" rx="3.00387597"></rect>
91
+ <rect stroke-opacity="0.06" stroke="#000000" stroke-width="0.600775194" x="133.040698" y="-0.300387597" width="7.81007752" height="7.82201413" rx="3.90503876"></rect>
92
+ </g>
93
+ </g>
94
+ </g>
95
+ </g>
96
+ </g>
97
+ </g>
98
+ </svg>
@@ -0,0 +1,97 @@
1
+ import { FunFieldValueBase, FormValidators, valueFbConfig, baseFbConfig, valueFunField, baseFunField, BaseDesignSetting, ValueDesignSetting, FunField, InputTrigger, OptionsNode, SimpleMenu } from 'ngx-axis-appforge/core';
2
+ import * as i0 from '@angular/core';
3
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import * as i1 from '@angular/forms';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import * as i2 from 'ng-zorro-antd/collapse';
7
+ import { NzCollapseModule } from 'ng-zorro-antd/collapse';
8
+ import * as i4 from 'ng-zorro-antd/form';
9
+ import { NzFormModule } from 'ng-zorro-antd/form';
10
+ import * as i6 from 'ng-zorro-antd/input';
11
+ import { NzInputModule } from 'ng-zorro-antd/input';
12
+ import * as i7 from 'ng-zorro-antd/radio';
13
+ import { NzRadioModule } from 'ng-zorro-antd/radio';
14
+ import * as i8 from 'ng-zorro-antd/select';
15
+ import { NzSelectModule } from 'ng-zorro-antd/select';
16
+ import * as i5 from 'ng-zorro-antd/switch';
17
+ import { NzSwitchModule } from 'ng-zorro-antd/switch';
18
+ import * as i3 from 'ng-zorro-antd/grid';
19
+
20
+ class Setting extends FunFieldValueBase {
21
+ fg = this.fb.group({
22
+ ...baseFbConfig,
23
+ ...valueFbConfig,
24
+ format: [undefined, FormValidators.requiredFun],
25
+ size: [undefined, FormValidators.requiredFun],
26
+ allowClear: [undefined, FormValidators.requiredFun],
27
+ trigger: [undefined, FormValidators.requiredFun],
28
+ showText: [undefined, FormValidators.requiredFun],
29
+ disabledAlpha: [undefined, FormValidators.requiredFun],
30
+ title: [],
31
+ });
32
+ funFields = {
33
+ ...baseFunField,
34
+ ...valueFunField,
35
+ format: {
36
+ defaultValue: "hex"
37
+ },
38
+ size: {
39
+ defaultValue: "default"
40
+ },
41
+ allowClear: {
42
+ defaultValue: false
43
+ },
44
+ trigger: {
45
+ defaultValue: "click"
46
+ },
47
+ showText: {
48
+ defaultValue: false
49
+ },
50
+ disabledAlpha: {
51
+ defaultValue: false
52
+ },
53
+ title: {
54
+ defaultValue: ""
55
+ },
56
+ };
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: Setting, isStandalone: true, selector: "axis-design-single-selector-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u683C\u5F0F\u5316\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"format\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"rgb\" nzLabel=\"rgb\"></nz-option>\n <nz-option nzValue=\"hex\" nzLabel=\"hex\"></nz-option>\n <nz-option nzValue=\"hsb\" nzLabel=\"hsb\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group nzSize=\"small\" ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5141\u8BB8\u6E05\u7A7A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"allowClear\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u89E6\u53D1\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"trigger\">\n <nz-radio-group nzSize=\"small\" ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"click\">\u70B9\u51FB</label>\n <label nz-radio-button nzValue=\"hover\">\u89E6\u78B0</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u663E\u793A\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showText\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u7981\u7528\u900F\u660E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledAlpha\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3.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.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i5.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i6.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i7.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i8.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i8.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Setting, decorators: [{
61
+ type: Component,
62
+ args: [{ selector: 'axis-design-single-selector-setting', imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, FunField, NzSwitchModule, InputTrigger, NzInputModule, NzRadioModule, NzSelectModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u683C\u5F0F\u5316\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"format\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"rgb\" nzLabel=\"rgb\"></nz-option>\n <nz-option nzValue=\"hex\" nzLabel=\"hex\"></nz-option>\n <nz-option nzValue=\"hsb\" nzLabel=\"hsb\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group nzSize=\"small\" ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5141\u8BB8\u6E05\u7A7A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"allowClear\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u89E6\u53D1\u65B9\u5F0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"trigger\">\n <nz-radio-group nzSize=\"small\" ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"click\">\u70B9\u51FB</label>\n <label nz-radio-button nzValue=\"hover\">\u89E6\u78B0</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u663E\u793A\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showText\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u7981\u7528\u900F\u660E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledAlpha\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
63
+ }] });
64
+
65
+ const Config = {
66
+ componentName: "颜色选择器",
67
+ buildOptionsNodes(nextInfo) {
68
+ return {
69
+ treeNode: new OptionsNode({
70
+ parentId: nextInfo.parentId,
71
+ scopeId: nextInfo.scopeId,
72
+ name: "颜色选择器",
73
+ canSetting: true,
74
+ canDrag: true,
75
+ dragType: "component",
76
+ parentObj: nextInfo.parentObject,
77
+ indexOfParentObj: nextInfo.indexOfParent,
78
+ rootOptions: nextInfo.currentObject,
79
+ settingType: Setting,
80
+ contextMenu: SimpleMenu,
81
+ icon: "bg-colors",
82
+ }),
83
+ };
84
+ },
85
+ bindElementsOptionsNode(element, options) {
86
+ return {
87
+ [options.id]: { element },
88
+ };
89
+ },
90
+ };
91
+
92
+ /**
93
+ * Generated bundle index. Do not edit.
94
+ */
95
+
96
+ export { Config };
97
+ //# sourceMappingURL=ngx-axis-appforge-axis-components-color-picker-design.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-color-picker-design.mjs","sources":["../../../axis-components/color-picker/design/setting/setting.ts","../../../axis-components/color-picker/design/setting/setting.html","../../../axis-components/color-picker/design/config.ts","../../../axis-components/color-picker/design/ngx-axis-appforge-axis-components-color-picker-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-single-selector-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, FunField, NzSwitchModule, InputTrigger, NzInputModule, NzRadioModule, NzSelectModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n format: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n allowClear: [undefined, FormValidators.requiredFun],\n trigger: [undefined, FormValidators.requiredFun],\n showText: [undefined, FormValidators.requiredFun],\n disabledAlpha: [undefined, FormValidators.requiredFun],\n title: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n format: {\n defaultValue: \"hex\"\n },\n size: {\n defaultValue: \"default\"\n },\n allowClear: {\n defaultValue: false\n },\n trigger: {\n defaultValue: \"click\"\n },\n showText: {\n defaultValue: false\n },\n disabledAlpha: {\n defaultValue: false\n },\n title: {\n defaultValue: \"\"\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 格式化\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"format\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"rgb\" nzLabel=\"rgb\"></nz-option>\n <nz-option nzValue=\"hex\" nzLabel=\"hex\"></nz-option>\n <nz-option nzValue=\"hsb\" nzLabel=\"hsb\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group nzSize=\"small\" ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"small\">小</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"large\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 允许清空\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"allowClear\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 触发方式\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"trigger\">\n <nz-radio-group nzSize=\"small\" ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"click\">点击</label>\n <label nz-radio-button nzValue=\"hover\">触碰</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 显示文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showText\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 禁用透明\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledAlpha\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 标题\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"颜色选择器\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"颜色选择器\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"bg-colors\",\n }),\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element },\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAiBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,MAAM,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC/C,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,UAAU,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACnD,QAAA,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAChD,QAAA,QAAQ,EAAE,CAAC,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iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE,WAAW;aACpB,CAAC;SACL;KACJ;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;SAC5B;KACJ;;;AC5BL;;AAEG;;;;"}
@@ -0,0 +1,34 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
4
+ import * as i2 from '@angular/forms';
5
+ import { FormsModule } from '@angular/forms';
6
+ import * as i1 from 'ng-zorro-antd/color-picker';
7
+ import { NzColorPickerModule } from 'ng-zorro-antd/color-picker';
8
+
9
+ class ColorPickerOptions extends ValueAccessOptions {
10
+ format = signal("hex", ...(ngDevMode ? [{ debugName: "format" }] : []));
11
+ size = signal("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
12
+ allowClear = signal(false, ...(ngDevMode ? [{ debugName: "allowClear" }] : []));
13
+ trigger = signal('click', ...(ngDevMode ? [{ debugName: "trigger" }] : []));
14
+ showText = signal(false, ...(ngDevMode ? [{ debugName: "showText" }] : []));
15
+ disabledAlpha = signal(false, ...(ngDevMode ? [{ debugName: "disabledAlpha" }] : []));
16
+ title = signal("", ...(ngDevMode ? [{ debugName: "title" }] : []));
17
+ }
18
+
19
+ class ColorPickerSelector extends ValueAccess {
20
+ options = new ColorPickerOptions();
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ColorPickerSelector, deps: null, target: i0.ɵɵFactoryTarget.Component });
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ColorPickerSelector, isStandalone: true, selector: "axis-color-picker", usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<div style=\"display: flex;align-items: center;gap: 4px;\">\n <nz-color-block [nzColor]=\"value()\" [nzSize]=\"options.size()\"></nz-color-block>\n <div>{{value()}}</div>\n</div>\n}@else {\n<nz-color-picker [(ngModel)]=\"value\" nzDefaultValue=\"#00000000\" [nzFormat]=\"options.format()\" [nzSize]=\"options.size()\"\n [nzAllowClear]=\"options.allowClear()\" [nzTrigger]=\"options.trigger()\" [nzShowText]=\"options.showText()\"\n [nzDisabledAlpha]=\"options.disabledAlpha()\" [nzTitle]=\"options.title()\" [nzDisabled]=\"options.disabled()\"\n (ngModelChange)=\"onChange?.($event)\"></nz-color-picker>\n}", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzColorPickerModule }, { kind: "component", type: i1.NzColorPickerComponent, selector: "nz-color-picker", inputs: ["nzFormat", "nzValue", "nzSize", "nzDefaultValue", "nzTrigger", "nzTitle", "nzFlipFlop", "nzShowText", "nzOpen", "nzAllowClear", "nzDisabled", "nzDisabledAlpha"], outputs: ["nzOnChange", "nzOnFormatChange", "nzOnClear", "nzOnOpenChange"], exportAs: ["nzColorPicker"] }, { kind: "component", type: i1.NzColorBlockComponent, selector: "nz-color-block", inputs: ["nzColor", "nzSize"], outputs: ["nzOnClick"], exportAs: ["nzColorBlock"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ColorPickerSelector, decorators: [{
25
+ type: Component,
26
+ args: [{ selector: 'axis-color-picker', imports: [NzColorPickerModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<div style=\"display: flex;align-items: center;gap: 4px;\">\n <nz-color-block [nzColor]=\"value()\" [nzSize]=\"options.size()\"></nz-color-block>\n <div>{{value()}}</div>\n</div>\n}@else {\n<nz-color-picker [(ngModel)]=\"value\" nzDefaultValue=\"#00000000\" [nzFormat]=\"options.format()\" [nzSize]=\"options.size()\"\n [nzAllowClear]=\"options.allowClear()\" [nzTrigger]=\"options.trigger()\" [nzShowText]=\"options.showText()\"\n [nzDisabledAlpha]=\"options.disabledAlpha()\" [nzTitle]=\"options.title()\" [nzDisabled]=\"options.disabled()\"\n (ngModelChange)=\"onChange?.($event)\"></nz-color-picker>\n}", styles: [":host{display:block}\n"] }]
27
+ }] });
28
+
29
+ /**
30
+ * Generated bundle index. Do not edit.
31
+ */
32
+
33
+ export { ColorPickerSelector };
34
+ //# sourceMappingURL=ngx-axis-appforge-axis-components-color-picker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-color-picker.mjs","sources":["../../../axis-components/color-picker/color-picker.options.ts","../../../axis-components/color-picker/color-picker.ts","../../../axis-components/color-picker/color-picker.html","../../../axis-components/color-picker/ngx-axis-appforge-axis-components-color-picker.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class ColorPickerOptions extends ValueAccessOptions {\n readonly format = signal<'rgb' | 'hex' | 'hsb'>(\"hex\");\n readonly size = signal<'large' | 'small' | 'default'>(\"default\");\n readonly allowClear = signal(false);\n readonly trigger = signal<'hover' | 'click'>('click');\n readonly showText = signal(false);\n readonly disabledAlpha = signal(false);\n readonly title = signal(\"\");\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { ValueAccess } from 'ngx-axis-appforge/core';\nimport { ColorPickerOptions } from './color-picker.options';\nimport { FormsModule } from '@angular/forms';\nimport { NzColorPickerModule } from 'ng-zorro-antd/color-picker';\n\n@Component({\n selector: 'axis-color-picker',\n imports: [NzColorPickerModule, FormsModule],\n templateUrl: './color-picker.html',\n styleUrl: './color-picker.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ColorPickerSelector extends ValueAccess<ColorPickerOptions> {\n\n override options: ColorPickerOptions = new ColorPickerOptions();\n\n}\n","@if (options.readonly()) {\n<div style=\"display: flex;align-items: center;gap: 4px;\">\n <nz-color-block [nzColor]=\"value()\" [nzSize]=\"options.size()\"></nz-color-block>\n <div>{{value()}}</div>\n</div>\n}@else {\n<nz-color-picker [(ngModel)]=\"value\" nzDefaultValue=\"#00000000\" [nzFormat]=\"options.format()\" [nzSize]=\"options.size()\"\n [nzAllowClear]=\"options.allowClear()\" [nzTrigger]=\"options.trigger()\" [nzShowText]=\"options.showText()\"\n [nzDisabledAlpha]=\"options.disabledAlpha()\" [nzTitle]=\"options.title()\" [nzDisabled]=\"options.disabled()\"\n (ngModelChange)=\"onChange?.($event)\"></nz-color-picker>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './color-picker';\n"],"names":[],"mappings":";;;;;;;;AAGM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAC7C,IAAA,MAAM,GAAG,MAAM,CAAwB,KAAK,kDAAC;AAC7C,IAAA,IAAI,GAAG,MAAM,CAAgC,SAAS,gDAAC;AACvD,IAAA,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC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A,CAAA;kBAP/B,SAAS;+BACE,mBAAmB,EAAA,OAAA,EACpB,CAAC,mBAAmB,EAAE,WAAW,CAAC,EAAA,eAAA,EAG1B,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2oBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEXjD;;AAEG;;;;"}
@@ -82,11 +82,11 @@ class FormItem extends Base {
82
82
  }
83
83
  }
84
84
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: FormItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: FormItem, isStandalone: true, selector: "axis-form-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, usesInheritance: true, ngImport: i0, template: "@if (options.label()) {\n<nz-form-item style=\"width: 100%;\">\n <nz-form-label [style.width]=\"options.labelWidth()\" [nzRequired]=\"isRequired()\">\n {{options.label()}}\n </nz-form-label>\n <nz-form-control style=\"flex:1\" [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" (onRegisteValueAccess)=\"registeValueAccess($event)\"\n [(ngModel)]=\"value\" (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}@else {\n<div>\n <ng-container [axisDynamic]=\"options.child()\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"></ng-container>\n</div>\n}", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.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: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
85
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: FormItem, isStandalone: true, selector: "axis-form-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, usesInheritance: true, ngImport: i0, template: "@if (options.label()) {\n<nz-form-item style=\"width: 100%;\">\n <nz-form-label [style.width]=\"options.labelWidth()\" [nzRequired]=\"isRequired()\">\n {{options.label()}}\n </nz-form-label>\n <nz-form-control style=\"flex:1\" [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" (onRegisteValueAccess)=\"registeValueAccess($event)\"\n [(ngModel)]=\"value\" (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}@else {\n<nz-form-item style=\"margin: 0;\">\n <nz-form-control [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.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: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
86
86
  }
87
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: FormItem, decorators: [{
88
88
  type: Component,
89
- args: [{ selector: 'axis-form-item', imports: [NzFormModule, DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.label()) {\n<nz-form-item style=\"width: 100%;\">\n <nz-form-label [style.width]=\"options.labelWidth()\" [nzRequired]=\"isRequired()\">\n {{options.label()}}\n </nz-form-label>\n <nz-form-control style=\"flex:1\" [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" (onRegisteValueAccess)=\"registeValueAccess($event)\"\n [(ngModel)]=\"value\" (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}@else {\n<div>\n <ng-container [axisDynamic]=\"options.child()\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"></ng-container>\n</div>\n}", styles: [":host{display:block;width:100%}\n"] }]
89
+ args: [{ selector: 'axis-form-item', imports: [NzFormModule, DynamicDirective, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.label()) {\n<nz-form-item style=\"width: 100%;\">\n <nz-form-label [style.width]=\"options.labelWidth()\" [nzRequired]=\"isRequired()\">\n {{options.label()}}\n </nz-form-label>\n <nz-form-control style=\"flex:1\" [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" (onRegisteValueAccess)=\"registeValueAccess($event)\"\n [(ngModel)]=\"value\" (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}@else {\n<nz-form-item style=\"margin: 0;\">\n <nz-form-control [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}", styles: [":host{display:block;width:100%}\n"] }]
90
90
  }], ctorParameters: () => [] });
91
91
 
92
92
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-form-item.mjs","sources":["../../../axis-components/form-item/form-item.options.ts","../../../axis-components/form-item/form-item.ts","../../../axis-components/form-item/form-item.html","../../../axis-components/form-item/ngx-axis-appforge-axis-components-form-item.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class FormItemOptions extends BaseOptions {\n\n readonly name = \"\";\n readonly label = signal(\"\");\n readonly labelWidth = signal(\"120px\");\n readonly validators = signal<any[]>([]);\n readonly child = signal<any>(undefined);\n\n}","import { ChangeDetectionStrategy, Component, computed, effect, inject, model, OnInit, signal } from '@angular/core';\nimport { FormItemOptions } from './form-item.options';\nimport { AXIS_FORM_REGISTE_CONTROL_TOKEN, Base, buildValidators, DynamicDirective, FormValidators, RegisteValueAccessOptions } from 'ngx-axis-appforge/core';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormBuilder, FormsModule, ValidatorFn } from '@angular/forms';\nimport { debounceTime, merge, NEVER } from 'rxjs';\n\n@Component({\n selector: 'axis-form-item',\n imports: [NzFormModule, DynamicDirective, FormsModule],\n templateUrl: './form-item.html',\n styleUrl: './form-item.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormItem extends Base<FormItemOptions> implements OnInit {\n\n constructor() {\n super();\n if (this.getScope()) {\n effect(() => {\n this.control.setValidators(this.validatorSignal() ?? null);\n });\n effect(() => {\n this.validatorSignal.set(this.buildSnapshotValidators());\n this.unsubscribe([\"validatorsChange\"]);\n this.addSubscribe(merge(...this.options.validators().map(v => this.getScope()!.dynamicOptions(v)?.obs ?? NEVER))\n .pipe(debounceTime(50))\n .subscribe(_ => {\n this.validatorSignal.set(this.buildSnapshotValidators());\n }), \"validatorsChange\");\n });\n }\n }\n\n protected override options: FormItemOptions = new FormItemOptions();\n private readonly registe = inject(AXIS_FORM_REGISTE_CONTROL_TOKEN, { optional: true });\n private readonly fb = inject(FormBuilder);\n readonly control = this.fb.control(undefined);\n readonly value = model<any>();\n readonly validatorSignal = signal<ValidatorFn[]>([]);\n readonly isRequired = computed(() => this.validatorSignal().includes(FormValidators.required));\n private valueAccessValidFn?: ValidatorFn;\n\n ngOnInit(): void {\n if (this.options.name) {\n this.control.registerOnChange((v: any) => {\n this.value.set(v);\n });\n this.registe?.({\n name: this.options.name,\n control: this.control,\n });\n }\n }\n\n onModelChange(value: any) {\n if (this.options.name) {\n this.control.markAsDirty();\n this.control.setValue(value);\n }\n }\n\n private buildSnapshotValidators(): ValidatorFn[] {\n return this.buildValidators(this.options.validators().map(v => this.getScope()!.snapshotOptions(v)));\n }\n\n private buildValidators(validators: any[]): ValidatorFn[] {\n let output: ValidatorFn[] = [];\n if (this.valueAccessValidFn) {\n output.push(this.valueAccessValidFn);\n }\n return output.concat(buildValidators(validators));\n }\n\n registeValueAccess(opt: RegisteValueAccessOptions) {\n if (opt.initValue !== undefined) {\n this.registe?.({\n name: this.options.name,\n initValue: opt.initValue\n });\n }\n if (opt.validFn) {\n this.valueAccessValidFn = (c) => opt.validFn!(c) ? null : { error: true };\n this.validatorSignal.set(this.buildSnapshotValidators());\n }\n }\n\n}","@if (options.label()) {\n<nz-form-item style=\"width: 100%;\">\n <nz-form-label [style.width]=\"options.labelWidth()\" [nzRequired]=\"isRequired()\">\n {{options.label()}}\n </nz-form-label>\n <nz-form-control style=\"flex:1\" [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" (onRegisteValueAccess)=\"registeValueAccess($event)\"\n [(ngModel)]=\"value\" (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}@else {\n<div>\n <ng-container [axisDynamic]=\"options.child()\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"></ng-container>\n</div>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './form-item';\n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AA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAK1C,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAPpB,SAAS;+BACE,gBAAgB,EAAA,OAAA,EACjB,CAAC,YAAY,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAA,eAAA,EAGrC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mrBAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;;;AEZjD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-form-item.mjs","sources":["../../../axis-components/form-item/form-item.options.ts","../../../axis-components/form-item/form-item.ts","../../../axis-components/form-item/form-item.html","../../../axis-components/form-item/ngx-axis-appforge-axis-components-form-item.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class FormItemOptions extends BaseOptions {\n\n readonly name = \"\";\n readonly label = signal(\"\");\n readonly labelWidth = signal(\"120px\");\n readonly validators = signal<any[]>([]);\n readonly child = signal<any>(undefined);\n\n}","import { ChangeDetectionStrategy, Component, computed, effect, inject, model, OnInit, signal } from '@angular/core';\nimport { FormItemOptions } from './form-item.options';\nimport { AXIS_FORM_REGISTE_CONTROL_TOKEN, Base, buildValidators, DynamicDirective, FormValidators, RegisteValueAccessOptions } from 'ngx-axis-appforge/core';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormBuilder, FormsModule, ValidatorFn } from '@angular/forms';\nimport { debounceTime, merge, NEVER } from 'rxjs';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'axis-form-item',\n imports: [NzFormModule, DynamicDirective, FormsModule],\n templateUrl: './form-item.html',\n styleUrl: './form-item.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormItem extends Base<FormItemOptions> implements OnInit {\n\n constructor() {\n super();\n if (this.getScope()) {\n effect(() => {\n this.control.setValidators(this.validatorSignal() ?? null);\n });\n effect(() => {\n this.validatorSignal.set(this.buildSnapshotValidators());\n this.unsubscribe([\"validatorsChange\"]);\n this.addSubscribe(merge(...this.options.validators().map(v => this.getScope()!.dynamicOptions(v)?.obs ?? NEVER))\n .pipe(debounceTime(50))\n .subscribe(_ => {\n this.validatorSignal.set(this.buildSnapshotValidators());\n }), \"validatorsChange\");\n });\n }\n }\n\n protected override options: FormItemOptions = new FormItemOptions();\n private readonly registe = inject(AXIS_FORM_REGISTE_CONTROL_TOKEN, { optional: true });\n private readonly fb = inject(FormBuilder);\n readonly control = this.fb.control(undefined);\n readonly value = model<any>();\n readonly validatorSignal = signal<ValidatorFn[]>([]);\n readonly isRequired = computed(() => this.validatorSignal().includes(FormValidators.required));\n private valueAccessValidFn?: ValidatorFn;\n\n ngOnInit(): void {\n if (this.options.name) {\n this.control.registerOnChange((v: any) => {\n this.value.set(v);\n });\n this.registe?.({\n name: this.options.name,\n control: this.control,\n });\n }\n }\n\n onModelChange(value: any) {\n if (this.options.name) {\n this.control.markAsDirty();\n this.control.setValue(value);\n }\n }\n\n private buildSnapshotValidators(): ValidatorFn[] {\n return this.buildValidators(this.options.validators().map(v => this.getScope()!.snapshotOptions(v)));\n }\n\n private buildValidators(validators: any[]): ValidatorFn[] {\n let output: ValidatorFn[] = [];\n if (this.valueAccessValidFn) {\n output.push(this.valueAccessValidFn);\n }\n return output.concat(buildValidators(validators));\n }\n\n registeValueAccess(opt: RegisteValueAccessOptions) {\n if (opt.initValue !== undefined) {\n this.registe?.({\n name: this.options.name,\n initValue: opt.initValue\n });\n }\n if (opt.validFn) {\n this.valueAccessValidFn = (c) => opt.validFn!(c) ? null : { error: true };\n this.validatorSignal.set(this.buildSnapshotValidators());\n }\n }\n\n}","@if (options.label()) {\n<nz-form-item style=\"width: 100%;\">\n <nz-form-label [style.width]=\"options.labelWidth()\" [nzRequired]=\"isRequired()\">\n {{options.label()}}\n </nz-form-label>\n <nz-form-control style=\"flex:1\" [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" (onRegisteValueAccess)=\"registeValueAccess($event)\"\n [(ngModel)]=\"value\" (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}@else {\n<nz-form-item style=\"margin: 0;\">\n <nz-form-control [nzValidateStatus]=\"control\">\n <ng-container [axisDynamic]=\"options.child()\" [(ngModel)]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"></ng-container>\n </nz-form-control>\n</nz-form-item>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './form-item';\n"],"names":[],"mappings":";;;;;;;;;;AAGM,MAAO,eAAgB,SAAQ,WAAW,CAAA;IAEnC,IAAI,GAAG,EAAE;AACT,IAAA,KAAK,GAAG,MAAM,CAAC,EAAE,iDAAC;AAClB,IAAA,UAAU,GAAG,MAAM,CAAC,OAAO,sDAAC;AAC5B,IAAA,UAAU,GAAG,MAAM,CAAQ,EAAE,sDAAC;AAC9B,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,iDAAC;AAE1C;;ACIK,MAAO,QAAS,SAAQ,IAAqB,CAAA;AAEjD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;YACnB,MAAM,CAAC,MAAK;AACV,gBAAA,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,CAAC;AAC5D,aAAC,CAAC;YACF,MAAM,CAAC,MAAK;gBACV,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACxD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37
+ setInitValue(value) {
38
+ super.setInitValue(value);
39
+ this.setEditData();
40
+ }
37
41
  writeValue(value) {
38
42
  super.writeValue(value);
39
43
  this.setEditData();