ia-table 0.14.5 → 0.14.7
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/index.d.ts +6 -0
- package/dist/index.js +9860 -9447
- package/dist/pivot.d.ts +4 -0
- package/dist/pivot.js +1 -1
- package/dist/{right-arrow-DVcW5eaL.js → right-arrow-u0DuaXma.js} +215 -206
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('button.ia-table-btn{border:none;border-radius:8px;text-decoration:none;font-size:14px;font-weight:500;font-family:Manrope,sans-serif;line-height:20px}button.ia-table-btn-url{background-color:transparent;color:#4259ee}button.ia-table-btn-url svg{padding:2px}button.ia-table-btn-url.ia-table-btn-icon{width:24px;height:24px}button.ia-table-btn-primary{background-color:#4259ee;color:#fff}button.ia-table-btn-link{color:#4259ee;background-color:transparent}button.ia-table-btn-danger{color:#fff;background-color:#e15554}button.ia-table-btn-tertiary{border:1px solid #c3c8d4;color:#1f2b4d;background-color:#fff}button.ia-table-btn-tertiary svg{padding:2px!important}button.ia-table-btn-tertiary:hover{border-color:#4259ee;color:#4259ee}button.ia-table-btn-tertiary:hover svg path{fill:#4259ee}button.ia-table-btn-icon{padding:0}button.ia-table-btn.ia-table-btn-disabled{background-color:#c3c8d4;color:#fff}button.ia-table-btn.ia-table-btn-disabled svg path{fill:#b4bac7}button.ia-table-btn-text{height:32px;max-height:32px;border-radius:8px;background-color:#f5f6fa;padding:8px;display:flex;align-items:center;justify-content:center;color:#60697d}button.ia-table-btn-text.ia-table-btn-disabled{background-color:#f8f9fb}button.ia-table-btn-text.ia-table-btn-icon{color:#60697d}button.ia-table-btn-text.ia-table-btn-icon-color{background-color:#eceefd}button.ia-table-btn-text.ia-table-btn-icon-color svg path{fill:#3649c6}button.ia-table-btn svg{height:16px;width:16px;display:flex;align-items:center;justify-content:center}button.ia-table-btn:focus svg path{fill:#3649c6}button.ia-table-btn-small{height:24px;min-width:24px;padding:2px 4px}button.ia-table-btn-small .ia-table-btn-text{padding:2px 12px}button.ia-table-btn-medium{height:28px;min-width:28px;padding:4px 6px}button.ia-table-btn-medium .ia-table-btn-text{padding:4px 12px}button.ia-table-btn-large{height:32px;min-width:32px;padding:6px 8px}button.ia-table-btn.ia-table-btn-simple{width:auto;height:auto;min-width:auto;padding:0}button.ia-table-btn.ia-table-btn-simple svg{padding:0}.tooltip-container{position:relative;display:inline-block}.tooltip{position:absolute;background-color:#1976d2;color:#fff;font-family:Manrope,sans-serif;border-radius:6px;font-size:14px;z-index:9999;box-shadow:0 2px 8px #0003;white-space:normal;max-width:400px;overflow-wrap:break-word;display:flex;align-items:center;justify-content:center;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease-in-out}.tooltip-title{font-family:Manrope;font-weight:500;font-size:14px;line-height:20px;vertical-align:middle;padding:6px 12px}.tooltip.tooltip-visible{opacity:1;pointer-events:auto}.tooltip--primary{background:var(--Colors-Primary-Surface-Darker, rgb(54, 73, 198));color:#fff}.tooltip--secondary{background:var(--Colors-Neutrals-Surface-White, rgb(255, 255, 255));color:#000;border:1px solid #ccc}.tooltip--tertiary{background:var(--Colors-Neutrals-Text-icon-Title, rgb(13, 21, 44));color:#fff}.tooltip-arrow{position:absolute;width:10px;height:10px;background-color:inherit;transform:rotate(45deg)}.tooltip--top .tooltip-arrow{bottom:-5px}.tooltip--bottom .tooltip-arrow{top:-5px}.tooltip--left .tooltip-arrow{right:-5px}.tooltip--right .tooltip-arrow{left:-5px}.tooltip-header{padding:8px 12px}.body-text span{display:block;width:100%;text-align:justify;white-space:normal;overflow-wrap:break-word;word-break:break-word;overflow:hidden;text-overflow:ellipsis}.tooltip-btns{align-self:flex-end;gap:4px;margin-left:auto}.tooltip-btn{font-size:8px;border-radius:4px;padding:6px 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease;border:none}.btn-no-bg{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.btn--primary{background-color:#1976d2;color:#fff}.btn--primary:hover{background-color:#1565c0}.btn--secondary{background-color:#fff;color:#333}.btn--secondary:hover{background-color:#fff}.btn--default{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.tooltip-illustration{margin:0;padding:0}.tooltip-illustration img{width:100%;max-width:100%;height:120px;object-fit:cover;border-radius:4px}.tooltip-close{background:none;position:relative;border:none;font-size:16px;cursor:pointer;color:inherit;padding:0;margin-left:auto;flex-shrink:0;width:24px;height:24px;border-radius:50%;transition:background-color .2s ease}.tooltip-close:hover{background-color:#ffffff1a}.tooltip-pagination{justify-content:flex-start;gap:5px;max-width:100%;overflow:hidden}.tooltip-pagination-bar{width:20px;height:5px;border-radius:1px;background-color:#fff;flex-shrink:0}.tooltip-pagination-bar.secondary-variant{background-color:#1976d2}.ia-table-badge{display:inline-flex;border-radius:100px;font-family:Manrope,sans-serif;font-weight:500;white-space:nowrap;padding:0 8px;max-width:-webkit-fill-available}.ia-table-badge-size-small{height:20px;font-size:10px;line-height:16px}.ia-table-badge-size-default{height:24px;font-size:12px;line-height:16px}.ia-table-badge-filled.ia-table-badge-default{background-color:#5f6673;color:#fff}.ia-table-badge-filled.ia-table-badge-success{background-color:#0f8431;color:#fff}.ia-table-badge-filled.ia-table-badge-warning{background-color:#8b6f06;color:#1f2b4d}.ia-table-badge-filled.ia-table-badge-error{background-color:#d62f4c;color:#fff}.ia-table-badge-filled.ia-table-badge-info{background-color:#4159ee;color:#fff}.ia-table-badge-stroke{background-color:#fff}.ia-table-badge-stroke.ia-table-badge-default{border:1px solid #5f6673;color:#5f6673}.ia-table-badge-stroke.ia-table-badge-success{border:1px solid #0f8431;color:#0f8431}.ia-table-badge-stroke.ia-table-badge-warning{border:1px solid #8b6f06;color:#8b6f06}.ia-table-badge-stroke.ia-table-badge-error{border:1px solid #d62f4c;color:#d62f4c}.ia-table-badge-stroke.ia-table-badge-info{border:1px solid #4159ee;color:#4159ee}.ia-table-badge-subtile.ia-table-badge-default{background:#f2f3f4;color:#5f6673}.ia-table-badge-subtile.ia-table-badge-success{background:#f4fff7;color:#0f8431}.ia-table-badge-subtile.ia-table-badge-warning{background:#fdfae9;color:#8b6f06}.ia-table-badge-subtile.ia-table-badge-error{background:#fef4f5;color:#d62f4c}.ia-table-badge-subtile.ia-table-badge-info{background:#f1f3fe;color:#4159ee}.ia-table-badge-label{display:inline-block}.ia-table-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:1000;animation:ia-table-modal-fade-in .2s ease-out}.ia-table-modal-overlay .ia-table-modal{background-color:#fff;border-radius:8px;box-shadow:0 4px 16px #00000029;max-height:90vh;animation:ia-table-modal-slide-in .2s ease-out;position:relative;max-width:95vw;overflow:hidden}.ia-table-modal-overlay .ia-table-modal-small{width:400px}.ia-table-modal-overlay .ia-table-modal-medium{width:600px}.ia-table-modal-overlay .ia-table-modal-large{width:800px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header{min-height:48px;padding:12px 16px;background-color:#eceefd;flex-shrink:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header .ia-table-modal-title{font-family:Manrope,sans-serif;font-weight:800;font-size:16px;line-height:24px;color:#0d152c;margin:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-content{padding:16px;flex:1;overflow-y:auto;min-height:100px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-footer{border-top:1px solid #d9dde7;padding:12px 16px;height:56px;flex-shrink:0;background-color:#fff;border-radius:0 0 8px 8px}@keyframes ia-table-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ia-table-modal-slide-in{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:768px){.ia-table-modal-overlay .ia-table-modal-small,.ia-table-modal-overlay .ia-table-modal-medium,.ia-table-modal-overlay .ia-table-modal-large{width:95vw}}.ia-table-inputbox-container{width:100%;font-family:Manrope,sans-serif;height:32px;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px}.ia-table-inputbox-container .ia-table-input-container{width:100%;height:inherit;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;transition:all .2s ease-in-out;margin:0}.ia-table-inputbox-container .ia-table-input-container:hover:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container:focus-within:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-error{border-color:#ff3b30}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-disabled{background-color:#f7f7f7;border-color:#e2e8f0;cursor:not-allowed}.ia-table-inputbox-container .ia-table-input-container.ia-table-cellrender-input{border:none}.ia-table-inputbox-container .ia-table-input-container.has-left-icon{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container.has-left-icon-button{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon-button{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon,.ia-table-inputbox-container .ia-table-input-container .right-input-icon,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button{height:24px;color:#60697d}.ia-table-inputbox-container .ia-table-input-container .left-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button svg{width:16px;height:16px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock{opacity:1;visibility:visible}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock svg path{fill:#b4bac7}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.visible{opacity:1;visibility:visible;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper{flex:1;height:100%;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input{width:100%;height:100%;border:none;outline:none;background:transparent;font-size:14px;font-weight:400;color:#1f2b4d;padding:0 4px;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::placeholder{color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input:disabled{cursor:not-allowed;color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-inner-spin-button,.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.ia-table-inputbox-container .ia-table-input-error-message{font-size:12px;font-weight:400;color:#ff3b30;margin-top:4px}.ia-table-cell-render-input-disabled{cursor:not-allowed;border:none!important;background-color:#fafafa!important}.ia-table-cell-render-input-disabled input{color:#b4bac7!important;font-weight:400!important}.ia-table-select-search{padding:9.5px 12px}.ia-table-select-search svg path{fill:#a0a8b1}.ia-table-select-search .ia-table-select-search-input{width:100%;border:none;border-radius:8px;padding:0 10px;font-size:14px;outline:none;background-color:inherit;color:#1f2b4d;line-height:16px}.ia-table-select-search .ia-table-select-search-input:focus{border-color:#4259ee}.ia-table-select-search .ia-table-select-search-input::placeholder{color:#b4bac7}.ia-table-select-dropdown{position:absolute;margin-top:6px;border-radius:12px;box-shadow:0 1px 6px #1a277c24;border:none;padding:8px 6px;background-color:#fff;font-family:Manrope,sans-serif;z-index:1050;min-height:135px;max-height:262px}.ia-table-select-dropdown.ia-table-select-dropdown-above{margin-top:0;margin-bottom:6px;bottom:100%;top:auto}.ia-table-select-reset{width:20px;height:20px;background:transparent;border:none;margin-left:8px}.ia-table-select-reset svg path{fill:#60697d}.ia-table-select-options{max-height:240px;overflow-y:auto;margin-top:2px}.ia-table-select-options::-webkit-scrollbar{width:6px}.ia-table-select-options::-webkit-scrollbar-track{background:transparent}.ia-table-select-options::-webkit-scrollbar-thumb{background-color:#c3c8d4;border-radius:3px}.ia-table-select-options .ia-table-select-option{padding:7.5px 12px;font-size:14px;color:#1f2b4d;line-height:20px;font-weight:500;transition:background-color .2s ease;border-radius:8px}.ia-table-select-options .ia-table-select-option:hover{background-color:#f5f6fa}.ia-table-select-options .ia-table-select-option.ia-table-select-option-selected,.ia-table-select-options .ia-table-select-option.ia-table-select-option-highlighted{background-color:#eef0ff}.ia-table-select-options .ia-table-select-option.ia-table-option-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;color:#b4bac7}.ia-table-select-options .ia-table-select-no-options{padding:12px;text-align:center;color:#a0a8b1;font-style:italic}.ia-table-selectbox-container{width:100%;font-family:Manrope,sans-serif;position:relative;margin:0;padding:0}.ia-table-selectbox-container .ia-table-select-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px;display:block}.ia-table-selectbox-container .ia-table-select-container{width:100%;height:32px;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;cursor:pointer;transition:all .2s ease-in-out;position:relative;margin:0}.ia-table-selectbox-container .ia-table-select-container:hover:not(.ia-table-select-disabled,.ia-table-selectrenderer){border-color:#4259ee}.ia-table-selectbox-container .ia-table-select-container.ia-table-select-disabled{background-color:#f2f4fb;border-color:#e2e8f0;cursor:not-allowed;opacity:.7}.ia-table-selectbox-container .ia-table-select-container.ia-table-selectrenderer{border:none}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:400;color:#1f2b4d;line-height:19px}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value:empty:before{content:"Select an option";color:#b4bac7}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow{width:16px;height:16px;transition:transform .2s ease}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow svg{transition:transform .2s ease;fill:#404b62}.ia-table-cell-render-select-disabled .ia-table-select-disabled .ia-table-select-value{color:#b4bac7!important;font-weight:400!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled{border:none!important;background-color:inherit!important;cursor:not-allowed!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled svg path{fill:#d9dde7}.ia-checkbox-container{-webkit-user-select:none;user-select:none}.ia-checkbox-input,.ia-checkbox-icon{width:16px;height:16px}.ia-checkbox-input{position:absolute;opacity:0;margin:0}.ia-checkbox-custom{width:16px;height:16px;transition:all .2s ease}.ia-checkbox-label{font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-checkbox-disabled{opacity:.5;cursor:not-allowed}.ia-checkbox-disabled .ia-checkbox-input,.ia-checkbox-disabled .ia-checkbox-custom{cursor:not-allowed}.ia-checkbox-container:not(.ia-checkbox-disabled):hover .ia-checkbox-custom{opacity:.9}.ia-checkbox-input:focus-visible+.ia-checkbox-custom{outline:2px solid var(--focus-color, #4259ee);outline-offset:1px}.ia-table-radio-group-container{width:100%}.ia-table-radio-group-container.vertical{flex-direction:column}.ia-table-radio-group-container.horizontal{flex-direction:row}.ia-table-radio-option{padding:0;margin:0;-webkit-user-select:none;user-select:none;font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-table-radio-input{opacity:0;height:0;width:0}.ia-table-radio-custom{height:16px;width:16px;min-width:16px;background-color:#fff;border:1px solid #c3c8d4;border-radius:50%;transition:all .2s ease}.ia-table-radio-custom:after{content:"";position:absolute;display:none;width:8px;height:8px;border-radius:50%;background:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom{border-color:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom:after{display:block}.ia-table-radio-input:focus-visible~.ia-table-radio-custom{box-shadow:0 0 0 3px #4259ee33;outline:none}.ia-table-radio-input:disabled~.ia-table-radio-custom{background-color:#f4f5f7;border-color:#dfe1e6;cursor:not-allowed}.ia-table-radio-input:disabled~.ia-table-radio-custom:after{background:#a5adba}.ia-table-radio-input:disabled~.ia-table-radio-label{color:#a5adba;cursor:not-allowed}.ia-table-radio-label.ia-table-radio-label-selected{color:#1f2b4d}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('button.ia-table-btn{border:none;border-radius:8px;text-decoration:none;font-size:14px;font-weight:500;font-family:Manrope,sans-serif;line-height:20px}button.ia-table-btn-url{background-color:transparent;color:#4259ee}button.ia-table-btn-url svg{padding:2px}button.ia-table-btn-url.ia-table-btn-icon{width:24px;height:24px}button.ia-table-btn-primary{background-color:#4259ee;color:#fff}button.ia-table-btn-link{color:#4259ee;background-color:transparent}button.ia-table-btn-danger{color:#fff;background-color:#e15554}button.ia-table-btn-tertiary{border:1px solid #c3c8d4;color:#1f2b4d;background-color:#fff}button.ia-table-btn-tertiary svg{padding:2px!important}button.ia-table-btn-tertiary:hover{border-color:#4259ee;color:#4259ee}button.ia-table-btn-tertiary:hover svg path{fill:#4259ee}button.ia-table-btn-icon{padding:0}button.ia-table-btn.ia-table-btn-disabled{background-color:#c3c8d4;color:#fff}button.ia-table-btn.ia-table-btn-disabled svg path{fill:#b4bac7}button.ia-table-btn-text{height:32px;max-height:32px;border-radius:8px;background-color:#f5f6fa;padding:8px;display:flex;align-items:center;justify-content:center;color:#60697d}button.ia-table-btn-text.ia-table-btn-disabled{background-color:#f8f9fb}button.ia-table-btn-text.ia-table-btn-icon{color:#60697d}button.ia-table-btn-text.ia-table-btn-icon-color{background-color:#eceefd}button.ia-table-btn-text.ia-table-btn-icon-color svg path{fill:#3649c6}button.ia-table-btn svg{height:16px;width:16px;display:flex;align-items:center;justify-content:center}button.ia-table-btn:focus svg path{fill:#3649c6}button.ia-table-btn-small{height:24px;min-width:24px;padding:2px 4px}button.ia-table-btn-small .ia-table-btn-text{padding:2px 12px}button.ia-table-btn-medium{height:28px;min-width:28px;padding:4px 6px}button.ia-table-btn-medium .ia-table-btn-text{padding:4px 12px}button.ia-table-btn-large{height:32px;min-width:32px;padding:6px 8px}button.ia-table-btn.ia-table-btn-simple{width:auto;height:auto;min-width:auto;padding:0}button.ia-table-btn.ia-table-btn-simple svg{padding:0}.tooltip-container{position:relative;display:inline-block}.tooltip{position:absolute;background-color:#1976d2;color:#fff;font-family:Manrope,sans-serif;border-radius:6px;font-size:14px;z-index:9999;box-shadow:0 2px 8px #0003;white-space:normal;max-width:400px;overflow-wrap:break-word;display:flex;align-items:center;justify-content:center;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease-in-out}.tooltip-title{font-family:Manrope;font-weight:500;font-size:14px;line-height:20px;vertical-align:middle;padding:6px 12px}.tooltip.tooltip-visible{opacity:1;pointer-events:auto}.tooltip--primary{background:var(--Colors-Primary-Surface-Darker, rgb(54, 73, 198));color:#fff}.tooltip--secondary{background:var(--Colors-Neutrals-Surface-White, rgb(255, 255, 255));color:#000;border:1px solid #ccc}.tooltip--tertiary{background:var(--Colors-Neutrals-Text-icon-Title, rgb(13, 21, 44));color:#fff}.tooltip-arrow{position:absolute;width:10px;height:10px;background-color:inherit;transform:rotate(45deg)}.tooltip--top .tooltip-arrow{bottom:-5px}.tooltip--bottom .tooltip-arrow{top:-5px}.tooltip--left .tooltip-arrow{right:-5px}.tooltip--right .tooltip-arrow{left:-5px}.tooltip-header{padding:8px 12px}.body-text span{display:block;width:100%;text-align:justify;white-space:normal;overflow-wrap:break-word;word-break:break-word;overflow:hidden;text-overflow:ellipsis}.tooltip-btns{align-self:flex-end;gap:4px;margin-left:auto}.tooltip-btn{font-size:8px;border-radius:4px;padding:6px 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease;border:none}.btn-no-bg{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.btn--primary{background-color:#1976d2;color:#fff}.btn--primary:hover{background-color:#1565c0}.btn--secondary{background-color:#fff;color:#333}.btn--secondary:hover{background-color:#fff}.btn--default{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.tooltip-illustration{margin:0;padding:0}.tooltip-illustration img{width:100%;max-width:100%;height:120px;object-fit:cover;border-radius:4px}.tooltip-close{background:none;position:relative;border:none;font-size:16px;cursor:pointer;color:inherit;padding:0;margin-left:auto;flex-shrink:0;width:24px;height:24px;border-radius:50%;transition:background-color .2s ease}.tooltip-close:hover{background-color:#ffffff1a}.tooltip-pagination{justify-content:flex-start;gap:5px;max-width:100%;overflow:hidden}.tooltip-pagination-bar{width:20px;height:5px;border-radius:1px;background-color:#fff;flex-shrink:0}.tooltip-pagination-bar.secondary-variant{background-color:#1976d2}.ia-table-badge{display:inline-flex;border-radius:100px;font-family:Manrope,sans-serif;font-weight:500;white-space:nowrap;padding:0 8px;max-width:-webkit-fill-available}.ia-table-badge-size-small{height:20px;font-size:10px;line-height:16px}.ia-table-badge-size-default{height:24px;font-size:12px;line-height:16px}.ia-table-badge-filled.ia-table-badge-default{background-color:#5f6673;color:#fff}.ia-table-badge-filled.ia-table-badge-success{background-color:#0f8431;color:#fff}.ia-table-badge-filled.ia-table-badge-warning{background-color:#8b6f06;color:#1f2b4d}.ia-table-badge-filled.ia-table-badge-error{background-color:#d62f4c;color:#fff}.ia-table-badge-filled.ia-table-badge-info{background-color:#4159ee;color:#fff}.ia-table-badge-stroke{background-color:#fff}.ia-table-badge-stroke.ia-table-badge-default{border:1px solid #5f6673;color:#5f6673}.ia-table-badge-stroke.ia-table-badge-success{border:1px solid #0f8431;color:#0f8431}.ia-table-badge-stroke.ia-table-badge-warning{border:1px solid #8b6f06;color:#8b6f06}.ia-table-badge-stroke.ia-table-badge-error{border:1px solid #d62f4c;color:#d62f4c}.ia-table-badge-stroke.ia-table-badge-info{border:1px solid #4159ee;color:#4159ee}.ia-table-badge-subtile.ia-table-badge-default{background:#f2f3f4;color:#5f6673}.ia-table-badge-subtile.ia-table-badge-success{background:#f4fff7;color:#0f8431}.ia-table-badge-subtile.ia-table-badge-warning{background:#fdfae9;color:#8b6f06}.ia-table-badge-subtile.ia-table-badge-error{background:#fef4f5;color:#d62f4c}.ia-table-badge-subtile.ia-table-badge-info{background:#f1f3fe;color:#4159ee}.ia-table-badge-label{display:inline-block}.ia-table-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:1000;animation:ia-table-modal-fade-in .2s ease-out}.ia-table-modal-overlay .ia-table-modal{background-color:#fff;border-radius:8px;box-shadow:0 4px 16px #00000029;max-height:90vh;animation:ia-table-modal-slide-in .2s ease-out;position:relative;max-width:95vw;overflow:hidden}.ia-table-modal-overlay .ia-table-modal-small{width:400px}.ia-table-modal-overlay .ia-table-modal-medium{width:600px}.ia-table-modal-overlay .ia-table-modal-large{width:800px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header{min-height:48px;padding:12px 16px;background-color:#eceefd;flex-shrink:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header .ia-table-modal-title{font-family:Manrope,sans-serif;font-weight:800;font-size:16px;line-height:24px;color:#0d152c;margin:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-content{padding:16px;flex:1;overflow-y:auto;min-height:100px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-footer{border-top:1px solid #d9dde7;padding:12px 16px;height:56px;flex-shrink:0;background-color:#fff;border-radius:0 0 8px 8px}@keyframes ia-table-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ia-table-modal-slide-in{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:768px){.ia-table-modal-overlay .ia-table-modal-small,.ia-table-modal-overlay .ia-table-modal-medium,.ia-table-modal-overlay .ia-table-modal-large{width:95vw}}.ia-table-inputbox-container{width:100%;font-family:Manrope,sans-serif;height:32px;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px}.ia-table-inputbox-container .ia-table-input-container{width:100%;height:inherit;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;transition:all .2s ease-in-out;margin:0}.ia-table-inputbox-container .ia-table-input-container:hover:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container:focus-within:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-error{border-color:#ff3b30}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-disabled{background-color:#f7f7f7;border-color:#e2e8f0;cursor:not-allowed}.ia-table-inputbox-container .ia-table-input-container.ia-table-cellrender-input{border:none}.ia-table-inputbox-container .ia-table-input-container.has-left-icon{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container.has-left-icon-button{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon-button{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon,.ia-table-inputbox-container .ia-table-input-container .right-input-icon,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button{height:24px;color:#60697d}.ia-table-inputbox-container .ia-table-input-container .left-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button svg{width:16px;height:16px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock{opacity:1;visibility:visible}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock svg path{fill:#b4bac7}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.visible{opacity:1;visibility:visible;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper{flex:1;height:100%;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input{width:100%;height:100%;border:none;outline:none;background:transparent;font-size:14px;font-weight:400;color:#1f2b4d;padding:0 4px;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::placeholder{color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input:disabled{cursor:not-allowed;color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-inner-spin-button,.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.ia-table-inputbox-container .ia-table-input-error-message{font-size:12px;font-weight:400;color:#ff3b30;margin-top:4px}.ia-table-cell-render-input-disabled{cursor:not-allowed;border:none!important;background-color:#fafafa!important}.ia-table-cell-render-input-disabled input{color:#b4bac7!important;font-weight:400!important}.ia-table-select-search{padding:9.5px 12px}.ia-table-select-search svg path{fill:#a0a8b1}.ia-table-select-search .ia-table-select-search-input{width:100%;border:none;border-radius:8px;padding:0 10px;font-size:14px;outline:none;background-color:inherit;color:#1f2b4d;line-height:16px}.ia-table-select-search .ia-table-select-search-input:focus{border-color:#4259ee}.ia-table-select-search .ia-table-select-search-input::placeholder{color:#b4bac7}.ia-table-select-dropdown{position:absolute;margin-top:6px;border-radius:12px;box-shadow:0 1px 6px #1a277c24;border:none;padding:8px 6px;background-color:#fff;font-family:Manrope,sans-serif;z-index:1050;min-height:135px;max-height:262px}.ia-table-select-dropdown.ia-table-select-dropdown-above{margin-top:0;margin-bottom:6px;bottom:100%;top:auto}.ia-table-select-reset{width:20px;height:20px;background:transparent;border:none;margin-left:8px}.ia-table-select-reset svg path{fill:#60697d}.ia-table-select-options{max-height:240px;overflow-y:auto;margin-top:2px}.ia-table-select-options::-webkit-scrollbar{width:6px}.ia-table-select-options::-webkit-scrollbar-track{background:transparent}.ia-table-select-options::-webkit-scrollbar-thumb{background-color:#c3c8d4;border-radius:3px}.ia-table-select-options .ia-table-select-option{padding:7.5px 12px;font-size:14px;color:#1f2b4d;line-height:20px;font-weight:500;transition:background-color .2s ease;border-radius:8px}.ia-table-select-options .ia-table-select-option:hover{background-color:#f5f6fa}.ia-table-select-options .ia-table-select-option.ia-table-select-option-selected,.ia-table-select-options .ia-table-select-option.ia-table-select-option-highlighted{background-color:#eef0ff}.ia-table-select-options .ia-table-select-option.ia-table-option-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;color:#b4bac7}.ia-table-select-options .ia-table-select-no-options{padding:12px;text-align:center;color:#a0a8b1;font-style:italic}.ia-table-selectbox-container{width:100%;font-family:Manrope,sans-serif;position:relative;margin:0;padding:0}.ia-table-selectbox-container .ia-table-select-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px;display:block}.ia-table-selectbox-container .ia-table-select-container{width:100%;height:32px;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;cursor:pointer;transition:all .2s ease-in-out;position:relative;margin:0}.ia-table-selectbox-container .ia-table-select-container:hover:not(.ia-table-select-disabled,.ia-table-selectrenderer){border-color:#4259ee}.ia-table-selectbox-container .ia-table-select-container.ia-table-select-disabled{background-color:#f2f4fb;border-color:#e2e8f0;cursor:not-allowed;opacity:.7}.ia-table-selectbox-container .ia-table-select-container.ia-table-selectrenderer{border:none}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:400;color:#1f2b4d;line-height:19px}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value:empty:before{content:"Select an option";color:#b4bac7}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow{width:16px;height:16px;transition:transform .2s ease}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow svg{transition:transform .2s ease;fill:#404b62}.ia-table-cell-render-select-disabled .ia-table-select-disabled .ia-table-select-value{color:#b4bac7!important;font-weight:400!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled{border:none!important;background-color:inherit!important;cursor:not-allowed!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled svg path{fill:#d9dde7}.ia-checkbox-container{-webkit-user-select:none;user-select:none}.ia-checkbox-input,.ia-checkbox-icon{width:16px;height:16px}.ia-checkbox-input{position:absolute;opacity:0;margin:0}.ia-checkbox-custom{width:16px;height:16px;transition:all .2s ease}.ia-checkbox-label{font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-checkbox-disabled{opacity:.5;cursor:not-allowed}.ia-checkbox-disabled .ia-checkbox-input,.ia-checkbox-disabled .ia-checkbox-custom{cursor:not-allowed}.ia-checkbox-container:not(.ia-checkbox-disabled):hover .ia-checkbox-custom{opacity:.9}.ia-checkbox-input:focus-visible+.ia-checkbox-custom{outline-offset:1px}.ia-table-radio-group-container{width:100%}.ia-table-radio-group-container.vertical{flex-direction:column}.ia-table-radio-group-container.horizontal{flex-direction:row}.ia-table-radio-option{padding:0;margin:0;-webkit-user-select:none;user-select:none;font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-table-radio-input{opacity:0;height:0;width:0}.ia-table-radio-custom{height:16px;width:16px;min-width:16px;background-color:#fff;border:1px solid #c3c8d4;border-radius:50%;transition:all .2s ease}.ia-table-radio-custom:after{content:"";position:absolute;display:none;width:8px;height:8px;border-radius:50%;background:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom{border-color:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom:after{display:block}.ia-table-radio-input:focus-visible~.ia-table-radio-custom{box-shadow:0 0 0 3px #4259ee33;outline:none}.ia-table-radio-input:disabled~.ia-table-radio-custom{background-color:#f4f5f7;border-color:#dfe1e6;cursor:not-allowed}.ia-table-radio-input:disabled~.ia-table-radio-custom:after{background:#a5adba}.ia-table-radio-input:disabled~.ia-table-radio-label{color:#a5adba;cursor:not-allowed}.ia-table-radio-label.ia-table-radio-label-selected{color:#1f2b4d}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
2
|
import { jsxs as M, jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import * as S from "react";
|
|
4
4
|
import { useRef as q, useEffect as V, memo as ne, useCallback as U, useState as J, useMemo as we } from "react";
|
|
@@ -67,10 +67,10 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
67
67
|
if (!Array.isArray(e) || t < 0) return [];
|
|
68
68
|
if (t === 0) {
|
|
69
69
|
const c = /* @__PURE__ */ new Set(), r = [];
|
|
70
|
-
for (const
|
|
71
|
-
const s =
|
|
70
|
+
for (const u of e) {
|
|
71
|
+
const s = u.path;
|
|
72
72
|
if (!(s != null && s.length) || !s[0]) continue;
|
|
73
|
-
F(
|
|
73
|
+
F(u) === s[0] ? r.push(`null-${s[0]}`) : c.has(s[0]) || (c.add(s[0]), r.push(s[0]));
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
}
|
|
@@ -79,8 +79,8 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
79
79
|
for (const c of e) {
|
|
80
80
|
const r = c.path;
|
|
81
81
|
if (!(r != null && r.length) || !r[0]) continue;
|
|
82
|
-
const
|
|
83
|
-
n[
|
|
82
|
+
const u = r[0];
|
|
83
|
+
n[u] || (n[u] = [], a.push(u)), n[u].push(r);
|
|
84
84
|
const s = F(c);
|
|
85
85
|
s && l.set(r, s);
|
|
86
86
|
}
|
|
@@ -92,27 +92,27 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
92
92
|
if (s.length > t) {
|
|
93
93
|
const d = s[t];
|
|
94
94
|
if (p === s[t]) {
|
|
95
|
-
const
|
|
95
|
+
const h = Y(
|
|
96
96
|
s,
|
|
97
97
|
t,
|
|
98
98
|
p
|
|
99
99
|
);
|
|
100
|
-
i.push(`null-${
|
|
100
|
+
i.push(`null-${h}`), o = `null-${p}`;
|
|
101
101
|
} else if (d !== o) {
|
|
102
|
-
const
|
|
102
|
+
const h = Y(
|
|
103
103
|
s,
|
|
104
104
|
t,
|
|
105
105
|
d
|
|
106
106
|
);
|
|
107
|
-
i.push(
|
|
107
|
+
i.push(h), o = d;
|
|
108
108
|
}
|
|
109
109
|
} else {
|
|
110
110
|
const d = Y(
|
|
111
111
|
s,
|
|
112
112
|
t,
|
|
113
113
|
p
|
|
114
|
-
),
|
|
115
|
-
i.push(
|
|
114
|
+
), h = d ? `null-${d}` : "null", f = p ? `null-${p}` : "null";
|
|
115
|
+
i.push(h), o = f;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
@@ -122,20 +122,20 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
122
122
|
p
|
|
123
123
|
);
|
|
124
124
|
if (s.length > t) {
|
|
125
|
-
const
|
|
125
|
+
const h = s[t];
|
|
126
126
|
if (p === s[t])
|
|
127
127
|
i.push(`null-${d}`);
|
|
128
|
-
else if (
|
|
129
|
-
const
|
|
128
|
+
else if (h !== i[i.length - 1]) {
|
|
129
|
+
const f = Y(
|
|
130
130
|
s,
|
|
131
131
|
t,
|
|
132
|
-
|
|
132
|
+
h
|
|
133
133
|
);
|
|
134
|
-
i.push(
|
|
134
|
+
i.push(f);
|
|
135
135
|
}
|
|
136
136
|
} else {
|
|
137
|
-
const
|
|
138
|
-
i.push(
|
|
137
|
+
const h = d ? `null-${d}` : "null";
|
|
138
|
+
i.push(h);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -143,11 +143,11 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
143
143
|
}, xe = (e) => {
|
|
144
144
|
const t = {}, n = (l) => {
|
|
145
145
|
Array.isArray(l) && l.forEach((a) => {
|
|
146
|
-
var
|
|
146
|
+
var u;
|
|
147
147
|
if (typeof a != "object" || a === null) return;
|
|
148
148
|
const i = F(a), o = Y(
|
|
149
149
|
a.path || [],
|
|
150
|
-
(((
|
|
150
|
+
(((u = a.path) == null ? void 0 : u.length) || 1) - 1,
|
|
151
151
|
i
|
|
152
152
|
), c = a.value ? `[${a.value}]` : "", r = o ? `${o}${c}`.toLowerCase() : "";
|
|
153
153
|
r && (t[r] = a), o && !t[o.toLowerCase()] && (t[o.toLowerCase()] = a), Array.isArray(a.children) && n(a.children);
|
|
@@ -168,17 +168,17 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
168
168
|
return n(e), t;
|
|
169
169
|
}, ce = (e, t, n = 0, l = null, a = 150, i = [], o = [], c = !1, r = null) => !e || !Array.isArray(e) ? {} : { processedColumns: e.map((s) => {
|
|
170
170
|
var P;
|
|
171
|
-
const p = s.autoHeight === !0 || c, d = F(s),
|
|
172
|
-
|
|
171
|
+
const p = s.autoHeight === !0 || c, d = F(s), h = s.value ? `${d}[${s.value}]` : d, f = [...o, h], g = s.children && s.children.length > 0, y = s.children && s.children.some((K) => K.columnGroupShow !== "open") || !1, v = ((P = s.children) == null ? void 0 : P.length) && !y, N = t.isAllGroupExpanded || t[d] === !0 || i.includes(d) || v || !1, x = l ? t[l] === !0 || t.isAllGroupExpanded || i.includes(l) || v : !0, L = s.columnGroupShow === "open" && !x || !l && W(s);
|
|
172
|
+
N && x && t[d] !== !0 && !i.includes(d) && v && i.push(d);
|
|
173
173
|
const T = g ? ce(
|
|
174
174
|
s.children || [],
|
|
175
175
|
t,
|
|
176
176
|
n + 1,
|
|
177
|
-
|
|
177
|
+
h,
|
|
178
178
|
// Use pathIdentifier (includes value) for unique parent field
|
|
179
179
|
a,
|
|
180
180
|
i,
|
|
181
|
-
|
|
181
|
+
f,
|
|
182
182
|
// Pass current path to children
|
|
183
183
|
p,
|
|
184
184
|
// Pass down autoHeight to children
|
|
@@ -190,18 +190,18 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
190
190
|
) : 1, Z = l !== null, I = Z ? !1 : L, A = Object.prototype.hasOwnProperty.call(
|
|
191
191
|
s,
|
|
192
192
|
"headerName"
|
|
193
|
-
), j = !g,
|
|
193
|
+
), j = !g, $ = {
|
|
194
194
|
...s,
|
|
195
195
|
level: n,
|
|
196
196
|
parentField: l,
|
|
197
197
|
// Store the unique path identifier for this column (includes value for pivot columns)
|
|
198
|
-
pathIdentifier:
|
|
199
|
-
path:
|
|
198
|
+
pathIdentifier: h,
|
|
199
|
+
path: f,
|
|
200
200
|
// Track column's position in the hierarchy
|
|
201
201
|
notApplyGrouping: v,
|
|
202
202
|
headerName: s.headerName || s.label || (A ? "" : F(s)),
|
|
203
203
|
hasChildren: g,
|
|
204
|
-
isExpanded:
|
|
204
|
+
isExpanded: N,
|
|
205
205
|
hidden: I,
|
|
206
206
|
is_hidden: L,
|
|
207
207
|
belongsToColumnGroup: Z,
|
|
@@ -216,7 +216,7 @@ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
|
|
|
216
216
|
// Explicitly set autoHeight based on parent or own value
|
|
217
217
|
isSearchable: s.isSearchable || s.is_searchable
|
|
218
218
|
};
|
|
219
|
-
return r && j && !L && (
|
|
219
|
+
return r && j && !L && ($.is_frozen && $.pinned !== "right" || $.pinned === "left" ? r.left++ : $.is_frozen && $.pinned === "right" ? r.right++ : r.normal++), $;
|
|
220
220
|
}), initialGroupedColumns: i };
|
|
221
221
|
let se = 0;
|
|
222
222
|
const Le = (e, {
|
|
@@ -238,20 +238,20 @@ const Le = (e, {
|
|
|
238
238
|
const r = [];
|
|
239
239
|
i.forEach((p, d) => {
|
|
240
240
|
if (d !== i.length - 1) {
|
|
241
|
-
const
|
|
241
|
+
const h = $e(
|
|
242
242
|
i[i.length - 1],
|
|
243
243
|
d
|
|
244
244
|
);
|
|
245
|
-
r[d] =
|
|
245
|
+
r[d] = h;
|
|
246
246
|
} else
|
|
247
247
|
r[d] = p;
|
|
248
248
|
});
|
|
249
|
-
const
|
|
249
|
+
const u = xe(e), s = r.map(
|
|
250
250
|
(p, d) => d === i.length - 1 ? p : p.map(
|
|
251
|
-
(
|
|
251
|
+
(h, f) => {
|
|
252
252
|
var g;
|
|
253
|
-
if (
|
|
254
|
-
const
|
|
253
|
+
if (h.startsWith("null")) {
|
|
254
|
+
const y = (g = h.split("-")[1]) == null ? void 0 : g.toLowerCase(), v = u[y], N = (v == null ? void 0 : v.width) || n, x = (v == null ? void 0 : v.is_hidden) || !1;
|
|
255
255
|
return {
|
|
256
256
|
headerName: "",
|
|
257
257
|
isPlaceholder: !0,
|
|
@@ -261,10 +261,10 @@ const Le = (e, {
|
|
|
261
261
|
rowSpan: 1,
|
|
262
262
|
isLeaf: !1,
|
|
263
263
|
isStandalone: !1,
|
|
264
|
-
field: `empty_${d}_${
|
|
265
|
-
id: `empty_${d}_${
|
|
266
|
-
accessor: `empty_${d}_${
|
|
267
|
-
width:
|
|
264
|
+
field: `empty_${d}_${f}`,
|
|
265
|
+
id: `empty_${d}_${f}`,
|
|
266
|
+
accessor: `empty_${d}_${f}`,
|
|
267
|
+
width: N,
|
|
268
268
|
is_hidden: x,
|
|
269
269
|
emptyCell: !0,
|
|
270
270
|
is_frozen: t === "leftPinnedOnly" || t === "rightPinnedOnly",
|
|
@@ -273,48 +273,48 @@ const Le = (e, {
|
|
|
273
273
|
childColumn: v
|
|
274
274
|
};
|
|
275
275
|
} else
|
|
276
|
-
return
|
|
276
|
+
return u[h.toLowerCase()];
|
|
277
277
|
}
|
|
278
278
|
)
|
|
279
279
|
);
|
|
280
280
|
return s.forEach((p) => {
|
|
281
|
-
let d = 0,
|
|
282
|
-
p.forEach((
|
|
283
|
-
const g = He(
|
|
284
|
-
|
|
281
|
+
let d = 0, h = 0;
|
|
282
|
+
p.forEach((f) => {
|
|
283
|
+
const g = He(f, f.hasChildren, n);
|
|
284
|
+
f.width = g, d += f.isWithEmptyHeaderName ? 0 : g || 0, h += f.isParentWithChildEmptyHeaderName ? g : 0, f.isWithEmptyHeaderName ? (f.leftTotalWidth = d + g - h, h -= g) : f.leftTotalWidth = d;
|
|
285
285
|
});
|
|
286
286
|
}), {
|
|
287
287
|
headerRows: s,
|
|
288
288
|
leafColumns: o
|
|
289
289
|
};
|
|
290
290
|
}, de = (e, t, n, l, a, i, o = 0, c = [], r = !1) => {
|
|
291
|
-
!e || !Array.isArray(e) || e.length === 0 || e.forEach((
|
|
291
|
+
!e || !Array.isArray(e) || e.length === 0 || e.forEach((u) => {
|
|
292
292
|
var L, T;
|
|
293
|
-
const s =
|
|
294
|
-
if (!i(
|
|
293
|
+
const s = u.field || F(u), p = Ne(u, !0), d = u.value ? `[${u.value}]` : "", h = (p == null ? void 0 : p.length) > 1 ? `${p.slice(0, p.length - 1).join("/")}/${s}${d}` : `${s}${d}`;
|
|
294
|
+
if (!i(u) || l.has(h))
|
|
295
295
|
return;
|
|
296
|
-
l.add(
|
|
297
|
-
const
|
|
296
|
+
l.add(h);
|
|
297
|
+
const f = u.children && u.children.some((k) => i(k)), g = f && ((T = (L = u.children) == null ? void 0 : L.every) == null ? void 0 : T.call(
|
|
298
298
|
L,
|
|
299
299
|
(k) => !k.headerName && !k.columnGroupShow
|
|
300
|
-
)),
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
|
|
300
|
+
)), y = !f || g, v = y ? a : o;
|
|
301
|
+
y || se++;
|
|
302
|
+
const N = y ? null : se % 2 === 0 ? "even-column-group" : "odd-column-group";
|
|
303
|
+
u.colorClass = N || "";
|
|
304
304
|
const x = {
|
|
305
|
-
...
|
|
305
|
+
...u,
|
|
306
306
|
isLastInGroup: !1,
|
|
307
307
|
// Will be set later
|
|
308
308
|
depth: o,
|
|
309
|
-
isLeaf:
|
|
309
|
+
isLeaf: y,
|
|
310
310
|
field: s,
|
|
311
|
-
isStandalone:
|
|
311
|
+
isStandalone: y || r,
|
|
312
312
|
isParentWithChildEmptyHeaderName: g
|
|
313
313
|
};
|
|
314
|
-
t[v].push(x), g &&
|
|
314
|
+
t[v].push(x), g && u.children && (u.children.forEach((k) => {
|
|
315
315
|
k.isLeaf = !0, k.isStandalone = !0, k.isWithEmptyHeaderName = !0;
|
|
316
|
-
}), t[v].push(...
|
|
317
|
-
|
|
316
|
+
}), t[v].push(...u.children)), y && (n.push(x), g && n.push(...u.children || [])), f && !g && f && de(
|
|
317
|
+
u.children || [],
|
|
318
318
|
t,
|
|
319
319
|
n,
|
|
320
320
|
l,
|
|
@@ -351,7 +351,8 @@ const Le = (e, {
|
|
|
351
351
|
// New: Include the full header hierarchy
|
|
352
352
|
// leafColumns, // New: All leaf nodes (columns with data)
|
|
353
353
|
// initialGroupedColumns,
|
|
354
|
-
globalColumnCounts: a
|
|
354
|
+
globalColumnCounts: a,
|
|
355
|
+
totalColumnsCount: a.left + a.normal + a.right
|
|
355
356
|
};
|
|
356
357
|
}, lt = (e, t) => {
|
|
357
358
|
const n = (l) => l.reduce((a, i) => {
|
|
@@ -393,47 +394,47 @@ const He = (e, t, n = 150) => {
|
|
|
393
394
|
var r;
|
|
394
395
|
const o = [];
|
|
395
396
|
let c = 0;
|
|
396
|
-
for (let
|
|
397
|
-
o[
|
|
398
|
-
const s = e[
|
|
397
|
+
for (let u = 0; u < e.length; u++) {
|
|
398
|
+
o[u] = c;
|
|
399
|
+
const s = e[u];
|
|
399
400
|
if (s.__parentId !== void 0) continue;
|
|
400
|
-
const p = s.id || s[t] ||
|
|
401
|
+
const p = s.id || s[t] || u;
|
|
401
402
|
if (a && ((r = l == null ? void 0 : l.expandedRows) != null && r.includes(p))) {
|
|
402
|
-
const
|
|
403
|
-
c +=
|
|
403
|
+
const h = l.detailRowHeight || 200;
|
|
404
|
+
c += h;
|
|
404
405
|
}
|
|
405
406
|
const d = s[t] || "";
|
|
406
|
-
i[
|
|
407
|
+
i[u] !== void 0 ? c += i[u] - n : i[d] && (c += i[d] - n);
|
|
407
408
|
}
|
|
408
409
|
return o;
|
|
409
|
-
}, ct = (e, t, n, l, a, i, o, c, r,
|
|
410
|
+
}, ct = (e, t, n, l, a, i, o, c, r, u) => {
|
|
410
411
|
let s = 0;
|
|
411
412
|
const p = Object.keys(r) || [];
|
|
412
413
|
if (r && p.length > 0) {
|
|
413
414
|
let d = 0;
|
|
414
|
-
p.forEach((
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
s += r[
|
|
418
|
-
else if (
|
|
419
|
-
const g =
|
|
420
|
-
l.includes(
|
|
415
|
+
p.forEach((h) => {
|
|
416
|
+
const f = String(h);
|
|
417
|
+
if (f.includes("/") && l.includes(f))
|
|
418
|
+
s += r[f];
|
|
419
|
+
else if (f.includes("/")) {
|
|
420
|
+
const g = f.split("/"), y = g.slice(0, g.length - 1).join("/");
|
|
421
|
+
l.includes(y) ? s += r[f] : d += 1;
|
|
421
422
|
} else
|
|
422
|
-
s += r[
|
|
423
|
+
s += r[f];
|
|
423
424
|
}), s += (e.length - p.length + d) * t;
|
|
424
425
|
} else
|
|
425
426
|
s += e.length * t;
|
|
426
427
|
return n && (a != null && a.expandedRows) && a.expandedRows.length > 0 && e.forEach((d) => {
|
|
427
|
-
var
|
|
428
|
-
const
|
|
429
|
-
(
|
|
430
|
-
}), o && (s += le * t), c.length &&
|
|
428
|
+
var f;
|
|
429
|
+
const h = d.id || d[i];
|
|
430
|
+
(f = a == null ? void 0 : a.expandedRows) != null && f.includes(h) && (s += (a == null ? void 0 : a.detailRowHeight) || 200);
|
|
431
|
+
}), o && (s += le * t), c.length && u && (s += le * t), s;
|
|
431
432
|
}, dt = (e, t, n) => {
|
|
432
433
|
var c;
|
|
433
434
|
const l = ((c = t.path) == null ? void 0 : c.length) || 0, a = n.length - (e - l + 2), i = n.slice(
|
|
434
435
|
a
|
|
435
436
|
);
|
|
436
|
-
return i.reduce((r,
|
|
437
|
+
return i.reduce((r, u) => r + u, 0) + 19 * i.length;
|
|
437
438
|
}, ht = (e, t, n = 40) => {
|
|
438
439
|
const a = [
|
|
439
440
|
e[`left_pinned_${t}`],
|
|
@@ -457,13 +458,13 @@ const He = (e, t, n = 150) => {
|
|
|
457
458
|
disabled: o = !1,
|
|
458
459
|
leftIcon: c = null,
|
|
459
460
|
rightIcon: r = null,
|
|
460
|
-
buttonRef:
|
|
461
|
+
buttonRef: u = null,
|
|
461
462
|
simpleButton: s = !1,
|
|
462
463
|
...p
|
|
463
464
|
}) => /* @__PURE__ */ M(
|
|
464
465
|
"button",
|
|
465
466
|
{
|
|
466
|
-
ref:
|
|
467
|
+
ref: u,
|
|
467
468
|
onClick: (d) => {
|
|
468
469
|
o || e(d);
|
|
469
470
|
},
|
|
@@ -503,18 +504,18 @@ class ke {
|
|
|
503
504
|
bodyText: o,
|
|
504
505
|
btns: c,
|
|
505
506
|
showPaginationAbove: r,
|
|
506
|
-
pagination:
|
|
507
|
+
pagination: u
|
|
507
508
|
} = t;
|
|
508
509
|
if (!this.tooltipElement) return;
|
|
509
510
|
this.tooltipElement.className = `tooltip tooltip--${l || "primary"}`;
|
|
510
511
|
let s = "";
|
|
511
|
-
|
|
512
|
+
u && r && (s += this.getPaginationHTML(l)), a || (i && (s += `<div class="tooltip-icon">${i}</div>`), n && (s += `<div class="tooltip-title">${n}</div>`)), (o || c || a || u) && (s += `<button class="tooltip-close d-flex align-items-center justify-content-center" aria-label="Close tooltip">
|
|
512
513
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
|
|
513
514
|
<path d="M8 7.293l3.646-3.647a.5.5 0 01.708.708L8.707 8l3.647 3.646a.5.5 0 01-.708.708L8 8.707l-3.646 3.647a.5.5 0 01-.708-.708L7.293 8 3.646 4.354a.5.5 0 01.708-.708L8 7.293z"/>
|
|
514
515
|
</svg>
|
|
515
|
-
</button>`), a && (s += `<div class="tooltip-illustration"><img src="${a}" alt="Illustration" /></div>`), a && (s += '<div class="tooltip-header d-flex align-items-center">', i && (s += `<div class="tooltip-icon">${i}</div>`), n && (s += `<div class="tooltip-title">${n}</div>`), s += "</div>"),
|
|
516
|
-
let
|
|
517
|
-
d.type !== "default" && (l === "primary" || l === "tertiary" ?
|
|
516
|
+
</button>`), a && (s += `<div class="tooltip-illustration"><img src="${a}" alt="Illustration" /></div>`), a && (s += '<div class="tooltip-header d-flex align-items-center">', i && (s += `<div class="tooltip-icon">${i}</div>`), n && (s += `<div class="tooltip-title">${n}</div>`), s += "</div>"), u && !r && (s += this.getPaginationHTML(l)), c && (s += '<div class="tooltip-btns d-flex">', c.forEach((d) => {
|
|
517
|
+
let h = d.type;
|
|
518
|
+
d.type !== "default" && (l === "primary" || l === "tertiary" ? h = "secondary" : l === "secondary" && (h = "primary")), s += `<button class="${h === "default" ? "btn-no-bg" : `tooltip-btn btn--${h}`}">${d.label}</button>`;
|
|
518
519
|
}), s += "</div>"), s += "</div></div>", s += '<div class="tooltip-arrow"></div>', this.tooltipElement.innerHTML = s;
|
|
519
520
|
const p = this.tooltipElement.querySelector(
|
|
520
521
|
".tooltip-close"
|
|
@@ -532,47 +533,47 @@ class ke {
|
|
|
532
533
|
calculatePosition(t) {
|
|
533
534
|
const { targetRef: n, orientation: l = "top", varient: a } = t;
|
|
534
535
|
if (!(n != null && n.current) || !this.tooltipElement) return;
|
|
535
|
-
const i = n.current.getBoundingClientRect(), o = this.tooltipElement.getBoundingClientRect(), c = 8, r = 16,
|
|
536
|
+
const i = n.current.getBoundingClientRect(), o = this.tooltipElement.getBoundingClientRect(), c = 8, r = 16, u = {
|
|
536
537
|
top: i.top - r,
|
|
537
538
|
bottom: window.innerHeight - i.bottom - r,
|
|
538
539
|
left: i.left - r,
|
|
539
540
|
right: window.innerWidth - i.right - r
|
|
540
|
-
}, s = l === "top" ?
|
|
541
|
-
(
|
|
541
|
+
}, s = l === "top" ? u.top > o.height : l === "bottom" ? u.bottom > o.height : l === "left" ? u.left > o.width : u.right > o.width, p = Object.entries(u).sort(
|
|
542
|
+
(y, v) => v[1] - y[1]
|
|
542
543
|
)[0][0], d = s ? l : p;
|
|
543
|
-
let
|
|
544
|
+
let h = 0, f = 0;
|
|
544
545
|
switch (d) {
|
|
545
546
|
case "top":
|
|
546
|
-
|
|
547
|
+
h = i.top - o.height - c, f = i.left + i.width / 2 - o.width / 2;
|
|
547
548
|
break;
|
|
548
549
|
case "bottom":
|
|
549
|
-
|
|
550
|
+
h = i.bottom + c, f = i.left + i.width / 2 - o.width / 2;
|
|
550
551
|
break;
|
|
551
552
|
case "left":
|
|
552
|
-
|
|
553
|
+
h = i.top + i.height / 2 - o.height / 2, f = i.left - o.width - c;
|
|
553
554
|
break;
|
|
554
555
|
case "right":
|
|
555
|
-
|
|
556
|
+
h = i.top + i.height / 2 - o.height / 2, f = i.right + c;
|
|
556
557
|
break;
|
|
557
558
|
default:
|
|
558
|
-
|
|
559
|
+
h = i.top - o.height - c, f = i.left + i.width / 2 - o.width / 2;
|
|
559
560
|
}
|
|
560
|
-
|
|
561
|
+
f = Math.max(
|
|
561
562
|
r,
|
|
562
|
-
Math.min(
|
|
563
|
-
),
|
|
563
|
+
Math.min(f, window.innerWidth - o.width - r)
|
|
564
|
+
), h = Math.max(
|
|
564
565
|
r,
|
|
565
|
-
Math.min(
|
|
566
|
-
), this.tooltipElement.style.top = `${
|
|
566
|
+
Math.min(h, window.innerHeight - o.height - r)
|
|
567
|
+
), this.tooltipElement.style.top = `${h + window.scrollY}px`, this.tooltipElement.style.left = `${f + window.scrollX}px`, this.tooltipElement.className = `tooltip tooltip--${a || "primary"} tooltip--${d}`;
|
|
567
568
|
const g = this.tooltipElement.querySelector(
|
|
568
569
|
".tooltip-arrow"
|
|
569
570
|
);
|
|
570
571
|
if (g)
|
|
571
572
|
if (d === "top" || d === "bottom") {
|
|
572
|
-
let v = (i.left + i.width / 2 -
|
|
573
|
+
let v = (i.left + i.width / 2 - f) / o.width * 100;
|
|
573
574
|
v = Math.max(10, Math.min(90, v)), g.style.left = `${v}%`, g.style.top = "";
|
|
574
575
|
} else {
|
|
575
|
-
let v = (i.top + i.height / 2 -
|
|
576
|
+
let v = (i.top + i.height / 2 - h) / o.height * 100;
|
|
576
577
|
v = Math.max(10, Math.min(90, v)), g.style.top = `${v}%`, g.style.left = "";
|
|
577
578
|
}
|
|
578
579
|
}
|
|
@@ -590,13 +591,13 @@ const Q = new ke(), ut = ({
|
|
|
590
591
|
icon: o = null,
|
|
591
592
|
bodyText: c = "",
|
|
592
593
|
btns: r = null,
|
|
593
|
-
showPaginationAbove:
|
|
594
|
+
showPaginationAbove: u = null,
|
|
594
595
|
pagination: s = null,
|
|
595
596
|
justifyBodyContent: p = null,
|
|
596
597
|
forceShowTooltip: d = !1,
|
|
597
|
-
className:
|
|
598
|
+
className: h = "ia-table-width-inherit"
|
|
598
599
|
}) => {
|
|
599
|
-
const
|
|
600
|
+
const f = q({
|
|
600
601
|
title: e,
|
|
601
602
|
varient: t,
|
|
602
603
|
orientation: n,
|
|
@@ -605,11 +606,11 @@ const Q = new ke(), ut = ({
|
|
|
605
606
|
icon: o,
|
|
606
607
|
bodyText: c,
|
|
607
608
|
btns: r,
|
|
608
|
-
showPaginationAbove:
|
|
609
|
+
showPaginationAbove: u,
|
|
609
610
|
pagination: s,
|
|
610
611
|
justifyBodyContent: p
|
|
611
612
|
});
|
|
612
|
-
|
|
613
|
+
f.current = {
|
|
613
614
|
title: e,
|
|
614
615
|
varient: t,
|
|
615
616
|
orientation: n,
|
|
@@ -618,7 +619,7 @@ const Q = new ke(), ut = ({
|
|
|
618
619
|
icon: o,
|
|
619
620
|
bodyText: c,
|
|
620
621
|
btns: r,
|
|
621
|
-
showPaginationAbove:
|
|
622
|
+
showPaginationAbove: u,
|
|
622
623
|
pagination: s,
|
|
623
624
|
justifyBodyContent: p
|
|
624
625
|
}, V(() => () => {
|
|
@@ -628,32 +629,32 @@ const Q = new ke(), ut = ({
|
|
|
628
629
|
if (!(a != null && a.current) || !e)
|
|
629
630
|
return;
|
|
630
631
|
if (d && e) {
|
|
631
|
-
Q.show(
|
|
632
|
+
Q.show(f.current);
|
|
632
633
|
return;
|
|
633
634
|
}
|
|
634
|
-
const v = a.current,
|
|
635
|
-
v.querySelector(".text-overflow-ellipsis") || v.querySelector(".ia-table-header-string-title") || v.querySelector("span") || v, x =
|
|
635
|
+
const v = a.current, N = v.querySelector("input") || // element.querySelector("div[data-tooltip-title]") ||
|
|
636
|
+
v.querySelector(".text-overflow-ellipsis") || v.querySelector(".ia-table-header-string-title") || v.querySelector("span") || v, x = N.classList.contains("ia-table-line-clamp-2") || N.classList.contains("ia-table-line-clamp-3") || window.getComputedStyle(N).webkitLineClamp !== "none";
|
|
636
637
|
let L = !1;
|
|
637
638
|
if (x) {
|
|
638
|
-
const T =
|
|
639
|
+
const T = N.scrollHeight, k = N.clientHeight;
|
|
639
640
|
L = T > k;
|
|
640
641
|
} else {
|
|
641
|
-
const T =
|
|
642
|
+
const T = N.scrollWidth, k = N.clientWidth;
|
|
642
643
|
L = T > k;
|
|
643
644
|
}
|
|
644
|
-
L && Q.show(
|
|
645
|
-
},
|
|
645
|
+
L && Q.show(f.current);
|
|
646
|
+
}, y = () => {
|
|
646
647
|
Q.hide();
|
|
647
648
|
};
|
|
648
649
|
return /* @__PURE__ */ m(
|
|
649
650
|
"div",
|
|
650
651
|
{
|
|
651
652
|
ref: a,
|
|
652
|
-
className: `tooltip-container ${
|
|
653
|
+
className: `tooltip-container ${h}`,
|
|
653
654
|
onMouseEnter: g,
|
|
654
|
-
onMouseLeave:
|
|
655
|
+
onMouseLeave: y,
|
|
655
656
|
onFocus: g,
|
|
656
|
-
onBlur:
|
|
657
|
+
onBlur: y,
|
|
657
658
|
children: l
|
|
658
659
|
}
|
|
659
660
|
);
|
|
@@ -679,17 +680,17 @@ const Q = new ke(), ut = ({
|
|
|
679
680
|
height: o,
|
|
680
681
|
className: c = "",
|
|
681
682
|
onPrimaryButtonClick: r,
|
|
682
|
-
primaryButtonLabel:
|
|
683
|
+
primaryButtonLabel: u = "Confirm",
|
|
683
684
|
onSecondaryButtonClick: s,
|
|
684
685
|
secondaryButtonLabel: p = "Cancel",
|
|
685
686
|
closeOnOutsideClick: d = !0,
|
|
686
|
-
primaryButtonVariant:
|
|
687
|
-
primaryButtonProps:
|
|
687
|
+
primaryButtonVariant: h = "primary",
|
|
688
|
+
primaryButtonProps: f = {},
|
|
688
689
|
showCloseButton: g = !0,
|
|
689
|
-
showPrimaryButton:
|
|
690
|
+
showPrimaryButton: y = !0,
|
|
690
691
|
showSecondaryButton: v = !0
|
|
691
692
|
}) => {
|
|
692
|
-
const
|
|
693
|
+
const N = q(null);
|
|
693
694
|
V(() => {
|
|
694
695
|
const I = (A) => {
|
|
695
696
|
A.key === "Escape" && e && t();
|
|
@@ -700,14 +701,14 @@ const Q = new ke(), ut = ({
|
|
|
700
701
|
}, [e, t]);
|
|
701
702
|
const x = U(
|
|
702
703
|
(I) => {
|
|
703
|
-
d &&
|
|
704
|
+
d && N.current && !N.current.contains(I.target) && t();
|
|
704
705
|
},
|
|
705
706
|
[d, t]
|
|
706
707
|
);
|
|
707
708
|
if (!e) return null;
|
|
708
709
|
const L = `ia-table-modal-${a}`, T = {};
|
|
709
710
|
i && (T.width = typeof i == "number" ? `${i}px` : i), o && (T.height = typeof o == "number" ? `${o}px` : o);
|
|
710
|
-
const k =
|
|
711
|
+
const k = y && u || v && p, Z = /* @__PURE__ */ m(
|
|
711
712
|
"div",
|
|
712
713
|
{
|
|
713
714
|
className: "ia-table-modal-overlay d-flex align-items-center justify-content-center",
|
|
@@ -717,7 +718,7 @@ const Q = new ke(), ut = ({
|
|
|
717
718
|
{
|
|
718
719
|
className: `ia-table-modal d-flex flex-column ${L} ${c}`,
|
|
719
720
|
style: T,
|
|
720
|
-
ref:
|
|
721
|
+
ref: N,
|
|
721
722
|
children: [
|
|
722
723
|
/* @__PURE__ */ M("div", { className: "ia-table-modal-header d-flex justify-content-between align-items-center", children: [
|
|
723
724
|
/* @__PURE__ */ m("div", { className: "ia-table-modal-header-content", children: n && /* @__PURE__ */ m("h2", { className: "ia-table-modal-title", children: n }) }),
|
|
@@ -744,13 +745,13 @@ const Q = new ke(), ut = ({
|
|
|
744
745
|
children: p
|
|
745
746
|
}
|
|
746
747
|
),
|
|
747
|
-
|
|
748
|
+
y && u && r && /* @__PURE__ */ m(
|
|
748
749
|
ae,
|
|
749
750
|
{
|
|
750
751
|
onClick: r,
|
|
751
|
-
variant:
|
|
752
|
-
...
|
|
753
|
-
children:
|
|
752
|
+
variant: h,
|
|
753
|
+
...f,
|
|
754
|
+
children: u
|
|
754
755
|
}
|
|
755
756
|
)
|
|
756
757
|
] })
|
|
@@ -770,61 +771,61 @@ const Q = new ke(), ut = ({
|
|
|
770
771
|
error: o = "",
|
|
771
772
|
leftIcon: c = null,
|
|
772
773
|
rightIcon: r = null,
|
|
773
|
-
className:
|
|
774
|
+
className: u = "",
|
|
774
775
|
width: s = "100%",
|
|
775
776
|
onClick: p = (x) => x.stopPropagation(),
|
|
776
777
|
isCellRenderer: d = !1,
|
|
777
|
-
inputType:
|
|
778
|
-
iconButton:
|
|
778
|
+
inputType: h = "text",
|
|
779
|
+
iconButton: f = null,
|
|
779
780
|
iconButtonClassName: g = "",
|
|
780
|
-
height:
|
|
781
|
+
height: y,
|
|
781
782
|
autoFocus: v = !1,
|
|
782
|
-
...
|
|
783
|
+
...N
|
|
783
784
|
}) => {
|
|
784
785
|
const x = q(null), L = q(null);
|
|
785
786
|
V(() => {
|
|
786
787
|
v && x.current && x.current.focus();
|
|
787
788
|
}, [v]);
|
|
788
789
|
const T = U(() => {
|
|
789
|
-
var
|
|
790
|
-
(
|
|
790
|
+
var $;
|
|
791
|
+
($ = x.current) == null || $.focus();
|
|
791
792
|
}, []), k = U(
|
|
792
|
-
(
|
|
793
|
-
if (
|
|
794
|
-
return
|
|
793
|
+
($) => {
|
|
794
|
+
if (h === "int" && ($.key === "." || $.keyCode === 190 || $.keyCode === 110))
|
|
795
|
+
return $.preventDefault(), !1;
|
|
795
796
|
},
|
|
796
|
-
[
|
|
797
|
+
[h]
|
|
797
798
|
), Z = U(
|
|
798
|
-
(
|
|
799
|
-
const P =
|
|
800
|
-
switch (
|
|
799
|
+
($) => {
|
|
800
|
+
const P = $.target.value;
|
|
801
|
+
switch (h) {
|
|
801
802
|
case "int":
|
|
802
|
-
(P === "" || /^-?\d*$/.test(P)) && l(
|
|
803
|
+
(P === "" || /^-?\d*$/.test(P)) && l($);
|
|
803
804
|
break;
|
|
804
805
|
case "float":
|
|
805
806
|
case "decimal":
|
|
806
|
-
(P === "" || /^-?\d*\.?\d*$/.test(P)) && l(
|
|
807
|
+
(P === "" || /^-?\d*\.?\d*$/.test(P)) && l($);
|
|
807
808
|
break;
|
|
808
809
|
case "percentage":
|
|
809
|
-
(P === "" || /^\d*\.?\d*%?$/.test(P)) && l(
|
|
810
|
+
(P === "" || /^\d*\.?\d*%?$/.test(P)) && l($);
|
|
810
811
|
break;
|
|
811
812
|
case "dollar":
|
|
812
|
-
(P === "" || /^\$?\d*\.?\d*$/.test(P)) && l(
|
|
813
|
+
(P === "" || /^\$?\d*\.?\d*$/.test(P)) && l($);
|
|
813
814
|
break;
|
|
814
815
|
case "str":
|
|
815
816
|
default:
|
|
816
|
-
l(
|
|
817
|
+
l($);
|
|
817
818
|
break;
|
|
818
819
|
}
|
|
819
820
|
},
|
|
820
|
-
[l,
|
|
821
|
-
), I =
|
|
821
|
+
[l, h]
|
|
822
|
+
), I = h === "str" || h === "text", A = h === "str" || h === "text" ? "left" : "right", j = `ia-table-input-container d-flex align-items-center ${i ? d ? "ia-table-cell-render-input-disabled" : "ia-table-input-disabled" : ""} ${o ? "ia-table-input-error" : ""} ${c ? "has-left-icon" : ""} ${r ? "has-right-icon" : ""} ${f && !I ? "has-left-icon-button" : ""} ${f && I ? "has-right-icon-button" : ""} ${d ? "ia-table-cellrender-input" : ""} ${u}
|
|
822
823
|
`;
|
|
823
824
|
return /* @__PURE__ */ M(
|
|
824
825
|
"div",
|
|
825
826
|
{
|
|
826
827
|
className: `ia-table-inputbox-container d-flex flex-column ${i && d ? "ia-table-cell-render-input-disabled" : ""} `,
|
|
827
|
-
style: { width: s, ...
|
|
828
|
+
style: { width: s, ...y ? { height: y } : {} },
|
|
828
829
|
children: [
|
|
829
830
|
t && /* @__PURE__ */ m("label", { className: "ia-table-input-label", children: t }),
|
|
830
831
|
/* @__PURE__ */ M(
|
|
@@ -840,12 +841,12 @@ const Q = new ke(), ut = ({
|
|
|
840
841
|
},
|
|
841
842
|
children: [
|
|
842
843
|
c && /* @__PURE__ */ m("div", { className: "left-input-icon d-flex align-items-center justify-content-center", children: c }),
|
|
843
|
-
|
|
844
|
+
f && !I && /* @__PURE__ */ m(
|
|
844
845
|
"div",
|
|
845
846
|
{
|
|
846
847
|
ref: L,
|
|
847
848
|
className: `left-input-icon-button d-flex align-items-center justify-content-center ${g}`,
|
|
848
|
-
children:
|
|
849
|
+
children: f
|
|
849
850
|
}
|
|
850
851
|
),
|
|
851
852
|
/* @__PURE__ */ m("div", { className: "ia-table-input-wrapper", children: /* @__PURE__ */ m(
|
|
@@ -861,15 +862,15 @@ const Q = new ke(), ut = ({
|
|
|
861
862
|
disabled: i,
|
|
862
863
|
className: "ia-table-input",
|
|
863
864
|
style: { textAlign: A },
|
|
864
|
-
...
|
|
865
|
+
...N
|
|
865
866
|
}
|
|
866
867
|
) }),
|
|
867
868
|
r && /* @__PURE__ */ m("div", { className: "right-input-icon d-flex align-items-center justify-content-center", children: r }),
|
|
868
|
-
|
|
869
|
+
f && I && /* @__PURE__ */ m(
|
|
869
870
|
"div",
|
|
870
871
|
{
|
|
871
872
|
className: `right-input-icon-button d-flex align-items-center justify-content-center ${g}`,
|
|
872
|
-
children:
|
|
873
|
+
children: f
|
|
873
874
|
}
|
|
874
875
|
)
|
|
875
876
|
]
|
|
@@ -925,21 +926,21 @@ const Q = new ke(), ut = ({
|
|
|
925
926
|
setIsOpen: o = void 0,
|
|
926
927
|
initialOptions: c = [],
|
|
927
928
|
withPortal: r = !1,
|
|
928
|
-
className:
|
|
929
|
+
className: u = "",
|
|
929
930
|
isMulti: s = !1,
|
|
930
931
|
currentOptions: p,
|
|
931
932
|
setCurrentOptions: d,
|
|
932
|
-
onBlur:
|
|
933
|
-
isCellRenderer:
|
|
933
|
+
onBlur: h,
|
|
934
|
+
isCellRenderer: f = !1,
|
|
934
935
|
tableApi: g = null,
|
|
935
|
-
lazyLoadCellRenderer:
|
|
936
|
+
lazyLoadCellRenderer: y = !1,
|
|
936
937
|
isEnableResetButton: v = !0
|
|
937
938
|
}) => {
|
|
938
|
-
const
|
|
939
|
-
Re(_,
|
|
939
|
+
const N = q(null), x = q(null), L = q(null), [T, k] = J(!1), [Z, I] = J(""), [A, j] = J(null), [$, P] = J(-1), [K, X] = J(c), z = p || K || c, _ = i !== void 0 ? i : T, D = o || k;
|
|
940
|
+
Re(_, f, g);
|
|
940
941
|
const O = U(() => {
|
|
941
|
-
if (
|
|
942
|
-
const w =
|
|
942
|
+
if (N.current) {
|
|
943
|
+
const w = N.current.getBoundingClientRect(), C = 250, E = window.innerHeight - w.bottom, H = w.top, b = E < C && H > E;
|
|
943
944
|
return {
|
|
944
945
|
top: b ? w.top + window.scrollY - C : w.bottom + window.scrollY,
|
|
945
946
|
left: w.left + window.scrollX,
|
|
@@ -950,25 +951,25 @@ const Q = new ke(), ut = ({
|
|
|
950
951
|
return null;
|
|
951
952
|
}, []);
|
|
952
953
|
V(() => {
|
|
953
|
-
if (
|
|
954
|
+
if (y) {
|
|
954
955
|
if (r) {
|
|
955
956
|
const w = O();
|
|
956
957
|
w && j(w);
|
|
957
958
|
}
|
|
958
|
-
D(
|
|
959
|
+
D(y);
|
|
959
960
|
}
|
|
960
|
-
}, [
|
|
961
|
+
}, [y, r, O]), V(() => {
|
|
961
962
|
if (_ && r) {
|
|
962
963
|
const w = O();
|
|
963
964
|
w && j(w);
|
|
964
965
|
}
|
|
965
966
|
}, [_, r, O]), V(() => {
|
|
966
|
-
const w = (
|
|
967
|
-
|
|
967
|
+
const w = (E) => {
|
|
968
|
+
N.current && !N.current.contains(E.target) && x.current && !x.current.contains(E.target) && (D(!1), h && h(), f && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1));
|
|
968
969
|
}, C = () => {
|
|
969
970
|
if (_ && r) {
|
|
970
|
-
const
|
|
971
|
-
|
|
971
|
+
const E = O();
|
|
972
|
+
E && j(E);
|
|
972
973
|
}
|
|
973
974
|
};
|
|
974
975
|
return _ && (document.addEventListener("mousedown", w), r && (window.addEventListener("scroll", C, !0), window.addEventListener("resize", C))), () => {
|
|
@@ -978,8 +979,8 @@ const Q = new ke(), ut = ({
|
|
|
978
979
|
_,
|
|
979
980
|
D,
|
|
980
981
|
r,
|
|
982
|
+
f,
|
|
981
983
|
h,
|
|
982
|
-
u,
|
|
983
984
|
g,
|
|
984
985
|
O
|
|
985
986
|
]), V(() => {
|
|
@@ -991,37 +992,45 @@ const Q = new ke(), ut = ({
|
|
|
991
992
|
(w) => {
|
|
992
993
|
if (w.stopPropagation(), !a) {
|
|
993
994
|
if (!_ && r) {
|
|
994
|
-
const
|
|
995
|
-
|
|
995
|
+
const E = O();
|
|
996
|
+
E && j(E);
|
|
996
997
|
}
|
|
997
|
-
|
|
998
|
+
const C = w.currentTarget.dataset.keyboardshortcut;
|
|
999
|
+
D(C ? !1 : !_), (_ && h || C && h) && h();
|
|
998
1000
|
}
|
|
999
1001
|
},
|
|
1000
|
-
[
|
|
1002
|
+
[
|
|
1003
|
+
a,
|
|
1004
|
+
_,
|
|
1005
|
+
D,
|
|
1006
|
+
r,
|
|
1007
|
+
O,
|
|
1008
|
+
h
|
|
1009
|
+
]
|
|
1001
1010
|
), ie = U(
|
|
1002
1011
|
(w) => {
|
|
1003
1012
|
if (s)
|
|
1004
|
-
if (Array.isArray(n) && n.some((
|
|
1013
|
+
if (Array.isArray(n) && n.some((E) => E.value === w.value))
|
|
1005
1014
|
l(
|
|
1006
1015
|
n.filter(
|
|
1007
|
-
(
|
|
1016
|
+
(E) => E.value !== w.value
|
|
1008
1017
|
)
|
|
1009
1018
|
);
|
|
1010
1019
|
else {
|
|
1011
|
-
const
|
|
1012
|
-
l([
|
|
1020
|
+
const E = Array.isArray(n) ? n : [];
|
|
1021
|
+
l([...E, w]);
|
|
1013
1022
|
}
|
|
1014
1023
|
else
|
|
1015
|
-
l(w), D(!1),
|
|
1024
|
+
l(w), D(!1), f && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
|
|
1016
1025
|
},
|
|
1017
|
-
[s, n, l, D,
|
|
1026
|
+
[s, n, l, D, f]
|
|
1018
1027
|
), ge = U(
|
|
1019
1028
|
(w) => {
|
|
1020
1029
|
const C = w.target.value.toLowerCase();
|
|
1021
1030
|
I(C), P(-1);
|
|
1022
|
-
const
|
|
1031
|
+
const E = p || c;
|
|
1023
1032
|
if (C) {
|
|
1024
|
-
const H =
|
|
1033
|
+
const H = E.filter((b) => b.label && typeof b.label == "string" ? b.label.toLowerCase().includes(C) : b.value && typeof b.value == "string" ? b.value.toLowerCase().includes(C) : b.label && typeof b.label == "number" ? b.label == Number(C) : b.value && typeof b.value == "number" ? b.value == Number(C) : !1);
|
|
1025
1034
|
d ? d(H) : X(H);
|
|
1026
1035
|
} else
|
|
1027
1036
|
d ? d(c) : X(c);
|
|
@@ -1031,11 +1040,11 @@ const Q = new ke(), ut = ({
|
|
|
1031
1040
|
V(() => {
|
|
1032
1041
|
if (!_) return;
|
|
1033
1042
|
const w = (C) => {
|
|
1034
|
-
const
|
|
1043
|
+
const E = z.filter((H) => !H.isDisabled);
|
|
1035
1044
|
switch (C.key) {
|
|
1036
1045
|
case "ArrowDown":
|
|
1037
1046
|
C.preventDefault(), C.stopPropagation(), P((H) => {
|
|
1038
|
-
const b = H <
|
|
1047
|
+
const b = H < E.length - 1 ? H + 1 : 0;
|
|
1039
1048
|
return setTimeout(() => {
|
|
1040
1049
|
var B;
|
|
1041
1050
|
const R = (B = x.current) == null ? void 0 : B.querySelector(
|
|
@@ -1047,7 +1056,7 @@ const Q = new ke(), ut = ({
|
|
|
1047
1056
|
break;
|
|
1048
1057
|
case "ArrowUp":
|
|
1049
1058
|
C.preventDefault(), C.stopPropagation(), P((H) => {
|
|
1050
|
-
const b = H > 0 ? H - 1 :
|
|
1059
|
+
const b = H > 0 ? H - 1 : E.length - 1;
|
|
1051
1060
|
return setTimeout(() => {
|
|
1052
1061
|
var B;
|
|
1053
1062
|
const R = (B = x.current) == null ? void 0 : B.querySelector(
|
|
@@ -1058,13 +1067,13 @@ const Q = new ke(), ut = ({
|
|
|
1058
1067
|
});
|
|
1059
1068
|
break;
|
|
1060
1069
|
case "Enter":
|
|
1061
|
-
if (C.preventDefault(), C.stopPropagation(),
|
|
1062
|
-
const H = $
|
|
1070
|
+
if (C.preventDefault(), C.stopPropagation(), $ >= 0 && $ < E.length) {
|
|
1071
|
+
const H = E[$];
|
|
1063
1072
|
H && !H.isDisabled && ie(H);
|
|
1064
1073
|
}
|
|
1065
1074
|
break;
|
|
1066
1075
|
case "Escape":
|
|
1067
|
-
C.preventDefault(), C.stopPropagation(), D(!1),
|
|
1076
|
+
C.preventDefault(), C.stopPropagation(), D(!1), f && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
|
|
1068
1077
|
break;
|
|
1069
1078
|
}
|
|
1070
1079
|
};
|
|
@@ -1074,19 +1083,19 @@ const Q = new ke(), ut = ({
|
|
|
1074
1083
|
}, [
|
|
1075
1084
|
_,
|
|
1076
1085
|
z,
|
|
1077
|
-
|
|
1086
|
+
$,
|
|
1078
1087
|
ie,
|
|
1079
1088
|
D,
|
|
1080
|
-
|
|
1089
|
+
f,
|
|
1081
1090
|
g
|
|
1082
1091
|
]);
|
|
1083
1092
|
const me = we(() => {
|
|
1084
|
-
if (!_ || !
|
|
1085
|
-
const w =
|
|
1086
|
-
return
|
|
1087
|
-
}, [_]), ve = `ia-table-select-container d-flex justify-content-between align-items-center ${a ? "ia-table-select-disabled" : ""} ${_ ? "ia-table-select-open" : ""} ${
|
|
1093
|
+
if (!_ || !N.current) return !1;
|
|
1094
|
+
const w = N.current.getBoundingClientRect(), C = 250, E = window.innerHeight - w.bottom, H = w.top;
|
|
1095
|
+
return E < C && H > E;
|
|
1096
|
+
}, [_]), ve = `ia-table-select-container d-flex justify-content-between align-items-center ${a ? "ia-table-select-disabled" : ""} ${_ ? "ia-table-select-open" : ""} ${f ? "ia-table-selectrenderer" : ""} ${u}`, be = () => {
|
|
1088
1097
|
var H;
|
|
1089
|
-
const w = z.filter((b) => !b.isDisabled), C = r ? A == null ? void 0 : A.openAbove : me,
|
|
1098
|
+
const w = z.filter((b) => !b.isDisabled), C = r ? A == null ? void 0 : A.openAbove : me, E = /* @__PURE__ */ M(
|
|
1090
1099
|
"div",
|
|
1091
1100
|
{
|
|
1092
1101
|
ref: x,
|
|
@@ -1096,7 +1105,7 @@ const Q = new ke(), ut = ({
|
|
|
1096
1105
|
...r && A ? {
|
|
1097
1106
|
position: "absolute",
|
|
1098
1107
|
top: A.openAbove ? "auto" : `${A.top}px`,
|
|
1099
|
-
bottom: A.openAbove ? `${window.innerHeight - (((H =
|
|
1108
|
+
bottom: A.openAbove ? `${window.innerHeight - (((H = N.current) == null ? void 0 : H.getBoundingClientRect().top) || 0)}px` : "auto",
|
|
1100
1109
|
left: `${A.left}px`,
|
|
1101
1110
|
width: `${A.width}px`
|
|
1102
1111
|
} : { width: t }
|
|
@@ -1115,7 +1124,7 @@ const Q = new ke(), ut = ({
|
|
|
1115
1124
|
/* @__PURE__ */ m("div", { className: "ia-table-select-options d-flex flex-column gap-2", children: z && z.length > 0 ? z.map((b) => {
|
|
1116
1125
|
const R = w.findIndex(
|
|
1117
1126
|
(G) => G.value === b.value
|
|
1118
|
-
), B = R ===
|
|
1127
|
+
), B = R === $;
|
|
1119
1128
|
return /* @__PURE__ */ M(
|
|
1120
1129
|
"div",
|
|
1121
1130
|
{
|
|
@@ -1145,19 +1154,19 @@ const Q = new ke(), ut = ({
|
|
|
1145
1154
|
]
|
|
1146
1155
|
}
|
|
1147
1156
|
);
|
|
1148
|
-
return r ? re(
|
|
1157
|
+
return r ? re(E, document.body) : E;
|
|
1149
1158
|
};
|
|
1150
1159
|
return /* @__PURE__ */ M(
|
|
1151
1160
|
"div",
|
|
1152
1161
|
{
|
|
1153
|
-
className: `ia-table-selectbox-container ${
|
|
1162
|
+
className: `ia-table-selectbox-container ${f && a ? "ia-table-cell-render-select-disabled" : ""}`,
|
|
1154
1163
|
style: { width: t },
|
|
1155
1164
|
children: [
|
|
1156
1165
|
e && /* @__PURE__ */ m("label", { className: "ia-table-select-label", children: e }),
|
|
1157
1166
|
/* @__PURE__ */ M(
|
|
1158
1167
|
"div",
|
|
1159
1168
|
{
|
|
1160
|
-
ref:
|
|
1169
|
+
ref: N,
|
|
1161
1170
|
className: ve,
|
|
1162
1171
|
onClick: pe,
|
|
1163
1172
|
children: [
|