@swiftwc/ui 0.0.0-dev.111 → 0.0.0-dev.113

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.
@@ -52,10 +52,7 @@ export class TabView extends HTMLElement {
52
52
  { types: 'beforetabreveal beforetabswap', listener: this.#addAnimations },
53
53
  { types: 'tab-view:adaptable-tab-bar-placement-change', listener: this.#handleAdaptableTabBarPlacementChange },
54
54
  { types: 'pagereveal', listener: this.#handleTabViewPagereveal },
55
- {
56
- types: 'click',
57
- listener: this.#handleSummaryClick,
58
- },
55
+ { types: 'click', listener: this.#handleSummaryClick },
59
56
  ], this).on());
60
57
  }
61
58
  #handleSummaryClick = ({ target }) => {
@@ -95,9 +92,9 @@ export class TabView extends HTMLElement {
95
92
  }));
96
93
  }
97
94
  };
98
- #handleAdaptableTabBarPlacementChange = (evt) => {
99
- debug(`${_a.name} ⚡️ ${evt?.type}`);
100
- if ('bottom-bar' !== evt.detail.oldValue)
95
+ #handleAdaptableTabBarPlacementChange = ({ type, detail }) => {
96
+ debug(`${_a.name} ⚡️ ${type}`);
97
+ if ('bottom-bar' !== detail.oldValue)
101
98
  return; // button triggers should happen, ONLY when going FROM bottom-bar TO anything else
102
99
  const innerSelection = this.moreTab?.querySelector(':scope>navigation-stack:not([hidden]),:scope>navigation-split-view:not([hidden])')?.id;
103
100
  if (innerSelection) {
@@ -151,12 +148,12 @@ export class TabView extends HTMLElement {
151
148
  ns.hidden = false; // triggers
152
149
  }
153
150
  }
154
- #addAnimations = (evt) => {
151
+ #addAnimations = ({ detail }) => {
155
152
  this.setAttribute('js-aftertabreveal', '');
156
153
  // const ms = cssTime(`${this.computedStyleMap().get(`--tabbar-after-tabreveal-duration`)}`)
157
154
  this.#afterTabRevealDelay.next(() => {
158
155
  this.removeAttribute('js-aftertabreveal');
159
- }, evt.detail.ms);
156
+ }, detail.ms);
160
157
  };
161
158
  #handleSelectionChange = (evt) => {
162
159
  this.#triggerToggleEvent(evt);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @summary A view that arranges its children one on top of the other.
3
+ *
4
+ * @attr {@Template} template — The main-axis grid template
5
+ *
6
+ */
7
+ export declare class VFlexStack extends HTMLElement {
8
+ constructor();
9
+ connectedCallback(): void;
10
+ disconnectedCallback(): void;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'v-flex-stack': VFlexStack;
15
+ }
16
+ }
@@ -0,0 +1,18 @@
1
+ import { debug } from '../internal/utils';
2
+ /**
3
+ * @summary A view that arranges its children one on top of the other.
4
+ *
5
+ * @attr {@Template} template — The main-axis grid template
6
+ *
7
+ */
8
+ export class VFlexStack extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ }
12
+ connectedCallback() {
13
+ debug(`${VFlexStack.name} ⚡️ connect`);
14
+ }
15
+ disconnectedCallback() {
16
+ debug(`${VFlexStack.name} ⚡️ disconnect`);
17
+ }
18
+ }