@kirbydesign/designsystem 8.0.0 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/esm2020/button/button.component.mjs +4 -3
  2. package/esm2020/card/card.component.mjs +2 -2
  3. package/esm2020/divider/divider.component.mjs +4 -3
  4. package/esm2020/flag/flag.component.mjs +4 -3
  5. package/esm2020/form-field/form-field.module.mjs +5 -4
  6. package/esm2020/form-field/input/input.component.mjs +4 -3
  7. package/esm2020/form-field/textarea/textarea.component.mjs +3 -3
  8. package/esm2020/grid/breakpoint-helper.service.mjs +28 -0
  9. package/esm2020/grid/grid-card-configuration.mjs +8 -0
  10. package/esm2020/grid/grid.component.mjs +97 -0
  11. package/esm2020/grid/kirbydesign-designsystem-grid.mjs +5 -0
  12. package/esm2020/grid/public_api.mjs +4 -0
  13. package/esm2020/icon/kirby-icon-settings.mjs +5 -1
  14. package/esm2020/item-group/item-group.component.mjs +4 -3
  15. package/esm2020/lib/components/index.mjs +1 -4
  16. package/esm2020/lib/components/segmented-control/segmented-control.component.mjs +3 -3
  17. package/esm2020/lib/index.mjs +3 -1
  18. package/esm2020/lib/kirby.module.mjs +13 -11
  19. package/esm2020/list/list-item/list-item.component.mjs +2 -2
  20. package/esm2020/list/list.component.mjs +2 -2
  21. package/esm2020/modal/experimental/footer/footer.component.mjs +2 -2
  22. package/esm2020/modal/experimental/kirby-modal.module.mjs +5 -5
  23. package/esm2020/modal/experimental/modal/modal.component.mjs +72 -0
  24. package/esm2020/modal/experimental/public_api.mjs +2 -2
  25. package/esm2020/modal/modal/footer/modal-footer.component.mjs +4 -3
  26. package/esm2020/page/page-footer/page-footer.component.mjs +2 -2
  27. package/esm2020/popover/popover.component.mjs +4 -3
  28. package/esm2020/progress-circle/progress-circle-ring.component.mjs +4 -3
  29. package/esm2020/progress-circle/progress-circle.component.mjs +4 -3
  30. package/esm2020/section-header/section-header.component.mjs +4 -3
  31. package/esm2020/testing-jasmine/lib/mock-providers.mjs +3 -2
  32. package/esm2020/testing-jest/lib/mock-providers.mjs +3 -2
  33. package/esm2020/toast/config/toast-config.mjs +2 -0
  34. package/esm2020/toast/kirbydesign-designsystem-toast.mjs +5 -0
  35. package/esm2020/toast/public_api.mjs +4 -0
  36. package/esm2020/toast/services/indexs.mjs +3 -0
  37. package/esm2020/toast/services/toast.controller.mjs +22 -0
  38. package/esm2020/toast/services/toast.helper.mjs +39 -0
  39. package/esm2020/toggle/toggle.component.mjs +4 -3
  40. package/fesm2015/kirbydesign-designsystem-button.mjs +3 -2
  41. package/fesm2015/kirbydesign-designsystem-button.mjs.map +1 -1
  42. package/fesm2015/kirbydesign-designsystem-card.mjs +2 -2
  43. package/fesm2015/kirbydesign-designsystem-card.mjs.map +1 -1
  44. package/fesm2015/kirbydesign-designsystem-divider.mjs +3 -2
  45. package/fesm2015/kirbydesign-designsystem-divider.mjs.map +1 -1
  46. package/fesm2015/kirbydesign-designsystem-flag.mjs +3 -2
  47. package/fesm2015/kirbydesign-designsystem-flag.mjs.map +1 -1
  48. package/fesm2015/kirbydesign-designsystem-form-field.mjs +7 -7
  49. package/fesm2015/kirbydesign-designsystem-form-field.mjs.map +1 -1
  50. package/fesm2015/kirbydesign-designsystem-grid.mjs +136 -0
  51. package/fesm2015/kirbydesign-designsystem-grid.mjs.map +1 -0
  52. package/fesm2015/kirbydesign-designsystem-icon.mjs +4 -0
  53. package/fesm2015/kirbydesign-designsystem-icon.mjs.map +1 -1
  54. package/fesm2015/kirbydesign-designsystem-item-group.mjs +3 -2
  55. package/fesm2015/kirbydesign-designsystem-item-group.mjs.map +1 -1
  56. package/fesm2015/kirbydesign-designsystem-list.mjs +4 -4
  57. package/fesm2015/kirbydesign-designsystem-list.mjs.map +1 -1
  58. package/fesm2015/kirbydesign-designsystem-modal-experimental.mjs +11 -11
  59. package/fesm2015/kirbydesign-designsystem-modal-experimental.mjs.map +1 -1
  60. package/fesm2015/kirbydesign-designsystem-modal.mjs +2 -2
  61. package/fesm2015/kirbydesign-designsystem-modal.mjs.map +1 -1
  62. package/fesm2015/kirbydesign-designsystem-page.mjs +2 -2
  63. package/fesm2015/kirbydesign-designsystem-page.mjs.map +1 -1
  64. package/fesm2015/kirbydesign-designsystem-popover.mjs +3 -2
  65. package/fesm2015/kirbydesign-designsystem-popover.mjs.map +1 -1
  66. package/fesm2015/kirbydesign-designsystem-progress-circle.mjs +5 -4
  67. package/fesm2015/kirbydesign-designsystem-progress-circle.mjs.map +1 -1
  68. package/fesm2015/kirbydesign-designsystem-section-header.mjs +3 -2
  69. package/fesm2015/kirbydesign-designsystem-section-header.mjs.map +1 -1
  70. package/fesm2015/kirbydesign-designsystem-testing-jasmine.mjs +2 -1
  71. package/fesm2015/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -1
  72. package/fesm2015/kirbydesign-designsystem-testing-jest.mjs +2 -1
  73. package/fesm2015/kirbydesign-designsystem-testing-jest.mjs.map +1 -1
  74. package/fesm2015/kirbydesign-designsystem-toast.mjs +66 -0
  75. package/fesm2015/kirbydesign-designsystem-toast.mjs.map +1 -0
  76. package/fesm2015/kirbydesign-designsystem-toggle.mjs +3 -2
  77. package/fesm2015/kirbydesign-designsystem-toggle.mjs.map +1 -1
  78. package/fesm2015/kirbydesign-designsystem.mjs +24 -197
  79. package/fesm2015/kirbydesign-designsystem.mjs.map +1 -1
  80. package/fesm2020/kirbydesign-designsystem-button.mjs +3 -2
  81. package/fesm2020/kirbydesign-designsystem-button.mjs.map +1 -1
  82. package/fesm2020/kirbydesign-designsystem-card.mjs +2 -2
  83. package/fesm2020/kirbydesign-designsystem-card.mjs.map +1 -1
  84. package/fesm2020/kirbydesign-designsystem-divider.mjs +3 -2
  85. package/fesm2020/kirbydesign-designsystem-divider.mjs.map +1 -1
  86. package/fesm2020/kirbydesign-designsystem-flag.mjs +3 -2
  87. package/fesm2020/kirbydesign-designsystem-flag.mjs.map +1 -1
  88. package/fesm2020/kirbydesign-designsystem-form-field.mjs +7 -7
  89. package/fesm2020/kirbydesign-designsystem-form-field.mjs.map +1 -1
  90. package/fesm2020/kirbydesign-designsystem-grid.mjs +136 -0
  91. package/fesm2020/kirbydesign-designsystem-grid.mjs.map +1 -0
  92. package/fesm2020/kirbydesign-designsystem-icon.mjs +4 -0
  93. package/fesm2020/kirbydesign-designsystem-icon.mjs.map +1 -1
  94. package/fesm2020/kirbydesign-designsystem-item-group.mjs +3 -2
  95. package/fesm2020/kirbydesign-designsystem-item-group.mjs.map +1 -1
  96. package/fesm2020/kirbydesign-designsystem-list.mjs +4 -4
  97. package/fesm2020/kirbydesign-designsystem-list.mjs.map +1 -1
  98. package/fesm2020/kirbydesign-designsystem-modal-experimental.mjs +11 -11
  99. package/fesm2020/kirbydesign-designsystem-modal-experimental.mjs.map +1 -1
  100. package/fesm2020/kirbydesign-designsystem-modal.mjs +2 -2
  101. package/fesm2020/kirbydesign-designsystem-modal.mjs.map +1 -1
  102. package/fesm2020/kirbydesign-designsystem-page.mjs +2 -2
  103. package/fesm2020/kirbydesign-designsystem-page.mjs.map +1 -1
  104. package/fesm2020/kirbydesign-designsystem-popover.mjs +3 -2
  105. package/fesm2020/kirbydesign-designsystem-popover.mjs.map +1 -1
  106. package/fesm2020/kirbydesign-designsystem-progress-circle.mjs +5 -4
  107. package/fesm2020/kirbydesign-designsystem-progress-circle.mjs.map +1 -1
  108. package/fesm2020/kirbydesign-designsystem-section-header.mjs +3 -2
  109. package/fesm2020/kirbydesign-designsystem-section-header.mjs.map +1 -1
  110. package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs +2 -1
  111. package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -1
  112. package/fesm2020/kirbydesign-designsystem-testing-jest.mjs +2 -1
  113. package/fesm2020/kirbydesign-designsystem-testing-jest.mjs.map +1 -1
  114. package/fesm2020/kirbydesign-designsystem-toast.mjs +63 -0
  115. package/fesm2020/kirbydesign-designsystem-toast.mjs.map +1 -0
  116. package/fesm2020/kirbydesign-designsystem-toggle.mjs +3 -2
  117. package/fesm2020/kirbydesign-designsystem-toggle.mjs.map +1 -1
  118. package/fesm2020/kirbydesign-designsystem.mjs +24 -194
  119. package/fesm2020/kirbydesign-designsystem.mjs.map +1 -1
  120. package/form-field/form-field.module.d.ts +2 -1
  121. package/{lib/components/grid → grid}/breakpoint-helper.service.d.ts +0 -0
  122. package/{lib/components/grid → grid}/grid-card-configuration.d.ts +0 -0
  123. package/{lib/components/grid → grid}/grid.component.d.ts +1 -1
  124. package/grid/index.d.ts +5 -0
  125. package/grid/public_api.d.ts +3 -0
  126. package/icons/svg/air-balloon.svg +3 -0
  127. package/icons/svg/banknotes.svg +4 -0
  128. package/icons/svg/business.svg +3 -0
  129. package/icons/svg/piggybank.svg +3 -0
  130. package/lib/components/index.d.ts +0 -3
  131. package/lib/index.d.ts +2 -0
  132. package/lib/kirby.module.d.ts +26 -26
  133. package/modal/experimental/kirby-modal.module.d.ts +2 -2
  134. package/modal/experimental/{fullscreen/fullscreen.component.d.ts → modal/modal.component.d.ts} +3 -3
  135. package/modal/experimental/public_api.d.ts +1 -1
  136. package/package.json +18 -2
  137. package/testing-jasmine/lib/mock-providers.d.ts +2 -1
  138. package/testing-jest/lib/mock-providers.d.ts +2 -1
  139. package/{lib/components/toast → toast}/config/toast-config.d.ts +0 -0
  140. package/toast/index.d.ts +5 -0
  141. package/{lib/components/toast/index.d.ts → toast/public_api.d.ts} +1 -0
  142. package/toast/services/indexs.d.ts +2 -0
  143. package/{lib/components/toast → toast}/services/toast.controller.d.ts +0 -0
  144. package/{lib/components/toast → toast}/services/toast.helper.d.ts +0 -0
  145. package/esm2020/lib/components/grid/breakpoint-helper.service.mjs +0 -28
  146. package/esm2020/lib/components/grid/grid-card-configuration.mjs +0 -8
  147. package/esm2020/lib/components/grid/grid.component.mjs +0 -97
  148. package/esm2020/lib/components/toast/config/toast-config.mjs +0 -2
  149. package/esm2020/lib/components/toast/index.mjs +0 -3
  150. package/esm2020/lib/components/toast/services/toast.controller.mjs +0 -22
  151. package/esm2020/lib/components/toast/services/toast.helper.mjs +0 -39
  152. package/esm2020/modal/experimental/fullscreen/fullscreen.component.mjs +0 -72
