@alauda-fe/crd-form 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/field-controls/form-item.component.mjs +105 -66
- package/esm2022/lib/field-controls/widgets/array-table/component.mjs +4 -4
- package/esm2022/lib/field-controls/widgets/link/component.mjs +4 -4
- package/esm2022/lib/field-controls/widgets/resource-requirements/resource-requirements.component.mjs +2 -2
- package/esm2022/lib/field-widgets/htpasswd/component.mjs +10 -5
- package/esm2022/lib/field-widgets/htpasswd/form.mjs +123 -54
- package/esm2022/lib/field-widgets/htpasswd/utils.mjs +38 -0
- package/esm2022/lib/types/index.mjs +2 -1
- package/esm2022/lib/utils/capability.mjs +4 -1
- package/lib/field-controls/form-item.component.d.ts +2 -0
- package/lib/field-widgets/htpasswd/form.d.ts +7 -5
- package/lib/field-widgets/htpasswd/utils.d.ts +15 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/capability.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, } from '@angular/core';
|
|
2
|
-
import { getFieldDescription, getFieldDocLink, getFieldDocOption, getFieldTooltip, isFieldDescriptionAsLink, } from '../utils';
|
|
2
|
+
import { getFieldDescription, getFieldDocLink, getFieldDocOption, getFieldTooltip, isFieldCopyable, isFieldDescriptionAsLink, } from '../utils';
|
|
3
3
|
import { OperandFieldComponent } from './operand-field.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "./operand-field.component";
|
|
@@ -7,101 +7,102 @@ import * as i2 from "@angular/common";
|
|
|
7
7
|
import * as i3 from "@alauda/ui";
|
|
8
8
|
import * as i4 from "@alauda-fe/common";
|
|
9
9
|
const _c0 = ["*"];
|
|
10
|
-
const _c1 =
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const _c1 = a0 => ({ label: a0 });
|
|
11
|
+
const _c2 = (a0, a1) => ({ product: a0, path: a1, type: "page" });
|
|
12
|
+
function FormItemComponent_aui_form_item_0_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵelementStart(0, "label", 7);
|
|
13
14
|
i0.ɵɵtext(1);
|
|
14
15
|
i0.ɵɵpipe(2, "translate");
|
|
15
16
|
i0.ɵɵelementEnd();
|
|
16
17
|
} if (rf & 2) {
|
|
17
|
-
const
|
|
18
|
+
const __r1 = i0.ɵɵnextContext().ngIf;
|
|
18
19
|
i0.ɵɵadvance();
|
|
19
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
20
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, __r1.label));
|
|
20
21
|
} }
|
|
21
|
-
function
|
|
22
|
-
i0.ɵɵelementContainer(0,
|
|
22
|
+
function FormItemComponent_aui_form_item_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵelementContainer(0, 8);
|
|
23
24
|
} if (rf & 2) {
|
|
24
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25
26
|
i0.ɵɵproperty("required", ctx_r1.fieldComponent.isRequired);
|
|
26
27
|
} }
|
|
27
|
-
function
|
|
28
|
-
i0.ɵɵelement(0, "acl-errors-mapper",
|
|
28
|
+
function FormItemComponent_aui_form_item_0_div_5_acl_errors_mapper_1_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
+
i0.ɵɵelement(0, "acl-errors-mapper", 14);
|
|
29
30
|
} if (rf & 2) {
|
|
30
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
31
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
31
32
|
i0.ɵɵproperty("errors", ctx_r1.fieldComponent.control.errors);
|
|
32
33
|
} }
|
|
33
|
-
function
|
|
34
|
+
function FormItemComponent_aui_form_item_0_div_5_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
34
35
|
i0.ɵɵelementContainerStart(0);
|
|
35
36
|
i0.ɵɵtext(1);
|
|
36
37
|
i0.ɵɵpipe(2, "pure");
|
|
37
38
|
i0.ɵɵpipe(3, "translate");
|
|
38
39
|
i0.ɵɵelementContainerEnd();
|
|
39
40
|
} if (rf & 2) {
|
|
40
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
41
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
41
42
|
i0.ɵɵadvance();
|
|
42
43
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, i0.ɵɵpipeBind2(2, 1, ctx_r1.fieldComponent.field, ctx_r1.getFieldDescription)), " ");
|
|
43
44
|
} }
|
|
44
|
-
function
|
|
45
|
+
function FormItemComponent_aui_form_item_0_div_5_a_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
45
46
|
i0.ɵɵelementContainerStart(0);
|
|
46
47
|
i0.ɵɵtext(1);
|
|
47
48
|
i0.ɵɵpipe(2, "pure");
|
|
48
49
|
i0.ɵɵpipe(3, "translate");
|
|
49
50
|
i0.ɵɵelementContainerEnd();
|
|
50
51
|
} if (rf & 2) {
|
|
51
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
52
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
52
53
|
i0.ɵɵadvance();
|
|
53
54
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, i0.ɵɵpipeBind2(2, 1, ctx_r1.fieldComponent.field, ctx_r1.getFieldDescription)), " ");
|
|
54
55
|
} }
|
|
55
|
-
function
|
|
56
|
-
i0.ɵɵelementStart(0, "a",
|
|
57
|
-
i0.ɵɵtemplate(1,
|
|
56
|
+
function FormItemComponent_aui_form_item_0_div_5_a_5_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
+
i0.ɵɵelementStart(0, "a", 15);
|
|
58
|
+
i0.ɵɵtemplate(1, FormItemComponent_aui_form_item_0_div_5_a_5_ng_container_1_Template, 4, 6, "ng-container", 11);
|
|
58
59
|
i0.ɵɵpipe(2, "pure");
|
|
59
|
-
i0.ɵɵelement(3, "aui-icon",
|
|
60
|
+
i0.ɵɵelement(3, "aui-icon", 16);
|
|
60
61
|
i0.ɵɵelementEnd();
|
|
61
62
|
} if (rf & 2) {
|
|
62
63
|
const option_r3 = ctx.ngIf;
|
|
63
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
64
|
-
i0.ɵɵproperty("aclDocs", i0.ɵɵpureFunction2(5,
|
|
64
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
65
|
+
i0.ɵɵproperty("aclDocs", i0.ɵɵpureFunction2(5, _c2, option_r3.product, option_r3.path));
|
|
65
66
|
i0.ɵɵadvance();
|
|
66
67
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(2, 2, ctx_r1.fieldComponent.field, ctx_r1.isFieldDescriptionAsLink));
|
|
67
68
|
} }
|
|
68
|
-
function
|
|
69
|
+
function FormItemComponent_aui_form_item_0_div_5_a_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
69
70
|
i0.ɵɵelementContainerStart(0);
|
|
70
71
|
i0.ɵɵtext(1);
|
|
71
72
|
i0.ɵɵpipe(2, "pure");
|
|
72
73
|
i0.ɵɵpipe(3, "translate");
|
|
73
74
|
i0.ɵɵelementContainerEnd();
|
|
74
75
|
} if (rf & 2) {
|
|
75
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
76
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
76
77
|
i0.ɵɵadvance();
|
|
77
78
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, i0.ɵɵpipeBind2(2, 1, ctx_r1.fieldComponent.field, ctx_r1.getFieldDescription)), " ");
|
|
78
79
|
} }
|
|
79
|
-
function
|
|
80
|
-
i0.ɵɵelementStart(0, "a",
|
|
81
|
-
i0.ɵɵtemplate(1,
|
|
80
|
+
function FormItemComponent_aui_form_item_0_div_5_a_7_Template(rf, ctx) { if (rf & 1) {
|
|
81
|
+
i0.ɵɵelementStart(0, "a", 17);
|
|
82
|
+
i0.ɵɵtemplate(1, FormItemComponent_aui_form_item_0_div_5_a_7_ng_container_1_Template, 4, 6, "ng-container", 11);
|
|
82
83
|
i0.ɵɵpipe(2, "pure");
|
|
83
|
-
i0.ɵɵelement(3, "aui-icon",
|
|
84
|
+
i0.ɵɵelement(3, "aui-icon", 16);
|
|
84
85
|
i0.ɵɵelementEnd();
|
|
85
86
|
} if (rf & 2) {
|
|
86
87
|
const link_r4 = ctx.ngIf;
|
|
87
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
88
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
88
89
|
i0.ɵɵattribute("href", link_r4, i0.ɵɵsanitizeUrl);
|
|
89
90
|
i0.ɵɵadvance();
|
|
90
91
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(2, 2, ctx_r1.fieldComponent.field, ctx_r1.isFieldDescriptionAsLink));
|
|
91
92
|
} }
|
|
92
|
-
function
|
|
93
|
-
i0.ɵɵelementStart(0, "div",
|
|
94
|
-
i0.ɵɵtemplate(1,
|
|
93
|
+
function FormItemComponent_aui_form_item_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
95
|
+
i0.ɵɵtemplate(1, FormItemComponent_aui_form_item_0_div_5_acl_errors_mapper_1_Template, 1, 1, "acl-errors-mapper", 10);
|
|
95
96
|
i0.ɵɵelementStart(2, "div");
|
|
96
|
-
i0.ɵɵtemplate(3,
|
|
97
|
+
i0.ɵɵtemplate(3, FormItemComponent_aui_form_item_0_div_5_ng_container_3_Template, 4, 6, "ng-container", 11);
|
|
97
98
|
i0.ɵɵpipe(4, "pure");
|
|
98
|
-
i0.ɵɵtemplate(5,
|
|
99
|
+
i0.ɵɵtemplate(5, FormItemComponent_aui_form_item_0_div_5_a_5_Template, 4, 8, "a", 12);
|
|
99
100
|
i0.ɵɵpipe(6, "pure");
|
|
100
|
-
i0.ɵɵtemplate(7,
|
|
101
|
+
i0.ɵɵtemplate(7, FormItemComponent_aui_form_item_0_div_5_a_7_Template, 4, 5, "a", 13);
|
|
101
102
|
i0.ɵɵpipe(8, "pure");
|
|
102
103
|
i0.ɵɵelementEnd()();
|
|
103
104
|
} if (rf & 2) {
|
|
104
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
105
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105
106
|
i0.ɵɵadvance();
|
|
106
107
|
i0.ɵɵproperty("ngIf", (ctx_r1.fieldComponent.crdForm.form.submitted || ctx_r1.fieldComponent.control.dirty) && ctx_r1.fieldComponent.control.invalid && !ctx_r1.fieldComponent.isCustomErrorsMapper);
|
|
107
108
|
i0.ɵɵadvance(2);
|
|
@@ -111,8 +112,17 @@ function FormItemComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
111
112
|
i0.ɵɵadvance(2);
|
|
112
113
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(8, 10, ctx_r1.fieldComponent.field, ctx_r1.getFieldDocLink));
|
|
113
114
|
} }
|
|
114
|
-
function
|
|
115
|
-
i0.ɵɵ
|
|
115
|
+
function FormItemComponent_aui_form_item_0_div_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
+
i0.ɵɵelementContainerStart(0);
|
|
117
|
+
i0.ɵɵelement(1, "aui-icon", 19);
|
|
118
|
+
i0.ɵɵelementContainerEnd();
|
|
119
|
+
} if (rf & 2) {
|
|
120
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
121
|
+
i0.ɵɵadvance();
|
|
122
|
+
i0.ɵɵproperty("auiTooltipCopy", ctx_r1.fieldComponent.control.value);
|
|
123
|
+
} }
|
|
124
|
+
function FormItemComponent_aui_form_item_0_div_6_ng_container_3_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
125
|
+
i0.ɵɵelementStart(0, "span", 21);
|
|
116
126
|
i0.ɵɵtext(1);
|
|
117
127
|
i0.ɵɵpipe(2, "translate");
|
|
118
128
|
i0.ɵɵelementEnd();
|
|
@@ -121,16 +131,56 @@ function FormItemComponent_div_6_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
121
131
|
i0.ɵɵadvance();
|
|
122
132
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, tooltip_r5), "");
|
|
123
133
|
} }
|
|
124
|
-
function
|
|
125
|
-
i0.ɵɵ
|
|
126
|
-
i0.ɵɵelement(1, "aui-icon",
|
|
127
|
-
i0.ɵɵ
|
|
128
|
-
i0.ɵɵ
|
|
134
|
+
function FormItemComponent_aui_form_item_0_div_6_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
+
i0.ɵɵelementContainerStart(0);
|
|
136
|
+
i0.ɵɵelement(1, "aui-icon", 20);
|
|
137
|
+
i0.ɵɵpipe(2, "pure");
|
|
138
|
+
i0.ɵɵtemplate(3, FormItemComponent_aui_form_item_0_div_6_ng_container_3_ng_template_3_Template, 3, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
139
|
+
i0.ɵɵelementContainerEnd();
|
|
129
140
|
} if (rf & 2) {
|
|
130
|
-
const tooltipTmp_r6 = i0.ɵɵreference(
|
|
141
|
+
const tooltipTmp_r6 = i0.ɵɵreference(4);
|
|
142
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
131
143
|
i0.ɵɵadvance();
|
|
144
|
+
i0.ɵɵclassMap(i0.ɵɵpipeBind3(2, 3, ctx_r1.fieldComponent.field, ctx_r1.showFieldCopyable, ctx_r1.fieldComponent.isDisabled) ? "tw-ml-8" : "");
|
|
132
145
|
i0.ɵɵproperty("auiTooltip", tooltipTmp_r6);
|
|
133
146
|
} }
|
|
147
|
+
function FormItemComponent_aui_form_item_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
148
|
+
i0.ɵɵelementStart(0, "div", 18);
|
|
149
|
+
i0.ɵɵtemplate(1, FormItemComponent_aui_form_item_0_div_6_ng_container_1_Template, 2, 1, "ng-container", 11);
|
|
150
|
+
i0.ɵɵpipe(2, "pure");
|
|
151
|
+
i0.ɵɵtemplate(3, FormItemComponent_aui_form_item_0_div_6_ng_container_3_Template, 5, 7, "ng-container", 11);
|
|
152
|
+
i0.ɵɵpipe(4, "pure");
|
|
153
|
+
i0.ɵɵelementEnd();
|
|
154
|
+
} if (rf & 2) {
|
|
155
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
156
|
+
i0.ɵɵadvance();
|
|
157
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind3(2, 2, ctx_r1.fieldComponent.field, ctx_r1.showFieldCopyable, ctx_r1.fieldComponent.isDisabled));
|
|
158
|
+
i0.ɵɵadvance(2);
|
|
159
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(4, 6, ctx_r1.fieldComponent.field, ctx_r1.getFieldTooltip));
|
|
160
|
+
} }
|
|
161
|
+
function FormItemComponent_aui_form_item_0_Template(rf, ctx) { if (rf & 1) {
|
|
162
|
+
i0.ɵɵelementStart(0, "aui-form-item", 2);
|
|
163
|
+
i0.ɵɵpipe(1, "translate");
|
|
164
|
+
i0.ɵɵtemplate(2, FormItemComponent_aui_form_item_0_label_2_Template, 3, 3, "label", 3)(3, FormItemComponent_aui_form_item_0_ng_container_3_Template, 1, 1, "ng-container", 4);
|
|
165
|
+
i0.ɵɵprojection(4);
|
|
166
|
+
i0.ɵɵtemplate(5, FormItemComponent_aui_form_item_0_div_5_Template, 9, 13, "div", 5)(6, FormItemComponent_aui_form_item_0_div_6_Template, 5, 9, "div", 6);
|
|
167
|
+
i0.ɵɵpipe(7, "pure");
|
|
168
|
+
i0.ɵɵpipe(8, "pure");
|
|
169
|
+
i0.ɵɵelementEnd();
|
|
170
|
+
} if (rf & 2) {
|
|
171
|
+
const __r1 = ctx.ngIf;
|
|
172
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
173
|
+
i0.ɵɵproperty("emptyAddon", false)("plain", ctx_r1.plain);
|
|
174
|
+
i0.ɵɵattribute("data-test", __r1.label ? "AUI-FORM-ITEM/" + i0.ɵɵpipeBind1(1, 7, __r1.label) : null);
|
|
175
|
+
i0.ɵɵadvance(2);
|
|
176
|
+
i0.ɵɵproperty("ngIf", __r1.label);
|
|
177
|
+
i0.ɵɵadvance();
|
|
178
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.fieldComponent.isDisabled);
|
|
179
|
+
i0.ɵɵadvance(2);
|
|
180
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.fieldComponent.isDisabled);
|
|
181
|
+
i0.ɵɵadvance();
|
|
182
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(7, 9, ctx_r1.fieldComponent.field, ctx_r1.getFieldTooltip) || i0.ɵɵpipeBind3(8, 12, ctx_r1.fieldComponent.field, ctx_r1.showFieldCopyable, ctx_r1.fieldComponent.isDisabled));
|
|
183
|
+
} }
|
|
134
184
|
export class FormItemComponent {
|
|
135
185
|
constructor(fieldComponent, cdr) {
|
|
136
186
|
this.fieldComponent = fieldComponent;
|
|
@@ -143,34 +193,23 @@ export class FormItemComponent {
|
|
|
143
193
|
// FIXME: 部分页面需要调用 markForCheck 才行, 需要确认为啥使用了 ChangeDetectionStrategy.Default 数据变更之后视图依旧不同步更新
|
|
144
194
|
this.fieldComponent.crdForm.form.ngSubmit.subscribe(() => this.cdr.markForCheck());
|
|
145
195
|
}
|
|
196
|
+
showFieldCopyable(field, isDisabled) {
|
|
197
|
+
return isFieldCopyable(field) && isDisabled;
|
|
198
|
+
}
|
|
146
199
|
static { this.ɵfac = function FormItemComponent_Factory(t) { return new (t || FormItemComponent)(i0.ɵɵdirectiveInject(i1.OperandFieldComponent), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
147
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormItemComponent, selectors: [["acl-crd-form-item"]], inputs: { plain: "plain" }, ngContentSelectors: _c0, decls:
|
|
200
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormItemComponent, selectors: [["acl-crd-form-item"]], inputs: { plain: "plain" }, ngContentSelectors: _c0, decls: 2, vars: 6, consts: [["tooltipTmp", ""], ["width", "large", 3, "emptyAddon", "plain", 4, "ngIf"], ["width", "large", 3, "emptyAddon", "plain"], ["auiFormItemLabel", "", 4, "ngIf"], ["auiFormItemControl", "", 3, "required", 4, "ngIf"], ["auiFormItemHint", "", 4, "ngIf"], ["auiFormItemAddon", "", 4, "ngIf"], ["auiFormItemLabel", ""], ["auiFormItemControl", "", 3, "required"], ["auiFormItemHint", ""], [3, "errors", 4, "ngIf"], [4, "ngIf"], [3, "aclDocs", 4, "ngIf"], ["target", "_blank", 4, "ngIf"], [3, "errors"], [3, "aclDocs"], ["icon", "jump"], ["target", "_blank"], ["auiFormItemAddon", ""], ["icon", "copy", 3, "auiTooltipCopy"], ["icon", "question_circle", 3, "auiTooltip"], [2, "white-space", "pre-line"]], template: function FormItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
148
201
|
i0.ɵɵprojectionDef();
|
|
149
|
-
i0.ɵɵ
|
|
150
|
-
i0.ɵɵ
|
|
151
|
-
i0.ɵɵpipe(2, "pure");
|
|
152
|
-
i0.ɵɵtemplate(3, FormItemComponent_ng_container_3_Template, 1, 1, "ng-container", 3);
|
|
153
|
-
i0.ɵɵprojection(4);
|
|
154
|
-
i0.ɵɵtemplate(5, FormItemComponent_div_5_Template, 9, 13, "div", 4)(6, FormItemComponent_div_6_Template, 4, 1, "div", 5);
|
|
155
|
-
i0.ɵɵpipe(7, "pure");
|
|
156
|
-
i0.ɵɵelementEnd();
|
|
202
|
+
i0.ɵɵtemplate(0, FormItemComponent_aui_form_item_0_Template, 9, 16, "aui-form-item", 1);
|
|
203
|
+
i0.ɵɵpipe(1, "pure");
|
|
157
204
|
} if (rf & 2) {
|
|
158
|
-
i0.ɵɵproperty("
|
|
159
|
-
|
|
160
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(2, 6, ctx.fieldComponent.field, ctx.fieldComponent.getFieldDisplayName));
|
|
161
|
-
i0.ɵɵadvance(2);
|
|
162
|
-
i0.ɵɵproperty("ngIf", !ctx.fieldComponent.isDisabled);
|
|
163
|
-
i0.ɵɵadvance(2);
|
|
164
|
-
i0.ɵɵproperty("ngIf", !ctx.fieldComponent.isDisabled);
|
|
165
|
-
i0.ɵɵadvance();
|
|
166
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind2(7, 9, ctx.fieldComponent.field, ctx.getFieldTooltip));
|
|
167
|
-
} }, dependencies: [i2.NgIf, i3.FormItemComponent, i3.FormItemAddonDirective, i3.FormItemHintDirective, i3.FormItemLabelDirective, i3.FormItemControlDirective, i3.IconComponent, i3.TooltipDirective, i4.ErrorsMapperComponent, i4.E2eAttributeBindingDirective, i4.DocsDirective, i4.TranslatePipe, i4.PurePipe], styles: ["[_nghost-%COMP%] label{word-break:break-word}aui-form-item[_ngcontent-%COMP%] .aui-form-item__content--large aui-switch.aui-form-item__control{flex:unset}"] }); }
|
|
205
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction1(4, _c1, i0.ɵɵpipeBind2(1, 1, ctx.fieldComponent.field, ctx.fieldComponent.getFieldDisplayName)));
|
|
206
|
+
} }, dependencies: [i2.NgIf, i3.FormItemComponent, i3.FormItemAddonDirective, i3.FormItemHintDirective, i3.FormItemLabelDirective, i3.FormItemControlDirective, i3.IconComponent, i3.TooltipDirective, i3.TooltipCopyDirective, i4.ErrorsMapperComponent, i4.E2eAttributeBindingDirective, i4.DocsDirective, i4.TranslatePipe, i4.PurePipe], styles: ["[_nghost-%COMP%] label{word-break:break-word}aui-form-item[_ngcontent-%COMP%] .aui-form-item__content--large aui-switch.aui-form-item__control{flex:unset}"] }); }
|
|
168
207
|
}
|
|
169
208
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormItemComponent, [{
|
|
170
209
|
type: Component,
|
|
171
|
-
args: [{ selector: 'acl-crd-form-item', changeDetection: ChangeDetectionStrategy.Default, template: "<aui-form-item\n [emptyAddon]=\"false\"\n [plain]=\"plain\"\n width=\"large\"\n>\n <label\n *ngIf=\"
|
|
210
|
+
args: [{ selector: 'acl-crd-form-item', changeDetection: ChangeDetectionStrategy.Default, template: "<aui-form-item\n *ngIf=\"{\n label: fieldComponent.field | pure: fieldComponent.getFieldDisplayName,\n } as _\"\n [emptyAddon]=\"false\"\n [plain]=\"plain\"\n [attr.data-test]=\"_.label ? 'AUI-FORM-ITEM/' + (_.label | translate) : null\"\n width=\"large\"\n>\n <label\n auiFormItemLabel\n *ngIf=\"_.label\"\n >{{ _.label | translate }}</label\n >\n\n <!-- for a required mark in aui-form-item label -->\n <ng-container\n *ngIf=\"!fieldComponent.isDisabled\"\n auiFormItemControl\n [required]=\"fieldComponent.isRequired\"\n ></ng-container>\n\n <ng-content></ng-content>\n\n <div\n *ngIf=\"!fieldComponent.isDisabled\"\n auiFormItemHint\n >\n <acl-errors-mapper\n *ngIf=\"\n (fieldComponent.crdForm.form.submitted ||\n fieldComponent.control.dirty) &&\n fieldComponent.control.invalid &&\n !fieldComponent.isCustomErrorsMapper\n \"\n [errors]=\"fieldComponent.control.errors\"\n >\n </acl-errors-mapper>\n\n <div>\n <ng-container\n *ngIf=\"!(fieldComponent.field | pure: isFieldDescriptionAsLink)\"\n >\n {{ fieldComponent.field | pure: getFieldDescription | translate }}\n </ng-container>\n\n <a\n *ngIf=\"fieldComponent.field | pure: getFieldDocOption as option\"\n [aclDocs]=\"{\n product: option.product,\n path: option.path,\n type: 'page',\n }\"\n >\n <ng-container\n *ngIf=\"fieldComponent.field | pure: isFieldDescriptionAsLink\"\n >\n {{ fieldComponent.field | pure: getFieldDescription | translate }}\n </ng-container>\n <aui-icon icon=\"jump\"></aui-icon>\n </a>\n\n <a\n *ngIf=\"fieldComponent.field | pure: getFieldDocLink as link\"\n [attr.href]=\"link\"\n target=\"_blank\"\n >\n <ng-container\n *ngIf=\"fieldComponent.field | pure: isFieldDescriptionAsLink\"\n >\n {{ fieldComponent.field | pure: getFieldDescription | translate }}\n </ng-container>\n <aui-icon icon=\"jump\"></aui-icon>\n </a>\n </div>\n </div>\n <div\n auiFormItemAddon\n *ngIf=\"\n (fieldComponent.field | pure: getFieldTooltip) ||\n (fieldComponent.field\n | pure: showFieldCopyable : fieldComponent.isDisabled)\n \"\n >\n <ng-container\n *ngIf=\"\n fieldComponent.field\n | pure: showFieldCopyable : fieldComponent.isDisabled\n \"\n >\n <aui-icon\n icon=\"copy\"\n [auiTooltipCopy]=\"fieldComponent.control.value\"\n ></aui-icon>\n </ng-container>\n <ng-container\n *ngIf=\"fieldComponent.field | pure: getFieldTooltip as tooltip\"\n >\n <aui-icon\n icon=\"question_circle\"\n [class]=\"\n (fieldComponent.field\n | pure: showFieldCopyable : fieldComponent.isDisabled)\n ? 'tw-ml-8'\n : ''\n \"\n [auiTooltip]=\"tooltipTmp\"\n ></aui-icon>\n <ng-template #tooltipTmp>\n <span style=\"white-space: pre-line\"> {{ tooltip | translate }}</span>\n </ng-template>\n </ng-container>\n </div>\n</aui-form-item>\n", styles: [":host::ng-deep label{word-break:break-word}aui-form-item ::ng-deep .aui-form-item__content--large aui-switch.aui-form-item__control{flex:unset}\n"] }]
|
|
172
211
|
}], () => [{ type: i1.OperandFieldComponent }, { type: i0.ChangeDetectorRef }], { plain: [{
|
|
173
212
|
type: Input
|
|
174
213
|
}] }); })();
|
|
175
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormItemComponent, { className: "FormItemComponent", filePath: "lib/field-controls/form-item.component.ts", lineNumber:
|
|
176
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
214
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormItemComponent, { className: "FormItemComponent", filePath: "lib/field-controls/form-item.component.ts", lineNumber: 27 }); })();
|
|
215
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY3JkLWZvcm0vc3JjL2xpYi9maWVsZC1jb250cm9scy9mb3JtLWl0ZW0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jcmQtZm9ybS9zcmMvbGliL2ZpZWxkLWNvbnRyb2xzL2Zvcm0taXRlbS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsS0FBSyxHQUNOLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFDTCxtQkFBbUIsRUFDbkIsZUFBZSxFQUNmLGlCQUFpQixFQUNqQixlQUFlLEVBQ2YsZUFBZSxFQUNmLHdCQUF3QixHQUN6QixNQUFNLFVBQVUsQ0FBQztBQUVsQixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQzs7Ozs7Ozs7OztJQ1JoRSxnQ0FHRztJQUFBLFlBQXlCOztJQUFBLGlCQUMzQjs7O0lBREUsY0FBeUI7SUFBekIsc0RBQXlCOzs7SUFJNUIsMkJBSWdCOzs7SUFEZCwyREFBc0M7OztJQVN0Qyx3Q0FTb0I7OztJQUZsQiw2REFBd0M7OztJQUt4Qyw2QkFFQztJQUNDLFlBQ0Y7Ozs7OztJQURFLGNBQ0Y7SUFERSxvSUFDRjs7O0lBVUUsNkJBRUM7SUFDQyxZQUNGOzs7Ozs7SUFER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zdG9tRXJyb3JzTWFwcGVyXG4gICAgICBcIlxuICAgICAgW2Vycm9yc109XCJmaWVsZENvbXBvbmVudC5jb250cm9sLmVycm9yc1wiXG4gICAgPlxuICAgIDwvYWNsLWVycm9ycy1tYXBwZXI+XG5cbiAgICA8ZGl2PlxuICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAqbmdJZj1cIiEoZmllbGRDb21wb25lbnQuZmllbGQgfCBwdXJlOiBpc0ZpZWxkRGVzY3JpcHRpb25Bc0xpbmspXCJcbiAgICAgID5cbiAgICAgICAge3sgZmllbGRDb21wb25lbnQuZmllbGQgfCBwdXJlOiBnZXRGaWVsZERlc2NyaXB0aW9uIHwgdHJhbnNsYXRlIH19XG4gICAgICA8L25nLWNvbnRhaW5lcj5cblxuICAgICAgPGFcbiAgICAgICAgKm5nSWY9XCJmaWVsZENvbXBvbmVudC5maWVsZCB8IHB1cmU6IGdldEZpZWxkRG9jT3B0aW9uIGFzIG9wdGlvblwiXG4gICAgICAgIFthY2xEb2NzXT1cIntcbiAgICAgICAgICBwcm9kdWN0OiBvcHRpb24ucHJvZHVjdCxcbiAgICAgICAgICBwYXRoOiBvcHRpb24ucGF0aCxcbiAgICAgICAgICB0eXBlOiAncGFnZScsXG4gICAgICAgIH1cIlxuICAgICAgPlxuICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgKm5nSWY9XCJmaWVsZENvbXBvbmVudC5maWVsZCB8IHB1cmU6IGlzRmllbGREZXNjcmlwdGlvbkFzTGlua1wiXG4gICAgICAgID5cbiAgICAgICAgICB7eyBmaWVsZENvbXBvbmVudC5maWVsZCB8IHB1cmU6IGdldEZpZWxkRGVzY3JpcHRpb24gfCB0cmFuc2xhdGUgfX1cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgIDxhdWktaWNvbiBpY29uPVwianVtcFwiPjwvYXVpLWljb24+XG4gICAgICA8L2E+XG5cbiAgICAgIDxhXG4gICAgICAgICpuZ0lmPVwiZmllbGRDb21wb25lbnQuZmllbGQgfCBwdXJlOiBnZXRGaWVsZERvY0xpbmsgYXMgbGlua1wiXG4gICAgICAgIFthdHRyLmhyZWZdPVwibGlua1wiXG4gICAgICAgIHRhcmdldD1cIl9ibGFua1wiXG4gICAgICA+XG4gICAgICAgIDxuZy1jb250YWluZXJcbiAgICAgICAgICAqbmdJZj1cImZpZWxkQ29tcG9uZW50LmZpZWxkIHwgcHVyZTogaXNGaWVsZERlc2NyaXB0aW9uQXNMaW5rXCJcbiAgICAgICAgPlxuICAgICAgICAgIHt7IGZpZWxkQ29tcG9uZW50LmZpZWxkIHwgcHVyZTogZ2V0RmllbGREZXNjcmlwdGlvbiB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPGF1aS1pY29uIGljb249XCJqdW1wXCI+PC9hdWktaWNvbj5cbiAgICAgIDwvYT5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG4gIDxkaXZcbiAgICBhdWlGb3JtSXRlbUFkZG9uXG4gICAgKm5nSWY9XCJcbiAgICAgIChmaWVsZENvbXBvbmVudC5maWVsZCB8IHB1cmU6IGdldEZpZWxkVG9vbHRpcCkgfHxcbiAgICAgIChmaWVsZENvbXBvbmVudC5maWVsZFxuICAgICAgICB8IHB1cmU6IHNob3dGaWVsZENvcHlhYmxlIDogZmllbGRDb21wb25lbnQuaXNEaXNhYmxlZClcbiAgICBcIlxuICA+XG4gICAgPG5nLWNvbnRhaW5lclxuICAgICAgKm5nSWY9XCJcbiAgICAgICAgZmllbGRDb21wb25lbnQuZmllbGRcbiAgICAgICAgICB8IHB1cmU6IHNob3dGaWVsZENvcHlhYmxlIDogZmllbGRDb21wb25lbnQuaXNEaXNhYmxlZFxuICAgICAgXCJcbiAgICA+XG4gICAgICA8YXVpLWljb25cbiAgICAgICAgaWNvbj1cImNvcHlcIlxuICAgICAgICBbYXVpVG9vbHRpcENvcHldPVwiZmllbGRDb21wb25lbnQuY29udHJvbC52YWx1ZVwiXG4gICAgICA+PC9hdWktaWNvbj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8bmctY29udGFpbmVyXG4gICAgICAqbmdJZj1cImZpZWxkQ29tcG9uZW50LmZpZWxkIHwgcHVyZTogZ2V0RmllbGRUb29sdGlwIGFzIHRvb2x0aXBcIlxuICAgID5cbiAgICAgIDxhdWktaWNvblxuICAgICAgICBpY29uPVwicXVlc3Rpb25fY2lyY2xlXCJcbiAgICAgICAgW2NsYXNzXT1cIlxuICAgICAgICAgIChmaWVsZENvbXBvbmVudC5maWVsZFxuICAgICAgICAgIHwgcHVyZTogc2hvd0ZpZWxkQ29weWFibGUgOiBmaWVsZENvbXBvbmVudC5pc0Rpc2FibGVkKVxuICAgICAgICAgICAgPyAndHctbWwtOCdcbiAgICAgICAgICAgIDogJydcbiAgICAgICAgXCJcbiAgICAgICAgW2F1aVRvb2x0aXBdPVwidG9vbHRpcFRtcFwiXG4gICAgICA+PC9hdWktaWNvbj5cbiAgICAgIDxuZy10ZW1wbGF0ZSAjdG9vbHRpcFRtcD5cbiAgICAgICAgPHNwYW4gc3R5bGU9XCJ3aGl0ZS1zcGFjZTogcHJlLWxpbmVcIj4ge3sgdG9vbHRpcCB8IHRyYW5zbGF0ZSB9fTwvc3Bhbj5cbiAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIDwvZGl2PlxuPC9hdWktZm9ybS1pdGVtPlxuIl19
|
|
@@ -81,7 +81,7 @@ export class CrdFormArrayTableComponent extends BaseOperandFiledArrayComponent {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵCrdFormArrayTableComponent_BaseFactory; return function CrdFormArrayTableComponent_Factory(t) { return (ɵCrdFormArrayTableComponent_BaseFactory || (ɵCrdFormArrayTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CrdFormArrayTableComponent)))(t || CrdFormArrayTableComponent); }; })(); }
|
|
84
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CrdFormArrayTableComponent, selectors: [["acl-crd-array-table"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 15, consts: [["defaultTh", ""], [3, "emptyAddon"], ["auiFormItemLabel", ""], [1, "form-table__flex-layout", 2, "flex", "1", 3, "remove", "add", "rows", "readonly", "
|
|
84
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CrdFormArrayTableComponent, selectors: [["acl-crd-array-table"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 15, consts: [["defaultTh", ""], [3, "emptyAddon"], ["auiFormItemLabel", ""], [1, "form-table__flex-layout", 2, "flex", "1", 3, "remove", "add", "rows", "readonly", "resourceNameTranslated"], [4, "aclArrayFormTableHeader"], [4, "aclArrayFormTableRow"], [4, "ngFor", "ngForOf"], ["required", "", 4, "ngIf", "ngIfElse"], ["required", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "valueChange", "field", "formDataState", "formErrors", "readonly"]], template: function CrdFormArrayTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
85
85
|
i0.ɵɵelementStart(0, "aui-form-item", 1)(1, "label", 2);
|
|
86
86
|
i0.ɵɵtext(2);
|
|
87
87
|
i0.ɵɵpipe(3, "pure");
|
|
@@ -98,12 +98,12 @@ export class CrdFormArrayTableComponent extends BaseOperandFiledArrayComponent {
|
|
|
98
98
|
i0.ɵɵadvance(2);
|
|
99
99
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, i0.ɵɵpipeBind2(3, 5, ctx.arrayFieldGroup, ctx.getFieldDisplayName)));
|
|
100
100
|
i0.ɵɵadvance(3);
|
|
101
|
-
i0.ɵɵproperty("rows", ctx.arrayFieldGroup.fieldLists)("readonly", ctx.readonly)("
|
|
101
|
+
i0.ɵɵproperty("rows", ctx.arrayFieldGroup.fieldLists)("readonly", ctx.readonly)("resourceNameTranslated", i0.ɵɵpipeBind1(7, 13, i0.ɵɵpipeBind2(6, 10, ctx.arrayFieldGroup, ctx.getFieldDisplayName)));
|
|
102
102
|
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.FormItemComponent, i2.FormItemLabelDirective, i3.ArrayFormTableComponent, i3.ArrayFormTableHeaderDirective, i3.ArrayFormTableRowDirective, i4.OperandFieldComponent, i3.TranslatePipe, i3.PurePipe], styles: ["[_nghost-%COMP%]{flex:1}[_nghost-%COMP%] acl-array-form-table .acl-array-form-table__readonly-mode tbody tr{height:auto}[_nghost-%COMP%] acl-array-form-table .aui-form-item{margin-bottom:0}[_nghost-%COMP%] acl-array-form-table .aui-form-item .aui-form-item__label-wrapper{display:none}[_nghost-%COMP%] acl-array-form-table .aui-form-item .aui-form-item__content{min-height:auto}[_nghost-%COMP%] acl-array-form-table .aui-form-item .aui-form-item__content .aui-form-item__control{max-width:100%}[_nghost-%COMP%] acl-array-form-table .acl-array-form-table tbody td{vertical-align:top}"], changeDetection: 0 }); }
|
|
103
103
|
}
|
|
104
104
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CrdFormArrayTableComponent, [{
|
|
105
105
|
type: Component,
|
|
106
|
-
args: [{ selector: 'acl-crd-array-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<aui-form-item [emptyAddon]=\"false\">\n <label auiFormItemLabel>{{\n arrayFieldGroup | pure: getFieldDisplayName | translate\n }}</label>\n\n <acl-array-form-table\n style=\"flex: 1\"\n (remove)=\"removeItem($event)\"\n (add)=\"addItem()\"\n [rows]=\"arrayFieldGroup.fieldLists\"\n [readonly]=\"readonly\"\n class=\"form-table__flex-layout\"\n [
|
|
106
|
+
args: [{ selector: 'acl-crd-array-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<aui-form-item [emptyAddon]=\"false\">\n <label auiFormItemLabel>{{\n arrayFieldGroup | pure: getFieldDisplayName | translate\n }}</label>\n\n <acl-array-form-table\n style=\"flex: 1\"\n (remove)=\"removeItem($event)\"\n (add)=\"addItem()\"\n [rows]=\"arrayFieldGroup.fieldLists\"\n [readonly]=\"readonly\"\n class=\"form-table__flex-layout\"\n [resourceNameTranslated]=\"\n arrayFieldGroup | pure: getFieldDisplayName | translate\n \"\n >\n <ng-container *aclArrayFormTableHeader>\n <ng-container *ngFor=\"let field of basicArrayFieldTemplate\">\n <th\n required\n *ngIf=\"field | pure: fieldIsRequired; else defaultTh\"\n >\n {{ field | pure: getFieldDisplayName | translate }}\n </th>\n <ng-template #defaultTh>\n <th>{{ field | pure: getFieldDisplayName | translate }}</th>\n </ng-template>\n </ng-container>\n </ng-container>\n\n <!-- Input row -->\n <ng-container *aclArrayFormTableRow=\"let fieldList; let index = index\">\n <td\n *ngFor=\"let field of fieldList; let index = index; trackBy: trackByFn\"\n >\n <acl-operand-field\n [field]=\"field\"\n [formDataState]=\"formDataState\"\n [formErrors]=\"formErrors\"\n [readonly]=\"readonly\"\n (valueChange)=\"fieldValueChange($event)\"\n >\n </acl-operand-field>\n </td>\n </ng-container>\n </acl-array-form-table>\n</aui-form-item>\n", styles: [":host{flex:1}:host ::ng-deep acl-array-form-table .acl-array-form-table__readonly-mode tbody tr{height:auto}:host ::ng-deep acl-array-form-table .aui-form-item{margin-bottom:0}:host ::ng-deep acl-array-form-table .aui-form-item .aui-form-item__label-wrapper{display:none}:host ::ng-deep acl-array-form-table .aui-form-item .aui-form-item__content{min-height:auto}:host ::ng-deep acl-array-form-table .aui-form-item .aui-form-item__content .aui-form-item__control{max-width:100%}:host ::ng-deep acl-array-form-table .acl-array-form-table tbody td{vertical-align:top}\n"] }]
|
|
107
107
|
}], null, null); })();
|
|
108
108
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CrdFormArrayTableComponent, { className: "CrdFormArrayTableComponent", filePath: "lib/field-controls/widgets/array-table/component.ts", lineNumber: 12 }); })();
|
|
109
|
-
//# sourceMappingURL=data:application/json;base64,
|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VwibGV0IGZpZWxkIG9mIGZpZWxkTGlzdDsgbGV0IGluZGV4ID0gaW5kZXg7IHRyYWNrQnk6IHRyYWNrQnlGblwiXG4gICAgICA+XG4gICAgICAgIDxhY2wtb3BlcmFuZC1maWVsZFxuICAgICAgICAgIFtmaWVsZF09XCJmaWVsZFwiXG4gICAgICAgICAgW2Zvcm1EYXRhU3RhdGVdPVwiZm9ybURhdGFTdGF0ZVwiXG4gICAgICAgICAgW2Zvcm1FcnJvcnNdPVwiZm9ybUVycm9yc1wiXG4gICAgICAgICAgW3JlYWRvbmx5XT1cInJlYWRvbmx5XCJcbiAgICAgICAgICAodmFsdWVDaGFuZ2UpPVwiZmllbGRWYWx1ZUNoYW5nZSgkZXZlbnQpXCJcbiAgICAgICAgPlxuICAgICAgICA8L2FjbC1vcGVyYW5kLWZpZWxkPlxuICAgICAgPC90ZD5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgPC9hY2wtYXJyYXktZm9ybS10YWJsZT5cbjwvYXVpLWZvcm0taXRlbT5cbiJdfQ==
|
|
@@ -50,7 +50,7 @@ export class LinkComponent extends createNestedFormControl({
|
|
|
50
50
|
i0.ɵɵtextInterpolate(ctx.model);
|
|
51
51
|
i0.ɵɵadvance();
|
|
52
52
|
i0.ɵɵproperty("ngIf", ctx.options.target === "_blank");
|
|
53
|
-
} }, dependencies: [IconModule, i1.IconComponent, SanitizePipe, NgIf],
|
|
53
|
+
} }, dependencies: [IconModule, i1.IconComponent, SanitizePipe, NgIf], styles: ["[_nghost-%COMP%]{flex:none!important}"], changeDetection: 0 }); }
|
|
54
54
|
}
|
|
55
55
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkComponent, [{
|
|
56
56
|
type: Component,
|
|
@@ -60,9 +60,9 @@ export class LinkComponent extends createNestedFormControl({
|
|
|
60
60
|
useExisting: forwardRef(() => LinkComponent),
|
|
61
61
|
multi: true,
|
|
62
62
|
},
|
|
63
|
-
], imports: [IconModule, SanitizePipe, NgIf], template: "<a\n [href]=\"model | aclSanitize: 'url'\"\n [target]=\"options.target\"\n>\n <span>{{ model }}</span\n ><aui-icon\n *ngIf=\"options.target === '_blank'\"\n icon=\"jump\"\n margin=\"left\"\n >\n </aui-icon>\n</a>\n" }]
|
|
63
|
+
], imports: [IconModule, SanitizePipe, NgIf], template: "<a\n [href]=\"model | aclSanitize: 'url'\"\n [target]=\"options.target\"\n>\n <span>{{ model }}</span\n ><aui-icon\n *ngIf=\"options.target === '_blank'\"\n icon=\"jump\"\n margin=\"left\"\n >\n </aui-icon>\n</a>\n", styles: [":host{flex:none!important}\n"] }]
|
|
64
64
|
}], null, { field: [{
|
|
65
65
|
type: Input
|
|
66
66
|
}] }); })();
|
|
67
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkComponent, { className: "LinkComponent", filePath: "lib/field-controls/widgets/link/component.ts", lineNumber:
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
67
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkComponent, { className: "LinkComponent", filePath: "lib/field-controls/widgets/link/component.ts", lineNumber: 58 }); })();
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jcmQtZm9ybS9zcmMvbGliL2ZpZWxkLWNvbnRyb2xzL3dpZGdldHMvbGluay9jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NyZC1mb3JtL3NyYy9saWIvZmllbGQtY29udHJvbHMvd2lkZ2V0cy9saW5rL3RlbXBsYXRlLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRS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