raise-common-lib-new 0.0.37 → 0.0.39

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.
Files changed (110) hide show
  1. package/esm2022/lib/actions/toolbar/constants.mjs +2 -0
  2. package/esm2022/lib/{layout → actions}/toolbar/index.component.mjs +3 -3
  3. package/esm2022/lib/actions/toolbar-item/index.component.mjs +82 -0
  4. package/esm2022/lib/commentary/index.component.mjs +19 -10
  5. package/esm2022/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.mjs +42 -3
  6. package/esm2022/lib/common-grid/grid-action/grid-action.component.mjs +2 -2
  7. package/esm2022/lib/common-grid/index.component.mjs +30 -3
  8. package/esm2022/lib/dialog/common-delete-dialog/index.component.mjs +11 -7
  9. package/esm2022/lib/dialog/common-dialog/index.component.mjs +45 -12
  10. package/esm2022/lib/float-box/index.component.mjs +3 -1
  11. package/esm2022/lib/form/confirm-select/index.component.mjs +78 -0
  12. package/esm2022/lib/form/drawer-form/constants.mjs +1 -1
  13. package/esm2022/lib/form/drawer-form/drawer-form.component.mjs +52 -24
  14. package/esm2022/lib/form/richtexteditor/ai-config.mjs +35 -0
  15. package/esm2022/lib/form/richtexteditor/data-config.mjs +222 -0
  16. package/esm2022/lib/form/richtexteditor/index.component.mjs +425 -0
  17. package/esm2022/lib/form/richtexteditor/openapi.mjs +121 -0
  18. package/esm2022/lib/form/search-input/index.component.mjs +45 -0
  19. package/esm2022/lib/form/tag-input/index.component.mjs +1 -1
  20. package/esm2022/lib/layout/drawer/index.component.mjs +28 -18
  21. package/esm2022/lib/layout/grid-box/index.component.mjs +28 -19
  22. package/esm2022/lib/layout/main-container/index.component.mjs +3 -3
  23. package/esm2022/lib/layout/multi-tab/index.component.mjs +72 -54
  24. package/esm2022/lib/layout/page-list/index.component.mjs +28 -19
  25. package/esm2022/lib/layout/rs-aside/index.component.mjs +12 -9
  26. package/esm2022/lib/layout/rs-footer/index.component.mjs +2 -2
  27. package/esm2022/lib/layout/rs-header/index.component.mjs +6 -3
  28. package/esm2022/lib/raise-common-lib.module.mjs +43 -15
  29. package/esm2022/lib/service/dialog.service.mjs +9 -6
  30. package/esm2022/lib/service/drawer.service.mjs +8 -6
  31. package/esm2022/lib/truncated-text-toggle/index.component.mjs +41 -0
  32. package/esm2022/public-api.mjs +7 -4
  33. package/fesm2022/raise-common-lib-new.mjs +1422 -233
  34. package/fesm2022/raise-common-lib-new.mjs.map +1 -1
  35. package/lib/{form → actions}/toolbar-item/index.component.d.ts +2 -1
  36. package/lib/commentary/index.component.d.ts +2 -2
  37. package/lib/common-grid/grid-action/grid-action-item/grid-action-item.component.d.ts +6 -1
  38. package/lib/common-grid/index.component.d.ts +10 -1
  39. package/lib/dialog/common-delete-dialog/index.component.d.ts +8 -2
  40. package/lib/dialog/common-dialog/index.component.d.ts +10 -2
  41. package/lib/form/confirm-select/index.component.d.ts +28 -0
  42. package/lib/form/drawer-form/constants.d.ts +2 -0
  43. package/lib/form/drawer-form/drawer-form.component.d.ts +8 -5
  44. package/lib/form/richtexteditor/ai-config.d.ts +10 -0
  45. package/lib/form/richtexteditor/data-config.d.ts +14 -0
  46. package/lib/form/richtexteditor/index.component.d.ts +81 -0
  47. package/lib/form/richtexteditor/openapi.d.ts +3 -0
  48. package/lib/form/search-input/index.component.d.ts +17 -0
  49. package/lib/layout/drawer/index.component.d.ts +8 -7
  50. package/lib/layout/grid-box/index.component.d.ts +9 -6
  51. package/lib/layout/multi-tab/index.component.d.ts +7 -3
  52. package/lib/layout/page-list/index.component.d.ts +9 -6
  53. package/lib/layout/rs-aside/index.component.d.ts +3 -1
  54. package/lib/layout/rs-header/index.component.d.ts +2 -1
  55. package/lib/raise-common-lib.module.d.ts +37 -32
  56. package/lib/service/dialog.service.d.ts +3 -1
  57. package/lib/service/drawer.service.d.ts +1 -1
  58. package/lib/truncated-text-toggle/index.component.d.ts +15 -0
  59. package/package.json +1 -1
  60. package/public-api.d.ts +6 -3
  61. package/src/assets/img/click_show_more_icon.svg +3 -0
  62. package/src/assets/img/dialog-close.svg +4 -0
  63. package/src/assets/img/dialog-grow.svg +6 -0
  64. package/src/assets/img/dialog-shrink.svg +6 -0
  65. package/src/assets/img/editor-copy.svg +5 -0
  66. package/src/assets/img/grid-action-detail.svg +4 -5
  67. package/src/assets/img/grid-action-duplicate.svg +6 -0
  68. package/src/assets/img/grid-action-export.svg +4 -11
  69. package/src/assets/img/grid-action-preview.svg +7 -0
  70. package/src/assets/img/grid-action-refresh.svg +4 -0
  71. package/src/assets/img/grid-action-verify.svg +7 -0
  72. package/src/assets/img/grid-action-viewStatus.svg +3 -0
  73. package/src/assets/img/grid-menu-arrow-up.svg +4 -0
  74. package/src/assets/img/grid-menu-filter.svg +6 -0
  75. package/src/assets/img/info.svg +5 -0
  76. package/src/assets/img/shrink-icon.svg +6 -0
  77. package/src/assets/img/toolbar-action-addFolder.svg +17 -0
  78. package/src/assets/img/toolbar-action-calculator.svg +11 -0
  79. package/src/assets/img/toolbar-action-collapse.svg +7 -0
  80. package/src/assets/img/toolbar-action-combine.svg +4 -0
  81. package/src/assets/img/toolbar-action-edit.svg +4 -0
  82. package/src/assets/img/toolbar-action-expand.svg +7 -0
  83. package/src/assets/img/toolbar-action-fetchData.svg +3 -0
  84. package/src/assets/img/toolbar-action-folderMove.svg +8 -0
  85. package/src/assets/img/toolbar-action-lock.svg +6 -0
  86. package/src/assets/img/toolbar-action-preview.svg +7 -0
  87. package/src/assets/img/toolbar-action-publish.svg +5 -0
  88. package/src/assets/img/toolbar-action-refresh.svg +3 -13
  89. package/src/assets/img/toolbar-action-reminders.svg +10 -0
  90. package/src/assets/img/toolbar-action-rename.svg +7 -0
  91. package/src/assets/img/toolbar-action-saveSequence.svg +5 -0
  92. package/src/assets/img/toolbar-action-send-file.svg +5 -0
  93. package/src/assets/img/toolbar-action-settle.svg +7 -0
  94. package/src/assets/img/toolbar-action-share.svg +5 -0
  95. package/src/assets/img/toolbar-action-submitForApproval.svg +4 -0
  96. package/src/assets/img/toolbar-action-sync.svg +4 -0
  97. package/src/assets/img/toolbar-action-template.svg +6 -0
  98. package/src/assets/img/toolbar-action-update.svg +11 -0
  99. package/src/assets/img/toolbar-action-workflow.svg +9 -0
  100. package/src/assets/style/reset/button.scss +3 -3
  101. package/src/assets/style/reset/checkbox.scss +15 -9
  102. package/src/assets/style/reset/dropdown.scss +56 -14
  103. package/src/assets/style/reset/grid.scss +134 -2
  104. package/src/assets/style/reset/mat-dialog.scss +1 -2
  105. package/src/assets/style/reset/radio.scss +33 -35
  106. package/src/assets/style/style.scss +0 -1
  107. package/esm2022/lib/form/toolbar-item/index.component.mjs +0 -56
  108. package/esm2022/lib/layout/toolbar/constants.mjs +0 -2
  109. /package/lib/{layout → actions}/toolbar/constants.d.ts +0 -0
  110. /package/lib/{layout → actions}/toolbar/index.component.d.ts +0 -0
