@vandeurenglenn/lite-elements 0.3.49 → 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 (142) hide show
  1. package/exports/banner.js +37 -37
  2. package/exports/bar/top-app-bar.d.ts +1 -1
  3. package/exports/bundle/banner.js +2 -2
  4. package/exports/bundle/button.js +6 -1
  5. package/exports/bundle/card.js +1 -1
  6. package/exports/bundle/code.js +1 -1
  7. package/exports/bundle/{column-B0bUzxkF.js → column-dsIMZ5XT.js} +1 -1
  8. package/exports/bundle/demo-elements.js +1 -1
  9. package/exports/bundle/demo-icons.js +1 -1
  10. package/exports/bundle/demo-shell.js +1 -1
  11. package/exports/bundle/demo.js +1 -1
  12. package/exports/bundle/dialog.js +1 -1
  13. package/exports/bundle/divider.js +1 -1
  14. package/exports/bundle/drawer-button.js +1 -1
  15. package/exports/bundle/drawer-item.js +1 -1
  16. package/exports/bundle/drawer-layout.js +1 -1
  17. package/exports/bundle/drawer.js +2 -2
  18. package/exports/bundle/dropdown-menu.js +1 -1
  19. package/exports/bundle/dropdown.js +1 -1
  20. package/exports/bundle/elements.js +1 -1
  21. package/exports/bundle/elevation.js +1 -1
  22. package/exports/bundle/fab.js +2 -2
  23. package/exports/bundle/icon-button.js +1 -1
  24. package/exports/bundle/icon-set.js +1 -1
  25. package/exports/bundle/icon.js +1 -1
  26. package/exports/bundle/index.html +590 -590
  27. package/exports/bundle/input.js +2 -2
  28. package/exports/bundle/list-item.js +1 -1
  29. package/exports/bundle/menu.js +1 -1
  30. package/exports/bundle/minute-field.js +1 -1
  31. package/exports/bundle/notification.js +1 -1
  32. package/exports/bundle/notifications.js +1 -1
  33. package/exports/bundle/pages.js +1 -1
  34. package/exports/bundle/pane.js +3 -3
  35. package/exports/bundle/property-C1gA9hig.js +23 -0
  36. package/exports/bundle/property-DL093_VN.js +11 -0
  37. package/exports/bundle/rail.js +1 -1
  38. package/exports/bundle/root.js +2 -2
  39. package/exports/bundle/row-CW5FbTZ_.js +28 -0
  40. package/exports/bundle/section.js +1 -1
  41. package/exports/bundle/section2.js +1 -1
  42. package/exports/bundle/select-mixin.js +1 -1
  43. package/exports/bundle/selector-mixin.js +1 -1
  44. package/exports/bundle/selector.js +1 -1
  45. package/exports/bundle/summary-mirror.js +1 -1
  46. package/exports/bundle/summary.js +2 -2
  47. package/exports/bundle/supporting-pane.js +1 -1
  48. package/exports/bundle/tab.js +2 -2
  49. package/exports/bundle/tabs.js +1 -1
  50. package/exports/bundle/text-field.js +1 -1
  51. package/exports/bundle/theme.js +1 -1
  52. package/exports/bundle/themes/default/colors.module.css +180 -180
  53. package/exports/bundle/themes/default/missing/motion.css +3 -3
  54. package/exports/bundle/themes/default/missing/shape.css +12 -12
  55. package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
  56. package/exports/bundle/themes/default/missing/theme.light.css +4 -4
  57. package/exports/bundle/themes/default/missing/tokens.css +8 -8
  58. package/exports/bundle/themes/default/theme.css +10 -10
  59. package/exports/bundle/themes/default/theme.dark.css +33 -33
  60. package/exports/bundle/themes/default/theme.light.css +33 -33
  61. package/exports/bundle/themes/default/tokens.css +256 -256
  62. package/exports/bundle/themes/default/typography.module.css +150 -150
  63. package/exports/bundle/time-picker.js +1 -1
  64. package/exports/bundle/toggle-button.js +1 -1
  65. package/exports/bundle/toggle.js +1 -1
  66. package/exports/bundle/top-app-bar.js +63 -2
  67. package/exports/bundle/typography.js +1 -1
  68. package/exports/bundle/upload-file.js +1 -1
  69. package/exports/bundle/upload-image.js +62 -55
  70. package/exports/button.js +149 -144
  71. package/exports/card.js +140 -140
  72. package/exports/code.js +35 -35
  73. package/exports/demo-elements.js +1 -1
  74. package/exports/demo-icons.js +16 -16
  75. package/exports/demo-shell.js +540 -540
  76. package/exports/demo.js +457 -457
  77. package/exports/dialog.js +149 -149
  78. package/exports/divider.js +22 -22
  79. package/exports/drawer-button.js +14 -14
  80. package/exports/drawer-item.js +39 -39
  81. package/exports/drawer-layout.js +96 -96
  82. package/exports/drawer.js +8 -8
  83. package/exports/dropdown-menu.js +59 -59
  84. package/exports/dropdown.js +26 -26
  85. package/exports/elements.js +1 -1
  86. package/exports/elevation.js +51 -51
  87. package/exports/fab.js +146 -146
  88. package/exports/icon-button.js +13 -13
  89. package/exports/icon-set.js +5 -5
  90. package/exports/icon.js +16 -16
  91. package/exports/input.js +6 -6
  92. package/exports/list-item.js +43 -43
  93. package/exports/menu.js +13 -13
  94. package/exports/minute-field.js +5 -5
  95. package/exports/mixins/scroll-mixin.d.ts +1 -1
  96. package/exports/notification.js +35 -35
  97. package/exports/notifications.js +66 -66
  98. package/exports/pages.js +42 -42
  99. package/exports/pane.js +19 -19
  100. package/exports/rail.js +58 -58
  101. package/exports/root.js +8 -8
  102. package/exports/section/section.d.ts +2 -2
  103. package/exports/section.js +11 -11
  104. package/exports/section2.js +25 -25
  105. package/exports/selector.js +31 -31
  106. package/exports/summary-mirror.js +20 -20
  107. package/exports/summary.js +25 -25
  108. package/exports/supporting-pane.js +47 -47
  109. package/exports/tab.js +22 -22
  110. package/exports/tabs.js +51 -51
  111. package/exports/text-field.js +10 -10
  112. package/exports/theme.js +9 -9
  113. package/exports/themes/default/colors.module.css +180 -180
  114. package/exports/themes/default/missing/motion.css +3 -3
  115. package/exports/themes/default/missing/shape.css +12 -12
  116. package/exports/themes/default/missing/theme.dark.css +4 -4
  117. package/exports/themes/default/missing/theme.light.css +4 -4
  118. package/exports/themes/default/missing/tokens.css +8 -8
  119. package/exports/themes/default/theme.css +10 -10
  120. package/exports/themes/default/theme.dark.css +33 -33
  121. package/exports/themes/default/theme.light.css +33 -33
  122. package/exports/themes/default/tokens.css +256 -256
  123. package/exports/themes/default/typography.module.css +150 -150
  124. package/exports/time-picker.js +21 -21
  125. package/exports/toggle-button.js +4 -4
  126. package/exports/toggle.js +5 -5
  127. package/exports/top-app-bar.js +21 -21
  128. package/exports/{tslib.es6-CFl_-KPR.js → tslib.es6-Cg9lAhfj.js} +1 -1
  129. package/exports/typography.js +156 -156
  130. package/exports/upload-file.js +9 -9
  131. package/exports/upload-image.js +201 -201
  132. package/package.json +20 -36
  133. package/exports/bundle/property-BYA8Sw2t.js +0 -11
  134. package/exports/bundle/property-C4lhirVQ.js +0 -23
  135. package/exports/bundle/row-DYDgQVDj.js +0 -28
  136. package/exports/bundle/simple-hash-router.js +0 -1
  137. package/exports/bundle/types2.js +0 -1
  138. package/exports/mixins/file-reader-mixin.d.ts +0 -341
  139. package/exports/router/types.d.ts +0 -45
  140. package/exports/simple-hash-router.js +0 -111
  141. package/exports/types2.js +0 -1
  142. package/exports/upload/upload-image.d.ts +0 -381
