@mhmo91/schmancy 0.4.40 → 0.4.41
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mhmo91/schmancy",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.41",
|
|
4
4
|
"description": "UI library build with web components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"packageManager": "yarn@4.9.2",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"scripts": {
|
|
30
30
|
"dev": "vite --config vite.demo.config.ts --host",
|
|
31
31
|
"build:demo": "vite build --config vite.demo.config.ts",
|
|
32
|
-
"build": "vite build --config vite.config.ts",
|
|
32
|
+
"build": "tsc && vite build --config vite.config.ts",
|
|
33
33
|
"preview": "vite preview",
|
|
34
34
|
"watch": "npm-watch build:components",
|
|
35
35
|
"ncu": "ncu -u && npm i",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { InputSize } from '@schmancy/input';
|
|
2
|
-
import SchmancyInputV2 from '@schmancy/input/input-v2';
|
|
1
|
+
import { InputSize, SchmancyInput } from '@schmancy/input';
|
|
3
2
|
export type SchmancyAutocompleteChangeEvent = CustomEvent<{
|
|
4
3
|
value: string | string[];
|
|
5
4
|
values?: string[];
|
|
@@ -26,7 +25,7 @@ export default class SchmancyAutocomplete extends SchmancyAutocomplete_base {
|
|
|
26
25
|
private _visibleOptionsCount;
|
|
27
26
|
private _hasResults;
|
|
28
27
|
_listbox: HTMLUListElement;
|
|
29
|
-
_input:
|
|
28
|
+
_input: SchmancyInput;
|
|
30
29
|
private _options;
|
|
31
30
|
private _inputElementRef;
|
|
32
31
|
private _selectedValue$;
|
|
@@ -82,6 +82,9 @@ export declare class SchmancyBadgeV2 extends SchmancyBadgeV2_base {
|
|
|
82
82
|
declare global {
|
|
83
83
|
interface HTMLElementTagNameMap {
|
|
84
84
|
'sch-badge': SchmancyBadgeV2;
|
|
85
|
+
'schmancy-badge': SchmancyBadgeV2;
|
|
85
86
|
}
|
|
86
87
|
}
|
|
88
|
+
export declare class ScBadgeV2 extends SchmancyBadgeV2 {
|
|
89
|
+
}
|
|
87
90
|
export {};
|
|
@@ -33,6 +33,7 @@ export declare class SchmancyDateRange extends SchmancyDateRange_base {
|
|
|
33
33
|
required: boolean;
|
|
34
34
|
placeholder: string;
|
|
35
35
|
clearable: boolean;
|
|
36
|
+
step?: 'day' | 'week' | 'month' | 'year' | number;
|
|
36
37
|
private isOpen;
|
|
37
38
|
private selectedDateRange;
|
|
38
39
|
private activePreset;
|
|
@@ -56,7 +57,7 @@ export declare class SchmancyDateRange extends SchmancyDateRange_base {
|
|
|
56
57
|
private openDropdown;
|
|
57
58
|
private closeDropdown;
|
|
58
59
|
/**
|
|
59
|
-
* Shifts the date range based on
|
|
60
|
+
* Shifts the date range based on the step property
|
|
60
61
|
*/
|
|
61
62
|
private shiftDateRange;
|
|
62
63
|
/**
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as SchmancyInput, type SchmancyInputChangeEvent } from './input';
|
|
1
|
+
export { default as SchmancyInput, SchmancyInputCompat, type SchmancyInputChangeEvent, type InputSize } from './input';
|
|
@@ -2,6 +2,7 @@ import { LitElement, PropertyValueMap } from 'lit';
|
|
|
2
2
|
declare global {
|
|
3
3
|
interface HTMLElementTagNameMap {
|
|
4
4
|
'schmancy-input': SchmancyInput;
|
|
5
|
+
'sch-input': SchmancyInput;
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
type EventDetails = {
|
|
@@ -30,6 +31,14 @@ declare const SchmancyInput_base: import("@mixins/index").Constructor<import("@m
|
|
|
30
31
|
*
|
|
31
32
|
* This component uses the native form association API and maintains parity with
|
|
32
33
|
* native input behaviors while providing a stylish, accessible interface.
|
|
34
|
+
*
|
|
35
|
+
* @prop {string} label - Label text for the form field (inherited from FormFieldMixin)
|
|
36
|
+
* @prop {boolean} required - Whether the field is required (inherited from FormFieldMixin)
|
|
37
|
+
* @prop {boolean} disabled - Whether the field is disabled (inherited from FormFieldMixin)
|
|
38
|
+
* @prop {boolean} readonly - Whether the field is read-only (inherited from FormFieldMixin)
|
|
39
|
+
* @prop {boolean} error - Whether the field is in an error state (inherited from FormFieldMixin)
|
|
40
|
+
* @prop {string} validationMessage - The validation message to display (inherited from FormFieldMixin)
|
|
41
|
+
* @prop {string} hint - Optional hint text to display below the field (inherited from FormFieldMixin)
|
|
33
42
|
*/
|
|
34
43
|
export default class SchmancyInput extends SchmancyInput_base {
|
|
35
44
|
/** Auto-incrementing counter for generating unique IDs */
|
|
@@ -209,4 +218,16 @@ export default class SchmancyInput extends SchmancyInput_base {
|
|
|
209
218
|
blur(): void;
|
|
210
219
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
211
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Register the component with the legacy tag name for backward compatibility
|
|
223
|
+
* @prop {string} label - Label text for the form field (inherited from FormFieldMixin)
|
|
224
|
+
* @prop {boolean} required - Whether the field is required (inherited from FormFieldMixin)
|
|
225
|
+
* @prop {boolean} disabled - Whether the field is disabled (inherited from FormFieldMixin)
|
|
226
|
+
* @prop {boolean} readonly - Whether the field is read-only (inherited from FormFieldMixin)
|
|
227
|
+
* @prop {boolean} error - Whether the field is in an error state (inherited from FormFieldMixin)
|
|
228
|
+
* @prop {string} validationMessage - The validation message to display (inherited from FormFieldMixin)
|
|
229
|
+
* @prop {string} hint - Optional hint text to display below the field (inherited from FormFieldMixin)
|
|
230
|
+
*/
|
|
231
|
+
export declare class SchmancyInputCompat extends SchmancyInput {
|
|
232
|
+
}
|
|
212
233
|
export {};
|