@things-factory/component-ui 7.0.1-alpha.0 → 7.0.1-alpha.106

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,4 +1,5 @@
1
- import '@material/mwc-button'
1
+ import '@material/web/button/text-button.js'
2
+
2
3
  import { css, html, LitElement } from 'lit'
3
4
 
4
5
  class CalendarGridOverlay extends LitElement {
@@ -27,7 +28,7 @@ class CalendarGridOverlay extends LitElement {
27
28
  display: flex;
28
29
  flex-direction: column;
29
30
  margin: 20%;
30
- background-color: white;
31
+ background-color: var(--md-sys-color-surface);
31
32
  padding: 10px;
32
33
  border-radius: 10px;
33
34
  }
@@ -40,10 +41,12 @@ class CalendarGridOverlay extends LitElement {
40
41
  border-bottom: 1px solid #f5f5f5;
41
42
  padding: 10px;
42
43
  }
43
- #button-container {
44
+
45
+ .button-container {
44
46
  display: grid;
45
47
  }
46
- #button-container #close-button {
48
+
49
+ #close-button {
47
50
  margin-left: auto;
48
51
  }
49
52
  `
@@ -67,29 +70,28 @@ class CalendarGridOverlay extends LitElement {
67
70
  return html`
68
71
  <div id="modal" @click="${this.close}">
69
72
  <div id="container">
70
- <div id="button-container">
71
- <mwc-button id="close-button" @click=${this.close}>X</mwc-button>
73
+ <div class="button-container">
74
+ <md-text-button id="close-button" @click=${this.close}>X</md-text-button>
72
75
  </div>
73
76
  <ul>
74
77
  ${(this.tasks || []).map(
75
- task =>
76
- html`
77
- <li
78
- @click="${event => {
79
- this.dispatchEvent(
80
- new CustomEvent('clickTask', {
81
- detail: {
82
- task
83
- }
84
- })
85
- )
78
+ task => html`
79
+ <li
80
+ @click="${event => {
81
+ this.dispatchEvent(
82
+ new CustomEvent('clickTask', {
83
+ detail: {
84
+ task
85
+ }
86
+ })
87
+ )
86
88
 
87
- event.stopPropagation()
88
- }}"
89
- >
90
- ${task.name}
91
- </li>
92
- `
89
+ event.stopPropagation()
90
+ }}"
91
+ >
92
+ ${task.name}
93
+ </li>
94
+ `
93
95
  )}
94
96
  </ul>
95
97
  </div>
@@ -31,7 +31,7 @@ class PopUp extends LitElement {
31
31
  flex-direction: column;
32
32
  flex: 1;
33
33
  border-radius: 5px;
34
- background-color: #fff;
34
+ background-color: var(--md-sys-color-surface);
35
35
  }
36
36
  #content {
37
37
  display: flex;
@@ -1,9 +1,7 @@
1
- import { ScrollbarStyles } from '@things-factory/styles'
1
+ import { ScrollbarStyles } from '@operato/styles'
2
2
  import { css, html, LitElement } from 'lit'
3
3
  import '@things-factory/i18n-base'
4
4
  import './quick-find-tabs'
