@colijnit/corecomponents_v12 12.0.41 → 12.0.44
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/colijnit-corecomponents_v12.umd.js +392 -52
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +6 -5
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +7 -6
- package/esm2015/lib/components/filter-item/filter-item.component.js +59 -28
- package/esm2015/lib/components/filter-item/filter-item.module.js +5 -2
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.component.js +17 -6
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.module.js +4 -2
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +14 -3
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +7 -5
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +19 -1
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +49 -26
- package/esm2015/lib/core/enum/core-components-icon.enum.js +6 -1
- package/esm2015/lib/core/enum/keyboard-key.enum.js +75 -0
- package/esm2015/lib/core/model/core-components-icon-svg.js +6 -1
- package/esm2015/lib/directives/clickoutside/click-outside-master.service.js +57 -0
- package/esm2015/lib/directives/clickoutside/click-outside.directive.js +71 -0
- package/esm2015/lib/directives/clickoutside/clickoutside.module.js +19 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +379 -61
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/filter-item/filter-item.component.d.ts +5 -2
- package/lib/components/filter-item/style/_layout.scss +25 -19
- package/lib/components/filter-item/style/_material-definition.scss +1 -1
- package/lib/components/grid-toolbar/grid-toolbar.component.d.ts +6 -1
- package/lib/components/grid-toolbar/style/_layout.scss +28 -0
- package/lib/components/grid-toolbar/style/_material-definition.scss +15 -0
- package/lib/components/grid-toolbar/style/_theme.scss +12 -0
- package/lib/components/input-radio-button/style/_layout.scss +5 -5
- package/lib/components/input-radio-button/style/_material-definition.scss +6 -6
- package/lib/components/input-radio-button/style/_theme.scss +21 -2
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +4 -1
- package/lib/components/simple-grid/simple-grid-cell.component.d.ts +3 -2
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +6 -2
- package/lib/components/simple-grid/simple-grid.component.d.ts +8 -4
- package/lib/components/simple-grid/style/_layout.scss +5 -1
- package/lib/core/enum/core-components-icon.enum.d.ts +5 -0
- package/lib/core/enum/keyboard-key.enum.d.ts +69 -0
- package/lib/directives/clickoutside/click-outside-master.service.d.ts +15 -0
- package/lib/directives/clickoutside/click-outside.directive.d.ts +18 -0
- package/lib/directives/clickoutside/clickoutside.module.d.ts +2 -0
- package/lib/style/_variables.scss +5 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1003,6 +1003,7 @@ const CoreComponentsIconSvg = {
|
|
|
1003
1003
|
"finish": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"3.2\" y=\"24.12\" width=\"26.3\" height=\"1.75\" transform=\"translate(-13.22 29.26) rotate(-65)\" fill=\"#484f60\"/><path d=\"M27,16.77a4.75,4.75,0,0,0-4,.36l1.56-3.33a5.8,5.8,0,0,1,3.65.48Z\" fill=\"#484f60\"/><path d=\"M29.67,19.27A6.91,6.91,0,0,0,27,16.77l1.17-2.49A10.31,10.31,0,0,1,31,16.47Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M31.92,22.73c-.77-1.11-1.48-2.37-2.25-3.46l1.3-2.8c.88.89,1.71,1.87,2.58,2.77Z\" fill=\"#484f60\"/><path d=\"M34.6,25.27a7.18,7.18,0,0,1-2.68-2.54l1.63-3.49a11.18,11.18,0,0,0,2.83,2.22C35.76,22.79,35.17,24.06,34.6,25.27Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M38.59,25a4.56,4.56,0,0,1-4,.25c.57-1.21,1.16-2.48,1.78-3.81A5.84,5.84,0,0,0,40,22Z\" fill=\"#484f60\"/><path d=\"M25.61,19.66c-1.09-.42-2.45-.28-4.24.81.52-1.11,1-2.22,1.55-3.34a4.75,4.75,0,0,1,4-.36Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M28.26,22.27a5.89,5.89,0,0,0-2.65-2.61L27,16.77a6.91,6.91,0,0,1,2.71,2.5C29.21,20.24,28.75,21.24,28.26,22.27Z\" fill=\"#484f60\"/><path d=\"M30.37,26.05c-.73-1.2-1.37-2.59-2.11-3.78.49-1,.95-2,1.41-3,.77,1.09,1.48,2.35,2.25,3.46C31.39,23.86,30.88,25,30.37,26.05Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M33,28.72a6.22,6.22,0,0,1-2.63-2.67c.51-1.08,1-2.19,1.55-3.32a7.18,7.18,0,0,0,2.68,2.54C34,26.48,33.5,27.63,33,28.72Z\" fill=\"#484f60\"/><path d=\"M37.18,28c-1.77,1-3.11,1.14-4.18.68.5-1.09,1-2.24,1.6-3.45a4.56,4.56,0,0,0,4-.25Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M24.09,22.94c-1.11-.41-2.47-.24-4.28.87l1.56-3.34c1.79-1.09,3.15-1.23,4.24-.81Z\" fill=\"#484f60\"/><path d=\"M26.77,25.48a5.87,5.87,0,0,0-2.68-2.54l1.52-3.28a5.89,5.89,0,0,1,2.65,2.61Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M28.91,29.19c-.74-1.17-1.4-2.54-2.14-3.71l1.49-3.21c.74,1.19,1.38,2.58,2.11,3.78Z\" fill=\"#484f60\"/><path d=\"M31.56,31.81a6.12,6.12,0,0,1-2.65-2.62l1.46-3.14A6.22,6.22,0,0,0,33,28.72Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M35.78,31.06c-1.79,1.06-3.14,1.18-4.22.75L33,28.72c1.07.46,2.41.36,4.18-.68C36.71,29,36.24,30.05,35.78,31.06Z\" fill=\"#484f60\"/><path d=\"M22.38,26.6a5.07,5.07,0,0,0-4.13.54l1.56-3.33c1.81-1.11,3.17-1.28,4.28-.87Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M25.18,28.9a6.5,6.5,0,0,0-2.8-2.3l1.71-3.66a5.87,5.87,0,0,1,2.68,2.54Z\" fill=\"#484f60\"/><path d=\"M27.52,32.17c-.8-1-1.54-2.24-2.34-3.27l1.59-3.42c.74,1.17,1.4,2.54,2.14,3.71Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M30.29,34.52a6.78,6.78,0,0,1-2.77-2.35l1.39-3a6.12,6.12,0,0,0,2.65,2.62C31.11,32.77,30.69,33.68,30.29,34.52Z\" fill=\"#484f60\"/><path d=\"M34.37,34.08a4.91,4.91,0,0,1-4.08.44c.4-.84.82-1.75,1.27-2.71,1.08.43,2.43.31,4.22-.75Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M20.49,30.64a6.4,6.4,0,0,0-3.79-.16c.52-1.11,1-2.22,1.55-3.34a5.07,5.07,0,0,1,4.13-.54Z\" fill=\"#484f60\"/><path d=\"M23.49,32.52a10.08,10.08,0,0,0-3-1.88l1.89-4a6.5,6.5,0,0,1,2.8,2.3Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M26.21,35c-.92-.79-1.8-1.67-2.72-2.45l1.69-3.62c.8,1,1.54,2.23,2.34,3.27C27.07,33.13,26.63,34.06,26.21,35Z\" fill=\"#484f60\"/><path d=\"M29.2,36.87a10.23,10.23,0,0,1-3-1.9c.42-.91.86-1.84,1.31-2.8a6.78,6.78,0,0,0,2.77,2.35Z\" fill=\"#484f60\" opacity=\"0\"/><path d=\"M33,37.1a6.27,6.27,0,0,1-3.76-.23l1.09-2.35a4.91,4.91,0,0,0,4.08-.44Z\" fill=\"#484f60\"/></svg>",
|
|
1004
1004
|
"fixed_option_value_tree": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"21.92 38.92 21.7 13.06 22.57 13.06 23.89 38.92 21.92 38.92\" fill=\"#484f60\"/><polygon points=\"21.56 28.7 17.71 26.89 17.01 25.01 17.62 24.78 18.23 26.41 21.84 28.1 21.56 28.7 21.56 28.7\" fill=\"#484f60\"/><polygon points=\"13.82 30.17 13.36 29.7 14.56 28.5 17.86 28.72 19.29 27.5 19.72 27.99 18.09 29.39 14.81 29.18 13.82 30.17 13.82 30.17\" fill=\"#484f60\"/><polygon points=\"16.26 27.2 16.18 26.54 17.93 26.32 18.01 26.98 16.26 27.2 16.26 27.2\" fill=\"#484f60\"/><polygon points=\"15.87 30.72 15.26 30.46 15.92 28.93 16.52 29.19 15.87 30.72 15.87 30.72\" fill=\"#484f60\"/><polygon points=\"21.7 19.64 16 16.57 21.48 20.95 21.7 19.64\" fill=\"#484f60\"/><polygon points=\"19.4 18.39 18.5 13.62 19.93 12.18 20.39 12.64 19.2 13.83 20.05 18.26 19.4 18.39 19.4 18.39\" fill=\"#484f60\"/><polygon points=\"10.3 18.57 9.88 18.07 11.26 16.91 15.69 16.28 15.9 12.05 17.3 10.64 17.77 11.11 16.54 12.33 16.32 16.86 11.54 17.54 10.3 18.57 10.3 18.57\" fill=\"#484f60\"/><polygon points=\"13.98 16.98 12.89 15.45 13.42 15.06 14.52 16.6 13.98 16.98 13.98 16.98\" fill=\"#484f60\"/><polygon points=\"15.92 12.32 15.26 10.79 15.87 10.53 16.52 12.06 15.92 12.32 15.92 12.32\" fill=\"#484f60\"/><polygon points=\"15.78 15.5 13.46 13.41 13.71 11.71 14.36 11.79 14.16 13.16 16.22 15.01 15.78 15.5 15.78 15.5\" fill=\"#484f60\"/><polygon points=\"22.64 13.54 18.86 10.47 19.28 9.96 22.51 12.59 24.39 9.86 25.91 10.11 25.81 10.76 24.7 10.57 22.64 13.54 22.64 13.54\" fill=\"#484f60\"/><polygon points=\"22.02 12.05 21.38 11.89 21.82 10.14 22.46 10.29 22.02 12.05 22.02 12.05\" fill=\"#484f60\"/><polygon points=\"24.29 10.42 23.41 9.33 23.93 8.92 24.8 10.01 24.29 10.42 24.29 10.42\" fill=\"#484f60\"/><polygon points=\"23.27 17.21 22.75 16.81 24.88 14.05 24.88 11.75 25.53 11.75 25.53 14.27 23.27 17.21 23.27 17.21\" fill=\"#484f60\"/><polygon points=\"26.52 14.49 25.2 14.49 25.2 13.83 26.52 13.83 26.52 14.49 26.52 14.49\" fill=\"#484f60\"/><polygon points=\"28.49 15.04 26.74 17.23 23.23 23.14 23.45 25.11 27.61 17.45 28.49 15.04\" fill=\"#484f60\"/><polygon points=\"28.21 15.39 27.73 12.05 27.09 10.33 27.7 10.1 28.38 11.92 28.77 14.68 30.87 14.49 33.99 14.71 33.94 15.37 30.88 15.15 28.21 15.39 28.21 15.39\" fill=\"#484f60\"/><polygon points=\"28.27 12.22 27.84 11.72 29.59 10.19 30.02 10.68 28.27 12.22 28.27 12.22\" fill=\"#484f60\"/><polygon points=\"31.15 15.03 30.65 14.6 32.18 12.85 32.68 13.28 31.15 15.03 31.15 15.03\" fill=\"#484f60\"/><polygon points=\"26.19 17.67 25.53 17.67 25.53 15.69 26.19 15.69 26.19 17.67 26.19 17.67\" fill=\"#484f60\"/><polygon points=\"29.24 19.31 26.74 19.31 26.74 18.65 29.05 18.65 31.17 17.38 31.51 17.95 29.24 19.31 29.24 19.31\" fill=\"#484f60\"/><rect x=\"29.48\" y=\"18.63\" width=\"0.66\" height=\"1.58\" transform=\"translate(-2.87 33.48) rotate(-56.37)\" fill=\"#484f60\"/><path d=\"M26.8,24.44l-3.57,2.65.22,2.19,3.23-3.23v-.21A7.77,7.77,0,0,1,26.8,24.44Z\" fill=\"#484f60\"/><path d=\"M28,20.22l-.3.59.92.45a5.32,5.32,0,0,1,.59-.44Z\" fill=\"#484f60\"/><path d=\"M33.13,19.93l.76-.84h1.39v-.66H33.6L32.2,20c.26,0,.51,0,.78,0Z\" fill=\"#484f60\"/><polygon points=\"34.07 18.8 33.42 18.72 33.64 16.97 34.29 17.05 34.07 18.8 34.07 18.8\" fill=\"#484f60\"/><path d=\"M36,20.31l-.46-.47-.35.35q.38.09.72.21Z\" fill=\"#484f60\"/><path d=\"M32.71,24.63l.11.06.4,1.19.62-.21-.34-1h-.79Z\" fill=\"#484f60\"/><polygon points=\"26.6 26.29 26.68 26.32 26.68 26.13 26.6 26.29\" fill=\"#484f60\"/><polygon points=\"21.7 25.99 17.32 23.36 14.69 21.39 18.19 22.92 21.7 24.02 21.7 25.99\" fill=\"#484f60\"/><polygon points=\"18.52 22.92 17.86 22.92 17.86 20.07 18.52 20.07 18.52 22.92 18.52 22.92\" fill=\"#484f60\"/><polygon points=\"15.75 21.61 14.24 19.88 12.52 18.59 12.91 18.06 14.71 19.42 16.25 21.17 15.75 21.61 15.75 21.61\" fill=\"#484f60\"/><polygon points=\"14.78 19.73 14.15 19.55 14.59 18.01 15.22 18.2 14.78 19.73 14.78 19.73\" fill=\"#484f60\"/><polygon points=\"14.69 21.72 11.7 21.72 10.07 20.09 10.54 19.63 11.97 21.06 14.69 21.06 14.69 21.72 14.69 21.72\" fill=\"#484f60\"/><polygon points=\"11 22.91 10.49 22.49 11.59 21.18 12.09 21.6 11 22.91 11 22.91\" fill=\"#484f60\"/><polygon points=\"13.7 28.21 13.04 28.15 13.3 25.61 14.26 23.98 16.67 22.01 17.08 22.52 14.72 24.45 13.91 25.87 13.7 28.21 13.7 28.21\" fill=\"#484f60\"/><polygon points=\"13.59 26.1 11.84 26.1 11.84 25.44 13.59 25.44 13.59 26.1 13.59 26.1\" fill=\"#484f60\"/><polygon points=\"14.3 24.52 12.77 23.65 13.1 23.08 14.63 23.95 14.3 24.52 14.3 24.52\" fill=\"#484f60\"/><path d=\"M38.08,29.2H27.88c-1.87,0-2,1.52-2,3.41V38c0,1.89.17,3.42,2,3.42h10.2c1.88,0,2-1.53,2-3.42V32.61C40.12,30.72,40,29.2,38.08,29.2ZM29.8,39.75l1.73-4.22a2.55,2.55,0,1,1,2.9,0l1.74,4.22Z\" fill=\"#484f60\"/><path d=\"M36,25.84c0-2.4-1.35-2.71-3-2.71h0c-1.66,0-3,.31-3,2.71v2h-1.8v-2c0-3.34,2.15-4.42,4.8-4.42h0c2.66,0,4.81,1.08,4.81,4.42v2H36Z\" fill=\"#484f60\"/></svg>",
|
|
1005
1005
|
"fixed_tree_option_value": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M38,27.8H27.76c-1.88,0-2.05,1.53-2.05,3.41v5.4c0,1.88.17,3.41,2.05,3.41H38c1.88,0,2-1.53,2-3.41v-5.4C40,29.33,39.83,27.8,38,27.8ZM29.67,38.35l1.74-4.22a2.56,2.56,0,0,1,1.45-4.66,2.56,2.56,0,0,1,1.45,4.66L36,38.35Z\" fill=\"#484f60\"/><path d=\"M35.86,24.44c0-2.4-1.34-2.71-3-2.71h0c-1.66,0-3,.31-3,2.71v2h-1.8v-2c0-3.34,2.15-4.42,4.81-4.42h0c2.65,0,4.8,1.08,4.8,4.42v2h-1.8Z\" fill=\"#484f60\"/><path d=\"M29.19,19.36l-1.43,0A2.12,2.12,0,0,1,25.94,18l-2.49-7.16c-.25-.71-.65-.71-.9,0L20.06,18a2.12,2.12,0,0,1-1.82,1.32l-7.58.16c-.76,0-.88.4-.28.85l6,4.58a2.14,2.14,0,0,1,.7,2.15l-2.2,7.25c-.22.72.11,1,.73.53l6.22-4.33a2.14,2.14,0,0,1,2.26,0l.09.07c.05-1.35.35-3.5,2.33-4.12v-2A5.41,5.41,0,0,1,29.19,19.36Z\" fill=\"#484f60\"/></svg>",
|
|
1006
|
+
"floppy_disk_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M433.1 129.1l-83.9-83.9C342.3 38.32 327.1 32 316.1 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V163.9C448 152.9 441.7 137.7 433.1 129.1zM224 416c-35.34 0-64-28.66-64-64s28.66-64 64-64s64 28.66 64 64S259.3 416 224 416zM320 208C320 216.8 312.8 224 304 224h-224C71.16 224 64 216.8 64 208v-96C64 103.2 71.16 96 80 96h224C312.8 96 320 103.2 320 112V208z\"/></svg>",
|
|
1006
1007
|
"FolderArrow": "<svg preserveAspectRatio=\"none\" version=\"1.1\" viewBox=\"0 0 50 50\" x=\"0px\" xmlns=\"http://www.w3.org/2000/svg\" y=\"0px\"><g transform=\" translate(11 11)\"><path d=\"M 7.695 3.589 L 7.695 0 L 1.591 0 C 0.711 0 0 0.711 0 1.59 L 0 11.109 L 2.535 6.039 C 2.688 4.703 3.793 3.66 7.695 3.589 Z\" fill=\"#1E2930\" transform=\" translate(0.463 10.031)\" /><path d=\"M 7.7 1.59 C 7.7 0.711 6.988 0 6.109 0 L 0 0 L 0 3.574 L 7.7 3.574 L 7.7 1.59 Z\" fill=\"#1E2930\" transform=\" translate(16.924 10.031)\" /><path d=\"M 22.566 11.285 C 22.566 12.164 21.856 12.875 20.981 12.875 L 1.59 12.875 C 0.711 12.875 0 12.164 0 11.285 L 3.973 1.59 C 3.973 0.711 4.684 0 5.563 0 L 24.953 0 C 25.828 0 26.543 0.711 26.543 1.59 L 22.566 11.285 Z\" fill=\"#1E2930\" transform=\" translate(0.994 15.593)\" /><path d=\"M 6.331 0 L 0 6.332 L 3.938 6.332 L 3.938 12.871 L 8.729 12.871 L 8.729 6.332 L 12.663 6.332 L 6.331 0 Z\" fill=\"#1E2930\" transform=\" translate(6.21 0.468)\" /></g></svg>",
|
|
1007
1008
|
"folder_arrow_in": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><path d=\"M286.1,417a1.6,1.6,0,0,0-1.6,1.6v9.5l2.5-5.1c0.2-1.3,1.3-2.4,5.2-2.4H294l-3.6-3.6h-4.3Z\" transform=\"translate(-272.5 -396)\" fill=\"#4d5050\"/><path d=\"M307,417h-4.4l-3.6,3.6h9.5v-2A1.6,1.6,0,0,0,307,417Z\" transform=\"translate(-272.5 -396)\" fill=\"#4d5050\"/><path d=\"M307.6,433.9a1.6,1.6,0,0,1-1.6,1.6H286.6a1.6,1.6,0,0,1-1.6-1.6l4-9.7a1.6,1.6,0,0,1,1.6-1.6h19.4a1.6,1.6,0,0,1,1.6,1.6Z\" transform=\"translate(-272.5 -396)\" fill=\"#4d5050\"/><polygon points=\"24 24.4 30.4 18 26.4 18 26.4 11.5 21.6 11.5 21.6 18 17.7 18 24 24.4\" fill=\"#4d5050\"/></svg>",
|
|
1008
1009
|
"formula": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M14.85,15.24a16.12,16.12,0,0,0-3,10,16.45,16.45,0,0,0,3,9.86H13.19A15.77,15.77,0,0,1,10,25.2a16.12,16.12,0,0,1,3.19-10Z\" fill=\"#484f60\"/><path d=\"M35.15,35.09a16.11,16.11,0,0,0,3.05-10,16.46,16.46,0,0,0-3.05-9.87h1.66A15.77,15.77,0,0,1,40,25.13a16.1,16.1,0,0,1-3.19,10Z\" fill=\"#484f60\"/><path d=\"M32.26,30.25c-.82,1.84-3.08,2.12-4.88,2.18-2.8.1-3.3-2.53-4.2-4.62-1.12,1.56-2.48,4.44-4.73,4.55-3.31.16-2.54-4.67.72-4.58,3.67.1,3.93-1.43,3-4.68-.79-2.68-1.5-3.43-4.28-2.9.36-2.05,3.29-2.3,4.91-2.23,2.43.11,3.17,2.66,3.82,4.6,1.16-1.67,3.49-6.08,6.18-4.22,2.34,1.61-.28,4.22-2.26,4.09-3.81-.26-3.72,2-2.71,5.1.86,2.67,1.72,3,4.47,2.71C31.41,32.14,29,30.64,32.26,30.25Z\" fill=\"#484f60\"/></svg>",
|
|
@@ -1078,6 +1079,7 @@ const CoreComponentsIconSvg = {
|
|
|
1078
1079
|
"over_booking": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"31.66 31 27.76 27.1 27.76 29.73 25.86 29.74 23.34 29.73 23.34 32.27 24.59 32.27 27.76 32.26 27.76 34.9 31.66 31\" fill=\"#484f60\"/><rect x=\"12.27\" y=\"30.23\" width=\"2.39\" height=\"4.77\" fill=\"#484f60\" opacity=\"0.75\"/><rect x=\"15.34\" y=\"30.23\" width=\"2.39\" height=\"4.77\" fill=\"#484f60\" opacity=\"0.75\"/><polygon points=\"21.34 27.73 22.5 27.73 22.5 23.41 15 20 7.5 23.41 7.5 35 10.91 35 10.91 28.86 19.09 28.86 19.09 35 22.5 35 22.5 34.27 21.34 34.27 21.34 27.73\" fill=\"#484f60\" opacity=\"0.75\"/><rect x=\"38.86\" y=\"28.64\" width=\"3.18\" height=\"6.36\" fill=\"#484f60\"/><polygon points=\"32.5 19.54 32.5 29.01 34.49 31 32.5 32.99 32.5 35 37.05 35 37.05 26.82 42.5 26.82 42.5 15 32.5 19.54\" fill=\"#484f60\"/></svg>",
|
|
1079
1080
|
"pause_circle": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><g><g><path fill=\"#484F5F\" d=\"M23.5,18.5v14h-3.1v-14H23.5z M30.6,18.5v14h-3.1v-14H30.6z\"/></g><path fill=\"#484F5F\" d=\"M25.5,39.5c-7.7,0-14-6.3-14-14s6.3-14,14-14s14,6.3,14,14S33.2,39.5,25.5,39.5 M25.5,40.5c8.3,0,15-6.7,15-15c0-8.3-6.7-15-15-15c-8.3,0-15,6.7-15,15C10.5,33.8,17.2,40.5,25.5,40.5L25.5,40.5z\"/></g></svg>",
|
|
1080
1081
|
"pencil_round_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><rect x=\"290.8\" y=\"419.4\" width=\"10.4\" height=\"0.49\" transform=\"translate(-482.6 -62.8) rotate(-45)\" fill=\"#fff\"/><rect x=\"292.6\" y=\"420\" width=\"10.4\" height=\"3.1\" transform=\"translate(-483.4 -60.6) rotate(-45)\" fill=\"#fff\"/><path d=\"M305.8,414.7l-2.1-2.1a0.8,0.8,0,0,0-1.1,0l-0.8.8,3.1,3.1,0.8-.8A0.8,0.8,0,0,0,305.8,414.7Z\" transform=\"translate(-272.5 -395)\" fill=\"#fff\"/><rect x=\"301.6\" y=\"414\" width=\"1.3\" height=\"4.44\" transform=\"translate(-478.3 -59.3) rotate(-45)\" fill=\"#fff\"/><polygon points=\"18.8 29.3 17.5 33.1 17.9 33.5 21.7 32.2 18.8 29.3\" fill=\"#fff\"/><path d=\"M298,436a15.5,15.5,0,1,1,15.5-15.5A15.5,15.5,0,0,1,298,436Zm0-30a14.5,14.5,0,1,0,14.5,14.5A14.5,14.5,0,0,0,298,406Z\" transform=\"translate(-272.5 -395)\" fill=\"#fff\"/></svg>",
|
|
1082
|
+
"pen_to_square_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z\"/></svg>",
|
|
1081
1083
|
"phone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M28.23,38.17a4,4,0,0,1-2.06-.62A16.35,16.35,0,0,1,22,33.89,31.57,31.57,0,0,1,16,23a15.48,15.48,0,0,1-.75-4.38,3.7,3.7,0,0,1,1.69-3.31l1-.65c.16-.1.26-.07.36.1l3.35,5.8c.07.13.13.24,0,.36a2.78,2.78,0,0,0-1,2.69A10.07,10.07,0,0,0,23.78,30a4,4,0,0,0,2.33,1.19,2.24,2.24,0,0,0,1.2-.19c.19-.09.28,0,.38.13Q29.36,34,31,36.89c.07.12.13.23,0,.33A5.74,5.74,0,0,1,28.23,38.17Z\" fill=\"#484f60\"/><path d=\"M28,30.19a.81.81,0,0,1,.39-.68c.62-.36,1.23-.73,1.86-1.07a.78.78,0,0,1,1.09.38c.58,1,1.14,2,1.71,2.95l1.54,2.67c.4.71.31,1.06-.39,1.47-.5.29-1,.59-1.5.86a.79.79,0,0,1-1.2-.31c-1.13-1.94-2.25-3.89-3.38-5.85A1,1,0,0,1,28,30.19Z\" fill=\"#484f60\"/><path d=\"M21.18,12.17a.83.83,0,0,1,.82.53q1.16,2,2.29,4c.33.56.66,1.13,1,1.7a.85.85,0,0,1-.34,1.29l-1.58.91a.82.82,0,0,1-1.26-.34c-1.11-1.91-2.21-3.81-3.3-5.72a.81.81,0,0,1,.33-1.26c.53-.32,1.07-.62,1.61-.93A.77.77,0,0,1,21.18,12.17Z\" fill=\"#484f60\"/></svg>",
|
|
1082
1084
|
"phone_round_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><path d=\"M300.5,431.5a3.1,3.1,0,0,1-1.6-.5,12.6,12.6,0,0,1-3.2-2.8,24.3,24.3,0,0,1-4.7-8.4,11.8,11.8,0,0,1-.6-3.4,2.9,2.9,0,0,1,1.3-2.5l0.8-.5a0.2,0.2,0,0,1,.3.1l2.6,4.5a0.2,0.2,0,0,1,0,.3,2.1,2.1,0,0,0-.7,2.1,7.7,7.7,0,0,0,2.4,4.9,3,3,0,0,0,1.8.9h0.9a0.2,0.2,0,0,1,.3.1l2.6,4.5c0.1,0.1.1,0.2,0,.3A4.4,4.4,0,0,1,300.5,431.5Z\" transform=\"translate(-272.5 -396)\" fill=\"#fff\"/><path d=\"M300.3,425.3a0.6,0.6,0,0,1,.3-0.5l1.4-.8a0.6,0.6,0,0,1,.8.3l1.3,2.3,1.2,2.1a0.7,0.7,0,0,1-.3,1.1l-1.2.7a0.6,0.6,0,0,1-.9-0.2l-2.6-4.5A0.7,0.7,0,0,1,300.3,425.3Z\" transform=\"translate(-272.5 -396)\" fill=\"#fff\"/><path d=\"M295.1,411.5a0.7,0.7,0,0,1,.6.4l1.8,3,0.8,1.3a0.6,0.6,0,0,1-.3,1l-1.2.7a0.6,0.6,0,0,1-1-.3l-2.5-4.4a0.6,0.6,0,0,1,.3-1l1.2-.7h0.3Z\" transform=\"translate(-272.5 -396)\" fill=\"#fff\"/><path d=\"M298,437a15.5,15.5,0,1,1,15.5-15.5A15.5,15.5,0,0,1,298,437Zm0-30a14.5,14.5,0,1,0,14.5,14.5A14.5,14.5,0,0,0,298,407Z\" transform=\"translate(-272.5 -396)\" fill=\"#fff\"/></svg>",
|
|
1083
1085
|
"piechart": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g opacity=\"0.25\"><path d=\"M25,22.17,19.16,8.35a14.91,14.91,0,0,0-4.77,3.21L25,22.17Z\" fill=\"#4c5050\"/><path d=\"M25,7.17a15,15,0,0,0-5.84,1.18L25,22.17Z\" fill=\"#4c5050\"/><path d=\"M25,22.17,14.39,11.56a15.13,15.13,0,0,0-3.21,4.77L25,22.17Z\" fill=\"#4c5050\"/></g><path d=\"M38.82,16.33a15.13,15.13,0,0,0-3.21-4.77L25,22.17h0Z\" fill=\"#4c5050\"/><path d=\"M25,7.17v15L30.84,8.35A15,15,0,0,0,25,7.17Z\" fill=\"#4c5050\"/><path d=\"M30.84,8.35,25,22.17,35.61,11.56A14.91,14.91,0,0,0,30.84,8.35Z\" fill=\"#4c5050\"/><path d=\"M38.82,16.33,25,22.17H40A14.93,14.93,0,0,0,38.82,16.33Z\" fill=\"#4c5050\"/><g opacity=\"0.6\"><path d=\"M11.18,16.33A14.93,14.93,0,0,0,10,22.17H25Z\" fill=\"#4c5050\"/><path d=\"M14.39,32.77,25,22.17,11.18,28A15.08,15.08,0,0,0,14.39,32.77Z\" fill=\"#4c5050\"/><path d=\"M25,22.17H10A15,15,0,0,0,11.18,28L25,22.17Z\" fill=\"#4c5050\"/><path d=\"M19.16,36,25,22.17,14.39,32.77A15.1,15.1,0,0,0,19.16,36Z\" fill=\"#4c5050\"/><path d=\"M25,22.17h0L19.16,36A15,15,0,0,0,25,37.17v-15Z\" fill=\"#4c5050\"/><path d=\"M25,37.17A15,15,0,0,0,30.84,36L25,22.17Z\" fill=\"#4c5050\"/></g><path d=\"M30.84,36a15.1,15.1,0,0,0,4.77-3.22L25,22.17Z\" fill=\"#4c5050\"/><path d=\"M25,22.17l10.61,10.6A15.08,15.08,0,0,0,38.82,28L25,22.17Z\" fill=\"#4c5050\"/><path d=\"M25,22.17h0L38.82,28A15,15,0,0,0,40,22.17Z\" fill=\"#4c5050\"/><polygon points=\"25 22.17 25 22.17 25 22.17 25 22.17\" fill=\"#4c5050\"/><polygon points=\"25 22.17 25 22.17 25 22.17 25 22.17\" fill=\"#4c5050\"/></svg>",
|
|
@@ -1088,6 +1090,7 @@ const CoreComponentsIconSvg = {
|
|
|
1088
1090
|
"plus_round_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M24.34,32.17a.34.34,0,0,1-.34-.34V26.17H18.34a.34.34,0,0,1-.34-.34V24.5a.34.34,0,0,1,.34-.33H24V18.5a.34.34,0,0,1,.34-.33h1.33a.33.33,0,0,1,.33.33v5.67h5.67a.33.33,0,0,1,.33.33v1.33a.34.34,0,0,1-.33.34H26v5.66a.34.34,0,0,1-.33.34Z\" fill=\"#484f60\"/><path d=\"M25,11.17a14,14,0,1,1-14,14,14,14,0,0,1,14-14m0-1a15,15,0,1,0,15,15,15,15,0,0,0-15-15Z\" fill=\"#484f60\"/></svg>",
|
|
1089
1091
|
"plus_simple": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M23.86,37a.58.58,0,0,1-.57-.57V26.71H13.58a.57.57,0,0,1-.58-.56v-2.3a.57.57,0,0,1,.58-.56h9.71V13.57a.58.58,0,0,1,.57-.57h2.28a.57.57,0,0,1,.57.57v9.72h9.72a.57.57,0,0,1,.57.56v2.3a.57.57,0,0,1-.57.56H26.71v9.72a.57.57,0,0,1-.57.57Z\" fill=\"#484f60\"/></svg>",
|
|
1090
1092
|
"plus_skinny": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M24.4,37.5c-0.3,0-0.6-0.3-0.6-0.6v-9.7h-9.7c-0.3,0-0.6-0.3-0.6-0.6v-2.3c0-0.3,0.3-0.6,0.6-0.6h9.7v-9.7c0-0.3,0.3-0.6,0.6-0.6h2.3c0.3,0,0.6,0.3,0.6,0.6v9.7h9.7c0.3,0,0.6,0.3,0.6,0.6v2.3c0,0.3-0.3,0.6-0.6,0.6h-9.7v9.7c0,0.3-0.3,0.6-0.6,0.6H24.4z\"/></svg>",
|
|
1093
|
+
"plus_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z\"/></svg>",
|
|
1091
1094
|
"plus_stars": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"24.09 10 23.32 12.15 21.13 12.82 22.93 14.22 22.89 16.51 24.79 15.23 26.95 15.98 26.31 13.78 27.69 11.95 25.4 11.88 24.09 10\" fill=\"#484f60\" opacity=\"0.8\"/><polygon points=\"15.69 13.56 16.49 15.05 15.77 16.58 17.43 16.28 18.67 17.43 18.9 15.76 20.38 14.94 18.86 14.21 18.54 12.55 17.37 13.77 15.69 13.56\" fill=\"#484f60\" opacity=\"0.6\"/><polygon points=\"12.16 19.48 13 20.08 13.02 21.11 13.85 20.49 14.83 20.79 14.5 19.81 15.09 18.97 14.06 18.98 13.44 18.16 13.13 19.14 12.16 19.48\" fill=\"#484f60\" opacity=\"0.4\"/><polygon points=\"25.91 40 26.68 37.85 28.87 37.18 27.07 35.77 27.11 33.49 25.21 34.77 23.05 34.02 23.69 36.22 22.31 38.05 24.6 38.12 25.91 40\" fill=\"#484f60\" opacity=\"0.8\"/><polygon points=\"34.31 36.44 33.51 34.95 34.23 33.42 32.56 33.72 31.33 32.57 31.1 34.24 29.62 35.06 31.14 35.79 31.46 37.45 32.63 36.23 34.31 36.44\" fill=\"#484f60\" opacity=\"0.6\"/><polygon points=\"37.84 30.52 37 29.92 36.98 28.89 36.15 29.51 35.17 29.21 35.5 30.19 34.91 31.03 35.94 31.02 36.56 31.84 36.87 30.86 37.84 30.52\" fill=\"#484f60\" opacity=\"0.4\"/><path d=\"M24.15,31.49a.31.31,0,0,1-.31-.31V25.92H18.58a.31.31,0,0,1-.31-.31V24.37a.31.31,0,0,1,.31-.31h5.26V18.8a.31.31,0,0,1,.31-.31h1.24a.31.31,0,0,1,.31.31v5.26H31a.31.31,0,0,1,.31.31v1.24a.31.31,0,0,1-.31.31H25.7v5.26a.31.31,0,0,1-.31.31Z\" fill=\"#484f60\"/></svg>",
|
|
1092
1095
|
"pointer": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 372 50 50\" enable-background=\"new -280 372 50 50\" ><path fill=\"#4C5050\" d=\"M-255,384.5c-4.6,0-8.3,3.7-8.3,8.3s8.3,16.7,8.3,16.7s8.3-12.1,8.3-16.7S-250.4,384.5-255,384.5z M-255,394.9c-1.2,0-2.1-0.9-2.1-2.1c0-1.2,0.9-2.1,2.1-2.1c1.2,0,2.1,0.9,2.1,2.1C-252.9,394-253.8,394.9-255,394.9z\"/></svg>",
|
|
1093
1096
|
"pointer_3d": "<svg width=\"512\" height=\"512\" xmlns=\"http://www.w3.org/2000/svg\"><g><g stroke=\"null\"><path fill=\"#06B7FC\" d=\"m256,18.34937c-87.45543,0 -157.80002,70.34459 -157.80002,157.80002s157.80002,317.50125 157.80002,317.50125s157.80002,-230.04581 157.80002,-317.50125s-70.34459,-157.80002 -157.80002,-157.80002zm0,197.72533c-22.81446,0 -39.92531,-17.11085 -39.92531,-39.92531c0,-22.81446 17.11085,-39.92531 39.92531,-39.92531c22.81446,0 39.92531,17.11085 39.92531,39.92531c0,22.81446 -17.11085,39.92531 -39.92531,39.92531z\" stroke=\"null\"/></g></g></svg>",
|
|
@@ -1115,6 +1118,7 @@ const CoreComponentsIconSvg = {
|
|
|
1115
1118
|
"resize_up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"20.5 22.75 25 18.25 29.5 22.75 20.5 22.75\" fill=\"#484f60\"/><rect x=\"23\" y=\"25.75\" width=\"4\" height=\"4\" fill=\"#484f60\"/><rect x=\"29\" y=\"25.75\" width=\"4\" height=\"4\" fill=\"#484f60\"/><rect x=\"17\" y=\"25.75\" width=\"4\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
1116
1119
|
"returns": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M33.63,16.88H29.25A1.25,1.25,0,0,0,28,18.13v.65A1.25,1.25,0,0,0,29.25,20h9.5A1.25,1.25,0,0,0,40,18.78v-.65a1.25,1.25,0,0,0-1.25-1.25H33.63Z\" fill=\"#484f60\"/><path d=\"M35.36,22.45H20.53v1.79a3.21,3.21,0,0,1-.67,1.94V37.09H18.79v-10a3.24,3.24,0,0,1-1.08.33v9.68H16.64V27.45a3.68,3.68,0,0,1-.57-.06v9.7H14.29V26.36a3.17,3.17,0,0,1-.82-2.12V22.81a2.14,2.14,0,0,0-1,1.78V36.74a2.14,2.14,0,0,0,2.14,2.14H35.36a2.14,2.14,0,0,0,2.14-2.14V24.59A2.14,2.14,0,0,0,35.36,22.45ZM22.79,37.09H21V24.24h1.79Zm1.71,0H23.43V24.24H24.5Zm1.72,0H25.15V24.24h1.07Zm2.21,0H27.36V24.24h1.07Zm2.93,0H30.29V24.24h1.07Zm2.79,0H32V24.24h2.15Zm1.92,0H35V24.24h1.07Z\" fill=\"#484f60\"/><path d=\"M22.79,16.92H18.53V12.67a1.22,1.22,0,0,0-1.21-1.22h-.63a1.22,1.22,0,0,0-1.22,1.22v4.25H11.22A1.22,1.22,0,0,0,10,18.13v.64A1.21,1.21,0,0,0,11.22,20h4.25v4.26a1.21,1.21,0,0,0,1.22,1.21h.63a1.21,1.21,0,0,0,1.21-1.21V20h4.26A1.21,1.21,0,0,0,24,18.77v-.64A1.21,1.21,0,0,0,22.79,16.92Z\" fill=\"#484f60\" opacity=\"0.5\"/></svg>",
|
|
1117
1120
|
"return_goods": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><path d=\"M298,407.7a15,15,0,0,0-5.1.9l-2.7-3.5-2.5,9.7,10-.3-2-2.6,2.4-.3a11,11,0,1,1-11,11h-4A15,15,0,1,0,298,407.7Z\" transform=\"translate(-272.5 -396)\" fill=\"#fff\"/></svg>",
|
|
1121
|
+
"rotate_left_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M480 256c0 123.4-100.5 223.9-223.9 223.9c-48.84 0-95.17-15.58-134.2-44.86c-14.12-10.59-16.97-30.66-6.375-44.81c10.59-14.12 30.62-16.94 44.81-6.375c27.84 20.91 61 31.94 95.88 31.94C344.3 415.8 416 344.1 416 256s-71.69-159.8-159.8-159.8c-37.46 0-73.09 13.49-101.3 36.64l45.12 45.14c17.01 17.02 4.955 46.1-19.1 46.1H35.17C24.58 224.1 16 215.5 16 204.9V59.04c0-24.04 29.07-36.08 46.07-19.07l47.6 47.63C149.9 52.71 201.5 32.11 256.1 32.11C379.5 32.11 480 132.6 480 256z\"/></svg>",
|
|
1118
1122
|
"save_disk": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><g opacity=\"0.95\"><path fill=\"#29363E\" d=\"M-259.5,384.4h-2.1v6.8c0,0.4-0.3,0.7-0.7,0.7h-16.6c-0.4,0-0.7-0.3-0.7-0.7v-6.8h-2c-0.6,0-1.1,0.5-1.1,1.1v22.4c0,0.6,0.5,1.1,1.1,1.1h2v-14c0-0.4,0.3-0.7,0.7-0.7h16.7c0.4,0,0.7,0.3,0.7,0.7v14h2c0.6,0,1.1-0.5,1.1-1.1v-22.4C-258.4,384.9-258.9,384.4-259.5,384.4z M-280.1,406.6h-1.7V405h1.7V406.6z M-259.2,406.6h-1.7V405h1.7V406.6z\"/><rect x=\"-278.4\" y=\"395.4\" fill=\"#29363E\" width=\"15.8\" height=\"13.5\"/><path fill=\"#29363E\" d=\"M-263.4,384h-12c-0.1,0-0.3,0.1-0.3,0.3v6.5c0,0.1,0.1,0.3,0.3,0.3h12c0.1,0,0.2-0.1,0.2-0.3v-6.5C-263.1,384.1-263.2,384-263.4,384z M-265.6,390c0,0.1-0.1,0.3-0.3,0.3h-2.4c-0.1,0-0.2-0.1-0.2-0.3v-4.8c0-0.1,0.1-0.3,0.2-0.3h2.4c0.1,0,0.3,0.1,0.3,0.3V390z\"/></g></svg>",
|
|
1119
1123
|
"save_skinny": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><polygon points=\"23.8 38.1 14.9 25.6 15.7 25 23.6 36.2 35.2 12.9 36.1 13.4 23.8 38.1\" fill=\"#fff\"/></svg>",
|
|
1120
1124
|
"scale_balanced": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path style=\"fill:#484f60\" d=\"M554.9 154.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 128 80s127.1-35.88 127.1-80C639.1 319.9 641.4 327.3 554.9 154.5zM439.1 320l71.96-144l72.17 144H439.1zM256 336c0-16.12 1.375-8.75-85.12-181.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 127.1 80S256 380.1 256 336zM127.9 176L200.1 320H55.96L127.9 176zM495.1 448h-143.1V153.3C375.5 143 393.1 121.8 398.4 96h113.6c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-128.4c-14.62-19.38-37.5-32-63.62-32S270.1 12.62 256.4 32H128C110.3 32 96 46.33 96 64S110.3 96 127.1 96h113.6c5.25 25.75 22.87 47 46.37 57.25V448H144c-26.51 0-48.01 21.49-48.01 48c0 8.836 7.165 16 16 16h416c8.836 0 16-7.164 16-16C544 469.5 522.5 448 495.1 448z\"/></svg>",
|
|
@@ -1165,6 +1169,7 @@ const CoreComponentsIconSvg = {
|
|
|
1165
1169
|
"transactions": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#333333\" d=\"M29.8,18.9c-1.9,0-2.1-0.3-2.1-2.1v-6.3l8.2,8.4H29.8z\"/><path fill=\"#333333\" d=\"M15.8,40c-1.9,0-2.1-0.3-2.1-2.1V12.1c0-1.9,0.3-2.1,2.1-2.1h10v6.7c0,2.9,1.1,4,4,4h6.5v17.1c0,1.9-0.3,2.1-2.1,2.1H15.8z M29.4,32h4.1v-1.8h-4.1V32z M29.4,28.4h4.1v-1.8h-4.1V28.4z M29.4,24.7h4.1v-1.8h-4.1V24.7z M16.3,32h11.5v-1.8H16.3V32z M16.3,28.4h11.5v-1.8H16.3V28.4z M16.3,24.7h11.5v-1.8H16.3V24.7z M27.4,36.9h6.1v-1.8h-6.1V36.9z M16.3,14.3h6.1v-1.8h-6.1V14.3z M16.3,16.7h6.1v-1.8h-6.1V16.7z\"/></g></svg>",
|
|
1166
1170
|
"transaction_detail": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><g opacity=\"0.5\"><rect x=\"15.5\" y=\"18\" width=\"6\" height=\"1\" fill=\"#4d5050\"/><rect x=\"15.5\" y=\"22\" width=\"10\" height=\"1\" fill=\"#4d5050\"/><rect x=\"15.5\" y=\"26\" width=\"10\" height=\"1\" fill=\"#4d5050\"/><rect x=\"15.5\" y=\"30\" width=\"10\" height=\"1\" fill=\"#4d5050\"/><polygon points=\"35 18.98 33.5 18.98 33.5 25.52 35 27.02 35 18.98\" fill=\"#4d5050\"/><path d=\"M671,398V372a.5.5,0,0,1,.5-.5h13.73V370H671.5a2,2,0,0,0-2,2v26a2,2,0,0,0,2,2h19.14v-1.5H671.5A.5.5,0,0,1,671,398Z\" transform=\"translate(-658.5 -359.5)\" fill=\"#4d5050\"/><path d=\"M685.23,370v6.44c0,1.78.27,2,2,2h6.22Z\" transform=\"translate(-658.5 -359.5)\" fill=\"#4d5050\"/><rect x=\"15.5\" y=\"15\" width=\"6\" height=\"1\" fill=\"#4d5050\"/><rect x=\"27.5\" y=\"22\" width=\"3\" height=\"1\" fill=\"#4d5050\"/><rect x=\"27.5\" y=\"26\" width=\"3\" height=\"1\" fill=\"#4d5050\"/><rect x=\"27.5\" y=\"30\" width=\"3\" height=\"0.57\" fill=\"#4d5050\"/><path d=\"M684.69,392.66a.5.5,0,0,0-.29-.28.51.51,0,0,0-.4,0l-2.23,1.16a.5.5,0,0,0,.46.89l1.75-.9.79,1.93a.49.49,0,0,0,.23.24V393.4Z\" transform=\"translate(-658.5 -359.5)\" fill=\"#4d5050\"/></g><polygon points=\"33.64 32.07 28 32.07 28 36.2 33.64 36.2 33.64 36.2 33.64 40.5 40 34.14 33.64 27.77 33.64 32.07\" fill=\"#4d5050\"/></svg>",
|
|
1167
1171
|
"TrashBin": "<svg preserveAspectRatio=\"none\" version=\"1.1\" viewBox=\"0 0 50 50\" x=\"0px\" xmlns=\"http://www.w3.org/2000/svg\" y=\"0px\"><g transform=\" translate(14 10)\"><path d=\"M 0 0 L 0 18.215 C 0 19.99 1.439 21.429 3.215 21.429 L 15 21.429 C 16.775 21.429 18.215 19.99 18.215 18.215 L 18.215 0 L 0 0 Z M 4.287 19.286 L 2.143 19.286 L 2.143 2.143 L 4.287 2.143 L 4.287 19.286 Z M 10.18 19.286 L 8.037 19.286 L 8.037 2.143 L 10.18 2.143 L 10.18 19.286 Z M 16.072 19.286 L 13.93 19.286 L 13.93 2.143 L 16.072 2.143 L 16.072 19.286 Z\" fill=\"#1E2930\" transform=\" translate(1.891 8.571)\" /><path d=\"M 18.213 2.143 L 10.713 2.143 C 11.305 2.143 11.785 1.664 11.785 1.071 C 11.785 0.479 11.305 0 10.713 0 L 9.643 0 C 9.051 0 8.57 0.479 8.57 1.071 C 8.57 1.664 9.051 2.143 9.643 2.143 L 2.143 2.143 C 0.959 2.143 0 3.103 0 4.286 L 0 5.357 C 0 6.541 0.959 6.429 2.143 6.429 L 18.213 6.429 C 19.397 6.429 20.357 6.541 20.357 5.357 L 20.357 4.286 C 20.357 3.103 19.397 2.143 18.213 2.143 Z\" fill=\"#1E2930\" transform=\" translate(0.821 0)\" /></g></svg>",
|
|
1172
|
+
"trash_can_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M135.2 17.69C140.6 6.848 151.7 0 163.8 0H284.2C296.3 0 307.4 6.848 312.8 17.69L320 32H416C433.7 32 448 46.33 448 64C448 81.67 433.7 96 416 96H32C14.33 96 0 81.67 0 64C0 46.33 14.33 32 32 32H128L135.2 17.69zM31.1 128H416V448C416 483.3 387.3 512 352 512H95.1C60.65 512 31.1 483.3 31.1 448V128zM111.1 208V432C111.1 440.8 119.2 448 127.1 448C136.8 448 143.1 440.8 143.1 432V208C143.1 199.2 136.8 192 127.1 192C119.2 192 111.1 199.2 111.1 208zM207.1 208V432C207.1 440.8 215.2 448 223.1 448C232.8 448 240 440.8 240 432V208C240 199.2 232.8 192 223.1 192C215.2 192 207.1 199.2 207.1 208zM304 208V432C304 440.8 311.2 448 320 448C328.8 448 336 440.8 336 432V208C336 199.2 328.8 192 320 192C311.2 192 304 199.2 304 208z\"/></svg>",
|
|
1168
1173
|
"triangle_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"29.06 18.75 37.5 18.75 25 31.25 12.5 18.75 20.95 18.75 29.06 18.75\" fill=\"#484f60\"/></svg>",
|
|
1169
1174
|
"triangle_large": "<svg version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\"><g><polygon fill=\"green\" points=\"0 0, 100 100, 0 100\"/></g></svg>",
|
|
1170
1175
|
"triangle_left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"31.25 29.06 31.25 37.5 18.75 25 31.25 12.5 31.25 20.95 31.25 29.06\" fill=\"#484f60\"/></svg>",
|
|
@@ -2172,6 +2177,7 @@ var CoreComponentsIcon;
|
|
|
2172
2177
|
CoreComponentsIcon["Finish"] = "finish";
|
|
2173
2178
|
CoreComponentsIcon["FixedOptionValueTree"] = "fixed_option_value_tree";
|
|
2174
2179
|
CoreComponentsIcon["FixedTreeOptionValue"] = "fixed_tree_option_value";
|
|
2180
|
+
CoreComponentsIcon["FloppyDiskSolid"] = "floppy_disk_solid";
|
|
2175
2181
|
CoreComponentsIcon["FolderArrow"] = "FolderArrow";
|
|
2176
2182
|
CoreComponentsIcon["FolderArrowIn"] = "folder_arrow_in";
|
|
2177
2183
|
CoreComponentsIcon["Formula"] = "formula";
|
|
@@ -2247,6 +2253,7 @@ var CoreComponentsIcon;
|
|
|
2247
2253
|
CoreComponentsIcon["OverBooking"] = "over_booking";
|
|
2248
2254
|
CoreComponentsIcon["PauseCircle"] = "pause_circle";
|
|
2249
2255
|
CoreComponentsIcon["PencilRoundOpen"] = "pencil_round_open";
|
|
2256
|
+
CoreComponentsIcon["PenToSquareSolid"] = "pen_to_square_solid";
|
|
2250
2257
|
CoreComponentsIcon["Phone"] = "phone";
|
|
2251
2258
|
CoreComponentsIcon["PhoneRoundOpen"] = "phone_round_open";
|
|
2252
2259
|
CoreComponentsIcon["Piechart"] = "piechart";
|
|
@@ -2257,6 +2264,7 @@ var CoreComponentsIcon;
|
|
|
2257
2264
|
CoreComponentsIcon["PlusRoundOpen"] = "plus_round_open";
|
|
2258
2265
|
CoreComponentsIcon["PlusSimple"] = "plus_simple";
|
|
2259
2266
|
CoreComponentsIcon["PlusSkinny"] = "plus_skinny";
|
|
2267
|
+
CoreComponentsIcon["PlusSolid"] = "plus_solid";
|
|
2260
2268
|
CoreComponentsIcon["PlusStars"] = "plus_stars";
|
|
2261
2269
|
CoreComponentsIcon["Pointer"] = "pointer";
|
|
2262
2270
|
CoreComponentsIcon["Pointer3d"] = "pointer_3d";
|
|
@@ -2284,6 +2292,7 @@ var CoreComponentsIcon;
|
|
|
2284
2292
|
CoreComponentsIcon["ResizeUp"] = "resize_up";
|
|
2285
2293
|
CoreComponentsIcon["Returns"] = "returns";
|
|
2286
2294
|
CoreComponentsIcon["ReturnGoods"] = "return_goods";
|
|
2295
|
+
CoreComponentsIcon["RotateLeftSolid"] = "rotate_left_solid";
|
|
2287
2296
|
CoreComponentsIcon["SaveDisk"] = "save_disk";
|
|
2288
2297
|
CoreComponentsIcon["SaveSkinny"] = "save_skinny";
|
|
2289
2298
|
CoreComponentsIcon["ScaleBalanced"] = "scale_balanced";
|
|
@@ -2334,6 +2343,7 @@ var CoreComponentsIcon;
|
|
|
2334
2343
|
CoreComponentsIcon["Transactions"] = "transactions";
|
|
2335
2344
|
CoreComponentsIcon["TransactionDetail"] = "transaction_detail";
|
|
2336
2345
|
CoreComponentsIcon["TrashBin"] = "TrashBin";
|
|
2346
|
+
CoreComponentsIcon["TrashCanSolid"] = "trash_can_solid";
|
|
2337
2347
|
CoreComponentsIcon["TriangleDown"] = "triangle_down";
|
|
2338
2348
|
CoreComponentsIcon["TriangleLarge"] = "triangle_large";
|
|
2339
2349
|
CoreComponentsIcon["TriangleLeft"] = "triangle_left";
|
|
@@ -5436,10 +5446,15 @@ class GridToolbarComponent {
|
|
|
5436
5446
|
constructor(iconsService) {
|
|
5437
5447
|
this.iconsService = iconsService;
|
|
5438
5448
|
this.icons = CoreComponentsIcon;
|
|
5449
|
+
this.showEdit = false;
|
|
5450
|
+
this.showAdd = false;
|
|
5451
|
+
this.showDelete = false;
|
|
5452
|
+
this.deleteEnabled = false;
|
|
5439
5453
|
this.editClick = new EventEmitter();
|
|
5440
5454
|
this.cancelClick = new EventEmitter();
|
|
5441
5455
|
this.saveClick = new EventEmitter();
|
|
5442
5456
|
this.addClick = new EventEmitter();
|
|
5457
|
+
this.deleteClick = new EventEmitter();
|
|
5443
5458
|
}
|
|
5444
5459
|
showClass() {
|
|
5445
5460
|
return true;
|
|
@@ -5450,10 +5465,11 @@ GridToolbarComponent.decorators = [
|
|
|
5450
5465
|
selector: "co-grid-toolbar",
|
|
5451
5466
|
template: `
|
|
5452
5467
|
<div class="grid-toolbar-wrapper">
|
|
5453
|
-
<co-
|
|
5454
|
-
<co-
|
|
5455
|
-
<co-
|
|
5456
|
-
<co-
|
|
5468
|
+
<co-icon *ngIf="showEdit" [iconData]="iconsService.getIcon(icons.PenToSquareSolid)" [title]="'edit'" (click)="editClick.emit($event)"></co-icon>
|
|
5469
|
+
<co-icon *ngIf="showEdit" [iconData]="iconsService.getIcon(icons.RotateLeftSolid)" [title]="'cancel'" (click)="cancelClick.emit()"></co-icon>
|
|
5470
|
+
<co-icon *ngIf="showEdit" [iconData]="iconsService.getIcon(icons.FloppyDiskSolid)" [title]="'save'" (click)="saveClick.emit()"></co-icon>
|
|
5471
|
+
<co-icon *ngIf="showAdd || showEdit" [iconData]="iconsService.getIcon(icons.PlusSolid)" [title]="'add'" (click)="addClick.emit()"></co-icon>
|
|
5472
|
+
<co-icon *ngIf="showDelete" [iconData]="iconsService.getIcon(icons.TrashCanSolid)" [title]="'delete'" [class.disabled]="!deleteEnabled" (click)="deleteClick.emit()"></co-icon>
|
|
5457
5473
|
</div>
|
|
5458
5474
|
`,
|
|
5459
5475
|
encapsulation: ViewEncapsulation.None
|
|
@@ -5463,10 +5479,15 @@ GridToolbarComponent.ctorParameters = () => [
|
|
|
5463
5479
|
{ type: IconCacheService }
|
|
5464
5480
|
];
|
|
5465
5481
|
GridToolbarComponent.propDecorators = {
|
|
5482
|
+
showEdit: [{ type: Input }],
|
|
5483
|
+
showAdd: [{ type: Input }],
|
|
5484
|
+
showDelete: [{ type: Input }],
|
|
5485
|
+
deleteEnabled: [{ type: Input }],
|
|
5466
5486
|
editClick: [{ type: Output }],
|
|
5467
5487
|
cancelClick: [{ type: Output }],
|
|
5468
5488
|
saveClick: [{ type: Output }],
|
|
5469
5489
|
addClick: [{ type: Output }],
|
|
5490
|
+
deleteClick: [{ type: Output }],
|
|
5470
5491
|
showClass: [{ type: HostBinding, args: ["class.co-grid-toolbar",] }]
|
|
5471
5492
|
};
|
|
5472
5493
|
|
|
@@ -5477,7 +5498,8 @@ GridToolbarModule.decorators = [
|
|
|
5477
5498
|
{ type: NgModule, args: [{
|
|
5478
5499
|
imports: [
|
|
5479
5500
|
IconModule,
|
|
5480
|
-
ButtonModule
|
|
5501
|
+
ButtonModule,
|
|
5502
|
+
CommonModule
|
|
5481
5503
|
],
|
|
5482
5504
|
declarations: [
|
|
5483
5505
|
GridToolbarComponent
|
|
@@ -8626,6 +8648,7 @@ class SimpleGridColumnDirective {
|
|
|
8626
8648
|
this.elementRef = elementRef;
|
|
8627
8649
|
this.resizable = true;
|
|
8628
8650
|
this.required = false;
|
|
8651
|
+
this.autoFit = false;
|
|
8629
8652
|
this.readonly = false;
|
|
8630
8653
|
this.order = 0;
|
|
8631
8654
|
this.singleColumn = false;
|
|
@@ -8654,6 +8677,22 @@ class SimpleGridColumnDirective {
|
|
|
8654
8677
|
get editTemplate() {
|
|
8655
8678
|
return this._editTemplate;
|
|
8656
8679
|
}
|
|
8680
|
+
set width(value) {
|
|
8681
|
+
if (typeof value === 'string') {
|
|
8682
|
+
if (value.indexOf('%')) {
|
|
8683
|
+
this.widthPercentage = value;
|
|
8684
|
+
}
|
|
8685
|
+
else {
|
|
8686
|
+
this._width = value;
|
|
8687
|
+
}
|
|
8688
|
+
}
|
|
8689
|
+
else {
|
|
8690
|
+
this._width = value;
|
|
8691
|
+
}
|
|
8692
|
+
}
|
|
8693
|
+
get width() {
|
|
8694
|
+
return this._width;
|
|
8695
|
+
}
|
|
8657
8696
|
ngOnInit() {
|
|
8658
8697
|
this._setSingleColumnProps();
|
|
8659
8698
|
}
|
|
@@ -8700,6 +8739,7 @@ SimpleGridColumnDirective.propDecorators = {
|
|
|
8700
8739
|
format: [{ type: Input }],
|
|
8701
8740
|
resizable: [{ type: Input }],
|
|
8702
8741
|
required: [{ type: Input }],
|
|
8742
|
+
autoFit: [{ type: Input }],
|
|
8703
8743
|
width: [{ type: Input }],
|
|
8704
8744
|
readonly: [{ type: Input }],
|
|
8705
8745
|
collection: [{ type: Input }],
|
|
@@ -8709,7 +8749,7 @@ SimpleGridColumnDirective.propDecorators = {
|
|
|
8709
8749
|
|
|
8710
8750
|
class BaseSimpleGridComponent {
|
|
8711
8751
|
constructor() {
|
|
8712
|
-
this.MIN_COLUMN_WIDTH =
|
|
8752
|
+
this.MIN_COLUMN_WIDTH = 50;
|
|
8713
8753
|
this.dragDropEnabled = false;
|
|
8714
8754
|
this.resizable = false;
|
|
8715
8755
|
this.inlineEdit = false;
|
|
@@ -8724,6 +8764,8 @@ class BaseSimpleGridComponent {
|
|
|
8724
8764
|
this.selectRow = new EventEmitter();
|
|
8725
8765
|
this.dblClickRow = new EventEmitter();
|
|
8726
8766
|
this.saveRow = new EventEmitter();
|
|
8767
|
+
this.deleteRow = new EventEmitter();
|
|
8768
|
+
this.addRow = new EventEmitter();
|
|
8727
8769
|
this.rowVisible = new EventEmitter();
|
|
8728
8770
|
this.columns = [];
|
|
8729
8771
|
this.headerColumns = [];
|
|
@@ -8746,7 +8788,7 @@ class BaseSimpleGridComponent {
|
|
|
8746
8788
|
}
|
|
8747
8789
|
handleMouseMove(event) {
|
|
8748
8790
|
if (this.resizable && event.buttons === 1 && this._columnForResize) {
|
|
8749
|
-
this._columnForResize.width = this._columnForResize.originalWidth - (this._startMousePositionX - event.clientX);
|
|
8791
|
+
// this._columnForResize.width = this._columnForResize.originalWidth - (this._startMousePositionX - event.clientX);
|
|
8750
8792
|
}
|
|
8751
8793
|
}
|
|
8752
8794
|
handleMouseUp(event) {
|
|
@@ -8815,6 +8857,13 @@ class BaseSimpleGridComponent {
|
|
|
8815
8857
|
}
|
|
8816
8858
|
this._prepared = true;
|
|
8817
8859
|
}
|
|
8860
|
+
this._resizeColumnsToFit();
|
|
8861
|
+
}
|
|
8862
|
+
_resizeColumnsToFit() {
|
|
8863
|
+
const calculateColumns = this.columns.filter(c => !c.autoFit && !c.width);
|
|
8864
|
+
for (let i = 0; i < calculateColumns.length; i++) {
|
|
8865
|
+
calculateColumns[i].width = `${100 / calculateColumns.length}%`;
|
|
8866
|
+
}
|
|
8818
8867
|
}
|
|
8819
8868
|
_setWidthOfAllColumns() {
|
|
8820
8869
|
this.columns.forEach((column) => {
|
|
@@ -8842,6 +8891,8 @@ BaseSimpleGridComponent.propDecorators = {
|
|
|
8842
8891
|
selectRow: [{ type: Output }],
|
|
8843
8892
|
dblClickRow: [{ type: Output }],
|
|
8844
8893
|
saveRow: [{ type: Output }],
|
|
8894
|
+
deleteRow: [{ type: Output }],
|
|
8895
|
+
addRow: [{ type: Output }],
|
|
8845
8896
|
rowVisible: [{ type: Output }],
|
|
8846
8897
|
handleMouseMove: [{ type: HostListener, args: ['document:mousemove', ['$event'],] }],
|
|
8847
8898
|
handleMouseUp: [{ type: HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
@@ -8853,6 +8904,9 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
8853
8904
|
this._changeDetection = _changeDetection;
|
|
8854
8905
|
this._formMaster = _formMaster;
|
|
8855
8906
|
this.defaultTextAlign = ColumnAlign.Left;
|
|
8907
|
+
this.showAdd = false;
|
|
8908
|
+
this.showDelete = false;
|
|
8909
|
+
this.rightToolbar = false;
|
|
8856
8910
|
this.editing = false;
|
|
8857
8911
|
this.editRowIndex = -1;
|
|
8858
8912
|
this.editCellIndex = -1;
|
|
@@ -8896,20 +8950,25 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
8896
8950
|
const singleColumn = columns.find(column => this.isSingleColumn(column) && !!row[column.field]);
|
|
8897
8951
|
return !!singleColumn;
|
|
8898
8952
|
}
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
if (valid) {
|
|
8903
|
-
this.data.push({});
|
|
8904
|
-
this._newRow = true;
|
|
8905
|
-
this.editRowIndex = this.data.length - 1;
|
|
8906
|
-
this._nextAvailableCellToEdit(true).then((index) => {
|
|
8907
|
-
this.editCellIndex = index;
|
|
8908
|
-
this._detectChanges();
|
|
8909
|
-
});
|
|
8910
|
-
this.editing = true;
|
|
8911
|
-
this.rowToEdit = this.data[this.data.length - 1];
|
|
8953
|
+
addNewRow() {
|
|
8954
|
+
if (this.inlineEdit) {
|
|
8955
|
+
const valid = this.validateAndSave();
|
|
8912
8956
|
this._detectChanges();
|
|
8957
|
+
if (valid) {
|
|
8958
|
+
this.data.push({});
|
|
8959
|
+
this._newRow = true;
|
|
8960
|
+
this.editRowIndex = this.data.length - 1;
|
|
8961
|
+
this._nextAvailableCellToEdit(true).then((index) => {
|
|
8962
|
+
this.editCellIndex = index;
|
|
8963
|
+
this._detectChanges();
|
|
8964
|
+
});
|
|
8965
|
+
this.editing = true;
|
|
8966
|
+
this.rowToEdit = this.data[this.data.length - 1];
|
|
8967
|
+
this._detectChanges();
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8970
|
+
else {
|
|
8971
|
+
this.addRow.next();
|
|
8913
8972
|
}
|
|
8914
8973
|
}
|
|
8915
8974
|
validateAndSave(stopediting = true) {
|
|
@@ -8938,6 +8997,9 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
8938
8997
|
this.editing = false;
|
|
8939
8998
|
this._detectChanges();
|
|
8940
8999
|
}
|
|
9000
|
+
removeRow() {
|
|
9001
|
+
this.deleteRow.next(this.data[this.selectedRowIndex]);
|
|
9002
|
+
}
|
|
8941
9003
|
handleClickRow(event, index) {
|
|
8942
9004
|
setTimeout(() => {
|
|
8943
9005
|
if (this._doubleClicked) {
|
|
@@ -9036,7 +9098,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9036
9098
|
let newRowIndex = 0;
|
|
9037
9099
|
if (this.editRowIndex + 1 >= this.data.length) {
|
|
9038
9100
|
if (this.autoAddRow) {
|
|
9039
|
-
this.
|
|
9101
|
+
this.addNewRow();
|
|
9040
9102
|
newRowIndex = this.editRowIndex;
|
|
9041
9103
|
}
|
|
9042
9104
|
else {
|
|
@@ -9103,22 +9165,31 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9103
9165
|
}
|
|
9104
9166
|
SimpleGridComponent.decorators = [
|
|
9105
9167
|
{ type: Component, args: [{
|
|
9106
|
-
selector:
|
|
9168
|
+
selector: 'co-simple-grid',
|
|
9107
9169
|
template: `
|
|
9108
|
-
<co-grid-toolbar *ngIf="
|
|
9109
|
-
|
|
9170
|
+
<co-grid-toolbar *ngIf="showToolbar" [class.right]="rightToolbar"
|
|
9171
|
+
[showEdit]="inlineEdit"
|
|
9172
|
+
[showAdd]="showAdd"
|
|
9173
|
+
[showDelete]="showDelete"
|
|
9174
|
+
[deleteEnabled]="selectedRowIndex > -1"
|
|
9175
|
+
(addClick)="addNewRow()"
|
|
9110
9176
|
(editClick)="editRow($event)"
|
|
9111
9177
|
(saveClick)="validateAndSave()"
|
|
9112
9178
|
(cancelClick)="cancelEditRow()"
|
|
9179
|
+
(deleteClick)="removeRow()"
|
|
9113
9180
|
></co-grid-toolbar>
|
|
9114
9181
|
<table class="simple-grid-table">
|
|
9115
9182
|
<colgroup>
|
|
9116
|
-
<col *ngFor="let column of headerColumns; let index = index"
|
|
9183
|
+
<col *ngFor="let column of headerColumns; let index = index"
|
|
9184
|
+
[class.simple-grid-column-auto-fit]="column.autoFit"
|
|
9185
|
+
[style.width.px]="column.width"
|
|
9186
|
+
[style.min-width.px]="MIN_COLUMN_WIDTH">
|
|
9117
9187
|
</colgroup>
|
|
9118
9188
|
<thead>
|
|
9119
9189
|
<tr>
|
|
9120
9190
|
<th scope="col" #headerCell class="simple-grid-column-header" *ngFor="let column of headerColumns; let index = index">
|
|
9121
|
-
<div class="simple-grid-column-header-wrapper" [class.resizable]="resizable"
|
|
9191
|
+
<div class="simple-grid-column-header-wrapper" [class.resizable]="resizable"
|
|
9192
|
+
[ngClass]="column.textAlign ? column.textAlign : defaultTextAlign">
|
|
9122
9193
|
<ng-container *ngIf="column.headerTemplate; else noHeaderTemplate">
|
|
9123
9194
|
<ng-container [ngTemplateOutlet]="column.headerTemplate"></ng-container>
|
|
9124
9195
|
</ng-container>
|
|
@@ -9184,8 +9255,11 @@ SimpleGridComponent.ctorParameters = () => [
|
|
|
9184
9255
|
{ type: FormMasterService }
|
|
9185
9256
|
];
|
|
9186
9257
|
SimpleGridComponent.propDecorators = {
|
|
9187
|
-
headerCells: [{ type: ViewChildren, args: [
|
|
9188
|
-
|
|
9258
|
+
headerCells: [{ type: ViewChildren, args: ['headerCell',] }],
|
|
9259
|
+
showAdd: [{ type: Input }],
|
|
9260
|
+
showDelete: [{ type: Input }],
|
|
9261
|
+
rightToolbar: [{ type: Input }],
|
|
9262
|
+
showClass: [{ type: HostBinding, args: ['class.co-simple-grid',] }],
|
|
9189
9263
|
handleKeyDown: [{ type: HostListener, args: ['keydown', ['$event'],] }]
|
|
9190
9264
|
};
|
|
9191
9265
|
|
|
@@ -9231,6 +9305,9 @@ class SimpleGridCellComponent {
|
|
|
9231
9305
|
this.cellClick.next();
|
|
9232
9306
|
}
|
|
9233
9307
|
}
|
|
9308
|
+
ngOnChanges(changes) {
|
|
9309
|
+
console.log(changes);
|
|
9310
|
+
}
|
|
9234
9311
|
_setFocusComponent() {
|
|
9235
9312
|
if (this.editMode && this.fieldEditMode) {
|
|
9236
9313
|
const element = this._getElement();
|
|
@@ -9324,13 +9401,12 @@ SimpleGridCellComponent.decorators = [
|
|
|
9324
9401
|
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
9325
9402
|
</ng-container>
|
|
9326
9403
|
<ng-template #noTemplate>
|
|
9327
|
-
<
|
|
9404
|
+
<span [textContent]="column.getFieldValue(row[column.field])"></span>
|
|
9328
9405
|
</ng-template>
|
|
9329
9406
|
</ng-template>
|
|
9330
9407
|
</div>
|
|
9331
9408
|
`,
|
|
9332
|
-
encapsulation: ViewEncapsulation.None
|
|
9333
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9409
|
+
encapsulation: ViewEncapsulation.None
|
|
9334
9410
|
},] }
|
|
9335
9411
|
];
|
|
9336
9412
|
SimpleGridCellComponent.ctorParameters = () => [
|
|
@@ -9473,12 +9549,12 @@ class FilterItemComponent {
|
|
|
9473
9549
|
this.customContent = false;
|
|
9474
9550
|
// Set to true to show all results. Set to false to get 'show more' and 'show less' buttons to expand and contract.
|
|
9475
9551
|
this.showAllResults = false;
|
|
9476
|
-
this.
|
|
9552
|
+
this.singleSelect = false;
|
|
9553
|
+
this.searchPlaceholder = 'Search...';
|
|
9477
9554
|
this.showMoreLabel = 'Show more';
|
|
9478
9555
|
this.showLessLabel = 'Show less';
|
|
9479
9556
|
this.noResultsLabel = "No results";
|
|
9480
9557
|
this.collectionChange = new EventEmitter();
|
|
9481
|
-
this.filterTextChange = new EventEmitter();
|
|
9482
9558
|
this.filteredCollection = [];
|
|
9483
9559
|
this.limitTo = 10;
|
|
9484
9560
|
this.filterText = "";
|
|
@@ -9518,26 +9594,47 @@ class FilterItemComponent {
|
|
|
9518
9594
|
}
|
|
9519
9595
|
return ((_a = this.filteredCollection) === null || _a === void 0 ? void 0 : _a.length) <= this.limitTo && ((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > this.initialLimit;
|
|
9520
9596
|
}
|
|
9597
|
+
handleModelChange(model) {
|
|
9598
|
+
if (this.singleSelect) {
|
|
9599
|
+
this.collection.forEach(m => {
|
|
9600
|
+
if (m.code !== model.code && m.description !== model.description) {
|
|
9601
|
+
m.checked = false;
|
|
9602
|
+
}
|
|
9603
|
+
});
|
|
9604
|
+
}
|
|
9605
|
+
model.checked = !model.checked;
|
|
9606
|
+
this.collectionChange.emit(this.collection);
|
|
9607
|
+
}
|
|
9521
9608
|
// Applies filter to the collection.
|
|
9522
9609
|
applyFilter(text) {
|
|
9523
9610
|
var _a, _b;
|
|
9524
|
-
this
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
const labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
|
|
9533
|
-
const isHiddenByFilter = ((labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) === -1);
|
|
9534
|
-
if (isHiddenByFilter) {
|
|
9535
|
-
return false;
|
|
9536
|
-
}
|
|
9537
|
-
else {
|
|
9538
|
-
filteredItemCount++;
|
|
9539
|
-
return true;
|
|
9611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9612
|
+
if (!isNaN(this.minSearchCharsToLoadCollection) && this.collectionLoadFn) {
|
|
9613
|
+
if (text.length === this.minSearchCharsToLoadCollection && text.length > this.filterText.length) {
|
|
9614
|
+
this.collection = yield this.collectionLoadFn(text);
|
|
9615
|
+
}
|
|
9616
|
+
else if (text.length < this.minSearchCharsToLoadCollection) {
|
|
9617
|
+
this.collection = undefined;
|
|
9618
|
+
}
|
|
9540
9619
|
}
|
|
9620
|
+
this.filterText = text;
|
|
9621
|
+
if (!this.collection) {
|
|
9622
|
+
return [];
|
|
9623
|
+
}
|
|
9624
|
+
const filterText = (_a = this.filterText) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
|
|
9625
|
+
let filteredItemCount = 0;
|
|
9626
|
+
this.filteredCollection = (_b = this.collection) === null || _b === void 0 ? void 0 : _b.filter((item) => {
|
|
9627
|
+
var _a;
|
|
9628
|
+
const labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
|
|
9629
|
+
const isHiddenByFilter = ((labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) === -1);
|
|
9630
|
+
if (isHiddenByFilter) {
|
|
9631
|
+
return false;
|
|
9632
|
+
}
|
|
9633
|
+
else {
|
|
9634
|
+
filteredItemCount++;
|
|
9635
|
+
return true;
|
|
9636
|
+
}
|
|
9637
|
+
});
|
|
9541
9638
|
});
|
|
9542
9639
|
}
|
|
9543
9640
|
}
|
|
@@ -9559,29 +9656,36 @@ FilterItemComponent.decorators = [
|
|
|
9559
9656
|
<ng-template #collectionContent>
|
|
9560
9657
|
<div class="co-filter-item-collection-content">
|
|
9561
9658
|
<co-input-text
|
|
9562
|
-
*ngIf="collection?.length > 10"
|
|
9659
|
+
*ngIf="collection?.length > 10 || minSearchCharsToLoadCollection"
|
|
9563
9660
|
[placeholder]="searchPlaceholder"
|
|
9564
|
-
[
|
|
9565
|
-
(modelChange)="applyFilter(
|
|
9661
|
+
[model]="filterText"
|
|
9662
|
+
(modelChange)="applyFilter($event)"
|
|
9566
9663
|
>
|
|
9567
9664
|
</co-input-text>
|
|
9568
9665
|
<div class="no-results" *ngIf="filteredCollection?.length === 0">
|
|
9569
9666
|
<span [textContent]="noResultsLabel"></span>
|
|
9570
9667
|
</div>
|
|
9571
9668
|
<div class="co-filter-item-collection-results">
|
|
9572
|
-
<
|
|
9573
|
-
|
|
9669
|
+
<ng-container
|
|
9670
|
+
*ngFor="let option of filteredCollection; let index = index">
|
|
9574
9671
|
<div class="co-filter-item-collection-result-item" *ngIf="index < limitTo || showAllResults">
|
|
9575
|
-
<co-input-checkbox
|
|
9576
|
-
[
|
|
9577
|
-
|
|
9672
|
+
<co-input-checkbox *ngIf="!singleSelect"
|
|
9673
|
+
[label]="option.description"
|
|
9674
|
+
[model]="option.checked"
|
|
9675
|
+
(modelChange)="handleModelChange(option)"
|
|
9578
9676
|
></co-input-checkbox>
|
|
9677
|
+
<co-input-radio-button *ngIf="singleSelect"
|
|
9678
|
+
[name]="'radiogroup'"
|
|
9679
|
+
[label]="option.description"
|
|
9680
|
+
[model]="option.checked"
|
|
9681
|
+
(modelChange)="handleModelChange(option)"
|
|
9682
|
+
></co-input-radio-button>
|
|
9579
9683
|
<div class="co-filter-item-amount" *ngIf="option.count"
|
|
9580
9684
|
[textContent]="option.count.toString() | append: ')' | prepend: ' ('"
|
|
9581
9685
|
></div>
|
|
9582
9686
|
</div>
|
|
9583
9687
|
|
|
9584
|
-
</
|
|
9688
|
+
</ng-container>
|
|
9585
9689
|
</div>
|
|
9586
9690
|
<div class="co-filter-show-more-or-less" *ngIf="!showAllResults">
|
|
9587
9691
|
<div class="co-filter-show-more clickable"
|
|
@@ -9617,14 +9721,16 @@ FilterItemComponent.propDecorators = {
|
|
|
9617
9721
|
placeholder: [{ type: Input }],
|
|
9618
9722
|
initialLimit: [{ type: Input }],
|
|
9619
9723
|
expanded: [{ type: Input }],
|
|
9724
|
+
minSearchCharsToLoadCollection: [{ type: Input }],
|
|
9725
|
+
collectionLoadFn: [{ type: Input }],
|
|
9620
9726
|
customContent: [{ type: Input }],
|
|
9621
9727
|
showAllResults: [{ type: Input }],
|
|
9728
|
+
singleSelect: [{ type: Input }],
|
|
9622
9729
|
searchPlaceholder: [{ type: Input }],
|
|
9623
9730
|
showMoreLabel: [{ type: Input }],
|
|
9624
9731
|
showLessLabel: [{ type: Input }],
|
|
9625
9732
|
noResultsLabel: [{ type: Input }],
|
|
9626
9733
|
collectionChange: [{ type: Output }],
|
|
9627
|
-
filterTextChange: [{ type: Output }],
|
|
9628
9734
|
showClass: [{ type: HostBinding, args: ["class.co-filter-item",] }]
|
|
9629
9735
|
};
|
|
9630
9736
|
|
|
@@ -9670,7 +9776,9 @@ FilterItemModule.decorators = [
|
|
|
9670
9776
|
IconModule,
|
|
9671
9777
|
ScrollingModule,
|
|
9672
9778
|
AppendPipeModule,
|
|
9673
|
-
PrependPipeModule
|
|
9779
|
+
PrependPipeModule,
|
|
9780
|
+
InputTextModule,
|
|
9781
|
+
InputRadioButtonModule
|
|
9674
9782
|
],
|
|
9675
9783
|
declarations: [
|
|
9676
9784
|
FilterItemComponent
|
|
@@ -9681,6 +9789,216 @@ FilterItemModule.decorators = [
|
|
|
9681
9789
|
},] }
|
|
9682
9790
|
];
|
|
9683
9791
|
|
|
9792
|
+
// Human-readable JS keyboard codes, as in KeyboardEvent.key string values.
|
|
9793
|
+
var KeyboardKey;
|
|
9794
|
+
(function (KeyboardKey) {
|
|
9795
|
+
KeyboardKey["Down"] = "ArrowDown";
|
|
9796
|
+
KeyboardKey["Up"] = "ArrowUp";
|
|
9797
|
+
KeyboardKey["Left"] = "ArrowLeft";
|
|
9798
|
+
KeyboardKey["Right"] = "ArrowRight";
|
|
9799
|
+
KeyboardKey["Tab"] = "Tab";
|
|
9800
|
+
KeyboardKey["Escape"] = "Escape";
|
|
9801
|
+
KeyboardKey["Enter"] = "Enter";
|
|
9802
|
+
KeyboardKey["Home"] = "Home";
|
|
9803
|
+
KeyboardKey["End"] = "End";
|
|
9804
|
+
KeyboardKey["Delete"] = "Delete";
|
|
9805
|
+
KeyboardKey["Insert"] = "Insert";
|
|
9806
|
+
KeyboardKey["ShiftLeft"] = "ShiftLeft";
|
|
9807
|
+
KeyboardKey["ShiftRight"] = "ShiftRight";
|
|
9808
|
+
KeyboardKey["Backspace"] = "Backspace";
|
|
9809
|
+
KeyboardKey["SpaceBar"] = "Space";
|
|
9810
|
+
KeyboardKey["Period"] = "Period";
|
|
9811
|
+
KeyboardKey["DecimalPoint"] = "NumpadDecimal";
|
|
9812
|
+
KeyboardKey["SemiColon"] = "Semicolon";
|
|
9813
|
+
KeyboardKey["ControlRight"] = "ControlRight";
|
|
9814
|
+
KeyboardKey["ControlLeft"] = "ControlLeft";
|
|
9815
|
+
KeyboardKey["Comma"] = "Comma";
|
|
9816
|
+
////Minus,
|
|
9817
|
+
////MinusFireFox,
|
|
9818
|
+
////Substract,
|
|
9819
|
+
KeyboardKey["Zero"] = "Digit0";
|
|
9820
|
+
KeyboardKey["One"] = "Digit1";
|
|
9821
|
+
KeyboardKey["Two"] = "Digit2";
|
|
9822
|
+
KeyboardKey["Three"] = "Digit3";
|
|
9823
|
+
KeyboardKey["Four"] = "Digit4";
|
|
9824
|
+
KeyboardKey["Five"] = "Digit5";
|
|
9825
|
+
KeyboardKey["Six"] = "Digit6";
|
|
9826
|
+
KeyboardKey["Seven"] = "Digit7";
|
|
9827
|
+
KeyboardKey["Eight"] = "Digit8";
|
|
9828
|
+
KeyboardKey["Nine"] = "Digit9";
|
|
9829
|
+
KeyboardKey["NumpadZero"] = "Numpad0";
|
|
9830
|
+
KeyboardKey["NumpadOne"] = "Numpad1";
|
|
9831
|
+
KeyboardKey["NumpadTwo"] = "Numpad2";
|
|
9832
|
+
KeyboardKey["NumpadThree"] = "Numpad3";
|
|
9833
|
+
KeyboardKey["NumpadFour"] = "Numpad4";
|
|
9834
|
+
KeyboardKey["NumpadFive"] = "Numpad5";
|
|
9835
|
+
KeyboardKey["NumpadSix"] = "Numpad6";
|
|
9836
|
+
KeyboardKey["NumpadSeven"] = "Numpad7";
|
|
9837
|
+
KeyboardKey["NumpadEight"] = "Numpad8";
|
|
9838
|
+
KeyboardKey["NumpadNine"] = "Numpad9";
|
|
9839
|
+
KeyboardKey["A"] = "KeyA";
|
|
9840
|
+
KeyboardKey["B"] = "KeyB";
|
|
9841
|
+
KeyboardKey["C"] = "KeyC";
|
|
9842
|
+
KeyboardKey["D"] = "KeyD";
|
|
9843
|
+
KeyboardKey["E"] = "KeyE";
|
|
9844
|
+
KeyboardKey["F"] = "KeyF";
|
|
9845
|
+
KeyboardKey["G"] = "KeyG";
|
|
9846
|
+
KeyboardKey["H"] = "KeyH";
|
|
9847
|
+
KeyboardKey["I"] = "KeyI";
|
|
9848
|
+
KeyboardKey["J"] = "KeyJ";
|
|
9849
|
+
KeyboardKey["K"] = "KeyK";
|
|
9850
|
+
KeyboardKey["L"] = "KeyL";
|
|
9851
|
+
KeyboardKey["M"] = "KeyM";
|
|
9852
|
+
KeyboardKey["N"] = "KeyN";
|
|
9853
|
+
KeyboardKey["O"] = "KeyO";
|
|
9854
|
+
KeyboardKey["P"] = "KeyP";
|
|
9855
|
+
KeyboardKey["Q"] = "KeyQ";
|
|
9856
|
+
KeyboardKey["R"] = "KeyR";
|
|
9857
|
+
KeyboardKey["S"] = "KeyS";
|
|
9858
|
+
KeyboardKey["T"] = "KeyT";
|
|
9859
|
+
KeyboardKey["U"] = "KeyU";
|
|
9860
|
+
KeyboardKey["V"] = "KeyV";
|
|
9861
|
+
KeyboardKey["W"] = "KeyW";
|
|
9862
|
+
KeyboardKey["X"] = "KeyX";
|
|
9863
|
+
KeyboardKey["Y"] = "KeyY";
|
|
9864
|
+
KeyboardKey["Z"] = "KeyZ";
|
|
9865
|
+
})(KeyboardKey || (KeyboardKey = {}));
|
|
9866
|
+
|
|
9867
|
+
class ClickOutsideMasterService {
|
|
9868
|
+
constructor(_ngZone) {
|
|
9869
|
+
this._ngZone = _ngZone;
|
|
9870
|
+
this._clickOutsideRefs = [];
|
|
9871
|
+
this.onClick = (event) => {
|
|
9872
|
+
this._currentClick = event;
|
|
9873
|
+
const first = this._clickOutsideRefs[0];
|
|
9874
|
+
const targets = this._clickOutsideRefs.filter(co => co.alwaysTrigger);
|
|
9875
|
+
if (first) {
|
|
9876
|
+
targets.push(first);
|
|
9877
|
+
}
|
|
9878
|
+
setTimeout(() => {
|
|
9879
|
+
targets.forEach(clickOutside => this.checkEmit(clickOutside, event));
|
|
9880
|
+
});
|
|
9881
|
+
};
|
|
9882
|
+
this.onKeyDown = (event) => {
|
|
9883
|
+
if (event.key === KeyboardKey.Escape) {
|
|
9884
|
+
const first = this._clickOutsideRefs[0];
|
|
9885
|
+
if (first) {
|
|
9886
|
+
this.checkEmit(first, event, true);
|
|
9887
|
+
}
|
|
9888
|
+
}
|
|
9889
|
+
};
|
|
9890
|
+
document.addEventListener('click', this.onClick, true);
|
|
9891
|
+
window.addEventListener('keydown', this.onKeyDown, EventUtils.passiveBubble);
|
|
9892
|
+
}
|
|
9893
|
+
get currentClick() {
|
|
9894
|
+
return this._currentClick;
|
|
9895
|
+
}
|
|
9896
|
+
ngOnDestroy() {
|
|
9897
|
+
document.removeEventListener('click', this.onClick, true);
|
|
9898
|
+
window.removeEventListener('keydown', this.onKeyDown, EventUtils.passiveBubble);
|
|
9899
|
+
}
|
|
9900
|
+
checkEmit(clickOutside, event, force) {
|
|
9901
|
+
if (clickOutside && (clickOutside.currentClick !== this.currentClick || force) && this._clickOutsideRefs.indexOf(clickOutside) !== -1) {
|
|
9902
|
+
this._ngZone.run(() => clickOutside.clickOutside.emit(event));
|
|
9903
|
+
}
|
|
9904
|
+
}
|
|
9905
|
+
addClickOutside(clickOutside) {
|
|
9906
|
+
this.removeClickOutside(clickOutside);
|
|
9907
|
+
this._clickOutsideRefs.unshift(clickOutside);
|
|
9908
|
+
}
|
|
9909
|
+
removeClickOutside(clickOutside) {
|
|
9910
|
+
ArrayUtils.RemoveElement(clickOutside, this._clickOutsideRefs);
|
|
9911
|
+
}
|
|
9912
|
+
}
|
|
9913
|
+
ClickOutsideMasterService.decorators = [
|
|
9914
|
+
{ type: Injectable }
|
|
9915
|
+
];
|
|
9916
|
+
ClickOutsideMasterService.ctorParameters = () => [
|
|
9917
|
+
{ type: NgZone }
|
|
9918
|
+
];
|
|
9919
|
+
|
|
9920
|
+
class ClickOutsideDirective {
|
|
9921
|
+
constructor(elementRef, _ngZone, _master) {
|
|
9922
|
+
this.elementRef = elementRef;
|
|
9923
|
+
this._ngZone = _ngZone;
|
|
9924
|
+
this._master = _master;
|
|
9925
|
+
this.clickOutside = new EventEmitter();
|
|
9926
|
+
this._enabled = true;
|
|
9927
|
+
this._initialized = false;
|
|
9928
|
+
this.onClick = (event) => {
|
|
9929
|
+
if (this._enabled) {
|
|
9930
|
+
this._currentClick = event;
|
|
9931
|
+
}
|
|
9932
|
+
};
|
|
9933
|
+
}
|
|
9934
|
+
get currentClick() {
|
|
9935
|
+
return this._currentClick;
|
|
9936
|
+
}
|
|
9937
|
+
set enabled(enabled) {
|
|
9938
|
+
enabled = enabled === undefined || enabled;
|
|
9939
|
+
// noinspection SuspiciousTypeOfGuard
|
|
9940
|
+
if (typeof enabled === 'boolean' && this._enabled !== enabled) {
|
|
9941
|
+
this._enabled = enabled;
|
|
9942
|
+
if (this._initialized) {
|
|
9943
|
+
this._enabled ? this._master.addClickOutside(this) : this._master.removeClickOutside(this);
|
|
9944
|
+
}
|
|
9945
|
+
}
|
|
9946
|
+
}
|
|
9947
|
+
ngAfterViewInit() {
|
|
9948
|
+
setTimeout(() => {
|
|
9949
|
+
this._ngZone.runOutsideAngular(() => {
|
|
9950
|
+
if (this.elementRef && this.elementRef.nativeElement) {
|
|
9951
|
+
this.elementRef.nativeElement.addEventListener('click', this.onClick, EventUtils.passiveCapture);
|
|
9952
|
+
if (this._enabled) {
|
|
9953
|
+
this._master.addClickOutside(this);
|
|
9954
|
+
}
|
|
9955
|
+
this._initialized = true;
|
|
9956
|
+
}
|
|
9957
|
+
});
|
|
9958
|
+
});
|
|
9959
|
+
}
|
|
9960
|
+
ngOnDestroy() {
|
|
9961
|
+
this._master.removeClickOutside(this);
|
|
9962
|
+
this.elementRef.nativeElement.removeEventListener('click', this.onClick, EventUtils.passiveCapture);
|
|
9963
|
+
this.elementRef = undefined;
|
|
9964
|
+
}
|
|
9965
|
+
}
|
|
9966
|
+
ClickOutsideDirective.decorators = [
|
|
9967
|
+
{ type: Directive, args: [{
|
|
9968
|
+
selector: "[clickOutside]",
|
|
9969
|
+
exportAs: 'clickOutside'
|
|
9970
|
+
},] }
|
|
9971
|
+
];
|
|
9972
|
+
ClickOutsideDirective.ctorParameters = () => [
|
|
9973
|
+
{ type: ElementRef },
|
|
9974
|
+
{ type: NgZone },
|
|
9975
|
+
{ type: ClickOutsideMasterService }
|
|
9976
|
+
];
|
|
9977
|
+
ClickOutsideDirective.propDecorators = {
|
|
9978
|
+
enabled: [{ type: Input, args: ["clickOutside",] }],
|
|
9979
|
+
alwaysTrigger: [{ type: Input }],
|
|
9980
|
+
clickOutside: [{ type: Output }]
|
|
9981
|
+
};
|
|
9982
|
+
__decorate([
|
|
9983
|
+
InputBoolean()
|
|
9984
|
+
], ClickOutsideDirective.prototype, "alwaysTrigger", void 0);
|
|
9985
|
+
|
|
9986
|
+
class ClickoutsideModule {
|
|
9987
|
+
}
|
|
9988
|
+
ClickoutsideModule.decorators = [
|
|
9989
|
+
{ type: NgModule, args: [{
|
|
9990
|
+
declarations: [
|
|
9991
|
+
ClickOutsideDirective
|
|
9992
|
+
],
|
|
9993
|
+
providers: [
|
|
9994
|
+
ClickOutsideMasterService
|
|
9995
|
+
],
|
|
9996
|
+
exports: [
|
|
9997
|
+
ClickOutsideDirective
|
|
9998
|
+
]
|
|
9999
|
+
},] }
|
|
10000
|
+
];
|
|
10001
|
+
|
|
9684
10002
|
/*
|
|
9685
10003
|
* Public API Surface of corecomponents
|
|
9686
10004
|
*/
|
|
@@ -9689,5 +10007,5 @@ FilterItemModule.decorators = [
|
|
|
9689
10007
|
* Generated bundle index. Do not edit.
|
|
9690
10008
|
*/
|
|
9691
10009
|
|
|
9692
|
-
export { ArticleTileComponent, ArticleTileModule, ButtonComponent, ButtonDropDownComponent, ButtonDropDownModule, ButtonModule, COMPONENT_INTERFACE_NAME, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CoDialogComponent, CoDialogModule, CoDialogPromptComponent, CoDialogPromptModule, CoDialogWizardComponent, CoDialogWizardModule, CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoRichTextEditorComponent, CoRichTextEditorModule, CoScheduleComponent, CoScheduleModule, CoSidebarComponent, CoSidebarModule, CoToggleComponent, CoToggleModule, CollapsibleComponent, CollapsibleModule, ColumnAlign, CoreComponentsIcon, DropDownListComponent, DropDownModule, FilterItemComponent, FilterItemModule, FormComponent, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputCheckboxMultiSelectComponent, InputCheckboxMultiSelectModule, InputComboBoxComponent, InputComboBoxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputListboxComponent, InputListboxModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, MultiSelectListComponent, MultiSelectListModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, RippleModule as ɵa, MD_RIPPLE_GLOBAL_OPTIONS as ɵb,
|
|
10010
|
+
export { ArticleTileComponent, ArticleTileModule, ButtonComponent, ButtonDropDownComponent, ButtonDropDownModule, ButtonModule, COMPONENT_INTERFACE_NAME, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogPromptComponent, CoDialogPromptModule, CoDialogWizardComponent, CoDialogWizardModule, CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoRichTextEditorComponent, CoRichTextEditorModule, CoScheduleComponent, CoScheduleModule, CoSidebarComponent, CoSidebarModule, CoToggleComponent, CoToggleModule, CollapsibleComponent, CollapsibleModule, ColumnAlign, CoreComponentsIcon, DropDownListComponent, DropDownModule, FilterItemComponent, FilterItemModule, FormComponent, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputCheckboxMultiSelectComponent, InputCheckboxMultiSelectModule, InputComboBoxComponent, InputComboBoxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputListboxComponent, InputListboxModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, MultiSelectListComponent, MultiSelectListModule, ObserveVisibilityModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, RippleModule as ɵa, MD_RIPPLE_GLOBAL_OPTIONS as ɵb, SimpleGridCellComponent as ɵba, PrependPipeModule as ɵbb, PrependPipe as ɵbc, ClickOutsideDirective as ɵbd, ClickOutsideMasterService as ɵbe, CoRippleDirective as ɵc, CoViewportRulerService as ɵd, CoScrollDispatcherService as ɵe, CoScrollableDirective as ɵf, StopClickModule as ɵg, StopClickDirective as ɵh, InputBoolean as ɵi, BaseModule as ɵj, FormInputUserModelChangeListenerService as ɵk, NgZoneWrapperService as ɵl, BaseInputComponent as ɵm, BaseSelectionGridComponent as ɵn, BaseInlineEditGridComponent as ɵo, BaseToolbarGridComponent as ɵp, BaseGridComponent as ɵq, AppendPipeModule as ɵr, AppendPipe as ɵs, ValidationErrorModule as ɵt, ValidationErrorComponent as ɵu, CommitButtonsModule as ɵv, CommitButtonsComponent as ɵw, PopupShowerService as ɵx, BaseSimpleGridComponent as ɵy, ObserveVisibilityDirective as ɵz };
|
|
9693
10011
|
//# sourceMappingURL=colijnit-corecomponents_v12.js.map
|