@univerjs-pro/sheets-pivot-ui 0.2.9 → 0.2.11

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/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-pivot-panel{font-family:PingFang SC;font-size:13px;font-style:normal}.univer-pivot-panel-menu{display:inline-flex;padding:8px;flex-direction:column;align-items:flex-start;border-radius:8px;border:1px solid rgb(var(--grey-200));background:rgb(var(--color-white));box-shadow:0 4px 16px #1e222b14}.univer-pivot-panel-menu-wrap{min-width:120px!important}.univer-pivot-panel-menu-item{display:flex;padding:6px 8px;align-items:center;align-self:stretch;color:rgb(var(--color-black));font-size:13px;font-weight:400;line-height:20px;cursor:pointer}.univer-pivot-panel-menu-item:hover{background:#1e222b0f}.univer-pivot-panel-wrap{width:100%;padding-top:16px;overflow:hidden}.univer-pivot-panel-block,.univer-pivot-panel-source{margin-bottom:16px}.univer-pivot-panel-source-header{height:20px;line-height:20px;font-size:13px;margin-bottom:8px}.univer-pivot-panel-source-header-label{float:left;color:rgb(var(--color-black));text-align:justify;font-style:normal;font-weight:500}.univer-pivot-panel-source-header-desc{float:right;color:rgb(var(--grey-600));font-style:normal;font-weight:400}.univer-pivot-panel-source-input{position:relative}.univer-pivot-panel-source-mask{position:absolute;left:0;top:0;z-index:1000;height:28px;width:calc(100% - 22px)}.univer-pivot-panel-list{position:relative;width:100%;display:flex;flex-direction:row;height:32px;line-height:16px;padding:8px 4px;border-radius:6px;cursor:pointer;box-sizing:border-box}.univer-pivot-panel-list-area-item:first-child{margin-top:8px}.univer-pivot-panel-list-area-item:last-child{margin-bottom:8px}.univer-pivot-panel-list-drag{cursor:move;color:rgb(var(--color-black));font-size:16px}.univer-pivot-panel-list-checkbox{font-size:14px;color:#bcbcbc;width:14px}.univer-pivot-panel-list-type{font-size:12px;color:#bcbcbc;margin:0 6px}.univer-pivot-panel-list-wrap{padding:0 8px;border-radius:8px;border:1px solid rgb(var(--grey-200));background:#fff;box-sizing:border-box}.univer-pivot-panel-list-title{color:rgb(var(--color-black));font-size:13px;font-style:normal;font-weight:500;line-height:20px;margin-top:0;margin-bottom:4px}.univer-pivot-panel-list-desc{color:rgb(var(--grey-600));font-size:12px;font-weight:400;line-height:16px;margin-top:0;margin-bottom:8px}.univer-pivot-panel-list-content{flex:1;display:inline-block;color:rgb(var(--color-black));font-size:12px;font-style:normal;font-weight:400;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px;display:flex}.univer-pivot-panel-list:hover{background-color:#f0f0f0;white-space:nowrap}.univer-pivot-panel-field-area{padding:0 8px}.univer-pivot-panel-field-area-title{width:100%;color:rgb(var(--color-black));font-size:13px;font-weight:400;line-height:16px;margin-bottom:8px;margin-top:0;display:flex}.univer-pivot-panel-field-area-title-icon{font-size:16px;line-height:16px;width:16px;margin-right:6px}.univer-pivot-panel-field-area-title-text{display:inline-block;vertical-align:top}.univer-pivot-panel-field-area-empty{display:flex;height:160px;padding:0 8px;flex-direction:column;justify-content:center;align-items:center;gap:4px;align-self:stretch}.univer-pivot-panel-field-area-empty-icon{width:32px;height:32px}.univer-pivot-panel-field-area-empty-desc{color:rgb(var(--grey-600));text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.univer-pivot-panel-field-area-wrap{flex:1;min-height:200px;padding:4px}.univer-pivot-panel-field-area-content{height:160px;width:113px;padding:8px 0;flex-direction:column;justify-content:center;align-items:center;border-radius:8px;border:1px solid rgb(var(--border-color));background:linear-gradient(0deg,#1e222b05,#1e222b05),var(--color-white)}.univer-pivot-panel-field-area-content-dropping{border:1px solid rgb(var(--primary-color-hover))}.univer-pivot-panel-field-area-placeholder{max-width:118px;height:1px;overflow:hidden}.univer-pivot-panel-field-area-item{display:flex;padding:2px;align-items:center;gap:4px;align-self:stretch;line-height:16px;border:1px solid transparent}.univer-pivot-panel-field-area-item-text{flex:1 0 0;color:#1e222b;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:400;line-height:16px;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-pivot-panel-field-area-item-dragging{background-color:#f0f0f0}.univer-pivot-panel-field-area-item-handle{font-size:16px}.univer-pivot-panel-field-area-item:hover{background-color:#f0f0f0}.univer-pivot-panel-field-area-group{display:flex;flex-direction:row;gap:16px}.univer-pivot-panel-dialog-title{display:flex;justify-content:space-between;align-items:center;align-self:stretch;line-height:20px}.univer-pivot-panel-dialog-title-text{color:rgb(var(--color-black));font-size:13px;font-weight:500;line-height:20px}.univer-pivot-panel-dialog-title-desc{font-size:12px;font-style:normal;font-weight:400;line-height:16px;color:rgb(var(--text-color-secondary))}.univer-pivot-panel-dialog-input{width:100%;margin-top:8px;margin-bottom:20px;padding:6px 10px;font-size:13px;height:32px;line-height:20px;border-radius:6px;box-sizing:border-box}.univer-pivot-panel-dialog-footer{display:flex;justify-content:space-between;align-items:center;align-self:stretch;margin-top:20px}.univer-pivot-panel-dialog-footer-btn{height:32px;padding:0 12px;border:none;border-radius:var(--border-radius-base);cursor:pointer}.univer-pivot-panel-dialog-footer-cancel{color:#7a7a7a;background-color:#fff;border:1px solid rgb(var(--border-color))}.univer-pivot-panel-dialog-footer-fmt{display:flex;height:24px;padding:0 8px;justify-content:center;align-items:center;gap:6px;background-color:#fff;color:rgb(var(--primary-color))}.univer-pivot-panel-dialog-footer-control{display:flex;align-items:flex-start;gap:12px;font-size:14px}.univer-pivot-panel-dialog-summarize{display:flex;padding:8px;width:100%;align-items:flex-start;height:160px}.univer-pivot-panel-dialog-summarize-select{flex:1;height:160px;border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-pivot-panel-dialog-summarize-label{color:rgb(var(--color-black));font-size:14px;font-weight:500;line-height:normal;margin-bottom:8px}.univer-pivot-panel-dialog-summarize-item{display:flex;padding:6px 8px;border-radius:6px;align-items:center;gap:6px;align-self:stretch;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-transform:capitalize}.univer-pivot-panel-dialog-summarize-item-icon{font-size:16px;color:rgb(var(--success-color));width:16px}.univer-pivot-panel-dialog-summarize-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-pivot-panel-dialog-content{display:flex;flex-direction:column;gap:16px}.univer-pivot-dialog-range-selector-sub-title,.univer-pivot-dialog-range-selector-sub-title-last{margin-bottom:var(--margin-xs);font-size:var(--font-size-xs);font-weight:500;height:20px;line-height:20px}.univer-pivot-dialog-range-selector-sub-title-last{margin-top:var(--margin-lg)}.univer-pivot-dialog-range-selector-last{margin-top:var(--margin-xs)}.univer-pivot-dialog-range-selector-error,.univer-pivot-dialog-range-selector-error:hover{border:1px solid rgb(var(--red-400))}.univer-pivot-dialog-range-selector-error-text{height:20px;line-height:20px;color:rgb(var(--red-400));font-size:var(--font-size-xs);font-weight:400}.univer-pivot-dialog-range-selector-footer{margin-top:var(--margin-lg);display:flex;justify-content:flex-end}.univer-pivot-dialog-range-selector-footer-confirm{margin-left:var(--margin-sm)}.univer-pivot-dialog-sort{display:flex}.univer-pivot-dialog-sort-item{flex:1;display:flex;cursor:pointer;align-items:center;justify-content:center;width:140px;text-align:center;height:32px;font-size:13px;line-height:32px;border-radius:6px;border:1px solid rgb(var(--grey-200))}.univer-pivot-dialog-sort-item:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.univer-pivot-dialog-sort-item:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}.univer-pivot-dialog-sort-item-checked{background-color:rgb(var(--grey-200))}.univer-pivot-dialog-filter{border:1px solid rgb(var(--grey-200));margin:var(--margin-sm) 0 var(--margin-base);padding:var(--padding-sm);border-radius:var(--border-radius-lg);height:300px}.univer-pivot-dialog-filter-scroll{height:100%}.univer-pivot-dialog-filter-item{height:28px;padding:5px 4px 5px 22px;margin-bottom:4px;font-size:13px;box-sizing:border-box}.univer-pivot-dialog-filter-item:last-child{margin-bottom:0}.univer-pivot-dialog-filter-item-checkbox{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-pivot-dialog-filter-footer{display:flex;justify-content:space-between;align-items:center}.univer-pivot-dialog-filter-footer-clear{cursor:pointer;font-size:12px;color:rgb(var(--hyacinth-500))}.univer-pivot-dialog-filter-footer-group{display:flex;align-items:center}.univer-pivot-dialog-filter-footer-group button:last-child{margin-left:8px}.univer-pivot-dialog-numfmt-header{display:flex}.univer-pivot-dialog-numfmt-header-back{font-size:var(--font-size-lg);font-weight:500;height:24px;line-height:24px;margin-bottom:var(--margin-lg);display:flex;align-items:center;cursor:pointer}.univer-pivot-dialog-numfmt-header-back svg{margin-right:8px}.univer-pivot-dialog-numfmt-sub-header{height:20px;line-height:20px;font-size:var(--font-size-xs);font-weight:500;margin-bottom:var(--margin-xs)}.univer-pivot-dialog-numfmt-main-select{width:100%}.univer-pivot-dialog-numfmt-note{margin-top:6px;font-size:13px;line-height:20px;color:rgba(var(--grey-600))}.univer-pivot-dialog-numfmt-accounting,.univer-pivot-dialog-numfmt-currency,.univer-pivot-dialog-numfmt-date,.univer-pivot-dialog-numfmt-thousand{margin-top:20px}.univer-pivot-dialog-numfmt-accounting-body,.univer-pivot-dialog-numfmt-currency-body,.univer-pivot-dialog-numfmt-date-body,.univer-pivot-dialog-numfmt-thousand-body{margin-top:16px}.univer-pivot-dialog-numfmt-sm-options-group{display:flex;justify-content:space-between;align-items:center}.univer-pivot-dialog-numfmt-number-input{height:32px;box-sizing:border-box}.univer-pivot-dialog-numfmt-main-panel{height:176px;border-radius:8px;padding:8px;border:1px solid rgb(var(--grey-200));box-sizing:border-box}.univer-pivot-dialog-numfmt-sm-options{width:136px}.univer-pivot-dialog-numfmt-sm-options-title{margin-bottom:8px;font-size:13px;font-weight:500}.univer-pivot-dialog-numfmt-footer{display:flex;justify-content:flex-end;margin-top:var(--margin-lg)}.univer-pivot-dialog-numfmt-footer button:last-child{margin-left:var(--margin-sm)}.univer-pivot-dialog-numfmt .univer-select-single .univer-select-selector{height:32px}.univer-pivot-dialog-numfmt .univer-select-list{padding:8px;border-radius:8px;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-radio-group-vertical{display:flex;flex-direction:column;font-weight:400;gap:var(--margin-xs)}.univer-univer-pivot-filter-dialog .univer-univer-dialog-title-content{padding:var(--padding-lg) var(--padding-lg) 0}.univer-univer-pivot-filter-dialog .univer-univer-dialog-content{padding:0 var(--padding-lg) var(--padding-lg)}
1
+ .univer-pivot-panel{font-family:PingFang SC;font-size:13px;font-style:normal}.univer-pivot-panel-scrollbar-container{height:100%}.univer-pivot-panel-menu{display:inline-flex;padding:8px;flex-direction:column;align-items:flex-start;border-radius:8px;border:1px solid rgb(var(--grey-200));background:rgb(var(--color-white));box-shadow:0 4px 16px #1e222b14}.univer-pivot-panel-menu-wrap{min-width:120px!important}.univer-pivot-panel-menu-item{display:flex;padding:6px 8px;align-items:center;align-self:stretch;color:rgb(var(--color-black));font-size:13px;font-weight:400;line-height:20px;cursor:pointer}.univer-pivot-panel-menu-item:hover{background:#1e222b0f}.univer-pivot-panel-wrap{width:100%;margin-top:16px;overflow-x:hidden;overflow-y:auto;height:calc(100% - 16px);display:flex;flex-direction:column;scrollbar-width:none}.univer-pivot-panel-wrap::-webkit-scrollbar{display:none}.univer-pivot-panel-block{margin-bottom:16px;min-height:200px;flex:1;display:flex;flex-direction:column}.univer-pivot-panel-source{margin-bottom:16px}.univer-pivot-panel-source-header{height:20px;line-height:20px;font-size:13px;margin-bottom:8px}.univer-pivot-panel-source-header-label{float:left;color:rgb(var(--color-black));text-align:justify;font-style:normal;font-weight:500}.univer-pivot-panel-source-header-desc{float:right;color:rgb(var(--grey-600));font-style:normal;font-weight:400}.univer-pivot-panel-source-input{position:relative}.univer-pivot-panel-source-range-select{box-sizing:border-box}.univer-pivot-panel-source-mask{position:absolute;left:0;top:0;z-index:1000;height:28px;width:calc(100% - 22px)}.univer-pivot-panel-list{position:relative;width:100%;display:flex;flex-direction:row;height:32px;line-height:16px;padding:8px 4px;border-radius:6px;cursor:pointer;box-sizing:border-box}.univer-pivot-panel-list-drag{cursor:move;color:rgb(var(--color-black));font-size:16px}.univer-pivot-panel-list-checkbox{font-size:14px;color:#bcbcbc;width:14px}.univer-pivot-panel-list-type{font-size:12px;color:#bcbcbc;margin:0 6px}.univer-pivot-panel-list-wrap{padding:8px;border-radius:8px;border:1px solid rgb(var(--grey-200));background:#fff;box-sizing:border-box;flex-grow:1;flex-shrink:1;min-height:150px}.univer-pivot-panel-list-title{color:rgb(var(--color-black));font-size:13px;font-style:normal;font-weight:500;line-height:20px;margin-top:0;margin-bottom:4px}.univer-pivot-panel-list-desc{color:rgb(var(--grey-600));font-size:12px;font-weight:400;line-height:16px;margin-top:0;margin-bottom:8px}.univer-pivot-panel-list-content{flex:1;display:inline-block;color:rgb(var(--color-black));font-size:12px;font-style:normal;font-weight:400;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px;display:flex}.univer-pivot-panel-list:hover{background-color:#f0f0f0;white-space:nowrap}.univer-pivot-panel-field-area{padding:0 8px}.univer-pivot-panel-field-area-title{width:100%;color:rgb(var(--color-black));font-size:13px;font-weight:400;line-height:16px;margin-bottom:8px;margin-top:0;display:flex}.univer-pivot-panel-field-area-title-icon{font-size:16px;line-height:16px;width:16px;margin-right:6px}.univer-pivot-panel-field-area-title-text{display:inline-block;vertical-align:top}.univer-pivot-panel-field-area-empty{display:flex;height:140px;padding:0 8px;flex-direction:column;justify-content:center;align-items:center;gap:4px;align-self:stretch}.univer-pivot-panel-field-area-empty-icon{width:32px;height:32px}.univer-pivot-panel-field-area-empty-desc{color:rgb(var(--grey-600));text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.univer-pivot-panel-field-area-holder{width:100%;height:0px;border-top:1px solid rgb(var(--primary-color))}.univer-pivot-panel-field-area-wrap{flex:1;min-height:200px;padding:4px}.univer-pivot-panel-field-area-content{height:160px;width:113px;padding:8px 0;flex-direction:column;overflow-x:hidden;justify-content:center;align-items:center;box-sizing:border-box;border-radius:8px;border:1px solid rgb(var(--border-color));background:#fafafa}.univer-pivot-panel-field-area-content-dropping{border:1px solid rgb(var(--primary-color-hover))}.univer-pivot-panel-field-area-placeholder{max-width:118px;height:1px;overflow:hidden}.univer-pivot-panel-field-area-item{display:flex;padding:2px;align-items:center;gap:4px;align-self:stretch;line-height:16px;border:1px solid transparent}.univer-pivot-panel-field-area-item-text{flex:1 0 0;color:#1e222b;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:400;line-height:16px;max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-pivot-panel-field-area-item-dragging,.univer-pivot-panel-field-area-item:hover{background-color:#f0f0f0}.univer-pivot-panel-field-area-item-more{cursor:default}.univer-pivot-panel-field-area-group{display:flex;flex-direction:row;gap:16px}.univer-pivot-panel-dialog-title{display:flex;justify-content:space-between;align-items:center;align-self:stretch;line-height:20px}.univer-pivot-panel-dialog-title-text{color:rgb(var(--color-black));font-size:13px;font-weight:500;line-height:20px}.univer-pivot-panel-dialog-title-desc{font-size:12px;font-style:normal;font-weight:400;line-height:16px;color:rgb(var(--text-color-secondary))}.univer-pivot-panel-dialog-input{width:100%;margin-top:8px;margin-bottom:20px;padding:6px 10px;font-size:13px;height:32px;line-height:20px;border-radius:6px;box-sizing:border-box}.univer-pivot-panel-dialog-footer{display:flex;justify-content:space-between;align-items:center;align-self:stretch;margin-top:20px}.univer-pivot-panel-dialog-footer-btn{height:32px;padding:0 12px;border:none;border-radius:var(--border-radius-base);cursor:pointer}.univer-pivot-panel-dialog-footer-cancel{color:#7a7a7a;background-color:#fff;border:1px solid rgb(var(--border-color))}.univer-pivot-panel-dialog-footer-fmt{display:flex;height:24px;padding:0 8px;justify-content:center;align-items:center;gap:6px;background-color:#fff;color:rgb(var(--primary-color))}.univer-pivot-panel-dialog-footer-control{display:flex;align-items:flex-start;gap:12px;font-size:14px}.univer-pivot-panel-dialog-summarize{display:flex;padding:8px;width:100%;align-items:flex-start;height:160px}.univer-pivot-panel-dialog-summarize-select{flex:1;height:160px;border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-pivot-panel-dialog-summarize-label{color:rgb(var(--color-black));font-size:14px;font-weight:500;line-height:normal;margin-bottom:8px}.univer-pivot-panel-dialog-summarize-item{display:flex;padding:6px 8px;border-radius:6px;align-items:center;gap:6px;align-self:stretch;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-transform:capitalize}.univer-pivot-panel-dialog-summarize-item-icon{font-size:16px;color:rgb(var(--success-color));width:16px}.univer-pivot-panel-dialog-summarize-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-pivot-panel-dialog-content{display:flex;flex-direction:column;gap:16px}.univer-pivot-dialog-range-selector-sub-title,.univer-pivot-dialog-range-selector-sub-title-last{margin-bottom:var(--margin-xs);font-size:var(--font-size-xs);font-weight:500;height:20px;line-height:20px}.univer-pivot-dialog-range-selector-sub-title-last{margin-top:var(--margin-lg)}.univer-pivot-dialog-range-selector-last{margin-top:var(--margin-xs)}.univer-pivot-dialog-range-selector-error,.univer-pivot-dialog-range-selector-error:hover{border:1px solid rgb(var(--red-400))}.univer-pivot-dialog-range-selector-error-text{height:20px;line-height:20px;color:rgb(var(--red-400));font-size:var(--font-size-xs);font-weight:400}.univer-pivot-dialog-range-selector-footer{margin-top:var(--margin-lg);display:flex;justify-content:flex-end}.univer-pivot-dialog-range-selector-footer-confirm{margin-left:var(--margin-sm)}.univer-pivot-dialog-sort{display:flex}.univer-pivot-dialog-sort-item{flex:1;display:flex;cursor:pointer;align-items:center;justify-content:center;width:140px;text-align:center;height:32px;font-size:13px;line-height:32px;border-radius:6px;border:1px solid rgb(var(--grey-200))}.univer-pivot-dialog-sort-item:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.univer-pivot-dialog-sort-item:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}.univer-pivot-dialog-sort-item-checked,.univer-pivot-dialog-sort-item:hover{background-color:rgb(var(--grey-200))}.univer-pivot-dialog-filter{border:1px solid rgb(var(--grey-200));margin:var(--margin-sm) 0 var(--margin-base);padding:var(--padding-sm);border-radius:var(--border-radius-lg);height:300px}.univer-pivot-dialog-filter-scroll{height:100%}.univer-pivot-dialog-filter-item{height:28px;padding:5px 4px 5px 22px;margin-bottom:4px;font-size:13px;box-sizing:border-box}.univer-pivot-dialog-filter-item:last-child{margin-bottom:0}.univer-pivot-dialog-filter-item-checkbox{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-pivot-dialog-filter-footer{display:flex;justify-content:space-between;align-items:center}.univer-pivot-dialog-filter-footer-clear{cursor:pointer;font-size:12px;color:rgb(var(--hyacinth-500))}.univer-pivot-dialog-filter-footer-group{display:flex;align-items:center}.univer-pivot-dialog-filter-footer-group button:last-child{margin-left:8px}.univer-pivot-dialog-numfmt-header{display:flex}.univer-pivot-dialog-numfmt-header-back{font-size:var(--font-size-lg);font-weight:500;height:24px;line-height:24px;margin-bottom:var(--margin-lg);display:flex;align-items:center;cursor:pointer}.univer-pivot-dialog-numfmt-header-back svg{margin-right:8px}.univer-pivot-dialog-numfmt-sub-header{height:20px;line-height:20px;font-size:var(--font-size-xs);font-weight:500;margin-bottom:var(--margin-xs)}.univer-pivot-dialog-numfmt-main-select{width:100%}.univer-pivot-dialog-numfmt-note{margin-top:6px;font-size:13px;line-height:20px;color:rgba(var(--grey-600))}.univer-pivot-dialog-numfmt-accounting,.univer-pivot-dialog-numfmt-currency,.univer-pivot-dialog-numfmt-date,.univer-pivot-dialog-numfmt-thousand{margin-top:20px}.univer-pivot-dialog-numfmt-accounting-body,.univer-pivot-dialog-numfmt-currency-body,.univer-pivot-dialog-numfmt-date-body,.univer-pivot-dialog-numfmt-thousand-body{margin-top:16px}.univer-pivot-dialog-numfmt-sm-options-group{display:flex;justify-content:space-between;align-items:center}.univer-pivot-dialog-numfmt-number-input{height:32px;box-sizing:border-box}.univer-pivot-dialog-numfmt-main-panel{height:176px;border-radius:8px;padding:8px;border:1px solid rgb(var(--grey-200));box-sizing:border-box}.univer-pivot-dialog-numfmt-sm-options{width:136px}.univer-pivot-dialog-numfmt-sm-options-title{margin-bottom:8px;font-size:13px;font-weight:500}.univer-pivot-dialog-numfmt-footer{display:flex;justify-content:flex-end;margin-top:var(--margin-lg)}.univer-pivot-dialog-numfmt-footer button:last-child{margin-left:var(--margin-sm)}.univer-pivot-dialog-numfmt .univer-select-single .univer-select-selector{height:32px}.univer-pivot-dialog-numfmt .univer-select-list{padding:8px;border-radius:8px;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-radio-group-vertical{display:flex;flex-direction:column;font-weight:400;gap:var(--margin-xs)}.univer-univer-pivot-filter-dialog .univer-univer-dialog-title-content{padding:var(--padding-lg) var(--padding-lg) 0}.univer-univer-pivot-filter-dialog .univer-univer-dialog-content{padding:0 var(--padding-lg) var(--padding-lg)}
@@ -91,7 +91,9 @@
91
91
  },
92
92
  "msg": {
93
93
  "emptySourceRange": "Data source range is empty",
94
- "invalidSize": "Data source range is invalid"
94
+ "invalidSize": "Data source range is invalid",
95
+ "mergeCellError": "Cannot insert merged cells into pivot table",
96
+ "editCellError": "Cannot edit cells in pivot table"
95
97
  }
96
98
  }
