@swiftwc/ui 0.0.0-dev.105 → 0.0.0-dev.107

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 (79) hide show
  1. package/generated/client/index.js +6 -7
  2. package/generated/components/alert-dialog.js +9 -10
  3. package/generated/components/body-view.js +3 -3
  4. package/generated/components/bordered-button.js +4 -5
  5. package/generated/components/bordered-prominent-button.js +4 -5
  6. package/generated/components/borderless-button.js +4 -5
  7. package/generated/components/color-scheme.js +4 -4
  8. package/generated/components/confirmation-dialog.js +9 -10
  9. package/generated/components/content-unavailable.js +4 -5
  10. package/generated/components/date-picker.js +13 -14
  11. package/generated/components/detail-placeholder.js +4 -4
  12. package/generated/components/disclosure-group.js +5 -6
  13. package/generated/components/fine-tooltip.js +4 -5
  14. package/generated/components/form-view.js +3 -4
  15. package/generated/components/glass-button.js +4 -5
  16. package/generated/components/glass-prominent-button.js +4 -5
  17. package/generated/components/h-divider.js +4 -4
  18. package/generated/components/h-stack.js +3 -3
  19. package/generated/components/image-view.js +4 -5
  20. package/generated/components/label-view.js +4 -5
  21. package/generated/components/labeled-content.js +4 -5
  22. package/generated/components/list-view.d.ts +1 -0
  23. package/generated/components/list-view.js +4 -4
  24. package/generated/components/menu-view.js +10 -11
  25. package/generated/components/navigation-large-title.d.ts +0 -1
  26. package/generated/components/navigation-large-title.js +5 -7
  27. package/generated/components/navigation-split-view.js +4 -4
  28. package/generated/components/navigation-stack.js +4 -4
  29. package/generated/components/navigation-title.js +4 -4
  30. package/generated/components/picker-view.js +31 -32
  31. package/generated/components/plain-button.js +3 -4
  32. package/generated/components/progress-view.js +6 -7
  33. package/generated/components/screen-view.js +2 -2
  34. package/generated/components/scroll-view-proxy.js +3 -3
  35. package/generated/components/scroll-view.js +9 -10
  36. package/generated/components/search-view.js +4 -5
  37. package/generated/components/section-view.js +4 -5
  38. package/generated/components/sheet-view.js +6 -7
  39. package/generated/components/sidebar-toggle.js +5 -6
  40. package/generated/components/sidebar-view.js +2 -3
  41. package/generated/components/sticky-container.js +3 -4
  42. package/generated/components/tab-bar.js +4 -5
  43. package/generated/components/tab-item.js +8 -9
  44. package/generated/components/tab-view.js +7 -8
  45. package/generated/components/table-view.js +6 -7
  46. package/generated/components/text-field.js +10 -11
  47. package/generated/components/text-view.js +4 -4
  48. package/generated/components/toggle-view.js +21 -15
  49. package/generated/components/tool-bar-item-group.js +3 -3
  50. package/generated/components/tool-bar-item.js +4 -5
  51. package/generated/components/tool-bar.js +4 -5
  52. package/generated/components/v-divider.js +4 -4
  53. package/generated/components/v-keyboard.js +5 -6
  54. package/generated/components/v-stack.js +3 -3
  55. package/generated/css/index.css +76 -11
  56. package/generated/internal/class/css-style-observer.js +2 -3
  57. package/generated/internal/class/form-associated-base.js +5 -5
  58. package/generated/internal/class/navigation-view.js +3 -4
  59. package/generated/internal/decorators/adaptive-slot.js +4 -5
  60. package/generated/internal/privateNamespace.d.ts +1 -1
  61. package/generated/internal/privateNamespace.js +12 -12
  62. package/generated/internal/utils/debug.d.ts +1 -0
  63. package/generated/internal/utils/debug.js +4 -0
  64. package/generated/internal/utils/index.d.ts +2 -2
  65. package/generated/internal/utils/index.js +2 -2
  66. package/generated/internal/utils/is-inside.js +1 -1
  67. package/generated/snapshot/index.js +3 -4
  68. package/package.json +2 -1
  69. package/scss/_utils.scss +2 -0
  70. package/scss/base/_root.scss +6 -3
  71. package/scss/colors/_index.scss +11 -0
  72. package/scss/components/_navigation-large-title.scss +14 -8
  73. package/scss/components/_scroll-view.scss +12 -0
  74. package/scss/components/_toggle-view.scss +10 -0
  75. package/scss/utils/_background.scss +52 -0
  76. package/scss/utils/_index.scss +20 -17
  77. package/web-components.html-data/en.json +11 -11
  78. package/generated/internal/utils/dev-flags.d.ts +0 -3
  79. package/generated/internal/utils/dev-flags.js +0 -5
