smoothly 0.1.87 → 0.1.91
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/GoogleFont-6c4f0da1.js +21 -0
- package/dist/cjs/{index-de5d1ee1.js → index-40d009d5.js} +2 -0
- package/dist/cjs/{index-328edd81.js → index-bc3845e8.js} +253 -182
- package/dist/cjs/index.cjs.js +8 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_47.cjs.entry.js +296 -201
- package/dist/cjs/smoothly-calendar.cjs.entry.js +38 -10
- package/dist/cjs/smoothly-dialog.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-frame.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js +17 -0
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +8 -9
- package/dist/cjs/smoothly-input-date.cjs.entry.js +4 -0
- package/dist/cjs/smoothly-input.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-select-demo.cjs.entry.js +1 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -1
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/calendar/index.js +80 -11
- package/dist/collection/components/google-font/index.js +33 -0
- package/dist/collection/components/input/index.js +3 -3
- package/dist/collection/components/input/style.css +1 -0
- package/dist/collection/components/input-date/index.js +12 -1
- package/dist/collection/components/input-date-range/index.js +14 -15
- package/dist/collection/components/select-demo/index.js +1 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/model/GoogleFont.js +19 -0
- package/dist/collection/model/index.js +1 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +349 -214
- package/dist/esm/GoogleFont-8474516b.js +21 -0
- package/dist/esm/{index-1be6d668.js → index-37a67c97.js} +253 -182
- package/dist/{smoothly/index-68492ed9.js → esm/index-c8b5d468.js} +2 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-accordion_47.entry.js +296 -201
- package/dist/esm/smoothly-calendar.entry.js +38 -10
- package/dist/esm/smoothly-dialog.entry.js +2 -1
- package/dist/esm/smoothly-display-demo.entry.js +2 -1
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-frame.entry.js +2 -1
- package/dist/esm/smoothly-google-font.entry.js +13 -0
- package/dist/esm/smoothly-input-date-range.entry.js +8 -9
- package/dist/esm/smoothly-input-date.entry.js +4 -0
- package/dist/esm/smoothly-input.entry.js +4 -4
- package/dist/esm/smoothly-select-demo.entry.js +1 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -1
- package/dist/esm/smoothly-trigger-source.entry.js +2 -1
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/GoogleFont-8474516b.js +21 -0
- package/dist/smoothly/{index-1be6d668.js → index-37a67c97.js} +253 -182
- package/dist/{esm/index-68492ed9.js → smoothly/index-c8b5d468.js} +2 -0
- package/dist/smoothly/index.esm.js +2 -1
- package/dist/smoothly/p-14232157.entry.js +1 -0
- package/dist/smoothly/p-22d4d5a7.entry.js +1 -0
- package/dist/smoothly/p-9947e4bf.entry.js +1 -0
- package/dist/smoothly/p-b8a3e273.entry.js +1 -0
- package/dist/smoothly/p-bd478a53.js +1 -0
- package/dist/smoothly/smoothly-calendar.entry.js +38 -10
- package/dist/smoothly/smoothly-dialog.entry.js +2 -1
- package/dist/smoothly/smoothly-display-demo.entry.js +2 -1
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-frame.entry.js +2 -1
- package/dist/smoothly/smoothly-google-font.entry.js +13 -0
- package/dist/smoothly/smoothly-input-date-range.entry.js +8 -9
- package/dist/smoothly/smoothly-input-date.entry.js +4 -0
- package/dist/smoothly/smoothly-input.entry.js +4 -4
- package/dist/smoothly/smoothly-select-demo.entry.js +1 -0
- package/dist/smoothly/smoothly-trigger-sink.entry.js +2 -1
- package/dist/smoothly/smoothly-trigger-source.entry.js +2 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/calendar/index.d.ts +6 -1
- package/dist/types/components/google-font/index.d.ts +5 -0
- package/dist/types/components/input-date/index.d.ts +1 -0
- package/dist/types/components/input-date-range/index.d.ts +2 -2
- package/dist/types/components.d.ts +19 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/GoogleFont.d.ts +6 -0
- package/dist/types/model/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/smoothly/p-09d633f8.entry.js +0 -1
- package/dist/smoothly/p-1a81597b.entry.js +0 -1
- package/dist/smoothly/p-7b43df84.entry.js +0 -1
|
@@ -1011,7 +1011,7 @@ var __awaiter$a = (undefined && undefined.__awaiter) || function (thisArg, _argu
|
|
|
1011
1011
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1012
1012
|
});
|
|
1013
1013
|
};
|
|
1014
|
-
class Base {
|
|
1014
|
+
class Base$1 {
|
|
1015
1015
|
sign(data) {
|
|
1016
1016
|
return __awaiter$a(this, void 0, void 0, function* () {
|
|
1017
1017
|
return typeof data == "string"
|
|
@@ -1037,7 +1037,7 @@ var __awaiter$9 = (undefined && undefined.__awaiter) || function (thisArg, _argu
|
|
|
1037
1037
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1038
1038
|
});
|
|
1039
1039
|
};
|
|
1040
|
-
class ECDSA extends Base {
|
|
1040
|
+
class ECDSA extends Base$1 {
|
|
1041
1041
|
constructor(hash, publicKey, privateKey) {
|
|
1042
1042
|
super();
|
|
1043
1043
|
this.hash = hash;
|
|
@@ -1081,7 +1081,7 @@ var __awaiter$8 = (undefined && undefined.__awaiter) || function (thisArg, _argu
|
|
|
1081
1081
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1082
1082
|
});
|
|
1083
1083
|
};
|
|
1084
|
-
class Symmetric$1 extends Base {
|
|
1084
|
+
class Symmetric$1 extends Base$1 {
|
|
1085
1085
|
verifyBinary(data, signature) {
|
|
1086
1086
|
return __awaiter$8(this, void 0, void 0, function* () {
|
|
1087
1087
|
return encode$1(yield this.signBinary(data), "url") == encode$1(signature, "url");
|
|
@@ -1128,7 +1128,7 @@ var __awaiter$6 = (undefined && undefined.__awaiter) || function (thisArg, _argu
|
|
|
1128
1128
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1129
1129
|
});
|
|
1130
1130
|
};
|
|
1131
|
-
class RSA extends Base {
|
|
1131
|
+
class RSA extends Base$1 {
|
|
1132
1132
|
constructor(hash, publicKey, privateKey) {
|
|
1133
1133
|
super();
|
|
1134
1134
|
this.hash = hash;
|
|
@@ -1164,7 +1164,7 @@ var __awaiter$5 = (undefined && undefined.__awaiter) || function (thisArg, _argu
|
|
|
1164
1164
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1165
1165
|
});
|
|
1166
1166
|
};
|
|
1167
|
-
class RSAPSS extends Base {
|
|
1167
|
+
class RSAPSS extends Base$1 {
|
|
1168
1168
|
constructor(hash, publicKey, privateKey) {
|
|
1169
1169
|
super();
|
|
1170
1170
|
this.hash = hash;
|
|
@@ -1853,6 +1853,26 @@ class ClientIdentifier {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
|
+
var GoogleFont;
|
|
1857
|
+
(function (GoogleFont) {
|
|
1858
|
+
function is(value) {
|
|
1859
|
+
return (typeof value == "string" &&
|
|
1860
|
+
!/[</>"'`]/g.test(value) &&
|
|
1861
|
+
/^([a-zA-ZäöüåßÄÖÜÅ+ ])+(:(ital(,)?)?((wght@(([01],\d{3})(;[01],\d{3})*|((\d{3})(;\d{3})*))))?)?$/g.test(value));
|
|
1862
|
+
}
|
|
1863
|
+
GoogleFont.is = is;
|
|
1864
|
+
function getFont(value) {
|
|
1865
|
+
return is(value) ? value.split(":")[0].replace(/\+/g, " ") : undefined;
|
|
1866
|
+
}
|
|
1867
|
+
GoogleFont.getFont = getFont;
|
|
1868
|
+
function styleImportString(value) {
|
|
1869
|
+
return is(value)
|
|
1870
|
+
? `@import url('https://fonts.googleapis.com/css2?family=${value.replace(/ /g, "+")}&display=swap`
|
|
1871
|
+
: undefined;
|
|
1872
|
+
}
|
|
1873
|
+
GoogleFont.styleImportString = styleImportString;
|
|
1874
|
+
})(GoogleFont || (GoogleFont = {}));
|
|
1875
|
+
|
|
1856
1876
|
class Message {
|
|
1857
1877
|
static is(value) {
|
|
1858
1878
|
return typeof value == "object" && typeof value.destination == "string" && value.content != undefined;
|
|
@@ -21448,6 +21468,8 @@ let Calendar = class extends HTMLElement {
|
|
|
21448
21468
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
21449
21469
|
this.startChanged = createEvent(this, "startChanged", 7);
|
|
21450
21470
|
this.endChanged = createEvent(this, "endChanged", 7);
|
|
21471
|
+
this.dateSet = createEvent(this, "dateSet", 7);
|
|
21472
|
+
this.dateRangeSet = createEvent(this, "dateRangeSet", 7);
|
|
21451
21473
|
this.value = dist$3.Date.now();
|
|
21452
21474
|
this.clickCounter = 0;
|
|
21453
21475
|
}
|
|
@@ -21460,13 +21482,33 @@ let Calendar = class extends HTMLElement {
|
|
|
21460
21482
|
onClick(date) {
|
|
21461
21483
|
this.valueChanged.emit((this.value = date));
|
|
21462
21484
|
this.clickCounter += 1;
|
|
21463
|
-
if (this.
|
|
21464
|
-
this.
|
|
21465
|
-
|
|
21466
|
-
|
|
21467
|
-
this.
|
|
21468
|
-
|
|
21485
|
+
if (this.doubleInput) {
|
|
21486
|
+
if (this.clickCounter % 2 == 1)
|
|
21487
|
+
this.start = this.end = this.frozenDate = date;
|
|
21488
|
+
else {
|
|
21489
|
+
if (this.start && date > this.start)
|
|
21490
|
+
this.end = date;
|
|
21491
|
+
else
|
|
21492
|
+
this.start = date;
|
|
21493
|
+
}
|
|
21494
|
+
}
|
|
21495
|
+
!this.doubleInput && this.dateSet.emit(this.value);
|
|
21496
|
+
this.doubleInput &&
|
|
21497
|
+
this.clickCounter % 2 == 0 &&
|
|
21498
|
+
this.start &&
|
|
21499
|
+
this.end &&
|
|
21500
|
+
this.dateRangeSet.emit({ start: this.start, end: this.end });
|
|
21501
|
+
}
|
|
21502
|
+
onHover(date) {
|
|
21503
|
+
if (this.doubleInput && this.clickCounter % 2 == 1) {
|
|
21504
|
+
if (date < this.frozenDate) {
|
|
21469
21505
|
this.start = date;
|
|
21506
|
+
this.end = this.frozenDate;
|
|
21507
|
+
}
|
|
21508
|
+
else {
|
|
21509
|
+
this.start = this.frozenDate;
|
|
21510
|
+
this.end = date;
|
|
21511
|
+
}
|
|
21470
21512
|
}
|
|
21471
21513
|
}
|
|
21472
21514
|
render() {
|
|
@@ -21478,11 +21520,17 @@ let Calendar = class extends HTMLElement {
|
|
|
21478
21520
|
} }),
|
|
21479
21521
|
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 => {
|
|
21480
21522
|
var _a, _b, _c;
|
|
21481
|
-
return (h("td", { tabindex: 1,
|
|
21523
|
+
return (h("td", { tabindex: 1, onMouseOver: () => {
|
|
21524
|
+
!this.doubleInput && (this.min || this.max) && (date < this.min || date > this.max)
|
|
21525
|
+
? undefined
|
|
21526
|
+
: this.onHover(date);
|
|
21527
|
+
}, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
|
|
21482
21528
|
.concat(...(date == dist$3.Date.now() ? ["today"] : []), dist$3.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist$3.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
|
|
21483
|
-
?
|
|
21484
|
-
? ["
|
|
21485
|
-
:
|
|
21529
|
+
? this.start == date || this.end == date
|
|
21530
|
+
? ["selected"]
|
|
21531
|
+
: date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
|
|
21532
|
+
? ["dateRange"]
|
|
21533
|
+
: []
|
|
21486
21534
|
: "")
|
|
21487
21535
|
.concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
|
|
21488
21536
|
.join(" ") }, date.substring(8, 10)));
|
|
@@ -40713,17 +40761,31 @@ var DateFormat;
|
|
|
40713
40761
|
function fromLocale(locale) {
|
|
40714
40762
|
let result;
|
|
40715
40763
|
switch (locale) {
|
|
40764
|
+
case "sq-AL":
|
|
40765
|
+
case "es-AR":
|
|
40766
|
+
case "it-IT":
|
|
40716
40767
|
case "en-GB":
|
|
40768
|
+
case "fr-FR":
|
|
40717
40769
|
result = "dd/mm/YYYY";
|
|
40718
40770
|
break;
|
|
40719
40771
|
case "en-US":
|
|
40720
40772
|
result = "mm/dd/YYYY";
|
|
40721
40773
|
break;
|
|
40774
|
+
case "et-EE":
|
|
40775
|
+
case "de-AT":
|
|
40722
40776
|
case "de-DE":
|
|
40777
|
+
case "he-IL":
|
|
40778
|
+
case "is-IS":
|
|
40779
|
+
case "lv-LV":
|
|
40723
40780
|
case "pl-PL":
|
|
40724
40781
|
case "ru-RU":
|
|
40782
|
+
case "fi-FI":
|
|
40725
40783
|
result = "dd.mm.YYYY";
|
|
40726
40784
|
break;
|
|
40785
|
+
case "hi-IN":
|
|
40786
|
+
case "en-IN":
|
|
40787
|
+
result = "dd-mm-YYYY";
|
|
40788
|
+
break;
|
|
40727
40789
|
default:
|
|
40728
40790
|
result = "YYYY-mm-dd";
|
|
40729
40791
|
break;
|
|
@@ -40761,150 +40823,270 @@ var DateFormat;
|
|
|
40761
40823
|
|
|
40762
40824
|
const DateFormat = /*@__PURE__*/getDefaultExportFromCjs(DateFormat_1);
|
|
40763
40825
|
|
|
40764
|
-
var
|
|
40826
|
+
var Base_1 = createCommonjsModule(function (module, exports) {
|
|
40765
40827
|
"use strict";
|
|
40766
40828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40767
|
-
exports.
|
|
40768
|
-
|
|
40769
|
-
|
|
40770
|
-
|
|
40771
|
-
|
|
40772
|
-
|
|
40773
|
-
|
|
40774
|
-
state.value.substring(startIndex, startIndex + 1) == "1")
|
|
40775
|
-
result = symbol <= "9" && symbol >= "0";
|
|
40776
|
-
else if (state.value.substring(startIndex, startIndex + 1) == "0")
|
|
40777
|
-
result = symbol <= "9" && symbol >= "1";
|
|
40778
|
-
else
|
|
40779
|
-
result = symbol == "1" || symbol == "0";
|
|
40829
|
+
exports.register = exports.Base = void 0;
|
|
40830
|
+
|
|
40831
|
+
|
|
40832
|
+
|
|
40833
|
+
class Base {
|
|
40834
|
+
constructor(seperator) {
|
|
40835
|
+
this.seperator = seperator;
|
|
40780
40836
|
}
|
|
40781
|
-
|
|
40782
|
-
|
|
40783
|
-
|
|
40784
|
-
|
|
40785
|
-
|
|
40786
|
-
|
|
40787
|
-
|
|
40788
|
-
|
|
40789
|
-
|
|
40790
|
-
|
|
40791
|
-
|
|
40792
|
-
result = symbol < "3" && symbol >= "0";
|
|
40837
|
+
unformat(formated) {
|
|
40838
|
+
return formated.delete(this.seperator);
|
|
40839
|
+
}
|
|
40840
|
+
daysInMonth(value) {
|
|
40841
|
+
var _a;
|
|
40842
|
+
return (32 -
|
|
40843
|
+
Number.parseInt(dist$3.Date.next(((_a = this.fromString(value.padEnd(8, "1"))) !== null && _a !== void 0 ? _a : "1970-01-01").substring(0, 8) + "28", 4).substring(8, 10)));
|
|
40844
|
+
}
|
|
40845
|
+
validMonth(day, month, year) {
|
|
40846
|
+
return (new Date(Number.parseInt(year !== null && year !== void 0 ? year : "2004"), Number.parseInt(month), 0).getDate() >=
|
|
40847
|
+
Number.parseInt(day));
|
|
40793
40848
|
}
|
|
40794
|
-
return result;
|
|
40795
|
-
}
|
|
40796
|
-
exports.validMonth = validMonth;
|
|
40797
|
-
function validYear(symbol, state, startIndex, endIndex) {
|
|
40798
|
-
return state.value.length < endIndex && state.value.length >= startIndex && symbol >= "0" && symbol <= "9";
|
|
40799
40849
|
}
|
|
40800
|
-
exports.
|
|
40801
|
-
|
|
40802
|
-
|
|
40850
|
+
exports.Base = Base;
|
|
40851
|
+
const handlers = {};
|
|
40852
|
+
function register(format, create) {
|
|
40853
|
+
handlers[format] = create;
|
|
40803
40854
|
}
|
|
40804
|
-
exports.
|
|
40805
|
-
|
|
40806
|
-
|
|
40807
|
-
|
|
40808
|
-
|
|
40809
|
-
|
|
40810
|
-
|
|
40811
|
-
|
|
40812
|
-
|
|
40813
|
-
|
|
40814
|
-
|
|
40815
|
-
|
|
40816
|
-
|
|
40817
|
-
|
|
40818
|
-
|
|
40819
|
-
|
|
40820
|
-
|
|
40821
|
-
|
|
40822
|
-
|
|
40823
|
-
|
|
40824
|
-
|
|
40825
|
-
|
|
40826
|
-
|
|
40827
|
-
|
|
40828
|
-
|
|
40829
|
-
|
|
40830
|
-
|
|
40831
|
-
|
|
40832
|
-
|
|
40833
|
-
|
|
40834
|
-
|
|
40835
|
-
|
|
40855
|
+
exports.register = register;
|
|
40856
|
+
base.add("date", (parameters) => {
|
|
40857
|
+
var _a;
|
|
40858
|
+
const argument = parameters && parameters.length > 0 ? parameters[0] : undefined;
|
|
40859
|
+
const format = DateFormat_1.DateFormat.is(argument) ? argument : DateFormat_1.DateFormat.fromLocale(argument);
|
|
40860
|
+
const create = (_a = handlers[format]) !== null && _a !== void 0 ? _a : handlers["YYYY-mm-dd"];
|
|
40861
|
+
return create();
|
|
40862
|
+
});
|
|
40863
|
+
//# sourceMappingURL=Base.js.map
|
|
40864
|
+
});
|
|
40865
|
+
|
|
40866
|
+
const Base = /*@__PURE__*/getDefaultExportFromCjs(Base_1);
|
|
40867
|
+
|
|
40868
|
+
var dmy = createCommonjsModule(function (module, exports) {
|
|
40869
|
+
"use strict";
|
|
40870
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40871
|
+
|
|
40872
|
+
|
|
40873
|
+
class Handler extends Base_1.Base {
|
|
40874
|
+
constructor(seperator) {
|
|
40875
|
+
super(seperator);
|
|
40876
|
+
}
|
|
40877
|
+
toString(data) {
|
|
40878
|
+
return data.length == 10
|
|
40879
|
+
? [data.substring(8, 10), data.substring(5, 7), data.substring(0, 4)].join(this.seperator)
|
|
40880
|
+
: "";
|
|
40881
|
+
}
|
|
40882
|
+
fromString(value) {
|
|
40883
|
+
const result = value.length == 8 ? `${value.substring(4, 8)}-${value.substring(2, 4)}-${value.substring(0, 2)}` : undefined;
|
|
40884
|
+
return dist$3.Date.is(result) ? result : undefined;
|
|
40885
|
+
}
|
|
40886
|
+
format(unformatted) {
|
|
40887
|
+
let result = unformatted;
|
|
40888
|
+
if (result.get(0, 1) > "3")
|
|
40889
|
+
result = result.insert(0, "0");
|
|
40890
|
+
if (result.value.length > 1)
|
|
40891
|
+
result = result.insert(2, this.seperator);
|
|
40892
|
+
if (result.get(3, 1) > "1")
|
|
40893
|
+
result = result.insert(3, "0");
|
|
40894
|
+
if (result.value.length > 4)
|
|
40895
|
+
result = result.insert(5, this.seperator);
|
|
40896
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 10], pattern: new RegExp(["^(0[1-9]|[12][0-9]|3[01])", "(0[1-9]|1[012])", "\\d{4}$"].join(this.seperator)) });
|
|
40897
|
+
}
|
|
40898
|
+
allowed(symbol, state) {
|
|
40899
|
+
return state.selection.start == 1 && state.value[0] == "3"
|
|
40900
|
+
? symbol >= "0" && symbol <= "1"
|
|
40901
|
+
: state.selection.start == 1 && state.value[0] == "0"
|
|
40902
|
+
? symbol >= "1" && symbol <= "9"
|
|
40903
|
+
: state.selection.start == 2
|
|
40904
|
+
? symbol >= "0" &&
|
|
40905
|
+
symbol <= "9" &&
|
|
40906
|
+
(symbol == "0" || symbol == "1" || this.validMonth(state.value.substring(0, 2), symbol))
|
|
40907
|
+
: state.selection.start == 3
|
|
40908
|
+
? symbol >= "0" && symbol <= "9" && this.validMonth(state.value.substring(0, 2), state.value[2] + symbol)
|
|
40909
|
+
: state.selection.start == 7
|
|
40910
|
+
? symbol >= "0" &&
|
|
40911
|
+
symbol <= "9" &&
|
|
40912
|
+
this.validMonth(state.value.substring(0, 2), state.value.substring(2, 4), state.value.substring(4, 7) + symbol)
|
|
40913
|
+
: state.selection.start < 8 && symbol >= "0" && symbol <= "9";
|
|
40914
|
+
}
|
|
40915
|
+
}
|
|
40916
|
+
Base_1.register("dd.mm.YYYY", () => new Handler("."));
|
|
40917
|
+
Base_1.register("dd/mm/YYYY", () => new Handler("/"));
|
|
40918
|
+
Base_1.register("dd-mm-YYYY", () => new Handler("-"));
|
|
40919
|
+
//# sourceMappingURL=dmy.js.map
|
|
40920
|
+
});
|
|
40921
|
+
|
|
40922
|
+
const dmy$1 = /*@__PURE__*/getDefaultExportFromCjs(dmy);
|
|
40923
|
+
|
|
40924
|
+
var mdy = createCommonjsModule(function (module, exports) {
|
|
40925
|
+
"use strict";
|
|
40926
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40927
|
+
|
|
40928
|
+
|
|
40929
|
+
class Handler extends Base_1.Base {
|
|
40930
|
+
constructor(seperator) {
|
|
40931
|
+
super(seperator);
|
|
40932
|
+
}
|
|
40933
|
+
toString(data) {
|
|
40934
|
+
return data.length == 10
|
|
40935
|
+
? [data.substring(5, 7), data.substring(8, 10), data.substring(0, 4)].join(this.seperator)
|
|
40936
|
+
: "";
|
|
40937
|
+
}
|
|
40938
|
+
fromString(value) {
|
|
40939
|
+
const result = value.length == 8 ? `${value.substring(4, 8)}-${value.substring(0, 2)}-${value.substring(2, 4)}` : undefined;
|
|
40940
|
+
return dist$3.Date.is(result) ? result : undefined;
|
|
40941
|
+
}
|
|
40942
|
+
format(unformatted) {
|
|
40943
|
+
let result = unformatted;
|
|
40944
|
+
if (result.get(0, 1) > "1")
|
|
40945
|
+
result = result.insert(0, "0");
|
|
40946
|
+
if (result.value.length > 1)
|
|
40947
|
+
result = result.insert(2, this.seperator);
|
|
40948
|
+
if (result.get(3, 1) > (result.get(0, 2) == "02" ? "2" : "3"))
|
|
40949
|
+
result = result.insert(3, "0");
|
|
40950
|
+
if (result.value.length > 4)
|
|
40951
|
+
result = result.insert(5, this.seperator);
|
|
40952
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 10], pattern: new RegExp(["^(0[1-9]|1[012])", "(0[1-9]|[12][0-9]|3[01])", "\\d{4}$"].join(this.seperator)) });
|
|
40953
|
+
}
|
|
40954
|
+
allowed(symbol, state) {
|
|
40955
|
+
const result = state.selection.start == 1 && state.value[0] == "1"
|
|
40956
|
+
? symbol >= "0" && symbol <= "2"
|
|
40957
|
+
: state.selection.start == 1 && state.value[0] == "0"
|
|
40958
|
+
? symbol >= "1" && symbol <= "9"
|
|
40959
|
+
: state.selection.start == 3
|
|
40960
|
+
? symbol >= "0" && symbol <= "9" && this.validMonth(state.value[2] + symbol, state.value.substring(0, 2))
|
|
40961
|
+
: state.selection.start == 7
|
|
40962
|
+
? symbol >= "0" &&
|
|
40963
|
+
symbol <= "9" &&
|
|
40964
|
+
this.validMonth(state.value.substring(2, 4), state.value.substring(0, 2), state.value.substring(4, 7) + symbol)
|
|
40965
|
+
: state.selection.start < 8 && symbol >= "0" && symbol <= "9";
|
|
40966
|
+
return result;
|
|
40836
40967
|
}
|
|
40837
|
-
return result;
|
|
40838
40968
|
}
|
|
40839
|
-
|
|
40840
|
-
//# sourceMappingURL=
|
|
40969
|
+
Base_1.register("mm/dd/YYYY", () => new Handler("/"));
|
|
40970
|
+
//# sourceMappingURL=mdy.js.map
|
|
40841
40971
|
});
|
|
40842
40972
|
|
|
40843
|
-
const
|
|
40973
|
+
const mdy$1 = /*@__PURE__*/getDefaultExportFromCjs(mdy);
|
|
40974
|
+
|
|
40975
|
+
var ymd = createCommonjsModule(function (module, exports) {
|
|
40976
|
+
"use strict";
|
|
40977
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40978
|
+
|
|
40979
|
+
|
|
40980
|
+
class Handler extends Base_1.Base {
|
|
40981
|
+
constructor(seperator) {
|
|
40982
|
+
super(seperator);
|
|
40983
|
+
}
|
|
40984
|
+
toString(data) {
|
|
40985
|
+
return typeof data != "string" ? "" : data;
|
|
40986
|
+
}
|
|
40987
|
+
fromString(value) {
|
|
40988
|
+
const result = value.length == 8 ? `${value.substring(0, 4)}-${value.substring(4, 6)}-${value.substring(6, 8)}` : undefined;
|
|
40989
|
+
return dist$3.Date.is(result) ? result : undefined;
|
|
40990
|
+
}
|
|
40991
|
+
format(unformatted) {
|
|
40992
|
+
let result = unformatted;
|
|
40993
|
+
if (result.value.length > 3) {
|
|
40994
|
+
result = result.insert(4, this.seperator);
|
|
40995
|
+
if (result.get(5, 1) > "1")
|
|
40996
|
+
result = result.insert(5, "0");
|
|
40997
|
+
if (result.value.length > 6) {
|
|
40998
|
+
result = result.insert(7, this.seperator);
|
|
40999
|
+
if (result.get(8, 1) > this.daysInMonth(unformatted.value).toString().substring(0, 1))
|
|
41000
|
+
result = result.insert(8, "0");
|
|
41001
|
+
}
|
|
41002
|
+
}
|
|
41003
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 10], pattern: new RegExp(["^\\d{4}", "(0[1-9]|1[012])", "(0[1-9]|[12][0-9]|3[01])$"].join(this.seperator)) });
|
|
41004
|
+
}
|
|
41005
|
+
allowed(symbol, state) {
|
|
41006
|
+
const daysInMonth = this.daysInMonth(state.value);
|
|
41007
|
+
return state.selection.start == 5 && state.value[4] == "0"
|
|
41008
|
+
? symbol >= "1" && symbol <= "9"
|
|
41009
|
+
: state.selection.start == 5 && state.value[4] == "1"
|
|
41010
|
+
? symbol >= "0" && symbol <= "2"
|
|
41011
|
+
: state.selection.start == 7 && state.value[6] == "0"
|
|
41012
|
+
? symbol >= "1" && symbol <= "9"
|
|
41013
|
+
: state.selection.start == 7 && ((state.value[6] == "2" && daysInMonth < 30) || state.value[6] == "3")
|
|
41014
|
+
? symbol >= "0" && symbol <= daysInMonth.toString().substring(1)
|
|
41015
|
+
: state.selection.start < 8 && symbol >= "0" && symbol <= "9";
|
|
41016
|
+
}
|
|
41017
|
+
}
|
|
41018
|
+
Base_1.register("YYYY-mm-dd", () => new Handler("-"));
|
|
41019
|
+
//# sourceMappingURL=ymd.js.map
|
|
41020
|
+
});
|
|
41021
|
+
|
|
41022
|
+
const ymd$1 = /*@__PURE__*/getDefaultExportFromCjs(ymd);
|
|
40844
41023
|
|
|
40845
41024
|
var date = createCommonjsModule(function (module, exports) {
|
|
40846
41025
|
"use strict";
|
|
40847
41026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40848
|
-
exports.formatDate = void 0;
|
|
40849
41027
|
|
|
40850
41028
|
|
|
40851
41029
|
|
|
41030
|
+
//# sourceMappingURL=index.js.map
|
|
41031
|
+
});
|
|
41032
|
+
|
|
41033
|
+
const index$2 = /*@__PURE__*/getDefaultExportFromCjs(date);
|
|
41034
|
+
|
|
41035
|
+
var dateTime = createCommonjsModule(function (module, exports) {
|
|
41036
|
+
"use strict";
|
|
41037
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41038
|
+
exports.formatDate = void 0;
|
|
41039
|
+
|
|
40852
41040
|
|
|
40853
41041
|
class Handler {
|
|
40854
|
-
constructor(formatting) {
|
|
40855
|
-
this.formatting = DateFormat_1.DateFormat.is(formatting) ? formatting : DateFormat_1.DateFormat.fromLocale(formatting);
|
|
40856
|
-
this.locale = dist$3.Locale.is(formatting)
|
|
40857
|
-
? formatting
|
|
40858
|
-
: DateFormat_1.DateFormat.is(formatting)
|
|
40859
|
-
? DateFormat_1.DateFormat.toLocale(formatting)
|
|
40860
|
-
: undefined;
|
|
40861
|
-
}
|
|
40862
41042
|
toString(data) {
|
|
40863
|
-
return typeof data
|
|
41043
|
+
return typeof data == "string" ? data : "";
|
|
40864
41044
|
}
|
|
40865
41045
|
fromString(value) {
|
|
40866
|
-
let result;
|
|
40867
|
-
|
|
40868
|
-
|
|
40869
|
-
|
|
40870
|
-
|
|
40871
|
-
|
|
40872
|
-
|
|
40873
|
-
|
|
40874
|
-
break;
|
|
40875
|
-
default:
|
|
40876
|
-
result = value;
|
|
40877
|
-
break;
|
|
40878
|
-
}
|
|
40879
|
-
return dist$3.Date.is(result) ? result : undefined;
|
|
41046
|
+
let result = value.replace(" ", "T");
|
|
41047
|
+
const fillerDate = "0000-01-01T00:00:00.000Z";
|
|
41048
|
+
if (result === null || result === void 0 ? void 0 : result.match(/-\d$/))
|
|
41049
|
+
result = result.substring(0, result.length - 1) + "0" + result.substring(result.length - 1, result.length);
|
|
41050
|
+
result = !result.match(/^\d{4}-(0[1-9]|1[012])/)
|
|
41051
|
+
? undefined
|
|
41052
|
+
: result + fillerDate.substring(result.length, fillerDate.length);
|
|
41053
|
+
return dist$3.DateTime.is(result) ? result : undefined;
|
|
40880
41054
|
}
|
|
40881
41055
|
format(unformated) {
|
|
40882
|
-
let result;
|
|
40883
|
-
|
|
40884
|
-
|
|
40885
|
-
|
|
40886
|
-
|
|
40887
|
-
|
|
40888
|
-
|
|
40889
|
-
|
|
40890
|
-
|
|
40891
|
-
|
|
40892
|
-
|
|
40893
|
-
|
|
40894
|
-
|
|
40895
|
-
|
|
40896
|
-
|
|
40897
|
-
|
|
41056
|
+
let result = formatDate(unformated);
|
|
41057
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))
|
|
41058
|
+
result = result.insert(10, " ");
|
|
41059
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))
|
|
41060
|
+
result = result.replace(11, 12, "23:");
|
|
41061
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))
|
|
41062
|
+
result = result.insert(11, "23:");
|
|
41063
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))
|
|
41064
|
+
result = result.insert(11, "23:5");
|
|
41065
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))
|
|
41066
|
+
result = result.replace(10, 13, "00:");
|
|
41067
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))
|
|
41068
|
+
result = result.insert(12, "3:");
|
|
41069
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))
|
|
41070
|
+
result = result.insert(12, "3:5").append(":");
|
|
41071
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))
|
|
41072
|
+
result = result.insert(13, ":");
|
|
41073
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))
|
|
41074
|
+
result = result.insert(14, "5");
|
|
41075
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))
|
|
41076
|
+
result = result.insert(16, ":");
|
|
41077
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))
|
|
41078
|
+
result = result.insert(17, "5");
|
|
41079
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 19], pattern: /^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/ });
|
|
40898
41080
|
}
|
|
40899
41081
|
unformat(formated) {
|
|
40900
41082
|
return formated;
|
|
40901
41083
|
}
|
|
40902
41084
|
allowed(symbol, state) {
|
|
40903
|
-
|
|
40904
|
-
|
|
41085
|
+
return (state.value.length < 19 &&
|
|
41086
|
+
((symbol >= "0" && symbol <= "9") || symbol == "-" || symbol == ":" || symbol == "." || symbol == " "));
|
|
40905
41087
|
}
|
|
40906
41088
|
}
|
|
40907
|
-
base.add("date", (
|
|
41089
|
+
base.add("date-time", () => new Handler());
|
|
40908
41090
|
function formatDate(unformated, format) {
|
|
40909
41091
|
let result = unformated;
|
|
40910
41092
|
switch (format) {
|
|
@@ -40935,7 +41117,7 @@ function formatDate(unformated, format) {
|
|
|
40935
41117
|
break;
|
|
40936
41118
|
default:
|
|
40937
41119
|
if (unformated.value.length == 10) {
|
|
40938
|
-
if (!validDate(result.value))
|
|
41120
|
+
if (!validDate(result.value)) {
|
|
40939
41121
|
result = result.replace(0, 10, validDate(result.value.substring(0, 8) + "31")
|
|
40940
41122
|
? result.value.substring(0, 8) + "31"
|
|
40941
41123
|
: validDate(result.value.substring(0, 8) + "30")
|
|
@@ -40945,7 +41127,9 @@ function formatDate(unformated, format) {
|
|
|
40945
41127
|
: validDate(result.value.substring(0, 8) + "28")
|
|
40946
41128
|
? result.value.substring(0, 8) + "28"
|
|
40947
41129
|
: result.value);
|
|
40948
|
-
|
|
41130
|
+
break;
|
|
41131
|
+
}
|
|
41132
|
+
return unformated;
|
|
40949
41133
|
}
|
|
40950
41134
|
}
|
|
40951
41135
|
return result;
|
|
@@ -40955,29 +41139,24 @@ function validDate(date, format) {
|
|
|
40955
41139
|
let year;
|
|
40956
41140
|
let month;
|
|
40957
41141
|
let day;
|
|
40958
|
-
let result;
|
|
40959
41142
|
switch (format) {
|
|
40960
41143
|
case "dd/mm/YYYY":
|
|
40961
41144
|
case "dd.mm.YYYY":
|
|
40962
41145
|
year = parseInt(date.substring(6, 10));
|
|
40963
41146
|
month = parseInt(date.substring(3, 5));
|
|
40964
41147
|
day = parseInt(date.substring(0, 2));
|
|
40965
|
-
|
|
40966
|
-
break;
|
|
41148
|
+
return year && month && day ? day > 0 && daysPerMonth(year, month) >= day : false;
|
|
40967
41149
|
case "mm/dd/YYYY":
|
|
40968
41150
|
year = parseInt(date.substring(6, 10));
|
|
40969
41151
|
month = parseInt(date.substring(0, 2));
|
|
40970
41152
|
day = parseInt(date.substring(3, 5));
|
|
40971
|
-
|
|
40972
|
-
break;
|
|
41153
|
+
return year && month && day ? day > 0 && daysPerMonth(year, month) >= day : false;
|
|
40973
41154
|
default:
|
|
40974
41155
|
year = parseInt(date.substring(0, 4));
|
|
40975
41156
|
month = parseInt(date.substring(5, 7));
|
|
40976
41157
|
day = parseInt(date.substring(8, 10));
|
|
40977
|
-
|
|
40978
|
-
break;
|
|
41158
|
+
return year && month && day ? day > 0 && daysPerMonth(year, month) >= day : false;
|
|
40979
41159
|
}
|
|
40980
|
-
return result;
|
|
40981
41160
|
}
|
|
40982
41161
|
function daysPerMonth(year, month) {
|
|
40983
41162
|
let result;
|
|
@@ -41004,66 +41183,6 @@ function daysPerMonth(year, month) {
|
|
|
41004
41183
|
}
|
|
41005
41184
|
return result;
|
|
41006
41185
|
}
|
|
41007
|
-
//# sourceMappingURL=index.js.map
|
|
41008
|
-
});
|
|
41009
|
-
|
|
41010
|
-
const index$2 = /*@__PURE__*/getDefaultExportFromCjs(date);
|
|
41011
|
-
|
|
41012
|
-
var dateTime = createCommonjsModule(function (module, exports) {
|
|
41013
|
-
"use strict";
|
|
41014
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41015
|
-
|
|
41016
|
-
|
|
41017
|
-
|
|
41018
|
-
class Handler {
|
|
41019
|
-
toString(data) {
|
|
41020
|
-
return typeof data == "string" ? data : "";
|
|
41021
|
-
}
|
|
41022
|
-
fromString(value) {
|
|
41023
|
-
let result = value.replace(" ", "T");
|
|
41024
|
-
const fillerDate = "0000-01-01T00:00:00.000Z";
|
|
41025
|
-
if (result === null || result === void 0 ? void 0 : result.match(/-\d$/))
|
|
41026
|
-
result = result.substring(0, result.length - 1) + "0" + result.substring(result.length - 1, result.length);
|
|
41027
|
-
result = !result.match(/^\d{4}-(0[1-9]|1[012])/)
|
|
41028
|
-
? undefined
|
|
41029
|
-
: result + fillerDate.substring(result.length, fillerDate.length);
|
|
41030
|
-
return dist$3.DateTime.is(result) ? result : undefined;
|
|
41031
|
-
}
|
|
41032
|
-
format(unformated) {
|
|
41033
|
-
let result = date.formatDate(unformated);
|
|
41034
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))
|
|
41035
|
-
result = result.insert(10, " ");
|
|
41036
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))
|
|
41037
|
-
result = result.replace(11, 12, "23:");
|
|
41038
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))
|
|
41039
|
-
result = result.insert(11, "23:");
|
|
41040
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))
|
|
41041
|
-
result = result.insert(11, "23:5");
|
|
41042
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))
|
|
41043
|
-
result = result.replace(10, 13, "00:");
|
|
41044
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))
|
|
41045
|
-
result = result.insert(12, "3:");
|
|
41046
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))
|
|
41047
|
-
result = result.insert(12, "3:5").append(":");
|
|
41048
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))
|
|
41049
|
-
result = result.insert(13, ":");
|
|
41050
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))
|
|
41051
|
-
result = result.insert(14, "5");
|
|
41052
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))
|
|
41053
|
-
result = result.insert(16, ":");
|
|
41054
|
-
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))
|
|
41055
|
-
result = result.insert(17, "5");
|
|
41056
|
-
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 19], pattern: /^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/ });
|
|
41057
|
-
}
|
|
41058
|
-
unformat(formated) {
|
|
41059
|
-
return formated;
|
|
41060
|
-
}
|
|
41061
|
-
allowed(symbol, state) {
|
|
41062
|
-
return (state.value.length < 19 &&
|
|
41063
|
-
((symbol >= "0" && symbol <= "9") || symbol == "-" || symbol == ":" || symbol == "." || symbol == " "));
|
|
41064
|
-
}
|
|
41065
|
-
}
|
|
41066
|
-
base.add("date-time", () => new Handler());
|
|
41067
41186
|
//# sourceMappingURL=date-time.js.map
|
|
41068
41187
|
});
|
|
41069
41188
|
|
|
@@ -41948,6 +42067,16 @@ let SmoothlyFrame$1 = class extends HTMLElement {
|
|
|
41948
42067
|
static get style() { return styleCss$y; }
|
|
41949
42068
|
};
|
|
41950
42069
|
|
|
42070
|
+
let SmoothlyGoogleFont$1 = class extends HTMLElement {
|
|
42071
|
+
constructor() {
|
|
42072
|
+
super();
|
|
42073
|
+
this.__registerHost();
|
|
42074
|
+
}
|
|
42075
|
+
render() {
|
|
42076
|
+
return GoogleFont.is(this.value) ? h("style", null, GoogleFont.styleImportString(this.value)) : "";
|
|
42077
|
+
}
|
|
42078
|
+
};
|
|
42079
|
+
|
|
41951
42080
|
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}";
|
|
41952
42081
|
|
|
41953
42082
|
let SmoothlyIcon$1 = class extends HTMLElement {
|
|
@@ -42479,7 +42608,7 @@ let SmoothlyIconDemo$1 = class extends HTMLElement {
|
|
|
42479
42608
|
static get style() { return styleCss$w; }
|
|
42480
42609
|
};
|
|
42481
42610
|
|
|
42482
|
-
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}";
|
|
42611
|
+
const styleCss$v = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-text-tint));opacity:0.8;user-select:none;cursor:inherit;transition:font-size 0.1s;transition-timing-function:ease}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;width:calc(100% - 0.4em);background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+smoothly-icon.sc-smoothly-input{display:block}.has-value.sc-smoothly-input-h>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}.sc-smoothly-input-h:focus-within>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 30px unset inset !important;-webkit-box-shadow:0 0 0 30px unset inset !important}input.sc-smoothly-input:-webkit-autofill{-webkit-text-fill-color:unset !important}input.sc-smoothly-input:-internal-autofill-previewed,input.sc-smoothly-input:-internal-autofill-selected,textarea.sc-smoothly-input:-internal-autofill-previewed,textarea.sc-smoothly-input:-internal-autofill-selected,select.sc-smoothly-input:-internal-autofill-previewed,select.sc-smoothly-input:-internal-autofill-selected{background-color:none !important;background-image:none !important;color:unset !important}";
|
|
42483
42612
|
|
|
42484
42613
|
let SmoothlyInput$1 = class extends HTMLElement {
|
|
42485
42614
|
constructor() {
|
|
@@ -42632,8 +42761,8 @@ let SmoothlyInput$1 = class extends HTMLElement {
|
|
|
42632
42761
|
this.value = this.lastValue = this.formatter.fromString(this.formatter.unformat(dist.StateEditor.copy(Object.assign({}, this.state))).value);
|
|
42633
42762
|
}
|
|
42634
42763
|
render() {
|
|
42635
|
-
var _a;
|
|
42636
|
-
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != "" } }, h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? this.state.autocomplete : "off", disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }), h("label", { htmlFor: this.name }, h("slot", null))));
|
|
42764
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
42765
|
+
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" } }, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }), h("label", { htmlFor: this.name }, h("slot", null))));
|
|
42637
42766
|
}
|
|
42638
42767
|
static get watchers() { return {
|
|
42639
42768
|
"value": ["valueWatcher"]
|
|
@@ -42656,6 +42785,10 @@ let InputDate = class extends HTMLElement {
|
|
|
42656
42785
|
onStart(next) {
|
|
42657
42786
|
this.valueChanged.emit(next);
|
|
42658
42787
|
}
|
|
42788
|
+
dateSetHandler(e) {
|
|
42789
|
+
this.open = false;
|
|
42790
|
+
e.stopPropagation();
|
|
42791
|
+
}
|
|
42659
42792
|
render() {
|
|
42660
42793
|
var _a;
|
|
42661
42794
|
return [
|
|
@@ -42685,16 +42818,18 @@ let InputDateRange = class extends HTMLElement {
|
|
|
42685
42818
|
onValue(next) {
|
|
42686
42819
|
this.valueChanged.emit(next);
|
|
42687
42820
|
}
|
|
42688
|
-
onClose(open) {
|
|
42689
|
-
if (open == false && dist$3.Date.is(this.start) && dist$3.Date.is(this.end))
|
|
42690
|
-
this.dateRangeSelected.emit({ start: this.start, end: this.end });
|
|
42691
|
-
}
|
|
42692
42821
|
onStartChanged(event) {
|
|
42693
42822
|
this.start = event.detail;
|
|
42694
42823
|
}
|
|
42695
42824
|
onEndChanged(event) {
|
|
42696
42825
|
this.end = event.detail;
|
|
42697
42826
|
}
|
|
42827
|
+
onDateRangeSet(event) {
|
|
42828
|
+
console.log("dateRangeSet", event.detail);
|
|
42829
|
+
this.open = false;
|
|
42830
|
+
event.stopPropagation();
|
|
42831
|
+
dist$3.DateRange.is(event.detail) && this.dateRangeSelected.emit(event.detail);
|
|
42832
|
+
}
|
|
42698
42833
|
render() {
|
|
42699
42834
|
var _a;
|
|
42700
42835
|
return [
|
|
@@ -42703,14 +42838,11 @@ let InputDateRange = class extends HTMLElement {
|
|
|
42703
42838
|
this.open ? (h("nav", null, h("div", { class: "arrow" }), h("smoothly-calendar", { doubleInput: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : dist$3.Date.now(), onValueChanged: event => {
|
|
42704
42839
|
this.value = event.detail;
|
|
42705
42840
|
event.stopPropagation();
|
|
42706
|
-
}, max: this.max, min: this.min }))) : ([]),
|
|
42841
|
+
}, start: this.start, end: this.end, max: this.max, min: this.min }))) : ([]),
|
|
42707
42842
|
];
|
|
42708
42843
|
}
|
|
42709
42844
|
static get watchers() { return {
|
|
42710
|
-
"value": ["onValue"]
|
|
42711
|
-
"open": ["onClose"],
|
|
42712
|
-
"start": ["onClose"],
|
|
42713
|
-
"end": ["onClose"]
|
|
42845
|
+
"value": ["onValue"]
|
|
42714
42846
|
}; }
|
|
42715
42847
|
static get style() { return styleCss$t; }
|
|
42716
42848
|
};
|
|
@@ -43383,6 +43515,7 @@ let SmoothlySelectDemo$1 = class extends HTMLElement {
|
|
|
43383
43515
|
h("smoothly-select", { identifier: "currency" }, this.currencies.map(option => this.currency == option ? (h("option", { value: option, selected: true }, option)) : (h("option", { value: option }, option)))),
|
|
43384
43516
|
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"))),
|
|
43385
43517
|
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")),
|
|
43518
|
+
h("smoothly-input-date", null, "Date"),
|
|
43386
43519
|
h("smoothly-input-date", { value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"),
|
|
43387
43520
|
h("smoothly-input-date-range", { start: "2021-10-28", end: "2021-11-27", min: "2021-10-10", max: "2021-12-30" }),
|
|
43388
43521
|
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")),
|
|
@@ -43960,7 +44093,7 @@ const SmoothlyAccordion = /*@__PURE__*/proxyCustomElement(SmoothlyAccordion$1, [
|
|
|
43960
44093
|
const SmoothlyAccordionItem = /*@__PURE__*/proxyCustomElement(SmoothlyAccordionItem$1, [6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]);
|
|
43961
44094
|
const SmoothlyApp = /*@__PURE__*/proxyCustomElement(SmoothlyApp$1, [4,"smoothly-app",{"color":[1]}]);
|
|
43962
44095
|
const SmoothlyAppDemo = /*@__PURE__*/proxyCustomElement(SmoothlyAppDemo$1, [0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]);
|
|
43963
|
-
const SmoothlyCalendar = /*@__PURE__*/proxyCustomElement(Calendar, [2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"]}]);
|
|
44096
|
+
const SmoothlyCalendar = /*@__PURE__*/proxyCustomElement(Calendar, [2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}]);
|
|
43964
44097
|
const SmoothlyCheckbox = /*@__PURE__*/proxyCustomElement(SmoothlyCheckbox$1, [2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]);
|
|
43965
44098
|
const SmoothlyDialog = /*@__PURE__*/proxyCustomElement(SmoothlyDialog$1, [6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]);
|
|
43966
44099
|
const SmoothlyDialogDemo = /*@__PURE__*/proxyCustomElement(SmoothlyDialogDemo$1, [0,"smoothly-dialog-demo"]);
|
|
@@ -43969,11 +44102,12 @@ const SmoothlyDisplayAmount = /*@__PURE__*/proxyCustomElement(SmoothlyDisplayAmo
|
|
|
43969
44102
|
const SmoothlyDisplayDateTime = /*@__PURE__*/proxyCustomElement(SmoothlyDisplayDateTime$1, [2,"smoothly-display-date-time",{"datetime":[1]}]);
|
|
43970
44103
|
const SmoothlyDisplayDemo = /*@__PURE__*/proxyCustomElement(SmoothlyDisplayDemo$1, [0,"smoothly-display-demo"]);
|
|
43971
44104
|
const SmoothlyFrame = /*@__PURE__*/proxyCustomElement(SmoothlyFrame$1, [2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1]}]);
|
|
44105
|
+
const SmoothlyGoogleFont = /*@__PURE__*/proxyCustomElement(SmoothlyGoogleFont$1, [2,"smoothly-google-font",{"value":[1]}]);
|
|
43972
44106
|
const SmoothlyIcon = /*@__PURE__*/proxyCustomElement(SmoothlyIcon$1, [2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]);
|
|
43973
44107
|
const SmoothlyIconDemo = /*@__PURE__*/proxyCustomElement(SmoothlyIconDemo$1, [2,"smoothly-icon-demo"]);
|
|
43974
44108
|
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]}]);
|
|
43975
|
-
const SmoothlyInputDate = /*@__PURE__*/proxyCustomElement(InputDate, [6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025]}]);
|
|
43976
|
-
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"]]]);
|
|
44109
|
+
const SmoothlyInputDate = /*@__PURE__*/proxyCustomElement(InputDate, [6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025]},[[0,"dateSet","dateSetHandler"]]]);
|
|
44110
|
+
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"],[0,"dateRangeSet","onDateRangeSet"]]]);
|
|
43977
44111
|
const SmoothlyInputDemo = /*@__PURE__*/proxyCustomElement(SmoothlyInputDemo$1, [0,"smoothly-input-demo"]);
|
|
43978
44112
|
const SmoothlyInputMonth = /*@__PURE__*/proxyCustomElement(MonthSelector, [2,"smoothly-input-month",{"value":[1025]}]);
|
|
43979
44113
|
const SmoothlyItem = /*@__PURE__*/proxyCustomElement(Item, [6,"smoothly-item",{"value":[8],"selected":[1540]},[[0,"click","onClick"]]]);
|
|
@@ -44023,6 +44157,7 @@ const defineCustomElements = (opts) => {
|
|
|
44023
44157
|
SmoothlyDisplayDateTime,
|
|
44024
44158
|
SmoothlyDisplayDemo,
|
|
44025
44159
|
SmoothlyFrame,
|
|
44160
|
+
SmoothlyGoogleFont,
|
|
44026
44161
|
SmoothlyIcon,
|
|
44027
44162
|
SmoothlyIconDemo,
|
|
44028
44163
|
SmoothlyInput,
|
|
@@ -44069,4 +44204,4 @@ const defineCustomElements = (opts) => {
|
|
|
44069
44204
|
}
|
|
44070
44205
|
};
|
|
44071
44206
|
|
|
44072
|
-
export { App, ClientIdentifier, Cosmetic, 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 };
|
|
44207
|
+
export { App, ClientIdentifier, Cosmetic, GoogleFont, Message, Notice, SmoothlyAccordion, SmoothlyAccordionItem, SmoothlyApp, SmoothlyAppDemo, SmoothlyCalendar, SmoothlyCheckbox, SmoothlyDialog, SmoothlyDialogDemo, SmoothlyDisplay, SmoothlyDisplayAmount, SmoothlyDisplayDateTime, SmoothlyDisplayDemo, SmoothlyFrame, SmoothlyGoogleFont, 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 };
|