@@ -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 {\n ChartConfigService,\n ChartJSService,\n IconRegistryService,\n LoadingOverlayService,\n TabsService,\n ToastController,\n} from '@kirbydesign/designsystem';\nimport { ModalController } from '@kirbydesign/designsystem/modal';\n\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 'destroyChart',\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', 'resetOutlet'], {\n outlet$: EMPTY,\n });\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;SAcgB,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,cAAc;QACd,YAAY;QACZ,cAAc;QACd,YAAY;QACZ,eAA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zC,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,sBAAsB;AACnC,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,WAAW;AACpB,QAAA,UAAU,EAAE,kBAAkB;AAC/B,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,sBAAsB;AACnC,KAAA;CACF;;ACtGD;MAaa,kBAAkB,CAAA;;kIAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mIAAlB,kBAAkB,EAAA,OAAA,EAAA,CAJnB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;mIAGrB,kBAAkB,EAAA,SAAA,EAFlB,CAAC,GAAG,cAAc,CAAC,EAFpB,OAAA,EAAA,CAAA,sBAAsB,EACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;2FAGrB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACjC,oBAAA,SAAS,EAAE,CAAC,GAAG,cAAc,CAAC;AAC/B,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
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 TabsService,\n} from '@kirbydesign/designsystem';\n\nimport { ToastController } from '@kirbydesign/designsystem/toast';\nimport { ModalController } from '@kirbydesign/designsystem/modal';\n\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 'destroyChart',\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', 'resetOutlet'], {\n outlet$: EMPTY,\n });\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;SAegB,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,cAAc;QACd,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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B,EAAA,OAAA,EAAA,CAJnB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;mIAGrB,kBAAkB,EAAA,SAAA,EAFlB,CAAC,GAAG,cAAc,CAAC,EAFpB,OAAA,EAAA,CAAA,sBAAsB,EACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;2FAGrB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACjC,oBAAA,SAAS,EAAE,CAAC,GAAG,cAAc,CAAC;AAC/B,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -1,7 +1,8 @@
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
+ import { ChartConfigService, ChartJSService, IconRegistryService, LoadingOverlayService, ModalController, TabsService } from '@kirbydesign/designsystem';
5
+ import { ToastController } from '@kirbydesign/designsystem/toast';
5
6
  import { EMPTY } from 'rxjs';
6
7
 
7
8
  // AUTO-GENERATED - PLEASE DON'T EDIT THIS FILE MANUALLY
