@updog/data-editor-wc 0.1.94 → 0.1.96

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.
@@ -139,6 +139,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
139
139
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
140
140
  SOFTWARE.
141
141
 
142
+ ================================================================================
143
+ Package: libphonenumber-js
144
+ Version: 1.13.12
145
+ License: MIT
146
+ Homepage: https://gitlab.com/catamphetamine/libphonenumber-js#readme
147
+ ================================================================================
148
+ (The MIT License)
149
+
150
+ Copyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>
151
+
152
+ Permission is hereby granted, free of charge, to any person obtaining
153
+ a copy of this software and associated documentation files (the
154
+ 'Software'), to deal in the Software without restriction, including
155
+ without limitation the rights to use, copy, modify, merge, publish,
156
+ distribute, sublicense, and/or sell copies of the Software, and to
157
+ permit persons to whom the Software is furnished to do so, subject to
158
+ the following conditions:
159
+
160
+ The above copyright notice and this permission notice shall be
161
+ included in all copies or substantial portions of the Software.
162
+
163
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
164
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
165
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
166
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
167
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
168
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
169
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
142
170
  ================================================================================
143
171
  Package: lucide-react
144
172
  Version: 1.31.0
package/index.d.ts CHANGED
@@ -416,8 +416,10 @@ declare var export_default = {
416
416
  invalidEmail: "Invalid email address",
417
417
  invalidFormat: "Invalid format",
418
418
  invalidNumber: "Invalid number",
419
+ invalidPhone: "Invalid phone number",
419
420
  invalidOption: "Invalid option",
420
421
  invalidTime: "Invalid time",
422
+ invalidUrl: "Invalid URL",
421
423
  outOfRange: "Out of range",
422
424
  required: "This field is required",
423
425
  structuralMismatch: "This might be in the wrong column.",
@@ -670,6 +672,39 @@ type CellValidator = (value: unknown, row: DataEditorRow) => ValidationError | n
670
672
  type TextEditorCell = {
671
673
  type: "text";
672
674
  };
675
+ /**
676
+ * Email cell. A plain text input; the column is checked against
677
+ * `{ type: "email" }` even when it declares no validator. On the way in,
678
+ * surrounding spaces are cut and the domain is lower-cased.
679
+ */
680
+ type EmailEditorCell = {
681
+ type: "email";
682
+ };
683
+ /**
684
+ * Web address cell. A plain text input; the column is checked against
685
+ * `{ type: "url" }` even when it declares no validator. On the way in,
686
+ * surrounding spaces are cut and a bare host such as `acme.com` becomes
687
+ * `https://acme.com`.
688
+ */
689
+ type UrlEditorCell = {
690
+ type: "url";
691
+ };
692
+ /**
693
+ * Phone cell. A plain text input; the column is checked against
694
+ * `{ type: "phone" }` even when it declares no validator. On the way in a
695
+ * number is read with libphonenumber and stored in E.164 (`+4915112345678`);
696
+ * the screen shows it spaced (`+49 1511 2345678`). What does not read as
697
+ * one possible number stays as it came, trimmed, and is flagged.
698
+ */
699
+ type PhoneEditorCell = {
700
+ type: "phone";
701
+ /**
702
+ * ISO 3166-1 alpha-2 region a number without a country code belongs to,
703
+ * `"DE"`. Omitted: only numbers carrying `+` (or digits that read as
704
+ * `+digits`) are recognised.
705
+ */
706
+ defaultRegion?: string;
707
+ };
673
708
  /** Date picker cell. Bounds come from the column's `{ type: "date" }` validator. */
674
709
  type DateEditorCell = {
675
710
  type: "date";
@@ -768,6 +803,9 @@ type NumberEditorCell = {
768
803
  * Controls how a cell is edited.
769
804
  *
770
805
  * - `"text"` — plain text input (default).
806
+ * - `"email"` — plain text input; the column is checked against `{ type: "email" }`, spaces cut and the domain lower-cased on the way in.
807
+ * - `"url"` — plain text input; the column is checked against `{ type: "url" }`, a bare host such as `acme.com` becomes `https://acme.com` on the way in.
808
+ * - `"phone"` — plain text input; the column is checked against `{ type: "phone" }`, a number is stored in E.164 and shown spaced.
771
809
  * - `"date"` — date picker; the calendar honours the column's date validator bounds.
772
810
  * - `"time"` — plain text input for a time of day; the column is checked against `{ type: "time" }`.
773
811
  * - `"select"` — dropdown with a fixed list of options.
@@ -777,7 +815,7 @@ type NumberEditorCell = {
777
815
  * - `"number"` — number input with locale-aware formatting.
778
816
  * - `"boolean"` — stores a real `true`/`false`; reads yes/no, 1/0, on/off and Excel's localized TRUE/FALSE.
779
817
  */
780
- type CellEditor = TextEditorCell | DateEditorCell | TimeEditorCell | SelectEditorCell | MultiSelectEditorCell | CountryEditorCell | CurrencyEditorCell | NumberEditorCell | BooleanEditorCell;
818
+ type CellEditor = TextEditorCell | EmailEditorCell | UrlEditorCell | PhoneEditorCell | DateEditorCell | TimeEditorCell | SelectEditorCell | MultiSelectEditorCell | CountryEditorCell | CurrencyEditorCell | NumberEditorCell | BooleanEditorCell;
781
819
  /** Dropdown filter shown in the sidebar Filters panel. */
782
820
  type SelectColumnFilter = {
783
821
  type: "select";
@@ -940,6 +978,16 @@ type BuiltInValidator = {
940
978
  } | {
941
979
  type: "email";
942
980
  message?: string;
981
+ }
982
+ /** The cell holds an `http` or `https` address with a dotted host. Implicit on every url column. */
983
+ | {
984
+ type: "url";
985
+ message?: string;
986
+ }
987
+ /** The cell holds one possible phone number in E.164. Implicit on every phone column. */
988
+ | {
989
+ type: "phone";
990
+ message?: string;
943
991
  } | {
944
992
  type: "date";
945
993
  min?: string;