smoothly 1.0.1-alpha.3 → 1.0.1-alpha.5
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/{Submit-02056bd9.js → Submit-4b88490a.js} +15 -11
- package/dist/cjs/Submit-4b88490a.js.map +1 -0
- package/dist/cjs/{TimeZone-016ac7b0.js → TimeZone-312b7972.js} +13 -5
- package/dist/cjs/TimeZone-312b7972.js.map +1 -0
- package/dist/cjs/{getLanguage-49a534df.js → getLanguage-87f0b1f4.js} +643 -710
- package/dist/cjs/getLanguage-87f0b1f4.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/smoothly-app_81.cjs.entry.js +421 -223
- package/dist/cjs/smoothly-app_81.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-country.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/table/cell/style.css +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +3 -3
- package/dist/collection/components/table/header/style.css +1 -1
- package/dist/collection/model/Message.js +9 -5
- package/dist/collection/model/Message.js.map +1 -1
- package/dist/collection/model/Trigger.js +5 -3
- package/dist/collection/model/Trigger.js.map +1 -1
- package/dist/custom-elements/index.js +1096 -951
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{Submit-959d713d.js → Submit-57fba2f8.js} +15 -9
- package/dist/esm/Submit-57fba2f8.js.map +1 -0
- package/dist/esm/{TimeZone-c8df4905.js → TimeZone-0e14af9c.js} +13 -5
- package/dist/esm/TimeZone-0e14af9c.js.map +1 -0
- package/dist/esm/{getLanguage-1e9ec036.js → getLanguage-036fcf54.js} +643 -710
- package/dist/esm/getLanguage-036fcf54.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/smoothly-app_81.entry.js +421 -223
- package/dist/esm/smoothly-app_81.entry.js.map +1 -1
- package/dist/esm/smoothly-checkbox.entry.js +1 -1
- package/dist/esm/smoothly-checkbox.entry.js.map +1 -1
- package/dist/esm/smoothly-country.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/index.esm.js +1 -1
- package/dist/smoothly/p-332330b7.entry.js +2 -0
- package/dist/smoothly/p-332330b7.entry.js.map +1 -0
- package/dist/smoothly/{p-ed11e814.entry.js → p-3e5ee006.entry.js} +2 -2
- package/dist/smoothly/{p-f125610c.entry.js → p-522b039a.entry.js} +2 -2
- package/dist/smoothly/p-522b039a.entry.js.map +1 -0
- package/dist/smoothly/{p-fa664317.js → p-589d4e98.js} +2 -2
- package/dist/smoothly/p-589d4e98.js.map +1 -0
- package/dist/smoothly/{p-6e9aca2e.entry.js → p-935c5f16.entry.js} +2 -2
- package/dist/smoothly/p-97e63cb9.js +2 -0
- package/dist/smoothly/{p-051d2b23.js.map → p-97e63cb9.js.map} +1 -1
- package/dist/smoothly/p-d6e445fc.js +2 -0
- package/dist/smoothly/p-d6e445fc.js.map +1 -0
- package/dist/smoothly/{p-f0720fed.entry.js → p-d8028c80.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/model/Message.d.ts +5 -5
- package/dist/types/model/Trigger.d.ts +2 -2
- package/package.json +18 -17
- package/dist/cjs/Submit-02056bd9.js.map +0 -1
- package/dist/cjs/TimeZone-016ac7b0.js.map +0 -1
- package/dist/cjs/getLanguage-49a534df.js.map +0 -1
- package/dist/esm/Submit-959d713d.js.map +0 -1
- package/dist/esm/TimeZone-c8df4905.js.map +0 -1
- package/dist/esm/getLanguage-1e9ec036.js.map +0 -1
- package/dist/smoothly/p-051d2b23.js +0 -2
- package/dist/smoothly/p-312ef066.js +0 -2
- package/dist/smoothly/p-312ef066.js.map +0 -1
- package/dist/smoothly/p-492e4f58.entry.js +0 -2
- package/dist/smoothly/p-492e4f58.entry.js.map +0 -1
- package/dist/smoothly/p-f125610c.entry.js.map +0 -1
- package/dist/smoothly/p-fa664317.js.map +0 -1
- /package/dist/smoothly/{p-ed11e814.entry.js.map → p-3e5ee006.entry.js.map} +0 -0
- /package/dist/smoothly/{p-6e9aca2e.entry.js.map → p-935c5f16.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f0720fed.entry.js.map → p-d8028c80.entry.js.map} +0 -0
|
@@ -457,11 +457,13 @@ exports.Icon = void 0;
|
|
|
457
457
|
Icon.add = add;
|
|
458
458
|
})(exports.Icon || (exports.Icon = {}));
|
|
459
459
|
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
exports.Message = void 0;
|
|
461
|
+
(function (Message) {
|
|
462
|
+
function is(value) {
|
|
462
463
|
return typeof value == "object" && typeof value.destination == "string" && value.content != undefined;
|
|
463
464
|
}
|
|
464
|
-
|
|
465
|
+
Message.is = is;
|
|
466
|
+
function send(message, content, context) {
|
|
465
467
|
if (Message.is(message) && context == undefined) {
|
|
466
468
|
context = content;
|
|
467
469
|
if (!context)
|
|
@@ -477,7 +479,8 @@ class Message {
|
|
|
477
479
|
Message.send({ destination: message, content }, context);
|
|
478
480
|
}
|
|
479
481
|
}
|
|
480
|
-
|
|
482
|
+
Message.send = send;
|
|
483
|
+
function listen(origin, handle, context) {
|
|
481
484
|
const splitted = origin.split("#", 2);
|
|
482
485
|
let destination = "";
|
|
483
486
|
if (splitted.length == 2) {
|
|
@@ -492,13 +495,16 @@ class Message {
|
|
|
492
495
|
handle(message.destination, message.content);
|
|
493
496
|
});
|
|
494
497
|
}
|
|
495
|
-
|
|
498
|
+
Message.listen = listen;
|
|
499
|
+
})(exports.Message || (exports.Message = {}));
|
|
496
500
|
|
|
497
|
-
|
|
498
|
-
|
|
501
|
+
exports.Trigger = void 0;
|
|
502
|
+
(function (Trigger) {
|
|
503
|
+
function is(value) {
|
|
499
504
|
return typeof value == "object" && typeof value.name == "string";
|
|
500
505
|
}
|
|
501
|
-
|
|
506
|
+
Trigger.is = is;
|
|
507
|
+
})(exports.Trigger || (exports.Trigger = {}));
|
|
502
508
|
|
|
503
509
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
504
510
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -601,8 +607,6 @@ exports.Submit = void 0;
|
|
|
601
607
|
})(exports.Submit || (exports.Submit = {}));
|
|
602
608
|
|
|
603
609
|
exports.Listenable = Listenable;
|
|
604
|
-
exports.Message = Message;
|
|
605
|
-
exports.Trigger = Trigger;
|
|
606
610
|
exports.Type = Type;
|
|
607
611
|
exports.boolean = boolean;
|
|
608
612
|
exports.islyFunction = islyFunction;
|
|
@@ -611,4 +615,4 @@ exports.record = record;
|
|
|
611
615
|
exports.string = string;
|
|
612
616
|
exports.union = union;
|
|
613
617
|
|
|
614
|
-
//# sourceMappingURL=Submit-
|
|
618
|
+
//# sourceMappingURL=Submit-4b88490a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"Submit-4b88490a.js","mappings":";;AAAO,MAAM,IAAI,CAAC;AAClB,IAAI,IAAI,IAAI,GAAG;AACf,QAAQ,OAAO,OAAO,IAAI,CAAC,KAAK,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;AAC3E,KAAK;AACL,IAAI,IAAI,SAAS,GAAG;AACpB,QAAQ,OAAO,OAAO,IAAI,CAAC,UAAU,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;AAC1F,KAAK;AACL,IAAI,QAAQ,GAAG;AACf,QAAQ,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;AACtC,KAAK;AACL,IAAI,QAAQ,GAAG;AACf,QAAQ,OAAO,I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,CAAC,IAAI;GAChB,CAAC,CAAA;EACW,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;EACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EATgBQ,cAAM,KAANA,cAAM;;;;;;;;;;;","names":["criteriaFunctions","Color","isly.string","Icon","Message","Trigger","Data","isly.union","isly.number","isly.boolean","isly.fromIs","isly.undefined","isly.record","isly.lazy","Submit","isly.object","isly.function"],"sources":["./node_modules/isly/dist/mjs/Type.js","./node_modules/isly/dist/mjs/boolean.js","./node_modules/isly/dist/mjs/lazy.js","./node_modules/isly/dist/mjs/object.js","./node_modules/isly/dist/mjs/string.js","./node_modules/isly/dist/mjs/Flaw.js","./node_modules/isly/dist/mjs/fromIs.js","./node_modules/isly/dist/mjs/function.js","./node_modules/isly/dist/mjs/number.js","./node_modules/isly/dist/mjs/record.js","./node_modules/isly/dist/mjs/union.js","./node_modules/isly/dist/mjs/undefined.js","./src/model/Color.ts","./src/model/Icon.ts","./src/model/Message.ts","./src/model/Trigger.ts","./src/model/Listenable.ts","./src/model/Data.ts","./src/model/Submit.ts"],"sourcesContent":["export class Type {\n get name() {\n return typeof this._name == \"function\" ? this._name() : this._name;\n }\n get condition() {\n return typeof this._condition == \"function\" ? this._condition() : this._condition;\n }\n optional() {\n return new IslyOptional(this);\n }\n readonly() {\n return new IslyReadonly(this);\n }\n array(...options) {\n return array(this, ...options);\n }\n constructor(_name, _condition) {\n this._name = _name;\n this._condition = _condition;\n /**\n * Return the value if the value is valid for the type, otherwise undefined.\n * For objects, unknown properties are filtered.\n *\n * Eg: isly.number().value(NaN) returns undefined\n */\n this.get = value => (this.is(value) ? this.getValue(value) : undefined);\n /**\n * Return a flaw object, describing the flaws of the value compared to expected type.\n *\n * If it is a correct value, according to the type, it returns a Flaw with the message `{message:\"This type is correct.\", isFlaw: false, ... }`\n *\n * Implemented as a closure.\n */\n this.flaw = value => {\n return this.is(value)\n ? {\n type: this.name,\n ...(this.condition ? { condition: this.condition } : undefined),\n isFlaw: false,\n message: \"This type is correct.\",\n }\n : {\n ...(this.condition ? { condition: this.condition } : undefined),\n ...this.createFlaw(value),\n type: this.name,\n };\n };\n }\n getValue(value) {\n return value;\n }\n /**\n * Override this to create custom Flaws.\n * Not necessary for simple types.\n */\n createFlaw(value) {\n return {};\n }\n /**\n * Used by types that use a backend type.\n */\n createFlawFromType(backend, value) {\n return \"createFlaw\" in backend && typeof backend.createFlaw == \"function\"\n ? backend.createFlaw(value)\n : backend.flaw(value);\n }\n}\nclass IslyOptional extends Type {\n constructor(backend) {\n super(() => backend.name + \" | undefined\", backend.condition);\n this.backend = backend;\n this.is = (value => value == undefined || this.backend.is(value));\n }\n createFlaw(value) {\n return this.createFlawFromType(this.backend, value);\n }\n}\nclass IslyReadonly extends Type {\n constructor(backend) {\n super(() => `Readonly<${backend.name}>`, backend.condition);\n this.backend = backend;\n this.is = (value => value == undefined || this.backend.is(value));\n }\n createFlaw(value) {\n return this.createFlawFromType(this.backend, value);\n }\n}\nexport function array(itemType, ...options) {\n return new IslyArray(itemType, options);\n}\nconst criteriaFunctions = {\n length: {\n is: (value, optionValue) => value.length == optionValue,\n condition: optionValue => `length == ${optionValue}`,\n },\n minLength: {\n is: (value, optionValue) => value.length >= optionValue,\n condition: optionValue => `minLength == ${optionValue}`,\n },\n maxLength: {\n is: (value, optionValue) => value.length <= optionValue,\n condition: optionValue => `maxLength == ${optionValue}`,\n },\n};\nexport class IslyArray extends Type {\n constructor(itemType, options) {\n super(() => this.baseName() + \"[]\", options.length > 0 ? options.map(c => criteriaFunctions[c.criteria].condition(c.value)).join(\" & \") : undefined);\n this.itemType = itemType;\n this.options = options;\n this.is = (value => globalThis.Array.isArray(value) &&\n this.options.every(option => criteriaFunctions[option.criteria].is(value, option.value)) &&\n value.every(item => this.itemType.is(item)));\n }\n baseName() {\n return this.itemType.name.includes(\" \") ? `(${this.itemType.name})` : this.itemType.name;\n }\n itemName(index) {\n return `${this.baseName()}[${index}]`;\n }\n createFlaw(value) {\n const flaws = (globalThis.Array.isArray(value) &&\n value.flatMap((item, index) => {\n const subFlaw = this.itemType.flaw(item);\n return subFlaw.isFlaw ?? true ? [{ ...subFlaw, type: this.itemName(index) }] : [];\n })) ||\n [];\n return {\n ...(flaws.length > 0 ? { flaws } : undefined),\n };\n }\n getValue(value) {\n return value.map(item => this.itemType.get(item));\n }\n}\n//# sourceMappingURL=Type.js.map","import { Type } from \"./Type\";\nclass IslyBoolean extends Type {\n constructor(booleanValue) {\n super(booleanValue == undefined ? \"boolean\" : booleanValue ? \"true\" : \"false\");\n this.booleanValue = booleanValue;\n this.is = (value => typeof value == \"boolean\" && (this.booleanValue == undefined || value == this.booleanValue));\n }\n}\nexport function boolean(booleanValue) {\n return new IslyBoolean(booleanValue);\n}\n//# sourceMappingURL=boolean.js.map","import { Type } from \"./Type\";\nclass IslyLazy extends Type {\n constructor(factory, name) {\n super(name ?? (() => (this.backend ??= factory()).name), () => (this.backend ??= factory()).condition);\n this.factory = factory;\n this.is = (value => (this.backend ??= this.factory()).is(value));\n this.get = value => this.backend.get(value);\n }\n createFlaw(value) {\n return this.createFlawFromType((this.backend ??= this.factory()), value);\n }\n}\n/**\n * Late evaluation of a type\n * Can be used for for recursive types.\n *\n * @param factory\n * @param name Provide a name, to avoid infinite loop if the type i recursive\n * @returns\n */\nexport function lazy(factory, name) {\n return new IslyLazy(factory, name);\n}\n//# sourceMappingURL=lazy.js.map","import { Type } from \"./Type\";\nclass IslyObject extends Type {\n constructor(baseType, properties, name) {\n super(() => name ??\n (this.baseType ? `${this.baseType.name} & ` : \"\") +\n `{${globalThis.Object.entries(this.properties)\n .map(([property, type]) => `${property}: ${type.name}`)\n .join(\", \")}}`);\n this.baseType = baseType;\n this.properties = properties;\n this.is = (value => !!(value &&\n (this.baseType == undefined || this.baseType.is(value)) &&\n typeof value == \"object\" &&\n !globalThis.Array.isArray(value) &&\n globalThis.Object.entries(this.properties).every(([property, type]) => type.is(value[property]))));\n }\n extend(properties, name) {\n return new IslyObject(this, properties, name);\n }\n omit(omits, name) {\n return new IslyObject(this.baseType?.omit(omits), globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter(([key]) => !omits.includes(key))), name ?? `Omit<${this.name}, ${omits.map(key => `\"${String(key)}\"`).join(\" | \")}>`);\n }\n pick(picks, name) {\n return new IslyObject(this.baseType?.pick(picks), globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter(([key]) => picks.includes(key))), name ?? `Pick<${this.name}, ${picks.map(key => `\"${String(key)}\"`).join(\" | \")}>`);\n }\n createFlaw(value) {\n return {\n flaws: [\n this.baseType ? this.baseType.flaw(value)?.flaws ?? [] : [],\n globalThis.Object.entries(this.properties)\n .map(([property, type]) => [property, type.flaw(value?.[property])])\n .map(([property, flaw]) => (flaw?.isFlaw ?? true) && { property, ...flaw })\n .filter(flaw => flaw),\n ]\n .flat()\n .filter(flaw => flaw?.isFlaw ?? true),\n };\n }\n /**\n * get-function on a object returns a object with only specified properties\n */\n getValue(value) {\n const result = this.baseType ? this.baseType.getValue(value) : {};\n if (result)\n for (const [key, type] of globalThis.Object.entries(this.properties))\n if (key in value)\n result[key] = type.get(value[key]);\n return result;\n }\n}\nexport function object(properties, name) {\n return new IslyObject(undefined, properties ?? {}, name);\n}\n//# sourceMappingURL=object.js.map","import { Type } from \"./Type\";\nclass IslyString extends Type {\n constructor(stringCondition) {\n super(typeof stringCondition == \"string\" ? `\"${stringCondition}\"` : \"string\", () => {\n const conditionObject = this.getConditionObject();\n return conditionObject instanceof RegExp\n ? `/${conditionObject.source}/${conditionObject.flags}`\n : globalThis.Object.keys(conditionObject)\n .map(key => `\"${key}\"`)\n .join(\" | \");\n });\n this.stringCondition = stringCondition;\n this.is = (value => {\n const conditionObject = this.getConditionObject();\n return (typeof value == \"string\" &&\n (conditionObject instanceof RegExp\n ? conditionObject.test(value)\n : typeof conditionObject == \"object\"\n ? value in conditionObject //TODO, avoid \"hasOwnProperty toString etc.\"\n : conditionObject));\n });\n }\n getConditionObject() {\n return (this.conditionObject ??= Array.isArray(this.stringCondition)\n ? this.stringCondition.reduce((result, current) => {\n result[current] = true;\n return result;\n }, globalThis.Object.create(null))\n : typeof this.stringCondition == \"string\"\n ? { [this.stringCondition]: true }\n : typeof this.stringCondition == \"object\" // Record or RegExp!\n ? this.stringCondition\n : true);\n }\n}\nexport function string(condition) {\n return new IslyString(condition);\n}\n//# sourceMappingURL=string.js.map","import { boolean } from \"./boolean\";\nimport { lazy } from \"./lazy\";\nimport { object } from \"./object\";\nimport { string } from \"./string\";\nimport { array } from \"./Type\";\nexport var Flaw;\n(function (Flaw) {\n Flaw.type = object({\n message: string().optional(),\n isFlaw: boolean().optional(),\n property: string().optional(),\n type: string(),\n flaws: array(lazy(() => Flaw.type)).optional(),\n condition: string().optional(),\n }, \"Flaw\");\n Flaw.is = Flaw.type.is;\n Flaw.flaw = Flaw.type.flaw;\n})(Flaw || (Flaw = {}));\n//# sourceMappingURL=Flaw.js.map","import { Type } from \"./Type\";\nclass IslyFromIs extends Type {\n constructor(name, isFunction) {\n super(name);\n this.isFunction = isFunction;\n this.is = (value => this.isFunction(value));\n }\n}\nexport function fromIs(name, is) {\n return new IslyFromIs(name, is);\n}\n//# sourceMappingURL=fromIs.js.map","import { Type } from \"./Type\";\n// eslint-disable-next-line @typescript-eslint/ban-types\nclass IslyFunction extends Type {\n constructor() {\n super(\"function\");\n this.is = (value => !!(value && typeof value == \"function\"));\n }\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function islyFunction() {\n return new IslyFunction();\n}\n//# sourceMappingURL=function.js.map","import { Type } from \"./Type\";\nconst criteriaFunctions = {\n positive: {\n is: (value) => value > 0,\n condition: \"> 0\",\n },\n negative: {\n is: (value) => value < 0,\n condition: \"< 0\",\n },\n integer: {\n is: (value) => Number.isInteger(value),\n condition: \"Number.isInteger\",\n },\n};\nfunction fromCriteria(criteria) {\n return /* Eg: criteria == 42 */ typeof criteria == \"number\"\n ? [value => value == criteria, \" == \" + criteria.toString()]\n : // Eg: criteria == [0,1,2]\n ((c) => Array.isArray(c) && c.every(c => typeof c == \"number\"))(criteria)\n ? [value => criteria.map(fromCriteria).some(c => c[0](value)), criteria.join(\" | \")]\n : // Eg: criteria == [\"positive\", \"negative\"]\n ((c) => Array.isArray(c) && c.every(c => typeof c == \"string\" && c in criteriaFunctions))(criteria)\n ? [\n value => criteria.map(fromCriteria).every(c => c[0](value)),\n criteria\n .map(fromCriteria)\n .map(c => c[1])\n .join(\" & \"),\n ]\n : // Eg: criteria == () => true\n typeof criteria === \"function\"\n ? [criteria, \"custom\"]\n : // Eg: criteria == \"positive\"\n criteria in criteriaFunctions\n ? [criteriaFunctions[criteria].is, criteriaFunctions[criteria].condition]\n : // Eg: criteria is unknown\n [() => false, \"Unknown criteria\"];\n}\nclass IslyNumber extends Type {\n constructor(isFunction, condition) {\n super(\"number\", condition);\n this.isFunction = isFunction;\n this.is = (value => typeof value == \"number\" &&\n !Number.isNaN(value - value) && // NaN-NaN==NaN && Infinity-Infinity==NaN && (-Infinity)-(-Infinity)==NaN\n (!this.isFunction || this.isFunction(value)));\n }\n}\n/**\n * NaN, Infinite and -Infinite is not considered to be numbers by this type,\n * since that it is hardly ever desirable when validating input data.\n *\n * @param criteria\n * @returns\n */\nexport function number(criteria) {\n const [isFunction, condition] = criteria == undefined ? [undefined, undefined] : fromCriteria(criteria);\n return new IslyNumber(isFunction, condition);\n}\n//# sourceMappingURL=number.js.map","import { Type } from \"./Type\";\nclass IslyRecord extends Type {\n constructor(keyType, valueType) {\n super(() => `Record<${keyType.name}, ${valueType.name}>`);\n this.keyType = keyType;\n this.valueType = valueType;\n this.is = (value => !!(value &&\n typeof value == \"object\" &&\n !globalThis.Array.isArray(value) &&\n globalThis.Object.entries(value).every(([key, value]) => this.keyType.is(this.keyType.name == \"number\" && `${+key}` == key ? +key : key) && this.valueType.is(value))));\n }\n createFlaw(value) {\n return {\n flaws: value &&\n typeof value == \"object\" &&\n !globalThis.Array.isArray(value) &&\n globalThis.Object.entries(value).flatMap(([key, propertyValue]) => [\n this.keyType.flaw(this.keyType.name == \"number\" && `${+key}` == key ? +key : key),\n this.valueType.flaw(propertyValue),\n ]\n .map((flaw, index) => (flaw.isFlaw ?? true) && { property: key + ` (${[\"key\", \"value\"][index]})`, ...flaw })\n .filter(Boolean)),\n };\n }\n getValue(value) {\n return globalThis.Object.fromEntries(globalThis.Object.entries(value).map(([key, value]) => [key, this.valueType.get(value)]));\n }\n}\nexport function record(keyType, valueType) {\n return new IslyRecord(keyType, valueType);\n}\n//# sourceMappingURL=record.js.map","import { Type } from \"./Type\";\nclass IslyUnion extends Type {\n constructor(...types) {\n super(() => types.map(type => type.name).join(\" | \"));\n this.is = (value => this.types.some(type => type.is(value)));\n this.types = types;\n }\n createFlaw(value) {\n return {\n flaws: this.types.map(type => type.flaw(value)).filter(flaw => flaw),\n };\n }\n getValue(value) {\n return this.types.find(type => type.is(value))?.get(value);\n }\n}\nexport function union(...types) {\n return new IslyUnion(...types);\n}\n//# sourceMappingURL=union.js.map","import { Type } from \"./Type\";\nclass IslyUndefined extends Type {\n constructor() {\n super(...arguments);\n this.is = (value => value === undefined);\n }\n}\nexport function islyUndefined(name) {\n return new IslyUndefined(name ?? \"undefined\");\n}\n//# sourceMappingURL=undefined.js.map","import { isly } from \"isly\"\n\nexport type Color = typeof Color.types[number]\n\nexport namespace Color {\n\texport const types = [\n\t\t\"default\",\n\t\t\"primary\",\n\t\t\"secondary\",\n\t\t\"tertiary\",\n\t\t\"success\",\n\t\t\"warning\",\n\t\t\"danger\",\n\t\t\"light\",\n\t\t\"medium\",\n\t\t\"dark\",\n\t] as const\n\texport const type = isly.string(types)\n\texport const is = type.is\n}\n","type Name =\n\t| \"accessibility\"\n\t| \"add-circle\"\n\t| \"add\"\n\t| \"airplane\"\n\t| \"alarm\"\n\t| \"albums\"\n\t| \"alert-circle\"\n\t| \"alert\"\n\t| \"american-football\"\n\t| \"analytics\"\n\t| \"aperture\"\n\t| \"apps\"\n\t| \"archive\"\n\t| \"arrow-back-circle\"\n\t| \"arrow-back\"\n\t| \"arrow-down-circle\"\n\t| \"arrow-down\"\n\t| \"arrow-forward-circle\"\n\t| \"arrow-forward\"\n\t| \"arrow-redo-circle\"\n\t| \"arrow-redo\"\n\t| \"arrow-undo-circle\"\n\t| \"arrow-undo\"\n\t| \"arrow-up-circle\"\n\t| \"arrow-up\"\n\t| \"at-circle\"\n\t| \"at\"\n\t| \"attach\"\n\t| \"backspace\"\n\t| \"bag\"\n\t| \"bag-add\"\n\t| \"bag-check\"\n\t| \"bag-handle\"\n\t| \"balloon\"\n\t| \"ban\"\n\t| \"bandage\"\n\t| \"barbell\"\n\t| \"bar-chart\"\n\t| \"barcode\"\n\t| \"baseball\"\n\t| \"basketball\"\n\t| \"basket\"\n\t| \"battery-charging\"\n\t| \"battery-dead\"\n\t| \"battery-full\"\n\t| \"battery-half\"\n\t| \"beaker\"\n\t| \"bed\"\n\t| \"beer\"\n\t| \"bicycle\"\n\t| \"bluetooth\"\n\t| \"boat\"\n\t| \"body\"\n\t| \"bonfire\"\n\t| \"bowling-ball\"\n\t| \"bookmarks\"\n\t| \"bookmark\"\n\t| \"book\"\n\t| \"briefcase\"\n\t| \"browsers\"\n\t| \"brush\"\n\t| \"bug\"\n\t| \"build\"\n\t| \"bulb\"\n\t| \"business\"\n\t| \"bus\"\n\t| \"cafe\"\n\t| \"calculator\"\n\t| \"calendar\"\n\t| \"calendar-clear\"\n\t| \"calendar-number\"\n\t| \"call\"\n\t| \"camera-reverse\"\n\t| \"camera\"\n\t| \"card\"\n\t| \"caret-back-circle\"\n\t| \"caret-back\"\n\t| \"caret-down-circle\"\n\t| \"caret-down\"\n\t| \"caret-forward-circle\"\n\t| \"caret-forward\"\n\t| \"caret-up-circle\"\n\t| \"caret-up\"\n\t| \"car-sport\"\n\t| \"car\"\n\t| \"cart\"\n\t| \"cash\"\n\t| \"cellular\"\n\t| \"chatbox-ellipses\"\n\t| \"chatbox\"\n\t| \"chatbubble-ellipses\"\n\t| \"chatbubbles\"\n\t| \"chatbubble\"\n\t| \"checkbox\"\n\t| \"checkmark-circle\"\n\t| \"checkmark-done-circle\"\n\t| \"checkmark-done\"\n\t| \"checkmark\"\n\t| \"chevron-back-circle\"\n\t| \"chevron-back\"\n\t| \"chevron-down-circle\"\n\t| \"chevron-down\"\n\t| \"chevron-forward-circle\"\n\t| \"chevron-forward\"\n\t| \"chevron-up-circle\"\n\t| \"chevron-up\"\n\t| \"clipboard\"\n\t| \"close-circle\"\n\t| \"close\"\n\t| \"cloud-circle\"\n\t| \"cloud-done\"\n\t| \"cloud-download\"\n\t| \"cloud-offline\"\n\t| \"cloud\"\n\t| \"cloud-upload\"\n\t| \"cloudy-night\"\n\t| \"cloudy\"\n\t| \"code-download\"\n\t| \"code-slash\"\n\t| \"code\"\n\t| \"code-working\"\n\t| \"cog\"\n\t| \"color-fill\"\n\t| \"color-filter\"\n\t| \"color-palette\"\n\t| \"color-wand\"\n\t| \"compass\"\n\t| \"construct\"\n\t| \"contract\"\n\t| \"contrast\"\n\t| \"copy\"\n\t| \"create\"\n\t| \"crop\"\n\t| \"cube\"\n\t| \"cut\"\n\t| \"desktop\"\n\t| \"diamond\"\n\t| \"dice\"\n\t| \"disc\"\n\t| \"document-attach\"\n\t| \"document-lock\"\n\t| \"documents\"\n\t| \"document\"\n\t| \"document-text\"\n\t| \"download\"\n\t| \"duplicate\"\n\t| \"ear\"\n\t| \"earth\"\n\t| \"easel\"\n\t| \"egg\"\n\t| \"ellipse\"\n\t| \"ellipsis-horizontal-circle\"\n\t| \"ellipsis-horizontal\"\n\t| \"ellipsis-vertical-circle\"\n\t| \"ellipsis-vertical\"\n\t| \"enter\"\n\t| \"exit\"\n\t| \"expand\"\n\t| \"eyedrop\"\n\t| \"eye-off\"\n\t| \"eye\"\n\t| \"fast-food\"\n\t| \"female\"\n\t| \"file-tray-full\"\n\t| \"file-tray-stacked\"\n\t| \"file-tray\"\n\t| \"film\"\n\t| \"filter\"\n\t| \"filter-circle\"\n\t| \"finger-print\"\n\t| \"fish\"\n\t| \"fitness\"\n\t| \"flag\"\n\t| \"flame\"\n\t| \"flashlight\"\n\t| \"flash-off\"\n\t| \"flash\"\n\t| \"flask\"\n\t| \"flower\"\n\t| \"folder-open\"\n\t| \"folder\"\n\t| \"football\"\n\t| \"footsteps\"\n\t| \"funnel\"\n\t| \"game-controller\"\n\t| \"gift\"\n\t| \"git-branch\"\n\t| \"git-commit\"\n\t| \"git-compare\"\n\t| \"git-merge\"\n\t| \"git-network\"\n\t| \"git-pull-request\"\n\t| \"glasses\"\n\t| \"globe\"\n\t| \"golf\"\n\t| \"grid\"\n\t| \"hammer\"\n\t| \"hand-left\"\n\t| \"hand-right\"\n\t| \"happy\"\n\t| \"hardware-chip\"\n\t| \"headset\"\n\t| \"heart-circle\"\n\t| \"heart-dislike-circle\"\n\t| \"heart-dislike\"\n\t| \"heart-half\"\n\t| \"heart\"\n\t| \"help-buoy\"\n\t| \"help-circle\"\n\t| \"help\"\n\t| \"home\"\n\t| \"hourglass\"\n\t| \"ice-cream\"\n\t| \"id-card\"\n\t| \"images\"\n\t| \"image\"\n\t| \"infinite\"\n\t| \"information-circle\"\n\t| \"information\"\n\t| \"journal\"\n\t| \"invert-mode\"\n\t| \"keypad\"\n\t| \"key\"\n\t| \"language\"\n\t| \"laptop\"\n\t| \"layers\"\n\t| \"leaf\"\n\t| \"library\"\n\t| \"link\"\n\t| \"list-circle\"\n\t| \"list\"\n\t| \"locate\"\n\t| \"location\"\n\t| \"lock-closed\"\n\t| \"lock-open\"\n\t| \"log-in\"\n\t| \"logo-alipay\"\n\t| \"logo-amazon\"\n\t| \"logo-amplify\"\n\t| \"logo-android\"\n\t| \"logo-angular\"\n\t| \"logo-apple-appstore\"\n\t| \"logo-apple\"\n\t| \"logo-apple-ar\"\n\t| \"logo-behance\"\n\t| \"logo-bitbucket\"\n\t| \"logo-bitcoin\"\n\t| \"logo-buffer\"\n\t| \"logo-capacitor\"\n\t| \"logo-chrome\"\n\t| \"logo-closed-captioning\"\n\t| \"logo-codepen\"\n\t| \"logo-css3\"\n\t| \"logo-designernews\"\n\t| \"logo-deviantart\"\n\t| \"logo-discord\"\n\t| \"logo-docker\"\n\t| \"logo-dribbble\"\n\t| \"logo-dropbox\"\n\t| \"logo-edge\"\n\t| \"logo-electron\"\n\t| \"logo-euro\"\n\t| \"logo-facebook\"\n\t| \"logo-firebase\"\n\t| \"logo-firefox\"\n\t| \"logo-flickr\"\n\t| \"logo-foursquare\"\n\t| \"logo-github\"\n\t| \"logo-gitlab\"\n\t| \"logo-google-playstore\"\n\t| \"logo-google\"\n\t| \"logo-hackernews\"\n\t| \"logo-html5\"\n\t| \"logo-instagram\"\n\t| \"logo-ionic\"\n\t| \"logo-ionitron\"\n\t| \"logo-javascript\"\n\t| \"logo-laravel\"\n\t| \"logo-linkedin\"\n\t| \"logo-markdown\"\n\t| \"logo-mastodon\"\n\t| \"logo-medium\"\n\t| \"logo-microsoft\"\n\t| \"logo-nodejs\"\n\t| \"logo-no-smoking\"\n\t| \"logo-npm\"\n\t| \"logo-octocat\"\n\t| \"logo-paypal\"\n\t| \"logo-pinterest\"\n\t| \"logo-playstation\"\n\t| \"logo-pwa\"\n\t| \"logo-python\"\n\t| \"logo-react\"\n\t| \"logo-reddit\"\n\t| \"logo-rss\"\n\t| \"logo-sass\"\n\t| \"logo-skype\"\n\t| \"logo-slack\"\n\t| \"logo-snapchat\"\n\t| \"logo-soundcloud\"\n\t| \"logo-stackoverflow\"\n\t| \"logo-steam\"\n\t| \"logo-stencil\"\n\t| \"logo-tableau\"\n\t| \"logo-tiktok\"\n\t| \"logo-tumblr\"\n\t| \"logo-tux\"\n\t| \"logo-twitch\"\n\t| \"logo-twitter\"\n\t| \"logo-usd\"\n\t| \"log-out\"\n\t| \"logo-web-component\"\n\t| \"logo-venmo\"\n\t| \"logo-whatsapp\"\n\t| \"logo-vercel\"\n\t| \"logo-vimeo\"\n\t| \"logo-windows\"\n\t| \"logo-vk\"\n\t| \"logo-wordpress\"\n\t| \"logo-vue\"\n\t| \"logo-xbox\"\n\t| \"logo-xing\"\n\t| \"logo-yahoo\"\n\t| \"logo-yen\"\n\t| \"logo-youtube\"\n\t| \"magnet\"\n\t| \"mail-open\"\n\t| \"mail\"\n\t| \"mail-unread\"\n\t| \"male-female\"\n\t| \"male\"\n\t| \"man\"\n\t| \"map\"\n\t| \"medal\"\n\t| \"medical\"\n\t| \"medkit\"\n\t| \"megaphone\"\n\t| \"menu\"\n\t| \"mic-circle\"\n\t| \"mic-off-circle\"\n\t| \"mic-off\"\n\t| \"mic\"\n\t| \"moon\"\n\t| \"move\"\n\t| \"musical-notes\"\n\t| \"musical-note\"\n\t| \"navigate-circle\"\n\t| \"navigate\"\n\t| \"newspaper\"\n\t| \"notifications-circle\"\n\t| \"notifications-off-circle\"\n\t| \"notifications-off\"\n\t| \"notifications\"\n\t| \"nuclear\"\n\t| \"nutrition\"\n\t| \"open\"\n\t| \"options\"\n\t| \"paper-plane\"\n\t| \"partly-sunny\"\n\t| \"pause-circle\"\n\t| \"pause\"\n\t| \"paw\"\n\t| \"pencil\"\n\t| \"people-circle\"\n\t| \"people\"\n\t| \"person-add\"\n\t| \"person-circle\"\n\t| \"person-remove\"\n\t| \"person\"\n\t| \"phone-landscape\"\n\t| \"phone-portrait\"\n\t| \"pie-chart\"\n\t| \"pin\"\n\t| \"pint\"\n\t| \"pizza\"\n\t| \"planet\"\n\t| \"play-back-circle\"\n\t| \"play-back\"\n\t| \"play-circle\"\n\t| \"play-forward-circle\"\n\t| \"play-forward\"\n\t| \"play-skip-back-circle\"\n\t| \"play-skip-back\"\n\t| \"play-skip-forward-circle\"\n\t| \"play-skip-forward\"\n\t| \"play\"\n\t| \"podium\"\n\t| \"power\"\n\t| \"pricetags\"\n\t| \"prism\"\n\t| \"pricetag\"\n\t| \"print\"\n\t| \"pulse\"\n\t| \"push\"\n\t| \"qr-code\"\n\t| \"radio-button-off\"\n\t| \"radio-button-on\"\n\t| \"radio\"\n\t| \"rainy\"\n\t| \"reader\"\n\t| \"receipt\"\n\t| \"recording\"\n\t| \"refresh-circle\"\n\t| \"refresh\"\n\t| \"reload-circle\"\n\t| \"reload\"\n\t| \"remove-circle\"\n\t| \"remove\"\n\t| \"reorder-four\"\n\t| \"reorder-three\"\n\t| \"reorder-two\"\n\t| \"repeat\"\n\t| \"resize\"\n\t| \"restaurant\"\n\t| \"return-down-back\"\n\t| \"return-down-forward\"\n\t| \"return-up-back\"\n\t| \"return-up-forward\"\n\t| \"ribbon\"\n\t| \"rocket\"\n\t| \"rose\"\n\t| \"sad\"\n\t| \"save\"\n\t| \"scan-circle\"\n\t| \"scale\"\n\t| \"scan\"\n\t| \"school\"\n\t| \"search-circle\"\n\t| \"search\"\n\t| \"send\"\n\t| \"server\"\n\t| \"settings\"\n\t| \"shapes\"\n\t| \"share-social\"\n\t| \"share\"\n\t| \"shield-checkmark\"\n\t| \"shield-half\"\n\t| \"shield\"\n\t| \"shirt\"\n\t| \"shuffle\"\n\t| \"skull\"\n\t| \"snow\"\n\t| \"sparkles\"\n\t| \"speedometer\"\n\t| \"square\"\n\t| \"star-half\"\n\t| \"star\"\n\t| \"stats-chart\"\n\t| \"stop-circle\"\n\t| \"stop\"\n\t| \"stopwatch\"\n\t| \"storefront\"\n\t| \"subway\"\n\t| \"sunny\"\n\t| \"swap-horizontal\"\n\t| \"swap-vertical\"\n\t| \"sync-circle\"\n\t| \"sync\"\n\t| \"tablet-landscape\"\n\t| \"tablet-portrait\"\n\t| \"telescope\"\n\t| \"tennisball\"\n\t| \"terminal\"\n\t| \"text\"\n\t| \"thermometer\"\n\t| \"thumbs-down\"\n\t| \"thumbs-up\"\n\t| \"thunderstorm\"\n\t| \"ticket\"\n\t| \"timer\"\n\t| \"time\"\n\t| \"today\"\n\t| \"toggle\"\n\t| \"trail-sign\"\n\t| \"train\"\n\t| \"transgender\"\n\t| \"trash-bin\"\n\t| \"trash\"\n\t| \"trending-down\"\n\t| \"trending-up\"\n\t| \"triangle\"\n\t| \"trophy\"\n\t| \"tv\"\n\t| \"umbrella\"\n\t| \"unlink\"\n\t| \"videocam-off\"\n\t| \"walk\"\n\t| \"wallet\"\n\t| \"warning\"\n\t| \"watch\"\n\t| \"water\"\n\t| \"videocam\"\n\t| \"wifi\"\n\t| \"wine\"\n\t| \"volume-high\"\n\t| \"volume-low\"\n\t| \"volume-medium\"\n\t| \"volume-mute\"\n\t| \"volume-off\"\n\t| \"woman\"\n\ntype Variants = \"outline\" | \"sharp\"\nexport type Icon = Name | `${Name}-${Variants}`\n\nexport namespace Icon {\n\tconst names: Record<string, string | undefined> & { \"*\": string } = {\n\t\t\"*\": \"https://ionicons.pages.dev/svg/${name}.svg\",\n\t}\n\tconst cache: { [url: string]: Promise<string | undefined> | undefined } = {}\n\tasync function fetch(url: string): Promise<string | undefined> {\n\t\tconst response = await globalThis.fetch(url)\n\t\treturn response.ok ? response.text() : undefined\n\t}\n\texport async function load(name: string): Promise<string | undefined> {\n\t\tconst url = (names[name] ?? names[\"*\"]).replace(\"${name}\", name)\n\t\treturn cache[url] ?? (cache[url] = fetch(url))\n\t}\n\texport function add(url: string, ...name: string[]): void {\n\t\tfor (const n of name)\n\t\t\tnames[n] = url\n\t}\n}\n","export interface Message<T> {\n\tdestination: string\n\tcontent: T\n}\n\nexport namespace Message {\n\texport function is(value: Message<any> | any): value is Message<any> {\n\t\treturn typeof value == \"object\" && typeof value.destination == \"string\" && value.content != undefined\n\t}\n\texport function send(message: Message<any>, context?: Window): void\n\texport function send(destination: string, content: any, context?: Window): void\n\texport function send(message: string | Message<any>, content?: any | Window, context?: Window): void {\n\t\tif (Message.is(message) && context == undefined) {\n\t\t\tcontext = content as Window\n\t\t\tif (!context)\n\t\t\t\tcontext = window\n\t\t\tconst destination = message.destination.split(\"#\", 2)\n\t\t\tmessage = { destination: destination[1], content: message.content }\n\t\t\tcontext.postMessage(message, destination[0])\n\t\t} else if (typeof context != \"string\") {\n\t\t\tif (!context)\n\t\t\t\tcontext = window\n\t\t\tif (typeof message == \"string\")\n\t\t\t\tMessage.send({ destination: message, content }, context)\n\t\t}\n\t}\n\texport function listen(origin: string, handle: (destination: string, content: any) => void, context?: Window): void {\n\t\tconst splitted = origin.split(\"#\", 2)\n\t\tlet destination = \"\"\n\t\tif (splitted.length == 2) {\n\t\t\torigin = splitted[0]\n\t\t\tdestination = splitted[1]\n\t\t}\n\t\t;(context || window).addEventListener(\"message\", (e: MessageEvent) => {\n\t\t\tconst message = e.data\n\t\t\tif (\n\t\t\t\tMessage.is(message) &&\n\t\t\t\t(origin == \"*\" || e.origin == origin) &&\n\t\t\t\t(destination == \"\" || message.destination == destination)\n\t\t\t)\n\t\t\t\thandle(message.destination, message.content)\n\t\t})\n\t}\n}\n","export interface Trigger {\n\tname: string\n\tvalue?: any\n}\nexport namespace Trigger {\n\texport function is(value: Trigger | any): value is Trigger {\n\t\treturn typeof value == \"object\" && typeof value.name == \"string\"\n\t}\n}\n","export type WithListenable<T extends Record<string, any>> = T & Listenable<T>\n\nexport type CanBeListenable = Record<string, any>\n\nexport interface HasListenable<T extends CanBeListenable> {\n\treadonly listenable: WithListenable<T>\n}\n\nexport class Listenable<T extends CanBeListenable> {\n\t#listeners: Listeners<ListenableProperties<T>> = {}\n\tlisten<K extends keyof ListenableProperties<T>>(\n\t\tthis: T & Listenable<T>,\n\t\tproperty: K,\n\t\tlistener: Listener<T[K]>,\n\t\toptions?: { lazy?: boolean }\n\t): void {\n\t\tthis.#listeners[property]?.push(listener) ?? (this.#listeners[property] = [listener])\n\t\tif (!options?.lazy)\n\t\t\tlistener(this[property])\n\t}\n\tunlisten<K extends keyof ListenableProperties<T>>(property: K, listener: Listener<T[K]>): void {\n\t\tconst index = this.#listeners[property]?.indexOf(listener)\n\t\tindex != undefined && index >= 0 && this.#listeners[property]?.splice(index, 1)\n\t}\n\tbatchListen(this: T & Listenable<T>, listeners: ListenerBatch<T>, options?: { lazy?: boolean }) {\n\t\tfor (const key in listeners) {\n\t\t\tconst listener = listeners[key]\n\t\t\tlistener && this.listen(key, listener, options)\n\t\t}\n\t}\n\tbatchUnlisten(listeners: ListenerBatch<T>) {\n\t\tfor (const key in listeners) {\n\t\t\tconst listener = listeners[key]\n\t\t\tlistener && this.unlisten(key, listener)\n\t\t}\n\t}\n\n\tstatic load<T extends HasListenable<CanBeListenable>>(backend: T): WithListenable<T> {\n\t\tconst result = backend.listenable\n\n\t\treturn Object.defineProperties(result, getProperties(backend)) as WithListenable<T>\n\n\t\tfunction getProperties(backend: any) {\n\t\t\treturn Object.fromEntries(\n\t\t\t\t(\n\t\t\t\t\tObject.entries({\n\t\t\t\t\t\t...Object.getOwnPropertyDescriptors(backend),\n\t\t\t\t\t\t...Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)),\n\t\t\t\t\t}) as [keyof T, PropertyDescriptor][]\n\t\t\t\t).map(([name, descriptor]) => [\n\t\t\t\t\tname,\n\t\t\t\t\ttypeof descriptor.value == \"function\"\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name].bind(backend)\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: descriptor.writable || descriptor.set\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tset(value: any) {\n\t\t\t\t\t\t\t\t\tbackend[name] = value\n\t\t\t\t\t\t\t\t\tresult.#listeners[name]?.forEach(listener => listener(backend[name]))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t },\n\t\t\t\t])\n\t\t\t)\n\t\t}\n\t}\n}\ntype ListenableProperties<T> = {\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\t[P in keyof T as T[P] extends Function ? never : P]: T[P]\n}\n\nexport type Listener<V> = (value: V) => void\nexport type Listeners<T> = {\n\t[K in keyof T]?: Listener<T[K]>[]\n}\n\nexport type ListenerBatch<T> = { [K in keyof ListenableProperties<T>]?: Listener<T[K]> }\n","import { isly } from \"isly\"\n\ntype Value = string | number | boolean | Blob | undefined\nexport type Data = { [name: string]: Data | Value }\n\nexport namespace Data {\n\texport const valueType = isly.union<Value, string, number, boolean, Blob, undefined>(\n\t\tisly.string(),\n\t\tisly.number(),\n\t\tisly.boolean(),\n\t\tisly.fromIs(\"Blob\", value => value instanceof Blob),\n\t\tisly.undefined()\n\t)\n\texport const type: isly.Type<Data> = isly.record<Data>(\n\t\tisly.string(),\n\t\tisly.union(\n\t\t\tisly.lazy(() => type, \"Data\"),\n\t\t\tvalueType\n\t\t)\n\t)\n\n\texport function set(data: Data, [head, ...tail]: string[], value: Value): Data {\n\t\tconst current = data[head ?? \"\"]\n\t\treturn {\n\t\t\t...data,\n\t\t\t[head ?? \"\"]: !tail.length\n\t\t\t\t? value\n\t\t\t\t: set(typeof current == \"object\" && !(current instanceof Blob) ? current : {}, tail, value),\n\t\t}\n\t}\n\texport function deepen(data: Record<string, Value>): Data {\n\t\treturn merge({}, data)\n\t}\n\texport function merge(data: Data, changes: Record<string, any>): Data {\n\t\treturn Object.entries(changes).reduce((r, [name, value]) => set(r, name.split(\".\"), value), data)\n\t}\n}\n","import { isly } from \"isly\"\nimport { Data } from \"./Data\"\n\nexport interface Submit {\n\ttype?: typeof Submit.types[number]\n\tresult: (result: boolean) => void\n\tvalue: Data\n}\nexport namespace Submit {\n\texport const types = [\"update\", \"change\", \"fetch\", \"create\", \"remove\"] as const\n\texport const type = isly.object<Submit>({\n\t\ttype: isly.string(types).optional(),\n\t\tresult: isly.function(),\n\t\tvalue: Data.type,\n\t})\n\texport const is = type.is\n\texport const flaw = type.flaw\n}\n"],"version":3}
|
|
@@ -3695,8 +3695,8 @@ exports.Date = void 0;
|
|
|
3695
3695
|
return Date.create(result);
|
|
3696
3696
|
}
|
|
3697
3697
|
Date.lastOfWeek = lastOfWeek;
|
|
3698
|
-
function getYear(date) {
|
|
3699
|
-
return Number.parseInt(date.substring(0, 4));
|
|
3698
|
+
function getYear(date, options) {
|
|
3699
|
+
return options?.digits != 2 ? Number.parseInt(date.substring(0, 4)) : +getYear(date).toString().slice(-2);
|
|
3700
3700
|
}
|
|
3701
3701
|
Date.getYear = getYear;
|
|
3702
3702
|
function getMonth(date) {
|
|
@@ -3999,6 +3999,14 @@ exports.DateTime = void 0;
|
|
|
3999
3999
|
return result;
|
|
4000
4000
|
}
|
|
4001
4001
|
DateTime.localize = localize;
|
|
4002
|
+
function startOfDay(value) {
|
|
4003
|
+
return value.slice(0, 10) + "T00:00:00.000" + (DateTime.is(value) ? timeZoneOffset(value) || "Z" : "Z");
|
|
4004
|
+
}
|
|
4005
|
+
DateTime.startOfDay = startOfDay;
|
|
4006
|
+
function endOfDay(value) {
|
|
4007
|
+
return value.slice(0, 10) + "T23:59:59.999" + (DateTime.is(value) ? timeZoneOffset(value) || "Z" : "Z");
|
|
4008
|
+
}
|
|
4009
|
+
DateTime.endOfDay = endOfDay;
|
|
4002
4010
|
/** @deprecated Use timeZoneOffset() */
|
|
4003
4011
|
function timeZone(value) {
|
|
4004
4012
|
return timeZoneOffset(value);
|
|
@@ -4215,8 +4223,8 @@ exports.DateTime = void 0;
|
|
|
4215
4223
|
return time.substring(11);
|
|
4216
4224
|
}
|
|
4217
4225
|
DateTime.getTime = getTime;
|
|
4218
|
-
function getYear(time) {
|
|
4219
|
-
return Number.parseInt(time.substring(0, 4));
|
|
4226
|
+
function getYear(time, options) {
|
|
4227
|
+
return options?.digits != 2 ? Number.parseInt(time.substring(0, 4)) : +getYear(time).toString().slice(-2);
|
|
4220
4228
|
}
|
|
4221
4229
|
DateTime.getYear = getYear;
|
|
4222
4230
|
function getMonth(time) {
|
|
@@ -6178,4 +6186,4 @@ var TimeZone;
|
|
|
6178
6186
|
TimeZone.is = is;
|
|
6179
6187
|
})(TimeZone || (TimeZone = {}));
|
|
6180
6188
|
|
|
6181
|
-
//# sourceMappingURL=TimeZone-
|
|
6189
|
+
//# sourceMappingURL=TimeZone-312b7972.js.map
|