@@ -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>
@@ -11,13 +11,13 @@
11
11
  border: 1px solid #adb5bd !important;
12
12
  background: transparent !important;
13
13
  color: var(--rs-cancel-btn-color) !important;
14
- height: 32px;
14
+ height: 28px;
15
15
  min-width: 80px;
16
16
  padding: 0 8px;
17
17
  font-size: 12px;
18
18
  border-radius: 4px;
19
19
  box-shadow: none !important;
20
- line-height: normal;
20
+ line-height: 1;
21
21
  &.small {
22
22
  height: 26px;
23
23
  min-width: 64px;
@@ -86,7 +86,7 @@
86
86
  background: transparent !important;
87
87
  color: var(--rs-cancel-btn-color) !important;
88
88
  border-color: transparent !important;
89
- height: 32px;
89
+ height: 28px;
90
90
  min-width: 80px;
91
91
  padding: 0 10px;
92
92
  font-size: 12px;
@@ -1,20 +1,26 @@
1
1
  .e-checkbox-wrapper {
2
2
  .e-label {
3
- color: var(--rs-label-color) !important;
4
- font-family: var(--rs-font-family) !important;
5
- font-size: var(--rs-font-size) !important;
3
+ color: var(--rs-label-color);
4
+ font-family: var(--rs-font-family);
5
+ font-size: var(--rs-font-size);
6
6
  font-weight: 400;
7
7
  line-height: 14px;
8
8
  }
9
- &.e-checkbox-disabled {
10
- opacity: 0.4;
11
- // .e-icons {
12
- // border-color: rgba(209, 209, 209, 0.5);
13
- // background-color: rgba(234, 237, 240, 0.35);
14
- // }
9
+ .e-checkbox-wrapper.e-checkbox-disabled {
10
+ .e-icons {
11
+ border-color: rgba(209, 209, 209, 0.5);
12
+ background-color: rgba(234, 237, 240, 0.35);
13
+ }
15
14
  }
16
15
  .e-icons {
17
16
  box-shadow: none !important;
17
+ &.e-stop{
18
+ background-color: var(--rs-active-color) !important;
19
+ border-color: var(--rs-active-color) !important;
20
+ &::before {
21
+ display: block;
22
+ }
23
+ }
18
24
  &.e-check {
19
25
  background-color: var(--rs-active-color) !important;
20
26
  border-color: var(--rs-active-color) !important;
@@ -153,18 +153,7 @@
153
153
  }
154
154
  }
155
155
  }
156
- .e-datetimepicker {
157
- > .e-input-group {
158
- &.e-icon-anim {
159
- .e-input-group-icon {
160
- &::before {
161
- transform: none;
162
- transition: none;
163
- }
164
- }
165
- }
166
- }
167
- }
156
+
168
157
  // 下拉弹窗
169
158
  .e-popup.e-ddl {
170
159
  font-family: var(--rs-font-family);
@@ -198,6 +187,15 @@
198
187
  }
199
188
  }
200
189
  }
