@vandeurenglenn/lite-elements 0.3.50 → 0.3.51

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.
Files changed (81) hide show
  1. package/exports/banner.js +36 -36
  2. package/exports/bundle/button.js +6 -1
  3. package/exports/bundle/index.html +590 -590
  4. package/exports/bundle/themes/default/colors.module.css +180 -180
  5. package/exports/bundle/themes/default/missing/motion.css +3 -3
  6. package/exports/bundle/themes/default/missing/shape.css +12 -12
  7. package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
  8. package/exports/bundle/themes/default/missing/theme.light.css +4 -4
  9. package/exports/bundle/themes/default/missing/tokens.css +8 -8
  10. package/exports/bundle/themes/default/theme.css +10 -10
  11. package/exports/bundle/themes/default/theme.dark.css +33 -33
  12. package/exports/bundle/themes/default/theme.light.css +33 -33
  13. package/exports/bundle/themes/default/tokens.css +256 -256
  14. package/exports/bundle/themes/default/typography.module.css +150 -150
  15. package/exports/bundle/upload-image.js +49 -45
  16. package/exports/button.js +148 -143
  17. package/exports/card.js +139 -139
  18. package/exports/code.js +34 -34
  19. package/exports/demo-icons.js +15 -15
  20. package/exports/demo-shell.js +539 -539
  21. package/exports/demo.js +456 -456
  22. package/exports/dialog.js +148 -148
  23. package/exports/divider.js +21 -21
  24. package/exports/drawer-button.js +13 -13
  25. package/exports/drawer-item.js +38 -38
  26. package/exports/drawer-layout.js +95 -95
  27. package/exports/drawer.js +7 -7
  28. package/exports/dropdown-menu.js +58 -58
  29. package/exports/dropdown.js +25 -25
  30. package/exports/elevation.js +50 -50
  31. package/exports/fab.js +145 -145
  32. package/exports/icon-button.js +12 -12
  33. package/exports/icon-set.js +4 -4
  34. package/exports/icon.js +15 -15
  35. package/exports/input.js +5 -5
  36. package/exports/list-item.js +42 -42
  37. package/exports/menu.js +12 -12
  38. package/exports/minute-field.js +4 -4
  39. package/exports/mixins/scroll-mixin.d.ts +1 -1
  40. package/exports/notification.js +34 -34
  41. package/exports/notifications.js +65 -65
  42. package/exports/pages.js +42 -42
  43. package/exports/pane.js +18 -18
  44. package/exports/rail.js +57 -57
  45. package/exports/root.js +7 -7
  46. package/exports/section/section.d.ts +1 -1
  47. package/exports/section.js +10 -10
  48. package/exports/section2.js +24 -24
  49. package/exports/selector.js +30 -30
  50. package/exports/summary-mirror.js +19 -19
  51. package/exports/summary.js +24 -24
  52. package/exports/supporting-pane.js +46 -46
  53. package/exports/tab.js +21 -21
  54. package/exports/tabs.js +50 -50
  55. package/exports/text-field.js +9 -9
  56. package/exports/theme.js +8 -8
  57. package/exports/themes/default/colors.module.css +180 -180
  58. package/exports/themes/default/missing/motion.css +3 -3
  59. package/exports/themes/default/missing/shape.css +12 -12
  60. package/exports/themes/default/missing/theme.dark.css +4 -4
  61. package/exports/themes/default/missing/theme.light.css +4 -4
  62. package/exports/themes/default/missing/tokens.css +8 -8
  63. package/exports/themes/default/theme.css +10 -10
  64. package/exports/themes/default/theme.dark.css +33 -33
  65. package/exports/themes/default/theme.light.css +33 -33
  66. package/exports/themes/default/tokens.css +256 -256
  67. package/exports/themes/default/typography.module.css +150 -150
  68. package/exports/time-picker.js +20 -20
  69. package/exports/toggle-button.js +3 -3
  70. package/exports/toggle.js +4 -4
  71. package/exports/top-app-bar.js +20 -20
  72. package/exports/typography.js +155 -155
  73. package/exports/upload-file.js +8 -8
  74. package/exports/upload-image.js +200 -200
  75. package/package.json +20 -28
  76. package/exports/bundle/simple-hash-router.js +0 -1
  77. package/exports/bundle/types2.js +0 -1
  78. package/exports/router/simple-hash-router.d.ts +0 -34
  79. package/exports/router/types.d.ts +0 -45
  80. package/exports/simple-hash-router.js +0 -111
  81. package/exports/types2.js +0 -1
