@coolon/angular-ui-powerups 12.4.0-alpha.34 → 12.4.0-alpha.36
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/forms/mixins.scss +1 -1
- package/assets/interaction/editor/inline-string-editor.scss +52 -35
- package/assets/interaction.scss +5 -0
- package/assets/styles.scss +1 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +1 -1
- 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.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
package/assets/forms/mixins.scss
CHANGED
|
@@ -1,50 +1,67 @@
|
|
|
1
1
|
@use "../../forms/mixins";
|
|
2
|
+
@use "~@angular/material/core/typography/typography-utils";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
display: inline-block;
|
|
4
|
+
@mixin apply-theme($color-config, $typography-config) {
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
aup-inline-string-editor {
|
|
7
|
+
display: inline-block;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
.content {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-areas: "label edit-control" "content edit-control";
|
|
13
|
+
grid-template-columns: 1fr auto;
|
|
14
|
+
grid-template-rows: auto;
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
grid-area: label;
|
|
15
|
-
align-self: end;
|
|
16
|
-
@include mixins.floating-label-style();
|
|
17
|
-
}
|
|
16
|
+
font-size: typography-utils.font-size($typography-config, input);
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
padding: 1px 0 0 0;
|
|
27
|
-
margin: 0;
|
|
28
|
-
|
|
29
|
-
&.editing-enabled {
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
18
|
+
//box-sizing: border-box;
|
|
19
|
+
// copied from mat input...
|
|
20
|
+
border-top: 0.84375em solid transparent;
|
|
21
|
+
padding-bottom: 1.34375em;
|
|
22
|
+
|
|
23
|
+
$top-padding-tweak: 1px;
|
|
24
|
+
padding-top: $top-padding-tweak;
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
> label {
|
|
27
|
+
position: absolute;
|
|
28
|
+
transform: translateY(-100%);
|
|
29
|
+
@include mixins.floating-label-style();
|
|
35
30
|
}
|
|
36
31
|
|
|
37
|
-
|
|
32
|
+
> p {
|
|
33
|
+
grid-area: content;
|
|
34
|
+
@include typography-utils.typography-level($typography-config, input);
|
|
35
|
+
|
|
36
|
+
// copied from mat input...
|
|
37
|
+
padding: 0.5em 0;
|
|
38
|
+
margin: -0.0625em 0 0 0;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
flex: 1;
|
|
42
|
+
|
|
43
|
+
&.editing-enabled {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.place-holder {
|
|
48
|
+
color: rgba(0,0,0,0.5); // TODO: get the angular theme value for disabled form elements...
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
40
54
|
//background-color: rgba(0, 0, 0, 0.03);
|
|
41
|
-
|
|
55
|
+
}
|
|
42
56
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
> aup-command {
|
|
58
|
+
grid-area: edit-control;
|
|
59
|
+
align-self: end;
|
|
60
|
+
transform: translateY(3px); // hack to line up with activity actions...!
|
|
61
|
+
}
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
|
-
|
|
50
64
|
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
package/assets/interaction.scss
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
@use "./interaction/editor/inline-string-editor";
|
|
4
4
|
@use "./interaction/input-activity";
|
|
5
5
|
|
|
6
|
+
@mixin apply-theme($color-config, $typography-config) {
|
|
7
|
+
@include inline-string-editor.apply-theme($color-config, $typography-config)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
6
11
|
.dialog-interaction-context {
|
|
7
12
|
max-width: 95vw !important;
|
|
8
13
|
max-height: 95vh !important;
|
package/assets/styles.scss
CHANGED
|
@@ -6923,7 +6923,7 @@
|
|
|
6923
6923
|
exports.InlineStringEditorComponent.decorators = [
|
|
6924
6924
|
{ type: i0.Component, args: [{
|
|
6925
6925
|
selector: 'aup-inline-string-editor',
|
|
6926
|
-
template: "<ng-container *ngIf=\"!editorModel.isEditing()\">\n <div class=\"content\" [class.editable]=\"editCommand.enabled.value\">\n <label>{{label}}</label>\n <p [class.place-holder]=\"empty.value\" [class.editing-enabled]=\"editingEnabled.value\" (click)=\"
|
|
6926
|
+
template: "<ng-container *ngIf=\"!editorModel.isEditing()\">\n <div class=\"content\" [class.editable]=\"editCommand.enabled.value\">\n <label>{{label}}</label>\n <p [class.place-holder]=\"empty.value\" [class.editing-enabled]=\"editingEnabled.value\" (click)=\"startEdit()\">{{displayValue.value}}</p>\n <aup-command *ngIf=\"editCommand.enabled.value\" [command]=\"editCommand\" [faceModel]=\"editFaceModel\"></aup-command>\n </div>\n</ng-container>\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 [
|