@stonecrop/aform 0.8.3 → 0.8.4
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/aform.js +1432 -1366
- package/dist/aform.js.map +1 -1
- package/dist/aform.umd.cjs +12 -8
- package/dist/aform.umd.cjs.map +1 -1
- package/package.json +12 -12
package/dist/aform.umd.cjs
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
(function(O,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(O=typeof globalThis<"u"?globalThis:O||self,e(O["@stonecrop/aform"]={},O.Vue,O.pinia))})(this,(function(O,e,Wt){"use strict";var rt=document.createElement("style");rt.textContent=`@import"https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap";.atable-cell{border-radius:0;box-sizing:border-box;outline:none;box-shadow:none;color:var(--sc-cell-text-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);border-spacing:0px;border-collapse:collapse;overflow:hidden;text-overflow:ellipsis;order:1;white-space:nowrap;max-width:40ch;border-top:1px solid var(--sc-row-border-color);margin:0 0 0 1px}.atable-cell a{color:var(--sc-cell-text-color);text-decoration:none}.atable-cell:focus,.atable-cell:focus-within{background-color:var(--sc-focus-cell-background);outline-width:var(--sc-atable-cell-border-width);outline-style:solid;outline-offset:calc(var(--sc-atable-cell-border-width) * -1);outline-color:var(--sc-focus-cell-outline);box-shadow:none;overflow:hidden;text-wrap:nowrap;box-sizing:border-box}.cell-modified{font-weight:700;font-style:italic}.cell-modified-highlight{background-color:var(--sc-cell-changed-color)}.row-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;display:flex;align-items:center;justify-content:center}.expandable-row{border-top:1px solid var(--sc-row-border-color);height:var(--sc-atable-row-height)}.expandable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.expanded-row{border-left:2px solid var(--sc-row-border-color)}.expandable-row:last-child{border-bottom:1px solid var(--sc-row-border-color)}.expanded-row-content{border-top:1px solid var(--sc-row-border-color);padding:1.5rem}.expandable-row.changed-row-gradient[data-v-a42297c7]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.aganttcell[data-v-8917a8a3]{background-color:#f9f9f9;width:100%;padding:0;height:100%}.gantt-container[data-v-8917a8a3]{position:relative;height:100%;background-color:#f0f0f0;border-radius:4px;overflow:visible}.gantt-bar[data-v-8917a8a3]{position:absolute;border-radius:4px;display:flex;align-items:center;justify-content:space-between;cursor:grab;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);transition:left .1s ease-out,width .1s ease-out;height:80%;top:50%;z-index:2;transform:translateY(-50%)}.gantt-bar[data-v-8917a8a3]:active{cursor:grabbing}.gantt-bar.is-dragging[data-v-8917a8a3]{z-index:10}.gantt-label[data-v-8917a8a3]{flex:1;text-align:center;font-size:12px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;-webkit-user-select:none;user-select:none}.resize-handle[data-v-8917a8a3]{position:relative;width:12px;height:100%;cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:0;background:#00000040}.left-resize-handle[data-v-8917a8a3]{border-right:1px solid rgba(0,0,0,.5)}.right-resize-handle[data-v-8917a8a3]{border-left:1px solid rgba(0,0,0,.5)}.handle-grip[data-v-8917a8a3]{width:4px;height:12px;border-radius:2px;background:#000c}.resize-handle[data-v-8917a8a3]:hover{background-color:#ffffff80}.vertical-indicator[data-v-8917a8a3]{position:absolute;width:2px;opacity:0;pointer-events:none;transition:opacity .2s ease;top:-100vh;height:100vh;z-index:5;background-color:var(--v6d722296)}.left-indicator[data-v-8917a8a3]{left:50%;transform:translate(-50%)}.right-indicator[data-v-8917a8a3]{right:50%;transform:translate(50%)}.resize-handle.is-dragging .vertical-indicator[data-v-8917a8a3]{opacity:.7}.gantt-container[data-v-8917a8a3]:after{content:"";position:absolute;inset:0;background-size:calc(100% / var(--v260b36f8)) 100%;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px);pointer-events:none;z-index:1}.connection-handle[data-v-8917a8a3]{position:absolute;top:50%;transform:translateY(-50%);width:16px;height:16px;opacity:0;transition:opacity .2s ease;cursor:crosshair;z-index:15;display:flex;align-items:center;justify-content:center}.connection-handle.visible[data-v-8917a8a3]{opacity:1}.left-connection-handle[data-v-8917a8a3]{left:-16px}.right-connection-handle[data-v-8917a8a3]{right:-16px}.connection-dot[data-v-8917a8a3]{width:8px;height:8px;border-radius:50%;background-color:#2196f3;border:2px solid white;box-shadow:0 1px 3px #0000004d}.connection-handle:hover .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.2)}.connection-handle.is-dragging[data-v-8917a8a3]{opacity:1!important}.connection-handle.is-dragging .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.3);box-shadow:0 2px 8px #2196f366}.atable-row-actions{width:2rem;min-width:2rem;padding:0 .25rem;vertical-align:middle;white-space:nowrap;border-top:1px solid var(--sc-row-border-color);background:#fff;-webkit-user-select:none;user-select:none;position:relative}.atable-row-actions.dropdown-active{z-index:500}.row-actions-icons{display:flex;gap:.25rem;align-items:center;justify-content:center}.row-action-btn{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:.125rem;border:none;background:transparent;cursor:pointer;border-radius:.25rem;transition:background-color .15s ease}.row-action-btn:hover{background-color:var(--sc-gray-10, #e5e5e5)}.row-action-btn:focus{outline:2px solid var(--sc-focus-cell-outline, #3b82f6);outline-offset:1px}.row-action-btn .action-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem}.row-action-btn .action-icon :deep(svg){width:100%;height:100%}.row-actions-dropdown{position:relative;display:inline-block}.row-actions-dropdown:has(button:focus){outline:2px solid var(--sc-focus-cell-outline);outline-offset:-2px}.row-actions-toggle{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border:none;background:transparent;cursor:pointer;border-radius:.25rem;font-size:1rem;font-weight:700;transition:background-color .15s ease}.row-actions-toggle:hover{background-color:var(--sc-gray-10, #e5e5e5)}.dropdown-icon{line-height:1}.row-actions-menu{position:fixed;z-index:9999;min-width:10rem;padding:.25rem 0;background:#fff;border:1px solid var(--sc-row-border-color);border-left:4px solid var(--sc-row-border-color);border-radius:0}.row-actions-menu.menu-flipped{box-shadow:0 -4px 6px -1px #0000001a,0 -2px 4px -2px #0000001a}.row-action-menu-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;text-align:left;font-size:.875rem;transition:background-color .15s ease}.row-action-menu-item:hover{background-color:var(--sc-gray-10, #f5f5f5)}.row-action-menu-item:focus{outline:none;background-color:var(--sc-gray-10, #f5f5f5)}.row-action-menu-item .action-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0}.row-action-menu-item .action-icon :deep(svg){width:100%;height:100%}.row-action-menu-item .action-label{flex:1}.atable-row{background-color:#fff}.atable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.list-index{color:var(--sc-header-text-color);font-weight:700;padding-left:var(--sc-atable-row-padding);padding-right:.5em;text-align:left;-webkit-user-select:none;user-select:none;border-top:1px solid var(--sc-row-border-color);text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.tree-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.atable-row:has(td.cell-modified)>td.sticky-column,.atable-row:has(td.cell-modified)>th.sticky-column,.atable-row:has(td.cell-modified)>td.sticky-index,.atable-row:has(td.cell-modified)>th.sticky-index{background:var(--sc-cell-changed-color)}.atable-row.changed-row-gradient[data-v-c35a3748]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.gantt-connection-overlay[data-v-71911260]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.connection-path[data-v-71911260]{transition:stroke-width .2s ease;pointer-events:auto;cursor:pointer;stroke-dasharray:5px;stroke:var(--sc-cell-text-color)}#arrowhead-marker polygon[data-v-71911260]{fill:var(--sc-cell-text-color)}.animated-path[data-v-71911260]{animation:animated-dash-71911260 infinite 1.5s linear}.connection-path[data-v-71911260]:hover{stroke-width:3px}.connection-hitbox[data-v-71911260]{pointer-events:auto;cursor:pointer}@keyframes animated-dash-71911260{0%{stroke-dashoffset:0px}to{stroke-dashoffset:-10px}}.column-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;width:100%}.filter-input[data-v-8487462d],.filter-select[data-v-8487462d]{background-color:var(--sc-form-background)!important;padding:.15rem .2rem;border:1px solid var(--sc-form-border);border-radius:3px;font-size:.875rem;color:var(--sc-text-color);width:100%;box-sizing:border-box}.filter-input[data-v-8487462d]:focus,.filter-select[data-v-8487462d]:focus{outline:none;border-color:var(--sc-input-active-border-color)}.checkbox-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;font-size:.875rem;color:var(--sc-text-color);cursor:pointer}.filter-checkbox[data-v-8487462d]{margin:0}.date-range-filter[data-v-8487462d]{display:flex;gap:.25rem;align-items:center;width:100%}.date-range-filter .filter-input[data-v-8487462d]{flex:1;min-width:0}.date-separator[data-v-8487462d]{color:var(--sc-gray-50);font-weight:500;padding:0 .25rem;flex-shrink:0}.clear-btn[data-v-8487462d]{background:var(--sc-gray-10, #f0f0f0);border:1px solid var(--sc-form-border);border-radius:3px;color:var(--sc-gray-70);cursor:pointer;font-size:1rem;padding:.15rem .4rem;line-height:1;flex-shrink:0}.atable-header-row th{padding-left:.5ch!important;font-weight:700;min-width:3ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);box-sizing:border-box;color:var(--sc-header-text-color);position:relative}#header-index{padding-left:var(--sc-atable-row-padding);box-sizing:border-box;border-top:none}.tree-index{padding-right:0}th{order:1}.list-expansion-index{width:2ch;margin-left:5px}.cursor-pointer{cursor:pointer}.atable-filters-row th{padding:.25rem .5ch;vertical-align:top}.row-actions-header{width:2rem;min-width:2rem;padding:0 .25rem}:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.amodal{position:absolute;background-color:var(--sc-row-color-zebra-dark);z-index:5}.atable-container{position:relative}.sticky-index{position:sticky;left:0;z-index:10;order:0}.sticky-column,th.sticky-column,td.sticky-column,th.sticky-index,td.sticky-index{position:sticky;z-index:10;order:0;background:#fff}.sticky-column-edge,.atable th.sticky-column-edge{border-right:1px solid var(--sc-row-border-color)}[data-v-3d00d51b]:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.atable[data-v-3d00d51b]{position:relative;font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);border-collapse:collapse;box-sizing:border-box;table-layout:auto;width:auto;overflow:clip;height:1px}.atable th[data-v-3d00d51b]{border-width:0px;border-style:solid;border-radius:0;padding-left:.5ch;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);color:var(--sc-gray-60);height:var(--sc-atable-row-height);font-weight:300;letter-spacing:.05rem;order:1;box-sizing:border-box}.atable th[data-v-3d00d51b]:focus{outline:none}.atable[data-v-3d00d51b]:tbody{overflow:hidden;position:relative}.atable[data-v-3d00d51b]:tbody:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:transparent;z-index:100}.aloading[data-v-a930a25b]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-a930a25b]{width:100%;height:100%;position:absolute;left:-100%;top:0;background:linear-gradient(90deg,rgba(var(--sc-table-loading-color),0),rgba(var(--sc-table-loading-color),1),rgba(var(--sc-table-loading-color),0));animation:gradient-a930a25b infinite 2s;z-index:0}.aloading-header[data-v-a930a25b]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-a930a25b]:after{content:"...";animation:ellipse-a930a25b 2s;animation-iteration-count:infinite}@keyframes gradient-a930a25b{0%{left:-100%}to{left:100%}}@keyframes ellipse-a930a25b{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aloading[data-v-e1165876]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-e1165876]{width:50%;height:3px;position:absolute;left:-100%;bottom:0;background:var(--sc-row-border-color);animation:bar-left-e1165876 infinite 2s;z-index:0}.aloading-header[data-v-e1165876]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-e1165876]:after{content:"...";animation:ellipse-e1165876 2s;animation-iteration-count:infinite}@keyframes bar-left-e1165876{0%{left:-50%}to{left:100%}}@keyframes ellipse-e1165876{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aform_checkbox[data-v-f13fd4d6]{cursor:pointer;width:auto;margin-top:0;display:block}.aform_checkbox[data-v-f13fd4d6]:checked{accent-color:var(--sc-primary-color);border:1px solid black}.aform_checkbox-container[data-v-f13fd4d6]{width:100%;display:inline-block;text-align:left}.aform_checkbox-container input[data-v-f13fd4d6]{width:auto}.aform_checkbox-container:hover+.aform_field-label[data-v-f13fd4d6]{color:var(--sc-input-active-label-color)}div[data-v-a15ed922]{min-width:40ch;width:100%;box-sizing:border-box;border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-a15ed922]{width:calc(100% - 1ch);box-sizing:border-box;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}p[data-v-a15ed922],label[data-v-a15ed922]{color:var(--sc-input-label-color);display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;box-sizing:border-box}p[data-v-a15ed922]{width:100%;color:red;font-size:85%;box-sizing:border-box}label[data-v-a15ed922]{z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch;box-sizing:border-box}input[data-v-a15ed922]:focus{border:1px solid var(--sc-input-active-border-color)}input:focus+label[data-v-a15ed922]{color:var(--sc-input-active-label-color)}.autocomplete[data-v-31a6db8c]{position:relative}.input-wrapper[data-v-31a6db8c]{border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-31a6db8c]{width:calc(100% - 1ch);outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}input[data-v-31a6db8c]:focus{border:1px solid var(--sc-input-active-border-color);border-radius:.25rem .25rem 0 0;border-bottom:none}label[data-v-31a6db8c]{display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch}.autocomplete-results[data-v-31a6db8c]{position:absolute;width:calc(100% - 1ch + 1.5px);z-index:999;padding:0;margin:0;color:var(--sc-input-active-border-color);border:1px solid var(--sc-input-active-border-color);border-radius:0 0 .25rem .25rem;border-top:none;background-color:#fff}.autocomplete-result[data-v-31a6db8c]{list-style:none;text-align:left;padding:4px 6px;cursor:pointer;border-bottom:.5px solid lightgray}.autocomplete-result.is-active[data-v-31a6db8c],.autocomplete-result[data-v-31a6db8c]:hover{background-color:var(--sc-row-color-zebra-light);color:var(--sc-input-active-border-color)}.adatepicker[data-v-056d2b5e]{font-size:var(--sc-table-font-size);display:inline-table;color:var(--sc-cell-text-color);outline:none;border-collapse:collapse}.adatepicker tr[data-v-056d2b5e]{height:1.15rem;text-align:center;vertical-align:middle}.adatepicker td[data-v-056d2b5e]{border:2px solid transparent;outline:2px solid transparent;min-width:3ch;max-width:3ch}.adatepicker td[data-v-056d2b5e]:focus,.adatepicker td[data-v-056d2b5e]:focus-within{outline:1px dashed black;box-shadow:none;min-height:1.15em;max-height:1.15em;overflow:hidden}.adatepicker .selectedDate[data-v-056d2b5e]{outline:1px solid black;background:var(--sc-gray-20);font-weight:bolder}.adatepicker .todaysDate[data-v-056d2b5e]{font-weight:bolder;text-decoration:underline;color:#000}.days-header>td[data-v-056d2b5e]{font-weight:700}.prev-date[data-v-056d2b5e]{color:var(--sc-gray-20)}.collapse-button[data-v-6f1c1b45]{width:2ch;min-width:calc(66px - 4ch);background-color:transparent;font-size:150%;text-align:center;border:none;margin-top:-.5rem}.rotated[data-v-6f1c1b45]{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transition:transform .25s;transform-origin:center center}.unrotated[data-v-6f1c1b45]{transform:rotate(0);-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transition:transform .25s}.aform_form-element{padding:0;margin:0;position:relative;box-sizing:border-box;flex-grow:1;min-width:20ch;margin-bottom:1rem}.aform_input-field{outline:1px solid var(--sc-input-border-color);outline-offset:-1px;font-size:1rem;padding:.5rem;margin:0;border-radius:0;box-sizing:border-box;width:100%;min-height:auto;position:relative;color:var(--sc-cell-text-color);background:var(--sc-input-field-background)}.aform_input-field:focus{outline:1px solid var(--sc-input-active-border-color)}.aform_input-field:focus+.aform_field-label{color:var(--sc-input-active-label-color)}.aform_field-label{color:var(--sc-input-label-color);display:inline-block;position:absolute;padding:0 .25rem;margin:0rem;z-index:2;font-size:.7rem;font-weight:300;letter-spacing:.05rem;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);width:auto;box-sizing:border-box;background:#fff;margin:0;grid-row:1;top:0;left:10px;border:none;line-height:0;transform:translateY(-50%)}.aform_input-field:disabled{background:var(--sc-input-field-disabled-background)}.aform_input-field:disabled+.aform_field-label{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_input-field:disabled~p.aform_error{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_field-label:after{margin:0;padding:0;box-sizing:border-box;content:"";line-height:normal}p.aform_error{display:block;display:inline-block;display:none;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);padding:0 .25rem;margin:0rem;width:auto;color:var(--sc-brand-danger);font-size:.7rem;position:absolute;right:0;top:0;line-height:0;background:#fff;padding:.25rem;transform:translate(-1rem,-50%);margin:0}.aform[data-v-06e17c5b]{display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--sc-form-border);border-left:4px solid var(--sc-form-border);margin-bottom:1rem;max-width:100%}@media screen and (max-width:400px){.aform[data-v-06e17c5b]{flex-direction:column}}.aform-nested-section[data-v-06e17c5b]{width:100%;padding:.5rem 0}.aform-nested-label[data-v-06e17c5b]{font-size:.9rem;font-weight:600;margin:0 0 .5rem;color:var(--sc-input-label-color, #666)}.aform-nested-section .aform[data-v-06e17c5b]{border-left-width:2px;margin-left:.5rem}fieldset[data-v-18fd6c61]{max-width:100%;width:100%;margin-right:2ch;border:1px solid transparent;border-bottom:1px solid var(--sc-gray-50)}legend[data-v-18fd6c61]{width:100%;height:1.15rem;border:1px solid transparent;padding-bottom:.5rem;font-size:110%;font-weight:600;-webkit-user-select:none;user-select:none}.collapse-button[data-v-18fd6c61]{float:right}.aform_file-attach[data-v-b700734f]{padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;flex-direction:row;justify-content:center;align-items:center;border:1px dashed var(--sc-input-border-color);width:100%}@media screen and (max-width:400px){.aform_file-attach>.aform_form-btn[data-v-b700734f]{width:100%}}.aform_file-attach-feedback[data-v-b700734f]{color:var(--sc-input-label-color);width:100%;padding:.5rem;text-align:center;align-self:center}.aform_file-attach-feedback>li[data-v-b700734f]{list-style:none;font-style:italic}.aform_file-attach-feedback>p[data-v-b700734f]{margin-top:0}.aform_form-btn[data-v-b700734f]{padding:.5rem 2rem;width:auto;border:1px solid var(--sc-input-border-color);color:var(--sc-input-label-color);cursor:pointer;background-color:#fff}.aform_form-btn[data-v-b700734f]:disabled{background-color:var(--sc-gray-5)}.login-container[data-v-d9ffd0a7]{width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--sc-font-family)}.account-container[data-v-d9ffd0a7]{width:100%;margin-left:auto;margin-top:.5rem;margin-right:auto;display:flex;flex-direction:column;justify-content:center}.account-header[data-v-d9ffd0a7]{display:flex;flex-direction:column;text-align:center;margin-top:.5rem}#account-title[data-v-d9ffd0a7]{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.025em;margin:0}#account-subtitle[data-v-d9ffd0a7]{font-size:.875rem;line-height:1.25rem;margin:1rem}.login-form-container[data-v-d9ffd0a7]{display:grid;gap:.5rem}.login-form-element[data-v-d9ffd0a7]{display:grid;margin:.5rem 0;position:relative}.login-field[data-v-d9ffd0a7]{padding:.5rem .25rem .25rem .5rem;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);border-radius:.25rem}.login-field[data-v-d9ffd0a7]:focus{border:1px solid black}.btn[data-v-d9ffd0a7]{background-color:var(--sc-btn-color);color:var(--sc-btn-label-color);border:1px solid var(--sc-btn-border);margin:.5rem 0;padding:.25rem;position:relative;cursor:pointer}.btn[data-v-d9ffd0a7]:hover{background-color:var(--sc-btn-hover)}.btn[data-v-d9ffd0a7]:disabled{background-color:var(--sc-input-field-disabled-background)}.disabled[data-v-d9ffd0a7]{opacity:.5}.loading-icon[data-v-d9ffd0a7]{animation:spin-d9ffd0a7 1s linear infinite forwards;display:inline-block;margin-right:.2rem;line-height:0;font-size:1rem;position:relative;top:.2rem}@keyframes spin-d9ffd0a7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(rt);function it(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const Gt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ut=t=>t!=null,qt=Object.prototype.toString,Yt=t=>qt.call(t)==="[object Object]",Xt=()=>{};function ge(t){return Array.isArray(t)?t:[t]}function Jt(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const le=Gt?window:void 0;function re(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function de(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=ge(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return Jt(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>re(s)))!==null&&a!==void 0?a:[le].filter(s=>s!=null),ge(e.toValue(n.value?t[1]:t[0])),ge(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=Yt(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Kt(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Qt(t){const o=Kt();return e.computed(()=>(o.value,!!t()))}function eo(t,o,n={}){const{window:a=le,...r}=n;let s;const i=Qt(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=ge(e.toValue(t)).map(re).filter(Ut);return new Set(g)}),g=>{l(),i.value&&g.size&&(s=new MutationObserver(o),g.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return it(f),{isSupported:i,stop:f,takeRecords:d}}function to(t,o,n={}){const{window:a=le,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return Xt;let i;const l=f=>{i?.(),i=f},c=e.watchEffect(()=>{const f=re(t);if(f){const{stop:g}=eo(r,b=>{b.map(x=>[...x.removedNodes]).flat().some(x=>x===f||x.contains(f))&&o(b)},{window:a,childList:!0,subtree:!0});l(g)}},{flush:s}),d=()=>{c(),l()};return it(d),d}function oo(t={}){var o;const{window:n=le,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,i=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},l=e.shallowRef(),c=()=>{l.value=i()};if(n){const d={capture:!0,passive:!0};de(n,"blur",f=>{f.relatedTarget===null&&c()},d),de(n,"focus",c,d)}return r&&to(l,c,{document:s}),c(),l}const no="focusin",ao="focusout",lo=":focus-within";function ro(t,o={}){const{window:n=le}=o,a=e.computed(()=>re(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!oo(o).value)return{focused:s};const i={passive:!0};return de(a,no,()=>r.value=!0,i),de(a,ao,()=>{var l,c,d;return r.value=(l=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,lo))!==null&&l!==void 0?l:!1},i),{focused:s}}function io(t,{window:o=le,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,i=re(t);if(!i)a.value=!1;else{const l=i.getBoundingClientRect();a.value=l.top<=(o.innerHeight||s.documentElement.clientHeight)&&l.left<=(o.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return e.watch(()=>re(t),()=>r(),{immediate:!0,flush:"post"}),o&&de(n||o,"scroll",r,{capture:!1,passive:!0}),a}const Y=t=>{let o=io(t).value;return o=o&&t.offsetHeight>0,o},X=t=>t.tabIndex>=0,st=t=>{const o=t.target;return Ae(o)},Ae=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!X(o)||!Y(o))?Ae(o):o},so=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!X(n)||!Y(n))?Ne(n):n},ct=t=>{const o=t.target;return Ne(o)},Ne=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!X(o)||!Y(o))?Ne(o):o},co=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!X(n)||!Y(n))?Ae(n):n},dt=t=>{const o=t.target;return Re(o)},Re=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!X(o)||!Y(o))?Re(o):o},ft=t=>{const o=t.target;return $e(o)},$e=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!X(o)||!Y(o))?$e(o):o},ut=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!X(o)||!Y(o))?$e(o):o},mt=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!X(o)||!Y(o))?Re(o):o},he=["alt","control","shift","meta"],fo={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},be={"keydown.up":t=>{const o=st(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=ct(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=dt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=ft(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=so(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=co(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=ut(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=ct(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=st(t);o&&o.focus()}},"keydown.home":t=>{const o=ut(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=ft(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=dt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function ze(t){const o=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{const l=o(i);let c=[];if(typeof i.selectors=="string")c=Array.from(l?l.querySelectorAll(i.selectors):document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const d of i.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(i.selectors instanceof HTMLElement)c.push(i.selectors);else if(i.selectors?.value)if(Array.isArray(i.selectors.value))for(const d of i.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(i.selectors.value);return c},a=i=>{const l=o(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(d=>X(d)&&Y(d))),c},r=i=>l=>{const c=fo[l.key]||l.key.toLowerCase();if(he.includes(c))return;const d=i.handlers||be;for(const f of Object.keys(d)){const[g,...b]=f.split(".");if(g==="keydown"&&b.includes(c)){const x=d[f],k=b.filter(m=>he.includes(m)),v=he.some(m=>{const h=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(h)});if(k.length>0){if(v){for(const m of he)if(b.includes(m)){const h=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(h)&&x(l)}}}else v||x(l)}}},s=[];e.onMounted(()=>{for(const i of t){const l=o(i),c=a(i),d=r(i),f=l?[l]:c;for(const g of f){const{focused:b}=ro(e.ref(g)),x=e.watch(b,k=>{k?g.addEventListener("keydown",d):g.removeEventListener("keydown",d)});s.push(x)}}}),e.onBeforeUnmount(()=>{for(const i of s)i()})}function _e(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const pt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uo=t=>t!=null,mo=Object.prototype.toString,po=t=>mo.call(t)==="[object Object]",ne=()=>{};function go(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ne}))):e.ref(o)}function ho(t,o){function n(...a){return new Promise((r,s)=>{Promise.resolve(t(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(r).catch(s)})}return n}function bo(t,o={}){let n,a,r=ne;const s=l=>{clearTimeout(l),r(),r=ne};let i;return l=>{const c=e.toValue(t),d=e.toValue(o.maxWait);return n&&s(n),c<=0||d!==void 0&&d<=0?(a&&(s(a),a=void 0),Promise.resolve(l())):new Promise((f,g)=>{r=o.rejectOnCancel?g:f,i=l,d&&!a&&(a=setTimeout(()=>{n&&s(n),a=void 0,f(i())},d)),n=setTimeout(()=>{a&&s(a),a=void 0,f(l())},c)})}}function we(t){return Array.isArray(t)?t:[t]}function wo(t){return e.getCurrentInstance()}function vo(t,o=200,n={}){return ho(bo(o,n),t)}function xo(t,o={}){if(!e.isRef(t))return e.toRefs(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const a in t.value)n[a]=e.customRef(()=>({get(){return t.value[a]},set(r){var s;if(!((s=e.toValue(o.replaceRef))!==null&&s!==void 0)||s)if(Array.isArray(t.value)){const i=[...t.value];i[a]=r,t.value=i}else{const i={...t.value,[a]:r};Object.setPrototypeOf(i,Object.getPrototypeOf(t.value)),t.value=i}else t.value[a]=r}}));return n}function yo(t,o=!0,n){wo()?e.onMounted(t,n):o?t():e.nextTick(t)}function ko(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const fe=pt?window:void 0;function q(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function ee(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=we(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return ko(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>q(s)))!==null&&a!==void 0?a:[fe].filter(s=>s!=null),we(e.toValue(n.value?t[1]:t[0])),we(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=po(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Le(t,o,n={}){const{window:a=fe,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!a)return l?{stop:ne,cancel:ne,trigger:ne}:ne;let c=!0;const d=m=>e.toValue(r).some(h=>{if(typeof h=="string")return Array.from(a.document.querySelectorAll(h)).some(w=>w===m.target||m.composedPath().includes(w));{const w=q(h);return w&&(m.target===w||m.composedPath().includes(w))}});function f(m){const h=e.toValue(m);return h&&h.$.subTree.shapeFlag===16}function g(m,h){const w=e.toValue(m),E=w.$.subTree&&w.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(I=>I.el===h.target||h.composedPath().includes(I.el))}const b=m=>{const h=q(t);if(m.target!=null&&!(!(h instanceof Element)&&f(t)&&g(t,m))&&!(!h||h===m.target||m.composedPath().includes(h))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let x=!1;const k=[ee(a,"click",m=>{x||(x=!0,setTimeout(()=>{x=!1},0),b(m))},{passive:!0,capture:s}),ee(a,"pointerdown",m=>{const h=q(t);c=!d(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),i&&ee(a,"blur",m=>{setTimeout(()=>{var h;const w=q(t);((h=a.document.activeElement)===null||h===void 0?void 0:h.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),v=()=>k.forEach(m=>m());return l?{stop:v,cancel:()=>{c=!1},trigger:m=>{c=!0,b(m),c=!1}}:v}function Eo(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function gt(t){const o=Eo();return e.computed(()=>(o.value,!!t()))}function ht(t,o,n={}){const{window:a=fe,...r}=n;let s;const i=gt(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=we(e.toValue(t)).map(q).filter(uo);return new Set(g)}),g=>{l(),i.value&&g.size&&(s=new MutationObserver(o),g.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return _e(f),{isSupported:i,stop:f,takeRecords:d}}function He(t,o={}){var n;const{pointerTypes:a,preventDefault:r,stopPropagation:s,exact:i,onMove:l,onEnd:c,onStart:d,initialValue:f,axis:g="both",draggingElement:b=fe,containerElement:x,handle:k=t,buttons:v=[0]}=o,m=e.ref((n=e.toValue(f))!==null&&n!==void 0?n:{x:0,y:0}),h=e.ref(),w=C=>a?a.includes(C.pointerType):!0,E=C=>{e.toValue(r)&&C.preventDefault(),e.toValue(s)&&C.stopPropagation()},I=C=>{var T;if(!e.toValue(v).includes(C.button)||e.toValue(o.disabled)||!w(C)||e.toValue(i)&&C.target!==e.toValue(t))return;const P=e.toValue(x),L=P==null||(T=P.getBoundingClientRect)===null||T===void 0?void 0:T.call(P),z=e.toValue(t).getBoundingClientRect(),U={x:C.clientX-(P?z.left-L.left+P.scrollLeft:z.left),y:C.clientY-(P?z.top-L.top+P.scrollTop:z.top)};d?.(U,C)!==!1&&(h.value=U,E(C))},A=C=>{if(e.toValue(o.disabled)||!w(C)||!h.value)return;const T=e.toValue(x),P=e.toValue(t).getBoundingClientRect();let{x:L,y:z}=m.value;(g==="x"||g==="both")&&(L=C.clientX-h.value.x,T&&(L=Math.min(Math.max(0,L),T.scrollWidth-P.width))),(g==="y"||g==="both")&&(z=C.clientY-h.value.y,T&&(z=Math.min(Math.max(0,z),T.scrollHeight-P.height))),m.value={x:L,y:z},l?.(m.value,C),E(C)},B=C=>{e.toValue(o.disabled)||!w(C)||h.value&&(h.value=void 0,c?.(m.value,C),E(C))};if(pt){const C=()=>{var T;return{capture:(T=o.capture)!==null&&T!==void 0?T:!0,passive:!e.toValue(r)}};ee(k,"pointerdown",I,C),ee(b,"pointermove",A,C),ee(b,"pointerup",B,C)}return{...xo(m),position:m,isDragging:e.computed(()=>!!h.value),style:e.computed(()=>`left:${m.value.x}px;top:${m.value.y}px;`)}}function ve(t,o,n={}){const{window:a=fe,...r}=n;let s;const i=gt(()=>a&&"ResizeObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const f=e.toValue(t);return Array.isArray(f)?f.map(g=>q(g)):[q(f)]}),f=>{if(l(),i.value&&a){s=new ResizeObserver(o);for(const g of f)g&&s.observe(g,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return _e(d),{isSupported:i,stop:d}}function ae(t,o={}){const{reset:n=!0,windowResize:a=!0,windowScroll:r=!0,immediate:s=!0,updateTiming:i="sync"}=o,l=e.shallowRef(0),c=e.shallowRef(0),d=e.shallowRef(0),f=e.shallowRef(0),g=e.shallowRef(0),b=e.shallowRef(0),x=e.shallowRef(0),k=e.shallowRef(0);function v(){const h=q(t);if(!h){n&&(l.value=0,c.value=0,d.value=0,f.value=0,g.value=0,b.value=0,x.value=0,k.value=0);return}const w=h.getBoundingClientRect();l.value=w.height,c.value=w.bottom,d.value=w.left,f.value=w.right,g.value=w.top,b.value=w.width,x.value=w.x,k.value=w.y}function m(){i==="sync"?v():i==="next-frame"&&requestAnimationFrame(()=>v())}return ve(t,m),e.watch(()=>q(t),h=>!h&&m()),ht(t,m,{attributeFilter:["style","class"]}),r&&ee("scroll",m,{capture:!0,passive:!0}),a&&ee("resize",m,{passive:!0}),yo(()=>{s&&m()}),{height:l,bottom:c,left:d,right:f,top:g,width:b,x,y:k,update:m}}function Pe(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Fe=new WeakMap;function Co(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(go(t),i=>{const l=Pe(e.toValue(i));if(l){const c=l;if(Fe.get(c)||Fe.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const i=Pe(e.toValue(t));!i||n.value||(i.style.overflow="hidden",n.value=!0)},s=()=>{const i=Pe(e.toValue(t));!i||!n.value||(i.style.overflow=a,Fe.delete(i),n.value=!1)};return _e(s),e.computed({get(){return n.value},set(i){i?r():s()}})}const Mo=t=>{const o=new DOMParser().parseFromString(t,"text/html");return Array.from(o.body.childNodes).some(n=>n.nodeType===1)},Io=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Vo=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Bo=["innerHTML"],Do={key:2},So=e.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean,default:!1},debounce:{default:300}},setup(t,{expose:o}){const n=e.useTemplateRef("cell"),a=t.store.getCellData(t.colIndex,t.rowIndex),r=e.ref(""),s=e.ref(!1),i=t.store.columns[t.colIndex],l=t.store.rows[t.rowIndex],c=i.align||"center",d=i.width||"40ch",f=e.computed(()=>t.store.getCellDisplayValue(t.colIndex,t.rowIndex)),g=e.computed(()=>typeof f.value=="string"?Mo(f.value):!1),b=e.computed(()=>({textAlign:c,width:d,fontWeight:s.value?"bold":"inherit",paddingLeft:t.store.getIndent(t.colIndex,t.store.display[t.rowIndex]?.indent)})),x=e.computed(()=>({"sticky-column":t.pinned,"cell-modified":s.value})),k=()=>{m(),v()},v=()=>{const{left:B,bottom:C,width:T,height:P}=ae(n);i.mask,i.modalComponent&&t.store.$patch(L=>{L.modal.visible=!0,L.modal.colIndex=t.colIndex,L.modal.rowIndex=t.rowIndex,L.modal.left=B,L.modal.bottom=C,L.modal.width=T,L.modal.height=P,L.modal.cell=n.value,typeof i.modalComponent=="function"?L.modal.component=i.modalComponent({table:L.table,row:l,column:i}):L.modal.component=i.modalComponent,L.modal.componentProps=i.modalComponentExtraProps})};if(t.addNavigation){let B={...be,"keydown.f2":v,"keydown.alt.up":v,"keydown.alt.down":v,"keydown.alt.left":v,"keydown.alt.right":v};typeof t.addNavigation=="object"&&(B={...B,...t.addNavigation}),ze([{selectors:n,handlers:B}])}const m=()=>{if(n.value&&i.edit){const B=window.getSelection();if(B)try{const C=document.createRange();C.selectNodeContents&&(C.selectNodeContents(n.value),B.removeAllRanges(),B.addRange(C))}catch{}}},h=()=>{n.value&&(r.value=n.value.textContent,m())},w=()=>{try{const B=window.getSelection();if(B&&B.rangeCount>0&&n.value){const C=B.getRangeAt(0),T=C.cloneRange();if(T.selectNodeContents&&T.setEnd)return T.selectNodeContents(n.value),T.setEnd(C.endContainer,C.endOffset),T.toString().length}}catch{}return 0},E=B=>{if(n.value)try{const C=window.getSelection();if(!C)return;let T=0;const P=document.createTreeWalker?document.createTreeWalker(n.value,NodeFilter.SHOW_TEXT,null):null;if(!P)return;let L,z=null;for(;L=P.nextNode();){const U=L,oe=T+U.textContent.length;if(B<=oe&&(z=document.createRange(),z.setStart&&z.setEnd)){z.setStart(U,B-T),z.setEnd(U,B-T);break}T=oe}z&&C.removeAllRanges&&C.addRange&&(C.removeAllRanges(),C.addRange(z))}catch{}},I=B=>{if(!i.edit)return;const C=B.target;if(C.textContent===r.value)return;const T=w();r.value=C.textContent,i.format?(s.value=C.textContent!==t.store.getFormattedValue(t.colIndex,t.rowIndex,a),t.store.setCellText(t.colIndex,t.rowIndex,C.textContent)):(s.value=C.textContent!==a,t.store.setCellData(t.colIndex,t.rowIndex,C.textContent)),e.nextTick().then(()=>{E(T)})},A=vo(I,t.debounce);return o({currentData:r}),(B,C)=>(e.openBlock(),e.createElementBlock("td",{ref:"cell","data-colindex":t.colIndex,"data-rowindex":t.rowIndex,"data-editable":e.unref(i).edit,contenteditable:e.unref(i).edit,tabindex:t.tabIndex,spellcheck:!1,style:e.normalizeStyle(b.value),class:e.normalizeClass(["atable-cell",x.value]),onFocus:h,onPaste:I,onInput:C[0]||(C[0]=(...T)=>e.unref(A)&&e.unref(A)(...T)),onClick:k},[e.unref(i).cellComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i).cellComponent),e.mergeProps({key:0,value:f.value},e.unref(i).cellComponentProps),null,16,["value"])):g.value?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:f.value},null,8,Bo)):(e.openBlock(),e.createElementBlock("span",Do,e.toDisplayString(f.value),1))],46,Vo))}}),To=["tabindex"],Ao=["tabindex"],No=["colspan"],Ro=e.defineComponent({__name:"AExpansionRow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:()=>be}},setup(t){const o=e.useTemplateRef("rowEl"),n=e.computed(()=>t.store.display[t.rowIndex].expanded?"▼":"►");if(t.addNavigation){const a={"keydown.control.g":r=>{r.stopPropagation(),r.preventDefault(),t.store.toggleRowExpand(t.rowIndex)}};typeof t.addNavigation=="object"&&Object.assign(a,t.addNavigation),ze([{selectors:o,handlers:a}])}return(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("tr",e.mergeProps(a.$attrs,{ref:"rowEl",tabindex:t.tabIndex,class:"expandable-row"}),[e.createElementVNode("td",{tabIndex:-1,class:"row-index",onClick:r[0]||(r[0]=s=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(n.value),1),e.renderSlot(a.$slots,"row",{},void 0,!0)],16,To),t.store.display[t.rowIndex].expanded?(e.openBlock(),e.createElementBlock("tr",{key:0,ref:"rowExpanded",tabindex:t.tabIndex,class:"expanded-row"},[e.createElementVNode("td",{tabIndex:-1,colspan:t.store.columns.length+1,class:"expanded-row-content"},[e.renderSlot(a.$slots,"content",{},void 0,!0)],8,No)],8,Ao)):e.createCommentVNode("",!0)],64))}}),te=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},$o=te(Ro,[["__scopeId","data-v-a42297c7"]]),zo=["colspan"],_o={ref:"container",class:"gantt-container"},Lo=["data-rowindex","data-colindex"],Ho={key:2,class:"gantt-label"},Po=["x1","y1","x2","y2"],Fo=e.defineComponent({__name:"AGanttCell",props:{store:{},columnsCount:{},rowIndex:{},colIndex:{},start:{default:0},end:{default:0},colspan:{default:1},label:{default:""},color:{default:"#cccccc"}},emits:["connection:create"],setup(t,{expose:o,emit:n}){e.useCssVars(S=>({v6d722296:r.value,v260b36f8:S.colspan}));const a=n,r=e.ref(t.color.length>=6?t.color:"#cccccc"),s=`gantt-bar-row-${t.rowIndex}-col-${t.colIndex}`,i=e.useTemplateRef("container"),l=e.useTemplateRef("bar"),c=e.useTemplateRef("leftResizeHandle"),d=e.useTemplateRef("rightResizeHandle"),f=e.useTemplateRef("leftConnectionHandle"),g=e.useTemplateRef("rightConnectionHandle"),{width:b}=ae(i),{left:x,right:k}=ae(l),v=e.ref(t.start),m=e.ref(t.end||v.value+t.colspan),h=e.ref(!1),w=e.ref(!1),E=e.ref(!1),I=e.ref(!1),A=e.ref(!1),B=e.ref({startX:0,startY:0,endX:0,endY:0}),C=e.computed(()=>Ce.value||U.value||oe.value),T=e.computed(()=>t.colspan>0?b.value/t.colspan:0),P=e.computed(()=>{const S=v.value/t.colspan*100,N=m.value/t.colspan*100;return{left:`${S}%`,width:`${N-S}%`,backgroundColor:r.value}}),L=e.computed(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:1e3})),z=e.ref({startX:0,startPos:0}),{isDragging:U}=He(c,{axis:"x",onStart:()=>pe(x.value,v.value),onMove:({x:S})=>Qe(S),onEnd:({x:S})=>et(S)}),{isDragging:oe}=He(d,{axis:"x",onStart:()=>pe(k.value,m.value),onMove:({x:S})=>Me(S),onEnd:({x:S})=>tt(S)}),{isDragging:Ce}=He(l,{exact:!0,axis:"x",onStart:()=>pe(x.value,v.value),onMove:({x:S})=>Ie(S),onEnd:({x:S})=>ot(S)});e.onMounted(()=>{nt()}),e.onUnmounted(()=>{at()});function pe(S,N){l.value&&(l.value.style.transition="none"),z.value={startX:S,startPos:N}}function Qe(S){if(!U.value||!l.value)return;const N=(S-z.value.startX)/T.value,_=Math.max(0,Math.min(m.value-1,z.value.startPos+N));l.value.style.left=`${_/t.colspan*100}%`,l.value.style.width=`${(m.value-_)/t.colspan*100}%`}function et(S){if(!l.value)return;const N=S-z.value.startX,_=Math.round(N/T.value),H=v.value,Z=Math.max(0,Math.min(m.value-1,z.value.startPos+_));v.value=Z,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"start",oldStart:H,newStart:Z,end:m.value,delta:_,oldColspan:m.value-H,newColspan:m.value-Z})}function Me(S){if(!oe.value||!l.value)return;const N=(S-z.value.startX)/T.value,_=Math.max(v.value+1,Math.min(t.columnsCount,z.value.startPos+N));l.value.style.width=`${(_-v.value)/t.colspan*100}%`}function tt(S){if(!l.value)return;const N=S-z.value.startX,_=Math.round(N/T.value),H=m.value,Z=Math.max(v.value+1,Math.min(t.columnsCount,z.value.startPos+_));m.value=Z,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"end",oldEnd:H,newEnd:Z,start:v.value,delta:_,oldColspan:H-v.value,newColspan:Z-v.value})}function Ie(S){if(!Ce.value||!l.value)return;const N=(S-z.value.startX)/T.value,_=m.value-v.value,H=Math.max(0,Math.min(z.value.startPos+N,t.columnsCount-_));l.value.style.left=`${H/t.colspan*100}%`}function ot(S){if(!l.value)return;const N=S-z.value.startX,_=Math.round(N/T.value),H=m.value-v.value,Z=v.value,j=m.value;let G=z.value.startPos+_,W=G+H;G<0?(G=0,W=H):W>t.columnsCount&&(W=t.columnsCount,G=W-H),v.value=G,m.value=W,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"bar",oldStart:Z,oldEnd:j,newStart:G,newEnd:W,delta:_,colspan:W-G})}function nt(){const{x:S,y:N}=ae(l),{x:_,y:H}=ae(f),{x:Z,y:j}=ae(g);t.store.registerGanttBar({id:s,rowIndex:t.rowIndex,colIndex:t.colIndex,startIndex:v,endIndex:m,color:r,label:t.label,position:{x:S,y:N}}),t.store.isDependencyGraphEnabled&&(t.store.registerConnectionHandle({id:`${s}-connection-left`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"left",position:{x:_,y:H},visible:h,barId:s}),t.store.registerConnectionHandle({id:`${s}-connection-right`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"right",position:{x:Z,y:j},visible:w,barId:s}))}function at(){t.store.unregisterGanttBar(s),t.store.isDependencyGraphEnabled&&(t.store.unregisterConnectionHandle(`${s}-connection-left`),t.store.unregisterConnectionHandle(`${s}-connection-right`))}function lt(){t.store.isDependencyGraphEnabled&&(h.value=!0,w.value=!0)}function Ve(){!E.value&&!I.value&&(h.value=!1,w.value=!1)}function Be(S,N){N.preventDefault(),N.stopPropagation(),A.value=!0,S==="left"?E.value=!0:I.value=!0;const _=S==="left"?f.value:g.value;if(_){const j=_.getBoundingClientRect(),G=j.left+j.width/2,W=j.top+j.height/2;B.value={startX:G,startY:W,endX:G,endY:W}}const H=j=>{B.value.endX=j.clientX,B.value.endY=j.clientY},Z=j=>{De(j,S),Se(H,Z)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",Z)}function De(S,N){const _=document.elementFromPoint(S.clientX,S.clientY)?.closest(".connection-handle");if(_&&_!==(N==="left"?f.value:g.value)){const H=_.closest(".gantt-bar");if(H){const Z=parseInt(H.getAttribute("data-rowindex")||"0"),j=parseInt(H.getAttribute("data-colindex")||"0"),G=_.classList.contains("left-connection-handle")?"left":"right",W=`gantt-bar-row-${Z}-col-${j}`,u=t.store.createConnection(`${s}-connection-${N}`,`${W}-connection-${G}`);u&&a("connection:create",u)}}}function Se(S,N){A.value=!1,E.value=!1,I.value=!1,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),l.value?.matches(":hover")||Ve()}return o({barStyle:P,cleanupConnectionDrag:Se,currentEnd:m,handleConnectionDrop:De,isLeftConnectionDragging:E,isLeftConnectionVisible:h,isRightConnectionDragging:I,isRightConnectionVisible:w,showDragPreview:A}),(S,N)=>(e.openBlock(),e.createElementBlock("td",{class:"aganttcell",colspan:t.colspan},[e.createElementVNode("div",_o,[e.createElementVNode("div",{ref:"bar","data-rowindex":t.rowIndex,"data-colindex":t.colIndex,class:e.normalizeClass(["gantt-bar",{"is-dragging":C.value}]),style:e.normalizeStyle(P.value),onMouseenter:lt,onMouseleave:Ve},[t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"leftConnectionHandle",class:e.normalizeClass(["connection-handle left-connection-handle",{visible:h.value,"is-dragging":E.value}]),onMousedown:N[0]||(N[0]=e.withModifiers(_=>Be("left",_),["stop"]))},[...N[2]||(N[2]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"rightConnectionHandle",class:e.normalizeClass(["connection-handle right-connection-handle",{visible:w.value,"is-dragging":I.value}]),onMousedown:N[1]||(N[1]=e.withModifiers(_=>Be("right",_),["stop"]))},[...N[3]||(N[3]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"leftResizeHandle",class:e.normalizeClass(["resize-handle left-resize-handle",{"is-dragging":e.unref(U)}])},[...N[4]||(N[4]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator left-indicator"},null,-1)])],2),t.label?(e.openBlock(),e.createElementBlock("label",Ho,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"rightResizeHandle",class:e.normalizeClass(["resize-handle right-resize-handle",{"is-dragging":e.unref(oe)}])},[...N[5]||(N[5]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator right-indicator"},null,-1)])],2)],46,Lo)],512),t.store.isDependencyGraphEnabled&&A.value?(e.openBlock(),e.createElementBlock("svg",{key:0,style:e.normalizeStyle(L.value)},[e.createElementVNode("line",{x1:B.value.startX,y1:B.value.startY,x2:B.value.endX,y2:B.value.endY,stroke:"#2196f3","stroke-width":"2","stroke-dasharray":"5,5"},null,8,Po)],4)):e.createCommentVNode("",!0)],8,zo))}}),Oo=te(Fo,[["__scopeId","data-v-8917a8a3"]]),Zo=`<?xml version="1.0" encoding="UTF-8"?>
|
|
1
|
+
(function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(q=typeof globalThis<"u"?globalThis:q||self,e(q["@stonecrop/aform"]={},q.Vue,q.pinia))})(this,(function(q,e,Gt){"use strict";var it=document.createElement("style");it.textContent=`@import"https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap";.atable-cell{border-radius:0;box-sizing:border-box;outline:none;box-shadow:none;color:var(--sc-cell-text-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);border-spacing:0px;border-collapse:collapse;overflow:hidden;text-overflow:ellipsis;order:1;white-space:nowrap;max-width:40ch;border-top:1px solid var(--sc-row-border-color);margin:0 0 0 1px}.atable-cell a{color:var(--sc-cell-text-color);text-decoration:none}.atable-cell:focus,.atable-cell:focus-within{background-color:var(--sc-focus-cell-background);outline-width:var(--sc-atable-cell-border-width);outline-style:solid;outline-offset:calc(var(--sc-atable-cell-border-width) * -1);outline-color:var(--sc-focus-cell-outline);box-shadow:none;overflow:hidden;text-wrap:nowrap;box-sizing:border-box}.cell-modified{font-weight:700;font-style:italic}.cell-modified-highlight{background-color:var(--sc-cell-changed-color)}.row-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;display:flex;align-items:center;justify-content:center}.expandable-row{border-top:1px solid var(--sc-row-border-color);height:var(--sc-atable-row-height)}.expandable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.expanded-row{border-left:2px solid var(--sc-row-border-color)}.expandable-row:last-child{border-bottom:1px solid var(--sc-row-border-color)}.expanded-row-content{border-top:1px solid var(--sc-row-border-color);padding:1.5rem}.expandable-row.changed-row-gradient[data-v-a42297c7]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.aganttcell[data-v-8917a8a3]{background-color:#f9f9f9;width:100%;padding:0;height:100%}.gantt-container[data-v-8917a8a3]{position:relative;height:100%;background-color:#f0f0f0;border-radius:4px;overflow:visible}.gantt-bar[data-v-8917a8a3]{position:absolute;border-radius:4px;display:flex;align-items:center;justify-content:space-between;cursor:grab;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);transition:left .1s ease-out,width .1s ease-out;height:80%;top:50%;z-index:2;transform:translateY(-50%)}.gantt-bar[data-v-8917a8a3]:active{cursor:grabbing}.gantt-bar.is-dragging[data-v-8917a8a3]{z-index:10}.gantt-label[data-v-8917a8a3]{flex:1;text-align:center;font-size:12px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;-webkit-user-select:none;user-select:none}.resize-handle[data-v-8917a8a3]{position:relative;width:12px;height:100%;cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:0;background:#00000040}.left-resize-handle[data-v-8917a8a3]{border-right:1px solid rgba(0,0,0,.5)}.right-resize-handle[data-v-8917a8a3]{border-left:1px solid rgba(0,0,0,.5)}.handle-grip[data-v-8917a8a3]{width:4px;height:12px;border-radius:2px;background:#000c}.resize-handle[data-v-8917a8a3]:hover{background-color:#ffffff80}.vertical-indicator[data-v-8917a8a3]{position:absolute;width:2px;opacity:0;pointer-events:none;transition:opacity .2s ease;top:-100vh;height:100vh;z-index:5;background-color:var(--v6d722296)}.left-indicator[data-v-8917a8a3]{left:50%;transform:translate(-50%)}.right-indicator[data-v-8917a8a3]{right:50%;transform:translate(50%)}.resize-handle.is-dragging .vertical-indicator[data-v-8917a8a3]{opacity:.7}.gantt-container[data-v-8917a8a3]:after{content:"";position:absolute;inset:0;background-size:calc(100% / var(--v260b36f8)) 100%;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px);pointer-events:none;z-index:1}.connection-handle[data-v-8917a8a3]{position:absolute;top:50%;transform:translateY(-50%);width:16px;height:16px;opacity:0;transition:opacity .2s ease;cursor:crosshair;z-index:15;display:flex;align-items:center;justify-content:center}.connection-handle.visible[data-v-8917a8a3]{opacity:1}.left-connection-handle[data-v-8917a8a3]{left:-16px}.right-connection-handle[data-v-8917a8a3]{right:-16px}.connection-dot[data-v-8917a8a3]{width:8px;height:8px;border-radius:50%;background-color:#2196f3;border:2px solid white;box-shadow:0 1px 3px #0000004d}.connection-handle:hover .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.2)}.connection-handle.is-dragging[data-v-8917a8a3]{opacity:1!important}.connection-handle.is-dragging .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.3);box-shadow:0 2px 8px #2196f366}.atable-row-actions{width:2rem;min-width:2rem;padding:0 .25rem;vertical-align:middle;white-space:nowrap;border-top:1px solid var(--sc-row-border-color);background:#fff;-webkit-user-select:none;user-select:none;position:relative}.atable-row-actions.dropdown-active{z-index:500}.row-actions-icons{display:flex;gap:.25rem;align-items:center;justify-content:center}.row-action-btn{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:.125rem;border:none;background:transparent;cursor:pointer;border-radius:.25rem;transition:background-color .15s ease}.row-action-btn:hover{background-color:var(--sc-gray-10, #e5e5e5)}.row-action-btn:focus{outline:2px solid var(--sc-focus-cell-outline, #3b82f6);outline-offset:1px}.row-action-btn .action-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem}.row-action-btn .action-icon :deep(svg){width:100%;height:100%}.row-actions-dropdown{position:relative;display:inline-block}.row-actions-dropdown:has(button:focus){outline:2px solid var(--sc-focus-cell-outline);outline-offset:-2px}.row-actions-toggle{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border:none;background:transparent;cursor:pointer;border-radius:.25rem;font-size:1rem;font-weight:700;transition:background-color .15s ease}.row-actions-toggle:hover{background-color:var(--sc-gray-10, #e5e5e5)}.dropdown-icon{line-height:1}.row-actions-menu{position:fixed;z-index:9999;min-width:10rem;padding:.25rem 0;background:#fff;border:1px solid var(--sc-row-border-color);border-left:4px solid var(--sc-row-border-color);border-radius:0}.row-actions-menu.menu-flipped{box-shadow:0 -4px 6px -1px #0000001a,0 -2px 4px -2px #0000001a}.row-action-menu-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;text-align:left;font-size:.875rem;transition:background-color .15s ease}.row-action-menu-item:hover{background-color:var(--sc-gray-10, #f5f5f5)}.row-action-menu-item:focus{outline:none;background-color:var(--sc-gray-10, #f5f5f5)}.row-action-menu-item .action-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0}.row-action-menu-item .action-icon :deep(svg){width:100%;height:100%}.row-action-menu-item .action-label{flex:1}.atable-row{background-color:#fff}.atable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.list-index{color:var(--sc-header-text-color);font-weight:700;padding-left:var(--sc-atable-row-padding);padding-right:.5em;text-align:left;-webkit-user-select:none;user-select:none;border-top:1px solid var(--sc-row-border-color);text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.tree-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.atable-row:has(td.cell-modified)>td.sticky-column,.atable-row:has(td.cell-modified)>th.sticky-column,.atable-row:has(td.cell-modified)>td.sticky-index,.atable-row:has(td.cell-modified)>th.sticky-index{background:var(--sc-cell-changed-color)}.atable-row.changed-row-gradient[data-v-c35a3748]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.gantt-connection-overlay[data-v-71911260]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.connection-path[data-v-71911260]{transition:stroke-width .2s ease;pointer-events:auto;cursor:pointer;stroke-dasharray:5px;stroke:var(--sc-cell-text-color)}#arrowhead-marker polygon[data-v-71911260]{fill:var(--sc-cell-text-color)}.animated-path[data-v-71911260]{animation:animated-dash-71911260 infinite 1.5s linear}.connection-path[data-v-71911260]:hover{stroke-width:3px}.connection-hitbox[data-v-71911260]{pointer-events:auto;cursor:pointer}@keyframes animated-dash-71911260{0%{stroke-dashoffset:0px}to{stroke-dashoffset:-10px}}.column-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;width:100%}.filter-input[data-v-8487462d],.filter-select[data-v-8487462d]{background-color:var(--sc-form-background)!important;padding:.15rem .2rem;border:1px solid var(--sc-form-border);border-radius:3px;font-size:.875rem;color:var(--sc-text-color);width:100%;box-sizing:border-box}.filter-input[data-v-8487462d]:focus,.filter-select[data-v-8487462d]:focus{outline:none;border-color:var(--sc-input-active-border-color)}.checkbox-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;font-size:.875rem;color:var(--sc-text-color);cursor:pointer}.filter-checkbox[data-v-8487462d]{margin:0}.date-range-filter[data-v-8487462d]{display:flex;gap:.25rem;align-items:center;width:100%}.date-range-filter .filter-input[data-v-8487462d]{flex:1;min-width:0}.date-separator[data-v-8487462d]{color:var(--sc-gray-50);font-weight:500;padding:0 .25rem;flex-shrink:0}.clear-btn[data-v-8487462d]{background:var(--sc-gray-10, #f0f0f0);border:1px solid var(--sc-form-border);border-radius:3px;color:var(--sc-gray-70);cursor:pointer;font-size:1rem;padding:.15rem .4rem;line-height:1;flex-shrink:0}.atable-header-row th{padding-left:.5ch!important;font-weight:700;min-width:3ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);box-sizing:border-box;color:var(--sc-header-text-color);position:relative}#header-index{padding-left:var(--sc-atable-row-padding);box-sizing:border-box;border-top:none}.tree-index{padding-right:0}th{order:1}.list-expansion-index{width:2ch;margin-left:5px}.cursor-pointer{cursor:pointer}.atable-filters-row th{padding:.25rem .5ch;vertical-align:top}.row-actions-header{width:2rem;min-width:2rem;padding:0 .25rem}:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.amodal{position:absolute;background-color:var(--sc-row-color-zebra-dark);z-index:5}.atable-container{position:relative}.sticky-index{position:sticky;left:0;z-index:10;order:0}.sticky-column,th.sticky-column,td.sticky-column,th.sticky-index,td.sticky-index{position:sticky;z-index:10;order:0;background:#fff}.sticky-column-edge,.atable th.sticky-column-edge{border-right:1px solid var(--sc-row-border-color)}[data-v-3d00d51b]:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.atable[data-v-3d00d51b]{position:relative;font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);border-collapse:collapse;box-sizing:border-box;table-layout:auto;width:auto;overflow:clip;height:1px}.atable th[data-v-3d00d51b]{border-width:0px;border-style:solid;border-radius:0;padding-left:.5ch;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);color:var(--sc-gray-60);height:var(--sc-atable-row-height);font-weight:300;letter-spacing:.05rem;order:1;box-sizing:border-box}.atable th[data-v-3d00d51b]:focus{outline:none}.atable[data-v-3d00d51b]:tbody{overflow:hidden;position:relative}.atable[data-v-3d00d51b]:tbody:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:transparent;z-index:100}.aloading[data-v-a930a25b]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-a930a25b]{width:100%;height:100%;position:absolute;left:-100%;top:0;background:linear-gradient(90deg,rgba(var(--sc-table-loading-color),0),rgba(var(--sc-table-loading-color),1),rgba(var(--sc-table-loading-color),0));animation:gradient-a930a25b infinite 2s;z-index:0}.aloading-header[data-v-a930a25b]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-a930a25b]:after{content:"...";animation:ellipse-a930a25b 2s;animation-iteration-count:infinite}@keyframes gradient-a930a25b{0%{left:-100%}to{left:100%}}@keyframes ellipse-a930a25b{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aloading[data-v-e1165876]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-e1165876]{width:50%;height:3px;position:absolute;left:-100%;bottom:0;background:var(--sc-row-border-color);animation:bar-left-e1165876 infinite 2s;z-index:0}.aloading-header[data-v-e1165876]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-e1165876]:after{content:"...";animation:ellipse-e1165876 2s;animation-iteration-count:infinite}@keyframes bar-left-e1165876{0%{left:-50%}to{left:100%}}@keyframes ellipse-e1165876{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aform_checkbox[data-v-f13fd4d6]{cursor:pointer;width:auto;margin-top:0;display:block}.aform_checkbox[data-v-f13fd4d6]:checked{accent-color:var(--sc-primary-color);border:1px solid black}.aform_checkbox-container[data-v-f13fd4d6]{width:100%;display:inline-block;text-align:left}.aform_checkbox-container input[data-v-f13fd4d6]{width:auto}.aform_checkbox-container:hover+.aform_field-label[data-v-f13fd4d6]{color:var(--sc-input-active-label-color)}div[data-v-a15ed922]{min-width:40ch;width:100%;box-sizing:border-box;border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-a15ed922]{width:calc(100% - 1ch);box-sizing:border-box;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}p[data-v-a15ed922],label[data-v-a15ed922]{color:var(--sc-input-label-color);display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;box-sizing:border-box}p[data-v-a15ed922]{width:100%;color:red;font-size:85%;box-sizing:border-box}label[data-v-a15ed922]{z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch;box-sizing:border-box}input[data-v-a15ed922]:focus{border:1px solid var(--sc-input-active-border-color)}input:focus+label[data-v-a15ed922]{color:var(--sc-input-active-label-color)}.autocomplete[data-v-31a6db8c]{position:relative}.input-wrapper[data-v-31a6db8c]{border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-31a6db8c]{width:calc(100% - 1ch);outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}input[data-v-31a6db8c]:focus{border:1px solid var(--sc-input-active-border-color);border-radius:.25rem .25rem 0 0;border-bottom:none}label[data-v-31a6db8c]{display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch}.autocomplete-results[data-v-31a6db8c]{position:absolute;width:calc(100% - 1ch + 1.5px);z-index:999;padding:0;margin:0;color:var(--sc-input-active-border-color);border:1px solid var(--sc-input-active-border-color);border-radius:0 0 .25rem .25rem;border-top:none;background-color:#fff}.autocomplete-result[data-v-31a6db8c]{list-style:none;text-align:left;padding:4px 6px;cursor:pointer;border-bottom:.5px solid lightgray}.autocomplete-result.is-active[data-v-31a6db8c],.autocomplete-result[data-v-31a6db8c]:hover{background-color:var(--sc-row-color-zebra-light);color:var(--sc-input-active-border-color)}.adatepicker[data-v-056d2b5e]{font-size:var(--sc-table-font-size);display:inline-table;color:var(--sc-cell-text-color);outline:none;border-collapse:collapse}.adatepicker tr[data-v-056d2b5e]{height:1.15rem;text-align:center;vertical-align:middle}.adatepicker td[data-v-056d2b5e]{border:2px solid transparent;outline:2px solid transparent;min-width:3ch;max-width:3ch}.adatepicker td[data-v-056d2b5e]:focus,.adatepicker td[data-v-056d2b5e]:focus-within{outline:1px dashed black;box-shadow:none;min-height:1.15em;max-height:1.15em;overflow:hidden}.adatepicker .selectedDate[data-v-056d2b5e]{outline:1px solid black;background:var(--sc-gray-20);font-weight:bolder}.adatepicker .todaysDate[data-v-056d2b5e]{font-weight:bolder;text-decoration:underline;color:#000}.days-header>td[data-v-056d2b5e]{font-weight:700}.prev-date[data-v-056d2b5e]{color:var(--sc-gray-20)}.collapse-button[data-v-6f1c1b45]{width:2ch;min-width:calc(66px - 4ch);background-color:transparent;font-size:150%;text-align:center;border:none;margin-top:-.5rem}.rotated[data-v-6f1c1b45]{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transition:transform .25s;transform-origin:center center}.unrotated[data-v-6f1c1b45]{transform:rotate(0);-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transition:transform .25s}.aform_form-element{padding:0;margin:0;position:relative;box-sizing:border-box;flex-grow:1;min-width:20ch;margin-bottom:1rem}.aform_input-field{outline:1px solid var(--sc-input-border-color);outline-offset:-1px;font-size:1rem;padding:.5rem;margin:0;border-radius:0;box-sizing:border-box;width:100%;min-height:auto;position:relative;color:var(--sc-cell-text-color);background:var(--sc-input-field-background)}.aform_input-field:focus{outline:1px solid var(--sc-input-active-border-color)}.aform_input-field:focus+.aform_field-label{color:var(--sc-input-active-label-color)}.aform_field-label{color:var(--sc-input-label-color);display:inline-block;position:absolute;padding:0 .25rem;margin:0rem;z-index:2;font-size:.7rem;font-weight:300;letter-spacing:.05rem;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);width:auto;box-sizing:border-box;background:#fff;margin:0;grid-row:1;top:0;left:10px;border:none;line-height:0;transform:translateY(-50%)}.aform_input-field:disabled{background:var(--sc-input-field-disabled-background)}.aform_input-field:disabled+.aform_field-label{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_input-field:disabled~p.aform_error{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_field-label:after{margin:0;padding:0;box-sizing:border-box;content:"";line-height:normal}p.aform_error{display:block;display:inline-block;display:none;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);padding:0 .25rem;margin:0rem;width:auto;color:var(--sc-brand-danger);font-size:.7rem;position:absolute;right:0;top:0;line-height:0;background:#fff;padding:.25rem;transform:translate(-1rem,-50%);margin:0}.aform[data-v-06e17c5b]{display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--sc-form-border);border-left:4px solid var(--sc-form-border);margin-bottom:1rem;max-width:100%}@media screen and (max-width:400px){.aform[data-v-06e17c5b]{flex-direction:column}}.aform-nested-section[data-v-06e17c5b]{width:100%;padding:.5rem 0}.aform-nested-label[data-v-06e17c5b]{font-size:.9rem;font-weight:600;margin:0 0 .5rem;color:var(--sc-input-label-color, #666)}.aform-nested-section .aform[data-v-06e17c5b]{border-left-width:2px;margin-left:.5rem}fieldset[data-v-18fd6c61]{max-width:100%;width:100%;margin-right:2ch;border:1px solid transparent;border-bottom:1px solid var(--sc-gray-50)}legend[data-v-18fd6c61]{width:100%;height:1.15rem;border:1px solid transparent;padding-bottom:.5rem;font-size:110%;font-weight:600;-webkit-user-select:none;user-select:none}.collapse-button[data-v-18fd6c61]{float:right}.aform_file-attach[data-v-b700734f]{padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;flex-direction:row;justify-content:center;align-items:center;border:1px dashed var(--sc-input-border-color);width:100%}@media screen and (max-width:400px){.aform_file-attach>.aform_form-btn[data-v-b700734f]{width:100%}}.aform_file-attach-feedback[data-v-b700734f]{color:var(--sc-input-label-color);width:100%;padding:.5rem;text-align:center;align-self:center}.aform_file-attach-feedback>li[data-v-b700734f]{list-style:none;font-style:italic}.aform_file-attach-feedback>p[data-v-b700734f]{margin-top:0}.aform_form-btn[data-v-b700734f]{padding:.5rem 2rem;width:auto;border:1px solid var(--sc-input-border-color);color:var(--sc-input-label-color);cursor:pointer;background-color:#fff}.aform_form-btn[data-v-b700734f]:disabled{background-color:var(--sc-gray-5)}.login-container[data-v-d9ffd0a7]{width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--sc-font-family)}.account-container[data-v-d9ffd0a7]{width:100%;margin-left:auto;margin-top:.5rem;margin-right:auto;display:flex;flex-direction:column;justify-content:center}.account-header[data-v-d9ffd0a7]{display:flex;flex-direction:column;text-align:center;margin-top:.5rem}#account-title[data-v-d9ffd0a7]{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.025em;margin:0}#account-subtitle[data-v-d9ffd0a7]{font-size:.875rem;line-height:1.25rem;margin:1rem}.login-form-container[data-v-d9ffd0a7]{display:grid;gap:.5rem}.login-form-element[data-v-d9ffd0a7]{display:grid;margin:.5rem 0;position:relative}.login-field[data-v-d9ffd0a7]{padding:.5rem .25rem .25rem .5rem;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);border-radius:.25rem}.login-field[data-v-d9ffd0a7]:focus{border:1px solid black}.btn[data-v-d9ffd0a7]{background-color:var(--sc-btn-color);color:var(--sc-btn-label-color);border:1px solid var(--sc-btn-border);margin:.5rem 0;padding:.25rem;position:relative;cursor:pointer}.btn[data-v-d9ffd0a7]:hover{background-color:var(--sc-btn-hover)}.btn[data-v-d9ffd0a7]:disabled{background-color:var(--sc-input-field-disabled-background)}.disabled[data-v-d9ffd0a7]{opacity:.5}.loading-icon[data-v-d9ffd0a7]{animation:spin-d9ffd0a7 1s linear infinite forwards;display:inline-block;margin-right:.2rem;line-height:0;font-size:1rem;position:relative;top:.2rem}@keyframes spin-d9ffd0a7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(it);function st(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const jt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qt=t=>t!=null,Yt=Object.prototype.toString,Xt=t=>Yt.call(t)==="[object Object]",Jt=()=>{};function De(t){return Array.isArray(t)?t:[t]}function Qt(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const pe=jt?window:void 0;function he(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function ke(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=De(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return Qt(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>he(s)))!==null&&a!==void 0?a:[pe].filter(s=>s!=null),De(e.toValue(n.value?t[1]:t[0])),De(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=Xt(i)?{...i}:i,f=a.flatMap(h=>r.flatMap(b=>s.map(v=>o(h,b,v,d))));c(()=>{f.forEach(h=>h())})},{flush:"post"})}function Kt(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function eo(t){const o=Kt();return e.computed(()=>(o.value,!!t()))}function to(t,o,n={}){const{window:a=pe,...r}=n;let s;const i=eo(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const h=De(e.toValue(t)).map(he).filter(qt);return new Set(h)}),h=>{l(),i.value&&h.size&&(s=new MutationObserver(o),h.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return st(f),{isSupported:i,stop:f,takeRecords:d}}function oo(t,o,n={}){const{window:a=pe,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return Jt;let i;const l=f=>{i?.(),i=f},c=e.watchEffect(()=>{const f=he(t);if(f){const{stop:h}=to(r,b=>{b.map(v=>[...v.removedNodes]).flat().some(v=>v===f||v.contains(f))&&o(b)},{window:a,childList:!0,subtree:!0});l(h)}},{flush:s}),d=()=>{c(),l()};return st(d),d}function no(t={}){var o;const{window:n=pe,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,i=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},l=e.shallowRef(),c=()=>{l.value=i()};if(n){const d={capture:!0,passive:!0};ke(n,"blur",f=>{f.relatedTarget===null&&c()},d),ke(n,"focus",c,d)}return r&&oo(l,c,{document:s}),c(),l}const ao="focusin",lo="focusout",ro=":focus-within";function io(t,o={}){const{window:n=pe}=o,a=e.computed(()=>he(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!no(o).value)return{focused:s};const i={passive:!0};return ke(a,ao,()=>r.value=!0,i),ke(a,lo,()=>{var l,c,d;return r.value=(l=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,ro))!==null&&l!==void 0?l:!1},i),{focused:s}}function so(t,{window:o=pe,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,i=he(t);if(!i)a.value=!1;else{const l=i.getBoundingClientRect();a.value=l.top<=(o.innerHeight||s.documentElement.clientHeight)&&l.left<=(o.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return e.watch(()=>he(t),()=>r(),{immediate:!0,flush:"post"}),o&&ke(n||o,"scroll",r,{capture:!1,passive:!0}),a}const oe=t=>{let o=so(t).value;return o=o&&t.offsetHeight>0,o},ne=t=>t.tabIndex>=0,ct=t=>{const o=t.target;return Pe(o)},Pe=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!ne(o)||!oe(o))?Pe(o):o},co=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!ne(n)||!oe(n))?Oe(n):n},dt=t=>{const o=t.target;return Oe(o)},Oe=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!ne(o)||!oe(o))?Oe(o):o},fo=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!ne(n)||!oe(n))?Pe(n):n},ft=t=>{const o=t.target;return Fe(o)},Fe=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!ne(o)||!oe(o))?Fe(o):o},ut=t=>{const o=t.target;return Ze(o)},Ze=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!ne(o)||!oe(o))?Ze(o):o},mt=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!ne(o)||!oe(o))?Ze(o):o},pt=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!ne(o)||!oe(o))?Fe(o):o},Se=["alt","control","shift","meta"],uo={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Te={"keydown.up":t=>{const o=ct(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=dt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=ft(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=ut(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=co(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=fo(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=pt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=pt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=dt(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=ct(t);o&&o.focus()}},"keydown.home":t=>{const o=mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=ut(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=ft(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function Ue(t){const o=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{const l=o(i);let c=[];if(typeof i.selectors=="string")c=Array.from(l?l.querySelectorAll(i.selectors):document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const d of i.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(i.selectors instanceof HTMLElement)c.push(i.selectors);else if(i.selectors?.value)if(Array.isArray(i.selectors.value))for(const d of i.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(i.selectors.value);return c},a=i=>{const l=o(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(d=>ne(d)&&oe(d))),c},r=i=>l=>{const c=uo[l.key]||l.key.toLowerCase();if(Se.includes(c))return;const d=i.handlers||Te;for(const f of Object.keys(d)){const[h,...b]=f.split(".");if(h==="keydown"&&b.includes(c)){const v=d[f],y=b.filter(m=>Se.includes(m)),x=Se.some(m=>{const g=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(g)});if(y.length>0){if(x){for(const m of Se)if(b.includes(m)){const g=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(g)&&v(l)}}}else x||v(l)}}},s=[];e.onMounted(()=>{for(const i of t){const l=o(i),c=a(i),d=r(i),f=l?[l]:c;for(const h of f){const{focused:b}=io(e.ref(h)),v=e.watch(b,y=>{y?h.addEventListener("keydown",d):h.removeEventListener("keydown",d)});s.push(v)}}}),e.onBeforeUnmount(()=>{for(const i of s)i()})}function We(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mo=t=>t!=null,po=Object.prototype.toString,ho=t=>po.call(t)==="[object Object]",ue=()=>{};function go(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ue}))):e.ref(o)}function bo(t,o){function n(...a){return new Promise((r,s)=>{Promise.resolve(t(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(r).catch(s)})}return n}function wo(t,o={}){let n,a,r=ue;const s=l=>{clearTimeout(l),r(),r=ue};let i;return l=>{const c=e.toValue(t),d=e.toValue(o.maxWait);return n&&s(n),c<=0||d!==void 0&&d<=0?(a&&(s(a),a=void 0),Promise.resolve(l())):new Promise((f,h)=>{r=o.rejectOnCancel?h:f,i=l,d&&!a&&(a=setTimeout(()=>{n&&s(n),a=void 0,f(i())},d)),n=setTimeout(()=>{a&&s(a),a=void 0,f(l())},c)})}}function Ae(t){return Array.isArray(t)?t:[t]}function xo(t){return e.getCurrentInstance()}function vo(t,o=200,n={}){return bo(wo(o,n),t)}function yo(t,o={}){if(!e.isRef(t))return e.toRefs(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const a in t.value)n[a]=e.customRef(()=>({get(){return t.value[a]},set(r){var s;if(!((s=e.toValue(o.replaceRef))!==null&&s!==void 0)||s)if(Array.isArray(t.value)){const i=[...t.value];i[a]=r,t.value=i}else{const i={...t.value,[a]:r};Object.setPrototypeOf(i,Object.getPrototypeOf(t.value)),t.value=i}else t.value[a]=r}}));return n}function ko(t,o=!0,n){xo()?e.onMounted(t,n):o?t():e.nextTick(t)}function Eo(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const Ee=ht?window:void 0;function te(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function se(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=Ae(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return Eo(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>te(s)))!==null&&a!==void 0?a:[Ee].filter(s=>s!=null),Ae(e.toValue(n.value?t[1]:t[0])),Ae(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=ho(i)?{...i}:i,f=a.flatMap(h=>r.flatMap(b=>s.map(v=>o(h,b,v,d))));c(()=>{f.forEach(h=>h())})},{flush:"post"})}function Ge(t,o,n={}){const{window:a=Ee,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!a)return l?{stop:ue,cancel:ue,trigger:ue}:ue;let c=!0;const d=m=>e.toValue(r).some(g=>{if(typeof g=="string")return Array.from(a.document.querySelectorAll(g)).some(w=>w===m.target||m.composedPath().includes(w));{const w=te(g);return w&&(m.target===w||m.composedPath().includes(w))}});function f(m){const g=e.toValue(m);return g&&g.$.subTree.shapeFlag===16}function h(m,g){const w=e.toValue(m),E=w.$.subTree&&w.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(V=>V.el===g.target||g.composedPath().includes(V.el))}const b=m=>{const g=te(t);if(m.target!=null&&!(!(g instanceof Element)&&f(t)&&h(t,m))&&!(!g||g===m.target||m.composedPath().includes(g))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let v=!1;const y=[se(a,"click",m=>{v||(v=!0,setTimeout(()=>{v=!1},0),b(m))},{passive:!0,capture:s}),se(a,"pointerdown",m=>{const g=te(t);c=!d(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),i&&se(a,"blur",m=>{setTimeout(()=>{var g;const w=te(t);((g=a.document.activeElement)===null||g===void 0?void 0:g.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),x=()=>y.forEach(m=>m());return l?{stop:x,cancel:()=>{c=!1},trigger:m=>{c=!0,b(m),c=!1}}:x}function Co(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function gt(t){const o=Co();return e.computed(()=>(o.value,!!t()))}function bt(t,o,n={}){const{window:a=Ee,...r}=n;let s;const i=gt(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const h=Ae(e.toValue(t)).map(te).filter(mo);return new Set(h)}),h=>{l(),i.value&&h.size&&(s=new MutationObserver(o),h.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return We(f),{isSupported:i,stop:f,takeRecords:d}}const Ne={speed:2,margin:30,direction:"both"};function Vo(t){t.scrollLeft>t.scrollWidth-t.clientWidth&&(t.scrollLeft=Math.max(0,t.scrollWidth-t.clientWidth)),t.scrollTop>t.scrollHeight-t.clientHeight&&(t.scrollTop=Math.max(0,t.scrollHeight-t.clientHeight))}function je(t,o={}){var n,a,r,s;const{pointerTypes:i,preventDefault:l,stopPropagation:c,exact:d,onMove:f,onEnd:h,onStart:b,initialValue:v,axis:y="both",draggingElement:x=Ee,containerElement:m,handle:g=t,buttons:w=[0],restrictInView:E,autoScroll:V=!1}=o,B=e.ref((n=e.toValue(v))!==null&&n!==void 0?n:{x:0,y:0}),I=e.ref(),A=M=>i?i.includes(M.pointerType):!0,L=M=>{e.toValue(l)&&M.preventDefault(),e.toValue(c)&&M.stopPropagation()},K=e.toValue(V),O=typeof K=="object"?{speed:(a=e.toValue(K.speed))!==null&&a!==void 0?a:Ne.speed,margin:(r=e.toValue(K.margin))!==null&&r!==void 0?r:Ne.margin,direction:(s=K.direction)!==null&&s!==void 0?s:Ne.direction}:Ne,F=M=>typeof M=="number"?[M,M]:[M.x,M.y],ee=(M,R,_)=>{const{clientWidth:Z,clientHeight:P,scrollLeft:Y,scrollTop:ie,scrollWidth:fe,scrollHeight:T}=M,[N,H]=F(O.margin),[U,G]=F(O.speed);let W=0,X=0;(O.direction==="x"||O.direction==="both")&&(_.x<N&&Y>0?W=-U:_.x+R.width>Z-N&&Y<fe-Z&&(W=U)),(O.direction==="y"||O.direction==="both")&&(_.y<H&&ie>0?X=-G:_.y+R.height>P-H&&ie<T-P&&(X=G)),(W||X)&&M.scrollBy({left:W,top:X,behavior:"auto"})};let Q=null;const xe=()=>{const M=e.toValue(m);M&&!Q&&(Q=setInterval(()=>{const R=e.toValue(t).getBoundingClientRect(),{x:_,y:Z}=B.value,P={x:_-M.scrollLeft,y:Z-M.scrollTop};P.x>=0&&P.y>=0&&(ee(M,R,P),P.x+=M.scrollLeft,P.y+=M.scrollTop,B.value=P)},1e3/60))},de=()=>{Q&&(clearInterval(Q),Q=null)},Me=(M,R,_,Z)=>{const[P,Y]=typeof _=="number"?[_,_]:[_.x,_.y],{clientWidth:ie,clientHeight:fe}=R;return M.x<P||M.x+Z.width>ie-P||M.y<Y||M.y+Z.height>fe-Y},Ie=()=>{if(e.toValue(o.disabled)||!I.value)return;const M=e.toValue(m);if(!M)return;const R=e.toValue(t).getBoundingClientRect(),{x:_,y:Z}=B.value;Me({x:_-M.scrollLeft,y:Z-M.scrollTop},M,O.margin,R)?xe():de()};e.toValue(V)&&e.watch(B,Ie);const ve=M=>{var R;if(!e.toValue(w).includes(M.button)||e.toValue(o.disabled)||!A(M)||e.toValue(d)&&M.target!==e.toValue(t))return;const _=e.toValue(m),Z=_==null||(R=_.getBoundingClientRect)===null||R===void 0?void 0:R.call(_),P=e.toValue(t).getBoundingClientRect(),Y={x:M.clientX-(_?P.left-Z.left+(V?0:_.scrollLeft):P.left),y:M.clientY-(_?P.top-Z.top+(V?0:_.scrollTop):P.top)};b?.(Y,M)!==!1&&(I.value=Y,L(M))},Be=M=>{if(e.toValue(o.disabled)||!A(M)||!I.value)return;const R=e.toValue(m);R instanceof HTMLElement&&Vo(R);const _=e.toValue(t).getBoundingClientRect();let{x:Z,y:P}=B.value;if((y==="x"||y==="both")&&(Z=M.clientX-I.value.x,R&&(Z=Math.min(Math.max(0,Z),R.scrollWidth-_.width))),(y==="y"||y==="both")&&(P=M.clientY-I.value.y,R&&(P=Math.min(Math.max(0,P),R.scrollHeight-_.height))),e.toValue(V)&&R&&(Q===null&&ee(R,_,{x:Z,y:P}),Z+=R.scrollLeft,P+=R.scrollTop),R&&(E||V)){if(y!=="y"){const Y=Z-R.scrollLeft;Y<0?Z=R.scrollLeft:Y>R.clientWidth-_.width&&(Z=R.clientWidth-_.width+R.scrollLeft)}if(y!=="x"){const Y=P-R.scrollTop;Y<0?P=R.scrollTop:Y>R.clientHeight-_.height&&(P=R.clientHeight-_.height+R.scrollTop)}}B.value={x:Z,y:P},f?.(B.value,M),L(M)},ye=M=>{e.toValue(o.disabled)||!A(M)||I.value&&(I.value=void 0,V&&de(),h?.(B.value,M),L(M))};if(ht){const M=()=>{var R;return{capture:(R=o.capture)!==null&&R!==void 0?R:!0,passive:!e.toValue(l)}};se(g,"pointerdown",ve,M),se(x,"pointermove",Be,M),se(x,"pointerup",ye,M)}return{...yo(B),position:B,isDragging:e.computed(()=>!!I.value),style:e.computed(()=>`
|
|
3
|
+
left: ${B.value.x}px;
|
|
4
|
+
top: ${B.value.y}px;
|
|
5
|
+
${V?"text-wrap: nowrap;":""}
|
|
6
|
+
`)}}function Re(t,o,n={}){const{window:a=Ee,...r}=n;let s;const i=gt(()=>a&&"ResizeObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const f=e.toValue(t);return Array.isArray(f)?f.map(h=>te(h)):[te(f)]}),f=>{if(l(),i.value&&a){s=new ResizeObserver(o);for(const h of f)h&&s.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return We(d),{isSupported:i,stop:d}}function me(t,o={}){const{reset:n=!0,windowResize:a=!0,windowScroll:r=!0,immediate:s=!0,updateTiming:i="sync"}=o,l=e.shallowRef(0),c=e.shallowRef(0),d=e.shallowRef(0),f=e.shallowRef(0),h=e.shallowRef(0),b=e.shallowRef(0),v=e.shallowRef(0),y=e.shallowRef(0);function x(){const g=te(t);if(!g){n&&(l.value=0,c.value=0,d.value=0,f.value=0,h.value=0,b.value=0,v.value=0,y.value=0);return}const w=g.getBoundingClientRect();l.value=w.height,c.value=w.bottom,d.value=w.left,f.value=w.right,h.value=w.top,b.value=w.width,v.value=w.x,y.value=w.y}function m(){i==="sync"?x():i==="next-frame"&&requestAnimationFrame(()=>x())}return Re(t,m),e.watch(()=>te(t),g=>!g&&m()),bt(t,m,{attributeFilter:["style","class"]}),r&&se("scroll",m,{capture:!0,passive:!0}),a&&se("resize",m,{passive:!0}),ko(()=>{s&&m()}),{height:l,bottom:c,left:d,right:f,top:h,width:b,x:v,y,update:m}}function qe(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Ye=new WeakMap;function Mo(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(go(t),i=>{const l=qe(e.toValue(i));if(l){const c=l;if(Ye.get(c)||Ye.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const i=qe(e.toValue(t));!i||n.value||(i.style.overflow="hidden",n.value=!0)},s=()=>{const i=qe(e.toValue(t));!i||!n.value||(i.style.overflow=a,Ye.delete(i),n.value=!1)};return We(s),e.computed({get(){return n.value},set(i){i?r():s()}})}const Io=t=>{const o=new DOMParser().parseFromString(t,"text/html");return Array.from(o.body.childNodes).some(n=>n.nodeType===1)},Bo=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Do=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],So=["innerHTML"],To={key:2},Ao=e.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean,default:!1},debounce:{default:300}},setup(t,{expose:o}){const n=e.useTemplateRef("cell"),a=t.store.getCellData(t.colIndex,t.rowIndex),r=e.ref(""),s=e.ref(!1),i=t.store.columns[t.colIndex],l=t.store.rows[t.rowIndex],c=i.align||"center",d=i.width||"40ch",f=e.computed(()=>t.store.getCellDisplayValue(t.colIndex,t.rowIndex)),h=e.computed(()=>typeof f.value=="string"?Io(f.value):!1),b=e.computed(()=>({textAlign:c,width:d,fontWeight:s.value?"bold":"inherit",paddingLeft:t.store.getIndent(t.colIndex,t.store.display[t.rowIndex]?.indent)})),v=e.computed(()=>({"sticky-column":t.pinned,"cell-modified":s.value})),y=()=>{m(),x()},x=()=>{const{left:I,bottom:A,width:L,height:K}=me(n);i.mask,i.modalComponent&&t.store.$patch(O=>{O.modal.visible=!0,O.modal.colIndex=t.colIndex,O.modal.rowIndex=t.rowIndex,O.modal.left=I,O.modal.bottom=A,O.modal.width=L,O.modal.height=K,O.modal.cell=n.value,typeof i.modalComponent=="function"?O.modal.component=i.modalComponent({table:O.table,row:l,column:i}):O.modal.component=i.modalComponent,O.modal.componentProps=i.modalComponentExtraProps})};if(t.addNavigation){let I={...Te,"keydown.f2":x,"keydown.alt.up":x,"keydown.alt.down":x,"keydown.alt.left":x,"keydown.alt.right":x};typeof t.addNavigation=="object"&&(I={...I,...t.addNavigation}),Ue([{selectors:n,handlers:I}])}const m=()=>{if(n.value&&i.edit){const I=window.getSelection();if(I)try{const A=document.createRange();A.selectNodeContents&&(A.selectNodeContents(n.value),I.removeAllRanges(),I.addRange(A))}catch{}}},g=()=>{n.value&&(r.value=n.value.textContent,m())},w=()=>{try{const I=window.getSelection();if(I&&I.rangeCount>0&&n.value){const A=I.getRangeAt(0),L=A.cloneRange();if(L.selectNodeContents&&L.setEnd)return L.selectNodeContents(n.value),L.setEnd(A.endContainer,A.endOffset),L.toString().length}}catch{}return 0},E=I=>{if(n.value)try{const A=window.getSelection();if(!A)return;let L=0;const K=document.createTreeWalker?document.createTreeWalker(n.value,NodeFilter.SHOW_TEXT,null):null;if(!K)return;let O,F=null;for(;O=K.nextNode();){const ee=O,Q=L+ee.textContent.length;if(I<=Q&&(F=document.createRange(),F.setStart&&F.setEnd)){F.setStart(ee,I-L),F.setEnd(ee,I-L);break}L=Q}F&&A.removeAllRanges&&A.addRange&&(A.removeAllRanges(),A.addRange(F))}catch{}},V=I=>{if(!i.edit)return;const A=I.target;if(A.textContent===r.value)return;const L=w();r.value=A.textContent,i.format?(s.value=A.textContent!==t.store.getFormattedValue(t.colIndex,t.rowIndex,a),t.store.setCellText(t.colIndex,t.rowIndex,A.textContent)):(s.value=A.textContent!==a,t.store.setCellData(t.colIndex,t.rowIndex,A.textContent)),e.nextTick().then(()=>{E(L)})},B=vo(V,t.debounce);return o({currentData:r}),(I,A)=>(e.openBlock(),e.createElementBlock("td",{ref:"cell","data-colindex":t.colIndex,"data-rowindex":t.rowIndex,"data-editable":e.unref(i).edit,contenteditable:e.unref(i).edit,tabindex:t.tabIndex,spellcheck:!1,style:e.normalizeStyle(b.value),class:e.normalizeClass(["atable-cell",v.value]),onFocus:g,onPaste:V,onInput:A[0]||(A[0]=(...L)=>e.unref(B)&&e.unref(B)(...L)),onClick:y},[e.unref(i).cellComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i).cellComponent),e.mergeProps({key:0,value:f.value},e.unref(i).cellComponentProps),null,16,["value"])):h.value?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:f.value},null,8,So)):(e.openBlock(),e.createElementBlock("span",To,e.toDisplayString(f.value),1))],46,Do))}}),No=["tabindex"],Ro=["tabindex"],$o=["colspan"],zo=e.defineComponent({__name:"AExpansionRow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:()=>Te}},setup(t){const o=e.useTemplateRef("rowEl"),n=e.computed(()=>t.store.display[t.rowIndex].expanded?"▼":"►");if(t.addNavigation){const a={"keydown.control.g":r=>{r.stopPropagation(),r.preventDefault(),t.store.toggleRowExpand(t.rowIndex)}};typeof t.addNavigation=="object"&&Object.assign(a,t.addNavigation),Ue([{selectors:o,handlers:a}])}return(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("tr",e.mergeProps(a.$attrs,{ref:"rowEl",tabindex:t.tabIndex,class:"expandable-row"}),[e.createElementVNode("td",{tabIndex:-1,class:"row-index",onClick:r[0]||(r[0]=s=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(n.value),1),e.renderSlot(a.$slots,"row",{},void 0,!0)],16,No),t.store.display[t.rowIndex].expanded?(e.openBlock(),e.createElementBlock("tr",{key:0,ref:"rowExpanded",tabindex:t.tabIndex,class:"expanded-row"},[e.createElementVNode("td",{tabIndex:-1,colspan:t.store.columns.length+1,class:"expanded-row-content"},[e.renderSlot(a.$slots,"content",{},void 0,!0)],8,$o)],8,Ro)):e.createCommentVNode("",!0)],64))}}),ce=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},Lo=ce(zo,[["__scopeId","data-v-a42297c7"]]),_o=["colspan"],Ho={ref:"container",class:"gantt-container"},Po=["data-rowindex","data-colindex"],Oo={key:2,class:"gantt-label"},Fo=["x1","y1","x2","y2"],Zo=e.defineComponent({__name:"AGanttCell",props:{store:{},columnsCount:{},rowIndex:{},colIndex:{},start:{default:0},end:{default:0},colspan:{default:1},label:{default:""},color:{default:"#cccccc"}},emits:["connection:create"],setup(t,{expose:o,emit:n}){e.useCssVars(T=>({v6d722296:r.value,v260b36f8:T.colspan}));const a=n,r=e.ref(t.color.length>=6?t.color:"#cccccc"),s=`gantt-bar-row-${t.rowIndex}-col-${t.colIndex}`,i=e.useTemplateRef("container"),l=e.useTemplateRef("bar"),c=e.useTemplateRef("leftResizeHandle"),d=e.useTemplateRef("rightResizeHandle"),f=e.useTemplateRef("leftConnectionHandle"),h=e.useTemplateRef("rightConnectionHandle"),{width:b}=me(i),{left:v,right:y}=me(l),x=e.ref(t.start),m=e.ref(t.end||x.value+t.colspan),g=e.ref(!1),w=e.ref(!1),E=e.ref(!1),V=e.ref(!1),B=e.ref(!1),I=e.ref({startX:0,startY:0,endX:0,endY:0}),A=e.computed(()=>xe.value||ee.value||Q.value),L=e.computed(()=>t.colspan>0?b.value/t.colspan:0),K=e.computed(()=>{const T=x.value/t.colspan*100,N=m.value/t.colspan*100;return{left:`${T}%`,width:`${N-T}%`,backgroundColor:r.value}}),O=e.computed(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:1e3})),F=e.ref({startX:0,startPos:0}),{isDragging:ee}=je(c,{axis:"x",onStart:()=>de(v.value,x.value),onMove:({x:T})=>Me(T),onEnd:({x:T})=>Ie(T)}),{isDragging:Q}=je(d,{axis:"x",onStart:()=>de(y.value,m.value),onMove:({x:T})=>ve(T),onEnd:({x:T})=>Be(T)}),{isDragging:xe}=je(l,{exact:!0,axis:"x",onStart:()=>de(v.value,x.value),onMove:({x:T})=>ye(T),onEnd:({x:T})=>M(T)});e.onMounted(()=>{R()}),e.onUnmounted(()=>{_()});function de(T,N){l.value&&(l.value.style.transition="none"),F.value={startX:T,startPos:N}}function Me(T){if(!ee.value||!l.value)return;const N=(T-F.value.startX)/L.value,H=Math.max(0,Math.min(m.value-1,F.value.startPos+N));l.value.style.left=`${H/t.colspan*100}%`,l.value.style.width=`${(m.value-H)/t.colspan*100}%`}function Ie(T){if(!l.value)return;const N=T-F.value.startX,H=Math.round(N/L.value),U=x.value,G=Math.max(0,Math.min(m.value-1,F.value.startPos+H));x.value=G,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"start",oldStart:U,newStart:G,end:m.value,delta:H,oldColspan:m.value-U,newColspan:m.value-G})}function ve(T){if(!Q.value||!l.value)return;const N=(T-F.value.startX)/L.value,H=Math.max(x.value+1,Math.min(t.columnsCount,F.value.startPos+N));l.value.style.width=`${(H-x.value)/t.colspan*100}%`}function Be(T){if(!l.value)return;const N=T-F.value.startX,H=Math.round(N/L.value),U=m.value,G=Math.max(x.value+1,Math.min(t.columnsCount,F.value.startPos+H));m.value=G,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"end",oldEnd:U,newEnd:G,start:x.value,delta:H,oldColspan:U-x.value,newColspan:G-x.value})}function ye(T){if(!xe.value||!l.value)return;const N=(T-F.value.startX)/L.value,H=m.value-x.value,U=Math.max(0,Math.min(F.value.startPos+N,t.columnsCount-H));l.value.style.left=`${U/t.colspan*100}%`}function M(T){if(!l.value)return;const N=T-F.value.startX,H=Math.round(N/L.value),U=m.value-x.value,G=x.value,W=m.value;let X=F.value.startPos+H,J=X+U;X<0?(X=0,J=U):J>t.columnsCount&&(J=t.columnsCount,X=J-U),x.value=X,m.value=J,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"bar",oldStart:G,oldEnd:W,newStart:X,newEnd:J,delta:H,colspan:J-X})}function R(){const{x:T,y:N}=me(l),{x:H,y:U}=me(f),{x:G,y:W}=me(h);t.store.registerGanttBar({id:s,rowIndex:t.rowIndex,colIndex:t.colIndex,startIndex:x,endIndex:m,color:r,label:t.label,position:{x:T,y:N}}),t.store.isDependencyGraphEnabled&&(t.store.registerConnectionHandle({id:`${s}-connection-left`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"left",position:{x:H,y:U},visible:g,barId:s}),t.store.registerConnectionHandle({id:`${s}-connection-right`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"right",position:{x:G,y:W},visible:w,barId:s}))}function _(){t.store.unregisterGanttBar(s),t.store.isDependencyGraphEnabled&&(t.store.unregisterConnectionHandle(`${s}-connection-left`),t.store.unregisterConnectionHandle(`${s}-connection-right`))}function Z(){t.store.isDependencyGraphEnabled&&(g.value=!0,w.value=!0)}function P(){!E.value&&!V.value&&(g.value=!1,w.value=!1)}function Y(T,N){N.preventDefault(),N.stopPropagation(),B.value=!0,T==="left"?E.value=!0:V.value=!0;const H=T==="left"?f.value:h.value;if(H){const W=H.getBoundingClientRect(),X=W.left+W.width/2,J=W.top+W.height/2;I.value={startX:X,startY:J,endX:X,endY:J}}const U=W=>{I.value.endX=W.clientX,I.value.endY=W.clientY},G=W=>{ie(W,T),fe(U,G)};document.addEventListener("mousemove",U),document.addEventListener("mouseup",G)}function ie(T,N){const H=document.elementFromPoint(T.clientX,T.clientY)?.closest(".connection-handle");if(H&&H!==(N==="left"?f.value:h.value)){const U=H.closest(".gantt-bar");if(U){const G=parseInt(U.getAttribute("data-rowindex")||"0"),W=parseInt(U.getAttribute("data-colindex")||"0"),X=H.classList.contains("left-connection-handle")?"left":"right",J=`gantt-bar-row-${G}-col-${W}`,u=t.store.createConnection(`${s}-connection-${N}`,`${J}-connection-${X}`);u&&a("connection:create",u)}}}function fe(T,N){B.value=!1,E.value=!1,V.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",N),l.value?.matches(":hover")||P()}return o({barStyle:K,cleanupConnectionDrag:fe,currentEnd:m,handleConnectionDrop:ie,isLeftConnectionDragging:E,isLeftConnectionVisible:g,isRightConnectionDragging:V,isRightConnectionVisible:w,showDragPreview:B}),(T,N)=>(e.openBlock(),e.createElementBlock("td",{class:"aganttcell",colspan:t.colspan},[e.createElementVNode("div",Ho,[e.createElementVNode("div",{ref:"bar","data-rowindex":t.rowIndex,"data-colindex":t.colIndex,class:e.normalizeClass(["gantt-bar",{"is-dragging":A.value}]),style:e.normalizeStyle(K.value),onMouseenter:Z,onMouseleave:P},[t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"leftConnectionHandle",class:e.normalizeClass(["connection-handle left-connection-handle",{visible:g.value,"is-dragging":E.value}]),onMousedown:N[0]||(N[0]=e.withModifiers(H=>Y("left",H),["stop"]))},[...N[2]||(N[2]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"rightConnectionHandle",class:e.normalizeClass(["connection-handle right-connection-handle",{visible:w.value,"is-dragging":V.value}]),onMousedown:N[1]||(N[1]=e.withModifiers(H=>Y("right",H),["stop"]))},[...N[3]||(N[3]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"leftResizeHandle",class:e.normalizeClass(["resize-handle left-resize-handle",{"is-dragging":e.unref(ee)}])},[...N[4]||(N[4]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator left-indicator"},null,-1)])],2),t.label?(e.openBlock(),e.createElementBlock("label",Oo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"rightResizeHandle",class:e.normalizeClass(["resize-handle right-resize-handle",{"is-dragging":e.unref(Q)}])},[...N[5]||(N[5]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator right-indicator"},null,-1)])],2)],46,Po)],512),t.store.isDependencyGraphEnabled&&B.value?(e.openBlock(),e.createElementBlock("svg",{key:0,style:e.normalizeStyle(O.value)},[e.createElementVNode("line",{x1:I.value.startX,y1:I.value.startY,x2:I.value.endX,y2:I.value.endY,stroke:"#2196f3","stroke-width":"2","stroke-dasharray":"5,5"},null,8,Fo)],4)):e.createCommentVNode("",!0)],8,_o))}}),Uo=ce(Zo,[["__scopeId","data-v-8917a8a3"]]),Wo=`<?xml version="1.0" encoding="UTF-8"?>
|
|
3
7
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
4
8
|
<path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
|
|
5
9
|
<polygon points="34 18 30 18 30 30 18 30 18 34 30 34 30 46 34 46 34 34 46 34 46 30 34 30 34 18" style="fill: #000; stroke-width: 0px;"/>
|
|
6
10
|
</svg>
|
|
7
|
-
`,
|
|
11
|
+
`,Go=`<?xml version="1.0" encoding="UTF-8"?>
|
|
8
12
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
9
13
|
<path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
|
|
10
14
|
<polygon points="46.84 19.99 44.01 17.16 32 29.17 19.99 17.16 17.16 19.99 29.17 32 17.16 44.01 19.99 46.84 32 34.83 44.01 46.84 46.84 44.01 34.83 32 46.84 19.99" style="fill: #000; stroke-width: 0px;"/>
|
|
11
|
-
</svg>`,
|
|
15
|
+
</svg>`,jo=`<?xml version="1.0" encoding="UTF-8"?>
|
|
12
16
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.67">
|
|
13
17
|
<path d="M68.67,16.67h-14.67V2c0-1.1-.9-2-2-2H2C.9,0,0,.9,0,2v50c0,1.1.9,2,2,2h14.67v14.67c0,1.1.9,2,2,2h50c1.1,0,2-.9,2-2V18.67c0-1.1-.9-2-2-2ZM4,4h46v46H4V4ZM66.67,66.67H20.67v-12.67h31.33c1.1,0,2-.9,2-2v-31.33h12.67v46Z" style="fill: #000; stroke-width: 0px;"/>
|
|
14
18
|
<polygon points="41 25 29 25 29 13 25 13 25 25 13 25 13 29 25 29 25 41 29 41 29 29 41 29 41 25" style="fill: #000; stroke-width: 0px;"/>
|
|
15
|
-
</svg>`,
|
|
19
|
+
</svg>`,qo=`<?xml version="1.0" encoding="UTF-8"?>
|
|
16
20
|
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
|
|
17
21
|
<path d="M68.6,45.8v13.7H2v-13.7h66.6M70.6,43.8H0v17.7h70.6v-17.7h0Z"/>
|
|
18
22
|
<path d="M68.6,24.2v13.7H2v-13.7h66.6M70.6,22.2H0v17.7h70.6v-17.7h0Z"/>
|
|
@@ -26,7 +30,7 @@
|
|
|
26
30
|
<polygon points="70.6 18.7 68.1 18.7 68.1 16.7 68.6 16.7 68.6 16.2 70.6 16.2 70.6 18.7"/>
|
|
27
31
|
<path d="M70.6,13.4h-2v-2.7h2v2.7ZM70.6,8h-2v-2.7h2v2.7Z"/>
|
|
28
32
|
</g>
|
|
29
|
-
</svg>`,
|
|
33
|
+
</svg>`,Yo=`<?xml version="1.0" encoding="UTF-8"?>
|
|
30
34
|
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
|
|
31
35
|
<g>
|
|
32
36
|
<polygon points="70.6 45.3 68.6 45.3 68.6 44.8 68.1 44.8 68.1 42.8 70.6 42.8 70.6 45.3"/>
|
|
@@ -40,8 +44,8 @@
|
|
|
40
44
|
</g>
|
|
41
45
|
<path d="M68.6,23.7v13.7H2v-13.7h66.6M70.6,21.7H0v17.7h70.6v-17.7h0Z"/>
|
|
42
46
|
<path d="M68.6,2v13.7H2V2h66.6M70.6,0H0v17.7h70.6V0h0Z"/>
|
|
43
|
-
</svg>`,
|
|
47
|
+
</svg>`,Xo=`<?xml version="1.0" encoding="UTF-8"?>
|
|
44
48
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.64">
|
|
45
49
|
<path d="M70.08,33.9l-9.75-9.75-2.83,2.83,6.33,6.33h-26.51V6.81l6.33,6.33,2.83-2.83L36.75.56c-.75-.75-2.08-.75-2.83,0l-9.75,9.75,2.83,2.83,6.33-6.33v26.5H6.83l6.33-6.33-2.83-2.83L.59,33.9c-.38.38-.59.88-.59,1.41s.21,1.04.59,1.41l9.75,9.75,2.83-2.83-6.33-6.33h26.5v26.51l-6.33-6.33-2.83,2.83,9.75,9.75c.38.38.88.59,1.41.59s1.04-.21,1.41-.59l9.75-9.75-2.83-2.83-6.33,6.33v-26.51h26.51l-6.33,6.33,2.83,2.83,9.75-9.75c.38-.38.59-.88.59-1.41s-.21-1.04-.59-1.41Z" style="fill: #000; stroke-width: 0px;"/>
|
|
46
|
-
</svg>`,Yo={add:Zo,delete:jo,duplicate:Wo,insertAbove:Go,insertBelow:Uo,move:qo},Xo={key:0,class:"row-actions-dropdown"},Jo=["aria-expanded"],Ko=["onClick"],Qo=["innerHTML"],en={class:"action-label"},tn={key:1,class:"row-actions-icons"},on=["title","aria-label","onClick"],nn=["innerHTML"],xe=e.defineComponent({__name:"ARowActions",props:{rowIndex:{},store:{},config:{},position:{}},emits:["action"],setup(t,{emit:o}){const n=t,a=o,r=e.useTemplateRef("actionsCell"),s=e.useTemplateRef("toggleButton"),i=e.ref(0),l=e.ref(!1),c=e.ref(!1),d=e.ref({top:0,left:0}),f={add:"Add Row",delete:"Delete Row",duplicate:"Duplicate Row",insertAbove:"Insert Above",insertBelow:"Insert Below",move:"Move Row"},g=e.computed(()=>{const h=[],w=n.config.actions||{},E=["add","delete","duplicate","insertAbove","insertBelow","move"];for(const I of E){const A=w[I];if(A===!1||A===void 0)continue;let B=!0,C=f[I],T=Yo[I];typeof A=="object"&&(B=A.enabled!==!1,C=A.label||C,T=A.icon||T),B&&h.push({type:I,label:C,icon:T})}return h}),b=e.computed(()=>{if(n.config.forceDropdown)return!0;const h=n.config.dropdownThreshold??150;return h===0?!1:i.value>0&&i.value<h}),x=e.computed(()=>l.value?c.value?{position:"fixed",bottom:`${window.innerHeight-d.value.top}px`,left:`${d.value.left}px`,top:"auto"}:{position:"fixed",top:`${d.value.top}px`,left:`${d.value.left}px`}:{});ve(r,h=>{const w=h[0];w&&(i.value=w.contentRect.width)});const k=()=>{l.value||v(),l.value=!l.value},v=()=>{if(!s.value)return;const h=s.value.getBoundingClientRect(),w=window.innerHeight,E=g.value.length*40+16,I=w-h.bottom,A=h.top;c.value=I<E&&A>E,c.value?d.value={top:h.top,left:h.left}:d.value={top:h.bottom,left:h.left}};Le(r,()=>{l.value=!1});const m=h=>{l.value=!1;const w=n.config.actions?.[h];typeof w=="object"&&w.handler&&w.handler(n.rowIndex,n.store)===!1||a("action",h,n.rowIndex)};return(h,w)=>(e.openBlock(),e.createElementBlock("td",{ref:"actionsCell",class:e.normalizeClass(["atable-row-actions",{"sticky-column":t.position==="before-index","dropdown-active":l.value}])},[b.value?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("button",{ref:"toggleButton",type:"button",class:"row-actions-toggle","aria-expanded":l.value,"aria-haspopup":"true",onClick:e.withModifiers(k,["stop"])},[...w[0]||(w[0]=[e.createElementVNode("span",{class:"dropdown-icon"},"⋮",-1)])],8,Jo),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["row-actions-menu",{"menu-flipped":c.value}]),style:e.normalizeStyle(x.value),role:"menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,E=>(e.openBlock(),e.createElementBlock("button",{key:E.type,type:"button",class:"row-action-menu-item",role:"menuitem",onClick:e.withModifiers(I=>m(E.type),["stop"])},[e.createElementVNode("span",{class:"action-icon",innerHTML:E.icon},null,8,Qo),e.createElementVNode("span",en,e.toDisplayString(E.label),1)],8,Ko))),128))],6),[[e.vShow,l.value]])])):(e.openBlock(),e.createElementBlock("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,E=>(e.openBlock(),e.createElementBlock("button",{key:E.type,type:"button",class:"row-action-btn",title:E.label,"aria-label":E.label,onClick:e.withModifiers(I=>m(E.type),["stop"])},[e.createElementVNode("span",{class:"action-icon",innerHTML:E.icon},null,8,nn)],8,on))),128))]))],2))}}),an=["tabindex"],ln=e.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},emits:["row:action"],setup(t,{emit:o}){const n=o,a=e.useTemplateRef("rowEl"),r=e.computed(()=>t.store.isRowVisible(t.rowIndex)),s=e.computed(()=>t.store.getRowExpandSymbol(t.rowIndex)),i=e.computed(()=>t.store.config.rowActions||{enabled:!1}),l=e.computed(()=>i.value.enabled),c=e.computed(()=>i.value.position||"before-index"),d=(f,g)=>{n("row:action",f,g)};if(t.addNavigation){let f=be;typeof t.addNavigation=="object"&&(f={...f,...t.addNavigation}),ze([{selectors:a,handlers:f}])}return(f,g)=>e.withDirectives((e.openBlock(),e.createElementBlock("tr",{ref:"rowEl",tabindex:t.tabIndex,class:"atable-row"},[l.value&&c.value==="before-index"?(e.openBlock(),e.createBlock(xe,{key:0,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0),t.store.config.view!=="uncounted"?e.renderSlot(f.$slots,"index",{key:1},()=>[t.store.config.view==="list"?(e.openBlock(),e.createElementBlock("td",{key:0,tabIndex:-1,class:e.normalizeClass(["list-index",t.store.hasPinnedColumns?"sticky-index":""])},e.toDisplayString(t.rowIndex+1),3)):t.store.isTreeView?(e.openBlock(),e.createElementBlock("td",{key:1,tabIndex:-1,class:e.normalizeClass(["tree-index",t.store.hasPinnedColumns?"sticky-index":""]),onClick:g[0]||(g[0]=b=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(s.value),3)):e.createCommentVNode("",!0)],!0):e.createCommentVNode("",!0),l.value&&c.value==="after-index"?(e.openBlock(),e.createBlock(xe,{key:2,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default",{},void 0,!0),l.value&&c.value==="end"?(e.openBlock(),e.createBlock(xe,{key:3,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0)],8,an)),[[e.vShow,r.value]])}}),bt=te(ln,[["__scopeId","data-v-c35a3748"]]),Oe=new WeakMap,rn={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Le(t,o.value,{capture:n});else{const[r,s]=o.value;a=Le(t,r,Object.assign({capture:n},s))}Oe.set(t,a)},unmounted(t){const o=Oe.get(t);o&&typeof o=="function"?o():o?.stop(),Oe.delete(t)}},sn={mounted(t,o){typeof o.value=="function"?ve(t,o.value):ve(t,...o.value)}};function cn(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=Co(n,a.value);e.watch(o,s=>r.value=s)}}cn();const dn={class:"gantt-connection-overlay"},fn={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},un=["d","stroke-width","onDblclick"],mn=["id","d","stroke","stroke-width","onDblclick"],pn=.25,ye=16,gn=e.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:o}){const n=o,a=e.computed(()=>t.store.connectionPaths.filter(i=>{const l=t.store.ganttBars.find(d=>d.id===i.from.barId),c=t.store.ganttBars.find(d=>d.id===i.to.barId);return l&&c})),r=i=>{const l=t.store.connectionHandles.find(C=>C.barId===i.from.barId&&C.side===i.from.side),c=t.store.connectionHandles.find(C=>C.barId===i.to.barId&&C.side===i.to.side);if(!l||!c)return"";const d=l.position.x+ye/2,f=l.position.y+ye/2,g=c.position.x+ye/2,b=c.position.y+ye/2,x=Math.abs(g-d),k=Math.max(x*pn,50),v=d+(i.from.side==="left"?-k:k),m=g+(i.to.side==="left"?-k:k),h={x:.5*d+.5*v,y:.5*f+.5*f},w={x:.5*v+.5*m,y:.5*f+.5*b},E={x:.5*m+.5*g,y:.5*b+.5*b},I={x:.5*h.x+.5*w.x,y:.5*h.y+.5*w.y},A={x:.5*w.x+.5*E.x,y:.5*w.y+.5*E.y},B={x:.5*I.x+.5*A.x,y:.5*I.y+.5*A.y};return`M ${d} ${f} Q ${v} ${f}, ${B.x} ${B.y} Q ${m} ${b}, ${g} ${b}`},s=i=>{t.store.deleteConnection(i.id)&&n("connection:delete",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",dn,[(e.openBlock(),e.createElementBlock("svg",fn,[l[0]||(l[0]=e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),e.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[e.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{key:`${c.id}-hitbox`,d:r(c),stroke:"transparent","stroke-width":(c.style?.width||2)+10,fill:"none",class:"connection-hitbox",onDblclick:d=>s(c)},null,40,un))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{id:c.id,key:c.id,d:r(c),stroke:c.style?.color||"#666","stroke-width":c.style?.width||2,fill:"none","marker-mid":"url(#arrowhead-marker)",class:"connection-path animated-path",onDblclick:d=>s(c)},null,40,mn))),128))]))]))}}),hn=te(gn,[["__scopeId","data-v-71911260"]]),bn={class:"column-filter"},wn={key:2,class:"checkbox-filter"},vn=["value"],xn={key:5,class:"date-range-filter"},yn=e.defineComponent({__name:"ATableColumnFilter",props:{column:{},colIndex:{},store:{}},setup(t){const o=e.ref(""),n=e.reactive({startValue:"",endValue:""}),a=c=>{if(c.filterOptions)return c.filterOptions;const d=new Set;return t.store.rows.forEach(f=>{const g=f[c.name];g!=null&&g!==""&&d.add(g)}),Array.from(d).map(f=>({value:f,label:String(f)}))},r=e.computed(()=>!!(o.value||n.startValue||n.endValue)),s=c=>{!c&&t.column.filterType!=="checkbox"?(t.store.clearFilter(t.colIndex),o.value=""):(o.value=c,t.store.setFilter(t.colIndex,{value:c}))},i=(c,d)=>{c==="start"?n.startValue=d:n.endValue=d,!n.startValue&&!n.endValue?t.store.clearFilter(t.colIndex):t.store.setFilter(t.colIndex,{value:null,startValue:n.startValue,endValue:n.endValue})},l=()=>{o.value="",n.startValue="",n.endValue="",t.store.clearFilter(t.colIndex)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",bn,[(t.column.filterType||"text")==="text"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"filter-input",onInput:d[1]||(d[1]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="number"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),type:"number",class:"filter-input",onInput:d[3]||(d[3]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="checkbox"?(e.openBlock(),e.createElementBlock("label",wn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[4]||(d[4]=f=>o.value=f),type:"checkbox",class:"filter-checkbox",onChange:d[5]||(d[5]=f=>s(o.value))},null,544),[[e.vModelCheckbox,o.value]]),e.createElementVNode("span",null,e.toDisplayString(t.column.label),1)])):t.column.filterType==="select"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":d[6]||(d[6]=f=>o.value=f),class:"filter-select",onChange:d[7]||(d[7]=f=>s(o.value))},[d[15]||(d[15]=e.createElementVNode("option",{value:""},"All",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a(t.column),f=>(e.openBlock(),e.createElementBlock("option",{key:f.value||f,value:f.value||f},e.toDisplayString(f.label||f),9,vn))),128))],544)),[[e.vModelSelect,o.value]]):t.column.filterType==="date"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:4,"onUpdate:modelValue":d[8]||(d[8]=f=>o.value=f),type:"date",class:"filter-input",onChange:d[9]||(d[9]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="dateRange"?(e.openBlock(),e.createElementBlock("div",xn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[10]||(d[10]=f=>n.startValue=f),type:"date",class:"filter-input",onChange:d[11]||(d[11]=f=>i("start",n.startValue))},null,544),[[e.vModelText,n.startValue]]),d[16]||(d[16]=e.createElementVNode("span",{class:"date-separator"},"-",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[12]||(d[12]=f=>n.endValue=f),type:"date",class:"filter-input",onChange:d[13]||(d[13]=f=>i("end",n.endValue))},null,544),[[e.vModelText,n.endValue]])])):t.column.filterType==="component"&&t.column.filterComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.column.filterComponent),{key:6,value:o.value,column:t.column,colIndex:t.colIndex,store:t.store,"onUpdate:value":d[14]||(d[14]=f=>s(f))},null,40,["value","column","colIndex","store"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:7,onClick:l,class:"clear-btn",title:"Clear"},"×")):e.createCommentVNode("",!0)]))}}),kn=te(yn,[["__scopeId","data-v-8487462d"]]),En={key:0},Cn={class:"atable-header-row",tabindex:"-1"},Mn={key:2,class:"row-actions-header"},In=["data-colindex","onClick"],Vn={key:3,class:"row-actions-header"},Bn={key:0,class:"atable-filters-row"},Dn={key:2,class:"row-actions-header"},Sn={key:3,class:"row-actions-header"},wt=e.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const o=t,n=e.computed(()=>o.columns.filter(l=>l.filterable)),a=e.computed(()=>o.store.config.value?.rowActions?.enabled??!1),r=e.computed(()=>o.store.config.value?.rowActions?.position??"before-index"),s=l=>o.store.sortByColumn(l),i=l=>{for(const c of l){if(c.borderBoxSize.length===0)continue;const d=c.borderBoxSize[0].inlineSize,f=Number(c.target.dataset.colindex),g=o.store.columns[f]?.width;typeof g=="number"&&g!==d&&o.store.resizeColumn(f,d)}};return(l,c)=>o.columns.length?(e.openBlock(),e.createElementBlock("thead",En,[e.createElementVNode("tr",Cn,[a.value&&r.value==="before-index"?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["row-actions-header",{"sticky-column":r.value==="before-index"}])},null,2)):e.createCommentVNode("",!0),o.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:1,id:"header-index",class:e.normalizeClass([[o.store.hasPinnedColumns?"sticky-index":"",o.store.isTreeView?"tree-index":"",o.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),a.value&&r.value==="after-index"?(e.openBlock(),e.createElementBlock("th",Mn)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("th",{key:d.name,"data-colindex":f,tabindex:"-1",style:e.normalizeStyle(o.store.getHeaderCellStyle(d)),class:e.normalizeClass(`${d.pinned?"sticky-column":""} ${d.sortable===!1?"":"cursor-pointer"}`),onClick:g=>d.sortable!==!1?s(f):void 0},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label||String.fromCharCode(f+97).toUpperCase()),1)])],14,In)),[[e.unref(sn),i]])),128)),a.value&&r.value==="end"?(e.openBlock(),e.createElementBlock("th",Vn)):e.createCommentVNode("",!0)]),n.value.length>0?(e.openBlock(),e.createElementBlock("tr",Bn,[a.value&&r.value==="before-index"?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["row-actions-header",{"sticky-column":r.value==="before-index"}])},null,2)):e.createCommentVNode("",!0),o.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass([[o.store.hasPinnedColumns?"sticky-index":"",o.store.isTreeView?"tree-index":"",o.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),a.value&&r.value==="after-index"?(e.openBlock(),e.createElementBlock("th",Dn)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,f)=>(e.openBlock(),e.createElementBlock("th",{key:`filter-${d.name}`,class:e.normalizeClass(`${d.pinned?"sticky-column":""}`),style:e.normalizeStyle(o.store.getHeaderCellStyle(d))},[d.filterable?(e.openBlock(),e.createBlock(kn,{key:0,column:d,"col-index":f,store:o.store},null,8,["column","col-index","store"])):e.createCommentVNode("",!0)],6))),128)),a.value&&r.value==="end"?(e.openBlock(),e.createElementBlock("th",Sn)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),vt=e.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const o=e.useTemplateRef("amodal"),{width:n,height:a}=ae(o),r=e.computed(()=>{if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const s=t.store.modal.cell?.closest("table");if(!s)return{};const i=s.offsetHeight||0,l=s.offsetWidth||0;let c=t.store.modal.cell?.offsetTop||0;const d=s.querySelector("thead")?.offsetHeight||0;c+=d,c=c+a.value<i?c:c-(a.value+t.store.modal.height);let f=t.store.modal.cell?.offsetLeft||0;return f=f+n.value<=l?f:f-(n.value-t.store.modal.width),{left:`${f}px`,top:`${c}px`}});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",style:e.normalizeStyle(r.value),onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(s.$slots,"default")],36))}}),Tn=t=>{const o=t.id||Io();return Wt.defineStore(`table-${o}`,()=>{const n=()=>{const u=[Object.assign({},{rowModified:!1})],p=new Set;for(let M=0;M<r.value.length;M++){const V=r.value[M];V.parent!==null&&V.parent!==void 0&&p.add(V.parent)}const y=M=>r.value[M]?.gantt!==void 0,D=M=>{for(let V=0;V<r.value.length;V++)if(r.value[V].parent===M&&(y(V)||D(V)))return!0;return!1},R=M=>{const V=s.value,$=V.view==="tree"||V.view==="tree-gantt"?V.defaultTreeExpansion:void 0;if(!$)return!0;switch($){case"root":return!1;case"branch":return D(M);case"leaf":return!0;default:return!0}};for(let M=0;M<r.value.length;M++){const V=r.value[M],$=V.parent===null||V.parent===void 0,F=p.has(M);u[M]={childrenOpen:R(M),expanded:!1,indent:V.indent||0,isParent:F,isRoot:$,rowModified:!1,open:$,parent:V.parent}}return u},a=e.ref(t.columns),r=e.ref(t.rows),s=e.ref(t.config||{}),i=e.ref({}),l=e.ref({}),c=e.computed(()=>{const u={};for(const[p,y]of a.value.entries())for(const[D,R]of r.value.entries())u[`${p}:${D}`]=R[y.name];return u}),d=e.computed({get:()=>{const u=n();for(let p=0;p<u.length;p++)i.value[p]&&(u[p].rowModified=i.value[p]),l.value[p]&&(l.value[p].childrenOpen!==void 0&&(u[p].childrenOpen=l.value[p].childrenOpen),l.value[p].expanded!==void 0&&(u[p].expanded=l.value[p].expanded));if(E.value){const p=(y,D)=>{const R=D[y];if(R.isRoot||R.parent===null||R.parent===void 0)return!0;const M=R.parent;return M<0||M>=D.length?!1:(D[M].childrenOpen||!1)&&p(M,D)};for(let y=0;y<u.length;y++)u[y].isRoot||(u[y].open=p(y,u))}return u},set:u=>{JSON.stringify(u)!==JSON.stringify(d.value)&&(d.value=u)}}),f=e.ref(t.modal||{visible:!1}),g=e.ref({}),b=e.ref([]),x=e.ref([]),k=e.ref([]),v=e.ref({column:null,direction:null}),m=e.ref({}),h=e.computed(()=>a.value.some(u=>u.pinned)),w=e.computed(()=>s.value.view==="gantt"||s.value.view==="tree-gantt"),E=e.computed(()=>s.value.view==="tree"||s.value.view==="tree-gantt"),I=e.computed(()=>{const u=s.value;return u.view==="gantt"||u.view==="tree-gantt"?u.dependencyGraph!==!1:!0}),A=e.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),B=e.computed(()=>s.value.view?["list","tree","tree-gantt","list-expansion"].includes(s.value.view):!1),C=e.computed(()=>{let u=r.value.map((p,y)=>({...p,originalIndex:y}));if(Object.entries(m.value).forEach(([p,y])=>{const D=parseInt(p),R=a.value[D];!R||!(y.value||y.startValue||y.endValue||R.filterType==="checkbox"&&y.value!==void 0)||(u=u.filter(M=>{const V=M[R.name];return Z(V,y,R)}))}),v.value.column!==null&&v.value.direction){const p=a.value[v.value.column],y=v.value.direction;u.sort((D,R)=>{let M=D[p.name],V=R[p.name];M==null&&(M=""),V==null&&(V="");const $=Number(M),F=Number(V);if(!isNaN($)&&!isNaN(F)&&M!==""&&V!=="")return y==="asc"?$-F:F-$;{const Te=String(M).toLowerCase(),jt=String(V).toLowerCase();return y==="asc"?Te.localeCompare(jt):jt.localeCompare(Te)}})}return u}),T=(u,p)=>c.value[`${u}:${p}`],P=(u,p,y)=>{const D=`${u}:${p}`,R=a.value[u];c.value[D]!==y&&(i.value[p]=!0),c.value[D]=y,r.value[p]={...r.value[p],[R.name]:y}},L=u=>{r.value=u},z=(u,p,y)=>{const D=`${u}:${p}`;c.value[D]!==y&&(i.value[p]=!0,g.value[D]=y)},U=u=>{const p=a.value.indexOf(u)===a.value.length-1,y=s.value.fullWidth?u.resizable&&!p:u.resizable;return{width:u.width||"40ch",textAlign:u.align||"center",...y&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},oe=(u,p)=>{if(u<0||u>=a.value.length)return;const y=Math.max(p,40);a.value[u]={...a.value[u],width:`${y}px`}},Ce=u=>{const p=r.value[u];return w.value&&p.gantt!==void 0},pe=u=>!E.value||d.value[u].isRoot||d.value[u].open,Qe=u=>!E.value&&s.value.view!=="list-expansion"?"":E.value&&(d.value[u].isRoot||d.value[u].isParent)?d.value[u].childrenOpen?"▼":"►":s.value.view==="list-expansion"?d.value[u].expanded?"▼":"►":"",et=u=>{if(E.value){const p=l.value[u]||{},y=!(p.childrenOpen??d.value[u].childrenOpen);l.value[u]={...p,childrenOpen:y},y||Me(u)}else if(s.value.view==="list-expansion"){const p=l.value[u]||{},y=p.expanded??d.value[u].expanded;l.value[u]={...p,expanded:!y}}},Me=u=>{for(let p=0;p<r.value.length;p++)if(d.value[p].parent===u){const y=l.value[p]||{};l.value[p]={...y,childrenOpen:!1},Me(p)}},tt=(u,p)=>{const y=T(u,p);return Ie(u,p,y)},Ie=(u,p,y)=>{const D=a.value[u],R=r.value[p],M=D.format;return M?typeof M=="function"?M(y,{table:c.value,row:R,column:D}):typeof M=="string"?Function(`"use strict";return (${M})`)()(y,{table:c.value,row:R,column:D}):y:y},ot=u=>{u.target instanceof Node&&f.value.parent?.contains(u.target)||f.value.visible&&(f.value.visible=!1)},nt=(u,p)=>p&&u===0&&p>0?`${p}ch`:"inherit",at=u=>{const p=r.value[u.rowIndex]?.gantt;p&&(u.type==="resize"?u.edge==="start"?(p.startIndex=u.newStart,p.endIndex=u.end,p.colspan=p.endIndex-p.startIndex):u.edge==="end"&&(p.startIndex=u.start,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex):u.type==="bar"&&(p.startIndex=u.newStart,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex))},lt=u=>{const p=b.value.findIndex(y=>y.id===u.id);p>=0?b.value[p]=u:b.value.push(u)},Ve=u=>{const p=b.value.findIndex(y=>y.id===u);p>=0&&b.value.splice(p,1)},Be=u=>{const p=x.value.findIndex(y=>y.id===u.id);p>=0?x.value[p]=u:x.value.push(u)},De=u=>{const p=x.value.findIndex(y=>y.id===u);p>=0&&x.value.splice(p,1)},Se=(u,p,y)=>{const D=x.value.find(V=>V.id===u),R=x.value.find(V=>V.id===p);if(!D||!R)return console.warn("Cannot create connection: handle not found"),null;const M={id:`connection-${u}-${p}`,from:{barId:D.barId,side:D.side},to:{barId:R.barId,side:R.side},style:y?.style,label:y?.label};return k.value.push(M),M},S=u=>{const p=k.value.findIndex(y=>y.id===u);return p>=0?(k.value.splice(p,1),!0):!1},N=u=>k.value.filter(p=>p.from.barId===u||p.to.barId===u),_=u=>x.value.filter(p=>p.barId===u),H=u=>{if(a.value[u].sortable===!1)return;let p;v.value.column===u&&v.value.direction==="asc"?p="desc":p="asc",v.value.column=u,v.value.direction=p},Z=(u,p,y)=>{const D=y.filterType||"text",R=p.value;if(!R&&D!=="dateRange"&&D!=="checkbox")return!0;switch(D){case"text":{let M="";return typeof u=="object"&&u!==null?M=Object.values(u).join(" "):M=String(u||""),M.toLowerCase().includes(String(R).toLowerCase())}case"number":{const M=Number(u),V=Number(R);return!isNaN(M)&&!isNaN(V)&&M===V}case"select":return u===R;case"checkbox":return R===!0?!!u:!0;case"date":{let M;if(typeof u=="number"){const $=new Date(u),F=new Date().getFullYear();M=new Date(F,$.getMonth(),$.getDate())}else M=new Date(String(u));const V=new Date(String(R));return M.toDateString()===V.toDateString()}case"dateRange":{const M=p.startValue,V=p.endValue;if(!M&&!V)return!0;let $;if(typeof u=="number"){const F=new Date(u),Te=new Date().getFullYear();$=new Date(Te,F.getMonth(),F.getDate())}else $=new Date(String(u));return!(M&&$<new Date(String(M))||V&&$>new Date(String(V)))}default:return!0}},j=(u,p)=>{!p.value&&!p.startValue&&!p.endValue?delete m.value[u]:m.value[u]=p},G=u=>{delete m.value[u]},W=(u,p="end")=>{const y={};for(const R of a.value)y[R.name]="";u&&Object.assign(y,u);let D;return p==="start"?(D=0,r.value.unshift(y)):p==="end"?(D=r.value.length,r.value.push(y)):(D=Math.max(0,Math.min(p,r.value.length)),r.value.splice(D,0,y)),D};return{columns:a,config:s,connectionHandles:x,connectionPaths:k,display:d,filterState:m,ganttBars:b,modal:f,rows:r,sortState:v,table:c,updates:g,filteredRows:C,hasPinnedColumns:h,isGanttView:w,isTreeView:E,isDependencyGraphEnabled:I,numberedRowWidth:A,zeroColumn:B,addRow:W,clearFilter:G,closeModal:ot,createConnection:Se,deleteConnection:S,deleteRow:u=>{if(u<0||u>=r.value.length)return null;const[p]=r.value.splice(u,1);delete i.value[u],delete l.value[u];const y={},D={};for(const[R,M]of Object.entries(i.value)){const V=parseInt(R);V>u?y[V-1]=M:y[V]=M}for(const[R,M]of Object.entries(l.value)){const V=parseInt(R);V>u?D[V-1]=M:D[V]=M}return i.value=y,l.value=D,p},duplicateRow:u=>{if(u<0||u>=r.value.length)return-1;const p=r.value[u],y=JSON.parse(JSON.stringify(p)),D=u+1;return r.value.splice(D,0,y),D},getCellData:T,getCellDisplayValue:tt,getConnectionsForBar:N,getFormattedValue:Ie,getHandlesForBar:_,getHeaderCellStyle:U,getIndent:nt,getRowExpandSymbol:Qe,insertRowAbove:(u,p)=>{const y=Math.max(0,u);return W(p,y)},insertRowBelow:(u,p)=>{const y=Math.min(u+1,r.value.length);return W(p,y)},isRowGantt:Ce,isRowVisible:pe,moveRow:(u,p)=>{if(u<0||u>=r.value.length||p<0||p>=r.value.length||u===p)return!1;const[y]=r.value.splice(u,1);r.value.splice(p,0,y);const D={},R={};for(const[M,V]of Object.entries(i.value)){const $=parseInt(M);let F=$;$===u?F=p:u<p?$>u&&$<=p&&(F=$-1):$>=p&&$<u&&(F=$+1),D[F]=V}for(const[M,V]of Object.entries(l.value)){const $=parseInt(M);let F=$;$===u?F=p:u<p?$>u&&$<=p&&(F=$-1):$>=p&&$<u&&(F=$+1),R[F]=V}return i.value=D,l.value=R,!0},registerConnectionHandle:Be,registerGanttBar:lt,resizeColumn:oe,setCellData:P,setCellText:z,setFilter:j,sortByColumn:H,toggleRowExpand:et,unregisterConnectionHandle:De,unregisterGanttBar:Ve,updateGanttBar:at,updateRows:L}})()},An={class:"atable-container",style:{position:"relative"}},Nn=e.defineComponent({__name:"ATable",props:e.mergeModels({id:{default:""},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:e.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update","row:add","row:delete","row:duplicate","row:insert-above","row:insert-below","row:move"],["update:rows","update:columns"]),setup(t,{expose:o,emit:n}){const a=e.useModel(t,"rows"),r=e.useModel(t,"columns"),s=n,i=e.useTemplateRef("table"),l=Tn({columns:r.value,rows:a.value,id:t.id,config:t.config});l.$onAction(({name:k,store:v,args:m,after:h})=>{if(k==="setCellData"||k==="setCellText"){const[w,E,I]=m,A=v.getCellData(w,E);h(()=>{a.value=[...v.rows],s("cellUpdate",{colIndex:w,rowIndex:E,newValue:I,oldValue:A})})}else if(k==="updateGanttBar"){const[w]=m;let E=!1;w.type==="resize"?E=w.oldColspan!==w.newColspan:w.type==="bar"&&(E=w.oldStart!==w.newStart||w.oldEnd!==w.newEnd),E&&h(()=>{s("gantt:drag",w)})}else k==="resizeColumn"&&h(()=>{r.value=[...v.columns],s("columns:update",[...v.columns])})}),e.watch(()=>a.value,k=>{JSON.stringify(k)!==JSON.stringify(l.rows)&&(l.rows=[...k])},{deep:!0}),e.watch(r,k=>{JSON.stringify(k)!==JSON.stringify(l.columns)&&(l.columns=[...k],s("columns:update",[...k]))},{deep:!0}),e.onMounted(()=>{r.value.some(k=>k.pinned)&&(d(),l.isTreeView&&ht(i,d,{childList:!0,subtree:!0}))});const c=e.computed(()=>l.columns.filter(k=>k.pinned).length),d=()=>{const k=i.value,v=k?.rows[0],m=k?.rows[1],h=v?Array.from(v.cells):[];for(const[w,E]of h.entries()){const I=m?.cells[w];I&&(E.style.width=`${I.offsetWidth}px`)}for(const w of k?.rows||[]){let E=0;const I=[];for(const A of w.cells)(A.classList.contains("sticky-column")||A.classList.contains("sticky-index"))&&(A.style.left=`${E}px`,E+=A.offsetWidth,I.push(A));I.length>0&&I[I.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",k=>{if(k.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const v=l.modal.parent;v&&e.nextTick().then(()=>{v.focus()})}});const f=k=>{if(!k.gantt||c.value===0)return l.columns;const v=[];for(let m=0;m<c.value;m++){const h={...l.columns[m]};h.originalIndex=m,v.push(h)}return v.push({...l.columns[c.value],isGantt:!0,colspan:k.gantt?.colspan||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),v},g=k=>{s("connection:event",{type:"create",connection:k})},b=k=>{s("connection:event",{type:"delete",connection:k})},x=(k,v)=>{switch(k){case"add":{const m=l.addRow({},v+1),h=l.rows[m];a.value=[...l.rows],s("row:add",{rowIndex:m,row:h});break}case"delete":{const m=l.deleteRow(v);m&&(a.value=[...l.rows],s("row:delete",{rowIndex:v,row:m}));break}case"duplicate":{const m=l.duplicateRow(v);if(m>=0){const h=l.rows[m];a.value=[...l.rows],s("row:duplicate",{sourceIndex:v,newIndex:m,row:h})}break}case"insertAbove":{const m=l.insertRowAbove(v),h=l.rows[m];a.value=[...l.rows],s("row:insert-above",{targetIndex:v,newIndex:m,row:h});break}case"insertBelow":{const m=l.insertRowBelow(v),h=l.rows[m];a.value=[...l.rows],s("row:insert-below",{targetIndex:v,newIndex:m,row:h});break}case"move":{s("row:move",{fromIndex:v,toIndex:-1});break}}};return o({store:l,createConnection:l.createConnection,deleteConnection:l.deleteConnection,getConnectionsForBar:l.getConnectionsForBar,getHandlesForBar:l.getHandlesForBar,addRow:l.addRow,deleteRow:l.deleteRow,duplicateRow:l.duplicateRow,insertRowAbove:l.insertRowAbove,insertRowBelow:l.insertRowBelow,moveRow:l.moveRow}),(k,v)=>(e.openBlock(),e.createElementBlock("div",An,[e.withDirectives((e.openBlock(),e.createElementBlock("table",{ref:"table",class:"atable",style:e.normalizeStyle({width:e.unref(l).config.fullWidth?"100%":"auto"})},[e.renderSlot(k.$slots,"header",{data:e.unref(l)},()=>[e.createVNode(wt,{columns:e.unref(l).columns,store:e.unref(l)},null,8,["columns","store"])],!0),e.createElementVNode("tbody",null,[e.renderSlot(k.$slots,"body",{data:e.unref(l)},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).filteredRows,(m,h)=>(e.openBlock(),e.createBlock(bt,{key:`${m.originalIndex}-${h}`,row:m,rowIndex:m.originalIndex,store:e.unref(l),"onRow:action":x},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(m),(w,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.name},[w.isGantt?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.ganttComponent||"AGanttCell"),{key:0,store:e.unref(l),"columns-count":e.unref(l).columns.length-c.value,color:m.gantt?.color,start:m.gantt?.startIndex,end:m.gantt?.endIndex,colspan:w.colspan,pinned:w.pinned,rowIndex:m.originalIndex,colIndex:w.originalIndex??E,style:e.normalizeStyle({textAlign:w?.align||"center",minWidth:w?.width||"40ch",width:e.unref(l).config.fullWidth?"auto":null}),"onConnection:create":g},null,40,["store","columns-count","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.cellComponent||"ACell"),{key:1,store:e.unref(l),pinned:w.pinned,rowIndex:m.originalIndex,colIndex:E,style:e.normalizeStyle({textAlign:w?.align||"center",width:e.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),e.renderSlot(k.$slots,"footer",{data:e.unref(l)},void 0,!0),e.renderSlot(k.$slots,"modal",{data:e.unref(l)},()=>[e.withDirectives(e.createVNode(vt,{store:e.unref(l)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).modal.component),e.mergeProps({key:`${e.unref(l).modal.rowIndex}:${e.unref(l).modal.colIndex}`,"col-index":e.unref(l).modal.colIndex,"row-index":e.unref(l).modal.rowIndex,store:e.unref(l)},e.unref(l).modal.componentProps),null,16,["col-index","row-index","store"]))]),_:1},8,["store"]),[[e.vShow,e.unref(l).modal.visible]])],!0)],4)),[[e.unref(rn),e.unref(l).closeModal]]),e.unref(l).isGanttView&&e.unref(l).isDependencyGraphEnabled?(e.openBlock(),e.createBlock(hn,{key:0,store:e.unref(l),"onConnection:delete":b},null,8,["store"])):e.createCommentVNode("",!0)]))}}),Rn=te(Nn,[["__scopeId","data-v-3d00d51b"]]),$n={},zn={class:"aloading"},_n={class:"aloading-header"};function Ln(t,o){return e.openBlock(),e.createElementBlock("div",zn,[e.createElementVNode("h2",_n,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const Hn=te($n,[["render",Ln],["__scopeId","data-v-a930a25b"]]),Pn={},Fn={class:"aloading"},On={class:"aloading-header"};function Zn(t,o){return e.openBlock(),e.createElementBlock("div",Fn,[e.createElementVNode("h2",On,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const jn=te(Pn,[["render",Zn],["__scopeId","data-v-e1165876"]]);function Wn(t){t.component("ACell",So),t.component("AExpansionRow",$o),t.component("AGanttCell",Oo),t.component("ARow",bt),t.component("ARowActions",xe),t.component("ATable",Rn),t.component("ATableHeader",wt),t.component("ATableLoading",Hn),t.component("ATableLoadingBar",jn),t.component("ATableModal",vt)}const Gn={class:"aform_form-element"},Un=["for"],qn={class:"aform_checkbox-container aform_input-field"},Yn=["id","readonly","required"],Xn=["innerHTML"],Jn=e.defineComponent({__name:"ACheckbox",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",Gn,[e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Un),e.createElementVNode("span",qn,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),type:"checkbox",class:"aform_checkbox",readonly:t.readOnly,required:t.required},null,8,Yn),[[e.vModelCheckbox,o.value]])]),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Xn),[[e.vShow,t.validation.errorMessage]])]))}}),J=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},xt=J(Jn,[["__scopeId","data-v-f13fd4d6"]]),yt=e.defineComponent({__name:"AComboBox",props:["event","cellData","tableID"],setup(t){return(o,n)=>{const a=e.resolveComponent("ATableModal");return e.openBlock(),e.createBlock(a,{event:t.event,"cell-data":t.cellData,class:"amodal"},{default:e.withCtx(()=>[...n[0]||(n[0]=[e.createElementVNode("div",null,[e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"})],-1)])]),_:1},8,["event","cell-data"])}}}),Kn=["id","disabled","required"],Qn=["for"],ea=["innerHTML"],kt=J(e.defineComponent({__name:"ADate",props:e.mergeModels({schema:{},label:{default:"Date"},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue",{set:r=>new Date(r).toISOString().split("T")[0]}),n=e.useTemplateRef("date"),a=()=>{n.value&&"showPicker"in HTMLInputElement.prototype&&n.value.showPicker()};return(r,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,ref:"date","onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"date",disabled:t.readOnly,required:t.required,onClick:a},null,8,Kn),[[e.vModelText,o.value]]),e.createElementVNode("label",{for:t.uuid},e.toDisplayString(t.label),9,Qn),e.withDirectives(e.createElementVNode("p",{innerHTML:t.validation.errorMessage},null,8,ea),[[e.vShow,t.validation.errorMessage]])]))}}),[["__scopeId","data-v-a15ed922"]]);function Et(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}function Ct(){const t=new Set,o=s=>{t.delete(s)};return{on:s=>{t.add(s);const i=()=>o(s);return Et(i),{off:i}},off:o,trigger:(...s)=>Promise.all(Array.from(t).map(i=>i(...s))),clear:()=>{t.clear()}}}const Mt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ta=Object.prototype.toString,oa=t=>ta.call(t)==="[object Object]",ue=()=>{},na=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function aa(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ue}))):e.ref(o)}function Ze(t){return Array.isArray(t)?t:[t]}function la(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const It=Mt?window:void 0,ra=Mt?window.document:void 0;function ie(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function je(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=Ze(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return la(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ie(s)))!==null&&a!==void 0?a:[It].filter(s=>s!=null),Ze(e.toValue(n.value?t[1]:t[0])),Ze(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=oa(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Vt(t,o,n={}){const{window:a=It,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!a)return l?{stop:ue,cancel:ue,trigger:ue}:ue;let c=!0;const d=m=>e.toValue(r).some(h=>{if(typeof h=="string")return Array.from(a.document.querySelectorAll(h)).some(w=>w===m.target||m.composedPath().includes(w));{const w=ie(h);return w&&(m.target===w||m.composedPath().includes(w))}});function f(m){const h=e.toValue(m);return h&&h.$.subTree.shapeFlag===16}function g(m,h){const w=e.toValue(m),E=w.$.subTree&&w.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(I=>I.el===h.target||h.composedPath().includes(I.el))}const b=m=>{const h=ie(t);if(m.target!=null&&!(!(h instanceof Element)&&f(t)&&g(t,m))&&!(!h||h===m.target||m.composedPath().includes(h))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let x=!1;const k=[je(a,"click",m=>{x||(x=!0,setTimeout(()=>{x=!1},0),b(m))},{passive:!0,capture:s}),je(a,"pointerdown",m=>{const h=ie(t);c=!d(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),i&&je(a,"blur",m=>{setTimeout(()=>{var h;const w=ie(t);((h=a.document.activeElement)===null||h===void 0?void 0:h.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),v=()=>k.forEach(m=>m());return l?{stop:v,cancel:()=>{c=!1},trigger:m=>{c=!0,b(m),c=!1}}:v}const ia={multiple:!0,accept:"*",reset:!1,directory:!1};function sa(t){if(!t)return null;if(t instanceof FileList)return t;const o=new DataTransfer;for(const n of t)o.items.add(n);return o.files}function ca(t={}){const{document:o=ra}=t,n=e.ref(sa(t.initialFiles)),{on:a,trigger:r}=Ct(),{on:s,trigger:i}=Ct(),l=e.computed(()=>{var g;const b=(g=ie(t.input))!==null&&g!==void 0?g:o?o.createElement("input"):void 0;return b&&(b.type="file",b.onchange=x=>{n.value=x.target.files,r(n.value)},b.oncancel=()=>{i()}),b}),c=()=>{n.value=null,l.value&&l.value.value&&(l.value.value="",r(null))},d=g=>{const b=l.value;b&&(b.multiple=e.toValue(g.multiple),b.accept=e.toValue(g.accept),b.webkitdirectory=e.toValue(g.directory),na(g,"capture")&&(b.capture=e.toValue(g.capture)))},f=g=>{const b=l.value;if(!b)return;const x={...ia,...t,...g};d(x),e.toValue(x.reset)&&c(),b.click()};return e.watchEffect(()=>{d(t)}),{files:e.readonly(n),open:f,reset:c,onCancel:s,onChange:a}}function We(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Ge=new WeakMap;function da(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(aa(t),i=>{const l=We(e.toValue(i));if(l){const c=l;if(Ge.get(c)||Ge.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const i=We(e.toValue(t));!i||n.value||(i.style.overflow="hidden",n.value=!0)},s=()=>{const i=We(e.toValue(t));!i||!n.value||(i.style.overflow=a,Ge.delete(i),n.value=!1)};return Et(s),e.computed({get(){return n.value},set(i){i?r():s()}})}const Ue=new WeakMap,fa={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Vt(t,o.value,{capture:n});else{const[r,s]=o.value;a=Vt(t,r,Object.assign({capture:n},s))}Ue.set(t,a)},unmounted(t){const o=Ue.get(t);o&&typeof o=="function"?o():o?.stop(),Ue.delete(t)}};function ua(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=da(n,a.value);e.watch(o,s=>r.value=s)}}ua();const ma={class:"input-wrapper"},pa={id:"autocomplete-results",class:"autocomplete-results"},ga={key:0,class:"loading autocomplete-result"},ha=["onClick"],Bt=J(e.defineComponent({__name:"ADropdown",props:e.mergeModels({label:{},items:{default:()=>[]},isAsync:{type:Boolean,default:!1},filterFunction:{type:Function,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=e.reactive({activeItemIndex:null,open:!1,loading:!1,results:t.items}),a=()=>l(),r=async()=>{if(n.open=!0,n.activeItemIndex=null,t.filterFunction){t.isAsync&&(n.loading=!0);try{const b=await t.filterFunction(o.value||"");n.results=b||[]}catch{n.results=[]}finally{t.isAsync&&(n.loading=!1)}}else c()},s=b=>{o.value=b,l(b)},i=()=>{n.activeItemIndex=t.isAsync?null:o.value&&t.items?.indexOf(o.value)||null,n.open=!0,n.results=t.isAsync?[]:t.items},l=b=>{n.activeItemIndex=null,n.open=!1,t.items?.includes(b||o.value||"")||(o.value="")},c=()=>{o.value?n.results=t.items?.filter(b=>b.toLowerCase().includes((o.value??"").toLowerCase())):n.results=t.items},d=()=>{const b=n.results?.length||0;if(n.activeItemIndex!=null){const x=isNaN(n.activeItemIndex)?0:n.activeItemIndex;n.activeItemIndex=(x+1)%b}else n.activeItemIndex=0},f=()=>{const b=n.results?.length||0;if(n.activeItemIndex!=null){const x=isNaN(n.activeItemIndex)?0:n.activeItemIndex;x===0?n.activeItemIndex=null:n.activeItemIndex=x-1}else n.activeItemIndex=b-1},g=()=>{if(n.results){const b=n.activeItemIndex||0,x=n.results[b];s(x)}n.activeItemIndex=0};return(b,x)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["autocomplete",{isOpen:n.open}])},[e.createElementVNode("div",ma,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=k=>o.value=k),type:"text",onInput:r,onFocus:i,onKeydown:[e.withKeys(d,["down"]),e.withKeys(f,["up"]),e.withKeys(g,["enter"]),e.withKeys(a,["esc"]),e.withKeys(a,["tab"])]},null,544),[[e.vModelText,o.value]]),e.withDirectives(e.createElementVNode("ul",pa,[n.loading?(e.openBlock(),e.createElementBlock("li",ga,"Loading results...")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.results,(k,v)=>(e.openBlock(),e.createElementBlock("li",{key:k,class:e.normalizeClass(["autocomplete-result",{"is-active":v===n.activeItemIndex}]),onClick:e.withModifiers(m=>s(k),["stop"])},e.toDisplayString(k),11,ha))),128))],512),[[e.vShow,n.open]]),e.createElementVNode("label",null,e.toDisplayString(t.label),1)])],2)),[[e.unref(fa),a]])}}),[["__scopeId","data-v-31a6db8c"]]);function Dt(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const ba=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wa=t=>t!=null,va=Object.prototype.toString,xa=t=>va.call(t)==="[object Object]",ya=()=>{};function ke(t){return Array.isArray(t)?t:[t]}function ka(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const se=ba?window:void 0;function ce(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function me(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=ke(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return ka(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ce(s)))!==null&&a!==void 0?a:[se].filter(s=>s!=null),ke(e.toValue(n.value?t[1]:t[0])),ke(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=xa(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Ea(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Ca(t){const o=Ea();return e.computed(()=>(o.value,!!t()))}function Ma(t,o,n={}){const{window:a=se,...r}=n;let s;const i=Ca(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=ke(e.toValue(t)).map(ce).filter(wa);return new Set(g)}),g=>{l(),i.value&&g.size&&(s=new MutationObserver(o),g.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return Dt(f),{isSupported:i,stop:f,takeRecords:d}}function Ia(t,o,n={}){const{window:a=se,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return ya;let i;const l=f=>{i?.(),i=f},c=e.watchEffect(()=>{const f=ce(t);if(f){const{stop:g}=Ma(r,b=>{b.map(x=>[...x.removedNodes]).flat().some(x=>x===f||x.contains(f))&&o(b)},{window:a,childList:!0,subtree:!0});l(g)}},{flush:s}),d=()=>{c(),l()};return Dt(d),d}function Va(t={}){var o;const{window:n=se,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,i=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},l=e.shallowRef(),c=()=>{l.value=i()};if(n){const d={capture:!0,passive:!0};me(n,"blur",f=>{f.relatedTarget===null&&c()},d),me(n,"focus",c,d)}return r&&Ia(l,c,{document:s}),c(),l}const Ba="focusin",Da="focusout",Sa=":focus-within";function Ta(t,o={}){const{window:n=se}=o,a=e.computed(()=>ce(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!Va(o).value)return{focused:s};const i={passive:!0};return me(a,Ba,()=>r.value=!0,i),me(a,Da,()=>{var l,c,d;return r.value=(l=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,Sa))!==null&&l!==void 0?l:!1},i),{focused:s}}function Aa(t,{window:o=se,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,i=ce(t);if(!i)a.value=!1;else{const l=i.getBoundingClientRect();a.value=l.top<=(o.innerHeight||s.documentElement.clientHeight)&&l.left<=(o.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return e.watch(()=>ce(t),()=>r(),{immediate:!0,flush:"post"}),o&&me(n||o,"scroll",r,{capture:!1,passive:!0}),a}const K=t=>{let o=Aa(t).value;return o=o&&t.offsetHeight>0,o},Q=t=>t.tabIndex>=0,St=t=>{const o=t.target;return qe(o)},qe=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!Q(o)||!K(o))?qe(o):o},Na=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!Q(n)||!K(n))?Ye(n):n},Tt=t=>{const o=t.target;return Ye(o)},Ye=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!Q(o)||!K(o))?Ye(o):o},Ra=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!Q(n)||!K(n))?qe(n):n},At=t=>{const o=t.target;return Xe(o)},Xe=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!Q(o)||!K(o))?Xe(o):o},Nt=t=>{const o=t.target;return Je(o)},Je=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!Q(o)||!K(o))?Je(o):o},Rt=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!Q(o)||!K(o))?Je(o):o},$t=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!Q(o)||!K(o))?Xe(o):o},Ee=["alt","control","shift","meta"],$a={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},zt={"keydown.up":t=>{const o=St(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=Tt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=At(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=Nt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=Na(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=Ra(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=Rt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=$t(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=$t(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=Tt(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=St(t);o&&o.focus()}},"keydown.home":t=>{const o=Rt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=Nt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=At(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function za(t){const o=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{const l=o(i);let c=[];if(typeof i.selectors=="string")c=Array.from(l?l.querySelectorAll(i.selectors):document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const d of i.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(i.selectors instanceof HTMLElement)c.push(i.selectors);else if(i.selectors?.value)if(Array.isArray(i.selectors.value))for(const d of i.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(i.selectors.value);return c},a=i=>{const l=o(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(d=>Q(d)&&K(d))),c},r=i=>l=>{const c=$a[l.key]||l.key.toLowerCase();if(Ee.includes(c))return;const d=i.handlers||zt;for(const f of Object.keys(d)){const[g,...b]=f.split(".");if(g==="keydown"&&b.includes(c)){const x=d[f],k=b.filter(m=>Ee.includes(m)),v=Ee.some(m=>{const h=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(h)});if(k.length>0){if(v){for(const m of Ee)if(b.includes(m)){const h=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(h)&&x(l)}}}else v||x(l)}}},s=[];e.onMounted(()=>{for(const i of t){const l=o(i),c=a(i),d=r(i),f=l?[l]:c;for(const g of f){const{focused:b}=Ta(e.ref(g)),x=e.watch(b,k=>{k?g.addEventListener("keydown",d):g.removeEventListener("keydown",d)});s.push(x)}}}),e.onBeforeUnmount(()=>{for(const i of s)i()})}const _a={ref:"datepicker",class:"adatepicker",tabindex:"0"},La={colspan:"5",tabindex:-1},Ha=["onClick","onKeydown"],Pa=6,_t=7,Lt=J(e.defineComponent({__name:"ADatePicker",props:{modelValue:{default:new Date},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:o}){const n=e.useModel(t,"modelValue"),a=e.ref(new Date(n.value)),r=e.ref(a.value.getMonth()),s=e.ref(a.value.getFullYear()),i=e.ref([]),l=e.useTemplateRef("datepicker");e.onMounted(async()=>{c(),await e.nextTick();const E=document.getElementsByClassName("selectedDate");if(E.length>0)E[0].focus();else{const I=document.getElementsByClassName("todaysDate");I.length>0&&I[0].focus()}});const c=()=>{i.value=[];const E=new Date(s.value,r.value,1),I=E.getDay(),A=E.setDate(E.getDate()-I);for(const B of Array(43).keys())i.value.push(A+B*864e5)};e.watch([r,s],c);const d=()=>s.value-=1,f=()=>s.value+=1,g=()=>{r.value==0?(r.value=11,d()):r.value-=1},b=()=>{r.value==11?(r.value=0,f()):r.value+=1},x=E=>{const I=new Date;if(r.value===I.getMonth())return I.toDateString()===new Date(E).toDateString()},k=E=>new Date(E).toDateString()===new Date(a.value).toDateString(),v=(E,I)=>(E-1)*_t+I,m=(E,I)=>i.value[v(E,I)],h=E=>{n.value=a.value=new Date(i.value[E])},w=e.computed(()=>new Date(s.value,r.value,1).toLocaleDateString(void 0,{year:"numeric",month:"long"}));return za([{parent:l,selectors:"td",handlers:{...zt,"keydown.pageup":g,"keydown.shift.pageup":d,"keydown.pagedown":b,"keydown.shift.pagedown":f,"keydown.enter":()=>{}}}]),o({currentMonth:r,currentYear:s,selectedDate:a}),(E,I)=>(e.openBlock(),e.createElementBlock("div",_a,[e.createElementVNode("table",null,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("td",{id:"previous-month-btn",tabindex:-1,onClick:g},"<"),e.createElementVNode("th",La,e.toDisplayString(w.value),1),e.createElementVNode("td",{id:"next-month-btn",tabindex:-1,onClick:b},">")]),I[0]||(I[0]=e.createElementVNode("tr",{class:"days-header"},[e.createElementVNode("td",null,"M"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"W"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"F"),e.createElementVNode("td",null,"S"),e.createElementVNode("td",null,"S")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(Pa,A=>e.createElementVNode("tr",{key:A},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_t,B=>e.createElementVNode("td",{ref_for:!0,ref:"celldate",key:v(A,B),contenteditable:!1,spellcheck:!1,tabindex:0,class:e.normalizeClass({todaysDate:x(m(A,B)),selectedDate:k(m(A,B))}),onClick:e.withModifiers(C=>h(v(A,B)),["prevent","stop"]),onKeydown:e.withKeys(C=>h(v(A,B)),["enter"])},e.toDisplayString(new Date(m(A,B)).getDate()),43,Ha)),64))])),64))])])],512))}}),[["__scopeId","data-v-056d2b5e"]]),Fa=J(e.defineComponent({__name:"CollapseButton",props:{collapsed:{type:Boolean}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["collapse-button",t.collapsed?"rotated":"unrotated"])},"×",2))}}),[["__scopeId","data-v-6f1c1b45"]]),Oa={class:"aform"},Za={key:0,class:"aform-nested-section"},ja={key:0,class:"aform-nested-label"},Ke=J(e.defineComponent({__name:"AForm",props:e.mergeModels({schema:{},readOnly:{type:Boolean}},{data:{required:!0},dataModifiers:{}}),emits:e.mergeModels(["update:schema","update:data"],["update:data"]),setup(t,{emit:o}){const n=o,a=e.useModel(t,"data"),r=e.ref({});e.watchEffect(()=>{!t.schema||!a.value||t.schema.forEach(c=>{"schema"in c&&Array.isArray(c.schema)&&c.schema.length>0&&(!r.value[c.fieldname]&&a.value[c.fieldname]?r.value[c.fieldname]=a.value[c.fieldname]:r.value[c.fieldname]||(r.value[c.fieldname]={}))})}),e.watchEffect(()=>{Object.keys(r.value).forEach(c=>{a.value&&r.value[c]!==a.value[c]&&(a.value[c]=r.value[c],n("update:data",a.value))})}),e.watchEffect(()=>{a.value&&t.schema&&t.schema.forEach(c=>{c.fieldname&&a.value[c.fieldname]!==void 0&&(c.value=a.value[c.fieldname])})});const s=c=>{const d={};for(const[f,g]of Object.entries(c))["component","fieldtype"].includes(f)||(d[f]=g),f==="rows"&&(!g||Array.isArray(g)&&g.length===0)&&(d.rows=a.value[c.fieldname]||[]);return d},i=e.ref([]);e.watchEffect(()=>{t.schema&&i.value.length!==t.schema.length&&(i.value=t.schema.map((c,d)=>e.computed({get(){return c.value},set:f=>{const g=t.schema[d].fieldname;t.schema[d].value=f,g&&a.value&&(a.value[g]=f,n("update:data",a.value)),n("update:schema",t.schema)}})))});const l=e.computed(()=>i.value);return(c,d)=>{const f=e.resolveComponent("AForm",!0);return e.openBlock(),e.createElementBlock("form",Oa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.schema,(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b},["schema"in g&&Array.isArray(g.schema)&&g.schema.length>0?(e.openBlock(),e.createElementBlock("div",Za,[g.label?(e.openBlock(),e.createElementBlock("h4",ja,e.toDisplayString(g.label),1)):e.createCommentVNode("",!0),e.createVNode(f,{data:r.value[g.fieldname],"onUpdate:data":x=>r.value[g.fieldname]=x,schema:g.schema,"read-only":t.readOnly||g.readOnly},null,8,["data","onUpdate:data","schema","read-only"])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.component),e.mergeProps({key:1,modelValue:l.value[b].value,"onUpdate:modelValue":x=>l.value[b].value=x,schema:g,data:a.value[g.fieldname],"read-only":t.readOnly},{ref_for:!0},s(g)),null,16,["modelValue","onUpdate:modelValue","schema","data","read-only"]))],64))),128))])}}}),[["__scopeId","data-v-06e17c5b"]]),Ht=J(e.defineComponent({__name:"AFieldset",props:{schema:{},label:{},collapsible:{type:Boolean},data:{default:()=>({})}},setup(t,{expose:o}){const n=e.ref(!1),a=e.ref(t.data||[]),r=e.ref(t.schema),s=i=>{i.preventDefault(),t.collapsible&&(n.value=!n.value)};return o({collapsed:n}),(i,l)=>(e.openBlock(),e.createElementBlock("fieldset",null,[e.createElementVNode("legend",{onClick:s,onSubmit:s},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),t.collapsible?(e.openBlock(),e.createBlock(Fa,{key:0,collapsed:n.value},null,8,["collapsed"])):e.createCommentVNode("",!0)],32),e.renderSlot(i.$slots,"default",{collapsed:n.value},()=>[e.withDirectives(e.createVNode(Ke,{schema:r.value,data:a.value,"onUpdate:data":l[0]||(l[0]=c=>a.value=c)},null,8,["schema","data"]),[[e.vShow,!n.value]])],!0)]))}}),[["__scopeId","data-v-18fd6c61"]]),Wa={class:"aform_form-element aform_file-attach aform__grid--full"},Ga={key:0,class:"aform_file-attach-feedback"},Ua=["disabled"],Pt=J(e.defineComponent({__name:"AFileAttach",props:{label:{}},setup(t){const{files:o,open:n,reset:a,onChange:r}=ca(),s=e.computed(()=>`${o.value.length} ${o.value.length===1?"file":"files"}`);return r(i=>i),(i,l)=>(e.openBlock(),e.createElementBlock("div",Wa,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",Ga,[e.createElementVNode("p",null,[l[2]||(l[2]=e.createTextVNode(" You have selected: ",-1)),e.createElementVNode("b",null,e.toDisplayString(s.value),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createElementBlock("li",{key:c.name},e.toDisplayString(c.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"aform_form-btn",onClick:l[0]||(l[0]=c=>e.unref(n)())},e.toDisplayString(t.label),1),e.createElementVNode("button",{type:"button",disabled:!e.unref(o),class:"aform_form-btn",onClick:l[1]||(l[1]=c=>e.unref(a)())},"Reset",8,Ua)]))}}),[["__scopeId","data-v-b700734f"]]),qa={class:"aform_form-element"},Ya=["id","disabled","required"],Xa=["for"],Ja=["innerHTML"],Ft=e.defineComponent({__name:"ANumericInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",qa,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),class:"aform_input-field",type:"number",disabled:t.readOnly,required:t.required},null,8,Ya),[[e.vModelText,o.value]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Xa),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Ja),[[e.vShow,t.validation.errorMessage]])]))}}),Ot={date:"##/##/####",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"};function Ka(t){try{return Function(`"use strict";return (${t})`)()}catch{}}function Qa(t){let o=t.value;if(o){const n=Ka(o);if(n){const a=t.instance?.locale;o=n(a)}}else{const a=t.instance?.schema?.fieldtype?.toLowerCase();a&&Ot[a]&&(o=Ot[a])}return o}function el(t,o){let n=t;const a=[o,"/","-","(",")"," "];for(const r of a)n=n.replaceAll(r,"");return n}function tl(t,o,n){let a=o;for(const r of t){const s=a.indexOf(n);if(s!==-1){const i=a.substring(0,s),l=a.substring(s+1);a=i+r+l}}return a.slice(0,o.length)}function ol(t,o){const n=Qa(o);if(!n)return;const a="#",r=t.value,s=el(r,a);if(s){const i=tl(s,n,a);o.instance?.maskFilled&&(o.instance.maskFilled=!i.includes(a)),t.value=i}else t.value=n}const nl={class:"aform_form-element"},al=["id","disabled","maxlength","required"],ll=["for"],rl=["innerHTML"],Zt=e.defineComponent({__name:"ATextInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.ref(!0),n=e.useModel(t,"modelValue");return(a,r)=>(e.openBlock(),e.createElementBlock("div",nl,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),class:"aform_input-field",disabled:t.readOnly,maxlength:t.mask&&o.value?t.mask.length:void 0,required:t.required},null,8,al),[[e.vModelText,n.value],[e.unref(ol),t.mask]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,ll),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,rl),[[e.vShow,t.validation.errorMessage]])]))}}),il={class:"login-container"},sl={class:"account-container"},cl={class:"account-header"},dl={id:"account-title"},fl={id:"account-subtitle"},ul={class:"login-form-container"},ml={class:"login-form-email aform_form-element"},pl=["disabled"],gl={class:"login-form-password aform_form-element"},hl=["disabled"],bl=["disabled"],wl={key:0,class:"material-symbols-outlined loading-icon"},vl=J(e.defineComponent({__name:"Login",props:{headerTitle:{default:"Login"},headerSubtitle:{default:"Enter your email and password to login"}},emits:["loginFailed","loginSuccess"],setup(t,{emit:o}){const n=o,a=e.ref(""),r=e.ref(""),s=e.ref(!1),i=e.ref(!1);function l(c){if(c.preventDefault(),s.value=!0,i.value){s.value=!1,n("loginFailed");return}s.value=!1,n("loginSuccess")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",il,[e.createElementVNode("div",null,[e.createElementVNode("div",sl,[e.createElementVNode("div",cl,[e.createElementVNode("h1",dl,e.toDisplayString(t.headerTitle),1),e.createElementVNode("p",fl,e.toDisplayString(t.headerSubtitle),1)]),e.createElementVNode("form",{onSubmit:l},[e.createElementVNode("div",ul,[e.createElementVNode("div",ml,[d[2]||(d[2]=e.createElementVNode("label",{id:"login-email",for:"email",class:"aform_field-label"},"Email",-1)),e.withDirectives(e.createElementVNode("input",{id:"email","onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),class:"aform_input-field",name:"email",placeholder:"name@example.com",type:"email","auto-capitalize":"none","auto-complete":"email","auto-correct":"off",disabled:s.value},null,8,pl),[[e.vModelText,a.value]])]),e.createElementVNode("div",gl,[d[3]||(d[3]=e.createElementVNode("label",{id:"login-password",for:"password",class:"aform_field-label"},"Password",-1)),e.withDirectives(e.createElementVNode("input",{id:"password","onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),class:"aform_input-field",name:"password",type:"password",disabled:s.value},null,8,hl),[[e.vModelText,r.value]])]),e.createElementVNode("button",{class:"btn",disabled:s.value||!a.value||!r.value,onClick:l},[s.value?(e.openBlock(),e.createElementBlock("span",wl,"progress_activity")):e.createCommentVNode("",!0),d[4]||(d[4]=e.createElementVNode("span",{id:"login-form-button"},"Login",-1))],8,bl)])],32),d[5]||(d[5]=e.createElementVNode("button",{class:"btn"},[e.createElementVNode("span",{id:"forgot-password-button"},"Forgot password?")],-1))])])]))}}),[["__scopeId","data-v-d9ffd0a7"]]);function xl(t){t.use(Wn),t.component("ACheckbox",xt),t.component("ACombobox",yt),t.component("ADate",kt),t.component("ADropdown",Bt),t.component("ADatePicker",Lt),t.component("AFieldset",Ht),t.component("AFileAttach",Pt),t.component("AForm",Ke),t.component("ANumericInput",Ft),t.component("ATextInput",Zt)}O.ACheckbox=xt,O.AComboBox=yt,O.ADate=kt,O.ADatePicker=Lt,O.ADropdown=Bt,O.AFieldset=Ht,O.AFileAttach=Pt,O.AForm=Ke,O.ANumericInput=Ft,O.ATextInput=Zt,O.Login=vl,O.install=xl,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|
|
50
|
+
</svg>`,Jo={add:Wo,delete:Go,duplicate:jo,insertAbove:qo,insertBelow:Yo,move:Xo},Qo={key:0,class:"row-actions-dropdown"},Ko=["aria-expanded"],en=["onClick"],tn=["innerHTML"],on={class:"action-label"},nn={key:1,class:"row-actions-icons"},an=["title","aria-label","onClick"],ln=["innerHTML"],$e=e.defineComponent({__name:"ARowActions",props:{rowIndex:{},store:{},config:{},position:{}},emits:["action"],setup(t,{emit:o}){const n=t,a=o,r=e.useTemplateRef("actionsCell"),s=e.useTemplateRef("toggleButton"),i=e.ref(0),l=e.ref(!1),c=e.ref(!1),d=e.ref({top:0,left:0}),f={add:"Add Row",delete:"Delete Row",duplicate:"Duplicate Row",insertAbove:"Insert Above",insertBelow:"Insert Below",move:"Move Row"},h=e.computed(()=>{const g=[],w=n.config.actions||{},E=["add","delete","duplicate","insertAbove","insertBelow","move"];for(const V of E){const B=w[V];if(B===!1||B===void 0)continue;let I=!0,A=f[V],L=Jo[V];typeof B=="object"&&(I=B.enabled!==!1,A=B.label||A,L=B.icon||L),I&&g.push({type:V,label:A,icon:L})}return g}),b=e.computed(()=>{if(n.config.forceDropdown)return!0;const g=n.config.dropdownThreshold??150;return g===0?!1:i.value>0&&i.value<g}),v=e.computed(()=>l.value?c.value?{position:"fixed",bottom:`${window.innerHeight-d.value.top}px`,left:`${d.value.left}px`,top:"auto"}:{position:"fixed",top:`${d.value.top}px`,left:`${d.value.left}px`}:{});Re(r,g=>{const w=g[0];w&&(i.value=w.contentRect.width)});const y=()=>{l.value||x(),l.value=!l.value},x=()=>{if(!s.value)return;const g=s.value.getBoundingClientRect(),w=window.innerHeight,E=h.value.length*40+16,V=w-g.bottom,B=g.top;c.value=V<E&&B>E,c.value?d.value={top:g.top,left:g.left}:d.value={top:g.bottom,left:g.left}};Ge(r,()=>{l.value=!1});const m=g=>{l.value=!1;const w=n.config.actions?.[g];typeof w=="object"&&w.handler&&w.handler(n.rowIndex,n.store)===!1||a("action",g,n.rowIndex)};return(g,w)=>(e.openBlock(),e.createElementBlock("td",{ref:"actionsCell",class:e.normalizeClass(["atable-row-actions",{"sticky-column":t.position==="before-index","dropdown-active":l.value}])},[b.value?(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("button",{ref:"toggleButton",type:"button",class:"row-actions-toggle","aria-expanded":l.value,"aria-haspopup":"true",onClick:e.withModifiers(y,["stop"])},[...w[0]||(w[0]=[e.createElementVNode("span",{class:"dropdown-icon"},"⋮",-1)])],8,Ko),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["row-actions-menu",{"menu-flipped":c.value}]),style:e.normalizeStyle(v.value),role:"menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,E=>(e.openBlock(),e.createElementBlock("button",{key:E.type,type:"button",class:"row-action-menu-item",role:"menuitem",onClick:e.withModifiers(V=>m(E.type),["stop"])},[e.createElementVNode("span",{class:"action-icon",innerHTML:E.icon},null,8,tn),e.createElementVNode("span",on,e.toDisplayString(E.label),1)],8,en))),128))],6),[[e.vShow,l.value]])])):(e.openBlock(),e.createElementBlock("div",nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,E=>(e.openBlock(),e.createElementBlock("button",{key:E.type,type:"button",class:"row-action-btn",title:E.label,"aria-label":E.label,onClick:e.withModifiers(V=>m(E.type),["stop"])},[e.createElementVNode("span",{class:"action-icon",innerHTML:E.icon},null,8,ln)],8,an))),128))]))],2))}}),rn=["tabindex"],sn=e.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},emits:["row:action"],setup(t,{emit:o}){const n=o,a=e.useTemplateRef("rowEl"),r=e.computed(()=>t.store.isRowVisible(t.rowIndex)),s=e.computed(()=>t.store.getRowExpandSymbol(t.rowIndex)),i=e.computed(()=>t.store.config.rowActions||{enabled:!1}),l=e.computed(()=>i.value.enabled),c=e.computed(()=>i.value.position||"before-index"),d=(f,h)=>{n("row:action",f,h)};if(t.addNavigation){let f=Te;typeof t.addNavigation=="object"&&(f={...f,...t.addNavigation}),Ue([{selectors:a,handlers:f}])}return(f,h)=>e.withDirectives((e.openBlock(),e.createElementBlock("tr",{ref:"rowEl",tabindex:t.tabIndex,class:"atable-row"},[l.value&&c.value==="before-index"?(e.openBlock(),e.createBlock($e,{key:0,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0),t.store.config.view!=="uncounted"?e.renderSlot(f.$slots,"index",{key:1},()=>[t.store.config.view==="list"?(e.openBlock(),e.createElementBlock("td",{key:0,tabIndex:-1,class:e.normalizeClass(["list-index",t.store.hasPinnedColumns?"sticky-index":""])},e.toDisplayString(t.rowIndex+1),3)):t.store.isTreeView?(e.openBlock(),e.createElementBlock("td",{key:1,tabIndex:-1,class:e.normalizeClass(["tree-index",t.store.hasPinnedColumns?"sticky-index":""]),onClick:h[0]||(h[0]=b=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(s.value),3)):e.createCommentVNode("",!0)],!0):e.createCommentVNode("",!0),l.value&&c.value==="after-index"?(e.openBlock(),e.createBlock($e,{key:2,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default",{},void 0,!0),l.value&&c.value==="end"?(e.openBlock(),e.createBlock($e,{key:3,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0)],8,rn)),[[e.vShow,r.value]])}}),wt=ce(sn,[["__scopeId","data-v-c35a3748"]]),Xe=new WeakMap,cn={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Ge(t,o.value,{capture:n});else{const[r,s]=o.value;a=Ge(t,r,Object.assign({capture:n},s))}Xe.set(t,a)},unmounted(t){const o=Xe.get(t);o&&typeof o=="function"?o():o?.stop(),Xe.delete(t)}},dn={mounted(t,o){typeof o.value=="function"?Re(t,o.value):Re(t,...o.value)}};function fn(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=Mo(n,a.value);e.watch(o,s=>r.value=s)}}fn();const un={class:"gantt-connection-overlay"},mn={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},pn=["d","stroke-width","onDblclick"],hn=["id","d","stroke","stroke-width","onDblclick"],gn=.25,ze=16,bn=e.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:o}){const n=o,a=e.computed(()=>t.store.connectionPaths.filter(i=>{const l=t.store.ganttBars.find(d=>d.id===i.from.barId),c=t.store.ganttBars.find(d=>d.id===i.to.barId);return l&&c})),r=i=>{const l=t.store.connectionHandles.find(A=>A.barId===i.from.barId&&A.side===i.from.side),c=t.store.connectionHandles.find(A=>A.barId===i.to.barId&&A.side===i.to.side);if(!l||!c)return"";const d=l.position.x+ze/2,f=l.position.y+ze/2,h=c.position.x+ze/2,b=c.position.y+ze/2,v=Math.abs(h-d),y=Math.max(v*gn,50),x=d+(i.from.side==="left"?-y:y),m=h+(i.to.side==="left"?-y:y),g={x:.5*d+.5*x,y:.5*f+.5*f},w={x:.5*x+.5*m,y:.5*f+.5*b},E={x:.5*m+.5*h,y:.5*b+.5*b},V={x:.5*g.x+.5*w.x,y:.5*g.y+.5*w.y},B={x:.5*w.x+.5*E.x,y:.5*w.y+.5*E.y},I={x:.5*V.x+.5*B.x,y:.5*V.y+.5*B.y};return`M ${d} ${f} Q ${x} ${f}, ${I.x} ${I.y} Q ${m} ${b}, ${h} ${b}`},s=i=>{t.store.deleteConnection(i.id)&&n("connection:delete",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",un,[(e.openBlock(),e.createElementBlock("svg",mn,[l[0]||(l[0]=e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),e.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[e.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{key:`${c.id}-hitbox`,d:r(c),stroke:"transparent","stroke-width":(c.style?.width||2)+10,fill:"none",class:"connection-hitbox",onDblclick:d=>s(c)},null,40,pn))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{id:c.id,key:c.id,d:r(c),stroke:c.style?.color||"#666","stroke-width":c.style?.width||2,fill:"none","marker-mid":"url(#arrowhead-marker)",class:"connection-path animated-path",onDblclick:d=>s(c)},null,40,hn))),128))]))]))}}),wn=ce(bn,[["__scopeId","data-v-71911260"]]),xn={class:"column-filter"},vn={key:2,class:"checkbox-filter"},yn=["value"],kn={key:5,class:"date-range-filter"},En=e.defineComponent({__name:"ATableColumnFilter",props:{column:{},colIndex:{},store:{}},setup(t){const o=e.ref(""),n=e.reactive({startValue:"",endValue:""}),a=c=>{if(c.filterOptions)return c.filterOptions;const d=new Set;return t.store.rows.forEach(f=>{const h=f[c.name];h!=null&&h!==""&&d.add(h)}),Array.from(d).map(f=>({value:f,label:String(f)}))},r=e.computed(()=>!!(o.value||n.startValue||n.endValue)),s=c=>{!c&&t.column.filterType!=="checkbox"?(t.store.clearFilter(t.colIndex),o.value=""):(o.value=c,t.store.setFilter(t.colIndex,{value:c}))},i=(c,d)=>{c==="start"?n.startValue=d:n.endValue=d,!n.startValue&&!n.endValue?t.store.clearFilter(t.colIndex):t.store.setFilter(t.colIndex,{value:null,startValue:n.startValue,endValue:n.endValue})},l=()=>{o.value="",n.startValue="",n.endValue="",t.store.clearFilter(t.colIndex)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",xn,[(t.column.filterType||"text")==="text"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"filter-input",onInput:d[1]||(d[1]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="number"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),type:"number",class:"filter-input",onInput:d[3]||(d[3]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="checkbox"?(e.openBlock(),e.createElementBlock("label",vn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[4]||(d[4]=f=>o.value=f),type:"checkbox",class:"filter-checkbox",onChange:d[5]||(d[5]=f=>s(o.value))},null,544),[[e.vModelCheckbox,o.value]]),e.createElementVNode("span",null,e.toDisplayString(t.column.label),1)])):t.column.filterType==="select"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":d[6]||(d[6]=f=>o.value=f),class:"filter-select",onChange:d[7]||(d[7]=f=>s(o.value))},[d[15]||(d[15]=e.createElementVNode("option",{value:""},"All",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a(t.column),f=>(e.openBlock(),e.createElementBlock("option",{key:f.value||f,value:f.value||f},e.toDisplayString(f.label||f),9,yn))),128))],544)),[[e.vModelSelect,o.value]]):t.column.filterType==="date"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:4,"onUpdate:modelValue":d[8]||(d[8]=f=>o.value=f),type:"date",class:"filter-input",onChange:d[9]||(d[9]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="dateRange"?(e.openBlock(),e.createElementBlock("div",kn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[10]||(d[10]=f=>n.startValue=f),type:"date",class:"filter-input",onChange:d[11]||(d[11]=f=>i("start",n.startValue))},null,544),[[e.vModelText,n.startValue]]),d[16]||(d[16]=e.createElementVNode("span",{class:"date-separator"},"-",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[12]||(d[12]=f=>n.endValue=f),type:"date",class:"filter-input",onChange:d[13]||(d[13]=f=>i("end",n.endValue))},null,544),[[e.vModelText,n.endValue]])])):t.column.filterType==="component"&&t.column.filterComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.column.filterComponent),{key:6,value:o.value,column:t.column,colIndex:t.colIndex,store:t.store,"onUpdate:value":d[14]||(d[14]=f=>s(f))},null,40,["value","column","colIndex","store"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:7,onClick:l,class:"clear-btn",title:"Clear"},"×")):e.createCommentVNode("",!0)]))}}),Cn=ce(En,[["__scopeId","data-v-8487462d"]]),Vn={key:0},Mn={class:"atable-header-row",tabindex:"-1"},In={key:2,class:"row-actions-header"},Bn=["data-colindex","onClick"],Dn={key:3,class:"row-actions-header"},Sn={key:0,class:"atable-filters-row"},Tn={key:2,class:"row-actions-header"},An={key:3,class:"row-actions-header"},xt=e.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const o=t,n=e.computed(()=>o.columns.filter(l=>l.filterable)),a=e.computed(()=>o.store.config.value?.rowActions?.enabled??!1),r=e.computed(()=>o.store.config.value?.rowActions?.position??"before-index"),s=l=>o.store.sortByColumn(l),i=l=>{for(const c of l){if(c.borderBoxSize.length===0)continue;const d=c.borderBoxSize[0].inlineSize,f=Number(c.target.dataset.colindex),h=o.store.columns[f]?.width;typeof h=="number"&&h!==d&&o.store.resizeColumn(f,d)}};return(l,c)=>o.columns.length?(e.openBlock(),e.createElementBlock("thead",Vn,[e.createElementVNode("tr",Mn,[a.value&&r.value==="before-index"?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["row-actions-header",{"sticky-column":r.value==="before-index"}])},null,2)):e.createCommentVNode("",!0),o.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:1,id:"header-index",class:e.normalizeClass([[o.store.hasPinnedColumns?"sticky-index":"",o.store.isTreeView?"tree-index":"",o.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),a.value&&r.value==="after-index"?(e.openBlock(),e.createElementBlock("th",In)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("th",{key:d.name,"data-colindex":f,tabindex:"-1",style:e.normalizeStyle(o.store.getHeaderCellStyle(d)),class:e.normalizeClass(`${d.pinned?"sticky-column":""} ${d.sortable===!1?"":"cursor-pointer"}`),onClick:h=>d.sortable!==!1?s(f):void 0},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label||String.fromCharCode(f+97).toUpperCase()),1)])],14,Bn)),[[e.unref(dn),i]])),128)),a.value&&r.value==="end"?(e.openBlock(),e.createElementBlock("th",Dn)):e.createCommentVNode("",!0)]),n.value.length>0?(e.openBlock(),e.createElementBlock("tr",Sn,[a.value&&r.value==="before-index"?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["row-actions-header",{"sticky-column":r.value==="before-index"}])},null,2)):e.createCommentVNode("",!0),o.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass([[o.store.hasPinnedColumns?"sticky-index":"",o.store.isTreeView?"tree-index":"",o.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),a.value&&r.value==="after-index"?(e.openBlock(),e.createElementBlock("th",Tn)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,f)=>(e.openBlock(),e.createElementBlock("th",{key:`filter-${d.name}`,class:e.normalizeClass(`${d.pinned?"sticky-column":""}`),style:e.normalizeStyle(o.store.getHeaderCellStyle(d))},[d.filterable?(e.openBlock(),e.createBlock(Cn,{key:0,column:d,"col-index":f,store:o.store},null,8,["column","col-index","store"])):e.createCommentVNode("",!0)],6))),128)),a.value&&r.value==="end"?(e.openBlock(),e.createElementBlock("th",An)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),vt=e.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const o=e.useTemplateRef("amodal"),{width:n,height:a}=me(o),r=e.computed(()=>{if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const s=t.store.modal.cell?.closest("table");if(!s)return{};const i=s.offsetHeight||0,l=s.offsetWidth||0;let c=t.store.modal.cell?.offsetTop||0;const d=s.querySelector("thead")?.offsetHeight||0;c+=d,c=c+a.value<i?c:c-(a.value+t.store.modal.height);let f=t.store.modal.cell?.offsetLeft||0;return f=f+n.value<=l?f:f-(n.value-t.store.modal.width),{left:`${f}px`,top:`${c}px`}});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",style:e.normalizeStyle(r.value),onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(s.$slots,"default")],36))}}),Nn=t=>{const o=t.id||Bo();return Gt.defineStore(`table-${o}`,()=>{const n=()=>{const u=[Object.assign({},{rowModified:!1})],p=new Set;for(let C=0;C<r.value.length;C++){const D=r.value[C];D.parent!==null&&D.parent!==void 0&&p.add(D.parent)}const k=C=>r.value[C]?.gantt!==void 0,S=C=>{for(let D=0;D<r.value.length;D++)if(r.value[D].parent===C&&(k(D)||S(D)))return!0;return!1},$=C=>{const D=s.value,z=D.view==="tree"||D.view==="tree-gantt"?D.defaultTreeExpansion:void 0;if(!z)return!0;switch(z){case"root":return!1;case"branch":return S(C);case"leaf":return!0;default:return!0}};for(let C=0;C<r.value.length;C++){const D=r.value[C],z=D.parent===null||D.parent===void 0,j=p.has(C);u[C]={childrenOpen:$(C),expanded:!1,indent:D.indent||0,isParent:j,isRoot:z,rowModified:!1,open:z,parent:D.parent}}return u},a=e.ref(t.columns),r=e.ref(t.rows),s=e.ref(t.config||{}),i=e.ref({}),l=e.ref({}),c=e.computed(()=>{const u={};for(const[p,k]of a.value.entries())for(const[S,$]of r.value.entries())u[`${p}:${S}`]=$[k.name];return u}),d=e.computed({get:()=>{const u=n();for(let p=0;p<u.length;p++)i.value[p]&&(u[p].rowModified=i.value[p]),l.value[p]&&(l.value[p].childrenOpen!==void 0&&(u[p].childrenOpen=l.value[p].childrenOpen),l.value[p].expanded!==void 0&&(u[p].expanded=l.value[p].expanded));if(E.value){const p=(k,S)=>{const $=S[k];if($.isRoot||$.parent===null||$.parent===void 0)return!0;const C=$.parent;return C<0||C>=S.length?!1:(S[C].childrenOpen||!1)&&p(C,S)};for(let k=0;k<u.length;k++)u[k].isRoot||(u[k].open=p(k,u))}return u},set:u=>{JSON.stringify(u)!==JSON.stringify(d.value)&&(d.value=u)}}),f=e.ref(t.modal||{visible:!1}),h=e.ref({}),b=e.ref([]),v=e.ref([]),y=e.ref([]),x=e.ref({column:null,direction:null}),m=e.ref({}),g=e.computed(()=>a.value.some(u=>u.pinned)),w=e.computed(()=>s.value.view==="gantt"||s.value.view==="tree-gantt"),E=e.computed(()=>s.value.view==="tree"||s.value.view==="tree-gantt"),V=e.computed(()=>{const u=s.value;return u.view==="gantt"||u.view==="tree-gantt"?u.dependencyGraph!==!1:!0}),B=e.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),I=e.computed(()=>s.value.view?["list","tree","tree-gantt","list-expansion"].includes(s.value.view):!1),A=e.computed(()=>{let u=r.value.map((p,k)=>({...p,originalIndex:k}));if(Object.entries(m.value).forEach(([p,k])=>{const S=parseInt(p),$=a.value[S];!$||!(k.value||k.startValue||k.endValue||$.filterType==="checkbox"&&k.value!==void 0)||(u=u.filter(C=>{const D=C[$.name];return G(D,k,$)}))}),x.value.column!==null&&x.value.direction){const p=a.value[x.value.column],k=x.value.direction;u.sort((S,$)=>{let C=S[p.name],D=$[p.name];C==null&&(C=""),D==null&&(D="");const z=Number(C),j=Number(D);if(!isNaN(z)&&!isNaN(j)&&C!==""&&D!=="")return k==="asc"?z-j:j-z;{const He=String(C).toLowerCase(),Wt=String(D).toLowerCase();return k==="asc"?He.localeCompare(Wt):Wt.localeCompare(He)}})}return u}),L=(u,p)=>c.value[`${u}:${p}`],K=(u,p,k)=>{const S=`${u}:${p}`,$=a.value[u];c.value[S]!==k&&(i.value[p]=!0),c.value[S]=k,r.value[p]={...r.value[p],[$.name]:k}},O=u=>{r.value=u},F=(u,p,k)=>{const S=`${u}:${p}`;c.value[S]!==k&&(i.value[p]=!0,h.value[S]=k)},ee=u=>{const p=a.value.indexOf(u)===a.value.length-1,k=s.value.fullWidth?u.resizable&&!p:u.resizable;return{width:u.width||"40ch",textAlign:u.align||"center",...k&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},Q=(u,p)=>{if(u<0||u>=a.value.length)return;const k=Math.max(p,40);a.value[u]={...a.value[u],width:`${k}px`}},xe=u=>{const p=r.value[u];return w.value&&p.gantt!==void 0},de=u=>!E.value||d.value[u].isRoot||d.value[u].open,Me=u=>!E.value&&s.value.view!=="list-expansion"?"":E.value&&(d.value[u].isRoot||d.value[u].isParent)?d.value[u].childrenOpen?"▼":"►":s.value.view==="list-expansion"?d.value[u].expanded?"▼":"►":"",Ie=u=>{if(E.value){const p=l.value[u]||{},k=!(p.childrenOpen??d.value[u].childrenOpen);l.value[u]={...p,childrenOpen:k},k||ve(u)}else if(s.value.view==="list-expansion"){const p=l.value[u]||{},k=p.expanded??d.value[u].expanded;l.value[u]={...p,expanded:!k}}},ve=u=>{for(let p=0;p<r.value.length;p++)if(d.value[p].parent===u){const k=l.value[p]||{};l.value[p]={...k,childrenOpen:!1},ve(p)}},Be=(u,p)=>{const k=L(u,p);return ye(u,p,k)},ye=(u,p,k)=>{const S=a.value[u],$=r.value[p],C=S.format;return C?typeof C=="function"?C(k,{table:c.value,row:$,column:S}):typeof C=="string"?Function(`"use strict";return (${C})`)()(k,{table:c.value,row:$,column:S}):k:k},M=u=>{u.target instanceof Node&&f.value.parent?.contains(u.target)||f.value.visible&&(f.value.visible=!1)},R=(u,p)=>p&&u===0&&p>0?`${p}ch`:"inherit",_=u=>{const p=r.value[u.rowIndex]?.gantt;p&&(u.type==="resize"?u.edge==="start"?(p.startIndex=u.newStart,p.endIndex=u.end,p.colspan=p.endIndex-p.startIndex):u.edge==="end"&&(p.startIndex=u.start,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex):u.type==="bar"&&(p.startIndex=u.newStart,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex))},Z=u=>{const p=b.value.findIndex(k=>k.id===u.id);p>=0?b.value[p]=u:b.value.push(u)},P=u=>{const p=b.value.findIndex(k=>k.id===u);p>=0&&b.value.splice(p,1)},Y=u=>{const p=v.value.findIndex(k=>k.id===u.id);p>=0?v.value[p]=u:v.value.push(u)},ie=u=>{const p=v.value.findIndex(k=>k.id===u);p>=0&&v.value.splice(p,1)},fe=(u,p,k)=>{const S=v.value.find(D=>D.id===u),$=v.value.find(D=>D.id===p);if(!S||!$)return console.warn("Cannot create connection: handle not found"),null;const C={id:`connection-${u}-${p}`,from:{barId:S.barId,side:S.side},to:{barId:$.barId,side:$.side},style:k?.style,label:k?.label};return y.value.push(C),C},T=u=>{const p=y.value.findIndex(k=>k.id===u);return p>=0?(y.value.splice(p,1),!0):!1},N=u=>y.value.filter(p=>p.from.barId===u||p.to.barId===u),H=u=>v.value.filter(p=>p.barId===u),U=u=>{if(a.value[u].sortable===!1)return;let p;x.value.column===u&&x.value.direction==="asc"?p="desc":p="asc",x.value.column=u,x.value.direction=p},G=(u,p,k)=>{const S=k.filterType||"text",$=p.value;if(!$&&S!=="dateRange"&&S!=="checkbox")return!0;switch(S){case"text":{let C="";return typeof u=="object"&&u!==null?C=Object.values(u).join(" "):C=String(u||""),C.toLowerCase().includes(String($).toLowerCase())}case"number":{const C=Number(u),D=Number($);return!isNaN(C)&&!isNaN(D)&&C===D}case"select":return u===$;case"checkbox":return $===!0?!!u:!0;case"date":{let C;if(typeof u=="number"){const z=new Date(u),j=new Date().getFullYear();C=new Date(j,z.getMonth(),z.getDate())}else C=new Date(String(u));const D=new Date(String($));return C.toDateString()===D.toDateString()}case"dateRange":{const C=p.startValue,D=p.endValue;if(!C&&!D)return!0;let z;if(typeof u=="number"){const j=new Date(u),He=new Date().getFullYear();z=new Date(He,j.getMonth(),j.getDate())}else z=new Date(String(u));return!(C&&z<new Date(String(C))||D&&z>new Date(String(D)))}default:return!0}},W=(u,p)=>{!p.value&&!p.startValue&&!p.endValue?delete m.value[u]:m.value[u]=p},X=u=>{delete m.value[u]},J=(u,p="end")=>{const k={};for(const $ of a.value)k[$.name]="";u&&Object.assign(k,u);let S;return p==="start"?(S=0,r.value.unshift(k)):p==="end"?(S=r.value.length,r.value.push(k)):(S=Math.max(0,Math.min(p,r.value.length)),r.value.splice(S,0,k)),S};return{columns:a,config:s,connectionHandles:v,connectionPaths:y,display:d,filterState:m,ganttBars:b,modal:f,rows:r,sortState:x,table:c,updates:h,filteredRows:A,hasPinnedColumns:g,isGanttView:w,isTreeView:E,isDependencyGraphEnabled:V,numberedRowWidth:B,zeroColumn:I,addRow:J,clearFilter:X,closeModal:M,createConnection:fe,deleteConnection:T,deleteRow:u=>{if(u<0||u>=r.value.length)return null;const[p]=r.value.splice(u,1);delete i.value[u],delete l.value[u];const k={},S={};for(const[$,C]of Object.entries(i.value)){const D=parseInt($);D>u?k[D-1]=C:k[D]=C}for(const[$,C]of Object.entries(l.value)){const D=parseInt($);D>u?S[D-1]=C:S[D]=C}return i.value=k,l.value=S,p},duplicateRow:u=>{if(u<0||u>=r.value.length)return-1;const p=r.value[u],k=JSON.parse(JSON.stringify(p)),S=u+1;return r.value.splice(S,0,k),S},getCellData:L,getCellDisplayValue:Be,getConnectionsForBar:N,getFormattedValue:ye,getHandlesForBar:H,getHeaderCellStyle:ee,getIndent:R,getRowExpandSymbol:Me,insertRowAbove:(u,p)=>{const k=Math.max(0,u);return J(p,k)},insertRowBelow:(u,p)=>{const k=Math.min(u+1,r.value.length);return J(p,k)},isRowGantt:xe,isRowVisible:de,moveRow:(u,p)=>{if(u<0||u>=r.value.length||p<0||p>=r.value.length||u===p)return!1;const[k]=r.value.splice(u,1);r.value.splice(p,0,k);const S={},$={};for(const[C,D]of Object.entries(i.value)){const z=parseInt(C);let j=z;z===u?j=p:u<p?z>u&&z<=p&&(j=z-1):z>=p&&z<u&&(j=z+1),S[j]=D}for(const[C,D]of Object.entries(l.value)){const z=parseInt(C);let j=z;z===u?j=p:u<p?z>u&&z<=p&&(j=z-1):z>=p&&z<u&&(j=z+1),$[j]=D}return i.value=S,l.value=$,!0},registerConnectionHandle:Y,registerGanttBar:Z,resizeColumn:Q,setCellData:K,setCellText:F,setFilter:W,sortByColumn:U,toggleRowExpand:Ie,unregisterConnectionHandle:ie,unregisterGanttBar:P,updateGanttBar:_,updateRows:O}})()},Rn={class:"atable-container",style:{position:"relative"}},$n=e.defineComponent({__name:"ATable",props:e.mergeModels({id:{default:""},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:e.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update","row:add","row:delete","row:duplicate","row:insert-above","row:insert-below","row:move"],["update:rows","update:columns"]),setup(t,{expose:o,emit:n}){const a=e.useModel(t,"rows"),r=e.useModel(t,"columns"),s=n,i=e.useTemplateRef("table"),l=Nn({columns:r.value,rows:a.value,id:t.id,config:t.config});l.$onAction(({name:y,store:x,args:m,after:g})=>{if(y==="setCellData"||y==="setCellText"){const[w,E,V]=m,B=x.getCellData(w,E);g(()=>{a.value=[...x.rows],s("cellUpdate",{colIndex:w,rowIndex:E,newValue:V,oldValue:B})})}else if(y==="updateGanttBar"){const[w]=m;let E=!1;w.type==="resize"?E=w.oldColspan!==w.newColspan:w.type==="bar"&&(E=w.oldStart!==w.newStart||w.oldEnd!==w.newEnd),E&&g(()=>{s("gantt:drag",w)})}else y==="resizeColumn"&&g(()=>{r.value=[...x.columns],s("columns:update",[...x.columns])})}),e.watch(()=>a.value,y=>{JSON.stringify(y)!==JSON.stringify(l.rows)&&(l.rows=[...y])},{deep:!0}),e.watch(r,y=>{JSON.stringify(y)!==JSON.stringify(l.columns)&&(l.columns=[...y],s("columns:update",[...y]))},{deep:!0}),e.onMounted(()=>{r.value.some(y=>y.pinned)&&(d(),l.isTreeView&&bt(i,d,{childList:!0,subtree:!0}))});const c=e.computed(()=>l.columns.filter(y=>y.pinned).length),d=()=>{const y=i.value,x=y?.rows[0],m=y?.rows[1],g=x?Array.from(x.cells):[];for(const[w,E]of g.entries()){const V=m?.cells[w];V&&(E.style.width=`${V.offsetWidth}px`)}for(const w of y?.rows||[]){let E=0;const V=[];for(const B of w.cells)(B.classList.contains("sticky-column")||B.classList.contains("sticky-index"))&&(B.style.left=`${E}px`,E+=B.offsetWidth,V.push(B));V.length>0&&V[V.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",y=>{if(y.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const x=l.modal.parent;x&&e.nextTick().then(()=>{x.focus()})}});const f=y=>{if(!y.gantt||c.value===0)return l.columns;const x=[];for(let m=0;m<c.value;m++){const g={...l.columns[m]};g.originalIndex=m,x.push(g)}return x.push({...l.columns[c.value],isGantt:!0,colspan:y.gantt?.colspan||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),x},h=y=>{s("connection:event",{type:"create",connection:y})},b=y=>{s("connection:event",{type:"delete",connection:y})},v=(y,x)=>{switch(y){case"add":{const m=l.addRow({},x+1),g=l.rows[m];a.value=[...l.rows],s("row:add",{rowIndex:m,row:g});break}case"delete":{const m=l.deleteRow(x);m&&(a.value=[...l.rows],s("row:delete",{rowIndex:x,row:m}));break}case"duplicate":{const m=l.duplicateRow(x);if(m>=0){const g=l.rows[m];a.value=[...l.rows],s("row:duplicate",{sourceIndex:x,newIndex:m,row:g})}break}case"insertAbove":{const m=l.insertRowAbove(x),g=l.rows[m];a.value=[...l.rows],s("row:insert-above",{targetIndex:x,newIndex:m,row:g});break}case"insertBelow":{const m=l.insertRowBelow(x),g=l.rows[m];a.value=[...l.rows],s("row:insert-below",{targetIndex:x,newIndex:m,row:g});break}case"move":{s("row:move",{fromIndex:x,toIndex:-1});break}}};return o({store:l,createConnection:l.createConnection,deleteConnection:l.deleteConnection,getConnectionsForBar:l.getConnectionsForBar,getHandlesForBar:l.getHandlesForBar,addRow:l.addRow,deleteRow:l.deleteRow,duplicateRow:l.duplicateRow,insertRowAbove:l.insertRowAbove,insertRowBelow:l.insertRowBelow,moveRow:l.moveRow}),(y,x)=>(e.openBlock(),e.createElementBlock("div",Rn,[e.withDirectives((e.openBlock(),e.createElementBlock("table",{ref:"table",class:"atable",style:e.normalizeStyle({width:e.unref(l).config.fullWidth?"100%":"auto"})},[e.renderSlot(y.$slots,"header",{data:e.unref(l)},()=>[e.createVNode(xt,{columns:e.unref(l).columns,store:e.unref(l)},null,8,["columns","store"])],!0),e.createElementVNode("tbody",null,[e.renderSlot(y.$slots,"body",{data:e.unref(l)},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).filteredRows,(m,g)=>(e.openBlock(),e.createBlock(wt,{key:`${m.originalIndex}-${g}`,row:m,rowIndex:m.originalIndex,store:e.unref(l),"onRow:action":v},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(m),(w,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.name},[w.isGantt?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.ganttComponent||"AGanttCell"),{key:0,store:e.unref(l),"columns-count":e.unref(l).columns.length-c.value,color:m.gantt?.color,start:m.gantt?.startIndex,end:m.gantt?.endIndex,colspan:w.colspan,pinned:w.pinned,rowIndex:m.originalIndex,colIndex:w.originalIndex??E,style:e.normalizeStyle({textAlign:w?.align||"center",minWidth:w?.width||"40ch",width:e.unref(l).config.fullWidth?"auto":null}),"onConnection:create":h},null,40,["store","columns-count","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.cellComponent||"ACell"),{key:1,store:e.unref(l),pinned:w.pinned,rowIndex:m.originalIndex,colIndex:E,style:e.normalizeStyle({textAlign:w?.align||"center",width:e.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),e.renderSlot(y.$slots,"footer",{data:e.unref(l)},void 0,!0),e.renderSlot(y.$slots,"modal",{data:e.unref(l)},()=>[e.withDirectives(e.createVNode(vt,{store:e.unref(l)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).modal.component),e.mergeProps({key:`${e.unref(l).modal.rowIndex}:${e.unref(l).modal.colIndex}`,"col-index":e.unref(l).modal.colIndex,"row-index":e.unref(l).modal.rowIndex,store:e.unref(l)},e.unref(l).modal.componentProps),null,16,["col-index","row-index","store"]))]),_:1},8,["store"]),[[e.vShow,e.unref(l).modal.visible]])],!0)],4)),[[e.unref(cn),e.unref(l).closeModal]]),e.unref(l).isGanttView&&e.unref(l).isDependencyGraphEnabled?(e.openBlock(),e.createBlock(wn,{key:0,store:e.unref(l),"onConnection:delete":b},null,8,["store"])):e.createCommentVNode("",!0)]))}}),zn=ce($n,[["__scopeId","data-v-3d00d51b"]]),Ln={},_n={class:"aloading"},Hn={class:"aloading-header"};function Pn(t,o){return e.openBlock(),e.createElementBlock("div",_n,[e.createElementVNode("h2",Hn,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const On=ce(Ln,[["render",Pn],["__scopeId","data-v-a930a25b"]]),Fn={},Zn={class:"aloading"},Un={class:"aloading-header"};function Wn(t,o){return e.openBlock(),e.createElementBlock("div",Zn,[e.createElementVNode("h2",Un,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const Gn=ce(Fn,[["render",Wn],["__scopeId","data-v-e1165876"]]);function jn(t){t.component("ACell",Ao),t.component("AExpansionRow",Lo),t.component("AGanttCell",Uo),t.component("ARow",wt),t.component("ARowActions",$e),t.component("ATable",zn),t.component("ATableHeader",xt),t.component("ATableLoading",On),t.component("ATableLoadingBar",Gn),t.component("ATableModal",vt)}const qn={class:"aform_form-element"},Yn=["for"],Xn={class:"aform_checkbox-container aform_input-field"},Jn=["id","readonly","required"],Qn=["innerHTML"],Kn=e.defineComponent({__name:"ACheckbox",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{type:[Boolean,String,Array,Set]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",qn,[e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Yn),e.createElementVNode("span",Xn,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),type:"checkbox",class:"aform_checkbox",readonly:t.readOnly,required:t.required},null,8,Jn),[[e.vModelCheckbox,o.value]])]),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Qn),[[e.vShow,t.validation.errorMessage]])]))}}),ae=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},yt=ae(Kn,[["__scopeId","data-v-f13fd4d6"]]),kt=e.defineComponent({__name:"AComboBox",props:["event","cellData","tableID"],setup(t){return(o,n)=>{const a=e.resolveComponent("ATableModal");return e.openBlock(),e.createBlock(a,{event:t.event,"cell-data":t.cellData,class:"amodal"},{default:e.withCtx(()=>[...n[0]||(n[0]=[e.createElementVNode("div",null,[e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"})],-1)])]),_:1},8,["event","cell-data"])}}}),ea=["id","disabled","required"],ta=["for"],oa=["innerHTML"],Et=ae(e.defineComponent({__name:"ADate",props:e.mergeModels({schema:{},label:{default:"Date"},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue",{set:r=>new Date(r).toISOString().split("T")[0]}),n=e.useTemplateRef("date"),a=()=>{n.value&&"showPicker"in HTMLInputElement.prototype&&n.value.showPicker()};return(r,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,ref:"date","onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"date",disabled:t.readOnly,required:t.required,onClick:a},null,8,ea),[[e.vModelText,o.value]]),e.createElementVNode("label",{for:t.uuid},e.toDisplayString(t.label),9,ta),e.withDirectives(e.createElementVNode("p",{innerHTML:t.validation.errorMessage},null,8,oa),[[e.vShow,t.validation.errorMessage]])]))}}),[["__scopeId","data-v-a15ed922"]]);function Ct(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}function Vt(){const t=new Set,o=s=>{t.delete(s)};return{on:s=>{t.add(s);const i=()=>o(s);return Ct(i),{off:i}},off:o,trigger:(...s)=>Promise.all(Array.from(t).map(i=>i(...s))),clear:()=>{t.clear()}}}const Mt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const na=Object.prototype.toString,aa=t=>na.call(t)==="[object Object]",Ce=()=>{},la=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function ra(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:Ce}))):e.ref(o)}function Je(t){return Array.isArray(t)?t:[t]}function ia(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const It=Mt?window:void 0,sa=Mt?window.document:void 0;function ge(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function Qe(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=Je(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return ia(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ge(s)))!==null&&a!==void 0?a:[It].filter(s=>s!=null),Je(e.toValue(n.value?t[1]:t[0])),Je(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=aa(i)?{...i}:i,f=a.flatMap(h=>r.flatMap(b=>s.map(v=>o(h,b,v,d))));c(()=>{f.forEach(h=>h())})},{flush:"post"})}function Bt(t,o,n={}){const{window:a=It,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!a)return l?{stop:Ce,cancel:Ce,trigger:Ce}:Ce;let c=!0;const d=m=>e.toValue(r).some(g=>{if(typeof g=="string")return Array.from(a.document.querySelectorAll(g)).some(w=>w===m.target||m.composedPath().includes(w));{const w=ge(g);return w&&(m.target===w||m.composedPath().includes(w))}});function f(m){const g=e.toValue(m);return g&&g.$.subTree.shapeFlag===16}function h(m,g){const w=e.toValue(m),E=w.$.subTree&&w.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(V=>V.el===g.target||g.composedPath().includes(V.el))}const b=m=>{const g=ge(t);if(m.target!=null&&!(!(g instanceof Element)&&f(t)&&h(t,m))&&!(!g||g===m.target||m.composedPath().includes(g))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let v=!1;const y=[Qe(a,"click",m=>{v||(v=!0,setTimeout(()=>{v=!1},0),b(m))},{passive:!0,capture:s}),Qe(a,"pointerdown",m=>{const g=ge(t);c=!d(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),i&&Qe(a,"blur",m=>{setTimeout(()=>{var g;const w=ge(t);((g=a.document.activeElement)===null||g===void 0?void 0:g.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),x=()=>y.forEach(m=>m());return l?{stop:x,cancel:()=>{c=!1},trigger:m=>{c=!0,b(m),c=!1}}:x}const ca={multiple:!0,accept:"*",reset:!1,directory:!1};function da(t){if(!t)return null;if(t instanceof FileList)return t;const o=new DataTransfer;for(const n of t)o.items.add(n);return o.files}function fa(t={}){const{document:o=sa}=t,n=e.ref(da(t.initialFiles)),{on:a,trigger:r}=Vt(),{on:s,trigger:i}=Vt(),l=e.computed(()=>{var h;const b=(h=ge(t.input))!==null&&h!==void 0?h:o?o.createElement("input"):void 0;return b&&(b.type="file",b.onchange=v=>{n.value=v.target.files,r(n.value)},b.oncancel=()=>{i()}),b}),c=()=>{n.value=null,l.value&&l.value.value&&(l.value.value="",r(null))},d=h=>{const b=l.value;b&&(b.multiple=e.toValue(h.multiple),b.accept=e.toValue(h.accept),b.webkitdirectory=e.toValue(h.directory),la(h,"capture")&&(b.capture=e.toValue(h.capture)))},f=h=>{const b=l.value;if(!b)return;const v={...ca,...t,...h};d(v),e.toValue(v.reset)&&c(),b.click()};return e.watchEffect(()=>{d(t)}),{files:e.readonly(n),open:f,reset:c,onCancel:s,onChange:a}}function Ke(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const et=new WeakMap;function ua(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(ra(t),i=>{const l=Ke(e.toValue(i));if(l){const c=l;if(et.get(c)||et.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const i=Ke(e.toValue(t));!i||n.value||(i.style.overflow="hidden",n.value=!0)},s=()=>{const i=Ke(e.toValue(t));!i||!n.value||(i.style.overflow=a,et.delete(i),n.value=!1)};return Ct(s),e.computed({get(){return n.value},set(i){i?r():s()}})}const tt=new WeakMap,ma={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Bt(t,o.value,{capture:n});else{const[r,s]=o.value;a=Bt(t,r,Object.assign({capture:n},s))}tt.set(t,a)},unmounted(t){const o=tt.get(t);o&&typeof o=="function"?o():o?.stop(),tt.delete(t)}};function pa(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=ua(n,a.value);e.watch(o,s=>r.value=s)}}pa();const ha={class:"input-wrapper"},ga={id:"autocomplete-results",class:"autocomplete-results"},ba={key:0,class:"loading autocomplete-result"},wa=["onClick"],Dt=ae(e.defineComponent({__name:"ADropdown",props:e.mergeModels({label:{},items:{default:()=>[]},isAsync:{type:Boolean,default:!1},filterFunction:{type:Function,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=e.reactive({activeItemIndex:null,open:!1,loading:!1,results:t.items}),a=()=>l(),r=async()=>{if(n.open=!0,n.activeItemIndex=null,t.filterFunction){t.isAsync&&(n.loading=!0);try{const b=await t.filterFunction(o.value||"");n.results=b||[]}catch{n.results=[]}finally{t.isAsync&&(n.loading=!1)}}else c()},s=b=>{o.value=b,l(b)},i=()=>{n.activeItemIndex=t.isAsync?null:o.value&&t.items?.indexOf(o.value)||null,n.open=!0,n.results=t.isAsync?[]:t.items},l=b=>{n.activeItemIndex=null,n.open=!1,t.items?.includes(b||o.value||"")||(o.value="")},c=()=>{o.value?n.results=t.items?.filter(b=>b.toLowerCase().includes((o.value??"").toLowerCase())):n.results=t.items},d=()=>{const b=n.results?.length||0;if(n.activeItemIndex!=null){const v=isNaN(n.activeItemIndex)?0:n.activeItemIndex;n.activeItemIndex=(v+1)%b}else n.activeItemIndex=0},f=()=>{const b=n.results?.length||0;if(n.activeItemIndex!=null){const v=isNaN(n.activeItemIndex)?0:n.activeItemIndex;v===0?n.activeItemIndex=null:n.activeItemIndex=v-1}else n.activeItemIndex=b-1},h=()=>{if(n.results){const b=n.activeItemIndex||0,v=n.results[b];s(v)}n.activeItemIndex=0};return(b,v)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["autocomplete",{isOpen:n.open}])},[e.createElementVNode("div",ha,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=y=>o.value=y),type:"text",onInput:r,onFocus:i,onKeydown:[e.withKeys(d,["down"]),e.withKeys(f,["up"]),e.withKeys(h,["enter"]),e.withKeys(a,["esc"]),e.withKeys(a,["tab"])]},null,544),[[e.vModelText,o.value]]),e.withDirectives(e.createElementVNode("ul",ga,[n.loading?(e.openBlock(),e.createElementBlock("li",ba,"Loading results...")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.results,(y,x)=>(e.openBlock(),e.createElementBlock("li",{key:y,class:e.normalizeClass(["autocomplete-result",{"is-active":x===n.activeItemIndex}]),onClick:e.withModifiers(m=>s(y),["stop"])},e.toDisplayString(y),11,wa))),128))],512),[[e.vShow,n.open]]),e.createElementVNode("label",null,e.toDisplayString(t.label),1)])],2)),[[e.unref(ma),a]])}}),[["__scopeId","data-v-31a6db8c"]]);function St(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const xa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const va=t=>t!=null,ya=Object.prototype.toString,ka=t=>ya.call(t)==="[object Object]",Ea=()=>{};function Le(t){return Array.isArray(t)?t:[t]}function Ca(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const be=xa?window:void 0;function we(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function Ve(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=Le(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return Ca(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>we(s)))!==null&&a!==void 0?a:[be].filter(s=>s!=null),Le(e.toValue(n.value?t[1]:t[0])),Le(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=ka(i)?{...i}:i,f=a.flatMap(h=>r.flatMap(b=>s.map(v=>o(h,b,v,d))));c(()=>{f.forEach(h=>h())})},{flush:"post"})}function Va(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Ma(t){const o=Va();return e.computed(()=>(o.value,!!t()))}function Ia(t,o,n={}){const{window:a=be,...r}=n;let s;const i=Ma(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const h=Le(e.toValue(t)).map(we).filter(va);return new Set(h)}),h=>{l(),i.value&&h.size&&(s=new MutationObserver(o),h.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return St(f),{isSupported:i,stop:f,takeRecords:d}}function Ba(t,o,n={}){const{window:a=be,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return Ea;let i;const l=f=>{i?.(),i=f},c=e.watchEffect(()=>{const f=we(t);if(f){const{stop:h}=Ia(r,b=>{b.map(v=>[...v.removedNodes]).flat().some(v=>v===f||v.contains(f))&&o(b)},{window:a,childList:!0,subtree:!0});l(h)}},{flush:s}),d=()=>{c(),l()};return St(d),d}function Da(t={}){var o;const{window:n=be,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,i=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},l=e.shallowRef(),c=()=>{l.value=i()};if(n){const d={capture:!0,passive:!0};Ve(n,"blur",f=>{f.relatedTarget===null&&c()},d),Ve(n,"focus",c,d)}return r&&Ba(l,c,{document:s}),c(),l}const Sa="focusin",Ta="focusout",Aa=":focus-within";function Na(t,o={}){const{window:n=be}=o,a=e.computed(()=>we(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!Da(o).value)return{focused:s};const i={passive:!0};return Ve(a,Sa,()=>r.value=!0,i),Ve(a,Ta,()=>{var l,c,d;return r.value=(l=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,Aa))!==null&&l!==void 0?l:!1},i),{focused:s}}function Ra(t,{window:o=be,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,i=we(t);if(!i)a.value=!1;else{const l=i.getBoundingClientRect();a.value=l.top<=(o.innerHeight||s.documentElement.clientHeight)&&l.left<=(o.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return e.watch(()=>we(t),()=>r(),{immediate:!0,flush:"post"}),o&&Ve(n||o,"scroll",r,{capture:!1,passive:!0}),a}const le=t=>{let o=Ra(t).value;return o=o&&t.offsetHeight>0,o},re=t=>t.tabIndex>=0,Tt=t=>{const o=t.target;return ot(o)},ot=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!re(o)||!le(o))?ot(o):o},$a=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!re(n)||!le(n))?nt(n):n},At=t=>{const o=t.target;return nt(o)},nt=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!re(o)||!le(o))?nt(o):o},za=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!re(n)||!le(n))?ot(n):n},Nt=t=>{const o=t.target;return at(o)},at=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!re(o)||!le(o))?at(o):o},Rt=t=>{const o=t.target;return lt(o)},lt=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!re(o)||!le(o))?lt(o):o},$t=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!re(o)||!le(o))?lt(o):o},zt=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!re(o)||!le(o))?at(o):o},_e=["alt","control","shift","meta"],La={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Lt={"keydown.up":t=>{const o=Tt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=At(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=Nt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=Rt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=$a(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=za(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=$t(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=zt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=zt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=At(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=Tt(t);o&&o.focus()}},"keydown.home":t=>{const o=$t(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=Rt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=Nt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function _a(t){const o=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{const l=o(i);let c=[];if(typeof i.selectors=="string")c=Array.from(l?l.querySelectorAll(i.selectors):document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const d of i.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(i.selectors instanceof HTMLElement)c.push(i.selectors);else if(i.selectors?.value)if(Array.isArray(i.selectors.value))for(const d of i.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(i.selectors.value);return c},a=i=>{const l=o(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(d=>re(d)&&le(d))),c},r=i=>l=>{const c=La[l.key]||l.key.toLowerCase();if(_e.includes(c))return;const d=i.handlers||Lt;for(const f of Object.keys(d)){const[h,...b]=f.split(".");if(h==="keydown"&&b.includes(c)){const v=d[f],y=b.filter(m=>_e.includes(m)),x=_e.some(m=>{const g=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(g)});if(y.length>0){if(x){for(const m of _e)if(b.includes(m)){const g=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(g)&&v(l)}}}else x||v(l)}}},s=[];e.onMounted(()=>{for(const i of t){const l=o(i),c=a(i),d=r(i),f=l?[l]:c;for(const h of f){const{focused:b}=Na(e.ref(h)),v=e.watch(b,y=>{y?h.addEventListener("keydown",d):h.removeEventListener("keydown",d)});s.push(v)}}}),e.onBeforeUnmount(()=>{for(const i of s)i()})}const Ha={ref:"datepicker",class:"adatepicker",tabindex:"0"},Pa={colspan:"5",tabindex:-1},Oa=["onClick","onKeydown"],Fa=6,_t=7,Ht=ae(e.defineComponent({__name:"ADatePicker",props:{modelValue:{default:new Date},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:o}){const n=e.useModel(t,"modelValue"),a=e.ref(new Date(n.value)),r=e.ref(a.value.getMonth()),s=e.ref(a.value.getFullYear()),i=e.ref([]),l=e.useTemplateRef("datepicker");e.onMounted(async()=>{c(),await e.nextTick();const E=document.getElementsByClassName("selectedDate");if(E.length>0)E[0].focus();else{const V=document.getElementsByClassName("todaysDate");V.length>0&&V[0].focus()}});const c=()=>{i.value=[];const E=new Date(s.value,r.value,1),V=E.getDay(),B=E.setDate(E.getDate()-V);for(const I of Array(43).keys())i.value.push(B+I*864e5)};e.watch([r,s],c);const d=()=>s.value-=1,f=()=>s.value+=1,h=()=>{r.value==0?(r.value=11,d()):r.value-=1},b=()=>{r.value==11?(r.value=0,f()):r.value+=1},v=E=>{const V=new Date;if(r.value===V.getMonth())return V.toDateString()===new Date(E).toDateString()},y=E=>new Date(E).toDateString()===new Date(a.value).toDateString(),x=(E,V)=>(E-1)*_t+V,m=(E,V)=>i.value[x(E,V)],g=E=>{n.value=a.value=new Date(i.value[E])},w=e.computed(()=>new Date(s.value,r.value,1).toLocaleDateString(void 0,{year:"numeric",month:"long"}));return _a([{parent:l,selectors:"td",handlers:{...Lt,"keydown.pageup":h,"keydown.shift.pageup":d,"keydown.pagedown":b,"keydown.shift.pagedown":f,"keydown.enter":()=>{}}}]),o({currentMonth:r,currentYear:s,selectedDate:a}),(E,V)=>(e.openBlock(),e.createElementBlock("div",Ha,[e.createElementVNode("table",null,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("td",{id:"previous-month-btn",tabindex:-1,onClick:h},"<"),e.createElementVNode("th",Pa,e.toDisplayString(w.value),1),e.createElementVNode("td",{id:"next-month-btn",tabindex:-1,onClick:b},">")]),V[0]||(V[0]=e.createElementVNode("tr",{class:"days-header"},[e.createElementVNode("td",null,"M"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"W"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"F"),e.createElementVNode("td",null,"S"),e.createElementVNode("td",null,"S")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(Fa,B=>e.createElementVNode("tr",{key:B},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_t,I=>e.createElementVNode("td",{ref_for:!0,ref:"celldate",key:x(B,I),contenteditable:!1,spellcheck:!1,tabindex:0,class:e.normalizeClass({todaysDate:v(m(B,I)),selectedDate:y(m(B,I))}),onClick:e.withModifiers(A=>g(x(B,I)),["prevent","stop"]),onKeydown:e.withKeys(A=>g(x(B,I)),["enter"])},e.toDisplayString(new Date(m(B,I)).getDate()),43,Oa)),64))])),64))])])],512))}}),[["__scopeId","data-v-056d2b5e"]]),Za=ae(e.defineComponent({__name:"CollapseButton",props:{collapsed:{type:Boolean}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["collapse-button",t.collapsed?"rotated":"unrotated"])},"×",2))}}),[["__scopeId","data-v-6f1c1b45"]]),Ua={class:"aform"},Wa={key:0,class:"aform-nested-section"},Ga={key:0,class:"aform-nested-label"},rt=ae(e.defineComponent({__name:"AForm",props:e.mergeModels({schema:{},readOnly:{type:Boolean}},{data:{required:!0},dataModifiers:{}}),emits:e.mergeModels(["update:schema","update:data"],["update:data"]),setup(t,{emit:o}){const n=o,a=e.useModel(t,"data"),r=e.ref({});e.watchEffect(()=>{!t.schema||!a.value||t.schema.forEach(c=>{"schema"in c&&Array.isArray(c.schema)&&c.schema.length>0&&(!r.value[c.fieldname]&&a.value[c.fieldname]?r.value[c.fieldname]=a.value[c.fieldname]:r.value[c.fieldname]||(r.value[c.fieldname]={}))})}),e.watchEffect(()=>{Object.keys(r.value).forEach(c=>{a.value&&r.value[c]!==a.value[c]&&(a.value[c]=r.value[c],n("update:data",a.value))})}),e.watchEffect(()=>{a.value&&t.schema&&t.schema.forEach(c=>{c.fieldname&&a.value[c.fieldname]!==void 0&&(c.value=a.value[c.fieldname])})});const s=c=>{const d={};for(const[f,h]of Object.entries(c))["component","fieldtype"].includes(f)||(d[f]=h),f==="rows"&&(!h||Array.isArray(h)&&h.length===0)&&(d.rows=a.value[c.fieldname]||[]);return d},i=e.ref([]);e.watchEffect(()=>{t.schema&&i.value.length!==t.schema.length&&(i.value=t.schema.map((c,d)=>e.computed({get(){return c.value},set:f=>{const h=t.schema[d].fieldname;t.schema[d].value=f,h&&a.value&&(a.value[h]=f,n("update:data",a.value)),n("update:schema",t.schema)}})))});const l=e.computed(()=>i.value);return(c,d)=>{const f=e.resolveComponent("AForm",!0);return e.openBlock(),e.createElementBlock("form",Ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.schema,(h,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b},["schema"in h&&Array.isArray(h.schema)&&h.schema.length>0?(e.openBlock(),e.createElementBlock("div",Wa,[h.label?(e.openBlock(),e.createElementBlock("h4",Ga,e.toDisplayString(h.label),1)):e.createCommentVNode("",!0),e.createVNode(f,{data:r.value[h.fieldname],"onUpdate:data":v=>r.value[h.fieldname]=v,schema:h.schema,"read-only":t.readOnly||h.readOnly},null,8,["data","onUpdate:data","schema","read-only"])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.component),e.mergeProps({key:1,modelValue:l.value[b].value,"onUpdate:modelValue":v=>l.value[b].value=v,schema:h,data:a.value[h.fieldname],"read-only":t.readOnly},{ref_for:!0},s(h)),null,16,["modelValue","onUpdate:modelValue","schema","data","read-only"]))],64))),128))])}}}),[["__scopeId","data-v-06e17c5b"]]),Pt=ae(e.defineComponent({__name:"AFieldset",props:{schema:{},label:{},collapsible:{type:Boolean},data:{default:()=>({})}},setup(t,{expose:o}){const n=e.ref(!1),a=e.ref(t.data||[]),r=e.ref(t.schema),s=i=>{i.preventDefault(),t.collapsible&&(n.value=!n.value)};return o({collapsed:n}),(i,l)=>(e.openBlock(),e.createElementBlock("fieldset",null,[e.createElementVNode("legend",{onClick:s,onSubmit:s},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),t.collapsible?(e.openBlock(),e.createBlock(Za,{key:0,collapsed:n.value},null,8,["collapsed"])):e.createCommentVNode("",!0)],32),e.renderSlot(i.$slots,"default",{collapsed:n.value},()=>[e.withDirectives(e.createVNode(rt,{schema:r.value,data:a.value,"onUpdate:data":l[0]||(l[0]=c=>a.value=c)},null,8,["schema","data"]),[[e.vShow,!n.value]])],!0)]))}}),[["__scopeId","data-v-18fd6c61"]]),ja={class:"aform_form-element aform_file-attach aform__grid--full"},qa={key:0,class:"aform_file-attach-feedback"},Ya=["disabled"],Ot=ae(e.defineComponent({__name:"AFileAttach",props:{label:{}},setup(t){const{files:o,open:n,reset:a,onChange:r}=fa(),s=e.computed(()=>`${o.value.length} ${o.value.length===1?"file":"files"}`);return r(i=>i),(i,l)=>(e.openBlock(),e.createElementBlock("div",ja,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",qa,[e.createElementVNode("p",null,[l[2]||(l[2]=e.createTextVNode(" You have selected: ",-1)),e.createElementVNode("b",null,e.toDisplayString(s.value),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createElementBlock("li",{key:c.name},e.toDisplayString(c.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"aform_form-btn",onClick:l[0]||(l[0]=c=>e.unref(n)())},e.toDisplayString(t.label),1),e.createElementVNode("button",{type:"button",disabled:!e.unref(o),class:"aform_form-btn",onClick:l[1]||(l[1]=c=>e.unref(a)())},"Reset",8,Ya)]))}}),[["__scopeId","data-v-b700734f"]]),Xa={class:"aform_form-element"},Ja=["id","disabled","required"],Qa=["for"],Ka=["innerHTML"],Ft=e.defineComponent({__name:"ANumericInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",Xa,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),class:"aform_input-field",type:"number",disabled:t.readOnly,required:t.required},null,8,Ja),[[e.vModelText,o.value]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Qa),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Ka),[[e.vShow,t.validation.errorMessage]])]))}}),Zt={date:"##/##/####",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"};function el(t){try{return Function(`"use strict";return (${t})`)()}catch{}}function tl(t){let o=t.value;if(o){const n=el(o);if(n){const a=t.instance?.locale;o=n(a)}}else{const a=t.instance?.schema?.fieldtype?.toLowerCase();a&&Zt[a]&&(o=Zt[a])}return o}function ol(t,o){let n=t;const a=[o,"/","-","(",")"," "];for(const r of a)n=n.replaceAll(r,"");return n}function nl(t,o,n){let a=o;for(const r of t){const s=a.indexOf(n);if(s!==-1){const i=a.substring(0,s),l=a.substring(s+1);a=i+r+l}}return a.slice(0,o.length)}function al(t,o){const n=tl(o);if(!n)return;const a="#",r=t.value,s=ol(r,a);if(s){const i=nl(s,n,a);o.instance?.maskFilled&&(o.instance.maskFilled=!i.includes(a)),t.value=i}else t.value=n}const ll={class:"aform_form-element"},rl=["id","disabled","maxlength","required"],il=["for"],sl=["innerHTML"],Ut=e.defineComponent({__name:"ATextInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:" "})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.ref(!0),n=e.useModel(t,"modelValue");return(a,r)=>(e.openBlock(),e.createElementBlock("div",ll,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),class:"aform_input-field",disabled:t.readOnly,maxlength:t.mask&&o.value?t.mask.length:void 0,required:t.required},null,8,rl),[[e.vModelText,n.value],[e.unref(al),t.mask]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,il),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,sl),[[e.vShow,t.validation.errorMessage]])]))}}),cl={class:"login-container"},dl={class:"account-container"},fl={class:"account-header"},ul={id:"account-title"},ml={id:"account-subtitle"},pl={class:"login-form-container"},hl={class:"login-form-email aform_form-element"},gl=["disabled"],bl={class:"login-form-password aform_form-element"},wl=["disabled"],xl=["disabled"],vl={key:0,class:"material-symbols-outlined loading-icon"},yl=ae(e.defineComponent({__name:"Login",props:{headerTitle:{default:"Login"},headerSubtitle:{default:"Enter your email and password to login"}},emits:["loginFailed","loginSuccess"],setup(t,{emit:o}){const n=o,a=e.ref(""),r=e.ref(""),s=e.ref(!1),i=e.ref(!1);function l(c){if(c.preventDefault(),s.value=!0,i.value){s.value=!1,n("loginFailed");return}s.value=!1,n("loginSuccess")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",cl,[e.createElementVNode("div",null,[e.createElementVNode("div",dl,[e.createElementVNode("div",fl,[e.createElementVNode("h1",ul,e.toDisplayString(t.headerTitle),1),e.createElementVNode("p",ml,e.toDisplayString(t.headerSubtitle),1)]),e.createElementVNode("form",{onSubmit:l},[e.createElementVNode("div",pl,[e.createElementVNode("div",hl,[d[2]||(d[2]=e.createElementVNode("label",{id:"login-email",for:"email",class:"aform_field-label"},"Email",-1)),e.withDirectives(e.createElementVNode("input",{id:"email","onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),class:"aform_input-field",name:"email",placeholder:"name@example.com",type:"email","auto-capitalize":"none","auto-complete":"email","auto-correct":"off",disabled:s.value},null,8,gl),[[e.vModelText,a.value]])]),e.createElementVNode("div",bl,[d[3]||(d[3]=e.createElementVNode("label",{id:"login-password",for:"password",class:"aform_field-label"},"Password",-1)),e.withDirectives(e.createElementVNode("input",{id:"password","onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),class:"aform_input-field",name:"password",type:"password",disabled:s.value},null,8,wl),[[e.vModelText,r.value]])]),e.createElementVNode("button",{class:"btn",disabled:s.value||!a.value||!r.value,onClick:l},[s.value?(e.openBlock(),e.createElementBlock("span",vl,"progress_activity")):e.createCommentVNode("",!0),d[4]||(d[4]=e.createElementVNode("span",{id:"login-form-button"},"Login",-1))],8,xl)])],32),d[5]||(d[5]=e.createElementVNode("button",{class:"btn"},[e.createElementVNode("span",{id:"forgot-password-button"},"Forgot password?")],-1))])])]))}}),[["__scopeId","data-v-d9ffd0a7"]]);function kl(t){t.use(jn),t.component("ACheckbox",yt),t.component("ACombobox",kt),t.component("ADate",Et),t.component("ADropdown",Dt),t.component("ADatePicker",Ht),t.component("AFieldset",Pt),t.component("AFileAttach",Ot),t.component("AForm",rt),t.component("ANumericInput",Ft),t.component("ATextInput",Ut)}q.ACheckbox=yt,q.AComboBox=kt,q.ADate=Et,q.ADatePicker=Ht,q.ADropdown=Dt,q.AFieldset=Pt,q.AFileAttach=Ot,q.AForm=rt,q.ANumericInput=Ft,q.ATextInput=Ut,q.Login=yl,q.install=kl,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})}));
|
|
47
51
|
//# sourceMappingURL=aform.umd.cjs.map
|