@limetech/lime-elements 38.46.3 → 38.47.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 (27) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +46 -0
  4. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +1 -1
  5. package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
  6. package/dist/cjs/limel-date-picker.cjs.entry.js.map +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/components/date-picker/date-picker.js +1 -1
  9. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  10. package/dist/collection/components/input-field/input-field.js +99 -0
  11. package/dist/collection/components/input-field/input-field.js.map +1 -1
  12. package/dist/esm/lime-elements.js +1 -1
  13. package/dist/esm/limel-breadcrumbs_7.entry.js +46 -0
  14. package/dist/esm/limel-breadcrumbs_7.entry.js.map +1 -1
  15. package/dist/esm/limel-date-picker.entry.js +1 -1
  16. package/dist/esm/limel-date-picker.entry.js.map +1 -1
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/lime-elements/lime-elements.esm.js +1 -1
  19. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  20. package/dist/lime-elements/{p-131c257a.entry.js → p-0e8859b6.entry.js} +2 -2
  21. package/dist/lime-elements/{p-131c257a.entry.js.map → p-0e8859b6.entry.js.map} +1 -1
  22. package/dist/lime-elements/{p-b5e8a4af.entry.js → p-d973e943.entry.js} +2 -2
  23. package/dist/lime-elements/p-d973e943.entry.js.map +1 -0
  24. package/dist/types/components/input-field/input-field.d.ts +20 -0
  25. package/dist/types/components.d.ts +16 -0
  26. package/package.json +1 -1
  27. package/dist/lime-elements/p-b5e8a4af.entry.js.map +0 -1
@@ -16,6 +16,7 @@ import { InputType } from '../input-field/input-field.types';
16
16
  * @exampleComponent limel-example-input-field-search
17
17
  * @exampleComponent limel-example-input-field-pattern
18
18
  * @exampleComponent limel-example-input-field-focus
19
+ * @exampleComponent limel-example-input-field-selection
19
20
  */
20
21
  export declare class InputField {
21
22
  /**
@@ -164,6 +165,25 @@ export declare class InputField {
164
165
  componentDidLoad(): void;
165
166
  disconnectedCallback(): void;
166
167
  componentDidUpdate(): void;
168
+ /**
169
+ * Returns the start position of the current text selection.
170
+ * Returns `null` if the input element is not available or if
171
+ * the input type does not support selection (e.g., `number`).
172
+ */
173
+ getSelectionStart(): Promise<number | null>;
174
+ /**
175
+ * Returns the end position of the current text selection.
176
+ * Returns `null` if the input element is not available or if
177
+ * the input type does not support selection (e.g., `number`).
178
+ */
179
+ getSelectionEnd(): Promise<number | null>;
180
+ /**
181
+ * Returns the direction of the current text selection.
182
+ * Can be `'forward'`, `'backward'`, or `'none'`.
183
+ * Returns `null` if the input element is not available or if
184
+ * the input type does not support selection (e.g., `number`).
185
+ */
186
+ getSelectionDirection(): Promise<'forward' | 'backward' | 'none' | null>;
167
187
  render(): any;
168
188
  protected valueWatcher(newValue: string): void;
169
189
  protected completionsWatcher(): void;
@@ -1894,6 +1894,7 @@ export namespace Components {
1894
1894
  * @exampleComponent limel-example-input-field-search
1895
1895
  * @exampleComponent limel-example-input-field-pattern
1896
1896
  * @exampleComponent limel-example-input-field-focus
1897
+ * @exampleComponent limel-example-input-field-selection
1897
1898
  */
1898
1899
  interface LimelInputField {
1899
1900
  /**
@@ -1908,6 +1909,18 @@ export namespace Components {
1908
1909
  * Set to `true` to format the current value of the input field only if the field is of type number. The number format is determined by the current language of the browser.
1909
1910
  */
1910
1911
  "formatNumber": boolean;
1912
+ /**
1913
+ * Returns the direction of the current text selection. Can be `'forward'`, `'backward'`, or `'none'`. Returns `null` if the input element is not available or if the input type does not support selection (e.g., `number`).
1914
+ */
1915
+ "getSelectionDirection": () => Promise<'forward' | 'backward' | 'none' | null>;
1916
+ /**
1917
+ * Returns the end position of the current text selection. Returns `null` if the input element is not available or if the input type does not support selection (e.g., `number`).
1918
+ */
1919
+ "getSelectionEnd": () => Promise<number | null>;
1920
+ /**
1921
+ * Returns the start position of the current text selection. Returns `null` if the input element is not available or if the input type does not support selection (e.g., `number`).
1922
+ */
1923
+ "getSelectionStart": () => Promise<number | null>;
1911
1924
  /**
1912
1925
  * Optional helper text to display below the input field when it has focus
1913
1926
  */
@@ -4556,6 +4569,7 @@ declare global {
4556
4569
  * @exampleComponent limel-example-input-field-search
4557
4570
  * @exampleComponent limel-example-input-field-pattern
4558
4571
  * @exampleComponent limel-example-input-field-focus
4572
+ * @exampleComponent limel-example-input-field-selection
4559
4573
  */
4560
4574
  interface HTMLLimelInputFieldElement extends Components.LimelInputField, HTMLStencilElement {
4561
4575
  }
@@ -7271,6 +7285,7 @@ declare namespace LocalJSX {
7271
7285
  * @exampleComponent limel-example-input-field-search
7272
7286
  * @exampleComponent limel-example-input-field-pattern
7273
7287
  * @exampleComponent limel-example-input-field-focus
7288
+ * @exampleComponent limel-example-input-field-selection
7274
7289
  */
7275
7290
  interface LimelInputField {
7276
7291
  /**
@@ -9818,6 +9833,7 @@ declare module "@stencil/core" {
9818
9833
  * @exampleComponent limel-example-input-field-search
9819
9834
  * @exampleComponent limel-example-input-field-pattern
9820
9835
  * @exampleComponent limel-example-input-field-focus
9836
+ * @exampleComponent limel-example-input-field-selection
9821
9837
  */
9822
9838
  "limel-input-field": LocalJSX.LimelInputField & JSXBase.HTMLAttributes<HTMLLimelInputFieldElement>;
9823
9839
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "38.46.3",
3
+ "version": "38.47.1",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",