smoothly 0.1.66 → 0.1.70
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/{Trigger-ea33b682.js → Trigger-74bd1ee8.js} +16 -0
- package/dist/cjs/{generate-5e7cd3f7.js → generate-7f7f7d99.js} +3 -2
- package/dist/cjs/{index-2a5f8661.js → index-c973259c.js} +16 -0
- package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_43.cjs.entry.js +120 -54
- package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
- package/dist/cjs/smoothly-dialog.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-frame.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-month.cjs.entry.js +11 -11
- package/dist/cjs/smoothly-input.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-picker.cjs.entry.js +12 -17
- package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/collection/components/calendar/generate.js +2 -1
- package/dist/collection/components/calendar/index.js +4 -4
- package/dist/collection/components/calendar/style.css +29 -11
- package/dist/collection/components/input/index.js +1 -1
- package/dist/collection/components/input-month/index.js +8 -8
- package/dist/collection/components/input-month/style.css +0 -6
- package/dist/collection/components/picker/index.js +12 -17
- package/dist/collection/components/table/exandable/cell/index.js +3 -2
- package/dist/collection/components/table/exandable/cell/style.css +1 -1
- package/dist/custom-elements/index.js +136 -54
- package/dist/esm/{Trigger-c637fedf.js → Trigger-d7b181ec.js} +16 -0
- package/dist/esm/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/esm/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/{smoothly/index-71e3ce99.js → esm/index-531e2f06.js} +16 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/smoothly-accordion_43.entry.js +120 -54
- package/dist/esm/smoothly-calendar.entry.js +7 -7
- package/dist/esm/smoothly-dialog.entry.js +1 -1
- package/dist/esm/smoothly-display-amount.entry.js +1 -1
- package/dist/esm/smoothly-display-demo.entry.js +1 -1
- package/dist/esm/smoothly-frame.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-month.entry.js +11 -11
- package/dist/esm/smoothly-input.entry.js +1 -1
- package/dist/esm/smoothly-picker.entry.js +12 -17
- package/dist/esm/smoothly-table-expandable-cell.entry.js +2 -2
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/smoothly/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/smoothly/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/{esm/index-71e3ce99.js → smoothly/index-531e2f06.js} +16 -0
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-2cda1784.js +1 -0
- package/dist/smoothly/p-2e35abfc.entry.js +1 -0
- package/dist/smoothly/{p-24d838b1.entry.js → p-89fe12b0.entry.js} +1 -1
- package/dist/smoothly/{p-77f6d4bf.entry.js → p-e79800d9.entry.js} +1 -1
- package/dist/smoothly/smoothly-calendar.entry.js +7 -7
- package/dist/smoothly/smoothly-dialog.entry.js +1 -1
- package/dist/smoothly/smoothly-display-amount.entry.js +1 -1
- package/dist/smoothly/smoothly-display-demo.entry.js +1 -1
- package/dist/smoothly/smoothly-frame.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-month.entry.js +11 -11
- package/dist/smoothly/smoothly-input.entry.js +1 -1
- package/dist/smoothly/smoothly-picker.entry.js +12 -17
- package/dist/smoothly/smoothly-table-expandable-cell.entry.js +2 -2
- package/dist/smoothly/smoothly-trigger-sink.entry.js +1 -1
- package/dist/smoothly/smoothly-trigger-source.entry.js +1 -1
- package/dist/types/components/input-month/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/smoothly/p-08ef34d4.js +0 -1
- package/dist/smoothly/p-8ff541af.entry.js +0 -1
|
@@ -82,6 +82,22 @@ exports.Identifier = void 0;
|
|
|
82
82
|
Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
|
|
83
83
|
}
|
|
84
84
|
Identifier.is = is;
|
|
85
|
+
function fromUint24(value) {
|
|
86
|
+
return fromHexadecimal(value.toString(16).padStart(6, "0"));
|
|
87
|
+
}
|
|
88
|
+
Identifier.fromUint24 = fromUint24;
|
|
89
|
+
function toUint24(identifier) {
|
|
90
|
+
return Number.parseInt(toHexadecimal(identifier, 6), 16);
|
|
91
|
+
}
|
|
92
|
+
Identifier.toUint24 = toUint24;
|
|
93
|
+
function fromUint48(value) {
|
|
94
|
+
return fromHexadecimal(value.toString(16).padStart(12, "0"));
|
|
95
|
+
}
|
|
96
|
+
Identifier.fromUint48 = fromUint48;
|
|
97
|
+
function toUint48(identifier) {
|
|
98
|
+
return Number.parseInt(toHexadecimal(identifier, 12), 16);
|
|
99
|
+
}
|
|
100
|
+
Identifier.toUint48 = toUint48;
|
|
85
101
|
function fromBinary(identifier) {
|
|
86
102
|
return encode(identifier, "url");
|
|
87
103
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-e37f73fe.js');
|
|
4
4
|
|
|
5
5
|
function month(date) {
|
|
6
6
|
const d = new Date(date);
|
|
@@ -14,7 +14,8 @@ function month(date) {
|
|
|
14
14
|
d.setDate(day++);
|
|
15
15
|
r.push(index.dist.Date.create(d));
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
if (row < 5 || index.dist.Date.firstOfMonth(r[0]) == index.dist.Date.firstOfMonth(date))
|
|
18
|
+
result.push(r);
|
|
18
19
|
}
|
|
19
20
|
return result;
|
|
20
21
|
}
|
|
@@ -208,6 +208,22 @@ var Identifier;
|
|
|
208
208
|
Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
|
|
209
209
|
}
|
|
210
210
|
Identifier.is = is;
|
|
211
|
+
function fromUint24(value) {
|
|
212
|
+
return fromHexadecimal(value.toString(16).padStart(6, "0"));
|
|
213
|
+
}
|
|
214
|
+
Identifier.fromUint24 = fromUint24;
|
|
215
|
+
function toUint24(identifier) {
|
|
216
|
+
return Number.parseInt(toHexadecimal(identifier, 6), 16);
|
|
217
|
+
}
|
|
218
|
+
Identifier.toUint24 = toUint24;
|
|
219
|
+
function fromUint48(value) {
|
|
220
|
+
return fromHexadecimal(value.toString(16).padStart(12, "0"));
|
|
221
|
+
}
|
|
222
|
+
Identifier.fromUint48 = fromUint48;
|
|
223
|
+
function toUint48(identifier) {
|
|
224
|
+
return Number.parseInt(toHexadecimal(identifier, 12), 16);
|
|
225
|
+
}
|
|
226
|
+
Identifier.toUint48 = toUint48;
|
|
211
227
|
function fromBinary(identifier) {
|
|
212
228
|
return encode$1(identifier, "url");
|
|
213
229
|
}
|
|
@@ -16570,28 +16570,28 @@ const CurrencyCode = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(Curre
|
|
|
16570
16570
|
var _Date = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
16571
16571
|
"use strict";
|
|
16572
16572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16573
|
-
exports.
|
|
16574
|
-
var
|
|
16575
|
-
(function (
|
|
16573
|
+
exports.Date = void 0;
|
|
16574
|
+
var Date;
|
|
16575
|
+
(function (Date) {
|
|
16576
16576
|
function is(value) {
|
|
16577
16577
|
return (typeof value == "string" && /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
|
|
16578
16578
|
}
|
|
16579
|
-
|
|
16579
|
+
Date.is = is;
|
|
16580
16580
|
function parse(value, time) {
|
|
16581
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16581
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16582
16582
|
}
|
|
16583
|
-
|
|
16583
|
+
Date.parse = parse;
|
|
16584
16584
|
function create(value) {
|
|
16585
16585
|
return value.toISOString().substring(0, 10);
|
|
16586
16586
|
}
|
|
16587
|
-
|
|
16587
|
+
Date.create = create;
|
|
16588
16588
|
function now() {
|
|
16589
|
-
return create(new Date());
|
|
16589
|
+
return create(new globalThis.Date());
|
|
16590
16590
|
}
|
|
16591
|
-
|
|
16591
|
+
Date.now = now;
|
|
16592
16592
|
function localize(value, locale) {
|
|
16593
|
-
|
|
16594
|
-
|
|
16593
|
+
return (is(value) ? parse(value) : value)
|
|
16594
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
16595
16595
|
year: "numeric",
|
|
16596
16596
|
month: "2-digit",
|
|
16597
16597
|
day: "2-digit",
|
|
@@ -16599,11 +16599,82 @@ var IsoDate;
|
|
|
16599
16599
|
minute: "2-digit",
|
|
16600
16600
|
second: "2-digit",
|
|
16601
16601
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16602
|
-
}
|
|
16603
|
-
|
|
16602
|
+
})
|
|
16603
|
+
.substring(0, 10);
|
|
16604
|
+
}
|
|
16605
|
+
Date.localize = localize;
|
|
16606
|
+
function next(date, days = 1) {
|
|
16607
|
+
let result;
|
|
16608
|
+
if (typeof days == "number") {
|
|
16609
|
+
const r = parse(date);
|
|
16610
|
+
r.setDate(r.getDate() + days);
|
|
16611
|
+
result = Date.create(r);
|
|
16612
|
+
}
|
|
16613
|
+
else {
|
|
16614
|
+
result = date;
|
|
16615
|
+
if (days.years)
|
|
16616
|
+
result = nextYear(result, days.years);
|
|
16617
|
+
if (days.months)
|
|
16618
|
+
result = nextMonth(result, days.months);
|
|
16619
|
+
if (days.days)
|
|
16620
|
+
result = next(result, days.days);
|
|
16621
|
+
}
|
|
16622
|
+
return result;
|
|
16623
|
+
}
|
|
16624
|
+
Date.next = next;
|
|
16625
|
+
function previous(date, days = 1) {
|
|
16626
|
+
let result;
|
|
16627
|
+
if (typeof days == "number") {
|
|
16628
|
+
const r = parse(date);
|
|
16629
|
+
r.setDate(r.getDate() - days);
|
|
16630
|
+
result = Date.create(r);
|
|
16631
|
+
}
|
|
16632
|
+
else {
|
|
16633
|
+
result = date;
|
|
16634
|
+
if (days.years)
|
|
16635
|
+
result = previousYear(result, days.years);
|
|
16636
|
+
if (days.months)
|
|
16637
|
+
result = previousMonth(result, days.months);
|
|
16638
|
+
if (days.days)
|
|
16639
|
+
result = previous(result, days.days);
|
|
16640
|
+
}
|
|
16641
|
+
return result;
|
|
16642
|
+
}
|
|
16643
|
+
Date.previous = previous;
|
|
16644
|
+
function nextMonth(date, months = 1) {
|
|
16645
|
+
const result = parse(date);
|
|
16646
|
+
result.setMonth(result.getMonth() + months);
|
|
16647
|
+
return Date.create(result);
|
|
16648
|
+
}
|
|
16649
|
+
Date.nextMonth = nextMonth;
|
|
16650
|
+
function previousMonth(date, months = 1) {
|
|
16651
|
+
return nextMonth(date, -months);
|
|
16652
|
+
}
|
|
16653
|
+
Date.previousMonth = previousMonth;
|
|
16654
|
+
function nextYear(date, years = 1) {
|
|
16655
|
+
const result = parse(date);
|
|
16656
|
+
result.setFullYear(result.getFullYear() + years);
|
|
16657
|
+
return Date.create(result);
|
|
16658
|
+
}
|
|
16659
|
+
Date.nextYear = nextYear;
|
|
16660
|
+
function previousYear(date, years = 1) {
|
|
16661
|
+
return nextYear(date, -years);
|
|
16662
|
+
}
|
|
16663
|
+
Date.previousYear = previousYear;
|
|
16664
|
+
function firstOfMonth(date) {
|
|
16665
|
+
const result = parse(date);
|
|
16666
|
+
result.setDate(1);
|
|
16667
|
+
return Date.create(result);
|
|
16668
|
+
}
|
|
16669
|
+
Date.firstOfMonth = firstOfMonth;
|
|
16670
|
+
function lastOfMonth(date) {
|
|
16671
|
+
const result = parse(date);
|
|
16672
|
+
result.setMonth(result.getMonth() + 1);
|
|
16673
|
+
result.setDate(-1);
|
|
16674
|
+
return Date.create(result);
|
|
16604
16675
|
}
|
|
16605
|
-
|
|
16606
|
-
})(
|
|
16676
|
+
Date.lastOfMonth = lastOfMonth;
|
|
16677
|
+
})(Date = exports.Date || (exports.Date = {}));
|
|
16607
16678
|
//# sourceMappingURL=Date.js.map
|
|
16608
16679
|
});
|
|
16609
16680
|
|
|
@@ -16634,7 +16705,7 @@ var DateTime;
|
|
|
16634
16705
|
DateTime.now = now;
|
|
16635
16706
|
function localize(value, locale) {
|
|
16636
16707
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
16637
|
-
|
|
16708
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
16638
16709
|
year: "numeric",
|
|
16639
16710
|
month: "2-digit",
|
|
16640
16711
|
day: "2-digit",
|
|
@@ -16642,8 +16713,7 @@ var DateTime;
|
|
|
16642
16713
|
minute: "2-digit",
|
|
16643
16714
|
second: "2-digit",
|
|
16644
16715
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16645
|
-
};
|
|
16646
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
16716
|
+
});
|
|
16647
16717
|
}
|
|
16648
16718
|
DateTime.localize = localize;
|
|
16649
16719
|
})(DateTime = exports.DateTime || (exports.DateTime = {}));
|
|
@@ -18418,7 +18488,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
18418
18488
|
|
|
18419
18489
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
|
|
18420
18490
|
|
|
18421
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.
|
|
18491
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
|
|
18422
18492
|
|
|
18423
18493
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
|
|
18424
18494
|
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5537d93a.js');
|
|
6
6
|
const Notice = require('./Notice-e43922ea.js');
|
|
7
|
-
const Trigger = require('./Trigger-
|
|
7
|
+
const Trigger = require('./Trigger-74bd1ee8.js');
|
|
8
8
|
|
|
9
9
|
const styleCss$z = "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
|
|
|
@@ -16547,27 +16547,27 @@ exports.CurrencyCode = void 0;
|
|
|
16547
16547
|
|
|
16548
16548
|
var _Date$1 = createCommonjsModule(function (module, exports) {
|
|
16549
16549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16550
|
-
exports.
|
|
16551
|
-
(function (
|
|
16550
|
+
exports.Date = void 0;
|
|
16551
|
+
(function (Date) {
|
|
16552
16552
|
function is(value) {
|
|
16553
16553
|
return (typeof value == "string" && /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
|
|
16554
16554
|
}
|
|
16555
|
-
|
|
16555
|
+
Date.is = is;
|
|
16556
16556
|
function parse(value, time) {
|
|
16557
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16557
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16558
16558
|
}
|
|
16559
|
-
|
|
16559
|
+
Date.parse = parse;
|
|
16560
16560
|
function create(value) {
|
|
16561
16561
|
return value.toISOString().substring(0, 10);
|
|
16562
16562
|
}
|
|
16563
|
-
|
|
16563
|
+
Date.create = create;
|
|
16564
16564
|
function now() {
|
|
16565
|
-
return create(new Date());
|
|
16565
|
+
return create(new globalThis.Date());
|
|
16566
16566
|
}
|
|
16567
|
-
|
|
16567
|
+
Date.now = now;
|
|
16568
16568
|
function localize(value, locale) {
|
|
16569
|
-
|
|
16570
|
-
|
|
16569
|
+
return (is(value) ? parse(value) : value)
|
|
16570
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
16571
16571
|
year: "numeric",
|
|
16572
16572
|
month: "2-digit",
|
|
16573
16573
|
day: "2-digit",
|
|
@@ -16575,11 +16575,82 @@ exports.IsoDate = void 0;
|
|
|
16575
16575
|
minute: "2-digit",
|
|
16576
16576
|
second: "2-digit",
|
|
16577
16577
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16578
|
-
}
|
|
16579
|
-
|
|
16578
|
+
})
|
|
16579
|
+
.substring(0, 10);
|
|
16580
16580
|
}
|
|
16581
|
-
|
|
16582
|
-
|
|
16581
|
+
Date.localize = localize;
|
|
16582
|
+
function next(date, days = 1) {
|
|
16583
|
+
let result;
|
|
16584
|
+
if (typeof days == "number") {
|
|
16585
|
+
const r = parse(date);
|
|
16586
|
+
r.setDate(r.getDate() + days);
|
|
16587
|
+
result = Date.create(r);
|
|
16588
|
+
}
|
|
16589
|
+
else {
|
|
16590
|
+
result = date;
|
|
16591
|
+
if (days.years)
|
|
16592
|
+
result = nextYear(result, days.years);
|
|
16593
|
+
if (days.months)
|
|
16594
|
+
result = nextMonth(result, days.months);
|
|
16595
|
+
if (days.days)
|
|
16596
|
+
result = next(result, days.days);
|
|
16597
|
+
}
|
|
16598
|
+
return result;
|
|
16599
|
+
}
|
|
16600
|
+
Date.next = next;
|
|
16601
|
+
function previous(date, days = 1) {
|
|
16602
|
+
let result;
|
|
16603
|
+
if (typeof days == "number") {
|
|
16604
|
+
const r = parse(date);
|
|
16605
|
+
r.setDate(r.getDate() - days);
|
|
16606
|
+
result = Date.create(r);
|
|
16607
|
+
}
|
|
16608
|
+
else {
|
|
16609
|
+
result = date;
|
|
16610
|
+
if (days.years)
|
|
16611
|
+
result = previousYear(result, days.years);
|
|
16612
|
+
if (days.months)
|
|
16613
|
+
result = previousMonth(result, days.months);
|
|
16614
|
+
if (days.days)
|
|
16615
|
+
result = previous(result, days.days);
|
|
16616
|
+
}
|
|
16617
|
+
return result;
|
|
16618
|
+
}
|
|
16619
|
+
Date.previous = previous;
|
|
16620
|
+
function nextMonth(date, months = 1) {
|
|
16621
|
+
const result = parse(date);
|
|
16622
|
+
result.setMonth(result.getMonth() + months);
|
|
16623
|
+
return Date.create(result);
|
|
16624
|
+
}
|
|
16625
|
+
Date.nextMonth = nextMonth;
|
|
16626
|
+
function previousMonth(date, months = 1) {
|
|
16627
|
+
return nextMonth(date, -months);
|
|
16628
|
+
}
|
|
16629
|
+
Date.previousMonth = previousMonth;
|
|
16630
|
+
function nextYear(date, years = 1) {
|
|
16631
|
+
const result = parse(date);
|
|
16632
|
+
result.setFullYear(result.getFullYear() + years);
|
|
16633
|
+
return Date.create(result);
|
|
16634
|
+
}
|
|
16635
|
+
Date.nextYear = nextYear;
|
|
16636
|
+
function previousYear(date, years = 1) {
|
|
16637
|
+
return nextYear(date, -years);
|
|
16638
|
+
}
|
|
16639
|
+
Date.previousYear = previousYear;
|
|
16640
|
+
function firstOfMonth(date) {
|
|
16641
|
+
const result = parse(date);
|
|
16642
|
+
result.setDate(1);
|
|
16643
|
+
return Date.create(result);
|
|
16644
|
+
}
|
|
16645
|
+
Date.firstOfMonth = firstOfMonth;
|
|
16646
|
+
function lastOfMonth(date) {
|
|
16647
|
+
const result = parse(date);
|
|
16648
|
+
result.setMonth(result.getMonth() + 1);
|
|
16649
|
+
result.setDate(-1);
|
|
16650
|
+
return Date.create(result);
|
|
16651
|
+
}
|
|
16652
|
+
Date.lastOfMonth = lastOfMonth;
|
|
16653
|
+
})(exports.Date || (exports.Date = {}));
|
|
16583
16654
|
//# sourceMappingURL=Date.js.map
|
|
16584
16655
|
});
|
|
16585
16656
|
|
|
@@ -16606,7 +16677,7 @@ exports.DateTime = void 0;
|
|
|
16606
16677
|
DateTime.now = now;
|
|
16607
16678
|
function localize(value, locale) {
|
|
16608
16679
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
16609
|
-
|
|
16680
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
16610
16681
|
year: "numeric",
|
|
16611
16682
|
month: "2-digit",
|
|
16612
16683
|
day: "2-digit",
|
|
@@ -16614,8 +16685,7 @@ exports.DateTime = void 0;
|
|
|
16614
16685
|
minute: "2-digit",
|
|
16615
16686
|
second: "2-digit",
|
|
16616
16687
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16617
|
-
};
|
|
16618
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
16688
|
+
});
|
|
16619
16689
|
}
|
|
16620
16690
|
DateTime.localize = localize;
|
|
16621
16691
|
})(exports.DateTime || (exports.DateTime = {}));
|
|
@@ -18362,7 +18432,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
18362
18432
|
|
|
18363
18433
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1$2.CurrencyCode; } });
|
|
18364
18434
|
|
|
18365
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$1.
|
|
18435
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date$1.Date; } });
|
|
18366
18436
|
|
|
18367
18437
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1$2.DateTime; } });
|
|
18368
18438
|
|
|
@@ -18386,7 +18456,8 @@ function month(date) {
|
|
|
18386
18456
|
d.setDate(day++);
|
|
18387
18457
|
r.push(dist$4.Date.create(d));
|
|
18388
18458
|
}
|
|
18389
|
-
|
|
18459
|
+
if (row < 5 || dist$4.Date.firstOfMonth(r[0]) == dist$4.Date.firstOfMonth(date))
|
|
18460
|
+
result.push(r);
|
|
18390
18461
|
}
|
|
18391
18462
|
return result;
|
|
18392
18463
|
}
|
|
@@ -18431,7 +18502,7 @@ function years(current) {
|
|
|
18431
18502
|
return result;
|
|
18432
18503
|
}
|
|
18433
18504
|
|
|
18434
|
-
const styleCss$w = ".sc-smoothly-calendar-h{display:block}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding
|
|
18505
|
+
const styleCss$w = ".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):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))}";
|
|
18435
18506
|
|
|
18436
18507
|
const Calendar = class {
|
|
18437
18508
|
constructor(hostRef) {
|
|
@@ -18456,7 +18527,7 @@ const Calendar = class {
|
|
|
18456
18527
|
event.stopPropagation();
|
|
18457
18528
|
} }),
|
|
18458
18529
|
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 => {
|
|
18459
|
-
var _a, _b;
|
|
18530
|
+
var _a, _b, _c;
|
|
18460
18531
|
return (index.h("td", { tabindex: 1, onClick: () => {
|
|
18461
18532
|
this.valueChanged.emit((this.value = date));
|
|
18462
18533
|
this.clickCounter += 1;
|
|
@@ -18469,9 +18540,9 @@ const Calendar = class {
|
|
|
18469
18540
|
this.start = date;
|
|
18470
18541
|
}
|
|
18471
18542
|
}, class: (date == this.value ? ["selected"] : [])
|
|
18472
|
-
.concat(...(date == dist$4.Date.now() ? ["today"] : []),
|
|
18473
|
-
? dist$4.Date.parse(date) >= dist$4.Date.parse((
|
|
18474
|
-
dist$4.Date.parse(date) <= dist$4.Date.parse((
|
|
18543
|
+
.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
|
|
18544
|
+
? dist$4.Date.parse(date) >= dist$4.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
|
|
18545
|
+
dist$4.Date.parse(date) <= dist$4.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
18475
18546
|
? ["dateRange"]
|
|
18476
18547
|
: []
|
|
18477
18548
|
: "")
|
|
@@ -52034,7 +52105,7 @@ const SmoothlyInput = class {
|
|
|
52034
52105
|
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
|
|
52035
52106
|
direction: backend.selectionDirection ? backend.selectionDirection : "none",
|
|
52036
52107
|
} });
|
|
52037
|
-
if ((!(event.ctrlKey && event.key == "v") && event.key.length == 1) ||
|
|
52108
|
+
if ((!((event.ctrlKey || event.metaKey) && event.key == "v") && event.key.length == 1) ||
|
|
52038
52109
|
event.key == "ArrowLeft" ||
|
|
52039
52110
|
event.key == "ArrowRight" ||
|
|
52040
52111
|
event.key == "Delete" ||
|
|
@@ -52173,7 +52244,7 @@ const SmoothlyInputDemo = class {
|
|
|
52173
52244
|
}
|
|
52174
52245
|
};
|
|
52175
52246
|
|
|
52176
|
-
const styleCss$k = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}
|
|
52247
|
+
const styleCss$k = ".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";
|
|
52177
52248
|
|
|
52178
52249
|
const MonthSelector = class {
|
|
52179
52250
|
constructor(hostRef) {
|
|
@@ -52183,21 +52254,21 @@ const MonthSelector = class {
|
|
|
52183
52254
|
onValueChanged(next) {
|
|
52184
52255
|
this.valueChanged.emit(next);
|
|
52185
52256
|
}
|
|
52257
|
+
adjustMonth(delta) {
|
|
52258
|
+
var _a;
|
|
52259
|
+
const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
|
|
52260
|
+
date.setMonth(date.getMonth() + delta);
|
|
52261
|
+
this.value = dist$4.Date.create(date);
|
|
52262
|
+
}
|
|
52186
52263
|
render() {
|
|
52187
52264
|
var _a, _b;
|
|
52188
52265
|
return [
|
|
52189
|
-
index.h("
|
|
52266
|
+
index.h("div", { onClick: () => this.adjustMonth(-1) }, index.h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
|
|
52190
52267
|
index.h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, years((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now()).map(year => (index.h("smoothly-item", { value: year.date, selected: year.selected }, year.name)))),
|
|
52191
52268
|
index.h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, months((_b = this.value) !== null && _b !== void 0 ? _b : dist$4.Date.now()).map(month => (index.h("smoothly-item", { value: month.date, selected: month.selected }, month.name)))),
|
|
52192
|
-
index.h("
|
|
52269
|
+
index.h("div", { onClick: () => this.adjustMonth(1) }, index.h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
|
|
52193
52270
|
];
|
|
52194
52271
|
}
|
|
52195
|
-
adjustMonth(delta) {
|
|
52196
|
-
var _a;
|
|
52197
|
-
const date = dist$4.Date.parse((_a = this.value) !== null && _a !== void 0 ? _a : dist$4.Date.now());
|
|
52198
|
-
date.setMonth(date.getMonth() + delta);
|
|
52199
|
-
this.value = dist$4.Date.create(date);
|
|
52200
|
-
}
|
|
52201
52272
|
static get watchers() { return {
|
|
52202
52273
|
"value": ["onValueChanged"]
|
|
52203
52274
|
}; }
|
|
@@ -52484,14 +52555,11 @@ const SmoothlyPicker = class {
|
|
|
52484
52555
|
: this.select(option);
|
|
52485
52556
|
}
|
|
52486
52557
|
clearSelection() {
|
|
52487
|
-
var _a;
|
|
52488
52558
|
this.selections = [];
|
|
52489
52559
|
this.inputElement.focus();
|
|
52490
52560
|
this.keepFocusOnReRender = true;
|
|
52491
|
-
(_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description = ""));
|
|
52492
52561
|
}
|
|
52493
52562
|
unselect(selection) {
|
|
52494
|
-
var _a;
|
|
52495
52563
|
const index = this.selections.map(selection => selection.value).indexOf(selection.value);
|
|
52496
52564
|
if (index != -1) {
|
|
52497
52565
|
this.selections = [
|
|
@@ -52500,12 +52568,8 @@ const SmoothlyPicker = class {
|
|
|
52500
52568
|
];
|
|
52501
52569
|
this.keepFocusOnReRender = true;
|
|
52502
52570
|
}
|
|
52503
|
-
const optionIndex = (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(s => s.value).indexOf(selection.value);
|
|
52504
|
-
if (optionIndex != -1)
|
|
52505
|
-
this.options[optionIndex].description = "";
|
|
52506
52571
|
}
|
|
52507
52572
|
select(selection) {
|
|
52508
|
-
var _a;
|
|
52509
52573
|
const isNewSelection = this.selections.reduce((acc, current) => acc && current.value != selection.value, true);
|
|
52510
52574
|
if (isNewSelection)
|
|
52511
52575
|
this.selections = this.multiple ? [...this.selections, selection] : [selection];
|
|
@@ -52513,8 +52577,6 @@ const SmoothlyPicker = class {
|
|
|
52513
52577
|
this.filterOptions();
|
|
52514
52578
|
this.keepFocusOnReRender = true;
|
|
52515
52579
|
this.isOpen = this.multiple;
|
|
52516
|
-
(_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(option => (option.description =
|
|
52517
|
-
option.value == selection.value ? this.getCheckHtml() : this.multiple ? option.description : ""));
|
|
52518
52580
|
}
|
|
52519
52581
|
toggleHighlighted() {
|
|
52520
52582
|
var _a;
|
|
@@ -52574,14 +52636,18 @@ const SmoothlyPicker = class {
|
|
|
52574
52636
|
"--max-height": (_a = this.maxHeight) !== null && _a !== void 0 ? _a : "inherit",
|
|
52575
52637
|
"--label-display": this.labelSetting == "hide" ? "none" : "absolute",
|
|
52576
52638
|
};
|
|
52577
|
-
|
|
52578
|
-
|
|
52579
|
-
|
|
52580
|
-
|
|
52581
|
-
|
|
52582
|
-
|
|
52583
|
-
|
|
52584
|
-
|
|
52639
|
+
this.options.forEach(o => {
|
|
52640
|
+
o.description = this.selections.map(s => s.value).includes(o.value) ? this.getCheckHtml() : "";
|
|
52641
|
+
});
|
|
52642
|
+
const options = [
|
|
52643
|
+
{
|
|
52644
|
+
value: "select-none",
|
|
52645
|
+
name: this.selectNoneName,
|
|
52646
|
+
description: this.selections.length == 0 ? this.getCheckHtml() : "",
|
|
52647
|
+
},
|
|
52648
|
+
...((_b = this.options) !== null && _b !== void 0 ? _b : []),
|
|
52649
|
+
];
|
|
52650
|
+
return (index.h(index.Host, { style: cssVariables, "has-selection": this.selections.length > 0, "is-open": this.isOpen ? "" : undefined, onMouseDown: (e) => e.preventDefault(), onClick: () => this.onClick() }, index.h("div", null, index.h("label", null, this.label), index.h("input", { type: "text", ref: (el) => (this.inputElement = el ? el : this.inputElement), onFocus: () => this.highlightDefault(), onBlur: () => this.onBlur(), placeholder: this.selections.map(selection => selection.name).join(", "), onKeyDown: e => this.onKeyDown(e), onInput: (e) => this.onInput(e) })), index.h("smoothly-menu-options", { style: { width: "100%" }, optionStyle: Object.assign({ padding: "0 1em", height: "2.5em" }, this.optionStyle), order: false, emptyMenuLabel: this.emptyMenuLabel, "max-menu-height": this.maxMenuHeight, ref: (el) => (this.menuElement = el !== null && el !== void 0 ? el : this.menuElement), onClick: e => e.stopPropagation(), resetHighlightOnOptionsChange: false, options: options })));
|
|
52585
52651
|
}
|
|
52586
52652
|
get element() { return index.getElement(this); }
|
|
52587
52653
|
static get watchers() { return {
|
|
@@ -52952,7 +53018,7 @@ const TableDemo = class {
|
|
|
52952
53018
|
};
|
|
52953
53019
|
TableDemo.style = styleCss$5;
|
|
52954
53020
|
|
|
52955
|
-
const styleCss$4 = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.
|
|
53021
|
+
const styleCss$4 = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.hide.sc-smoothly-table-expandable-cell{display:none}";
|
|
52956
53022
|
|
|
52957
53023
|
const TableExpandableCell = class {
|
|
52958
53024
|
constructor(hostRef) {
|
|
@@ -52981,7 +53047,7 @@ const TableExpandableCell = class {
|
|
|
52981
53047
|
}
|
|
52982
53048
|
}
|
|
52983
53049
|
render() {
|
|
52984
|
-
return (index.h(index.Host, { style: { textAlign: this.align } }, index.h("slot", null), index.h("tr", { ref: e => (this.expansionElement = e) },
|
|
53050
|
+
return (index.h(index.Host, { style: { textAlign: this.align } }, index.h("slot", null), index.h("tr", { ref: e => (this.expansionElement = e) }, index.h("td", { colSpan: 500, class: !this.open ? "hide" : "" }, index.h("slot", { name: "detail" })))));
|
|
52985
53051
|
}
|
|
52986
53052
|
get element() { return index.getElement(this); }
|
|
52987
53053
|
static get watchers() { return {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const generate = require('./generate-
|
|
6
|
+
const index$1 = require('./index-e37f73fe.js');
|
|
7
|
+
const generate = require('./generate-7f7f7d99.js');
|
|
8
8
|
require('./_commonjsHelpers-10109b76.js');
|
|
9
9
|
|
|
10
|
-
const styleCss = ".sc-smoothly-calendar-h{display:block}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding
|
|
10
|
+
const styleCss = ".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):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))}";
|
|
11
11
|
|
|
12
12
|
const Calendar = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -32,7 +32,7 @@ const Calendar = class {
|
|
|
32
32
|
event.stopPropagation();
|
|
33
33
|
} }),
|
|
34
34
|
index.h("table", null, index.h("thead", null, index.h("tr", null, generate.weekdays().map(day => (index.h("th", null, day))))), generate.month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (index.h("tr", null, week.map(date => {
|
|
35
|
-
var _a, _b;
|
|
35
|
+
var _a, _b, _c;
|
|
36
36
|
return (index.h("td", { tabindex: 1, onClick: () => {
|
|
37
37
|
this.valueChanged.emit((this.value = date));
|
|
38
38
|
this.clickCounter += 1;
|
|
@@ -45,9 +45,9 @@ const Calendar = class {
|
|
|
45
45
|
this.start = date;
|
|
46
46
|
}
|
|
47
47
|
}, class: (date == this.value ? ["selected"] : [])
|
|
48
|
-
.concat(...(date == index$1.dist.Date.now() ? ["today"] : []),
|
|
49
|
-
? index$1.dist.Date.parse(date) >= index$1.dist.Date.parse((
|
|
50
|
-
index$1.dist.Date.parse(date) <= index$1.dist.Date.parse((
|
|
48
|
+
.concat(...(date == index$1.dist.Date.now() ? ["today"] : []), index$1.dist.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == index$1.dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
49
|
+
? index$1.dist.Date.parse(date) >= index$1.dist.Date.parse((_b = this.start) !== null && _b !== void 0 ? _b : "") &&
|
|
50
|
+
index$1.dist.Date.parse(date) <= index$1.dist.Date.parse((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
51
51
|
? ["dateRange"]
|
|
52
52
|
: []
|
|
53
53
|
: "")
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-c973259c.js');
|
|
7
7
|
|
|
8
8
|
const styleCss = ".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}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-e37f73fe.js');
|
|
7
7
|
require('./_commonjsHelpers-10109b76.js');
|
|
8
8
|
|
|
9
9
|
const styleCss = ".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-c973259c.js');
|
|
7
7
|
|
|
8
8
|
const SmoothlyDisplayDemo = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-c973259c.js');
|
|
7
7
|
|
|
8
8
|
const styleCss = ".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}";
|
|
9
9
|
|