97
99
  }
@@ -91,7 +91,9 @@
91
91
  },
92
92
  "msg": {
93
93
  "emptySourceRange": "Источник данных пуст",
94
- "invalidSize": "Недопустимый размер источника данных"
94
+ "invalidSize": "Недопустимый размер источника данных",
95
+ "mergeCellError": "Невозможно вставить сводную таблицу в объединенные ячейки",
96
+ "editCellError": "Невозможно редактировать ячейки в сводной таблице"
95
97
  }
96
98
  }
97
99
  }
@@ -91,7 +91,9 @@
91
91
  },
92
92
  "msg": {
93
93
  "emptySourceRange": "Vui lòng chọn nguồn dữ liệu",
94
- "invalidSize": "Kích thước dữ liệu không hợp lệ"
94
+ "invalidSize": "Kích thước dữ liệu không hợp lệ",
95
+ "mergeCellError": "Không thể chèn ô đã gộp vào bảng Pivot",
96
+ "editCellError": "Không thể chỉnh sửa ô trong bảng Pivot"
95
97
  }
96
98
  }
97
99
  }
@@ -91,7 +91,9 @@
91
91
  },
92
92
  "msg": {
93
93
  "emptySourceRange": "数据源范围为空",
94
- "invalidSize": "数据源范围不合法"
94
+ "invalidSize": "数据源范围不合法",
95
+ "mergeCellError": "无法在透视表区域添加合并单元格",
96
+ "editCellError": "无法编辑透视表中的单元格"
95
97
  }