package/exports/fab.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
  import './elevation.js';
4
4
 
@@ -25,154 +25,154 @@ let CustomButton = (() => {
25
25
  get type() { return this.#type_accessor_storage; }
26
26
  set type(value) { this.#type_accessor_storage = value; }
27
27
  static styles = [
28
- css `
29
- :host {
30
- color: var(--custom-fab-color, --md-sys-color-on-background);
31
- display: flex;
32
-
33
- height: 56px;
34
- width: 56px;
35
- border-radius: var(--md-sys-shape-corner-extra-large);
36
- position: relative;
37
- pointer-events: auto;
38
- cursor: pointer;
39
- box-sizing: border-box;
40
- padding: 16px;
41
-
42
- --elevation-level: 0;
43
- }
44
-
45
- button {
46
- box-sizing: border-box;
47
- border: none;
48
- background: transparent;
49
- color: inherit;
50
- align-items: center;
51
- justify-content: center;
52
- user-select: none;
53
- outline: none;
54
- cursor: pointer;
55
- border-radius: inherit;
56
- padding: none;
57
- width: inherit;
58
- height: inherit;
59
- display: flex;
60
- pointer-events: none;
61
- }
62
-
63
- ::slotted(*) {
64
- font-family: var(--md-sys-typescale-label-large-font-family-name);
65
- font-style: var(--md-sys-typescale-label-large-font-family-style);
66
- font-weight: var(--md-sys-typescale-label-large-font-weight);
67
- font-size: var(--md-sys-typescale-label-large-font-size);
68
- letter-spacing: var(--md-sys-typescale-label-large-tracking);
69
- line-height: var(--md-sys-typescale-label-large-height);
70
- text-transform: var(--md-sys-typescale-label-large-text-transform);
71
- text-decoration: var(--md-sys-typescale-label-large-text-decoration);
72
- }
73
-
74
- :host([type='filled']),
75
- :host([type='filled']) ::slotted(*) {
76
- color: var(--md-sys-color-on-primary);
77
- fill: var(--md-sys-color-on-primary);
78
- background: var(--md-sys-color-primary);
79
- }
80
-
81
- :host([type='outlined']),
82
- :host([type='outlined']) ::slotted(*) {
83
- color: var(--md-sys-color-on-surface);
84
- fill: var(--md-sys-color-on-surface);
85
- background: var(--md-sys-color-surface);
86
- border: solid 1px;
87
- border-color: var(--md-sys-color-outline);
88
- }
89
-
90
- :host([type='elevated']),
91
- :host([type='elevated']) ::slotted(*) {
92
- color: var(--md-sys-color-primary);
93
- fill: var(--md-sys-color-primary);
94
- background: var(--md-sys-color-surface-container-low);
95
- }
96
-
97
- :host([type='tertiary']),
98
- :host([type='tertiary']) ::slotted(*) {
99
- background: var(--md-sys-color-tertiary);
100
- color: var(--md-sys-color-on-tertiary);
101
- fill: var(--md-sys-color-on-tertiary);
102
- }
103
-
104
- :host([type='tonal']),
105
- :host([type='tonal']) ::slotted(*) {
106
- background: var(--md-sys-color-secondary-container);
107
- color: var(--md-sys-color-on-seconday-container);
108
- fill: var(--md-sys-color-on-seconday-container);
109
- }
110
-
111
- custom-elevation {
112
- --md-elevation-level: var(--elevation-level);
113
- }
114
-
115
- custom-elevation {
116
- --elevation-level: 1;
117
- }
118
-
119
- :host([type='normal']) button {
120
- align-items: center;
121
- justify-content: center;
122
- }
123
-
124
- :host([type='extended']) button {
125
- align-items: center;
126
- }
127
-
128
- :host([type='extended']) {
129
- min-width: 80px;
130
- width: fit-content;
131
- }
132
-
133
- :not([name='icon']) ::slotted(*) {
134
- margin-left: 24px;
135
- margin-right: 24px;
136
- }
137
-
138
- :host([has-icon][has-label]) .label {
139
- padding-left: 8px;
140
- padding-right: 24px;
141
- }
142
- :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
143
- padding-left: 16px;
144
- }
145
-
146
- :host([disabled]) .label,
147
- :host([disabled]) slot[name='icon']::slotted(*) {
148
- opacity: 0.38;
149
- }
150
-
151
- ::slotted(*) {
152
- pointer-events: none;
153
- }
154
-
155
- :host(:focus),
156
- :host(:hover) {
157
- --elevation-level: 2;
158
- }
159
-
160
- :host(:active) {
161
- --elevation-level: 0;
162
- }
163
-
164
- button * {
165
- pointer-events: none;
166
- }
28
+ css `
29
+ :host {
30
+ color: var(--custom-fab-color, --md-sys-color-on-background);
31
+ display: flex;
32
+
33
+ height: 56px;
34
+ width: 56px;
35
+ border-radius: var(--md-sys-shape-corner-extra-large);
36
+ position: relative;
37
+ pointer-events: auto;
38
+ cursor: pointer;
39
+ box-sizing: border-box;
40
+ padding: 16px;
41
+
42
+ --elevation-level: 0;
43
+ }
44
+
45
+ button {
46
+ box-sizing: border-box;
47
+ border: none;
48
+ background: transparent;
49
+ color: inherit;
50
+ align-items: center;
51
+ justify-content: center;
52
+ user-select: none;
53
+ outline: none;
54
+ cursor: pointer;
55
+ border-radius: inherit;
56
+ padding: none;
57
+ width: inherit;
58
+ height: inherit;
59
+ display: flex;
60
+ pointer-events: none;
61
+ }
62
+
63
+ ::slotted(*) {
64
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
65
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
66
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
67
+ font-size: var(--md-sys-typescale-label-large-font-size);
68
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
69
+ line-height: var(--md-sys-typescale-label-large-height);
70
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
71
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
72
+ }
73
+
74
+ :host([type='filled']),
75
+ :host([type='filled']) ::slotted(*) {
76
+ color: var(--md-sys-color-on-primary);
77
+ fill: var(--md-sys-color-on-primary);
78
+ background: var(--md-sys-color-primary);
79
+ }
80
+
81
+ :host([type='outlined']),
82
+ :host([type='outlined']) ::slotted(*) {
83
+ color: var(--md-sys-color-on-surface);
84
+ fill: var(--md-sys-color-on-surface);
85
+ background: var(--md-sys-color-surface);
86
+ border: solid 1px;
87
+ border-color: var(--md-sys-color-outline);
88
+ }
89
+
90
+ :host([type='elevated']),
91
+ :host([type='elevated']) ::slotted(*) {
92
+ color: var(--md-sys-color-primary);
93
+ fill: var(--md-sys-color-primary);
94
+ background: var(--md-sys-color-surface-container-low);
95
+ }
96
+
97
+ :host([type='tertiary']),
98
+ :host([type='tertiary']) ::slotted(*) {
99
+ background: var(--md-sys-color-tertiary);
100
+ color: var(--md-sys-color-on-tertiary);
101
+ fill: var(--md-sys-color-on-tertiary);
102
+ }
103
+
104
+ :host([type='tonal']),
105
+ :host([type='tonal']) ::slotted(*) {
106
+ background: var(--md-sys-color-secondary-container);
107
+ color: var(--md-sys-color-on-seconday-container);
108
+ fill: var(--md-sys-color-on-seconday-container);
109
+ }
110
+
111
+ custom-elevation {
112
+ --md-elevation-level: var(--elevation-level);
113
+ }
114
+
115
+ custom-elevation {
116
+ --elevation-level: 1;
117
+ }
118
+
119
+ :host([type='normal']) button {
120
+ align-items: center;
121
+ justify-content: center;
122
+ }
123
+
124
+ :host([type='extended']) button {
125
+ align-items: center;
126
+ }
127
+
128
+ :host([type='extended']) {
129
+ min-width: 80px;
130
+ width: fit-content;
131
+ }
132
+
133
+ :not([name='icon']) ::slotted(*) {
134
+ margin-left: 24px;
135
+ margin-right: 24px;
136
+ }
137
+
138
+ :host([has-icon][has-label]) .label {
139
+ padding-left: 8px;
140
+ padding-right: 24px;
141
+ }
142
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
143
+ padding-left: 16px;
144
+ }
145
+
146
+ :host([disabled]) .label,
147
+ :host([disabled]) slot[name='icon']::slotted(*) {
148
+ opacity: 0.38;
149
+ }
150
+
151
+ ::slotted(*) {
152
+ pointer-events: none;
153
+ }
154
+
155
+ :host(:focus),
156
+ :host(:hover) {
157
+ --elevation-level: 2;
158
+ }
159
+
160
+ :host(:active) {
161
+ --elevation-level: 0;
162
+ }
163
+
164
+ button * {
165
+ pointer-events: none;
166
+ }
167
167
  `
168
168
  ];
169
169
  render() {
170
- return html `
171
- <button>
172
- <custom-elevation></custom-elevation>
173
- <slot name="icon"></slot>
174
- <slot></slot>
175
- </button>
170
+ return html `
171
+ <button>
172
+ <custom-elevation></custom-elevation>
173
+ <slot name="icon"></slot>
174
+ <slot></slot>
175
+ </button>
176
176
  `;
177
177
  }
178
178
  constructor() {
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
  import './button.js';
4
4
  import './icon.js';
@@ -28,21 +28,21 @@ let CustomIconButton = (() => {
28
28
  get icon() { return this.#icon_accessor_storage; }
29
29
  set icon(value) { this.#icon_accessor_storage = value; }
30
30
  static styles = [
31
- css `
32
- :host {
33
- display: block;
34
- }
35
-
36
- custom-icon {
37
- --custom-icon-color: var(--md-sys-color-on-surface);
38
- }
31
+ css `
32
+ :host {
33
+ display: block;
34
+ }
35
+
36
+ custom-icon {
37
+ --custom-icon-color: var(--md-sys-color-on-surface);
38
+ }
39
39
  `
40
40
  ];
41
41
  render() {
42
- return html `
43
- <custom-button>
44
- <custom-icon slot="icon" .icon=${this.icon}></custom-icon>
45
- </custom-button>
42
+ return html `
43
+ <custom-button>
44
+ <custom-icon slot="icon" .icon=${this.icon}></custom-icon>
45
+ </custom-button>
46
46
  `;
47
47
  }
48
48
  constructor() {
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, css, LiteElement } from '@vandeurenglenn/lite';
3
3
  import PubSub from '@vandeurenglenn/little-pubsub';
4
4
 
@@ -18,10 +18,10 @@ let CustomIconSet = (() => {
18
18
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
19
19
  }
20
20
  static styles = [
21
- css `
22
- :host {
23
- display: none;
24
- }
21
+ css `
22
+ :host {
23
+ display: none;
24
+ }
25
25
  `
26
26
  ];
27
27
  #getIcon(name) {
package/exports/icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import PubSub from '@vandeurenglenn/little-pubsub';
3
3
  import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
4
4
 
@@ -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
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
 
4
4
  let TimePickerInput = (() => {
@@ -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() {
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, property, assignedElements, query, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
 
4
4
  let CustomListItem = (() => {
@@ -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
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
  import './dropdown.js';
4
4
  import './selector.js';
@@ -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 {
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
 
4
4
  // import
@@ -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;