raise-common-lib 0.0.159 → 0.0.161
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/bundles/raise-common-lib.umd.js +111 -83
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/{esm5/lib/layout → esm2015/lib/actions}/toolbar/constants.js +2 -2
- package/esm2015/lib/actions/toolbar/index.component.js +114 -0
- package/esm2015/lib/actions/toolbar-item/index.component.js +92 -0
- package/esm2015/lib/layout/rs-aside/index.component.js +11 -5
- package/esm2015/lib/raise-common-lib.module.js +3 -3
- package/esm2015/public-api.js +3 -3
- package/esm2015/raise-common-lib.js +1 -1
- package/{esm2015/lib/layout → esm5/lib/actions}/toolbar/constants.js +2 -2
- package/esm5/lib/actions/toolbar/index.component.js +121 -0
- package/esm5/lib/actions/toolbar-item/index.component.js +104 -0
- package/esm5/lib/layout/rs-aside/index.component.js +10 -5
- package/esm5/lib/raise-common-lib.module.js +3 -3
- package/esm5/public-api.js +3 -3
- package/esm5/raise-common-lib.js +1 -1
- package/fesm2015/raise-common-lib.js +101 -72
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +111 -83
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/{form → actions}/toolbar-item/index.component.d.ts +1 -0
- package/lib/layout/rs-aside/index.component.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/toolbar-action-addFolder.svg +17 -0
- package/src/assets/img/toolbar-action-calculator.svg +11 -0
- package/src/assets/img/toolbar-action-collapse.svg +7 -0
- package/src/assets/img/toolbar-action-combine.svg +4 -0
- package/src/assets/img/toolbar-action-edit.svg +4 -0
- package/src/assets/img/toolbar-action-expand.svg +7 -0
- package/src/assets/img/toolbar-action-folderMove.svg +8 -0
- package/src/assets/img/toolbar-action-lock.svg +6 -0
- package/src/assets/img/toolbar-action-preview.svg +7 -0
- package/src/assets/img/toolbar-action-publish.svg +5 -0
- package/src/assets/img/toolbar-action-reminders.svg +10 -0
- package/src/assets/img/toolbar-action-rename.svg +7 -0
- package/src/assets/img/toolbar-action-saveSequence.svg +5 -0
- package/src/assets/img/toolbar-action-send-file.svg +5 -0
- package/src/assets/img/toolbar-action-settle.svg +7 -0
- package/src/assets/img/toolbar-action-share.svg +5 -0
- package/src/assets/img/toolbar-action-submitForApproval.svg +4 -0
- package/src/assets/img/toolbar-action-sync.svg +4 -0
- package/src/assets/img/toolbar-action-template.svg +6 -0
- package/src/assets/img/toolbar-action-workflow.svg +9 -0
- package/src/assets/style/reset/dropdown.scss +67 -0
- package/esm2015/lib/form/toolbar-item/index.component.js +0 -68
- package/esm2015/lib/layout/toolbar/index.component.js +0 -114
- package/esm5/lib/form/toolbar-item/index.component.js +0 -80
- package/esm5/lib/layout/toolbar/index.component.js +0 -121
- /package/lib/{layout → actions}/toolbar/constants.d.ts +0 -0
- /package/lib/{layout → actions}/toolbar/index.component.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_14533_30925)">
|
|
3
|
+
<mask id="path-1-inside-1_14533_30925" fill="white">
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.0229 2.69637C1.16918 1.73589 1.99865 1 3 1H5.08928C5.7188 1 6.31158 1.29639 6.68929 1.8L7.36156 2.69637H12.5714C13.5728 2.69637 14.4024 3.43237 14.5486 4.39294H14.5714V4.69637V5.24101V8.63402V10.7546V10.8751C14.5714 11.9797 13.676 12.8751 12.5714 12.8751H11.1786H7.78571H3C1.89543 12.8751 1 11.9797 1 10.8751V5.24101V4.39294V4.39286V3V2.69637H1.0229Z"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<path d="M1.0229 2.69637V3.69637H1.88213L2.0115 2.84694L1.0229 2.69637ZM6.68929 1.8L7.48929 1.2V1.2L6.68929 1.8ZM7.36156 2.69637L6.56156 3.29637L6.86156 3.69637H7.36156V2.69637ZM14.5486 4.39294L13.5599 4.54341L13.6892 5.39294H14.5486V4.39294ZM14.5714 4.39294H15.5714V3.39294H14.5714V4.39294ZM1 2.69637V1.69637H0V2.69637H1ZM1.0229 2.69637L2.0115 2.84694C2.08451 2.36758 2.50024 2 3 2V1V0C1.49707 0 0.253859 1.10421 0.0342995 2.5458L1.0229 2.69637ZM3 1V2H5.08928V1V0H3V1ZM5.08928 1V2C5.40404 2 5.70043 2.14819 5.88929 2.4L6.68929 1.8L7.48929 1.2C6.92272 0.444582 6.03356 0 5.08928 0V1ZM6.68929 1.8L5.88929 2.4L6.56156 3.29637L7.36156 2.69637L8.16156 2.09637L7.48929 1.2L6.68929 1.8ZM7.36156 2.69637V3.69637H12.5714V2.69637V1.69637H7.36156V2.69637ZM12.5714 2.69637V3.69637C13.0712 3.69637 13.487 4.064 13.5599 4.54341L14.5486 4.39294L15.5372 4.24248C15.3177 2.80074 14.0745 1.69637 12.5714 1.69637V2.69637ZM14.5486 4.39294V5.39294H14.5714V4.39294V3.39294H14.5486V4.39294ZM14.5714 4.39294H13.5714V4.69637H14.5714H15.5714V4.39294H14.5714ZM14.5714 4.69637H13.5714V5.24101H14.5714H15.5714V4.69637H14.5714ZM14.5714 5.24101H13.5714V8.63402H14.5714H15.5714V5.24101H14.5714ZM14.5714 8.63402H13.5714V10.7546H14.5714H15.5714V8.63402H14.5714ZM14.5714 10.7546H13.5714V10.8751H14.5714H15.5714V10.7546H14.5714ZM14.5714 10.8751H13.5714C13.5714 11.4274 13.1237 11.8751 12.5714 11.8751V12.8751V13.8751C14.2283 13.8751 15.5714 12.5319 15.5714 10.8751H14.5714ZM12.5714 12.8751V11.8751H11.1786V12.8751V13.8751H12.5714V12.8751ZM11.1786 12.8751V11.8751H7.78571V12.8751V13.8751H11.1786V12.8751ZM7.78571 12.8751V11.8751H3V12.8751V13.8751H7.78571V12.8751ZM3 12.8751V11.8751C2.44771 11.8751 2 11.4274 2 10.8751H1H0C0 12.5319 1.34314 13.8751 3 13.8751V12.8751ZM1 10.8751H2V5.24101H1H0V10.8751H1ZM1 5.24101H2V4.39294H1H0V5.24101H1ZM1 4.39294H2V4.39286H1H0V4.39294H1ZM1 4.39286H2V3H1H0V4.39286H1ZM1 3H2V2.69637H1H0V3H1ZM1 2.69637V3.69637H1.0229V2.69637V1.69637H1V2.69637Z" fill="#6C7C90" mask="url(#path-1-inside-1_14533_30925)"/>
|
|
7
|
+
<rect x="15" y="14" width="9" height="9" fill="#F8F8F8"/>
|
|
8
|
+
<circle cx="11" cy="10" r="4.5" fill="#F8FAFB" stroke="#6C7C90"/>
|
|
9
|
+
<line x1="8" y1="9.92859" x2="14" y2="9.92859" stroke="#6C7C90"/>
|
|
10
|
+
<line x1="10.9287" y1="13" x2="10.9287" y2="7" stroke="#6C7C90"/>
|
|
11
|
+
</g>
|
|
12
|
+
<defs>
|
|
13
|
+
<clipPath id="clip0_14533_30925">
|
|
14
|
+
<rect width="16" height="16" fill="white"/>
|
|
15
|
+
</clipPath>
|
|
16
|
+
</defs>
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="2.5" y="1.5" width="11" height="13" rx="1.5" fill="white" stroke="#6C7C90"/>
|
|
3
|
+
<rect x="10" y="10" width="2" height="1" fill="#6C7C90"/>
|
|
4
|
+
<rect x="10" y="12" width="2" height="1" fill="#6C7C90"/>
|
|
5
|
+
<rect x="4" y="10" width="1.5" height="1" fill="#6C7C90"/>
|
|
6
|
+
<rect x="7" y="10" width="1.5" height="1" fill="#6C7C90"/>
|
|
7
|
+
<rect x="4" y="12" width="1.5" height="1" fill="#6C7C90"/>
|
|
8
|
+
<rect x="7" y="12" width="1.5" height="1" fill="#6C7C90"/>
|
|
9
|
+
<rect x="9" y="5" width="1" height="1" fill="#6C7C90"/>
|
|
10
|
+
<rect x="4.5" y="3.5" width="7" height="4" rx="0.5" stroke="#6C7C90"/>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10.8284 3.67157L8 5.84314L5.17157 3.67157" stroke="#6C7C90" stroke-linecap="round"/>
|
|
3
|
+
<path d="M8 2L8 5" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
<path d="M5.17157 12.1716L8 10L10.8284 12.1716" stroke="#6C7C90" stroke-linecap="round"/>
|
|
5
|
+
<path d="M8 11L8 14" stroke="#6C7C90" stroke-linecap="round"/>
|
|
6
|
+
<path d="M4 8L12 8" stroke="#6C7C90" stroke-linecap="round"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.88478 4H3.9043L3.7002 4.01074C2.69152 4.113 1.9043 4.96435 1.9043 6V12L1.91504 12.2041C2.0105 13.1457 2.75864 13.8938 3.7002 13.9893L3.9043 14H9.9043L10.1084 13.9893C11.05 13.8938 11.7981 13.1457 11.8936 12.2041L11.9043 12V9.53764L10.9043 10.425V12C10.9043 12.5523 10.4566 13 9.9043 13H3.9043C3.35201 13 2.9043 12.5523 2.9043 12V6C2.9043 5.44772 3.35201 5 3.9043 5H7.75785L8.88478 4Z" fill="#6C7C90"/>
|
|
3
|
+
<path d="M13.8897 3.22159C14.2802 3.61211 14.2802 4.24528 13.8897 4.6358L8.27361 10.2519L6.52242 10.5889L6.8594 8.8377L12.4755 3.22159C12.866 2.83106 13.4992 2.83106 13.8897 3.22159Z" stroke="#6C7C90"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10.8289 4.17157L8.00049 2L5.17206 4.17157" stroke="#6C7C90"/>
|
|
3
|
+
<line x1="8" y1="6.15686" x2="8" y2="2.15686" stroke="#6C7C90"/>
|
|
4
|
+
<path d="M5.17157 11.8284L8 14L10.8284 11.8284" stroke="#6C7C90"/>
|
|
5
|
+
<line x1="8" y1="13.5" x2="8" y2="9.5" stroke="#6C7C90"/>
|
|
6
|
+
<path d="M3 8L13 8" stroke="#6C7C90" stroke-linecap="round"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="path-1-inside-1_14533_33884" fill="white">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.01548 3.74994C1.13853 2.76339 1.98012 2 3 2H5.25C5.87951 2 6.47229 2.29639 6.85 2.8L7.56245 3.74994H13C14.02 3.74994 14.8616 4.51344 14.9845 5.50009H15V5.74994V6.37494V12.2501C15 13.3547 14.1046 14.2501 13 14.2501H3C1.89543 14.2501 1 13.3547 1 12.2501V6.37494V5.50009V5.5V4V3.74994H1.01548Z"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<path d="M1.01548 3.74994V4.74994H1.8985L2.00779 3.87371L1.01548 3.74994ZM6.85 2.8L7.65 2.2L6.85 2.8ZM7.56245 3.74994L6.76245 4.34994L7.06245 4.74994H7.56245V3.74994ZM14.9845 5.50009L13.9922 5.62375L14.1014 6.50009H14.9845V5.50009ZM15 5.50009H16V4.50009H15V5.50009ZM1 3.74994V2.74994H0V3.74994H1ZM1.01548 3.74994L2.00779 3.87371C2.06919 3.38146 2.49081 3 3 3V2V1C1.46942 1 0.207877 2.14532 0.0231705 3.62617L1.01548 3.74994ZM3 2V3H5.25V2V1H3V2ZM5.25 2V3C5.56476 3 5.86115 3.14819 6.05 3.4L6.85 2.8L7.65 2.2C7.08344 1.44458 6.19427 1 5.25 1V2ZM6.85 2.8L6.05 3.4L6.76245 4.34994L7.56245 3.74994L8.36245 3.14994L7.65 2.2L6.85 2.8ZM7.56245 3.74994V4.74994H13V3.74994V2.74994H7.56245V3.74994ZM13 3.74994V4.74994C13.5092 4.74994 13.9309 5.13145 13.9922 5.62375L14.9845 5.50009L15.9769 5.37642C15.7923 3.89542 14.5307 2.74994 13 2.74994V3.74994ZM14.9845 5.50009V6.50009H15V5.50009V4.50009H14.9845V5.50009ZM15 5.50009H14V5.74994H15H16V5.50009H15ZM15 5.74994H14V6.37494H15H16V5.74994H15ZM15 6.37494H14V12.2501H15H16V6.37494H15ZM15 12.2501H14C14 12.8024 13.5523 13.2501 13 13.2501V14.2501V15.2501C14.6569 15.2501 16 13.9069 16 12.2501H15ZM13 14.2501V13.2501H3V14.2501V15.2501H13V14.2501ZM3 14.2501V13.2501C2.44772 13.2501 2 12.8024 2 12.2501H1H0C0 13.9069 1.34315 15.2501 3 15.2501V14.2501ZM1 12.2501H2V6.37494H1H0V12.2501H1ZM1 6.37494H2V5.50009H1H0V6.37494H1ZM1 5.50009H2V5.5H1H0V5.50009H1ZM1 5.5H2V4H1H0V5.5H1ZM1 4H2V3.74994H1H0V4H1ZM1 3.74994V4.74994H1.01548V3.74994V2.74994H1V3.74994Z" fill="#6C7C90" mask="url(#path-1-inside-1_14533_33884)"/>
|
|
6
|
+
<path d="M7.91295 11.1179L10.0124 8.97498L7.91295 6.83203" stroke="#6C7C90" stroke-linecap="round"/>
|
|
7
|
+
<line x1="0.5" y1="-0.5" x2="5.5" y2="-0.5" transform="matrix(-1 8.42937e-08 8.42937e-08 1 9.97461 9.47498)" stroke="#6C7C90" stroke-linecap="round"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="3" y="5.5" width="10" height="8" rx="1.5" stroke="#6C7C90"/>
|
|
3
|
+
<path d="M8 1.5C9.38071 1.5 10.5 2.61929 10.5 4V5.5H5.5V4C5.5 2.61929 6.61929 1.5 8 1.5Z" stroke="#6C7C90"/>
|
|
4
|
+
<circle cx="8" cy="9" r="1" stroke="#6C7C90"/>
|
|
5
|
+
<line x1="8" y1="9.5" x2="8" y2="11.5" stroke="#6C7C90"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.91387 13.5H5.44643H4.5C3.39543 13.5 2.5 12.6046 2.5 11.5V3.5C2.5 2.39543 3.39543 1.5 4.5 1.5H11.5C12.6046 1.5 13.5 2.39543 13.5 3.5V7.5" stroke="#6C7C90" stroke-linecap="round"/>
|
|
3
|
+
<path d="M5 7H8" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
<path d="M5 5H9" stroke="#6C7C90" stroke-linecap="round"/>
|
|
5
|
+
<path d="M11.5 9.5C12.4199 9.5 13.3022 10.0269 13.9844 10.6748C14.3194 10.993 14.5881 11.3236 14.7695 11.5967C14.8603 11.7334 14.9242 11.8491 14.9639 11.9355C14.9764 11.9629 14.9836 11.9849 14.9893 12C14.9836 12.0151 14.9764 12.0371 14.9639 12.0645C14.9242 12.1509 14.8603 12.2666 14.7695 12.4033C14.5881 12.6764 14.3194 13.007 13.9844 13.3252C13.3022 13.9731 12.4199 14.5 11.5 14.5C10.5801 14.5 9.69778 13.9731 9.01562 13.3252C8.68062 13.007 8.41189 12.6764 8.23047 12.4033C8.13967 12.2666 8.0758 12.1509 8.03613 12.0645C8.02349 12.0369 8.01539 12.0152 8.00977 12C8.01539 11.9848 8.02349 11.9631 8.03613 11.9355C8.0758 11.8491 8.13967 11.7334 8.23047 11.5967C8.41189 11.3236 8.68062 10.993 9.01562 10.6748C9.69778 10.0269 10.5801 9.5 11.5 9.5Z" stroke="#6C7C90"/>
|
|
6
|
+
<circle cx="11.5" cy="12" r="0.5" stroke="#6C7C90"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13 5.2666L13 13C13 13.8284 12.3284 14.5 11.5 14.5L4.5 14.5C3.67157 14.5 3 13.8284 3 13L3 3C3 2.17157 3.67157 1.5 4.5 1.5L9.46484 1.5C9.83745 1.5 10.1947 1.63884 10.4687 1.88574L10.5811 1.99805L12.6162 4.26367C12.8634 4.53895 13 4.89662 13 5.2666Z" stroke="#6C7C90"/>
|
|
3
|
+
<path d="M6.00001 10.7646L8.20947 8.59991L10.4189 10.7646" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
<line x1="8.20654" y1="9.1626" x2="8.20654" y2="13.4959" stroke="#6C7C90" stroke-linecap="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="13" height="14" viewBox="0 0 13 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="path-1-inside-1_14533_32243" fill="white">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.66195 5.12714C1.66195 2.57164 3.73359 0.5 6.28909 0.5C8.84458 0.5 10.9162 2.57164 10.9162 5.12714V7.10408V7.55356L12.3504 9.29947C12.8864 9.95206 12.4222 10.9342 11.5776 10.9342H1.0019C0.157367 10.9342 -0.306885 9.95206 0.229173 9.29947L1.66195 7.55522V7.10408V5.12714Z"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<path d="M10.9162 7.55356H9.91622V7.91162L10.1435 8.1883L10.9162 7.55356ZM12.3504 9.29947L11.5776 9.93421V9.93421L12.3504 9.29947ZM0.229173 9.29947L1.0019 9.93421L1.0019 9.93421L0.229173 9.29947ZM1.66195 7.55522L2.43468 8.18996L2.66195 7.91327V7.55522H1.66195ZM1.66195 5.12714H2.66195C2.66195 3.12392 4.28587 1.5 6.28909 1.5V0.5V-0.5C3.1813 -0.5 0.661951 2.01936 0.661951 5.12714H1.66195ZM6.28909 0.5V1.5C8.2923 1.5 9.91622 3.12392 9.91622 5.12714H10.9162H11.9162C11.9162 2.01935 9.39687 -0.5 6.28909 -0.5V0.5ZM10.9162 5.12714H9.91622V7.10408H10.9162H11.9162V5.12714H10.9162ZM10.9162 7.10408H9.91622V7.55356H10.9162H11.9162V7.10408H10.9162ZM10.9162 7.55356L10.1435 8.1883L11.5776 9.93421L12.3504 9.29947L13.1231 8.66473L11.6889 6.91882L10.9162 7.55356ZM12.3504 9.29947L11.5776 9.93421V9.93421V10.9342V11.9342C13.2667 11.9342 14.1952 9.96991 13.1231 8.66473L12.3504 9.29947ZM11.5776 10.9342V9.93421H1.0019V10.9342V11.9342H11.5776V10.9342ZM1.0019 10.9342V9.93421L1.0019 9.93421L0.229173 9.29947L-0.543553 8.66473C-1.61567 9.96992 -0.687163 11.9342 1.0019 11.9342V10.9342ZM0.229173 9.29947L1.0019 9.93421L2.43468 8.18996L1.66195 7.55522L0.889225 6.92048L-0.543553 8.66473L0.229173 9.29947ZM1.66195 7.55522H2.66195V7.10408H1.66195H0.661951V7.55522H1.66195ZM1.66195 7.10408H2.66195V5.12714H1.66195H0.661951V7.10408H1.66195Z" fill="#6C7C90" mask="url(#path-1-inside-1_14533_32243)"/>
|
|
6
|
+
<mask id="path-3-inside-2_14533_32243" fill="white">
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.00098 11.7104L4.01267 11.9336C4.11702 12.9599 4.93258 13.7756 5.95896 13.8798L6.18161 13.8916C7.31083 13.8916 8.23973 13.0333 8.35153 11.9336L8.36323 11.7104H7.36325C7.36297 12.3625 6.83374 12.8916 6.18161 12.8916C5.52969 12.8913 5.00123 12.3624 5.00095 11.7104H4.00098Z"/>
|
|
8
|
+
</mask>
|
|
9
|
+
<path d="M4.00098 11.7104V10.7104H2.9472L3.00235 11.7628L4.00098 11.7104ZM4.01267 11.9336L3.01404 11.9859L3.01532 12.0103L3.0178 12.0347L4.01267 11.9336ZM5.95896 13.8798L5.85787 14.8747L5.88209 14.8772L5.9064 14.8785L5.95896 13.8798ZM6.18161 13.8916L6.12905 14.8902L6.15532 14.8916H6.18161V13.8916ZM8.35153 11.9336L9.34641 12.0347L9.34888 12.0103L9.35016 11.9859L8.35153 11.9336ZM8.36323 11.7104L9.36186 11.7628L9.417 10.7104H8.36323V11.7104ZM7.36325 11.7104V10.7104H6.36369L6.36325 11.71L7.36325 11.7104ZM6.18161 12.8916L6.18126 13.8916H6.18161V12.8916ZM5.00095 11.7104L6.00095 11.71L6.00051 10.7104H5.00095V11.7104ZM4.00098 11.7104L3.00235 11.7628L3.01404 11.9859L4.01267 11.9336L5.0113 11.8812L4.99961 11.6581L4.00098 11.7104ZM4.01267 11.9336L3.0178 12.0347C3.17015 13.5333 4.35912 14.7224 5.85787 14.8747L5.95896 13.8798L6.06005 12.885C5.50605 12.8287 5.06388 12.3865 5.00754 11.8324L4.01267 11.9336ZM5.95896 13.8798L5.9064 14.8785L6.12905 14.8902L6.18161 13.8916L6.23417 12.8929L6.01152 12.8812L5.95896 13.8798ZM6.18161 13.8916V14.8916C7.82921 14.8916 9.18324 13.6397 9.34641 12.0347L8.35153 11.9336L7.35666 11.8324C7.29623 12.4269 6.79245 12.8916 6.18161 12.8916V13.8916ZM8.35153 11.9336L9.35016 11.9859L9.36186 11.7628L8.36323 11.7104L7.3646 11.6581L7.35291 11.8812L8.35153 11.9336ZM8.36323 11.7104V10.7104H7.36325V11.7104V12.7104H8.36323V11.7104ZM7.36325 11.7104L6.36325 11.71C6.36321 11.81 6.2816 11.8916 6.18161 11.8916V12.8916V13.8916C7.38588 13.8916 8.36273 12.915 8.36325 11.7109L7.36325 11.7104ZM6.18161 12.8916L6.18197 11.8916C6.08262 11.8915 6.00099 11.8106 6.00095 11.71L5.00095 11.7104L4.00095 11.7109C4.00147 12.9142 4.97675 13.8911 6.18126 13.8916L6.18161 12.8916ZM5.00095 11.7104V10.7104H4.00098V11.7104V12.7104H5.00095V11.7104Z" fill="#6C7C90" mask="url(#path-3-inside-2_14533_32243)"/>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<line x1="8" y1="3.5" x2="11" y2="3.5" stroke="#6C7C90"/>
|
|
3
|
+
<line x1="8" y1="13.5" x2="11" y2="13.5" stroke="#6C7C90"/>
|
|
4
|
+
<line x1="9.5" y1="4" x2="9.5" y2="14" stroke="#6C7C90"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 5H4L3.7959 5.01074C2.78722 5.113 2 5.96435 2 7V10L2.01074 10.2041C2.1062 11.1457 2.85435 11.8938 3.7959 11.9893L4 12H8V11H4C3.44772 11 3 10.5523 3 10V7L3.00488 6.89746C3.05621 6.39333 3.48232 6 4 6H8V5ZM11 11H12C12.5523 11 13 10.5523 13 10V7C13 6.48232 12.6067 6.05621 12.1025 6.00488L12 6H11V5H12L12.2041 5.01074C13.2128 5.113 14 5.96435 14 7V10L13.9893 10.2041C13.8938 11.1457 13.1457 11.8938 12.2041 11.9893L12 12H11V11Z" fill="#6C7C90"/>
|
|
6
|
+
<line x1="5" y1="8.5" x2="8" y2="8.5" stroke="#6C7C90"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="4.5" y="8.5" width="5" height="4" stroke="#6C7C90"/>
|
|
3
|
+
<path d="M2.5 0.5H9.42188C9.76986 0.50007 10.1052 0.621212 10.3721 0.839844L10.4824 0.939453L12.5605 3.01758C12.8418 3.29881 12.9999 3.68041 13 4.07812V11C13 11.8284 12.3284 12.5 11.5 12.5H2.5C1.67157 12.5 1 11.8284 1 11V2C1 1.17157 1.67157 0.5 2.5 0.5Z" stroke="#6C7C90"/>
|
|
4
|
+
<rect x="5.5" y="0.5" width="3" height="2" stroke="#6C7C90"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13 5.64941L13 12C13 13.3807 11.8807 14.5 10.5 14.5L5.5 14.5C4.11929 14.5 3 13.3807 3 12L3 4C3 2.61929 4.11929 1.5 5.5 1.5L9.01855 1.5C9.63962 1.5 10.2356 1.73099 10.6924 2.14258L10.8789 2.33008L12.3604 3.97852C12.7723 4.43732 13 5.03278 13 5.64941Z" stroke="#6C7C90"/>
|
|
3
|
+
<path d="M8.14782 11.118L10.2473 8.9751L8.14782 6.83216" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
<line x1="0.5" y1="-0.5" x2="4.5" y2="-0.5" transform="matrix(-1 8.42937e-08 8.42937e-08 1 10.2095 9.4751)" stroke="#6C7C90" stroke-linecap="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.5 11L10.4105 12L12.5 10" stroke="#6C7C90" stroke-linecap="round"/>
|
|
3
|
+
<path d="M12 5.79412V3.5C12 2.39543 11.1046 1.5 10 1.5H7.5H5C3.89543 1.5 3 2.39543 3 3.5V11.5C3 12.6046 3.89543 13.5 5 13.5H6.5" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
<line x1="4.5" y1="4.5" x2="8.5" y2="4.5" stroke="#6C7C90"/>
|
|
5
|
+
<path d="M4.5 7H7.5" stroke="#6C7C90"/>
|
|
6
|
+
<circle cx="11" cy="11" r="3.5" stroke="#6C7C90"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11 9V11C11 12.1046 10.1046 13 9 13H5C3.89543 13 3 12.1046 3 11V7C3 5.89543 3.89543 5 5 5H7" stroke="#6C7C90"/>
|
|
3
|
+
<path d="M12.876 3.93241C13.0713 3.73715 13.0713 3.42057 12.876 3.2253C12.6808 3.03004 12.3642 3.03004 12.1689 3.2253L12.876 3.93241ZM12.5225 3.57886L12.1689 3.2253L6.64623 8.74798L6.99978 9.10154L7.35333 9.45509L12.876 3.93241L12.5225 3.57886Z" fill="#6C7C90"/>
|
|
4
|
+
<path d="M9.1416 3L13.1416 3L13.1416 7" stroke="#6C7C90"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.4172 5.97381C13.776 5.86458 14.1129 6.17258 14.0573 6.52693L14.0414 6.59805L10.9499 16.7551C10.8289 17.1525 10.3151 17.2296 10.0764 16.9174L10.0329 16.849L7.67883 12.5353L7.60908 12.4061L7.47995 12.3364L3.16619 9.98236C2.80142 9.78339 2.8304 9.26539 3.18483 9.09502L3.2601 9.06533L13.4172 5.97381Z" stroke="#6C7C90"/>
|
|
3
|
+
<line x1="9.74121" y1="10.3623" x2="8.0384" y2="12.0651" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.91304 2.58996C8.31041 2.42848 7.68188 2.38728 7.06333 2.46872C6.44477 2.55015 5.84832 2.75262 5.30801 3.06457C4.76771 3.37651 4.29414 3.79182 3.91434 4.28679C3.53454 4.78175 3.25595 5.34668 3.09448 5.94931C2.933 6.55194 2.89181 7.18047 2.97324 7.79902C3.05467 8.41757 3.25714 9.01403 3.56909 9.55433L1.33357 8.43896" stroke="#6C7C90" stroke-linecap="round"/>
|
|
3
|
+
<path d="M6.45369 11.7677C7.05632 11.9292 7.68486 11.9704 8.30341 11.8889C8.92196 11.8075 9.51842 11.605 10.0587 11.2931C10.599 10.9811 11.0726 10.5658 11.4524 10.0709C11.8322 9.5759 12.1108 9.01097 12.2723 8.40834C12.4337 7.80571 12.4749 7.17718 12.3935 6.55862C12.3121 5.94007 12.1096 5.34362 11.7976 4.80331L14.1211 6.07111" stroke="#6C7C90" stroke-linecap="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2.5 4.17116C2.5 3.71229 2.8123 3.31231 3.25746 3.20101L8.25746 1.95101C8.88861 1.79323 9.5 2.27059 9.5 2.92116V13.0788C9.5 13.7294 8.88861 14.2067 8.25746 14.049L3.25746 12.799C2.8123 12.6877 2.5 12.2877 2.5 11.8288V4.17116Z" stroke="#6C7C90"/>
|
|
3
|
+
<path d="M6.81335 5.0751C7.19731 5.04591 7.58052 5.02062 7.96299 5C7.51134 5.9904 7.05709 6.97951 6.60024 7.96732C7.06384 8.97938 7.54014 9.98054 8 11L6.77521 10.9175C6.48846 10.1619 6.13852 9.43346 5.93177 8.6428C5.70259 9.37471 5.37359 10.072 5.10926 10.7914C4.74026 10.7914 4.36901 10.7693 4 10.7525C4.43406 9.83813 4.85391 8.92257 5.3018 8.02023C4.92046 7.08872 4.50397 6.17588 4.11216 5.24747L5.22666 5.17977C5.47864 5.88794 5.75157 6.5856 5.96168 7.31206C6.19609 6.54163 6.53146 5.81829 6.81335 5.0751Z" fill="#6C7C90"/>
|
|
4
|
+
<path d="M11.5 14V2" stroke="#6C7C90"/>
|
|
5
|
+
<path d="M13.5 13V3" stroke="#6C7C90"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="2.5" y="2" width="4" height="4" rx="2" stroke="#6C7C90"/>
|
|
3
|
+
<rect x="10" y="10" width="4" height="4" rx="2" stroke="#6C7C90"/>
|
|
4
|
+
<path d="M6 10.25V13.75H2.5V10.25H6Z" stroke="#6C7C90"/>
|
|
5
|
+
<path d="M6 4L10 4" stroke="#6C7C90"/>
|
|
6
|
+
<path d="M12 6L12 10" stroke="#6C7C90"/>
|
|
7
|
+
<path d="M10 12.25L6 12.25" stroke="#6C7C90"/>
|
|
8
|
+
<rect x="12" y="1.70711" width="3.35355" height="3.35355" transform="rotate(45 12 1.70711)" stroke="#6C7C90"/>
|
|
9
|
+
</svg>
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
.e-dropdowntree,
|
|
7
7
|
.e-daterangepicker,
|
|
8
8
|
.e-datepicker,
|
|
9
|
+
.e-datetimepicker,
|
|
9
10
|
.e-rowcell,
|
|
10
11
|
.e-pivot-calculated-div {
|
|
12
|
+
display: block;
|
|
11
13
|
height: var(--rs-input-line-height);
|
|
12
14
|
font-family: var(--rs-font-family);
|
|
13
15
|
background-color: #fff;
|
|
@@ -372,6 +374,7 @@
|
|
|
372
374
|
|
|
373
375
|
// daterangepicker datepicker
|
|
374
376
|
.e-daterangepicker,
|
|
377
|
+
.e-datetimepicker,
|
|
375
378
|
.e-datepicker {
|
|
376
379
|
.e-input-group {
|
|
377
380
|
height: var(--rs-input-line-height) !important;
|
|
@@ -392,12 +395,31 @@
|
|
|
392
395
|
}
|
|
393
396
|
}
|
|
394
397
|
}
|
|
398
|
+
.e-time-icon {
|
|
399
|
+
&::before {
|
|
400
|
+
display: block;
|
|
401
|
+
width: 14px;
|
|
402
|
+
height: 14px;
|
|
403
|
+
background-image: url("/assets/img/time-disabled.svg");
|
|
404
|
+
}
|
|
405
|
+
&:hover {
|
|
406
|
+
&::before {
|
|
407
|
+
background-image: url("/assets/img/time.svg");
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
395
412
|
&.e-disabled {
|
|
396
413
|
.e-input-group-icon {
|
|
397
414
|
&::before {
|
|
398
415
|
background-image: url("/assets/img/calendar-disabled.svg");
|
|
399
416
|
}
|
|
400
417
|
}
|
|
418
|
+
.e-time-icon {
|
|
419
|
+
&::before {
|
|
420
|
+
background-image: url("/assets/img/time-disabled.svg");
|
|
421
|
+
}
|
|
422
|
+
}
|
|
401
423
|
}
|
|
402
424
|
}
|
|
403
425
|
}
|
|
@@ -588,6 +610,51 @@
|
|
|
588
610
|
}
|
|
589
611
|
}
|
|
590
612
|
|
|
613
|
+
.e-datetimepicker.e-popup {
|
|
614
|
+
height: auto;
|
|
615
|
+
border-radius: 4px;
|
|
616
|
+
.e-list-item {
|
|
617
|
+
font-family: Arial;
|
|
618
|
+
font-size: var(--rs-input-font-size) !important;
|
|
619
|
+
min-height: var(--rs-input-line-height) !important;
|
|
620
|
+
line-height: var(--rs-input-line-height) !important;
|
|
621
|
+
// 下拉选项超出正常显示,不显示缩略号
|
|
622
|
+
white-space: normal;
|
|
623
|
+
text-indent: 0;
|
|
624
|
+
color: #44566c !important;
|
|
625
|
+
border-radius: 4px;
|
|
626
|
+
&.e-item-focus {
|
|
627
|
+
background: transparent !important;
|
|
628
|
+
box-shadow: none !important;
|
|
629
|
+
}
|
|
630
|
+
&:hover {
|
|
631
|
+
background: rgba(31, 123, 255, 0.04) !important;
|
|
632
|
+
border-color: transparent !important;
|
|
633
|
+
}
|
|
634
|
+
&.e-active {
|
|
635
|
+
background: rgba(31, 123, 255, 0.1) !important;
|
|
636
|
+
border-color: transparent !important;
|
|
637
|
+
.e-checkbox-wrapper {
|
|
638
|
+
background-color: transparent !important;
|
|
639
|
+
&:hover {
|
|
640
|
+
background-color: transparent !important;
|
|
641
|
+
}
|
|
642
|
+
.e-check,
|
|
643
|
+
.e-stop {
|
|
644
|
+
background-color: #007bff !important;
|
|
645
|
+
border-color: #007bff !important;
|
|
646
|
+
color: #fff !important;
|
|
647
|
+
&:hover {
|
|
648
|
+
background-color: #007bff !important;
|
|
649
|
+
border-color: #007bff !important;
|
|
650
|
+
color: #fff !important;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
591
658
|
.e-input-group.e-input-fucos {
|
|
592
659
|
box-shadow: none !important;
|
|
593
660
|
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/form/toolbar-item/index.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, ElementRef, HostBinding, Input, ViewChild, } from "@angular/core";
|
|
7
|
-
export class ToolbarItemComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.children = [];
|
|
10
|
-
this.disabledOptions = {};
|
|
11
|
-
this.ImageType = [
|
|
12
|
-
"Add",
|
|
13
|
-
"Delete",
|
|
14
|
-
"Import",
|
|
15
|
-
"Export",
|
|
16
|
-
"Upload",
|
|
17
|
-
"Download",
|
|
18
|
-
"Duplicate",
|
|
19
|
-
"Refresh",
|
|
20
|
-
];
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
get hostDisabled() {
|
|
26
|
-
return !!this.disabled;
|
|
27
|
-
}
|
|
28
|
-
// 暴露方法供父组件调用
|
|
29
|
-
/**
|
|
30
|
-
* @return {?}
|
|
31
|
-
*/
|
|
32
|
-
getWidth() {
|
|
33
|
-
return this.buttonElement.nativeElement.offsetWidth;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
ToolbarItemComponent.decorators = [
|
|
37
|
-
{ type: Component, args: [{
|
|
38
|
-
selector: "rs-toolbar-item",
|
|
39
|
-
template: "<button\r\n *ngIf=\"!children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n\r\n<button\r\n *ngIf=\"children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n mat-menu-item\r\n [matMenuTriggerFor]=\"menu\"\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n<mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of children\">\r\n <button\r\n class=\"toolbar-action-item e-btn text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action()\"\r\n >\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"button.image\">\r\n <img *ngIf=\"!ImageType.includes(button.image)\" [src]=\"button.image\" />\r\n </span>\r\n <span>{{ button.text }}</span>\r\n </button>\r\n </ng-container>\r\n</mat-menu>\r\n",
|
|
40
|
-
styles: ["rs-toolbar-item.disabled{pointer-events:none}.toolbar-action-item{min-width:auto;padding:4px 8px}.toolbar-action-item .toolbar-action-image{height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}.toolbar-action-item .toolbar-action-image::before{display:block;width:16px;height:16px;line-height:16px}.toolbar-action-item .toolbar-action-image[data-type=Add]::before{content:url(/assets/img/toolbar-action-add.svg)}.toolbar-action-item .toolbar-action-image[data-type=Delete]::before{content:url(/assets/img/toolbar-action-delete.svg)}.toolbar-action-item .toolbar-action-image[data-type=Import]::before{content:url(/assets/img/toolbar-action-import.svg)}.toolbar-action-item .toolbar-action-image[data-type=Upload]::before{content:url(/assets/img/toolbar-action-upload.svg)}.toolbar-action-item .toolbar-action-image[data-type=Download]::before{content:url(/assets/img/toolbar-action-download.svg)}.toolbar-action-item .toolbar-action-image[data-type=Export]::before{content:url(/assets/img/toolbar-action-export.svg)}.toolbar-action-item .toolbar-action-image[data-type=Duplicate]::before{content:url(/assets/img/toolbar-action-duplicate.svg)}.toolbar-action-item .toolbar-action-image[data-type=Refresh]::before{content:url(/assets/img/toolbar-action-refresh.svg)}.toolbar-action-item .toolbar-action-image img{height:16px;display:block}.toolbar-action-item.e-btn{width:100%;justify-content:flex-start}.toolbar-action-item.mat-menu-item::after{display:none}"]
|
|
41
|
-
}] }
|
|
42
|
-
];
|
|
43
|
-
ToolbarItemComponent.propDecorators = {
|
|
44
|
-
image: [{ type: Input, args: ["image",] }],
|
|
45
|
-
text: [{ type: Input, args: ["text",] }],
|
|
46
|
-
disabled: [{ type: Input, args: ["disabled",] }],
|
|
47
|
-
children: [{ type: Input, args: ["children",] }],
|
|
48
|
-
disabledOptions: [{ type: Input }],
|
|
49
|
-
buttonElement: [{ type: ViewChild, args: ["buttonElement", { static: false },] }],
|
|
50
|
-
hostDisabled: [{ type: HostBinding, args: ["class.disabled",] }]
|
|
51
|
-
};
|
|
52
|
-
if (false) {
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
ToolbarItemComponent.prototype.image;
|
|
55
|
-
/** @type {?} */
|
|
56
|
-
ToolbarItemComponent.prototype.text;
|
|
57
|
-
/** @type {?} */
|
|
58
|
-
ToolbarItemComponent.prototype.disabled;
|
|
59
|
-
/** @type {?} */
|
|
60
|
-
ToolbarItemComponent.prototype.children;
|
|
61
|
-
/** @type {?} */
|
|
62
|
-
ToolbarItemComponent.prototype.disabledOptions;
|
|
63
|
-
/** @type {?} */
|
|
64
|
-
ToolbarItemComponent.prototype.buttonElement;
|
|
65
|
-
/** @type {?} */
|
|
66
|
-
ToolbarItemComponent.prototype.ImageType;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vcmFpc2UtY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9mb3JtL3Rvb2xiYXItaXRlbS9pbmRleC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFVBQVUsRUFDVixXQUFXLEVBQ1gsS0FBSyxFQUNMLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQU92QixNQUFNLE9BQU8sb0JBQW9CO0lBTGpDO1FBU3FCLGFBQVEsR0FBVSxFQUFFLENBQUM7UUFDL0Isb0JBQWUsR0FBeUIsRUFBRSxDQUFDO1FBYXBELGNBQVMsR0FBRztZQUNWLEtBQUs7WUFDTCxRQUFRO1lBQ1IsUUFBUTtZQUNSLFFBQVE7WUFDUixRQUFRO1lBQ1IsVUFBVTtZQUNWLFdBQVc7WUFDWCxTQUFTO1NBQ1YsQ0FBQztJQUNKLENBQUM7Ozs7SUFuQkMsSUFBbUMsWUFBWTtRQUM3QyxPQUFPLENBQUMsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQ3pCLENBQUM7Ozs7O0lBR0QsUUFBUTtRQUNOLE9BQU8sSUFBSSxDQUFDLGFBQWEsQ0FBQyxhQUFhLENBQUMsV0FBVyxDQUFDO0lBQ3RELENBQUM7OztZQXJCRixTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLGlCQUFpQjtnQkFDM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VkT3B0aW9uczoge1trZXk6IHN0cmluZ106IGFueX0gPSB7fTtcclxuXHJcblxyXG4gIEBWaWV3Q2hpbGQoXCJidXR0b25FbGVtZW50XCIsIHsgc3RhdGljOiBmYWxzZSB9KSBidXR0b25FbGVtZW50ITogRWxlbWVudFJlZjtcclxuICBASG9zdEJpbmRpbmcoXCJjbGFzcy5kaXNhYmxlZFwiKSBnZXQgaG9zdERpc2FibGVkKCkge1xyXG4gICAgcmV0dXJuICEhdGhpcy5kaXNhYmxlZDtcclxuICB9XHJcblxyXG4gIC8vIOaatOmcsuaWueazleS+m+eItue7hOS7tuiwg+eUqFxyXG4gIGdldFdpZHRoKCk6IG51bWJlciB7XHJcbiAgICByZXR1cm4gdGhpcy5idXR0b25FbGVtZW50Lm5hdGl2ZUVsZW1lbnQub2Zmc2V0V2lkdGg7XHJcbiAgfVxyXG5cclxuICBJbWFnZVR5cGUgPSBbXHJcbiAgICBcIkFkZFwiLFxyXG4gICAgXCJEZWxldGVcIixcclxuICAgIFwiSW1wb3J0XCIsXHJcbiAgICBcIkV4cG9ydFwiLFxyXG4gICAgXCJVcGxvYWRcIixcclxuICAgIFwiRG93bmxvYWRcIixcclxuICAgIFwiRHVwbGljYXRlXCIsXHJcbiAgICBcIlJlZnJlc2hcIixcclxuICBdO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/layout/toolbar/index.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
// 组件类
|
|
7
|
-
import { ChangeDetectorRef, Component, ElementRef, HostListener, Input, QueryList, ViewChild, ViewChildren, } from "@angular/core";
|
|
8
|
-
import { Router } from "@angular/router";
|
|
9
|
-
export class RSToolbarComponent {
|
|
10
|
-
/**
|
|
11
|
-
* @param {?} router
|
|
12
|
-
* @param {?} ref
|
|
13
|
-
*/
|
|
14
|
-
constructor(router, ref) {
|
|
15
|
-
this.router = router;
|
|
16
|
-
this.ref = ref;
|
|
17
|
-
this.buttons = [];
|
|
18
|
-
this.disabledOptions = {};
|
|
19
|
-
this.visibleButtons = [];
|
|
20
|
-
this.hiddenButtons = [];
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
ngAfterViewInit() {
|
|
26
|
-
this.updateButtonVisibility();
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @return {?}
|
|
30
|
-
*/
|
|
31
|
-
updateButtonVisibility() {
|
|
32
|
-
if (!this.toolbarContainer || !this.buttonElements)
|
|
33
|
-
return;
|
|
34
|
-
/** @type {?} */
|
|
35
|
-
const buttonRefs = this.buttonElements.toArray();
|
|
36
|
-
/** @type {?} */
|
|
37
|
-
const containerWidth = this.toolbarContainer.nativeElement.offsetWidth - 50;
|
|
38
|
-
// console.log("containerWidth", containerWidth);
|
|
39
|
-
/** @type {?} */
|
|
40
|
-
let totalWidth = 0;
|
|
41
|
-
/** @type {?} */
|
|
42
|
-
const menuButtonWidth = 60;
|
|
43
|
-
this.visibleButtons = [];
|
|
44
|
-
this.hiddenButtons = [];
|
|
45
|
-
for (let i = 0; i < buttonRefs.length; i++) {
|
|
46
|
-
/** @type {?} */
|
|
47
|
-
const buttonWidth = buttonRefs[i].nativeElement.getBoundingClientRect().width;
|
|
48
|
-
// console.log("buttonWidth", buttonWidth);
|
|
49
|
-
if (totalWidth +
|
|
50
|
-
4 + // 4px margin between buttons
|
|
51
|
-
buttonWidth +
|
|
52
|
-
(i < buttonRefs.length - 1 ? menuButtonWidth : 0) <=
|
|
53
|
-
containerWidth) {
|
|
54
|
-
this.visibleButtons.push(this.buttons[i]);
|
|
55
|
-
buttonRefs[i].nativeElement.classList.remove("temp-hidden");
|
|
56
|
-
totalWidth += buttonWidth;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
buttonRefs[i].nativeElement.classList.add("temp-hidden");
|
|
60
|
-
this.hiddenButtons.push(this.buttons[i]);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
// console.log("visibleButtons", this.visibleButtons);
|
|
64
|
-
// console.log("hiddenButtons", this.hiddenButtons);
|
|
65
|
-
this.ref.detectChanges();
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @return {?}
|
|
69
|
-
*/
|
|
70
|
-
onWindowResize() {
|
|
71
|
-
this.updateButtonVisibility();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
RSToolbarComponent.decorators = [
|
|
75
|
-
{ type: Component, args: [{
|
|
76
|
-
selector: "rs-toolbar",
|
|
77
|
-
template: "<div #toolbarContainer class=\"rs-toolbar-container\">\r\n <!-- \u53EF\u89C1\u6309\u94AE -->\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <div class=\"temp-hidden\" #toolbarItem>\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action && button.action()\"\r\n [children]=\"button.children || []\"\r\n [disabledOptions]=\"disabledOptions\"\r\n >\r\n </rs-toolbar-item>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- \u4E0B\u62C9\u83DC\u5355\uFF08\u5982\u679C\u6709\u9690\u85CF\u6309\u94AE\uFF09 -->\r\n <button\r\n *ngIf=\"hiddenButtons.length > 0\"\r\n mat-button\r\n [matMenuTriggerFor]=\"menu\"\r\n #menuTrigger=\"matMenuTrigger\"\r\n class=\"action-toggle\"\r\n >\r\n <mat-icon svgIcon=\"more\"></mat-icon>\r\n </button>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of hiddenButtons\">\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n (click)=\"button.action && button.action()\"\r\n [disabled]=\"disabledOptions[button.key] || false\"\r\n [children]=\"button.children || []\"\r\n [disabledOptions]=\"disabledOptions\"\r\n >\r\n </rs-toolbar-item>\r\n </ng-container>\r\n </mat-menu>\r\n</div>\r\n",
|
|
78
|
-
styles: [":host{display:block;width:100%}.rs-toolbar-container{width:100%;display:flex;align-items:center}.rs-toolbar-container .temp-hidden{visibility:hidden;position:absolute}.rs-toolbar-container .action-toggle{width:24px;height:24px;min-width:24px;max-width:24px;padding:0;border-radius:4px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;background:0 0}.rs-toolbar-container .action-toggle:hover{background:rgba(214,227,245,.2)}.rs-toolbar-container .action-toggle .mat-button-wrapper{max-height:24px;height:24px}.rs-toolbar-container .action-toggle ::ng-deep .mat-icon{width:16px;height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}"]
|
|
79
|
-
}] }
|
|
80
|
-
];
|
|
81
|
-
/** @nocollapse */
|
|
82
|
-
RSToolbarComponent.ctorParameters = () => [
|
|
83
|
-
{ type: Router },
|
|
84
|
-
{ type: ChangeDetectorRef }
|
|
85
|
-
];
|
|
86
|
-
RSToolbarComponent.propDecorators = {
|
|
87
|
-
buttons: [{ type: Input }],
|
|
88
|
-
disabledOptions: [{ type: Input }],
|
|
89
|
-
toolbarContainer: [{ type: ViewChild, args: ["toolbarContainer", { static: false },] }],
|
|
90
|
-
buttonElements: [{ type: ViewChildren, args: ["toolbarItem",] }],
|
|
91
|
-
onWindowResize: [{ type: HostListener, args: ["window:resize",] }]
|
|
92
|
-
};
|
|
93
|
-
if (false) {
|
|
94
|
-
/** @type {?} */
|
|
95
|
-
RSToolbarComponent.prototype.buttons;
|
|
96
|
-
/** @type {?} */
|
|
97
|
-
RSToolbarComponent.prototype.disabledOptions;
|
|
98
|
-
/** @type {?} */
|
|
99
|
-
RSToolbarComponent.prototype.toolbarContainer;
|
|
100
|
-
/** @type {?} */
|
|
101
|
-
RSToolbarComponent.prototype.buttonElements;
|
|
102
|
-
/** @type {?} */
|
|
103
|
-
RSToolbarComponent.prototype.visibleButtons;
|
|
104
|
-
/** @type {?} */
|
|
105
|
-
RSToolbarComponent.prototype.hiddenButtons;
|
|
106
|
-
/** @type {?} */
|
|
107
|
-
RSToolbarComponent.prototype.router;
|
|
108
|
-
/**
|
|
109
|
-
* @type {?}
|
|
110
|
-
* @private
|
|
111
|
-
*/
|
|
112
|
-
RSToolbarComponent.prototype.ref;
|
|
113
|
-
}
|
|
114
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vcmFpc2UtY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9sYXlvdXQvdG9vbGJhci9pbmRleC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsT0FBTyxFQUVMLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUVWLFlBQVksRUFDWixLQUFLLEVBR0wsU0FBUyxFQUNULFNBQVMsRUFDVCxZQUFZLEdBQ2IsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBUXpDLE1BQU0sT0FBTyxrQkFBa0I7Ozs7O0lBUzdCLFlBQW1CLE1BQWMsRUFBVSxHQUFzQjtRQUE5QyxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBQVUsUUFBRyxHQUFILEdBQUcsQ0FBbUI7UUFSeEQsWUFBTyxHQUFvQixFQUFFLENBQUM7UUFDOUIsb0JBQWUsR0FBMkIsRUFBRSxDQUFDO1FBWXRELG1CQUFjLEdBQW9CLEVBQUUsQ0FBQztRQUNyQyxrQkFBYSxHQUFvQixFQUFFLENBQUM7SUFOZ0MsQ0FBQzs7OztJQUNyRSxlQUFlO1FBQ2IsSUFBSSxDQUFDLHNCQUFzQixFQUFFLENBQ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RhdGVCdXR0b25WaXNpYmlsaXR5KCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/form/toolbar-item/index.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, ElementRef, HostBinding, Input, ViewChild, } from "@angular/core";
|
|
7
|
-
var ToolbarItemComponent = /** @class */ (function () {
|
|
8
|
-
function ToolbarItemComponent() {
|
|
9
|
-
this.children = [];
|
|
10
|
-
this.disabledOptions = {};
|
|
11
|
-
this.ImageType = [
|
|
12
|
-
"Add",
|
|
13
|
-
"Delete",
|
|
14
|
-
"Import",
|
|
15
|
-
"Export",
|
|
16
|
-
"Upload",
|
|
17
|
-
"Download",
|
|
18
|
-
"Duplicate",
|
|
19
|
-
"Refresh",
|
|
20
|
-
];
|
|
21
|
-
}
|
|
22
|
-
Object.defineProperty(ToolbarItemComponent.prototype, "hostDisabled", {
|
|
23
|
-
get: /**
|
|
24
|
-
* @return {?}
|
|
25
|
-
*/
|
|
26
|
-
function () {
|
|
27
|
-
return !!this.disabled;
|
|
28
|
-
},
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true
|
|
31
|
-
});
|
|
32
|
-
// 暴露方法供父组件调用
|
|
33
|
-
// 暴露方法供父组件调用
|
|
34
|
-
/**
|
|
35
|
-
* @return {?}
|
|
36
|
-
*/
|
|
37
|
-
ToolbarItemComponent.prototype.getWidth =
|
|
38
|
-
// 暴露方法供父组件调用
|
|
39
|
-
/**
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
function () {
|
|
43
|
-
return this.buttonElement.nativeElement.offsetWidth;
|
|
44
|
-
};
|
|
45
|
-
ToolbarItemComponent.decorators = [
|
|
46
|
-
{ type: Component, args: [{
|
|
47
|
-
selector: "rs-toolbar-item",
|
|
48
|
-
template: "<button\r\n *ngIf=\"!children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n\r\n<button\r\n *ngIf=\"children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n mat-menu-item\r\n [matMenuTriggerFor]=\"menu\"\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n<mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of children\">\r\n <button\r\n class=\"toolbar-action-item e-btn text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action()\"\r\n >\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"button.image\">\r\n <img *ngIf=\"!ImageType.includes(button.image)\" [src]=\"button.image\" />\r\n </span>\r\n <span>{{ button.text }}</span>\r\n </button>\r\n </ng-container>\r\n</mat-menu>\r\n",
|
|
49
|
-
styles: ["rs-toolbar-item.disabled{pointer-events:none}.toolbar-action-item{min-width:auto;padding:4px 8px}.toolbar-action-item .toolbar-action-image{height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}.toolbar-action-item .toolbar-action-image::before{display:block;width:16px;height:16px;line-height:16px}.toolbar-action-item .toolbar-action-image[data-type=Add]::before{content:url(/assets/img/toolbar-action-add.svg)}.toolbar-action-item .toolbar-action-image[data-type=Delete]::before{content:url(/assets/img/toolbar-action-delete.svg)}.toolbar-action-item .toolbar-action-image[data-type=Import]::before{content:url(/assets/img/toolbar-action-import.svg)}.toolbar-action-item .toolbar-action-image[data-type=Upload]::before{content:url(/assets/img/toolbar-action-upload.svg)}.toolbar-action-item .toolbar-action-image[data-type=Download]::before{content:url(/assets/img/toolbar-action-download.svg)}.toolbar-action-item .toolbar-action-image[data-type=Export]::before{content:url(/assets/img/toolbar-action-export.svg)}.toolbar-action-item .toolbar-action-image[data-type=Duplicate]::before{content:url(/assets/img/toolbar-action-duplicate.svg)}.toolbar-action-item .toolbar-action-image[data-type=Refresh]::before{content:url(/assets/img/toolbar-action-refresh.svg)}.toolbar-action-item .toolbar-action-image img{height:16px;display:block}.toolbar-action-item.e-btn{width:100%;justify-content:flex-start}.toolbar-action-item.mat-menu-item::after{display:none}"]
|
|
50
|
-
}] }
|
|
51
|
-
];
|
|
52
|
-
ToolbarItemComponent.propDecorators = {
|
|
53
|
-
image: [{ type: Input, args: ["image",] }],
|
|
54
|
-
text: [{ type: Input, args: ["text",] }],
|
|
55
|
-
disabled: [{ type: Input, args: ["disabled",] }],
|
|
56
|
-
children: [{ type: Input, args: ["children",] }],
|
|
57
|
-
disabledOptions: [{ type: Input }],
|
|
58
|
-
buttonElement: [{ type: ViewChild, args: ["buttonElement", { static: false },] }],
|
|
59
|
-
hostDisabled: [{ type: HostBinding, args: ["class.disabled",] }]
|
|
60
|
-
};
|
|
61
|
-
return ToolbarItemComponent;
|
|
62
|
-
}());
|
|
63
|
-
export { ToolbarItemComponent };
|
|
64
|
-
if (false) {
|
|
65
|
-
/** @type {?} */
|
|
66
|
-
ToolbarItemComponent.prototype.image;
|
|
67
|
-
/** @type {?} */
|
|
68
|
-
ToolbarItemComponent.prototype.text;
|
|
69
|
-
/** @type {?} */
|
|
70
|
-
ToolbarItemComponent.prototype.disabled;
|
|
71
|
-
/** @type {?} */
|
|
72
|
-
ToolbarItemComponent.prototype.children;
|
|
73
|
-
/** @type {?} */
|
|
74
|
-
ToolbarItemComponent.prototype.disabledOptions;
|
|
75
|
-
/** @type {?} */
|
|
76
|
-
ToolbarItemComponent.prototype.buttonElement;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