@univerjs-pro/sheets-pivot-ui 0.2.11 → 0.2.13
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/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.css +1 -1
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +2 -1
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +2 -1
- package/lib/types/commands/commands/pivot-drill-down.command.d.ts +3 -0
- package/lib/types/controllers/config.schema.d.ts +7 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/sheets-pivot-menu.controller.d.ts +7 -8
- package/lib/types/controllers/sheets-pivot-panel.controller.d.ts +4 -2
- package/lib/types/controllers/sheets-pivot-permission.controller.d.ts +7 -0
- package/lib/types/controllers/sheets-pivot-render.controller.d.ts +7 -4
- package/lib/types/controllers/sheets-pivot-toolbar.controller.d.ts +10 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/plugin.d.ts +4 -6
- package/lib/types/services/sheets-pivot-ui.service.d.ts +3 -1
- package/lib/types/type.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +30 -26
- package/lib/types/controllers/sheets-pivot-table-menu.controller.d.ts +0 -12
package/lib/index.css
CHANGED
@@ -1 +1 @@
|
|
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)}
|
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;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;height:100%;box-sizing:border-box}.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)}
|
package/lib/locale/en-US.json
CHANGED
@@ -93,7 +93,8 @@
|
|
93
93
|
"emptySourceRange": "Data source range is empty",
|
94
94
|
"invalidSize": "Data source range is invalid",
|
95
95
|
"mergeCellError": "Cannot insert merged cells into pivot table",
|
96
|
-
"editCellError": "Cannot edit cells in pivot table"
|
96
|
+
"editCellError": "Cannot edit cells in pivot table",
|
97
|
+
"permissionError": "Cannot edit pivot table in a protected sheet"
|
97
98
|
}
|
98
99
|
}
|
99
100
|
}
|
package/lib/locale/ru-RU.json
CHANGED
@@ -93,7 +93,8 @@
|
|
93
93
|
"emptySourceRange": "Источник данных пуст",
|
94
94
|
"invalidSize": "Недопустимый размер источника данных",
|
95
95
|
"mergeCellError": "Невозможно вставить сводную таблицу в объединенные ячейки",
|
96
|
-
"editCellError": "Невозможно редактировать ячейки в сводной таблице"
|
96
|
+
"editCellError": "Невозможно редактировать ячейки в сводной таблице",
|
97
|
+
"permissionError": "Невозможно редактировать сводную таблицу в защищенном листе"
|
97
98
|
}
|
98
99
|
}
|
99
100
|
}
|
package/lib/locale/vi-VN.json
CHANGED
@@ -93,7 +93,8 @@
|
|
93
93
|
"emptySourceRange": "Vui lòng chọn nguồn dữ liệu",
|
94
94
|
"invalidSize": "Kích thước dữ liệu không hợp lệ",
|
95
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"
|
96
|
+
"editCellError": "Không thể chỉnh sửa ô trong bảng Pivot",
|
97
|
+
"permissionError": "Không thể chỉnh sửa bảng Pivot trong bảng đã được bảo vệ"
|
97
98
|
}
|
98
99
|
}
|
99
100
|
}
|
package/lib/locale/zh-CN.json
CHANGED
package/lib/locale/zh-TW.json
CHANGED
@@ -0,0 +1,7 @@
|
|
1
|
+
import { MenuConfig } from '@univerjs/ui';
|
2
|
+
export declare const PLUGIN_CONFIG_KEY = "sheets-pivot-ui.config";
|
3
|
+
export declare const configSymbol: unique symbol;
|
4
|
+
export interface IUniverSheetsPivotUIConfig {
|
5
|
+
menu?: MenuConfig;
|
6
|
+
}
|
7
|
+
export declare const defaultPluginConfig: IUniverSheetsPivotUIConfig;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { MergeCellController } from '@univerjs/sheets';
|
1
|
+
import { Disposable } from '@univerjs/core';
|
2
|
+
import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
|
4
3
|
export declare class SheetsPivotMenuController extends Disposable {
|
5
|
-
|
6
|
-
private
|
7
|
-
|
8
|
-
|
9
|
-
private
|
4
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
5
|
+
private readonly _componentManager;
|
6
|
+
constructor(_menuManagerService: IMenuManagerService, _componentManager: ComponentManager);
|
7
|
+
private _initComponents;
|
8
|
+
private _initMenu;
|
10
9
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SheetsPivotTableAdaptorModel } from '@univerjs-pro/sheets-pivot';
|
2
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
2
|
+
import { Disposable, ICommandService, Injector, IPermissionService, IUniverInstanceService } from '@univerjs/core';
|
3
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
4
4
|
import { IDialogService, IRangeSelectorService, ISidebarService } from '@univerjs/ui';
|
5
5
|
export declare class SheetsPivotTablePanelController extends Disposable {
|
@@ -10,10 +10,12 @@ export declare class SheetsPivotTablePanelController extends Disposable {
|
|
10
10
|
private readonly _sidebarService;
|
11
11
|
private _rangeSelectorService;
|
12
12
|
private _dialogService;
|
13
|
+
private _injector;
|
14
|
+
private _permissionService;
|
13
15
|
private _pivotTableId;
|
14
16
|
private _pivotTablePanelVisible$;
|
15
17
|
pivotTablePanelVisible$: import('rxjs').Observable<boolean>;
|
16
|
-
constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _dialogService: IDialogService);
|
18
|
+
constructor(_sheetsSelectionsService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _commandService: ICommandService, _sidebarService: ISidebarService, _rangeSelectorService: IRangeSelectorService, _dialogService: IDialogService, _injector: Injector, _permissionService: IPermissionService);
|
17
19
|
private _setPivotTableId;
|
18
20
|
private _initPanelOpen;
|
19
21
|
private _initSheetChange;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Disposable, ICommandService, IPermissionService } from '@univerjs/core';
|
2
|
+
export declare class SheetsPivotPrintController extends Disposable {
|
3
|
+
private readonly _permissionService;
|
4
|
+
private readonly _commandService;
|
5
|
+
constructor(_permissionService: IPermissionService, _commandService: ICommandService);
|
6
|
+
private _initPermissionWithPivot;
|
7
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Workbook, Disposable, Injector } from '@univerjs/core';
|
1
|
+
import { Workbook, Disposable, ICommandService, Injector, IPermissionService } from '@univerjs/core';
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
3
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
3
|
+
import { SheetPermissionInterceptorBaseController, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
4
4
|
import { SheetsPivotTableAdaptorModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
|
5
5
|
import { ComponentManager } from '@univerjs/ui';
|
6
6
|
export declare class SheetsPivotRenderController extends Disposable implements IRenderModule {
|
@@ -10,9 +10,12 @@ export declare class SheetsPivotRenderController extends Disposable implements I
|
|
10
10
|
private _sheetSkeletonManagerService;
|
11
11
|
private _componentManager;
|
12
12
|
private readonly _sheetsPivotTableConfigModel;
|
13
|
+
private readonly _commandService;
|
14
|
+
private readonly _sheetPermissionInterceptorBaseController;
|
15
|
+
private readonly _permissionService;
|
13
16
|
private _pivotButtonShapesArr;
|
14
|
-
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _componentManager: ComponentManager, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
|
17
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _componentManager: ComponentManager, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _commandService: ICommandService, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController, _permissionService: IPermissionService);
|
15
18
|
private _initButtonRender;
|
16
19
|
private _initSkeleton;
|
17
|
-
private
|
20
|
+
private _initListener;
|
18
21
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
|
2
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
3
|
+
import { MergeCellController } from '@univerjs/sheets';
|
4
|
+
export declare class SheetsPivotToolbarController extends Disposable {
|
5
|
+
private _mergeCellController;
|
6
|
+
private _univerInstanceService;
|
7
|
+
private readonly _sheetsPivotTableConfigModel;
|
8
|
+
constructor(_mergeCellController: MergeCellController, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel);
|
9
|
+
private _initMenuInterceptor;
|
10
|
+
}
|
package/lib/types/plugin.d.ts
CHANGED
@@ -1,17 +1,15 @@
|
|
1
|
-
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
1
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
3
|
-
import {
|
4
|
-
export interface IUniverSheetsPivotTableUIConfig {
|
5
|
-
menu: MenuConfig;
|
6
|
-
}
|
3
|
+
import { IUniverSheetsPivotUIConfig } from './controllers/config.schema';
|
7
4
|
export declare class UniverSheetsPivotTableUIPlugin extends Plugin {
|
8
5
|
private readonly _config;
|
9
6
|
readonly _injector: Injector;
|
10
7
|
private readonly _commandService;
|
11
8
|
private readonly _renderManagerService;
|
9
|
+
private readonly _configService;
|
12
10
|
static pluginName: string;
|
13
11
|
static type: UniverInstanceType;
|
14
|
-
constructor(_config: Partial<
|
12
|
+
constructor(_config: Partial<IUniverSheetsPivotUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _configService: IConfigService);
|
15
13
|
onStarting(): void;
|
16
14
|
onReady(): void;
|
17
15
|
private _registerRenderModules;
|
@@ -3,6 +3,7 @@ import { IPivotCellPositionInfo, SheetsPivotTableConfigModel } from '@univerjs-p
|
|
3
3
|
import { IMutationInfo, IRange, Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
4
4
|
import { ISetRangeValuesMutationParams, SheetInterceptorService } from '@univerjs/sheets';
|
5
5
|
import { IConfirmService } from '@univerjs/ui';
|
6
|
+
import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
|
6
7
|
export declare class SheetsPivotTableUIService extends Disposable {
|
7
8
|
private readonly _injector;
|
8
9
|
private readonly _sheetInterceptorService;
|
@@ -10,7 +11,8 @@ export declare class SheetsPivotTableUIService extends Disposable {
|
|
10
11
|
private readonly _localeService;
|
11
12
|
private readonly _univerInstanceService;
|
12
13
|
private readonly _sheetsPivotTableConfigModel;
|
13
|
-
|
14
|
+
private readonly _sheetPermissionInterceptorBaseController;
|
15
|
+
constructor(_injector: Injector, _sheetInterceptorService: SheetInterceptorService, _confirmService: IConfirmService, _localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetPermissionInterceptorBaseController: SheetPermissionInterceptorBaseController);
|
14
16
|
confirmCheckByView(cellInfo: IPivotCellPositionInfo, view: PivotView, isEmpty: boolean): Promise<{
|
15
17
|
perform: boolean;
|
16
18
|
mutations: import('@univerjs/core').IUndoRedoCommandInfosByInterceptor;
|