@coolon/angular-ui-powerups 16.1.0-aplpha.186 → 16.1.0-aplpha.187
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/interaction/components/input-activities/select-input-activity.mjs +40 -37
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -7
- package/fesm2022/coolon-angular-ui-powerups.mjs +42 -42
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -6,11 +6,11 @@ import * as i2 from "../activity-actions/activity-actions.component";
|
|
|
6
6
|
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
|
7
7
|
export class SelectInputActivity extends InputActivity {
|
|
8
8
|
defaultOptionLabelFormat = (option) => {
|
|
9
|
-
return option
|
|
10
|
-
this.activityData.optionLabel
|
|
11
|
-
option[this.activityData.optionLabel]
|
|
9
|
+
return option
|
|
10
|
+
? this.activityData.optionLabel
|
|
11
|
+
? option[this.activityData.optionLabel]
|
|
12
12
|
: option
|
|
13
|
-
:
|
|
13
|
+
: '';
|
|
14
14
|
};
|
|
15
15
|
get optionLabelFormat() {
|
|
16
16
|
return this.activityData.optionLabelFormat ?? this.defaultOptionLabelFormat;
|
|
@@ -20,46 +20,49 @@ export class SelectInputActivity extends InputActivity {
|
|
|
20
20
|
}
|
|
21
21
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputActivity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
22
22
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputActivity, selector: "aup-select-input-activity", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
-
<aup-select-input
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
<aup-select-input
|
|
24
|
+
[value$]="value$"
|
|
25
|
+
[label]="activityData.label"
|
|
26
|
+
[placeholder]="activityData.placeholder"
|
|
27
|
+
[command.enter]="confirmCommand"
|
|
28
|
+
[command.escape]="cancelCommand"
|
|
29
|
+
[options]="options"
|
|
30
|
+
[optionLabelFormat]="optionLabelFormat"
|
|
31
|
+
[allowNil]="activityData.allowNil"
|
|
32
|
+
[dense]="true"
|
|
32
33
|
>
|
|
33
|
-
<ng-template #nilOptionTemplate>{{activityData.nilLabel}}</ng-template>
|
|
34
|
+
<ng-template #nilOptionTemplate>{{ activityData.nilLabel }}</ng-template>
|
|
34
35
|
</aup-select-input>
|
|
35
|
-
<aup-activity-actions
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
<aup-activity-actions
|
|
37
|
+
[layout]="layout"
|
|
38
|
+
align="end"
|
|
39
|
+
[confirmFace]="confirmFace"
|
|
40
|
+
[cancelFace]="cancelFace"
|
|
38
41
|
></aup-activity-actions>
|
|
39
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: i2.ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
42
|
+
`, isInline: true, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"], dependencies: [{ kind: "component", type: i1.SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: i2.ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
40
43
|
}
|
|
41
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputActivity, decorators: [{
|
|
42
45
|
type: Component,
|
|
43
|
-
args: [{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
[dense]="true"
|
|
46
|
+
args: [{ selector: 'aup-select-input-activity', template: `
|
|
47
|
+
<aup-select-input
|
|
48
|
+
[value$]="value$"
|
|
49
|
+
[label]="activityData.label"
|
|
50
|
+
[placeholder]="activityData.placeholder"
|
|
51
|
+
[command.enter]="confirmCommand"
|
|
52
|
+
[command.escape]="cancelCommand"
|
|
53
|
+
[options]="options"
|
|
54
|
+
[optionLabelFormat]="optionLabelFormat"
|
|
55
|
+
[allowNil]="activityData.allowNil"
|
|
56
|
+
[dense]="true"
|
|
55
57
|
>
|
|
56
|
-
<ng-template #nilOptionTemplate>{{activityData.nilLabel}}</ng-template>
|
|
58
|
+
<ng-template #nilOptionTemplate>{{ activityData.nilLabel }}</ng-template>
|
|
57
59
|
</aup-select-input>
|
|
58
|
-
<aup-activity-actions
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
<aup-activity-actions
|
|
61
|
+
[layout]="layout"
|
|
62
|
+
align="end"
|
|
63
|
+
[confirmFace]="confirmFace"
|
|
64
|
+
[cancelFace]="cancelFace"
|
|
61
65
|
></aup-activity-actions>
|
|
62
|
-
|
|
63
|
-
}]
|
|
66
|
+
`, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"] }]
|
|
64
67
|
}] });
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWlucHV0LWFjdGl2aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4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kge1xuICBleHBvcnQgaW50ZXJmYWNlIERhdGE8VD4gZXh0ZW5kcyBJbnB1dEFjdGl2aXR5LkRhdGE8VD4ge1xuICAgIG9wdGlvbnM/OiBUW107XG4gICAgb3B0aW9uc01vZGVsPzogTGlzdE1vZGVsPFQ+O1xuICAgIG9wdGlvbkxhYmVsPzoga2V5b2YgVDtcbiAgICBvcHRpb25MYWJlbEZvcm1hdD86IChvcHRpb246IFQpID0+IGFueTtcbiAgICBhbGxvd05pbD86IGJvb2xlYW47XG4gICAgbmlsTGFiZWw/OiBzdHJpbmc7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -18,13 +18,11 @@ export class StringInputActivity extends InputActivity {
|
|
|
18
18
|
[confirmFace]="confirmFace"
|
|
19
19
|
[cancelFace]="cancelFace"
|
|
20
20
|
></aup-activity-actions>
|
|
21
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix", "suffixCommand", "inputMode"] }, { kind: "component", type: i2.ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
21
|
+
`, isInline: true, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"], dependencies: [{ kind: "component", type: i1.StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix", "suffixCommand", "inputMode"] }, { kind: "component", type: i2.ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
22
22
|
}
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputActivity, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
|
-
args: [{
|
|
26
|
-
selector: 'aup-string-input-activity',
|
|
27
|
-
template: `
|
|
25
|
+
args: [{ selector: 'aup-string-input-activity', template: `
|
|
28
26
|
<aup-string-input [value$]="value$"
|
|
29
27
|
[label]="activityData.label"
|
|
30
28
|
[placeholder]="activityData.placeholder"
|
|
@@ -36,7 +34,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
36
34
|
[confirmFace]="confirmFace"
|
|
37
35
|
[cancelFace]="cancelFace"
|
|
38
36
|
></aup-activity-actions>
|
|
39
|
-
|
|
40
|
-
}]
|
|
37
|
+
`, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"] }]
|
|
41
38
|
}] });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLWlucHV0LWFjdGl2aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvaW50ZXJhY3Rpb24vY29tcG9uZW50cy9pbnB1dC1hY3Rpdml0aWVzL3N0cmluZy1pbnB1dC1hY3Rpdml0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3hDLE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQzs7OztBQW9CL0Msa0VBQWtFO0FBQ2xFLE1BQU0sT0FBTyxtQkFBb0IsU0FBUSxhQUFxQjt1R0FBakQsbUJBQW1COzJGQUFuQixtQkFBbUIsd0ZBaEJwQjs7Ozs7Ozs7Ozs7O0dBWVQ7OzJGQUlVLG1C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rpdml0eS5zY3NzXCIsXVxufSlcbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAYW5ndWxhci1lc2xpbnQvY29tcG9uZW50LWNsYXNzLXN1ZmZpeFxuZXhwb3J0IGNsYXNzIFN0cmluZ0lucHV0QWN0aXZpdHkgZXh0ZW5kcyBJbnB1dEFjdGl2aXR5PHN0cmluZz4ge1xufVxuXG5leHBvcnQgbmFtZXNwYWNlIFN0cmluZ0lucHV0QWN0aXZpdHkge1xuICBleHBvcnQgaW50ZXJmYWNlIERhdGEgZXh0ZW5kcyBJbnB1dEFjdGl2aXR5LkRhdGE8c3RyaW5nPiB7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -11134,13 +11134,11 @@ class StringInputActivity extends InputActivity {
|
|
|
11134
11134
|
[confirmFace]="confirmFace"
|
|
11135
11135
|
[cancelFace]="cancelFace"
|
|
11136
11136
|
></aup-activity-actions>
|
|
11137
|
-
`, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix", "suffixCommand", "inputMode"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
11137
|
+
`, isInline: true, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"], dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix", "suffixCommand", "inputMode"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
11138
11138
|
}
|
|
11139
11139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputActivity, decorators: [{
|
|
11140
11140
|
type: Component,
|
|
11141
|
-
args: [{
|
|
11142
|
-
selector: 'aup-string-input-activity',
|
|
11143
|
-
template: `
|
|
11141
|
+
args: [{ selector: 'aup-string-input-activity', template: `
|
|
11144
11142
|
<aup-string-input [value$]="value$"
|
|
11145
11143
|
[label]="activityData.label"
|
|
11146
11144
|
[placeholder]="activityData.placeholder"
|
|
@@ -11152,8 +11150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11152
11150
|
[confirmFace]="confirmFace"
|
|
11153
11151
|
[cancelFace]="cancelFace"
|
|
11154
11152
|
></aup-activity-actions>
|
|
11155
|
-
|
|
11156
|
-
}]
|
|
11153
|
+
`, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"] }]
|
|
11157
11154
|
}] });
|
|
11158
11155
|
|
|
11159
11156
|
class InlineEditorModel extends GarbageCollector {
|
|
@@ -11391,11 +11388,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
11391
11388
|
// eslint-disable-next-line @angular-eslint/component-class-suffix
|
|
11392
11389
|
class SelectInputActivity extends InputActivity {
|
|
11393
11390
|
defaultOptionLabelFormat = (option) => {
|
|
11394
|
-
return option
|
|
11395
|
-
this.activityData.optionLabel
|
|
11396
|
-
option[this.activityData.optionLabel]
|
|
11391
|
+
return option
|
|
11392
|
+
? this.activityData.optionLabel
|
|
11393
|
+
? option[this.activityData.optionLabel]
|
|
11397
11394
|
: option
|
|
11398
|
-
:
|
|
11395
|
+
: '';
|
|
11399
11396
|
};
|
|
11400
11397
|
get optionLabelFormat() {
|
|
11401
11398
|
return this.activityData.optionLabelFormat ?? this.defaultOptionLabelFormat;
|
|
@@ -11405,47 +11402,50 @@ class SelectInputActivity extends InputActivity {
|
|
|
11405
11402
|
}
|
|
11406
11403
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputActivity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
11407
11404
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputActivity, selector: "aup-select-input-activity", usesInheritance: true, ngImport: i0, template: `
|
|
11408
|
-
<aup-select-input
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11405
|
+
<aup-select-input
|
|
11406
|
+
[value$]="value$"
|
|
11407
|
+
[label]="activityData.label"
|
|
11408
|
+
[placeholder]="activityData.placeholder"
|
|
11409
|
+
[command.enter]="confirmCommand"
|
|
11410
|
+
[command.escape]="cancelCommand"
|
|
11411
|
+
[options]="options"
|
|
11412
|
+
[optionLabelFormat]="optionLabelFormat"
|
|
11413
|
+
[allowNil]="activityData.allowNil"
|
|
11414
|
+
[dense]="true"
|
|
11417
11415
|
>
|
|
11418
|
-
<ng-template #nilOptionTemplate>{{activityData.nilLabel}}</ng-template>
|
|
11416
|
+
<ng-template #nilOptionTemplate>{{ activityData.nilLabel }}</ng-template>
|
|
11419
11417
|
</aup-select-input>
|
|
11420
|
-
<aup-activity-actions
|
|
11421
|
-
|
|
11422
|
-
|
|
11418
|
+
<aup-activity-actions
|
|
11419
|
+
[layout]="layout"
|
|
11420
|
+
align="end"
|
|
11421
|
+
[confirmFace]="confirmFace"
|
|
11422
|
+
[cancelFace]="cancelFace"
|
|
11423
11423
|
></aup-activity-actions>
|
|
11424
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
11424
|
+
`, isInline: true, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"], dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }] });
|
|
11425
11425
|
}
|
|
11426
11426
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputActivity, decorators: [{
|
|
11427
11427
|
type: Component,
|
|
11428
|
-
args: [{
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
[dense]="true"
|
|
11428
|
+
args: [{ selector: 'aup-select-input-activity', template: `
|
|
11429
|
+
<aup-select-input
|
|
11430
|
+
[value$]="value$"
|
|
11431
|
+
[label]="activityData.label"
|
|
11432
|
+
[placeholder]="activityData.placeholder"
|
|
11433
|
+
[command.enter]="confirmCommand"
|
|
11434
|
+
[command.escape]="cancelCommand"
|
|
11435
|
+
[options]="options"
|
|
11436
|
+
[optionLabelFormat]="optionLabelFormat"
|
|
11437
|
+
[allowNil]="activityData.allowNil"
|
|
11438
|
+
[dense]="true"
|
|
11440
11439
|
>
|
|
11441
|
-
<ng-template #nilOptionTemplate>{{activityData.nilLabel}}</ng-template>
|
|
11440
|
+
<ng-template #nilOptionTemplate>{{ activityData.nilLabel }}</ng-template>
|
|
11442
11441
|
</aup-select-input>
|
|
11443
|
-
<aup-activity-actions
|
|
11444
|
-
|
|
11445
|
-
|
|
11442
|
+
<aup-activity-actions
|
|
11443
|
+
[layout]="layout"
|
|
11444
|
+
align="end"
|
|
11445
|
+
[confirmFace]="confirmFace"
|
|
11446
|
+
[cancelFace]="cancelFace"
|
|
11446
11447
|
></aup-activity-actions>
|
|
11447
|
-
|
|
11448
|
-
}]
|
|
11448
|
+
`, styles: [":host{--activity-actions-gap: 0}:host .aup-input-component{flex:1}:host[layout=inline]{padding-right:0}:host[layout=block]{padding-bottom:0}\n"] }]
|
|
11449
11449
|
}] });
|
|
11450
11450
|
|
|
11451
11451
|
const slideDownOnEnterDef = style({
|