190
+ .e-selectall-parent {
191
+ text-indent: 17px;
192
+ .e-all-text {
193
+ font-family: Arial;
194
+ font-size: var(--rs-input-font-size);
195
+ min-height: var(--rs-input-line-height);
196
+ line-height: var(--rs-input-line-height);
197
+ }
198
+ }
201
199
 
202
200
  .e-dropdownbase {
203
201
  min-height: 28px;
@@ -224,13 +222,15 @@
224
222
  font-family: Arial;
225
223
  font-size: var(--rs-input-font-size);
226
224
  min-height: var(--rs-input-line-height);
227
- line-height: var(--rs-input-line-height);
225
+ line-height: 16px;
228
226
  // 下拉选项超出正常显示,不显示缩略号
229
227
  white-space: normal;
230
228
  text-indent: 0;
231
- padding: 0 12px;
229
+ padding: 6px 12px;
232
230
  color: #44566c;
233
231
  border-radius: 4px;
232
+ display: flex;
233
+ align-items: center;
234
234
  &.e-item-focus {
235
235
  background: transparent !important;
236
236
  box-shadow: none !important;
@@ -266,6 +266,26 @@
266
266
  color: #929dab !important;
267
267
  font-size: var(--rs-input-font-size) !important;
268
268
  }
269
+
270
+ &.e-multi-select-list-wrapper {
271
+ .e-dropdownbase {
272
+ .e-list-item {
273
+ padding-left: 34px;
274
+ .e-checkbox-wrapper {
275
+ position: absolute;
276
+ top: 6px;
277
+ left: 12px;
278
+ }
279
+ }
280
+ }
281
+ &.e-multiselect-group {
282
+ .e-dropdownbase {
283
+ .e-list-item {
284
+ padding-left: 46px;
285
+ }
286
+ }
287
+ }
288
+ }
269
289
  }
