From 3203d3420067b6d250e1e4a55ca60b9034e18f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Thu, 2 Apr 2020 01:19:36 +0200 Subject: [PATCH] refactor(buttons): reuse code + minor improvements (#561) --- .../select-conditions.component.html | 9 +-- .../select-conditions.module.ts | 2 + .../creature-loot-template.module.ts | 2 + .../creature-questitem.component.html | 13 +--- .../creature-questitem.module.ts | 2 + .../creature-spawn.component.html | 13 +--- .../creature-spawn/creature-spawn.module.ts | 2 + .../npc-trainer/npc-trainer.component.html | 13 +--- .../npc-trainer/npc-trainer.module.ts | 2 + .../npc-vendor/npc-vendor.component.html | 13 +--- .../creature/npc-vendor/npc-vendor.module.ts | 2 + .../pickpocketing-loot-template.module.ts | 2 + ...sai-creature.component.integration.spec.ts | 2 +- .../sai-creature/sai-creature.module.ts | 2 + .../select-creature.component.html | 7 +- .../select-creature/select-creature.module.ts | 2 + .../skinning-loot-template.module.ts | 2 + .../gameobject-loot-template.component.html | 13 +--- .../gameobject-loot-template.module.ts | 2 + .../gameobject-questitem.component.html | 13 +--- .../gameobject-questitem.module.ts | 2 + .../gameobject-spawn.component.html | 13 +--- .../gameobject-spawn.module.ts | 2 + ...i-gameobject.component.integration.spec.ts | 2 +- .../sai-gameobject/sai-gameobject.module.ts | 4 +- .../select-gameobject.component.html | 7 +- .../select-gameobject.module.ts | 2 + .../gossip-menu-option.component.html | 13 +--- .../gossip-menu-option.module.ts | 2 + .../gossip-menu/gossip-menu.component.html | 13 +--- .../gossip/gossip-menu/gossip-menu.module.ts | 2 + .../select-gossip.component.html | 7 +- .../select-gossip/select-gossip.module.ts | 2 + .../disenchant-loot-template.module.ts | 2 + .../item-enchantment-template.component.html | 13 +--- .../item-enchantment-template.module.ts | 2 + .../item-loot-template.component.html | 13 +--- .../item-loot-template.module.ts | 2 + .../milling-loot-template.integration.spec.ts | 3 +- .../milling-loot-template.module.ts | 2 + .../prospecting-loot-template.module.ts | 2 + .../select-item/select-item.component.html | 7 +- .../item/select-item/select-item.module.ts | 2 + .../creature-questender.component.html | 13 +--- .../creature-questender.module.ts | 2 + .../creature-queststarter.component.html | 13 +--- .../creature-queststarter.module.ts | 2 + .../gameobject-questender.component.html | 13 +--- .../gameobject-questender.module.ts | 2 + .../gameobject-queststarter.component.html | 13 +--- .../gameobject-queststarter.module.ts | 2 + .../select-quest/select-quest.component.html | 7 +- .../quest/select-quest/select-quest.module.ts | 2 + .../sai-search-existing.component.html | 7 +- .../sai-search-existing.module.ts | 2 + .../sql-editor/sql-editor.component.html | 8 +- .../connection-window.component.scss | 1 + .../sidebar/sidebar.component.html | 12 ++- .../loot-template.component.html | 13 +--- .../modules/create/create.component.html | 2 +- .../editor-buttons.component.html | 12 +++ .../editor-buttons.component.spec.ts | 76 +++++++++++++++++++ .../editor-buttons.component.ts | 11 +++ .../editor-buttons/editor-buttons.module.ts | 16 ++++ .../query-output/query-output.component.html | 8 +- .../sai-editor/sai-editor.component.html | 13 +--- .../modules/sai-editor/sai-editor.module.ts | 2 + .../search-button.component.html | 6 ++ .../search-button.component.spec.ts | 63 +++++++++++++++ .../search-button/search-button.component.ts | 12 +++ .../search-button/search-buttons.module.ts | 16 ++++ .../area-selector-modal.component.html | 7 +- .../area-selector/area-selector.module.ts | 2 + .../creature-selector-modal.component.html | 7 +- .../creature-selector.module.ts | 2 + .../faction-selector-modal.component.html | 7 +- .../faction-selector.module.ts | 2 + .../gameobject-selector-modal.component.html | 7 +- .../gameobject-selector.module.ts | 2 + .../holiday-selector-modal.component.html | 7 +- .../holiday-selector.module.ts | 2 + ...-enchantment-selector-modal.component.html | 7 +- .../item-enchantment-selector.module.ts | 2 + ...xtended-cost-selector-modal.component.html | 7 +- .../item-extended-cost-selector.module.ts | 2 + ...mit-category-selector-modal.component.html | 7 +- .../item-limit-category-selector.module.ts | 2 + .../item-selector-modal.component.html | 7 +- .../item-selector/item-selector.module.ts | 2 + .../language-selector-modal.component.html | 7 +- .../language-selector.module.ts | 2 + .../map-selector-modal.component.html | 7 +- .../map-selector/map-selector.module.ts | 2 + .../quest-selector-modal.component.html | 7 +- .../quest-selector/quest-selector.module.ts | 2 + .../skill-selector-modal.component.html | 7 +- .../skill-selector/skill-selector.module.ts | 2 + .../spell-selector-modal.component.html | 7 +- .../spell-selector/spell-selector.module.ts | 2 + 99 files changed, 369 insertions(+), 343 deletions(-) create mode 100644 src/app/shared/modules/editor-buttons/editor-buttons.component.html create mode 100644 src/app/shared/modules/editor-buttons/editor-buttons.component.spec.ts create mode 100644 src/app/shared/modules/editor-buttons/editor-buttons.component.ts create mode 100644 src/app/shared/modules/editor-buttons/editor-buttons.module.ts create mode 100644 src/app/shared/modules/search-button/search-button.component.html create mode 100644 src/app/shared/modules/search-button/search-button.component.spec.ts create mode 100644 src/app/shared/modules/search-button/search-button.component.ts create mode 100644 src/app/shared/modules/search-button/search-buttons.module.ts diff --git a/src/app/features/conditions/select-conditions/select-conditions.component.html b/src/app/features/conditions/select-conditions/select-conditions.component.html index fda2aa2ef1..f353e5047a 100644 --- a/src/app/features/conditions/select-conditions/select-conditions.component.html +++ b/src/app/features/conditions/select-conditions/select-conditions.component.html @@ -35,14 +35,9 @@
+ - - - +
- - - +
- - - +
- - - + {} -describe('SaiEditorComponent integration tests', () => { +describe('SaiCreatureComponent integration tests', () => { let component: SaiCreatureComponent; let fixture: ComponentFixture; let handlerService: SaiCreatureHandlerService; diff --git a/src/app/features/creature/sai-creature/sai-creature.module.ts b/src/app/features/creature/sai-creature/sai-creature.module.ts index 3bc3d7c16e..15d936236d 100644 --- a/src/app/features/creature/sai-creature/sai-creature.module.ts +++ b/src/app/features/creature/sai-creature/sai-creature.module.ts @@ -13,6 +13,7 @@ import { SingleValueSelectorModule } from '@keira-shared/modules/selectors/singl import { SaiCreatureComponent } from './sai-creature.component'; import { SaiEditorModule } from '@keira-shared/modules/sai-editor/sai-editor.module'; import { SaiCreatureEditorService } from './sai-creature-editor.service'; +import { EditorButtonsModule } from '@keira-shared/modules/editor-buttons/editor-buttons.module'; @NgModule({ declarations: [ @@ -29,6 +30,7 @@ import { SaiCreatureEditorService } from './sai-creature-editor.service'; FlagsSelectorModule, SingleValueSelectorModule, SaiEditorModule, + EditorButtonsModule, ], exports: [ SaiCreatureComponent, diff --git a/src/app/features/creature/select-creature/select-creature.component.html b/src/app/features/creature/select-creature/select-creature.component.html index 58871abae0..fd39fc317f 100644 --- a/src/app/features/creature/select-creature/select-creature.component.html +++ b/src/app/features/creature/select-creature/select-creature.component.html @@ -31,12 +31,7 @@
- +
diff --git a/src/app/features/creature/select-creature/select-creature.module.ts b/src/app/features/creature/select-creature/select-creature.module.ts index 342b02c644..98f8aa959e 100644 --- a/src/app/features/creature/select-creature/select-creature.module.ts +++ b/src/app/features/creature/select-creature/select-creature.module.ts @@ -10,6 +10,7 @@ import { SelectCreatureComponent } from './select-creature.component'; import { CreateModule } from '@keira-shared/modules/create/create.module'; import { highlightOptions } from '@keira-config/highlight.config'; import { SelectCreatureService } from './select-creature.service'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ declarations: [ @@ -23,6 +24,7 @@ import { SelectCreatureService } from './select-creature.service'; CreateModule, HighlightModule.forRoot(highlightOptions), NgxDatatableModule, + SearchButtonsModule, ], exports: [ SelectCreatureComponent, diff --git a/src/app/features/creature/skinning-loot-template/skinning-loot-template.module.ts b/src/app/features/creature/skinning-loot-template/skinning-loot-template.module.ts index eb1ce55a67..0650488bab 100644 --- a/src/app/features/creature/skinning-loot-template/skinning-loot-template.module.ts +++ b/src/app/features/creature/skinning-loot-template/skinning-loot-template.module.ts @@ -13,6 +13,7 @@ import { ItemSelectorModule } from '@keira-shared/modules/selectors/item-selecto import { FlagsSelectorModule } from '@keira-shared/modules/selectors/flags-selector/flags-selector.module'; import { SkinningLootTemplateService } from './skinning-loot-template.service'; import { IconModule } from '@keira-shared/modules/icon/icon.module'; +import { EditorButtonsModule } from '@keira-shared/modules/editor-buttons/editor-buttons.module'; @NgModule({ declarations: [ @@ -29,6 +30,7 @@ import { IconModule } from '@keira-shared/modules/icon/icon.module'; ItemSelectorModule, FlagsSelectorModule, IconModule, + EditorButtonsModule, ], exports: [ SkinningLootTemplateComponent, diff --git a/src/app/features/gameobject/gameobject-loot-template/gameobject-loot-template.component.html b/src/app/features/gameobject/gameobject-loot-template/gameobject-loot-template.component.html index 52c1dc1675..10836a727c 100644 --- a/src/app/features/gameobject/gameobject-loot-template/gameobject-loot-template.component.html +++ b/src/app/features/gameobject/gameobject-loot-template/gameobject-loot-template.component.html @@ -116,18 +116,7 @@
- - - +
- - - +
- - - + {} -describe('SaiEditorComponent integration tests', () => { +describe('SaiGameobjectComponent integration tests', () => { let component: SaiGameobjectComponent; let fixture: ComponentFixture; let handlerService: SaiGameobjectHandlerService; diff --git a/src/app/features/gameobject/sai-gameobject/sai-gameobject.module.ts b/src/app/features/gameobject/sai-gameobject/sai-gameobject.module.ts index 14035ab40a..fec37d4186 100644 --- a/src/app/features/gameobject/sai-gameobject/sai-gameobject.module.ts +++ b/src/app/features/gameobject/sai-gameobject/sai-gameobject.module.ts @@ -13,6 +13,7 @@ import { SingleValueSelectorModule } from '@keira-shared/modules/selectors/singl import { SaiGameobjectComponent } from './sai-gameobject.component'; import { SaiEditorModule } from '@keira-shared/modules/sai-editor/sai-editor.module'; import { SaiGameobjectEditorService } from './sai-gameobject-editor.service'; +import { EditorButtonsModule } from '@keira-shared/modules/editor-buttons/editor-buttons.module'; @NgModule({ declarations: [ @@ -28,7 +29,8 @@ import { SaiGameobjectEditorService } from './sai-gameobject-editor.service'; NgxDatatableModule, FlagsSelectorModule, SingleValueSelectorModule, - SaiEditorModule + SaiEditorModule, + EditorButtonsModule, ], exports: [ SaiGameobjectComponent, diff --git a/src/app/features/gameobject/select-gameobject/select-gameobject.component.html b/src/app/features/gameobject/select-gameobject/select-gameobject.component.html index 07709d9a1c..d084a96989 100644 --- a/src/app/features/gameobject/select-gameobject/select-gameobject.component.html +++ b/src/app/features/gameobject/select-gameobject/select-gameobject.component.html @@ -27,12 +27,7 @@
- +
diff --git a/src/app/features/gameobject/select-gameobject/select-gameobject.module.ts b/src/app/features/gameobject/select-gameobject/select-gameobject.module.ts index 50df930b08..da52baf1e7 100644 --- a/src/app/features/gameobject/select-gameobject/select-gameobject.module.ts +++ b/src/app/features/gameobject/select-gameobject/select-gameobject.module.ts @@ -10,6 +10,7 @@ import { SelectGameobjectComponent } from './select-gameobject.component'; import { CreateModule } from '@keira-shared/modules/create/create.module'; import { highlightOptions } from '@keira-config/highlight.config'; import { SelectGameobjectService } from './select-gameobject.service'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ declarations: [ @@ -23,6 +24,7 @@ import { SelectGameobjectService } from './select-gameobject.service'; CreateModule, HighlightModule.forRoot(highlightOptions), NgxDatatableModule, + SearchButtonsModule, ], exports: [ SelectGameobjectComponent, diff --git a/src/app/features/gossip/gossip-menu-option/gossip-menu-option.component.html b/src/app/features/gossip/gossip-menu-option/gossip-menu-option.component.html index ab6f7994ab..016a4e66e2 100644 --- a/src/app/features/gossip/gossip-menu-option/gossip-menu-option.component.html +++ b/src/app/features/gossip/gossip-menu-option/gossip-menu-option.component.html @@ -134,18 +134,7 @@
- - - +
- - - +
- +
diff --git a/src/app/features/gossip/select-gossip/select-gossip.module.ts b/src/app/features/gossip/select-gossip/select-gossip.module.ts index 62764f4b64..2c842f7d40 100644 --- a/src/app/features/gossip/select-gossip/select-gossip.module.ts +++ b/src/app/features/gossip/select-gossip/select-gossip.module.ts @@ -10,6 +10,7 @@ import { SelectGossipComponent } from './select-gossip.component'; import { CreateModule } from '@keira-shared/modules/create/create.module'; import { highlightOptions } from '@keira-config/highlight.config'; import { SelectGossipService } from './select-gossip.service'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ declarations: [ @@ -23,6 +24,7 @@ import { SelectGossipService } from './select-gossip.service'; CreateModule, HighlightModule.forRoot(highlightOptions), NgxDatatableModule, + SearchButtonsModule, ], exports: [ SelectGossipComponent, diff --git a/src/app/features/item/disenchant-loot-template/disenchant-loot-template.module.ts b/src/app/features/item/disenchant-loot-template/disenchant-loot-template.module.ts index 31f0a27d72..da9434d1a8 100644 --- a/src/app/features/item/disenchant-loot-template/disenchant-loot-template.module.ts +++ b/src/app/features/item/disenchant-loot-template/disenchant-loot-template.module.ts @@ -13,6 +13,7 @@ import { FlagsSelectorModule } from '@keira-shared/modules/selectors/flags-selec import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { DisenchantLootTemplateService } from './disenchant-loot-template.service'; import { IconModule } from '@keira-shared/modules/icon/icon.module'; +import { EditorButtonsModule } from '@keira-shared/modules/editor-buttons/editor-buttons.module'; @NgModule({ declarations: [ @@ -29,6 +30,7 @@ import { IconModule } from '@keira-shared/modules/icon/icon.module'; ItemSelectorModule, FlagsSelectorModule, IconModule, + EditorButtonsModule, ], exports: [ DisenchantLootTemplateComponent, diff --git a/src/app/features/item/item-enchantment/item-enchantment-template.component.html b/src/app/features/item/item-enchantment/item-enchantment-template.component.html index aaa8ee644d..cb847d6735 100644 --- a/src/app/features/item/item-enchantment/item-enchantment-template.component.html +++ b/src/app/features/item/item-enchantment/item-enchantment-template.component.html @@ -43,18 +43,7 @@
- - - +
- - - + { expect(page.getEditorTableRowsCount()).toBe(3); }); - it('deleting rows should correctly work', () => { + it('deleting rows should correctly work', async () => { + await page.whenStable(); page.deleteRow(1); expect(page.getEditorTableRowsCount()).toBe(2); page.expectDiffQueryToContain( diff --git a/src/app/features/item/milling-loot-template/milling-loot-template.module.ts b/src/app/features/item/milling-loot-template/milling-loot-template.module.ts index d634749d7b..74905b3047 100644 --- a/src/app/features/item/milling-loot-template/milling-loot-template.module.ts +++ b/src/app/features/item/milling-loot-template/milling-loot-template.module.ts @@ -13,6 +13,7 @@ import { FlagsSelectorModule } from '@keira-shared/modules/selectors/flags-selec import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { MillingLootTemplateService } from './milling-loot-template.service'; import { IconModule } from '@keira-shared/modules/icon/icon.module'; +import { EditorButtonsModule } from '@keira-shared/modules/editor-buttons/editor-buttons.module'; @NgModule({ declarations: [ @@ -29,6 +30,7 @@ import { IconModule } from '@keira-shared/modules/icon/icon.module'; FlagsSelectorModule, NgxDatatableModule, IconModule, + EditorButtonsModule, ], exports: [ MillingLootTemplateComponent, diff --git a/src/app/features/item/prospecting-loot-template/prospecting-loot-template.module.ts b/src/app/features/item/prospecting-loot-template/prospecting-loot-template.module.ts index 5109e983b8..50f3932dd5 100644 --- a/src/app/features/item/prospecting-loot-template/prospecting-loot-template.module.ts +++ b/src/app/features/item/prospecting-loot-template/prospecting-loot-template.module.ts @@ -13,6 +13,7 @@ import { FlagsSelectorModule } from '@keira-shared/modules/selectors/flags-selec import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ProspectingLootTemplateService } from './prospecting-loot-template.service'; import { IconModule } from '@keira-shared/modules/icon/icon.module'; +import { EditorButtonsModule } from '@keira-shared/modules/editor-buttons/editor-buttons.module'; @NgModule({ declarations: [ @@ -29,6 +30,7 @@ import { IconModule } from '@keira-shared/modules/icon/icon.module'; FlagsSelectorModule, NgxDatatableModule, IconModule, + EditorButtonsModule, ], exports: [ ProspectingLootTemplateComponent, diff --git a/src/app/features/item/select-item/select-item.component.html b/src/app/features/item/select-item/select-item.component.html index 7374390609..5c341be5d8 100644 --- a/src/app/features/item/select-item/select-item.component.html +++ b/src/app/features/item/select-item/select-item.component.html @@ -27,12 +27,7 @@
- +
diff --git a/src/app/features/item/select-item/select-item.module.ts b/src/app/features/item/select-item/select-item.module.ts index 8c93fac759..49717efa6b 100644 --- a/src/app/features/item/select-item/select-item.module.ts +++ b/src/app/features/item/select-item/select-item.module.ts @@ -11,6 +11,7 @@ import { CreateModule } from '@keira-shared/modules/create/create.module'; import { highlightOptions } from '@keira-config/highlight.config'; import { SelectItemService } from './select-item.service'; import { IconModule } from '@keira-shared/modules/icon/icon.module'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ declarations: [ @@ -25,6 +26,7 @@ import { IconModule } from '@keira-shared/modules/icon/icon.module'; HighlightModule.forRoot(highlightOptions), NgxDatatableModule, IconModule, + SearchButtonsModule, ], exports: [ SelectItemComponent, diff --git a/src/app/features/quest/creature-questender/creature-questender.component.html b/src/app/features/quest/creature-questender/creature-questender.component.html index 812d216ba6..cf9a204f6f 100644 --- a/src/app/features/quest/creature-questender/creature-questender.component.html +++ b/src/app/features/quest/creature-questender/creature-questender.component.html @@ -46,18 +46,7 @@
- - - +
- - - +
- - - +
- - - +
- +
diff --git a/src/app/features/quest/select-quest/select-quest.module.ts b/src/app/features/quest/select-quest/select-quest.module.ts index 85d7f1b488..f73fbb7152 100644 --- a/src/app/features/quest/select-quest/select-quest.module.ts +++ b/src/app/features/quest/select-quest/select-quest.module.ts @@ -10,6 +10,7 @@ import { SelectQuestComponent } from './select-quest.component'; import { CreateModule } from '@keira-shared/modules/create/create.module'; import { highlightOptions } from '@keira-config/highlight.config'; import { SelectQuestService } from './select-quest.service'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ declarations: [ @@ -23,6 +24,7 @@ import { SelectQuestService } from './select-quest.service'; CreateModule, HighlightModule.forRoot(highlightOptions), NgxDatatableModule, + SearchButtonsModule, ], exports: [ SelectQuestComponent, diff --git a/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.component.html b/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.component.html index f2a76b0c50..9fe6f494e8 100644 --- a/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.component.html +++ b/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.component.html @@ -29,12 +29,7 @@
- +
diff --git a/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.module.ts b/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.module.ts index d95dcf80a3..6fbf0a7c0d 100644 --- a/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.module.ts +++ b/src/app/features/smart-scripts/sai-search-existing/sai-search-existing.module.ts @@ -8,6 +8,7 @@ import { SaiSearchExistingComponent } from './sai-search-existing.component'; import { TopBarModule } from '@keira-shared/modules/top-bar/top-bar.module'; import { QueryOutputModule } from '@keira-shared/modules/query-output/query-output.module'; import { highlightOptions } from '@keira-config/highlight.config'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ declarations: [SaiSearchExistingComponent], @@ -18,6 +19,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; QueryOutputModule, HighlightModule.forRoot(highlightOptions), NgxDatatableModule, + SearchButtonsModule, ], exports: [SaiSearchExistingComponent], }) diff --git a/src/app/features/sql-editor/sql-editor.component.html b/src/app/features/sql-editor/sql-editor.component.html index 69f8da7ddc..f72e75c4f6 100644 --- a/src/app/features/sql-editor/sql-editor.component.html +++ b/src/app/features/sql-editor/sql-editor.component.html @@ -9,8 +9,12 @@
- - + +
diff --git a/src/app/shared/modules/selectors/creature-selector/creature-selector.module.ts b/src/app/shared/modules/selectors/creature-selector/creature-selector.module.ts index 64a909d924..e7b9963ce1 100644 --- a/src/app/shared/modules/selectors/creature-selector/creature-selector.module.ts +++ b/src/app/shared/modules/selectors/creature-selector/creature-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ CreatureSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/faction-selector/faction-selector-modal.component.html b/src/app/shared/modules/selectors/faction-selector/faction-selector-modal.component.html index 54f1d0e3a1..e8610ecbbf 100644 --- a/src/app/shared/modules/selectors/faction-selector/faction-selector-modal.component.html +++ b/src/app/shared/modules/selectors/faction-selector/faction-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/faction-selector/faction-selector.module.ts b/src/app/shared/modules/selectors/faction-selector/faction-selector.module.ts index c06127acf8..33c67ff396 100644 --- a/src/app/shared/modules/selectors/faction-selector/faction-selector.module.ts +++ b/src/app/shared/modules/selectors/faction-selector/faction-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ FactionSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector-modal.component.html b/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector-modal.component.html index d23c837fbb..6480bedf01 100644 --- a/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector-modal.component.html +++ b/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector.module.ts b/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector.module.ts index adfd1e8159..a6e515f067 100644 --- a/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector.module.ts +++ b/src/app/shared/modules/selectors/gameobject-selector/gameobject-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ GameobjectSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/holiday-selector/holiday-selector-modal.component.html b/src/app/shared/modules/selectors/holiday-selector/holiday-selector-modal.component.html index 87c62a0823..a97b01d613 100644 --- a/src/app/shared/modules/selectors/holiday-selector/holiday-selector-modal.component.html +++ b/src/app/shared/modules/selectors/holiday-selector/holiday-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/holiday-selector/holiday-selector.module.ts b/src/app/shared/modules/selectors/holiday-selector/holiday-selector.module.ts index 7b949d861a..0bf285468e 100644 --- a/src/app/shared/modules/selectors/holiday-selector/holiday-selector.module.ts +++ b/src/app/shared/modules/selectors/holiday-selector/holiday-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ HolidaySelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector-modal.component.html b/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector-modal.component.html index c9c34f6972..a5ecef08eb 100644 --- a/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector-modal.component.html +++ b/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector-modal.component.html @@ -19,12 +19,7 @@
- +
diff --git a/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector.module.ts b/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector.module.ts index aaf0cd0799..95ed618bb7 100644 --- a/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector.module.ts +++ b/src/app/shared/modules/selectors/item-enchantment-selector/item-enchantment-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ ItemEnchantmentSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector-modal.component.html b/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector-modal.component.html index 37ebfe7844..dd5dd2acb7 100644 --- a/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector-modal.component.html +++ b/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector-modal.component.html @@ -40,12 +40,7 @@
- +
diff --git a/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector.module.ts b/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector.module.ts index 67fb5d0d1f..62d24b81db 100644 --- a/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector.module.ts +++ b/src/app/shared/modules/selectors/item-extended-cost-selector/item-extended-cost-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ ItemExtendedCostSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector-modal.component.html b/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector-modal.component.html index f47bc786cb..3dc383889c 100644 --- a/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector-modal.component.html +++ b/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector-modal.component.html @@ -22,12 +22,7 @@
- +
diff --git a/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector.module.ts b/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector.module.ts index 9ad89c1581..79d9b296eb 100644 --- a/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector.module.ts +++ b/src/app/shared/modules/selectors/item-limit-category-selector/item-limit-category-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ ItemLimitCategorySelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/item-selector/item-selector-modal.component.html b/src/app/shared/modules/selectors/item-selector/item-selector-modal.component.html index 31049aae2a..bfdc197c50 100644 --- a/src/app/shared/modules/selectors/item-selector/item-selector-modal.component.html +++ b/src/app/shared/modules/selectors/item-selector/item-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/item-selector/item-selector.module.ts b/src/app/shared/modules/selectors/item-selector/item-selector.module.ts index b483051b4f..e1e6de10b4 100644 --- a/src/app/shared/modules/selectors/item-selector/item-selector.module.ts +++ b/src/app/shared/modules/selectors/item-selector/item-selector.module.ts @@ -9,6 +9,7 @@ import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; import { IconModule } from '@keira-shared/modules/icon/icon.module'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -25,6 +26,7 @@ import { IconModule } from '@keira-shared/modules/icon/icon.module'; ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), IconModule, + SearchButtonsModule, ], exports: [ ItemSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/language-selector/language-selector-modal.component.html b/src/app/shared/modules/selectors/language-selector/language-selector-modal.component.html index 11a47eb226..b2261a2160 100644 --- a/src/app/shared/modules/selectors/language-selector/language-selector-modal.component.html +++ b/src/app/shared/modules/selectors/language-selector/language-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/language-selector/language-selector.module.ts b/src/app/shared/modules/selectors/language-selector/language-selector.module.ts index a6c17e6891..4b92cff705 100644 --- a/src/app/shared/modules/selectors/language-selector/language-selector.module.ts +++ b/src/app/shared/modules/selectors/language-selector/language-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ LanguageSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/map-selector/map-selector-modal.component.html b/src/app/shared/modules/selectors/map-selector/map-selector-modal.component.html index 0cf16ffb29..ba12ff5260 100644 --- a/src/app/shared/modules/selectors/map-selector/map-selector-modal.component.html +++ b/src/app/shared/modules/selectors/map-selector/map-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/map-selector/map-selector.module.ts b/src/app/shared/modules/selectors/map-selector/map-selector.module.ts index 9cf675f24d..9067dd5ce3 100644 --- a/src/app/shared/modules/selectors/map-selector/map-selector.module.ts +++ b/src/app/shared/modules/selectors/map-selector/map-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ MapSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/quest-selector/quest-selector-modal.component.html b/src/app/shared/modules/selectors/quest-selector/quest-selector-modal.component.html index 1434496fc8..e647fc7b18 100644 --- a/src/app/shared/modules/selectors/quest-selector/quest-selector-modal.component.html +++ b/src/app/shared/modules/selectors/quest-selector/quest-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/quest-selector/quest-selector.module.ts b/src/app/shared/modules/selectors/quest-selector/quest-selector.module.ts index 5fbbcda72d..01be807724 100644 --- a/src/app/shared/modules/selectors/quest-selector/quest-selector.module.ts +++ b/src/app/shared/modules/selectors/quest-selector/quest-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ QuestSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/skill-selector/skill-selector-modal.component.html b/src/app/shared/modules/selectors/skill-selector/skill-selector-modal.component.html index a53081bff9..f42f3d8f36 100644 --- a/src/app/shared/modules/selectors/skill-selector/skill-selector-modal.component.html +++ b/src/app/shared/modules/selectors/skill-selector/skill-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/skill-selector/skill-selector.module.ts b/src/app/shared/modules/selectors/skill-selector/skill-selector.module.ts index f31ffa793e..b251a20cab 100644 --- a/src/app/shared/modules/selectors/skill-selector/skill-selector.module.ts +++ b/src/app/shared/modules/selectors/skill-selector/skill-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ SkillSelectorBtnComponent, diff --git a/src/app/shared/modules/selectors/spell-selector/spell-selector-modal.component.html b/src/app/shared/modules/selectors/spell-selector/spell-selector-modal.component.html index 0f9ec5a6e8..3101c1970b 100644 --- a/src/app/shared/modules/selectors/spell-selector/spell-selector-modal.component.html +++ b/src/app/shared/modules/selectors/spell-selector/spell-selector-modal.component.html @@ -16,12 +16,7 @@
- +
diff --git a/src/app/shared/modules/selectors/spell-selector/spell-selector.module.ts b/src/app/shared/modules/selectors/spell-selector/spell-selector.module.ts index 9e6e3786ab..8399981fa2 100644 --- a/src/app/shared/modules/selectors/spell-selector/spell-selector.module.ts +++ b/src/app/shared/modules/selectors/spell-selector/spell-selector.module.ts @@ -8,6 +8,7 @@ import { highlightOptions } from '@keira-config/highlight.config'; import { HighlightModule } from 'ngx-highlightjs'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { ModalModule } from 'ngx-bootstrap'; +import { SearchButtonsModule } from '@keira-shared/modules/search-button/search-buttons.module'; @NgModule({ entryComponents: [ @@ -23,6 +24,7 @@ import { ModalModule } from 'ngx-bootstrap'; NgxDatatableModule, ModalModule.forRoot(), HighlightModule.forRoot(highlightOptions), + SearchButtonsModule, ], exports: [ SpellSelectorBtnComponent,