@verdocs/web-sdk 4.2.113 → 4.2.115

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.
Files changed (103) hide show
  1. package/dist/{esm/format-2bf71189.js → cjs/format-0f565a28.js} +325 -719
  2. package/dist/cjs/{utils-2da37620.js → utils-c878d0c2.js} +4 -4
  3. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +2 -2
  4. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  5. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -3
  6. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +2 -2
  7. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -4
  8. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +2 -2
  9. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +7 -16068
  10. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  11. package/dist/cjs/verdocs-preview_9.cjs.entry.js +3 -3
  12. package/dist/cjs/verdocs-sign.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-templates-list.cjs.entry.js +2 -2
  15. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +1 -1
  16. package/dist/components/EnvelopeStore.js +2 -2
  17. package/dist/components/TemplateFieldStore.js +1 -1
  18. package/dist/components/TemplateRoleStore.js +1 -1
  19. package/dist/components/TemplateStore.js +2 -2
  20. package/dist/components/format.js +323 -719
  21. package/dist/components/index2.js +193 -2
  22. package/dist/components/index3.js +3692 -167
  23. package/dist/components/utils.js +4 -4
  24. package/dist/components/verdocs-envelope-sidebar.js +3 -3
  25. package/dist/components/verdocs-field-date2.js +2 -16063
  26. package/dist/components/verdocs-field-timestamp2.js +2 -2
  27. package/dist/components/verdocs-organization-card.js +2 -2
  28. package/dist/components/verdocs-template-build-tabs2.js +2 -2
  29. package/dist/components/verdocs-templates-list.js +2 -2
  30. package/dist/{cjs/format-187ebc36.js → esm/format-0771834a.js} +323 -745
  31. package/dist/esm/{utils-a79aa5dd.js → utils-0a9eb6f8.js} +4 -4
  32. package/dist/esm/verdocs-contact-picker_2.entry.js +2 -2
  33. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  34. package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -3
  35. package/dist/esm/verdocs-envelopes-list.entry.js +2 -2
  36. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -4
  37. package/dist/esm/verdocs-kba-dialog_2.entry.js +2 -2
  38. package/dist/esm/verdocs-organization-card_2.entry.js +2 -16063
  39. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  40. package/dist/esm/verdocs-preview_9.entry.js +3 -3
  41. package/dist/esm/verdocs-sign.entry.js +2 -2
  42. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
  43. package/dist/esm/verdocs-templates-list.entry.js +2 -2
  44. package/dist/esm-es5/format-0771834a.js +1 -0
  45. package/dist/esm-es5/{utils-a79aa5dd.js → utils-0a9eb6f8.js} +2 -2
  46. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  47. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  48. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  49. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  50. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  51. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  52. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  53. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  54. package/dist/esm-es5/verdocs-preview_9.entry.js +1 -1
  55. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  56. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  57. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  58. package/dist/verdocs-web-sdk/p-0ee8319c.system.entry.js +1 -0
  59. package/dist/verdocs-web-sdk/{p-522c4c25.entry.js → p-123768d7.entry.js} +1 -1
  60. package/dist/verdocs-web-sdk/{p-85f88369.system.entry.js → p-1f4feeff.system.entry.js} +1 -1
  61. package/dist/verdocs-web-sdk/p-226ae566.entry.js +1 -0
  62. package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
  63. package/dist/verdocs-web-sdk/{p-b13cfe1d.entry.js → p-3a0db043.entry.js} +1 -1
  64. package/dist/verdocs-web-sdk/p-476996a3.system.entry.js +1 -0
  65. package/dist/verdocs-web-sdk/{p-50eea95a.system.entry.js → p-66f9af42.system.entry.js} +1 -1
  66. package/dist/verdocs-web-sdk/{p-ae347813.system.js → p-7933fc15.system.js} +2 -2
  67. package/dist/verdocs-web-sdk/{p-0757a442.entry.js → p-7c233a05.entry.js} +1 -1
  68. package/dist/verdocs-web-sdk/{p-5c58db62.entry.js → p-8bd00498.entry.js} +1 -1
  69. package/dist/verdocs-web-sdk/p-8f29bffd.system.entry.js +1 -0
  70. package/dist/verdocs-web-sdk/{p-ca7ef3ff.js → p-925f6ad5.js} +1 -1
  71. package/dist/verdocs-web-sdk/{p-5588ad8b.entry.js → p-97e16d5d.entry.js} +1 -1
  72. package/dist/verdocs-web-sdk/{p-9d67be0c.system.entry.js → p-98b60918.system.entry.js} +1 -1
  73. package/dist/verdocs-web-sdk/p-9ee3f90d.entry.js +1 -0
  74. package/dist/verdocs-web-sdk/{p-43d82aaa.system.entry.js → p-a24ad229.system.entry.js} +1 -1
  75. package/dist/verdocs-web-sdk/{p-01abd683.system.entry.js → p-a583ffe0.system.entry.js} +1 -1
  76. package/dist/verdocs-web-sdk/{p-8acbd1f4.system.entry.js → p-b57446bb.system.entry.js} +1 -1
  77. package/dist/verdocs-web-sdk/{p-bc297485.system.entry.js → p-c6786b1f.system.entry.js} +1 -1
  78. package/dist/verdocs-web-sdk/{p-6631d2e4.entry.js → p-c7606304.entry.js} +1 -1
  79. package/dist/verdocs-web-sdk/p-c9063efa.entry.js +1 -0
  80. package/dist/verdocs-web-sdk/{p-707322d0.entry.js → p-d1241532.entry.js} +1 -1
  81. package/dist/verdocs-web-sdk/p-d38f1299.js +1 -0
  82. package/dist/verdocs-web-sdk/{p-2cf4f3d4.entry.js → p-d41c5eae.entry.js} +1 -1
  83. package/dist/verdocs-web-sdk/p-db854498.system.js +1 -0
  84. package/dist/verdocs-web-sdk/{p-6edb5d8c.system.entry.js → p-e0d7224c.system.entry.js} +1 -1
  85. package/dist/verdocs-web-sdk/{p-a7c89171.entry.js → p-e5b0751b.entry.js} +1 -1
  86. package/dist/verdocs-web-sdk/{p-0dc92b1c.system.entry.js → p-fd27aa1a.system.entry.js} +1 -1
  87. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  88. package/package.json +3 -3
  89. package/dist/cjs/index-5f130ec0.js +0 -5
  90. package/dist/components/index4.js +0 -3719
  91. package/dist/esm/index-0329eed3.js +0 -3
  92. package/dist/esm-es5/format-2bf71189.js +0 -1
  93. package/dist/esm-es5/index-0329eed3.js +0 -1
  94. package/dist/verdocs-web-sdk/p-09897118.entry.js +0 -1
  95. package/dist/verdocs-web-sdk/p-128e17f1.entry.js +0 -1
  96. package/dist/verdocs-web-sdk/p-12f6450a.entry.js +0 -1
  97. package/dist/verdocs-web-sdk/p-3f088fd6.system.js +0 -1
  98. package/dist/verdocs-web-sdk/p-56a7b8df.system.entry.js +0 -1
  99. package/dist/verdocs-web-sdk/p-630835f4.js +0 -1
  100. package/dist/verdocs-web-sdk/p-6c23338e.system.entry.js +0 -1
  101. package/dist/verdocs-web-sdk/p-85114f35.system.entry.js +0 -1
  102. package/dist/verdocs-web-sdk/p-edaec1b6.js +0 -1
  103. package/dist/verdocs-web-sdk/p-f24d887c.system.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
