@kirbydesign/designsystem 7.0.1 → 7.1.0
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/esm2020/lib/animation/kirby-animation.mjs +2 -1
- package/esm2020/lib/components/accordion/accordion-item.component.mjs +3 -3
- package/esm2020/lib/components/app/app.component.mjs +2 -2
- package/esm2020/lib/components/button/button.component.mjs +1 -1
- package/esm2020/lib/components/calendar/calendar.component.mjs +2 -2
- package/esm2020/lib/components/card/card-footer/card-footer.component.mjs +2 -4
- package/esm2020/lib/components/charts/index.mjs +2 -2
- package/esm2020/lib/components/charts/shared/chart-config-service/chart-config.service.mjs +1 -1
- package/esm2020/lib/components/charts/shared/chart-js-service/chartjs-plugin-marker/chartjs-plugin-marker.mjs +27 -27
- package/esm2020/lib/components/charts/shared/charts.types.mjs +1 -1
- package/esm2020/lib/components/form-field/directives/decimal-mask/decimal-mask.directive.mjs +2 -2
- package/esm2020/lib/components/form-field/input/input.component.mjs +1 -1
- package/esm2020/lib/components/form-field/textarea/textarea.component.mjs +2 -2
- package/esm2020/lib/components/grid/breakpoint-helper.service.mjs +1 -1
- package/esm2020/lib/components/grid/grid.component.mjs +7 -9
- package/esm2020/lib/components/icon/icon.component.mjs +1 -1
- package/esm2020/lib/components/icon/kirby-icon-settings.mjs +6 -2
- package/esm2020/lib/components/item/label/label.component.mjs +2 -2
- package/esm2020/lib/components/list/helpers/list-helper.mjs +63 -1
- package/esm2020/lib/components/list/index.mjs +1 -2
- package/esm2020/lib/components/list/list-item/list-item.component.mjs +2 -2
- package/esm2020/lib/components/list/list-section-header/list-section-header.component.mjs +2 -4
- package/esm2020/lib/components/list/list-swipe-action.type.mjs +1 -1
- package/esm2020/lib/components/list/list.component.mjs +36 -18
- package/esm2020/lib/components/modal/alert/alert.component.mjs +1 -1
- package/esm2020/lib/components/modal/modal-wrapper/compact/modal-compact-wrapper.component.mjs +1 -1
- package/esm2020/lib/components/modal/modal-wrapper/config/drawer-supplementary-action.mjs +1 -1
- package/esm2020/lib/components/modal/modal-wrapper/modal-wrapper.component.mjs +1 -1
- package/esm2020/lib/components/modal/services/modal-navigation.service.mjs +5 -5
- package/esm2020/lib/components/page/page.component.mjs +21 -22
- package/esm2020/lib/components/popover/popover.component.mjs +2 -2
- package/esm2020/lib/components/radio/radio-group/radio-group.component.mjs +3 -2
- package/esm2020/lib/components/router-outlet/router-outlet.component.mjs +2 -2
- package/esm2020/lib/components/segmented-control/segmented-control.component.mjs +1 -1
- package/esm2020/lib/components/shared/component-loader.directive.mjs +2 -2
- package/esm2020/lib/components/shared/resize-observer/resize-observer.factory.mjs +1 -1
- package/esm2020/lib/components/shared/resize-observer/resize-observer.service.mjs +1 -1
- package/esm2020/lib/components/slide-button/slide-button.component.mjs +2 -2
- package/esm2020/lib/components/spinner/spinner.component.mjs +2 -4
- package/esm2020/lib/components/tabs/tab-button/tab-button.component.mjs +2 -2
- package/esm2020/lib/components/toggle/toggle.component.mjs +2 -2
- package/esm2020/lib/directives/element-as-button/element-as-button.directive.mjs +2 -2
- package/esm2020/lib/directives/fit-heading/fit-heading.directive.mjs +1 -1
- package/esm2020/lib/directives/key-handler/key-handler.directive.mjs +3 -3
- package/esm2020/lib/directives/modal-router-link/modal-router-link.directive.mjs +1 -1
- package/esm2020/lib/directives/theme-color/theme-color.directive.mjs +2 -2
- package/esm2020/lib/helpers/deep-copy.mjs +2 -2
- package/esm2020/lib/helpers/merge-deep.mjs +1 -1
- package/esm2020/lib/kirby.module.mjs +1 -5
- package/esm2020/testing-base/lib/components/index.mjs +2 -1
- package/esm2020/testing-base/lib/components/mock.accordion-item.component.mjs +6 -2
- package/esm2020/testing-base/lib/components/mock.base-chart.component.mjs +41 -0
- package/esm2020/testing-base/lib/components/mock.button.component.mjs +2 -2
- package/esm2020/testing-base/lib/components/mock.calendar.component.mjs +4 -2
- package/esm2020/testing-base/lib/components/mock.card.component.mjs +4 -2
- package/esm2020/testing-base/lib/components/mock.chart.component.mjs +2 -16
- package/esm2020/testing-base/lib/components/mock.input.component.mjs +2 -2
- package/esm2020/testing-base/lib/components/mock.list.component.mjs +6 -2
- package/esm2020/testing-base/lib/components/mock.segmented-control.component.mjs +5 -2
- package/esm2020/testing-base/lib/components/mock.textarea.component.mjs +2 -2
- package/esm2020/testing-base/lib/directives/mock.fit-heading.directive.mjs +1 -1
- package/esm2020/testing-base/lib/directives/mock.theme-color.directive.mjs +2 -2
- package/esm2020/testing-base/lib/kirby-testing-base.module.mjs +50 -49
- package/esm2020/testing-base/lib/mock-components.mjs +10 -8
- package/esm2020/testing-jasmine/lib/kirby-testing.module.mjs +2 -1
- package/esm2020/testing-jasmine/lib/mock-providers.mjs +31 -2
- package/esm2020/testing-jest/lib/kirby-testing.module.mjs +2 -1
- package/esm2020/testing-jest/lib/mock-providers.mjs +31 -2
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs +55 -15
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-testing-jasmine.mjs +30 -1
- package/fesm2015/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem-testing-jest.mjs +30 -1
- package/fesm2015/kirbydesign-designsystem-testing-jest.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem.mjs +159 -116
- package/fesm2015/kirbydesign-designsystem.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs +55 -15
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs +30 -1
- package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-testing-jest.mjs +30 -1
- package/fesm2020/kirbydesign-designsystem-testing-jest.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem.mjs +159 -116
- package/fesm2020/kirbydesign-designsystem.mjs.map +1 -1
- package/icons/svg/help-decoration.svg +5 -0
- package/icons/svg/information-decoration.svg +5 -0
- package/icons/svg/notification.svg +5 -0
- package/icons/svg/transfer-ownership.svg +5 -0
- package/lib/components/accordion/accordion-item.component.d.ts +3 -3
- package/lib/components/card/card-footer/card-footer.component.d.ts +1 -4
- package/lib/components/charts/index.d.ts +1 -1
- package/lib/components/charts/shared/chart-config-service/chart-config.service.d.ts +1 -1
- package/lib/components/charts/shared/chart-js-service/annotations.delegate.d.ts +2 -2
- package/lib/components/charts/shared/charts.types.d.ts +1 -1
- package/lib/components/form-field/textarea/textarea.component.d.ts +1 -1
- package/lib/components/grid/grid.component.d.ts +2 -3
- package/lib/components/list/helpers/list-helper.d.ts +14 -0
- package/lib/components/list/index.d.ts +1 -2
- package/lib/components/list/list-section-header/list-section-header.component.d.ts +1 -4
- package/lib/components/list/list-swipe-action.type.d.ts +1 -1
- package/lib/components/list/list.component.d.ts +13 -4
- package/lib/components/page/page.component.d.ts +4 -5
- package/lib/components/shared/resize-observer/resize-observer.factory.d.ts +1 -1
- package/lib/components/shared/resize-observer/resize-observer.service.d.ts +1 -1
- package/lib/components/slide-button/slide-button.component.d.ts +1 -1
- package/lib/components/spinner/spinner.component.d.ts +1 -4
- package/lib/components/tabs/tab-button/tab-button.component.d.ts +1 -1
- package/lib/helpers/merge-deep.d.ts +1 -1
- package/lib/kirby.module.d.ts +56 -57
- package/package.json +2 -2
- package/readme.md +1 -2
- package/src/lib/components/icon/README.md +16 -0
- package/testing-base/lib/components/index.d.ts +1 -0
- package/testing-base/lib/components/mock.accordion-item.component.d.ts +3 -1
- package/testing-base/lib/components/mock.base-chart.component.d.ts +13 -0
- package/testing-base/lib/components/mock.calendar.component.d.ts +2 -1
- package/testing-base/lib/components/mock.card.component.d.ts +2 -1
- package/testing-base/lib/components/mock.chart.component.d.ts +3 -10
- package/testing-base/lib/components/mock.list.component.d.ts +4 -2
- package/testing-base/lib/components/mock.segmented-control.component.d.ts +2 -1
- package/testing-base/lib/kirby-testing-base.module.d.ts +49 -48
- package/testing-jasmine/lib/mock-providers.d.ts +9 -1
- package/testing-jest/lib/mock-providers.d.ts +24 -1
- package/README.md +0 -7
- package/esm2020/lib/components/list/pipes/group-by.pipe.mjs +0 -37
- package/lib/components/list/pipes/group-by.pipe.d.ts +0 -7
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule } from '@angular/core';
|
|
3
3
|
import { KirbyTestingBaseModule } from '@kirbydesign/designsystem/testing-base';
|
|
4
|
+
import { ChartConfigService, ChartJSService, IconRegistryService, LoadingOverlayService, ModalController, TabsService, ToastController } from '@kirbydesign/designsystem';
|
|
4
5
|
import { EMPTY } from 'rxjs';
|
|
5
|
-
import { IconRegistryService, LoadingOverlayService, ModalController, TabsService, ToastController } from '@kirbydesign/designsystem';
|
|
6
6
|
|
|
7
7
|
// AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY
|
|
8
|
+
function chartConfigServiceFactory() {
|
|
9
|
+
return jasmine.createSpyObj('ChartConfigService', [
|
|
10
|
+
'getTypeConfig',
|
|
11
|
+
'getAnnotationDefaults',
|
|
12
|
+
'chartTypeToChartJSType',
|
|
13
|
+
'applyInteractionFunctionsExtensions',
|
|
14
|
+
'getStockChartOptions',
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
function chartJSServiceFactory() {
|
|
18
|
+
return jasmine.createSpyObj('ChartJSService', [
|
|
19
|
+
'renderChart',
|
|
20
|
+
'redrawChart',
|
|
21
|
+
'updateData',
|
|
22
|
+
'updateLabels',
|
|
23
|
+
'updateType',
|
|
24
|
+
'updateOptions',
|
|
25
|
+
'updateAnnotations',
|
|
26
|
+
'updateHighlightedElements',
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
8
29
|
function iconRegistryServiceFactory() {
|
|
9
30
|
return jasmine.createSpyObj('IconRegistryService', ['addIcon', 'addIcons']);
|
|
10
31
|
}
|
|
@@ -35,6 +56,14 @@ function toastControllerFactory() {
|
|
|
35
56
|
return jasmine.createSpyObj('ToastController', ['showToast']);
|
|
36
57
|
}
|
|
37
58
|
const MOCK_PROVIDERS = [
|
|
59
|
+
{
|
|
60
|
+
provide: ChartConfigService,
|
|
61
|
+
useFactory: chartConfigServiceFactory,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
provide: ChartJSService,
|
|
65
|
+
useFactory: chartJSServiceFactory,
|
|
66
|
+
},
|
|
38
67
|
{
|
|
39
68
|
provide: IconRegistryService,
|
|
40
69
|
useFactory: iconRegistryServiceFactory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kirbydesign-designsystem-testing-jasmine.mjs","sources":["../../../../libs/designsystem/testing-jasmine/src/lib/mock-providers.ts","../../../../libs/designsystem/testing-jasmine/src/lib/kirby-testing.module.ts","../../../../libs/designsystem/testing-jasmine/src/kirbydesign-designsystem-testing-jasmine.ts"],"sourcesContent":["// AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY\n\nimport { EMPTY } from 'rxjs';\n\
|
|
1
|
+
{"version":3,"file":"kirbydesign-designsystem-testing-jasmine.mjs","sources":["../../../../libs/designsystem/testing-jasmine/src/lib/mock-providers.ts","../../../../libs/designsystem/testing-jasmine/src/lib/kirby-testing.module.ts","../../../../libs/designsystem/testing-jasmine/src/kirbydesign-designsystem-testing-jasmine.ts"],"sourcesContent":["// AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY\n\nimport {\n ChartConfigService,\n ChartJSService,\n IconRegistryService,\n LoadingOverlayService,\n ModalController,\n TabsService,\n ToastController,\n} from '@kirbydesign/designsystem';\nimport { EMPTY } from 'rxjs';\n\nexport function chartConfigServiceFactory() {\n return jasmine.createSpyObj<ChartConfigService>('ChartConfigService', [\n 'getTypeConfig',\n 'getAnnotationDefaults',\n 'chartTypeToChartJSType',\n 'applyInteractionFunctionsExtensions',\n 'getStockChartOptions',\n ]);\n}\n\nexport function chartJSServiceFactory() {\n return jasmine.createSpyObj<ChartJSService>('ChartJSService', [\n 'renderChart',\n 'redrawChart',\n 'updateData',\n 'updateLabels',\n 'updateType',\n 'updateOptions',\n 'updateAnnotations',\n 'updateHighlightedElements',\n ]);\n}\n\nexport function iconRegistryServiceFactory() {\n return jasmine.createSpyObj<IconRegistryService>('IconRegistryService', ['addIcon', 'addIcons']);\n}\n\nexport function loadingOverlayServiceFactory() {\n return jasmine.createSpyObj<LoadingOverlayService>('LoadingOverlayService', [\n 'showLoadingOverlay',\n 'hideLoadingOverlay',\n ]);\n}\n\nexport function modalControllerFactory() {\n return jasmine.createSpyObj<ModalController>('ModalController', [\n 'showModal',\n 'navigateToModal',\n 'navigateWithinModal',\n 'showActionSheet',\n 'showAlert',\n 'registerPresentingElement',\n 'hideTopmost',\n 'scrollToTop',\n 'scrollToBottom',\n 'hideAll',\n ]);\n}\n\nexport function tabsServiceFactory() {\n return jasmine.createSpyObj<TabsService>('TabsService', ['setOutlet'], { outlet$: EMPTY });\n}\n\nexport function toastControllerFactory() {\n return jasmine.createSpyObj<ToastController>('ToastController', ['showToast']);\n}\n\nexport const MOCK_PROVIDERS = [\n {\n provide: ChartConfigService,\n useFactory: chartConfigServiceFactory,\n },\n {\n provide: ChartJSService,\n useFactory: chartJSServiceFactory,\n },\n {\n provide: IconRegistryService,\n useFactory: iconRegistryServiceFactory,\n },\n {\n provide: LoadingOverlayService,\n useFactory: loadingOverlayServiceFactory,\n },\n {\n provide: ModalController,\n useFactory: modalControllerFactory,\n },\n {\n provide: TabsService,\n useFactory: tabsServiceFactory,\n },\n {\n provide: ToastController,\n useFactory: toastControllerFactory,\n },\n];\n","// eslint-disable-next-line @typescript-eslint/triple-slash-reference\n/// <reference path='../../../../../node_modules/@types/jasmine/index.d.ts' />\n\nimport { NgModule } from '@angular/core';\n\nimport { KirbyTestingBaseModule } from '@kirbydesign/designsystem/testing-base';\n\nimport { MOCK_PROVIDERS } from './mock-providers';\n\n@NgModule({\n imports: [KirbyTestingBaseModule],\n exports: [KirbyTestingBaseModule],\n providers: [...MOCK_PROVIDERS],\n})\nexport class KirbyTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;SAagB,yBAAyB,GAAA;AACvC,IAAA,OAAO,OAAO,CAAC,YAAY,CAAqB,oBAAoB,EAAE;QACpE,eAAe;QACf,uBAAuB;QACvB,wBAAwB;QACxB,qCAAqC;QACrC,sBAAsB;AACvB,KAAA,CAAC,CAAC;AACL,CAAC;SAEe,qBAAqB,GAAA;AACnC,IAAA,OAAO,OAAO,CAAC,YAAY,CAAiB,gBAAgB,EAAE;QAC5D,aAAa;QACb,aAAa;QACb,YAAY;QACZ,cAAc;QACd,YAAY;QACZ,eAAe;QACf,mBAAmB;QACnB,2BAA2B;AAC5B,KAAA,CAAC,CAAC;AACL,CAAC;SAEe,0BAA0B,GAAA;AACxC,IAAA,OAAO,OAAO,CAAC,YAAY,CAAsB,qBAAqB,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AACnG,CAAC;SAEe,4BAA4B,GAAA;AAC1C,IAAA,OAAO,OAAO,CAAC,YAAY,CAAwB,uBAAuB,EAAE;QAC1E,oBAAoB;QACpB,oBAAoB;AACrB,KAAA,CAAC,CAAC;AACL,CAAC;SAEe,sBAAsB,GAAA;AACpC,IAAA,OAAO,OAAO,CAAC,YAAY,CAAkB,iBAAiB,EAAE;QAC9D,WAAW;QACX,iBAAiB;QACjB,qBAAqB;QACrB,iBAAiB;QACjB,WAAW;QACX,2BAA2B;QAC3B,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,SAAS;AACV,KAAA,CAAC,CAAC;AACL,CAAC;SAEe,kBAAkB,GAAA;AAChC,IAAA,OAAO,OAAO,CAAC,YAAY,CAAc,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;AAC7F,CAAC;SAEe,sBAAsB,GAAA;IACpC,OAAO,OAAO,CAAC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AAsB,CAAC;AACjC,oBAAA,SAAS,EAAE,CAAC,GAAG,cAAc,CAAC;iBAC/B,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule } from '@angular/core';
|
|
3
3
|
import { KirbyTestingBaseModule } from '@kirbydesign/designsystem/testing-base';
|
|
4
|
+
import { ChartConfigService, ChartJSService, IconRegistryService, LoadingOverlayService, ModalController, TabsService, ToastController } from '@kirbydesign/designsystem';
|
|
4
5
|
import { EMPTY } from 'rxjs';
|
|
5
|
-
import { IconRegistryService, LoadingOverlayService, ModalController, TabsService, ToastController } from '@kirbydesign/designsystem';
|
|
6
6
|
|
|
7
7
|
// AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY
|
|
8
|
+
function chartConfigServiceFactory() {
|
|
9
|
+
return {
|
|
10
|
+
getTypeConfig: jest.fn(),
|
|
11
|
+
getAnnotationDefaults: jest.fn(),
|
|
12
|
+
chartTypeToChartJSType: jest.fn(),
|
|
13
|
+
applyInteractionFunctionsExtensions: jest.fn(),
|
|
14
|
+
getStockChartOptions: jest.fn(),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function chartJSServiceFactory() {
|
|
18
|
+
return {
|
|
19
|
+
renderChart: jest.fn(),
|
|
20
|
+
redrawChart: jest.fn(),
|
|
21
|
+
updateData: jest.fn(),
|
|
22
|
+
updateLabels: jest.fn(),
|
|
23
|
+
updateType: jest.fn(),
|
|
24
|
+
updateOptions: jest.fn(),
|
|
25
|
+
updateAnnotations: jest.fn(),
|
|
26
|
+
updateHighlightedElements: jest.fn(),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
8
29
|
function iconRegistryServiceFactory() {
|
|
9
30
|
return {
|
|
10
31
|
addIcon: jest.fn(),
|
|
@@ -43,6 +64,14 @@ function toastControllerFactory() {
|
|
|
43
64
|
};
|
|
44
65
|
}
|
|
45
66
|
const MOCK_PROVIDERS = [
|
|
67
|
+
{
|
|
68
|
+
provide: ChartConfigService,
|
|
69
|
+
useFactory: chartConfigServiceFactory,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
provide: ChartJSService,
|
|
73
|
+
useFactory: chartJSServiceFactory,
|
|
74
|
+
},
|
|
46
75
|
{
|
|
47
76
|
provide: IconRegistryService,
|
|
48
77
|
useFactory: iconRegistryServiceFactory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kirbydesign-designsystem-testing-jest.mjs","sources":["../../../../libs/designsystem/testing-jest/src/lib/mock-providers.ts","../../../../libs/designsystem/testing-jest/src/lib/kirby-testing.module.ts","../../../../libs/designsystem/testing-jest/src/kirbydesign-designsystem-testing-jest.ts"],"sourcesContent":["// AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY\n\nimport {
|
|
1
|
+
{"version":3,"file":"kirbydesign-designsystem-testing-jest.mjs","sources":["../../../../libs/designsystem/testing-jest/src/lib/mock-providers.ts","../../../../libs/designsystem/testing-jest/src/lib/kirby-testing.module.ts","../../../../libs/designsystem/testing-jest/src/kirbydesign-designsystem-testing-jest.ts"],"sourcesContent":["// AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY\n\nimport {\n ChartConfigService,\n ChartJSService,\n IconRegistryService,\n LoadingOverlayService,\n ModalController,\n TabsService,\n ToastController,\n} from '@kirbydesign/designsystem';\nimport { EMPTY } from 'rxjs';\n\nexport function chartConfigServiceFactory() {\n return {\n getTypeConfig: jest.fn(),\n getAnnotationDefaults: jest.fn(),\n chartTypeToChartJSType: jest.fn(),\n applyInteractionFunctionsExtensions: jest.fn(),\n getStockChartOptions: jest.fn(),\n };\n}\n\nexport function chartJSServiceFactory() {\n return {\n renderChart: jest.fn(),\n redrawChart: jest.fn(),\n updateData: jest.fn(),\n updateLabels: jest.fn(),\n updateType: jest.fn(),\n updateOptions: jest.fn(),\n updateAnnotations: jest.fn(),\n updateHighlightedElements: jest.fn(),\n };\n}\n\nexport function iconRegistryServiceFactory() {\n return {\n addIcon: jest.fn(),\n addIcons: jest.fn(),\n };\n}\n\nexport function loadingOverlayServiceFactory() {\n return {\n showLoadingOverlay: jest.fn(),\n hideLoadingOverlay: jest.fn(),\n };\n}\n\nexport function modalControllerFactory() {\n return {\n showModal: jest.fn(),\n navigateToModal: jest.fn(),\n navigateWithinModal: jest.fn(),\n showActionSheet: jest.fn(),\n showAlert: jest.fn(),\n registerPresentingElement: jest.fn(),\n hideTopmost: jest.fn(),\n scrollToTop: jest.fn(),\n scrollToBottom: jest.fn(),\n hideAll: jest.fn(),\n };\n}\n\nexport function tabsServiceFactory() {\n return {\n setOutlet: jest.fn(),\n outlet$: EMPTY,\n };\n}\n\nexport function toastControllerFactory() {\n return {\n showToast: jest.fn(),\n };\n}\n\nexport const MOCK_PROVIDERS = [\n {\n provide: ChartConfigService,\n useFactory: chartConfigServiceFactory,\n },\n {\n provide: ChartJSService,\n useFactory: chartJSServiceFactory,\n },\n {\n provide: IconRegistryService,\n useFactory: iconRegistryServiceFactory,\n },\n {\n provide: LoadingOverlayService,\n useFactory: loadingOverlayServiceFactory,\n },\n {\n provide: ModalController,\n useFactory: modalControllerFactory,\n },\n {\n provide: TabsService,\n useFactory: tabsServiceFactory,\n },\n {\n provide: ToastController,\n useFactory: toastControllerFactory,\n },\n];\n","// eslint-disable-next-line @typescript-eslint/triple-slash-reference\n/// <reference path='../../../../../node_modules/@types/jest/index.d.ts' />\n\nimport { NgModule } from '@angular/core';\n\nimport { KirbyTestingBaseModule } from '@kirbydesign/designsystem/testing-base';\n\nimport { MOCK_PROVIDERS } from './mock-providers';\n\n@NgModule({\n imports: [KirbyTestingBaseModule],\n exports: [KirbyTestingBaseModule],\n providers: [...MOCK_PROVIDERS],\n})\nexport class KirbyTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;SAagB,yBAAyB,GAAA;IACvC,OAAO;A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