@kirbydesign/designsystem 5.0.12 → 5.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kirbydesign-designsystem.umd.js +19 -20
- package/bundles/kirbydesign-designsystem.umd.js.map +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js.map +1 -1
- package/esm2015/lib/components/chart/chart-js/chart-js.service.js +10 -1
- package/esm2015/lib/components/chart/chart-js/chartjs-plugin-marker/chartjs-plugin-marker.js +10 -12
- package/esm2015/lib/components/chart/chart-js/chartjs-plugin-marker/chartjs-plugin-marker.metadata.json +1 -1
- package/esm2015/lib/components/chart/chart.types.js +1 -1
- package/esm2015/lib/components/chart/chart.types.metadata.json +1 -1
- package/esm2015/lib/components/chart/configs/type.config.js +1 -11
- package/esm2015/lib/components/chart/configs/type.config.metadata.json +1 -1
- package/esm2015/lib/components/dropdown/dropdown.component.js +2 -2
- package/esm2015/lib/components/dropdown/dropdown.component.metadata.json +1 -1
- package/fesm2015/kirbydesign-designsystem.js +19 -20
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/kirbydesign-designsystem.metadata.json +1 -1
- package/lib/components/chart/chart.types.d.ts +1 -0
- package/package.json +2 -2
- package/scss/_global-styles.scss +1 -269
- package/scss/_utils.scss +1 -1
- package/scss/base/_functions.scss +1 -188
- package/scss/base/_ionic.scss +1 -36
- package/scss/base/_line-clamp.scss +1 -56
- package/scss/base/_list.scss +1 -11
- package/scss/base/_typography.scss +1 -105
- package/scss/base/_variables.scss +1 -197
- package/scss/print/_index.scss +1 -3
- package/scss/print/components/_index.scss +1 -7
- package/scss/print/components/_kirby-app.scss +1 -21
- package/scss/print/components/_kirby-fab-sheet.scss +1 -5
- package/scss/print/components/_kirby-list.scss +1 -24
- package/scss/print/components/_kirby-modal-wrapper.scss +1 -16
- package/scss/print/components/_kirby-page.scss +1 -17
- package/scss/print/components/_kirby-router-outlet.scss +1 -11
- package/scss/print/components/_kirby-tab-bar.scss +1 -25
- package/scss/print/elements/_button.scss +1 -6
- package/scss/print/elements/_index.scss +1 -3
- package/scss/print/elements/_page.scss +1 -6
- package/scss/print/elements/_preformatted-text.scss +1 -6
- package/scss/print/generic/_colors.scss +1 -9
- package/scss/print/generic/_index.scss +1 -4
- package/scss/print/generic/_page.scss +1 -40
- package/scss/print/generic/_reset.scss +1 -12
- package/scss/print/generic/_typography.scss +1 -70
- package/scss/themes/_colors.scss +1 -117
|
@@ -4110,16 +4110,6 @@
|
|
|
4110
4110
|
},
|
|
4111
4111
|
},
|
|
4112
4112
|
},
|
|
4113
|
-
// A failed attempt to get local typings working.
|
|
4114
|
-
// The chartjs-plugin-marker is rewritten to not
|
|
4115
|
-
// having to rely on own plugin settings, but using
|
|
4116
|
-
// x-axis type time instead.
|
|
4117
|
-
// @todo candidate for refactor once solved.
|
|
4118
|
-
// marker: {
|
|
4119
|
-
// line: {
|
|
4120
|
-
// color: getThemeColorHexString('black-base'),
|
|
4121
|
-
// }
|
|
4122
|
-
// },
|
|
4123
4113
|
datalabels: {
|
|
4124
4114
|
backgroundColor: function (context) { return context.dataset.borderColor; },
|
|
4125
4115
|
color: getThemeColorHexString$1('white'),
|
|
@@ -4170,7 +4160,11 @@
|
|
|
4170
4160
|
{ type: i0.Injectable }
|
|
4171
4161
|
];
|
|
4172
4162
|
|
|
4173
|
-
|
|
4163
|
+
/*
|
|
4164
|
+
The marker plugin is heavily inspired by https://chartjs-plugin-crosshair.netlify.app
|
|
4165
|
+
The project appears stale and only the vertical line feature is needed
|
|
4166
|
+
part of the plugin that was actually needed is implemented here.
|
|
4167
|
+
*/
|
|
4174
4168
|
var defaultOptions = {
|
|
4175
4169
|
line: {
|
|
4176
4170
|
color: 'black',
|
|
@@ -4182,14 +4176,10 @@
|
|
|
4182
4176
|
},
|
|
4183
4177
|
};
|
|
4184
4178
|
var hasMarkerConfiguration = function (chart) {
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
return chart.config.options.scales.x && ((_c = (_b = (_a = chart.config.options) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.tooltip) === null || _c === void 0 ? void 0 : _c.enabled);
|
|
4190
|
-
// @todo when resolving the typings issue with the markerplugin,
|
|
4191
|
-
// this is a better conditional.
|
|
4192
|
-
// return chart.config.options.scales.x && chart.config.options.plugins.marker
|
|
4179
|
+
/*
|
|
4180
|
+
Hacky solution. Should be fixed in this issue: https://github.com/kirbydesign/designsystem/issues/1967
|
|
4181
|
+
*/
|
|
4182
|
+
return chart.data.datasets.some(function (dataset) { var _a; return !!((_a = dataset === null || dataset === void 0 ? void 0 : dataset.kirbyOptions) === null || _a === void 0 ? void 0 : _a.isStockChart); });
|
|
4193
4183
|
};
|
|
4194
4184
|
var ɵ0$7 = hasMarkerConfiguration;
|
|
4195
4185
|
var MarkerPlugin = {
|
|
@@ -4685,6 +4675,15 @@
|
|
|
4685
4675
|
var datasets = isNumberArray(data) ? [{ data: data }] : data;
|
|
4686
4676
|
if (this.highlightedElements)
|
|
4687
4677
|
this.addHighlightedElementsToDatasets(this.highlightedElements, datasets);
|
|
4678
|
+
/*
|
|
4679
|
+
Hacky solution. Should be fixed in this issue:
|
|
4680
|
+
https://github.com/kirbydesign/designsystem/issues/1967
|
|
4681
|
+
*/
|
|
4682
|
+
if (this.chartType === 'stock') {
|
|
4683
|
+
datasets.forEach(function (dataset) {
|
|
4684
|
+
dataset.kirbyOptions = Object.assign(Object.assign({}, dataset.kirbyOptions), { isStockChart: true });
|
|
4685
|
+
});
|
|
4686
|
+
}
|
|
4688
4687
|
return datasets;
|
|
4689
4688
|
};
|
|
4690
4689
|
/**
|
|
@@ -6556,7 +6555,7 @@
|
|
|
6556
6555
|
DropdownComponent.decorators = [
|
|
6557
6556
|
{ type: i0.Component, args: [{
|
|
6558
6557
|
selector: 'kirby-dropdown',
|
|
6559
|
-
template: "<button\n kirby-button\n [size]=\"size\"\n [attentionLevel]=\"isOpen ? attentionLevelOpen : attentionLevel\"\n tabindex=\"-1\"\n (click)=\"onToggle($event)\"\n (mousedown)=\"onButtonMouseEvent($event)\"\n [disabled]=\"disabled\"\n>\n <span class=\"text\">{{ selectedText || placeholder }}</span>\n <kirby-icon [name]=\"isOpen ? 'arrow-up' : 'arrow-down'\"></kirby-icon>\n</button>\n\n<ng-container *ngTemplateOutlet=\"usePopover ? popoverTemplate : itemWrapperTemplate\"></ng-container>\n\n<ng-template #popoverTemplate>\n <kirby-popover [target]=\"buttonElement\" [popout]=\"popout\" (willHide)=\"_onPopoverWillHide()\">\n <ng-container *ngTemplateOutlet=\"itemWrapperTemplate\"></ng-container>\n </kirby-popover>\n</ng-template>\n\n<ng-template #itemWrapperTemplate>\n <kirby-card>\n <ng-container *ngFor=\"let item of items; let i = index\">\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate || defaultItemTemplate;\n context: { $implicit: item, selected: i === selectedIndex, index: i }\n \"\n ></ng-container>\n </ng-container>\n </kirby-card>\n</ng-template>\n\n<ng-template #defaultItemTemplate let-item let-selected=\"selected\" let-index=\"index\">\n <kirby-item [selectable]=\"true\" [selected]=\"selected\" (click)=\"onItemSelect(index)\" role=\"option\">\n <!-- Tabindex fixes issue with popover dropdown not working in safari -->\n <h3 tabindex=\"0\">{{ getTextFromItem(item) }}</h3>\n <kirby-icon *ngIf=\"selected\" name=\"checkmark-selected\" slot=\"end\"></kirby-icon>\n </kirby-item>\n</ng-template>\n",
|
|
6558
|
+
template: "<button\n kirby-button\n [size]=\"size\"\n [attentionLevel]=\"isOpen ? attentionLevelOpen : attentionLevel\"\n tabindex=\"-1\"\n (click)=\"onToggle($event)\"\n (mousedown)=\"onButtonMouseEvent($event)\"\n [disabled]=\"disabled\"\n type=\"button\"\n>\n <span class=\"text\">{{ selectedText || placeholder }}</span>\n <kirby-icon [name]=\"isOpen ? 'arrow-up' : 'arrow-down'\"></kirby-icon>\n</button>\n\n<ng-container *ngTemplateOutlet=\"usePopover ? popoverTemplate : itemWrapperTemplate\"></ng-container>\n\n<ng-template #popoverTemplate>\n <kirby-popover [target]=\"buttonElement\" [popout]=\"popout\" (willHide)=\"_onPopoverWillHide()\">\n <ng-container *ngTemplateOutlet=\"itemWrapperTemplate\"></ng-container>\n </kirby-popover>\n</ng-template>\n\n<ng-template #itemWrapperTemplate>\n <kirby-card>\n <ng-container *ngFor=\"let item of items; let i = index\">\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate || defaultItemTemplate;\n context: { $implicit: item, selected: i === selectedIndex, index: i }\n \"\n ></ng-container>\n </ng-container>\n </kirby-card>\n</ng-template>\n\n<ng-template #defaultItemTemplate let-item let-selected=\"selected\" let-index=\"index\">\n <kirby-item [selectable]=\"true\" [selected]=\"selected\" (click)=\"onItemSelect(index)\" role=\"option\">\n <!-- Tabindex fixes issue with popover dropdown not working in safari -->\n <h3 tabindex=\"0\">{{ getTextFromItem(item) }}</h3>\n <kirby-icon *ngIf=\"selected\" name=\"checkmark-selected\" slot=\"end\"></kirby-icon>\n </kirby-item>\n</ng-template>\n",
|
|
6560
6559
|
providers: [
|
|
6561
6560
|
{
|
|
6562
6561
|
provide: forms.NG_VALUE_ACCESSOR,
|