inputs-wc 0.1.144 → 0.1.145

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-BKqtxrh8.js');
4
- var tw = require('./tw-CZuzOxdS.js');
3
+ var index = require('./index-B6fgpYlw.js');
4
+ var tw = require('./tw-DWlWAlLg.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.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var Build = {
@@ -42,6 +42,19 @@ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
42
42
  var TYPE_CONSTANT = "type";
43
43
  var VALUE_CONSTANT = "value";
44
44
  var SERIALIZED_PREFIX = "serialized:";
45
+
46
+ // src/utils/get-prop-descriptor.ts
47
+ function getPropertyDescriptor(obj, memberName, getOnly) {
48
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
49
+ while (obj && obj !== stopAt) {
50
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
51
+ if (desc && (!getOnly || desc.get)) return desc;
52
+ obj = Object.getPrototypeOf(obj);
53
+ }
54
+ return void 0;
55
+ }
56
+
57
+ // src/utils/es2022-rewire-class-members.ts
45
58
  var reWireGetterSetter = (instance, hostRef) => {
46
59
  var _a;
47
60
  const cmpMeta = hostRef.$cmpMeta$;
@@ -49,7 +62,7 @@ var reWireGetterSetter = (instance, hostRef) => {
49
62
  members.map(([memberName, [memberFlags]]) => {
50
63
  if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
51
64
  const ogValue = instance[memberName];
52
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
65
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
53
66
  if (ogDescriptor) {
54
67
  Object.defineProperty(instance, memberName, {
55
68
  get() {
@@ -62,18 +75,14 @@ var reWireGetterSetter = (instance, hostRef) => {
62
75
  enumerable: true
63
76
  });
64
77
  }
65
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
78
+ if (hostRef.$instanceValues$.has(memberName)) {
79
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
80
+ } else if (ogValue !== void 0) {
81
+ instance[memberName] = ogValue;
82
+ }
66
83
  }
67
84
  });
68
85
  };
69
- function getPropertyDescriptor(obj, memberName) {
70
- while (obj) {
71
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
72
- if (desc == null ? void 0 : desc.get) return desc;
73
- obj = Object.getPrototypeOf(obj);
74
- }
75
- return void 0;
76
- }
77
86
 
78
87
  // src/client/client-host-ref.ts
79
88
  var getHostRef = (ref) => {
@@ -3515,7 +3524,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3515
3524
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3516
3525
  members.map(([memberName, [memberFlags]]) => {
3517
3526
  if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3518
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
3527
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
3519
3528
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3520
3529
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3521
3530
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -3862,7 +3871,7 @@ var connectedCallback = (elm) => {
3862
3871
  }
3863
3872
  if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
3864
3873
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3865
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
3874
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
3866
3875
  const value = elm[memberName];
3867
3876
  delete elm[memberName];
3868
3877
  elm[memberName] = value;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BKqtxrh8.js');
3
+ var index = require('./index-B6fgpYlw.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.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.43.2 | 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-BKqtxrh8.js');
3
+ var index = require('./index-B6fgpYlw.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-BKqtxrh8.js');
4
- var tw = require('./tw-CZuzOxdS.js');
3
+ var index = require('./index-B6fgpYlw.js');
4
+ var tw = require('./tw-DWlWAlLg.js');
5
5
 
6
6
  const numericInputCss = () => ``;
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BKqtxrh8.js');
4
- var tw = require('./tw-CZuzOxdS.js');
3
+ var index = require('./index-B6fgpYlw.js');
4
+ var tw = require('./tw-DWlWAlLg.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-BKqtxrh8.js');
3
+ var index = require('./index-B6fgpYlw.js');
4
4
 
5
5
  const appendToMap = (map, propName, value) => {
6
6
  let refs = map.get(propName);
@@ -4,9 +4,10 @@
4
4
  "components/numeric-input/numeric-input.js",
5
5
  "components/sample-form/sample-form.js"
6
6
  ],
7
+ "mixins": [],
7
8
  "compiler": {
8
9
  "name": "@stencil/core",
9
- "version": "4.43.1",
10
+ "version": "4.43.2",
10
11
  "typescriptVersion": "5.8.3"
11
12
  },
12
13
  "collections": [],
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-Ct9t3Noq.js';
2
- import { a as actions, t as tw } from './tw-CQMOSYa1.js';
1
+ import { r as registerInstance, h } from './index-QOexTp2C.js';
2
+ import { a as actions, t as tw } from './tw-CQq7v5BY.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.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var Build = {
@@ -40,6 +40,19 @@ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
40
40
  var TYPE_CONSTANT = "type";
41
41
  var VALUE_CONSTANT = "value";
42
42
  var SERIALIZED_PREFIX = "serialized:";
43
+
44
+ // src/utils/get-prop-descriptor.ts
45
+ function getPropertyDescriptor(obj, memberName, getOnly) {
46
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
47
+ while (obj && obj !== stopAt) {
48
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
49
+ if (desc && (!getOnly || desc.get)) return desc;
50
+ obj = Object.getPrototypeOf(obj);
51
+ }
52
+ return void 0;
53
+ }
54
+
55
+ // src/utils/es2022-rewire-class-members.ts
43
56
  var reWireGetterSetter = (instance, hostRef) => {
44
57
  var _a;
45
58
  const cmpMeta = hostRef.$cmpMeta$;
@@ -47,7 +60,7 @@ var reWireGetterSetter = (instance, hostRef) => {
47
60
  members.map(([memberName, [memberFlags]]) => {
48
61
  if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
49
62
  const ogValue = instance[memberName];
50
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
63
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
51
64
  if (ogDescriptor) {
52
65
  Object.defineProperty(instance, memberName, {
53
66
  get() {
@@ -60,18 +73,14 @@ var reWireGetterSetter = (instance, hostRef) => {
60
73
  enumerable: true
61
74
  });
62
75
  }
63
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
76
+ if (hostRef.$instanceValues$.has(memberName)) {
77
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
78
+ } else if (ogValue !== void 0) {
79
+ instance[memberName] = ogValue;
80
+ }
64
81
  }
65
82
  });
66
83
  };
67
- function getPropertyDescriptor(obj, memberName) {
68
- while (obj) {
69
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
70
- if (desc == null ? void 0 : desc.get) return desc;
71
- obj = Object.getPrototypeOf(obj);
72
- }
73
- return void 0;
74
- }
75
84
 
76
85
  // src/client/client-host-ref.ts
77
86
  var getHostRef = (ref) => {
@@ -3513,7 +3522,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3513
3522
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3514
3523
  members.map(([memberName, [memberFlags]]) => {
3515
3524
  if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3516
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
3525
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
3517
3526
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3518
3527
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3519
3528
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -3860,7 +3869,7 @@ var connectedCallback = (elm) => {
3860
3869
  }
3861
3870
  if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
3862
3871
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3863
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
3872
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
3864
3873
  const value = elm[memberName];
3865
3874
  delete elm[memberName];
3866
3875
  elm[memberName] = value;
@@ -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-Ct9t3Noq.js';
2
- export { s as setNonce } from './index-Ct9t3Noq.js';
1
+ import { p as promiseResolve, B as BUILD, c as consoleDevInfo, w as win, N as NAMESPACE, H, b as bootstrapLazy } from './index-QOexTp2C.js';
2
+ export { s as setNonce } from './index-QOexTp2C.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.43.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-Ct9t3Noq.js';
2
- export { s as setNonce } from './index-Ct9t3Noq.js';
1
+ import { b as bootstrapLazy } from './index-QOexTp2C.js';
2
+ export { s as setNonce } from './index-QOexTp2C.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-Ct9t3Noq.js';
2
- import { a as actions, t as tw } from './tw-CQMOSYa1.js';
1
+ import { r as registerInstance, h } from './index-QOexTp2C.js';
2
+ import { a as actions, t as tw } from './tw-CQq7v5BY.js';
3
3
 
4
4
  const numericInputCss = () => ``;
5
5
 
@@ -1,5 +1,5 @@
1
- import { h, r as registerInstance } from './index-Ct9t3Noq.js';
2
- import { t as tw, a as actions, s as state } from './tw-CQMOSYa1.js';
1
+ import { h, r as registerInstance } from './index-QOexTp2C.js';
2
+ import { t as tw, a as actions, s as state } from './tw-CQq7v5BY.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-Ct9t3Noq.js';
1
+ import { S as StencilCore } from './index-QOexTp2C.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  let refs = map.get(propName);
@@ -1 +1 @@
1
- import{p as t,B as a,c as e,w as n,N as i,H as r,b as p}from"./p-Ct9t3Noq.js";export{s as setNonce}from"./p-Ct9t3Noq.js";import{g as m}from"./p-DQuL1Twl.js";var o=t=>{const a=t.cloneNode;t.cloneNode=function(t){if("TEMPLATE"===this.nodeName)return a.call(this,t);const e=a.call(this,!1),s=this.childNodes;if(t)for(let t=0;t<s.length;t++)2!==s[t].nodeType&&e.appendChild(s[t].cloneNode(!0));return e}};(()=>{a.isDev&&!a.isTesting&&e("Running in development mode."),a.cloneNodeFix&&o(r.prototype);const s=a.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((t=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(t.src)||t.getAttribute("data-stencil-namespace")===i)):null,p=import.meta.url,m=a.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==p&&(m.resourcesUrl=new URL(".",p).href),t(m)})().then((async t=>(await m(),p([["p-af0d4d40",[[0,"alt-input",{min:[2],max:[2],xId:[1,"x-id"],value:[2,"x-value"]}]]],["p-10e57212",[[0,"numeric-input",{min:[2],max:[2],xId:[1,"x-id"],xPrefix:[1,"x-prefix"],value:[2,"x-value"]}]]],["p-06b0a719",[[1,"sample-form"]]]],t))));
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-QOexTp2C.js";export{s as setNonce}from"./p-QOexTp2C.js";import{g as m}from"./p-DQuL1Twl.js";var o=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const s=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&s.appendChild(t[e].cloneNode(!0));return s}};(()=>{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-3c2365d1",[[0,"alt-input",{min:[2],max:[2],xId:[1,"x-id"],value:[2,"x-value"]}]]],["p-c6cd3a89",[[0,"numeric-input",{min:[2],max:[2],xId:[1,"x-id"],xPrefix:[1,"x-prefix"],value:[2,"x-value"]}]]],["p-750bddcb",[[1,"sample-form"]]]],e))));
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-Ct9t3Noq.js";import{a as i,t as r}from"./p-VFeTkGUU.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}
1
+ import{r as t,h as s}from"./p-QOexTp2C.js";import{a as i,t as r}from"./p-CquuxCj0.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}
@@ -1 +1 @@
1
- import{h as r,r as e}from"./p-Ct9t3Noq.js";import{t as l,a as t,s as o}from"./p-VFeTkGUU.js";const a=e=>{const{label:t,callback:o}=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:o},t)},s=e=>{const l=e.hex||"currentColor",t=e.selected||!1,o=e.size||24;return r("svg",{class:e.class,width:o,height:o,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,o=e.size||24;return r("svg",{class:e.class,width:o,height:o,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}=o,d=o.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(a,{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-QOexTp2C.js";import{t as l,a as t,s as a}from"./p-CquuxCj0.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}