2
- import { n as format } from './format.js';
2
+ import { f as format } from './format.js';
3
3
  import { getRGBA } from '@verdocs/js-sdk';
4
4
  import { g as getTemplateRoleStore, a as getRoleIndex } from './TemplateRoleStore.js';
5
5
  import { g as getTemplateFieldStore } from './TemplateFieldStore.js';
@@ -61,7 +61,7 @@ const VerdocsFieldTimestamp = /*@__PURE__*/ proxyCustomElement(class VerdocsFiel
61
61
  const field = this.fieldStore.get('fields').find(field => field.name === fieldname);
62
62
  const { required = false, role_name = '', placeholder = '', value = '', label = '' } = field || {};
63
63
  const backgroundColor = getRGBA(getRoleIndex(this.roleStore, role_name));
64
- const formatted = format.format(new Date(value || new Date().toISOString()), FORMAT_TIMESTAMP);
64
+ const formatted = format(new Date(value || new Date().toISOString()), FORMAT_TIMESTAMP);
65
65
  if (done) {
66
66
  return h(Host, { class: { done } }, formatted);
67
67
  }
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { d as defineCustomElement$2 } from './verdocs-portal2.js';
3
- import { d as dateFns } from './index2.js';
3
+ import { f as format } from './format.js';
4
4
 
5
5
  const verdocsOrganizationCardCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-organization-card{font-family:\"Inter\", \"Barlow\", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:#ffffff;border-radius:8px;padding:7px 15px}verdocs-organization-card .icon{-ms-flex:0;flex:0;height:24px;width:24px;margin:0 14px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;height:24px;width:24px}verdocs-organization-card .content{margin-top:2px}.verdocs-org-card-popup{font-family:\"Inter\", \"Barlow\", sans-serif;background:#ffffff;border-radius:10px;width:326px;padding:20px 40px 0 40px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border:1px solid #cccccc}.verdocs-org-card-popup .popup-header-with-logo{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-header-with-logo img{max-width:300px;max-height:50px}.verdocs-org-card-popup .popup-header{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;text-transform:uppercase}.verdocs-org-card-popup .status{-webkit-transform:scale(1.5);transform:scale(1.5);width:24px;height:24px}.verdocs-org-card-popup .field{margin:0 0 20px 0}.verdocs-org-card-popup .field strong{color:#7b7b9a;display:block;margin:0 0 5px 0}.verdocs-org-card-popup .field a{color:#654dcb;text-transform:uppercase}";
6
6
  const VerdocsOrganizationCardStyle0 = verdocsOrganizationCardCss;
@@ -26,7 +26,7 @@ const VerdocsOrganizationCard$1 = /*@__PURE__*/ proxyCustomElement(class Verdocs
26
26
  console.log('Rendering org card', this.organization.thumbnail_url, this.organization);
27
27
  const fallbackIcon = BusinessIcon;
28
28
  const portalId = `verdocs-org-card-${this.organization.id}`;
29
- return (h(Host, { key: 'edcb6b648eb703e234ce904970ebb6b9723bf6aa', id: portalId }, this.organization.thumbnail_url ? h("img", { class: "icon", src: this.organization.thumbnail_url, alt: "Logo" }) : h("span", { class: "icon", innerHTML: fallbackIcon }), h("span", { key: 'd65260bd7cfa424e2a8330a8ad5937cbcae99284', class: "content" }, (_a = this.organization) === null || _a === void 0 ? void 0 : _a.name), h("verdocs-portal", { key: 'a3f9e0a6d165485782ae1be397c27dc2e385c48d', anchor: portalId }, h("div", { key: '75d61fc62badff566ba55fb6a8761cc4f8fb2220', class: "verdocs-org-card-popup", style: { display: this.hovered ? 'block' : 'none' } }, this.organization.full_logo_url ? (h("div", { class: "popup-header-with-logo" }, h("img", { src: this.organization.full_logo_url, alt: "Logo" }), h("div", { class: "title" }, (_b = this.organization) === null || _b === void 0 ? void 0 : _b.name))) : (h("div", { class: "popup-header" }, h("span", { class: "status" }, h("span", { class: "icon", innerHTML: fallbackIcon })), h("span", { class: "title" }, (_c = this.organization) === null || _c === void 0 ? void 0 : _c.name))), h("div", { key: '73ca0dec9baa6e86a8cdf8e6c0cec8acbbe167cf', class: "popup-body" }, h("div", { key: '60f5cf8c4b8a0cce6db8e1f098c700910244ca71', class: "field" }, h("strong", { key: '039e40d1a4584e17f87d18efb607a341eb47d564' }, "Joined"), dateFns.format(new Date(((_d = this.organization) === null || _d === void 0 ? void 0 : _d.created_at) || undefined), 'LLL d, Y')), this.organization.url && (h("div", { key: 'fa6f6ba48c7ab7da9a6291a132cec83b104fbf93', class: "field" }, h("strong", { key: 'd7f81707a67bc98efa25e6587027782bba74c6cd' }, "Website"), h("a", { key: 'c81679b5b296bacd5a52ed1beb9b7420b6bf81c7', href: (_e = this.organization) === null || _e === void 0 ? void 0 : _e.url, target: "_blank", rel: "nofollow" }, (_f = this.organization) === null || _f === void 0 ? void 0 : _f.url))))))));
29
+ return (h(Host, { key: 'edcb6b648eb703e234ce904970ebb6b9723bf6aa', id: portalId }, this.organization.thumbnail_url ? h("img", { class: "icon", src: this.organization.thumbnail_url, alt: "Logo" }) : h("span", { class: "icon", innerHTML: fallbackIcon }), h("span", { key: 'd65260bd7cfa424e2a8330a8ad5937cbcae99284', class: "content" }, (_a = this.organization) === null || _a === void 0 ? void 0 : _a.name), h("verdocs-portal", { key: 'a3f9e0a6d165485782ae1be397c27dc2e385c48d', anchor: portalId }, h("div", { key: '75d61fc62badff566ba55fb6a8761cc4f8fb2220', class: "verdocs-org-card-popup", style: { display: this.hovered ? 'block' : 'none' } }, this.organization.full_logo_url ? (h("div", { class: "popup-header-with-logo" }, h("img", { src: this.organization.full_logo_url, alt: "Logo" }), h("div", { class: "title" }, (_b = this.organization) === null || _b === void 0 ? void 0 : _b.name))) : (h("div", { class: "popup-header" }, h("span", { class: "status" }, h("span", { class: "icon", innerHTML: fallbackIcon })), h("span", { class: "title" }, (_c = this.organization) === null || _c === void 0 ? void 0 : _c.name))), h("div", { key: '73ca0dec9baa6e86a8cdf8e6c0cec8acbbe167cf', class: "popup-body" }, h("div", { key: '60f5cf8c4b8a0cce6db8e1f098c700910244ca71', class: "field" }, h("strong", { key: '039e40d1a4584e17f87d18efb607a341eb47d564' }, "Joined"), format(new Date(((_d = this.organization) === null || _d === void 0 ? void 0 : _d.created_at) || undefined), 'LLL d, Y')), this.organization.url && (h("div", { key: 'fa6f6ba48c7ab7da9a6291a132cec83b104fbf93', class: "field" }, h("strong", { key: 'd7f81707a67bc98efa25e6587027782bba74c6cd' }, "Website"), h("a", { key: 'c81679b5b296bacd5a52ed1beb9b7420b6bf81c7', href: (_e = this.organization) === null || _e === void 0 ? void 0 : _e.url, target: "_blank", rel: "nofollow" }, (_f = this.organization) === null || _f === void 0 ? void 0 : _f.url))))))));
30
30
  }
31
31
  static get style() { return VerdocsOrganizationCardStyle0; }
32
32
  }, [0, "verdocs-organization-card", {
@@ -6,7 +6,7 @@ import { S as SDKError } from './errors.js';
6
6
  import { d as defineCustomElement$3 } from './verdocs-button-panel2.js';
7
7
  import { d as defineCustomElement$2 } from './verdocs-component-error2.js';
8
8
  import { d as defineCustomElement$1 } from './verdocs-tabs2.js';
9
- import { d as dateFns } from './index2.js';
9
+ import { f as format } from './format.js';
10
10
 
11
11
  const verdocsTemplateBuildTabsCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-build-tabs{-ms-flex:1;flex:1;gap:15px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-build-tabs verdocs-button-panel svg{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-template-build-tabs verdocs-template-attachments,verdocs-template-build-tabs verdocs-template-roles{margin:20px}verdocs-template-build-tabs verdocs-template-fields{border-top:1px solid #777777}verdocs-template-build-tabs verdocs-template-attachments{padding:20px;background:#ffffff}verdocs-template-build-tabs verdocs-template-fields{width:100%}verdocs-template-build-tabs verdocs-preview{-ms-flex:1;flex:1}.template-details-panel .row{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:8px;margin:10px 0}.template-details-panel label{-ms-flex:0 0 70px;flex:0 0 70px}.template-details-panel .value{-ms-flex:1;flex:1;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-details-panel .icon-button{cursor:pointer;opacity:0.8;-ms-flex:0;flex:0;width:18px;height:18px}.template-details-panel .icon-button svg{stroke:#000000;width:18px;height:18px}.template-details-panel .icon-button:hover{opacity:1}";
12
12
  const VerdocsTemplateBuildTabsStyle0 = verdocsTemplateBuildTabsCss;
@@ -113,7 +113,7 @@ const VerdocsTemplateBuildTabs = /*@__PURE__*/ proxyCustomElement(class VerdocsT
113
113
  { id: 'settings', disabled: !canEditFields, label: 'Settings' },
114
114
  { id: 'fields', disabled: !canEditFields, label: 'Fields' },
115
115
  { id: 'preview', disabled: !canPreview, label: 'Preview/Send' },
116
- ] }), this.templateId && (h("div", { class: "info" }, h("verdocs-button-panel", { icon: HelpIcon }, h("div", { class: "template-details-panel" }, h("h6", null, "Template Details"), h("div", { class: "row" }, h("label", null, "ID:"), h("div", { class: "value" }, this.templateId), h("div", { class: "icon-button", innerHTML: CopyIcon, onClick: () => this.copyTemplateId() })), h("div", { class: "row" }, h("label", null, "Name:"), h("div", { class: "value" }, (_l = (_k = this.templateStore) === null || _k === void 0 ? void 0 : _k.state) === null || _l === void 0 ? void 0 : _l.name)), h("div", { class: "row" }, h("label", null, "Visibility:"), h("div", { class: "value" }, ((_o = (_m = this.templateStore) === null || _m === void 0 ? void 0 : _m.state) === null || _o === void 0 ? void 0 : _o.is_public) ? 'Public' : ((_q = (_p = this.templateStore) === null || _p === void 0 ? void 0 : _p.state) === null || _q === void 0 ? void 0 : _q.is_personal) ? 'Private' : 'Shared')), h("div", { class: "row" }, h("label", null, "Created:"), h("div", { class: "value" }, ((_s = (_r = this.templateStore) === null || _r === void 0 ? void 0 : _r.state) === null || _s === void 0 ? void 0 : _s.counter) ? dateFns.format(new Date((_u = (_t = this.templateStore) === null || _t === void 0 ? void 0 : _t.state) === null || _u === void 0 ? void 0 : _u.created_at), 'P p') : '')), h("div", { class: "row" }, h("label", null, "Used:"), h("div", { class: "value" }, (_w = (_v = this.templateStore) === null || _v === void 0 ? void 0 : _v.state) === null || _w === void 0 ? void 0 :
116
+ ] }), this.templateId && (h("div", { class: "info" }, h("verdocs-button-panel", { icon: HelpIcon }, h("div", { class: "template-details-panel" }, h("h6", null, "Template Details"), h("div", { class: "row" }, h("label", null, "ID:"), h("div", { class: "value" }, this.templateId), h("div", { class: "icon-button", innerHTML: CopyIcon, onClick: () => this.copyTemplateId() })), h("div", { class: "row" }, h("label", null, "Name:"), h("div", { class: "value" }, (_l = (_k = this.templateStore) === null || _k === void 0 ? void 0 : _k.state) === null || _l === void 0 ? void 0 : _l.name)), h("div", { class: "row" }, h("label", null, "Visibility:"), h("div", { class: "value" }, ((_o = (_m = this.templateStore) === null || _m === void 0 ? void 0 : _m.state) === null || _o === void 0 ? void 0 : _o.is_public) ? 'Public' : ((_q = (_p = this.templateStore) === null || _p === void 0 ? void 0 : _p.state) === null || _q === void 0 ? void 0 : _q.is_personal) ? 'Private' : 'Shared')), h("div", { class: "row" }, h("label", null, "Created:"), h("div", { class: "value" }, ((_s = (_r = this.templateStore) === null || _r === void 0 ? void 0 : _r.state) === null || _s === void 0 ? void 0 : _s.counter) ? format(new Date((_u = (_t = this.templateStore) === null || _t === void 0 ? void 0 : _t.state) === null || _u === void 0 ? void 0 : _u.created_at), 'P p') : '')), h("div", { class: "row" }, h("label", null, "Used:"), h("div", { class: "value" }, (_w = (_v = this.templateStore) === null || _v === void 0 ? void 0 : _v.state) === null || _w === void 0 ? void 0 :
117
117
  _w.counter, " time(s)"))))))));
118
118
  }
119
119
  static get watchers() { return {
@@ -11,7 +11,7 @@ import { d as defineCustomElement$5 } from './verdocs-quick-filter2.js';
11
11
  import { d as defineCustomElement$4 } from './verdocs-spinner2.js';
12
12
  import { d as defineCustomElement$3 } from './verdocs-template-star2.js';
13
13
  import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
14
- import { d as dateFns } from './index2.js';
14
+ import { f as format } from './format.js';
15
15
 
16
16
  const verdocsTemplatesListCss = "@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: \"Inter\", \"Barlow\", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}";
17
17
  const VerdocsTemplatesListStyle0 = verdocsTemplatesListCss;
@@ -229,7 +229,7 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTem
229
229
  return (h("div", { class: "template", onClick: () => {
230
230
  var _a;
231
231
  (_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
232
- } }, h("div", { class: "inner" }, h("verdocs-template-star", { template: template, endpoint: this.endpoint }), h("div", { class: "spacer icon-spacer" }), h("div", { class: "name" }, template.name), h("div", { class: "spacer usage-spacer" }), h("div", { class: "usage" }, h("span", { innerHTML: EnvelopeIcon, title: "Usage Counter" }), template.counter || '--'), h("div", { class: "spacer last-used-spacer" }), h("div", { class: "last-used" }, dateToShow === 'created_at' && h("span", { innerHTML: CreatedIcon, title: "Created" }), dateToShow === 'updated_at' && h("span", { innerHTML: UpdatedIcon, title: "Last Updated" }), dateToShow === 'last_used_at' && h("span", { innerHTML: LastUsedIcon, title: "Last Used" }), date ? dateFns.format(new Date(date), 'P') : 'Never'), h("div", { class: "spacer ownership-spacer" }), template.is_public && (h("div", { class: "ownership" }, h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
232
+ } }, h("div", { class: "inner" }, h("verdocs-template-star", { template: template, endpoint: this.endpoint }), h("div", { class: "spacer icon-spacer" }), h("div", { class: "name" }, template.name), h("div", { class: "spacer usage-spacer" }), h("div", { class: "usage" }, h("span", { innerHTML: EnvelopeIcon, title: "Usage Counter" }), template.counter || '--'), h("div", { class: "spacer last-used-spacer" }), h("div", { class: "last-used" }, dateToShow === 'created_at' && h("span", { innerHTML: CreatedIcon, title: "Created" }), dateToShow === 'updated_at' && h("span", { innerHTML: UpdatedIcon, title: "Last Updated" }), dateToShow === 'last_used_at' && h("span", { innerHTML: LastUsedIcon, title: "Last Used" }), date ? format(new Date(date), 'P') : 'Never'), h("div", { class: "spacer ownership-spacer" }), template.is_public && (h("div", { class: "ownership" }, h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
233
233
  }), !this.initiallyLoaded && (h("div", { key: '47313a9255707d50181d0211425c60085fa5583a' }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "template-placeholder" }))))), this.initiallyLoaded && !this.templates.length && h("div", { key: '9bb8a3dd1a35a0c742284b8bb9c8bd4f03b19680', class: "empty-text" }, "No matching templates found. Please adjust your filters and try again."), this.initiallyLoaded && this.templates.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
234
234
  this.selectedPage = e.detail.selectedPage;
235
235
  } }))) : (h("div", null)), this.confirmDelete && (h("verdocs-ok-dialog", { key: 'dc67ae619c47deca58789f3495813b78d6c90070', heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));