@kirbydesign/designsystem 4.0.8 → 4.0.12

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 (114) hide show
  1. package/bundles/kirbydesign-designsystem-testing-base.umd.js +59 -84
  2. package/bundles/kirbydesign-designsystem-testing-base.umd.js.map +1 -1
  3. package/bundles/kirbydesign-designsystem-testing-base.umd.min.js +1 -1
  4. package/bundles/kirbydesign-designsystem-testing-base.umd.min.js.map +1 -1
  5. package/bundles/kirbydesign-designsystem.umd.js +285 -674
  6. package/bundles/kirbydesign-designsystem.umd.js.map +1 -1
  7. package/bundles/kirbydesign-designsystem.umd.min.js +1 -1
  8. package/bundles/kirbydesign-designsystem.umd.min.js.map +1 -1
  9. package/esm2015/kirbydesign-designsystem.js +77 -76
  10. package/esm2015/kirbydesign-designsystem.metadata.json +1 -1
  11. package/esm2015/lib/animation/kirby-animation.js +7 -7
  12. package/esm2015/lib/components/angular-component-lib/utils.js +40 -0
  13. package/esm2015/lib/components/angular-component-lib/utils.metadata.json +1 -0
  14. package/esm2015/lib/components/avatar/avatar.component.js +2 -2
  15. package/esm2015/lib/components/avatar/avatar.component.metadata.json +1 -1
  16. package/esm2015/lib/components/button/button.component.js +1 -1
  17. package/esm2015/lib/components/button/button.component.metadata.json +1 -1
  18. package/esm2015/lib/components/calendar/calendar.component.js +2 -2
  19. package/esm2015/lib/components/card/card-header/card-header.component.js +1 -1
  20. package/esm2015/lib/components/chart/chart-js/configured-chart-js.js +3 -3
  21. package/esm2015/lib/components/chart/chart-js/configured-chart-js.metadata.json +1 -1
  22. package/esm2015/lib/components/chart/configs/type.config.js +3 -2
  23. package/esm2015/lib/components/chart-deprecated/options/bar.js +2 -2
  24. package/esm2015/lib/components/chart-deprecated/options/column.js +2 -2
  25. package/esm2015/lib/components/icon/kirby-icon-settings.js +2 -1
  26. package/esm2015/lib/components/icon/kirby-icon-settings.metadata.json +1 -1
  27. package/esm2015/lib/components/index.js +1 -2
  28. package/esm2015/lib/components/index.metadata.json +1 -1
  29. package/esm2015/lib/components/list/directives/list-item-color.directive.js +1 -1
  30. package/esm2015/lib/components/list/list-item/list-item.component.js +1 -1
  31. package/esm2015/lib/components/list/list-item/list-item.component.metadata.json +1 -1
  32. package/esm2015/lib/components/list/list.component.js +1 -1
  33. package/esm2015/lib/components/list/list.component.metadata.json +1 -1
  34. package/esm2015/lib/components/modal/modal-wrapper/modal-wrapper.component.js +2 -2
  35. package/esm2015/lib/components/modal/modal-wrapper/modal-wrapper.component.metadata.json +1 -1
  36. package/esm2015/lib/components/radio/radio-group/radio-group.component.js +8 -4
  37. package/esm2015/lib/components/radio/radio-group/radio-group.component.metadata.json +1 -1
  38. package/esm2015/lib/components/segmented-control/segment-item.js +1 -1
  39. package/esm2015/lib/components/segmented-control/segmented-control.component.js +3 -3
  40. package/esm2015/lib/components/segmented-control/segmented-control.component.metadata.json +1 -1
  41. package/esm2015/lib/components/stock-chart-deprecated/options/stock-chart-deprecated-options.js +2 -2
  42. package/esm2015/lib/components/web-component-proxies.component.js +42 -0
  43. package/esm2015/lib/components/web-component-proxies.component.metadata.json +1 -0
  44. package/esm2015/lib/custom-elements-initializer.js +17 -0
  45. package/esm2015/lib/custom-elements-initializer.metadata.json +1 -0
  46. package/esm2015/lib/directives/fit-heading/fit-heading.directive.js +2 -2
  47. package/esm2015/lib/directives/fit-heading/fit-heading.directive.metadata.json +1 -1
  48. package/esm2015/lib/directives/theme-color/theme-color.directive.js +2 -3
  49. package/esm2015/lib/directives/theme-color/theme-color.directive.metadata.json +1 -1
  50. package/esm2015/lib/helpers/color-helper.js +2 -108
  51. package/esm2015/lib/helpers/color-helper.metadata.json +1 -1
  52. package/esm2015/lib/helpers/design-token-helper.js +2 -80
  53. package/esm2015/lib/helpers/design-token-helper.metadata.json +1 -1
  54. package/esm2015/lib/helpers/index.js +4 -2
  55. package/esm2015/lib/helpers/index.metadata.json +1 -1
  56. package/esm2015/lib/helpers/platform.service.js +2 -2
  57. package/esm2015/lib/helpers/string-helper.js +2 -45
  58. package/esm2015/lib/helpers/string-helper.metadata.json +1 -1
  59. package/esm2015/lib/helpers/theme-color.type.js +1 -1
  60. package/esm2015/lib/helpers/theme-color.type.metadata.json +1 -1
  61. package/esm2015/lib/index.js +5 -1
  62. package/esm2015/lib/index.metadata.json +1 -1
  63. package/esm2015/lib/kirby.module.js +4 -2
  64. package/esm2015/lib/kirby.module.metadata.json +1 -1
  65. package/esm2015/testing-base/kirbydesign-designsystem-testing-base.js +51 -52
  66. package/esm2015/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
  67. package/esm2015/testing-base/lib/directives/mock.theme-color.directive.js +1 -2
  68. package/esm2015/testing-base/lib/directives/mock.theme-color.directive.metadata.json +1 -1
  69. package/esm2015/testing-base/lib/mock-components.js +1 -3
  70. package/esm2015/testing-base/lib/mock-components.metadata.json +1 -1
  71. package/fesm2015/kirbydesign-designsystem-testing-base.js +2 -24
  72. package/fesm2015/kirbydesign-designsystem-testing-base.js.map +1 -1
  73. package/fesm2015/kirbydesign-designsystem.js +119 -533
  74. package/fesm2015/kirbydesign-designsystem.js.map +1 -1
  75. package/icons/svg/payment-card.svg +6 -0
  76. package/kirbydesign-designsystem.d.ts +76 -75
  77. package/kirbydesign-designsystem.metadata.json +1 -1
  78. package/lib/components/angular-component-lib/utils.d.ts +7 -0
  79. package/lib/components/avatar/avatar.component.d.ts +1 -1
  80. package/lib/components/button/button.component.d.ts +1 -1
  81. package/lib/components/card/card-header/card-header.component.d.ts +1 -1
  82. package/lib/components/flag/flag.component.d.ts +1 -1
  83. package/lib/components/index.d.ts +0 -1
  84. package/lib/components/list/directives/list-item-color.directive.d.ts +1 -1
  85. package/lib/components/list/list-item/list-item.component.d.ts +1 -1
  86. package/lib/components/list/list.component.d.ts +1 -1
  87. package/lib/components/progress-circle/progress-circle.component.d.ts +1 -1
  88. package/lib/components/radio/radio-group/radio-group.component.d.ts +1 -0
  89. package/lib/components/segmented-control/segment-item.d.ts +3 -2
  90. package/lib/components/web-component-proxies.component.d.ts +9 -0
  91. package/lib/custom-elements-initializer.d.ts +7 -0
  92. package/lib/directives/theme-color/theme-color.directive.d.ts +1 -1
  93. package/lib/helpers/color-helper.d.ts +1 -36
  94. package/lib/helpers/design-token-helper.d.ts +1 -42
  95. package/lib/helpers/index.d.ts +1 -1
  96. package/lib/helpers/string-helper.d.ts +1 -4
  97. package/lib/helpers/theme-color.type.d.ts +1 -1
  98. package/lib/index.d.ts +1 -0
  99. package/package.json +3 -2
  100. package/scss/base/_variables.scss +1 -0
  101. package/testing-base/kirbydesign-designsystem-testing-base.d.ts +50 -51
  102. package/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
  103. package/esm2015/lib/components/badge/badge.component.js +0 -14
  104. package/esm2015/lib/components/badge/badge.component.metadata.json +0 -1
  105. package/esm2015/lib/helpers/color-helper.styles.js +0 -194
  106. package/esm2015/lib/helpers/color-helper.styles.metadata.json +0 -1
  107. package/esm2015/lib/helpers/design-token-helper.styles.js +0 -79
  108. package/esm2015/lib/helpers/design-token-helper.styles.metadata.json +0 -1
  109. package/esm2015/testing-base/lib/components/mock.badge.component.js +0 -22
  110. package/esm2015/testing-base/lib/components/mock.badge.component.metadata.json +0 -1
  111. package/lib/components/badge/badge.component.d.ts +0 -3
  112. package/lib/helpers/color-helper.styles.d.ts +0 -206
  113. package/lib/helpers/design-token-helper.styles.d.ts +0 -124
  114. package/testing-base/lib/components/mock.badge.component.d.ts +0 -3
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ionic/angular'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('highcharts'), require('chart.js'), require('chartjs-plugin-annotation'), require('highcharts/highstock'), require('highcharts/modules/annotations'), require('date-fns'), require('date-fns-tz'), require('date-fns/locale'), require('@angular/forms'), require('inputmask/lib/extensions/inputmask.date.extensions'), require('inputmask/lib/inputmask'), require('inputmask/lib/extensions/inputmask.numeric.extensions'), require('@angular/animations'), require('ngx-ui-scroll')) :
3
- typeof define === 'function' && define.amd ? define('@kirbydesign/designsystem', ['exports', '@angular/core', '@ionic/angular', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common', 'highcharts', 'chart.js', 'chartjs-plugin-annotation', 'highcharts/highstock', 'highcharts/modules/annotations', 'date-fns', 'date-fns-tz', 'date-fns/locale', '@angular/forms', 'inputmask/lib/extensions/inputmask.date.extensions', 'inputmask/lib/inputmask', 'inputmask/lib/extensions/inputmask.numeric.extensions', '@angular/animations', 'ngx-ui-scroll'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.kirbydesign = global.kirbydesign || {}, global.kirbydesign.designsystem = {}), global.ng.core, global.ionic, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common, global.highcharts, global.chart_js, global.annotationPlugin, global['highcharts/highstock'], global.highcharts, global['date-fns'], global['date-fns-tz'], global.locale, global.ng.forms, null, global.inputmask, null, global.ng.animations, global['ngx-ui-scroll']));
5
- }(this, (function (exports, i0, i1, i1$1, rxjs, operators, common, Highcharts, chart_js, annotationPlugin, Highcharts$1, AnnotationsModule, dateFns, dateFnsTz, locale, forms, inputmask_date_extensions, Inputmask, inputmask_numeric_extensions, animations, ngxUiScroll) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@kirbydesign/core'), require('@angular/core'), require('@ionic/angular'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('highcharts'), require('chart.js'), require('chartjs-plugin-annotation'), require('highcharts/highstock'), require('highcharts/modules/annotations'), require('date-fns'), require('date-fns-tz'), require('date-fns/locale'), require('@angular/forms'), require('inputmask/lib/extensions/inputmask.date.extensions'), require('inputmask/lib/inputmask'), require('inputmask/lib/extensions/inputmask.numeric.extensions'), require('@angular/animations'), require('ngx-ui-scroll'), require('@kirbydesign/core/loader')) :
3
+ typeof define === 'function' && define.amd ? define('@kirbydesign/designsystem', ['exports', '@kirbydesign/core', '@angular/core', '@ionic/angular', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common', 'highcharts', 'chart.js', 'chartjs-plugin-annotation', 'highcharts/highstock', 'highcharts/modules/annotations', 'date-fns', 'date-fns-tz', 'date-fns/locale', '@angular/forms', 'inputmask/lib/extensions/inputmask.date.extensions', 'inputmask/lib/inputmask', 'inputmask/lib/extensions/inputmask.numeric.extensions', '@angular/animations', 'ngx-ui-scroll', '@kirbydesign/core/loader'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.kirbydesign = global.kirbydesign || {}, global.kirbydesign.designsystem = {}), global.core, global.ng.core, global.ionic, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common, global.highcharts, global.chart_js, global.annotationPlugin, global['highcharts/highstock'], global.highcharts, global['date-fns'], global['date-fns-tz'], global.locale, global.ng.forms, null, global.inputmask, null, global.ng.animations, global['ngx-ui-scroll'], global.loader));
5
+ }(this, (function (exports, core, i0, i1, i1$1, rxjs, operators, common, Highcharts, chart_js, annotationPlugin, Highcharts$1, AnnotationsModule, dateFns, dateFnsTz, locale, forms, inputmask_date_extensions, Inputmask, inputmask_numeric_extensions, animations, ngxUiScroll, loader) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -32,95 +32,16 @@
32
32
  var AnnotationsModule__default = /*#__PURE__*/_interopDefaultLegacy(AnnotationsModule);
33
33
  var Inputmask__default = /*#__PURE__*/_interopDefaultLegacy(Inputmask);
34
34
 
35
- var styles = {
36
- sizes: {
37
- xxxl: '56px',
38
- xxl: '48px',
39
- xl: '40px',
40
- l: '32px',
41
- m: '24px',
42
- s: '16px',
43
- xs: '12px',
44
- xxs: '8px',
45
- xxxs: '4px',
46
- xxxxs: '2px',
47
- },
48
- fontSizes: {
49
- xxxxl: '72px',
50
- xxxl: '56px',
51
- xxl: '40px',
52
- xl: '32px',
53
- l: '22px',
54
- m: '18px',
55
- n: '16px',
56
- s: '14px',
57
- xs: '12px',
58
- xxs: '10px',
59
- },
60
- lineHeight: { xl: '38px', l: '28px', m: '24px', n: '24px', s: '20px', xs: '16px', xxs: '11px' },
61
- fontWeight: { light: '300', normal: '400', bold: '700', black: '900' },
62
- iconFontSizes: { xs: '16px', sm: '24px', md: '32px', lg: '56px' },
63
- zLayers: {
64
- default: '1',
65
- segmentBadge: '2',
66
- dropdown: '800',
67
- popover: '850',
68
- modalOverlay: '900',
69
- modal: '901',
70
- loadingOverlay: '1001',
71
- },
72
- borderRadius: '16px',
73
- borderRadiusRound: '999px',
74
- breakpoints: {
75
- small: '321px',
76
- medium: '721px',
77
- large: '1025px',
78
- xlarge: '60em',
79
- xxlarge: '80em',
80
- },
81
- elevations: {
82
- 2: 'rgba(28, 28, 28, 0.3) 0px 5px 10px -10px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px',
83
- 4: 'rgba(28, 28, 28, 0.3) 0px 10px 15px -10px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px',
84
- 8: 'rgba(28, 28, 28, 0.3) 0px 20px 30px -15px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px',
85
- },
86
- avatarSizes: { xs: '32px', s: '40px', m: '56px', l: '96px' },
87
- avatarBadgeSize: '16px',
88
- pageContentMaxWidth: '720px',
89
- alertMaxWidth: '359px',
90
- compactModalMaxWidth: '359px',
91
- modalMaxWidth: '720px',
92
- modalHeights: { s: '288px', m: '460px', l: '576px' },
93
- modalDefaultHeight: '460px',
94
- drawerDefaultHeight: '288px',
95
- itemHeights: { m: '56px', s: '44px', xs: '32px' },
96
- dropdownItemHeight: '44px',
97
- fatFingerSize: '44px',
98
- checkboxRadioSizes: { xs: '32px', sm: '44px', md: '56px' },
99
- checkboxRadioSpacing: { toEdge: '16px', toLabel: '12px' },
100
- softKeyboardTransitionEnter: '250ms ease-out 1ms',
101
- softKeyboardTransitionLeave: '150ms ease-out',
102
- transitionDurations: { quick: '200ms', short: '300ms', long: '500ms', extraLong: '1000ms' },
103
- transitionEasings: {
104
- static: 'linear',
105
- enter: 'ease-out',
106
- exit: 'ease-in',
107
- enterExit: 'ease',
108
- motion: 'cubic-bezier(0.25, 0.1, 0.25, 1)',
109
- modal: { enter: 'cubic-bezier(0.32, 0.72, 0, 1)', exit: 'cubic-bezier(0.32, 0.72, 0, 1)' },
110
- },
111
- loadingOverlayBackdropOpacity: '0.8',
112
- };
113
-
114
35
  (function (KirbyAnimation) {
115
36
  var Duration;
116
37
  (function (Duration) {
117
38
  // Duration in milliseconds
118
- Duration[Duration["QUICK"] = parseInt(styles.transitionDurations.quick)] = "QUICK";
119
- Duration[Duration["SHORT"] = parseInt(styles.transitionDurations.short)] = "SHORT";
120
- Duration[Duration["LONG"] = parseInt(styles.transitionDurations.long)] = "LONG";
121
- Duration[Duration["EXTRA_LONG"] = parseInt(styles.transitionDurations.extraLong)] = "EXTRA_LONG";
39
+ Duration[Duration["QUICK"] = parseInt(core.DesignTokenHelper.transitionDuration('quick'))] = "QUICK";
40
+ Duration[Duration["SHORT"] = parseInt(core.DesignTokenHelper.transitionDuration('short'))] = "SHORT";
41
+ Duration[Duration["LONG"] = parseInt(core.DesignTokenHelper.transitionDuration('long'))] = "LONG";
42
+ Duration[Duration["EXTRA_LONG"] = parseInt(core.DesignTokenHelper.transitionDuration('extraLong'))] = "EXTRA_LONG";
122
43
  })(Duration = KirbyAnimation.Duration || (KirbyAnimation.Duration = {}));
123
- KirbyAnimation.Easing = styles.transitionEasings;
44
+ KirbyAnimation.Easing = core.DesignTokenHelper.transitionEasings();
124
45
  })(exports.KirbyAnimation || (exports.KirbyAnimation = {}));
125
46
 
126
47
  var RouterOutletComponent = /** @class */ (function () {
@@ -1191,442 +1112,6 @@
1191
1112
  onFocusChange: [{ type: i0.HostListener, args: ['window:focus',] }, { type: i0.HostListener, args: ['window:focusout',] }]
1192
1113
  };
1193
1114
 
1194
- var styles$1 = {
1195
- brandColors: { primary: '#00e89a', secondary: '#005c3c', tertiary: '#01352c' },
1196
- notificationColors: { success: '#2cf287', warning: '#ffca3a', danger: '#ff595e' },
1197
- systemColors: {
1198
- backgroundColor: '#f6f6f6',
1199
- white: '#ffffff',
1200
- light: '#f2f2f2',
1201
- semiLight: '#ebebeb',
1202
- medium: '#d1d1d1',
1203
- semiDark: '#8e8e8e',
1204
- dark: '#353535',
1205
- black: '#1c1c1c',
1206
- },
1207
- textColors: { white: '#ffffff', semiDark: '#707070', black: '#1c1c1c', danger: '#ee0d0d' },
1208
- focusRingColor: '#4d90fe',
1209
- mainColors: {
1210
- primary: '#00e89a',
1211
- secondary: '#005c3c',
1212
- tertiary: '#01352c',
1213
- success: '#2cf287',
1214
- warning: '#ffca3a',
1215
- danger: '#ff595e',
1216
- light: '#f2f2f2',
1217
- medium: '#d1d1d1',
1218
- dark: '#353535',
1219
- },
1220
- kirbyColors: {
1221
- black: '#1c1c1c',
1222
- blackRgb: '28, 28, 28',
1223
- blackContrast: '#ffffff',
1224
- blackContrastRgb: '255, 255, 255',
1225
- blackShade: '#191919',
1226
- blackShadeRgb: '25, 25, 25',
1227
- blackTint: '#333333',
1228
- blackTintRgb: '51, 51, 51',
1229
- blackColorBrightness: 'dark',
1230
- dark: '#353535',
1231
- darkRgb: '53, 53, 53',
1232
- darkContrast: '#ffffff',
1233
- darkContrastRgb: '255, 255, 255',
1234
- darkShade: '#2f2f2f',
1235
- darkShadeRgb: '47, 47, 47',
1236
- darkTint: '#494949',
1237
- darkTintRgb: '73, 73, 73',
1238
- darkColorBrightness: 'dark',
1239
- semiDark: '#8e8e8e',
1240
- semiDarkRgb: '142, 142, 142',
1241
- semiDarkContrast: '#1c1c1c',
1242
- semiDarkContrastRgb: '28, 28, 28',
1243
- semiDarkShade: '#7d7d7d',
1244
- semiDarkShadeRgb: '125, 125, 125',
1245
- semiDarkTint: '#999999',
1246
- semiDarkTintRgb: '153, 153, 153',
1247
- semiDarkColorBrightness: 'light',
1248
- medium: '#d1d1d1',
1249
- mediumRgb: '209, 209, 209',
1250
- mediumContrast: '#1c1c1c',
1251
- mediumContrastRgb: '28, 28, 28',
1252
- mediumShade: '#b8b8b8',
1253
- mediumShadeRgb: '184, 184, 184',
1254
- mediumTint: '#d6d6d6',
1255
- mediumTintRgb: '214, 214, 214',
1256
- mediumColorBrightness: 'light',
1257
- semiLight: '#ebebeb',
1258
- semiLightRgb: '235, 235, 235',
1259
- semiLightContrast: '#1c1c1c',
1260
- semiLightContrastRgb: '28, 28, 28',
1261
- semiLightShade: '#cfcfcf',
1262
- semiLightShadeRgb: '207, 207, 207',
1263
- semiLightTint: '#ededed',
1264
- semiLightTintRgb: '237, 237, 237',
1265
- semiLightColorBrightness: 'light',
1266
- light: '#f2f2f2',
1267
- lightRgb: '242, 242, 242',
1268
- lightContrast: '#1c1c1c',
1269
- lightContrastRgb: '28, 28, 28',
1270
- lightShade: '#d5d5d5',
1271
- lightShadeRgb: '213, 213, 213',
1272
- lightTint: '#f3f3f3',
1273
- lightTintRgb: '243, 243, 243',
1274
- lightColorBrightness: 'light',
1275
- white: '#ffffff',
1276
- whiteRgb: '255, 255, 255',
1277
- whiteContrast: '#1c1c1c',
1278
- whiteContrastRgb: '28, 28, 28',
1279
- whiteShade: '#e0e0e0',
1280
- whiteShadeRgb: '224, 224, 224',
1281
- whiteTint: 'white',
1282
- whiteTintRgb: '255, 255, 255',
1283
- whiteColorBrightness: 'white',
1284
- backgroundColor: '#f6f6f6',
1285
- backgroundColorRgb: '246, 246, 246',
1286
- backgroundColorContrast: '#1c1c1c',
1287
- backgroundColorContrastRgb: '28, 28, 28',
1288
- backgroundColorShade: '#d8d8d8',
1289
- backgroundColorShadeRgb: '216, 216, 216',
1290
- backgroundColorTint: '#f7f7f7',
1291
- backgroundColorTintRgb: '247, 247, 247',
1292
- backgroundColorColorBrightness: 'light',
1293
- danger: '#ff595e',
1294
- dangerRgb: '255, 89, 94',
1295
- dangerContrast: '#1c1c1c',
1296
- dangerContrastRgb: '28, 28, 28',
1297
- dangerShade: '#e04e53',
1298
- dangerShadeRgb: '224, 78, 83',
1299
- dangerTint: '#ff6a6e',
1300
- dangerTintRgb: '255, 106, 110',
1301
- dangerColorBrightness: 'light',
1302
- warning: '#ffca3a',
1303
- warningRgb: '255, 202, 58',
1304
- warningContrast: '#1c1c1c',
1305
- warningContrastRgb: '28, 28, 28',
1306
- warningShade: '#e0b233',
1307
- warningShadeRgb: '224, 178, 51',
1308
- warningTint: '#ffcf4e',
1309
- warningTintRgb: '255, 207, 78',
1310
- warningColorBrightness: 'light',
1311
- success: '#2cf287',
1312
- successRgb: '44, 242, 135',
1313
- successContrast: '#1c1c1c',
1314
- successContrastRgb: '28, 28, 28',
1315
- successShade: '#27d577',
1316
- successShadeRgb: '39, 213, 119',
1317
- successTint: '#41f393',
1318
- successTintRgb: '65, 243, 147',
1319
- successColorBrightness: 'light',
1320
- tertiary: '#01352c',
1321
- tertiaryRgb: '1, 53, 44',
1322
- tertiaryContrast: '#ffffff',
1323
- tertiaryContrastRgb: '255, 255, 255',
1324
- tertiaryShade: '#012f27',
1325
- tertiaryShadeRgb: '1, 47, 39',
1326
- tertiaryTint: '#1a4941',
1327
- tertiaryTintRgb: '26, 73, 65',
1328
- tertiaryColorBrightness: 'dark',
1329
- secondary: '#005c3c',
1330
- secondaryRgb: '0, 92, 60',
1331
- secondaryContrast: '#ffffff',
1332
- secondaryContrastRgb: '255, 255, 255',
1333
- secondaryShade: '#005135',
1334
- secondaryShadeRgb: '0, 81, 53',
1335
- secondaryTint: '#1a6c50',
1336
- secondaryTintRgb: '26, 108, 80',
1337
- secondaryColorBrightness: 'dark',
1338
- primary: '#00e89a',
1339
- primaryRgb: '0, 232, 154',
1340
- primaryContrast: '#1c1c1c',
1341
- primaryContrastRgb: '28, 28, 28',
1342
- primaryShade: '#00cc88',
1343
- primaryShadeRgb: '0, 204, 136',
1344
- primaryTint: '#1aeaa4',
1345
- primaryTintRgb: '26, 234, 164',
1346
- primaryColorBrightness: 'light',
1347
- },
1348
- kirbyTextColors: {
1349
- danger: '#ee0d0d',
1350
- dangerRgb: '238, 13, 13',
1351
- dangerContrast: '#ffffff',
1352
- dangerContrastRgb: '255, 255, 255',
1353
- dangerShade: '#d10b0b',
1354
- dangerShadeRgb: '209, 11, 11',
1355
- dangerTint: '#f02525',
1356
- dangerTintRgb: '240, 37, 37',
1357
- dangerColorBrightness: 'dark',
1358
- black: '#1c1c1c',
1359
- blackRgb: '28, 28, 28',
1360
- blackContrast: '#ffffff',
1361
- blackContrastRgb: '255, 255, 255',
1362
- blackShade: '#191919',
1363
- blackShadeRgb: '25, 25, 25',
1364
- blackTint: '#333333',
1365
- blackTintRgb: '51, 51, 51',
1366
- blackColorBrightness: 'dark',
1367
- semiDark: '#707070',
1368
- semiDarkRgb: '112, 112, 112',
1369
- semiDarkContrast: '#ffffff',
1370
- semiDarkContrastRgb: '255, 255, 255',
1371
- semiDarkShade: '#636363',
1372
- semiDarkShadeRgb: '99, 99, 99',
1373
- semiDarkTint: '#7e7e7e',
1374
- semiDarkTintRgb: '126, 126, 126',
1375
- semiDarkColorBrightness: 'dark',
1376
- white: '#ffffff',
1377
- whiteRgb: '255, 255, 255',
1378
- whiteContrast: '#1c1c1c',
1379
- whiteContrastRgb: '28, 28, 28',
1380
- whiteShade: '#e0e0e0',
1381
- whiteShadeRgb: '224, 224, 224',
1382
- whiteTint: 'white',
1383
- whiteTintRgb: '255, 255, 255',
1384
- whiteColorBrightness: 'white',
1385
- },
1386
- };
1387
-
1388
- var kebabToCamelCase = function (kebabString) {
1389
- if (!kebabString.length || kebabString.length === 1) {
1390
- return kebabString;
1391
- }
1392
- var stringInCamelCase = kebabString
1393
- .split('-')
1394
- .map(function (part, index) { return (index === 0 ? part : part[0].toUpperCase() + part.substr(1)); })
1395
- .join('');
1396
- return stringInCamelCase;
1397
- };
1398
- var camelToKebabCase = function (camelString) {
1399
- if (!camelString.length || camelString.length === 1) {
1400
- return camelString;
1401
- }
1402
- var stringInKebabCase = camelString
1403
- .split('')
1404
- .map(function (char, index) {
1405
- var isUppercase = char.toUpperCase() === char;
1406
- if (!isUppercase || char === '-') {
1407
- return char;
1408
- }
1409
- return index === 0 ? char.toLowerCase() : "-" + char.toLowerCase();
1410
- })
1411
- .join('');
1412
- return stringInKebabCase;
1413
- };
1414
- var kebabToTitleCase = function (kebabString) {
1415
- if (!kebabString.length || kebabString.length === 1) {
1416
- return kebabString;
1417
- }
1418
- var stringInTitleCase = kebabString
1419
- .split('-')
1420
- .map(function (word) {
1421
- return word[0].toUpperCase() + word.slice(1);
1422
- })
1423
- .join(' ');
1424
- return stringInTitleCase;
1425
- };
1426
- var capitalizeFirstLetter = function (string) {
1427
- if (typeof string !== 'string') {
1428
- return '';
1429
- }
1430
- return string.charAt(0).toUpperCase() + string.slice(1);
1431
- };
1432
-
1433
- var ColorHelper = /** @class */ (function () {
1434
- function ColorHelper() {
1435
- }
1436
- ColorHelper.getMainColors = function () {
1437
- // Do not remove the `colorArray` const, since it'll break the ngpackagr build, for more info see:
1438
- // https://github.com/ng-packagr/ng-packagr/issues/696
1439
- var colorArray = Object.entries(styles$1.mainColors).map(function (_a) {
1440
- var _b = __read(_a, 2), name = _b[0], value = _b[1];
1441
- return ({ name: name, value: value });
1442
- });
1443
- return colorArray;
1444
- };
1445
- ColorHelper.mapToKirbyColorArray = function (colors, fullColorMap) {
1446
- if (fullColorMap === void 0) { fullColorMap = styles$1.kirbyColors; }
1447
- var TINT = 'Tint';
1448
- var SHADE = 'Shade';
1449
- var CONTRAST = 'Contrast';
1450
- var colorArray = Object.entries(colors).map(function (_a) {
1451
- var _b = __read(_a, 2), name = _b[0], value = _b[1];
1452
- return ({
1453
- name: camelToKebabCase(name),
1454
- value: value,
1455
- base: value,
1456
- tint: {
1457
- value: fullColorMap[name + TINT],
1458
- name: camelToKebabCase(name + TINT),
1459
- },
1460
- shade: {
1461
- value: fullColorMap[name + SHADE],
1462
- name: camelToKebabCase(name + SHADE),
1463
- },
1464
- contrast: {
1465
- value: fullColorMap[name + CONTRAST],
1466
- name: camelToKebabCase(name + CONTRAST),
1467
- },
1468
- });
1469
- });
1470
- // Do not remove the `colorArray` const, since it'll break the ngpackagr build, for more info see:
1471
- // https://github.com/ng-packagr/ng-packagr/issues/696
1472
- return colorArray;
1473
- };
1474
- ColorHelper.getBackgroundColor = function () {
1475
- return ColorHelper.getColor('background-color');
1476
- };
1477
- ColorHelper.getColorBrightness = function (name) {
1478
- return ColorHelper.getColor(name + '-color-brightness');
1479
- };
1480
- ColorHelper.getThemeColorRgbString = function (name) {
1481
- var rgbValue = ColorHelper.getColor(name + '-rgb');
1482
- return "rgb(" + rgbValue + ")";
1483
- };
1484
- ColorHelper.getThemeTextColorRgbString = function (name) {
1485
- var rgbValue = ColorHelper.getTextColor(name + '-rgb');
1486
- return "rgb(" + rgbValue + ")";
1487
- };
1488
- ColorHelper.getThemeColorHexString = function (name) {
1489
- return ColorHelper.getColor(name);
1490
- };
1491
- ColorHelper.getThemeTextColorHexString = function (name) {
1492
- return ColorHelper.getTextColor(name);
1493
- };
1494
- ColorHelper.getTransparentColorRgbString = function () {
1495
- return 'rgba(0, 0, 0, 0)';
1496
- };
1497
- ColorHelper.colorStringToRgbString = function (color) {
1498
- if (color.indexOf('rgb') === 0) {
1499
- return color;
1500
- }
1501
- if (color.indexOf('#') === 0) {
1502
- return ColorHelper.hexToRGB(color);
1503
- }
1504
- if (color.split(',').length === 3) {
1505
- return "rgb(" + color + ")";
1506
- }
1507
- if (color.split(',').length === 4) {
1508
- return "rgba(" + color + ")";
1509
- }
1510
- var ctx = document.createElement('canvas').getContext('2d');
1511
- ctx.fillStyle = color;
1512
- var renderedColor = ctx.fillStyle.toString();
1513
- return ColorHelper.colorStringToRgbString(renderedColor);
1514
- };
1515
- ColorHelper.hexToRGB = function (hex) {
1516
- var r = '0', g = '0', b = '0';
1517
- // 3 digits
1518
- if (hex.length === 4) {
1519
- r = '0x' + hex[1] + hex[1];
1520
- g = '0x' + hex[2] + hex[2];
1521
- b = '0x' + hex[3] + hex[3];
1522
- // 6 digits
1523
- }
1524
- else if (hex.length === 7) {
1525
- r = '0x' + hex[1] + hex[2];
1526
- g = '0x' + hex[3] + hex[4];
1527
- b = '0x' + hex[5] + hex[6];
1528
- }
1529
- return "rgb(" + +r + ", " + +g + ", " + +b + ")";
1530
- };
1531
- ColorHelper.getColor = function (name) {
1532
- var camelCaseKey = kebabToCamelCase(name);
1533
- var found = styles$1.kirbyColors[camelCaseKey];
1534
- return found || null;
1535
- };
1536
- ColorHelper.getTextColor = function (name) {
1537
- var camelCaseKey = kebabToCamelCase(name);
1538
- var found = styles$1.kirbyTextColors[camelCaseKey];
1539
- return found || null;
1540
- };
1541
- return ColorHelper;
1542
- }());
1543
- ColorHelper.brandColors = ColorHelper.mapToKirbyColorArray(styles$1.brandColors);
1544
- ColorHelper.notificationColors = ColorHelper.mapToKirbyColorArray(styles$1.notificationColors);
1545
- ColorHelper.systemColors = ColorHelper.mapToKirbyColorArray(styles$1.systemColors);
1546
- ColorHelper.textColors = ColorHelper.mapToKirbyColorArray(styles$1.textColors, styles$1.kirbyTextColors);
1547
- ColorHelper.mainColors = ColorHelper.getMainColors();
1548
-
1549
- var DesignTokenHelper = /** @class */ (function () {
1550
- function DesignTokenHelper() {
1551
- }
1552
- DesignTokenHelper.getColor = function (name, variant) {
1553
- var variantSuffix = variant ? "-" + variant : '';
1554
- var colorVariant = "" + name + variantSuffix;
1555
- return {
1556
- name: name,
1557
- variant: variant,
1558
- fullname: colorVariant,
1559
- value: ColorHelper.getThemeColorRgbString(colorVariant),
1560
- hex: ColorHelper.getThemeColorHexString(colorVariant),
1561
- };
1562
- };
1563
- DesignTokenHelper.getTextColor = function (name, variant) {
1564
- var variantSuffix = variant ? "-" + variant : '';
1565
- var colorVariant = "" + name + variantSuffix;
1566
- return {
1567
- name: name,
1568
- variant: variant,
1569
- fullname: colorVariant,
1570
- value: ColorHelper.getThemeTextColorRgbString(colorVariant),
1571
- hex: ColorHelper.getThemeTextColorHexString(colorVariant),
1572
- };
1573
- };
1574
- DesignTokenHelper.size = function (key) {
1575
- return styles.sizes[key];
1576
- };
1577
- DesignTokenHelper.fontSize = function (key) {
1578
- return styles.fontSizes[key];
1579
- };
1580
- DesignTokenHelper.iconFontSize = function (key) {
1581
- return styles.iconFontSizes[key];
1582
- };
1583
- DesignTokenHelper.fontWeight = function (key) {
1584
- return styles.fontWeight[key];
1585
- };
1586
- DesignTokenHelper.lineHeight = function (key) {
1587
- return styles.lineHeight[key];
1588
- };
1589
- DesignTokenHelper.backgroundColor = function () {
1590
- return ColorHelper.getBackgroundColor();
1591
- };
1592
- DesignTokenHelper.borderRadius = function () {
1593
- return styles.borderRadius;
1594
- };
1595
- DesignTokenHelper.borderRadiusRound = function () {
1596
- return styles.borderRadiusRound;
1597
- };
1598
- DesignTokenHelper.alertMaxWidth = function () {
1599
- return styles.alertMaxWidth;
1600
- };
1601
- DesignTokenHelper.compactModalMaxWidth = function () {
1602
- return styles.compactModalMaxWidth;
1603
- };
1604
- DesignTokenHelper.dropdownItemHeight = function () {
1605
- return styles.dropdownItemHeight;
1606
- };
1607
- DesignTokenHelper.avatarSize = function (key) {
1608
- return styles.avatarSizes[key];
1609
- };
1610
- DesignTokenHelper.fatFingerSize = function () {
1611
- return styles.fatFingerSize;
1612
- };
1613
- DesignTokenHelper.getElevation = function (z) {
1614
- return styles.elevations[z];
1615
- };
1616
- DesignTokenHelper.itemHeight = function (key) {
1617
- return styles.itemHeights[key];
1618
- };
1619
- DesignTokenHelper.zLayer = function (key) {
1620
- return styles.zLayers[key];
1621
- };
1622
- return DesignTokenHelper;
1623
- }());
1624
- DesignTokenHelper.breakpoints = styles.breakpoints;
1625
- DesignTokenHelper.softKeyboardTransitionEnter = styles.softKeyboardTransitionEnter;
1626
- DesignTokenHelper.softKeyboardTransitionLeave = styles.softKeyboardTransitionLeave;
1627
- DesignTokenHelper.modalDefaultHeight = styles.modalDefaultHeight;
1628
- DesignTokenHelper.drawerDefaultHeight = styles.drawerDefaultHeight;
1629
-
1630
1115
  var PlatformService = /** @class */ (function () {
1631
1116
  function PlatformService(windowRef) {
1632
1117
  this.windowRef = windowRef;
@@ -1636,7 +1121,7 @@
1636
1121
  return this.windowRef.nativeWindow.matchMedia(isTouchDeviceQuery).matches;
1637
1122
  };
1638
1123
  PlatformService.prototype.isPhabletOrBigger = function () {
1639
- var query = "(min-width: " + DesignTokenHelper.breakpoints.medium + ")";
1124
+ var query = "(min-width: " + core.DesignTokenHelper.breakpoints.medium + ")";
1640
1125
  return this.windowRef.nativeWindow.matchMedia(query).matches;
1641
1126
  };
1642
1127
  return PlatformService;
@@ -1742,6 +1227,7 @@
1742
1227
  { name: 'misc', svg: 'assets/kirby/icons/svg/misc.svg' },
1743
1228
  { name: 'more', svg: 'assets/kirby/icons/svg/more.svg' },
1744
1229
  { name: 'move', svg: 'assets/kirby/icons/svg/move.svg' },
1230
+ { name: 'payment-card', svg: 'assets/kirby/icons/svg/payment-card.svg' },
1745
1231
  { name: 'pension', svg: 'assets/kirby/icons/svg/pension.svg' },
1746
1232
  { name: 'person-outline', svg: 'assets/kirby/icons/svg/person-outline.svg' },
1747
1233
  { name: 'person', svg: 'assets/kirby/icons/svg/person.svg' },
@@ -2186,7 +1672,7 @@
2186
1672
  _this.renderer.setStyle(scrollElement, 'height', '100%');
2187
1673
  _this.renderer.setStyle(scrollElement, 'position', 'relative');
2188
1674
  if (_this.config.flavor === 'drawer') {
2189
- _this.renderer.setStyle(scrollElement, 'transition', 'padding-bottom ' + DesignTokenHelper.softKeyboardTransitionLeave);
1675
+ _this.renderer.setStyle(scrollElement, 'transition', 'padding-bottom ' + core.DesignTokenHelper.softKeyboardTransitionLeave);
2190
1676
  }
2191
1677
  });
2192
1678
  };
@@ -3314,7 +2800,7 @@
3314
2800
  selector: 'kirby-avatar',
3315
2801
  template: "<div class=\"avatar\" [ngClass]=\"{ shadow: shadow, overlay: overlay }\">\n <img *ngIf=\"imageSrc\" [src]=\"imageSrc\" [attr.alt]=\"altText\" />\n <ng-content *ngIf=\"!text\" select=\"kirby-icon\"></ng-content>\n <span class=\"avatar-text\" *ngIf=\"text\">{{ text }}</span>\n</div>\n<ng-content select=\"kirby-badge\"></ng-content>\n",
3316
2802
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
3317
- styles: [":host{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--kirby-badge-position:absolute;--kirby-badge-right:-2px;--kirby-badge-top:-2px;--kirby-badge-zindex:2}.avatar,:host{position:relative}.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;z-index:1;display:flex;justify-content:center;align-items:center;background-color:var(--kirby-white);color:var(--kirby-light-contrast);--kirby-icon-font-size:24px}.avatar.shadow{box-shadow:0 2px 4px 2px hsla(0,0%,44.3%,.4)}.avatar.overlay:before{content:\"\";background-color:var(--kirby-black);opacity:.05;width:100%;height:100%;position:absolute;top:0;left:0}.avatar img{object-fit:cover;max-width:100%;height:100%;width:100%}:host(.xs) .avatar{width:32px;height:32px;border-radius:8px}:host(.xs) .avatar .avatar-text{font-size:14px}:host(.sm) .avatar,:host-context(kirby-progress-circle.sm) .avatar{width:40px;height:40px}:host(.sm) .avatar .avatar-text,:host-context(kirby-progress-circle.sm) .avatar .avatar-text{font-size:14px}:host(.md),:host-context(kirby-progress-circle.md){--kirby-badge-right:0px;--kirby-badge-top:0px}:host(.md) .avatar,:host-context(kirby-progress-circle.md) .avatar{width:56px;height:56px;--kirby-icon-font-size:32px}:host(.md) .avatar .avatar-text,:host-context(kirby-progress-circle.md) .avatar .avatar-text{font-size:18px}:host(.lg),:host-context(kirby-progress-circle.lg){--kirby-badge-right:6px;--kirby-badge-top:6px}:host(.lg) .avatar,:host-context(kirby-progress-circle.lg) .avatar{width:96px;height:96px;--kirby-icon-font-size:56px}:host(.lg) .avatar .avatar-text,:host-context(kirby-progress-circle.lg) .avatar .avatar-text{font-size:32px}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}:host-context(kirby-item)[slot=start].xs{margin-inline-end:16px}:host(.primary) .avatar{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}:host(.secondary) .avatar{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}:host(.tertiary) .avatar{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}:host(.success) .avatar{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}:host(.warning) .avatar{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}:host(.danger) .avatar{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}:host(.light) .avatar{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}:host(.medium) .avatar{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}:host(.dark) .avatar{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}:host(.white) .avatar{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}:host(.semi-light) .avatar{background-color:var(--kirby-semi-light);color:var(--kirby-semi-light-contrast)}"]
2803
+ styles: [":host{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--kirby-badge-position:absolute;--kirby-badge-right:-2px;--kirby-badge-top:-2px;--kirby-badge-z-index:2}.avatar,:host{position:relative}.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;z-index:1;display:flex;justify-content:center;align-items:center;background-color:var(--kirby-white);color:var(--kirby-light-contrast);--kirby-icon-font-size:24px}.avatar.shadow{box-shadow:0 2px 4px 2px hsla(0,0%,44.3%,.4)}.avatar.overlay:before{content:\"\";background-color:var(--kirby-black);opacity:.05;width:100%;height:100%;position:absolute;top:0;left:0}.avatar img{object-fit:cover;max-width:100%;height:100%;width:100%}:host(.xs) .avatar{width:32px;height:32px;border-radius:8px}:host(.xs) .avatar .avatar-text{font-size:14px}:host(.sm) .avatar,:host-context(kirby-progress-circle.sm) .avatar{width:40px;height:40px}:host(.sm) .avatar .avatar-text,:host-context(kirby-progress-circle.sm) .avatar .avatar-text{font-size:14px}:host(.md),:host-context(kirby-progress-circle.md){--kirby-badge-right:0px;--kirby-badge-top:0px}:host(.md) .avatar,:host-context(kirby-progress-circle.md) .avatar{width:56px;height:56px;--kirby-icon-font-size:32px}:host(.md) .avatar .avatar-text,:host-context(kirby-progress-circle.md) .avatar .avatar-text{font-size:18px}:host(.lg),:host-context(kirby-progress-circle.lg){--kirby-badge-right:6px;--kirby-badge-top:6px}:host(.lg) .avatar,:host-context(kirby-progress-circle.lg) .avatar{width:96px;height:96px;--kirby-icon-font-size:56px}:host(.lg) .avatar .avatar-text,:host-context(kirby-progress-circle.lg) .avatar .avatar-text{font-size:32px}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}:host-context(kirby-item)[slot=start].xs{margin-inline-end:16px}:host(.primary) .avatar{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}:host(.secondary) .avatar{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}:host(.tertiary) .avatar{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}:host(.success) .avatar{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}:host(.warning) .avatar{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}:host(.danger) .avatar{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}:host(.light) .avatar{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}:host(.medium) .avatar{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}:host(.dark) .avatar{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}:host(.white) .avatar{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}:host(.semi-light) .avatar{background-color:var(--kirby-semi-light);color:var(--kirby-semi-light-contrast)}"]
3318
2804
  },] }
3319
2805
  ];
3320
2806
  AvatarComponent.propDecorators = {
@@ -3328,22 +2814,6 @@
3328
2814
  _cssClass: [{ type: i0.HostBinding, args: ['class',] }]
3329
2815
  };
3330
2816
 
3331
- var BadgeComponent = /** @class */ (function () {
3332
- function BadgeComponent() {
3333
- }
3334
- return BadgeComponent;
3335
- }());
3336
- BadgeComponent.decorators = [
3337
- { type: i0.Component, args: [{
3338
- selector: 'kirby-badge',
3339
- template: "<ion-badge color=\"none\">\n <ng-content *ngIf=\"!text\"></ng-content>\n <ng-container *ngIf=\"text\">{{ text }}</ng-container>\n</ion-badge>\n",
3340
- styles: [":root{--kirby-badge-elevation:none;--kirby-badge-position:relative;--kirby-badge-left:0;--kirby-badge-right:0;--kirby-badge-top:0;--kirby-badge-zindex:none}:host{--kirby-badge-background-color:var(--kirby-white);--kirby-badge-color:var(--kirby-white-contrast);--ion-color-base:var(--kirby-badge-background-color);--ion-color-contrast:var(--kirby-badge-color);position:var(--kirby-badge-position);left:var(--kirby-badge-left);right:var(--kirby-badge-right);top:var(--kirby-badge-top);z-index:var(--kirby-badge-zindex);font-size:10px;line-height:1}:host ion-badge{--padding-top:3px;--padding-end:5px;--padding-bottom:3px;--padding-start:5px;box-sizing:border-box;border-radius:8px;min-width:16px;min-height:16px;font-size:inherit;position:relative;box-shadow:var(--kirby-badge-elevation)}:host ::ng-deep kirby-icon{--kirby-icon-font-size:16px;position:absolute;top:0;left:0}:host(.success){--kirby-badge-background-color:var(--kirby-success);--kirby-badge-color:var(--kirby-success-contrast)}:host(.warning){--kirby-badge-background-color:var(--kirby-warning);--kirby-badge-color:var(--kirby-warning-contrast)}:host(.danger){--kirby-badge-background-color:var(--kirby-danger);--kirby-badge-color:var(--kirby-danger-contrast);--kirby-badge-color:var(--kirby-white)}:host(.white){--kirby-badge-background-color:var(--kirby-white);--kirby-badge-color:var(--kirby-white-contrast)}"]
3341
- },] }
3342
- ];
3343
- BadgeComponent.propDecorators = {
3344
- text: [{ type: i0.Input }]
3345
- };
3346
-
3347
2817
  var CardComponent = /** @class */ (function () {
3348
2818
  function CardComponent(elementRef, resizeObserverService, renderer) {
3349
2819
  this.elementRef = elementRef;
@@ -3719,8 +3189,8 @@
3719
3189
  ],
3720
3190
  };
3721
3191
 
3722
- var getColor = DesignTokenHelper.getColor;
3723
- var fontSize = DesignTokenHelper.fontSize;
3192
+ var getColor = core.DesignTokenHelper.getColor;
3193
+ var fontSize = core.DesignTokenHelper.fontSize;
3724
3194
  function colorPoints() {
3725
3195
  var series = this.series;
3726
3196
  for (var i = 0, ie = series.length; i < ie; ++i) {
@@ -3807,8 +3277,8 @@
3807
3277
  },
3808
3278
  };
3809
3279
 
3810
- var getColor$1 = DesignTokenHelper.getColor;
3811
- var fontSize$1 = DesignTokenHelper.fontSize;
3280
+ var getColor$1 = core.DesignTokenHelper.getColor;
3281
+ var fontSize$1 = core.DesignTokenHelper.fontSize;
3812
3282
  function colorPoints$1() {
3813
3283
  var series = this.series;
3814
3284
  for (var i = 0, ie = series.length; i < ie; ++i) {
@@ -4343,7 +3813,9 @@
4343
3813
  return JSON.parse(JSON.stringify(obj));
4344
3814
  }
4345
3815
 
4346
- var getThemeColorHexString = ColorHelper.getThemeColorHexString;
3816
+ // re-export helpers from core, to preserve backwards compatability
3817
+
3818
+ var getThemeColorHexString = core.ColorHelper.getThemeColorHexString;
4347
3819
  /* The chart.js annotation does not allow for changing the
4348
3820
  defaults it comes with. In order to have sensible defaults
4349
3821
  this object is used instead and manually merged with the
@@ -4388,8 +3860,8 @@
4388
3860
  onHover: ɵ0$5,
4389
3861
  };
4390
3862
 
4391
- var fontSize$2 = DesignTokenHelper.fontSize;
4392
- var getThemeColorHexString$1 = ColorHelper.getThemeColorHexString;
3863
+ var fontSize$2 = core.DesignTokenHelper.fontSize;
3864
+ var getThemeColorHexString$1 = core.ColorHelper.getThemeColorHexString, getThemeColorRgbString = core.ColorHelper.getThemeColorRgbString;
4393
3865
  var CHART_TYPES_CONFIG = {
4394
3866
  bar: {
4395
3867
  type: 'bar',
@@ -4463,6 +3935,7 @@
4463
3935
  line: {
4464
3936
  type: 'line',
4465
3937
  options: {
3938
+ backgroundColor: getThemeColorRgbString('semi-light', 0.5),
4466
3939
  scales: {
4467
3940
  x: {
4468
3941
  grid: {
@@ -4511,7 +3984,7 @@
4511
3984
  { type: i0.Injectable }
4512
3985
  ];
4513
3986
 
4514
- var getThemeColorHexString$2 = ColorHelper.getThemeColorHexString;
3987
+ var getThemeColorHexString$2 = core.ColorHelper.getThemeColorHexString;
4515
3988
  var hoverBackgroundColor = getThemeColorHexString$2('primary');
4516
3989
  var backgroundColor = getThemeColorHexString$2('secondary');
4517
3990
  // Highlight elements that are added to the highlightedElements array
@@ -4533,7 +4006,7 @@
4533
4006
  }
4534
4007
  }
4535
4008
 
4536
- var getThemeColorHexString$3 = ColorHelper.getThemeColorHexString;
4009
+ var getThemeColorHexString$3 = core.ColorHelper.getThemeColorHexString;
4537
4010
  var CHART_GLOBAL_DEFAULTS = {
4538
4011
  maintainAspectRatio: false,
4539
4012
  color: getThemeColorHexString$3('black'),
@@ -4576,7 +4049,7 @@
4576
4049
  var CHART_SCALES = [chart_js.CategoryScale, chart_js.LinearScale];
4577
4050
  var CHART_ELEMENTS = [chart_js.BarElement, chart_js.LineElement, chart_js.PointElement];
4578
4051
  var CHART_CONTROLLERS = [chart_js.BarController, chart_js.LineController];
4579
- var CHART_PLUGINS = [annotationPlugin__default['default']];
4052
+ var CHART_PLUGINS = [annotationPlugin__default['default'], chart_js.Filler];
4580
4053
  /* Order matters; defaults must be merged after register as
4581
4054
  register modifies the Chart.defaults objects */
4582
4055
  chart_js.Chart.register.apply(chart_js.Chart, __spread([chart_js.Legend], CHART_SCALES, CHART_ELEMENTS, CHART_CONTROLLERS, CHART_PLUGINS));
@@ -4859,7 +4332,7 @@
4859
4332
  var transparentColor = 'rgba(255,255,255,0)';
4860
4333
  options.chart.backgroundColor = transparentColor;
4861
4334
  options.chart.height = height;
4862
- options.tooltip.backgroundColor = ColorHelper.getThemeColorRgbString('background-color');
4335
+ options.tooltip.backgroundColor = core.ColorHelper.getThemeColorRgbString('background-color');
4863
4336
  // Using a function instead of a lamdba-expression because of a reference to this.
4864
4337
  options.tooltip.formatter = function () {
4865
4338
  return ('<div class="kirby-text-xsmall">' +
@@ -4870,19 +4343,19 @@
4870
4343
  '</div>');
4871
4344
  };
4872
4345
  options.plotOptions.area.fillColor = transparentColor;
4873
- options.plotOptions.area.lineColor = ColorHelper.getThemeColorRgbString('tertiary');
4346
+ options.plotOptions.area.lineColor = core.ColorHelper.getThemeColorRgbString('tertiary');
4874
4347
  options.plotOptions.area.marker.lineColor = 'rgba(255,255,255,0.3)';
4875
- options.plotOptions.area.marker.fillColor = ColorHelper.getThemeColorRgbString('primary');
4348
+ options.plotOptions.area.marker.fillColor = core.ColorHelper.getThemeColorRgbString('primary');
4876
4349
  options.xAxis = Object.assign(Object.assign({}, options.xAxis), { crosshair: {
4877
- color: ColorHelper.getThemeColorRgbString('primary'),
4878
- }, tickColor: transparentColor, lineColor: ColorHelper.getThemeColorRgbString('medium'), labels: {
4350
+ color: core.ColorHelper.getThemeColorRgbString('primary'),
4351
+ }, tickColor: transparentColor, lineColor: core.ColorHelper.getThemeColorRgbString('medium'), labels: {
4879
4352
  style: {
4880
- color: ColorHelper.getThemeColorRgbString('semi-dark-tint'),
4353
+ color: core.ColorHelper.getThemeColorRgbString('semi-dark-tint'),
4881
4354
  },
4882
4355
  } });
4883
- options.yAxis = Object.assign(Object.assign({}, options.yAxis), { lineColor: transparentColor, gridLineColor: ColorHelper.getThemeColorRgbString('medium'), labels: {
4356
+ options.yAxis = Object.assign(Object.assign({}, options.yAxis), { lineColor: transparentColor, gridLineColor: core.ColorHelper.getThemeColorRgbString('medium'), labels: {
4884
4357
  style: {
4885
- color: ColorHelper.getThemeColorRgbString('semi-dark-tint'),
4358
+ color: core.ColorHelper.getThemeColorRgbString('semi-dark-tint'),
4886
4359
  },
4887
4360
  } });
4888
4361
  /*
@@ -4926,7 +4399,7 @@
4926
4399
  distance: 5,
4927
4400
  align: 'center',
4928
4401
  verticalAlign: 'top',
4929
- backgroundColor: ColorHelper.getThemeColorRgbString('tertiary'),
4402
+ backgroundColor: core.ColorHelper.getThemeColorRgbString('tertiary'),
4930
4403
  // Using a function instead of a lamdba-expression because of a reference to this.
4931
4404
  formatter: function () {
4932
4405
  return common.formatNumber(this.y, locale, '1.1-1');
@@ -4938,7 +4411,7 @@
4938
4411
  distance: -28,
4939
4412
  align: 'center',
4940
4413
  verticalAlign: 'bottom',
4941
- backgroundColor: ColorHelper.getThemeColorRgbString('tertiary'),
4414
+ backgroundColor: core.ColorHelper.getThemeColorRgbString('tertiary'),
4942
4415
  // Using a function instead of a lamdba-expression because of a reference to this.
4943
4416
  formatter: function () {
4944
4417
  return common.formatNumber(this.y, locale, '1.1-1');
@@ -5297,7 +4770,7 @@
5297
4770
  });
5298
4771
  Object.defineProperty(CalendarComponent.prototype, "activeMonthName", {
5299
4772
  get: function () {
5300
- return capitalizeFirstLetter(this.formatWithLocale(this.activeMonth, 'MMMM'));
4773
+ return core.capitalizeFirstLetter(this.formatWithLocale(this.activeMonth, 'MMMM'));
5301
4774
  },
5302
4775
  enumerable: false,
5303
4776
  configurable: true
@@ -5918,7 +5391,7 @@
5918
5391
  this.elementRef.nativeElement.style.zIndex = "" + this.zIndex;
5919
5392
  }
5920
5393
  else {
5921
- this.zIndex = parseInt(DesignTokenHelper.zLayer('popover'));
5394
+ this.zIndex = parseInt(core.DesignTokenHelper.zLayer('popover'));
5922
5395
  }
5923
5396
  };
5924
5397
  // document.removeEventListener needs the exact same event handler & options reference:
@@ -6719,6 +6192,13 @@
6719
6192
  enumerable: false,
6720
6193
  configurable: true
6721
6194
  });
6195
+ Object.defineProperty(RadioGroupComponent.prototype, "hasValue", {
6196
+ get: function () {
6197
+ return this.value !== undefined && this.value !== null;
6198
+ },
6199
+ enumerable: false,
6200
+ configurable: true
6201
+ });
6722
6202
  Object.defineProperty(RadioGroupComponent.prototype, "hasItemsFromContentProjection", {
6723
6203
  get: function () {
6724
6204
  return (!this.items.length &&
@@ -6786,7 +6266,7 @@
6786
6266
  // #endregion "protected" methods used by template
6787
6267
  // #region private methods
6788
6268
  RadioGroupComponent.prototype.getIndexOfSelectedValue = function () {
6789
- if (!this.value)
6269
+ if (!this.hasValue)
6790
6270
  return -1;
6791
6271
  return this.hasItemsFromContentProjection
6792
6272
  ? this.getIndexOfProjectedRadio(this.value)
@@ -6835,10 +6315,11 @@
6835
6315
  });
6836
6316
  };
6837
6317
  RadioGroupComponent.prototype.refreshSelectionState = function () {
6838
- if (this.value) {
6318
+ if (this.hasValue) {
6839
6319
  this._selectedIndex = this.getIndexOfSelectedValue(); // Ensure selectedIndex reflects value within items
6840
6320
  }
6841
- this._value = this.getValueFromSelectedIndex() || null; // Ensure value exists within items
6321
+ var valueFromSelectedIndex = this.getValueFromSelectedIndex();
6322
+ this._value = valueFromSelectedIndex !== undefined ? valueFromSelectedIndex : null;
6842
6323
  };
6843
6324
  RadioGroupComponent.prototype.refreshStateFromProjectedContent = function () {
6844
6325
  if (!!this._customItemTemplate)
@@ -8931,8 +8412,8 @@
8931
8412
  { type: i0.Renderer2 }
8932
8413
  ]; };
8933
8414
 
8934
- var fontSize$3 = DesignTokenHelper.fontSize;
8935
- var lineHeight = DesignTokenHelper.lineHeight;
8415
+ var fontSize$3 = core.DesignTokenHelper.fontSize;
8416
+ var lineHeight = core.DesignTokenHelper.lineHeight;
8936
8417
  var FitHeadingDirective = /** @class */ (function () {
8937
8418
  function FitHeadingDirective(elementRef, renderer, resizeObserverService, lineClampHelper) {
8938
8419
  this.elementRef = elementRef;
@@ -9228,10 +8709,10 @@
9228
8709
  SegmentedControlComponent.decorators = [
9229
8710
  { type: i0.Component, args: [{
9230
8711
  selector: 'kirby-segmented-control',
9231
- template: "<ion-segment\n *ngIf=\"mode === 'default'\"\n [value]=\"value?.id\"\n (ionChange)=\"onSegmentSelect($event.detail.value)\"\n (click)=\"preventWrapperClick($event)\"\n>\n <div *ngFor=\"let item of items\" class=\"segment-btn-wrapper\">\n <ion-segment-button [value]=\"item.id\">{{ item.text }}</ion-segment-button>\n <kirby-badge\n *ngIf=\"item.badge\"\n role=\"text\"\n [attr.aria-label]=\"item.badge.description\"\n [themeColor]=\"item.badge.themeColor\"\n >{{ item.badge.content }}</kirby-badge\n >\n </div>\n</ion-segment>\n\n<ng-container *ngIf=\"mode === 'chip' || mode === 'compactChip'\">\n <kirby-chip\n *ngFor=\"let item of items; let index = index\"\n [text]=\"item.text\"\n [isSelected]=\"index === selectedIndex\"\n (click)=\"onSegmentSelect(item.id)\"\n role=\"button\"\n ></kirby-chip>\n</ng-container>\n",
8712
+ template: "<ion-segment\n *ngIf=\"mode === 'default'\"\n [value]=\"value?.id\"\n (ionChange)=\"onSegmentSelect($event.detail.value)\"\n (click)=\"preventWrapperClick($event)\"\n>\n <div *ngFor=\"let item of items\" class=\"segment-btn-wrapper\">\n <ion-segment-button [value]=\"item.id\">{{ item.text }}</ion-segment-button>\n <kirby-badge\n *ngIf=\"item.badge\"\n role=\"text\"\n [attr.aria-label]=\"item.badge.description\"\n [themeColor]=\"item.badge.themeColor\"\n >\n <kirby-icon\n *ngIf=\"item.badge.icon; else badgeContent\"\n [customName]=\"item.badge.icon\"\n [name]=\"item.badge.icon\"\n ></kirby-icon>\n <ng-template #badgeContent>\n {{ item.badge.content }}\n </ng-template>\n </kirby-badge>\n </div>\n</ion-segment>\n\n<ng-container *ngIf=\"mode === 'chip' || mode === 'compactChip'\">\n <kirby-chip\n *ngFor=\"let item of items; let index = index\"\n [text]=\"item.text\"\n [isSelected]=\"index === selectedIndex\"\n (click)=\"onSegmentSelect(item.id)\"\n role=\"button\"\n ></kirby-chip>\n</ng-container>\n",
9232
8713
  // tslint:disable-next-line: no-host-metadata-property
9233
8714
  host: { role: 'group' },
9234
- styles: [":host{display:block;-webkit-user-select:none;user-select:none}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start:16px;--padding-end:16px}:host.chip-mode{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}@media (pointer:coarse){:host.chip-mode{scrollbar-width:none}:host.chip-mode::-webkit-scrollbar{display:none}}ion-segment{display:inline-flex;width:auto;overflow:visible;contain:unset;--background:var(--kirby-white);border-radius:999px}ion-segment-button{position:relative;min-height:40px;font-weight:400;font-size:14px;text-transform:none;--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;--padding-start:24px;--padding-end:24px;--margin-bottom:0;--margin-end:0;--margin-start:0;--margin-top:0;margin:0}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%}.segment-btn-wrapper{position:relative}kirby-badge{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);position:absolute;top:-8px;right:8px;z-index:2}:host-context(.plt-desktop) ion-segment-button:focus-within{outline-color:-webkit-focus-ring-color;outline-style:auto}"]
8715
+ styles: [":host{display:block;-webkit-user-select:none;user-select:none;--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--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}:host.chip-mode{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}@media (pointer:coarse){:host.chip-mode{scrollbar-width:none}:host.chip-mode::-webkit-scrollbar{display:none}}ion-segment{display:inline-flex;width:auto;overflow:visible;contain:unset;--background:var(--kirby-white);border-radius:999px}ion-segment-button{position:relative;min-height:40px;font-weight:400;font-size:14px;text-transform:none;--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;--padding-start:24px;--padding-end:24px;--margin-bottom:0;--margin-end:0;--margin-start:0;--margin-top:0;margin:0}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%}.segment-btn-wrapper{position:relative}:host-context(.plt-desktop) ion-segment-button:focus-within{outline-color:-webkit-focus-ring-color;outline-style:auto}"]
9235
8716
  },] }
9236
8717
  ];
9237
8718
  SegmentedControlComponent.propDecorators = {
@@ -9984,7 +9465,7 @@
9984
9465
  this._isMedium = value === 'medium';
9985
9466
  this._isDark = value === 'dark';
9986
9467
  this._isWhite = value === 'white';
9987
- var colorBrightness = ColorHelper.getColorBrightness(value);
9468
+ var colorBrightness = core.ColorHelper.getColorBrightness(value);
9988
9469
  this._isBrightnessWhite = colorBrightness === 'white';
9989
9470
  this._isBrightnessLight = colorBrightness === 'light';
9990
9471
  this._isBrightnessDark = colorBrightness === 'dark';
@@ -9997,7 +9478,7 @@
9997
9478
  ThemeColorDirective.decorators = [
9998
9479
  { type: i0.Directive, args: [{
9999
9480
  // tslint:disable-next-line:directive-selector
10000
- selector: "kirby-avatar[themeColor],\n kirby-card[themeColor],\n kirby-badge[themeColor],\n kirby-icon[themeColor],\n kirby-progress-circle-ring[themeColor],\n kirby-modal-footer[themeColor],\n kirby-empty-state[themeColor]",
9481
+ selector: "kirby-avatar[themeColor],\n kirby-card[themeColor],\n kirby-icon[themeColor],\n kirby-progress-circle-ring[themeColor],\n kirby-modal-footer[themeColor],\n kirby-empty-state[themeColor]",
10001
9482
  },] }
10002
9483
  ];
10003
9484
  ThemeColorDirective.propDecorators = {
@@ -10018,6 +9499,90 @@
10018
9499
  themeColor: [{ type: i0.Input }]
10019
9500
  };
10020
9501
 
9502
+ var proxyInputs = function (Cmp, inputs) {
9503
+ var Prototype = Cmp.prototype;
9504
+ inputs.forEach(function (item) {
9505
+ Object.defineProperty(Prototype, item, {
9506
+ get: function () {
9507
+ return this.el[item];
9508
+ },
9509
+ set: function (val) {
9510
+ var _this = this;
9511
+ this.z.runOutsideAngular(function () { return (_this.el[item] = val); });
9512
+ },
9513
+ });
9514
+ });
9515
+ };
9516
+ var proxyMethods = function (Cmp, methods) {
9517
+ var Prototype = Cmp.prototype;
9518
+ methods.forEach(function (methodName) {
9519
+ Prototype[methodName] = function () {
9520
+ var _this = this;
9521
+ var args = arguments;
9522
+ return this.z.runOutsideAngular(function () { return _this.el[methodName].apply(_this.el, args); });
9523
+ };
9524
+ });
9525
+ };
9526
+ var proxyOutputs = function (instance, el, events) {
9527
+ events.forEach(function (eventName) { return (instance[eventName] = rxjs.fromEvent(el, eventName)); });
9528
+ };
9529
+ // tslint:disable-next-line: only-arrow-functions
9530
+ function ProxyCmp(opts) {
9531
+ var decorator = function (cls) {
9532
+ if (opts.inputs) {
9533
+ proxyInputs(cls, opts.inputs);
9534
+ }
9535
+ if (opts.methods) {
9536
+ proxyMethods(cls, opts.methods);
9537
+ }
9538
+ return cls;
9539
+ };
9540
+ return decorator;
9541
+ }
9542
+
9543
+ var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
9544
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9545
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
9546
+ r = Reflect.decorate(decorators, target, key, desc);
9547
+ else
9548
+ for (var i = decorators.length - 1; i >= 0; i--)
9549
+ if (d = decorators[i])
9550
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9551
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9552
+ };
9553
+ var __metadata$1 = (this && this.__metadata) || function (k, v) {
9554
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
9555
+ return Reflect.metadata(k, v);
9556
+ };
9557
+ exports.BadgeComponent = /** @class */ (function () {
9558
+ function KirbyBadge(c, r, z) {
9559
+ this.z = z;
9560
+ c.detach();
9561
+ this.el = r.nativeElement;
9562
+ }
9563
+ return KirbyBadge;
9564
+ }());
9565
+ exports.BadgeComponent.decorators = [
9566
+ { type: i0.Component, args: [{
9567
+ selector: 'kirby-badge',
9568
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
9569
+ template: '<ng-content></ng-content>',
9570
+ inputs: ['size', 'text', 'themeColor']
9571
+ },] }
9572
+ ];
9573
+ /** @nocollapse */
9574
+ exports.BadgeComponent.ctorParameters = function () { return [
9575
+ { type: i0.ChangeDetectorRef },
9576
+ { type: i0.ElementRef },
9577
+ { type: i0.NgZone }
9578
+ ]; };
9579
+ exports.BadgeComponent = __decorate$1([
9580
+ ProxyCmp({
9581
+ inputs: ['size', 'text', 'themeColor']
9582
+ }),
9583
+ __metadata$1("design:paramtypes", [i0.ChangeDetectorRef, i0.ElementRef, i0.NgZone])
9584
+ ], exports.BadgeComponent);
9585
+
10021
9586
  var ChartModule = /** @class */ (function () {
10022
9587
  function ChartModule() {
10023
9588
  }
@@ -10137,6 +9702,20 @@
10137
9702
  },] }
10138
9703
  ];
10139
9704
 
9705
+ var appInitialize = function (doc) {
9706
+ return function () {
9707
+ loader.defineCustomElements(doc.defaultView);
9708
+ };
9709
+ };
9710
+ function customElementsInitializer() {
9711
+ return {
9712
+ provide: i0.APP_INITIALIZER,
9713
+ useFactory: appInitialize,
9714
+ deps: [common.DOCUMENT],
9715
+ multi: true,
9716
+ };
9717
+ }
9718
+
10140
9719
  var ModalRouterLinkDirective = /** @class */ (function () {
10141
9720
  function ModalRouterLinkDirective(modalNavigationService) {
10142
9721
  this.modalNavigationService = modalNavigationService;
@@ -10180,7 +9759,7 @@
10180
9759
  ModalRouterLinkDirective,
10181
9760
  SegmentedControlComponent,
10182
9761
  ChipComponent,
10183
- BadgeComponent,
9762
+ exports.BadgeComponent,
10184
9763
  ThemeColorDirective,
10185
9764
  DateInputDirective,
10186
9765
  DecimalMaskDirective,
@@ -10240,6 +9819,7 @@
10240
9819
  LoadingOverlayService,
10241
9820
  ResizeObserverFactory,
10242
9821
  ResizeObserverService,
9822
+ customElementsInitializer(),
10243
9823
  ];
10244
9824
  var entryComponents = [
10245
9825
  ModalWrapperComponent,
@@ -10294,6 +9874,42 @@
10294
9874
  * Generated bundle index. Do not edit.
10295
9875
  */
10296
9876
 
9877
+ Object.defineProperty(exports, 'ColorHelper', {
9878
+ enumerable: true,
9879
+ get: function () {
9880
+ return core.ColorHelper;
9881
+ }
9882
+ });
9883
+ Object.defineProperty(exports, 'DesignTokenHelper', {
9884
+ enumerable: true,
9885
+ get: function () {
9886
+ return core.DesignTokenHelper;
9887
+ }
9888
+ });
9889
+ Object.defineProperty(exports, 'camelToKebabCase', {
9890
+ enumerable: true,
9891
+ get: function () {
9892
+ return core.camelToKebabCase;
9893
+ }
9894
+ });
9895
+ Object.defineProperty(exports, 'capitalizeFirstLetter', {
9896
+ enumerable: true,
9897
+ get: function () {
9898
+ return core.capitalizeFirstLetter;
9899
+ }
9900
+ });
9901
+ Object.defineProperty(exports, 'kebabToCamelCase', {
9902
+ enumerable: true,
9903
+ get: function () {
9904
+ return core.kebabToCamelCase;
9905
+ }
9906
+ });
9907
+ Object.defineProperty(exports, 'kebabToTitleCase', {
9908
+ enumerable: true,
9909
+ get: function () {
9910
+ return core.kebabToTitleCase;
9911
+ }
9912
+ });
10297
9913
  Object.defineProperty(exports, 'IonRouterOutlet', {
10298
9914
  enumerable: true,
10299
9915
  get: function () {
@@ -10318,7 +9934,6 @@
10318
9934
  exports.AppComponent = AppComponent;
10319
9935
  exports.AppModule = AppModule;
10320
9936
  exports.AvatarComponent = AvatarComponent;
10321
- exports.BadgeComponent = BadgeComponent;
10322
9937
  exports.ButtonComponent = ButtonComponent;
10323
9938
  exports.COMPONENT_PROPS = COMPONENT_PROPS;
10324
9939
  exports.CalendarComponent = CalendarComponent;
@@ -10329,11 +9944,9 @@
10329
9944
  exports.ChartDeprecatedComponent = ChartDeprecatedComponent;
10330
9945
  exports.CheckboxComponent = CheckboxComponent;
10331
9946
  exports.ChipComponent = ChipComponent;
10332
- exports.ColorHelper = ColorHelper;
10333
9947
  exports.ComponentLoaderDirective = ComponentLoaderDirective;
10334
9948
  exports.DateInputDirective = DateInputDirective;
10335
9949
  exports.DecimalMaskDirective = DecimalMaskDirective;
10336
- exports.DesignTokenHelper = DesignTokenHelper;
10337
9950
  exports.DividerComponent = DividerComponent;
10338
9951
  exports.DropdownComponent = DropdownComponent;
10339
9952
  exports.EmptyStateComponent = EmptyStateComponent;
@@ -10414,85 +10027,81 @@
10414
10027
  exports.ToggleButtonComponent = ToggleButtonComponent;
10415
10028
  exports.ToggleComponent = ToggleComponent;
10416
10029
  exports.annotations = annotations;
10417
- exports.camelToKebabCase = camelToKebabCase;
10418
- exports.capitalizeFirstLetter = capitalizeFirstLetter;
10419
10030
  exports.defaultIcons = defaultIcons;
10420
10031
  exports.isNumberArray = isNumberArray;
10421
- exports.kebabToCamelCase = kebabToCamelCase;
10422
- exports.kebabToTitleCase = kebabToTitleCase;
10423
10032
  exports.selectedTabClickEvent = selectedTabClickEvent;
10424
10033
  exports.stockChartDeprecatedOptions = stockChartDeprecatedOptions;
10425
10034
  exports.ɵ0 = ɵ0$6;
10426
- exports.ɵa = AppModule;
10427
- exports.ɵb = AppComponent;
10428
- exports.ɵba = Modal;
10429
- exports.ɵbb = ButtonComponent;
10430
- exports.ɵbc = IconComponent;
10431
- exports.ɵbd = IconRegistryService;
10432
- exports.ɵbf = ICON_SETTINGS;
10433
- exports.ɵbg = ResizeObserverService;
10434
- exports.ɵbh = ResizeObserverFactory;
10435
- exports.ɵbi = FitHeadingModule;
10436
- exports.ɵbj = FitHeadingDirective;
10437
- exports.ɵbk = LineClampHelper;
10438
- exports.ɵbl = SpinnerModule;
10439
- exports.ɵbm = SpinnerComponent;
10440
- exports.ɵbn = TabsModule;
10441
- exports.ɵbo = IconModule;
10442
- exports.ɵbp = TabButtonComponent;
10443
- exports.ɵbq = ItemModule;
10444
- exports.ɵbr = ItemComponent;
10445
- exports.ɵbs = LabelComponent;
10446
- exports.ɵbt = ToggleButtonModule;
10447
- exports.ɵbu = ToggleButtonComponent;
10448
- exports.ɵbv = ListModule;
10449
- exports.ɵbw = ListComponent;
10450
- exports.ɵbx = ListHelper;
10451
- exports.ɵby = GroupByPipe;
10452
- exports.ɵbz = InfiniteScrollDirective;
10453
- exports.ɵc = RouterOutletComponent;
10454
- exports.ɵca = ListItemDirective;
10455
- exports.ɵcb = ListFlexItemDirective;
10456
- exports.ɵcc = ListItemTemplateDirective;
10457
- exports.ɵcd = ListHeaderDirective;
10458
- exports.ɵce = ListSectionHeaderDirective;
10459
- exports.ɵcf = ListFooterDirective;
10460
- exports.ɵcg = ListItemComponent;
10461
- exports.ɵch = ListSectionHeaderComponent;
10462
- exports.ɵci = ListHeaderComponent;
10463
- exports.ɵcj = ListItemColorDirective;
10464
- exports.ɵck = ChartModule;
10465
- exports.ɵcl = ChartComponent;
10466
- exports.ɵcm = ChartJSService;
10467
- exports.ɵcn = ChartConfigService;
10468
- exports.ɵco = CardComponent;
10469
- exports.ɵcp = CardHeaderComponent;
10470
- exports.ɵcq = CardFooterComponent;
10471
- exports.ɵcr = ChartDeprecatedComponent;
10472
- exports.ɵcs = ChartDeprecatedHelper;
10473
- exports.ɵct = DONUT_OPTIONS;
10474
- exports.ɵcu = DonutOptions;
10475
- exports.ɵcv = AREASPLINE_OPTIONS;
10476
- exports.ɵcw = AreaSplineOptions;
10477
- exports.ɵcx = TIMESERIES_OPTIONS;
10478
- exports.ɵcy = TimeSeriesOptions;
10479
- exports.ɵcz = ACTIVITYGAUGE_OPTIONS;
10480
- exports.ɵd = ModalController;
10481
- exports.ɵda = ActivityGaugeOptions;
10482
- exports.ɵdb = StockChartDeprecatedComponent;
10483
- exports.ɵdc = GridComponent;
10484
- exports.ɵdd = BreakpointHelperService;
10485
- exports.ɵde = ComponentLoaderDirective;
10486
- exports.ɵdf = AvatarComponent;
10487
- exports.ɵdg = CalendarComponent;
10488
- exports.ɵdh = CalendarHelper;
10489
- exports.ɵdi = CheckboxComponent;
10490
- exports.ɵdj = ActionSheetComponent;
10491
- exports.ɵdk = ModalFooterComponent;
10492
- exports.ɵdl = ModalRouterLinkDirective;
10493
- exports.ɵdm = SegmentedControlComponent;
10494
- exports.ɵdn = ChipComponent;
10495
- exports.ɵdo = BadgeComponent;
10035
+ exports.ɵa = ProxyCmp;
10036
+ exports.ɵb = AppModule;
10037
+ exports.ɵba = ModalWrapperComponent;
10038
+ exports.ɵbb = Modal;
10039
+ exports.ɵbc = ButtonComponent;
10040
+ exports.ɵbd = IconComponent;
10041
+ exports.ɵbe = IconRegistryService;
10042
+ exports.ɵbg = ICON_SETTINGS;
10043
+ exports.ɵbh = ResizeObserverService;
10044
+ exports.ɵbi = ResizeObserverFactory;
10045
+ exports.ɵbj = FitHeadingModule;
10046
+ exports.ɵbk = FitHeadingDirective;
10047
+ exports.ɵbl = LineClampHelper;
10048
+ exports.ɵbm = SpinnerModule;
10049
+ exports.ɵbn = SpinnerComponent;
10050
+ exports.ɵbo = TabsModule;
10051
+ exports.ɵbp = IconModule;
10052
+ exports.ɵbq = TabButtonComponent;
10053
+ exports.ɵbr = ItemModule;
10054
+ exports.ɵbs = ItemComponent;
10055
+ exports.ɵbt = LabelComponent;
10056
+ exports.ɵbu = ToggleButtonModule;
10057
+ exports.ɵbv = ToggleButtonComponent;
10058
+ exports.ɵbw = ListModule;
10059
+ exports.ɵbx = ListComponent;
10060
+ exports.ɵby = ListHelper;
10061
+ exports.ɵbz = GroupByPipe;
10062
+ exports.ɵc = AppComponent;
10063
+ exports.ɵca = InfiniteScrollDirective;
10064
+ exports.ɵcb = ListItemDirective;
10065
+ exports.ɵcc = ListFlexItemDirective;
10066
+ exports.ɵcd = ListItemTemplateDirective;
10067
+ exports.ɵce = ListHeaderDirective;
10068
+ exports.ɵcf = ListSectionHeaderDirective;
10069
+ exports.ɵcg = ListFooterDirective;
10070
+ exports.ɵch = ListItemComponent;
10071
+ exports.ɵci = ListSectionHeaderComponent;
10072
+ exports.ɵcj = ListHeaderComponent;
10073
+ exports.ɵck = ListItemColorDirective;
10074
+ exports.ɵcl = ChartModule;
10075
+ exports.ɵcm = ChartComponent;
10076
+ exports.ɵcn = ChartJSService;
10077
+ exports.ɵco = ChartConfigService;
10078
+ exports.ɵcp = CardComponent;
10079
+ exports.ɵcq = CardHeaderComponent;
10080
+ exports.ɵcr = CardFooterComponent;
10081
+ exports.ɵcs = ChartDeprecatedComponent;
10082
+ exports.ɵct = ChartDeprecatedHelper;
10083
+ exports.ɵcu = DONUT_OPTIONS;
10084
+ exports.ɵcv = DonutOptions;
10085
+ exports.ɵcw = AREASPLINE_OPTIONS;
10086
+ exports.ɵcx = AreaSplineOptions;
10087
+ exports.ɵcy = TIMESERIES_OPTIONS;
10088
+ exports.ɵcz = TimeSeriesOptions;
10089
+ exports.ɵd = RouterOutletComponent;
10090
+ exports.ɵda = ACTIVITYGAUGE_OPTIONS;
10091
+ exports.ɵdb = ActivityGaugeOptions;
10092
+ exports.ɵdc = StockChartDeprecatedComponent;
10093
+ exports.ɵdd = GridComponent;
10094
+ exports.ɵde = BreakpointHelperService;
10095
+ exports.ɵdf = ComponentLoaderDirective;
10096
+ exports.ɵdg = AvatarComponent;
10097
+ exports.ɵdh = CalendarComponent;
10098
+ exports.ɵdi = CalendarHelper;
10099
+ exports.ɵdj = CheckboxComponent;
10100
+ exports.ɵdk = ActionSheetComponent;
10101
+ exports.ɵdl = ModalFooterComponent;
10102
+ exports.ɵdm = ModalRouterLinkDirective;
10103
+ exports.ɵdn = SegmentedControlComponent;
10104
+ exports.ɵdo = ChipComponent;
10496
10105
  exports.ɵdp = ThemeColorDirective;
10497
10106
  exports.ɵdq = DateInputDirective;
10498
10107
  exports.ɵdr = DecimalMaskDirective;
@@ -10504,7 +10113,7 @@
10504
10113
  exports.ɵdx = RadioGroupComponent;
10505
10114
  exports.ɵdy = RadioComponent;
10506
10115
  exports.ɵdz = InputComponent;
10507
- exports.ɵe = ModalHelper;
10116
+ exports.ɵe = ModalController;
10508
10117
  exports.ɵea = TextareaComponent;
10509
10118
  exports.ɵeb = FabSheetComponent;
10510
10119
  exports.ɵec = DividerComponent;
@@ -10528,27 +10137,29 @@
10528
10137
  exports.ɵeu = ToastHelper;
10529
10138
  exports.ɵev = ToastController;
10530
10139
  exports.ɵew = LoadingOverlayService;
10531
- exports.ɵf = ModalAnimationBuilderService;
10532
- exports.ɵg = PlatformService;
10533
- exports.ɵh = WindowRef;
10534
- exports.ɵi = ActionSheetHelper;
10535
- exports.ɵj = AlertHelper;
10536
- exports.ɵk = ModalNavigationService;
10537
- exports.ɵl = RouterOutletModule;
10538
- exports.ɵm = PageModule;
10539
- exports.ɵn = PageTitleDirective;
10540
- exports.ɵo = PageToolbarTitleDirective;
10541
- exports.ɵp = PageActionsDirective;
10542
- exports.ɵq = PageContentDirective;
10543
- exports.ɵr = PageProgressComponent;
10544
- exports.ɵs = PageTitleComponent;
10545
- exports.ɵt = PageContentComponent;
10546
- exports.ɵu = PageActionsComponent;
10547
- exports.ɵv = PageComponent;
10548
- exports.ɵw = TabsComponent;
10549
- exports.ɵx = TabsService;
10550
- exports.ɵy = PageFooterComponent;
10551
- exports.ɵz = ModalWrapperComponent;
10140
+ exports.ɵex = appInitialize;
10141
+ exports.ɵey = customElementsInitializer;
10142
+ exports.ɵf = ModalHelper;
10143
+ exports.ɵg = ModalAnimationBuilderService;
10144
+ exports.ɵh = PlatformService;
10145
+ exports.ɵi = WindowRef;
10146
+ exports.ɵj = ActionSheetHelper;
10147
+ exports.ɵk = AlertHelper;
10148
+ exports.ɵl = ModalNavigationService;
10149
+ exports.ɵm = RouterOutletModule;
10150
+ exports.ɵn = PageModule;
10151
+ exports.ɵo = PageTitleDirective;
10152
+ exports.ɵp = PageToolbarTitleDirective;
10153
+ exports.ɵq = PageActionsDirective;
10154
+ exports.ɵr = PageContentDirective;
10155
+ exports.ɵs = PageProgressComponent;
10156
+ exports.ɵt = PageTitleComponent;
10157
+ exports.ɵu = PageContentComponent;
10158
+ exports.ɵv = PageActionsComponent;
10159
+ exports.ɵw = PageComponent;
10160
+ exports.ɵx = TabsComponent;
10161
+ exports.ɵy = TabsService;
10162
+ exports.ɵz = PageFooterComponent;
10552
10163
 
10553
10164
  Object.defineProperty(exports, '__esModule', { value: true });
10554
10165