@@ -1,6 +1,5 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
1
  import { CleanupRegistry } from '../internal/class/cleanup-registry';
3
- import { ensurePlaceholder, onoff, touchGlass } from '../internal/utils';
2
+ import { debug, ensurePlaceholder, onoff, touchGlass } from '../internal/utils';
4
3
  import { ButtonBase } from '../namespace-browser/base';
5
4
  import { Snapshot } from '../snapshot';
6
5
  /**
@@ -26,16 +25,16 @@ export class GlassProminentButton extends ButtonBase {
26
25
  super();
27
26
  }
28
27
  static polyfillDisconnectedCallback(el) {
29
- DEBUG && console.debug(`${GlassProminentButton.name} ⚡️ disconnect`);
28
+ debug(`${GlassProminentButton.name} ⚡️ disconnect`);
30
29
  CleanupRegistry.unregister(el);
31
30
  }
32
31
  static polyfillConnectedCallback(el) {
33
- DEBUG && console.debug(`${GlassProminentButton.name} ⚡️ connect`);
32
+ debug(`${GlassProminentButton.name} ⚡️ connect`);
34
33
  CleanupRegistry.register(el, onoff(touchGlass(el, (t) => t, () => true), el).on());
35
34
  el.tabIndex = 0;
36
35
  }
37
36
  static polyfillAttributeChangedCallback([{ attributeName, target, oldValue }]) {
38
- DEBUG && console.debug(`${GlassProminentButton.name} ⚡️ attr-change [${attributeName}] ("${oldValue}" → "${target.getAttribute(attributeName ?? '')}")`);
37
+ debug(`${GlassProminentButton.name} ⚡️ attr-change [${attributeName}] ("${oldValue}" → "${target.getAttribute(attributeName ?? '')}")`);
39
38
  const node = target instanceof HTMLButtonElement;
40
39
  if (!node)
41
40
  return;
@@ -1,15 +1,15 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
1
+ import { debug } from '../internal/utils';
2
2
  export class HDivider extends HTMLElement {
3
3
  constructor() {
4
4
  super();
5
5
  }
6
6
  connectedCallback() {
7
- DEBUG && console.debug(`${HDivider.name} ⚡️ connect`);
7
+ debug(`${HDivider.name} ⚡️ connect`);
8
8
  }
9
9
  disconnectedCallback() {
10
- DEBUG && console.debug(`${HDivider.name} ⚡️ disconnect`);
10
+ debug(`${HDivider.name} ⚡️ disconnect`);
11
11
  }
12
12
  attributeChangedCallback(name, oldValue, newValue) {
13
- DEBUG && console.debug(`${HDivider.name} ⚡️ attr-change [${name}]`);
13
+ debug(`${HDivider.name} ⚡️ attr-change [${name}]`);
14
14
  }
15
15
  }
@@ -1,4 +1,4 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
1
+ import { debug } from '../internal/utils';
2
2
  /**
3
3
  * @summary A view that arranges its children side by side.
4
4
  *
@@ -16,9 +16,9 @@ export class HStack extends HTMLElement {
16
16
  super();
17
17
  }
18
18
  connectedCallback() {
19
- DEBUG && console.debug(`${HStack.name} ⚡️ connect`);
19
+ debug(`${HStack.name} ⚡️ connect`);
20
20
  }
21
21
  disconnectedCallback() {
22
- DEBUG && console.debug(`${HStack.name} ⚡️ disconnect`);
22
+ debug(`${HStack.name} ⚡️ disconnect`);
23
23
  }
24
24
  }
@@ -1,5 +1,4 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
- import { $ } from '../internal/utils';
1
+ import { $, debug } from '../internal/utils';
3
2
  import { queryMorph } from '../morphdom';
4
3
  import { html } from '../tpl';
5
4
  /**
@@ -21,7 +20,7 @@ export class ImageView extends HTMLElement {
21
20
  this.#shadowRoot.appendChild(document.importNode(this.constructor.template, true));
22
21
  }
23
22
  attributeChangedCallback(name, oldValue, newValue) {
24
- DEBUG && console.debug(`${ImageView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
23
+ debug(`${ImageView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
25
24
  if (oldValue === newValue)
26
25
  return;
27
26
  switch (name) {
@@ -58,9 +57,9 @@ export class ImageView extends HTMLElement {
58
57
  // container.classList.add(...tokens)
59
58
  }
60
59
  disconnectedCallback() {
61
- DEBUG && console.debug(`${ImageView.name} ⚡️ disconnect`);
60
+ debug(`${ImageView.name} ⚡️ disconnect`);
62
61
  }
63
62
  connectedCallback() {
64
- DEBUG && console.debug(`${ImageView.name} ⚡️ connect`);
63
+ debug(`${ImageView.name} ⚡️ connect`);
65
64
  }
66
65
  }
@@ -1,5 +1,4 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
- import { $ } from '../internal/utils';
1
+ import { $, debug } from '../internal/utils';
3
2
  import { queryMorph } from '../morphdom';
4
3
  import { html } from '../tpl';
5
4
  /**
@@ -54,7 +53,7 @@ export class LabelView extends HTMLElement {
54
53
  this.#shadowRoot.appendChild(document.importNode(this.constructor.template, true));
55
54
  }
56
55
  attributeChangedCallback(name, oldValue, newValue) {
57
- DEBUG && console.debug(`${LabelView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
56
+ debug(`${LabelView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
58
57
  if (oldValue === newValue)
59
58
  return;
60
59
  // this.#scheduleReflect()
@@ -77,9 +76,9 @@ export class LabelView extends HTMLElement {
77
76
  }
78
77
  }
79
78
  disconnectedCallback() {
80
- DEBUG && console.debug(`${LabelView.name} ⚡️ disconnect`);
79
+ debug(`${LabelView.name} ⚡️ disconnect`);
81
80
  }
82
81
  connectedCallback() {
83
- DEBUG && console.debug(`${LabelView.name} ⚡️ connect`);
82
+ debug(`${LabelView.name} ⚡️ connect`);
84
83
  }
85
84
  }
@@ -1,5 +1,4 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
- import { $ } from '../internal/utils';
1
+ import { $, debug } from '../internal/utils';
3
2
  import { queryMorph } from '../morphdom';
4
3
  import { html } from '../tpl';
5
4
  /**
@@ -66,7 +65,7 @@ export class LabeledContent extends HTMLElement {
66
65
  this.#shadowRoot.appendChild(document.importNode(this.constructor.template, true));
67
66
  }
68
67
  attributeChangedCallback(name, oldValue, newValue) {
69
- DEBUG && console.debug(`${LabeledContent.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
68
+ debug(`${LabeledContent.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
70
69
  if (oldValue === newValue)
71
70
  return;
72
71
  switch (name) {
@@ -100,10 +99,10 @@ export class LabeledContent extends HTMLElement {
100
99
  }
101
100
  }
102
101
  disconnectedCallback() {
103
- DEBUG && console.debug(`${LabeledContent.name} ⚡️ disconnect`);
102
+ debug(`${LabeledContent.name} ⚡️ disconnect`);
104
103
  }
105
104
  connectedCallback() {
106
- DEBUG && console.debug(`${LabeledContent.name} ⚡️ connect`);
105
+ debug(`${LabeledContent.name} ⚡️ connect`);
107
106
  }
108
107
  // <type>:<locale>;<option>=<value>;<option>=<value>
109
108
  #fmt = (value, format) => {
@@ -2,6 +2,7 @@
2
2
  * @summary A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.
3
3
  *
4
4
  * @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside
5
+ * @attr {sidebar} preferred-root-disclosure-style
5
6
  *
6
7
  * @cssprop {length} --list-row-gap — The gap between rows
7
8
  * @cssprop {length} --list--media-inner-padding-inline-start — The inline paddint start for each row
@@ -1,10 +1,10 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
1
  import { CleanupRegistry } from '../internal/class/cleanup-registry';
3
- import { listActive, onoff } from '../internal/utils';
2
+ import { debug, listActive, onoff } from '../internal/utils';
4
3
  /**
5
4
  * @summary A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.
6
5
  *
7
6
  * @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside
7
+ * @attr {sidebar} preferred-root-disclosure-style
8
8
  *
9
9
  * @cssprop {length} --list-row-gap — The gap between rows
10
10
  * @cssprop {length} --list--media-inner-padding-inline-start — The inline paddint start for each row
@@ -14,11 +14,11 @@ export class ListView extends HTMLElement {
14
14
  super();
15
15
  }
16
16
  disconnectedCallback() {
17
- DEBUG && console.debug(`${ListView.name} ⚡️ disconnect`);
17
+ debug(`${ListView.name} ⚡️ disconnect`);
18
18
  CleanupRegistry.unregister(this);
19
19
  }
20
20
  connectedCallback() {
21
- DEBUG && console.debug(`${ListView.name} ⚡️ connect`);
21
+ debug(`${ListView.name} ⚡️ connect`);
22
22
  CleanupRegistry.register(this, onoff(listActive(this), this).on());
23
23
  }
24
24
  }
@@ -1,7 +1,6 @@
1
1
  var _a;
2
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
3
2
  import { CleanupRegistry } from '../internal/class/cleanup-registry';
4
- import { $, onoff, touchGlass } from '../internal/utils';
3
+ import { $, debug, onoff, touchGlass } from '../internal/utils';
5
4
  import { queryMorph } from '../morphdom';
6
5
  import { html } from '../tpl';
7
6
  /**
@@ -35,14 +34,14 @@ export class MenuView extends HTMLElement {
35
34
  this.#shadowRoot.appendChild(document.importNode(this.constructor.template, true));
36
35
  }
37
36
  attributeChangedCallback(name, oldValue, newValue) {
38
- DEBUG && console.debug(`${_a.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
37
+ debug(`${_a.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
39
38
  switch (name) {
40
39
  case 'open':
41
40
  if (!this.#dialog)
42
41
  break;
43
42
  this.#dialog.inert = null === newValue;
44
43
  if (null === newValue && this.#dialog.open) {
45
- DEBUG && console.debug(`${_a.name} ⚡️ will-close`);
44
+ debug(`${_a.name} ⚡️ will-close`);
46
45
  this.setAttribute('closing', '');
47
46
  Promise.allSettled(this.#dialog.getAnimations().map(({ finished }) => finished)).then(() => {
48
47
  if (!this.hasAttribute('closing'))
@@ -52,7 +51,7 @@ export class MenuView extends HTMLElement {
52
51
  });
53
52
  }
54
53
  if ('' === newValue && !this.#dialog.open) {
55
- DEBUG && console.debug(`${_a.name} ⚡️ will-open`);
54
+ debug(`${_a.name} ⚡️ will-open`);
56
55
  this.removeAttribute('closing');
57
56
  const form = this.#shadowRoot.querySelector('form');
58
57
  form.scrollTop = 0;
@@ -65,14 +64,14 @@ export class MenuView extends HTMLElement {
65
64
  }
66
65
  }
67
66
  disconnectedCallback() {
68
- DEBUG && console.debug(`${_a.name} ⚡️ disconnect`);
67
+ debug(`${_a.name} ⚡️ disconnect`);
69
68
  const summaryPart = this.#shadowRoot.querySelector('[part*=menu-summary]'), dialogPart = this.#shadowRoot.querySelector('[part*=menu-dialog]');
70
69
  summaryPart?.style.removeProperty('anchor-name'); //$.prop('anchor-name', null, summaryPart)
71
70
  dialogPart?.style.removeProperty('position-anchor'); //$.prop('position-anchor', null, dialogPart)
72
71
  CleanupRegistry.unregister(this);
73
72
  }
74
73
  connectedCallback() {
75
- DEBUG && console.debug(`${_a.name} ⚡️ connect`);
74
+ debug(`${_a.name} ⚡️ connect`);
76
75
  this.#dialog = this.#shadowRoot.querySelector('dialog') ?? undefined;
77
76
  const trigger = this.#shadowRoot.querySelector('button') ?? undefined;
78
77
  CleanupRegistry.register(this, onoff('click', this.#handleTriggerClick, trigger).on());
@@ -96,7 +95,7 @@ export class MenuView extends HTMLElement {
96
95
  dialogPart?.style.setProperty('position-anchor', newAnchorName); // $.prop('position-anchor', newAnchorName, dialogPart) //
97
96
  }
98
97
  #handleDialogClick = ({ type, target }) => {
99
- DEBUG && console.debug(`${_a.name} ⚡️ ${type}`);
98
+ debug(`${_a.name} ⚡️ ${type}`);
100
99
  if (!(target instanceof HTMLElement))
101
100
  return;
102
101
  if (target.matches('dialog'))
@@ -113,19 +112,19 @@ export class MenuView extends HTMLElement {
113
112
  // event.stopPropagation() //NOTE: add this only if not nested, disposes all nicely if ommited
114
113
  };
115
114
  #handleTriggerClick = (evt) => {
116
- DEBUG && console.debug(`${_a.name} ⚡️ ${evt?.type}`);
115
+ debug(`${_a.name} ⚡️ ${evt?.type}`);
117
116
  this.toggleAttribute('open', true);
118
117
  };
119
118
  // intercept to modify open attr
120
119
  #handleDialogCancel = (evt) => {
121
- DEBUG && console.debug(`${_a.name} ⚡️ ${evt?.type}`);
120
+ debug(`${_a.name} ⚡️ ${evt?.type}`);
122
121
  if (!evt.cancelable)
123
122
  return;
124
123
  evt.preventDefault();
125
124
  this.toggleAttribute('open', false);
126
125
  };
127
126
  #handleDialogClose = (evt) => {
128
- DEBUG && console.debug(`${_a.name} ⚡️ ${evt?.type}`);
127
+ debug(`${_a.name} ⚡️ ${evt?.type}`);
129
128
  this.toggleAttribute('open', this.#shadowRoot.querySelector('dialog')?.open ?? false);
130
129
  };
131
130
  }
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  *
3
- * @attr {grouped} background-style
4
3
  * @attr {boolean} padding
5
4
  * @attr {boolean} navigation-bar-auto-hide
6
5
  *
@@ -1,8 +1,7 @@
1
1
  var _a;
2
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
3
2
  import { CleanupRegistry } from '../internal/class/cleanup-registry';
4
3
  import { CSSStyleObserver } from '../internal/class/css-style-observer';
5
- import { add, frame, onoff, slowHideShow, timeout } from '../internal/utils';
4
+ import { add, debug, frame, onoff, slowHideShow, timeout } from '../internal/utils';
6
5
  import { Snapshot } from '../snapshot';
7
6
  const observing = new WeakSet();
8
7
  function observeResizeEnd(el, callback, stableFrames = 4) {
@@ -70,7 +69,6 @@ function isIntersectingWithContainer(el, container, rootMargin = '0px 0px 0px 0p
70
69
  }
71
70
  /**
72
71
  *
73
- * @attr {grouped} background-style
74
72
  * @attr {boolean} padding
75
73
  * @attr {boolean} navigation-bar-auto-hide
76
74
  *
@@ -84,13 +82,13 @@ export class NavigationLargeTitle extends HTMLElement {
84
82
  super();
85
83
  }
86
84
  disconnectedCallback() {
87
- DEBUG && console.debug(`${_a.name} ⚡️ disconnect`);
85
+ debug(`${_a.name} ⚡️ disconnect`);
88
86
  this.#clearScrollState();
89
87
  this.#styleObserver?.disconnect();
90
88
  CleanupRegistry.unregister(this);
91
89
  }
92
90
  connectedCallback() {
93
- DEBUG && console.debug(`${_a.name} ⚡️ connect`);
91
+ debug(`${_a.name} ⚡️ connect`);
94
92
  const root = this.closest('scroll-view') ?? undefined;
95
93
  if (!root)
96
94
  return;
@@ -113,7 +111,7 @@ export class NavigationLargeTitle extends HTMLElement {
113
111
  });
114
112
  }
115
113
  #handleStyleChange = () => {
116
- DEBUG && console.debug(`${_a.name} ⚡️ style`);
114
+ debug(`${_a.name} ⚡️ style`);
117
115
  const root = this.closest('scroll-view') ?? undefined;
118
116
  if (!root)
119
117
  return;
@@ -158,7 +156,7 @@ export class NavigationLargeTitle extends HTMLElement {
158
156
  // this.#applySlowness(root, isIntersecting)
159
157
  // }
160
158
  #handleIntersect = (entries, { root }) => {
161
- DEBUG && console.debug(`${_a.name} ⚡️ intersect (${entries?.at(0)?.isIntersecting})`);
159
+ debug(`${_a.name} ⚡️ intersect (${entries?.at(0)?.isIntersecting})`);
162
160
  if (!(root instanceof HTMLElement))
163
161
  return;
164
162
  for (const { isIntersecting } of entries)
@@ -1,5 +1,5 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
1
  import { NavigationView } from '../internal/class/navigation-view';
2
+ import { debug } from '../internal/utils';
3
3
  /**
4
4
  * @summary A container view with two or three side-by-side screens, where what the user chooses in the left screen changes what appears in the next screen.
5
5
  */
