@snmt-react-ui/user-select 2.9.14 → 2.9.15
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.css +1 -1
- package/dist/user-select.js +71 -71
- package/package.json +5 -5
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner{border-color:var(--grey-light-4);border-radius:5px}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-primary)!important;border-color:var(--blue-primary)!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1.5px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border-color:var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border-color:var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border-color:var(--blue-hover)!important}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-2)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-0-5: #fcfcfd;--grey-light-1: #f7f7f8;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-0-5: #f5f8ff;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--blue-dark-3: #070739;--purple-light: #f9f0ff;--purple-dark: #531dab;--cyan-light: #e6fffb;--cyan-dark: #08979c;--magenta-light: #fff0f6;--magenta-dark: #c41d7f;--gold-light: #fefed2;--gold-dark: #faad14;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner{border-color:var(--grey-light-4);border-radius:5px}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-primary)!important;border-color:var(--blue-primary)!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1.5px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border-color:var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border-color:var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border-color:var(--blue-hover)!important}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-2)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-0-5: #fcfcfd;--grey-light-1: #f7f7f8;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-0-5: #f5f8ff;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f9f0ff;--purple-dark: #531dab;--cyan-light: #e6fffb;--cyan-dark: #08979c;--magenta-light: #fff0f6;--magenta-dark: #c41d7f;--gold-light: #fefed2;--gold-dark: #faad14;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--grey-dark-5);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
package/dist/user-select.js
CHANGED
|
@@ -3,8 +3,8 @@ var k2 = (i, e, t) => e in i ? L2(i, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var K1 = (i, e, t) => k2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { forwardRef as d1, useState as O, useRef as J, useCallback as P, useEffect as
|
|
7
|
-
import { Select as N2, Tag as R2, Flex as x2, Checkbox as _2, Avatar as M2, Typography as
|
|
6
|
+
import { forwardRef as d1, useState as O, useRef as J, useCallback as P, useEffect as D, useMemo as v2, useImperativeHandle as k1, useContext as r1, createContext as C1 } from "react";
|
|
7
|
+
import { Select as N2, Tag as R2, Flex as x2, Checkbox as _2, Avatar as M2, Typography as D1, Popover as b2 } from "antd";
|
|
8
8
|
import { SNMTUiContext as y2 } from "@snmt-react-ui/core";
|
|
9
9
|
var H2 = Object.defineProperty, E2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, A2 = (i, e, t) => E2(i, e + "", t), V2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function I2() {
|
|
@@ -54,7 +54,7 @@ const l2 = (i, e) => () => {
|
|
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
|
|
55
55
|
}
|
|
56
56
|
}) : O2(i, e, t);
|
|
57
|
-
}, s1 = (i) => typeof i == "string", S2 = (i) => typeof i == "object" && i !== null,
|
|
57
|
+
}, s1 = (i) => typeof i == "string", S2 = (i) => typeof i == "object" && i !== null, G2 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, D2 = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -75,7 +75,7 @@ const l2 = (i, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
}, T2 = (i) =>
|
|
78
|
+
}, T2 = (i) => D2[i], K2 = (i) => i.replace(G2, T2);
|
|
79
79
|
let B2 = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
@@ -101,7 +101,7 @@ class F2 {
|
|
|
101
101
|
}
|
|
102
102
|
const W2 = (i, e) => {
|
|
103
103
|
const t = J();
|
|
104
|
-
return
|
|
104
|
+
return D(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
107
|
}, c2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) => P(c2(i, e, t, s), [i, e, t, s]), z2 = function(i) {
|
|
@@ -132,7 +132,7 @@ const W2 = (i, e) => {
|
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
134
|
const b = W2(m), y = J(!0);
|
|
135
|
-
|
|
135
|
+
D(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: x
|
|
@@ -148,7 +148,7 @@ const W2 = (i, e) => {
|
|
|
148
148
|
return f && o && o.on(f, _), x && o && o.store.on(x, _), () => {
|
|
149
149
|
y.current = !1, f && o && f.split(" ").forEach((R) => o.off(R, _)), x && o && x.split(" ").forEach((R) => o.store.off(R, _));
|
|
150
150
|
};
|
|
151
|
-
}, [o, m]),
|
|
151
|
+
}, [o, m]), D(() => {
|
|
152
152
|
y.current && l && v(g);
|
|
153
153
|
}, [o, C, l]);
|
|
154
154
|
const I = [w, o, l];
|
|
@@ -192,13 +192,13 @@ const W2 = (i, e) => {
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
|
-
var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.
|
|
195
|
+
var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(Q || {});
|
|
196
196
|
const T1 = C1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
200
|
T1.Provider;
|
|
201
|
-
const { Title: q2, Text: Q2 } =
|
|
201
|
+
const { Title: q2, Text: Q2 } = D1, X2 = {
|
|
202
202
|
h1: 1,
|
|
203
203
|
h2: 2,
|
|
204
204
|
h3: 3,
|
|
@@ -218,7 +218,7 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
218
218
|
const d = J(null);
|
|
219
219
|
k1(C, () => d.current);
|
|
220
220
|
const [l, c] = O(!1);
|
|
221
|
-
|
|
221
|
+
D(() => {
|
|
222
222
|
var v;
|
|
223
223
|
if (!a) return;
|
|
224
224
|
const m = () => {
|
|
@@ -256,7 +256,7 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
256
256
|
disableUncheck: o = !1
|
|
257
257
|
}) => {
|
|
258
258
|
const [h, a] = O(i), [C, d] = O(e);
|
|
259
|
-
|
|
259
|
+
D(() => {
|
|
260
260
|
a(i), d(e);
|
|
261
261
|
}, [i, e]);
|
|
262
262
|
const { theme: l } = r1(T1);
|
|
@@ -281,7 +281,7 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
};
|
|
284
|
-
var L = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.
|
|
284
|
+
var L = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(L || {});
|
|
285
285
|
const h2 = C1({
|
|
286
286
|
locale: "en",
|
|
287
287
|
theme: "light"
|
|
@@ -1495,7 +1495,7 @@ const i5 = ({
|
|
|
1495
1495
|
}
|
|
1496
1496
|
)
|
|
1497
1497
|
}
|
|
1498
|
-
),
|
|
1498
|
+
), G5 = ({
|
|
1499
1499
|
className: i,
|
|
1500
1500
|
color: e = L.GREY_DARK_5,
|
|
1501
1501
|
height: t = 20,
|
|
@@ -1522,7 +1522,7 @@ const i5 = ({
|
|
|
1522
1522
|
}
|
|
1523
1523
|
)
|
|
1524
1524
|
}
|
|
1525
|
-
),
|
|
1525
|
+
), D5 = ({
|
|
1526
1526
|
className: i,
|
|
1527
1527
|
color: e = L.GREY_DARK_5,
|
|
1528
1528
|
height: t = 5,
|
|
@@ -2545,7 +2545,7 @@ const i5 = ({
|
|
|
2545
2545
|
onClick: h
|
|
2546
2546
|
}) => {
|
|
2547
2547
|
const [a, C] = O(n), { theme: d } = r1(h2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, c = o ? void 0 : h;
|
|
2548
|
-
return
|
|
2548
|
+
return D(() => {
|
|
2549
2549
|
if (n) {
|
|
2550
2550
|
c && !o && C(`${n} clickable`);
|
|
2551
2551
|
return;
|
|
@@ -2556,7 +2556,7 @@ const i5 = ({
|
|
|
2556
2556
|
case "nextIcon":
|
|
2557
2557
|
return S5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2558
2558
|
case "prevIcon":
|
|
2559
|
-
return
|
|
2559
|
+
return G5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2560
2560
|
case "arrowDown":
|
|
2561
2561
|
return i5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2562
2562
|
case "info":
|
|
@@ -2662,7 +2662,7 @@ const i5 = ({
|
|
|
2662
2662
|
case "arrowUpFilled":
|
|
2663
2663
|
return T5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2664
2664
|
case "arrowDownFilled":
|
|
2665
|
-
return
|
|
2665
|
+
return D5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2666
2666
|
case "arrow2Up":
|
|
2667
2667
|
return r5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2668
2668
|
case "arrow2Right":
|
|
@@ -2727,7 +2727,7 @@ const i5 = ({
|
|
|
2727
2727
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2728
2728
|
}
|
|
2729
2729
|
})() });
|
|
2730
|
-
}, { Title: Ce, Text: ge } =
|
|
2730
|
+
}, { Title: Ce, Text: ge } = D1, ue = {
|
|
2731
2731
|
h1: 1,
|
|
2732
2732
|
h2: 2,
|
|
2733
2733
|
h3: 3,
|
|
@@ -2747,7 +2747,7 @@ const i5 = ({
|
|
|
2747
2747
|
const d = J(null);
|
|
2748
2748
|
k1(C, () => d.current);
|
|
2749
2749
|
const [l, c] = O(!1);
|
|
2750
|
-
|
|
2750
|
+
D(() => {
|
|
2751
2751
|
var v;
|
|
2752
2752
|
if (!a) return;
|
|
2753
2753
|
const m = () => {
|
|
@@ -2777,7 +2777,7 @@ const i5 = ({
|
|
|
2777
2777
|
return g ? /* @__PURE__ */ r(Ce, { level: ue[e], ...w, children: s }) : /* @__PURE__ */ r(ge, { ...w, children: s });
|
|
2778
2778
|
}
|
|
2779
2779
|
);
|
|
2780
|
-
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.
|
|
2780
|
+
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(k || {});
|
|
2781
2781
|
const d2 = C1({
|
|
2782
2782
|
locale: "en",
|
|
2783
2783
|
theme: "light"
|
|
@@ -3541,7 +3541,7 @@ const fe = ({
|
|
|
3541
3541
|
)
|
|
3542
3542
|
]
|
|
3543
3543
|
}
|
|
3544
|
-
),
|
|
3544
|
+
), Ge = ({
|
|
3545
3545
|
width: i = 20,
|
|
3546
3546
|
height: e = 20,
|
|
3547
3547
|
color: t = k.GREY_DARK_5,
|
|
@@ -3574,7 +3574,7 @@ const fe = ({
|
|
|
3574
3574
|
)
|
|
3575
3575
|
]
|
|
3576
3576
|
}
|
|
3577
|
-
),
|
|
3577
|
+
), De = ({
|
|
3578
3578
|
width: i = 20,
|
|
3579
3579
|
height: e = 20,
|
|
3580
3580
|
color: t = k.GREY_DARK_5,
|
|
@@ -5041,7 +5041,7 @@ const fe = ({
|
|
|
5041
5041
|
onClick: h
|
|
5042
5042
|
}) => {
|
|
5043
5043
|
const [a, C] = O(n), { theme: d } = r1(d2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, c = o ? void 0 : h;
|
|
5044
|
-
return
|
|
5044
|
+
return D(() => {
|
|
5045
5045
|
if (n) {
|
|
5046
5046
|
c && !o && C(`${n} clickable`);
|
|
5047
5047
|
return;
|
|
@@ -5100,9 +5100,9 @@ const fe = ({
|
|
|
5100
5100
|
case "logOut":
|
|
5101
5101
|
return Se({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5102
5102
|
case "settings":
|
|
5103
|
-
return De({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5104
|
-
case "trash":
|
|
5105
5103
|
return Ge({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5104
|
+
case "trash":
|
|
5105
|
+
return De({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5106
5106
|
case "settings2":
|
|
5107
5107
|
return Te({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5108
5108
|
case "checkCircle":
|
|
@@ -5224,7 +5224,7 @@ const fe = ({
|
|
|
5224
5224
|
}
|
|
5225
5225
|
})() });
|
|
5226
5226
|
};
|
|
5227
|
-
var m1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.
|
|
5227
|
+
var m1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(m1 || {});
|
|
5228
5228
|
const bt = C1({
|
|
5229
5229
|
locale: "en",
|
|
5230
5230
|
theme: "light"
|
|
@@ -5268,7 +5268,7 @@ const C2 = ({
|
|
|
5268
5268
|
) : i
|
|
5269
5269
|
}
|
|
5270
5270
|
);
|
|
5271
|
-
}, { Title: yt, Text: Ht } =
|
|
5271
|
+
}, { Title: yt, Text: Ht } = D1, Et = {
|
|
5272
5272
|
h1: 1,
|
|
5273
5273
|
h2: 2,
|
|
5274
5274
|
h3: 3,
|
|
@@ -5288,7 +5288,7 @@ const C2 = ({
|
|
|
5288
5288
|
const d = J(null);
|
|
5289
5289
|
k1(C, () => d.current);
|
|
5290
5290
|
const [l, c] = O(!1);
|
|
5291
|
-
|
|
5291
|
+
D(() => {
|
|
5292
5292
|
var v;
|
|
5293
5293
|
if (!a) return;
|
|
5294
5294
|
const m = () => {
|
|
@@ -5364,7 +5364,7 @@ const Ot = ({
|
|
|
5364
5364
|
extraOptions: h
|
|
5365
5365
|
}) => {
|
|
5366
5366
|
const { locale: a } = r1(T1), { t: C } = z2("common", { lng: a }), [d, l] = O(!1);
|
|
5367
|
-
if (
|
|
5367
|
+
if (D(() => {
|
|
5368
5368
|
i.length || l(!1);
|
|
5369
5369
|
}, [i]), !i.length)
|
|
5370
5370
|
return null;
|
|
@@ -5435,8 +5435,8 @@ const Ot = ({
|
|
|
5435
5435
|
readOnly: f,
|
|
5436
5436
|
error: x
|
|
5437
5437
|
}, _) => {
|
|
5438
|
-
const [R, j] = O(!1), [q, F] = O(!1), [E, T] = O(!0), [A, Z] = O(i),
|
|
5439
|
-
|
|
5438
|
+
const [R, j] = O(!1), [q, F] = O(!1), [E, T] = O(!0), [A, Z] = O(i), G = J(null);
|
|
5439
|
+
D(() => {
|
|
5440
5440
|
Z(i);
|
|
5441
5441
|
}, [i]);
|
|
5442
5442
|
const B = (N) => {
|
|
@@ -5501,7 +5501,7 @@ const Ot = ({
|
|
|
5501
5501
|
{
|
|
5502
5502
|
values: N,
|
|
5503
5503
|
onTagClose: t1,
|
|
5504
|
-
maxWidth: ((H =
|
|
5504
|
+
maxWidth: ((H = G.current) == null ? void 0 : H.clientWidth) || 0,
|
|
5505
5505
|
disabled: a,
|
|
5506
5506
|
closable: !f,
|
|
5507
5507
|
options: o,
|
|
@@ -5520,7 +5520,7 @@ const Ot = ({
|
|
|
5520
5520
|
{
|
|
5521
5521
|
className: `snmt-select-1-15-6 ${q ? "snmt-select-focused" : ""}
|
|
5522
5522
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5523
|
-
ref:
|
|
5523
|
+
ref: G,
|
|
5524
5524
|
style: { width: h },
|
|
5525
5525
|
children: [
|
|
5526
5526
|
/* @__PURE__ */ r(
|
|
@@ -5639,7 +5639,7 @@ const Ot = ({
|
|
|
5639
5639
|
);
|
|
5640
5640
|
function St(i, e = 500) {
|
|
5641
5641
|
const t = J();
|
|
5642
|
-
return
|
|
5642
|
+
return D(() => () => {
|
|
5643
5643
|
t.current && clearTimeout(t.current);
|
|
5644
5644
|
}, []), (...s) => {
|
|
5645
5645
|
const n = setTimeout(() => {
|
|
@@ -5650,7 +5650,7 @@ function St(i, e = 500) {
|
|
|
5650
5650
|
}
|
|
5651
5651
|
function F1(i) {
|
|
5652
5652
|
const e = J(i);
|
|
5653
|
-
return
|
|
5653
|
+
return D(() => {
|
|
5654
5654
|
e.current = i;
|
|
5655
5655
|
}, [i]), e.current;
|
|
5656
5656
|
}
|
|
@@ -5678,7 +5678,7 @@ const A1 = 100, l1 = {
|
|
|
5678
5678
|
required: b = !1,
|
|
5679
5679
|
error: y
|
|
5680
5680
|
}, I) => {
|
|
5681
|
-
const [f, x] = O(), [_, R] = O(l1), [j, q] = O(!1), [F, E] = O(), [T, A] = O(!1), [Z,
|
|
5681
|
+
const [f, x] = O(), [_, R] = O(l1), [j, q] = O(!1), [F, E] = O(), [T, A] = O(!1), [Z, G] = O(
|
|
5682
5682
|
c ?? []
|
|
5683
5683
|
), B = F1(_.offset), U = F1(F), [V, $] = O(!1), Y = J(!1), e1 = P(
|
|
5684
5684
|
async ({
|
|
@@ -5725,12 +5725,12 @@ const A1 = 100, l1 = {
|
|
|
5725
5725
|
},
|
|
5726
5726
|
[g, F]
|
|
5727
5727
|
);
|
|
5728
|
-
|
|
5728
|
+
D(() => {
|
|
5729
5729
|
!Y.current || j || (V || T && (B !== _.offset || U !== F || !f)) && (e1({ offset: _.offset, limit: A1, search: F }), V && $(!1));
|
|
5730
|
-
}, [V, T, _.offset, F, B, U, f, j]),
|
|
5730
|
+
}, [V, T, _.offset, F, B, U, f, j]), D(() => {
|
|
5731
5731
|
(d || l) && e1(l1), Y.current = !0;
|
|
5732
|
-
}, []),
|
|
5733
|
-
c &&
|
|
5732
|
+
}, []), D(() => {
|
|
5733
|
+
c && G((S) => {
|
|
5734
5734
|
const z = c.filter(
|
|
5735
5735
|
(N) => !S.some((H) => H.value === N.value)
|
|
5736
5736
|
);
|
|
@@ -5745,7 +5745,7 @@ const A1 = 100, l1 = {
|
|
|
5745
5745
|
const N = z.filter(
|
|
5746
5746
|
(H) => !(Z != null && Z.some((K) => K.value === H))
|
|
5747
5747
|
);
|
|
5748
|
-
N.length > 0 &&
|
|
5748
|
+
N.length > 0 && G((H = []) => [
|
|
5749
5749
|
...H,
|
|
5750
5750
|
...N.map((K) => {
|
|
5751
5751
|
const a1 = f == null ? void 0 : f.find((w2) => w2.value === K);
|
|
@@ -5813,12 +5813,12 @@ const A1 = 100, l1 = {
|
|
|
5813
5813
|
}
|
|
5814
5814
|
);
|
|
5815
5815
|
var _1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(_1 || {});
|
|
5816
|
-
const
|
|
5816
|
+
const Gt = {
|
|
5817
5817
|
small: 20,
|
|
5818
5818
|
medium: 28,
|
|
5819
5819
|
large: 48
|
|
5820
|
-
},
|
|
5821
|
-
const t =
|
|
5820
|
+
}, Dt = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5821
|
+
const t = Gt[i], s = `no-repeat linear-gradient(${e}
|
|
5822
5822
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
5823
5823
|
width: t,
|
|
5824
5824
|
background: `${s} 0% 100%, ${s} 50% 100%, ${s} 100% 100%`,
|
|
@@ -5934,7 +5934,7 @@ class Xt {
|
|
|
5934
5934
|
}
|
|
5935
5935
|
const e7 = (i, e) => {
|
|
5936
5936
|
const t = J();
|
|
5937
|
-
return
|
|
5937
|
+
return D(() => {
|
|
5938
5938
|
t.current = i;
|
|
5939
5939
|
}, [i, e]), t.current;
|
|
5940
5940
|
}, p2 = (i, e, t, s) => i.getFixedT(e, t, s), t7 = (i, e, t, s) => P(p2(i, e, t, s), [i, e, t, s]), i7 = function(i) {
|
|
@@ -5965,7 +5965,7 @@ const e7 = (i, e) => {
|
|
|
5965
5965
|
let m = d.join();
|
|
5966
5966
|
e.lng && (m = `${e.lng}${m}`);
|
|
5967
5967
|
const b = e7(m), y = J(!0);
|
|
5968
|
-
|
|
5968
|
+
D(() => {
|
|
5969
5969
|
const {
|
|
5970
5970
|
bindI18n: f,
|
|
5971
5971
|
bindI18nStore: x
|
|
@@ -5981,7 +5981,7 @@ const e7 = (i, e) => {
|
|
|
5981
5981
|
return f && o && o.on(f, _), x && o && o.store.on(x, _), () => {
|
|
5982
5982
|
y.current = !1, f && o && f.split(" ").forEach((R) => o.off(R, _)), x && o && x.split(" ").forEach((R) => o.store.off(R, _));
|
|
5983
5983
|
};
|
|
5984
|
-
}, [o, m]),
|
|
5984
|
+
}, [o, m]), D(() => {
|
|
5985
5985
|
y.current && l && v(g);
|
|
5986
5986
|
}, [o, C, l]);
|
|
5987
5987
|
const I = [w, o, l];
|
|
@@ -6077,7 +6077,7 @@ const h7 = [" ", ",", "?", "!", ";"], d7 = new c7(20), C7 = (i, e, t) => {
|
|
|
6077
6077
|
h > 0 && !n.test(i.substring(0, h)) && (o = !0);
|
|
6078
6078
|
}
|
|
6079
6079
|
return o;
|
|
6080
|
-
},
|
|
6080
|
+
}, G1 = function(i, e) {
|
|
6081
6081
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
6082
6082
|
if (!i) return;
|
|
6083
6083
|
if (i[e]) return i[e];
|
|
@@ -6210,7 +6210,7 @@ class t2 extends E1 {
|
|
|
6210
6210
|
let a;
|
|
6211
6211
|
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : M(s) && o ? a.push(...s.split(o)) : a.push(s)));
|
|
6212
6212
|
const C = M1(this.data, a);
|
|
6213
|
-
return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !h || !M(s) ? C :
|
|
6213
|
+
return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !h || !M(s) ? C : G1(this.data && this.data[e] && this.data[e][t], s, o);
|
|
6214
6214
|
}
|
|
6215
6215
|
addResource(e, t, s, n) {
|
|
6216
6216
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -6386,22 +6386,22 @@ class H1 extends E1 {
|
|
|
6386
6386
|
});
|
|
6387
6387
|
V && V.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
6388
6388
|
}
|
|
6389
|
-
let
|
|
6389
|
+
let G = [];
|
|
6390
6390
|
const B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6391
6391
|
if (this.options.saveMissingTo === "fallback" && B && B[0])
|
|
6392
6392
|
for (let V = 0; V < B.length; V++)
|
|
6393
|
-
|
|
6394
|
-
else this.options.saveMissingTo === "all" ?
|
|
6393
|
+
G.push(B[V]);
|
|
6394
|
+
else this.options.saveMissingTo === "all" ? G = this.languageUtils.toResolveHierarchy(t.lng || this.language) : G.push(t.lng || this.language);
|
|
6395
6395
|
const U = (V, $, Y) => {
|
|
6396
6396
|
const e1 = R && Y !== g ? Y : A;
|
|
6397
6397
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, C, $, e1, Z, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, C, $, e1, Z, t), this.emit("missingKey", V, C, $, g);
|
|
6398
6398
|
};
|
|
6399
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && _ ?
|
|
6399
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? G.forEach((V) => {
|
|
6400
6400
|
const $ = this.pluralResolver.getSuffixes(V, t);
|
|
6401
6401
|
F && t[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((Y) => {
|
|
6402
6402
|
U([V], h + Y, t[`defaultValue${Y}`] || E);
|
|
6403
6403
|
});
|
|
6404
|
-
}) : U(
|
|
6404
|
+
}) : U(G, h, E));
|
|
6405
6405
|
}
|
|
6406
6406
|
g = this.extendTranslation(g, e, t, c, s), x && g === h && this.options.appendNamespaceToMissingKey && (g = `${C}:${h}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${C}:${h}` : h, f ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
|
|
6407
6407
|
}
|
|
@@ -6788,7 +6788,7 @@ class L7 {
|
|
|
6788
6788
|
}
|
|
6789
6789
|
const r2 = function(i, e, t) {
|
|
6790
6790
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = o7(i, e, t);
|
|
6791
|
-
return !o && n && M(t) && (o =
|
|
6791
|
+
return !o && n && M(t) && (o = G1(i, t, s), o === void 0 && (o = G1(e, t, s))), o;
|
|
6792
6792
|
}, I1 = (i) => i.replace(/\$/g, "$$$$");
|
|
6793
6793
|
class k7 {
|
|
6794
6794
|
constructor() {
|
|
@@ -7498,7 +7498,7 @@ W.use(qt).init({
|
|
|
7498
7498
|
}
|
|
7499
7499
|
}
|
|
7500
7500
|
});
|
|
7501
|
-
const
|
|
7501
|
+
const D7 = d1(
|
|
7502
7502
|
({
|
|
7503
7503
|
fetchParams: i,
|
|
7504
7504
|
mode: e = void 0,
|
|
@@ -7531,7 +7531,7 @@ const G7 = d1(
|
|
|
7531
7531
|
limit: T,
|
|
7532
7532
|
search: A
|
|
7533
7533
|
}) => {
|
|
7534
|
-
var Z,
|
|
7534
|
+
var Z, G, B;
|
|
7535
7535
|
try {
|
|
7536
7536
|
const U = await p.post("v1/users/search", {
|
|
7537
7537
|
offset: E,
|
|
@@ -7551,7 +7551,7 @@ const G7 = d1(
|
|
|
7551
7551
|
} catch (U) {
|
|
7552
7552
|
return h && h({
|
|
7553
7553
|
status: ((Z = U.response) == null ? void 0 : Z.status) ?? 500,
|
|
7554
|
-
message: ((B = (
|
|
7554
|
+
message: ((B = (G = U.response) == null ? void 0 : G.data) == null ? void 0 : B.message) ?? "Error while fetching options"
|
|
7555
7555
|
}), {
|
|
7556
7556
|
options: [],
|
|
7557
7557
|
count: 0
|
|
@@ -7563,13 +7563,13 @@ const G7 = d1(
|
|
|
7563
7563
|
async (E) => {
|
|
7564
7564
|
var T, A, Z;
|
|
7565
7565
|
try {
|
|
7566
|
-
const
|
|
7566
|
+
const G = E.filter(
|
|
7567
7567
|
(V) => !f.current.some(($) => $.value === V)
|
|
7568
7568
|
);
|
|
7569
7569
|
let B = [];
|
|
7570
|
-
|
|
7570
|
+
G.length && (B = (await p.post("v1/users/search", {
|
|
7571
7571
|
filters: {
|
|
7572
|
-
id:
|
|
7572
|
+
id: G,
|
|
7573
7573
|
status: [_1.ACTIVE, _1.ARCHIVED]
|
|
7574
7574
|
}
|
|
7575
7575
|
})).data.data);
|
|
@@ -7579,21 +7579,21 @@ const G7 = d1(
|
|
|
7579
7579
|
image: C ? V.avatarUrl : void 0
|
|
7580
7580
|
}));
|
|
7581
7581
|
return [...f.current, ...U];
|
|
7582
|
-
} catch (
|
|
7582
|
+
} catch (G) {
|
|
7583
7583
|
return h && h({
|
|
7584
|
-
status: ((T =
|
|
7585
|
-
message: ((Z = (A =
|
|
7584
|
+
status: ((T = G.response) == null ? void 0 : T.status) ?? 500,
|
|
7585
|
+
message: ((Z = (A = G.response) == null ? void 0 : A.data) == null ? void 0 : Z.message) ?? "Error while fetching selected items"
|
|
7586
7586
|
}), [];
|
|
7587
7587
|
}
|
|
7588
7588
|
},
|
|
7589
7589
|
[p, _, h, C]
|
|
7590
7590
|
);
|
|
7591
|
-
|
|
7591
|
+
D(() => {
|
|
7592
7592
|
f.current = m;
|
|
7593
|
-
}, [m]),
|
|
7593
|
+
}, [m]), D(() => {
|
|
7594
7594
|
var E;
|
|
7595
7595
|
(E = x.current) == null || E.refetchOptions();
|
|
7596
|
-
}, [i]),
|
|
7596
|
+
}, [i]), D(() => {
|
|
7597
7597
|
if (!n) {
|
|
7598
7598
|
I(!1);
|
|
7599
7599
|
return;
|
|
@@ -7609,12 +7609,12 @@ const G7 = d1(
|
|
|
7609
7609
|
offset: T,
|
|
7610
7610
|
search: A
|
|
7611
7611
|
}) => {
|
|
7612
|
-
const { count: Z, ...
|
|
7612
|
+
const { count: Z, ...G } = await R({
|
|
7613
7613
|
offset: T,
|
|
7614
7614
|
limit: E,
|
|
7615
7615
|
search: A
|
|
7616
7616
|
});
|
|
7617
|
-
let B =
|
|
7617
|
+
let B = G.options;
|
|
7618
7618
|
return a && T === 0 && (B = [{ value: null, label: "None" }, ...B]), {
|
|
7619
7619
|
options: B,
|
|
7620
7620
|
count: Z,
|
|
@@ -7624,7 +7624,7 @@ const G7 = d1(
|
|
|
7624
7624
|
[a, R]
|
|
7625
7625
|
);
|
|
7626
7626
|
if (y)
|
|
7627
|
-
return /* @__PURE__ */ r(
|
|
7627
|
+
return /* @__PURE__ */ r(Dt, {});
|
|
7628
7628
|
const F = {
|
|
7629
7629
|
ref: x,
|
|
7630
7630
|
placeholder: t,
|
|
@@ -7659,5 +7659,5 @@ const G7 = d1(
|
|
|
7659
7659
|
}
|
|
7660
7660
|
);
|
|
7661
7661
|
export {
|
|
7662
|
-
|
|
7662
|
+
D7 as UserSelect
|
|
7663
7663
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/user-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/user-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@snmt-react-ui/async-select": "^1.10.
|
|
22
|
-
"@snmt-react-ui/core": "^2.
|
|
21
|
+
"@snmt-react-ui/async-select": "^1.10.15",
|
|
22
|
+
"@snmt-react-ui/core": "^2.8.0",
|
|
23
23
|
"@snmt-react-ui/loader": "^2.2.0",
|
|
24
|
-
"@snmt-react-ui/select": "^1.23.
|
|
24
|
+
"@snmt-react-ui/select": "^1.23.15"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"antd": "^5.22.3",
|
|
28
28
|
"i18next": "^23.11.1",
|
|
29
29
|
"react-i18next": "^14.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "1253b59579ea0b107010ead9232555b520b2ee41"
|
|
32
32
|
}
|