@swiftwc/ui 0.0.0-dev.99 → 1.0.0-canary.1

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 (209) hide show
  1. package/generated/client/index.js +8 -9
  2. package/generated/components/alert-dialog.js +9 -17
  3. package/generated/components/bordered-button.js +4 -7
  4. package/generated/components/bordered-prominent-button.js +4 -7
  5. package/generated/components/borderless-button.js +4 -7
  6. package/generated/components/color-scheme.js +4 -7
  7. package/generated/components/confirmation-dialog.js +9 -17
  8. package/generated/components/content-unavailable.d.ts +1 -1
  9. package/generated/components/content-unavailable.js +5 -8
  10. package/generated/components/{body-view.d.ts → content-view.d.ts} +2 -2
  11. package/generated/components/content-view.js +15 -0
  12. package/generated/components/date-picker.js +13 -25
  13. package/generated/components/detail-placeholder.d.ts +11 -0
  14. package/generated/components/detail-placeholder.js +15 -0
  15. package/generated/components/disclosure-group.js +5 -9
  16. package/generated/components/fine-tooltip.js +4 -7
  17. package/generated/components/form-view.js +3 -5
  18. package/generated/components/glass-button.js +4 -7
  19. package/generated/components/glass-prominent-button.js +4 -7
  20. package/generated/components/h-divider.d.ts +11 -0
  21. package/generated/components/h-divider.js +15 -0
  22. package/generated/components/h-flex-stack.d.ts +16 -0
  23. package/generated/components/h-flex-stack.js +18 -0
  24. package/generated/components/h-stack.js +3 -5
  25. package/generated/components/image-view.js +4 -7
  26. package/generated/components/index.d.ts +7 -1
  27. package/generated/components/index.js +7 -1
  28. package/generated/components/label-view.d.ts +2 -2
  29. package/generated/components/label-view.js +6 -9
  30. package/generated/components/labeled-content.d.ts +7 -1
  31. package/generated/components/labeled-content.js +32 -32
  32. package/generated/components/list-view.d.ts +5 -1
  33. package/generated/components/list-view.js +8 -6
  34. package/generated/components/menu-view.d.ts +1 -1
  35. package/generated/components/menu-view.js +11 -20
  36. package/generated/components/navigation-large-title.d.ts +0 -1
  37. package/generated/components/navigation-large-title.js +5 -10
  38. package/generated/components/navigation-split-view.js +4 -7
  39. package/generated/components/navigation-stack.js +4 -7
  40. package/generated/components/navigation-title.js +4 -7
  41. package/generated/components/picker-view.d.ts +4 -21
  42. package/generated/components/picker-view.js +374 -326
  43. package/generated/components/plain-button.js +3 -5
  44. package/generated/components/progress-view.d.ts +1 -1
  45. package/generated/components/progress-view.js +7 -12
  46. package/generated/components/screen-view.js +2 -3
  47. package/generated/components/scroll-view-proxy.js +3 -5
  48. package/generated/components/scroll-view.d.ts +1 -1
  49. package/generated/components/scroll-view.js +10 -17
  50. package/generated/components/search-view.js +4 -7
  51. package/generated/components/section-view.d.ts +1 -1
  52. package/generated/components/section-view.js +5 -8
  53. package/generated/components/sheet-view.js +6 -11
  54. package/generated/components/sidebar-toggle.js +5 -9
  55. package/generated/components/sidebar-view.js +2 -3
  56. package/generated/components/sticky-container.js +3 -5
  57. package/generated/components/tab-bar.js +4 -7
  58. package/generated/components/tab-item.js +8 -15
  59. package/generated/components/tab-view.js +19 -23
  60. package/generated/components/table-view.d.ts +1 -1
  61. package/generated/components/table-view.js +7 -12
  62. package/generated/components/text-field.js +10 -19
  63. package/generated/components/text-view.d.ts +11 -0
  64. package/generated/components/text-view.js +16 -0
  65. package/generated/components/toggle-view.d.ts +2 -0
  66. package/generated/components/toggle-view.js +33 -37
  67. package/generated/components/tool-bar-item-group.js +3 -5
  68. package/generated/components/tool-bar-item.js +4 -7
  69. package/generated/components/tool-bar.js +4 -7
  70. package/generated/components/v-divider.d.ts +11 -0
  71. package/generated/components/v-divider.js +15 -0
  72. package/generated/components/v-flex-stack.d.ts +16 -0
  73. package/generated/components/v-flex-stack.js +18 -0
  74. package/generated/components/v-keyboard.js +8 -12
  75. package/generated/components/v-stack.js +3 -5
  76. package/generated/css/index.css +762 -418
  77. package/generated/internal/class/css-style-observer.js +2 -3
  78. package/generated/internal/class/form-associated-base.js +6 -8
  79. package/generated/internal/class/navigation-path.js +2 -2
  80. package/generated/internal/class/navigation-view.js +3 -5
  81. package/generated/internal/decorators/adaptive-slot.js +4 -7
  82. package/generated/internal/decorators/microtask-on-connected.d.ts +2 -2
  83. package/generated/internal/decorators/microtask-on-connected.js +2 -2
  84. package/generated/internal/dev-flags.d.ts +4 -0
  85. package/generated/internal/dev-flags.js +1 -0
  86. package/generated/internal/privateNamespace.d.ts +2 -2
  87. package/generated/internal/privateNamespace.js +15 -24
  88. package/generated/internal/utils/$.d.ts +9 -0
  89. package/generated/internal/utils/$.js +11 -0
  90. package/generated/internal/utils/debug.d.ts +1 -0
  91. package/generated/internal/utils/debug.js +4 -0
  92. package/generated/internal/utils/index.d.ts +36 -2
  93. package/generated/internal/utils/index.js +36 -5
  94. package/generated/internal/utils/is-inside.js +1 -1
  95. package/generated/snapshot/index.js +3 -5
  96. package/{web-components.html-data → html-data}/en.json +155 -54
  97. package/package.json +24 -20
  98. package/scss/_components.scss +1 -1
  99. package/scss/_maps.scss +3 -1
  100. package/scss/_utils.scss +3 -1
  101. package/scss/_vars.scss +1 -0
  102. package/scss/base/_layout.scss +8 -8
  103. package/scss/base/_reboot.scss +4 -29
  104. package/scss/base/_root.scss +27 -12
  105. package/scss/colors/_index.scss +66 -1
  106. package/scss/components/_alert-dialog.scss +3 -3
  107. package/scss/components/_bordered-button.scss +2 -2
  108. package/scss/components/_bordered-prominent-button.scss +3 -3
  109. package/scss/components/_borderless-button.scss +2 -2
  110. package/scss/components/_confirmation-dialog.scss +1 -1
  111. package/scss/components/_content-unavailable.scss +1 -1
  112. package/scss/components/{_body-view.scss → _content-view.scss} +2 -2
  113. package/scss/components/_date-picker.scss +1 -1
  114. package/scss/components/_detail-placeholder.scss +5 -5
  115. package/scss/components/_disclosure-group.scss +2 -2
  116. package/scss/components/_fine-tooltip.scss +1 -1
  117. package/scss/components/_form-view.scss +3 -3
  118. package/scss/components/_full-screen.scss +1 -1
  119. package/scss/components/_glass-button.scss +2 -2
  120. package/scss/components/_glass-prominent-button.scss +3 -3
  121. package/scss/components/_group-box.scss +1 -1
  122. package/scss/components/_h-divider.scss +1 -1
  123. package/scss/components/_h-flex-stack.scss +3 -1
  124. package/scss/components/_h-stack.scss +1 -1
  125. package/scss/components/_image-view.scss +1 -1
  126. package/scss/components/_index.scss +34 -24
  127. package/scss/components/_label-view.scss +1 -1
  128. package/scss/components/_labeled-content.scss +1 -1
  129. package/scss/components/_list-view.scss +3 -3
  130. package/scss/components/_menu-view.scss +3 -3
  131. package/scss/components/_navigation-large-title.scss +15 -9
  132. package/scss/components/_navigation-split-view.scss +18 -18
  133. package/scss/components/_navigation-stack.scss +1 -1
  134. package/scss/components/_navigation-title.scss +1 -1
  135. package/scss/components/_picker-view.scss +159 -119
  136. package/scss/components/_plain-button.scss +2 -2
  137. package/scss/components/_progress-view.scss +1 -1
  138. package/scss/components/_scroll-view-proxy.scss +1 -1
  139. package/scss/components/_scroll-view-toolbars.scss +1 -1
  140. package/scss/components/_scroll-view.scss +2 -2
  141. package/scss/components/_search-view.scss +1 -1
  142. package/scss/components/_section-view.scss +1 -1
  143. package/scss/components/_sheet-view.scss +2 -2
  144. package/scss/components/_sidebar-toggle.scss +1 -1
  145. package/scss/components/_sidebar-view.scss +2 -2
  146. package/scss/components/_sticky-container.scss +1 -1
  147. package/scss/components/_tab-bar.scss +1 -1
  148. package/scss/components/_tab-item.scss +1 -1
  149. package/scss/components/_tab-view.scss +23 -15
  150. package/scss/components/_table-column.scss +1 -1
  151. package/scss/components/_table-row.scss +1 -1
  152. package/scss/components/_table-view.scss +1 -1
  153. package/scss/components/_text-field.scss +1 -1
  154. package/scss/components/_text-view.scss +1 -1
  155. package/scss/components/_toggle-view.scss +41 -21
  156. package/scss/components/_tool-bar-item-group.scss +1 -1
  157. package/scss/components/_tool-bar-item.scss +2 -2
  158. package/scss/components/_tool-bar.scss +2 -2
  159. package/scss/components/_v-divider.scss +1 -1
  160. package/scss/components/_v-flex-stack.scss +3 -1
  161. package/scss/components/_v-keyboard.scss +1 -1
  162. package/scss/components/_v-stack.scss +1 -1
  163. package/scss/final/_touch-glass.scss +2 -2
  164. package/scss/mixins/_index.scss +2 -2
  165. package/scss/placeholders/_buttons.scss +5 -5
  166. package/scss/placeholders/_lists.scss +3 -3
  167. package/scss/transitions/_alert-dialog.scss +1 -1
  168. package/scss/transitions/_bwd.navbar.scss +1 -1
  169. package/scss/transitions/_bwd.scss +3 -3
  170. package/scss/transitions/_confirmation-dialog.scss +1 -1
  171. package/scss/transitions/_disclosure-group.scss +1 -1
  172. package/scss/transitions/_fine-tooltip.scss +1 -1
  173. package/scss/transitions/_fwd.navbar.scss +1 -1
  174. package/scss/transitions/_fwd.scss +1 -1
  175. package/scss/transitions/_glass-button.scss +1 -1
  176. package/scss/transitions/_glass-prominent-button.scss +1 -1
  177. package/scss/transitions/_index.scss +1 -1
  178. package/scss/transitions/_menu-view.scss +1 -1
  179. package/scss/transitions/_navigation-split-view.scss +1 -1
  180. package/scss/transitions/_progress-view.scss +1 -1
  181. package/scss/transitions/_sheet-view.scss +1 -1
  182. package/scss/transitions/_sidebar-view.scss +1 -1
  183. package/scss/transitions/_tab-bar.scss +1 -1
  184. package/scss/utils/_background.scss +52 -0
  185. package/scss/utils/_frame.scss +2 -2
  186. package/scss/utils/_index.scss +33 -8
  187. package/scss/utils/_spacing.scss +1 -1
  188. package/scss/utils/_stacks.scss +5 -3
  189. package/generated/components/body-view.js +0 -17
  190. package/generated/internal/utils/cash/index.d.ts +0 -24
  191. package/generated/internal/utils/cash/index.js +0 -27
  192. package/generated/internal/utils/dev-flags.d.ts +0 -3
  193. package/generated/internal/utils/dev-flags.js +0 -5
  194. /package/{web-components.css-data → css-data}/en.json +0 -0
  195. /package/generated/internal/utils/{cash/ancestors.d.ts → ancestors.d.ts} +0 -0
  196. /package/generated/internal/utils/{cash/ancestors.js → ancestors.js} +0 -0
  197. /package/generated/internal/utils/{cash/next-all.d.ts → next-all.d.ts} +0 -0
  198. /package/generated/internal/utils/{cash/next-all.js → next-all.js} +0 -0
  199. /package/generated/internal/utils/{cash/next.d.ts → next.d.ts} +0 -0
  200. /package/generated/internal/utils/{cash/next.js → next.js} +0 -0
  201. /package/generated/internal/utils/{cash/prev-all.d.ts → prev-all.d.ts} +0 -0
  202. /package/generated/internal/utils/{cash/prev-all.js → prev-all.js} +0 -0
  203. /package/generated/internal/utils/{cash/prev.d.ts → prev.d.ts} +0 -0
  204. /package/generated/internal/utils/{cash/prev.js → prev.js} +0 -0
  205. /package/generated/internal/utils/{cash/prop.d.ts → prop.d.ts} +0 -0
  206. /package/generated/internal/utils/{cash/prop.js → prop.js} +0 -0
  207. /package/generated/internal/utils/{cash/siblings.d.ts → siblings.d.ts} +0 -0
  208. /package/generated/internal/utils/{cash/siblings.js → siblings.js} +0 -0
  209. /package/scss/utils/{_scroll-view.scss → _scroll-view.scss.txt} +0 -0
