@coolon/angular-ui-powerups 12.4.0-alpha.35 → 12.4.0-alpha.37
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/assets/interaction/editor/inline-string-editor.scss +73 -41
- package/bundles/coolon-angular-ui-powerups.umd.js +5 -2
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +7 -1
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +5 -2
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,54 +1,86 @@
|
|
|
1
1
|
@use "../../forms/mixins";
|
|
2
|
-
@use "~@angular/material/
|
|
2
|
+
@use "~@angular/material/theming";
|
|
3
3
|
|
|
4
4
|
@mixin apply-theme($color-config, $typography-config) {
|
|
5
5
|
|
|
6
6
|
aup-inline-string-editor {
|
|
7
|
-
display:
|
|
7
|
+
display: block;
|
|
8
8
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
font-size: typography-utils.font-size($typography-config, input);
|
|
17
|
-
|
|
18
|
-
> label {
|
|
19
|
-
grid-area: label;
|
|
20
|
-
align-self: end;
|
|
21
|
-
@include mixins.floating-label-style();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
> p {
|
|
25
|
-
grid-area: content;
|
|
26
|
-
@include typography-utils.typography-level($typography-config, input);
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
flex: 1;
|
|
29
|
-
padding: 0.2857em 0 0 0; // bump our top padding to align with the text input padding (it's a guess at this point...)
|
|
30
|
-
margin: 0;
|
|
31
|
-
|
|
32
|
-
&.editing-enabled {
|
|
33
|
-
cursor: pointer;
|
|
9
|
+
.container {
|
|
10
|
+
mat-form-field {
|
|
11
|
+
&:not(.empty) {
|
|
12
|
+
input {
|
|
13
|
+
color: currentColor;
|
|
14
|
+
//color: theming.mat-color($color-config, text);
|
|
15
|
+
}
|
|
34
16
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
&.editable {
|
|
18
|
+
.mat-form-field-flex, input {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.mat-form-field-infix {
|
|
23
|
+
width: auto;
|
|
24
|
+
}
|
|
25
|
+
.mat-form-field-underline {
|
|
26
|
+
//opacity: 0; // hide the underline...
|
|
38
27
|
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
//background-color: rgba(0, 0, 0, 0.03);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
> aup-command {
|
|
47
|
-
grid-area: edit-control;
|
|
48
|
-
align-self: end;
|
|
49
|
-
transform: translateY(3px); // hack to line up with activity actions...!
|
|
50
28
|
}
|
|
51
29
|
}
|
|
30
|
+
//.content {
|
|
31
|
+
// position: relative;
|
|
32
|
+
// display: grid;
|
|
33
|
+
// grid-template-areas: "label edit-control" "content edit-control";
|
|
34
|
+
// grid-template-columns: 1fr auto;
|
|
35
|
+
// grid-template-rows: auto;
|
|
36
|
+
//
|
|
37
|
+
// font-size: typography-utils.font-size($typography-config, input);
|
|
38
|
+
//
|
|
39
|
+
// //box-sizing: border-box;
|
|
40
|
+
// // copied from mat input...
|
|
41
|
+
// border-top: 0.84375em solid transparent;
|
|
42
|
+
// padding-bottom: 1.34375em;
|
|
43
|
+
//
|
|
44
|
+
// $top-padding-tweak: 1px;
|
|
45
|
+
// padding-top: $top-padding-tweak;
|
|
46
|
+
//
|
|
47
|
+
// > label {
|
|
48
|
+
// position: absolute;
|
|
49
|
+
// transform: translateY(-100%);
|
|
50
|
+
// @include mixins.floating-label-style();
|
|
51
|
+
// }
|
|
52
|
+
//
|
|
53
|
+
// > p {
|
|
54
|
+
// grid-area: content;
|
|
55
|
+
// @include typography-utils.typography-level($typography-config, input);
|
|
56
|
+
//
|
|
57
|
+
// // copied from mat input...
|
|
58
|
+
// padding: 0.5em 0;
|
|
59
|
+
// margin: -0.0625em 0 0 0;
|
|
60
|
+
//
|
|
61
|
+
// box-sizing: border-box;
|
|
62
|
+
// flex: 1;
|
|
63
|
+
//
|
|
64
|
+
// &.editing-enabled {
|
|
65
|
+
// cursor: pointer;
|
|
66
|
+
// }
|
|
67
|
+
//
|
|
68
|
+
// &.place-holder {
|
|
69
|
+
// color: rgba(0,0,0,0.5); // TODO: get the angular theme value for disabled form elements...
|
|
70
|
+
// }
|
|
71
|
+
//
|
|
72
|
+
// }
|
|
73
|
+
//
|
|
74
|
+
// &:hover {
|
|
75
|
+
// //background-color: rgba(0, 0, 0, 0.03);
|
|
76
|
+
// }
|
|
77
|
+
//
|
|
78
|
+
// > aup-command {
|
|
79
|
+
// grid-area: edit-control;
|
|
80
|
+
// align-self: end;
|
|
81
|
+
// transform: translateY(3px); // hack to line up with activity actions...!
|
|
82
|
+
// }
|
|
83
|
+
//}
|
|
52
84
|
}
|
|
53
85
|
}
|
|
54
86
|
|
|
@@ -6923,7 +6923,7 @@
|
|
|
6923
6923
|
exports.InlineStringEditorComponent.decorators = [
|
|
6924
6924
|
{ type: i0.Component, args: [{
|
|
6925
6925
|
selector: 'aup-inline-string-editor',
|
|
6926
|
-
template: "<
|
|
6926
|
+
template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n"
|
|
6927
6927
|
},] }
|
|
6928
6928
|
];
|
|
6929
6929
|
exports.InlineStringEditorComponent.ctorParameters = function () { return [
|
|
@@ -6990,7 +6990,10 @@
|
|
|
6990
6990
|
DirectivesModule,
|
|
6991
6991
|
flexLayout.FlexModule,
|
|
6992
6992
|
flexLayout.GridModule,
|
|
6993
|
-
ComponentsModule
|
|
6993
|
+
ComponentsModule,
|
|
6994
|
+
forms.FormsModule,
|
|
6995
|
+
input.MatInputModule,
|
|
6996
|
+
formField.MatFormFieldModule,
|
|
6994
6997
|
],
|
|
6995
6998
|
declarations: [
|
|
6996
6999
|
ActivityContainerComponent,
|