inputs-wc 0.1.159 → 0.1.160

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CaCIOygp.js');
4
- var tw = require('./tw-BVKaWdRb.js');
3
+ var index = require('./index-B3ov4LWC.js');
4
+ var tw = require('./tw-BBYvFZe0.js');
5
5
 
6
6
  const altInputCss = () => ``;
7
7
 
@@ -5,7 +5,7 @@ const BUILD = /* inputs-wc */ { allRenderFn: true, appendChildSlotFix: false, as
5
5
  const Env = /* inputs-wc */ {};
6
6
 
7
7
  /*
8
- Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var Build = {
@@ -2114,6 +2114,31 @@ var getMode = (ref) => {
2114
2114
  return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
2115
2115
  };
2116
2116
 
2117
+ // src/runtime/normalize-watchers.ts
2118
+ var normalizeWatchers = (raw) => {
2119
+ if (!raw) return void 0;
2120
+ const keys = Object.keys(raw);
2121
+ if (keys.length === 0) return void 0;
2122
+ let hasLegacy = false;
2123
+ for (const propName of keys) {
2124
+ if (hasLegacy) break;
2125
+ for (const h2 of raw[propName]) {
2126
+ if (typeof h2 === "string") {
2127
+ hasLegacy = true;
2128
+ break;
2129
+ }
2130
+ }
2131
+ }
2132
+ if (!hasLegacy) return raw;
2133
+ const out = {};
2134
+ for (const propName of keys) {
2135
+ out[propName] = raw[propName].map(
2136
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
2137
+ );
2138
+ }
2139
+ return out;
2140
+ };
2141
+
2117
2142
  // src/utils/remote-value.ts
2118
2143
  var RemoteValue = class _RemoteValue {
2119
2144
  /**
@@ -2210,11 +2235,19 @@ var RemoteValue = class _RemoteValue {
2210
2235
  };
2211
2236
 
2212
2237
  // src/utils/serialize.ts
2238
+ function decodeBase64Unicode(base64) {
2239
+ const binary = atob(base64);
2240
+ const bytes = new Uint8Array(binary.length);
2241
+ for (let i2 = 0; i2 < binary.length; i2++) {
2242
+ bytes[i2] = binary.charCodeAt(i2);
2243
+ }
2244
+ return new TextDecoder().decode(bytes);
2245
+ }
2213
2246
  function deserializeProperty(value) {
2214
2247
  if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
2215
2248
  return value;
2216
2249
  }
2217
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
2250
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
2218
2251
  }
2219
2252
 
2220
2253
  // src/runtime/parse-property-value.ts
@@ -3512,7 +3545,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3512
3545
  if (BUILD.member && cmpMeta.$members$ || BUILD.propChangeCallback) {
3513
3546
  if (BUILD.propChangeCallback) {
3514
3547
  if (Cstr.watchers && !cmpMeta.$watchers$) {
3515
- cmpMeta.$watchers$ = Cstr.watchers;
3548
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3516
3549
  }
3517
3550
  if (Cstr.deserializers && !cmpMeta.$deserializers$) {
3518
3551
  cmpMeta.$deserializers$ = Cstr.deserializers;
@@ -3690,11 +3723,13 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
3690
3723
  return;
3691
3724
  }
3692
3725
  const propFlags = members.find(([m]) => m === propName);
3693
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
3726
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
3727
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
3728
+ if (isBooleanTarget) {
3694
3729
  newValue = newValue === null || newValue === "false" ? false : true;
3695
3730
  }
3696
3731
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
3697
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
3732
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
3698
3733
  this[propName] = newValue;
3699
3734
  }
3700
3735
  });
@@ -3742,7 +3777,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
3742
3777
  }
3743
3778
  if (BUILD.member && !Cstr.isProxied) {
3744
3779
  if (BUILD.propChangeCallback) {
3745
- cmpMeta.$watchers$ = Cstr.watchers;
3780
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3746
3781
  cmpMeta.$serializers$ = Cstr.serializers;
3747
3782
  cmpMeta.$deserializers$ = Cstr.deserializers;
3748
3783
  }
@@ -3954,7 +3989,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
3954
3989
  cmpMeta.$listeners$ = compactMeta[3];
3955
3990
  }
3956
3991
  if (BUILD.propChangeCallback) {
3957
- cmpMeta.$watchers$ = Cstr.$watchers$;
3992
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);
3958
3993
  cmpMeta.$deserializers$ = Cstr.$deserializers$;
3959
3994
  cmpMeta.$serializers$ = Cstr.$serializers$;
3960
3995
  }
@@ -4110,7 +4145,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4110
4145
  let hasSlotRelocation = false;
4111
4146
  lazyBundles.map((lazyBundle) => {
4112
4147
  lazyBundle[1].map((compactMeta) => {
4113
- var _a2, _b, _c;
4148
+ var _a2, _b;
4114
4149
  const cmpMeta = {
4115
4150
  $flags$: compactMeta[0],
4116
4151
  $tagName$: compactMeta[1],
@@ -4130,9 +4165,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4130
4165
  cmpMeta.$attrsToReflect$ = [];
4131
4166
  }
4132
4167
  if (BUILD.propChangeCallback) {
4133
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
4134
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
4135
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
4168
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
4169
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
4170
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
4136
4171
  }
4137
4172
  if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4138
4173
  cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
@@ -4340,15 +4375,21 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
4340
4375
  var setPlatformOptions = (opts) => Object.assign(plt, opts);
4341
4376
 
4342
4377
  // src/runtime/render.ts
4378
+ var hostRefCache = /* @__PURE__ */ new WeakMap();
4343
4379
  function render(vnode, container) {
4344
- const cmpMeta = {
4345
- $flags$: 0,
4346
- $tagName$: container.tagName
4347
- };
4348
- const ref = {
4349
- $cmpMeta$: cmpMeta,
4350
- $hostElement$: container
4351
- };
4380
+ let ref = hostRefCache.get(container);
4381
+ if (!ref) {
4382
+ const cmpMeta = {
4383
+ $flags$: 0,
4384
+ $tagName$: container.tagName
4385
+ };
4386
+ ref = {
4387
+ $flags$: 0,
4388
+ $cmpMeta$: cmpMeta,
4389
+ $hostElement$: container
4390
+ };
4391
+ hostRefCache.set(container, ref);
4392
+ }
4352
4393
  renderVdom(ref, vnode);
4353
4394
  }
4354
4395
 
@@ -4604,6 +4645,7 @@ var StencilCore = /*#__PURE__*/Object.freeze({
4604
4645
  modeResolutionChain: modeResolutionChain,
4605
4646
  needsScopedSSR: needsScopedSSR,
4606
4647
  nextTick: nextTick,
4648
+ normalizeWatchers: normalizeWatchers,
4607
4649
  parsePropertyValue: parsePropertyValue,
4608
4650
  plt: plt,
4609
4651
  postUpdateComponent: postUpdateComponent,
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CaCIOygp.js');
3
+ var index = require('./index-B3ov4LWC.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.43.4 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CaCIOygp.js');
3
+ var index = require('./index-B3ov4LWC.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CaCIOygp.js');
4
- var tw = require('./tw-BVKaWdRb.js');
3
+ var index = require('./index-B3ov4LWC.js');
4
+ var tw = require('./tw-BBYvFZe0.js');
5
5
 
6
6
  const numericInputCss = () => ``;
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CaCIOygp.js');
4
- var tw = require('./tw-BVKaWdRb.js');
3
+ var index = require('./index-B3ov4LWC.js');
4
+ var tw = require('./tw-BBYvFZe0.js');
5
5
 
6
6
  const Button = props => {
7
7
  const { label, callback } = props;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CaCIOygp.js');
3
+ var index = require('./index-B3ov4LWC.js');
4
4
 
5
5
  const appendToMap = (map, propName, value) => {
6
6
  let refs = map.get(propName);
@@ -7,7 +7,7 @@
7
7
  "mixins": [],
8
8
  "compiler": {
9
9
  "name": "@stencil/core",
10
- "version": "4.43.3",
10
+ "version": "4.43.4",
11
11
  "typescriptVersion": "5.8.3"
12
12
  },
13
13
  "collections": [],
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrxhBvc1.js';
2
- import { a as actions, t as tw } from './tw-BRG2GzjE.js';
1
+ import { r as registerInstance, h } from './index-CeMCsS96.js';
2
+ import { a as actions, t as tw } from './tw-CMZHPmeS.js';
3
3
 
4
4
  const altInputCss = () => ``;
5
5
 
@@ -3,7 +3,7 @@ const BUILD = /* inputs-wc */ { allRenderFn: true, appendChildSlotFix: false, as
3
3
  const Env = /* inputs-wc */ {};
4
4
 
5
5
  /*
6
- Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var Build = {
@@ -2112,6 +2112,31 @@ var getMode = (ref) => {
2112
2112
  return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
2113
2113
  };
2114
2114
 
2115
+ // src/runtime/normalize-watchers.ts
2116
+ var normalizeWatchers = (raw) => {
2117
+ if (!raw) return void 0;
2118
+ const keys = Object.keys(raw);
2119
+ if (keys.length === 0) return void 0;
2120
+ let hasLegacy = false;
2121
+ for (const propName of keys) {
2122
+ if (hasLegacy) break;
2123
+ for (const h2 of raw[propName]) {
2124
+ if (typeof h2 === "string") {
2125
+ hasLegacy = true;
2126
+ break;
2127
+ }
2128
+ }
2129
+ }
2130
+ if (!hasLegacy) return raw;
2131
+ const out = {};
2132
+ for (const propName of keys) {
2133
+ out[propName] = raw[propName].map(
2134
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
2135
+ );
2136
+ }
2137
+ return out;
2138
+ };
2139
+
2115
2140
  // src/utils/remote-value.ts
2116
2141
  var RemoteValue = class _RemoteValue {
2117
2142
  /**
@@ -2208,11 +2233,19 @@ var RemoteValue = class _RemoteValue {
2208
2233
  };
2209
2234
 
2210
2235
  // src/utils/serialize.ts
2236
+ function decodeBase64Unicode(base64) {
2237
+ const binary = atob(base64);
2238
+ const bytes = new Uint8Array(binary.length);
2239
+ for (let i2 = 0; i2 < binary.length; i2++) {
2240
+ bytes[i2] = binary.charCodeAt(i2);
2241
+ }
2242
+ return new TextDecoder().decode(bytes);
2243
+ }
2211
2244
  function deserializeProperty(value) {
2212
2245
  if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
2213
2246
  return value;
2214
2247
  }
2215
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
2248
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
2216
2249
  }
2217
2250
 
2218
2251
  // src/runtime/parse-property-value.ts
@@ -3510,7 +3543,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3510
3543
  if (BUILD.member && cmpMeta.$members$ || BUILD.propChangeCallback) {
3511
3544
  if (BUILD.propChangeCallback) {
3512
3545
  if (Cstr.watchers && !cmpMeta.$watchers$) {
3513
- cmpMeta.$watchers$ = Cstr.watchers;
3546
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3514
3547
  }
3515
3548
  if (Cstr.deserializers && !cmpMeta.$deserializers$) {
3516
3549
  cmpMeta.$deserializers$ = Cstr.deserializers;
@@ -3688,11 +3721,13 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
3688
3721
  return;
3689
3722
  }
3690
3723
  const propFlags = members.find(([m]) => m === propName);
3691
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
3724
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
3725
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
3726
+ if (isBooleanTarget) {
3692
3727
  newValue = newValue === null || newValue === "false" ? false : true;
3693
3728
  }
3694
3729
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
3695
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
3730
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
3696
3731
  this[propName] = newValue;
3697
3732
  }
3698
3733
  });
@@ -3740,7 +3775,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
3740
3775
  }
3741
3776
  if (BUILD.member && !Cstr.isProxied) {
3742
3777
  if (BUILD.propChangeCallback) {
3743
- cmpMeta.$watchers$ = Cstr.watchers;
3778
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3744
3779
  cmpMeta.$serializers$ = Cstr.serializers;
3745
3780
  cmpMeta.$deserializers$ = Cstr.deserializers;
3746
3781
  }
@@ -3952,7 +3987,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
3952
3987
  cmpMeta.$listeners$ = compactMeta[3];
3953
3988
  }
3954
3989
  if (BUILD.propChangeCallback) {
3955
- cmpMeta.$watchers$ = Cstr.$watchers$;
3990
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);
3956
3991
  cmpMeta.$deserializers$ = Cstr.$deserializers$;
3957
3992
  cmpMeta.$serializers$ = Cstr.$serializers$;
3958
3993
  }
@@ -4108,7 +4143,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4108
4143
  let hasSlotRelocation = false;
4109
4144
  lazyBundles.map((lazyBundle) => {
4110
4145
  lazyBundle[1].map((compactMeta) => {
4111
- var _a2, _b, _c;
4146
+ var _a2, _b;
4112
4147
  const cmpMeta = {
4113
4148
  $flags$: compactMeta[0],
4114
4149
  $tagName$: compactMeta[1],
@@ -4128,9 +4163,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
4128
4163
  cmpMeta.$attrsToReflect$ = [];
4129
4164
  }
4130
4165
  if (BUILD.propChangeCallback) {
4131
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
4132
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
4133
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
4166
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
4167
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
4168
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
4134
4169
  }
4135
4170
  if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4136
4171
  cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
@@ -4338,15 +4373,21 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
4338
4373
  var setPlatformOptions = (opts) => Object.assign(plt, opts);
4339
4374
 
4340
4375
  // src/runtime/render.ts
4376
+ var hostRefCache = /* @__PURE__ */ new WeakMap();
4341
4377
  function render(vnode, container) {
4342
- const cmpMeta = {
4343
- $flags$: 0,
4344
- $tagName$: container.tagName
4345
- };
4346
- const ref = {
4347
- $cmpMeta$: cmpMeta,
4348
- $hostElement$: container
4349
- };
4378
+ let ref = hostRefCache.get(container);
4379
+ if (!ref) {
4380
+ const cmpMeta = {
4381
+ $flags$: 0,
4382
+ $tagName$: container.tagName
4383
+ };
4384
+ ref = {
4385
+ $flags$: 0,
4386
+ $cmpMeta$: cmpMeta,
4387
+ $hostElement$: container
4388
+ };
4389
+ hostRefCache.set(container, ref);
4390
+ }
4350
4391
  renderVdom(ref, vnode);
4351
4392
  }
4352
4393
 
@@ -4602,6 +4643,7 @@ var StencilCore = /*#__PURE__*/Object.freeze({
4602
4643
  modeResolutionChain: modeResolutionChain,
4603
4644
  needsScopedSSR: needsScopedSSR,
4604
4645
  nextTick: nextTick,
4646
+ normalizeWatchers: normalizeWatchers,
4605
4647
  parsePropertyValue: parsePropertyValue,
4606
4648
  plt: plt,
4607
4649
  postUpdateComponent: postUpdateComponent,
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, B as BUILD, c as consoleDevInfo, w as win, N as NAMESPACE, H, b as bootstrapLazy } from './index-BrxhBvc1.js';
2
- export { s as setNonce } from './index-BrxhBvc1.js';
1
+ import { p as promiseResolve, B as BUILD, c as consoleDevInfo, w as win, N as NAMESPACE, H, b as bootstrapLazy } from './index-CeMCsS96.js';
2
+ export { s as setNonce } from './index-CeMCsS96.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.43.4 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-BrxhBvc1.js';
2
- export { s as setNonce } from './index-BrxhBvc1.js';
1
+ import { b as bootstrapLazy } from './index-CeMCsS96.js';
2
+ export { s as setNonce } from './index-CeMCsS96.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrxhBvc1.js';
2
- import { a as actions, t as tw } from './tw-BRG2GzjE.js';
1
+ import { r as registerInstance, h } from './index-CeMCsS96.js';
2
+ import { a as actions, t as tw } from './tw-CMZHPmeS.js';
3
3
 
4
4
  const numericInputCss = () => ``;
5
5
 
@@ -1,5 +1,5 @@
1
- import { h, r as registerInstance } from './index-BrxhBvc1.js';
2
- import { t as tw, a as actions, s as state } from './tw-BRG2GzjE.js';
1
+ import { h, r as registerInstance } from './index-CeMCsS96.js';
2
+ import { t as tw, a as actions, s as state } from './tw-CMZHPmeS.js';
3
3
 
4
4
  const Button = props => {
5
5
  const { label, callback } = props;
@@ -1,4 +1,4 @@
1
- import { S as StencilCore } from './index-BrxhBvc1.js';
1
+ import { S as StencilCore } from './index-CeMCsS96.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  let refs = map.get(propName);
@@ -1 +1 @@
1
- import{p as a,B as e,c as t,w as n,N as i,H as r,b as p}from"./p-BrxhBvc1.js";export{s as setNonce}from"./p-BrxhBvc1.js";import{g as m}from"./p-DQuL1Twl.js";var o=a=>{const e=a.cloneNode;a.cloneNode=function(a){if("TEMPLATE"===this.nodeName)return e.call(this,a);const s=e.call(this,!1),t=this.childNodes;if(a)for(let a=0;a<t.length;a++)2!==t[a].nodeType&&s.appendChild(t[a].cloneNode(!0));return s}};(()=>{e.isDev&&!e.isTesting&&t("Running in development mode."),e.cloneNodeFix&&o(r.prototype);const s=e.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((a=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(a.src)||a.getAttribute("data-stencil-namespace")===i)):null,p=import.meta.url,m=e.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==p&&(m.resourcesUrl=new URL(".",p).href),a(m)})().then((async a=>(await m(),p([["p-ba600b3a",[[0,"alt-input",{min:[2],max:[2],xId:[1,"x-id"],value:[2,"x-value"]}]]],["p-af993315",[[0,"numeric-input",{min:[2],max:[2],xId:[1,"x-id"],xPrefix:[1,"x-prefix"],value:[2,"x-value"]}]]],["p-06d089f6",[[1,"sample-form"]]]],a))));
1
+ import{p as e,B as a,c as t,w as n,N as i,H as r,b as p}from"./p-CeMCsS96.js";export{s as setNonce}from"./p-CeMCsS96.js";import{g as m}from"./p-DQuL1Twl.js";var o=e=>{const s=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return s.call(this,e);const a=s.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&a.appendChild(t[e].cloneNode(!0));return a}};(()=>{a.isDev&&!a.isTesting&&t("Running in development mode."),a.cloneNodeFix&&o(r.prototype);const s=a.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,p=import.meta.url,m=a.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==p&&(m.resourcesUrl=new URL(".",p).href),e(m)})().then((async e=>(await m(),p([["p-98513b70",[[0,"alt-input",{min:[2],max:[2],xId:[1,"x-id"],value:[2,"x-value"]}]]],["p-8e27176a",[[0,"numeric-input",{min:[2],max:[2],xId:[1,"x-id"],xPrefix:[1,"x-prefix"],value:[2,"x-value"]}]]],["p-80b305af",[[1,"sample-form"]]]],e))));
@@ -1 +1 @@
1
- import{h as r,r as e}from"./p-BrxhBvc1.js";import{t as l,a as t,s as a}from"./p-B_FCxFmd.js";const o=e=>{const{label:t,callback:a}=e;return r("button",{class:l("mr-2 rounded-md border border-solid border-clrs-slate4 font-bold","bg-clrs-blue px-2 py-1 text-clrs-white","hover:bg-clrs-red"),onClick:a},t)},s=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"check")," ",r("g",{fill:l},r("path",t?{d:"M10 17L5 12L6.41 10.58L10 14.17L17.59 6.58L19 8M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3Z"}:{d:"M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3M19 5V19H5V5H19Z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},i=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"radio")," ",r("g",{fill:l},r("path",t?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},c=class{constructor(r){e(this,r)}refresh(){t.refresh()}render(){const{items:e,itemSets:l,pick:c}=a,d=a.tag,n=l.map(((e,l)=>r("span",{onClick:()=>t.pick(l)},r(i,{selected:l==c})))),h=e.map((({key:e,value:l})=>r(d,{"x-id":e,"x-value":l,max:20})));return r("div",{class:"flex flex-col gap-2 text-clrs-navy"},r("div",{class:"flex"},r(o,{label:"Refresh",callback:this.refresh}),r("span",{onClick:()=>t.toggle()},r(s,{selected:"numeric-input"===d,label:d})),...n),...h)}};c.style="@layer properties; @layer theme,base,components,utilities; @layer theme{:root,:host{--spacing:0.25rem;--font-weight-bold:700;--radius-md:0.375rem}}@layer utilities{.start{inset-inline-start:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-1{padding-block:calc(var(--spacing) * 1)}.text-right{text-align:right}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:bg-clrs-red{&:hover{@media (hover: hover){background-color:var(--clrs-red, #ff4136)}}}}";export{c as sample_form}
1
+ import{h as r,r as e}from"./p-CeMCsS96.js";import{t as l,a as t,s as a}from"./p-iD5rQrvi.js";const o=e=>{const{label:t,callback:a}=e;return r("button",{class:l("mr-2 rounded-md border border-solid border-clrs-slate4 font-bold","bg-clrs-blue px-2 py-1 text-clrs-white","hover:bg-clrs-red"),onClick:a},t)},s=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"check")," ",r("g",{fill:l},r("path",t?{d:"M10 17L5 12L6.41 10.58L10 14.17L17.59 6.58L19 8M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3Z"}:{d:"M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3M19 5V19H5V5H19Z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},i=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"radio")," ",r("g",{fill:l},r("path",t?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},c=class{constructor(r){e(this,r)}refresh(){t.refresh()}render(){const{items:e,itemSets:l,pick:c}=a,d=a.tag,n=l.map(((e,l)=>r("span",{onClick:()=>t.pick(l)},r(i,{selected:l==c})))),h=e.map((({key:e,value:l})=>r(d,{"x-id":e,"x-value":l,max:20})));return r("div",{class:"flex flex-col gap-2 text-clrs-navy"},r("div",{class:"flex"},r(o,{label:"Refresh",callback:this.refresh}),r("span",{onClick:()=>t.toggle()},r(s,{selected:"numeric-input"===d,label:d})),...n),...h)}};c.style="@layer properties; @layer theme,base,components,utilities; @layer theme{:root,:host{--spacing:0.25rem;--font-weight-bold:700;--radius-md:0.375rem}}@layer utilities{.start{inset-inline-start:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-1{padding-block:calc(var(--spacing) * 1)}.text-right{text-align:right}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:bg-clrs-red{&:hover{@media (hover: hover){background-color:var(--clrs-red, #ff4136)}}}}";export{c as sample_form}
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-BrxhBvc1.js";import{a as i,t as r}from"./p-B_FCxFmd.js";const h=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.xPrefix="",this.value=0,this.labelFor=t=>t>0?this.xPrefix.concat(t.toLocaleString()):"",this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target.value.replace(/[^0-9]/g,""),r=""!==s?parseInt(s):0;i.update(this.xId,r)}}render(){return s("input",{key:"7bc740cc171519ea2928f1b63054bd8566605248",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"text",onInput:this.handleInput,value:this.labelFor(this.value)})}};h.style="";export{h as numeric_input}
1
+ import{r as t,h as s}from"./p-CeMCsS96.js";import{a as i,t as r}from"./p-iD5rQrvi.js";const h=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.xPrefix="",this.value=0,this.labelFor=t=>t>0?this.xPrefix.concat(t.toLocaleString()):"",this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target.value.replace(/[^0-9]/g,""),r=""!==s?parseInt(s):0;i.update(this.xId,r)}}render(){return s("input",{key:"7bc740cc171519ea2928f1b63054bd8566605248",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"text",onInput:this.handleInput,value:this.labelFor(this.value)})}};h.style="";export{h as numeric_input}
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-BrxhBvc1.js";import{a as i,t as r}from"./p-B_FCxFmd.js";const h=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.value=0,this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target;i.update(this.xId,""!=s.value?s.value:0)}}render(){return s("input",{key:"4f722d7778500c3f5038667e0b977dd04389c185",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"number",onInput:this.handleInput,value:this.value})}};h.style="";export{h as alt_input}
1
+ import{r as t,h as s}from"./p-CeMCsS96.js";import{a as i,t as r}from"./p-iD5rQrvi.js";const e=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.value=0,this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target;i.update(this.xId,""!=s.value?s.value:0)}}render(){return s("input",{key:"4f722d7778500c3f5038667e0b977dd04389c185",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"number",onInput:this.handleInput,value:this.value})}};e.style="";export{e as alt_input}