96
98
  }
97
99
  }
@@ -91,7 +91,9 @@
91
91
  },
92
92
  "msg": {
93
93
  "emptySourceRange": "請選擇數據源",
94
- "invalidSize": "無效的數據大小"
94
+ "invalidSize": "無效的數據大小",
95
+ "mergeCellError": "合併單元格無法插入數據透視表",
96
+ "editCellError": "無法編輯數據透視表中的單元格"
95
97
  }
96
98
  }
97
99
  }
@@ -15,3 +15,4 @@ export declare enum PivotFilterStatus {
15
15
  HasFilter = "HasFilter",
16
16
  NotFilter = "NotFilter"
17
17
  }
18
+ export declare const PANEL_WIDTH = 346;
@@ -1,15 +1,13 @@
1
1
  import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
2
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
+ import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
3
3
  import { SheetsSelectionsService } from '@univerjs/sheets';
4
- import { IRangeSelectorService, ISidebarService } from '@univerjs/ui';
5
4
  export declare class SheetsPivotTableEditController extends Disposable {
6
5
  private readonly _sheetsSelectionsService;
7
6
  private readonly _univerInstanceService;
8
7
  private readonly _sheetsPivotTableAdaptorModel;
9
8
  private readonly _commandService;
10
- private readonly _sidebarService;
11
- private _rangeSelectorService;
12
9
  private _sheetsPivotTableConfigModel;
13
- constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
10
+ private readonly _localeService;
11
+ constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _localeService: LocaleService);
14
12
  private _initEditListener;
