@design.estate/dees-document 1.0.101 → 1.0.103
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_bundle/bundle.js +77 -77
- package/dist_bundle/bundle.js.map +3 -3
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_watch/bundle.js +84 -360
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/contentinvoice.ts +3 -3
- package/ts_web/elements/document.ts +27 -13
- package/ts_web/elements/shared/demoletter.ts +59 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-document',
|
|
6
|
-
version: '1.0.
|
|
6
|
+
version: '1.0.103',
|
|
7
7
|
description: 'A comprehensive solution for generating documents like invoices, integrating elements, templates, and services to streamline document creation.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSw4QkFBOEI7SUFDcEMsT0FBTyxFQUFFLFNBQVM7SUFDbEIsV0FBVyxFQUFFLGlKQUFpSjtDQUMvSixDQUFBIn0=
|
package/dist_watch/bundle.js
CHANGED
|
@@ -1998,343 +1998,11 @@ var require_es_define_property = __commonJS({
|
|
|
1998
1998
|
}
|
|
1999
1999
|
});
|
|
2000
2000
|
|
|
2001
|
-
// node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js
|
|
2002
|
-
var require_has_proto2 = __commonJS({
|
|
2003
|
-
"node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js"(exports, module) {
|
|
2004
|
-
"use strict";
|
|
2005
|
-
var test = {
|
|
2006
|
-
foo: {}
|
|
2007
|
-
};
|
|
2008
|
-
var $Object = Object;
|
|
2009
|
-
module.exports = function hasProto() {
|
|
2010
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
2011
|
-
};
|
|
2012
|
-
}
|
|
2013
|
-
});
|
|
2014
|
-
|
|
2015
|
-
// node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js
|
|
2016
|
-
var require_hasown2 = __commonJS({
|
|
2017
|
-
"node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module) {
|
|
2018
|
-
"use strict";
|
|
2019
|
-
var call = Function.prototype.call;
|
|
2020
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
2021
|
-
var bind2 = require_function_bind();
|
|
2022
|
-
module.exports = bind2.call(call, $hasOwn);
|
|
2023
|
-
}
|
|
2024
|
-
});
|
|
2025
|
-
|
|
2026
|
-
// node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js
|
|
2027
|
-
var require_get_intrinsic2 = __commonJS({
|
|
2028
|
-
"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
2029
|
-
"use strict";
|
|
2030
|
-
var undefined2;
|
|
2031
|
-
var $SyntaxError = SyntaxError;
|
|
2032
|
-
var $Function = Function;
|
|
2033
|
-
var $TypeError = TypeError;
|
|
2034
|
-
var getEvalledConstructor = function(expressionSyntax) {
|
|
2035
|
-
try {
|
|
2036
|
-
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
2037
|
-
} catch (e8) {
|
|
2038
|
-
}
|
|
2039
|
-
};
|
|
2040
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
2041
|
-
if ($gOPD) {
|
|
2042
|
-
try {
|
|
2043
|
-
$gOPD({}, "");
|
|
2044
|
-
} catch (e8) {
|
|
2045
|
-
$gOPD = null;
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
var throwTypeError = function() {
|
|
2049
|
-
throw new $TypeError();
|
|
2050
|
-
};
|
|
2051
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
2052
|
-
try {
|
|
2053
|
-
arguments.callee;
|
|
2054
|
-
return throwTypeError;
|
|
2055
|
-
} catch (calleeThrows) {
|
|
2056
|
-
try {
|
|
2057
|
-
return $gOPD(arguments, "callee").get;
|
|
2058
|
-
} catch (gOPDthrows) {
|
|
2059
|
-
return throwTypeError;
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
}() : throwTypeError;
|
|
2063
|
-
var hasSymbols = require_has_symbols()();
|
|
2064
|
-
var hasProto = require_has_proto2()();
|
|
2065
|
-
var getProto = Object.getPrototypeOf || (hasProto ? function(x2) {
|
|
2066
|
-
return x2.__proto__;
|
|
2067
|
-
} : null);
|
|
2068
|
-
var needsEval = {};
|
|
2069
|
-
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
2070
|
-
var INTRINSICS = {
|
|
2071
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
2072
|
-
"%Array%": Array,
|
|
2073
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
2074
|
-
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
2075
|
-
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
2076
|
-
"%AsyncFunction%": needsEval,
|
|
2077
|
-
"%AsyncGenerator%": needsEval,
|
|
2078
|
-
"%AsyncGeneratorFunction%": needsEval,
|
|
2079
|
-
"%AsyncIteratorPrototype%": needsEval,
|
|
2080
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
2081
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
2082
|
-
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
2083
|
-
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
2084
|
-
"%Boolean%": Boolean,
|
|
2085
|
-
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
2086
|
-
"%Date%": Date,
|
|
2087
|
-
"%decodeURI%": decodeURI,
|
|
2088
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
2089
|
-
"%encodeURI%": encodeURI,
|
|
2090
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
2091
|
-
"%Error%": Error,
|
|
2092
|
-
"%eval%": eval,
|
|
2093
|
-
// eslint-disable-line no-eval
|
|
2094
|
-
"%EvalError%": EvalError,
|
|
2095
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
2096
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
2097
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
2098
|
-
"%Function%": $Function,
|
|
2099
|
-
"%GeneratorFunction%": needsEval,
|
|
2100
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
2101
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
2102
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
2103
|
-
"%isFinite%": isFinite,
|
|
2104
|
-
"%isNaN%": isNaN,
|
|
2105
|
-
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
2106
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
2107
|
-
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
2108
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2109
|
-
"%Math%": Math,
|
|
2110
|
-
"%Number%": Number,
|
|
2111
|
-
"%Object%": Object,
|
|
2112
|
-
"%parseFloat%": parseFloat,
|
|
2113
|
-
"%parseInt%": parseInt,
|
|
2114
|
-
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
2115
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
2116
|
-
"%RangeError%": RangeError,
|
|
2117
|
-
"%ReferenceError%": ReferenceError,
|
|
2118
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
2119
|
-
"%RegExp%": RegExp,
|
|
2120
|
-
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
2121
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2122
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
2123
|
-
"%String%": String,
|
|
2124
|
-
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
2125
|
-
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
2126
|
-
"%SyntaxError%": $SyntaxError,
|
|
2127
|
-
"%ThrowTypeError%": ThrowTypeError,
|
|
2128
|
-
"%TypedArray%": TypedArray,
|
|
2129
|
-
"%TypeError%": $TypeError,
|
|
2130
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
2131
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
2132
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
2133
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
2134
|
-
"%URIError%": URIError,
|
|
2135
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
2136
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
2137
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
2138
|
-
};
|
|
2139
|
-
if (getProto) {
|
|
2140
|
-
try {
|
|
2141
|
-
null.error;
|
|
2142
|
-
} catch (e8) {
|
|
2143
|
-
errorProto = getProto(getProto(e8));
|
|
2144
|
-
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
2145
|
-
}
|
|
2146
|
-
}
|
|
2147
|
-
var errorProto;
|
|
2148
|
-
var doEval = function doEval2(name) {
|
|
2149
|
-
var value2;
|
|
2150
|
-
if (name === "%AsyncFunction%") {
|
|
2151
|
-
value2 = getEvalledConstructor("async function () {}");
|
|
2152
|
-
} else if (name === "%GeneratorFunction%") {
|
|
2153
|
-
value2 = getEvalledConstructor("function* () {}");
|
|
2154
|
-
} else if (name === "%AsyncGeneratorFunction%") {
|
|
2155
|
-
value2 = getEvalledConstructor("async function* () {}");
|
|
2156
|
-
} else if (name === "%AsyncGenerator%") {
|
|
2157
|
-
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
2158
|
-
if (fn) {
|
|
2159
|
-
value2 = fn.prototype;
|
|
2160
|
-
}
|
|
2161
|
-
} else if (name === "%AsyncIteratorPrototype%") {
|
|
2162
|
-
var gen = doEval2("%AsyncGenerator%");
|
|
2163
|
-
if (gen && getProto) {
|
|
2164
|
-
value2 = getProto(gen.prototype);
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
INTRINSICS[name] = value2;
|
|
2168
|
-
return value2;
|
|
2169
|
-
};
|
|
2170
|
-
var LEGACY_ALIASES = {
|
|
2171
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2172
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
2173
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
2174
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
2175
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
2176
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
2177
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
2178
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
2179
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
2180
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
2181
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
2182
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
2183
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
2184
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
2185
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
2186
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
2187
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
2188
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
2189
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
2190
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
2191
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
2192
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
2193
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
2194
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
2195
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
2196
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
2197
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
2198
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
2199
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
2200
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
2201
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
2202
|
-
"%Promise_all%": ["Promise", "all"],
|
|
2203
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
2204
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
2205
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
2206
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
2207
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
2208
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
2209
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
2210
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
2211
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
2212
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
2213
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
2214
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
2215
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
2216
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
2217
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
2218
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
2219
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2220
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2221
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2222
|
-
};
|
|
2223
|
-
var bind2 = require_function_bind();
|
|
2224
|
-
var hasOwn = require_hasown2();
|
|
2225
|
-
var $concat = bind2.call(Function.call, Array.prototype.concat);
|
|
2226
|
-
var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
|
|
2227
|
-
var $replace = bind2.call(Function.call, String.prototype.replace);
|
|
2228
|
-
var $strSlice = bind2.call(Function.call, String.prototype.slice);
|
|
2229
|
-
var $exec = bind2.call(Function.call, RegExp.prototype.exec);
|
|
2230
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2231
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
2232
|
-
var stringToPath = function stringToPath2(string3) {
|
|
2233
|
-
var first = $strSlice(string3, 0, 1);
|
|
2234
|
-
var last2 = $strSlice(string3, -1);
|
|
2235
|
-
if (first === "%" && last2 !== "%") {
|
|
2236
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
2237
|
-
} else if (last2 === "%" && first !== "%") {
|
|
2238
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
2239
|
-
}
|
|
2240
|
-
var result = [];
|
|
2241
|
-
$replace(string3, rePropName, function(match, number2, quote, subString) {
|
|
2242
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number2 || match;
|
|
2243
|
-
});
|
|
2244
|
-
return result;
|
|
2245
|
-
};
|
|
2246
|
-
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
2247
|
-
var intrinsicName = name;
|
|
2248
|
-
var alias;
|
|
2249
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
2250
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
2251
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
2252
|
-
}
|
|
2253
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
2254
|
-
var value2 = INTRINSICS[intrinsicName];
|
|
2255
|
-
if (value2 === needsEval) {
|
|
2256
|
-
value2 = doEval(intrinsicName);
|
|
2257
|
-
}
|
|
2258
|
-
if (typeof value2 === "undefined" && !allowMissing) {
|
|
2259
|
-
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
2260
|
-
}
|
|
2261
|
-
return {
|
|
2262
|
-
alias,
|
|
2263
|
-
name: intrinsicName,
|
|
2264
|
-
value: value2
|
|
2265
|
-
};
|
|
2266
|
-
}
|
|
2267
|
-
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
2268
|
-
};
|
|
2269
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
2270
|
-
if (typeof name !== "string" || name.length === 0) {
|
|
2271
|
-
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
2272
|
-
}
|
|
2273
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
2274
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
2275
|
-
}
|
|
2276
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
2277
|
-
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2278
|
-
}
|
|
2279
|
-
var parts = stringToPath(name);
|
|
2280
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
2281
|
-
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
2282
|
-
var intrinsicRealName = intrinsic.name;
|
|
2283
|
-
var value2 = intrinsic.value;
|
|
2284
|
-
var skipFurtherCaching = false;
|
|
2285
|
-
var alias = intrinsic.alias;
|
|
2286
|
-
if (alias) {
|
|
2287
|
-
intrinsicBaseName = alias[0];
|
|
2288
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
2289
|
-
}
|
|
2290
|
-
for (var i8 = 1, isOwn = true; i8 < parts.length; i8 += 1) {
|
|
2291
|
-
var part = parts[i8];
|
|
2292
|
-
var first = $strSlice(part, 0, 1);
|
|
2293
|
-
var last2 = $strSlice(part, -1);
|
|
2294
|
-
if ((first === '"' || first === "'" || first === "`" || (last2 === '"' || last2 === "'" || last2 === "`")) && first !== last2) {
|
|
2295
|
-
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
2296
|
-
}
|
|
2297
|
-
if (part === "constructor" || !isOwn) {
|
|
2298
|
-
skipFurtherCaching = true;
|
|
2299
|
-
}
|
|
2300
|
-
intrinsicBaseName += "." + part;
|
|
2301
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
2302
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
2303
|
-
value2 = INTRINSICS[intrinsicRealName];
|
|
2304
|
-
} else if (value2 != null) {
|
|
2305
|
-
if (!(part in value2)) {
|
|
2306
|
-
if (!allowMissing) {
|
|
2307
|
-
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
2308
|
-
}
|
|
2309
|
-
return void 0;
|
|
2310
|
-
}
|
|
2311
|
-
if ($gOPD && i8 + 1 >= parts.length) {
|
|
2312
|
-
var desc = $gOPD(value2, part);
|
|
2313
|
-
isOwn = !!desc;
|
|
2314
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
2315
|
-
value2 = desc.get;
|
|
2316
|
-
} else {
|
|
2317
|
-
value2 = value2[part];
|
|
2318
|
-
}
|
|
2319
|
-
} else {
|
|
2320
|
-
isOwn = hasOwn(value2, part);
|
|
2321
|
-
value2 = value2[part];
|
|
2322
|
-
}
|
|
2323
|
-
if (isOwn && !skipFurtherCaching) {
|
|
2324
|
-
INTRINSICS[intrinsicRealName] = value2;
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
}
|
|
2328
|
-
return value2;
|
|
2329
|
-
};
|
|
2330
|
-
}
|
|
2331
|
-
});
|
|
2332
|
-
|
|
2333
2001
|
// node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js
|
|
2334
2002
|
var require_gopd = __commonJS({
|
|
2335
2003
|
"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports, module) {
|
|
2336
2004
|
"use strict";
|
|
2337
|
-
var GetIntrinsic =
|
|
2005
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
2338
2006
|
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
2339
2007
|
if ($gOPD) {
|
|
2340
2008
|
try {
|
|
@@ -38680,18 +38348,21 @@ var demoLetter = {
|
|
|
38680
38348
|
deliveryDate: (/* @__PURE__ */ new Date()).getTime(),
|
|
38681
38349
|
periodOfPerformance: null,
|
|
38682
38350
|
printResult: null,
|
|
38351
|
+
currency: "EUR",
|
|
38352
|
+
notes: [],
|
|
38353
|
+
type: "debitnote",
|
|
38683
38354
|
items: [
|
|
38684
38355
|
{
|
|
38685
38356
|
name: "Item with 19% VAT",
|
|
38686
|
-
unitQuantity:
|
|
38357
|
+
unitQuantity: 2,
|
|
38687
38358
|
unitNetPrice: 100,
|
|
38688
38359
|
unitType: "hours",
|
|
38689
38360
|
vatPercentage: 19,
|
|
38690
|
-
|
|
38361
|
+
position: 0
|
|
38691
38362
|
},
|
|
38692
38363
|
{
|
|
38693
38364
|
name: "Item with 7% VAT",
|
|
38694
|
-
unitQuantity:
|
|
38365
|
+
unitQuantity: 4,
|
|
38695
38366
|
unitNetPrice: 100,
|
|
38696
38367
|
unitType: "hours",
|
|
38697
38368
|
vatPercentage: 7,
|
|
@@ -38699,7 +38370,7 @@ var demoLetter = {
|
|
|
38699
38370
|
},
|
|
38700
38371
|
{
|
|
38701
38372
|
name: "Item with 7% VAT",
|
|
38702
|
-
unitQuantity:
|
|
38373
|
+
unitQuantity: 3,
|
|
38703
38374
|
unitNetPrice: 230,
|
|
38704
38375
|
unitType: "hours",
|
|
38705
38376
|
vatPercentage: 7,
|
|
@@ -38715,7 +38386,7 @@ var demoLetter = {
|
|
|
38715
38386
|
},
|
|
38716
38387
|
{
|
|
38717
38388
|
name: "Item with 0% VAT",
|
|
38718
|
-
unitQuantity:
|
|
38389
|
+
unitQuantity: 6,
|
|
38719
38390
|
unitNetPrice: 230,
|
|
38720
38391
|
unitType: "hours",
|
|
38721
38392
|
vatPercentage: 0,
|
|
@@ -38723,7 +38394,7 @@ var demoLetter = {
|
|
|
38723
38394
|
},
|
|
38724
38395
|
{
|
|
38725
38396
|
name: "Item with 19% VAT",
|
|
38726
|
-
unitQuantity:
|
|
38397
|
+
unitQuantity: 8,
|
|
38727
38398
|
unitNetPrice: 100,
|
|
38728
38399
|
unitType: "hours",
|
|
38729
38400
|
vatPercentage: 19,
|
|
@@ -38731,27 +38402,35 @@ var demoLetter = {
|
|
|
38731
38402
|
},
|
|
38732
38403
|
{
|
|
38733
38404
|
name: "Item with 7% VAT",
|
|
38734
|
-
unitQuantity:
|
|
38405
|
+
unitQuantity: 9,
|
|
38735
38406
|
unitNetPrice: 100,
|
|
38736
38407
|
unitType: "hours",
|
|
38737
38408
|
vatPercentage: 7,
|
|
38738
|
-
|
|
38409
|
+
position: 6
|
|
38739
38410
|
},
|
|
38740
38411
|
{
|
|
38741
38412
|
name: "Item with 7% VAT",
|
|
38742
|
-
unitQuantity:
|
|
38413
|
+
unitQuantity: 4,
|
|
38743
38414
|
unitNetPrice: 230,
|
|
38744
38415
|
unitType: "hours",
|
|
38745
38416
|
vatPercentage: 7,
|
|
38746
|
-
|
|
38417
|
+
position: 8
|
|
38747
38418
|
},
|
|
38748
38419
|
{
|
|
38749
38420
|
name: "Item with 21% VAT",
|
|
38750
|
-
unitQuantity:
|
|
38421
|
+
unitQuantity: 3,
|
|
38751
38422
|
unitNetPrice: 230,
|
|
38752
38423
|
unitType: "hours",
|
|
38753
38424
|
vatPercentage: 21,
|
|
38754
|
-
|
|
38425
|
+
position: 9
|
|
38426
|
+
},
|
|
38427
|
+
{
|
|
38428
|
+
name: "Item with 0% VAT",
|
|
38429
|
+
unitQuantity: 1,
|
|
38430
|
+
unitNetPrice: 230,
|
|
38431
|
+
unitType: "hours",
|
|
38432
|
+
vatPercentage: 0,
|
|
38433
|
+
position: 10
|
|
38755
38434
|
},
|
|
38756
38435
|
{
|
|
38757
38436
|
name: "Item with 0% VAT",
|
|
@@ -38759,7 +38438,47 @@ var demoLetter = {
|
|
|
38759
38438
|
unitNetPrice: 230,
|
|
38760
38439
|
unitType: "hours",
|
|
38761
38440
|
vatPercentage: 0,
|
|
38762
|
-
|
|
38441
|
+
position: 10
|
|
38442
|
+
},
|
|
38443
|
+
{
|
|
38444
|
+
name: "Item with 0% VAT",
|
|
38445
|
+
unitQuantity: 1,
|
|
38446
|
+
unitNetPrice: 230,
|
|
38447
|
+
unitType: "hours",
|
|
38448
|
+
vatPercentage: 0,
|
|
38449
|
+
position: 10
|
|
38450
|
+
},
|
|
38451
|
+
{
|
|
38452
|
+
name: "Item with 0% VAT",
|
|
38453
|
+
unitQuantity: 1,
|
|
38454
|
+
unitNetPrice: 230,
|
|
38455
|
+
unitType: "hours",
|
|
38456
|
+
vatPercentage: 0,
|
|
38457
|
+
position: 10
|
|
38458
|
+
},
|
|
38459
|
+
{
|
|
38460
|
+
name: "Item with 0% VAT",
|
|
38461
|
+
unitQuantity: 1,
|
|
38462
|
+
unitNetPrice: 230,
|
|
38463
|
+
unitType: "hours",
|
|
38464
|
+
vatPercentage: 0,
|
|
38465
|
+
position: 10
|
|
38466
|
+
},
|
|
38467
|
+
{
|
|
38468
|
+
name: "Item with 0% VAT",
|
|
38469
|
+
unitQuantity: 1,
|
|
38470
|
+
unitNetPrice: 230,
|
|
38471
|
+
unitType: "hours",
|
|
38472
|
+
vatPercentage: 0,
|
|
38473
|
+
position: 10
|
|
38474
|
+
},
|
|
38475
|
+
{
|
|
38476
|
+
name: "Item with 0% VAT",
|
|
38477
|
+
unitQuantity: 1,
|
|
38478
|
+
unitNetPrice: 230,
|
|
38479
|
+
unitType: "hours",
|
|
38480
|
+
vatPercentage: 0,
|
|
38481
|
+
position: 10
|
|
38763
38482
|
}
|
|
38764
38483
|
]
|
|
38765
38484
|
}
|
|
@@ -38987,9 +38706,9 @@ var DeContentInvoice = class extends DeesElement {
|
|
|
38987
38706
|
<div class="lineItem">${invoiceItem.name}</div>
|
|
38988
38707
|
<div class="lineItem">${invoiceItem.unitQuantity}</div>
|
|
38989
38708
|
<div class="lineItem">${invoiceItem.unitType}</div>
|
|
38990
|
-
<div class="lineItem">${invoiceItem.unitNetPrice} ${
|
|
38709
|
+
<div class="lineItem">${invoiceItem.unitNetPrice} ${this.letterData?.content.invoiceData.currency}</div>
|
|
38991
38710
|
<div class="lineItem">
|
|
38992
|
-
${invoiceItem.unitQuantity * invoiceItem.unitNetPrice} ${
|
|
38711
|
+
${invoiceItem.unitQuantity * invoiceItem.unitNetPrice} ${this.letterData?.content.invoiceData.currency}
|
|
38993
38712
|
</div>
|
|
38994
38713
|
</div>
|
|
38995
38714
|
`
|
|
@@ -39036,7 +38755,7 @@ var DeContentInvoice = class extends DeesElement {
|
|
|
39036
38755
|
IBAN: ${this.letterData?.from?.sepaConnection?.iban}<br />
|
|
39037
38756
|
BIC: ${this.letterData?.from?.sepaConnection?.bic}<br />
|
|
39038
38757
|
Description: ${this.letterData?.content.invoiceData?.id}<br />
|
|
39039
|
-
Amount: ${this.getTotalGross()} ${this.letterData?.content.invoiceData.
|
|
38758
|
+
Amount: ${this.getTotalGross()} ${this.letterData?.content.invoiceData.currency}
|
|
39040
38759
|
</div>
|
|
39041
38760
|
${this.letterData?.content?.contractData?.contractDate ? x`
|
|
39042
38761
|
<div class="infoBox">
|
|
@@ -39309,17 +39028,15 @@ var DeDocument = class extends DeesElement {
|
|
|
39309
39028
|
const response = await fetch(this.letterDataUrl);
|
|
39310
39029
|
this.letterData = await response.json();
|
|
39311
39030
|
}
|
|
39312
|
-
this.renderDocument();
|
|
39313
39031
|
}
|
|
39314
39032
|
async renderDocument() {
|
|
39315
39033
|
const domtools = await this.domtoolsPromise;
|
|
39316
|
-
const
|
|
39034
|
+
const documentBuildContainer = document.createElement("div");
|
|
39035
|
+
document.body.appendChild(documentBuildContainer);
|
|
39317
39036
|
let pages = [];
|
|
39318
39037
|
let pageCounter = 0;
|
|
39319
39038
|
let complete = false;
|
|
39320
|
-
const content3 =
|
|
39321
|
-
"dedocument-contentinvoice"
|
|
39322
|
-
);
|
|
39039
|
+
const content3 = new DeContentInvoice();
|
|
39323
39040
|
content3.letterData = this.letterData;
|
|
39324
39041
|
document.body.appendChild(content3);
|
|
39325
39042
|
await domtools.convenience.smartdelay.delayFor(0);
|
|
@@ -39336,12 +39053,7 @@ var DeDocument = class extends DeesElement {
|
|
|
39336
39053
|
newPage.pageNumber = pageCounter;
|
|
39337
39054
|
newPage.append(currentContent);
|
|
39338
39055
|
newPage.pageTotalNumber = pageCounter;
|
|
39339
|
-
|
|
39340
|
-
if (!this.printMode) {
|
|
39341
|
-
const betweenPagesSpacerDiv = document.createElement("div");
|
|
39342
|
-
betweenPagesSpacerDiv.classList.add("betweenPagesSpacer");
|
|
39343
|
-
documentContainer.append(betweenPagesSpacerDiv);
|
|
39344
|
-
}
|
|
39056
|
+
documentBuildContainer.append(newPage);
|
|
39345
39057
|
await currentContent.elementDomReady;
|
|
39346
39058
|
await currentContent.trimStartToOffset(overallContentOffset);
|
|
39347
39059
|
let newPageOverflows = await newPage.checkOverflow();
|
|
@@ -39359,8 +39071,20 @@ var DeDocument = class extends DeesElement {
|
|
|
39359
39071
|
console.log(currentContentOffset);
|
|
39360
39072
|
}
|
|
39361
39073
|
document.body.removeChild(content3);
|
|
39074
|
+
document.body.removeChild(documentBuildContainer);
|
|
39075
|
+
const documentContainer = this.shadowRoot.querySelector(".documentContainer");
|
|
39076
|
+
if (documentContainer) {
|
|
39077
|
+
const children2 = Array.from(documentContainer.children);
|
|
39078
|
+
children2.forEach((child) => documentContainer.removeChild(child));
|
|
39079
|
+
}
|
|
39362
39080
|
for (const page of pages) {
|
|
39363
39081
|
page.pageTotalNumber = pageCounter;
|
|
39082
|
+
documentContainer.append(page);
|
|
39083
|
+
if (!this.printMode) {
|
|
39084
|
+
const betweenPagesSpacerDiv = document.createElement("div");
|
|
39085
|
+
betweenPagesSpacerDiv.classList.add("betweenPagesSpacer");
|
|
39086
|
+
documentContainer.appendChild(betweenPagesSpacerDiv);
|
|
39087
|
+
}
|
|
39364
39088
|
}
|
|
39365
39089
|
this.adjustDePageScaling();
|
|
39366
39090
|
this.latestRenderedLetterData = this.letterData;
|