package/exports/icon.js CHANGED
@@ -66,21 +66,21 @@ let CustomIcon = (() => {
66
66
  }
67
67
  }
68
68
  static styles = [
69
- css `
70
- :host {
71
- --__custom-icon-size: var(--custom-icon-size, 24px);
72
- --custom-icon-color: var(--md-sys-color-on-surface);
73
- display: flex;
74
- height: var(--custom-icon-size, 24px);
75
- width: var(--custom-icon-size, 24px);
76
- }
77
-
78
- svg {
79
- fill: var(--custom-icon-color);
80
- height: inherit;
81
- width: inherit;
82
- pointer-events: none;
83
- }
69
+ css `
70
+ :host {
71
+ --__custom-icon-size: var(--custom-icon-size, 24px);
72
+ --custom-icon-color: var(--md-sys-color-on-surface);
73
+ display: flex;
74
+ height: var(--custom-icon-size, 24px);
75
+ width: var(--custom-icon-size, 24px);
76
+ }
77
+
78
+ svg {
79
+ fill: var(--custom-icon-color);
80
+ height: inherit;
81
+ width: inherit;
82
+ pointer-events: none;
83
+ }
84
84
  `
85
85
  ];
86
86
  connectedCallback() {
package/exports/input.js CHANGED
@@ -16,11 +16,11 @@ let TimePickerInput = (() => {
16
16
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
17
17
  }
18
18
  static styles = [
19
- css `
20
- :host {
21
- display: flex;
22
- flex-direction: column;
23
- }
19
+ css `
20
+ :host {
21
+ display: flex;
22
+ flex-direction: column;
23
+ }
24
24
  `
25
25
  ];