15
13
  }
@@ -0,0 +1,12 @@
1
+ import { SheetsPivotTableAdaptorModel } from '@univerjs-pro/sheets-pivot';
2
+ import { Disposable, LocaleService } from '@univerjs/core';
3
+ import { IMessageService } from '@univerjs/ui';
4
+ import { IFormatPainterService } from '@univerjs/sheets-ui';
5
+ export declare class SheetsPivotTableFormatPaintController extends Disposable {
6
+ private readonly _sheetsPivotTableAdaptorModel;
7
+ private _formatPainterService;
8
+ private readonly _messageService;
9
+ private readonly _localeService;
10
+ constructor(_sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _formatPainterService: IFormatPainterService, _messageService: IMessageService, _localeService: LocaleService);
11
+ private _initFormatPainterListener;
12
+ }
@@ -1,7 +1,7 @@
1
1
  import { SheetsPivotTableAdaptorModel } from '@univerjs-pro/sheets-pivot';
2
2
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
3
3
  import { SheetsSelectionsService } from '@univerjs/sheets';
4
- import { IRangeSelectorService, ISidebarService } from '@univerjs/ui';
4
+ import { IDialogService, IRangeSelectorService, ISidebarService } from '@univerjs/ui';
5
5
  export declare class SheetsPivotTablePanelController extends Disposable {
6
6
  private readonly _sheetsSelectionsService;
7
7
  private readonly _univerInstanceService;
@@ -9,8 +9,11 @@ export declare class SheetsPivotTablePanelController extends Disposable {
9
9
  private readonly _commandService;
10
10
  private readonly _sidebarService;
11
11
  private _rangeSelectorService;
12
+ private _dialogService;
12
13
  private _pivotTableId;
13
- constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService);
14
+ private _pivotTablePanelVisible$;
15
+ pivotTablePanelVisible$: import('rxjs').Observable<boolean>;
16
+ constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _dialogService: IDialogService);
14
17
  private _setPivotTableId;
