@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.
@@ -1,6 +1,6 @@
1
1
  @mixin floating-label-style() {
2
2
  font-weight: 400;
3
- font-size: calc(14px * .75);
3
+ font-size: calc(1em * .75);
4
4
  color: rgba(0, 0, 0, 0.57);
5
5
  white-space: nowrap;
6
6
  }
@@ -1,50 +1,56 @@
1
1
  @use "../../forms/mixins";
2
+ @use "~@angular/material/core/typography/typography-utils";
2
3
 
3
- aup-inline-string-editor {
4
- display: inline-block;
4
+ @mixin apply-theme($color-config, $typography-config) {
5
5
 
6
- .content {
6
+ aup-inline-string-editor {
7
+ display: inline-block;
7
8
 
8
- display: grid;
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
- > label {
14
- grid-area: label;
15
- align-self: end;
16
- @include mixins.floating-label-style();
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
- > p {
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
- &.place-holder {
34
- color: rgba(0,0,0,0.5); // TODO: get the angular theme value for disabled form elements...
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
- &:hover {
42
+ &:hover {
40
43
  //background-color: rgba(0, 0, 0, 0.03);
41
- }
44
+ }
42
45
 
43
- > aup-command {
44
- grid-area: edit-control;
45
- align-self: end;
46
- transform: translateY(3px); // hack to line up with activity actions...!
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
+
@@ -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;
@@ -29,6 +29,7 @@
29
29
 
30
30
  @include activities.apply-theme($color-config, $typography);
31
31
  @include cards.apply-theme($color-config, $typography);
32
+ @include interaction.apply-theme($color-config, $typography);
32
33
 
33
34
  :root {
34
35
  --aup-default-padding: var(--default-padding, 16px);
@@ -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)=\"editCommand.execute()\">{{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 #interactionContext [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n\n"
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 [