270
290
 
271
291
  // dropdowntree 独有
@@ -405,6 +425,7 @@
405
425
  }
406
426
  }
407
427
  }
428
+
408
429
  .e-daterangepicker.e-popup,
409
430
  .e-datepicker.e-popup {
410
431
  height: auto;
@@ -511,6 +532,7 @@
511
532
  font-size: var(--rs-font-size);
512
533
  }
513
534
  }
535
+
514
536
  &.e-month {
515
537
  .e-cell {
516
538
  .e-day {
@@ -534,6 +556,14 @@
534
556
  }
535
557
  }
536
558
  }
559
+ &.e-year {
560
+ .e-cell.e-focused-date {
561
+ .e-day {
562
+ background-color: #1f7bff !important;
563
+ color: #fff !important;
564
+ }
565
+ }
566
+ }
537
567
  .e-today {
538
568
  .e-day {
539
569
  color: var(--rs-active-color) !important;
@@ -589,6 +619,18 @@
589
619
  }
590
620
  }
591
621
  }
622
+ .e-footer-container {
623
+ justify-content: center !important;
624
+ .e-btn.e-today {
625
+ border: 0 !important;
626
+ background-color: #fff !important;
627
+ color: #44566c !important;
628
+ &:hover {
629
+ background-color: #fff !important;
630
+ color: #1f7bff !important;
631
+ }
632
+ }
633
+ }
592
634
  }
593
635
 
594
636
  .e-datetimepicker.e-popup {
@@ -8,6 +8,9 @@
8
8
  .e-spinner-pane {
9
9
  display: none !important; // 隐藏默认的loading spinner
10
10
  }
11
+ .e-summarycell {
12
+ padding-right: 36px !important;
13
+ }
11
14
  .e-gridheader {
12
15
  height: auto;
13
16
  border-top: none;
@@ -206,6 +209,10 @@
206
209
  width: 16px;
207
210
  height: 16px;
208
211
  }
212
+
213
+ &.e-filtered {
214
+ background-color: rgba(31, 123, 255, 0.1);
215
+ }
209
216
  }
210
217
 
211
218
  &:not(.e-rcursor):hover .e-rhandler {
@@ -218,6 +225,10 @@
218
225
  }
219
226
  }
220
227
  }
228
+ .e-rowdragdrop {
229
+ border-bottom: 1px solid #eaedf0;
230
+ border-top: 0;
231
+ }
221
232
  .e-rowcell {
222
233
  padding: 2px 12px;
223
234
  border-top: 0;
@@ -510,10 +521,12 @@
510
521
  }
511
522
  }
512
523
  }