15
18
  private _initPanelOpen;
16
19
  private _initSheetChange;
@@ -0,0 +1,10 @@
1
+ import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
2
+ import { Disposable } from '@univerjs/core';
3
+ import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
4
+ export declare class SheetsPivotPrintController extends Disposable {
5
+ private readonly _sheetPrintInterceptorService;
6
+ private readonly _sheetsPivotTableAdaptorModel;
7
+ private readonly _sheetsPivotTableConfigModel;
8
+ constructor(_sheetPrintInterceptorService: SheetPrintInterceptorService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
9
+ private _initPrintArea;
10
+ }
@@ -16,7 +16,7 @@ export declare class SheetsPivotRefRangeController extends Disposable {
16
16
  private _onRefRangeChange;
17
17
  private _refRangeHandle;
18
18
  getRefRangeMutationsByMoveRange(params: IMoveRangeCommandParams, unitId: string, subUnitId: string): {
19
- undos: IMutationInfo<object>[];
20
- redos: IMutationInfo<object>[];
19
+ redos: IMutationInfo[];
20
+ undos: IMutationInfo[];
21
21
  };
22
22
  }
@@ -92,6 +92,8 @@ declare const locale: {
92
92
  msg: {
93
93
  emptySourceRange: string;
94
94
  invalidSize: string;
95
+ mergeCellError: string;
96
+ editCellError: string;
95
97
  };
96
98
  };
97
99
  };
