@coolon/angular-ui-powerups 12.4.0-alpha.34 → 12.4.0-alpha.35
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 +41 -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,56 @@
|
|
|
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
|
-
grid-template-areas: "label edit-control" "content edit-control";
|
|
10
|
-
grid-template-columns: 1fr auto;
|
|
11
|
-
grid-template-rows: 26px 24px;
|
|
9
|
+
.content {
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
grid-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-areas: "label edit-control" "content edit-control";
|
|
13
|
+
grid-template-columns: 1fr auto;
|
|
14
|
+
grid-template-rows: 26px 24px;
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
grid-area: content;
|
|
21
|
-
//height: 42px;
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
font-size: 14px;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
flex: 1;
|
|
26
|
-
padding: 1px 0 0 0;
|
|
27
|
-
margin: 0;
|
|
28
|
-
|
|
29
|
-
&.editing-enabled {
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
16
|
+
font-size: typography-utils.font-size($typography-config, input);
|
|
32
17
|
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
> label {
|
|
19
|
+
grid-area: label;
|
|
20
|
+
align-self: end;
|
|
21
|
+
@include mixins.floating-label-style();
|
|
35
22
|
}
|
|
36
23
|
|
|
37
|
-
|
|
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;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.place-holder {
|
|
37
|
+
color: rgba(0,0,0,0.5); // TODO: get the angular theme value for disabled form elements...
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
&:hover {
|
|
40
43
|
//background-color: rgba(0, 0, 0, 0.03);
|
|
41
|
-
|
|
44
|
+
}
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
> aup-command {
|
|
47
|
+
grid-area: edit-control;
|
|
48
|
+
align-self: end;
|
|
49
|
+
transform: translateY(3px); // hack to line up with activity actions...!
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
|
|
50
53
|
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
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 [
|