smoothly 0.1.91 → 0.1.95
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/{index-bc3845e8.js → index-d66869d7.js} +7 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-accordion_47.cjs.entry.js → smoothly-accordion_48.cjs.entry.js} +75 -13
- package/dist/cjs/smoothly-backtotop.cjs.entry.js +37 -0
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-demo.cjs.entry.js +4 -1
- package/dist/cjs/smoothly-input.cjs.entry.js +28 -2
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/backtotop/index.js +94 -0
- package/dist/collection/components/backtotop/style.css +19 -0
- package/dist/collection/components/input/index.js +50 -0
- package/dist/collection/components/input-demo/index.js +45 -42
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +78 -14
- package/dist/{smoothly/index-37a67c97.js → esm/index-401c6ce3.js} +7 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-accordion_47.entry.js → smoothly-accordion_48.entry.js} +75 -14
- package/dist/esm/smoothly-backtotop.entry.js +33 -0
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-input-demo.entry.js +4 -1
- package/dist/esm/smoothly-input.entry.js +28 -2
- package/dist/esm/smoothly.js +1 -1
- package/dist/{esm/index-37a67c97.js → smoothly/index-401c6ce3.js} +7 -5
- package/dist/smoothly/p-622e6474.entry.js +1 -0
- package/dist/smoothly/smoothly-backtotop.entry.js +33 -0
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-input-demo.entry.js +4 -1
- package/dist/smoothly/smoothly-input.entry.js +28 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/backtotop/index.d.ts +8 -0
- package/dist/types/components/input/index.d.ts +6 -0
- package/dist/types/components/input-demo/index.d.ts +1 -1
- package/dist/types/components.d.ts +20 -0
- package/package.json +2 -2
- package/dist/smoothly/p-9947e4bf.entry.js +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { r as registerInstance, h, k as Host } from './index-02a70ac1.js';
|
|
2
|
+
|
|
3
|
+
const styleCss = ".sc-smoothly-backtotop-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";
|
|
4
|
+
|
|
5
|
+
let SmoothlyBacktotop = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.opacity = "0.5";
|
|
9
|
+
this.bottom = "1rem";
|
|
10
|
+
this.right = "1rem";
|
|
11
|
+
}
|
|
12
|
+
componentWillLoad() {
|
|
13
|
+
window.addEventListener("scroll", () => {
|
|
14
|
+
this.visible = document.body.scrollTop > 20 || document.documentElement.scrollTop > 20;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const cssVariables = {
|
|
19
|
+
"--opacity": this.visible ? this.opacity : "0",
|
|
20
|
+
"--pointer-events": this.visible ? "auto" : "none",
|
|
21
|
+
"--bottom": this.bottom,
|
|
22
|
+
"--right": this.right,
|
|
23
|
+
};
|
|
24
|
+
return (h(Host, { style: cssVariables, onClick: () => window.scrollTo({
|
|
25
|
+
top: 0,
|
|
26
|
+
left: 0,
|
|
27
|
+
behavior: "smooth",
|
|
28
|
+
}) }, h("smoothly-icon", { name: "chevron-up-outline" })));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
SmoothlyBacktotop.style = styleCss;
|
|
32
|
+
|
|
33
|
+
export { SmoothlyBacktotop as smoothly_backtotop };
|
|
@@ -5,7 +5,10 @@ let SmoothlyInputDemo = class {
|
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return
|
|
8
|
+
return [
|
|
9
|
+
h("form", { action: "done", style: { position: "relative" } }, h("header", null, h("h5", null, "Address")), h("main", null, h("smoothly-input", { type: "text", name: "name" }, "Name"), h("smoothly-input", { type: "date", name: "date" }, "Date"), h("smoothly-input", { type: "date-time", name: "date-time" }, "Date-Time"), h("smoothly-input", { type: "divisor", name: "divisor" }, "Divisor"), h("smoothly-input", { type: "text", name: "street", value: "street" }, "Street"), h("smoothly-input", { type: "card-number", name: "card" }, "Card #"), h("smoothly-input", { type: "card-expires", name: "card", style: { width: "calc(60% - 2px)" } }, "Expires"), h("smoothly-input", { type: "card-csc", name: "card", style: { width: "calc(40% - 1px)", borderLeft: "none" } }, "CVV/CVC"), h("smoothly-radio", { name: "option", value: "1" }, "option 1"), h("smoothly-radio", { name: "option", value: "2", checked: true }, "option 2"), h("smoothly-radio", { name: "option", value: "3" }, "option 3"), h("smoothly-accordion", null, h("smoothly-accordion-item", { name: "A", open: true }, h("smoothly-radio", { name: "a", value: "1" }, "a 1"), h("smoothly-radio", { name: "a", value: "2", checked: true }, "a 2"), h("smoothly-radio", { name: "a", value: "3" }, "a 3")), h("smoothly-accordion-item", { name: "B" }, h("smoothly-radio", { name: "b", value: "1" }, "b 1"), h("smoothly-radio", { name: "b", value: "2" }, "b 2"), h("smoothly-radio", { name: "b", value: "3" }, "b 3"))), h("smoothly-display-amount", { currency: "SEK", amount: "1289.5" }), h("smoothly-display-date-time", { datetime: "2019-01-31T20:01:34" }), h("smoothly-checkbox", null), h("smoothly-checkbox", { disabled: true }), h("smoothly-address-display", { value: '{ "countryCode": "SE", "street": "Korkstigen 2", "zipCode": "654 31", "city": "Fejksala" }' }), h("smoothly-address", { editable: false, value: '{ "countryCode": "SE", "street": "Stigv\u00E4gen 34", "zipCode": "123 45", "city": "Hobbiton" }' }), h("smoothly-addresses", { allowed: "billing delivery visit", editable: true, value: '{ "billing": { "countryCode": "SE", "street": "Rundslingan 3", "zipCode": "987 65", "city": "Klotby" }, "visit": { "countryCode": "SE", "street": "G\u00E5ngbanan 34", "zipCode": "543 21", "city": "Trasktr\u00E4sk" } }' }), h("smoothly-input", { type: "postal-code", name: "zip", style: { width: "calc(60% - 2px)" } }, "ZipCode"), h("smoothly-input", { type: "text", name: "testing" }, "Texttest"), h("smoothly-input", { type: "password", name: "password" }, "Password"), h("smoothly-input", { type: "email", name: "email" }, "Email"), h("smoothly-input", { type: "price", currency: "SEK", name: "price" }, "Price"), h("smoothly-input", { type: "percent", name: "percent" }, "Percent"), h("smoothly-input", { type: "phone", name: "phone" }, "Phone"), h("smoothly-input-date", null, "Date")), h("footer", null, h("smoothly-submit", { expand: "block", onSubmit: (e) => alert(e), color: "success" }, "Submit"), h("smoothly-trigger", { expand: "block", color: "success", onClick: (e) => console.log(e.detail) }, "Trigger"))),
|
|
10
|
+
h("smoothly-backtotop", null),
|
|
11
|
+
];
|
|
9
12
|
}
|
|
10
13
|
};
|
|
11
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, k as Host } from './index-02a70ac1.js';
|
|
2
2
|
import { d as dist$1 } from './index-a5a08f46.js';
|
|
3
|
-
import { d as dist } from './index-
|
|
3
|
+
import { d as dist } from './index-401c6ce3.js';
|
|
4
4
|
import './_commonjsHelpers-8fe71198.js';
|
|
5
5
|
|
|
6
6
|
const styleCss = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-text-tint));opacity:0.8;user-select:none;cursor:inherit;transition:font-size 0.1s;transition-timing-function:ease}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;width:calc(100% - 0.4em);background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+smoothly-icon.sc-smoothly-input{display:block}.has-value.sc-smoothly-input-h>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}.sc-smoothly-input-h:focus-within>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 30px unset inset !important;-webkit-box-shadow:0 0 0 30px unset inset !important}input.sc-smoothly-input:-webkit-autofill{-webkit-text-fill-color:unset !important}input.sc-smoothly-input:-internal-autofill-previewed,input.sc-smoothly-input:-internal-autofill-selected,textarea.sc-smoothly-input:-internal-autofill-previewed,textarea.sc-smoothly-input:-internal-autofill-selected,select.sc-smoothly-input:-internal-autofill-previewed,select.sc-smoothly-input:-internal-autofill-selected{background-color:none !important;background-image:none !important;color:unset !important}";
|
|
@@ -41,6 +41,9 @@ let SmoothlyInput = class {
|
|
|
41
41
|
if (value != before)
|
|
42
42
|
this.smoothlyChanged.emit({ name: this.name, value });
|
|
43
43
|
}
|
|
44
|
+
onCurrency() {
|
|
45
|
+
this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).value });
|
|
46
|
+
}
|
|
44
47
|
componentWillLoad() {
|
|
45
48
|
const value = this.formatter.toString(this.value) || "";
|
|
46
49
|
const start = value.length;
|
|
@@ -55,6 +58,28 @@ let SmoothlyInput = class {
|
|
|
55
58
|
this.keepFocusOnReRender = false;
|
|
56
59
|
}
|
|
57
60
|
}
|
|
61
|
+
async getFormData(name) {
|
|
62
|
+
const result = {};
|
|
63
|
+
const form = document.forms.namedItem(name);
|
|
64
|
+
if (form) {
|
|
65
|
+
const elements = form.elements;
|
|
66
|
+
for (let i = 0; i < elements.length; i++) {
|
|
67
|
+
const element = elements.item(i);
|
|
68
|
+
if (this.hasNameAndValue(element) && element.name)
|
|
69
|
+
result[element.name] = element.value;
|
|
70
|
+
}
|
|
71
|
+
const smoothlyInputs = form.getElementsByTagName("smoothly-input");
|
|
72
|
+
for (let i = 0; i < smoothlyInputs.length; i++) {
|
|
73
|
+
const element = smoothlyInputs.item(i);
|
|
74
|
+
if (this.hasNameAndValue(element) && element.name)
|
|
75
|
+
result[element.name] = element.value;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
hasNameAndValue(element) {
|
|
81
|
+
return (typeof element.name == "string" && typeof element.value == "string");
|
|
82
|
+
}
|
|
58
83
|
async setKeepFocusOnReRender(keepFocus) {
|
|
59
84
|
this.keepFocusOnReRender = keepFocus;
|
|
60
85
|
}
|
|
@@ -159,7 +184,8 @@ let SmoothlyInput = class {
|
|
|
159
184
|
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" } }, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }), h("label", { htmlFor: this.name }, h("slot", null))));
|
|
160
185
|
}
|
|
161
186
|
static get watchers() { return {
|
|
162
|
-
"value": ["valueWatcher"]
|
|
187
|
+
"value": ["valueWatcher"],
|
|
188
|
+
"currency": ["onCurrency"]
|
|
163
189
|
}; }
|
|
164
190
|
};
|
|
165
191
|
function getLocale() {
|
|
@@ -121,5 +121,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
121
121
|
|
|
122
122
|
patchBrowser().then(options => {
|
|
123
123
|
globalScripts();
|
|
124
|
-
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-
|
|
124
|
+
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-app",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo",[[2,"smoothly-icon-demo"]]],["smoothly-room",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]]]],["smoothly-notifier",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker",[[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"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-backtotop",[[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}]]],["smoothly-checkbox",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-quiet",[[6,"smoothly-quiet",{"color":[1]}]]],["smoothly-radio",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-tab",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date",[[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025]},[[0,"dateSet","dateSetHandler"]]]]],["smoothly-notification",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-option",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-menu-options",[[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"]]]]],["smoothly-display",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-tuple",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-item",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-calendar",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}]]],["smoothly-input",[[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-input-month",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-trigger",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
125
125
|
});
|
|
@@ -24,8 +24,14 @@ export declare class SmoothlyInput {
|
|
|
24
24
|
value: any;
|
|
25
25
|
}>;
|
|
26
26
|
valueWatcher(value: any, before: any): void;
|
|
27
|
+
onCurrency(): void;
|
|
27
28
|
componentWillLoad(): void;
|
|
28
29
|
componentDidRender(): void;
|
|
30
|
+
getFormData(name: string): Promise<Record<string, any>>;
|
|
31
|
+
hasNameAndValue(element: any): element is {
|
|
32
|
+
name: string;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
29
35
|
setKeepFocusOnReRender(keepFocus: boolean): Promise<void>;
|
|
30
36
|
setSelectionRange(start: number, end: number, direction?: Direction): Promise<void>;
|
|
31
37
|
onBlur(event: FocusEvent): void;
|
|
@@ -24,6 +24,11 @@ export namespace Components {
|
|
|
24
24
|
interface SmoothlyAppDemo {
|
|
25
25
|
"baseUrl": string;
|
|
26
26
|
}
|
|
27
|
+
interface SmoothlyBacktotop {
|
|
28
|
+
"bottom": string;
|
|
29
|
+
"opacity": string;
|
|
30
|
+
"right": string;
|
|
31
|
+
}
|
|
27
32
|
interface SmoothlyCalendar {
|
|
28
33
|
"doubleInput": boolean;
|
|
29
34
|
"end"?: Date;
|
|
@@ -83,6 +88,7 @@ export namespace Components {
|
|
|
83
88
|
"autocomplete": boolean;
|
|
84
89
|
"currency"?: Currency;
|
|
85
90
|
"disabled": boolean;
|
|
91
|
+
"getFormData": (name: string) => Promise<Record<string, any>>;
|
|
86
92
|
"maxLength": number;
|
|
87
93
|
"minLength": number;
|
|
88
94
|
"name": string;
|
|
@@ -273,6 +279,12 @@ declare global {
|
|
|
273
279
|
prototype: HTMLSmoothlyAppDemoElement;
|
|
274
280
|
new (): HTMLSmoothlyAppDemoElement;
|
|
275
281
|
};
|
|
282
|
+
interface HTMLSmoothlyBacktotopElement extends Components.SmoothlyBacktotop, HTMLStencilElement {
|
|
283
|
+
}
|
|
284
|
+
var HTMLSmoothlyBacktotopElement: {
|
|
285
|
+
prototype: HTMLSmoothlyBacktotopElement;
|
|
286
|
+
new (): HTMLSmoothlyBacktotopElement;
|
|
287
|
+
};
|
|
276
288
|
interface HTMLSmoothlyCalendarElement extends Components.SmoothlyCalendar, HTMLStencilElement {
|
|
277
289
|
}
|
|
278
290
|
var HTMLSmoothlyCalendarElement: {
|
|
@@ -566,6 +578,7 @@ declare global {
|
|
|
566
578
|
"smoothly-accordion-item": HTMLSmoothlyAccordionItemElement;
|
|
567
579
|
"smoothly-app": HTMLSmoothlyAppElement;
|
|
568
580
|
"smoothly-app-demo": HTMLSmoothlyAppDemoElement;
|
|
581
|
+
"smoothly-backtotop": HTMLSmoothlyBacktotopElement;
|
|
569
582
|
"smoothly-calendar": HTMLSmoothlyCalendarElement;
|
|
570
583
|
"smoothly-checkbox": HTMLSmoothlyCheckboxElement;
|
|
571
584
|
"smoothly-dialog": HTMLSmoothlyDialogElement;
|
|
@@ -635,6 +648,11 @@ declare namespace LocalJSX {
|
|
|
635
648
|
interface SmoothlyAppDemo {
|
|
636
649
|
"baseUrl"?: string;
|
|
637
650
|
}
|
|
651
|
+
interface SmoothlyBacktotop {
|
|
652
|
+
"bottom"?: string;
|
|
653
|
+
"opacity"?: string;
|
|
654
|
+
"right"?: string;
|
|
655
|
+
}
|
|
638
656
|
interface SmoothlyCalendar {
|
|
639
657
|
"doubleInput"?: boolean;
|
|
640
658
|
"end"?: Date;
|
|
@@ -888,6 +906,7 @@ declare namespace LocalJSX {
|
|
|
888
906
|
"smoothly-accordion-item": SmoothlyAccordionItem;
|
|
889
907
|
"smoothly-app": SmoothlyApp;
|
|
890
908
|
"smoothly-app-demo": SmoothlyAppDemo;
|
|
909
|
+
"smoothly-backtotop": SmoothlyBacktotop;
|
|
891
910
|
"smoothly-calendar": SmoothlyCalendar;
|
|
892
911
|
"smoothly-checkbox": SmoothlyCheckbox;
|
|
893
912
|
"smoothly-dialog": SmoothlyDialog;
|
|
@@ -946,6 +965,7 @@ declare module "@stencil/core" {
|
|
|
946
965
|
"smoothly-accordion-item": LocalJSX.SmoothlyAccordionItem & JSXBase.HTMLAttributes<HTMLSmoothlyAccordionItemElement>;
|
|
947
966
|
"smoothly-app": LocalJSX.SmoothlyApp & JSXBase.HTMLAttributes<HTMLSmoothlyAppElement>;
|
|
948
967
|
"smoothly-app-demo": LocalJSX.SmoothlyAppDemo & JSXBase.HTMLAttributes<HTMLSmoothlyAppDemoElement>;
|
|
968
|
+
"smoothly-backtotop": LocalJSX.SmoothlyBacktotop & JSXBase.HTMLAttributes<HTMLSmoothlyBacktotopElement>;
|
|
949
969
|
"smoothly-calendar": LocalJSX.SmoothlyCalendar & JSXBase.HTMLAttributes<HTMLSmoothlyCalendarElement>;
|
|
950
970
|
"smoothly-checkbox": LocalJSX.SmoothlyCheckbox & JSXBase.HTMLAttributes<HTMLSmoothlyCheckboxElement>;
|
|
951
971
|
"smoothly-dialog": LocalJSX.SmoothlyDialog & JSXBase.HTMLAttributes<HTMLSmoothlyDialogElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smoothly",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.95",
|
|
4
4
|
"description": "Web component library written in Stencil.",
|
|
5
5
|
"author": "PayFunc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"langly": "0.0.14",
|
|
67
67
|
"normalize.css": "^8.0.1",
|
|
68
68
|
"stencil-router-v2": "^0.6.0",
|
|
69
|
-
"tidily": "0.0.
|
|
69
|
+
"tidily": "0.0.50"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@stencil/core": "^2.10.0",
|