@usecapsule/core-components 2.0.7 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/{p-d0b8e7cb.entry.js → p-2ce99420.entry.js} +5 -5
- package/dist/capsule/p-2ce99420.entry.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/cpsl-alert_18.cjs.entry.js +40 -7
- package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +51 -8
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +33 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/cpsl-alert_18.entry.js +40 -7
- package/dist/esm/cpsl-alert_18.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +2 -1
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +2 -0
- package/dist/types/components.d.ts +14 -1
- package/package.json +2 -2
- package/dist/capsule/p-d0b8e7cb.entry.js.map +0 -1
package/dist/esm/loader.js
CHANGED
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
7
7
|
await globalScripts();
|
8
|
-
return bootstrapLazy([["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_18",[[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"footerExpanded":[4,"footer-expanded"],"footerTransitionDuration":[2,"footer-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"hasFooter":[32]},null,{"footerExpanded":["toggleHeight"],"open":["toggleModal"]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-alert",{"type":[1],"icon":[1]}],[1,"cpsl-button",{"disabled":[516],"variant":[513]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"
|
8
|
+
return bootstrapLazy([["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_18",[[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"footerExpanded":[4,"footer-expanded"],"footerTransitionDuration":[2,"footer-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"hasFooter":[32]},null,{"footerExpanded":["toggleHeight"],"open":["toggleModal"]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-alert",{"type":[1],"icon":[1]}],[1,"cpsl-button",{"disabled":[516],"variant":[513]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},null,{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-overlay",{"open":[4],"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"]},null,{"open":["toggleHeight"]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
|
9
9
|
};
|
10
10
|
|
11
11
|
export { defineCustomElements };
|
@@ -5,11 +5,12 @@ export declare class CpslDropdown implements ComponentInterface {
|
|
5
5
|
width: string;
|
6
6
|
hasCpslSearch: boolean;
|
7
7
|
isOpen: boolean;
|
8
|
-
selectedItem: DropdownInputEventDetail;
|
9
8
|
searchQuery: string;
|
10
9
|
filteredItems: Array<DropdownInputEventDetail>;
|
11
10
|
items: Array<DropdownInputEventDetail>;
|
11
|
+
selectedItem?: DropdownInputEventDetail | null;
|
12
12
|
selectedItemChange: EventEmitter<DropdownInputEventDetail>;
|
13
|
+
handleSelectedItemChange(newValue: DropdownInputEventDetail | null): void;
|
13
14
|
private toggleDropdown;
|
14
15
|
private selectItem;
|
15
16
|
private handleItemSelect;
|
@@ -37,6 +37,7 @@ export declare class CpslInput {
|
|
37
37
|
cpslChange: EventEmitter<InputChangeEventDetail>;
|
38
38
|
cpslBlur: EventEmitter<FocusEvent>;
|
39
39
|
cpslFocus: EventEmitter<FocusEvent>;
|
40
|
+
cpslPaste: EventEmitter<ClipboardEvent>;
|
40
41
|
handleDisable(): void;
|
41
42
|
componentDidLoad(): void;
|
42
43
|
private disableSlots;
|
@@ -47,6 +48,7 @@ export declare class CpslInput {
|
|
47
48
|
private onChange;
|
48
49
|
private onBlur;
|
49
50
|
private onFocus;
|
51
|
+
private onPaste;
|
50
52
|
private focusInput;
|
51
53
|
private get nativeInput();
|
52
54
|
render(): any;
|
@@ -179,6 +179,10 @@ export namespace Components {
|
|
179
179
|
* Items to be presented in the dropdown
|
180
180
|
*/
|
181
181
|
"items": Array<DropdownInputEventDetail>;
|
182
|
+
/**
|
183
|
+
* The selected item in the dropdown
|
184
|
+
*/
|
185
|
+
"selectedItem"?: DropdownInputEventDetail | null;
|
182
186
|
/**
|
183
187
|
* Width of the dropdown
|
184
188
|
*/
|
@@ -577,6 +581,7 @@ declare global {
|
|
577
581
|
"cpslChange": InputChangeEventDetail;
|
578
582
|
"cpslBlur": FocusEvent;
|
579
583
|
"cpslFocus": FocusEvent;
|
584
|
+
"cpslPaste": ClipboardEvent;
|
580
585
|
}
|
581
586
|
interface HTMLCpslInputElement extends Components.CpslInput, HTMLStencilElement {
|
582
587
|
addEventListener<K extends keyof HTMLCpslInputElementEventMap>(type: K, listener: (this: HTMLCpslInputElement, ev: CpslInputCustomEvent<HTMLCpslInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
@@ -902,9 +907,13 @@ declare namespace LocalJSX {
|
|
902
907
|
*/
|
903
908
|
"items"?: Array<DropdownInputEventDetail>;
|
904
909
|
/**
|
905
|
-
*
|
910
|
+
* Event emitted when the selected item changes
|
906
911
|
*/
|
907
912
|
"onSelectedItemChange"?: (event: CpslDropdownCustomEvent<DropdownInputEventDetail>) => void;
|
913
|
+
/**
|
914
|
+
* The selected item in the dropdown
|
915
|
+
*/
|
916
|
+
"selectedItem"?: DropdownInputEventDetail | null;
|
908
917
|
/**
|
909
918
|
* Width of the dropdown
|
910
919
|
*/
|
@@ -1013,6 +1022,10 @@ declare namespace LocalJSX {
|
|
1013
1022
|
* The `cpslInput` event is fired each time the user modifies the input's value. Unlike the `cpslChange` event, the `cpslInput` event is fired for each alteration to the input's value. This typically happens for each keystroke as the user types. For elements that accept text input (`type=text`, `type=tel`, etc.), the interface is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others, the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If the input is cleared on edit, the type is `null`.
|
1014
1023
|
*/
|
1015
1024
|
"onCpslInput"?: (event: CpslInputCustomEvent<InputInputEventDetail>) => void;
|
1025
|
+
/**
|
1026
|
+
* Emitted when something has been paste into the input.
|
1027
|
+
*/
|
1028
|
+
"onCpslPaste"?: (event: CpslInputCustomEvent<ClipboardEvent>) => void;
|
1016
1029
|
/**
|
1017
1030
|
* A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, `"date"`, or `"password"`, otherwise it is ignored. When the type attribute is `"date"`, `pattern` will only be used in browsers that do not support the `"date"` input type natively. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date for more information.
|
1018
1031
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@usecapsule/core-components",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.9",
|
4
4
|
"description": "Capsule Core Components",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"stencil-inline-svg": "^1.1.0",
|
51
51
|
"ts-node": "^10.9.2"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "ae522c6b11da093f50879aabe98f429baf9f7cc3"
|
54
54
|
}
|