@verdocs/web-sdk 1.16.5 → 2.0.0
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/{TemplateStore-50096591.js → TemplateStore-cd05c035.js} +1 -1
- package/dist/cjs/{VerdocsEndpoint-9aec53cd.js → VerdocsEndpoint-2ff96f90.js} +25 -0
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-9def2535.js → popper-d7adcfc6.js} +6 -12
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +71 -15
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/{verdocs-button-panel_3.cjs.entry.js → verdocs-button-panel_2.cjs.entry.js} +3 -20
- package/dist/cjs/{verdocs-checkbox_4.cjs.entry.js → verdocs-checkbox_5.cjs.entry.js} +21 -3
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +89 -82
- package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +5 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +20 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +62 -14
- package/dist/components/VerdocsEndpoint.js +25 -0
- package/dist/components/popper.js +6 -12
- package/dist/components/verdocs-auth.js +79 -17
- package/dist/components/verdocs-status-indicator2.js +88 -81
- package/dist/components/verdocs-text-input2.js +5 -3
- package/dist/custom-elements.json +1894 -0
- package/dist/docs.json +24 -13
- package/dist/esm/{TemplateStore-bc248c04.js → TemplateStore-dcfb68c3.js} +1 -1
- package/dist/esm/{VerdocsEndpoint-f65843b9.js → VerdocsEndpoint-e447b318.js} +25 -0
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popper-bfa25c7f.js → popper-15e448b4.js} +6 -12
- package/dist/esm/verdocs-activity-box.entry.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +71 -15
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/{verdocs-button-panel_3.entry.js → verdocs-button-panel_2.entry.js} +4 -20
- package/dist/esm/{verdocs-checkbox_4.entry.js → verdocs-checkbox_5.entry.js} +21 -4
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-pagination_3.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +2 -2
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +2 -2
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +89 -82
- package/dist/esm/verdocs-template-attachments_2.entry.js +2 -2
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
- package/dist/esm/verdocs-template-fields_4.entry.js +2 -2
- package/dist/esm/verdocs-template-name.entry.js +2 -2
- package/dist/esm/verdocs-template-reminders.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-visibility.entry.js +2 -2
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{TemplateStore-bc248c04.js → TemplateStore-dcfb68c3.js} +1 -1
- package/dist/esm-es5/{VerdocsEndpoint-f65843b9.js → VerdocsEndpoint-e447b318.js} +1 -1
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -0
- package/dist/esm-es5/{verdocs-checkbox_4.entry.js → verdocs-checkbox_5.entry.js} +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +4 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +7 -1
- package/dist/types/components.d.ts +8 -0
- package/dist/verdocs-web-sdk/{p-0dec6856.entry.js → p-006dd4da.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1ea3fe3d.entry.js → p-0378a336.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-93a1f0c7.entry.js → p-0527ab90.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7f78860a.system.entry.js → p-065babe0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-004ec0ae.entry.js → p-0df85bd4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3ad53326.system.entry.js → p-118a14fe.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-189606f5.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-592f4249.entry.js → p-1ade993c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2f20c091.entry.js → p-1f592fb0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-223e5517.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3add7514.system.entry.js → p-25fdc669.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8c8e0f2b.system.entry.js → p-26417803.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3422705a.entry.js → p-268fe01c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4cc14862.entry.js → p-2a130b90.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f03d1e3b.entry.js → p-2b404e29.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3443e511.system.entry.js → p-2b7b500b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-36d42438.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-80149a45.entry.js → p-3e9c4c8a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad4d8802.system.entry.js → p-434dd9d9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-52300880.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-98bd4b4f.entry.js → p-5255e6f7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-70812806.system.entry.js → p-57e55966.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9a582e91.entry.js → p-59e55e05.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-92a36e56.system.entry.js → p-5fd70b07.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-c1c252b5.system.entry.js → p-6995a8d8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e54ac802.system.entry.js → p-6a67a872.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2985bb3e.system.entry.js → p-6c60927e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-df1b0ed6.system.entry.js → p-787289cc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-84ed9bf2.system.entry.js → p-78b7499c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d2c9b8a.system.entry.js → p-80ead6ca.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-282e1d70.entry.js → p-81bfb9ee.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a3698582.system.entry.js → p-87232ec1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f2dfb0c4.entry.js → p-899f9d42.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-45cda07e.entry.js → p-9044fd88.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0bc0e0e1.system.entry.js → p-90565aa6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3c889a0a.entry.js → p-90a11750.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7589ac5e.system.entry.js → p-9488e048.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b78a0d6a.system.entry.js → p-9c25c1d4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d8f1b3af.system.js → p-a4129b09.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-a8cf70dd.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d0910a5d.entry.js → p-a8eb011c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-818941f3.system.entry.js → p-abfb25bc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fd40e5ab.system.entry.js → p-ac58a89b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ce0362cd.system.entry.js → p-b42c686d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6d442326.system.entry.js → p-b49887e6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-79ddf1a7.entry.js → p-b7b48889.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5fcd1f65.system.entry.js → p-b8036fd4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e72313cc.entry.js → p-bdea2ff9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b0ec1235.entry.js → p-be8ff081.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-23046e75.system.entry.js → p-c0e4c58b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-86652c3f.system.entry.js → p-c212eac2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2a1f413b.system.entry.js → p-c2eb64ad.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ff6e046.entry.js → p-c7cebd38.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-004e9c9b.entry.js → p-c893c9e3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e591fe98.entry.js → p-c8a1de2c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d240bf31.entry.js → p-d278b481.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-50b62a6f.entry.js → p-d3f3c09a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9a8d5562.entry.js → p-d583e91b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3fa63a12.system.js → p-d808a494.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-69462ccd.js → p-e06d9588.js} +1 -1
- package/dist/verdocs-web-sdk/p-e4b3e134.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1071b04a.system.entry.js → p-e63f1a46.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7f8a8798.system.entry.js → p-e9c00342.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-130f3a72.entry.js → p-ea5cec2d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-eddc727f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-2526d836.js → p-ee6f2dd3.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +8 -8
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-32eed336.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4ab54e29.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4ed347fe.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6d6b57c4.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d5c75638.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e0005281.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-fcf2a8ed.entry.js +0 -1
- /package/dist/esm-es5/{popper-bfa25c7f.js → popper-15e448b4.js} +0 -0
- /package/dist/verdocs-web-sdk/{p-9d707f6e.js → p-7c0dcd00.js} +0 -0
- /package/dist/verdocs-web-sdk/{p-5e0c6e7c.system.js → p-9a5ff58c.system.js} +0 -0
@@ -96,10 +96,10 @@ function proportionalSize(element, width, height, box) {
|
|
96
96
|
height: height
|
97
97
|
};
|
98
98
|
}
|
99
|
-
/**
|
100
|
-
* This function adds support for string origins.
|
101
|
-
* It searches for an origin in o.origin o.ox and o.originX.
|
102
|
-
* This way, origin: {x: 'center', y: 50} can be passed as well as ox: 'center', oy: 50
|
99
|
+
/**
|
100
|
+
* This function adds support for string origins.
|
101
|
+
* It searches for an origin in o.origin o.ox and o.originX.
|
102
|
+
* This way, origin: {x: 'center', y: 50} can be passed as well as ox: 'center', oy: 50
|
103
103
|
**/
|
104
104
|
|
105
105
|
function getOrigin(o, element) {
|
@@ -186,7 +186,7 @@ function makeInstance(element, isHTML = false) {
|
|
186
186
|
wrapper.innerHTML = element; // We can use firstChild here because we know,
|
187
187
|
// that the first char is < and thus an element
|
188
188
|
|
189
|
-
element = adopter(wrapper.firstChild); // make sure, that element
|
189
|
+
element = adopter(wrapper.firstChild); // make sure, that element doesn't have its wrapper attached
|
190
190
|
|
191
191
|
wrapper.removeChild(wrapper.firstChild);
|
192
192
|
return element;
|
@@ -657,8 +657,8 @@ class Color {
|
|
657
657
|
static isRgb(color) {
|
658
658
|
return color && typeof color.r === 'number' && typeof color.g === 'number' && typeof color.b === 'number';
|
659
659
|
}
|
660
|
-
/*
|
661
|
-
Generating random colors
|
660
|
+
/*
|
661
|
+
Generating random colors
|
662
662
|
*/
|
663
663
|
|
664
664
|
|
@@ -900,8 +900,8 @@ class Color {
|
|
900
900
|
const color = new Color(l, c, h, 'lch');
|
901
901
|
return color;
|
902
902
|
}
|
903
|
-
/*
|
904
|
-
Conversion Methods
|
903
|
+
/*
|
904
|
+
Conversion Methods
|
905
905
|
*/
|
906
906
|
|
907
907
|
|
@@ -1061,8 +1061,8 @@ class Color {
|
|
1061
1061
|
const color = new Color(x, y, z, 'xyz');
|
1062
1062
|
return color;
|
1063
1063
|
}
|
1064
|
-
/*
|
1065
|
-
Input and Output methods
|
1064
|
+
/*
|
1065
|
+
Input and Output methods
|
1066
1066
|
*/
|
1067
1067
|
|
1068
1068
|
|
@@ -1082,8 +1082,8 @@ class Color {
|
|
1082
1082
|
|
1083
1083
|
return [_a, _b, _c].map(format);
|
1084
1084
|
}
|
1085
|
-
/*
|
1086
|
-
Constructing colors
|
1085
|
+
/*
|
1086
|
+
Constructing colors
|
1087
1087
|
*/
|
1088
1088
|
|
1089
1089
|
|
@@ -1148,7 +1148,7 @@ class Point {
|
|
1148
1148
|
|
1149
1149
|
}
|
1150
1150
|
function point(x, y) {
|
1151
|
-
return new Point(x, y).
|
1151
|
+
return new Point(x, y).transformO(this.screenCTM().inverseO());
|
1152
1152
|
}
|
1153
1153
|
|
1154
1154
|
function closeEnough(a, b, threshold) {
|
@@ -1173,7 +1173,7 @@ class Matrix {
|
|
1173
1173
|
const theta = o.rotate || o.theta || 0;
|
1174
1174
|
const origin = new Point(o.origin || o.around || o.ox || o.originX, o.oy || o.originY);
|
1175
1175
|
const ox = origin.x;
|
1176
|
-
const oy = origin.y; // We need Point to be invalid if nothing was passed because we cannot default to 0 here.
|
1176
|
+
const oy = origin.y; // We need Point to be invalid if nothing was passed because we cannot default to 0 here. That is why NaN
|
1177
1177
|
|
1178
1178
|
const position = new Point(o.position || o.px || o.positionX || NaN, o.py || o.positionY || NaN);
|
1179
1179
|
const px = position.x;
|
@@ -1538,7 +1538,7 @@ class Matrix {
|
|
1538
1538
|
|
1539
1539
|
if (isFinite(t.px) || isFinite(t.py)) {
|
1540
1540
|
const origin = new Point(ox, oy).transform(transformer); // TODO: Replace t.px with isFinite(t.px)
|
1541
|
-
//
|
1541
|
+
// Doesn't work because t.px is also 0 if it wasn't passed
|
1542
1542
|
|
1543
1543
|
const dx = isFinite(t.px) ? t.px - origin.x : 0;
|
1544
1544
|
const dy = isFinite(t.py) ? t.py - origin.y : 0;
|
@@ -1577,9 +1577,9 @@ function ctm() {
|
|
1577
1577
|
return new Matrix(this.node.getCTM());
|
1578
1578
|
}
|
1579
1579
|
function screenCTM() {
|
1580
|
-
/* https://bugzilla.mozilla.org/show_bug.cgi?id=1344537
|
1581
|
-
This is needed because FF does not return the transformation matrix
|
1582
|
-
for the inner coordinate system when getScreenCTM() is called on nested svgs.
|
1580
|
+
/* https://bugzilla.mozilla.org/show_bug.cgi?id=1344537
|
1581
|
+
This is needed because FF does not return the transformation matrix
|
1582
|
+
for the inner coordinate system when getScreenCTM() is called on nested svgs.
|
1583
1583
|
However all other Browsers do that */
|
1584
1584
|
if (typeof this.isRoot === 'function' && !this.isRoot()) {
|
1585
1585
|
const rect = this.rect(1, 1);
|
@@ -1779,7 +1779,7 @@ registerMethods({
|
|
1779
1779
|
// that means, their clientRect is always as big as the content.
|
1780
1780
|
// Furthermore this size is incorrect if the element is further transformed by its parents
|
1781
1781
|
// computedStyle: Only returns meaningful values if css was used with px. We dont go this route here!
|
1782
|
-
// getBBox: returns the bounding box of its content - that
|
1782
|
+
// getBBox: returns the bounding box of its content - that doesn't help!
|
1783
1783
|
let {
|
1784
1784
|
width,
|
1785
1785
|
height
|
@@ -2344,11 +2344,18 @@ class Dom extends EventTarget {
|
|
2344
2344
|
} // Clone element
|
2345
2345
|
|
2346
2346
|
|
2347
|
-
clone(deep = true) {
|
2347
|
+
clone(deep = true, assignNewIds = true) {
|
2348
2348
|
// write dom data to the dom so the clone can pickup the data
|
2349
|
-
this.writeDataToDom(); // clone element
|
2349
|
+
this.writeDataToDom(); // clone element
|
2350
2350
|
|
2351
|
-
|
2351
|
+
let nodeClone = this.node.cloneNode(deep);
|
2352
|
+
|
2353
|
+
if (assignNewIds) {
|
2354
|
+
// assign new id
|
2355
|
+
nodeClone = assignNewId(nodeClone);
|
2356
|
+
}
|
2357
|
+
|
2358
|
+
return new this.constructor(nodeClone);
|
2352
2359
|
} // Iterates over all children and invokes a given block
|
2353
2360
|
|
2354
2361
|
|
@@ -2433,7 +2440,7 @@ class Dom extends EventTarget {
|
|
2433
2440
|
if (!parent.node.parentNode) return null; // get parent element
|
2434
2441
|
|
2435
2442
|
parent = adopt(parent.node.parentNode);
|
2436
|
-
if (!type) return parent; // loop
|
2443
|
+
if (!type) return parent; // loop through ancestors if type is given
|
2437
2444
|
|
2438
2445
|
do {
|
2439
2446
|
if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent;
|
@@ -3157,7 +3164,7 @@ class Gradient extends Container {
|
|
3157
3164
|
}
|
3158
3165
|
|
3159
3166
|
targets() {
|
3160
|
-
return baseFind('svg [fill*=
|
3167
|
+
return baseFind('svg [fill*=' + this.id() + ']');
|
3161
3168
|
} // Alias string conversion to fill
|
3162
3169
|
|
3163
3170
|
|
@@ -3179,7 +3186,7 @@ class Gradient extends Container {
|
|
3179
3186
|
|
3180
3187
|
|
3181
3188
|
url() {
|
3182
|
-
return 'url(
|
3189
|
+
return 'url(#' + this.id() + ')';
|
3183
3190
|
}
|
3184
3191
|
|
3185
3192
|
}
|
@@ -3218,7 +3225,7 @@ class Pattern extends Container {
|
|
3218
3225
|
}
|
3219
3226
|
|
3220
3227
|
targets() {
|
3221
|
-
return baseFind('svg [fill*=
|
3228
|
+
return baseFind('svg [fill*=' + this.id() + ']');
|
3222
3229
|
} // Alias string conversion to fill
|
3223
3230
|
|
3224
3231
|
|
@@ -3240,7 +3247,7 @@ class Pattern extends Container {
|
|
3240
3247
|
|
3241
3248
|
|
3242
3249
|
url() {
|
3243
|
-
return 'url(
|
3250
|
+
return 'url(#' + this.id() + ')';
|
3244
3251
|
}
|
3245
3252
|
|
3246
3253
|
}
|
@@ -3595,10 +3602,10 @@ registerMethods({
|
|
3595
3602
|
});
|
3596
3603
|
register(Marker, 'Marker');
|
3597
3604
|
|
3598
|
-
/***
|
3599
|
-
Base Class
|
3600
|
-
==========
|
3601
|
-
The base stepper class that will be
|
3605
|
+
/***
|
3606
|
+
Base Class
|
3607
|
+
==========
|
3608
|
+
The base stepper class that will be
|
3602
3609
|
***/
|
3603
3610
|
|
3604
3611
|
function makeSetterGetter(k, f) {
|
@@ -3691,9 +3698,9 @@ class Stepper {
|
|
3691
3698
|
}
|
3692
3699
|
|
3693
3700
|
}
|
3694
|
-
/***
|
3695
|
-
Easing Functions
|
3696
|
-
================
|
3701
|
+
/***
|
3702
|
+
Easing Functions
|
3703
|
+
================
|
3697
3704
|
***/
|
3698
3705
|
|
3699
3706
|
class Ease extends Stepper {
|
@@ -3711,9 +3718,9 @@ class Ease extends Stepper {
|
|
3711
3718
|
}
|
3712
3719
|
|
3713
3720
|
}
|
3714
|
-
/***
|
3715
|
-
Controller Types
|
3716
|
-
================
|
3721
|
+
/***
|
3722
|
+
Controller Types
|
3723
|
+
================
|
3717
3724
|
***/
|
3718
3725
|
|
3719
3726
|
class Controller extends Stepper {
|
@@ -5034,15 +5041,15 @@ class Timeline extends EventTarget {
|
|
5034
5041
|
|
5035
5042
|
this._lastStepTime = this._time;
|
5036
5043
|
this.fire('time', this._time); // This is for the case that the timeline was seeked so that the time
|
5037
|
-
// is now before the startTime of the runner.
|
5044
|
+
// is now before the startTime of the runner. That is why we need to set
|
5038
5045
|
// the runner to position 0
|
5039
5046
|
// FIXME:
|
5040
|
-
// However,
|
5047
|
+
// However, resetting in insertion order leads to bugs. Considering the case,
|
5041
5048
|
// where 2 runners change the same attribute but in different times,
|
5042
|
-
//
|
5049
|
+
// resetting both of them will lead to the case where the later defined
|
5043
5050
|
// runner always wins the reset even if the other runner started earlier
|
5044
5051
|
// and therefore should win the attribute battle
|
5045
|
-
// this can be solved by
|
5052
|
+
// this can be solved by resetting them backwards
|
5046
5053
|
|
5047
5054
|
for (let k = this._runners.length; k--;) {
|
5048
5055
|
// Get and run the current runner and ignore it if its inactive
|
@@ -5148,7 +5155,7 @@ class Runner extends EventTarget {
|
|
5148
5155
|
|
5149
5156
|
this.enabled = true;
|
5150
5157
|
this._time = 0;
|
5151
|
-
this._lastTime = 0; // At creation, the runner is in
|
5158
|
+
this._lastTime = 0; // At creation, the runner is in reset state
|
5152
5159
|
|
5153
5160
|
this._reseted = true; // Save transforms applied to this runner
|
5154
5161
|
|
@@ -5161,7 +5168,7 @@ class Runner extends EventTarget {
|
|
5161
5168
|
this._swing = false;
|
5162
5169
|
this._wait = 0;
|
5163
5170
|
this._times = 1;
|
5164
|
-
this._frameId = null; // Stores how long a runner is stored after
|
5171
|
+
this._frameId = null; // Stores how long a runner is stored after being done
|
5165
5172
|
|
5166
5173
|
this._persist = this._isDeclarative ? true : null;
|
5167
5174
|
}
|
@@ -5199,10 +5206,10 @@ class Runner extends EventTarget {
|
|
5199
5206
|
this.enabled = enabled;
|
5200
5207
|
return this;
|
5201
5208
|
}
|
5202
|
-
/*
|
5203
|
-
Private Methods
|
5204
|
-
===============
|
5205
|
-
Methods that shouldn't be used externally
|
5209
|
+
/*
|
5210
|
+
Private Methods
|
5211
|
+
===============
|
5212
|
+
Methods that shouldn't be used externally
|
5206
5213
|
*/
|
5207
5214
|
|
5208
5215
|
|
@@ -5253,11 +5260,11 @@ class Runner extends EventTarget {
|
|
5253
5260
|
this._stepper = new Ease(fn);
|
5254
5261
|
return this;
|
5255
5262
|
}
|
5256
|
-
/*
|
5257
|
-
Runner Definitions
|
5258
|
-
==================
|
5259
|
-
These methods help us define the runtime behaviour of the Runner or they
|
5260
|
-
help us make new runners from the current runner
|
5263
|
+
/*
|
5264
|
+
Runner Definitions
|
5265
|
+
==================
|
5266
|
+
These methods help us define the runtime behaviour of the Runner or they
|
5267
|
+
help us make new runners from the current runner
|
5261
5268
|
*/
|
5262
5269
|
|
5263
5270
|
|
@@ -5327,11 +5334,11 @@ class Runner extends EventTarget {
|
|
5327
5334
|
let position;
|
5328
5335
|
|
5329
5336
|
if (p == null) {
|
5330
|
-
/*
|
5331
|
-
This function converts a time to a position in the range [0, 1]
|
5332
|
-
The full explanation can be found in this desmos demonstration
|
5333
|
-
https://www.desmos.com/calculator/u4fbavgche
|
5334
|
-
The logic is slightly simplified here because we can use booleans
|
5337
|
+
/*
|
5338
|
+
This function converts a time to a position in the range [0, 1]
|
5339
|
+
The full explanation can be found in this desmos demonstration
|
5340
|
+
https://www.desmos.com/calculator/u4fbavgche
|
5341
|
+
The logic is slightly simplified here because we can use booleans
|
5335
5342
|
*/
|
5336
5343
|
// Figure out the value without thinking about the start or end time
|
5337
5344
|
const f = function (x) {
|
@@ -5363,10 +5370,10 @@ class Runner extends EventTarget {
|
|
5363
5370
|
|
5364
5371
|
return this.time(p * this.duration());
|
5365
5372
|
}
|
5366
|
-
/*
|
5367
|
-
Basic Functionality
|
5368
|
-
===================
|
5369
|
-
These methods allow us to attach basic functions to the runner directly
|
5373
|
+
/*
|
5374
|
+
Basic Functionality
|
5375
|
+
===================
|
5376
|
+
These methods allow us to attach basic functions to the runner directly
|
5370
5377
|
*/
|
5371
5378
|
|
5372
5379
|
|
@@ -5439,7 +5446,7 @@ class Runner extends EventTarget {
|
|
5439
5446
|
|
5440
5447
|
|
5441
5448
|
const declarative = this._isDeclarative;
|
5442
|
-
this.done = !declarative && !justFinished && this._time >= duration; // Runner is running. So its not in
|
5449
|
+
this.done = !declarative && !justFinished && this._time >= duration; // Runner is running. So its not in reset state anymore
|
5443
5450
|
|
5444
5451
|
this._reseted = false;
|
5445
5452
|
let converged = false; // Call initialise and the run function
|
@@ -5452,7 +5459,7 @@ class Runner extends EventTarget {
|
|
5452
5459
|
converged = this._run(declarative ? dt : position);
|
5453
5460
|
this.fire('step', this);
|
5454
5461
|
} // correct the done flag here
|
5455
|
-
//
|
5462
|
+
// declarative animations itself know when they converged
|
5456
5463
|
|
5457
5464
|
|
5458
5465
|
this.done = this.done || converged && declarative;
|
@@ -5463,10 +5470,10 @@ class Runner extends EventTarget {
|
|
5463
5470
|
|
5464
5471
|
return this;
|
5465
5472
|
}
|
5466
|
-
/*
|
5467
|
-
Runner animation methods
|
5468
|
-
========================
|
5469
|
-
Control how the animation plays
|
5473
|
+
/*
|
5474
|
+
Runner animation methods
|
5475
|
+
========================
|
5476
|
+
Control how the animation plays
|
5470
5477
|
*/
|
5471
5478
|
|
5472
5479
|
|
@@ -5553,7 +5560,7 @@ class Runner extends EventTarget {
|
|
5553
5560
|
|
5554
5561
|
_tryRetarget(method, target, extra) {
|
5555
5562
|
if (this._history[method]) {
|
5556
|
-
// if the last method
|
5563
|
+
// if the last method wasn't even initialised, throw it away
|
5557
5564
|
if (!this._history[method].caller.initialised) {
|
5558
5565
|
const index = this._queue.indexOf(this._history[method].caller);
|
5559
5566
|
|
@@ -5697,7 +5704,7 @@ registerMethods({
|
|
5697
5704
|
|
5698
5705
|
// this function searches for all runners on the element and deletes the ones
|
5699
5706
|
// which run before the current one. This is because absolute transformations
|
5700
|
-
//
|
5707
|
+
// overwrite anything anyway so there is no need to waste time computing
|
5701
5708
|
// other runners
|
5702
5709
|
_clearTransformRunnersBefore(currentRunner) {
|
5703
5710
|
this._transformationRunners.clearBefore(currentRunner.id);
|
@@ -5712,7 +5719,7 @@ registerMethods({
|
|
5712
5719
|
|
5713
5720
|
_addRunner(runner) {
|
5714
5721
|
this._transformationRunners.add(runner); // Make sure that the runner merge is executed at the very end of
|
5715
|
-
// all Animator functions.
|
5722
|
+
// all Animator functions. That is why we use immediate here to execute
|
5716
5723
|
// the merge right after all frames are run
|
5717
5724
|
|
5718
5725
|
|
@@ -5806,8 +5813,8 @@ extend(Runner, {
|
|
5806
5813
|
return this;
|
5807
5814
|
},
|
5808
5815
|
|
5809
|
-
/**
|
5810
|
-
** absolute transformations
|
5816
|
+
/**
|
5817
|
+
** absolute transformations
|
5811
5818
|
**/
|
5812
5819
|
//
|
5813
5820
|
// M v -----|-----(D M v = F v)------|-----> T v
|
@@ -5831,7 +5838,7 @@ extend(Runner, {
|
|
5831
5838
|
|
5832
5839
|
|
5833
5840
|
const isMatrix = Matrix.isMatrixLike(transforms);
|
5834
|
-
affine = transforms.affine != null ? transforms.affine : affine != null ? affine : !isMatrix; // Create a
|
5841
|
+
affine = transforms.affine != null ? transforms.affine : affine != null ? affine : !isMatrix; // Create a morpher and set its type
|
5835
5842
|
|
5836
5843
|
const morpher = new Morphable(this._stepper).type(affine ? TransformBag : Matrix);
|
5837
5844
|
let origin;
|
@@ -5945,7 +5952,7 @@ extend(Runner, {
|
|
5945
5952
|
},
|
5946
5953
|
|
5947
5954
|
_queueNumberDelta(method, to) {
|
5948
|
-
to = new SVGNumber(to); // Try to change the target if we have this method already
|
5955
|
+
to = new SVGNumber(to); // Try to change the target if we have this method already registered
|
5949
5956
|
|
5950
5957
|
if (this._tryRetarget(method, to)) return this; // Make a morpher and queue the animation
|
5951
5958
|
|
@@ -5968,7 +5975,7 @@ extend(Runner, {
|
|
5968
5975
|
},
|
5969
5976
|
|
5970
5977
|
_queueObject(method, to) {
|
5971
|
-
// Try to change the target if we have this method already
|
5978
|
+
// Try to change the target if we have this method already registered
|
5972
5979
|
if (this._tryRetarget(method, to)) return this; // Make a morpher and queue the animation
|
5973
5980
|
|
5974
5981
|
const morpher = new Morphable(this._stepper).to(to);
|
@@ -6501,7 +6508,7 @@ class ClipPath extends Container {
|
|
6501
6508
|
}
|
6502
6509
|
|
6503
6510
|
targets() {
|
6504
|
-
return baseFind('svg [clip-path*=
|
6511
|
+
return baseFind('svg [clip-path*=' + this.id() + ']');
|
6505
6512
|
}
|
6506
6513
|
|
6507
6514
|
}
|
@@ -6522,7 +6529,7 @@ registerMethods({
|
|
6522
6529
|
// use given clip or create a new one
|
6523
6530
|
const clipper = element instanceof ClipPath ? element : this.parent().clip().add(element); // apply mask
|
6524
6531
|
|
6525
|
-
return this.attr('clip-path', 'url(
|
6532
|
+
return this.attr('clip-path', 'url(#' + clipper.id() + ')');
|
6526
6533
|
},
|
6527
6534
|
|
6528
6535
|
// Unclip element
|
@@ -6730,7 +6737,7 @@ class Mask extends Container {
|
|
6730
6737
|
}
|
6731
6738
|
|
6732
6739
|
targets() {
|
6733
|
-
return baseFind('svg [mask*=
|
6740
|
+
return baseFind('svg [mask*=' + this.id() + ']');
|
6734
6741
|
}
|
6735
6742
|
|
6736
6743
|
}
|
@@ -6750,7 +6757,7 @@ registerMethods({
|
|
6750
6757
|
// use given mask or create a new one
|
6751
6758
|
const masker = element instanceof Mask ? element : this.parent().mask().add(element); // apply mask
|
6752
6759
|
|
6753
|
-
return this.attr('mask', 'url(
|
6760
|
+
return this.attr('mask', 'url(#' + masker.id() + ')');
|
6754
6761
|
},
|
6755
6762
|
|
6756
6763
|
// Unmask element
|
@@ -6931,7 +6938,7 @@ registerMethods({
|
|
6931
6938
|
return baseFind('svg textPath').filter(node => {
|
6932
6939
|
return (node.attr('href') || '').includes(this.id());
|
6933
6940
|
}); // Does not work in IE11. Use when IE support is dropped
|
6934
|
-
// return baseFind('svg textPath[*|href*=
|
6941
|
+
// return baseFind('svg textPath[*|href*=' + this.id() + ']')
|
6935
6942
|
}
|
6936
6943
|
|
6937
6944
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { d as defineCustomElement$1 } from './verdocs-help-icon2.js';
|
3
3
|
|
4
|
-
const verdocsTextInputCss = "verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input [data-lastpass-icon-root]{display:none !important}";
|
4
|
+
const verdocsTextInputCss = "verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}";
|
5
5
|
|
6
6
|
const VerdocsTextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
7
7
|
constructor() {
|
@@ -14,9 +14,10 @@ const VerdocsTextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
14
14
|
this.helpText = '';
|
15
15
|
this.type = 'text';
|
16
16
|
this.disabled = false;
|
17
|
+
this.required = false;
|
17
18
|
}
|
18
19
|
render() {
|
19
|
-
return (h(Host, { class: "input-field" }, h("label", null, this.label && h("div", { class: "input-label" }, this.label + ':'), h("input", { type: this.type, value: this.value, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete }), this.helpText && h("verdocs-help-icon", { text: this.helpText }))));
|
20
|
+
return (h(Host, { class: "input-field" }, h("label", null, this.label && (h("div", { class: "input-label" }, this.label + ':', this.required && h("span", { class: "required" }, "*"))), h("input", { type: this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete }), this.helpText && h("verdocs-help-icon", { text: this.helpText }))));
|
20
21
|
}
|
21
22
|
static get style() { return verdocsTextInputCss; }
|
22
23
|
}, [0, "verdocs-text-input", {
|
@@ -26,7 +27,8 @@ const VerdocsTextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
26
27
|
"autocomplete": [1],
|
27
28
|
"helpText": [1, "help-text"],
|
28
29
|
"type": [1],
|
29
|
-
"disabled": [4]
|
30
|
+
"disabled": [4],
|
31
|
+
"required": [4]
|
30
32
|
}]);
|
31
33
|
function defineCustomElement() {
|
32
34
|
if (typeof customElements === "undefined") {
|