@@ -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 {\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 destroyChart: 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 resetOutlet: 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;AACL,QAAA,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE;AACxB,QAAA,qBAAqB,EAAE,IAAI,CAAC,EAAE,EAAE;AAChC,QAAA,sBAAsB,EAAE,IAAI,CAAC,EAAE,EAAE;AACjC,QAAA,mCAAmC,EAAE,IAAI,CAAC,EAAE,EAAE;AAC9C,QAAA,oBAAoB,EAAE,IAAI,CAAC,EAAE,EAAE;KAChC,CAAC;AACJ,CAAC;SAEe,qBAAqB,GAAA;IACnC,OAAO;AACL,QAAA,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;AACtB,QAAA,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;AACtB,QAAA,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE;AACvB,QAAA,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;AACrB,QAAA,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE;AACvB,QAAA,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;AACrB,QAAA,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE;AACxB,QAAA,iBAAiB,EAAE,IAAI,CAAC,EAAE,EAAE;AAC5B,QAAA,yBAAyB,EAAE,IAAI,CAAC,EAAE,EAAE;KACrC,CAAC;AACJ,CAAC;SAEe,0BAA0B,GAAA;IACxC,OAAO;AACL,QAAA,OAAO,EAAE,IAAI,CAA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ACvB,QAAA,UAAU,EAAE,qBAAqB;AAClC,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,mBAAmB;AAC5B,QAAA,UAAU,EAAE,0BAA0B;AACvC,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,UAAU,EAAE,4BAA4B;AACzC,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,sBAAsB;AACnC,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,WAAW;AACpB,QAAA,UAAU,EAAE,kBAAkB;AAC/B,KAAA;AACD,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,sBAAsB;AACnC,KAAA;CACF;;AC5GD;MAaa,kBAAkB,CAAA;;kIAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mIAAlB,kBAAkB,EAAA,OAAA,EAAA,CAJnB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;mIAGrB,kBAAkB,EAAA,SAAA,EAFlB,CAAC,GAAG,cAAc,CAAC,EAFpB,OAAA,EAAA,CAAA,sBAAsB,EACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;2FAGrB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACjC,oBAAA,SAAS,EAAE,CAAC,GAAG,cAAc,CAAC;AAC/B,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
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} from '@kirbydesign/designsystem';\n\nimport { ToastController } from '@kirbydesign/designsystem/toast';\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 destroyChart: 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 resetOutlet: 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;SAcgB,yBAAyB,GAAA;IACvC,OAAO;AACL,QAAA,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE;AACxB,QAAA,qBAAqB,EAAE,IAAI,CAAC,EAAE,EAAE;AAChC,QAAA,sBAAsB,EAAE,IAAI,CAAC,EAAE,EAAE;AACjC,QAAA,mCAAmC,EAAE,IAAI,CAAC,EAAE,EAAE;AAC9C,QAAA,oBAAoB,EAAE,IAAI,CAAC,EAAE,EAAE;KAChC,CAAC;AACJ,CAAC;SAEe,qBAAqB,GAAA;IACnC,OAAO;AACL,QAAA,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;AACtB,QAAA,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;AACtB,QAAA,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE;AACvB,QAAA,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;AACrB,QAAA,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE;AACvB,QAAA,UAAU,EAAE,IAAI,CAAC,EAAE,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BACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACjC,oBAAA,SAAS,EAAE,CAAC,GAAG,cAAc,CAAC;AAC/B,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -0,0 +1,63 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import * as i1 from '@ionic/angular';
4
+
5
+ class ToastHelper {
6
+ constructor(toastController) {
7
+ this.toastController = toastController;
8
+ }
9
+ async showToast(config) {
10
+ const toast = await this.toastController.create({
11
+ animated: config.animated,
12
+ message: config.message,
13
+ position: 'top',
14
+ duration: config.durationInMs ? config.durationInMs : ToastHelper.DURATION_IN_MS,
15
+ cssClass: this.getCssClass(config.messageType),
16
+ });
17
+ await toast.present();
18
+ return {
19
+ dismiss: toast.dismiss.bind(toast),
20
+ onWillDismiss: toast.onWillDismiss(),
21
+ onDidDismiss: toast.onDidDismiss(),
22
+ };
23
+ }
24
+ getCssClass(messageType) {
25
+ let cssClass = ToastHelper.CSS_CLASS;
26
+ if (messageType) {
27
+ cssClass += ' ' + messageType;
28
+ }
29
+ return cssClass;
30
+ }
31
+ }
32
+ ToastHelper.CSS_CLASS = 'kirby-toast';
33
+ ToastHelper.DURATION_IN_MS = 4000;
34
+ /** @nocollapse */ ToastHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastHelper, deps: [{ token: i1.ToastController }], target: i0.ɵɵFactoryTarget.Injectable });
35
+ /** @nocollapse */ ToastHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastHelper });
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastHelper, decorators: [{
37
+ type: Injectable
38
+ }], ctorParameters: function () { return [{ type: i1.ToastController }]; } });
39
+
40
+ class ToastController {
41
+ constructor(toastHelper) {
42
+ this.toastHelper = toastHelper;
43
+ }
44
+ showToast(config, onCloseToast) {
45
+ this.toastHelper.showToast(config).then((overlay) => {
46
+ if (onCloseToast) {
47
+ overlay.onDidDismiss.then(() => onCloseToast());
48
+ }
49
+ });
50
+ }
51
+ }
52
+ /** @nocollapse */ ToastController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastController, deps: [{ token: ToastHelper }], target: i0.ɵɵFactoryTarget.Injectable });
53
+ /** @nocollapse */ ToastController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastController });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastController, decorators: [{
55
+ type: Injectable
56
+ }], ctorParameters: function () { return [{ type: ToastHelper }]; } });
57
+
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
62
+ export { ToastController, ToastHelper };
63
+ //# sourceMappingURL=kirbydesign-designsystem-toast.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kirbydesign-designsystem-toast.mjs","sources":["../../../../libs/designsystem/toast/src/services/toast.helper.ts","../../../../libs/designsystem/toast/src/services/toast.controller.ts","../../../../libs/designsystem/toast/src/kirbydesign-designsystem-toast.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { ToastController } from '@ionic/angular';\nimport { Overlay } from '@kirbydesign/designsystem/modal';\n\nimport { MessageType, ToastConfig } from '../config/toast-config';\n\n@Injectable()\nexport class ToastHelper {\n static CSS_CLASS = 'kirby-toast';\n static DURATION_IN_MS = 4000;\n\n constructor(private toastController: ToastController) {}\n\n public async showToast(config: ToastConfig): Promise<Overlay> {\n const toast = await this.toastController.create({\n animated: config.animated,\n message: config.message,\n position: 'top',\n duration: config.durationInMs ? config.durationInMs : ToastHelper.DURATION_IN_MS,\n cssClass: this.getCssClass(config.messageType),\n });\n await toast.present();\n return {\n dismiss: toast.dismiss.bind(toast),\n onWillDismiss: toast.onWillDismiss(),\n onDidDismiss: toast.onDidDismiss(),\n };\n }\n\n private getCssClass(messageType: MessageType): string {\n let cssClass = ToastHelper.CSS_CLASS;\n\n if (messageType) {\n cssClass += ' ' + messageType;\n }\n\n return cssClass;\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { ToastConfig } from '../config/toast-config';\n\nimport { ToastHelper } from './toast.helper';\n\n@Injectable()\nexport class ToastController {\n constructor(private toastHelper: ToastHelper) {}\n\n public showToast(config: ToastConfig, onCloseToast?: () => void) {\n this.toastHelper.showToast(config).then((overlay) => {\n if (onCloseToast) {\n overlay.onDidDismiss.then(() => onCloseToast());\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.ToastHelper"],"mappings":";;;;MAOa,WAAW,CAAA;AAItB,IAAA,WAAA,CAAoB,eAAgC,EAAA;QAAhC,IAAe,CAAA,eAAA,GAAf,eAAe,CAAiB;KAAI;IAEjD,MAAM,SAAS,CAAC,MAAmB,EAAA;QACxC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;YAC9C,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,OAAO,EAAE,MAAM,CAAC,OAAO;AACvB,YAAA,QAAQ,EAAE,KAAK;AACf,YAAA,QAAQ,EAAE,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,GAAG,WAAW,CAAC,cAAc;YAChF,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;AAC/C,SAAA,CAAC,CAAC;AACH,QAAA,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;AAClC,YAAA,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;AACpC,YAAA,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE;SACnC,CAAC;KACH;AAEO,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import * as i0 from '@angular/core';
2
3
  import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output } from '@angular/core';
3
4
  import { KirbyIonicModule } from '@kirbydesign/designsystem/kirby-ionic-module';
@@ -22,10 +23,10 @@ class ToggleComponent {
22
23
  }
23
24
  }
24
25
  /** @nocollapse */ ToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
