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
|
@@ -2262,7 +2262,7 @@ function hslToCommaRgb(hsl) {
|
|
|
2262
2262
|
|
|
2263
2263
|
const globalScripts = () => {};
|
|
2264
2264
|
|
|
2265
|
-
const styleCss$
|
|
2265
|
+
const styleCss$H = "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}";
|
|
2266
2266
|
|
|
2267
2267
|
let SmoothlyAccordion$1 = class extends HTMLElement {
|
|
2268
2268
|
constructor() {
|
|
@@ -2308,10 +2308,10 @@ let SmoothlyAccordion$1 = class extends HTMLElement {
|
|
|
2308
2308
|
static get watchers() { return {
|
|
2309
2309
|
"value": ["valueChanged"]
|
|
2310
2310
|
}; }
|
|
2311
|
-
static get style() { return styleCss$
|
|
2311
|
+
static get style() { return styleCss$H; }
|
|
2312
2312
|
};
|
|
2313
2313
|
|
|
2314
|
-
const styleCss$
|
|
2314
|
+
const styleCss$G = ".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))}";
|
|
2315
2315
|
|
|
2316
2316
|
let SmoothlyAccordionItem$1 = class extends HTMLElement {
|
|
2317
2317
|
constructor() {
|
|
@@ -2356,10 +2356,10 @@ let SmoothlyAccordionItem$1 = class extends HTMLElement {
|
|
|
2356
2356
|
static get watchers() { return {
|
|
2357
2357
|
"open": ["openChanged"]
|
|
2358
2358
|
}; }
|
|
2359
|
-
static get style() { return styleCss$
|
|
2359
|
+
static get style() { return styleCss$G; }
|
|
2360
2360
|
};
|
|
2361
2361
|
|
|
2362
|
-
const styleCss$
|
|
2362
|
+
const styleCss$F = "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}";
|
|
2363
2363
|
|
|
2364
2364
|
let SmoothlyApp$1 = class extends HTMLElement {
|
|
2365
2365
|
constructor() {
|
|
@@ -2369,7 +2369,7 @@ let SmoothlyApp$1 = class extends HTMLElement {
|
|
|
2369
2369
|
render() {
|
|
2370
2370
|
return (h("smoothly-notifier", null, h("slot", null)));
|
|
2371
2371
|
}
|
|
2372
|
-
static get style() { return styleCss$
|
|
2372
|
+
static get style() { return styleCss$F; }
|
|
2373
2373
|
};
|
|
2374
2374
|
|
|
2375
2375
|
let SmoothlyAppDemo$1 = class extends HTMLElement {
|
|
@@ -21294,7 +21294,7 @@ function years(current) {
|
|
|
21294
21294
|
return result;
|
|
21295
21295
|
}
|
|
21296
21296
|
|
|
21297
|
-
const styleCss$
|
|
21297
|
+
const styleCss$E = ".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)}";
|
|
21298
21298
|
|
|
21299
21299
|
let Calendar = class extends HTMLElement {
|
|
21300
21300
|
constructor() {
|
|
@@ -21312,6 +21312,18 @@ let Calendar = class extends HTMLElement {
|
|
|
21312
21312
|
onEnd(next) {
|
|
21313
21313
|
this.endChanged.emit(next);
|
|
21314
21314
|
}
|
|
21315
|
+
onClick(date) {
|
|
21316
|
+
this.valueChanged.emit((this.value = date));
|
|
21317
|
+
this.clickCounter += 1;
|
|
21318
|
+
if (this.clickCounter % 2 == 1)
|
|
21319
|
+
this.start = this.end = date;
|
|
21320
|
+
else {
|
|
21321
|
+
if (this.start && date > this.start)
|
|
21322
|
+
this.end = date;
|
|
21323
|
+
else
|
|
21324
|
+
this.start = date;
|
|
21325
|
+
}
|
|
21326
|
+
}
|
|
21315
21327
|
render() {
|
|
21316
21328
|
var _a, _b;
|
|
21317
21329
|
return [
|
|
@@ -21320,25 +21332,22 @@ let Calendar = class extends HTMLElement {
|
|
|
21320
21332
|
event.stopPropagation();
|
|
21321
21333
|
} }),
|
|
21322
21334
|
h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
|
|
21323
|
-
var _a, _b, _c;
|
|
21324
|
-
return (h("td", { tabindex: 1, onClick:
|
|
21325
|
-
this.
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
this.end = date;
|
|
21332
|
-
else
|
|
21333
|
-
this.start = date;
|
|
21334
|
-
}
|
|
21335
|
-
}, class: (date == this.value ? ["selected"] : [])
|
|
21336
|
-
.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
|
|
21337
|
-
? dist$4.Date.parse(date) >= dist$4.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
|
|
21338
|
-
dist$4.Date.parse(date) <= dist$4.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
21335
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
21336
|
+
return (h("td", { tabindex: 1, onClick: this.min || this.max
|
|
21337
|
+
? !(date < ((_a = this.min) !== null && _a !== void 0 ? _a : "") || date > ((_b = this.max) !== null && _b !== void 0 ? _b : ""))
|
|
21338
|
+
? () => this.onClick(date)
|
|
21339
|
+
: undefined
|
|
21340
|
+
: () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
21341
|
+
.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
|
|
21342
|
+
? date >= ((_d = this.start) !== null && _d !== void 0 ? _d : "") && date <= ((_e = this.end) !== null && _e !== void 0 ? _e : "")
|
|
21339
21343
|
? ["dateRange"]
|
|
21340
21344
|
: []
|
|
21341
21345
|
: "")
|
|
21346
|
+
.concat(...(this.min || this.max
|
|
21347
|
+
? date < ((_f = this.min) !== null && _f !== void 0 ? _f : "") || date > ((_g = this.max) !== null && _g !== void 0 ? _g : "")
|
|
21348
|
+
? ["disable"]
|
|
21349
|
+
: []
|
|
21350
|
+
: ""))
|
|
21342
21351
|
.join(" ") }, date.substring(8, 10)));
|
|
21343
21352
|
}))))),
|
|
21344
21353
|
];
|
|
@@ -21348,7 +21357,7 @@ let Calendar = class extends HTMLElement {
|
|
|
21348
21357
|
"start": ["onStart"],
|
|
21349
21358
|
"end": ["onEnd"]
|
|
21350
21359
|
}; }
|
|
21351
|
-
static get style() { return styleCss$
|
|
21360
|
+
static get style() { return styleCss$E; }
|
|
21352
21361
|
};
|
|
21353
21362
|
|
|
21354
21363
|
var CallingCode_1$1 = createCommonjsModule(function (module, exports) {
|
|
@@ -39985,7 +39994,7 @@ function create(language) {
|
|
|
39985
39994
|
}, language);
|
|
39986
39995
|
}
|
|
39987
39996
|
|
|
39988
|
-
const styleCss$
|
|
39997
|
+
const styleCss$D = ".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)}";
|
|
39989
39998
|
|
|
39990
39999
|
let SmoothlyCheckbox$1 = class extends HTMLElement {
|
|
39991
40000
|
constructor() {
|
|
@@ -40010,10 +40019,10 @@ let SmoothlyCheckbox$1 = class extends HTMLElement {
|
|
|
40010
40019
|
];
|
|
40011
40020
|
}
|
|
40012
40021
|
get element() { return this; }
|
|
40013
|
-
static get style() { return styleCss$
|
|
40022
|
+
static get style() { return styleCss$D; }
|
|
40014
40023
|
};
|
|
40015
40024
|
|
|
40016
|
-
const styleCss$
|
|
40025
|
+
const styleCss$C = ".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}";
|
|
40017
40026
|
|
|
40018
40027
|
let SmoothlyDialog$1 = class extends HTMLElement {
|
|
40019
40028
|
constructor() {
|
|
@@ -40039,7 +40048,7 @@ let SmoothlyDialog$1 = class extends HTMLElement {
|
|
|
40039
40048
|
h("main", null, h("slot", null)),
|
|
40040
40049
|
];
|
|
40041
40050
|
}
|
|
40042
|
-
static get style() { return styleCss$
|
|
40051
|
+
static get style() { return styleCss$C; }
|
|
40043
40052
|
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
|
40044
40053
|
};
|
|
40045
40054
|
|
|
@@ -40263,9 +40272,9 @@ var Action;
|
|
|
40263
40272
|
var _a, _b;
|
|
40264
40273
|
let result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(state)));
|
|
40265
40274
|
if (action) {
|
|
40266
|
-
if (action.ctrlKey) {
|
|
40275
|
+
if (action.ctrlKey || action.metaKey) {
|
|
40267
40276
|
if (action.key == "a")
|
|
40268
|
-
select(
|
|
40277
|
+
select(result, 0, result.value.length, "forward");
|
|
40269
40278
|
else if (["ArrowLeft", "ArrowRight"].includes(action.key) && ((_a = state) === null || _a === void 0 ? void 0 : _a.type) != "password")
|
|
40270
40279
|
result = ctrlArrow(formatter, state, action);
|
|
40271
40280
|
else if (["Delete", "Backspace"].includes(action.key) && ((_b = state) === null || _b === void 0 ? void 0 : _b.type) != "password")
|
|
@@ -59979,7 +59988,7 @@ Object.defineProperty(exports, "StateEditor", { enumerable: true, get: function
|
|
|
59979
59988
|
|
|
59980
59989
|
const index = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
|
59981
59990
|
|
|
59982
|
-
const styleCss$
|
|
59991
|
+
const styleCss$B = ".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";
|
|
59983
59992
|
|
|
59984
59993
|
let SmoothlyDisplay$1 = class extends HTMLElement {
|
|
59985
59994
|
constructor() {
|
|
@@ -60008,10 +60017,10 @@ let SmoothlyDisplay$1 = class extends HTMLElement {
|
|
|
60008
60017
|
}
|
|
60009
60018
|
return result;
|
|
60010
60019
|
}
|
|
60011
|
-
static get style() { return styleCss$
|
|
60020
|
+
static get style() { return styleCss$B; }
|
|
60012
60021
|
};
|
|
60013
60022
|
|
|
60014
|
-
const styleCss$
|
|
60023
|
+
const styleCss$A = ".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";
|
|
60015
60024
|
|
|
60016
60025
|
let SmoothlyDisplayAmount$1 = class extends HTMLElement {
|
|
60017
60026
|
constructor() {
|
|
@@ -60059,10 +60068,10 @@ let SmoothlyDisplayAmount$1 = class extends HTMLElement {
|
|
|
60059
60068
|
this.currency,
|
|
60060
60069
|
];
|
|
60061
60070
|
}
|
|
60062
|
-
static get style() { return styleCss$
|
|
60071
|
+
static get style() { return styleCss$A; }
|
|
60063
60072
|
};
|
|
60064
60073
|
|
|
60065
|
-
const styleCss$
|
|
60074
|
+
const styleCss$z = ".sc-smoothly-display-date-time-h{display:block}[hidden].sc-smoothly-display-date-time-h{display:none}";
|
|
60066
60075
|
|
|
60067
60076
|
let SmoothlyDisplayDateTime$1 = class extends HTMLElement {
|
|
60068
60077
|
constructor() {
|
|
@@ -60073,7 +60082,7 @@ let SmoothlyDisplayDateTime$1 = class extends HTMLElement {
|
|
|
60073
60082
|
const datetime = this.datetime.split("T");
|
|
60074
60083
|
return [datetime[0], " ", datetime[1]];
|
|
60075
60084
|
}
|
|
60076
|
-
static get style() { return styleCss$
|
|
60085
|
+
static get style() { return styleCss$z; }
|
|
60077
60086
|
};
|
|
60078
60087
|
|
|
60079
60088
|
let SmoothlyDisplayDemo$1 = class extends HTMLElement {
|
|
@@ -60088,12 +60097,12 @@ let SmoothlyDisplayDemo$1 = class extends HTMLElement {
|
|
|
60088
60097
|
}
|
|
60089
60098
|
render() {
|
|
60090
60099
|
return [
|
|
60091
|
-
h("main", null, h("smoothly-popup", null, h("div", null, "Popup, click me"), h("div", { color: "dark", slot: "popup" }, "1 line popup")), h("smoothly-display-date-time", { datetime: "2019-08-15T08:08:17.65Z" }), h("dl", null, h("dt", null, "text"), h("dd", null, h("smoothly-display", { type: "text", value: "text" })), h("dt", null, "postal code"), h("dd", null, h("smoothly-display", { type: "postal-code", value: "752 31" })), h("dt", null, "password"), h("dd", null, h("smoothly-display", { type: "password", value: "password" })), h("dt", null, "email"), h("dd", null, h("smoothly-display", { type: "email", value: "test@example.com" })), h("dt", null, "price"), h("dd", null, h("smoothly-display", { type: "price", value: "13.37", currency: "SEK" })), h("dt", null, "percent"), h("dd", null, h("smoothly-display", { type: "percent", value: "42" })), h("dt", null, "phone"), h("dd", null, h("smoothly-display", { type: "phone", value: "0101881108" })), h("dt", null, "card number"), h("dd", null, h("smoothly-display", { type: "card-number", value: "4111111111111111" })), h("dt", null, "card expires"), h("dd", null, h("smoothly-display", { type: "card-expires", value: "7/22" })), h("dt", null, "card csc"), h("dd", null, h("smoothly-display", { type: "card-csc", value: "987" }))), h("smoothly-urlencoded", { data: "hej=hopp&tjena=moss" }), h("div", { style: { display: "flex", justifyContent: "space-between" } }, h("smoothly-popup", { direction: "down" }, "Click for popup", h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup stuff that has a lot of text")), h("smoothly-popup", { direction: "down" }, "Click for popup", h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup with a bunch of text."))), h("p", null, "Test of diffrent kinds of notifier:"), h("button", { onClick: () => this.noticeWarning(Notice.warn("This is a test warning notice.")) }, "warning"), h("button", { onClick: () => this.noticeWarning(Notice.succeded("This is a test success notice.")) }, "success"), h("button", { onClick: () => this.noticeWarning(Notice.failed("This is a test danger notice.")) }, "danger"), h("button", { onClick: () => this.noticeWarning(Notice.execute("This is a test execute notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "execute"), h("button", { onClick: () => this.noticeWarning(Notice.delay("This is a test delay notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "delay")),
|
|
60100
|
+
h("main", null, h("smoothly-popup", null, h("div", null, "Popup, click me"), h("div", { color: "dark", slot: "popup" }, "1 line popup")), h("smoothly-display-date-time", { datetime: "2019-08-15T08:08:17.65Z" }), h("dl", null, h("dt", null, "text"), h("dd", null, h("smoothly-display", { type: "text", value: "text" })), h("dt", null, "postal code"), h("dd", null, h("smoothly-display", { type: "postal-code", value: "752 31" })), h("dt", null, "password"), h("dd", null, h("smoothly-display", { type: "password", value: "password" })), h("dt", null, "email"), h("dd", null, h("smoothly-display", { type: "email", value: "test@example.com" })), h("dt", null, "price"), h("dd", null, h("smoothly-display", { type: "price", value: "13.37", currency: "SEK" })), h("dt", null, "percent"), h("dd", null, h("smoothly-display", { type: "percent", value: "42" })), h("dt", null, "phone"), h("dd", null, h("smoothly-display", { type: "phone", value: "0101881108" })), h("dt", null, "card number"), h("dd", null, h("smoothly-display", { type: "card-number", value: "4111111111111111" })), h("dt", null, "card expires"), h("dd", null, h("smoothly-display", { type: "card-expires", value: "7/22" })), h("dt", null, "card csc"), h("dd", null, h("smoothly-display", { type: "card-csc", value: "987" })), h("dt", null, "Quiet"), h("dd", null, h("smoothly-quiet", { color: "dark" }, "-"))), h("smoothly-urlencoded", { data: "hej=hopp&tjena=moss" }), h("div", { style: { display: "flex", justifyContent: "space-between" } }, h("smoothly-popup", { direction: "down" }, "Click for popup", h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup stuff that has a lot of text")), h("smoothly-popup", { direction: "down" }, "Click for popup", h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup with a bunch of text."))), h("p", null, "Test of diffrent kinds of notifier:"), h("button", { onClick: () => this.noticeWarning(Notice.warn("This is a test warning notice.")) }, "warning"), h("button", { onClick: () => this.noticeWarning(Notice.succeded("This is a test success notice.")) }, "success"), h("button", { onClick: () => this.noticeWarning(Notice.failed("This is a test danger notice.")) }, "danger"), h("button", { onClick: () => this.noticeWarning(Notice.execute("This is a test execute notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "execute"), h("button", { onClick: () => this.noticeWarning(Notice.delay("This is a test delay notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "delay")),
|
|
60092
60101
|
];
|
|
60093
60102
|
}
|
|
60094
60103
|
};
|
|
60095
60104
|
|
|
60096
|
-
const styleCss$
|
|
60105
|
+
const styleCss$y = ".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}";
|
|
60097
60106
|
|
|
60098
60107
|
let SmoothlyFrame$1 = class extends HTMLElement {
|
|
60099
60108
|
constructor() {
|
|
@@ -60132,10 +60141,10 @@ let SmoothlyFrame$1 = class extends HTMLElement {
|
|
|
60132
60141
|
return h("iframe", { src: this.url + "#" + window.location.origin, height: "100%", width: "100%" });
|
|
60133
60142
|
}
|
|
60134
60143
|
get element() { return this; }
|
|
60135
|
-
static get style() { return styleCss$
|
|
60144
|
+
static get style() { return styleCss$y; }
|
|
60136
60145
|
};
|
|
60137
60146
|
|
|
60138
|
-
const styleCss$
|
|
60147
|
+
const styleCss$x = "[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}";
|
|
60139
60148
|
|
|
60140
60149
|
let SmoothlyIcon$1 = class extends HTMLElement {
|
|
60141
60150
|
constructor() {
|
|
@@ -60176,12 +60185,12 @@ let SmoothlyIcon$1 = class extends HTMLElement {
|
|
|
60176
60185
|
static get watchers() { return {
|
|
60177
60186
|
"name": ["loadDocument"]
|
|
60178
60187
|
}; }
|
|
60179
|
-
static get style() { return styleCss$
|
|
60188
|
+
static get style() { return styleCss$x; }
|
|
60180
60189
|
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
|
60181
60190
|
};
|
|
60182
60191
|
SmoothlyIcon$1.cache = {};
|
|
60183
60192
|
|
|
60184
|
-
const styleCss$
|
|
60193
|
+
const styleCss$w = "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}";
|
|
60185
60194
|
|
|
60186
60195
|
let SmoothlyIconDemo$1 = class extends HTMLElement {
|
|
60187
60196
|
constructor() {
|
|
@@ -60663,10 +60672,10 @@ let SmoothlyIconDemo$1 = class extends HTMLElement {
|
|
|
60663
60672
|
.map(name => (h("smoothly-icon", { name: name, toolTip: name })))),
|
|
60664
60673
|
];
|
|
60665
60674
|
}
|
|
60666
|
-
static get style() { return styleCss$
|
|
60675
|
+
static get style() { return styleCss$w; }
|
|
60667
60676
|
};
|
|
60668
60677
|
|
|
60669
|
-
const styleCss$
|
|
60678
|
+
const styleCss$v = ".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}";
|
|
60670
60679
|
|
|
60671
60680
|
let SmoothlyInput$1 = class extends HTMLElement {
|
|
60672
60681
|
constructor() {
|
|
@@ -60749,7 +60758,7 @@ let SmoothlyInput$1 = class extends HTMLElement {
|
|
|
60749
60758
|
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
|
|
60750
60759
|
direction: backend.selectionDirection ? backend.selectionDirection : "none",
|
|
60751
60760
|
} });
|
|
60752
|
-
if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
|
|
60761
|
+
if ((!((event.ctrlKey || event.metaKey) && (event.key == "v" || event.key == "c")) && event.key.length == 1) ||
|
|
60753
60762
|
event.key == "ArrowLeft" ||
|
|
60754
60763
|
event.key == "ArrowRight" ||
|
|
60755
60764
|
event.key == "Delete" ||
|
|
@@ -60772,14 +60781,21 @@ let SmoothlyInput$1 = class extends HTMLElement {
|
|
|
60772
60781
|
this.processKey({ key: letter }, backend);
|
|
60773
60782
|
}
|
|
60774
60783
|
onInput(event) {
|
|
60775
|
-
|
|
60776
|
-
|
|
60777
|
-
|
|
60778
|
-
event.
|
|
60779
|
-
|
|
60780
|
-
|
|
60781
|
-
|
|
60782
|
-
|
|
60784
|
+
var _a;
|
|
60785
|
+
if (event.inputType == "insertReplacementText") {
|
|
60786
|
+
this.processKey({ key: "a", ctrlKey: true }, event.target);
|
|
60787
|
+
[...((_a = event.data) !== null && _a !== void 0 ? _a : "")].forEach(c => this.processKey({ key: c }, event.target));
|
|
60788
|
+
}
|
|
60789
|
+
else {
|
|
60790
|
+
const backend = event.target;
|
|
60791
|
+
let data = backend.value;
|
|
60792
|
+
if (data) {
|
|
60793
|
+
event.preventDefault();
|
|
60794
|
+
this.processKey({ key: "a", ctrlKey: true }, backend);
|
|
60795
|
+
data = this.expiresAutocompleteFix(backend, data);
|
|
60796
|
+
for (const letter of data)
|
|
60797
|
+
this.processKey({ key: letter }, backend);
|
|
60798
|
+
}
|
|
60783
60799
|
}
|
|
60784
60800
|
}
|
|
60785
60801
|
expiresAutocompleteFix(backend, value) {
|
|
@@ -60816,10 +60832,10 @@ let SmoothlyInput$1 = class extends HTMLElement {
|
|
|
60816
60832
|
static get watchers() { return {
|
|
60817
60833
|
"value": ["valueWatcher"]
|
|
60818
60834
|
}; }
|
|
60819
|
-
static get style() { return styleCss$
|
|
60835
|
+
static get style() { return styleCss$v; }
|
|
60820
60836
|
};
|
|
60821
60837
|
|
|
60822
|
-
const styleCss$
|
|
60838
|
+
const styleCss$u = ".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))}";
|
|
60823
60839
|
|
|
60824
60840
|
let InputDate = class extends HTMLElement {
|
|
60825
60841
|
constructor() {
|
|
@@ -60838,16 +60854,16 @@ let InputDate = class extends HTMLElement {
|
|
|
60838
60854
|
this.open ? (h("nav", null, h("div", { class: "arrow" }), h("smoothly-calendar", { doubleInput: false, value: (_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now(), onValueChanged: event => {
|
|
60839
60855
|
this.value = event.detail;
|
|
60840
60856
|
event.stopPropagation();
|
|
60841
|
-
} }))) : ([]),
|
|
60857
|
+
}, max: this.max, min: this.min }))) : ([]),
|
|
60842
60858
|
];
|
|
60843
60859
|
}
|
|
60844
60860
|
static get watchers() { return {
|
|
60845
60861
|
"value": ["onStart"]
|
|
60846
60862
|
}; }
|
|
60847
|
-
static get style() { return styleCss$
|
|
60863
|
+
static get style() { return styleCss$u; }
|
|
60848
60864
|
};
|
|
60849
60865
|
|
|
60850
|
-
const styleCss$
|
|
60866
|
+
const styleCss$t = ".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}";
|
|
60851
60867
|
|
|
60852
60868
|
let InputDateRange = class extends HTMLElement {
|
|
60853
60869
|
constructor() {
|
|
@@ -60877,7 +60893,7 @@ let InputDateRange = class extends HTMLElement {
|
|
|
60877
60893
|
this.open ? (h("nav", null, h("div", { class: "arrow" }), h("smoothly-calendar", { doubleInput: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now(), onValueChanged: event => {
|
|
60878
60894
|
this.value = event.detail;
|
|
60879
60895
|
event.stopPropagation();
|
|
60880
|
-
} }))) : ([]),
|
|
60896
|
+
}, max: this.max, min: this.min }))) : ([]),
|
|
60881
60897
|
];
|
|
60882
60898
|
}
|
|
60883
60899
|
static get watchers() { return {
|
|
@@ -60886,7 +60902,7 @@ let InputDateRange = class extends HTMLElement {
|
|
|
60886
60902
|
"start": ["onClose"],
|
|
60887
60903
|
"end": ["onClose"]
|
|
60888
60904
|
}; }
|
|
60889
|
-
static get style() { return styleCss$
|
|
60905
|
+
static get style() { return styleCss$t; }
|
|
60890
60906
|
};
|
|
60891
60907
|
|
|
60892
60908
|
let SmoothlyInputDemo$1 = class extends HTMLElement {
|
|
@@ -60899,7 +60915,7 @@ let SmoothlyInputDemo$1 = class extends HTMLElement {
|
|
|
60899
60915
|
}
|
|
60900
60916
|
};
|
|
60901
60917
|
|
|
60902
|
-
const styleCss$
|
|
60918
|
+
const styleCss$s = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
|
|
60903
60919
|
|
|
60904
60920
|
let MonthSelector = class extends HTMLElement {
|
|
60905
60921
|
constructor() {
|
|
@@ -60928,10 +60944,10 @@ let MonthSelector = class extends HTMLElement {
|
|
|
60928
60944
|
static get watchers() { return {
|
|
60929
60945
|
"value": ["onValueChanged"]
|
|
60930
60946
|
}; }
|
|
60931
|
-
static get style() { return styleCss$
|
|
60947
|
+
static get style() { return styleCss$s; }
|
|
60932
60948
|
};
|
|
60933
60949
|
|
|
60934
|
-
const styleCss$
|
|
60950
|
+
const styleCss$r = "[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))}";
|
|
60935
60951
|
|
|
60936
60952
|
let Item = class extends HTMLElement {
|
|
60937
60953
|
constructor() {
|
|
@@ -60947,6 +60963,10 @@ let Item = class extends HTMLElement {
|
|
|
60947
60963
|
this.selected = true;
|
|
60948
60964
|
this.itemSelected.emit();
|
|
60949
60965
|
}
|
|
60966
|
+
componentDidLoad() {
|
|
60967
|
+
if (this.selected)
|
|
60968
|
+
this.itemSelected.emit();
|
|
60969
|
+
}
|
|
60950
60970
|
async filter(filter) {
|
|
60951
60971
|
const result = !(this.element.hidden = filter
|
|
60952
60972
|
? !((typeof this.value === "string" ? this.value : JSON.stringify(this.value)).toLowerCase().includes(filter) ||
|
|
@@ -60961,10 +60981,10 @@ let Item = class extends HTMLElement {
|
|
|
60961
60981
|
static get watchers() { return {
|
|
60962
60982
|
"selected": ["onSelectedChanged"]
|
|
60963
60983
|
}; }
|
|
60964
|
-
static get style() { return styleCss$
|
|
60984
|
+
static get style() { return styleCss$r; }
|
|
60965
60985
|
};
|
|
60966
60986
|
|
|
60967
|
-
const styleCss$
|
|
60987
|
+
const styleCss$q = ":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}";
|
|
60968
60988
|
|
|
60969
60989
|
let SmoothlyMenuOptions$1 = class extends HTMLElement {
|
|
60970
60990
|
constructor() {
|
|
@@ -61064,10 +61084,10 @@ let SmoothlyMenuOptions$1 = class extends HTMLElement {
|
|
|
61064
61084
|
static get watchers() { return {
|
|
61065
61085
|
"options": ["optionsChangeHandler"]
|
|
61066
61086
|
}; }
|
|
61067
|
-
static get style() { return styleCss$
|
|
61087
|
+
static get style() { return styleCss$q; }
|
|
61068
61088
|
};
|
|
61069
61089
|
|
|
61070
|
-
const styleCss$
|
|
61090
|
+
const styleCss$p = ".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}";
|
|
61071
61091
|
|
|
61072
61092
|
let Notification = class extends HTMLElement {
|
|
61073
61093
|
constructor() {
|
|
@@ -61125,10 +61145,10 @@ let Notification = class extends HTMLElement {
|
|
|
61125
61145
|
static get watchers() { return {
|
|
61126
61146
|
"notice": ["onUpdatedNotice"]
|
|
61127
61147
|
}; }
|
|
61128
|
-
static get style() { return styleCss$
|
|
61148
|
+
static get style() { return styleCss$p; }
|
|
61129
61149
|
};
|
|
61130
61150
|
|
|
61131
|
-
const styleCss$
|
|
61151
|
+
const styleCss$o = ".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}";
|
|
61132
61152
|
|
|
61133
61153
|
let Notifier = class extends HTMLElement {
|
|
61134
61154
|
constructor() {
|
|
@@ -61148,10 +61168,10 @@ let Notifier = class extends HTMLElement {
|
|
|
61148
61168
|
h("aside", null, this.notices.map(n => (h("smoothly-notification", { notice: n })))),
|
|
61149
61169
|
];
|
|
61150
61170
|
}
|
|
61151
|
-
static get style() { return styleCss$
|
|
61171
|
+
static get style() { return styleCss$o; }
|
|
61152
61172
|
};
|
|
61153
61173
|
|
|
61154
|
-
const styleCss$
|
|
61174
|
+
const styleCss$n = ":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}";
|
|
61155
61175
|
|
|
61156
61176
|
let SmoothlyOption$1 = class extends HTMLElement {
|
|
61157
61177
|
constructor() {
|
|
@@ -61175,10 +61195,10 @@ let SmoothlyOption$1 = class extends HTMLElement {
|
|
|
61175
61195
|
return (h(Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, h("div", null, this.name), h("div", null, h("slot", null))));
|
|
61176
61196
|
}
|
|
61177
61197
|
get element() { return this; }
|
|
61178
|
-
static get style() { return styleCss$
|
|
61198
|
+
static get style() { return styleCss$n; }
|
|
61179
61199
|
};
|
|
61180
61200
|
|
|
61181
|
-
const styleCss$
|
|
61201
|
+
const styleCss$m = ":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}";
|
|
61182
61202
|
|
|
61183
61203
|
let SmoothlyPicker$1 = class extends HTMLElement {
|
|
61184
61204
|
constructor() {
|
|
@@ -61315,10 +61335,10 @@ let SmoothlyPicker$1 = class extends HTMLElement {
|
|
|
61315
61335
|
"selections": ["isOpenChangeHander"],
|
|
61316
61336
|
"isOpen": ["isOpenChangeHander"]
|
|
61317
61337
|
}; }
|
|
61318
|
-
static get style() { return styleCss$
|
|
61338
|
+
static get style() { return styleCss$m; }
|
|
61319
61339
|
};
|
|
61320
61340
|
|
|
61321
|
-
const styleCss$
|
|
61341
|
+
const styleCss$l = ".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}";
|
|
61322
61342
|
|
|
61323
61343
|
let SmoothlyPopup$1 = class extends HTMLElement {
|
|
61324
61344
|
constructor() {
|
|
@@ -61347,6 +61367,19 @@ let SmoothlyPopup$1 = class extends HTMLElement {
|
|
|
61347
61367
|
render() {
|
|
61348
61368
|
return (h(Host, { style: Object.assign({}, this.cssVariables) }, h("content", { class: "pointer", onClick: () => this.onClick() }, h("slot", null)), h("div", { class: "background", onClick: () => this.onClick() }), h("div", { class: "arrow", onClick: () => this.onClick() }), h("aside", { ref: el => (this.aside = el) }, h("slot", { name: "popup" }))));
|
|
61349
61369
|
}
|
|
61370
|
+
static get style() { return styleCss$l; }
|
|
61371
|
+
};
|
|
61372
|
+
|
|
61373
|
+
const styleCss$k = ".sc-smoothly-quiet-h{opacity:0.5}";
|
|
61374
|
+
|
|
61375
|
+
let SmoothlyQuiet$1 = class extends HTMLElement {
|
|
61376
|
+
constructor() {
|
|
61377
|
+
super();
|
|
61378
|
+
this.__registerHost();
|
|
61379
|
+
}
|
|
61380
|
+
render() {
|
|
61381
|
+
return (h(Host, { color: this.color }, h("slot", null)));
|
|
61382
|
+
}
|
|
61350
61383
|
static get style() { return styleCss$k; }
|
|
61351
61384
|
};
|
|
61352
61385
|
|
|
@@ -61540,8 +61573,8 @@ let SmoothlySelectDemo$1 = class extends HTMLElement {
|
|
|
61540
61573
|
h("smoothly-select", { identifier: "currency" }, this.currencies.map(option => this.currency == option ? (h("option", { value: option, selected: true }, option)) : (h("option", { value: option }, option)))),
|
|
61541
61574
|
h("smoothly-select", { identifier: "language" }, h("optgroup", { label: "Nordic" }, h("option", { value: "sv" }, "Swedish"), h("option", { value: "da", selected: true }, "Danish"), h("option", { value: "no" }, "Norwegian")), h("optgroup", { label: "Other" }, h("option", { value: "en" }, "English"))),
|
|
61542
61575
|
h("smoothly-select", { identifier: "quantity", ref: e => (this.quantityElement = e) }, h("option", { value: "1" }, "1"), h("option", { value: "2" }, "2"), h("option", { value: "3" }, "3")),
|
|
61543
|
-
h("smoothly-input-date",
|
|
61544
|
-
h("smoothly-input-date-range",
|
|
61576
|
+
h("smoothly-input-date", { max: "2021-12-30", min: "2021-10-10" }, "Date"),
|
|
61577
|
+
h("smoothly-input-date-range", { max: "2021-12-30", min: "2021-10-10" }),
|
|
61545
61578
|
h("smoothly-selector", null, h("smoothly-item", { value: "1" }, "January"), h("smoothly-item", { value: "2" }, "February"), h("smoothly-item", { value: "3" }, "March"), h("smoothly-item", { value: "4" }, "April"), h("smoothly-item", { value: "5" }, "May"), h("smoothly-item", { value: "6" }, "June"), h("smoothly-item", { value: "7" }, "July"), h("smoothly-item", { value: "8" }, "August"), h("smoothly-item", { value: "9" }, "September"), h("smoothly-item", { value: "10" }, "October"), h("smoothly-item", { value: "11" }, "November"), h("smoothly-item", { value: "12" }, "December")),
|
|
61546
61579
|
h("button", { onClick: () => this.alertf() }, "press here"),
|
|
61547
61580
|
h("smoothly-picker", { label: "Filter", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, options: [
|
|
@@ -62117,7 +62150,7 @@ const SmoothlyAccordion = /*@__PURE__*/proxyCustomElement(SmoothlyAccordion$1, [
|
|
|
62117
62150
|
const SmoothlyAccordionItem = /*@__PURE__*/proxyCustomElement(SmoothlyAccordionItem$1, [6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]);
|
|
62118
62151
|
const SmoothlyApp = /*@__PURE__*/proxyCustomElement(SmoothlyApp$1, [4,"smoothly-app",{"color":[1]}]);
|
|
62119
62152
|
const SmoothlyAppDemo = /*@__PURE__*/proxyCustomElement(SmoothlyAppDemo$1, [0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]);
|
|
62120
|
-
const SmoothlyCalendar = /*@__PURE__*/proxyCustomElement(Calendar, [2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"doubleInput":[516,"double-input"]}]);
|
|
62153
|
+
const SmoothlyCalendar = /*@__PURE__*/proxyCustomElement(Calendar, [2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"]}]);
|
|
62121
62154
|
const SmoothlyCheckbox = /*@__PURE__*/proxyCustomElement(SmoothlyCheckbox$1, [2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]);
|
|
62122
62155
|
const SmoothlyDialog = /*@__PURE__*/proxyCustomElement(SmoothlyDialog$1, [6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]);
|
|
62123
62156
|
const SmoothlyDialogDemo = /*@__PURE__*/proxyCustomElement(SmoothlyDialogDemo$1, [0,"smoothly-dialog-demo"]);
|
|
@@ -62129,8 +62162,8 @@ const SmoothlyFrame = /*@__PURE__*/proxyCustomElement(SmoothlyFrame$1, [2,"smoot
|
|
|
62129
62162
|
const SmoothlyIcon = /*@__PURE__*/proxyCustomElement(SmoothlyIcon$1, [2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]);
|
|
62130
62163
|
const SmoothlyIconDemo = /*@__PURE__*/proxyCustomElement(SmoothlyIconDemo$1, [2,"smoothly-icon-demo"]);
|
|
62131
62164
|
const SmoothlyInput = /*@__PURE__*/proxyCustomElement(SmoothlyInput$1, [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]}]);
|
|
62132
|
-
const SmoothlyInputDate = /*@__PURE__*/proxyCustomElement(InputDate, [6,"smoothly-input-date",{"value":[1025],"open":[1028]}]);
|
|
62133
|
-
const SmoothlyInputDateRange = /*@__PURE__*/proxyCustomElement(InputDateRange, [2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]);
|
|
62165
|
+
const SmoothlyInputDate = /*@__PURE__*/proxyCustomElement(InputDate, [6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025]}]);
|
|
62166
|
+
const SmoothlyInputDateRange = /*@__PURE__*/proxyCustomElement(InputDateRange, [2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]);
|
|
62134
62167
|
const SmoothlyInputDemo = /*@__PURE__*/proxyCustomElement(SmoothlyInputDemo$1, [0,"smoothly-input-demo"]);
|
|
62135
62168
|
const SmoothlyInputMonth = /*@__PURE__*/proxyCustomElement(MonthSelector, [2,"smoothly-input-month",{"value":[1025]}]);
|
|
62136
62169
|
const SmoothlyItem = /*@__PURE__*/proxyCustomElement(Item, [6,"smoothly-item",{"value":[8],"selected":[1540]},[[0,"click","onClick"]]]);
|
|
@@ -62140,6 +62173,7 @@ const SmoothlyNotifier = /*@__PURE__*/proxyCustomElement(Notifier, [6,"smoothly-
|
|
|
62140
62173
|
const SmoothlyOption = /*@__PURE__*/proxyCustomElement(SmoothlyOption$1, [1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]);
|
|
62141
62174
|
const SmoothlyPicker = /*@__PURE__*/proxyCustomElement(SmoothlyPicker$1, [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"]]]);
|
|
62142
62175
|
const SmoothlyPopup = /*@__PURE__*/proxyCustomElement(SmoothlyPopup$1, [6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]);
|
|
62176
|
+
const SmoothlyQuiet = /*@__PURE__*/proxyCustomElement(SmoothlyQuiet$1, [6,"smoothly-quiet",{"color":[1]}]);
|
|
62143
62177
|
const SmoothlyRadio = /*@__PURE__*/proxyCustomElement(SmoothlyRadio$1, [6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]);
|
|
62144
62178
|
const SmoothlyRadioGroup = /*@__PURE__*/proxyCustomElement(SmoothlyToggleGroup, [4,"smoothly-radio-group",{"orientation":[513]}]);
|
|
62145
62179
|
const SmoothlyReorder = /*@__PURE__*/proxyCustomElement(SmoothlyReorder$1, [0,"smoothly-reorder"]);
|
|
@@ -62193,6 +62227,7 @@ const defineCustomElements = (opts) => {
|
|
|
62193
62227
|
SmoothlyOption,
|
|
62194
62228
|
SmoothlyPicker,
|
|
62195
62229
|
SmoothlyPopup,
|
|
62230
|
+
SmoothlyQuiet,
|
|
62196
62231
|
SmoothlyRadio,
|
|
62197
62232
|
SmoothlyRadioGroup,
|
|
62198
62233
|
SmoothlyReorder,
|
|
@@ -62224,4 +62259,4 @@ const defineCustomElements = (opts) => {
|
|
|
62224
62259
|
}
|
|
62225
62260
|
};
|
|
62226
62261
|
|
|
62227
|
-
export { App, ClientIdentifier, Message, Notice, SmoothlyAccordion, SmoothlyAccordionItem, SmoothlyApp, SmoothlyAppDemo, SmoothlyCalendar, SmoothlyCheckbox, SmoothlyDialog, SmoothlyDialogDemo, SmoothlyDisplay, SmoothlyDisplayAmount, SmoothlyDisplayDateTime, SmoothlyDisplayDemo, SmoothlyFrame, SmoothlyIcon, SmoothlyIconDemo, SmoothlyInput, SmoothlyInputDate, SmoothlyInputDateRange, SmoothlyInputDemo, SmoothlyInputMonth, SmoothlyItem, SmoothlyMenuOptions, SmoothlyNotification, SmoothlyNotifier, SmoothlyOption, SmoothlyPicker, SmoothlyPopup, SmoothlyRadio, SmoothlyRadioGroup, SmoothlyReorder, SmoothlyRoom, SmoothlySelect, SmoothlySelectDemo, SmoothlySelector, SmoothlySpinner, SmoothlySubmit, SmoothlyTab, SmoothlyTabSwitch, SmoothlyTable, SmoothlyTableCell, SmoothlyTableDemo, SmoothlyTableExpandableCell, SmoothlyTableExpandableRow, SmoothlyTableHeader, SmoothlyTableRow, SmoothlyTrigger, SmoothlyTriggerSink, SmoothlyTriggerSource, SmoothlyTuple, SmoothlyUrlencoded, Trigger, defineCustomElements, toCommaRgb };
|
|
62262
|
+
export { App, ClientIdentifier, Message, Notice, SmoothlyAccordion, SmoothlyAccordionItem, SmoothlyApp, SmoothlyAppDemo, SmoothlyCalendar, SmoothlyCheckbox, SmoothlyDialog, SmoothlyDialogDemo, SmoothlyDisplay, SmoothlyDisplayAmount, SmoothlyDisplayDateTime, SmoothlyDisplayDemo, SmoothlyFrame, SmoothlyIcon, SmoothlyIconDemo, SmoothlyInput, SmoothlyInputDate, SmoothlyInputDateRange, SmoothlyInputDemo, SmoothlyInputMonth, SmoothlyItem, SmoothlyMenuOptions, SmoothlyNotification, SmoothlyNotifier, SmoothlyOption, SmoothlyPicker, SmoothlyPopup, SmoothlyQuiet, SmoothlyRadio, SmoothlyRadioGroup, SmoothlyReorder, SmoothlyRoom, SmoothlySelect, SmoothlySelectDemo, SmoothlySelector, SmoothlySpinner, SmoothlySubmit, SmoothlyTab, SmoothlyTabSwitch, SmoothlyTable, SmoothlyTableCell, SmoothlyTableDemo, SmoothlyTableExpandableCell, SmoothlyTableExpandableRow, SmoothlyTableHeader, SmoothlyTableRow, SmoothlyTrigger, SmoothlyTriggerSink, SmoothlyTriggerSource, SmoothlyTuple, SmoothlyUrlencoded, Trigger, defineCustomElements, toCommaRgb };
|
|
@@ -210,9 +210,9 @@ var Action;
|
|
|
210
210
|
var _a, _b;
|
|
211
211
|
let result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(state)));
|
|
212
212
|
if (action) {
|
|
213
|
-
if (action.ctrlKey) {
|
|
213
|
+
if (action.ctrlKey || action.metaKey) {
|
|
214
214
|
if (action.key == "a")
|
|
215
|
-
select(
|
|
215
|
+
select(result, 0, result.value.length, "forward");
|
|
216
216
|
else if (["ArrowLeft", "ArrowRight"].includes(action.key) && ((_a = state) === null || _a === void 0 ? void 0 : _a.type) != "password")
|
|
217
217
|
result = ctrlArrow(formatter, state, action);
|
|
218
218
|
else if (["Delete", "Backspace"].includes(action.key) && ((_b = state) === null || _b === void 0 ? void 0 : _b.type) != "password")
|