@swiftwc/ui 0.0.0-dev.37 → 0.0.0-dev.38
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/generated/components/date-picker.js +2 -4
- package/generated/components/picker-view.js +5 -7
- package/generated/components/progress-view.js +0 -2
- package/generated/components/section-view.js +0 -1
- package/generated/components/table-view.js +2 -2
- package/generated/components/text-field.js +2 -2
- package/package.json +1 -1
|
@@ -125,8 +125,6 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
125
125
|
}
|
|
126
126
|
#render() {
|
|
127
127
|
debug(`${_a.name} ⚡️ render (${this.datePickerStyle})`);
|
|
128
|
-
if (!this.isConnected)
|
|
129
|
-
return;
|
|
130
128
|
// if (this.#lastRenderedStyle === this.datePickerStyle) return // skip if already applied
|
|
131
129
|
// this.#lastRenderedStyle = this.datePickerStyle
|
|
132
130
|
// clear shadow DOM
|
|
@@ -175,8 +173,8 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
175
173
|
return;
|
|
176
174
|
const assigned = slot.assignedElements();
|
|
177
175
|
this.#validityObservers.syncObservations(assigned, ['value', 'label']);
|
|
178
|
-
if (0 < assigned.length)
|
|
179
|
-
|
|
176
|
+
// if (0 < assigned.length)
|
|
177
|
+
this.#renderValidityMsgs([]);
|
|
180
178
|
};
|
|
181
179
|
get #selectedDate() {
|
|
182
180
|
const map = Object.fromEntries(this.#inputs.map(({ name, value }) => [name, value]));
|
|
@@ -63,7 +63,7 @@ export class PickerView extends FormAssociatedBase {
|
|
|
63
63
|
<button type="button">Filters</button>
|
|
64
64
|
</v-stack>
|
|
65
65
|
</sticky-container>`);
|
|
66
|
-
const searchInput = sv?.querySelector('input
|
|
66
|
+
const searchInput = sv?.querySelector('input'); // FIXME: compoennt is=search-view??
|
|
67
67
|
searchInput?.addEventListener('focus', (evt) => {
|
|
68
68
|
if (this.#spawn)
|
|
69
69
|
this.dispatchEvent(new CustomEvent('picker:searchfocus', { detail: { element: this.#spawn }, bubbles: true, composed: true }));
|
|
@@ -350,8 +350,6 @@ export class PickerView extends FormAssociatedBase {
|
|
|
350
350
|
}
|
|
351
351
|
#render() {
|
|
352
352
|
debug(`${_a.name} ⚡️ render (${this.pickerStyle})`);
|
|
353
|
-
if (!this.isConnected)
|
|
354
|
-
return;
|
|
355
353
|
// const style = this.getAttribute((this.constructor as typeof PickerView).ATTR.PICKER_STYLE)
|
|
356
354
|
if (this.#lastRenderedStyle === this.pickerStyle)
|
|
357
355
|
return; // skip if already applied
|
|
@@ -442,8 +440,8 @@ export class PickerView extends FormAssociatedBase {
|
|
|
442
440
|
return;
|
|
443
441
|
const assigned = slot.assignedElements();
|
|
444
442
|
this.#validityObservers.syncObservations(assigned, ['value', 'label']);
|
|
445
|
-
if (0 < assigned.length)
|
|
446
|
-
|
|
443
|
+
// if (0 < assigned.length)
|
|
444
|
+
this.#renderValidityMsgs([]);
|
|
447
445
|
};
|
|
448
446
|
#handleListSlotchange = ({ type, target: slot }) => {
|
|
449
447
|
debug(`${_a.name} ⚡️ ${type}`);
|
|
@@ -451,8 +449,8 @@ export class PickerView extends FormAssociatedBase {
|
|
|
451
449
|
return;
|
|
452
450
|
const assigned = slot.assignedElements();
|
|
453
451
|
this.#observers.syncObservations(assigned);
|
|
454
|
-
if (0 < assigned.length)
|
|
455
|
-
|
|
452
|
+
// if (0 < assigned.length)
|
|
453
|
+
this.#renderList([]);
|
|
456
454
|
};
|
|
457
455
|
static #wrapOptionTag(node) {
|
|
458
456
|
const btn = $(`<button type="button" tabindex="0"></button>`, '>1');
|
|
@@ -101,8 +101,6 @@ export class ProgressView extends HTMLElement {
|
|
|
101
101
|
};
|
|
102
102
|
#render() {
|
|
103
103
|
debug(`${_a.name} ⚡️ render (${this.#progressViewStyle})`);
|
|
104
|
-
if (!this.isConnected)
|
|
105
|
-
return;
|
|
106
104
|
if (this.#lastRenderedStyle === this.#progressViewStyle)
|
|
107
105
|
return; // skip if already applied
|
|
108
106
|
this.#lastRenderedStyle = this.#progressViewStyle;
|
|
@@ -41,7 +41,6 @@ export class SectionView extends HTMLElement {
|
|
|
41
41
|
// this.#sibling = this.closest('scroll-view') ?? undefined
|
|
42
42
|
// Snapshot.waitReady.then(() => {
|
|
43
43
|
// if (!(await frame(this))) return // NOTE: Required or BREAKS transitions // self.requestAnimationFrame(() => {
|
|
44
|
-
// if (!this.isConnected) return
|
|
45
44
|
// const blockSizeProp = getComputedStyle(this).getPropertyValue('--navigation-bar-block-size') || '0', //`${document.documentElement.computedStyleMap().get(`--navigation-bar-block-size`) ?? '0'}`, //
|
|
46
45
|
// blockSize = parseFloat(blockSizeProp) * (blockSizeProp.endsWith('rem') ? parseFloat(getComputedStyle(document.documentElement).fontSize) : 1)
|
|
47
46
|
// this.#observer = new IntersectionObserver(this.#handleIntersect, {
|
|
@@ -107,8 +107,8 @@ export class TableView extends HTMLElement {
|
|
|
107
107
|
return;
|
|
108
108
|
const assigned = slot.assignedElements();
|
|
109
109
|
this.#observers.syncObservations(assigned);
|
|
110
|
-
if (0 < assigned.length)
|
|
111
|
-
|
|
110
|
+
// if (0 < assigned.length)
|
|
111
|
+
this.#renderColumns([]);
|
|
112
112
|
};
|
|
113
113
|
#renderColumns = (entries) => {
|
|
114
114
|
debug(`${_a.name} ⚡️ mutation`);
|
|
@@ -202,8 +202,8 @@ export class TextField extends FormAssociatedBase {
|
|
|
202
202
|
return;
|
|
203
203
|
const assigned = slot.assignedElements();
|
|
204
204
|
this.#validityObservers.syncObservations(assigned, ['value', 'label']);
|
|
205
|
-
if (0 < assigned.length)
|
|
206
|
-
|
|
205
|
+
// if (0 < assigned.length)
|
|
206
|
+
this.#renderValidityMsgs([]);
|
|
207
207
|
};
|
|
208
208
|
#handleFocusin = (evt) => {
|
|
209
209
|
debug(`${_a.name} ⚡️ ${evt?.type}`);
|