5
-
6
- import '@material/mwc-icon'
7
5
  class QuickFindContent extends LitElement {
8
6
  static get styles() {
9
7
  return [
@@ -20,7 +18,7 @@ class QuickFindContent extends LitElement {
20
18
  flex: 1;
21
19
  display: flex;
22
20
  flex-direction: column;
23
- background-color: var(--theme-white-color);
21
+ background-color: var(--md-sys-color-surface);
24
22
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
25
23
  border: var(--border-dark-color);
26
24
  border-width: 0 1px 1px 1px;
@@ -1,10 +1,9 @@
1
- import { ScrollbarStyles } from '@things-factory/styles'
1
+ import { ScrollbarStyles } from '@operato/styles'
2
2
  import { css, html, LitElement } from 'lit'
3
3
  import '@things-factory/i18n-base'
4
4
  import './quick-find-tabs'
5
5
  import './quick-find-scroll'
6
6
 
7
- import '@material/mwc-icon'
8
7
  class QuickFindList extends LitElement {
9
8
  static get styles() {
10
9
  return [
@@ -22,7 +21,7 @@ class QuickFindList extends LitElement {
22
21
 
23
22
  display: flex;
24
23
  flex-direction: column;
25
- background-color: var(--theme-white-color);
24
+ background-color: var(--md-sys-color-surface);
26
25
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
27
26
  border: var(--border-dark-color);
28
27
  border-width: 0 1px 1px 1px;
@@ -38,7 +37,7 @@ class QuickFindList extends LitElement {
38
37
  li {
39
38
  border-bottom: var(--border-dark-color);
40
39
  margin-bottom: -1px;
41
- color: var(--secondary-color);
40
+ color: var(--md-sys-color-secondary);
42
41
  }
43
42
  li:nth-child(even) {
44
43
  background-color: rgba(0, 0, 0, 0.025);
@@ -57,7 +56,7 @@ class QuickFindList extends LitElement {
57
56
  border-bottom: 3px solid rgba(0, 0, 0, 0.1);
58
57
  }
59
58
  [opened] .header {
60
- background-color: var(--primary-color);
59
+ background-color: var(--md-sys-color-primary);
61
60
  box-shadow: var(--box-shadow);
62
61
  color: var(--theme-white-color);
63
62
  }
@@ -71,15 +70,15 @@ class QuickFindList extends LitElement {
71
70
  height: 0px;
72
71
  border-left: 7px solid transparent;
73
72
  border-right: 7px solid transparent;
74
- border-top: 7px solid var(--primary-color);
73
+ border-top: 7px solid var(--md-sys-color-primary);
75
74
  }
76
75
  li span {
77
76
  display: block;
78
77
  opacity: 0.9;
79
78
  font: normal 14px/18px var(--theme-font);
80
79
  }
81
- .header mwc-icon {
82
- --mdc-icon-size: var(--fontsize-default);
80
+ .header md-icon {
81
+ --md-icon-size: var(--fontsize-default);
83
82
  margin-right: var(--padding-narrow);
84
83
  }
85
84
  @media screen and (max-width: 480px) {
@@ -1,20 +1,20 @@
1
- import { html, css, LitElement } from 'lit'
1
+ import '@material/web/icon/icon.js'
2
2
 
3
- import '@material/mwc-icon'
3
+ import { html, css, LitElement } from 'lit'
4
4
 
5
5
  class QuickFindScroll extends LitElement {
6
6
  static get styles() {
7
7
  return [
8
8
  css`
9
9
  .nav-bar {
10
- background-color: var(--theme-white-color);
11
- border: 1px solid var(--primary-color);
10
+ background-color: var(--md-sys-color-surface);
11
+ border: 1px solid var(--md-sys-color-primary);
12
12
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
13
13
  margin: 0 0 var(--margin-wide) 0;
14
14
  padding: var(--padding-narrow);
15
15
  transition: opacity ease-in-out 0.3s;
16
16
  opacity: 100%;
17
- color: var(--secondary-color);
17
+ color: var(--md-sys-color-secondary);
18
18
  font-size: var(--fontsize-default);
19
19
  }
20
20
  .nav-bar[scrolling] {
@@ -24,8 +24,8 @@ class QuickFindScroll extends LitElement {
24
24
  .nav-bar * {
25
25
  vertical-align: middle;
26
26
  }
27
- mwc-icon {
28
- --mdc-icon-size: 14px;
27
+ md-icon {
28
+ --md-icon-size: 14px;
29
29
  padding-left: var(--padding-narrow);
30
30
  position: relative;
31
31
  margin-top: -2px;
@@ -35,7 +35,7 @@ class QuickFindScroll extends LitElement {
35
35
  border-width: 0 1px;
36
36
  padding: 0 var(--padding-default) 0 var(--padding-narrow);
37
37
  opacity: 0.8;
38
- color: var(--secondary-color);
38
+ color: var(--md-sys-color-secondary);
39
39
  font-size: var(--fontsize-small);
40
40
  }
41
41
  .nav-bar span[activate] {
@@ -100,7 +100,7 @@ class QuickFindScroll extends LitElement {
100
100
  return html`
101
101
  ${scrollable
102
102
  ? html`<div class="nav-bar" ?scrolling=${scrolling}>
103
- <mwc-icon>anchor</mwc-icon> <label>Quick Find :</label>
103
+ <md-icon>anchor</md-icon> <label>Quick Find :</label>
104
104
  ${this.indexes.map(idx => {
105
105
  const isActiveIndex = activeIndexes.indexOf(idx) >= 0
106
106
  return html` <span
@@ -1,5 +1,5 @@
1
1
  import { css, html, LitElement } from 'lit'
2
- import { i18next, localize } from '@things-factory/i18n-base'
2
+ import { i18next, localize } from '@operato/i18n'
3
3
 
4
4
  class QuickFindTabs extends localize(i18next)(LitElement) {
5
5
  static get styles() {
@@ -21,7 +21,7 @@ class QuickFindTabs extends localize(i18next)(LitElement) {
21
21
  white-space: nowrap;
22
22
  }
23
23
  .tab[activate] {
24
- background-color: var(--primary-color);
24
+ background-color: var(--md-sys-color-primary);
25
25
  box-shadow: 2px -2px 2px 0px rgba(0, 0, 0, 0.15);
26
26
  opacity: 1;
27
27
  font-weight: bold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/component-ui",
3
- "version": "7.0.1-alpha.0",
3
+ "version": "7.0.1-alpha.106",
4
4
  "browser": "client/index.js",
5
5
  "author": "",
6
6
  "description": "Consist of components such as calendar, infinite scroll, popup and selector",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "scripts": {},
18
18
  "dependencies": {
19
- "@things-factory/styles": "^7.0.1-alpha.0"
19
+ "@things-factory/styles": "^7.0.1-alpha.71"
20
20
  },
21
- "gitHead": "d18cdb7648bd2003f11278ec7bc8df74edbd31fc"
21
+ "gitHead": "92fee878d797b5bd154cd24b68cc6dbb09b1915c"
22
22
  }