@snmt-react-ui/user-select 2.5.2 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/user-select.js +85 -85
- package/package.json +4 -4
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-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.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-0)}.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 .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}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--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-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--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}.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}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .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 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .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 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .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 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .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 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset{border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.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 .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-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-light-4)}.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-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.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-0)}.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 .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}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--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-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--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}.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}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative;height:48px}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .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 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .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 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .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 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .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 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset{border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.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 .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-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single{height:48px}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-light-4)}.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
|
@@ -6784,10 +6784,10 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6784
6784
|
extraOptions: R,
|
|
6785
6785
|
dropdownRender: N,
|
|
6786
6786
|
optionRender: E,
|
|
6787
|
-
isLoading:
|
|
6788
|
-
readOnly:
|
|
6787
|
+
isLoading: M,
|
|
6788
|
+
readOnly: H
|
|
6789
6789
|
}, m) => {
|
|
6790
|
-
const [
|
|
6790
|
+
const [y, x] = A(!1), [f, I] = A(!1), [B, S] = A(!0), [b, D] = A(i), j = l1(null);
|
|
6791
6791
|
G(() => {
|
|
6792
6792
|
D(i);
|
|
6793
6793
|
}, [i]);
|
|
@@ -6800,7 +6800,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6800
6800
|
I(!0);
|
|
6801
6801
|
}, U = () => {
|
|
6802
6802
|
I(!1);
|
|
6803
|
-
},
|
|
6803
|
+
}, V = Z(
|
|
6804
6804
|
(w) => {
|
|
6805
6805
|
if (D(w), s) {
|
|
6806
6806
|
const K = w;
|
|
@@ -6812,19 +6812,19 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6812
6812
|
},
|
|
6813
6813
|
[s, e]
|
|
6814
6814
|
), F = Z(() => {
|
|
6815
|
-
if (!
|
|
6815
|
+
if (!H) {
|
|
6816
6816
|
if (s) {
|
|
6817
|
-
|
|
6817
|
+
V([]);
|
|
6818
6818
|
return;
|
|
6819
6819
|
}
|
|
6820
|
-
|
|
6820
|
+
V("");
|
|
6821
6821
|
}
|
|
6822
|
-
}, [
|
|
6822
|
+
}, [V, s, H]), P = Z(
|
|
6823
6823
|
(w) => {
|
|
6824
6824
|
const O = b.filter((K) => K !== w);
|
|
6825
|
-
|
|
6825
|
+
V(O), D(O);
|
|
6826
6826
|
},
|
|
6827
|
-
[
|
|
6827
|
+
[V, b]
|
|
6828
6828
|
), e1 = Z(
|
|
6829
6829
|
(w) => (b == null ? void 0 : b.indexOf(w)) === 0 ? (
|
|
6830
6830
|
// if the search input is empty
|
|
@@ -6854,13 +6854,13 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6854
6854
|
values: w,
|
|
6855
6855
|
onTagClose: P,
|
|
6856
6856
|
maxWidth: ((O = j.current) == null ? void 0 : O.clientWidth) || 0,
|
|
6857
|
-
disabled: o ||
|
|
6857
|
+
disabled: o || H,
|
|
6858
6858
|
options: l,
|
|
6859
6859
|
extraOptions: R
|
|
6860
6860
|
}
|
|
6861
6861
|
);
|
|
6862
6862
|
},
|
|
6863
|
-
[o, R, P, l,
|
|
6863
|
+
[o, R, P, l, H]
|
|
6864
6864
|
), re = Z(
|
|
6865
6865
|
({ label: w, value: O, mode: K }) => K === "filter" ? e1(O) : /* @__PURE__ */ r("div", { onMouseDown: ie, className: "tag-wrapper", children: /* @__PURE__ */ r(z1, { onClose: () => P(O), closable: !o, children: /* @__PURE__ */ r(J1, { variant: "body4", children: typeof w == "object" ? w : m1(O) }) }) }),
|
|
6866
6866
|
[o, m1, P, e1]
|
|
@@ -6869,7 +6869,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6869
6869
|
"div",
|
|
6870
6870
|
{
|
|
6871
6871
|
className: `snmt-select ${f ? "snmt-select-focused" : ""}
|
|
6872
|
-
${s ? "" : "snmt-select-single"} ${
|
|
6872
|
+
${s ? "" : "snmt-select-single"} ${H ? "snmt-select-read-only" : ""}`,
|
|
6873
6873
|
ref: j,
|
|
6874
6874
|
style: { width: c },
|
|
6875
6875
|
children: [
|
|
@@ -6877,7 +6877,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6877
6877
|
he,
|
|
6878
6878
|
{
|
|
6879
6879
|
className: "snmt-select-blank",
|
|
6880
|
-
popupClassName:
|
|
6880
|
+
popupClassName: H ? "dropdown-read-only" : "",
|
|
6881
6881
|
id: v,
|
|
6882
6882
|
ref: m,
|
|
6883
6883
|
showSearch: !!n,
|
|
@@ -6888,7 +6888,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6888
6888
|
value: b || void 0,
|
|
6889
6889
|
labelRender: (w) => m1(w.value),
|
|
6890
6890
|
mode: s === "filter" ? "multiple" : s,
|
|
6891
|
-
onChange:
|
|
6891
|
+
onChange: V,
|
|
6892
6892
|
onFocus: Y,
|
|
6893
6893
|
onBlur: U,
|
|
6894
6894
|
onSearch: (w) => {
|
|
@@ -6900,7 +6900,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6900
6900
|
maxTagCount: "responsive",
|
|
6901
6901
|
maxTagPlaceholder: ne,
|
|
6902
6902
|
onPopupScroll: se,
|
|
6903
|
-
prefix:
|
|
6903
|
+
prefix: M && /* @__PURE__ */ r(y1, { size: 15 }),
|
|
6904
6904
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(X, { children: [
|
|
6905
6905
|
s && b && !!b.length && /* @__PURE__ */ r("div", { onClick: F, children: /* @__PURE__ */ r(h1, { name: "cancel" }) }),
|
|
6906
6906
|
/* @__PURE__ */ r(
|
|
@@ -6908,8 +6908,8 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6908
6908
|
{
|
|
6909
6909
|
name: "selectArrowIcon",
|
|
6910
6910
|
color: o ? q.GREY_DARK_1 : q.GREY_DARK_5,
|
|
6911
|
-
className:
|
|
6912
|
-
onClick: () => x(!
|
|
6911
|
+
className: y ? "select-arrow-rotated" : "select-arrow",
|
|
6912
|
+
onClick: () => x(!y)
|
|
6913
6913
|
}
|
|
6914
6914
|
)
|
|
6915
6915
|
] }) }),
|
|
@@ -6938,7 +6938,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6938
6938
|
}
|
|
6939
6939
|
)
|
|
6940
6940
|
] }),
|
|
6941
|
-
dropdownRender:
|
|
6941
|
+
dropdownRender: M ? () => /* @__PURE__ */ r(
|
|
6942
6942
|
"div",
|
|
6943
6943
|
{
|
|
6944
6944
|
style: {
|
|
@@ -6998,34 +6998,34 @@ const t1 = {
|
|
|
6998
6998
|
dropdownRender: p,
|
|
6999
6999
|
readOnly: v
|
|
7000
7000
|
}, R) => {
|
|
7001
|
-
const [N, E] = A([]), [
|
|
7001
|
+
const [N, E] = A([]), [M, H] = A(t1), [m, y] = A(!1), [x, f] = A(null), I = Z(
|
|
7002
7002
|
async (_ = !1, T) => {
|
|
7003
7003
|
if (!m) {
|
|
7004
|
-
|
|
7004
|
+
y(!0);
|
|
7005
7005
|
try {
|
|
7006
|
-
const Y = _ ? { ...t1, search: T } :
|
|
7006
|
+
const Y = _ ? { ...t1, search: T } : M, U = await i(Y);
|
|
7007
7007
|
E(
|
|
7008
|
-
(
|
|
7009
|
-
), f(U.count),
|
|
7010
|
-
...
|
|
7011
|
-
offset:
|
|
7008
|
+
(V) => _ ? U.options : [...V, ...U.options]
|
|
7009
|
+
), f(U.count), H((V) => ({
|
|
7010
|
+
...V,
|
|
7011
|
+
offset: V.offset + V.limit
|
|
7012
7012
|
}));
|
|
7013
7013
|
} finally {
|
|
7014
|
-
|
|
7014
|
+
y(!1);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
7017
|
},
|
|
7018
|
-
[
|
|
7018
|
+
[M, i, m]
|
|
7019
7019
|
), B = Ii(I), S = Z(
|
|
7020
7020
|
(_) => {
|
|
7021
|
-
_ === "" || _ === void 0 || _ === null ? (
|
|
7021
|
+
_ === "" || _ === void 0 || _ === null ? (H(t1), B(!0)) : B(!0, _);
|
|
7022
7022
|
},
|
|
7023
7023
|
[B]
|
|
7024
7024
|
), b = async (_) => {
|
|
7025
7025
|
_ && x !== null && x > N.length && await I(!1);
|
|
7026
7026
|
}, D = Z(
|
|
7027
7027
|
(_) => {
|
|
7028
|
-
_ && !g && (E([]),
|
|
7028
|
+
_ && !g && (E([]), H(t1), I(!0)), h == null || h(_);
|
|
7029
7029
|
},
|
|
7030
7030
|
// eslint-disable-next-line
|
|
7031
7031
|
[g]
|
|
@@ -7056,7 +7056,7 @@ const t1 = {
|
|
|
7056
7056
|
};
|
|
7057
7057
|
return ae(R, () => ({
|
|
7058
7058
|
refetchOptions: async () => {
|
|
7059
|
-
|
|
7059
|
+
H(t1), await I(!0);
|
|
7060
7060
|
}
|
|
7061
7061
|
})), d ? /* @__PURE__ */ r(b1, { ...j, onChange: t, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(b1, { ...j, onChange: t, value: s }) });
|
|
7062
7062
|
}
|
|
@@ -7192,8 +7192,8 @@ const zi = (i, e) => {
|
|
|
7192
7192
|
} = a1(Yi) || {}, l = t || s || $i();
|
|
7193
7193
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new Ui()), !l) {
|
|
7194
7194
|
N1("You will need to pass in an i18next instance by using initReactI18next");
|
|
7195
|
-
const m = (x, f) => z(f) ? f : Wi(f) && z(f.defaultValue) ? f.defaultValue : Array.isArray(x) ? x[x.length - 1] : x,
|
|
7196
|
-
return
|
|
7195
|
+
const m = (x, f) => z(f) ? f : Wi(f) && z(f.defaultValue) ? f.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, y = [m, {}, !1];
|
|
7196
|
+
return y.t = m, y.i18n = {}, y.ready = !1, y;
|
|
7197
7197
|
}
|
|
7198
7198
|
l.options.react && l.options.react.wait !== void 0 && N1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
7199
7199
|
const c = {
|
|
@@ -7209,28 +7209,28 @@ const zi = (i, e) => {
|
|
|
7209
7209
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((m) => Bi(m, l, c)), h = Ji(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => X1(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v, R] = A(C);
|
|
7210
7210
|
let N = g.join();
|
|
7211
7211
|
e.lng && (N = `${e.lng}${N}`);
|
|
7212
|
-
const E = zi(N),
|
|
7212
|
+
const E = zi(N), M = l1(!0);
|
|
7213
7213
|
G(() => {
|
|
7214
7214
|
const {
|
|
7215
7215
|
bindI18n: m,
|
|
7216
|
-
bindI18nStore:
|
|
7216
|
+
bindI18nStore: y
|
|
7217
7217
|
} = c;
|
|
7218
|
-
|
|
7219
|
-
|
|
7218
|
+
M.current = !0, !a && !o && (e.lng ? _1(l, e.lng, g, () => {
|
|
7219
|
+
M.current && R(p);
|
|
7220
7220
|
}) : H1(l, g, () => {
|
|
7221
|
-
|
|
7222
|
-
})), a && E && E !== N &&
|
|
7221
|
+
M.current && R(p);
|
|
7222
|
+
})), a && E && E !== N && M.current && R(p);
|
|
7223
7223
|
const x = () => {
|
|
7224
|
-
|
|
7224
|
+
M.current && R(p);
|
|
7225
7225
|
};
|
|
7226
|
-
return m && l && l.on(m, x),
|
|
7227
|
-
|
|
7226
|
+
return m && l && l.on(m, x), y && l && l.store.on(y, x), () => {
|
|
7227
|
+
M.current = !1, m && l && m.split(" ").forEach((f) => l.off(f, x)), y && l && y.split(" ").forEach((f) => l.store.off(f, x));
|
|
7228
7228
|
};
|
|
7229
7229
|
}, [l, N]), G(() => {
|
|
7230
|
-
|
|
7230
|
+
M.current && a && R(C);
|
|
7231
7231
|
}, [l, d, a]);
|
|
7232
|
-
const
|
|
7233
|
-
if (
|
|
7232
|
+
const H = [v, l, a];
|
|
7233
|
+
if (H.t = v, H.i18n = l, H.ready = a, a || !a && !o) return H;
|
|
7234
7234
|
throw new Promise((m) => {
|
|
7235
7235
|
e.lng ? _1(l, e.lng, g, () => m()) : H1(l, g, () => m());
|
|
7236
7236
|
});
|
|
@@ -7592,8 +7592,8 @@ class f1 extends w1 {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
const h = this.resolve(e, t);
|
|
7594
7594
|
let C = h && h.res;
|
|
7595
|
-
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays,
|
|
7596
|
-
if (
|
|
7595
|
+
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
7596
|
+
if (M && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") && N.indexOf(R) < 0 && !(typeof E == "string" && Array.isArray(C))) {
|
|
7597
7597
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
7598
7598
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
7599
7599
|
const m = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
|
@@ -7603,53 +7603,53 @@ class f1 extends w1 {
|
|
|
7603
7603
|
return n ? (h.res = m, h.usedParams = this.getUsedParamsDetails(t), h) : m;
|
|
7604
7604
|
}
|
|
7605
7605
|
if (l) {
|
|
7606
|
-
const m = Array.isArray(C),
|
|
7606
|
+
const m = Array.isArray(C), y = m ? [] : {}, x = m ? v : p;
|
|
7607
7607
|
for (const f in C)
|
|
7608
7608
|
if (Object.prototype.hasOwnProperty.call(C, f)) {
|
|
7609
7609
|
const I = `${x}${l}${f}`;
|
|
7610
|
-
|
|
7610
|
+
y[f] = this.translate(I, {
|
|
7611
7611
|
...t,
|
|
7612
7612
|
joinArrays: !1,
|
|
7613
7613
|
ns: o
|
|
7614
|
-
}),
|
|
7614
|
+
}), y[f] === I && (y[f] = C[f]);
|
|
7615
7615
|
}
|
|
7616
|
-
C =
|
|
7616
|
+
C = y;
|
|
7617
7617
|
}
|
|
7618
|
-
} else if (
|
|
7618
|
+
} else if (M && typeof E == "string" && Array.isArray(C))
|
|
7619
7619
|
C = C.join(E), C && (C = this.extendTranslation(C, e, t, s));
|
|
7620
7620
|
else {
|
|
7621
|
-
let m = !1,
|
|
7621
|
+
let m = !1, y = !1;
|
|
7622
7622
|
const x = t.count !== void 0 && typeof t.count != "string", f = f1.hasDefaultValue(t), I = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", B = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
|
|
7623
7623
|
ordinal: !1
|
|
7624
7624
|
}) : "", S = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), b = S && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${B}`] || t.defaultValue;
|
|
7625
|
-
!this.isValidLookup(C) && f && (m = !0, C = b), this.isValidLookup(C) || (
|
|
7626
|
-
const j = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
7627
|
-
if (
|
|
7625
|
+
!this.isValidLookup(C) && f && (m = !0, C = b), this.isValidLookup(C) || (y = !0, C = c);
|
|
7626
|
+
const j = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : C, _ = f && b !== C && this.options.updateMissing;
|
|
7627
|
+
if (y || m || _) {
|
|
7628
7628
|
if (this.logger.log(_ ? "updateKey" : "missingKey", g, d, c, _ ? b : C), l) {
|
|
7629
|
-
const
|
|
7629
|
+
const V = this.resolve(c, {
|
|
7630
7630
|
...t,
|
|
7631
7631
|
keySeparator: !1
|
|
7632
7632
|
});
|
|
7633
|
-
|
|
7633
|
+
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.");
|
|
7634
7634
|
}
|
|
7635
7635
|
let T = [];
|
|
7636
7636
|
const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
7637
7637
|
if (this.options.saveMissingTo === "fallback" && Y && Y[0])
|
|
7638
|
-
for (let
|
|
7639
|
-
T.push(Y[
|
|
7638
|
+
for (let V = 0; V < Y.length; V++)
|
|
7639
|
+
T.push(Y[V]);
|
|
7640
7640
|
else this.options.saveMissingTo === "all" ? T = this.languageUtils.toResolveHierarchy(t.lng || this.language) : T.push(t.lng || this.language);
|
|
7641
|
-
const U = (
|
|
7641
|
+
const U = (V, F, P) => {
|
|
7642
7642
|
const e1 = f && P !== C ? P : j;
|
|
7643
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
7643
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, d, F, e1, _, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, d, F, e1, _, t), this.emit("missingKey", V, d, F, C);
|
|
7644
7644
|
};
|
|
7645
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((
|
|
7646
|
-
const F = this.pluralResolver.getSuffixes(
|
|
7645
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((V) => {
|
|
7646
|
+
const F = this.pluralResolver.getSuffixes(V, t);
|
|
7647
7647
|
S && t[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((P) => {
|
|
7648
|
-
U([
|
|
7648
|
+
U([V], c + P, t[`defaultValue${P}`] || b);
|
|
7649
7649
|
});
|
|
7650
7650
|
}) : U(T, c, b));
|
|
7651
7651
|
}
|
|
7652
|
-
C = this.extendTranslation(C, e, t, h, s),
|
|
7652
|
+
C = this.extendTranslation(C, e, t, h, s), y && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (y || m) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, m ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
|
7653
7653
|
}
|
|
7654
7654
|
return n ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
|
|
7655
7655
|
}
|
|
@@ -7712,21 +7712,21 @@ class f1 extends w1 {
|
|
|
7712
7712
|
this.isValidLookup(s) || (o = N, !W1[`${R[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (W1[`${R[0]}-${N}`] = !0, this.logger.warn(`key "${n}" for languages "${R.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), R.forEach((E) => {
|
|
7713
7713
|
if (this.isValidLookup(s)) return;
|
|
7714
7714
|
c = E;
|
|
7715
|
-
const
|
|
7715
|
+
const M = [a];
|
|
7716
7716
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
7717
|
-
this.i18nFormat.addLookupKeys(
|
|
7717
|
+
this.i18nFormat.addLookupKeys(M, a, E, N, t);
|
|
7718
7718
|
else {
|
|
7719
7719
|
let m;
|
|
7720
7720
|
C && (m = this.pluralResolver.getSuffix(E, t.count, t));
|
|
7721
|
-
const
|
|
7722
|
-
if (C && (
|
|
7721
|
+
const y = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
7722
|
+
if (C && (M.push(a + m), t.ordinal && m.indexOf(x) === 0 && M.push(a + m.replace(x, this.options.pluralSeparator)), p && M.push(a + y)), v) {
|
|
7723
7723
|
const f = `${a}${this.options.contextSeparator}${t.context}`;
|
|
7724
|
-
|
|
7724
|
+
M.push(f), C && (M.push(f + m), t.ordinal && m.indexOf(x) === 0 && M.push(f + m.replace(x, this.options.pluralSeparator)), p && M.push(f + y));
|
|
7725
7725
|
}
|
|
7726
7726
|
}
|
|
7727
|
-
let
|
|
7728
|
-
for (;
|
|
7729
|
-
this.isValidLookup(s) || (l =
|
|
7727
|
+
let H;
|
|
7728
|
+
for (; H = M.pop(); )
|
|
7729
|
+
this.isValidLookup(s) || (l = H, s = this.getResource(E, N, H, t));
|
|
7730
7730
|
}));
|
|
7731
7731
|
});
|
|
7732
7732
|
}), {
|
|
@@ -8053,9 +8053,9 @@ class p5 {
|
|
|
8053
8053
|
nestingSuffixEscaped: R,
|
|
8054
8054
|
nestingOptionsSeparator: N,
|
|
8055
8055
|
maxReplaces: E,
|
|
8056
|
-
alwaysFormat:
|
|
8056
|
+
alwaysFormat: M
|
|
8057
8057
|
} = e.interpolation;
|
|
8058
|
-
this.escape = t !== void 0 ? t : n5, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? J(l) : c || "{{", this.suffix = o ? J(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? J(C) : p || J("$t("), this.nestingSuffix = v ? J(v) : R || J(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat =
|
|
8058
|
+
this.escape = t !== void 0 ? t : n5, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? J(l) : c || "{{", this.suffix = o ? J(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? J(C) : p || J("$t("), this.nestingSuffix = v ? J(v) : R || J(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
8059
8059
|
}
|
|
8060
8060
|
reset() {
|
|
8061
8061
|
this.options && this.init(this.options);
|
|
@@ -8757,7 +8757,7 @@ const O5 = o1(
|
|
|
8757
8757
|
return x.deletedAt && (f += `[${h("deleted")}] `), x.status === g1.ARCHIVED && (f += `[${h("archived")}] `), `${f}${x.firstName} ${x.lastName}`;
|
|
8758
8758
|
},
|
|
8759
8759
|
[h]
|
|
8760
|
-
),
|
|
8760
|
+
), M = Z(
|
|
8761
8761
|
async ({
|
|
8762
8762
|
offset: x,
|
|
8763
8763
|
limit: f,
|
|
@@ -8790,7 +8790,7 @@ const O5 = o1(
|
|
|
8790
8790
|
}
|
|
8791
8791
|
},
|
|
8792
8792
|
[g, i, c, E]
|
|
8793
|
-
),
|
|
8793
|
+
), H = Z(
|
|
8794
8794
|
async (x) => {
|
|
8795
8795
|
var f, I, B;
|
|
8796
8796
|
try {
|
|
@@ -8826,17 +8826,17 @@ const O5 = o1(
|
|
|
8826
8826
|
return;
|
|
8827
8827
|
}
|
|
8828
8828
|
(async () => {
|
|
8829
|
-
const f = Array.isArray(n) ? n : [n], I = await
|
|
8829
|
+
const f = Array.isArray(n) ? n : [n], I = await H(f);
|
|
8830
8830
|
p(I), R(!1);
|
|
8831
8831
|
})();
|
|
8832
|
-
}, [
|
|
8832
|
+
}, [H, n]);
|
|
8833
8833
|
const m = Z(
|
|
8834
8834
|
async ({
|
|
8835
8835
|
limit: x,
|
|
8836
8836
|
offset: f,
|
|
8837
8837
|
search: I
|
|
8838
8838
|
}) => {
|
|
8839
|
-
const { count: B, ...S } = await
|
|
8839
|
+
const { count: B, ...S } = await M({
|
|
8840
8840
|
offset: f,
|
|
8841
8841
|
limit: x,
|
|
8842
8842
|
search: I
|
|
@@ -8848,11 +8848,11 @@ const O5 = o1(
|
|
|
8848
8848
|
limit: x
|
|
8849
8849
|
};
|
|
8850
8850
|
},
|
|
8851
|
-
[o,
|
|
8851
|
+
[o, M]
|
|
8852
8852
|
);
|
|
8853
8853
|
if (v)
|
|
8854
8854
|
return /* @__PURE__ */ r(Oi, {});
|
|
8855
|
-
const
|
|
8855
|
+
const y = {
|
|
8856
8856
|
ref: d,
|
|
8857
8857
|
placeholder: t,
|
|
8858
8858
|
disabled: s
|
|
@@ -8860,7 +8860,7 @@ const O5 = o1(
|
|
|
8860
8860
|
return e ? /* @__PURE__ */ r(
|
|
8861
8861
|
E1,
|
|
8862
8862
|
{
|
|
8863
|
-
...
|
|
8863
|
+
...y,
|
|
8864
8864
|
mode: e,
|
|
8865
8865
|
value: n,
|
|
8866
8866
|
onChange: l,
|
|
@@ -8871,7 +8871,7 @@ const O5 = o1(
|
|
|
8871
8871
|
) : /* @__PURE__ */ r(
|
|
8872
8872
|
E1,
|
|
8873
8873
|
{
|
|
8874
|
-
...
|
|
8874
|
+
...y,
|
|
8875
8875
|
value: n,
|
|
8876
8876
|
mode: void 0,
|
|
8877
8877
|
onChange: l,
|
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.5.
|
|
4
|
+
"version": "2.5.4",
|
|
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.5.
|
|
21
|
+
"@snmt-react-ui/async-select": "^1.5.4",
|
|
22
22
|
"@snmt-react-ui/core": "^2.1.0",
|
|
23
23
|
"@snmt-react-ui/loader": "^1.4.0",
|
|
24
|
-
"@snmt-react-ui/select": "^1.13.
|
|
24
|
+
"@snmt-react-ui/select": "^1.13.2"
|
|
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": "c535681c0bded860cc56805548d7044e47c9d2f3"
|
|
32
32
|
}
|