26
26
  render() {
@@ -70,51 +70,51 @@ let CustomListItem = (() => {
70
70
  this.startSlot.addEventListener('slotchange', this.#startSlotChange);
71
71
  }
72
72
  static styles = [
73
- css `
74
- * {
75
- pointer-events: none;
76
- user-select: none;
77
- }
78
- :host {
79
- display: flex;
80
- /* top, right, bottom, left */
81
- padding: 8px 24px 8px 16px;
82
- box-sizing: border-box;
83
- width: 100%;
84
- cursor: pointer;
85
- min-width: 112px;
86
- max-width: 280px;
87
- height: 48px;
88
- pointer-events: auto;
89
- }
90
- :host([type='menu']) {
91
- padding: 0 12px;
92
- height: 48px;
93
- }
94
-
95
- :host([type='menu']),
96
- :host([type='one-line']) {
97
- align-items: center;
98
- }
99
-
100
- :host([has-start]) .body {
101
- padding-left: 12px;
102
- }
103
-
104
- :host([non-interactive]) {
105
- pointer-events: none;
106
- cursor: default;
107
- }
73
+ css `
74
+ * {
75
+ pointer-events: none;
76
+ user-select: none;
77
+ }
78
+ :host {
79
+ display: flex;
80
+ /* top, right, bottom, left */
81
+ padding: 8px 24px 8px 16px;
82
+ box-sizing: border-box;
83
+ width: 100%;
84
+ cursor: pointer;
85
+ min-width: 112px;
86
+ max-width: 280px;
87
+ height: 48px;
88
+ pointer-events: auto;
89
+ }
90
+ :host([type='menu']) {
91
+ padding: 0 12px;
92
+ height: 48px;
93
+ }
94
+
95
+ :host([type='menu']),
96
+ :host([type='one-line']) {
97
+ align-items: center;
98
+ }
99
+
100
+ :host([has-start]) .body {
101
+ padding-left: 12px;
102
+ }
103
+
104
+ :host([non-interactive]) {
105
+ pointer-events: none;
106
+ cursor: default;
107
+ }
108
108
  `
109
109
  ];
110
110
  render() {
111
- return html `
112
- <slot name="start"></slot>
113
- <span class="body">
114
- <slot></slot>
115
- </span>
116
- <flex-it></flex-it>
117
- <slot name="end"></slot>
111
+ return html `
112
+ <slot name="start"></slot>
113
+ <span class="body">
114
+ <slot></slot>
115
+ </span>
116
+ <flex-it></flex-it>
117
+ <slot name="end"></slot>
118
118
  `;
119
119
  }
120
120
  static {
package/exports/menu.js CHANGED
@@ -41,21 +41,21 @@ let CustomMenu = (() => {
41
41
  this.selector.removeEventListener('selected', this.#onselected);
42
42
  }
43
43
  static styles = [
44
- css `
45
- :host {
46
- display: flex;
47
- flex-direction: column;
48
- width: 100%;
49
- min-width: 120px;
50
- max-width: 280px;
51
- }
44
+ css `
45
+ :host {
46
+ display: flex;
47
+ flex-direction: column;
48
+ width: 100%;
49
+ min-width: 120px;
50
+ max-width: 280px;
51
+ }
52
52
  `
53
53
  ];
54
54
  render() {
55
- return html `
56
- <custom-selector>
57
- <slot></slot>
58
- </custom-selector>
55
+ return html `
56
+ <custom-selector>
57
+ <slot></slot>
58
+ </custom-selector>
59
59
  `;
60
60
  }
61
61
  static {
@@ -17,10 +17,10 @@ let TimePickerMinuteField = (() => {
17
17
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
18
18
  }
19
19
  static styles = [
20
- css `
21
- :host {
22
- display: block;
23
- }
20
+ css `
21
+ :host {
22
+ display: block;
23
+ }
24
24
  `
25
25
  ];
26
26
  render() {
@@ -2,7 +2,7 @@ export declare const ScrollMixin: (Base: any) => {
2
2
  new (): {
3
3
  [x: string]: any;
4
4
  scrolling: any;
5
- scrollElement: any;
5
+ scrollElement: /*elided*/ any;
6
6
  "__#2@#onscroll": () => void;
7
7
  connectedCallback(options?: {
8
8
  scrollElement: undefined | string;
@@ -56,42 +56,42 @@ let CustomNotification = (() => {
56
56
  #onclick = (__runInitializers(this, _type_extraInitializers), () => {
57
57
  this.parentElement.removeChild(this);
58
58
  });
59
- static styles = css `
60
- :host {
61
- display: flex;
62
- align-items: flex-start;
63
- font-size: 13px;
64
- border: 1px solid;
65
- border-radius: 12px;
66
- padding: 6px 12px;
67
- box-sizing: border-box;
68
- margin-bottom: 12px;
69
- background: var(--md-sys-color-surface-variant);
70
- }
71
-
72
- flex-row {
73
- height: 24px;
74
- width: 100%;
75
- box-sizing: border-box;
76
- align-items: center;
77
- }
78
-
79
- strong {
80
- font-size: 14px;
81
- }
59
+ static styles = css `
60
+ :host {
61
+ display: flex;
62
+ align-items: flex-start;
63
+ font-size: 13px;
64
+ border: 1px solid;
65
+ border-radius: 12px;
66
+ padding: 6px 12px;
67
+ box-sizing: border-box;
68
+ margin-bottom: 12px;
69
+ background: var(--md-sys-color-surface-variant);
70
+ }
71
+
72
+ flex-row {
73
+ height: 24px;
74
+ width: 100%;
75
+ box-sizing: border-box;
76
+ align-items: center;
77
+ }
78
+
79
+ strong {
80
+ font-size: 14px;
81
+ }
82
82
  `;
83
83
  render() {
84
- return html `
85
- ${this.image ? html `<img src=${this.image} />` : ''}
86
- <flex-column>
87
- <flex-row>
88
- <strong>${this.title}</strong>
89
- <flex-it></flex-it>
90
- <custom-icon icon="close" @click=${this.#onclick}></custom-icon>
91
- </flex-row>
92
-
93
- <p>${this.message}</p>
94
- </flex-column>
84
+ return html `
85
+ ${this.image ? html `<img src=${this.image} />` : ''}
86
+ <flex-column>
87
+ <flex-row>
88
+ <strong>${this.title}</strong>
89
+ <flex-it></flex-it>
90
+ <custom-icon icon="close" @click=${this.#onclick}></custom-icon>
91
+ </flex-row>
92
+
93
+ <p>${this.message}</p>
94
+ </flex-column>
95
95
  `;
96
96
  }
97
97
  static {
@@ -63,78 +63,78 @@ let CustomNotifications = (() => {
63
63
  this.open = false;
64
64
  }
65
65
  static styles = [
66
- css `
67
- :host {
68
- display: flex;
69
- flex-direction: column;
70
- pointer-events: auto;
71
- z-index: 10001;
72
- position: absolute;
73
- right: 0;
74
- top: 0;
75
- overflow: hidden;
76
- width: 100%;
77
- max-width: 320px;
78
- height: auto;
79
- box-sizing: border-box;
80
- color: #eee;
81
- pointer-events: none;
82
- height: 100%;
83
- }
84
-
85
- :host([open]) {
86
- background: var(--md-sys-color-surface-container-high);
87
- }
88
-
89
- .recents {
90
- display: block;
91
- position: relative;
92
- top: 12px;
93
- right: 12px;
94
- width: 100%;
95
- pointer-events: none;
96
-
97
- box-sizing: border-box;
98
- padding: 12px;
99
- }
100
-
101
- .list {
102
- padding: 24px;
103
- height: 100%;
104
- }
105
-
106
- custom-icon {
107
- pointer-events: auto;
108
- }
66
+ css `
67
+ :host {
68
+ display: flex;
69
+ flex-direction: column;
70
+ pointer-events: auto;
71
+ z-index: 10001;
72
+ position: absolute;
73
+ right: 0;
74
+ top: 0;
75
+ overflow: hidden;
76
+ width: 100%;
77
+ max-width: 320px;
78
+ height: auto;
79
+ box-sizing: border-box;
80
+ color: #eee;
81
+ pointer-events: none;
82
+ height: 100%;
83
+ }
84
+
85
+ :host([open]) {
86
+ background: var(--md-sys-color-surface-container-high);
87
+ }
88
+
89
+ .recents {
90
+ display: block;
91
+ position: relative;
92
+ top: 12px;
93
+ right: 12px;
94
+ width: 100%;
95
+ pointer-events: none;
96
+
97
+ box-sizing: border-box;
98
+ padding: 12px;
99
+ }
100
+
101
+ .list {
102
+ padding: 24px;
103
+ height: 100%;
104
+ }
105
+
106
+ custom-icon {
107
+ pointer-events: auto;
108
+ }
109
109
  `
110
110
  ];
111
111
  render() {
112
- return html `
113
- <flex-row style="margin-top: 12px;margin-right: 12px;">
114
- <flex-it></flex-it>
115
- <custom-icon
116
- icon="notifications"
112
+ return html `
113
+ <flex-row style="margin-top: 12px;margin-right: 12px;">
114
+ <flex-it></flex-it>
115
+ <custom-icon
116
+ icon="notifications"
117
117
  @click=${() => {
118
118
  if (this._list.childElementCount === 0)
119
119
  return;
120
120
  this.open = !this.open;
121
- }}
122
- ></custom-icon>
123
- </flex-row>
124
-
125
- <span class="recents">
126
- <slot></slot>
127
- </span>
128
-
129
- <custom-pane ?open=${this.open} right top>
130
- <span slot="header"></span>
131
- <flex-column class="list" slot="content"> </flex-column>
132
-
133
- <flex-row slot="footer" width="100%">
134
- <flex-it></flex-it>
135
- <custom-icon style="margin-right: 24px;" icon="clear-all" @click="${this._onclick}"></custom-icon>
136
- </flex-row>
137
- </custom-pane>
121
+ }}
122
+ ></custom-icon>
123
+ </flex-row>
124
+
125
+ <span class="recents">
126
+ <slot></slot>
127
+ </span>
128
+
129
+ <custom-pane ?open=${this.open} right top>
130
+ <span slot="header"></span>
131
+ <flex-column class="list" slot="content"> </flex-column>
132
+
133
+ <flex-row slot="footer" width="100%">
134
+ <flex-it></flex-it>
135
+ <custom-icon style="margin-right: 24px;" icon="clear-all" @click="${this._onclick}"></custom-icon>
136
+ </flex-row>
137
+ </custom-pane>
138
138
  `;
139
139
  }
140
140
  constructor() {
package/exports/pages.js CHANGED
@@ -34,51 +34,51 @@ class CustomPages extends SelectBase {
34
34
  }
35
35
  }
36
36
  static styles = [
37
- css `
38
- :host {
39
- flex: 1;
40
- position: relative;
41
- --primary-background-color: #eceff1;
42
- overflow: hidden;
43
- height: 100%;
44
- width: 100%;
45
- }
46
- ::slotted(*) {
47
- display: flex;
48
- position: absolute;
49
- opacity: 0;
50
- pointer-events: none;
51
- top: 0;
52
- left: 0;
53
- right: 0;
54
- bottom: 0;
55
- transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
56
- var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
57
- /*transform: scale(0.1);*/
58
- transform-origin: left;
59
- }
60
- ::slotted(.animate-up) {
61
- transform: translateY(-120%);
62
- }
63
- ::slotted(.animate-down) {
64
- transform: translateY(120%);
65
- }
66
- ::slotted(.custom-selected) {
67
- opacity: 1;
68
- pointer-events: auto;
69
- transform: translateY(0);
70
- transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms width,
71
- var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
72
- max-height: 100%;
73
- max-width: 100%;
74
- }
37
+ css `
38
+ :host {
39
+ flex: 1;
40
+ position: relative;
41
+ --primary-background-color: #eceff1;
42
+ overflow: hidden;
43
+ height: 100%;
44
+ width: 100%;
45
+ }
46
+ ::slotted(*) {
47
+ display: flex;
48
+ position: absolute;
49
+ opacity: 0;
50
+ pointer-events: none;
51
+ top: 0;
52
+ left: 0;
53
+ right: 0;
54
+ bottom: 0;
55
+ transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
56
+ var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
57
+ /*transform: scale(0.1);*/
58
+ transform-origin: left;
59
+ }
60
+ ::slotted(.animate-up) {
61
+ transform: translateY(-120%);
62
+ }
63
+ ::slotted(.animate-down) {
64
+ transform: translateY(120%);
65
+ }
66
+ ::slotted(.custom-selected) {
67
+ opacity: 1;
68
+ pointer-events: auto;
69
+ transform: translateY(0);
70
+ transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms width,
71
+ var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
72
+ max-height: 100%;
73
+ max-width: 100%;
74
+ }
75
75
  `
76
76
  ];
77
77
  render() {
78
- return html `
79
- <div class="wrapper">
80
- <slot></slot>
81
- </div>
78
+ return html `
79
+ <div class="wrapper">
80
+ <slot></slot>
81
+ </div>
82
82
  `;
83
83
  }
84
84
  }
package/exports/pane.js CHANGED
@@ -76,24 +76,24 @@ let CustomPane = (() => {
76
76
  }
77
77
  static styles = [style];
78
78
  render() {
79
- return html `
80
- <custom-elevation></custom-elevation>
81
- <aside>
82
- <slot name="header">
83
- <flex-row center>
84
- <slot name="headline"></slot>
85
- <flex-it></flex-it>
86
- <custom-icon-button @click=${(e) => this.closePane(e)} .id=${this.id} icon="menu_open">
87
- </custom-icon-button>
88
- </flex-row>
89
- </slot>
90
- <flex-column class="content">
91
- <slot name="content"></slot>
92
- </flex-column>
93
- <flex-row class="footer">
94
- <slot name="footer"></slot>
95
- </flex-row>
96
- </aside>
79
+ return html `
80
+ <custom-elevation></custom-elevation>
81
+ <aside>
82
+ <slot name="header">
83
+ <flex-row center>
84
+ <slot name="headline"></slot>
85
+ <flex-it></flex-it>
86
+ <custom-icon-button @click=${(e) => this.closePane(e)} .id=${this.id} icon="menu_open">
87
+ </custom-icon-button>
88
+ </flex-row>
89
+ </slot>
90
+ <flex-column class="content">
91
+ <slot name="content"></slot>
92
+ </flex-column>
93
+ <flex-row class="footer">
94
+ <slot name="footer"></slot>
95
+ </flex-row>
96
+ </aside>
97
97
  `;
98
98
  }
99
99
  constructor() {