smoothly 0.1.119 → 0.2.2
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/loader.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_51.cjs.entry.js +73 -54
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/app/style.css +24 -24
- package/dist/collection/components/button/style.css +1 -2
- package/dist/collection/components/calendar/style.css +2 -3
- package/dist/collection/components/input/index.js +72 -9
- package/dist/collection/components/input-date/index.js +1 -1
- package/dist/collection/components/input-date/style.css +2 -3
- package/dist/collection/components/input-date-range/index.js +2 -2
- package/dist/collection/components/input-demo/index.js +2 -1
- package/dist/collection/components/item/style.css +2 -3
- package/dist/collection/components/select-demo/style.css +1 -1
- package/dist/collection/components/selector/style.css +0 -2
- package/dist/collection/components/tab/style.css +3 -4
- package/dist/collection/components/tab-switch/index.js +1 -0
- package/dist/collection/components/tab-switch/style.css +1 -1
- package/dist/collection/components/table/cell/style.css +3 -1
- package/dist/collection/components/table/demo/index.js +38 -32
- package/dist/collection/components/table/expandable/cell/index.js +8 -9
- package/dist/collection/components/table/expandable/cell/style.css +38 -1
- package/dist/collection/components/table/expandable/row/index.js +84 -21
- package/dist/collection/components/table/expandable/row/style.css +35 -4
- package/dist/collection/components/table/header/index.js +22 -2
- package/dist/collection/components/table/header/style.css +5 -3
- package/dist/collection/components/table/index.js +33 -1
- package/dist/collection/components/table/row/index.js +20 -84
- package/dist/collection/components/table/row/style.css +2 -8
- package/dist/collection/components/table/style.css +8 -3
- package/dist/custom-elements/index.js +79 -60
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-accordion_51.entry.js +73 -54
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/p-9d6a20c4.entry.js +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/index.d.ts +10 -3
- package/dist/types/components/table/expandable/cell/index.d.ts +2 -2
- package/dist/types/components/table/expandable/row/index.d.ts +9 -4
- package/dist/types/components/table/header/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +3 -0
- package/dist/types/components/table/row/index.d.ts +3 -9
- package/dist/types/components.d.ts +14 -7
- package/package.json +2 -2
- package/dist/smoothly/p-991517e4.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-0cba3e3d.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-eec1c703",[[2,"smoothly-google-font",{value:[1]}]]],["p-6f009ac9",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-0215b4da",[[0,"smoothly-reorder"]]],["p-8ae38136",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-993534fa",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-0cba3e3d.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-eec1c703",[[2,"smoothly-google-font",{value:[1]}]]],["p-6f009ac9",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-0215b4da",[[0,"smoothly-reorder"]]],["p-8ae38136",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-993534fa",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-9d6a20c4",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-input-date-range",{value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],open:[1028],showLabel:[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{notices:[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{maxMenuHeight:[1,"max-menu-height"],maxHeight:[1,"max-height"],emptyMenuLabel:[1025,"empty-menu-label"],multiple:[516],optionStyle:[8,"option-style"],options:[16],labelSetting:[513,"label-setting"],label:[513],selections:[1040],selectNoneName:[1025,"select-none-name"],selectionName:[1025,"selection-name"],isOpen:[32]},[[0,"optionSelect","optionSelectHander"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[513]},[[0,"trigger","TriggerListener"]]],[6,"smoothly-table-expandable-row",{align:[1],open:[1540]},[[0,"click","onClick"]]],[2,"smoothly-backtotop",{opacity:[1],bottom:[1],right:[1],visible:[32]}],[2,"smoothly-checkbox",{selectAll:[4,"select-all"],size:[1],intermediate:[1540],selected:[1540],disabled:[1540],t:[32]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540]},[[0,"click","onClick"]]],[0,"smoothly-urlencoded",{data:[1]}],[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}],[2,"smoothly-display",{type:[1],value:[8],currency:[1],country:[1]}],[2,"smoothly-display-amount",{amount:[8],currency:[1]}],[2,"smoothly-frame",{url:[1],name:[1],origin:[1],send:[64]}],[6,"smoothly-popup",{visible:[1540],direction:[1537],cssVariables:[32]}],[6,"smoothly-quiet",{color:[1]}],[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}],[6,"smoothly-select",{identifier:[1],background:[513],value:[1025]}],[2,"smoothly-skeleton",{widths:[16],width:[1],color:[1],period:[2],distance:[1],align:[513]}],[2,"smoothly-svg",{url:[513],size:[513],color:[1]}],[6,"smoothly-table",null,[[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[1,"smoothly-menu-options",{emptyMenuLabel:[1025,"empty-menu-label"],maxMenuHeight:[1,"max-menu-height"],order:[4],optionStyle:[8,"option-style"],options:[1040],resetHighlightOnOptionsChange:[1028,"reset-highlight-on-options-change"],filteredOptions:[32],highlightIndex:[32],moveHighlight:[64],setHighlight:[64],getHighlighted:[64],filterOptions:[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-display-date-time",{datetime:[1]}],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table-cell"],[0,"smoothly-tuple",{tuple:[16]}],[1,"smoothly-option",{aliases:[513],dataHighlight:[1540,"data-highlight"],name:[1537],value:[1537],divider:[1540]}],[2,"smoothly-spinner",{active:[516],size:[513]}],[2,"smoothly-calendar",{month:[1025],value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],doubleInput:[516,"double-input"],firstSelected:[32]}],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],showLabel:[516,"show-label"],maxLength:[1026,"max-length"],autocomplete:[1028],pattern:[1040],placeholder:[1025],disabled:[1028],readonly:[1028],currency:[513],initialValue:[32],getFormData:[64],setKeepFocusOnReRender:[64],setSelectionRange:[64]}],[2,"smoothly-input-month",{value:[1025]}],[6,"smoothly-selector",{opened:[32],selectedElement:[32],missing:[32],filter:[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{value:[8],selected:[1540],filter:[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { Currency } from "isoly";
|
|
3
|
-
import { Converter, Direction, Formatter, Settings, State } from "tidily";
|
|
3
|
+
import { Converter, Direction, Formatter, Settings, State as TidilyState } from "tidily";
|
|
4
4
|
export declare class SmoothlyInput {
|
|
5
5
|
private inputElement;
|
|
6
6
|
private keepFocusOnReRender;
|
|
@@ -17,10 +17,17 @@ export declare class SmoothlyInput {
|
|
|
17
17
|
pattern: RegExp | undefined;
|
|
18
18
|
placeholder: string | undefined;
|
|
19
19
|
disabled: boolean;
|
|
20
|
+
readonly: boolean;
|
|
20
21
|
currency?: Currency;
|
|
22
|
+
initialValue?: any;
|
|
21
23
|
get formatter(): Formatter & Converter<any>;
|
|
22
24
|
private newState;
|
|
23
|
-
|
|
25
|
+
smoothlyBlur: EventEmitter<void>;
|
|
26
|
+
smoothlyChange: EventEmitter<{
|
|
27
|
+
name: string;
|
|
28
|
+
value: any;
|
|
29
|
+
}>;
|
|
30
|
+
smoothlyInput: EventEmitter<{
|
|
24
31
|
name: string;
|
|
25
32
|
value: any;
|
|
26
33
|
}>;
|
|
@@ -43,6 +50,6 @@ export declare class SmoothlyInput {
|
|
|
43
50
|
onInput(event: InputEvent): void;
|
|
44
51
|
private expiresAutocompleteFix;
|
|
45
52
|
private processKey;
|
|
46
|
-
updateBackend(after: Readonly<
|
|
53
|
+
updateBackend(after: Readonly<TidilyState> & Readonly<Settings>, backend: HTMLInputElement): void;
|
|
47
54
|
render(): any;
|
|
48
55
|
}
|
|
@@ -3,10 +3,10 @@ export declare class TableExpandableCell implements ComponentDidLoad {
|
|
|
3
3
|
element: HTMLSmoothlyTableExpandableCellElement;
|
|
4
4
|
expansionElement?: HTMLTableRowElement;
|
|
5
5
|
expansionOpen: EventEmitter<HTMLElement>;
|
|
6
|
-
|
|
6
|
+
expansionLoad: EventEmitter<void>;
|
|
7
7
|
align: "left" | "center" | "right";
|
|
8
8
|
open: boolean;
|
|
9
|
-
beginOpen
|
|
9
|
+
private beginOpen;
|
|
10
10
|
openChanged(value: boolean): void;
|
|
11
11
|
onClick(): void;
|
|
12
12
|
componentDidLoad(): void;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../../stencil-public-runtime";
|
|
1
2
|
export declare class TableExpandableRow {
|
|
2
|
-
element:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
element: HTMLSmoothlyTableRowElement;
|
|
4
|
+
expansionElement?: HTMLTableRowElement;
|
|
5
|
+
expansionOpen: EventEmitter<HTMLElement>;
|
|
6
|
+
align: "left" | "center" | "right";
|
|
7
|
+
open: boolean;
|
|
8
|
+
openChanged(value: boolean): void;
|
|
9
|
+
onClick(e: UIEvent): void;
|
|
10
|
+
componentDidRender(): void;
|
|
6
11
|
render(): any;
|
|
7
12
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
1
|
export declare class TableRow {
|
|
3
2
|
element: HTMLSmoothlyTableRowElement;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
open: boolean;
|
|
8
|
-
beginOpen: boolean;
|
|
9
|
-
openChanged(value: boolean): void;
|
|
10
|
-
onClick(e: UIEvent): void;
|
|
11
|
-
componentDidRender(): void;
|
|
3
|
+
expansions: HTMLSmoothlyTableExpandableCellElement[];
|
|
4
|
+
onExpansionLoad(event: CustomEvent<void>): void;
|
|
5
|
+
onExpansionOpen(event: CustomEvent<HTMLElement | undefined>): void;
|
|
12
6
|
render(): any;
|
|
13
7
|
}
|
|
@@ -105,6 +105,7 @@ export namespace Components {
|
|
|
105
105
|
"name": string;
|
|
106
106
|
"pattern": RegExp | undefined;
|
|
107
107
|
"placeholder": string | undefined;
|
|
108
|
+
"readonly": boolean;
|
|
108
109
|
"required": boolean;
|
|
109
110
|
"setKeepFocusOnReRender": (keepFocus: boolean) => Promise<void>;
|
|
110
111
|
"setSelectionRange": (start: number, end: number, direction?: Direction | undefined) => Promise<void>;
|
|
@@ -251,12 +252,13 @@ export namespace Components {
|
|
|
251
252
|
"open": boolean;
|
|
252
253
|
}
|
|
253
254
|
interface SmoothlyTableExpandableRow {
|
|
255
|
+
"align": "left" | "center" | "right";
|
|
256
|
+
"open": boolean;
|
|
254
257
|
}
|
|
255
258
|
interface SmoothlyTableHeader {
|
|
259
|
+
"name": string;
|
|
256
260
|
}
|
|
257
261
|
interface SmoothlyTableRow {
|
|
258
|
-
"align": "left" | "center" | "right";
|
|
259
|
-
"open": boolean;
|
|
260
262
|
}
|
|
261
263
|
interface SmoothlyTrigger {
|
|
262
264
|
"color": Color | undefined;
|
|
@@ -783,9 +785,12 @@ declare namespace LocalJSX {
|
|
|
783
785
|
"maxLength"?: number;
|
|
784
786
|
"minLength"?: number;
|
|
785
787
|
"name"?: string;
|
|
786
|
-
"
|
|
788
|
+
"onSmoothlyBlur"?: (event: CustomEvent<void>) => void;
|
|
789
|
+
"onSmoothlyChange"?: (event: CustomEvent<{ name: string; value: any }>) => void;
|
|
790
|
+
"onSmoothlyInput"?: (event: CustomEvent<{ name: string; value: any }>) => void;
|
|
787
791
|
"pattern"?: RegExp | undefined;
|
|
788
792
|
"placeholder"?: string | undefined;
|
|
793
|
+
"readonly"?: boolean;
|
|
789
794
|
"required"?: boolean;
|
|
790
795
|
"showLabel"?: boolean;
|
|
791
796
|
"type"?: string;
|
|
@@ -930,6 +935,7 @@ declare namespace LocalJSX {
|
|
|
930
935
|
interface SmoothlyTabSwitch {
|
|
931
936
|
}
|
|
932
937
|
interface SmoothlyTable {
|
|
938
|
+
"onLoadMore"?: (event: CustomEvent<void>) => void;
|
|
933
939
|
}
|
|
934
940
|
interface SmoothlyTableCell {
|
|
935
941
|
}
|
|
@@ -937,18 +943,19 @@ declare namespace LocalJSX {
|
|
|
937
943
|
}
|
|
938
944
|
interface SmoothlyTableExpandableCell {
|
|
939
945
|
"align"?: "left" | "center" | "right";
|
|
940
|
-
"
|
|
946
|
+
"onExpansionLoad"?: (event: CustomEvent<void>) => void;
|
|
941
947
|
"onExpansionOpen"?: (event: CustomEvent<HTMLElement>) => void;
|
|
942
948
|
"open"?: boolean;
|
|
943
949
|
}
|
|
944
950
|
interface SmoothlyTableExpandableRow {
|
|
951
|
+
"align"?: "left" | "center" | "right";
|
|
952
|
+
"onExpansionOpen"?: (event: CustomEvent<HTMLElement>) => void;
|
|
953
|
+
"open"?: boolean;
|
|
945
954
|
}
|
|
946
955
|
interface SmoothlyTableHeader {
|
|
956
|
+
"name"?: string;
|
|
947
957
|
}
|
|
948
958
|
interface SmoothlyTableRow {
|
|
949
|
-
"align"?: "left" | "center" | "right";
|
|
950
|
-
"onExpansionOpen"?: (event: CustomEvent<HTMLElement>) => void;
|
|
951
|
-
"open"?: boolean;
|
|
952
959
|
}
|
|
953
960
|
interface SmoothlyTrigger {
|
|
954
961
|
"color"?: Color | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smoothly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Web component library written in Stencil.",
|
|
5
5
|
"author": "PayFunc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
81
81
|
"jest": "^27.0.3",
|
|
82
82
|
"jest-cli": "^27.4.5",
|
|
83
|
-
"prettier": "^2.
|
|
83
|
+
"prettier": "^2.7.1",
|
|
84
84
|
"prettier-stylelint": "^0.4.2",
|
|
85
85
|
"prettierx": "github:utily/eslint-plugin-prettierx#utily-20220323",
|
|
86
86
|
"puppeteer": "^14.1.0",
|