@colijnit/transaction 12.1.19 → 12.1.20
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-transaction.umd.js +488 -252
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +115 -111
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +116 -112
- package/esm2015/lib/assets/dictionary/text.properties.js +9 -1
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +5 -2
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.js +3 -1
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +16 -112
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +162 -0
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.js +30 -0
- package/esm2015/lib/component/transaction-search/service/filter-request.service.js +1 -1
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +11 -1
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.component.js +6 -2
- package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.js +86 -0
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.js +26 -0
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +120 -0
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.js +26 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +49 -25
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +9 -5
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +77 -0
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.js +28 -0
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +37 -9
- package/esm2015/lib/enum/direction.enum.js +9 -0
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/enum/search-view-mode.enum.js +7 -0
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/fesm2015/colijnit-transaction.js +478 -167
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_layout.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_material-definition.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_theme.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/material.scss +0 -0
- package/lib/component/tile/style/_material-definition.scss +2 -1
- package/lib/component/transaction-grid/transaction-base-grid/style/_layout.scss +4 -0
- package/lib/component/transaction-line/style/_layout.scss +0 -47
- package/lib/component/transaction-line/style/_theme.scss +0 -17
- package/lib/component/transaction-line/transaction-line.component.d.ts +3 -17
- package/lib/component/transaction-line-action-buttons/style/_layout.scss +106 -0
- package/lib/component/transaction-line-action-buttons/style/_material-definition.scss +7 -0
- package/lib/component/transaction-line-action-buttons/style/_theme.scss +7 -0
- package/lib/component/transaction-line-action-buttons/style/material.scss +3 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +43 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.d.ts +2 -0
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +2 -0
- package/lib/component/transaction-search/style/_layout.scss +36 -18
- package/lib/component/transaction-search/style/_material-definition.scss +31 -14
- package/lib/component/transaction-search/style/_theme.scss +4 -0
- package/lib/component/transaction-search/style/material.scss +2 -1
- package/lib/component/transaction-search/transaction-filter/transaction-filter.component.d.ts +3 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/_layout.scss +8 -8
- package/lib/component/transaction-search/transaction-filter-categories/style/_theme.scss +3 -3
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/_layout.scss +6 -0
- package/lib/component/{transaction-search-grid → transaction-search/transaction-search-grid/transaction-search-sales-order-grid}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/material.scss +7 -0
- package/lib/component/{transaction-search-grid/transaction-search-grid.component.d.ts → transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.d.ts} +1 -1
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +8 -0
- package/lib/component/transaction-search/{transaction-tile → transaction-search-header}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-header/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-search-header/style/material.scss +3 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +32 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +84 -13
- package/lib/component/transaction-search/transaction-search-result/style/_theme.scss +1 -1
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +14 -6
- package/lib/component/transaction-search/{transaction-tile → transaction-search-tile/transaction-search-sales-order-tile}/style/_layout.scss +2 -4
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/style/_theme.scss +48 -0
- package/lib/component/transaction-search/{transaction-tile → transaction-search-tile/transaction-search-sales-order-tile}/style/material.scss +0 -0
- package/lib/component/transaction-search/{transaction-tile/transaction-tile.component.d.ts → transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.d.ts} +3 -3
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +8 -1
- package/lib/enum/direction.enum.d.ts +6 -0
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/enum/search-view-mode.enum.d.ts +4 -0
- package/package.json +1 -1
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.component.js +0 -77
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.module.js +0 -28
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.component.js +0 -86
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.module.js +0 -26
- package/lib/component/transaction-search/transaction-tile/style/_theme.scss +0 -46
- package/lib/component/transaction-search/transaction-tile/transaction-tile.module.d.ts +0 -2
- package/lib/component/transaction-search-grid/style/_layout.scss +0 -6
- package/lib/component/transaction-search-grid/style/_theme.scss +0 -6
- package/lib/component/transaction-search-grid/style/material.scss +0 -7
- package/lib/component/transaction-search-grid/transaction-search-grid.module.d.ts +0 -2
|
@@ -51,7 +51,7 @@ import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.b
|
|
|
51
51
|
import { ArticleLight } from '@colijnit/articleapi/build/model/article-light.bo';
|
|
52
52
|
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
53
53
|
import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
|
|
54
|
-
import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, InputTextComponent, SimpleGridModule, GridToolbarButtonModule, InputSearchModule, FilterItemModule, InputDateRangePickerModule } from '@colijnit/corecomponents_v12';
|
|
54
|
+
import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, ClickoutsideModule, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, InputTextComponent, SimpleGridModule, GridToolbarButtonModule, InputSearchModule, FilterItemModule, InputDateRangePickerModule } from '@colijnit/corecomponents_v12';
|
|
55
55
|
import { FlexModule } from '@angular/flex-layout';
|
|
56
56
|
import { CommunicationType } from '@colijnit/transactionapi/build/enum/communication-type.enum';
|
|
57
57
|
import { ContactOption } from '@colijnit/transactionapi/build/model/contact-option.bo';
|
|
@@ -282,8 +282,10 @@ class Dictionary {
|
|
|
282
282
|
"HANDLED_BY": "Verkoper",
|
|
283
283
|
"HOUSE_NO": "Huisnummer",
|
|
284
284
|
"HOUSE_NO_ADDITION": "Huisnummer toevoeging",
|
|
285
|
+
"IN": "In",
|
|
285
286
|
"INACTIVE_TRANSACTIONS": "Inactieve transacties",
|
|
286
287
|
"INCLUDING_RETURNS": "Inclusief retouren",
|
|
288
|
+
"IN_SEARCHORDERS": "In verkooporders",
|
|
287
289
|
"IN_ORDER": "In bestelling",
|
|
288
290
|
"IN_OUT_COLLECTION": "In-uit-collectie",
|
|
289
291
|
"INVITE_TO_ACCOUNT": "Uitnodigen voor account",
|
|
@@ -388,8 +390,10 @@ class Dictionary {
|
|
|
388
390
|
"RELATION_NUMBER": "Relatienummer",
|
|
389
391
|
"REMARKS": "Opmerkingen",
|
|
390
392
|
"SALUTATION": "Aanhef",
|
|
393
|
+
"SALESORDERS": "Verkooporders",
|
|
391
394
|
"SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
|
|
392
395
|
"SAVE": "Opslaan",
|
|
396
|
+
"SEARCH": "Zoeken",
|
|
393
397
|
"SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
|
|
394
398
|
"SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
|
|
395
399
|
"SELECT": "Selecteren",
|
|
@@ -568,8 +572,10 @@ class Dictionary {
|
|
|
568
572
|
"HANDLED_BY": "Handled by",
|
|
569
573
|
"HOUSE_NO": "Housenumber",
|
|
570
574
|
"HOUSE_NO_ADDITION": "Housenumber addition",
|
|
575
|
+
"IN": "In",
|
|
571
576
|
"INACTIVE_TRANSACTIONS": "Inactieve transacties",
|
|
572
577
|
"INCLUDING_RETURNS": "Including returns",
|
|
578
|
+
"IN_SEARCHORDERS": "In sales orders",
|
|
573
579
|
"IN_ORDER": "In order",
|
|
574
580
|
"IN_OUT_COLLECTION": "In-out-collection",
|
|
575
581
|
"INVITE_TO_ACCOUNT": "Invite account",
|
|
@@ -654,9 +660,11 @@ class Dictionary {
|
|
|
654
660
|
"REFERENCE_RELATION": "Ref. relation",
|
|
655
661
|
"RELATION_NUMBER": "Relation number",
|
|
656
662
|
"REMARKS": "Remarks",
|
|
663
|
+
"SALESORDERS": "Sales orders",
|
|
657
664
|
"SALUTATION": "Salutation",
|
|
658
665
|
"SAME_AS_DELIVERY": "Same as delivery address",
|
|
659
666
|
"SAVE": "Save",
|
|
667
|
+
"SEARCH": "Search",
|
|
660
668
|
"SEARCH_ADD_ARTICLE": "Search and add article",
|
|
661
669
|
"SEARCH_IN_COLLECTION": "Search in collection...",
|
|
662
670
|
"SELECT": "Select",
|
|
@@ -3712,8 +3720,10 @@ var Icon;
|
|
|
3712
3720
|
Icon["PalletBoxesSolid"] = "pallet_boxes_solid";
|
|
3713
3721
|
Icon["PlusRound"] = "plus_round";
|
|
3714
3722
|
Icon["Purchase"] = "purchase";
|
|
3723
|
+
Icon["Resize"] = "resize";
|
|
3715
3724
|
Icon["ShelvesSolid"] = "shelves_solid";
|
|
3716
3725
|
Icon["SidePanel"] = "side_panel";
|
|
3726
|
+
Icon["SlideIn"] = "slide_in";
|
|
3717
3727
|
Icon["SyncAlt"] = "sync_alt";
|
|
3718
3728
|
Icon["Tag"] = "tag";
|
|
3719
3729
|
Icon["ThickLines"] = "thick_lines";
|
|
@@ -4276,8 +4286,10 @@ const IconSvg = {
|
|
|
4276
4286
|
"pallet_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M96 255.1L288 256c17.6 0 32-14.4 32-32V31.1c0-17.6-14.4-31.1-32-31.1L96 0c-17.6 0-32 14.4-32 32V224C64 241.6 78.4 255.1 96 255.1zM416 255.1h128c17.6 0 32-14.4 32-31.1v-128c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v128C384 241.6 398.4 255.1 416 255.1zM624 384c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16h-608C7.25 320 0 327.3 0 336v32C0 376.8 7.25 384 16 384H64v64H16C7.25 448 0 455.3 0 464v32C0 504.8 7.25 512 16 512h608c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16H576v-64H624zM288 448H128v-64h160V448zM512 448h-160v-64h160V448z\"/></svg>",
|
|
4277
4287
|
"plus_round": "<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\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
4278
4288
|
"purchase": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g opacity=\"0.75\"><polygon points=\"33.34 25.04 27.34 28.52 33.35 31.97 39.34 28.49 33.34 25.04\" fill=\"#484f60\"/><polygon points=\"33.99 33.08 39.99 29.6 40 36.53 34.01 40.01 33.99 33.08\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"26.72 36.55 26.71 29.63 32.71 33.08 32.72 40.01 26.72 36.55\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"12.78 28.54 18.79 32 24.78 28.52 18.77 25.07 12.78 28.54\" fill=\"#484f60\"/><polygon points=\"19.43 33.1 25.42 29.63 25.44 36.56 19.44 40.03 19.43 33.1\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"12.15 36.58 12.14 29.65 18.15 33.11 18.16 40.04 12.15 36.58\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"32.04 15.89 26.03 12.44 22.09 14.73 27.52 14.73 24.03 18.21 26.05 19.37 32.04 15.89\" fill=\"#484f60\"/><polygon points=\"32.68 17 26.69 20.48 26.7 27.41 32.7 23.93 32.68 17\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"23.1 19.15 19.41 22.83 19.41 23.95 25.42 27.41 25.41 20.48 23.1 19.15\" fill=\"#484f60\" opacity=\"0.25\"/></g><polygon points=\"19.03 16.34 19.03 10.3 14.61 10.3 14.61 16.34 14.61 16.34 10 16.34 16.82 23.16 23.64 16.34 19.03 16.34\" fill=\"#484f60\"/></svg>",
|
|
4289
|
+
"resize": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><polygon points=\"1.1 49.9 1.1 30.6 7.8 37.3 37.3 8 30.6 1.3 49.9 1.3 49.9 20.6 43.2 13.9 13.7 43.2 20.5 49.9 1.1 49.9\" fill=\"#4d5050\"/></svg>",
|
|
4279
4290
|
"shelves_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M608 0c-17.6 0-32 14.4-32 31.1V160H64V31.1C64 14.4 49.6 0 32 0S0 14.4 0 31.1v480h64v-32h512v32h64v-480C640 14.4 625.6 0 608 0zM576 416H64V224h512V416zM368 128h96C472.8 128 480 120.8 480 112v-96C480 7.25 472.8 0 464 0h-96C359.2 0 352 7.25 352 16v96C352 120.8 359.2 128 368 128zM112 384h96C216.8 384 224 376.8 224 368v-96C224 263.2 216.8 256 208 256h-96C103.2 256 96 263.2 96 272v96C96 376.8 103.2 384 112 384zM272 384h96c8.75 0 16-7.25 16-16v-96C384 263.2 376.8 256 368 256h-96C263.2 256 256 263.2 256 272v96C256 376.8 263.2 384 272 384z\"/></svg>",
|
|
4280
4291
|
"side_panel": "<svg width=\"47px\" height=\"43px\" viewBox=\"0 0 47 43\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><defs><image width=\"47\" height=\"43\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAArCAYAAADottG6AAAABHNCSVQICAgIfAhkiAAAAHtJREFUWIXt18EJwCAQAEENKSNv60gVgVQYSBWpw3f6OHvQx3Kw8xcX0QNrRERJaqMDVhhPMZ5iPMV4ivEU4ynGU/bZhb3/5Xm/pc3v6yytHdPrq58RiPEUHywl9bUxnuKDpaS+NsZTUsennjapT95RSTGeYjzFeErq+AEBrixGEVJ5mAAAAABJRU5ErkJggg==\" /></defs><use xlink:href=\"#img_1\" fill=\"#FFFFFF\" stroke=\"none\" /></svg>",
|
|
4292
|
+
"slide_in": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M12,12.17H38v26H12ZM36.76,13.4H13.24V36.93H36.76Z\" fill=\"#484f60\"/><polygon points=\"33.71 23.42 28.41 23.42 28.41 20.43 24.13 24.72 28.41 29.01 28.41 26.02 33.71 26.02 33.71 23.42\" fill=\"#484f60\"/><rect x=\"12\" y=\"12.17\" width=\"9\" height=\"26\" fill=\"#484f60\"/></svg>",
|
|
4281
4293
|
"sync_alt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z\"/></svg>",
|
|
4282
4294
|
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
4283
4295
|
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
@@ -6081,6 +6093,170 @@ TransactionImageService.ctorParameters = () => [
|
|
|
6081
6093
|
{ type: TransactionConnectorService }
|
|
6082
6094
|
];
|
|
6083
6095
|
|
|
6096
|
+
// Direction type for regular straight directions.
|
|
6097
|
+
var Direction;
|
|
6098
|
+
(function (Direction) {
|
|
6099
|
+
Direction["Right"] = "right";
|
|
6100
|
+
Direction["Left"] = "left";
|
|
6101
|
+
Direction["Up"] = "top";
|
|
6102
|
+
Direction["Down"] = "bottom";
|
|
6103
|
+
})(Direction || (Direction = {}));
|
|
6104
|
+
|
|
6105
|
+
class TransactionLineActionButtonsComponent {
|
|
6106
|
+
constructor(iconCacheService, _transactionService, _dictionaryService) {
|
|
6107
|
+
this.iconCacheService = iconCacheService;
|
|
6108
|
+
this._transactionService = _transactionService;
|
|
6109
|
+
this._dictionaryService = _dictionaryService;
|
|
6110
|
+
this.icons = Icon;
|
|
6111
|
+
this.alignDirection = Direction.Down;
|
|
6112
|
+
this.waitingForUserAction = new EventEmitter();
|
|
6113
|
+
this.sidePanelButtonClicked = new EventEmitter();
|
|
6114
|
+
this.showActionButtons = false;
|
|
6115
|
+
this.showActionButtonsDelayed = false;
|
|
6116
|
+
this.showTransactionArticleText = false;
|
|
6117
|
+
this.showTransactionArticleTextOverview = false;
|
|
6118
|
+
}
|
|
6119
|
+
showClass() {
|
|
6120
|
+
return true;
|
|
6121
|
+
}
|
|
6122
|
+
ngOnInit() {
|
|
6123
|
+
this.transactionKind = this._transactionService.currentTransaction.transactionInfo.transactionKind;
|
|
6124
|
+
}
|
|
6125
|
+
handleShowHideClick() {
|
|
6126
|
+
this.showActionButtons = !this.showActionButtons;
|
|
6127
|
+
setTimeout(() => {
|
|
6128
|
+
this.showActionButtonsDelayed = !this.showActionButtonsDelayed;
|
|
6129
|
+
}, 1);
|
|
6130
|
+
}
|
|
6131
|
+
handleTransactionArticleTextOverview() {
|
|
6132
|
+
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.transactionLine.articleNumber);
|
|
6133
|
+
this.textToEdit = undefined;
|
|
6134
|
+
this._showArticleTextOverviewDialog();
|
|
6135
|
+
this.showActionButtons = false;
|
|
6136
|
+
this.showActionButtonsDelayed = false;
|
|
6137
|
+
}
|
|
6138
|
+
handleTransactionArticleText() {
|
|
6139
|
+
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.transactionLine.articleNumber);
|
|
6140
|
+
this.textToEdit = undefined;
|
|
6141
|
+
this.showArticleTextDialog();
|
|
6142
|
+
this.showActionButtons = false;
|
|
6143
|
+
this.showActionButtonsDelayed = false;
|
|
6144
|
+
}
|
|
6145
|
+
handleShowSidePanel() {
|
|
6146
|
+
this.sidePanelButtonClicked.next(this.transactionLine);
|
|
6147
|
+
this.waitingForUserAction.next(true);
|
|
6148
|
+
this.showActionButtons = false;
|
|
6149
|
+
this.showActionButtonsDelayed = false;
|
|
6150
|
+
}
|
|
6151
|
+
showOverviewButton() {
|
|
6152
|
+
return this.transactionKind === TransactionKind.PurchaseOrder ||
|
|
6153
|
+
this.transactionKind === TransactionKind.SalesOrder;
|
|
6154
|
+
}
|
|
6155
|
+
showAddTextButton() {
|
|
6156
|
+
return this.transactionKind === TransactionKind.PurchaseOrder ||
|
|
6157
|
+
this.transactionKind === TransactionKind.SalesOrder;
|
|
6158
|
+
}
|
|
6159
|
+
showSidebarButton() {
|
|
6160
|
+
return this.transactionKind === TransactionKind.PurchaseOrder ||
|
|
6161
|
+
this.transactionKind === TransactionKind.SalesOrder;
|
|
6162
|
+
}
|
|
6163
|
+
saveTransactionArticleLineText(transactionAddTextLineRequest) {
|
|
6164
|
+
this._transactionService.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, true, transactionAddTextLineRequest.refArticleLineNr).then(() => {
|
|
6165
|
+
this._hideArticleTextDialog();
|
|
6166
|
+
});
|
|
6167
|
+
}
|
|
6168
|
+
closeTransactionArticleText(event) {
|
|
6169
|
+
this._hideArticleTextDialog();
|
|
6170
|
+
}
|
|
6171
|
+
closeTransactionArticleTextOverview(event) {
|
|
6172
|
+
this._hideArticleTextOverviewDialog();
|
|
6173
|
+
}
|
|
6174
|
+
showArticleTextDialog() {
|
|
6175
|
+
this.showTransactionArticleText = true;
|
|
6176
|
+
this.waitingForUserAction.next(true);
|
|
6177
|
+
}
|
|
6178
|
+
_hideArticleTextDialog() {
|
|
6179
|
+
this.showTransactionArticleText = false;
|
|
6180
|
+
this.waitingForUserAction.next(false);
|
|
6181
|
+
}
|
|
6182
|
+
_showArticleTextOverviewDialog() {
|
|
6183
|
+
this.showTransactionArticleTextOverview = true;
|
|
6184
|
+
this.waitingForUserAction.next(true);
|
|
6185
|
+
}
|
|
6186
|
+
_hideArticleTextOverviewDialog() {
|
|
6187
|
+
this.showTransactionArticleTextOverview = false;
|
|
6188
|
+
this.waitingForUserAction.next(false);
|
|
6189
|
+
}
|
|
6190
|
+
}
|
|
6191
|
+
TransactionLineActionButtonsComponent.decorators = [
|
|
6192
|
+
{ type: Component, args: [{
|
|
6193
|
+
selector: "co-transaction-line-action-buttons",
|
|
6194
|
+
template: `
|
|
6195
|
+
<div class="transaction-line-action-buttons-wrapper">
|
|
6196
|
+
<div class="show-hide-button">
|
|
6197
|
+
<icon [icon]="icons.ThickLines" (click)="handleShowHideClick()"></icon>
|
|
6198
|
+
</div>
|
|
6199
|
+
|
|
6200
|
+
<div class="action-buttons-container" clickOutside
|
|
6201
|
+
*ngIf="showActionButtons"
|
|
6202
|
+
[ngClass]="alignDirection"
|
|
6203
|
+
(clickOutside)="handleShowHideClick()">
|
|
6204
|
+
|
|
6205
|
+
<co-button *ngIf="showOverviewButton()"
|
|
6206
|
+
class="transaction-line-overview-button circle"
|
|
6207
|
+
[class.show]="showActionButtonsDelayed"
|
|
6208
|
+
[iconData]="iconCacheService.getIcon(icons.Txt)"
|
|
6209
|
+
(click)="handleTransactionArticleTextOverview()"></co-button>
|
|
6210
|
+
|
|
6211
|
+
<co-button *ngIf="showAddTextButton()"
|
|
6212
|
+
class="transaction-line-add-text-button circle"
|
|
6213
|
+
[class.show]="showActionButtonsDelayed"
|
|
6214
|
+
[iconData]="iconCacheService.getIcon(icons.Txt)"
|
|
6215
|
+
(click)="handleTransactionArticleText()"></co-button>
|
|
6216
|
+
|
|
6217
|
+
<co-button *ngIf="showSidebarButton()"
|
|
6218
|
+
class="transaction-line-show-sidebar-button circle"
|
|
6219
|
+
[class.show]="showActionButtonsDelayed"
|
|
6220
|
+
[iconData]="iconCacheService.getIcon(icons.MasterDetail)"
|
|
6221
|
+
(click)="handleShowSidePanel()"></co-button>
|
|
6222
|
+
</div>
|
|
6223
|
+
</div>
|
|
6224
|
+
|
|
6225
|
+
<co-transaction-article-text-overview *ngIf="showTransactionArticleTextOverview"
|
|
6226
|
+
[header]="articleTextHeader | localize"
|
|
6227
|
+
[transactionLine]="transactionLine"
|
|
6228
|
+
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6229
|
+
(closeClick)="closeTransactionArticleTextOverview($event)"
|
|
6230
|
+
(cancelClick)="closeTransactionArticleTextOverview($event)"
|
|
6231
|
+
></co-transaction-article-text-overview>
|
|
6232
|
+
|
|
6233
|
+
<co-transaction-article-text *ngIf="showTransactionArticleText"
|
|
6234
|
+
[header]="articleTextHeader | localize"
|
|
6235
|
+
[articleLineNr]="transactionLine.lineNr"
|
|
6236
|
+
[articleRef]="transactionLine.articleNumber"
|
|
6237
|
+
[transactionLine]="transactionLine"
|
|
6238
|
+
[editText]="textToEdit"
|
|
6239
|
+
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6240
|
+
(closeClick)="closeTransactionArticleText($event)"
|
|
6241
|
+
(cancelClick)="closeTransactionArticleText($event)"
|
|
6242
|
+
></co-transaction-article-text>
|
|
6243
|
+
`,
|
|
6244
|
+
encapsulation: ViewEncapsulation.None
|
|
6245
|
+
},] }
|
|
6246
|
+
];
|
|
6247
|
+
TransactionLineActionButtonsComponent.ctorParameters = () => [
|
|
6248
|
+
{ type: IconCacheService },
|
|
6249
|
+
{ type: TransactionService },
|
|
6250
|
+
{ type: DictionaryService }
|
|
6251
|
+
];
|
|
6252
|
+
TransactionLineActionButtonsComponent.propDecorators = {
|
|
6253
|
+
transactionLine: [{ type: Input }],
|
|
6254
|
+
alignDirection: [{ type: Input }],
|
|
6255
|
+
waitingForUserAction: [{ type: Output }],
|
|
6256
|
+
sidePanelButtonClicked: [{ type: Output }],
|
|
6257
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
|
|
6258
|
+
};
|
|
6259
|
+
|
|
6084
6260
|
class TransactionLineComponent {
|
|
6085
6261
|
constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
|
|
6086
6262
|
this.service = service;
|
|
@@ -6093,8 +6269,6 @@ class TransactionLineComponent {
|
|
|
6093
6269
|
this.waitingForUserAction = new EventEmitter();
|
|
6094
6270
|
this.sidePanelButtonClicked = new EventEmitter();
|
|
6095
6271
|
this.stock = StockStatus.Low;
|
|
6096
|
-
this.showTransactionArticleText = false;
|
|
6097
|
-
this.showTransactionArticleTextOverview = false;
|
|
6098
6272
|
this.mouseOver = false;
|
|
6099
6273
|
}
|
|
6100
6274
|
set line(value) {
|
|
@@ -6136,30 +6310,13 @@ class TransactionLineComponent {
|
|
|
6136
6310
|
}
|
|
6137
6311
|
});
|
|
6138
6312
|
}
|
|
6139
|
-
handleTransactionArticleText(event) {
|
|
6140
|
-
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.line.articleNumber);
|
|
6141
|
-
this.textToEdit = undefined;
|
|
6142
|
-
this._showArticleTextDialog();
|
|
6143
|
-
}
|
|
6144
|
-
handleTransactionArticleTextOverview(event) {
|
|
6145
|
-
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.line.articleNumber);
|
|
6146
|
-
this.textToEdit = undefined;
|
|
6147
|
-
this._showArticleTextOverviewDialog();
|
|
6148
|
-
}
|
|
6149
|
-
saveTransactionArticleLineText(transactionAddTextLineRequest) {
|
|
6150
|
-
this.service.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, true, transactionAddTextLineRequest.refArticleLineNr).then(() => {
|
|
6151
|
-
this._hideArticleTextDialog();
|
|
6152
|
-
});
|
|
6153
|
-
}
|
|
6154
|
-
closeTransactionArticleText(event) {
|
|
6155
|
-
this._hideArticleTextDialog();
|
|
6156
|
-
}
|
|
6157
|
-
closeTransactionArticleTextOverview(event) {
|
|
6158
|
-
this._hideArticleTextOverviewDialog();
|
|
6159
|
-
}
|
|
6160
6313
|
handleOpenArticleText(text) {
|
|
6161
|
-
this.textToEdit = text;
|
|
6162
|
-
this.
|
|
6314
|
+
this.transactionLineActionButtons.textToEdit = text;
|
|
6315
|
+
this.transactionLineActionButtons.showArticleTextDialog();
|
|
6316
|
+
}
|
|
6317
|
+
handleShowSidePanel() {
|
|
6318
|
+
this.sidePanelButtonClicked.next();
|
|
6319
|
+
this.waitingForUserAction.next(true);
|
|
6163
6320
|
}
|
|
6164
6321
|
_loadLineImage() {
|
|
6165
6322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6170,70 +6327,6 @@ class TransactionLineComponent {
|
|
|
6170
6327
|
}
|
|
6171
6328
|
});
|
|
6172
6329
|
}
|
|
6173
|
-
// private async _confirmAction(lineOperationResponse: LineOperationResponse): Promise<void> {
|
|
6174
|
-
// this.currentReason.confirmation = await this._promptService.showYesNo(lineOperationResponse.pendingReason, " ");
|
|
6175
|
-
// this.service.resolvePendingLineReason(this.currentReason)
|
|
6176
|
-
// .then((value: LineOperationResponse) => {
|
|
6177
|
-
// this._handleLine(value);
|
|
6178
|
-
// });
|
|
6179
|
-
// }
|
|
6180
|
-
// private async _showInformation(lineOperationResponse: LineOperationResponse): Promise<void> {
|
|
6181
|
-
// await this._promptService.showOkModal(lineOperationResponse.pendingReason, " ");
|
|
6182
|
-
// this.service.resolvePendingLineReason(this.currentReason)
|
|
6183
|
-
// .then((value: LineOperationResponse) => {
|
|
6184
|
-
// this._handleLine(value);
|
|
6185
|
-
// });
|
|
6186
|
-
// }
|
|
6187
|
-
// private async _handleLine(lineOperationResponse: LineOperationResponse): Promise<void> {
|
|
6188
|
-
// if (lineOperationResponse === undefined) {
|
|
6189
|
-
// return;
|
|
6190
|
-
// }
|
|
6191
|
-
// this.currentReason = new ResolvePendingLineReasonRequest(lineOperationResponse.lineUuid,
|
|
6192
|
-
// lineOperationResponse.pendingReason, lineOperationResponse.pendingReasonType);
|
|
6193
|
-
//
|
|
6194
|
-
// switch (lineOperationResponse.pendingReasonType) {
|
|
6195
|
-
// case PendingReasonType.ABORTED:
|
|
6196
|
-
// case PendingReasonType.CANCELLED:
|
|
6197
|
-
// this.localAmount = this._line.amount;
|
|
6198
|
-
// if (lineOperationResponse.pendingReason !== "USER_DECISION") {
|
|
6199
|
-
// await this._promptService.showNotification(this._dictionaryService.get(lineOperationResponse.pendingReason), " ");
|
|
6200
|
-
// }
|
|
6201
|
-
// break;
|
|
6202
|
-
// case PendingReasonType.CONFIRMATION_NEEDED:
|
|
6203
|
-
// await this._confirmAction(lineOperationResponse);
|
|
6204
|
-
// break;
|
|
6205
|
-
// case PendingReasonType.NON_CRITICAL_DISCONTINUATION:
|
|
6206
|
-
// await this._showInformation(lineOperationResponse);
|
|
6207
|
-
// break;
|
|
6208
|
-
// case PendingReasonType.INVALID_LOGISTICS:
|
|
6209
|
-
// this.localAmount = this._line.amount;
|
|
6210
|
-
// await this._promptService.showError(this._dictionaryService.get(lineOperationResponse.pendingReason), " ");
|
|
6211
|
-
// break;
|
|
6212
|
-
// case PendingReasonType.NONE:
|
|
6213
|
-
// default:
|
|
6214
|
-
// break;
|
|
6215
|
-
// }
|
|
6216
|
-
// }
|
|
6217
|
-
_showArticleTextDialog() {
|
|
6218
|
-
this.showTransactionArticleText = true;
|
|
6219
|
-
this.waitingForUserAction.next(true);
|
|
6220
|
-
}
|
|
6221
|
-
_hideArticleTextDialog() {
|
|
6222
|
-
this.showTransactionArticleText = false;
|
|
6223
|
-
this.waitingForUserAction.next(false);
|
|
6224
|
-
}
|
|
6225
|
-
_showArticleTextOverviewDialog() {
|
|
6226
|
-
this.showTransactionArticleTextOverview = true;
|
|
6227
|
-
this.waitingForUserAction.next(true);
|
|
6228
|
-
}
|
|
6229
|
-
_hideArticleTextOverviewDialog() {
|
|
6230
|
-
this.showTransactionArticleTextOverview = false;
|
|
6231
|
-
this.waitingForUserAction.next(false);
|
|
6232
|
-
}
|
|
6233
|
-
handleShowSidePanel(event) {
|
|
6234
|
-
this.sidePanelButtonClicked.next();
|
|
6235
|
-
this.waitingForUserAction.next(true);
|
|
6236
|
-
}
|
|
6237
6330
|
}
|
|
6238
6331
|
TransactionLineComponent.decorators = [
|
|
6239
6332
|
{ type: Component, args: [{
|
|
@@ -6264,7 +6357,7 @@ TransactionLineComponent.decorators = [
|
|
|
6264
6357
|
<span [textContent]="'STOCK' | localize" class="small-font"></span>
|
|
6265
6358
|
<stock-status-indicator [model]="stock"></stock-status-indicator>
|
|
6266
6359
|
<span [textContent]="'DELIVERY_TIME_PERIOD' | localize" class="small-font"></span>
|
|
6267
|
-
<!-- <span [textContent]="line.deliveryDate | deliveryTime"></span>-->
|
|
6360
|
+
<!-- <span [textContent]="line.deliveryDate | deliveryTime"></span>-->
|
|
6268
6361
|
</div>
|
|
6269
6362
|
<div *ngIf=!preview class="transaction-line-amount">
|
|
6270
6363
|
<co-input-number-picker class="amount-number-picker"
|
|
@@ -6284,9 +6377,11 @@ TransactionLineComponent.decorators = [
|
|
|
6284
6377
|
<span [textContent]="line.displayNetLineTotal | coCurrency: true"></span>
|
|
6285
6378
|
</div>
|
|
6286
6379
|
<div *ngIf="!preview" class="transaction-line-buttons">
|
|
6287
|
-
<co-
|
|
6288
|
-
|
|
6289
|
-
|
|
6380
|
+
<co-transaction-line-action-buttons
|
|
6381
|
+
[transactionLine]="line"
|
|
6382
|
+
(waitingForUserAction)="waitingForUserAction.next($event)"
|
|
6383
|
+
(sidePanelButtonClicked)="handleShowSidePanel()"
|
|
6384
|
+
></co-transaction-line-action-buttons>
|
|
6290
6385
|
</div>
|
|
6291
6386
|
</div>
|
|
6292
6387
|
<div class="transaction-line-delete" *ngIf="!preview">
|
|
@@ -6310,23 +6405,6 @@ TransactionLineComponent.decorators = [
|
|
|
6310
6405
|
</div>
|
|
6311
6406
|
</ng-container>
|
|
6312
6407
|
</div>
|
|
6313
|
-
<co-transaction-article-text-overview *ngIf="showTransactionArticleTextOverview"
|
|
6314
|
-
[header]="articleTextHeader | localize"
|
|
6315
|
-
[transactionLine]="line"
|
|
6316
|
-
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6317
|
-
(closeClick)="closeTransactionArticleTextOverview($event)"
|
|
6318
|
-
(cancelClick)="closeTransactionArticleTextOverview($event)"
|
|
6319
|
-
></co-transaction-article-text-overview>
|
|
6320
|
-
<co-transaction-article-text *ngIf="showTransactionArticleText"
|
|
6321
|
-
[header]="articleTextHeader | localize"
|
|
6322
|
-
[articleLineNr]="line.lineNr"
|
|
6323
|
-
[articleRef]="line.articleNumber"
|
|
6324
|
-
[transactionLine]="line"
|
|
6325
|
-
[editText]="textToEdit"
|
|
6326
|
-
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6327
|
-
(closeClick)="closeTransactionArticleText($event)"
|
|
6328
|
-
(cancelClick)="closeTransactionArticleText($event)"
|
|
6329
|
-
></co-transaction-article-text>
|
|
6330
6408
|
`,
|
|
6331
6409
|
encapsulation: ViewEncapsulation.None
|
|
6332
6410
|
},] }
|
|
@@ -6343,6 +6421,7 @@ TransactionLineComponent.propDecorators = {
|
|
|
6343
6421
|
line: [{ type: Input }],
|
|
6344
6422
|
waitingForUserAction: [{ type: Output }],
|
|
6345
6423
|
sidePanelButtonClicked: [{ type: Output }],
|
|
6424
|
+
transactionLineActionButtons: [{ type: ViewChild, args: [TransactionLineActionButtonsComponent,] }],
|
|
6346
6425
|
isText: [{ type: HostBinding, args: ["class.is-text",] }],
|
|
6347
6426
|
isArticle: [{ type: HostBinding, args: ["class.is-article",] }],
|
|
6348
6427
|
isSelected: [{ type: HostBinding, args: ["class.is-selected",] }, { type: Input, args: ['selected',] }],
|
|
@@ -6500,6 +6579,28 @@ TransactionArticleTextOverviewModule.decorators = [
|
|
|
6500
6579
|
},] }
|
|
6501
6580
|
];
|
|
6502
6581
|
|
|
6582
|
+
class TransactionLineActionButtonsModule {
|
|
6583
|
+
}
|
|
6584
|
+
TransactionLineActionButtonsModule.decorators = [
|
|
6585
|
+
{ type: NgModule, args: [{
|
|
6586
|
+
imports: [
|
|
6587
|
+
CommonModule,
|
|
6588
|
+
CoreModule,
|
|
6589
|
+
ButtonModule,
|
|
6590
|
+
ClickoutsideModule,
|
|
6591
|
+
TransactionArticleTextOverviewModule,
|
|
6592
|
+
TransactionArticleTextModule,
|
|
6593
|
+
PipeModule
|
|
6594
|
+
],
|
|
6595
|
+
declarations: [
|
|
6596
|
+
TransactionLineActionButtonsComponent
|
|
6597
|
+
],
|
|
6598
|
+
exports: [
|
|
6599
|
+
TransactionLineActionButtonsComponent
|
|
6600
|
+
]
|
|
6601
|
+
},] }
|
|
6602
|
+
];
|
|
6603
|
+
|
|
6503
6604
|
class TransactionLineModule {
|
|
6504
6605
|
}
|
|
6505
6606
|
TransactionLineModule.decorators = [
|
|
@@ -6511,7 +6612,8 @@ TransactionLineModule.decorators = [
|
|
|
6511
6612
|
InputNumberPickerModule,
|
|
6512
6613
|
TransactionArticleTextModule,
|
|
6513
6614
|
TransactionArticleTextOverviewModule,
|
|
6514
|
-
PipeModule
|
|
6615
|
+
PipeModule,
|
|
6616
|
+
TransactionLineActionButtonsModule
|
|
6515
6617
|
],
|
|
6516
6618
|
declarations: [
|
|
6517
6619
|
TransactionLineComponent
|
|
@@ -8138,7 +8240,10 @@ TransactionBaseGridComponent.decorators = [
|
|
|
8138
8240
|
</co-simple-grid-column>
|
|
8139
8241
|
<co-simple-grid-column [headerText]="''" [width]="40" [field]="'sideMenuButton'" [order]="400">
|
|
8140
8242
|
<ng-template #template let-row = "row">
|
|
8141
|
-
<
|
|
8243
|
+
<co-transaction-line-action-buttons class="transaction-line-action-buttons"
|
|
8244
|
+
[transactionLine]="row"
|
|
8245
|
+
(sidePanelButtonClicked)="openSidePanel(row)"
|
|
8246
|
+
></co-transaction-line-action-buttons>
|
|
8142
8247
|
</ng-template>
|
|
8143
8248
|
</co-simple-grid-column>
|
|
8144
8249
|
</co-simple-grid>
|
|
@@ -10366,6 +10471,7 @@ TransactionBaseGridModule.decorators = [
|
|
|
10366
10471
|
SimpleGridModule,
|
|
10367
10472
|
ButtonModule,
|
|
10368
10473
|
TransactionLineSidePanelModule,
|
|
10474
|
+
TransactionLineActionButtonsModule,
|
|
10369
10475
|
],
|
|
10370
10476
|
declarations: [
|
|
10371
10477
|
TransactionBaseGridComponent
|
|
@@ -10959,11 +11065,24 @@ ShoppingCartModule.decorators = [
|
|
|
10959
11065
|
},] }
|
|
10960
11066
|
];
|
|
10961
11067
|
|
|
11068
|
+
// The different view modes for search
|
|
11069
|
+
var SearchViewMode;
|
|
11070
|
+
(function (SearchViewMode) {
|
|
11071
|
+
SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
|
|
11072
|
+
SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
|
|
11073
|
+
})(SearchViewMode || (SearchViewMode = {}));
|
|
11074
|
+
|
|
10962
11075
|
class TransactionSearchService {
|
|
10963
11076
|
constructor(_transactionService) {
|
|
10964
11077
|
this._transactionService = _transactionService;
|
|
10965
11078
|
this.searchRequest = new TransactionSearchViewRequest();
|
|
10966
11079
|
this.transactions = [];
|
|
11080
|
+
this.labelBasedOnTransactionType = new Map([
|
|
11081
|
+
[TransactionKind.SalesOrder, "SALESORDERS"],
|
|
11082
|
+
[TransactionKind.PurchaseOrder, "PURCHASEORDERS"],
|
|
11083
|
+
[TransactionKind.ServiceOrder, "SERVICEORDERS"]
|
|
11084
|
+
]);
|
|
11085
|
+
this._transactionType = TransactionKind.SalesOrder;
|
|
10967
11086
|
}
|
|
10968
11087
|
set transactionType(value) {
|
|
10969
11088
|
this._resetRequest();
|
|
@@ -10979,6 +11098,9 @@ class TransactionSearchService {
|
|
|
10979
11098
|
this.transactions = transactions;
|
|
10980
11099
|
});
|
|
10981
11100
|
}
|
|
11101
|
+
getLabelBasedOnTransactionType() {
|
|
11102
|
+
return this.labelBasedOnTransactionType.get(this._transactionType);
|
|
11103
|
+
}
|
|
10982
11104
|
resetFilters() {
|
|
10983
11105
|
const oldSearchRequest = Object.assign({}, this.searchRequest);
|
|
10984
11106
|
this._resetRequest();
|
|
@@ -11002,7 +11124,11 @@ TransactionSearchService.ctorParameters = () => [
|
|
|
11002
11124
|
class TransactionSearchComponent {
|
|
11003
11125
|
constructor(_transactionSearchService) {
|
|
11004
11126
|
this._transactionSearchService = _transactionSearchService;
|
|
11127
|
+
this.searchViewModes = SearchViewMode;
|
|
11128
|
+
this.activeSearchViewMode = SearchViewMode.FullScreen;
|
|
11129
|
+
this.closeClick = new EventEmitter();
|
|
11005
11130
|
this.transactionClick = new EventEmitter();
|
|
11131
|
+
this.searchViewModeChange = new EventEmitter();
|
|
11006
11132
|
this.showFilterSidebar = false;
|
|
11007
11133
|
}
|
|
11008
11134
|
set transactionType(value) {
|
|
@@ -11015,8 +11141,11 @@ class TransactionSearchComponent {
|
|
|
11015
11141
|
showClass() {
|
|
11016
11142
|
return true;
|
|
11017
11143
|
}
|
|
11018
|
-
|
|
11019
|
-
this.
|
|
11144
|
+
get fullscreen() {
|
|
11145
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
11146
|
+
}
|
|
11147
|
+
toggleFilter() {
|
|
11148
|
+
this.showFilterSidebar = !this.showFilterSidebar;
|
|
11020
11149
|
}
|
|
11021
11150
|
handleHideFilter() {
|
|
11022
11151
|
this.showFilterSidebar = false;
|
|
@@ -11028,19 +11157,37 @@ class TransactionSearchComponent {
|
|
|
11028
11157
|
onTransactionClick(transaction) {
|
|
11029
11158
|
this.transactionClick.emit(transaction);
|
|
11030
11159
|
}
|
|
11160
|
+
onResizeClick() {
|
|
11161
|
+
if (this.activeSearchViewMode === this.searchViewModes.SideBar) {
|
|
11162
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
11163
|
+
}
|
|
11164
|
+
else {
|
|
11165
|
+
this.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
11166
|
+
}
|
|
11167
|
+
this.searchViewModeChange.emit(this.activeSearchViewMode);
|
|
11168
|
+
}
|
|
11031
11169
|
}
|
|
11032
11170
|
TransactionSearchComponent.decorators = [
|
|
11033
11171
|
{ type: Component, args: [{
|
|
11034
11172
|
selector: 'co-transaction-search',
|
|
11035
11173
|
template: `
|
|
11036
|
-
<div class="transaction-search-wrapper">
|
|
11037
|
-
<div class="transaction-filter-wrapper narrow-scrollbar"
|
|
11038
|
-
|
|
11039
|
-
|
|
11174
|
+
<div class="transaction-search-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
11175
|
+
<div class="transaction-filter-wrapper narrow-scrollbar" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
11176
|
+
*ngIf="showFilterSidebar" @showHideFilterSidebar>
|
|
11177
|
+
<co-transaction-filter
|
|
11178
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
11179
|
+
(closeButtonClick)="handleHideFilter()"
|
|
11180
|
+
(resetFilterClick)="handleResetFilter()"></co-transaction-filter>
|
|
11040
11181
|
</div>
|
|
11041
11182
|
<div class="transaction-search-result-wrapper">
|
|
11042
|
-
<co-transaction-search-result
|
|
11043
|
-
|
|
11183
|
+
<co-transaction-search-result
|
|
11184
|
+
[transactionType]="transactionType"
|
|
11185
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
11186
|
+
(filterClick)="toggleFilter()"
|
|
11187
|
+
(transactionClick)="onTransactionClick($event)"
|
|
11188
|
+
(resizeClick)="onResizeClick()"
|
|
11189
|
+
(closeClick)="closeClick.emit()"
|
|
11190
|
+
></co-transaction-search-result>
|
|
11044
11191
|
</div>
|
|
11045
11192
|
</div>
|
|
11046
11193
|
`,
|
|
@@ -11058,12 +11205,14 @@ TransactionSearchComponent.ctorParameters = () => [
|
|
|
11058
11205
|
{ type: TransactionSearchService }
|
|
11059
11206
|
];
|
|
11060
11207
|
TransactionSearchComponent.propDecorators = {
|
|
11208
|
+
closeClick: [{ type: Output }],
|
|
11061
11209
|
transactionType: [{ type: Input }],
|
|
11062
11210
|
transactionClick: [{ type: Output }],
|
|
11211
|
+
searchViewModeChange: [{ type: Output }],
|
|
11063
11212
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-search",] }]
|
|
11064
11213
|
};
|
|
11065
11214
|
|
|
11066
|
-
class
|
|
11215
|
+
class TransactionSearchSalesOrderGridComponent {
|
|
11067
11216
|
constructor() {
|
|
11068
11217
|
this.align = ColumnAlign;
|
|
11069
11218
|
this.transactions = [];
|
|
@@ -11080,9 +11229,9 @@ class TransactionSearchGridComponent {
|
|
|
11080
11229
|
this.transactionClick.emit(transaction);
|
|
11081
11230
|
}
|
|
11082
11231
|
}
|
|
11083
|
-
|
|
11232
|
+
TransactionSearchSalesOrderGridComponent.decorators = [
|
|
11084
11233
|
{ type: Component, args: [{
|
|
11085
|
-
selector: "co-transaction-search-grid",
|
|
11234
|
+
selector: "co-transaction-search-sales-order-grid",
|
|
11086
11235
|
template: `
|
|
11087
11236
|
<div>
|
|
11088
11237
|
<co-simple-grid [data]="transactions" [extraColumns]="extraColumns" [dragDropEnabled]="true" [emitDragDrop]="false"
|
|
@@ -11139,17 +11288,17 @@ TransactionSearchGridComponent.decorators = [
|
|
|
11139
11288
|
encapsulation: ViewEncapsulation.None
|
|
11140
11289
|
},] }
|
|
11141
11290
|
];
|
|
11142
|
-
|
|
11143
|
-
|
|
11291
|
+
TransactionSearchSalesOrderGridComponent.ctorParameters = () => [];
|
|
11292
|
+
TransactionSearchSalesOrderGridComponent.propDecorators = {
|
|
11144
11293
|
content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
|
|
11145
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-grid",] }],
|
|
11294
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-sales-order-grid",] }],
|
|
11146
11295
|
transactions: [{ type: Input }],
|
|
11147
11296
|
transactionClick: [{ type: Output }]
|
|
11148
11297
|
};
|
|
11149
11298
|
|
|
11150
|
-
class
|
|
11299
|
+
class TransactionSearchSalesOrderGridModule {
|
|
11151
11300
|
}
|
|
11152
|
-
|
|
11301
|
+
TransactionSearchSalesOrderGridModule.decorators = [
|
|
11153
11302
|
{ type: NgModule, args: [{
|
|
11154
11303
|
imports: [
|
|
11155
11304
|
CommonModule,
|
|
@@ -11159,15 +11308,148 @@ TransactionSearchGridModule.decorators = [
|
|
|
11159
11308
|
InputCheckboxModule
|
|
11160
11309
|
],
|
|
11161
11310
|
declarations: [
|
|
11162
|
-
|
|
11311
|
+
TransactionSearchSalesOrderGridComponent
|
|
11163
11312
|
],
|
|
11164
11313
|
exports: [
|
|
11165
|
-
|
|
11314
|
+
TransactionSearchSalesOrderGridComponent
|
|
11166
11315
|
]
|
|
11167
11316
|
},] }
|
|
11168
11317
|
];
|
|
11169
11318
|
|
|
11170
|
-
class
|
|
11319
|
+
class TransactionSearchHeaderComponent {
|
|
11320
|
+
constructor(searchService, iconCacheService, _dictionary) {
|
|
11321
|
+
this.searchService = searchService;
|
|
11322
|
+
this.iconCacheService = iconCacheService;
|
|
11323
|
+
this._dictionary = _dictionary;
|
|
11324
|
+
this.icon = Icon;
|
|
11325
|
+
this.contentViewModes = ContentViewMode;
|
|
11326
|
+
this.searchViewModes = SearchViewMode;
|
|
11327
|
+
this.iconSlideIn = this.iconCacheService.getIcon(this.icon.SlideIn);
|
|
11328
|
+
this.iconResize = this.iconCacheService.getIcon(this.icon.Resize);
|
|
11329
|
+
this.iconCancel = this.iconCacheService.getIcon(this.icon.Cancel);
|
|
11330
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
11331
|
+
this.activeContentViewMode = this.contentViewModes.Tiles;
|
|
11332
|
+
this.viewModeChange = new EventEmitter();
|
|
11333
|
+
this.filterButtonClick = new EventEmitter();
|
|
11334
|
+
this.resizeClick = new EventEmitter();
|
|
11335
|
+
this.closeClick = new EventEmitter();
|
|
11336
|
+
}
|
|
11337
|
+
set transactionType(value) {
|
|
11338
|
+
this.label = this._dictionary.get(this.searchService.getLabelBasedOnTransactionType());
|
|
11339
|
+
}
|
|
11340
|
+
showClass() {
|
|
11341
|
+
return true;
|
|
11342
|
+
}
|
|
11343
|
+
get fullscreen() {
|
|
11344
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
11345
|
+
}
|
|
11346
|
+
onResizeClick() {
|
|
11347
|
+
this.resizeClick.emit();
|
|
11348
|
+
}
|
|
11349
|
+
onCloseClick() {
|
|
11350
|
+
this.closeClick.emit();
|
|
11351
|
+
}
|
|
11352
|
+
onViewModeChange(viewMode) {
|
|
11353
|
+
this.viewModeChange.emit(viewMode);
|
|
11354
|
+
}
|
|
11355
|
+
}
|
|
11356
|
+
TransactionSearchHeaderComponent.decorators = [
|
|
11357
|
+
{ type: Component, args: [{
|
|
11358
|
+
selector: "co-transaction-search-header",
|
|
11359
|
+
template: `
|
|
11360
|
+
<div class="transaction-search-header-wrapper">
|
|
11361
|
+
<div class="upper-header">
|
|
11362
|
+
<div class="header-title-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
11363
|
+
<div class="title" *ngIf="fullscreen; else sidebar">
|
|
11364
|
+
<h1 [textContent]="label"></h1>
|
|
11365
|
+
</div>
|
|
11366
|
+
<ng-template #sidebar>
|
|
11367
|
+
<h2 [textContent]="'SEARCH' | localize"></h2>
|
|
11368
|
+
<span class="whitespace" [textContent]="'IN' | localize | append: ' ' + label.toLowerCase()"></span>
|
|
11369
|
+
</ng-template>
|
|
11370
|
+
</div>
|
|
11371
|
+
|
|
11372
|
+
<div class="header-buttons-wrapper">
|
|
11373
|
+
<div class="toggle-sidebar-button-wrapper button-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
11374
|
+
<co-button [iconData]="fullscreen ? iconSlideIn : iconResize"
|
|
11375
|
+
[ngClass]="!fullscreen ? 'small' : ''"
|
|
11376
|
+
class="toggle-sidebar-button circle transparent"
|
|
11377
|
+
(click)="onResizeClick()"></co-button>
|
|
11378
|
+
</div>
|
|
11379
|
+
<div class="close-search-button-wrapper button-wrapper" *ngIf="!fullscreen">
|
|
11380
|
+
<co-button [iconData]="iconCancel"
|
|
11381
|
+
class="toggle-sidebar-button circle small transparent"
|
|
11382
|
+
(click)="onCloseClick()">
|
|
11383
|
+
</co-button>
|
|
11384
|
+
</div>
|
|
11385
|
+
</div>
|
|
11386
|
+
|
|
11387
|
+
</div>
|
|
11388
|
+
<div class="header-searchbar-wrapper">
|
|
11389
|
+
<div>
|
|
11390
|
+
<co-input-search class="transaction-search-general"
|
|
11391
|
+
[ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
11392
|
+
[(model)]="searchService.searchRequest.general"
|
|
11393
|
+
[placeholder]="'Waar ben je naar op zoek?'"
|
|
11394
|
+
(search)="searchService.searchTransactions()"></co-input-search>
|
|
11395
|
+
</div>
|
|
11396
|
+
<div>
|
|
11397
|
+
<co-button class="transaction-search-filter-button"
|
|
11398
|
+
*ngIf="fullscreen"
|
|
11399
|
+
[iconData]="iconCacheService.getIcon(icon.BarsFilter)"
|
|
11400
|
+
(click)="filterButtonClick.emit()">
|
|
11401
|
+
</co-button>
|
|
11402
|
+
</div>
|
|
11403
|
+
</div>
|
|
11404
|
+
</div>
|
|
11405
|
+
<div class="view-mode-buttons-wrapper">
|
|
11406
|
+
<co-view-mode-buttons
|
|
11407
|
+
*ngIf="fullscreen"
|
|
11408
|
+
[showViewModes]="[contentViewModes.Tiles, contentViewModes.Grid]"
|
|
11409
|
+
(viewModeChange)="onViewModeChange($event)">
|
|
11410
|
+
</co-view-mode-buttons>
|
|
11411
|
+
</div>
|
|
11412
|
+
`,
|
|
11413
|
+
encapsulation: ViewEncapsulation.None
|
|
11414
|
+
},] }
|
|
11415
|
+
];
|
|
11416
|
+
TransactionSearchHeaderComponent.ctorParameters = () => [
|
|
11417
|
+
{ type: TransactionSearchService },
|
|
11418
|
+
{ type: IconCacheService },
|
|
11419
|
+
{ type: DictionaryService }
|
|
11420
|
+
];
|
|
11421
|
+
TransactionSearchHeaderComponent.propDecorators = {
|
|
11422
|
+
transactionType: [{ type: Input }],
|
|
11423
|
+
activeSearchViewMode: [{ type: Input }],
|
|
11424
|
+
activeContentViewMode: [{ type: Input }],
|
|
11425
|
+
viewModeChange: [{ type: Output }],
|
|
11426
|
+
filterButtonClick: [{ type: Output }],
|
|
11427
|
+
resizeClick: [{ type: Output }],
|
|
11428
|
+
closeClick: [{ type: Output }],
|
|
11429
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-header",] }]
|
|
11430
|
+
};
|
|
11431
|
+
|
|
11432
|
+
class TransactionSearchHeaderModule {
|
|
11433
|
+
}
|
|
11434
|
+
TransactionSearchHeaderModule.decorators = [
|
|
11435
|
+
{ type: NgModule, args: [{
|
|
11436
|
+
imports: [
|
|
11437
|
+
CommonModule,
|
|
11438
|
+
PipeModule,
|
|
11439
|
+
ButtonModule,
|
|
11440
|
+
InputSearchModule,
|
|
11441
|
+
ViewModeButtonsModule
|
|
11442
|
+
],
|
|
11443
|
+
declarations: [
|
|
11444
|
+
TransactionSearchHeaderComponent
|
|
11445
|
+
],
|
|
11446
|
+
exports: [
|
|
11447
|
+
TransactionSearchHeaderComponent
|
|
11448
|
+
]
|
|
11449
|
+
},] }
|
|
11450
|
+
];
|
|
11451
|
+
|
|
11452
|
+
class TransactionSearchSalesOrderTileComponent {
|
|
11171
11453
|
constructor(iconCacheService) {
|
|
11172
11454
|
this.iconCacheService = iconCacheService;
|
|
11173
11455
|
this.icons = Icon;
|
|
@@ -11180,9 +11462,9 @@ class TransactionTileComponent {
|
|
|
11180
11462
|
this.tileClick.emit(event);
|
|
11181
11463
|
}
|
|
11182
11464
|
}
|
|
11183
|
-
|
|
11465
|
+
TransactionSearchSalesOrderTileComponent.decorators = [
|
|
11184
11466
|
{ type: Component, args: [{
|
|
11185
|
-
selector: "co-transaction-tile",
|
|
11467
|
+
selector: "co-transaction-search-sales-order-tile",
|
|
11186
11468
|
template: `
|
|
11187
11469
|
<div class="transaction-tile-wrapper" (click)="onTileClick($event)">
|
|
11188
11470
|
<div class="transaction-tile-body">
|
|
@@ -11199,7 +11481,7 @@ TransactionTileComponent.decorators = [
|
|
|
11199
11481
|
</div>
|
|
11200
11482
|
</div>
|
|
11201
11483
|
<div class="transaction-tile-order-summary">
|
|
11202
|
-
<div class="header"><span [textContent]="
|
|
11484
|
+
<div class="header"><span [textContent]="transaction.totalPriceVat | currency:'EUR'"></span></div> <!--todo: vullen als api aanpassing gedaan is-->
|
|
11203
11485
|
</div>
|
|
11204
11486
|
</div>
|
|
11205
11487
|
<div class="transaction-tile-footer">
|
|
@@ -11232,18 +11514,18 @@ TransactionTileComponent.decorators = [
|
|
|
11232
11514
|
encapsulation: ViewEncapsulation.None
|
|
11233
11515
|
},] }
|
|
11234
11516
|
];
|
|
11235
|
-
|
|
11517
|
+
TransactionSearchSalesOrderTileComponent.ctorParameters = () => [
|
|
11236
11518
|
{ type: IconCacheService }
|
|
11237
11519
|
];
|
|
11238
|
-
|
|
11520
|
+
TransactionSearchSalesOrderTileComponent.propDecorators = {
|
|
11239
11521
|
transaction: [{ type: Input }],
|
|
11240
11522
|
tileClick: [{ type: Output }],
|
|
11241
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-tile",] }]
|
|
11523
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-sales-order-tile",] }]
|
|
11242
11524
|
};
|
|
11243
11525
|
|
|
11244
|
-
class
|
|
11526
|
+
class TransactionSearchSalesOrderTileModule {
|
|
11245
11527
|
}
|
|
11246
|
-
|
|
11528
|
+
TransactionSearchSalesOrderTileModule.decorators = [
|
|
11247
11529
|
{ type: NgModule, args: [{
|
|
11248
11530
|
imports: [
|
|
11249
11531
|
CommonModule,
|
|
@@ -11254,68 +11536,92 @@ TransactionTileModule.decorators = [
|
|
|
11254
11536
|
IconModule,
|
|
11255
11537
|
],
|
|
11256
11538
|
declarations: [
|
|
11257
|
-
|
|
11539
|
+
TransactionSearchSalesOrderTileComponent
|
|
11258
11540
|
],
|
|
11259
11541
|
exports: [
|
|
11260
|
-
|
|
11542
|
+
TransactionSearchSalesOrderTileComponent
|
|
11261
11543
|
]
|
|
11262
11544
|
},] }
|
|
11263
11545
|
];
|
|
11264
11546
|
|
|
11265
11547
|
class TransactionSearchResultComponent {
|
|
11266
|
-
constructor(searchService
|
|
11548
|
+
constructor(searchService) {
|
|
11267
11549
|
this.searchService = searchService;
|
|
11268
|
-
this.iconCacheService = iconCacheService;
|
|
11269
11550
|
this.icon = Icon;
|
|
11270
|
-
this.
|
|
11271
|
-
this.
|
|
11551
|
+
this.contentViewModes = ContentViewMode;
|
|
11552
|
+
this.searchViewModes = SearchViewMode;
|
|
11553
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
11554
|
+
this.filterClick = new EventEmitter();
|
|
11272
11555
|
this.transactionClick = new EventEmitter();
|
|
11273
|
-
this.
|
|
11556
|
+
this.resizeClick = new EventEmitter();
|
|
11557
|
+
this.closeClick = new EventEmitter();
|
|
11558
|
+
this.activeContentViewMode = ContentViewMode.Tiles;
|
|
11274
11559
|
}
|
|
11275
11560
|
showClass() {
|
|
11276
11561
|
return true;
|
|
11277
11562
|
}
|
|
11278
11563
|
ngOnInit() {
|
|
11279
11564
|
}
|
|
11565
|
+
get fullscreen() {
|
|
11566
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
11567
|
+
}
|
|
11280
11568
|
onTransactionClick(transaction) {
|
|
11281
11569
|
this.transactionClick.emit(transaction);
|
|
11282
11570
|
}
|
|
11571
|
+
onResizeClick() {
|
|
11572
|
+
this.activeContentViewMode = this.contentViewModes.Tiles;
|
|
11573
|
+
this.resizeClick.emit();
|
|
11574
|
+
}
|
|
11575
|
+
onCloseClick() {
|
|
11576
|
+
this.closeClick.emit();
|
|
11577
|
+
}
|
|
11578
|
+
onFilterClick() {
|
|
11579
|
+
this.filterClick.emit();
|
|
11580
|
+
}
|
|
11283
11581
|
}
|
|
11284
11582
|
TransactionSearchResultComponent.decorators = [
|
|
11285
11583
|
{ type: Component, args: [{
|
|
11286
11584
|
selector: 'co-transaction-search-result',
|
|
11287
11585
|
template: `
|
|
11288
11586
|
<div class="transaction-search-header-wrapper">
|
|
11289
|
-
<co-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11587
|
+
<co-transaction-search-header
|
|
11588
|
+
[transactionType]="transactionType"
|
|
11589
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
11590
|
+
[activeContentViewMode]="activeContentViewMode"
|
|
11591
|
+
(viewModeChange)="activeContentViewMode = $event"
|
|
11592
|
+
(resizeClick)="onResizeClick()"
|
|
11593
|
+
(filterButtonClick)="onFilterClick()"
|
|
11594
|
+
(closeClick)="onCloseClick()">
|
|
11595
|
+
</co-transaction-search-header>
|
|
11295
11596
|
</div>
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11597
|
+
|
|
11598
|
+
<div class="transaction-search-result-content-tiles-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
11599
|
+
*ngIf="activeContentViewMode === contentViewModes.Tiles">
|
|
11299
11600
|
<div class="transaction-tile" *ngFor="let transaction of searchService.transactions">
|
|
11300
|
-
<co-transaction-tile
|
|
11301
|
-
|
|
11601
|
+
<co-transaction-search-sales-order-tile
|
|
11602
|
+
[transaction]="transaction"
|
|
11603
|
+
(tileClick)="onTransactionClick(transaction)"></co-transaction-search-sales-order-tile>
|
|
11302
11604
|
</div>
|
|
11303
11605
|
</div>
|
|
11304
|
-
<div class="transaction-search-result-content-grid-wrapper" *ngIf="
|
|
11305
|
-
<co-transaction-search-grid
|
|
11306
|
-
|
|
11606
|
+
<div class="transaction-search-result-content-grid-wrapper" *ngIf="activeContentViewMode === contentViewModes.Grid">
|
|
11607
|
+
<co-transaction-search-sales-order-grid
|
|
11608
|
+
[transactions]="searchService.transactions"
|
|
11609
|
+
(transactionClick)="onTransactionClick($event)"></co-transaction-search-sales-order-grid>
|
|
11307
11610
|
</div>
|
|
11308
11611
|
`,
|
|
11309
11612
|
encapsulation: ViewEncapsulation.None
|
|
11310
11613
|
},] }
|
|
11311
11614
|
];
|
|
11312
11615
|
TransactionSearchResultComponent.ctorParameters = () => [
|
|
11313
|
-
{ type: TransactionSearchService }
|
|
11314
|
-
{ type: IconCacheService }
|
|
11616
|
+
{ type: TransactionSearchService }
|
|
11315
11617
|
];
|
|
11316
11618
|
TransactionSearchResultComponent.propDecorators = {
|
|
11317
|
-
|
|
11619
|
+
transactionType: [{ type: Input }],
|
|
11620
|
+
activeSearchViewMode: [{ type: Input }],
|
|
11621
|
+
filterClick: [{ type: Output }],
|
|
11318
11622
|
transactionClick: [{ type: Output }],
|
|
11623
|
+
resizeClick: [{ type: Output }],
|
|
11624
|
+
closeClick: [{ type: Output }],
|
|
11319
11625
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-result",] }]
|
|
11320
11626
|
};
|
|
11321
11627
|
|
|
@@ -11329,8 +11635,10 @@ TransactionSearchResultModule.decorators = [
|
|
|
11329
11635
|
ButtonModule,
|
|
11330
11636
|
ViewModeButtonsModule,
|
|
11331
11637
|
AvatarModule,
|
|
11332
|
-
|
|
11333
|
-
|
|
11638
|
+
TransactionSearchSalesOrderTileModule,
|
|
11639
|
+
TransactionSearchSalesOrderGridModule,
|
|
11640
|
+
PipeModule,
|
|
11641
|
+
TransactionSearchHeaderModule
|
|
11334
11642
|
],
|
|
11335
11643
|
declarations: [
|
|
11336
11644
|
TransactionSearchResultComponent
|
|
@@ -12214,6 +12522,8 @@ class TransactionFilterComponent {
|
|
|
12214
12522
|
this.iconCacheService = iconCacheService;
|
|
12215
12523
|
this.searchService = searchService;
|
|
12216
12524
|
this.icon = Icon;
|
|
12525
|
+
this.searchViewModes = SearchViewMode;
|
|
12526
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
12217
12527
|
this.closeButtonClick = new EventEmitter();
|
|
12218
12528
|
this.resetFilterClick = new EventEmitter();
|
|
12219
12529
|
this.filterCategories = [
|
|
@@ -12287,6 +12597,7 @@ TransactionFilterComponent.propDecorators = {
|
|
|
12287
12597
|
orderFilter: [{ type: ViewChild, args: ['orderFilter', { read: ElementRef },] }],
|
|
12288
12598
|
logisticsFilter: [{ type: ViewChild, args: ['logisticsFilter', { read: ElementRef },] }],
|
|
12289
12599
|
articleFilter: [{ type: ViewChild, args: ['articleFilter', { read: ElementRef },] }],
|
|
12600
|
+
activeSearchViewMode: [{ type: Input }],
|
|
12290
12601
|
closeButtonClick: [{ type: Output }],
|
|
12291
12602
|
resetFilterClick: [{ type: Output }],
|
|
12292
12603
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-filter",] }]
|
|
@@ -12495,5 +12806,5 @@ TransactionLineGridModule.decorators = [
|
|
|
12495
12806
|
* Generated bundle index. Do not edit.
|
|
12496
12807
|
*/
|
|
12497
12808
|
|
|
12498
|
-
export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressSelectModule as ɵba, RelationAddressTileModule as ɵbb, TileModule as ɵbc, TileComponent as ɵbd, RelationAddressTileComponent as ɵbe, RelationAddressSelectComponent as ɵbf, BusinessObjectFactory as ɵbg, StepperModule as ɵbh, StepperComponent as ɵbi, StepperStepComponent as ɵbj, TransactionArticleTextModule as ɵbk, TransactionArticleTextComponent as ɵbl, TransactionArticleTextOverviewModule as ɵbm, TransactionArticleTextOverviewComponent as ɵbn,
|
|
12809
|
+
export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressSelectModule as ɵba, RelationAddressTileModule as ɵbb, TileModule as ɵbc, TileComponent as ɵbd, RelationAddressTileComponent as ɵbe, RelationAddressSelectComponent as ɵbf, BusinessObjectFactory as ɵbg, StepperModule as ɵbh, StepperComponent as ɵbi, StepperStepComponent as ɵbj, TransactionArticleTextModule as ɵbk, TransactionArticleTextComponent as ɵbl, TransactionArticleTextOverviewModule as ɵbm, TransactionArticleTextOverviewComponent as ɵbn, TransactionLineActionButtonsModule as ɵbo, TransactionLineActionButtonsComponent as ɵbp, TransactionImageService as ɵbq, AvatarModule as ɵbr, AvatarComponent as ɵbs, SharedService as ɵbt, SharedConnectorService as ɵbu, DeliveryTypeTileModule as ɵbv, DeliveryTypeTileComponent as ɵbw, PaymentModule as ɵbx, PaymentTileModule as ɵby, PaymentTileComponent as ɵbz, OptionsService as ɵc, PaymentComponent as ɵca, PaymentService as ɵcb, CheckoutOverviewRelationEditComponent as ɵcc, CheckoutOverviewDeliveryEditComponent as ɵcd, CheckoutOverviewDeliveryAddressComponent as ɵce, CheckOutRelationSuggestionsListComponent as ɵcf, CheckOutRelationSuggestionsListItemComponent as ɵcg, CheckoutLoginComponent as ɵch, TransactionHeaderModule$1 as ɵci, TransactionHeaderBlockModule as ɵcj, TransactionHeaderBlockComponent as ɵck, TransactionBaseComponent as ɵcl, TransactionHeaderPaymentModule as ɵcm, TransactionHeaderPaymentComponent as ɵcn, TransactionHeaderComponent$1 as ɵco, TransactionLinesGridModule as ɵcp, TransactionBaseGridModule as ɵcq, TransactionLineSidePanelModule as ɵcr, TransactionLineSidePanelDefaultModule as ɵcs, TransactionLinePriceModule as ɵct, TransactionLinePriceComponent as ɵcu, TransactionLineFieldsBaseComponent as ɵcv, TransactionLinePriceListModule as ɵcw, TransactionLinePriceListComponent as ɵcx, TransactionLineVatModule as ɵcy, TransactionLineVatComponent as ɵcz, DictionaryService as ɵd, TransactionLineQuantityModule as ɵda, TransactionLineQuantityComponent as ɵdb, TransactionLineLineDiscountModule as ɵdc, TransactionLineLineDiscountComponent as ɵdd, TransactionLineDeliveryMethodModule as ɵde, TransactionLineDeliveryMethodComponent as ɵdf, TransactionLineDeliveryDateModule as ɵdg, TransactionLineDeliveryDateComponent as ɵdh, TransactionLineReferenceModule as ɵdi, TransactionLineReferenceComponent as ɵdj, TransactionLineCommissionCodeModule as ɵdk, TransactionLineCommissionCodeComponent as ɵdl, TransactionLineWarehouseModule as ɵdm, TransactionLineWarehouseComponent as ɵdn, TransactionLineDiscountAmountModule as ɵdo, TransactionLineDiscountAmountComponent as ɵdp, TransactionLineQuantumDiscountModule as ɵdq, TransactionLineQuantumDiscountComponent as ɵdr, TransactionLineSpecialDiscountModule as ɵds, TransactionLineSpecialDiscountComponent as ɵdt, TransactionLineSidePanelDefaultComponent as ɵdu, TransactionReceivingGoodsHistoryModule as ɵdv, TransactionHistoryGridModule as ɵdw, TransactionHistoryGridStatusModule as ɵdx, TransactionHistoryGridStatusComponent as ɵdy, TransactionHistoryGridComponent as ɵdz, TransactionConnectorService as ɵe, TransactionReceivingGoodsHistoryComponent as ɵea, TransactionReceivingGoodsDetailsModule as ɵeb, TransactionReceivingGoodsDetailsComponent as ɵec, ArticleService as ɵed, TransactionButtonBarModule as ɵee, TransactionButtonBarComponent as ɵef, TransactionMappingService as ɵeg, TransactionButtonBarButtonComponent as ɵeh, TransactionConfirmationHistoryModule as ɵei, TransactionConfirmationHistoryComponent as ɵej, TransactionLineSidePanelPurchaseModule as ɵek, TransactionLineSidePanelPurchaseComponent as ɵel, TransactionEventService as ɵem, TransactionLineSidePanelComponent as ɵen, TransactionBaseGridComponent as ɵeo, TransactionGridBaseComponent as ɵep, TransactionLinesGridComponent as ɵeq, DiscountModule as ɵer, DiscountComponent as ɵes, TransactionQuickAccessOverviewModule as ɵet, TransactionQuickAccessOverviewComponent as ɵeu, TransactionOrderConfirmationGridModule as ɵev, TransactionOrderConfirmationGridComponent as ɵew, TransactionReceivedGoodsGridModule as ɵex, TransactionReceivedGoodsGridComponent as ɵey, ViewModeButtonsModule as ɵez, CollectionCacheService as ɵf, ViewModeButtonsComponent as ɵfa, TransactionGridModule as ɵfb, TransactionGridComponent as ɵfc, TransactionSearchService as ɵfd, TransactionSearchResultModule as ɵfe, TransactionSearchSalesOrderTileModule as ɵff, TransactionSearchSalesOrderTileComponent as ɵfg, TransactionSearchSalesOrderGridModule as ɵfh, TransactionSearchSalesOrderGridComponent as ɵfi, TransactionSearchHeaderModule as ɵfj, TransactionSearchHeaderComponent as ɵfk, TransactionSearchResultComponent as ɵfl, TransactionFilterModule as ɵfm, TransactionFilterCategoriesModule as ɵfn, TransactionFilterCategoriesComponent as ɵfo, TransactionFilterContentOrderModule as ɵfp, TransactionFilterContentOrderComponent as ɵfq, FilterRequestService as ɵfr, TransactionFilterContentLogisticsModule as ɵfs, TransactionFilterHistoricStateModule as ɵft, TransactionFilterHistoricStateComponent as ɵfu, TransactionFilterContentLogisticsComponent as ɵfv, TransactionFilterContentArticleModule as ɵfw, TransactionFilterContentArticleComponent as ɵfx, TransactionFilterComponent as ɵfy, ArticleConnectorService as ɵg, CoreModule as ɵh, ConfirmationDialogModule as ɵi, PipeModule as ɵj, AppendPipe as ɵk, DeliveryTimePipe as ɵl, DateDurationPipe as ɵm, LocalizePipe as ɵn, CoCurrencyPipe as ɵo, SafeStylePipe as ɵp, SafeHtmlPipe as ɵq, ConfirmationDialogComponent as ɵr, DialogBaseComponent as ɵs, ImageDisplayComponent as ɵt, IconComponent as ɵu, IconCacheService as ɵv, CustomerGroupsComponent as ɵw, StockStatusIndicatorComponent as ɵx, RelationAddressModule as ɵy, RelationAddressComponent as ɵz };
|
|
12499
12810
|
//# sourceMappingURL=colijnit-transaction.js.map
|