@sme.up/ketchup 9.0.0 → 9.2.0
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/dist/cjs/{f-button-b2cfce1c.js → f-button-9ccadd52.js} +2 -2
- package/dist/cjs/{f-cell-75fca92b.js → f-cell-3130506f.js} +183 -11
- package/dist/cjs/{f-checkbox-48d7af02.js → f-checkbox-9d2635d9.js} +1 -1
- package/dist/cjs/{f-chip-3e504f3e.js → f-chip-beb7af58.js} +3 -3
- package/dist/cjs/{f-image-270d39ae.js → f-image-66a3c3c1.js} +2 -2
- package/dist/cjs/{f-paginator-utils-6d0c4678.js → f-paginator-utils-c475e07f.js} +49 -50
- package/dist/cjs/{f-text-field-bbcd2143.js → f-text-field-c74856ff.js} +38 -4
- package/dist/cjs/{index-c3d10561.js → index-d8e5eb5f.js} +156 -39
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +159 -197
- package/dist/cjs/kup-box.cjs.entry.js +23 -15
- package/dist/cjs/kup-calendar.cjs.entry.js +5061 -5028
- package/dist/cjs/kup-card-list.cjs.entry.js +34 -14
- package/dist/cjs/kup-cell.cjs.entry.js +9 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-130bbd9d.js → kup-manager-7334c396.js} +63 -12
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +895 -410
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/card-list.js +12 -9
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/assets/progress-bar.js +0 -0
- package/dist/collection/assets/radio.js +30 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/kup-box/kup-box.js +14 -6
- package/dist/collection/components/kup-card/kup-card.css +14 -0
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -5
- package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +10 -0
- package/dist/collection/components/kup-card-list/kup-card-list.js +232 -12
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +47 -48
- package/dist/collection/components/kup-data-table/kup-data-table.js +36 -22
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +1 -242
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +37 -84
- package/dist/collection/components/kup-radio/kup-radio.css +0 -161
- package/dist/collection/components/kup-radio/kup-radio.js +31 -26
- package/dist/collection/components/kup-rating/kup-rating.css +0 -8
- package/dist/collection/components/kup-rating/kup-rating.js +27 -52
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
- package/dist/collection/f-components/f-cell/f-cell.js +19 -5
- package/dist/collection/f-components/f-progress-bar/f-progress-bar-declarations.js +1 -0
- package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +88 -0
- package/dist/collection/f-components/f-radio/f-radio-declarations.js +1 -0
- package/dist/collection/f-components/f-radio/f-radio.js +28 -0
- package/dist/collection/f-components/f-rating/f-rating-declarations.js +1 -0
- package/dist/collection/f-components/f-rating/f-rating.js +26 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +36 -2
- package/dist/collection/index.js +5 -0
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +1 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +33 -0
- package/dist/collection/managers/kup-theme/kup-theme.js +13 -1
- package/dist/collection/utils/cell-utils.js +6 -7
- package/dist/collection/utils/utils.js +0 -5
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +9 -1
- package/dist/components/kup-accordion.js +4 -1
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-autocomplete2.js +13902 -32341
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box2.js +26 -7
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +5001 -4964
- package/dist/components/kup-card-list.js +44 -13
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -1
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +4 -1
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -1
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +2 -1
- package/dist/components/kup-family-tree.js +2 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid2.js +2 -1
- package/dist/components/kup-iframe.js +2 -1
- package/dist/components/kup-image-list.js +4 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-lazy.js +2 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +2 -1
- package/dist/{esm/kup-manager-c8d5c94d.js → components/kup-manager.js} +63 -13
- package/dist/components/kup-nav-bar.js +2 -1
- package/dist/components/kup-numeric-picker.js +2 -1
- package/dist/components/kup-photo-frame.js +2 -1
- package/dist/components/kup-planner.js +896 -408
- package/dist/components/kup-probe.js +2 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -1
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/esm/{f-button-baa419dc.js → f-button-0bce6587.js} +2 -2
- package/dist/esm/{f-cell-18ee3afa.js → f-cell-88d375e1.js} +181 -12
- package/dist/esm/{f-checkbox-00a1e020.js → f-checkbox-31219c42.js} +1 -1
- package/dist/esm/{f-chip-311500f4.js → f-chip-ef0d4130.js} +3 -3
- package/dist/esm/{f-image-da03494c.js → f-image-727453df.js} +2 -2
- package/dist/esm/{f-paginator-utils-d63a195e.js → f-paginator-utils-4524e41c.js} +49 -50
- package/dist/esm/{f-text-field-e5f1f1fd.js → f-text-field-7b4d622c.js} +38 -4
- package/dist/esm/{index-3336c3b1.js → index-99c17b08.js} +157 -40
- package/dist/esm/index.js +8 -0
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +159 -197
- package/dist/esm/kup-box.entry.js +23 -15
- package/dist/esm/kup-calendar.entry.js +5061 -5028
- package/dist/esm/kup-card-list.entry.js +34 -14
- package/dist/esm/kup-cell.entry.js +9 -7
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/kup-manager-9a9d2dbb.js +18604 -0
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +895 -410
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-a8a39b08.entry.js → p-042e1ed0.entry.js} +1 -1
- package/dist/ketchup/{p-55fd3f46.entry.js → p-0dc763af.entry.js} +1 -1
- package/dist/ketchup/{p-76130e83.entry.js → p-1ae879af.entry.js} +1 -1
- package/dist/ketchup/p-1db0c862.entry.js +1 -0
- package/dist/ketchup/{p-25de68e5.js → p-20458088.js} +3 -3
- package/dist/ketchup/{p-a0f59b05.entry.js → p-20c1a69f.entry.js} +1 -1
- package/dist/ketchup/p-267dd24a.entry.js +9 -0
- package/dist/ketchup/{p-39602629.js → p-2849af6f.js} +1 -1
- package/dist/ketchup/p-30938d5a.entry.js +1 -0
- package/dist/ketchup/{p-f729449f.js → p-34e4a985.js} +1 -1
- package/dist/ketchup/p-4067c71b.js +2 -0
- package/dist/ketchup/{p-8281c9e5.js → p-4e696daf.js} +1 -1
- package/dist/ketchup/p-61f71872.entry.js +1 -0
- package/dist/ketchup/p-6a7df3d2.js +1 -0
- package/dist/ketchup/{p-2dab9c4f.entry.js → p-6b33f5de.entry.js} +1 -1
- package/dist/ketchup/{p-4597f25d.js → p-7a876328.js} +1 -1
- package/dist/ketchup/{p-7e1c8fc0.entry.js → p-7f64b612.entry.js} +1 -1
- package/dist/ketchup/{p-07707cd1.entry.js → p-90db42e6.entry.js} +1 -1
- package/dist/ketchup/{p-13eac183.entry.js → p-9cc1c76b.entry.js} +1 -1
- package/dist/ketchup/p-9d3d8690.js +1 -0
- package/dist/ketchup/{p-7bf649f0.entry.js → p-b4ba27da.entry.js} +1 -1
- package/dist/ketchup/{p-2a2a18bf.entry.js → p-c046fd1c.entry.js} +1 -1
- package/dist/ketchup/p-c120043a.entry.js +1 -0
- package/dist/ketchup/p-d520d757.entry.js +1 -0
- package/dist/ketchup/p-e9bc0749.entry.js +1 -0
- package/dist/ketchup/{p-7555c10d.js → p-ea56edbe.js} +1 -1
- package/dist/ketchup/p-edd88921.entry.js +1 -0
- package/dist/ketchup/{p-da58f8ab.entry.js → p-f1f82eef.entry.js} +1 -1
- package/dist/ketchup/{p-51aa248f.entry.js → p-f67ee60f.entry.js} +3 -3
- package/dist/ketchup/p-f6844304.entry.js +1 -0
- package/dist/ketchup/{p-2d192def.entry.js → p-f8213d22.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box.d.ts +1 -0
- package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +12 -12
- package/dist/types/components/kup-card-list/kup-card-list.d.ts +50 -0
- package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +0 -1
- package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +1 -9
- package/dist/types/components/kup-radio/kup-radio.d.ts +3 -2
- package/dist/types/components/kup-rating/kup-rating.d.ts +2 -7
- package/dist/types/components.d.ts +674 -4
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -0
- package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +16 -0
- package/dist/types/f-components/f-progress-bar/f-progress-bar.d.ts +3 -0
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +22 -0
- package/dist/types/f-components/f-radio/f-radio.d.ts +3 -0
- package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +10 -0
- package/dist/types/f-components/f-rating/f-rating.d.ts +3 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +26 -3
- package/dist/types/utils/utils.d.ts +0 -2
- package/package.json +3 -3
- package/dist/ketchup/p-008ad26c.js +0 -1
- package/dist/ketchup/p-0c19d485.entry.js +0 -9
- package/dist/ketchup/p-2d42477d.js +0 -2
- package/dist/ketchup/p-5c15661d.entry.js +0 -1
- package/dist/ketchup/p-5cfaa673.entry.js +0 -1
- package/dist/ketchup/p-5f583257.entry.js +0 -1
- package/dist/ketchup/p-80699a95.js +0 -1
- package/dist/ketchup/p-81debebe.entry.js +0 -1
- package/dist/ketchup/p-bb854cf5.entry.js +0 -1
- package/dist/ketchup/p-d6a7498b.entry.js +0 -1
- package/dist/ketchup/p-d8384990.entry.js +0 -1
- package/dist/ketchup/p-ecb9fe91.entry.js +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FComponent } from '../../types/GenericTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Props of the f-progress-bar component.
|
|
4
|
+
*/
|
|
5
|
+
export interface FProgressBarProps extends FComponent {
|
|
6
|
+
animated?: boolean;
|
|
7
|
+
centeredLabel?: boolean;
|
|
8
|
+
hideLabel?: boolean;
|
|
9
|
+
icon?: string;
|
|
10
|
+
isRadial?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
padded?: boolean;
|
|
13
|
+
slim?: boolean;
|
|
14
|
+
striped?: boolean;
|
|
15
|
+
value?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FComponent } from '../../types/GenericTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Props of the f-radio component.
|
|
4
|
+
*/
|
|
5
|
+
export interface FRadioProps extends FComponent {
|
|
6
|
+
columns?: number;
|
|
7
|
+
data?: FRadioData[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
leadingLabel?: boolean;
|
|
11
|
+
onBlur?: (event: FocusEvent) => void;
|
|
12
|
+
onChange?: (i: number, event: Event) => void;
|
|
13
|
+
onFocus?: (event: FocusEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The object of a single radio.
|
|
17
|
+
*/
|
|
18
|
+
export interface FRadioData {
|
|
19
|
+
checked: boolean;
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FComponent } from '../../types/GenericTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Props of the f-rating component.
|
|
4
|
+
*/
|
|
5
|
+
export interface FRatingProps extends FComponent {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
maxValue?: number;
|
|
8
|
+
value?: number;
|
|
9
|
+
onClick?: (i: number, event: MouseEvent) => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { KupManager } from './managers/kup-manager/kup-manager';
|
|
2
|
+
import { KupManagerInitialization } from './managers/kup-manager/kup-manager-declarations';
|
|
3
|
+
/** used for obtain a KupManager instance without a dom document (for UT) */
|
|
4
|
+
export declare function newKupManager(init: KupManagerInitialization): KupManager;
|
|
@@ -27,6 +27,18 @@ export declare const fImageUsers: KupTagNames[];
|
|
|
27
27
|
* Components using the FPaginator functional component.
|
|
28
28
|
*/
|
|
29
29
|
export declare const fPaginatorUsers: KupTagNames[];
|
|
30
|
+
/**
|
|
31
|
+
* Components using the FProgressBar functional component.
|
|
32
|
+
*/
|
|
33
|
+
export declare const fProgressBarUsers: KupTagNames[];
|
|
34
|
+
/**
|
|
35
|
+
* Components using the FRadio functional component.
|
|
36
|
+
*/
|
|
37
|
+
export declare const fRadioUsers: KupTagNames[];
|
|
38
|
+
/**
|
|
39
|
+
* Components using the FRating functional component.
|
|
40
|
+
*/
|
|
41
|
+
export declare const fRatingUsers: KupTagNames[];
|
|
30
42
|
/**
|
|
31
43
|
* Components using the FSwitch functional component.
|
|
32
44
|
*/
|
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -62,7 +72,7 @@ export interface PropOptions {
|
|
|
62
72
|
/**
|
|
63
73
|
* The name of the associated DOM attribute.
|
|
64
74
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
75
|
+
* but using this property, you can override the default behavior.
|
|
66
76
|
*/
|
|
67
77
|
attribute?: string | null;
|
|
68
78
|
/**
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -128,7 +141,7 @@ export interface ListenOptions {
|
|
|
128
141
|
* By default, Stencil uses several heuristics to determine if
|
|
129
142
|
* it must attach a `passive` event listener or not.
|
|
130
143
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
144
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
145
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
146
|
*/
|
|
134
147
|
passive?: boolean;
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
|
@@ -471,7 +490,7 @@ export interface FunctionalUtilities {
|
|
|
471
490
|
/**
|
|
472
491
|
* Utility for reading the children of a functional component at runtime.
|
|
473
492
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
493
|
+
* not recommended to read the children directly, and is preferable to use
|
|
475
494
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
495
|
*/
|
|
477
496
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -872,6 +891,8 @@ export declare namespace JSXBase {
|
|
|
872
891
|
}
|
|
873
892
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
874
893
|
alt?: string;
|
|
894
|
+
crossOrigin?: string;
|
|
895
|
+
crossorigin?: string;
|
|
875
896
|
decoding?: 'async' | 'auto' | 'sync';
|
|
876
897
|
importance?: 'low' | 'auto' | 'high';
|
|
877
898
|
height?: number | string;
|
|
@@ -1113,11 +1134,13 @@ export declare namespace JSXBase {
|
|
|
1113
1134
|
autocomplete?: string;
|
|
1114
1135
|
}
|
|
1115
1136
|
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1137
|
+
height?: number;
|
|
1116
1138
|
media?: string;
|
|
1117
1139
|
sizes?: string;
|
|
1118
1140
|
src?: string;
|
|
1119
1141
|
srcSet?: string;
|
|
1120
1142
|
type?: string;
|
|
1143
|
+
width?: number;
|
|
1121
1144
|
}
|
|
1122
1145
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1123
1146
|
media?: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GenericObject } from '../types/GenericTypes';
|
|
2
2
|
import { KupBoxRow } from '../components/kup-box/kup-box-declarations';
|
|
3
3
|
import { KupDataRow } from '../managers/kup-data/kup-data-declarations';
|
|
4
|
-
import { KupManager } from '../managers/kup-manager/kup-manager';
|
|
5
4
|
export declare function identify(array: Array<KupBoxRow | KupDataRow>): void;
|
|
6
5
|
/**
|
|
7
6
|
* Fills a string with another string, eventually before
|
|
@@ -34,4 +33,3 @@ export declare function setProps(comp: any, list: GenericObject, props: GenericO
|
|
|
34
33
|
* @returns the regular expression object
|
|
35
34
|
*/
|
|
36
35
|
export declare function getRegExpFromString(s: string, flags?: string): RegExp;
|
|
37
|
-
export declare function getNewKupManager(): KupManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vanilla-picker": "^2.12.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@stencil/core": "^4.0
|
|
65
|
+
"@stencil/core": "^4.4.0",
|
|
66
66
|
"@stencil/react-output-target": "0.5.3",
|
|
67
|
-
"@stencil/sass": "^3.0.
|
|
67
|
+
"@stencil/sass": "^3.0.6",
|
|
68
68
|
"jest": "^27.4.5",
|
|
69
69
|
"jest-cli": "^27.4.5",
|
|
70
70
|
"jest-html-reporter": "^3.7.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,a as t}from"./p-2d42477d.js";import{K as l}from"./p-25de68e5.js";const i=document.documentElement,d=(t,l)=>e("div",Object.assign({class:`f-text-field ${t.danger?"kup-danger":""} ${t.fullHeight?"kup-full-height":""} ${t.fullWidth?"kup-full-width":""} ${t.info?"kup-info":""} ${t.secondary?"kup-secondary":""} ${t.shaped?"kup-shaped":""} ${t.success?"kup-success":""} ${t.warning?"kup-warning":""} ${t.wrapperClass?t.wrapperClass:""}`},t.dataSet,{id:t.id,title:t.title}),t.leadingLabel||t.trailingLabel?e("div",{class:"mdc-form-field "+(t.leadingLabel?"mdc-form-field--align-end":"")},[n(t),c(t),e("label",null,t.label)]):[n(t),c(t)],l);function n(d){var n,c;const o=d.textArea||d.outlined;let s,r;if(!d.label||d.leadingLabel||d.trailingLabel||(s=e("label",{class:"mdc-floating-label",htmlFor:"kup-input"},d.label)),d.icon){let i,n="";if(Object.values(l).indexOf(d.icon)>-1)n=d.icon.replace("--","");else{let e=`url('${t(`./assets/svg/${d.icon}.svg`)}') no-repeat center`;i={mask:e,webkitMask:e}}r=e("span",{style:i,onClick:d.onIconClick,class:`mdc-text-field__icon kup-icon action ${n}`})}const u={"is-clearable":d.isClearable,"mdc-text-field":!0,"mdc-text-field--disabled":d.disabled,"mdc-text-field--filled":!d.fullWidth&&!o,"mdc-text-field--no-label":!d.label,"mdc-text-field--fullwidth":d.fullWidth,"mdc-text-field--outlined":o,"mdc-text-field--textarea":d.textArea,"mdc-text-field--with-leading-icon":d.icon&&!d.trailingIcon,"mdc-text-field--with-trailing-icon":d.icon&&d.trailingIcon};let m=d.value,f=null!==(n=d.inputType)&&void 0!==n?n:"text",p=!1;if("number"===d.inputType&&d.decimals&&d.decimals>0&&(f="text",p=!0),"number"===d.inputType){const e={allowNegative:null===(c=d.allowNegative)||void 0===c||c,decimal:d.decimals,group:d.group,integer:d.integers};m=a(m,e,!1)}return e("div",{class:u},d.textArea&&d.maxLength?e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",d.maxLength):void 0,d.trailingIcon?void 0:r,d.textArea?e("span",{class:"mdc-text-field__resizer"},e("textarea",{class:"mdc-text-field__input",disabled:d.disabled,readOnly:d.readOnly,maxlength:d.maxLength,value:m,onBlur:d.onBlur,onClick:d.onClick,onChange:d.onChange,onFocus:d.onFocus,onInput:d.onInput,onKeyDown:d.onKeyDown})):e("input",{inputmode:d.inputMode?d.inputMode:void 0,type:f,step:d.step,min:d.min,max:d.max,name:d.name,class:"mdc-text-field__input",disabled:d.disabled,readOnly:d.readOnly,placeholder:d.fullWidth&&!d.outlined?d.label:void 0,maxlength:d.maxLength,size:d.size,value:m,onBlur:e=>{var t;if(p){const l={allowNegative:null===(t=d.allowNegative)||void 0===t||t,decimal:d.decimals,group:d.group,integer:d.integers};e.target.value=a(e.target.value,l,!0)}d.onBlur&&d.onBlur(e)},onChange:e=>{var t;if(p){const l={allowNegative:null===(t=d.allowNegative)||void 0===t||t,decimal:d.decimals,group:d.group,integer:d.integers};e.target.value=a(e.target.value,l,!0)}d.onChange&&d.onChange(e)},onClick:d.onClick,onFocus:d.onFocus,onInput:d.onInput,onKeyDown:d.onKeyDown,onKeyPress:e=>{var t;if(!p)return;if(e.ctrlKey)return;if(e.key.length>1)return;const l={allowNegative:null===(t=d.allowNegative)||void 0===t||t,decimal:d.decimals,group:d.group,integer:d.integers};let n=e.target,c=n.value,a=c.substring(0,n.selectionStart),o=c.substring(n.selectionEnd,n.selectionEnd+c.length-1);i.ketchup.math.matchNumericValueWithOptions(a+e.key+o,l)||e.preventDefault()}}),d.isClearable?e("span",{class:`mdc-text-field__icon kup-icon ${l.CLEAR.replace("--","")}`,onClick:d.onClearIconClick}):void 0,d.trailingIcon?r:void 0,d.fullWidth||o?void 0:s,o?e("div",{class:"mdc-notched-outline"},e("div",{class:"mdc-notched-outline__leading"}),e("div",{class:"mdc-notched-outline__notch"},s),e("div",{class:"mdc-notched-outline__trailing"})):e("span",{class:"mdc-line-ripple"}))}function c(t){if(!1!==t.helperEnabled){if(t.helper)return e("div",{class:"mdc-text-field-helper-line"},e("div",{class:{"mdc-text-field-helper-text":!0,"mdc-text-field-helper-text--persistent":!t.helperWhenFocused}},t.helper),!0!==t.hiddenCounter&&t.maxLength&&!t.textArea?e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",t.maxLength.toString()):void 0);if(!0!==t.hiddenCounter&&t.maxLength&&!t.textArea)return e("div",{class:"mdc-text-field-helper-line"},e("div",{class:"mdc-text-field-character-counter"},"'0 / ' + ",t.maxLength))}}const a=function(e,t,l){let d=e;return d?"-"==d?"":i.ketchup.math.format(d,i.ketchup.math.createFormatPattern(t.group,t.decimal),l):d};export{d as F}
|