@c2n/number-input 0.0.12 → 0.0.14

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.
@@ -0,0 +1 @@
1
+ {"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"src/number-input.ts","declarations":[{"kind":"class","description":"A form-associated number field backed by a native `<input type=\"number\">`. It keeps native decimal parsing,\nvalidation and Arrow Up/Down behavior, replaces browser-specific spinners with themeable decrement/increment\ncontrols, and supports prefix/suffix adornments, helper text and an error state.","name":"NumberInput","cssProperties":[{"type":{"text":"pixel"},"name":"--c2-number-input--min-height","default":"36px"},{"type":{"text":"border"},"name":"--c2-number-input--border","default":"1px solid #bcbcc6"},{"type":{"text":"border-radius"},"name":"--c2-number-input--border-radius","default":"6px"},{"type":{"text":"color"},"name":"--c2-number-input--color","default":"#18181b"},{"type":{"text":"color"},"name":"--c2-number-input--background","default":"#ffffff"},{"type":{"text":"font-size"},"name":"--c2-number-input--font-size","default":"14px"},{"type":{"text":"font-family"},"name":"--c2-number-input--font-family","default":"inherit"},{"type":{"text":"pixel"},"name":"--c2-number-input--line-height","default":"20px"},{"type":{"text":"padding"},"name":"--c2-number-input__value--padding","default":"6px 10px 6px 12px"},{"type":{"text":"pixel"},"name":"--c2-number-input__value--gap","default":"8px"},{"type":{"text":"color"},"name":"--c2-number-input__placeholder--color","default":"#71717a"},{"type":{"text":"border"},"name":"--c2-number-input__hover--border","default":"1px solid #a1a1aa"},{"type":{"text":"border"},"name":"--c2-number-input__focus--border","default":"1px solid #0265dc"},{"type":{"text":"outline"},"name":"--c2-number-input__focus--outline","default":"2px solid rgba(2, 101, 220, 0.4)"},{"type":{"text":"pixel"},"name":"--c2-number-input__focus--outline-offset","default":"0px"},{"type":{"text":"border"},"name":"--c2-number-input__error--border","default":"1px solid #dc2626"},{"type":{"text":"outline"},"name":"--c2-number-input__error__focus--outline","default":"2px solid rgba(220, 38, 38, 0.25)"},{"type":{"text":"color"},"name":"--c2-number-input__read-only--background","default":"#fafafa"},{"type":{"text":"opacity"},"name":"--c2-number-input__disabled--opacity","default":"0.38"},{"type":{"text":"pixel"},"name":"--c2-number-input__stepper--width","default":"28px"},{"type":{"text":"border"},"name":"--c2-number-input__stepper--border-left","default":"1px solid #e4e4e7"},{"type":{"text":"color"},"name":"--c2-number-input__stepper--color","default":"#71717a"},{"type":{"text":"color"},"name":"--c2-number-input__stepper__hover--color","default":"#18181b"},{"type":{"text":"color"},"name":"--c2-number-input__stepper__hover--background","default":"#f4f4f5"},{"type":{"text":"pixel"},"name":"--c2-number-input__stepper-icon--size","default":"14px"},{"type":{"text":"color"},"name":"--c2-number-input__adornment--color","default":"#71717a"},{"type":{"text":"font-size"},"name":"--c2-number-input__adornment--font-size","default":"14px"},{"type":{"text":"pixel"},"name":"--c2-number-input__supporting-text--gap","default":"4px"},{"type":{"text":"font-size"},"name":"--c2-number-input__supporting-text--font-size","default":"12px"},{"type":{"text":"pixel"},"name":"--c2-number-input__supporting-text--line-height","default":"16px"},{"type":{"text":"color"},"name":"--c2-number-input__supporting-text--color","default":"#71717a"},{"type":{"text":"color"},"name":"--c2-number-input__supporting-text__error--color","default":"#dc2626"}],"slots":[{"description":"Currency symbol or other adornment before the value.","name":"prefix"},{"description":"Unit or other adornment after the value.","name":"suffix"},{"description":"Replaces the minus icon in the decrement control.","name":"decrement-icon"},{"description":"Replaces the plus icon in the increment control.","name":"increment-icon"},{"description":"Rich helper content below the field. `help` and `error-text` are plain-text shortcuts.","name":"supporting-text"}],"members":[{"kind":"field","name":"formAssociated","type":{"text":"boolean"},"static":true,"default":"true"},{"kind":"field","name":"internals","privacy":"private","readonly":true},{"kind":"field","name":"customValidityMessage","type":{"text":"string"},"privacy":"private","default":"''"},{"kind":"field","name":"defaultValue","type":{"text":"string"},"privacy":"private","default":"''"},{"kind":"field","name":"defaultCaptured","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"disabledByForm","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"focused","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"slotPresence","privacy":"private","readonly":true,"default":"new SlotPresenceController(this, ['supporting-text'])"},{"kind":"field","name":"input","type":{"text":"HTMLInputElement | undefined"},"privacy":"private","readonly":true},{"kind":"field","name":"value","type":{"text":"string"},"default":"''","description":"Current numeric text, or an empty string. Use `valueAsNumber` for a parsed value.","attribute":"value","reflects":true},{"kind":"field","name":"min","type":{"text":"number | undefined"},"description":"Minimum valid value.","attribute":"min"},{"kind":"field","name":"max","type":{"text":"number | undefined"},"description":"Maximum valid value.","attribute":"max"},{"kind":"field","name":"step","type":{"text":"string"},"default":"'1'","description":"Increment used by Arrow keys and the step controls, or `any` to disable step controls.","attribute":"step"},{"kind":"field","name":"name","type":{"text":"string"},"default":"''","description":"Form field name.","attribute":"name"},{"kind":"field","name":"autocomplete","type":{"text":"string"},"default":"''","description":"Browser autocomplete hint.","attribute":"autocomplete"},{"kind":"field","name":"placeholder","type":{"text":"string"},"default":"''","description":"Text shown while the field is empty.","attribute":"placeholder"},{"kind":"field","name":"required","type":{"text":"boolean"},"default":"false","description":"Requires a number before the form can be submitted.","attribute":"required","reflects":true},{"kind":"field","name":"readOnly","type":{"text":"boolean"},"default":"false","description":"Prevents editing while keeping the value in form submission.","attribute":"readOnly","reflects":true},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Prevents interaction and excludes the value from form submission.","attribute":"disabled","reflects":true},{"kind":"field","name":"hideSteppers","type":{"text":"boolean"},"default":"false","description":"Hides the decrement and increment controls.","attribute":"hide-steppers","reflects":true},{"kind":"field","name":"error","type":{"text":"boolean"},"default":"false","description":"Applies the visual error state and sets `aria-invalid`.","attribute":"error","reflects":true},{"kind":"field","name":"help","type":{"text":"string"},"default":"''","description":"Helper text shown below the field.","attribute":"help"},{"kind":"field","name":"errorText","type":{"text":"string"},"default":"''","description":"Message shown below the field while `error` is set.","attribute":"error-text"},{"kind":"field","name":"ariaLabel","type":{"text":"string | null"},"default":"null","description":"Accessible name forwarded to the native number input.","attribute":"aria-label"},{"kind":"field","name":"form","readonly":true},{"kind":"field","name":"labels","readonly":true},{"kind":"field","name":"validity","readonly":true},{"kind":"field","name":"validationMessage","readonly":true},{"kind":"field","name":"willValidate","readonly":true},{"kind":"field","name":"valueAsNumber","description":"Parsed value, or `NaN` when empty.","readonly":true},{"kind":"method","name":"focus","parameters":[{"name":"options","optional":true,"type":{"text":"FocusOptions"}}]},{"kind":"method","name":"select","description":"Selects the numeric text."},{"kind":"method","name":"stepUp","parameters":[{"name":"amount","default":"1"}],"description":"Increases the value by `step` a given number of times."},{"kind":"method","name":"stepDown","parameters":[{"name":"amount","default":"1"}],"description":"Decreases the value by `step` a given number of times."},{"kind":"method","name":"checkValidity"},{"kind":"method","name":"reportValidity"},{"kind":"method","name":"setCustomValidity","parameters":[{"name":"message","type":{"text":"string"}}]},{"kind":"method","name":"formResetCallback"},{"kind":"method","name":"formDisabledCallback","parameters":[{"name":"disabled","type":{"text":"boolean"}}]},{"kind":"method","name":"formStateRestoreCallback","parameters":[{"name":"state","type":{"text":"string | File | FormData | null"}}]},{"kind":"field","name":"effectiveDisabled","privacy":"private","readonly":true},{"kind":"field","name":"steppersDisabled","privacy":"private","readonly":true},{"kind":"field","name":"atMinimum","privacy":"private","readonly":true},{"kind":"field","name":"atMaximum","privacy":"private","readonly":true},{"kind":"method","name":"handleInput","privacy":"private","parameters":[{"name":"event","type":{"text":"InputEvent"}}]},{"kind":"method","name":"handleChange","privacy":"private","parameters":[{"name":"event","type":{"text":"Event"}}]},{"kind":"method","name":"handleFocusIn","privacy":"private","parameters":[{"name":"event","type":{"text":"FocusEvent"}}]},{"kind":"method","name":"handleFocusOut","privacy":"private","parameters":[{"name":"event","type":{"text":"FocusEvent"}}]},{"kind":"method","name":"keepInputFocus","privacy":"private","parameters":[{"name":"event","type":{"text":"Event"}}]},{"kind":"method","name":"forwardFocus","privacy":"private","parameters":[{"name":"event","type":{"text":"Event"}}]},{"kind":"method","name":"stepBy","privacy":"private","parameters":[{"name":"amount","type":{"text":"number"}}]},{"kind":"method","name":"syncFormState","privacy":"private"},{"kind":"method","name":"renderStepper","privacy":"private","parameters":[{"name":"direction","type":{"text":"'down' | 'up'"}}]}],"events":[{"name":"input","type":{"text":"InputEvent"},"description":"Re-dispatched when typing or stepping changes the value."},{"name":"change","type":{"text":"Event"},"description":"Re-dispatched when a typed value is committed or a step control changes the value."}],"attributes":[{"name":"value","type":{"text":"string"},"default":"''","description":"Current numeric text, or an empty string. Use `valueAsNumber` for a parsed value.","fieldName":"value"},{"name":"min","type":{"text":"number | undefined"},"description":"Minimum valid value.","fieldName":"min"},{"name":"max","type":{"text":"number | undefined"},"description":"Maximum valid value.","fieldName":"max"},{"name":"step","type":{"text":"string"},"default":"'1'","description":"Increment used by Arrow keys and the step controls, or `any` to disable step controls.","fieldName":"step"},{"name":"name","type":{"text":"string"},"default":"''","description":"Form field name.","fieldName":"name"},{"name":"autocomplete","type":{"text":"string"},"default":"''","description":"Browser autocomplete hint.","fieldName":"autocomplete"},{"name":"placeholder","type":{"text":"string"},"default":"''","description":"Text shown while the field is empty.","fieldName":"placeholder"},{"name":"required","type":{"text":"boolean"},"default":"false","description":"Requires a number before the form can be submitted.","fieldName":"required"},{"name":"readonly","type":{"text":"boolean"},"default":"false","description":"Prevents editing while keeping the value in form submission.","fieldName":"readOnly"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Prevents interaction and excludes the value from form submission.","fieldName":"disabled"},{"name":"hide-steppers","type":{"text":"boolean"},"default":"false","description":"Hides the decrement and increment controls.","fieldName":"hideSteppers"},{"name":"error","type":{"text":"boolean"},"default":"false","description":"Applies the visual error state and sets `aria-invalid`.","fieldName":"error"},{"name":"help","type":{"text":"string"},"default":"''","description":"Helper text shown below the field.","fieldName":"help"},{"name":"error-text","type":{"text":"string"},"default":"''","description":"Message shown below the field while `error` is set.","fieldName":"errorText"},{"name":"aria-label","type":{"text":"string | null"},"default":"null","description":"Accessible name forwarded to the native number input.","fieldName":"ariaLabel"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"c2-number-input","customElement":true}],"exports":[{"kind":"js","name":"NumberInput","declaration":{"name":"NumberInput","module":"src/number-input.ts"}},{"kind":"custom-element-definition","name":"c2-number-input","declaration":{"name":"NumberInput","module":"src/number-input.ts"}}]}]}
@@ -1,7 +1,8 @@
1
1
  import { LitElement, html, nothing, unsafeCSS } from "lit";
2
- import { property, query, state } from "lit/decorators.js";
2
+ import { query, state } from "lit/decorators.js";
3
+ import { property } from "@c2n/core/lit-helper.js";
3
4
  import { customElement } from "@c2n/core/element-helper.js";
4
- import { redispatchEvent } from "@c2n/core/dom-helper.js";
5
+ import { SlotPresenceController, redispatchEvent } from "@c2n/core/dom-helper.js";
5
6
  import { classMap } from "lit/directives/class-map.js";
6
7
  import { ifDefined } from "lit/directives/if-defined.js";
7
8
  import { live } from "lit/directives/live.js";
@@ -26,7 +27,7 @@ var NumberInput = class NumberInput extends LitElement {
26
27
  this.defaultCaptured = false;
27
28
  this.disabledByForm = false;
28
29
  this.focused = false;
29
- this.hasSupportingSlot = false;
30
+ this.slotPresence = new SlotPresenceController(this, ["supporting-text"]);
30
31
  this.value = "";
31
32
  this.step = "1";
32
33
  this.name = "";
@@ -139,9 +140,6 @@ var NumberInput = class NumberInput extends LitElement {
139
140
  this.focused = false;
140
141
  redispatchEvent(this, event);
141
142
  }
142
- handleSlotChange(event) {
143
- this.hasSupportingSlot = event.target.assignedNodes({ flatten: true }).length > 0;
144
- }
145
143
  keepInputFocus(event) {
146
144
  event.preventDefault();
147
145
  }
@@ -204,7 +202,7 @@ var NumberInput = class NumberInput extends LitElement {
204
202
  render() {
205
203
  const showError = this.error && !this.effectiveDisabled;
206
204
  const message = showError ? this.errorText : this.help;
207
- const showSupporting = !!message || this.hasSupportingSlot;
205
+ const showSupporting = !!message || this.slotPresence.has("supporting-text");
208
206
  return html`
209
207
  <div
210
208
  class="field ${classMap({
@@ -243,14 +241,13 @@ var NumberInput = class NumberInput extends LitElement {
243
241
  ${this.hideSteppers ? nothing : html`<div class="steppers">${this.renderStepper("up")}${this.renderStepper("down")}</div>`}
244
242
  </div>
245
243
  ${showSupporting ? html`<div id="supporting-text" class="supporting-text ${classMap({ error: showError })}">
246
- <slot name="supporting-text" @slotchange=${this.handleSlotChange}>${message}</slot>
247
- </div>` : html`<slot name="supporting-text" hidden @slotchange=${this.handleSlotChange}></slot>`}
244
+ <slot name="supporting-text" @slotchange=${this.slotPresence.handleSlotChange}>${message}</slot>
245
+ </div>` : html`<slot name="supporting-text" hidden @slotchange=${this.slotPresence.handleSlotChange}></slot>`}
248
246
  `;
249
247
  }
250
248
  };
251
249
  __decorate([state()], NumberInput.prototype, "disabledByForm", void 0);
252
250
  __decorate([state()], NumberInput.prototype, "focused", void 0);
253
- __decorate([state()], NumberInput.prototype, "hasSupportingSlot", void 0);
254
251
  __decorate([query("input")], NumberInput.prototype, "input", void 0);
255
252
  __decorate([property({
256
253
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c2n/number-input",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "main": "dist/number-input.js",
6
6
  "exports": {
@@ -21,6 +21,7 @@
21
21
  "files": [
22
22
  "dist",
23
23
  "types",
24
+ "custom-elements.json",
24
25
  "react.d.ts",
25
26
  "react.js",
26
27
  "vue.d.ts",
@@ -62,12 +63,12 @@
62
63
  }
63
64
  },
64
65
  "dependencies": {
65
- "@c2n/core": "0.0.12",
66
+ "@c2n/core": "0.0.14",
66
67
  "lit": "3.3.3"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@c2n/config": "*"
70
71
  },
71
72
  "customElements": "custom-elements.json",
72
- "gitHead": "43e38b42ac221ffeef99a773c42dd3356961d26a"
73
+ "gitHead": "0261bfceaaa9f710a54e8f36cb57f946c0b83e53"
73
74
  }
package/react.d.ts CHANGED
@@ -23,6 +23,7 @@ declare module 'react' {
23
23
  namespace JSX {
24
24
  interface IntrinsicElements {
25
25
  'c2-number-input': C2Props<NumberInput> & {
26
+ readonly?: Attribute
26
27
  'hide-steppers'?: Attribute
27
28
  'error-text'?: Attribute
28
29
  'aria-label'?: Attribute
@@ -67,7 +67,7 @@ export declare class NumberInput extends LitElement {
67
67
  private defaultCaptured;
68
68
  private disabledByForm;
69
69
  private focused;
70
- private hasSupportingSlot;
70
+ private readonly slotPresence;
71
71
  private readonly input?;
72
72
  /** Current numeric text, or an empty string. Use `valueAsNumber` for a parsed value. */
73
73
  value: string;
@@ -128,7 +128,6 @@ export declare class NumberInput extends LitElement {
128
128
  private handleChange;
129
129
  private handleFocusIn;
130
130
  private handleFocusOut;
131
- private handleSlotChange;
132
131
  private keepInputFocus;
133
132
  private forwardFocus;
134
133
  private stepBy;
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/number-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAOhG,yEAAyE;AACzE,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,UAAU,CAAA;IACjB,MAAM,EAAE,KAAK,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,gBAAgB,EAAE,qBAAqB,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAA;IACzE,mBAAmB,EAAE,wBAAwB,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAA;CAChF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,cAAc,UAAO;IAC5B,OAAgB,MAAM,0BAAoB;IAE1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IAC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6D;IAC7D,QAAQ,CAAC,MAAM,SAAI;IAGnB,aAAa;IAGb,cAAc;IAGd,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAMjC,iBAAiB;IAIjB,oBAAoB,CAAC,QAAQ,EAAE,OAAO;IAGtC,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI;IAI/D,OAAO,KAAK,iBAAiB,GAE5B;IACD,OAAO,KAAK,gBAAgB,GAE3B;IACD,OAAO,KAAK,SAAS,GAGpB;IACD,OAAO,KAAK,SAAS,GAGpB;IAED,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,cAAc;IAGtB,OAAO,CAAC,YAAY;IAGpB,OAAO,CAAC,MAAM;cAUK,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;IAQxD,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,aAAa;IAoBZ,MAAM;CA6ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,WAAW,CAAA;KAC/B;CACF"}
package/vue.d.ts CHANGED
@@ -17,6 +17,7 @@ declare module 'vue' {
17
17
  interface GlobalComponents {
18
18
  'c2-number-input': DefineComponent<
19
19
  C2Props<NumberInput> & {
20
+ readonly?: unknown
20
21
  'hide-steppers'?: unknown
21
22
  'error-text'?: unknown
22
23
  'aria-label'?: unknown