@@ -1,12 +1,12 @@
1
1
  var _a;
2
2
  import { CleanupRegistry } from '../internal/class/cleanup-registry';
3
- import { $, devFlags, onoff, touchGlass } from '../internal/utils';
3
+ import { $, debug, onoff, touchGlass } from '../internal/utils';
4
4
  import { queryMorph } from '../morphdom';
5
5
  import { html } from '../tpl';
6
6
  /**
7
7
  * @summary A control that opens a menu of actions.
8
8
  *
9
- * @slot — The default slot.
9
+ * @slot — The default slot
10
10
  * @slot label
11
11
  */
12
12
  export class MenuView extends HTMLElement {
@@ -34,16 +34,14 @@ export class MenuView extends HTMLElement {
34
34
  this.#shadowRoot.appendChild(document.importNode(this.constructor.template, true));
35
35
  }
36
36
  attributeChangedCallback(name, oldValue, newValue) {
37
- if (devFlags.debug)
38
- 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
- if (devFlags.debug)
46
- console.debug(`${_a.name} ⚡️ will-close`);
44
+ debug(`${_a.name} ⚡️ will-close`);
47
45
  this.setAttribute('closing', '');
48
46
  Promise.allSettled(this.#dialog.getAnimations().map(({ finished }) => finished)).then(() => {
49
47
  if (!this.hasAttribute('closing'))
@@ -53,8 +51,7 @@ export class MenuView extends HTMLElement {
53
51
  });
54
52
  }
55
53
  if ('' === newValue && !this.#dialog.open) {
56
- if (devFlags.debug)
57
- console.debug(`${_a.name} ⚡️ will-open`);
54
+ debug(`${_a.name} ⚡️ will-open`);
58
55
  this.removeAttribute('closing');
59
56
  const form = this.#shadowRoot.querySelector('form');
60
57
  form.scrollTop = 0;
@@ -67,16 +64,14 @@ export class MenuView extends HTMLElement {
67
64
  }
68
65
  }
69
66
  disconnectedCallback() {
70
- if (devFlags.debug)
71
- console.debug(`${_a.name} ⚡️ disconnect`);
67
+ debug(`${_a.name} ⚡️ disconnect`);
72
68
  const summaryPart = this.#shadowRoot.querySelector('[part*=menu-summary]'), dialogPart = this.#shadowRoot.querySelector('[part*=menu-dialog]');
73
69
  summaryPart?.style.removeProperty('anchor-name'); //$.prop('anchor-name', null, summaryPart)
74
70
  dialogPart?.style.removeProperty('position-anchor'); //$.prop('position-anchor', null, dialogPart)
75
71
  CleanupRegistry.unregister(this);
76
72
  }
77
73
  connectedCallback() {
78
- if (devFlags.debug)
79
- console.debug(`${_a.name} ⚡️ connect`);
74
+ debug(`${_a.name} ⚡️ connect`);
80
75
  this.#dialog = this.#shadowRoot.querySelector('dialog') ?? undefined;
81
76
  const trigger = this.#shadowRoot.querySelector('button') ?? undefined;
82
77
  CleanupRegistry.register(this, onoff('click', this.#handleTriggerClick, trigger).on());
@@ -100,8 +95,7 @@ export class MenuView extends HTMLElement {
100
95
  dialogPart?.style.setProperty('position-anchor', newAnchorName); // $.prop('position-anchor', newAnchorName, dialogPart) //
101
96
  }
102
97
  #handleDialogClick = ({ type, target }) => {
103
- if (devFlags.debug)
104
- console.debug(`${_a.name} ⚡️ ${type}`);
98
+ debug(`${_a.name} ⚡️ ${type}`);
105
99
  if (!(target instanceof HTMLElement))
106
100
  return;
107
101
  if (target.matches('dialog'))
@@ -118,22 +112,19 @@ export class MenuView extends HTMLElement {
118
112
  // event.stopPropagation() //NOTE: add this only if not nested, disposes all nicely if ommited
119
113
  };
120
114
  #handleTriggerClick = (evt) => {
121
- if (devFlags.debug)
122
- console.debug(`${_a.name} ⚡️ ${evt?.type}`);
115
+ debug(`${_a.name} ⚡️ ${evt?.type}`);
123
116
  this.toggleAttribute('open', true);
124
117
  };
125
118
  // intercept to modify open attr
126
119
  #handleDialogCancel = (evt) => {
127
- if (devFlags.debug)
128
- console.debug(`${_a.name} ⚡️ ${evt?.type}`);
120
+ debug(`${_a.name} ⚡️ ${evt?.type}`);
129
121
  if (!evt.cancelable)
130
122
  return;
131
123
  evt.preventDefault();
132
124
  this.toggleAttribute('open', false);
133
125
  };
134
126
  #handleDialogClose = (evt) => {
135
- if (devFlags.debug)
136
- console.debug(`${_a.name} ⚡️ ${evt?.type}`);
127
+ debug(`${_a.name} ⚡️ ${evt?.type}`);
137
128
  this.toggleAttribute('open', this.#shadowRoot.querySelector('dialog')?.open ?? false);
138
129
  };
139
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,7 +1,7 @@
1
1
  var _a;
2
2
  import { CleanupRegistry } from '../internal/class/cleanup-registry';
3
3
  import { CSSStyleObserver } from '../internal/class/css-style-observer';
4
- import { add, devFlags, frame, onoff, slowHideShow, timeout } from '../internal/utils';
4
+ import { add, debug, frame, onoff, slowHideShow, timeout } from '../internal/utils';
5
5
  import { Snapshot } from '../snapshot';
6
6
  const observing = new WeakSet();
7
7
  function observeResizeEnd(el, callback, stableFrames = 4) {
@@ -69,7 +69,6 @@ function isIntersectingWithContainer(el, container, rootMargin = '0px 0px 0px 0p
69
69
  }
70
70
  /**
71
71
  *
72
- * @attr {grouped} background-style
73
72
  * @attr {boolean} padding
74
73
  * @attr {boolean} navigation-bar-auto-hide
75
74
  *
@@ -83,15 +82,13 @@ export class NavigationLargeTitle extends HTMLElement {
83
82
  super();
84
83
  }
85
84
  disconnectedCallback() {
86
- if (devFlags.debug)
87
- 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
- if (devFlags.debug)
94
- console.debug(`${_a.name} ⚡️ connect`);
91
+ debug(`${_a.name} ⚡️ connect`);
95
92
  const root = this.closest('scroll-view') ?? undefined;
96
93
  if (!root)
97
94
  return;
@@ -114,8 +111,7 @@ export class NavigationLargeTitle extends HTMLElement {
114
111
  });
115
112
  }
116
113
  #handleStyleChange = () => {
117
- if (devFlags.debug)
118
- console.debug(`${_a.name} ⚡️ style`);
114
+ debug(`${_a.name} ⚡️ style`);
119
115
  const root = this.closest('scroll-view') ?? undefined;
120
116
  if (!root)
121
117
  return;
@@ -160,8 +156,7 @@ export class NavigationLargeTitle extends HTMLElement {
160
156
  // this.#applySlowness(root, isIntersecting)
161
157
  // }
162
158
  #handleIntersect = (entries, { root }) => {
163
- if (devFlags.debug)
164
- console.debug(`${_a.name} ⚡️ intersect (${entries?.at(0)?.isIntersecting})`);
159
+ debug(`${_a.name} ⚡️ intersect (${entries?.at(0)?.isIntersecting})`);
165
160
  if (!(root instanceof HTMLElement))
166
161
  return;
167
162
  for (const { isIntersecting } of entries)
@@ -1,5 +1,5 @@
1
1
  import { NavigationView } from '../internal/class/navigation-view';
2
- import { devFlags } from '../internal/utils';
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,18 +8,15 @@ export class NavigationSplitView extends NavigationView {
8
8
  super();
9
9
  }
10
10
  attributeChangedCallback(name, oldValue, newValue) {
11
- if (devFlags.debug)
12
- console.debug(`${NavigationSplitView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
11
+ debug(`${NavigationSplitView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
13
12
  super.attributeChangedCallback(name, oldValue, newValue);
14
13
  }
15
14
  disconnectedCallback() {
16
- if (devFlags.debug)
17
- console.debug(`${NavigationSplitView.name} ⚡️ disconnect`);
15
+ debug(`${NavigationSplitView.name} ⚡️ disconnect`);
18
16
  super.disconnectedCallback();
19
17
  }
20
18
  connectedCallback() {
21
- if (devFlags.debug)
22
- console.debug(`${NavigationSplitView.name} ⚡️ connect`);
19
+ debug(`${NavigationSplitView.name} ⚡️ connect`);
23
20
  super.connectedCallback();
24
21
  }
25
22
  }
@@ -1,5 +1,5 @@
1
1
  import { NavigationView } from '../internal/class/navigation-view';
2
- import { devFlags } from '../internal/utils';
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,8 +8,7 @@ export class NavigationStack extends NavigationView {
8
8
  super();
9
9
  }
10
10
  attributeChangedCallback(name, oldValue, newValue) {
11
- if (devFlags.debug)
12
- console.debug(`${NavigationStack.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
11
+ debug(`${NavigationStack.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
13
12
  super.attributeChangedCallback(name, oldValue, newValue);
14
13
  switch (name) {
15
14
  case 'hidden':
@@ -17,13 +16,11 @@ export class NavigationStack extends NavigationView {
17
16
  }
18
17
  }
19
18
  disconnectedCallback() {
20
- if (devFlags.debug)
21
- console.debug(`${NavigationStack.name} ⚡️ disconnect`);
19
+ debug(`${NavigationStack.name} ⚡️ disconnect`);
22
20
  super.disconnectedCallback();
23
21
  }
24
22
  connectedCallback() {
25
- if (devFlags.debug)
26
- console.debug(`${NavigationStack.name} ⚡️ connect`);
23
+ debug(`${NavigationStack.name} ⚡️ connect`);
27
24
  super.connectedCallback();
28
25
  }
29
26
  }
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  var NavigationTitle_1;
8
8
  import { microtaskOnConnected } from '../internal/decorators';
9
- import { devFlags } from '../internal/utils';
9
+ import { debug } from '../internal/utils';
10
10
  import { queryMorph } from '../morphdom';
11
11
  import { html } from '../tpl';
12
12
  /**
@@ -22,17 +22,14 @@ let NavigationTitle = NavigationTitle_1 = class NavigationTitle extends HTMLElem
22
22
  super();
23
23
  }
24
24
  attributeChangedCallback(name, oldValue, newValue) {
25
- if (devFlags.debug)
26
- console.debug(`${NavigationTitle_1.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
25
+ debug(`${NavigationTitle_1.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
27
26
  this.#render(this.getAttribute('value'), this.getAttribute('subtitle'), this.getAttribute('system-image'), this.getAttribute('system-image-weight'));
28
27
  }
29
28
  disconnectedCallback() {
30
- if (devFlags.debug)
31
- console.debug(`${NavigationTitle_1.name} ⚡️ disconnect`);
29
+ debug(`${NavigationTitle_1.name} ⚡️ disconnect`);
32
30
  }
33
31
  connectedCallback() {
34
- if (devFlags.debug)
35
- console.debug(`${NavigationTitle_1.name} ⚡️ connect`);
32
+ debug(`${NavigationTitle_1.name} ⚡️ connect`);
36
33
  }
37
34
  #render = (title, subtitle, systemImage, systemImageWeight) => {
38
35
  queryMorph(':not([slot])', html `
@@ -1,5 +1,5 @@
1
1
  import { FormAssociatedBase } from '../internal/class/form-associated-base';
2
- declare const pickerStyles: readonly ["menu", "inline", "navigation-link", "sheet", "automatic"];
2
+ declare const pickerStyles: readonly ["menu", "inline", "navigation-link", "sheet", "radio-group", "automatic"];
3
3
  export type PickerStyle = (typeof pickerStyles)[number];
4
4
  export type DictEntry = {
5
5
  value: string;
@@ -12,34 +12,17 @@ export type Dictionary = DictEntry[];
12
12
  /**
13
13
  * @summary A control that selects one value from a set of options.
14
14
  *
15
- * @attr {menu|inline|navigation-link|sheet|automatic} picker-style
16
- *
17
- * @attr help — Adds a help tooltip to the trigger of the picker, if style supports one
18
- *
19
- * @attr {DictEntry[]} dictionary — Renders all options using this array
20
- *
21
15
  * @attr {vertical|horizontal|auto} label-value-placement
22
16
  *
23
- * @slot — The default slot.
17
+ * @attr {boolean} horizontal-radio-group-layout
18
+ *
19
+ * @slot — The default slot
24
20
  * @slot label
25
21
  * @slot list
26
22
  * @slot {HTMLOptionElement[]} validity-options
27
23
  */
28
24
  export declare class PickerView extends FormAssociatedBase {
29
25
  #private;
30
- static get ATTR(): {
31
- PLACEHOLDER: string;
32
- PLACEHOLDER_ICON: string;
33
- LABEL: string;
34
- PICKER_STYLE: string;
35
- SELECTION: string;
36
- SEARCHABLE: string;
37
- CURRENT_VALUE_LABEL: string;
38
- CURRENT_VALUE_ICON: string;
39
- TRIGGER_HELP: string;
40
- DICTIONARY: string;
41
- REQUIRED: string;
42
- };
43
26
  static get observedAttributes(): string[];
44
27
  get selection(): string;
45
28
  set selection(v: string);