smoothly 1.0.0-alpha.6 → 1.0.0-alpha.7
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_63.cjs.entry.js +165 -26
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/form/Clearable.js +7 -0
- package/dist/collection/components/form/Data.js +14 -0
- package/dist/collection/components/form/index.js +86 -3
- package/dist/collection/components/form/style.css +3 -0
- package/dist/collection/components/input/index.js +35 -8
- package/dist/collection/components/submit/Data copy.js +12 -0
- package/dist/collection/components/submit/Data.spec copy.js +23 -0
- package/dist/custom-elements/index.js +166 -27
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-accordion_63.entry.js +165 -26
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{p-87e01e82.entry.js → p-5958185d.entry.js} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/form/Clearable.d.ts +6 -0
- package/dist/types/components/form/Data.d.ts +9 -0
- package/dist/types/components/form/index.d.ts +11 -0
- package/dist/types/components/input/index.d.ts +3 -8
- package/dist/types/components/submit/Data copy.d.ts +7 -0
- package/dist/types/components/submit/Data.spec copy.d.ts +1 -0
- package/dist/types/components.d.ts +14 -4
- package/package.json +3 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["smoothly-color.cjs",[[6,"smoothly-color",{"color":[513]}]]],["smoothly-country.cjs",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_63.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-table-demo-filtered",{"criteria":[32],"data":[32]},[[0,"filters","onFilterUpdate"]]],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[2,"smoothly-addresses",{"value":[16],"editable":[16]}],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[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-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-summary",{"color":[1],"fill":[1],"size":[1]}],[6,"smoothly-table-cell"],[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]}],[1,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1],"download":[4]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[4,"smoothly-form",{"looks":[513]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[1,"smoothly-toggle-switch",{"selected":[1540],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-address",{"value":[16],"editable":[4]}],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[1,"smoothly-filter",{"criteria":[1040],"inputValue":[1032,"input-value"],"isExpanded":[32],"freeSearchValue":[32]},[[0,"filter","filterHandler"]]],[1,"smoothly-filter-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[2,"min-length"],"showLabel":[516,"show-label"],"maxLength":[2,"max-length"],"autocomplete":[4],"pattern":[16],"placeholder":[1],"disabled":[4],"readonly":[4],"currency":[513],"comparison":[1],"criteria":[32],"clear":[64]}],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table",{"root":[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[0,"smoothly-tuple",{"tuple":[16]}],[2,"smoothly-address-display",{"value":[16],"editable":[4]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[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]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[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-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["smoothly-color.cjs",[[6,"smoothly-color",{"color":[513]}]]],["smoothly-country.cjs",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_63.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-table-demo-filtered",{"criteria":[32],"data":[32]},[[0,"filters","onFilterUpdate"]]],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[2,"smoothly-addresses",{"value":[16],"editable":[16]}],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[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-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-summary",{"color":[1],"fill":[1],"size":[1]}],[6,"smoothly-table-cell"],[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]}],[1,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1],"download":[4]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[4,"smoothly-form",{"looks":[513],"name":[1],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"]]],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[1,"smoothly-toggle-switch",{"selected":[1540],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-address",{"value":[16],"editable":[4]}],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[1,"smoothly-filter",{"criteria":[1040],"inputValue":[1032,"input-value"],"isExpanded":[32],"freeSearchValue":[32]},[[0,"filter","filterHandler"]]],[1,"smoothly-filter-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[2,"min-length"],"showLabel":[516,"show-label"],"maxLength":[2,"max-length"],"autocomplete":[4],"pattern":[16],"placeholder":[1],"disabled":[4],"readonly":[4],"currency":[513],"comparison":[1],"criteria":[32],"clear":[64]}],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table",{"root":[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[0,"smoothly-tuple",{"tuple":[16]}],[2,"smoothly-address-display",{"value":[16],"editable":[4]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[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]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[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],"clear":[64],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -20978,6 +20978,25 @@ exports.and = and;
|
|
|
20978
20978
|
//# sourceMappingURL=And.js.map
|
|
20979
20979
|
});
|
|
20980
20980
|
|
|
20981
|
+
var Criteria_1 = createCommonjsModule(function (module, exports) {
|
|
20982
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20983
|
+
exports.isCriteria = exports.Criteria = void 0;
|
|
20984
|
+
(function (Criteria) {
|
|
20985
|
+
Criteria.is = isCriteria;
|
|
20986
|
+
})(exports.Criteria || (exports.Criteria = {}));
|
|
20987
|
+
function isCriteria(value, recursive = false) {
|
|
20988
|
+
return (typeof value == "number" ||
|
|
20989
|
+
typeof value == "string" ||
|
|
20990
|
+
value instanceof Rule_1.Rule ||
|
|
20991
|
+
(recursive &&
|
|
20992
|
+
typeof value == "object" &&
|
|
20993
|
+
value &&
|
|
20994
|
+
Object.values(value).every(value => Array.isArray(value) ? value.every(value => isCriteria(value, true)) : isCriteria(value, true))));
|
|
20995
|
+
}
|
|
20996
|
+
exports.isCriteria = isCriteria;
|
|
20997
|
+
//# sourceMappingURL=Criteria.js.map
|
|
20998
|
+
});
|
|
20999
|
+
|
|
20981
21000
|
var Level_1 = createCommonjsModule(function (module, exports) {
|
|
20982
21001
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20983
21002
|
(function (Level) {
|
|
@@ -23229,17 +23248,6 @@ Type_1.Type.String.add(complete);
|
|
|
23229
23248
|
//# sourceMappingURL=Includes.js.map
|
|
23230
23249
|
});
|
|
23231
23250
|
|
|
23232
|
-
var Criteria = createCommonjsModule(function (module, exports) {
|
|
23233
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23234
|
-
exports.isCriteria = void 0;
|
|
23235
|
-
|
|
23236
|
-
function isCriteria(value) {
|
|
23237
|
-
return typeof value == "number" || typeof value == "string" || value.class instanceof Rule_1.Rule;
|
|
23238
|
-
}
|
|
23239
|
-
exports.isCriteria = isCriteria;
|
|
23240
|
-
//# sourceMappingURL=Criteria.js.map
|
|
23241
|
-
});
|
|
23242
|
-
|
|
23243
23251
|
var Some_1 = createCommonjsModule(function (module, exports) {
|
|
23244
23252
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23245
23253
|
exports.some = exports.Some = void 0;
|
|
@@ -23301,9 +23309,10 @@ class Is extends Rule_1.Rule {
|
|
|
23301
23309
|
this.symbol = ":";
|
|
23302
23310
|
}
|
|
23303
23311
|
is(value, object) {
|
|
23304
|
-
return Array.isArray(value) && (0,
|
|
23312
|
+
return Array.isArray(value) && (0, Criteria_1.isCriteria)(this.value)
|
|
23305
23313
|
? (0, Some_1.some)(this.value, value)
|
|
23306
|
-
: (
|
|
23314
|
+
: (typeof value == "boolean" ? value.toString() : isNaN(+value) ? value : +value) ==
|
|
23315
|
+
(typeof this.value == "object" ? this.value.evaluate(object) : this.value);
|
|
23307
23316
|
}
|
|
23308
23317
|
toString() {
|
|
23309
23318
|
return this.value.toString();
|
|
@@ -24024,6 +24033,12 @@ exports.InfixOperator = void 0;
|
|
|
24024
24033
|
|
|
24025
24034
|
|
|
24026
24035
|
class InfixOperator extends Expression_1.Expression {
|
|
24036
|
+
toString() {
|
|
24037
|
+
const symbol = this.symbol;
|
|
24038
|
+
return (this.left.stringify(InfixOperator.getPrecedence(symbol)) +
|
|
24039
|
+
` ${symbol} ` +
|
|
24040
|
+
this.right.stringify(InfixOperator.getPrecedence(symbol)));
|
|
24041
|
+
}
|
|
24027
24042
|
constructor(symbol, precedence, left, right) {
|
|
24028
24043
|
super();
|
|
24029
24044
|
this.precedence = precedence;
|
|
@@ -24032,12 +24047,6 @@ class InfixOperator extends Expression_1.Expression {
|
|
|
24032
24047
|
this.class = "InfixOperator";
|
|
24033
24048
|
this.symbol = symbol.replace(/ /g, "");
|
|
24034
24049
|
}
|
|
24035
|
-
toString() {
|
|
24036
|
-
const symbol = this.symbol;
|
|
24037
|
-
return (this.left.stringify(InfixOperator.getPrecedence(symbol)) +
|
|
24038
|
-
` ${symbol} ` +
|
|
24039
|
-
this.right.stringify(InfixOperator.getPrecedence(symbol)));
|
|
24040
|
-
}
|
|
24041
24050
|
evaluate(criteria) {
|
|
24042
24051
|
let result;
|
|
24043
24052
|
switch (this.getSymbol()) {
|
|
@@ -24519,9 +24528,97 @@ exports.Tuple = Tuple;
|
|
|
24519
24528
|
//# sourceMappingURL=Tuple.js.map
|
|
24520
24529
|
});
|
|
24521
24530
|
|
|
24531
|
+
var selectively = createCommonjsModule(function (module, exports) {
|
|
24532
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24533
|
+
exports.within = exports.startsWith = exports.some = exports.resolve = exports.property = exports.parseExpression = exports.parse = exports.or = exports.not = exports.match = exports.is = exports.includes = exports.lesserThanOrEqual = exports.lesserThan = exports.greaterThanOrEqual = exports.greaterThan = exports.filter = exports.has = exports.every = exports.endsWith = exports.create = exports.and = exports.any = exports.Within = exports.Value = exports.Type = exports.Tuple = exports.StartsWith = exports.Some = exports.Rule = exports.Property = exports.Or = exports.Not = exports.Match = exports.Is = exports.Includes = exports.LesserThanOrEqual = exports.LesserThan = exports.GreaterThanOrEqual = exports.GreaterThan = exports.Has = exports.FunctionCall = exports.Every = exports.EndsWith = exports.Criteria = exports.Any = exports.And = void 0;
|
|
24534
|
+
|
|
24535
|
+
|
|
24536
|
+
Object.defineProperty(exports, "And", { enumerable: true, get: function () { return And_1.And; } });
|
|
24537
|
+
Object.defineProperty(exports, "and", { enumerable: true, get: function () { return And_1.and; } });
|
|
24538
|
+
|
|
24539
|
+
Object.defineProperty(exports, "Any", { enumerable: true, get: function () { return Any_1.Any; } });
|
|
24540
|
+
Object.defineProperty(exports, "any", { enumerable: true, get: function () { return Any_1.any; } });
|
|
24541
|
+
|
|
24542
|
+
Object.defineProperty(exports, "Criteria", { enumerable: true, get: function () { return Criteria_1.Criteria; } });
|
|
24543
|
+
|
|
24544
|
+
Object.defineProperty(exports, "EndsWith", { enumerable: true, get: function () { return EndsWith_1.EndsWith; } });
|
|
24545
|
+
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return EndsWith_1.endsWith; } });
|
|
24546
|
+
|
|
24547
|
+
Object.defineProperty(exports, "Every", { enumerable: true, get: function () { return Every_1.Every; } });
|
|
24548
|
+
Object.defineProperty(exports, "every", { enumerable: true, get: function () { return Every_1.every; } });
|
|
24549
|
+
|
|
24550
|
+
Object.defineProperty(exports, "FunctionCall", { enumerable: true, get: function () { return FunctionCall_1.FunctionCall; } });
|
|
24551
|
+
|
|
24552
|
+
Object.defineProperty(exports, "GreaterThan", { enumerable: true, get: function () { return GreaterThan_1.GreaterThan; } });
|
|
24553
|
+
Object.defineProperty(exports, "greaterThan", { enumerable: true, get: function () { return GreaterThan_1.greaterThan; } });
|
|
24554
|
+
|
|
24555
|
+
Object.defineProperty(exports, "GreaterThanOrEqual", { enumerable: true, get: function () { return GreaterThanOrEqual_1.GreaterThanOrEqual; } });
|
|
24556
|
+
Object.defineProperty(exports, "greaterThanOrEqual", { enumerable: true, get: function () { return GreaterThanOrEqual_1.greaterThanOrEqual; } });
|
|
24557
|
+
|
|
24558
|
+
Object.defineProperty(exports, "Has", { enumerable: true, get: function () { return Has_1.Has; } });
|
|
24559
|
+
Object.defineProperty(exports, "has", { enumerable: true, get: function () { return Has_1.has; } });
|
|
24560
|
+
|
|
24561
|
+
Object.defineProperty(exports, "Includes", { enumerable: true, get: function () { return Includes_1.Includes; } });
|
|
24562
|
+
Object.defineProperty(exports, "includes", { enumerable: true, get: function () { return Includes_1.includes; } });
|
|
24563
|
+
|
|
24564
|
+
Object.defineProperty(exports, "Is", { enumerable: true, get: function () { return Is_1.Is; } });
|
|
24565
|
+
|
|
24566
|
+
Object.defineProperty(exports, "LesserThan", { enumerable: true, get: function () { return LesserThan_1.LesserThan; } });
|
|
24567
|
+
Object.defineProperty(exports, "lesserThan", { enumerable: true, get: function () { return LesserThan_1.lesserThan; } });
|
|
24568
|
+
|
|
24569
|
+
Object.defineProperty(exports, "LesserThanOrEqual", { enumerable: true, get: function () { return LesserThanOrEqual_1.LesserThanOrEqual; } });
|
|
24570
|
+
Object.defineProperty(exports, "lesserThanOrEqual", { enumerable: true, get: function () { return LesserThanOrEqual_1.lesserThanOrEqual; } });
|
|
24571
|
+
|
|
24572
|
+
Object.defineProperty(exports, "Match", { enumerable: true, get: function () { return Match_1.Match; } });
|
|
24573
|
+
Object.defineProperty(exports, "match", { enumerable: true, get: function () { return Match_1.match; } });
|
|
24574
|
+
|
|
24575
|
+
Object.defineProperty(exports, "Not", { enumerable: true, get: function () { return Not_1.Not; } });
|
|
24576
|
+
Object.defineProperty(exports, "not", { enumerable: true, get: function () { return Not_1.not; } });
|
|
24577
|
+
|
|
24578
|
+
Object.defineProperty(exports, "Or", { enumerable: true, get: function () { return Or_1.Or; } });
|
|
24579
|
+
Object.defineProperty(exports, "or", { enumerable: true, get: function () { return Or_1.or; } });
|
|
24580
|
+
|
|
24581
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse$2.parse; } });
|
|
24582
|
+
Object.defineProperty(exports, "parseExpression", { enumerable: true, get: function () { return parse$2.parseExpression; } });
|
|
24583
|
+
|
|
24584
|
+
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return Property_1.Property; } });
|
|
24585
|
+
Object.defineProperty(exports, "property", { enumerable: true, get: function () { return Property_1.property; } });
|
|
24586
|
+
|
|
24587
|
+
Object.defineProperty(exports, "resolve", { enumerable: true, get: function () { return resolve.resolve; } });
|
|
24588
|
+
|
|
24589
|
+
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return Rule_1.create; } });
|
|
24590
|
+
Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return Rule_1.Rule; } });
|
|
24591
|
+
|
|
24592
|
+
Object.defineProperty(exports, "Some", { enumerable: true, get: function () { return Some_1.Some; } });
|
|
24593
|
+
Object.defineProperty(exports, "some", { enumerable: true, get: function () { return Some_1.some; } });
|
|
24594
|
+
|
|
24595
|
+
Object.defineProperty(exports, "StartsWith", { enumerable: true, get: function () { return StartsWith_1.StartsWith; } });
|
|
24596
|
+
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return StartsWith_1.startsWith; } });
|
|
24597
|
+
|
|
24598
|
+
Object.defineProperty(exports, "Tuple", { enumerable: true, get: function () { return Tuple_1.Tuple; } });
|
|
24599
|
+
|
|
24600
|
+
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return Type_1.Type; } });
|
|
24601
|
+
|
|
24602
|
+
Object.defineProperty(exports, "Value", { enumerable: true, get: function () { return Value_1.Value; } });
|
|
24603
|
+
|
|
24604
|
+
Object.defineProperty(exports, "Within", { enumerable: true, get: function () { return Within_1.Within; } });
|
|
24605
|
+
Object.defineProperty(exports, "within", { enumerable: true, get: function () { return Within_1.within; } });
|
|
24606
|
+
function is(criteria, value) {
|
|
24607
|
+
const result = (0, Rule_1.create)(criteria);
|
|
24608
|
+
return value ? result.is(value) : result;
|
|
24609
|
+
}
|
|
24610
|
+
exports.is = is;
|
|
24611
|
+
function filter(criteria, value) {
|
|
24612
|
+
const c = (0, Rule_1.create)(criteria);
|
|
24613
|
+
return c.filter(value);
|
|
24614
|
+
}
|
|
24615
|
+
exports.filter = filter;
|
|
24616
|
+
//# sourceMappingURL=selectively.js.map
|
|
24617
|
+
});
|
|
24618
|
+
|
|
24522
24619
|
var dist = createCommonjsModule(function (module, exports) {
|
|
24523
24620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24524
|
-
exports.within = exports.startsWith = exports.some = exports.resolve = exports.property = exports.parseExpression = exports.parse = exports.or = exports.not = exports.match = exports.is = exports.includes = exports.lesserThanOrEqual = exports.lesserThan = exports.greaterThanOrEqual = exports.greaterThan = exports.filter = exports.has = exports.every = exports.endsWith = exports.create = exports.and = exports.any = exports.Within = exports.Value = exports.Type = exports.Tuple = exports.StartsWith = exports.Some = exports.Rule = exports.Property = exports.Or = exports.Not = exports.Match = exports.Is = exports.Includes = exports.LesserThanOrEqual = exports.LesserThan = exports.GreaterThanOrEqual = exports.GreaterThan = exports.Has = exports.FunctionCall = exports.Every = exports.EndsWith = exports.Any = exports.And = void 0;
|
|
24621
|
+
exports.within = exports.startsWith = exports.some = exports.resolve = exports.property = exports.parseExpression = exports.parse = exports.or = exports.not = exports.match = exports.is = exports.includes = exports.lesserThanOrEqual = exports.lesserThan = exports.greaterThanOrEqual = exports.greaterThan = exports.filter = exports.has = exports.every = exports.endsWith = exports.create = exports.and = exports.any = exports.Within = exports.Value = exports.Type = exports.Tuple = exports.StartsWith = exports.Some = exports.Rule = exports.Property = exports.Or = exports.Not = exports.Match = exports.Is = exports.Includes = exports.LesserThanOrEqual = exports.LesserThan = exports.GreaterThanOrEqual = exports.GreaterThan = exports.Has = exports.FunctionCall = exports.Every = exports.EndsWith = exports.Criteria = exports.Any = exports.And = exports.selectively = void 0;
|
|
24525
24622
|
|
|
24526
24623
|
|
|
24527
24624
|
Object.defineProperty(exports, "And", { enumerable: true, get: function () { return And_1.And; } });
|
|
@@ -24530,6 +24627,8 @@ Object.defineProperty(exports, "and", { enumerable: true, get: function () { ret
|
|
|
24530
24627
|
Object.defineProperty(exports, "Any", { enumerable: true, get: function () { return Any_1.Any; } });
|
|
24531
24628
|
Object.defineProperty(exports, "any", { enumerable: true, get: function () { return Any_1.any; } });
|
|
24532
24629
|
|
|
24630
|
+
Object.defineProperty(exports, "Criteria", { enumerable: true, get: function () { return Criteria_1.Criteria; } });
|
|
24631
|
+
|
|
24533
24632
|
Object.defineProperty(exports, "EndsWith", { enumerable: true, get: function () { return EndsWith_1.EndsWith; } });
|
|
24534
24633
|
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return EndsWith_1.endsWith; } });
|
|
24535
24634
|
|
|
@@ -24602,6 +24701,7 @@ function filter(criteria, value) {
|
|
|
24602
24701
|
return c.filter(value);
|
|
24603
24702
|
}
|
|
24604
24703
|
exports.filter = filter;
|
|
24704
|
+
exports.selectively = selectively;
|
|
24605
24705
|
//# sourceMappingURL=index.js.map
|
|
24606
24706
|
});
|
|
24607
24707
|
|
|
@@ -24705,17 +24805,53 @@ const SmoothlyFilterInput = class {
|
|
|
24705
24805
|
};
|
|
24706
24806
|
SmoothlyFilterInput.style = styleCss$F;
|
|
24707
24807
|
|
|
24708
|
-
|
|
24808
|
+
var Clearable;
|
|
24809
|
+
(function (Clearable) {
|
|
24810
|
+
function is(value) {
|
|
24811
|
+
return value && typeof value == "object" && typeof value.clear == "function";
|
|
24812
|
+
}
|
|
24813
|
+
Clearable.is = is;
|
|
24814
|
+
})(Clearable || (Clearable = {}));
|
|
24815
|
+
|
|
24816
|
+
var Data$1;
|
|
24817
|
+
(function (Data) {
|
|
24818
|
+
function set(data, [head, ...tail], value) {
|
|
24819
|
+
const current = data[head !== null && head !== void 0 ? head : ""];
|
|
24820
|
+
return Object.assign(Object.assign({}, data), { [head !== null && head !== void 0 ? head : ""]: !tail.length
|
|
24821
|
+
? value
|
|
24822
|
+
: set(typeof current == "object" && !(current instanceof Blob) ? current : {}, tail, value) });
|
|
24823
|
+
}
|
|
24824
|
+
Data.set = set;
|
|
24825
|
+
function deepen(data) {
|
|
24826
|
+
return Object.entries(data).reduce((result, [name, value]) => set(result, name.split("."), value), {});
|
|
24827
|
+
}
|
|
24828
|
+
Data.deepen = deepen;
|
|
24829
|
+
})(Data$1 || (Data$1 = {}));
|
|
24830
|
+
|
|
24831
|
+
const styleCss$E = "smoothly-form{display:block}smoothly-form>form{position:\"relative\"}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:10em;width:40%}smoothly-form[looks=\"border\"]>form>fieldset>*,smoothly-form[looks=\"grid\"]>form>fieldset>*{border:rgb(var(--smoothly-default-contrast)) solid 1px}smoothly-form[looks=\"line\"]>form>fieldset>*{border-bottom:rgb(var(--smoothly-default-contrast)) solid 1px}smoothly-form[looks=\"grid\"]>form>fieldset{border:rgba(var(--smoothly-default-contrast), .5) solid .5px}smoothly-form[looks=\"grid\"]>form>fieldset>*{border:rgba(var(--smoothly-default-contrast), .5) solid .5px}smoothly-form[looks=\"line\"]>form>fieldset,smoothly-form[looks=\"border\"]>form>fieldset{gap:2em}smoothly-form>form>[slot=submit]{margin:.5em auto;max-width:10em}";
|
|
24709
24832
|
|
|
24710
24833
|
const SmoothlyForm = class {
|
|
24711
24834
|
constructor(hostRef) {
|
|
24712
24835
|
index.registerInstance(this, hostRef);
|
|
24836
|
+
this.smoothlyInput = index.createEvent(this, "smoothlyInput", 7);
|
|
24837
|
+
this.value = {};
|
|
24838
|
+
this.clearables = new Map();
|
|
24713
24839
|
this.looks = "plain";
|
|
24840
|
+
this.name = undefined;
|
|
24841
|
+
}
|
|
24842
|
+
async smoothlyInputHandler(event) {
|
|
24843
|
+
event.stopPropagation();
|
|
24844
|
+
this.value = Object.entries(event.detail).reduce((r, [name, value]) => Data$1.set(r, name.split("."), value), this.value);
|
|
24845
|
+
if (Clearable.is(event.target)) {
|
|
24846
|
+
const clearable = event.target;
|
|
24847
|
+
Object.keys(event.detail).forEach(key => this.clearables.set(key, clearable));
|
|
24848
|
+
}
|
|
24849
|
+
}
|
|
24850
|
+
async clear() {
|
|
24851
|
+
new Set(this.clearables.values()).forEach(clearable => clearable.clear());
|
|
24714
24852
|
}
|
|
24715
24853
|
render() {
|
|
24716
|
-
return (index.h("form",
|
|
24717
|
-
position: "relative",
|
|
24718
|
-
} }, index.h("fieldset", null, index.h("slot", null)), index.h("slot", { name: "submit" })));
|
|
24854
|
+
return (index.h("form", null, index.h("fieldset", null, index.h("slot", null)), index.h("slot", { name: "submit" })));
|
|
24719
24855
|
}
|
|
24720
24856
|
};
|
|
24721
24857
|
SmoothlyForm.style = styleCss$E;
|
|
@@ -25348,7 +25484,7 @@ const SmoothlyInput = class {
|
|
|
25348
25484
|
if (value != before) {
|
|
25349
25485
|
if (typeof value == "string")
|
|
25350
25486
|
value = value.trim();
|
|
25351
|
-
this.smoothlyInput.emit({
|
|
25487
|
+
this.smoothlyInput.emit({ [this.name]: value });
|
|
25352
25488
|
}
|
|
25353
25489
|
}
|
|
25354
25490
|
onCurrency() {
|
|
@@ -25368,6 +25504,9 @@ const SmoothlyInput = class {
|
|
|
25368
25504
|
this.keepFocusOnReRender = false;
|
|
25369
25505
|
}
|
|
25370
25506
|
}
|
|
25507
|
+
async clear() {
|
|
25508
|
+
this.value = undefined;
|
|
25509
|
+
}
|
|
25371
25510
|
async getFormData(name) {
|
|
25372
25511
|
const result = {};
|
|
25373
25512
|
const form = document.forms.namedItem(name);
|
|
@@ -25401,7 +25540,7 @@ const SmoothlyInput = class {
|
|
|
25401
25540
|
onBlur(event) {
|
|
25402
25541
|
this.smoothlyBlur.emit();
|
|
25403
25542
|
if (this.initialValue != this.value)
|
|
25404
|
-
this.smoothlyChange.emit({
|
|
25543
|
+
this.smoothlyChange.emit({ [this.name]: this.value });
|
|
25405
25544
|
this.initialValue = undefined;
|
|
25406
25545
|
}
|
|
25407
25546
|
onFocus(event) {
|
package/dist/cjs/smoothly.cjs.js
CHANGED
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["smoothly-color.cjs",[[6,"smoothly-color",{"color":[513]}]]],["smoothly-country.cjs",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_63.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-table-demo-filtered",{"criteria":[32],"data":[32]},[[0,"filters","onFilterUpdate"]]],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[2,"smoothly-addresses",{"value":[16],"editable":[16]}],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[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-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-summary",{"color":[1],"fill":[1],"size":[1]}],[6,"smoothly-table-cell"],[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]}],[1,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1],"download":[4]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[4,"smoothly-form",{"looks":[513]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[1,"smoothly-toggle-switch",{"selected":[1540],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-address",{"value":[16],"editable":[4]}],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[1,"smoothly-filter",{"criteria":[1040],"inputValue":[1032,"input-value"],"isExpanded":[32],"freeSearchValue":[32]},[[0,"filter","filterHandler"]]],[1,"smoothly-filter-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[2,"min-length"],"showLabel":[516,"show-label"],"maxLength":[2,"max-length"],"autocomplete":[4],"pattern":[16],"placeholder":[1],"disabled":[4],"readonly":[4],"currency":[513],"comparison":[1],"criteria":[32],"clear":[64]}],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table",{"root":[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[0,"smoothly-tuple",{"tuple":[16]}],[2,"smoothly-address-display",{"value":[16],"editable":[4]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[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]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[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-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
20
|
+
return index.bootstrapLazy([["smoothly-color.cjs",[[6,"smoothly-color",{"color":[513]}]]],["smoothly-country.cjs",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_63.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-table-demo-filtered",{"criteria":[32],"data":[32]},[[0,"filters","onFilterUpdate"]]],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[2,"smoothly-addresses",{"value":[16],"editable":[16]}],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[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-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-summary",{"color":[1],"fill":[1],"size":[1]}],[6,"smoothly-table-cell"],[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]}],[1,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1],"download":[4]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[4,"smoothly-form",{"looks":[513],"name":[1],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"]]],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[1,"smoothly-toggle-switch",{"selected":[1540],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-address",{"value":[16],"editable":[4]}],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[1,"smoothly-filter",{"criteria":[1040],"inputValue":[1032,"input-value"],"isExpanded":[32],"freeSearchValue":[32]},[[0,"filter","filterHandler"]]],[1,"smoothly-filter-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[2,"min-length"],"showLabel":[516,"show-label"],"maxLength":[2,"max-length"],"autocomplete":[4],"pattern":[16],"placeholder":[1],"disabled":[4],"readonly":[4],"currency":[513],"comparison":[1],"criteria":[32],"clear":[64]}],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table",{"root":[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[0,"smoothly-tuple",{"tuple":[16]}],[2,"smoothly-address-display",{"value":[16],"editable":[4]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[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]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[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],"clear":[64],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var Data;
|
|
2
|
+
(function (Data) {
|
|
3
|
+
function set(data, [head, ...tail], value) {
|
|
4
|
+
const current = data[head !== null && head !== void 0 ? head : ""];
|
|
5
|
+
return Object.assign(Object.assign({}, data), { [head !== null && head !== void 0 ? head : ""]: !tail.length
|
|
6
|
+
? value
|
|
7
|
+
: set(typeof current == "object" && !(current instanceof Blob) ? current : {}, tail, value) });
|
|
8
|
+
}
|
|
9
|
+
Data.set = set;
|
|
10
|
+
function deepen(data) {
|
|
11
|
+
return Object.entries(data).reduce((result, [name, value]) => set(result, name.split("."), value), {});
|
|
12
|
+
}
|
|
13
|
+
Data.deepen = deepen;
|
|
14
|
+
})(Data || (Data = {}));
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { Clearable } from "./Clearable";
|
|
3
|
+
import { Data } from "./Data";
|
|
2
4
|
export class SmoothlyForm {
|
|
3
5
|
constructor() {
|
|
6
|
+
this.value = {};
|
|
7
|
+
this.clearables = new Map();
|
|
4
8
|
this.looks = "plain";
|
|
9
|
+
this.name = undefined;
|
|
10
|
+
}
|
|
11
|
+
async smoothlyInputHandler(event) {
|
|
12
|
+
event.stopPropagation();
|
|
13
|
+
this.value = Object.entries(event.detail).reduce((r, [name, value]) => Data.set(r, name.split("."), value), this.value);
|
|
14
|
+
if (Clearable.is(event.target)) {
|
|
15
|
+
const clearable = event.target;
|
|
16
|
+
Object.keys(event.detail).forEach(key => this.clearables.set(key, clearable));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async clear() {
|
|
20
|
+
new Set(this.clearables.values()).forEach(clearable => clearable.clear());
|
|
5
21
|
}
|
|
6
22
|
render() {
|
|
7
|
-
return (h("form",
|
|
8
|
-
position: "relative",
|
|
9
|
-
} }, h("fieldset", null, h("slot", null)), h("slot", { name: "submit" })));
|
|
23
|
+
return (h("form", null, h("fieldset", null, h("slot", null)), h("slot", { name: "submit" })));
|
|
10
24
|
}
|
|
11
25
|
static get is() { return "smoothly-form"; }
|
|
12
26
|
static get originalStyleUrls() {
|
|
@@ -38,7 +52,76 @@ export class SmoothlyForm {
|
|
|
38
52
|
"attribute": "looks",
|
|
39
53
|
"reflect": true,
|
|
40
54
|
"defaultValue": "\"plain\""
|
|
55
|
+
},
|
|
56
|
+
"name": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "string",
|
|
61
|
+
"resolved": "string | undefined",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": true,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"attribute": "name",
|
|
71
|
+
"reflect": false
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static get events() {
|
|
76
|
+
return [{
|
|
77
|
+
"method": "smoothlyInput",
|
|
78
|
+
"name": "smoothlyInput",
|
|
79
|
+
"bubbles": true,
|
|
80
|
+
"cancelable": true,
|
|
81
|
+
"composed": true,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": ""
|
|
85
|
+
},
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "{ name: string; value: Data }",
|
|
88
|
+
"resolved": "{ name: string; value: Data; }",
|
|
89
|
+
"references": {
|
|
90
|
+
"Data": {
|
|
91
|
+
"location": "import",
|
|
92
|
+
"path": "./Data"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}];
|
|
97
|
+
}
|
|
98
|
+
static get methods() {
|
|
99
|
+
return {
|
|
100
|
+
"clear": {
|
|
101
|
+
"complexType": {
|
|
102
|
+
"signature": "() => Promise<void>",
|
|
103
|
+
"parameters": [],
|
|
104
|
+
"references": {
|
|
105
|
+
"Promise": {
|
|
106
|
+
"location": "global"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"return": "Promise<void>"
|
|
110
|
+
},
|
|
111
|
+
"docs": {
|
|
112
|
+
"text": "",
|
|
113
|
+
"tags": []
|
|
114
|
+
}
|
|
41
115
|
}
|
|
42
116
|
};
|
|
43
117
|
}
|
|
118
|
+
static get listeners() {
|
|
119
|
+
return [{
|
|
120
|
+
"name": "smoothlyInput",
|
|
121
|
+
"method": "smoothlyInputHandler",
|
|
122
|
+
"target": undefined,
|
|
123
|
+
"capture": false,
|
|
124
|
+
"passive": false
|
|
125
|
+
}];
|
|
126
|
+
}
|
|
44
127
|
}
|
|
@@ -43,7 +43,7 @@ export class SmoothlyInput {
|
|
|
43
43
|
if (value != before) {
|
|
44
44
|
if (typeof value == "string")
|
|
45
45
|
value = value.trim();
|
|
46
|
-
this.smoothlyInput.emit({
|
|
46
|
+
this.smoothlyInput.emit({ [this.name]: value });
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
onCurrency() {
|
|
@@ -63,6 +63,9 @@ export class SmoothlyInput {
|
|
|
63
63
|
this.keepFocusOnReRender = false;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
async clear() {
|
|
67
|
+
this.value = undefined;
|
|
68
|
+
}
|
|
66
69
|
async getFormData(name) {
|
|
67
70
|
const result = {};
|
|
68
71
|
const form = document.forms.namedItem(name);
|
|
@@ -96,7 +99,7 @@ export class SmoothlyInput {
|
|
|
96
99
|
onBlur(event) {
|
|
97
100
|
this.smoothlyBlur.emit();
|
|
98
101
|
if (this.initialValue != this.value)
|
|
99
|
-
this.smoothlyChange.emit({
|
|
102
|
+
this.smoothlyChange.emit({ [this.name]: this.value });
|
|
100
103
|
this.initialValue = undefined;
|
|
101
104
|
}
|
|
102
105
|
onFocus(event) {
|
|
@@ -481,9 +484,13 @@ export class SmoothlyInput {
|
|
|
481
484
|
"text": ""
|
|
482
485
|
},
|
|
483
486
|
"complexType": {
|
|
484
|
-
"original": "
|
|
485
|
-
"resolved": "{
|
|
486
|
-
"references": {
|
|
487
|
+
"original": "Record<string, any>",
|
|
488
|
+
"resolved": "{ [x: string]: any; }",
|
|
489
|
+
"references": {
|
|
490
|
+
"Record": {
|
|
491
|
+
"location": "global"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
487
494
|
}
|
|
488
495
|
}, {
|
|
489
496
|
"method": "smoothlyInput",
|
|
@@ -496,14 +503,34 @@ export class SmoothlyInput {
|
|
|
496
503
|
"text": ""
|
|
497
504
|
},
|
|
498
505
|
"complexType": {
|
|
499
|
-
"original": "
|
|
500
|
-
"resolved": "{
|
|
501
|
-
"references": {
|
|
506
|
+
"original": "Record<string, any>",
|
|
507
|
+
"resolved": "{ [x: string]: any; }",
|
|
508
|
+
"references": {
|
|
509
|
+
"Record": {
|
|
510
|
+
"location": "global"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
502
513
|
}
|
|
503
514
|
}];
|
|
504
515
|
}
|
|
505
516
|
static get methods() {
|
|
506
517
|
return {
|
|
518
|
+
"clear": {
|
|
519
|
+
"complexType": {
|
|
520
|
+
"signature": "() => Promise<void>",
|
|
521
|
+
"parameters": [],
|
|
522
|
+
"references": {
|
|
523
|
+
"Promise": {
|
|
524
|
+
"location": "global"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"return": "Promise<void>"
|
|
528
|
+
},
|
|
529
|
+
"docs": {
|
|
530
|
+
"text": "",
|
|
531
|
+
"tags": []
|
|
532
|
+
}
|
|
533
|
+
},
|
|
507
534
|
"getFormData": {
|
|
508
535
|
"complexType": {
|
|
509
536
|
"signature": "(name: string) => Promise<Record<string, any>>",
|