513
-
524
+ .e-numericitem {
525
+ color: #44566c;
526
+ }
514
527
  .e-pagercontainer {
515
528
  border: 0;
516
- vertical-align: middle;
529
+ vertical-align: top;
517
530
 
518
531
  .e-icons,
519
532
  .e-spacing {
@@ -844,3 +857,122 @@
844
857
  ):not(.e-indentcell) {
845
858
  background-color: var(--rs-grid-row-hover-bg); // hover bg
846
859
  }
860
+
861
+ .e-contextmenu-wrapper .e-contextmenu.e-colmenu,
862
+ .e-contextmenu-container .e-contextmenu.e-colmenu {
863
+ padding: 8px 0;
864
+ border: none;
865
+
866
+ border-radius: 8px;
867
+ background-color: #fff;
868
+ box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
869
+
870
+ .e-menu-item {
871
+ height: 28px;
872
+ padding: 6px 48px 6px 16px;
873
+
874
+ color: #44566c;
875
+ font-family: Arial;
876
+ font-size: 11px;
877
+ font-style: normal;
878
+ font-weight: 400;
879
+ line-height: 14px;
880
+
881
+ display: flex;
882
+ flex-flow: row nowrap;
883
+ align-items: center;
884
+ gap: 8px;
885
+
886
+ &.e-blankicon {
887
+ padding-left: 40px !important;
888
+ }
889
+
890
+ &.e-selected,
891
+ &.e-focused {
892
+ background-color: rgba(31, 123, 255, 0.08);
893
+ }
894
+
895
+ .e-icons {
896
+ width: 16px;
897
+ height: 16px;
898
+ margin: 0;
899
+ padding: 0;
900
+
901
+ display: flex;
902
+ flex-flow: row nowrap;
903
+ justify-content: center;
904
+ align-items: center;
905
+
906
+ &::before {
907
+ width: 16px;
908
+ height: 16px;
909
+ line-height: 16px;
910
+ }
911
+
912
+ &.e-icon-ascending::before {
913
+ content: url("/assets/img/grid-menu-arrow-up.svg");
914
+ }
915
+
916
+ &.e-icon-descending::before {
917
+ content: url("/assets/img/grid-menu-arrow-up.svg");
918
+ transform: rotate(180deg);
919
+ }
920
+
921
+ &.e-icon-filter::before {
922
+ content: url("/assets/img/grid-menu-filter.svg");
923
+ }
924
+
925
+ &.e-caret {
926
+ position: absolute;
927
+ top: 6px;
928
+ right: 16px;
929
+
930
+ &::before {
931
+ content: url("/assets/img/grid-menu-arrow-right.svg");
932
+ }
933
+ }
934
+ }
935
+ }
936
+
937
+ & + .e-menu-parent {
938
+ padding: 8px 0;
939
+
940
+ border-radius: 8px;
941
+ background-color: #fff;
942
+ box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
943
+
944
+ .e-menu-item {
945
+ height: 28px;
946
+ padding: 0 8px;
947
+
948
+ &.e-focused {
949
+ background-color: rgba(31, 123, 255, 0.08);
950
+ }
951
+
952
+ .e-checkbox-wrapper {
953
+ height: 100%;
954
+
955
+ display: flex;
956
+ flex-flow: row nowrap;
957
+ align-items: center;
958
+
959
+ .e-frame {
960
+ flex: none;
961
+ margin: 5px;
962
+ }
963
+
964
+ .e-label {
965
+ margin: 0;
966
+ padding: 0 6px;
967
+
968
+ color: #44566c !important;
969
+ font-family: Arial;
970
+ font-size: 11px !important;
971
+ font-style: normal;
972
+ font-weight: 400;
973
+ line-height: 14px;
974
+ }
975
+ }
976
+ }
977
+ }
978
+ }
@@ -1,6 +1,5 @@
1
-
2
-
3
1
  .rs-dialog-wrap{
2
+ max-width: 100% !important;
4
3
  .mat-dialog-container{
5
4
  padding: 0 !important;
6
5
  }
@@ -1,39 +1,37 @@
1
1
  .e-radio-wrapper {
2
- .e-radio:disabled + label {
3
- opacity: 0.4;
4
- &::before {
5
- background-color: #e9ecef;
6
- border-color: #adb5bd;
7
- color: #6c757d;
2
+ .e-radio:disabled + label {
3
+ &::before {
4
+ border-color: rgba(209, 209, 209, 0.5);
5
+ background-color: rgba(234, 237, 240, 0.35);
6
+ }
8
7
  }
9
- }
10
- .e-radio:checked + label {
11
- &::before {
12
- background-color: var(--rs-active-color);
13
- border-color: var(--rs-active-color);
14
- box-shadow: none;
8
+ .e-radio:checked + label {
9
+ &::before {
10
+ background-color: var(--rs-active-color);
11
+ border-color: var(--rs-active-color);
12
+ box-shadow: none;
13
+ }
14
+ &::after {
15
+ content: "" !important;
16
+ display: block;
17
+ width: 11px;
18
+ height: 8px;
19
+ background-image: url("/assets/img/checked-vector.svg");
20
+ background-size: cover;
21
+ background-position: center;
22
+ background-color: transparent;
23
+ transform: scale(1);
24
+ left: 2px;
25
+ top: 3px;
26
+ border: 0;
27
+ border-radius: 0;
28
+ }
15
29
  }
16
- &::after {
17
- content: "" !important;
18
- display: block;
19
- width: 11px;
20
- height: 8px;
21
- background-image: url("/assets/img/checked-vector.svg");
22
- background-size: cover;
23
- background-position: center;
24
- background-color: transparent;
25
- transform: scale(1);
26
- left: 2px;
27
- top: 3px;
28
- border: 0;
29
- border-radius: 0;
30
+ .e-label {
31
+ color: var(--rs-label-color);
32
+ font-family: var(--rs-font-family);
33
+ font-size: var(--rs-font-size);
34
+ font-weight: 400;
35
+ line-height: 14px;
30
36
  }
31
- }
32
- .e-label {
33
- color: var(--rs-label-color) !important;
34
- font-family: var(--rs-font-family) !important;
35
- font-size: var(--rs-font-size) !important;
36
- font-weight: 400 !important;
37
- line-height: 14px !important;
38
- }
39
- }
37
+ }
@@ -17,7 +17,6 @@ html{
17
17
  body{
18
18
  margin: 0;
19
19
  padding: 0;
20
- min-width: 576px;
21
20
  }
22
21
 
23
22
  * {
@@ -1,56 +0,0 @@
1
- import { Component, HostBinding, Input, ViewChild, } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/material/menu";
5
- export class ToolbarItemComponent {
6
- image;
7
- text;
8
- disabled;
9
- children = [];
10
- disabledOptions = {};
11
- buttonElement;
12
- get hostDisabled() {
13
- return !!this.disabled;
14
- }
15
- // 暴露方法供父组件调用
16
- getWidth() {
17
- return this.buttonElement.nativeElement.offsetWidth;
18
- }
19
- ImageType = [
20
- "Add",
21
- "Delete",
22
- "Import",
23
- "Export",
24
- "Upload",
25
- "Download",
26
- "Duplicate",
27
- "Refresh",
28
- ];
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolbarItemComponent, selector: "rs-toolbar-item", inputs: { image: "image", text: "text", disabled: "disabled", children: "children", disabledOptions: "disabledOptions" }, host: { properties: { "class.disabled": "this.hostDisabled" } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["buttonElement"], descendants: true }], ngImport: i0, 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", 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 ::ng-deep .mat-mdc-menu-item-text{display:flex;gap:6px;align-items:center}.toolbar-action-item.mat-mdc-menu-item{min-height:24px}.toolbar-action-item.mat-menu-item:after{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarItemComponent, decorators: [{
33
- type: Component,
34
- args: [{ selector: "rs-toolbar-item", 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", 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 ::ng-deep .mat-mdc-menu-item-text{display:flex;gap:6px;align-items:center}.toolbar-action-item.mat-mdc-menu-item{min-height:24px}.toolbar-action-item.mat-menu-item:after{display:none}\n"] }]
35
- }], propDecorators: { image: [{
36
- type: Input,
37
- args: ["image"]
38
- }], text: [{
39
- type: Input,
40
- args: ["text"]
41
- }], disabled: [{
42
- type: Input,
43
- args: ["disabled"]
44
- }], children: [{
45
- type: Input,
46
- args: ["children"]
47
- }], disabledOptions: [{
48
- type: Input
49
- }], buttonElement: [{
50
- type: ViewChild,
51
- args: ["buttonElement", { static: false }]
52
- }], hostDisabled: [{
53
- type: HostBinding,
54
- args: ["class.disabled"]
55
- }] } });
56
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcmFpc2UtY29tbW9uLWxpYi9zcmMvbGliL2Zvcm0vdG9vbGJhci1pdGVtL2luZGV4LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3JhaXNlLWNvbW1vbi1saWIvc3JjL2xpYi9mb3JtL3Rvb2xiYXItaXRlbS9pbmRleC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULFdBQVcsRUFDWCxLQUFLLEVBQ0wsU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDOzs7O0FBT3ZCLE1BQU0sT0FBTyxvQkFBb0I7SUFDZixLQUFLLENBQVM7SUFDZixJQUFJLENBQVM7SUFDVCxRQUFRLENBQVU7SUFDbEIsUUFBUSxHQUFVLEVBQUUsQ0FBQztJQUMvQixlQUFlLEdBQXlCLEVBQUUsQ0FBQztJQUdMLGFBQWEsQ0FBYztJQUMxRSxJQUFtQyxZQUFZO1FBQzdDLE9BQU8sQ0F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2b2lkO1xyXG4gIGRpc2FibGVkPzogYm9vbGVhbjtcclxuICBrZXk/OiBzdHJpbmc7XHJcbiAgY2hpbGRyZW4/OiBUb29sYmFyQnV0dG9uW107XHJcbn1cclxuIl19
File without changes