- /** @nocollapse */ ToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ToggleComponent, isStandalone: true, selector: "kirby-toggle", inputs: { checked: "checked", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<ion-toggle\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [class.interaction-state-active]=\"_pressed\"\n (keydown.space)=\"_onActive()\"\n (keyup.space)=\"_onInactive()\"\n (blur)=\"_onInactive()\"\n (ionChange)=\"onCheckedChange($event.detail.checked)\"\n></ion-toggle>\n", styles: [":host{display:inline-flex}ion-toggle{--background: var(--kirby-semi-dark);--handle-background: var(--kirby-white);--background-checked: var(--kirby-success);--handle-background-checked: var(--kirby-white);--handle-transition: .2s;--handle-box-shadow: 0 1px 24px 0 rgba(28, 28, 28, .04)}@media (hover: hover) and (pointer: fine){ion-toggle{overflow:visible;contain:none}ion-toggle:focus-within::part(track){transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}@media (hover: hover){ion-toggle:hover{--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black);cursor:pointer;--background: #777777;--handle-background: whitesmoke;--background-checked: #0ee270;--handle-background-checked: whitesmoke}}ion-toggle:active,ion-toggle.interaction-state-active{--state-layer-opacity: .12;--state-layer-background-color: var(--kirby-black);--background: #6c6c6c;--handle-background: #ebebeb;--background-checked: #0dcd65;--handle-background-checked: #ebebeb}\n"], dependencies: [{ kind: "ngmodule", type: KirbyIonicModule }, { kind: "component", type: i1.IonToggle, selector: "ion-toggle", inputs: ["checked", "color", "disabled", "enableOnOffLabels", "mode", "name", "value"] }, { kind: "directive", type: i1.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
+ /** @nocollapse */ ToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ToggleComponent, isStandalone: true, selector: "kirby-toggle", inputs: { checked: "checked", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<ion-toggle\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [class.interaction-state-active]=\"_pressed\"\n (keydown.space)=\"_onActive()\"\n (keyup.space)=\"_onInactive()\"\n (blur)=\"_onInactive()\"\n (ionChange)=\"onCheckedChange($event.detail.checked)\"\n></ion-toggle>\n", styles: [":host{display:inline-flex}ion-toggle{--background: var(--kirby-semi-dark);--handle-background: var(--kirby-white);--background-checked: var(--kirby-success);--handle-background-checked: var(--kirby-white);--handle-transition: .2s;--handle-box-shadow: 0 1px 24px 0 rgba(28, 28, 28, .04)}@media (hover: hover) and (pointer: fine){ion-toggle{overflow:visible;contain:none}ion-toggle:focus-within::part(track){transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}@media (hover: hover){ion-toggle:hover{--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black);cursor:pointer;--background: #777777;--handle-background: whitesmoke;--background-checked: #0ee270;--handle-background-checked: whitesmoke}}ion-toggle:active,ion-toggle.interaction-state-active{--state-layer-opacity: .12;--state-layer-background-color: var(--kirby-black);--background: #6c6c6c;--handle-background: #ebebeb;--background-checked: #0dcd65;--handle-background-checked: #ebebeb}\n"], dependencies: [{ kind: "ngmodule", type: KirbyIonicModule }, { kind: "component", type: i1.IonToggle, selector: "ion-toggle", inputs: ["checked", "color", "disabled", "enableOnOffLabels", "mode", "name", "value"] }, { kind: "directive", type: i1.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToggleComponent, decorators: [{
27
28
  type: Component,
28
- args: [{ standalone: true, imports: [KirbyIonicModule], selector: 'kirby-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-toggle\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [class.interaction-state-active]=\"_pressed\"\n (keydown.space)=\"_onActive()\"\n (keyup.space)=\"_onInactive()\"\n (blur)=\"_onInactive()\"\n (ionChange)=\"onCheckedChange($event.detail.checked)\"\n></ion-toggle>\n", styles: [":host{display:inline-flex}ion-toggle{--background: var(--kirby-semi-dark);--handle-background: var(--kirby-white);--background-checked: var(--kirby-success);--handle-background-checked: var(--kirby-white);--handle-transition: .2s;--handle-box-shadow: 0 1px 24px 0 rgba(28, 28, 28, .04)}@media (hover: hover) and (pointer: fine){ion-toggle{overflow:visible;contain:none}ion-toggle:focus-within::part(track){transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}@media (hover: hover){ion-toggle:hover{--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black);cursor:pointer;--background: #777777;--handle-background: whitesmoke;--background-checked: #0ee270;--handle-background-checked: whitesmoke}}ion-toggle:active,ion-toggle.interaction-state-active{--state-layer-opacity: .12;--state-layer-background-color: var(--kirby-black);--background: #6c6c6c;--handle-background: #ebebeb;--background-checked: #0dcd65;--handle-background-checked: #ebebeb}\n"] }]
29
+ args: [{ standalone: true, imports: [KirbyIonicModule, CommonModule], selector: 'kirby-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-toggle\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [class.interaction-state-active]=\"_pressed\"\n (keydown.space)=\"_onActive()\"\n (keyup.space)=\"_onInactive()\"\n (blur)=\"_onInactive()\"\n (ionChange)=\"onCheckedChange($event.detail.checked)\"\n></ion-toggle>\n", styles: [":host{display:inline-flex}ion-toggle{--background: var(--kirby-semi-dark);--handle-background: var(--kirby-white);--background-checked: var(--kirby-success);--handle-background-checked: var(--kirby-white);--handle-transition: .2s;--handle-box-shadow: 0 1px 24px 0 rgba(28, 28, 28, .04)}@media (hover: hover) and (pointer: fine){ion-toggle{overflow:visible;contain:none}ion-toggle:focus-within::part(track){transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}@media (hover: hover){ion-toggle:hover{--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black);cursor:pointer;--background: #777777;--handle-background: whitesmoke;--background-checked: #0ee270;--handle-background-checked: whitesmoke}}ion-toggle:active,ion-toggle.interaction-state-active{--state-layer-opacity: .12;--state-layer-background-color: var(--kirby-black);--background: #6c6c6c;--handle-background: #ebebeb;--background-checked: #0dcd65;--handle-background-checked: #ebebeb}\n"] }]
29
30
  }], propDecorators: { checked: [{
30
31
  type: Input
31
32
  }], disabled: [{
@@ -1 +1 @@
1
- {"version":3,"file":"kirbydesign-designsystem-toggle.mjs","sources":["../../../../libs/designsystem/toggle/src/toggle.component.ts","../../../../libs/designsystem/toggle/src/toggle.component.html","../../../../libs/designsystem/toggle/src/kirbydesign-designsystem-toggle.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { KirbyIonicModule } from '@kirbydesign/designsystem/kirby-ionic-module';\n\n@Component({\n standalone: true,\n imports: [KirbyIonicModule],\n selector: 'kirby-toggle',\n templateUrl: './toggle.component.html',\n styleUrls: ['./toggle.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleComponent {\n @Input() checked: boolean = false;\n @Input() disabled: boolean = false;\n\n @Output() checkedChange = new EventEmitter<boolean>();\n\n _pressed = false;\n\n onCheckedChange(checked: boolean): void {\n this.checked = checked;\n this.checkedChange.emit(this.checked);\n }\n\n _onActive() {\n this._pressed = true;\n }\n\n _onInactive() {\n this._pressed = false;\n }\n}\n","<ion-toggle\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [class.interaction-state-active]=\"_pressed\"\n (keydown.space)=\"_onActive()\"\n (keyup.space)=\"_onInactive()\"\n (blur)=\"_onInactive()\"\n (ionChange)=\"onCheckedChange($event.detail.checked)\"\n></ion-toggle>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAWa,eAAe,CAAA;AAR5B,IAAA,WAAA,GAAA;QASW,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;QACzB,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAEzB,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAW,CAAC;QAEtD,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAclB,KAAA;AAZC,IAAA,eAAe,CAAC,OAAgB,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvC;IAED,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;KACtB;IAED,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;KACvB;;+HAnBU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mHAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECX5B,gSASA,EAAA,MAAA,EAAA,CAAA,0/BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDJY,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FAMf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAR3B,SAAS;iCACI,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,YACjB,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gSAAA,EAAA,MAAA,EAAA,CAAA,0/BAAA,CAAA,EAAA,CAAA;8BAGtC,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBAEI,aAAa,EAAA,CAAA;sBAAtB,MAAM;;;AEfT;;AAEG;;;;"}
1
+ {"version":3,"file":"kirbydesign-designsystem-toggle.mjs","sources":["../../../../libs/designsystem/toggle/src/toggle.component.ts","../../../../libs/designsystem/toggle/src/toggle.component.html","../../../../libs/designsystem/toggle/src/kirbydesign-designsystem-toggle.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { KirbyIonicModule } from '@kirbydesign/designsystem/kirby-ionic-module';\n\n@Component({\n standalone: true,\n imports: [KirbyIonicModule, CommonModule],\n selector: 'kirby-toggle',\n templateUrl: './toggle.component.html',\n styleUrls: ['./toggle.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleComponent {\n @Input() checked: boolean = false;\n @Input() disabled: boolean = false;\n\n @Output() checkedChange = new EventEmitter<boolean>();\n\n _pressed = false;\n\n onCheckedChange(checked: boolean): void {\n this.checked = checked;\n this.checkedChange.emit(this.checked);\n }\n\n _onActive() {\n this._pressed = true;\n }\n\n _onInactive() {\n this._pressed = false;\n }\n}\n","<ion-toggle\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [class.interaction-state-active]=\"_pressed\"\n (keydown.space)=\"_onActive()\"\n (keyup.space)=\"_onInactive()\"\n (blur)=\"_onInactive()\"\n (ionChange)=\"onCheckedChange($event.detail.checked)\"\n></ion-toggle>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAYa,eAAe,CAAA;AAR5B,IAAA,WAAA,GAAA;QASW,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;QACzB,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAEzB,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAW,CAAC;QAEtD,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAclB,KAAA;AAZC,IAAA,eAAe,CAAC,OAAgB,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvC;IAED,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;KACtB;IAED,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;KACvB;;+HAnBU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,mBAAA,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,ECZ5B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,gSASA,EDHY,MAAA,EAAA,CAAA,0/BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,oRAAE,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FAM7B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAR3B,SAAS;iCACI,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAAA,QAAA,EAC/B,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gSAAA,EAAA,MAAA,EAAA,CAAA,0/BAAA,CAAA,EAAA,CAAA;8BAGtC,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBAEI,aAAa,EAAA,CAAA;sBAAtB,MAAM;;;AEhBT;;AAEG;;;;"}
@@ -1,15 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef, ElementRef, NgZone, Component, ChangeDetectionStrategy, Injectable, HostBinding, Input, NgModule, EventEmitter, Output, ViewChild, Directive, HostListener, APP_INITIALIZER, InjectionToken, Optional, Inject } from '@angular/core';
3
- import { fromEvent, Subject } from 'rxjs';
4
- import { ScssHelper } from '@kirbydesign/designsystem/helpers/scss';
5
- export * from '@kirbydesign/designsystem/helpers/scss';
6
- import * as i4 from '@angular/common';
7
- import { CommonModule, DOCUMENT } from '@angular/common';
8
- import * as i3 from '@kirbydesign/designsystem/shared';
9
- import { ThemeColorDirective, ComponentLoaderDirective, ResizeObserverFactory, ResizeObserverService } from '@kirbydesign/designsystem/shared';
10
- export * from '@kirbydesign/designsystem/shared';
2
+ import { ChangeDetectorRef, ElementRef, NgZone, Component, ChangeDetectionStrategy, NgModule, EventEmitter, Input, HostBinding, Output, ViewChild, Directive, HostListener, APP_INITIALIZER, InjectionToken, Optional, Inject } from '@angular/core';
3
+ import { fromEvent } from 'rxjs';
11
4
  import * as i2 from '@ionic/angular';
12
5
  import { IonicModule } from '@ionic/angular';
6
+ import * as i4 from '@angular/common';
7
+ import { CommonModule, DOCUMENT } from '@angular/common';
13
8
  import * as i1 from '@kirbydesign/designsystem/icon';
14
9
  import { IconModule } from '@kirbydesign/designsystem/icon';
15
10
  export * from '@kirbydesign/designsystem/icon';
@@ -44,7 +39,10 @@ import { FlagComponent } from '@kirbydesign/designsystem/flag';
44
39
  export * from '@kirbydesign/designsystem/flag';
45
40
  import { TextareaComponent, InputComponent, AffixDirective, DateInputDirective, FormFieldModule } from '@kirbydesign/designsystem/form-field';
46
41
  export * from '@kirbydesign/designsystem/form-field';
42
+ import { GridComponent, BreakpointHelperService } from '@kirbydesign/designsystem/grid';
43
+ export * from '@kirbydesign/designsystem/grid';
47
44
  export * from '@kirbydesign/designsystem/helpers';
45
+ export * from '@kirbydesign/designsystem/helpers/scss';
48
46
  import { ItemModule } from '@kirbydesign/designsystem/item';
49
47
  export * from '@kirbydesign/designsystem/item';
50
48
  import { ItemGroupComponent } from '@kirbydesign/designsystem/item-group';
@@ -75,6 +73,8 @@ import { RouterOutletModule } from '@kirbydesign/designsystem/router-outlet';
75
73
  export * from '@kirbydesign/designsystem/router-outlet';
76
74
  import { SectionHeaderComponent } from '@kirbydesign/designsystem/section-header';
77
75
  export * from '@kirbydesign/designsystem/section-header';
76
+ import { ThemeColorDirective, ComponentLoaderDirective, ResizeObserverFactory, ResizeObserverService } from '@kirbydesign/designsystem/shared';
77
+ export * from '@kirbydesign/designsystem/shared';
78
78
  import { SlideModule } from '@kirbydesign/designsystem/slide';
79
79
  export * from '@kirbydesign/designsystem/slide';
80
80
  import { SlideButtonComponent } from '@kirbydesign/designsystem/slide-button';
@@ -83,6 +83,8 @@ import { SpinnerModule } from '@kirbydesign/designsystem/spinner';
83
83
  export * from '@kirbydesign/designsystem/spinner';
84
84
  import { TabsModule } from '@kirbydesign/designsystem/tabs';
85
85
  export * from '@kirbydesign/designsystem/tabs';
86
+ import { ToastHelper, ToastController } from '@kirbydesign/designsystem/toast';
87
+ export * from '@kirbydesign/designsystem/toast';
86
88
  import { ToggleComponent } from '@kirbydesign/designsystem/toggle';
87
89
  export * from '@kirbydesign/designsystem/toggle';
88
90
  import { ToggleButtonModule } from '@kirbydesign/designsystem/toggle-button';
@@ -165,129 +167,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
165
167
  }]
166
168
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
167
169
 
168
- class BreakpointHelperService {
169
- constructor() {
170
- this.orientationChangedSubject = new Subject();
171
- this.init();
172
- }
173
- init() {
174
- // TODO JEO: Implement Angular/CDK BreakpointObserver:
175
- this.orientationChangedSubject.next();
176
- }
177
- observe() {
178
- return this.orientationChangedSubject.asObservable();
179
- }
180
- ngOnDestroy() {
181
- this.orientationChangedSubject.complete();
182
- }
183
- }
184
- /** @nocollapse */ BreakpointHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreakpointHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
185
- /** @nocollapse */ BreakpointHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreakpointHelperService, providedIn: 'root' });
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreakpointHelperService, decorators: [{
187
- type: Injectable,
188
- args: [{
189
- providedIn: 'root',
190
- }]
191
- }], ctorParameters: function () { return []; } });
192
-
193
- const GRID_DEPRICATION_WARNING = 'Deprecation warning: The "kirby-grid" component will be removed in a future release of Kirby designsystem. Consider using kirby-grid, kirby-grid-item css-classes as an alternative solution. See grid docs at https://cookbook.kirby.design/#/home/showcase/grid';
194
- class GridCard {
195
- constructor(configuration, row, col, colSpan) {
196
- this.configuration = configuration;
197
- this.row = row;
198
- this.col = col;
199
- this.colSpan = colSpan;
200
- }
201
- }
202
- class GridComponent {
203
- constructor(breakpointHelper) {
204
- this.breakpointHelper = breakpointHelper;
205
- this.cards = [];
206
- console.warn(GRID_DEPRICATION_WARNING);
207
- }
208
- set cardConfigurations(cardConfigurations) {
209
- this.cardConfigs = cardConfigurations;
210
- // TODO TRM/JEO Remove this when breakpoint observe something something...
211
- this.configureGrid();
212
- }
213
- configureGrid() {
214
- let calculatedMaxColumns = 0;
215
- if (this.maxColumns === undefined) {
216
- calculatedMaxColumns =
217
- this.breakpointHelper.currentScreenWidth >= ScssHelper.BREAKPOINT_SCREEN_L ? 2 : 1;
218
- }
219
- else {
220
- calculatedMaxColumns = this.maxColumns;
221
- }
222
- this.cards = [];
223
- let columnCounter = 0;
224
- let currentRow = 0;
225
- let currentColumn = 0;
226
- this.cardConfigs.forEach((card, index) => {
227
- // Cards colspan is added to the column counter
228
- columnCounter += card.preferredSize;
229
- // If only maxColumns are set to 1, just add all cards with a colspan of 1
230
- if (calculatedMaxColumns === 1) {
231
- this.cards.push(new GridCard(card, currentRow, currentColumn, 1));
232
- currentRow += 1;
233
- return;
234
- }
235
- // If we are below maxColumns, then add the card to the array
236
- if (columnCounter <= calculatedMaxColumns) {
237
- this.cards.push(new GridCard(card, currentRow, currentColumn, card.preferredSize));
238
- // Update currentColumn, so the next card will be placed correctly
239
- currentColumn += card.preferredSize;
240
- }
241
- else {
242
- // The new card didn't fit - Calculate remaining columns for previous card
243
- const restColumns = calculatedMaxColumns - (columnCounter - card.preferredSize);
244
- const prevCard = this.cards[index - 1];
245
- // Add the restColumns to the previous cards colspan, to make it span out
246
- prevCard.colSpan = restColumns + prevCard.colSpan;
247
- // We are now on a new row
248
- currentRow += 1;
249
- currentColumn = 0;
250
- this.cards.push(new GridCard(card, currentRow, currentColumn, card.preferredSize));
251
- // Update currentColumn to match the size of the new card and reset columnCounter
252
- currentColumn = card.preferredSize;
253
- columnCounter = card.preferredSize;
254
- }
255
- // If we on the last card, make sure it spans all the rest of the columns
256
- if (this.cardConfigs.length - 1 === index) {
257
- const restColumns = calculatedMaxColumns - columnCounter;
258
- const currentCard = this.cards[index];
259
- currentCard.colSpan += restColumns;
260
- }
261
- });
262
- }
263
- ngOnDestroy() {
264
- if (this.breakpointSubscription) {
265
- this.breakpointSubscription.unsubscribe();
266
- }
267
- }
268
- }
269
- /** @nocollapse */ GridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: GridComponent, deps: [{ token: BreakpointHelperService }], target: i0.ɵɵFactoryTarget.Component });
270
- /** @nocollapse */ GridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: GridComponent, selector: "kirby-grid", inputs: { maxColumns: "maxColumns", cardConfigurations: "cardConfigurations" }, host: { properties: { "attr.max-columns": "this.maxColumns" } }, ngImport: i0, template: "<ng-container *ngFor=\"let card of cards\">\n <ng-template\n [kirbyLoadComponent]=\"card.configuration\"\n [cssClass]=\"'grid-item--col-' + card.colSpan\"\n ></ng-template>\n</ng-container>\n", styles: [":host{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(var(--kirby-grid-item-min-height, auto),auto);gap:24px;max-width:var(--kirby-page-max-width);margin:0 auto}@media (min-width: 721px){:host[max-columns=\"1\"]{grid-template-columns:repeat(1,1fr)}:host[max-columns=\"2\"]{grid-template-columns:repeat(2,1fr)}:host[max-columns=\"3\"]{grid-template-columns:repeat(3,1fr)}:host[max-columns=\"4\"]{grid-template-columns:repeat(4,1fr)}:host[max-columns=\"5\"]{grid-template-columns:repeat(5,1fr)}:host[max-columns=\"6\"]{grid-template-columns:repeat(6,1fr)}:host[max-columns=\"7\"]{grid-template-columns:repeat(7,1fr)}:host[max-columns=\"8\"]{grid-template-columns:repeat(8,1fr)}:host[max-columns=\"9\"]{grid-template-columns:repeat(9,1fr)}:host[max-columns=\"10\"]{grid-template-columns:repeat(10,1fr)}}@media (min-width: 721px){::ng-deep .grid-item--col-1{grid-column:span 1}}@media (min-width: 721px){::ng-deep .grid-item--col-2{grid-column:span 2}}@media (min-width: 721px){::ng-deep .grid-item--col-3{grid-column:span 3}}@media (min-width: 721px){::ng-deep .grid-item--col-4{grid-column:span 4}}@media (min-width: 721px){::ng-deep .grid-item--col-5{grid-column:span 5}}@media (min-width: 721px){::ng-deep .grid-item--col-6{grid-column:span 6}}@media (min-width: 721px){::ng-deep .grid-item--col-7{grid-column:span 7}}@media (min-width: 721px){::ng-deep .grid-item--col-8{grid-column:span 8}}@media (min-width: 721px){::ng-deep .grid-item--col-9{grid-column:span 9}}@media (min-width: 721px){::ng-deep .grid-item--col-10{grid-column:span 10}}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ComponentLoaderDirective, selector: "[kirbyLoadComponent]", inputs: ["kirbyLoadComponent", "cssClass"] }] });
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: GridComponent, decorators: [{
272
- type: Component,
273
- args: [{ selector: 'kirby-grid', template: "<ng-container *ngFor=\"let card of cards\">\n <ng-template\n [kirbyLoadComponent]=\"card.configuration\"\n [cssClass]=\"'grid-item--col-' + card.colSpan\"\n ></ng-template>\n</ng-container>\n", styles: [":host{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(var(--kirby-grid-item-min-height, auto),auto);gap:24px;max-width:var(--kirby-page-max-width);margin:0 auto}@media (min-width: 721px){:host[max-columns=\"1\"]{grid-template-columns:repeat(1,1fr)}:host[max-columns=\"2\"]{grid-template-columns:repeat(2,1fr)}:host[max-columns=\"3\"]{grid-template-columns:repeat(3,1fr)}:host[max-columns=\"4\"]{grid-template-columns:repeat(4,1fr)}:host[max-columns=\"5\"]{grid-template-columns:repeat(5,1fr)}:host[max-columns=\"6\"]{grid-template-columns:repeat(6,1fr)}:host[max-columns=\"7\"]{grid-template-columns:repeat(7,1fr)}:host[max-columns=\"8\"]{grid-template-columns:repeat(8,1fr)}:host[max-columns=\"9\"]{grid-template-columns:repeat(9,1fr)}:host[max-columns=\"10\"]{grid-template-columns:repeat(10,1fr)}}@media (min-width: 721px){::ng-deep .grid-item--col-1{grid-column:span 1}}@media (min-width: 721px){::ng-deep .grid-item--col-2{grid-column:span 2}}@media (min-width: 721px){::ng-deep .grid-item--col-3{grid-column:span 3}}@media (min-width: 721px){::ng-deep .grid-item--col-4{grid-column:span 4}}@media (min-width: 721px){::ng-deep .grid-item--col-5{grid-column:span 5}}@media (min-width: 721px){::ng-deep .grid-item--col-6{grid-column:span 6}}@media (min-width: 721px){::ng-deep .grid-item--col-7{grid-column:span 7}}@media (min-width: 721px){::ng-deep .grid-item--col-8{grid-column:span 8}}@media (min-width: 721px){::ng-deep .grid-item--col-9{grid-column:span 9}}@media (min-width: 721px){::ng-deep .grid-item--col-10{grid-column:span 10}}\n"] }]
274
- }], ctorParameters: function () { return [{ type: BreakpointHelperService }]; }, propDecorators: { maxColumns: [{
275
- type: HostBinding,
276
- args: ['attr.max-columns']
277
- }, {
278
- type: Input
279
- }], cardConfigurations: [{
280
- type: Input
281
- }] } });
282
-
283
- class GridCardConfiguration {
284
- constructor(component, data, preferredSize) {
285
- this.component = component;
286
- this.data = data;
287
- this.preferredSize = preferredSize;
288
- }
289
- }
290
-
291
170
  class KirbyBadgeModule {
292
171
  }
293
172
  /** @nocollapse */ KirbyBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: KirbyBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -387,10 +266,10 @@ class SegmentedControlComponent {
387
266
  }
388
267
  }
389
268
  /** @nocollapse */ SegmentedControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SegmentedControlComponent, deps: [{ token: i1.IconRegistryService }], target: i0.ɵɵFactoryTarget.Component });
390
- /** @nocollapse */ SegmentedControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: SegmentedControlComponent, isStandalone: true, selector: "kirby-segmented-control", inputs: { mode: "mode", items: "items", selectedIndex: "selectedIndex", value: "value", size: "size", disableChangeOnSwipe: "disableChangeOnSwipe" }, outputs: { selectedIndexChange: "selectedIndexChange", segmentSelect: "segmentSelect" }, host: { attributes: { "role": "group" }, properties: { "class": "this._modeCssClass", "class.sm": "this.isSmallSize" } }, ngImport: i0, template: "<ion-segment\n [value]=\"value?.id\"\n [scrollable]=\"disableChangeOnSwipe || mode !== 'default'\"\n (ionChange)=\"onSegmentSelect($event.detail.value)\"\n (click)=\"preventOutsideClick($event)\"\n>\n <ng-container *ngFor=\"let item of items\">\n <ion-segment-button [value]=\"item.id\">{{ item.text }}</ion-segment-button>\n <div class=\"badge-container\" *ngIf=\"item.badge\">\n <kirby-badge\n role=\"text\"\n [attr.aria-label]=\"item.badge.description\"\n [themeColor]=\"item.badge.themeColor\"\n >\n <ng-container *ngIf=\"item.badge.icon; else badgeContent\">\n <kirby-icon\n *ngIf=\"item.badge.isCustomIcon; else defaultIconName\"\n [customName]=\"item.badge.icon\"\n ></kirby-icon>\n <ng-template #defaultIconName>\n <kirby-icon [name]=\"item.badge.icon\"></kirby-icon>\n </ng-template>\n </ng-container>\n <ng-template #badgeContent>\n {{ item.badge.content }}\n </ng-template>\n </kirby-badge>\n </div>\n </ng-container>\n</ion-segment>\n", styles: [":host{display:block;-webkit-user-select:none;user-select:none;--kirby-badge-elevation: 0 1px 24px 0 rgba(28, 28, 28, .04);--kirby-badge-position: absolute;--kirby-badge-top: -8px;--kirby-badge-right: 8px;--kirby-badge-z-index: 2}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start: 16px;--padding-end: 16px}@media (hover: hover) and (pointer: fine){:host.sm ion-segment-button{outline:none;border-radius:999px}:host.sm ion-segment-button:focus{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}:host.sm ion-segment-button:focus:not(:focus-visible){box-shadow:0 0 0 0 transparent}:host.sm ion-segment-button:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}:host.default-mode ion-segment{--background: var(--kirby-white);width:-moz-fit-content;width:fit-content;overflow:visible;contain:none}:host.chip-mode ion-segment{--background: none;border-radius:0;padding:4px;gap:8px}@media (pointer: coarse){:host.chip-mode ion-segment{scrollbar-width:none}:host.chip-mode ion-segment::-webkit-scrollbar{display:none}}:host.chip-mode ion-segment-button{--background: var(--kirby-white);--indicator-transition: none;flex:initial}:host.chip-mode ion-segment-button::part(indicator){padding-inline:0}:host.compact ion-segment{--background: transparent}:host.compact ion-segment-button{--background: transparent;--padding-start: 12px;--padding-end: 12px}ion-segment{border-radius:999px}ion-segment-button{position:relative;--border-radius: 999px;--border-style: none;--background: none;--color: var(--kirby-white-contrast);--indicator-color: var(--kirby-black);--color-checked: var(--kirby-black-contrast);--color-hover: var(--kirby-black-tint);--indicator-box-shadow: none;--indicator-transform: none;--padding-start: 24px;--padding-end: 24px;--margin-bottom: 0;--margin-end: 0;--margin-start: 0;--margin-top: 0;min-height:40px;min-width:-moz-fit-content;min-width:fit-content;font-weight:400;font-size:14px;text-transform:none;margin:0;opacity:1}@media (hover: hover) and (pointer: fine){ion-segment-button{outline:none;border-radius:999px}ion-segment-button:focus{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}ion-segment-button:focus:not(:focus-visible){box-shadow:0 0 0 0 transparent}ion-segment-button:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}@media (hover: hover){ion-segment-button:hover{--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black);--background-hover: var(--state-layer-background-color);--background-hover-opacity: var(--state-layer-opacity)}}ion-segment-button:active,ion-segment-button.ion-activated{--state-layer-opacity: .16;--state-layer-background-color: var(--kirby-black);--background-activated: var(--state-layer-background-color);--background-activated-opacity: var(--state-layer-opacity)}ion-segment-button:after{content:\"\";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}@media (hover: hover){ion-segment-button.segment-button-checked:hover{--state-layer-opacity: .24;--state-layer-background-color: var(--kirby-black-contrast);--background-hover: var(--state-layer-background-color);--background-hover-opacity: var(--state-layer-opacity)}}ion-segment-button.segment-button-checked:active,ion-segment-button.segment-button-checked.ion-activated{--state-layer-opacity: .36;--state-layer-background-color: var(--kirby-black-contrast);--background-activated: var(--state-layer-background-color);--background-activated-opacity: var(--state-layer-opacity)}ion-segment-button::part(native){opacity:1;border-radius:999px;overflow:hidden}ion-segment-button::part(native):after{transition:all 80ms linear 0ms}ion-segment-button::part(indicator){padding-inline:0}.badge-container{position:relative}\n"], dependencies: [{ kind: "ngmodule", type: IonicModule }, { kind: "component", type: i2.IonSegment, selector: "ion-segment", inputs: ["color", "disabled", "mode", "scrollable", "selectOnFocus", "swipeGesture", "value"] }, { kind: "component", type: i2.IonSegmentButton, selector: "ion-segment-button", inputs: ["disabled", "layout", "mode", "type", "value"] }, { kind: "directive", type: i2.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i1.IconComponent, selector: "kirby-icon", inputs: ["size", "name", "customName"] }, { kind: "ngmodule", type: KirbyBadgeModule }, { kind: "component", type: KirbyBadge, selector: "kirby-badge", inputs: ["size", "text", "themeColor"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
269
+ /** @nocollapse */ SegmentedControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: SegmentedControlComponent, isStandalone: true, selector: "kirby-segmented-control", inputs: { mode: "mode", items: "items", selectedIndex: "selectedIndex", value: "value", size: "size", disableChangeOnSwipe: "disableChangeOnSwipe" }, outputs: { selectedIndexChange: "selectedIndexChange", segmentSelect: "segmentSelect" }, host: { attributes: { "role": "group" }, properties: { "class": "this._modeCssClass", "class.sm": "this.isSmallSize" } }, ngImport: i0, template: "<ion-segment\n [value]=\"value?.id\"\n [scrollable]=\"disableChangeOnSwipe || mode !== 'default'\"\n (ionChange)=\"onSegmentSelect($event.detail.value)\"\n (click)=\"preventOutsideClick($event)\"\n>\n <ng-container *ngFor=\"let item of items\">\n <ion-segment-button [value]=\"item.id\">{{ item.text }}</ion-segment-button>\n <div class=\"badge-container\" *ngIf=\"item.badge\">\n <kirby-badge\n role=\"text\"\n [attr.aria-label]=\"item.badge.description\"\n [themeColor]=\"item.badge.themeColor\"\n >\n <ng-container *ngIf=\"item.badge.icon; else badgeContent\">\n <kirby-icon\n *ngIf=\"item.badge.isCustomIcon; else defaultIconName\"\n [customName]=\"item.badge.icon\"\n ></kirby-icon>\n <ng-template #defaultIconName>\n <kirby-icon [name]=\"item.badge.icon\"></kirby-icon>\n </ng-template>\n </ng-container>\n <ng-template #badgeContent>\n {{ item.badge.content }}\n </ng-template>\n </kirby-badge>\n </div>\n </ng-container>\n</ion-segment>\n", styles: [":host{display:block;-webkit-user-select:none;user-select:none;--kirby-badge-elevation: 0 1px 24px 0 rgba(28, 28, 28, .04);--kirby-badge-position: absolute;--kirby-badge-top: -8px;--kirby-badge-right: 8px;--kirby-badge-z-index: 2}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start: 16px;--padding-end: 16px}@media (hover: hover) and (pointer: fine){:host.sm ion-segment-button{outline:none;border-radius:999px}:host.sm ion-segment-button:focus{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}:host.sm ion-segment-button:focus:not(:focus-visible){box-shadow:0 0 0 0 transparent}:host.sm ion-segment-button:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}:host.default-mode ion-segment{--background: var(--kirby-inputs-background-color);box-shadow:var(--kirby-inputs-elevation);width:-moz-fit-content;width:fit-content;overflow:visible;contain:none}:host.chip-mode ion-segment{--background: none;border-radius:0;padding:4px;gap:8px}@media (pointer: coarse){:host.chip-mode ion-segment{scrollbar-width:none}:host.chip-mode ion-segment::-webkit-scrollbar{display:none}}:host.chip-mode ion-segment-button{--background: var(--kirby-inputs-background-color);--indicator-transition: none;flex:initial}:host.chip-mode ion-segment-button::part(indicator){padding-inline:0}:host.compact ion-segment{--background: transparent}:host.compact ion-segment-button{--background: transparent;--padding-start: 12px;--padding-end: 12px}ion-segment{border-radius:999px}ion-segment-button{position:relative;--border-radius: 999px;--border-style: none;--background: none;--color: var(--kirby-inputs-color);--indicator-color: var(--kirby-inputs-indicator-background-color);--color-checked: var(--kirby-inputs-indicator-color);--indicator-box-shadow: none;--indicator-transform: none;--padding-start: 24px;--padding-end: 24px;--margin-bottom: 0;--margin-end: 0;--margin-start: 0;--margin-top: 0;min-height:40px;min-width:-moz-fit-content;min-width:fit-content;font-weight:400;font-size:14px;text-transform:none;margin:0}@media (hover: hover) and (pointer: fine){ion-segment-button:focus-within::part(native){transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}ion-segment-button:after{content:\"\";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}ion-segment-button::part(native){border-radius:999px;overflow:hidden}ion-segment-button::part(native):after{transition:all 80ms linear 0ms}ion-segment-button::part(indicator){padding-inline:0}.badge-container{position:relative}\n"], dependencies: [{ kind: "ngmodule", type: IonicModule }, { kind: "component", type: i2.IonSegment, selector: "ion-segment", inputs: ["color", "disabled", "mode", "scrollable", "selectOnFocus", "swipeGesture", "value"] }, { kind: "component", type: i2.IonSegmentButton, selector: "ion-segment-button", inputs: ["disabled", "layout", "mode", "type", "value"] }, { kind: "directive", type: i2.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i1.IconComponent, selector: "kirby-icon", inputs: ["size", "name", "customName"] }, { kind: "ngmodule", type: KirbyBadgeModule }, { kind: "component", type: KirbyBadge, selector: "kirby-badge", inputs: ["size", "text", "themeColor"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
391
270
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SegmentedControlComponent, decorators: [{
392
271
  type: Component,
393
- args: [{ standalone: true, imports: [IonicModule, IconModule, KirbyBadgeModule, CommonModule], selector: 'kirby-segmented-control', host: { role: 'group' }, template: "<ion-segment\n [value]=\"value?.id\"\n [scrollable]=\"disableChangeOnSwipe || mode !== 'default'\"\n (ionChange)=\"onSegmentSelect($event.detail.value)\"\n (click)=\"preventOutsideClick($event)\"\n>\n <ng-container *ngFor=\"let item of items\">\n <ion-segment-button [value]=\"item.id\">{{ item.text }}</ion-segment-button>\n <div class=\"badge-container\" *ngIf=\"item.badge\">\n <kirby-badge\n role=\"text\"\n [attr.aria-label]=\"item.badge.description\"\n [themeColor]=\"item.badge.themeColor\"\n >\n <ng-container *ngIf=\"item.badge.icon; else badgeContent\">\n <kirby-icon\n *ngIf=\"item.badge.isCustomIcon; else defaultIconName\"\n [customName]=\"item.badge.icon\"\n ></kirby-icon>\n <ng-template #defaultIconName>\n <kirby-icon [name]=\"item.badge.icon\"></kirby-icon>\n </ng-template>\n </ng-container>\n <ng-template #badgeContent>\n {{ item.badge.content }}\n </ng-template>\n </kirby-badge>\n </div>\n </ng-container>\n</ion-segment>\n", styles: [":host{display:block;-webkit-user-select:none;user-select:none;--kirby-badge-elevation: 0 1px 24px 0 rgba(28, 28, 28, .04);--kirby-badge-position: absolute;--kirby-badge-top: -8px;--kirby-badge-right: 8px;--kirby-badge-z-index: 2}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start: 16px;--padding-end: 16px}@media (hover: hover) and (pointer: fine){:host.sm ion-segment-button{outline:none;border-radius:999px}:host.sm ion-segment-button:focus{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}:host.sm ion-segment-button:focus:not(:focus-visible){box-shadow:0 0 0 0 transparent}:host.sm ion-segment-button:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}:host.default-mode ion-segment{--background: var(--kirby-white);width:-moz-fit-content;width:fit-content;overflow:visible;contain:none}:host.chip-mode ion-segment{--background: none;border-radius:0;padding:4px;gap:8px}@media (pointer: coarse){:host.chip-mode ion-segment{scrollbar-width:none}:host.chip-mode ion-segment::-webkit-scrollbar{display:none}}:host.chip-mode ion-segment-button{--background: var(--kirby-white);--indicator-transition: none;flex:initial}:host.chip-mode ion-segment-button::part(indicator){padding-inline:0}:host.compact ion-segment{--background: transparent}:host.compact ion-segment-button{--background: transparent;--padding-start: 12px;--padding-end: 12px}ion-segment{border-radius:999px}ion-segment-button{position:relative;--border-radius: 999px;--border-style: none;--background: none;--color: var(--kirby-white-contrast);--indicator-color: var(--kirby-black);--color-checked: var(--kirby-black-contrast);--color-hover: var(--kirby-black-tint);--indicator-box-shadow: none;--indicator-transform: none;--padding-start: 24px;--padding-end: 24px;--margin-bottom: 0;--margin-end: 0;--margin-start: 0;--margin-top: 0;min-height:40px;min-width:-moz-fit-content;min-width:fit-content;font-weight:400;font-size:14px;text-transform:none;margin:0;opacity:1}@media (hover: hover) and (pointer: fine){ion-segment-button{outline:none;border-radius:999px}ion-segment-button:focus{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}ion-segment-button:focus:not(:focus-visible){box-shadow:0 0 0 0 transparent}ion-segment-button:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}@media (hover: hover){ion-segment-button:hover{--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black);--background-hover: var(--state-layer-background-color);--background-hover-opacity: var(--state-layer-opacity)}}ion-segment-button:active,ion-segment-button.ion-activated{--state-layer-opacity: .16;--state-layer-background-color: var(--kirby-black);--background-activated: var(--state-layer-background-color);--background-activated-opacity: var(--state-layer-opacity)}ion-segment-button:after{content:\"\";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}@media (hover: hover){ion-segment-button.segment-button-checked:hover{--state-layer-opacity: .24;--state-layer-background-color: var(--kirby-black-contrast);--background-hover: var(--state-layer-background-color);--background-hover-opacity: var(--state-layer-opacity)}}ion-segment-button.segment-button-checked:active,ion-segment-button.segment-button-checked.ion-activated{--state-layer-opacity: .36;--state-layer-background-color: var(--kirby-black-contrast);--background-activated: var(--state-layer-background-color);--background-activated-opacity: var(--state-layer-opacity)}ion-segment-button::part(native){opacity:1;border-radius:999px;overflow:hidden}ion-segment-button::part(native):after{transition:all 80ms linear 0ms}ion-segment-button::part(indicator){padding-inline:0}.badge-container{position:relative}\n"] }]
272
+ args: [{ standalone: true, imports: [IonicModule, IconModule, KirbyBadgeModule, CommonModule], selector: 'kirby-segmented-control', host: { role: 'group' }, template: "<ion-segment\n [value]=\"value?.id\"\n [scrollable]=\"disableChangeOnSwipe || mode !== 'default'\"\n (ionChange)=\"onSegmentSelect($event.detail.value)\"\n (click)=\"preventOutsideClick($event)\"\n>\n <ng-container *ngFor=\"let item of items\">\n <ion-segment-button [value]=\"item.id\">{{ item.text }}</ion-segment-button>\n <div class=\"badge-container\" *ngIf=\"item.badge\">\n <kirby-badge\n role=\"text\"\n [attr.aria-label]=\"item.badge.description\"\n [themeColor]=\"item.badge.themeColor\"\n >\n <ng-container *ngIf=\"item.badge.icon; else badgeContent\">\n <kirby-icon\n *ngIf=\"item.badge.isCustomIcon; else defaultIconName\"\n [customName]=\"item.badge.icon\"\n ></kirby-icon>\n <ng-template #defaultIconName>\n <kirby-icon [name]=\"item.badge.icon\"></kirby-icon>\n </ng-template>\n </ng-container>\n <ng-template #badgeContent>\n {{ item.badge.content }}\n </ng-template>\n </kirby-badge>\n </div>\n </ng-container>\n</ion-segment>\n", styles: [":host{display:block;-webkit-user-select:none;user-select:none;--kirby-badge-elevation: 0 1px 24px 0 rgba(28, 28, 28, .04);--kirby-badge-position: absolute;--kirby-badge-top: -8px;--kirby-badge-right: 8px;--kirby-badge-z-index: 2}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start: 16px;--padding-end: 16px}@media (hover: hover) and (pointer: fine){:host.sm ion-segment-button{outline:none;border-radius:999px}:host.sm ion-segment-button:focus{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}:host.sm ion-segment-button:focus:not(:focus-visible){box-shadow:0 0 0 0 transparent}:host.sm ion-segment-button:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}:host.default-mode ion-segment{--background: var(--kirby-inputs-background-color);box-shadow:var(--kirby-inputs-elevation);width:-moz-fit-content;width:fit-content;overflow:visible;contain:none}:host.chip-mode ion-segment{--background: none;border-radius:0;padding:4px;gap:8px}@media (pointer: coarse){:host.chip-mode ion-segment{scrollbar-width:none}:host.chip-mode ion-segment::-webkit-scrollbar{display:none}}:host.chip-mode ion-segment-button{--background: var(--kirby-inputs-background-color);--indicator-transition: none;flex:initial}:host.chip-mode ion-segment-button::part(indicator){padding-inline:0}:host.compact ion-segment{--background: transparent}:host.compact ion-segment-button{--background: transparent;--padding-start: 12px;--padding-end: 12px}ion-segment{border-radius:999px}ion-segment-button{position:relative;--border-radius: 999px;--border-style: none;--background: none;--color: var(--kirby-inputs-color);--indicator-color: var(--kirby-inputs-indicator-background-color);--color-checked: var(--kirby-inputs-indicator-color);--indicator-box-shadow: none;--indicator-transform: none;--padding-start: 24px;--padding-end: 24px;--margin-bottom: 0;--margin-end: 0;--margin-start: 0;--margin-top: 0;min-height:40px;min-width:-moz-fit-content;min-width:fit-content;font-weight:400;font-size:14px;text-transform:none;margin:0}@media (hover: hover) and (pointer: fine){ion-segment-button:focus-within::part(native){transition:all 80ms linear 0ms;box-shadow:0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}ion-segment-button:after{content:\"\";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}ion-segment-button::part(native){border-radius:999px;overflow:hidden}ion-segment-button::part(native):after{transition:all 80ms linear 0ms}ion-segment-button::part(indicator){padding-inline:0}.badge-container{position:relative}\n"] }]
394
273
  }], ctorParameters: function () { return [{ type: i1.IconRegistryService }]; }, propDecorators: { mode: [{
395
274
  type: Input
396
275
  }], _modeCssClass: [{
@@ -415,59 +294,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
415
294
  type: Output
416
295
  }] } });
417
296
 
418
- class ToastHelper {
419
- constructor(toastController) {
420
- this.toastController = toastController;
421
- }
422
- async showToast(config) {
423
- const toast = await this.toastController.create({
424
- animated: config.animated,
425
- message: config.message,
426
- position: 'top',
427
- duration: config.durationInMs ? config.durationInMs : ToastHelper.DURATION_IN_MS,
428
- cssClass: this.getCssClass(config.messageType),
429
- });
430
- await toast.present();
431
- return {
432
- dismiss: toast.dismiss.bind(toast),
433
- onWillDismiss: toast.onWillDismiss(),
434
- onDidDismiss: toast.onDidDismiss(),
435
- };
436
- }
437
- getCssClass(messageType) {
438
- let cssClass = ToastHelper.CSS_CLASS;
439
- if (messageType) {
440
- cssClass += ' ' + messageType;
441
- }
442
- return cssClass;
443
- }
444
- }
445
- ToastHelper.CSS_CLASS = 'kirby-toast';
446
- ToastHelper.DURATION_IN_MS = 4000;
447
- /** @nocollapse */ ToastHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastHelper, deps: [{ token: i2.ToastController }], target: i0.ɵɵFactoryTarget.Injectable });
448
- /** @nocollapse */ ToastHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastHelper });
449
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastHelper, decorators: [{
450
- type: Injectable
451
- }], ctorParameters: function () { return [{ type: i2.ToastController }]; } });
452
-
453
- class ToastController {
454
- constructor(toastHelper) {
455
- this.toastHelper = toastHelper;
456
- }
457
- showToast(config, onCloseToast) {
458
- this.toastHelper.showToast(config).then((overlay) => {
459
- if (onCloseToast) {
460
- overlay.onDidDismiss.then(() => onCloseToast());
461
- }
462
- });
463
- }
464
- }
465
- /** @nocollapse */ ToastController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastController, deps: [{ token: ToastHelper }], target: i0.ɵɵFactoryTarget.Injectable });
466
- /** @nocollapse */ ToastController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastController });
467
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToastController, decorators: [{
468
- type: Injectable
469
- }], ctorParameters: function () { return [{ type: ToastHelper }]; } });
470
-
471
297
  class PageLocalNavigationComponent {
472
298
  constructor(window) {
473
299
  this.window = window;
@@ -604,9 +430,10 @@ function customElementsInitializer() {
604
430
  };
605
431
  }
606
432
 
607
- const exportedDeclarations = [GridComponent, ModalRouterLinkDirective];
433
+ const exportedDeclarations = [ModalRouterLinkDirective];
608
434
  const declarations = [...exportedDeclarations, KeyHandlerDirective];
609
435
  const standaloneComponents = [
436
+ GridComponent,
610
437
  ItemGroupComponent,
611
438
  ModalCompactWrapperComponent,
612
439
  TextareaComponent,
@@ -694,7 +521,7 @@ class KirbyModule {
694
521
  }
695
522
  }
696
523
  /** @nocollapse */ KirbyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: KirbyModule, deps: [{ token: i1$1.ModalController }, { token: ConfigToken, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
697
- /** @nocollapse */ KirbyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: KirbyModule, declarations: [GridComponent, ModalRouterLinkDirective, KeyHandlerDirective], imports: [CommonModule, RouterModule, KirbyIonicModule, KirbyAppModule,
524
+ /** @nocollapse */ KirbyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: KirbyModule, declarations: [ModalRouterLinkDirective, KeyHandlerDirective], imports: [CommonModule, RouterModule, KirbyIonicModule, KirbyAppModule,
698
525
  RouterOutletModule,
699
526
  PageModule,
700
527
  TabsModule,
@@ -712,7 +539,8 @@ class KirbyModule {
712
539
  KirbyBadgeModule,
713
540
  FormFieldModule,
714
541
  SlideModule,
715
- AccordionModule, ItemGroupComponent,
542
+ AccordionModule, GridComponent,
543
+ ItemGroupComponent,
716
544
  ModalCompactWrapperComponent,
717
545
  TextareaComponent,
718
546
  InputComponent,
@@ -760,7 +588,8 @@ class KirbyModule {
760
588
  KirbyBadgeModule,
761
589
  FormFieldModule,
762
590
  SlideModule,
763
- AccordionModule, ItemGroupComponent,
591
+ AccordionModule, GridComponent,
592
+ ItemGroupComponent,
764
593
  ModalCompactWrapperComponent,
765
594
  TextareaComponent,
766
595
  InputComponent,
@@ -790,7 +619,7 @@ class KirbyModule {
790
619
  CalendarComponent,
791
620
  ButtonComponent,
792
621
  ComponentLoaderDirective,
793
- FlagComponent, GridComponent, ModalRouterLinkDirective] });
622
+ FlagComponent, ModalRouterLinkDirective] });
794
623
  /** @nocollapse */ KirbyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: KirbyModule, providers: providers, imports: [CommonModule, RouterModule, KirbyIonicModule, KirbyAppModule,
795
624
  RouterOutletModule,
796
625
  PageModule,
@@ -809,7 +638,8 @@ class KirbyModule {
809
638
  KirbyBadgeModule,
810
639
  FormFieldModule,
811
640
  SlideModule,
812
- AccordionModule, ItemGroupComponent,
641
+ AccordionModule, GridComponent,
642
+ ItemGroupComponent,
813
643
  ModalCompactWrapperComponent,
814
644
  TextareaComponent,
815
645
  InputComponent,
@@ -891,5 +721,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
891
721
  * Generated bundle index. Do not edit.
892
722
  */
893
723
 
894
- export { KirbyBadge as BadgeComponent, GridCardConfiguration, GridComponent, KeyHandlerDirective, KirbyBadgeModule, KirbyExperimentalModule, KirbyModule, ModalRouterLinkDirective, PageLocalNavigationComponent, SegmentedControlComponent, SegmentedControlMode, ToastController };
724
+ export { KirbyBadge as BadgeComponent, KeyHandlerDirective, KirbyBadgeModule, KirbyExperimentalModule, KirbyModule, ModalRouterLinkDirective, PageLocalNavigationComponent, SegmentedControlComponent, SegmentedControlMode };
895
725
  //# sourceMappingURL=kirbydesign-designsystem.mjs.map