@operato/contact 7.0.60 → 7.0.62

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/src/ox-pfp.ts CHANGED
@@ -32,11 +32,9 @@ export class OxPfp extends LitElement {
32
32
 
33
33
  md-icon {
34
34
  position: absolute;
35
- }
36
35
 
37
- md-icon[icon='fit_screen'] {
38
- bottom: 0;
39
- left: 0;
36
+ color: var(--md-sys-color-primary);
37
+ --md-icon-size: 24px;
40
38
  }
41
39
 
42
40
  md-icon[icon='save'] {
@@ -55,8 +53,8 @@ export class OxPfp extends LitElement {
55
53
  }
56
54
 
57
55
  md-icon[icon='clear'] {
58
- top: 0;
59
- right: 16px;
56
+ bottom: 0;
57
+ left: 0;
60
58
  }
61
59
  `
62
60
 
@@ -69,9 +67,8 @@ export class OxPfp extends LitElement {
69
67
 
70
68
  render() {
71
69
  return this.editMode
72
- ? html`<ox-pfp-edit .profile=${this.profile} name=${this.name || ''}>
73
- <md-icon title="fit size" icon="fit_screen" @click=${() => this.edit.fit()}>fit_screen</md-icon>
74
- <md-icon title="clear" icon="clear" @click=${() => this.edit.clear()}>clear</md-icon>
70
+ ? html`<ox-pfp-edit .profile=${this.profile} name=${this.name || ''} @dblclick=${() => this.edit.fit()}>
71
+ <md-icon title="clear" icon="clear" @click=${() => this.edit.clear()}>delete</md-icon>
75
72
  <md-icon
76
73
  title="save"
77
74
  icon="save"
@@ -1,5 +1,6 @@
1
1
  import { html, TemplateResult } from 'lit'
2
2
  import '@material/web/icon/icon.js'
3
+ import '@operato/i18n'
3
4
  import '../src/ox-contact.js'
4
5
 
5
6
  import { Contact, ContactField } from '../src/ox-contact.js'
@@ -45,6 +46,7 @@ const Template: Story<ArgTypes> = ({ contact }: ArgTypes) => html`
45
46
 
46
47
  <style>
47
48
  body {
49
+ background-color: var(--md-sys-color-surface);
48
50
  }
49
51
  </style>
50
52
 
@@ -1,5 +1,6 @@
1
1
  import { html, TemplateResult } from 'lit'
2
2
  import '@material/web/icon/icon.js'
3
+ import '@operato/i18n'
3
4
  import '../src/ox-pfp.js'
4
5
 
5
6
  import { Profile } from '../src/ox-pfp-view.js'
@@ -1,3 +1,4 @@
1
+ import '@operato/i18n'
1
2
  import '../src/ox-zoomable-image.js'
2
3
 
3
4
  import { html, TemplateResult } from 'lit'
@@ -0,0 +1,8 @@
1
+ {
2
+ "button.cancel": "cancel",
3
+ "button.confirm": "confirm",
4
+ "button.edit": "edit",
5
+ "button.reset": "reset",
6
+ "label.name": "name",
7
+ "label.company": "compnay"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "button.cancel": "キャンセル",
3
+ "button.confirm": "確認",
4
+ "button.edit": "編集",
5
+ "button.reset": "リセット",
6
+ "label.name": "名前",
7
+ "label.company": "会社"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "button.cancel": "취소",
3
+ "button.confirm": "확인",
4
+ "button.edit": "편집",
5
+ "button.reset": "리셋",
6
+ "label.name": "이름",
7
+ "label.company": "회사"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "button.cancel": "batal",
3
+ "button.confirm": "sahkan",
4
+ "button.edit": "edit",
5
+ "button.reset": "tetapkan semula",
6
+ "label.name": "nama",
7
+ "label.company": "syarikat"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "button.cancel": "取消",
3
+ "button.confirm": "确认",
4
+ "button.edit": "编辑",
5
+ "button.reset": "重置",
6
+ "label.name": "名称",
7
+ "label.company": "公司"
8
+ }