smoothly 0.1.78 → 0.1.82
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-7c9d0102.js → index-42db74b3.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-accordion_46.cjs.entry.js → smoothly-accordion_47.cjs.entry.js} +111 -78
- package/dist/cjs/smoothly-calendar.cjs.entry.js +26 -17
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input.cjs.entry.js +17 -10
- package/dist/cjs/smoothly-item.cjs.entry.js +4 -0
- package/dist/cjs/smoothly-quiet.cjs.entry.js +19 -0
- package/dist/cjs/smoothly-select-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/calendar/index.js +69 -16
- package/dist/collection/components/calendar/style.css +7 -1
- package/dist/collection/components/display-demo/index.js +4 -1
- package/dist/collection/components/input/index.js +16 -9
- package/dist/collection/components/input-date/index.js +45 -1
- package/dist/collection/components/input-date-range/index.js +45 -1
- package/dist/collection/components/item/index.js +4 -0
- package/dist/collection/components/quiet/index.js +34 -0
- package/dist/collection/components/quiet/style.css +3 -0
- package/dist/collection/components/select-demo/index.js +2 -2
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +116 -81
- package/dist/{smoothly/index-01fedb5b.js → esm/index-36a04e8c.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-accordion_46.entry.js → smoothly-accordion_47.entry.js} +111 -79
- package/dist/esm/smoothly-calendar.entry.js +26 -17
- package/dist/esm/smoothly-display-demo.entry.js +1 -1
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-input-date-range.entry.js +1 -1
- package/dist/esm/smoothly-input-date.entry.js +1 -1
- package/dist/esm/smoothly-input.entry.js +17 -10
- package/dist/esm/smoothly-item.entry.js +4 -0
- package/dist/esm/smoothly-quiet.entry.js +15 -0
- package/dist/esm/smoothly-select-demo.entry.js +2 -2
- package/dist/esm/smoothly.js +1 -1
- package/dist/{esm/index-01fedb5b.js → smoothly/index-36a04e8c.js} +2 -2
- package/dist/smoothly/p-e3ae8b97.entry.js +1 -0
- package/dist/smoothly/smoothly-calendar.entry.js +26 -17
- package/dist/smoothly/smoothly-display-demo.entry.js +1 -1
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date-range.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date.entry.js +1 -1
- package/dist/smoothly/smoothly-input.entry.js +17 -10
- package/dist/smoothly/smoothly-item.entry.js +4 -0
- package/dist/smoothly/smoothly-quiet.entry.js +15 -0
- package/dist/smoothly/smoothly-select-demo.entry.js +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/calendar/index.d.ts +3 -0
- package/dist/types/components/input-date/index.d.ts +2 -0
- package/dist/types/components/input-date-range/index.d.ts +2 -0
- package/dist/types/components/item/index.d.ts +1 -0
- package/dist/types/components/quiet/index.d.ts +4 -0
- package/dist/types/components.d.ts +27 -0
- package/package.json +2 -2
- package/dist/smoothly/p-516b5fa4.entry.js +0 -1
|
@@ -212,9 +212,9 @@ var Action;
|
|
|
212
212
|
var _a, _b;
|
|
213
213
|
let result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(state)));
|
|
214
214
|
if (action) {
|
|
215
|
-
if (action.ctrlKey) {
|
|
215
|
+
if (action.ctrlKey || action.metaKey) {
|
|
216
216
|
if (action.key == "a")
|
|
217
|
-
select(
|
|
217
|
+
select(result, 0, result.value.length, "forward");
|
|
218
218
|
else if (["ArrowLeft", "ArrowRight"].includes(action.key) && ((_a = state) === null || _a === void 0 ? void 0 : _a.type) != "password")
|
|
219
219
|
result = ctrlArrow(formatter, state, action);
|
|
220
220
|
else if (["Delete", "Backspace"].includes(action.key) && ((_b = state) === null || _b === void 0 ? void 0 : _b.type) != "password")
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -30,7 +30,7 @@ const defineCustomElements = (win, options) => {
|
|
|
30
30
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
31
31
|
return patchEsm().then(() => {
|
|
32
32
|
appGlobals.globalScripts();
|
|
33
|
-
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["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-input-demo.cjs",[[0,"smoothly-input-demo"]]],["smoothly-select-demo.cjs",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo.cjs",[[2,"smoothly-table-demo"]]],["smoothly-display-demo.cjs",[[0,"smoothly-display-demo"]]],["smoothly-app.cjs",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo.cjs",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo.cjs",[[2,"smoothly-icon-demo"]]],["smoothly-room.cjs",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range.cjs",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker.cjs",[[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.cjs",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit.cjs",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame.cjs",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup.cjs",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select.cjs",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-tab.cjs",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch.cjs",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table.cjs",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell.cjs",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell.cjs",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row.cjs",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header.cjs",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row.cjs",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-
|
|
33
|
+
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["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-input-demo.cjs",[[0,"smoothly-input-demo"]]],["smoothly-select-demo.cjs",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo.cjs",[[2,"smoothly-table-demo"]]],["smoothly-display-demo.cjs",[[0,"smoothly-display-demo"]]],["smoothly-app.cjs",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo.cjs",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo.cjs",[[2,"smoothly-icon-demo"]]],["smoothly-room.cjs",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range.cjs",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker.cjs",[[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.cjs",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit.cjs",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame.cjs",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup.cjs",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-quiet.cjs",[[6,"smoothly-quiet",{"color":[1]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select.cjs",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-tab.cjs",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch.cjs",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table.cjs",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell.cjs",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell.cjs",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row.cjs",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header.cjs",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row.cjs",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon.cjs",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector.cjs",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date.cjs",[[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025]}]]],["smoothly-notification.cjs",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-option.cjs",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-menu-options.cjs",[[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.cjs",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-item.cjs",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-input-month.cjs",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-calendar.cjs",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"]}]]],["smoothly-input.cjs",[[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],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-trigger.cjs",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-41a36ce2.js');
|
|
|
6
6
|
const Notice = require('./Notice-9120d311.js');
|
|
7
7
|
const Trigger = require('./Trigger-74bd1ee8.js');
|
|
8
8
|
|
|
9
|
-
const styleCss$
|
|
9
|
+
const styleCss$D = "smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:0.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:0.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";
|
|
10
10
|
|
|
11
11
|
let SmoothlyAccordion = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -52,9 +52,9 @@ let SmoothlyAccordion = class {
|
|
|
52
52
|
"value": ["valueChanged"]
|
|
53
53
|
}; }
|
|
54
54
|
};
|
|
55
|
-
SmoothlyAccordion.style = styleCss$
|
|
55
|
+
SmoothlyAccordion.style = styleCss$D;
|
|
56
56
|
|
|
57
|
-
const styleCss$
|
|
57
|
+
const styleCss$C = ".sc-smoothly-accordion-item-h{display:block}[hidden].sc-smoothly-accordion-item-h{display:none}details.sc-smoothly-accordion-item{padding:0}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>span.sc-smoothly-accordion-item{float:right;margin:0.2em;font-size:60%}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{font-size:120%;list-style-type:none;cursor:pointer;padding:0.4em;color:rgb(var(--smoothly-text-tint))}details.sc-smoothly-accordion-item>fieldset.sc-smoothly-accordion-item{border:none;margin:0;padding:0}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item::-webkit-details-marker{display:none}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{width:1em;height:auto;margin-bottom:-0.2em;margin-right:0.4em}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-accordion-item-h:not([open])>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-text-tint))}";
|
|
58
58
|
|
|
59
59
|
let SmoothlyAccordionItem = class {
|
|
60
60
|
constructor(hostRef) {
|
|
@@ -99,9 +99,9 @@ let SmoothlyAccordionItem = class {
|
|
|
99
99
|
"open": ["openChanged"]
|
|
100
100
|
}; }
|
|
101
101
|
};
|
|
102
|
-
SmoothlyAccordionItem.style = styleCss$
|
|
102
|
+
SmoothlyAccordionItem.style = styleCss$C;
|
|
103
103
|
|
|
104
|
-
const styleCss$
|
|
104
|
+
const styleCss$B = "smoothly-app{display:block;scrollbar-width:none}smoothly-app[hidden]{display:none}smoothly-app[color=default],smoothly-app:not([color]){--smoothly-app-background:var(--smoothly-default-shade);--smoothly-app-color:var(--smoothly-default-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-default-shadow)}smoothly-app[color=primary]{--smoothly-app-background:var(--smoothly-primary-shade);--smoothly-app-color:var(--smoothly-primary-contrast);--smoothly-app-hover-background:var(--smoothly-secondary-color);--smoothly-app-hover-color:var(--smoothly-secondary-contrast);--smoothly-app-shadow:var(--smoothly-primary-shadow)}smoothly-app[color=secondary]{--smoothly-app-background:var(--smoothly-secondary-shade);--smoothly-app-color:var(--smoothly-secondary-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-secondary-shadow)}smoothly-app[color=tertiary],smoothly-app[color=success],smoothly-app[color=warning],smoothly-app[color=danger]{--smoothly-app-background:var(--smoothly-color-shade);--smoothly-app-color:var(--smoothly-color-contrast);--smoothly-app-hover-background:var(--smoothly-default-shade);--smoothly-app-hover-color:var(--smoothly-default-contrast);--smoothly-app-shadow:var(--smoothly-color-shadow)}smoothly-app>smoothly-notifier>header{position:fixed;top:0;left:0;width:100%;z-index:5;height:1.6cm;background-color:rgb(var(--smoothly-app-background));color:rgb(var(--smoothly-app-color));fill:rgb(var(--smoothly-app-color));stroke:rgb(var(--smoothly-app-color));display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 5px 0 rgba(var(--smoothly-app-shadow))}smoothly-app>smoothly-notifier>header a{color:inherit;text-decoration:inherit}smoothly-app>smoothly-notifier>header>nav{flex-shrink:0}smoothly-app>smoothly-notifier>header>h1,smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul,smoothly-app>smoothly-notifier>header>nav>ul>li,smoothly-app>smoothly-notifier>header>nav>ul>li>*:not(a){display:inline-block;height:100%;margin:0}smoothly-app>smoothly-notifier>header>h1 a{overflow:hidden;user-select:none}smoothly-app>smoothly-notifier>header>nav>ul>li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>h1 a,smoothly-app>smoothly-notifier>header>nav>ul>li a{display:inline-block;height:100%;padding:0 0.4cm;text-decoration:none;font-weight:bold}smoothly-app>smoothly-notifier>header>nav>ul>li smoothly-trigger.sc-smoothly-trigger-h{border:0}smoothly-app>smoothly-notifier>header>nav>ul>li a>smoothly-icon{position:relative;top:0.2cm}smoothly-app>smoothly-notifier>header>nav>ul>li>a:hover>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>a.active>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger.active a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger:hover a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li a:hover,smoothly-app>smoothly-notifier>header>nav>ul>li a.active{background-color:rgb(var(--smoothly-app-hover-background));color:rgb(var(--smoothly-app-hover-color));stroke:rgb(var(--smoothly-app-hover-color));fill:rgb(var(--smoothly-app-hover-color))}smoothly-app>smoothly-notifier>content{position:relative;top:1.6cm}";
|
|
105
105
|
|
|
106
106
|
let SmoothlyApp = class {
|
|
107
107
|
constructor(hostRef) {
|
|
@@ -111,7 +111,7 @@ let SmoothlyApp = class {
|
|
|
111
111
|
return (index.h("smoothly-notifier", null, index.h("slot", null)));
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
SmoothlyApp.style = styleCss$
|
|
114
|
+
SmoothlyApp.style = styleCss$B;
|
|
115
115
|
|
|
116
116
|
let SmoothlyAppDemo = class {
|
|
117
117
|
constructor(hostRef) {
|
|
@@ -18781,7 +18781,7 @@ function years(current) {
|
|
|
18781
18781
|
return result;
|
|
18782
18782
|
}
|
|
18783
18783
|
|
|
18784
|
-
const styleCss$
|
|
18784
|
+
const styleCss$A = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.disable.sc-smoothly-calendar{cursor:not-allowed;background-color:rgb(var(--smoothly-default-tint), 0.5);color:rgb(var(--smoothly-default-contrast), 0.5)}";
|
|
18785
18785
|
|
|
18786
18786
|
let Calendar = class {
|
|
18787
18787
|
constructor(hostRef) {
|
|
@@ -18798,6 +18798,18 @@ let Calendar = class {
|
|
|
18798
18798
|
onEnd(next) {
|
|
18799
18799
|
this.endChanged.emit(next);
|
|
18800
18800
|
}
|
|
18801
|
+
onClick(date) {
|
|
18802
|
+
this.valueChanged.emit((this.value = date));
|
|
18803
|
+
this.clickCounter += 1;
|
|
18804
|
+
if (this.clickCounter % 2 == 1)
|
|
18805
|
+
this.start = this.end = date;
|
|
18806
|
+
else {
|
|
18807
|
+
if (this.start && date > this.start)
|
|
18808
|
+
this.end = date;
|
|
18809
|
+
else
|
|
18810
|
+
this.start = date;
|
|
18811
|
+
}
|
|
18812
|
+
}
|
|
18801
18813
|
render() {
|
|
18802
18814
|
var _a, _b;
|
|
18803
18815
|
return [
|
|
@@ -18806,25 +18818,22 @@ let Calendar = class {
|
|
|
18806
18818
|
event.stopPropagation();
|
|
18807
18819
|
} }),
|
|
18808
18820
|
index.h("table", null, index.h("thead", null, index.h("tr", null, weekdays().map(day => (index.h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (index.h("tr", null, week.map(date => {
|
|
18809
|
-
var _a, _b, _c;
|
|
18810
|
-
return (index.h("td", { tabindex: 1, onClick:
|
|
18811
|
-
this.
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
this.end = date;
|
|
18818
|
-
else
|
|
18819
|
-
this.start = date;
|
|
18820
|
-
}
|
|
18821
|
-
}, class: (date == this.value ? ["selected"] : [])
|
|
18822
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18823
|
-
? dist$4.Date.parse(date) >= dist$4.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
|
|
18824
|
-
dist$4.Date.parse(date) <= dist$4.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
18821
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
18822
|
+
return (index.h("td", { tabindex: 1, onClick: this.min || this.max
|
|
18823
|
+
? !(date < ((_a = this.min) !== null && _a !== void 0 ? _a : "") || date > ((_b = this.max) !== null && _b !== void 0 ? _b : ""))
|
|
18824
|
+
? () => this.onClick(date)
|
|
18825
|
+
: undefined
|
|
18826
|
+
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
18827
|
+
.concat(...(date == dist$4.Date.now() ? ["today"] : []), dist$4.Date.firstOfMonth((_c = this.month) !== null && _c !== void 0 ? _c : this.value) == dist$4.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
18828
|
+
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
18825
18829
|
? ["dateRange"]
|
|
18826
18830
|
: []
|
|
18827
18831
|
: "")
|
|
18832
|
+
.concat(...(this.min || this.max
|
|
18833
|
+
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
18834
|
+
? ["disable"]
|
|
18835
|
+
: []
|
|
18836
|
+
: ""))
|
|
18828
18837
|
.join(" ") }, date.substring(8, 10)));
|
|
18829
18838
|
}))))),
|
|
18830
18839
|
];
|
|
@@ -18835,7 +18844,7 @@ let Calendar = class {
|
|
|
18835
18844
|
"end": ["onEnd"]
|
|
18836
18845
|
}; }
|
|
18837
18846
|
};
|
|
18838
|
-
Calendar.style = styleCss$
|
|
18847
|
+
Calendar.style = styleCss$A;
|
|
18839
18848
|
|
|
18840
18849
|
var CallingCode_1$1 = createCommonjsModule(function (module, exports) {
|
|
18841
18850
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -37247,7 +37256,7 @@ function create(language) {
|
|
|
37247
37256
|
}, language);
|
|
37248
37257
|
}
|
|
37249
37258
|
|
|
37250
|
-
const styleCss$
|
|
37259
|
+
const styleCss$z = ".sc-smoothly-checkbox-h{display:block}[hidden].sc-smoothly-checkbox-h{display:none}smoothly-icon.sc-smoothly-checkbox{cursor:pointer}[disabled].sc-smoothly-checkbox-h smoothly-icon.sc-smoothly-checkbox{stroke:rgba(var(--smoothly-color-contrast), 0.3)}";
|
|
37251
37260
|
|
|
37252
37261
|
let SmoothlyCheckbox = class {
|
|
37253
37262
|
constructor(hostRef) {
|
|
@@ -37272,9 +37281,9 @@ let SmoothlyCheckbox = class {
|
|
|
37272
37281
|
}
|
|
37273
37282
|
get element() { return index.getElement(this); }
|
|
37274
37283
|
};
|
|
37275
|
-
SmoothlyCheckbox.style = styleCss$
|
|
37284
|
+
SmoothlyCheckbox.style = styleCss$z;
|
|
37276
37285
|
|
|
37277
|
-
const styleCss$
|
|
37286
|
+
const styleCss$y = ".sc-smoothly-dialog-h{display:block;position:fixed;left:0;top:0;width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>main.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header]) main.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";
|
|
37278
37287
|
|
|
37279
37288
|
let SmoothlyDialog = class {
|
|
37280
37289
|
constructor(hostRef) {
|
|
@@ -37301,7 +37310,7 @@ let SmoothlyDialog = class {
|
|
|
37301
37310
|
}
|
|
37302
37311
|
render() { return index.h(index.Host, this.hostData(), this.__stencil_render()); }
|
|
37303
37312
|
};
|
|
37304
|
-
SmoothlyDialog.style = styleCss$
|
|
37313
|
+
SmoothlyDialog.style = styleCss$y;
|
|
37305
37314
|
|
|
37306
37315
|
let SmoothlyDialogDemo = class {
|
|
37307
37316
|
constructor(hostRef) {
|
|
@@ -37502,9 +37511,9 @@ exports.Action = void 0;
|
|
|
37502
37511
|
var _a, _b;
|
|
37503
37512
|
let result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(state)));
|
|
37504
37513
|
if (action) {
|
|
37505
|
-
if (action.ctrlKey) {
|
|
37514
|
+
if (action.ctrlKey || action.metaKey) {
|
|
37506
37515
|
if (action.key == "a")
|
|
37507
|
-
select(
|
|
37516
|
+
select(result, 0, result.value.length, "forward");
|
|
37508
37517
|
else if (["ArrowLeft", "ArrowRight"].includes(action.key) && ((_a = state) === null || _a === void 0 ? void 0 : _a.type) != "password")
|
|
37509
37518
|
result = ctrlArrow(formatter, state, action);
|
|
37510
37519
|
else if (["Delete", "Backspace"].includes(action.key) && ((_b = state) === null || _b === void 0 ? void 0 : _b.type) != "password")
|
|
@@ -56948,7 +56957,7 @@ Object.defineProperty(exports, "StateEditor", { enumerable: true, get: function
|
|
|
56948
56957
|
//# sourceMappingURL=index.js.map
|
|
56949
56958
|
});
|
|
56950
56959
|
|
|
56951
|
-
const styleCss$
|
|
56960
|
+
const styleCss$x = ".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";
|
|
56952
56961
|
|
|
56953
56962
|
let SmoothlyDisplay = class {
|
|
56954
56963
|
constructor(hostRef) {
|
|
@@ -56977,9 +56986,9 @@ let SmoothlyDisplay = class {
|
|
|
56977
56986
|
return result;
|
|
56978
56987
|
}
|
|
56979
56988
|
};
|
|
56980
|
-
SmoothlyDisplay.style = styleCss$
|
|
56989
|
+
SmoothlyDisplay.style = styleCss$x;
|
|
56981
56990
|
|
|
56982
|
-
const styleCss$
|
|
56991
|
+
const styleCss$w = ".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";
|
|
56983
56992
|
|
|
56984
56993
|
let SmoothlyDisplayAmount = class {
|
|
56985
56994
|
constructor(hostRef) {
|
|
@@ -57027,9 +57036,9 @@ let SmoothlyDisplayAmount = class {
|
|
|
57027
57036
|
];
|
|
57028
57037
|
}
|
|
57029
57038
|
};
|
|
57030
|
-
SmoothlyDisplayAmount.style = styleCss$
|
|
57039
|
+
SmoothlyDisplayAmount.style = styleCss$w;
|
|
57031
57040
|
|
|
57032
|
-
const styleCss$
|
|
57041
|
+
const styleCss$v = ".sc-smoothly-display-date-time-h{display:block}[hidden].sc-smoothly-display-date-time-h{display:none}";
|
|
57033
57042
|
|
|
57034
57043
|
let SmoothlyDisplayDateTime = class {
|
|
57035
57044
|
constructor(hostRef) {
|
|
@@ -57040,7 +57049,7 @@ let SmoothlyDisplayDateTime = class {
|
|
|
57040
57049
|
return [datetime[0], " ", datetime[1]];
|
|
57041
57050
|
}
|
|
57042
57051
|
};
|
|
57043
|
-
SmoothlyDisplayDateTime.style = styleCss$
|
|
57052
|
+
SmoothlyDisplayDateTime.style = styleCss$v;
|
|
57044
57053
|
|
|
57045
57054
|
let SmoothlyDisplayDemo = class {
|
|
57046
57055
|
constructor(hostRef) {
|
|
@@ -57053,12 +57062,12 @@ let SmoothlyDisplayDemo = class {
|
|
|
57053
57062
|
}
|
|
57054
57063
|
render() {
|
|
57055
57064
|
return [
|
|
57056
|
-
index.h("main", null, index.h("smoothly-popup", null, index.h("div", null, "Popup, click me"), index.h("div", { color: "dark", slot: "popup" }, "1 line popup")), index.h("smoothly-display-date-time", { datetime: "2019-08-15T08:08:17.65Z" }), index.h("dl", null, index.h("dt", null, "text"), index.h("dd", null, index.h("smoothly-display", { type: "text", value: "text" })), index.h("dt", null, "postal code"), index.h("dd", null, index.h("smoothly-display", { type: "postal-code", value: "752 31" })), index.h("dt", null, "password"), index.h("dd", null, index.h("smoothly-display", { type: "password", value: "password" })), index.h("dt", null, "email"), index.h("dd", null, index.h("smoothly-display", { type: "email", value: "test@example.com" })), index.h("dt", null, "price"), index.h("dd", null, index.h("smoothly-display", { type: "price", value: "13.37", currency: "SEK" })), index.h("dt", null, "percent"), index.h("dd", null, index.h("smoothly-display", { type: "percent", value: "42" })), index.h("dt", null, "phone"), index.h("dd", null, index.h("smoothly-display", { type: "phone", value: "0101881108" })), index.h("dt", null, "card number"), index.h("dd", null, index.h("smoothly-display", { type: "card-number", value: "4111111111111111" })), index.h("dt", null, "card expires"), index.h("dd", null, index.h("smoothly-display", { type: "card-expires", value: "7/22" })), index.h("dt", null, "card csc"), index.h("dd", null, index.h("smoothly-display", { type: "card-csc", value: "987" }))), index.h("smoothly-urlencoded", { data: "hej=hopp&tjena=moss" }), index.h("div", { style: { display: "flex", justifyContent: "space-between" } }, index.h("smoothly-popup", { direction: "down" }, "Click for popup", index.h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup stuff that has a lot of text")), index.h("smoothly-popup", { direction: "down" }, "Click for popup", index.h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup with a bunch of text."))), index.h("p", null, "Test of diffrent kinds of notifier:"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.warn("This is a test warning notice.")) }, "warning"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.succeded("This is a test success notice.")) }, "success"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.failed("This is a test danger notice.")) }, "danger"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.execute("This is a test execute notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "execute"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.delay("This is a test delay notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "delay")),
|
|
57065
|
+
index.h("main", null, index.h("smoothly-popup", null, index.h("div", null, "Popup, click me"), index.h("div", { color: "dark", slot: "popup" }, "1 line popup")), index.h("smoothly-display-date-time", { datetime: "2019-08-15T08:08:17.65Z" }), index.h("dl", null, index.h("dt", null, "text"), index.h("dd", null, index.h("smoothly-display", { type: "text", value: "text" })), index.h("dt", null, "postal code"), index.h("dd", null, index.h("smoothly-display", { type: "postal-code", value: "752 31" })), index.h("dt", null, "password"), index.h("dd", null, index.h("smoothly-display", { type: "password", value: "password" })), index.h("dt", null, "email"), index.h("dd", null, index.h("smoothly-display", { type: "email", value: "test@example.com" })), index.h("dt", null, "price"), index.h("dd", null, index.h("smoothly-display", { type: "price", value: "13.37", currency: "SEK" })), index.h("dt", null, "percent"), index.h("dd", null, index.h("smoothly-display", { type: "percent", value: "42" })), index.h("dt", null, "phone"), index.h("dd", null, index.h("smoothly-display", { type: "phone", value: "0101881108" })), index.h("dt", null, "card number"), index.h("dd", null, index.h("smoothly-display", { type: "card-number", value: "4111111111111111" })), index.h("dt", null, "card expires"), index.h("dd", null, index.h("smoothly-display", { type: "card-expires", value: "7/22" })), index.h("dt", null, "card csc"), index.h("dd", null, index.h("smoothly-display", { type: "card-csc", value: "987" })), index.h("dt", null, "Quiet"), index.h("dd", null, index.h("smoothly-quiet", { color: "dark" }, "-"))), index.h("smoothly-urlencoded", { data: "hej=hopp&tjena=moss" }), index.h("div", { style: { display: "flex", justifyContent: "space-between" } }, index.h("smoothly-popup", { direction: "down" }, "Click for popup", index.h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup stuff that has a lot of text")), index.h("smoothly-popup", { direction: "down" }, "Click for popup", index.h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup with a bunch of text."))), index.h("p", null, "Test of diffrent kinds of notifier:"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.warn("This is a test warning notice.")) }, "warning"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.succeded("This is a test success notice.")) }, "success"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.failed("This is a test danger notice.")) }, "danger"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.execute("This is a test execute notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "execute"), index.h("button", { onClick: () => this.noticeWarning(Notice.Notice.delay("This is a test delay notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "delay")),
|
|
57057
57066
|
];
|
|
57058
57067
|
}
|
|
57059
57068
|
};
|
|
57060
57069
|
|
|
57061
|
-
const styleCss$
|
|
57070
|
+
const styleCss$u = ".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";
|
|
57062
57071
|
|
|
57063
57072
|
let SmoothlyFrame = class {
|
|
57064
57073
|
constructor(hostRef) {
|
|
@@ -57097,9 +57106,9 @@ let SmoothlyFrame = class {
|
|
|
57097
57106
|
}
|
|
57098
57107
|
get element() { return index.getElement(this); }
|
|
57099
57108
|
};
|
|
57100
|
-
SmoothlyFrame.style = styleCss$
|
|
57109
|
+
SmoothlyFrame.style = styleCss$u;
|
|
57101
57110
|
|
|
57102
|
-
const styleCss$
|
|
57111
|
+
const styleCss$t = "[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:block}[hidden].sc-smoothly-icon-h{display:none}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}";
|
|
57103
57112
|
|
|
57104
57113
|
let SmoothlyIcon = class {
|
|
57105
57114
|
constructor(hostRef) {
|
|
@@ -57142,9 +57151,9 @@ let SmoothlyIcon = class {
|
|
|
57142
57151
|
render() { return index.h(index.Host, this.hostData(), this.__stencil_render()); }
|
|
57143
57152
|
};
|
|
57144
57153
|
SmoothlyIcon.cache = {};
|
|
57145
|
-
SmoothlyIcon.style = styleCss$
|
|
57154
|
+
SmoothlyIcon.style = styleCss$t;
|
|
57146
57155
|
|
|
57147
|
-
const styleCss$
|
|
57156
|
+
const styleCss$s = "icon-demo.sc-smoothly-icon-demo{display:block}icon-demo[hidden].sc-smoothly-icon-demo{display:none}icon-demo.sc-smoothly-icon-demo>content.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}icon-demo.sc-smoothly-icon-demo>content.sc-smoothly-icon-demo>*.sc-smoothly-icon-demo{margin:1cm}";
|
|
57148
57157
|
|
|
57149
57158
|
let SmoothlyIconDemo = class {
|
|
57150
57159
|
constructor(hostRef) {
|
|
@@ -57626,9 +57635,9 @@ let SmoothlyIconDemo = class {
|
|
|
57626
57635
|
];
|
|
57627
57636
|
}
|
|
57628
57637
|
};
|
|
57629
|
-
SmoothlyIconDemo.style = styleCss$
|
|
57638
|
+
SmoothlyIconDemo.style = styleCss$s;
|
|
57630
57639
|
|
|
57631
|
-
const styleCss$
|
|
57640
|
+
const styleCss$r = ".sc-smoothly-input-h{display:block;position:relative}[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}";
|
|
57632
57641
|
|
|
57633
57642
|
let SmoothlyInput = class {
|
|
57634
57643
|
constructor(hostRef) {
|
|
@@ -57710,7 +57719,7 @@ let SmoothlyInput = class {
|
|
|
57710
57719
|
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
|
|
57711
57720
|
direction: backend.selectionDirection ? backend.selectionDirection : "none",
|
|
57712
57721
|
} });
|
|
57713
|
-
if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
|
|
57722
|
+
if ((!((event.ctrlKey || event.metaKey) && (event.key == "v" || event.key == "c")) && event.key.length == 1) ||
|
|
57714
57723
|
event.key == "ArrowLeft" ||
|
|
57715
57724
|
event.key == "ArrowRight" ||
|
|
57716
57725
|
event.key == "Delete" ||
|
|
@@ -57733,14 +57742,21 @@ let SmoothlyInput = class {
|
|
|
57733
57742
|
this.processKey({ key: letter }, backend);
|
|
57734
57743
|
}
|
|
57735
57744
|
onInput(event) {
|
|
57736
|
-
|
|
57737
|
-
|
|
57738
|
-
|
|
57739
|
-
event.
|
|
57740
|
-
|
|
57741
|
-
|
|
57742
|
-
|
|
57743
|
-
|
|
57745
|
+
var _a;
|
|
57746
|
+
if (event.inputType == "insertReplacementText") {
|
|
57747
|
+
this.processKey({ key: "a", ctrlKey: true }, event.target);
|
|
57748
|
+
[...((_a = event.data) !== null && _a !== void 0 ? _a : "")].forEach(c => this.processKey({ key: c }, event.target));
|
|
57749
|
+
}
|
|
57750
|
+
else {
|
|
57751
|
+
const backend = event.target;
|
|
57752
|
+
let data = backend.value;
|
|
57753
|
+
if (data) {
|
|
57754
|
+
event.preventDefault();
|
|
57755
|
+
this.processKey({ key: "a", ctrlKey: true }, backend);
|
|
57756
|
+
data = this.expiresAutocompleteFix(backend, data);
|
|
57757
|
+
for (const letter of data)
|
|
57758
|
+
this.processKey({ key: letter }, backend);
|
|
57759
|
+
}
|
|
57744
57760
|
}
|
|
57745
57761
|
}
|
|
57746
57762
|
expiresAutocompleteFix(backend, value) {
|
|
@@ -57778,9 +57794,9 @@ let SmoothlyInput = class {
|
|
|
57778
57794
|
"value": ["valueWatcher"]
|
|
57779
57795
|
}; }
|
|
57780
57796
|
};
|
|
57781
|
-
SmoothlyInput.style = styleCss$
|
|
57797
|
+
SmoothlyInput.style = styleCss$r;
|
|
57782
57798
|
|
|
57783
|
-
const styleCss$
|
|
57799
|
+
const styleCss$q = ".sc-smoothly-input-date-h{position:relative}nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-h>div.sc-smoothly-input-date{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>.arrow.sc-smoothly-input-date{position:absolute;z-index:9;transform:translate(2em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}";
|
|
57784
57800
|
|
|
57785
57801
|
let InputDate = class {
|
|
57786
57802
|
constructor(hostRef) {
|
|
@@ -57798,16 +57814,16 @@ let InputDate = class {
|
|
|
57798
57814
|
this.open ? (index.h("nav", null, index.h("div", { class: "arrow" }), index.h("smoothly-calendar", { doubleInput: false, value: (_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now(), onValueChanged: event => {
|
|
57799
57815
|
this.value = event.detail;
|
|
57800
57816
|
event.stopPropagation();
|
|
57801
|
-
} }))) : ([]),
|
|
57817
|
+
}, max: this.max, min: this.min }))) : ([]),
|
|
57802
57818
|
];
|
|
57803
57819
|
}
|
|
57804
57820
|
static get watchers() { return {
|
|
57805
57821
|
"value": ["onStart"]
|
|
57806
57822
|
}; }
|
|
57807
57823
|
};
|
|
57808
|
-
InputDate.style = styleCss$
|
|
57824
|
+
InputDate.style = styleCss$q;
|
|
57809
57825
|
|
|
57810
|
-
const styleCss$
|
|
57826
|
+
const styleCss$p = ".sc-smoothly-input-date-range-h{position:relative;display:block}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>.arrow.sc-smoothly-input-date-range{position:absolute;z-index:9;transform:translate(10em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-date-range-h>smoothly-input.sc-smoothly-input-date-range{padding:0}";
|
|
57811
57827
|
|
|
57812
57828
|
let InputDateRange = class {
|
|
57813
57829
|
constructor(hostRef) {
|
|
@@ -57836,7 +57852,7 @@ let InputDateRange = class {
|
|
|
57836
57852
|
this.open ? (index.h("nav", null, index.h("div", { class: "arrow" }), index.h("smoothly-calendar", { doubleInput: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now(), onValueChanged: event => {
|
|
57837
57853
|
this.value = event.detail;
|
|
57838
57854
|
event.stopPropagation();
|
|
57839
|
-
} }))) : ([]),
|
|
57855
|
+
}, max: this.max, min: this.min }))) : ([]),
|
|
57840
57856
|
];
|
|
57841
57857
|
}
|
|
57842
57858
|
static get watchers() { return {
|
|
@@ -57846,7 +57862,7 @@ let InputDateRange = class {
|
|
|
57846
57862
|
"end": ["onClose"]
|
|
57847
57863
|
}; }
|
|
57848
57864
|
};
|
|
57849
|
-
InputDateRange.style = styleCss$
|
|
57865
|
+
InputDateRange.style = styleCss$p;
|
|
57850
57866
|
|
|
57851
57867
|
let SmoothlyInputDemo = class {
|
|
57852
57868
|
constructor(hostRef) {
|
|
@@ -57857,7 +57873,7 @@ let SmoothlyInputDemo = class {
|
|
|
57857
57873
|
}
|
|
57858
57874
|
};
|
|
57859
57875
|
|
|
57860
|
-
const styleCss$
|
|
57876
|
+
const styleCss$o = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
|
|
57861
57877
|
|
|
57862
57878
|
let MonthSelector = class {
|
|
57863
57879
|
constructor(hostRef) {
|
|
@@ -57886,9 +57902,9 @@ let MonthSelector = class {
|
|
|
57886
57902
|
"value": ["onValueChanged"]
|
|
57887
57903
|
}; }
|
|
57888
57904
|
};
|
|
57889
|
-
MonthSelector.style = styleCss$
|
|
57905
|
+
MonthSelector.style = styleCss$o;
|
|
57890
57906
|
|
|
57891
|
-
const styleCss$
|
|
57907
|
+
const styleCss$n = "[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-item-h{padding:.5em;cursor:pointer;background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast));border:rgb(var(--smoothly-default-shade) solid 1px)}.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-primary-color));color:rgb(var(--smoothly-primary-contrast))}";
|
|
57892
57908
|
|
|
57893
57909
|
let Item = class {
|
|
57894
57910
|
constructor(hostRef) {
|
|
@@ -57903,6 +57919,10 @@ let Item = class {
|
|
|
57903
57919
|
this.selected = true;
|
|
57904
57920
|
this.itemSelected.emit();
|
|
57905
57921
|
}
|
|
57922
|
+
componentDidLoad() {
|
|
57923
|
+
if (this.selected)
|
|
57924
|
+
this.itemSelected.emit();
|
|
57925
|
+
}
|
|
57906
57926
|
async filter(filter) {
|
|
57907
57927
|
const result = !(this.element.hidden = filter
|
|
57908
57928
|
? !((typeof this.value === "string" ? this.value : JSON.stringify(this.value)).toLowerCase().includes(filter) ||
|
|
@@ -57918,9 +57938,9 @@ let Item = class {
|
|
|
57918
57938
|
"selected": ["onSelectedChanged"]
|
|
57919
57939
|
}; }
|
|
57920
57940
|
};
|
|
57921
|
-
Item.style = styleCss$
|
|
57941
|
+
Item.style = styleCss$n;
|
|
57922
57942
|
|
|
57923
|
-
const styleCss$
|
|
57943
|
+
const styleCss$m = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);border:1px solid black;box-sizing:border-box;background-color:rgb(var(--smoothly-default-shade));overflow-y:auto;cursor:pointer}div:last-child:not(:empty){padding:0.5em 1em;font-style:italic}";
|
|
57924
57944
|
|
|
57925
57945
|
let SmoothlyMenuOptions = class {
|
|
57926
57946
|
constructor(hostRef) {
|
|
@@ -58019,9 +58039,9 @@ let SmoothlyMenuOptions = class {
|
|
|
58019
58039
|
"options": ["optionsChangeHandler"]
|
|
58020
58040
|
}; }
|
|
58021
58041
|
};
|
|
58022
|
-
SmoothlyMenuOptions.style = styleCss$
|
|
58042
|
+
SmoothlyMenuOptions.style = styleCss$m;
|
|
58023
58043
|
|
|
58024
|
-
const styleCss$
|
|
58044
|
+
const styleCss$l = ".sc-smoothly-notification-h{display:block;min-width:32.6%;min-height:3em;border-radius:5px;margin:0.5em}[hidden].sc-smoothly-notification-h{display:none}smoothly-trigger.sc-smoothly-notification{float:right;text-align:right;margin-right:0.2em}";
|
|
58025
58045
|
|
|
58026
58046
|
let Notification = class {
|
|
58027
58047
|
constructor(hostRef) {
|
|
@@ -58079,9 +58099,9 @@ let Notification = class {
|
|
|
58079
58099
|
"notice": ["onUpdatedNotice"]
|
|
58080
58100
|
}; }
|
|
58081
58101
|
};
|
|
58082
|
-
Notification.style = styleCss$
|
|
58102
|
+
Notification.style = styleCss$l;
|
|
58083
58103
|
|
|
58084
|
-
const styleCss$
|
|
58104
|
+
const styleCss$k = ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;justify-content:flex-start;position:fixed;bottom:3em;left:0;text-align:center;width:100%;z-index:3}";
|
|
58085
58105
|
|
|
58086
58106
|
let Notifier = class {
|
|
58087
58107
|
constructor(hostRef) {
|
|
@@ -58101,9 +58121,9 @@ let Notifier = class {
|
|
|
58101
58121
|
];
|
|
58102
58122
|
}
|
|
58103
58123
|
};
|
|
58104
|
-
Notifier.style = styleCss$
|
|
58124
|
+
Notifier.style = styleCss$k;
|
|
58105
58125
|
|
|
58106
|
-
const styleCss$
|
|
58126
|
+
const styleCss$j = ":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0.5em 1em}:host([data-highlight]){background-color:rgb(var(--smoothly-primary-color));color:rgb(var(--smoothly-primary-contrast));stroke:rgb(var(--smoothly-primary-contrast));fill:rgb(var(--smoothly-primary-contrast))}:host([data-highlight]) div:last-child{color:rgba(var(--smoothly-primary-contrast), 0.8)}:host div:last-child{color:rgba(var(--smoothly-default-contrast), 0.8);font-style:italic}";
|
|
58107
58127
|
|
|
58108
58128
|
let SmoothlyOption = class {
|
|
58109
58129
|
constructor(hostRef) {
|
|
@@ -58126,9 +58146,9 @@ let SmoothlyOption = class {
|
|
|
58126
58146
|
}
|
|
58127
58147
|
get element() { return index.getElement(this); }
|
|
58128
58148
|
};
|
|
58129
|
-
SmoothlyOption.style = styleCss$
|
|
58149
|
+
SmoothlyOption.style = styleCss$j;
|
|
58130
58150
|
|
|
58131
|
-
const styleCss$
|
|
58151
|
+
const styleCss$i = ":host{--background-color:var(--smoothly-secondary-tint), 1;--color:var(--smoothly-secondary-contrast);--border-color:var(--smoothly-secondary-contrast), 1;--border-highlight-color:var(--smoothly-secondary-contrast), 1;--label-color:var(--smoothly-secondary-contrast), 0.8;--selected-item-border-radius:0.25rem;--selected-item-background-color:var(--smoothly-secondary-color), 1;--selected-item-color:255, 255, 255, 1}:host{display:block;position:relative;width:100%;cursor:pointer;--intergiro-transition:all 200ms cubic-bezier(0.645, 0.045, 0.355, 1);transition:var(--intergiro-transition)}:host>div{display:flex;min-height:3em;background-color:rgba(var(--background-color));align-items:center;border:none;max-height:var(--max-height)}:host>div .icons>smoothly-icon{flex-shrink:0;padding-left:0.6em;stroke:rgba(var(--color), 0.4);fill:rgba(var(--color), 0.4);width:1.5em !important;height:1.5em !important}:host>div .icons>smoothly-icon:hover{fill:rgba(var(--color), 1)}:host>div input{width:100%;background-color:transparent;outline:none;border:none;cursor:pointer;color:rgb(var(--color));padding:0 1em;font-family:var(--smoothly-font-family);font-size:1.05em}:host>div input::placeholder{opacity:1;text-overflow:ellipsis}:host(:not(:focus-within)[multiple]) ul>li:last-child{position:absolute;pointer-events:none}:host([label=\"\"]) ul,:host:not([label]) ul,:host([label-setting=hide]) ul{padding-top:0.1em;padding-bottom:0.1em}label{position:absolute;top:1em;left:1em;color:rgba(var(--label-color));transition:var(--intergiro-transition);font-family:var(--smoothly-font-family);pointer-events:none;transform-origin:left}:host([has-selection]) label{display:var(--label-display)}:host([has-selection]) label,:host(:focus-within) label{transform:translateY(-1.2em) scale(0.7)}:host(:hover) smoothly-icon[data-arrow],:host(:focus-within) smoothly-icon[data-arrow]{stroke:rgba(var(--color), 1)}:host smoothly-icon[data-arrow]{pointer-events:none}:host(:not([is-open])) smoothly-icon[data-arrow=up]{display:none}:host([is-open]) smoothly-icon[data-arrow=down]{display:none}:host(:not([has-selection])) smoothly-icon:not([data-arrow]){display:none}:host smoothly-menu-options{position:absolute;z-index:1}:host(:not([is-open]))>smoothly-menu-options{display:none}";
|
|
58132
58152
|
|
|
58133
58153
|
let SmoothlyPicker = class {
|
|
58134
58154
|
constructor(hostRef) {
|
|
@@ -58264,9 +58284,9 @@ let SmoothlyPicker = class {
|
|
|
58264
58284
|
"isOpen": ["isOpenChangeHander"]
|
|
58265
58285
|
}; }
|
|
58266
58286
|
};
|
|
58267
|
-
SmoothlyPicker.style = styleCss$
|
|
58287
|
+
SmoothlyPicker.style = styleCss$i;
|
|
58268
58288
|
|
|
58269
|
-
const styleCss$
|
|
58289
|
+
const styleCss$h = ".sc-smoothly-popup-h{display:inline-flex;position:relative}[hidden].sc-smoothly-popup-h{display:none}.sc-smoothly-popup-h:not([visible]) aside.sc-smoothly-popup{display:none}.sc-smoothly-popup-h aside.sc-smoothly-popup{display:inline;position:absolute;padding:0.3em;left:var(--left);right:var(--right);background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);border-style:solid;border-width:0.1em;border-radius:0.6em;z-index:3}[direction=down].sc-smoothly-popup-h aside.sc-smoothly-popup{top:2.2em;box-shadow:6px 5px 9px -9px black, 5px 6px 9px -9px black}[direction=up].sc-smoothly-popup-h aside.sc-smoothly-popup{bottom:2.2em;box-shadow:-6px -5px 9px -9px black, -5px -6px 9px -9px black}.sc-smoothly-popup-h:not([visible]) .background.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .background.sc-smoothly-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-popup-h:not([visible]) .arrow.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .arrow.sc-smoothly-popup{background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);z-index:2;content:\"\";position:absolute;width:12px;height:12px;transform:rotate(45deg);left:calc(var(--left) + 1em);right:calc(var(--right) + 1em)}[direction=down].sc-smoothly-popup-h .arrow.sc-smoothly-popup{top:2em;border-top-style:solid;border-top-width:1px;border-left-style:solid;border-left-width:1px}[direction=up].sc-smoothly-popup-h .arrow.sc-smoothly-popup{bottom:2em;border-bottom-style:solid;border-bottom-width:1px;border-right-style:solid;border-right-width:1px}.sc-smoothly-popup-h .pointer.sc-smoothly-popup{cursor:pointer}";
|
|
58270
58290
|
|
|
58271
58291
|
let SmoothlyPopup = class {
|
|
58272
58292
|
constructor(hostRef) {
|
|
@@ -58295,7 +58315,19 @@ let SmoothlyPopup = class {
|
|
|
58295
58315
|
return (index.h(index.Host, { style: Object.assign({}, this.cssVariables) }, index.h("content", { class: "pointer", onClick: () => this.onClick() }, index.h("slot", null)), index.h("div", { class: "background", onClick: () => this.onClick() }), index.h("div", { class: "arrow", onClick: () => this.onClick() }), index.h("aside", { ref: el => (this.aside = el) }, index.h("slot", { name: "popup" }))));
|
|
58296
58316
|
}
|
|
58297
58317
|
};
|
|
58298
|
-
SmoothlyPopup.style = styleCss$
|
|
58318
|
+
SmoothlyPopup.style = styleCss$h;
|
|
58319
|
+
|
|
58320
|
+
const styleCss$g = ".sc-smoothly-quiet-h{opacity:0.5}";
|
|
58321
|
+
|
|
58322
|
+
let SmoothlyQuiet = class {
|
|
58323
|
+
constructor(hostRef) {
|
|
58324
|
+
index.registerInstance(this, hostRef);
|
|
58325
|
+
}
|
|
58326
|
+
render() {
|
|
58327
|
+
return (index.h(index.Host, { color: this.color }, index.h("slot", null)));
|
|
58328
|
+
}
|
|
58329
|
+
};
|
|
58330
|
+
SmoothlyQuiet.style = styleCss$g;
|
|
58299
58331
|
|
|
58300
58332
|
const styleCss$f = ".sc-smoothly-radio-h{display:block;position:relative}[hidden].sc-smoothly-radio-h{display:none}label.sc-smoothly-radio{display:block;width:calc(100% - 2 * 0.4em);padding:0.2em 0.4em 0.2em 0.4em}input[type=radio].sc-smoothly-radio{position:absolute;left:0;top:0;width:calc(100%);height:100%;margin:0;appearance:none;-webkit-appearance:none}input[type=radio].sc-smoothly-radio~label.sc-smoothly-radio{border:1px solid rgb(var(--smoothly-default-color));color:rgba(var(--smoothly-default-contrast), 0.5);background:rgb(var(--smoothly-default-color))}input[type=radio].sc-smoothly-radio:checked~label.sc-smoothly-radio{background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast))}";
|
|
58301
58333
|
|
|
@@ -58372,8 +58404,8 @@ let SmoothlySelectDemo = class {
|
|
|
58372
58404
|
index.h("smoothly-select", { identifier: "currency" }, this.currencies.map(option => this.currency == option ? (index.h("option", { value: option, selected: true }, option)) : (index.h("option", { value: option }, option)))),
|
|
58373
58405
|
index.h("smoothly-select", { identifier: "language" }, index.h("optgroup", { label: "Nordic" }, index.h("option", { value: "sv" }, "Swedish"), index.h("option", { value: "da", selected: true }, "Danish"), index.h("option", { value: "no" }, "Norwegian")), index.h("optgroup", { label: "Other" }, index.h("option", { value: "en" }, "English"))),
|
|
58374
58406
|
index.h("smoothly-select", { identifier: "quantity", ref: e => (this.quantityElement = e) }, index.h("option", { value: "1" }, "1"), index.h("option", { value: "2" }, "2"), index.h("option", { value: "3" }, "3")),
|
|
58375
|
-
index.h("smoothly-input-date",
|
|
58376
|
-
index.h("smoothly-input-date-range",
|
|
58407
|
+
index.h("smoothly-input-date", { max: "2021-12-30", min: "2021-10-10" }, "Date"),
|
|
58408
|
+
index.h("smoothly-input-date-range", { max: "2021-12-30", min: "2021-10-10" }),
|
|
58377
58409
|
index.h("smoothly-selector", null, index.h("smoothly-item", { value: "1" }, "January"), index.h("smoothly-item", { value: "2" }, "February"), index.h("smoothly-item", { value: "3" }, "March"), index.h("smoothly-item", { value: "4" }, "April"), index.h("smoothly-item", { value: "5" }, "May"), index.h("smoothly-item", { value: "6" }, "June"), index.h("smoothly-item", { value: "7" }, "July"), index.h("smoothly-item", { value: "8" }, "August"), index.h("smoothly-item", { value: "9" }, "September"), index.h("smoothly-item", { value: "10" }, "October"), index.h("smoothly-item", { value: "11" }, "November"), index.h("smoothly-item", { value: "12" }, "December")),
|
|
58378
58410
|
index.h("button", { onClick: () => this.alertf() }, "press here"),
|
|
58379
58411
|
index.h("smoothly-picker", { label: "Filter", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, options: [
|
|
@@ -58907,6 +58939,7 @@ exports.smoothly_notifier = Notifier;
|
|
|
58907
58939
|
exports.smoothly_option = SmoothlyOption;
|
|
58908
58940
|
exports.smoothly_picker = SmoothlyPicker;
|
|
58909
58941
|
exports.smoothly_popup = SmoothlyPopup;
|
|
58942
|
+
exports.smoothly_quiet = SmoothlyQuiet;
|
|
58910
58943
|
exports.smoothly_radio = SmoothlyRadio;
|
|
58911
58944
|
exports.smoothly_room = SmoothlyRoom;
|
|
58912
58945
|
exports.smoothly_select = SmoothlySelect;
|