@@ -1,5 +1,7 @@
1
1
  import { default as React } from 'react';
2
+ import { DraggableLocation } from 'react-beautiful-dnd';
2
3
  import { IPivotPanelDataInfo } from '@univerjs-pro/sheets-pivot';
4
+ import { Nullable } from '@univerjs/core';
3
5
  interface IPivotPanelProps {
4
6
  pivotTableId: string;
5
7
  version: number;
@@ -8,5 +10,10 @@ interface IPivotPanelProps {
8
10
  subUnitId: string;
9
11
  panelInfo: IPivotPanelDataInfo;
10
12
  }
11
- export declare function PivotPanel(props: IPivotPanelProps): React.JSX.Element | undefined;
13
+ export type IDraggingInfo = Nullable<{
14
+ draggingId: string;
15
+ destination?: Nullable<DraggableLocation>;
16
+ source?: Nullable<DraggableLocation>;
17
+ }>;
18
+ export declare function PivotPanel(props: IPivotPanelProps): React.JSX.Element | null;
12
19
  export {};
@@ -1,13 +1,19 @@
1
1
  import { default as React } from 'react';
2
2
  import { IPivotPanelDataInfo, IPivotPanelTableListItemBase, IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
3
3
  import { PivotPanelAreaType } from './util';
4
+ import { IDraggingInfo } from './PivotPanel';
4
5
  interface IPivotFieldAreaItemProps {
5
6
  areaType: PivotPanelAreaType;
6
7
  items: IPivotPanelTableListItemBase[];
7
8
  positionInfo: IPivotTableConfig['targetCellInfo'];
8
9
  pivotTableId: string;
9
10
  pivotTableInfo: IPivotPanelDataInfo;
11
+ containerOffset: {
12
+ top: number;
13
+ left: number;
14
+ };
10
15
  refreshHandler: () => void;
16
+ draggingInfo: IDraggingInfo;
11
17
  }
12
18
  export declare function PivotFieldAreaItem(props: IPivotFieldAreaItemProps): React.JSX.Element;
13
19
  export {};
@@ -4,12 +4,15 @@ interface IPivotSourceListProps {
4
4
  sourceList: IPivotPanelSourceList[];
5
5
  refreshHandler: () => void;
6
6
  pivotTableId: string;
7
- isDropDisabled: boolean;
8
7
  pivotTableInfo: IPivotPanelDataInfo;
9
8
  unitId: string;
10
9
  subUnitId: string;
11
10
  sourceRef: React.RefObject<HTMLDivElement>;
12
11
  draggingId: string;
12
+ containerOffset: {
13
+ top: number;
14
+ left: number;
15
+ };
13
16
  }
14
17
  export declare function PivotSourceList(props: IPivotSourceListProps): React.JSX.Element;
15
18
  export {};
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { IPivotPanelSourceList, IPivotPanelTableListItemBase } from '@univerjs-pro/sheets-pivot';
3
2
  interface IPivotFilterPanelProps {
4
3
  pivotTableId: string;
@@ -9,6 +8,7 @@ interface IPivotFilterPanelProps {
9
8
  format?: string;
10
9
  tableFieldInfo: IPivotPanelTableListItemBase;
11
10
  dataFieldInfo: IPivotPanelSourceList;
11
+ version: number;
12
12
  }
13
- export declare function PivotSettingDialog(props: IPivotFilterPanelProps): React.JSX.Element | undefined;
13
+ export declare function PivotSettingDialog(props: IPivotFilterPanelProps): JSX.Element | undefined;
14
14
  export {};
@@ -1,6 +1,7 @@
1
1
  import { IPivotTableFilterInfo, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
2
2
  import { ICommandService, IRange, Nullable, Worksheet } from '@univerjs/core';
3
3
  import { IPivotPanelDataInfo, IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
4
+ import { DraggingStyle, NotDraggingStyle } from 'react-beautiful-dnd';
4
5
  import { PivotFilterStatus } from '../../const';
5
6
  export declare const PivotDropId = "PivotDropId";
6
7
  export declare const PivotMultipleValueId = "PivotMultipleValueId";
@@ -49,7 +50,7 @@ interface ISummarizeListItem {
49
50
  textKey: string;
50
51
  }
51
52
  export declare const SummarizeByList: ISummarizeListItem[];
52
- export declare const getDecimalFromPattern: (pattern: string, defaultValue?: number) => any;
53
+ export declare const getDecimalFromPattern: (pattern: string, defaultValue?: number) => number;
53
54
  /**
54
55
  * Determines whether two pattern are equal, excluding differences in decimal places
55
56
  */
@@ -78,4 +79,9 @@ export declare const getPrefixName: (baseName: string, textInfo: Record<string,
78
79
  export declare function getPivotFilterStatus(filterInfo: Nullable<IPivotTableFilterInfo>, additionalParams: {
79
80
  items?: string[];
80
81
  }): PivotFilterStatus;
82
+ export declare const getDraggingCorrectedStyle: (isDragging: boolean, style: DraggingStyle | NotDraggingStyle | undefined, containerOffset: {
83
+ top: number;
84
+ left: number;
85
+ }) => React.CSSProperties | null;
86
+ export declare const getNotDraggedStyle: (draggableId: string, currentId: string) => React.CSSProperties | null;
81
87
  export {};