@@ -8,15 +8,15 @@ export class NavigationSplitView extends NavigationView {
8
8
  super();
9
9
  }
10
10
  attributeChangedCallback(name, oldValue, newValue) {
11
- DEBUG && console.debug(`${NavigationSplitView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
11
+ debug(`${NavigationSplitView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
12
12
  super.attributeChangedCallback(name, oldValue, newValue);
13
13
  }
14
14
  disconnectedCallback() {
15
- DEBUG && console.debug(`${NavigationSplitView.name} ⚡️ disconnect`);
15
+ debug(`${NavigationSplitView.name} ⚡️ disconnect`);
16
16
  super.disconnectedCallback();
17
17
  }
18
18
  connectedCallback() {
19
- DEBUG && console.debug(`${NavigationSplitView.name} ⚡️ connect`);
19
+ debug(`${NavigationSplitView.name} ⚡️ connect`);
20
20
  super.connectedCallback();
21
21
  }
22
22
  }
@@ -1,5 +1,5 @@
1
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
2
1
  import { NavigationView } from '../internal/class/navigation-view';
2
+ import { debug } from '../internal/utils';
3
3
  /**
4
4
  * @summary A container view that shows a main screen and lets the user open other screens on top of it.
5
5
  */
@@ -8,7 +8,7 @@ export class NavigationStack extends NavigationView {
8
8
  super();
9
9
  }
10
10
  attributeChangedCallback(name, oldValue, newValue) {
11
- DEBUG && console.debug(`${NavigationStack.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
11
+ debug(`${NavigationStack.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
12
12
  super.attributeChangedCallback(name, oldValue, newValue);
13
13
  switch (name) {
14
14
  case 'hidden':
@@ -16,11 +16,11 @@ export class NavigationStack extends NavigationView {
16
16
  }
17
17
  }
18
18
  disconnectedCallback() {
19
- DEBUG && console.debug(`${NavigationStack.name} ⚡️ disconnect`);
19
+ debug(`${NavigationStack.name} ⚡️ disconnect`);
20
20
  super.disconnectedCallback();
21
21
  }
22
22
  connectedCallback() {
23
- DEBUG && console.debug(`${NavigationStack.name} ⚡️ connect`);
23
+ debug(`${NavigationStack.name} ⚡️ connect`);
24
24
  super.connectedCallback();
25
25
  }
26
26
  }
@@ -5,8 +5,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  var NavigationTitle_1;
8
- import { DEBUG } from '../internal/flags.json' with { type: 'json' };
9
8
  import { microtaskOnConnected } from '../internal/decorators';
9
+ import { debug } from '../internal/utils';
10
10
  import { queryMorph } from '../morphdom';
11
11
  import { html } from '../tpl';
12
12
  /**
@@ -22,14 +22,14 @@ let NavigationTitle = NavigationTitle_1 = class NavigationTitle extends HTMLElem
22
22
  super();
23
23
  }
24
24
  attributeChangedCallback(name, oldValue, newValue) {
25
- DEBUG && console.debug(`${NavigationTitle_1.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
25
+ debug(`${NavigationTitle_1.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
26
26
  this.#render(this.getAttribute('value'), this.getAttribute('subtitle'), this.getAttribute('system-image'), this.getAttribute('system-image-weight'));
27
27
  }
28
28
  disconnectedCallback() {
29
- DEBUG && console.debug(`${NavigationTitle_1.name} ⚡️ disconnect`);
29
+ debug(`${NavigationTitle_1.name} ⚡️ disconnect`);
30
30
  }
31
31
  connectedCallback() {
32
- DEBUG && console.debug(`${NavigationTitle_1.name} ⚡️ connect`);
32
+ debug(`${NavigationTitle_1.name} ⚡️ connect`);
33
33
  }
34
34
  #render = (title, subtitle, systemImage, systemImageWeight) => {
35
35
  queryMorph(':not([slot])', html `