@blockquote-web-components/blockquote-base-embedded-webview 1.13.17 → 1.14.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockquote-web-components/blockquote-base-embedded-webview",
3
- "version": "1.13.17",
3
+ "version": "1.14.0",
4
4
  "description": "Webcomponent blockquote-base-embedded-webview following open-wc recommendations",
5
5
  "keywords": [
6
6
  "lit",
@@ -155,5 +155,5 @@
155
155
  "access": "public"
156
156
  },
157
157
  "customElements": "custom-elements.json",
158
- "gitHead": "7f8bbd63563794ccb2b1e975eecafee9c41110f8"
158
+ "gitHead": "e74c8cab50efa0c87dc6ceda19c52e159943cde9"
159
159
  }
@@ -257,6 +257,10 @@ export class BlockquoteBaseEmbeddedWebview extends LitElement {
257
257
  ? html`
258
258
  <div class="select">
259
259
  <select id="select-sources" @change="${this._onChangeFile}" aria-label="Cases">
260
+ <button>
261
+ <selectedcontent></selectedcontent>
262
+ ${this.__selectArrow}
263
+ </button>
260
264
  ${this._sources.map(
261
265
  (item, index) => html`
262
266
  <option ?selected="${this.selected === index}" value="${index}">
@@ -80,51 +80,113 @@ export const styles = css`
80
80
  vertical-align: bottom;
81
81
  }
82
82
 
83
- .select {
84
- display: inline-grid;
85
- grid-template-areas: select;
86
- align-items: center;
83
+ select,
84
+ select::picker(select) {
85
+ -webkit-appearance: base-select;
86
+ -moz-appearance: base-select;
87
+ appearance: base-select;
88
+ }
89
+
90
+ select:open > button svg {
91
+ transform: rotate(0.5turn);
92
+ }
93
+
94
+ select button {
95
+ display: inline-flex;
96
+ justify-content: space-between;
97
+ width: 100%;
98
+ padding-inline-start: 0.2ch;
87
99
  }
88
100
 
89
- .select > * {
90
- grid-area: select;
101
+ select button svg {
102
+ inline-size: 1.62ch;
103
+ transition: transform 192ms cubic-bezier(0.5, 1, 0.75, 1.25);
91
104
  }
92
105
 
93
- .select svg {
94
- inline-size: 0.875rem;
95
- justify-self: end;
96
- pointer-events: none;
106
+ select::picker-icon {
107
+ display: none;
97
108
  }
98
109
 
99
- .select select {
100
- -webkit-appearance: none;
101
- -moz-appearance: none;
102
- appearance: none;
110
+ select::picker(select) {
111
+ background-color: inherit;
112
+ border: 0.0625rem solid var(--_select-bgcolor);
113
+ margin-block: 0.125rem;
114
+ overflow: visible;
115
+ }
116
+
117
+ select {
118
+ field-sizing: content;
103
119
  color: inherit;
104
120
  font: inherit;
105
- background-color: transparent;
121
+ background-color: #fff;
106
122
  border: none;
107
123
  border-block-end: 0.125rem solid var(--_select-bgcolor);
108
- padding-block: 0.25em;
109
- padding-inline: 0 1em;
124
+ padding: 0;
110
125
  margin: 0;
111
- inline-size: 100%;
112
126
  cursor: pointer;
113
127
  outline: none;
114
128
  border-radius: 0;
115
- min-inline-size: 10ch;
116
- max-inline-size: 18ch;
129
+ min-inline-size: 16ch;
130
+ max-inline-size: 20ch;
117
131
  white-space: nowrap;
118
132
  overflow: hidden;
119
133
  text-overflow: ellipsis;
120
134
  transition: var(--_select-transition);
121
135
  }
122
136
 
123
- .select select:hover,
124
- .select select:focus {
137
+ select:hover,
138
+ select:focus {
125
139
  border-block-end-color: currentcolor;
126
140
  }
127
141
 
142
+ option {
143
+ gap: 0.25em;
144
+ padding: 0.25em 0.5em;
145
+ }
146
+
147
+ option::checkmark {
148
+ content: '⊙';
149
+ color: currentcolor;
150
+ }
151
+
152
+ @supports not (
153
+ (-webkit-appearance: base-select) or (-moz-appearance: base-select) or (appearance: base-select)
154
+ ) {
155
+ .select {
156
+ display: inline-grid;
157
+ grid-template-areas: select;
158
+ align-items: center;
159
+ }
160
+
161
+ .select > * {
162
+ grid-area: select;
163
+ }
164
+
165
+ .select > svg {
166
+ inline-size: 0.875rem;
167
+ justify-self: end;
168
+ pointer-events: none;
169
+ display: block;
170
+ }
171
+
172
+ select {
173
+ -webkit-appearance: none;
174
+ -moz-appearance: none;
175
+ appearance: none;
176
+ padding-block: 0.25em;
177
+ padding-inline: 0 1em;
178
+ inline-size: 100%;
179
+ }
180
+ }
181
+
182
+ @supports (
183
+ (-webkit-appearance: base-select) or (-moz-appearance: base-select) or (appearance: base-select)
184
+ ) {
185
+ .select > svg {
186
+ display: none;
187
+ }
188
+ }
189
+
128
190
  .description {
129
191
  margin-inline: 0;
130
192
  margin-block: 0.5rem 1rem;