@platox/pivot-table 0.0.2
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/README.md +54 -0
- package/index.d.ts +87 -0
- package/lib/index.js +43181 -0
- package/lib/index.umd.cjs +178 -0
- package/lib/style.css +1 -0
- package/package.json +65 -0
package/lib/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pivot-table-modal.box-widget-popover-item-container{padding:0 10px 20px}.pivot-table-modal .box-widget-popover-item-group-content{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:grid;gap:10px;grid-template-columns:repeat(4,1fr);justify-items:center;margin-top:3px}.pivot-table-modal .box-widget-popover-item-group{margin-top:10px}.pivot-table-modal .box-widget-popover-item-group-header{color:#646a73;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:400;line-height:20px;margin-bottom:5px}.pivot-table-modal .box-widget-popover-item{background-color:#fff;border:1px solid #f0f0f0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:92px;padding:12px 10px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:92px}.pivot-table-modal .box-widget-popover-item .title{color:#1f2329;font-size:12px;font-weight:400;line-height:20px;margin-bottom:8px;overflow-x:hidden;text-align:center;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.config-widget-dialog-container{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;overflow:hidden;position:relative}.config-widget-dialog-content{position:relative;flex:1}.config-widget-dialog-panel{border-left:1px solid #dee0e3;box-sizing:border-box;display:flex;flex:0 330px;flex-direction:column;height:100%;position:relative;padding:0 25px;width:330px}.bitable-dashboard.edit-panel-container{background-color:#fff;border:none;font-size:14px;font-weight:400;line-height:22px;overflow:hidden;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.config-widget-dialog-preview{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:4px;position:relative;width:100%}.config-widget-dialog-panel .button-container.transparent{background-color:transparent}.config-widget-dialog-panel .button-container{background-color:#fff;bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:70px;padding-right:24px;text-align:right;width:100%;z-index:100}.pivot-table .bitable-block-dashboard{-webkit-box-orient:vertical;-webkit-box-direction:normal;background:#f2f3f5;display:flex;flex-direction:column;height:100%;width:100%;position:relative}.pivot-table .bitable-block-dashboard>.bitable-toolbar,.pivot-table .bitable-block-dashboard>.bitable-toolbar-doc-fullscreen{height:60px;padding-left:20px}.pivot-table .bitable-toolbar,.pivot-table .bitable-toolbar-doc-fullscreen{height:44px;padding-left:16px}.pivot-table .bitable-block-dashboard-toolbar{box-sizing:border-box;background:#f2f3f5;cursor:default;display:flex;height:60px;justify-content:space-between;align-items:center;left:0;min-width:fit-content;padding:0 20px 0 18px;position:absolute;right:15px;width:100%;z-index:10}.pivot-table .bitable-block-dashboard-toolbar--left{align-items:center;display:flex}.pivot-table .bitable-block-dashboard__mount{flex:1;height:0;margin-top:60px;overflow-x:visible;overflow-y:visible;z-index:9}.pivot-table .dashboard-container{height:100%;position:relative;width:100%}.pivot-table .dashboard-content-container{overflow-x:hidden}.pivot-table .react-grid-layout{position:relative;transition:height .2s ease;box-sizing:content-box;min-height:100%;overflow:hidden;padding-bottom:10px}.pivot-table .bitable-block-name{font-size:14px;margin-right:34px}.pivot-table .box-dashboard .layout-item-head{-webkit-box-sizing:border-box;box-sizing:border-box;height:40px;max-height:40px;min-height:14px;padding:14px 12px 4px 16px;position:relative;z-index:1}.pivot-table .box-dashboard .layout-item-head.isCanDrag{cursor:-webkit-grab;cursor:grab;opacity:1}.pivot-table .bitable-block-dashboard__mount:not(.generalized-mobile) .layout-item .layout-item-head{padding-right:12px}.pivot-table .box-dashboard .layout-item-head .head-inner{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:100%;min-width:5px;width:100%}.pivot-table .box-dashboard .layout-item-head .head-inner .title{-webkit-box-sizing:content-box;box-sizing:content-box;color:var(--text-title);-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:14px;font-weight:500;line-height:16px;min-width:20px}.pivot-table .box-dashboard .layout-item-head .head-inner,.pivot-table .box-dashboard .layout-item-head .head-inner .title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.pivot-table .dashboard-grid-menu-button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border:none;border:1px solid #1f232926;border-radius:6px;color:#646a73;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;height:24px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:24px;cursor:pointer}.pivot-table .dashboard-grid-menu-button:hover{background:#e0e0e0}.pivot-table .box-dashboard .layout-item-head .drag-icon{-webkit-transform:translateY(4px) rotate(90deg);-ms-transform:translateY(4px) rotate(90deg);transform:translateY(4px) rotate(90deg)}.pivot-table .box-dashboard .layout-item-head .menu-slot{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;justify-self:right;margin-left:12px;pointer-events:auto;display:none}.pivot-table .box-dashboard .layout-item-head .drag.isCanDrag{cursor:-webkit-grab;cursor:grab;opacity:1}.pivot-table .box-dashboard .layout-item-head .drag{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;color:var(--icon-n3);display:none;-ms-flex-negative:0;flex-shrink:0;height:14px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;top:-3px}.pivot-table .box-dashboard{background:#fff;border:1px solid transparent;border-radius:8px;box-sizing:border-box;padding:1px;word-break:break-all}.pivot-table .react-resizable-handle{background:#1456f0;border:2px solid #fff;border-radius:50%;bottom:-9px!important;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:nwse-resize;height:16px;display:block;opacity:0;overflow:hidden;position:absolute;right:-9px!important;width:16px;background-image:none!important}.pivot-table .react-resizable-handle:after{display:none}.pivot-table .react-grid-placeholder{background:#000!important;border-radius:6px}.pivot-table .box-dashboard.active .layout-item-head .menu-slot,.pivot-table .box-dashboard.active .layout-item-head:not(.isEditable) .drag,.pivot-table .box-dashboard:hover .layout-item-head .menu-slot,.pivot-table .box-dashboard:hover .layout-item-head:not(.isEditable) .drag{-webkit-animation:fadeIn .2s linear forwards;animation:fadeIn .2s linear forwards;display:-webkit-box;display:-ms-flexbox;display:flex}.pivot-table .box-dashboard:hover{border:2px solid #c2d4ff;padding:0}.pivot-table .box-dashboard.active{border:2px solid #1456f0;padding:0}.pivot-table .box-dashboard.active .react-resizable-handle,.pivot-table .box-dashboard:hover .react-resizable-handle{opacity:1}.pivot-table .box-calendar-module{height:100%;overflow-y:auto;padding:20px}.pivot-table .box-calendar-module .ant-picker-calendar-mode-switch{display:none}.pivot-table .box-calendar-module .ant-picker-calendar-header{padding-right:20px}.pivot-table .stat-description-text,.pivot-table .stat-text{text-align:center;-o-text-overflow:ellipsis;text-overflow:ellipsis;-webkit-transition:font-size .3s linear;-o-transition:font-size .3s linear;transition:font-size .3s linear;white-space:nowrap;width:100%}.pivot-table .universe-icon{display:inline-block;font-style:normal;line-height:0;text-align:center;text-transform:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pivot-table .chart-content{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:-40px;overflow:hidden;padding-top:40px}.pivot-table .dashboard-grid-container{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;position:relative;width:100%}.editor-menu{padding:8px 7px 6px;position:absolute;z-index:1;top:-10000px;left:-10000px;margin-top:-6px;opacity:0;z-index:1000000;transition:opacity .75s;background-color:#fff;background-clip:padding-box;border-radius:4;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.pane-item-body .pane-item-title{color:#333;font-weight:500;line-height:22px;margin:0 0 10px}.pane-item-body .panel-single-color-selector{background:#f5f6f7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding:5px 15px;width:100%}.pane-item-body .panel-single-color-selector-color-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:22px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 3px;position:relative;width:22px}.pane-item-body .panel-single-color-selector-color-item-background{border-radius:50%;height:22px;position:absolute;width:22px}.pane-item-body .panel-icon{position:absolute;color:#fff;font-weight:700}.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@platox/pivot-table",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc -b && vite build",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"lib",
|
|
13
|
+
"index.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public",
|
|
17
|
+
"registry": "https://registry.npmjs.org/"
|
|
18
|
+
},
|
|
19
|
+
"main": "./lib/index.umd.cjs",
|
|
20
|
+
"module": "./lib/index.js",
|
|
21
|
+
"types": "./index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"import": "./lib/index.js",
|
|
25
|
+
"require": "./lib/index.umd.cjs"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@ant-design/icons": "^5.5.1",
|
|
29
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
30
|
+
"@types/react-grid-layout": "^1.3.5",
|
|
31
|
+
"dayjs": "^1.11.13",
|
|
32
|
+
"echarts": "^5.5.1",
|
|
33
|
+
"i18next": "^23.16.4",
|
|
34
|
+
"react-grid-layout": "^1.5.0",
|
|
35
|
+
"react-i18next": "^15.1.0",
|
|
36
|
+
"slate": "^0.110.2",
|
|
37
|
+
"slate-history": "^0.109.0",
|
|
38
|
+
"slate-react": "^0.110.2"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@types/react": "^18.3.10",
|
|
42
|
+
"@types/react-dom": "^18.3.0",
|
|
43
|
+
"antd": "^5.21.4",
|
|
44
|
+
"react": "^18.3.1",
|
|
45
|
+
"react-dom": "^18.3.1"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.11.1",
|
|
49
|
+
"@types/node": "^22.8.7",
|
|
50
|
+
"@types/react": "^18.3.10",
|
|
51
|
+
"@types/react-dom": "^18.3.0",
|
|
52
|
+
"@vitejs/plugin-react": "^4.3.2",
|
|
53
|
+
"antd": "^5.21.4",
|
|
54
|
+
"eslint": "^9.11.1",
|
|
55
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
56
|
+
"eslint-plugin-react-refresh": "^0.4.12",
|
|
57
|
+
"globals": "^15.9.0",
|
|
58
|
+
"react": "^18.3.1",
|
|
59
|
+
"react-dom": "^18.3.1",
|
|
60
|
+
"typescript": "^5.5.3",
|
|
61
|
+
"typescript-eslint": "^8.7.0",
|
|
62
|
+
"vite": "^5.4.8",
|
|
63
|
+
"vite-plugin-dts": "^4.3.0"
|
|
64
|
+
}
|
|
65
|
+
}
|