@limetech/lime-elements 36.3.0-next.9 → 36.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +4 -6
- package/dist/cjs/limel-button-group.cjs.entry.js +21 -6
- package/dist/cjs/limel-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-callout.cjs.entry.js +54 -0
- package/dist/cjs/limel-chip-set.cjs.entry.js +13 -3
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +3 -12
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +47 -7
- package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js +7 -2
- package/dist/cjs/limel-dock.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +99 -118
- package/dist/cjs/limel-form.cjs.entry.js +79 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +4 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +2 -2
- package/dist/cjs/limel-list_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-list.cjs.entry.js +7 -1
- package/dist/cjs/limel-menu.cjs.entry.js +10 -2
- package/dist/cjs/limel-portal.cjs.entry.js +3 -4
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +5 -5
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dateFormatter-d7a8d40d.js → sv-dffe48b5.js} +222 -173
- package/dist/cjs/{translations-ca7279bc.js → translations-f8080c48.js} +30 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/badge/badge.css +34 -19
- package/dist/collection/components/badge/badge.js +7 -7
- package/dist/collection/components/banner/banner.css +1 -2
- package/dist/collection/components/button/button.css +31 -41
- package/dist/collection/components/button-group/button-group.css +44 -42
- package/dist/collection/components/button-group/button-group.js +25 -6
- package/dist/collection/components/callout/callout.css +77 -0
- package/dist/collection/components/callout/callout.helpers.js +27 -0
- package/dist/collection/components/callout/callout.js +139 -0
- package/dist/collection/components/callout/callout.types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +22 -45
- package/dist/collection/components/chip-set/chip-set.css +219 -405
- package/dist/collection/components/chip-set/chip-set.js +6 -2
- package/dist/collection/components/circular-progress/circular-progress.css +8 -0
- package/dist/collection/components/code-editor/code-editor.css +11 -8
- package/dist/collection/components/collapsible-section/collapsible-section.css +87 -55
- package/dist/collection/components/collapsible-section/collapsible-section.js +2 -11
- package/dist/collection/components/color-picker/color-picker-palette.css +16 -14
- package/dist/collection/components/color-picker/color-picker.css +7 -5
- package/dist/collection/components/date-picker/date-picker.js +30 -5
- package/dist/collection/components/date-picker/dateFormatter.js +7 -3
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +11 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +23 -8
- package/dist/collection/components/date-picker/pickers/Picker.js +11 -8
- package/dist/collection/components/dialog/dialog.css +14 -27
- package/dist/collection/components/dock/dock-button/dock-button.css +17 -2
- package/dist/collection/components/dock/dock-button/dock-button.js +6 -1
- package/dist/collection/components/dock/dock.css +19 -1
- package/dist/collection/components/dock/dock.js +1 -0
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/form/form.css +122 -18
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.types.js +8 -0
- package/dist/collection/components/form/row/row.js +47 -0
- package/dist/collection/components/form/templates/object-field.js +5 -0
- package/dist/collection/components/form/templates/row-layout.js +20 -0
- package/dist/collection/components/header/header.css +8 -0
- package/dist/collection/components/icon-button/icon-button.css +15 -12
- package/dist/collection/components/info-tile/info-tile.css +13 -17
- package/dist/collection/components/info-tile/info-tile.js +3 -0
- package/dist/collection/components/input-field/input-field.css +197 -363
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/linear-progress/linear-progress.css +7 -14
- package/dist/collection/components/list/list.css +388 -751
- package/dist/collection/components/menu/menu.css +19 -1
- package/dist/collection/components/menu/menu.js +10 -1
- package/dist/collection/components/menu-list/menu-list-renderer.js +6 -1
- package/dist/collection/components/menu-list/menu-list.css +400 -752
- package/dist/collection/components/menu-surface/menu-surface.css +13 -26
- package/dist/collection/components/popover-surface/popover-surface.css +8 -0
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +8 -0
- package/dist/collection/components/select/select.css +174 -323
- package/dist/collection/components/shortcut/shortcut.css +9 -7
- package/dist/collection/components/slider/slider.css +87 -98
- package/dist/collection/components/slider/slider.js +5 -5
- package/dist/collection/components/snackbar/snackbar.css +19 -34
- package/dist/collection/components/snackbar/snackbar.js +1 -1
- package/dist/collection/components/spinner/spinner.css +4 -0
- package/dist/collection/components/split-button/split-button.css +15 -4
- package/dist/collection/components/switch/switch.css +21 -49
- package/dist/collection/components/tab-bar/tab-bar.css +20 -19
- package/dist/collection/components/tab-panel/tab-panel.css +5 -0
- package/dist/collection/components/table/table.css +33 -0
- package/dist/collection/icons/idea.svg +593 -0
- package/dist/collection/icons/info.svg +593 -0
- package/dist/collection/style/internal/z-index.scss +0 -1
- package/dist/collection/style/mixins.scss +15 -4
- package/dist/collection/translations/da.js +5 -0
- package/dist/collection/translations/en.js +5 -0
- package/dist/collection/translations/fi.js +5 -0
- package/dist/collection/translations/nl.js +5 -0
- package/dist/collection/translations/no.js +5 -0
- package/dist/collection/translations/sv.js +5 -0
- package/dist/esm/{keycodes-9f971b46.js → keycodes-44c01beb.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-badge.entry.js +4 -6
- package/dist/esm/limel-button-group.entry.js +21 -6
- package/dist/esm/limel-button.entry.js +1 -1
- package/dist/esm/limel-callout.entry.js +50 -0
- package/dist/esm/limel-chip-set.entry.js +14 -4
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +3 -12
- package/dist/esm/limel-color-picker-palette.entry.js +1 -1
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +46 -6
- package/dist/esm/limel-dialog.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +7 -2
- package/dist/esm/limel-dock.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +99 -118
- package/dist/esm/limel-form.entry.js +79 -1
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +4 -1
- package/dist/esm/limel-input-field.entry.js +3 -3
- package/dist/esm/limel-list_2.entry.js +2 -2
- package/dist/esm/limel-menu-list.entry.js +7 -1
- package/dist/esm/limel-menu.entry.js +10 -2
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_4.entry.js +1 -1
- package/dist/esm/limel-portal.entry.js +3 -4
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +6 -6
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-spinner.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +1 -1
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dateFormatter-784c3334.js → sv-336c4576.js} +222 -173
- package/dist/esm/{translations-0d0ee941.js → translations-f88bb584.js} +30 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-a8d38277.entry.js → p-10e259de.entry.js} +1 -1
- package/dist/lime-elements/{p-934456bc.entry.js → p-123f5fbb.entry.js} +1 -1
- package/dist/lime-elements/{p-c234a991.entry.js → p-157e0417.entry.js} +2 -2
- package/dist/lime-elements/p-2f9918a3.entry.js +1 -0
- package/dist/lime-elements/p-2fd478df.entry.js +1 -0
- package/dist/lime-elements/p-3be2dfc7.entry.js +1 -0
- package/dist/lime-elements/{p-06f2f6b4.entry.js → p-3fda3473.entry.js} +1 -1
- package/dist/lime-elements/p-46a76d55.entry.js +1 -0
- package/dist/lime-elements/p-4a62273c.entry.js +1 -0
- package/dist/lime-elements/{p-73df4d83.js → p-4dd9a5a5.js} +5 -3
- package/dist/lime-elements/{p-d1187867.entry.js → p-4eeabc1f.entry.js} +1 -1
- package/dist/lime-elements/{p-2f2ea041.entry.js → p-4fcd3337.entry.js} +1 -1
- package/dist/lime-elements/{p-029360c8.entry.js → p-50dbd665.entry.js} +1 -1
- package/dist/lime-elements/{p-e5213a54.entry.js → p-55c8cb64.entry.js} +4 -4
- package/dist/lime-elements/{p-cad7cda1.entry.js → p-58e9df30.entry.js} +1 -1
- package/dist/lime-elements/p-73613abb.entry.js +82 -0
- package/dist/lime-elements/{p-6784c5c3.entry.js → p-7d7d19de.entry.js} +1 -1
- package/dist/lime-elements/{p-9ec08ebc.entry.js → p-8178b348.entry.js} +3 -3
- package/dist/lime-elements/{p-004aad18.entry.js → p-9336fd7f.entry.js} +1 -1
- package/dist/lime-elements/{p-a0c78744.entry.js → p-a88f2922.entry.js} +2 -2
- package/dist/lime-elements/p-b1ae3d1f.entry.js +126 -0
- package/dist/lime-elements/p-b40f37d7.entry.js +1 -0
- package/dist/lime-elements/p-b59e4287.js +1 -0
- package/dist/lime-elements/{p-405207fa.entry.js → p-b80de0ea.entry.js} +1 -1
- package/dist/lime-elements/p-c47cb4c3.entry.js +1 -0
- package/dist/lime-elements/{p-b079fc71.entry.js → p-cc3529bb.entry.js} +1 -1
- package/dist/lime-elements/{p-93ad8b90.entry.js → p-d0084a70.entry.js} +1 -1
- package/dist/lime-elements/p-d16b27b9.entry.js +1 -0
- package/dist/lime-elements/{p-216ffe20.js → p-d7801e00.js} +1 -1
- package/dist/lime-elements/p-d87e2f26.entry.js +1 -0
- package/dist/lime-elements/p-d955c169.entry.js +59 -0
- package/dist/lime-elements/p-da536426.entry.js +1 -0
- package/dist/lime-elements/p-e69231c2.entry.js +16 -0
- package/dist/lime-elements/p-eda87f8c.entry.js +1 -0
- package/dist/lime-elements/{p-0bf916a0.entry.js → p-edbd8d62.entry.js} +1 -1
- package/dist/lime-elements/p-f11e7ce1.entry.js +1 -0
- package/dist/lime-elements/{p-5409b92f.entry.js → p-f979c0f2.entry.js} +1 -1
- package/dist/lime-elements/style/internal/z-index.scss +0 -1
- package/dist/lime-elements/style/mixins.scss +15 -4
- package/dist/scss/mixins.scss +186 -0
- package/dist/types/components/badge/badge.d.ts +4 -2
- package/dist/types/components/button/button.types.d.ts +4 -0
- package/dist/types/components/button-group/button-group.d.ts +4 -0
- package/dist/types/components/callout/callout.d.ts +52 -0
- package/dist/types/components/callout/callout.helpers.d.ts +2 -0
- package/dist/types/components/callout/callout.types.d.ts +11 -0
- package/dist/types/components/chip-set/chip-set.d.ts +1 -1
- package/dist/types/components/collapsible-section/collapsible-section.d.ts +0 -1
- package/dist/types/components/date-picker/date-picker.d.ts +10 -0
- package/dist/types/components/date-picker/date.types.d.ts +1 -1
- package/dist/types/components/date-picker/dateFormatter.d.ts +3 -2
- package/dist/types/components/date-picker/flatpickr-adapter/flatpickr-adapter.d.ts +1 -1
- package/dist/types/components/date-picker/pickers/Picker.d.ts +4 -2
- package/dist/types/components/dock/dock-button/dock-button.d.ts +1 -0
- package/dist/types/components/dock/dock.d.ts +1 -0
- package/dist/types/components/dock/dock.types.d.ts +4 -0
- package/dist/types/components/form/form.d.ts +1 -0
- package/dist/types/components/form/form.types.d.ts +16 -1
- package/dist/types/components/form/row/row.d.ts +16 -0
- package/dist/types/components/form/templates/row-layout.d.ts +11 -0
- package/dist/types/components/form/templates/types.d.ts +3 -0
- package/dist/types/components/menu/menu.d.ts +3 -0
- package/dist/types/components/menu/menu.types.d.ts +4 -0
- package/dist/types/components/menu-list/menu-list-renderer.d.ts +1 -0
- package/dist/types/components.d.ts +57 -1
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/translations/da.d.ts +5 -0
- package/dist/types/translations/en.d.ts +5 -0
- package/dist/types/translations/fi.d.ts +5 -0
- package/dist/types/translations/nl.d.ts +5 -0
- package/dist/types/translations/no.d.ts +5 -0
- package/dist/types/translations/sv.d.ts +5 -0
- package/package.json +23 -20
- package/dist/lime-elements/p-15c3ec8e.entry.js +0 -1
- package/dist/lime-elements/p-246862ec.js +0 -1
- package/dist/lime-elements/p-52e18d94.entry.js +0 -1
- package/dist/lime-elements/p-5393213b.entry.js +0 -1
- package/dist/lime-elements/p-61b3352f.entry.js +0 -1
- package/dist/lime-elements/p-65a3be2c.entry.js +0 -1
- package/dist/lime-elements/p-90961075.entry.js +0 -1
- package/dist/lime-elements/p-91604294.entry.js +0 -1
- package/dist/lime-elements/p-95fd48d0.entry.js +0 -82
- package/dist/lime-elements/p-c4a89055.entry.js +0 -16
- package/dist/lime-elements/p-cc9f89a9.entry.js +0 -1
- package/dist/lime-elements/p-d379f4d6.entry.js +0 -59
- package/dist/lime-elements/p-d512656b.entry.js +0 -1
- package/dist/lime-elements/p-e6a11b73.entry.js +0 -1
- package/dist/lime-elements/p-f9958763.entry.js +0 -1
- package/dist/lime-elements/p-ff340a70.entry.js +0 -126
|
@@ -63,6 +63,89 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
63
63
|
})));
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
67
|
+
(function (global, factory) {
|
|
68
|
+
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
69
|
+
factory(global.moment);
|
|
70
|
+
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
71
|
+
//! moment.js locale configuration
|
|
72
|
+
|
|
73
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
74
|
+
var format = {
|
|
75
|
+
m: ['eine Minute', 'einer Minute'],
|
|
76
|
+
h: ['eine Stunde', 'einer Stunde'],
|
|
77
|
+
d: ['ein Tag', 'einem Tag'],
|
|
78
|
+
dd: [number + ' Tage', number + ' Tagen'],
|
|
79
|
+
w: ['eine Woche', 'einer Woche'],
|
|
80
|
+
M: ['ein Monat', 'einem Monat'],
|
|
81
|
+
MM: [number + ' Monate', number + ' Monaten'],
|
|
82
|
+
y: ['ein Jahr', 'einem Jahr'],
|
|
83
|
+
yy: [number + ' Jahre', number + ' Jahren'],
|
|
84
|
+
};
|
|
85
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
var de = moment.defineLocale('de', {
|
|
89
|
+
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
|
|
90
|
+
'_'
|
|
91
|
+
),
|
|
92
|
+
monthsShort:
|
|
93
|
+
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
94
|
+
monthsParseExact: true,
|
|
95
|
+
weekdays:
|
|
96
|
+
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
97
|
+
'_'
|
|
98
|
+
),
|
|
99
|
+
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
|
100
|
+
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
|
101
|
+
weekdaysParseExact: true,
|
|
102
|
+
longDateFormat: {
|
|
103
|
+
LT: 'HH:mm',
|
|
104
|
+
LTS: 'HH:mm:ss',
|
|
105
|
+
L: 'DD.MM.YYYY',
|
|
106
|
+
LL: 'D. MMMM YYYY',
|
|
107
|
+
LLL: 'D. MMMM YYYY HH:mm',
|
|
108
|
+
LLLL: 'dddd, D. MMMM YYYY HH:mm',
|
|
109
|
+
},
|
|
110
|
+
calendar: {
|
|
111
|
+
sameDay: '[heute um] LT [Uhr]',
|
|
112
|
+
sameElse: 'L',
|
|
113
|
+
nextDay: '[morgen um] LT [Uhr]',
|
|
114
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
|
115
|
+
lastDay: '[gestern um] LT [Uhr]',
|
|
116
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]',
|
|
117
|
+
},
|
|
118
|
+
relativeTime: {
|
|
119
|
+
future: 'in %s',
|
|
120
|
+
past: 'vor %s',
|
|
121
|
+
s: 'ein paar Sekunden',
|
|
122
|
+
ss: '%d Sekunden',
|
|
123
|
+
m: processRelativeTime,
|
|
124
|
+
mm: '%d Minuten',
|
|
125
|
+
h: processRelativeTime,
|
|
126
|
+
hh: '%d Stunden',
|
|
127
|
+
d: processRelativeTime,
|
|
128
|
+
dd: processRelativeTime,
|
|
129
|
+
w: processRelativeTime,
|
|
130
|
+
ww: '%d Wochen',
|
|
131
|
+
M: processRelativeTime,
|
|
132
|
+
MM: processRelativeTime,
|
|
133
|
+
y: processRelativeTime,
|
|
134
|
+
yy: processRelativeTime,
|
|
135
|
+
},
|
|
136
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
137
|
+
ordinal: '%d.',
|
|
138
|
+
week: {
|
|
139
|
+
dow: 1, // Monday is the first day of the week.
|
|
140
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
return de;
|
|
145
|
+
|
|
146
|
+
})));
|
|
147
|
+
});
|
|
148
|
+
|
|
66
149
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
67
150
|
(function (global, factory) {
|
|
68
151
|
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
@@ -194,146 +277,6 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
194
277
|
})));
|
|
195
278
|
});
|
|
196
279
|
|
|
197
|
-
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
198
|
-
(function (global, factory) {
|
|
199
|
-
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
200
|
-
factory(global.moment);
|
|
201
|
-
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
202
|
-
//! moment.js locale configuration
|
|
203
|
-
|
|
204
|
-
var nb = moment.defineLocale('nb', {
|
|
205
|
-
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
|
|
206
|
-
'_'
|
|
207
|
-
),
|
|
208
|
-
monthsShort:
|
|
209
|
-
'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
|
210
|
-
monthsParseExact: true,
|
|
211
|
-
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
|
212
|
-
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
|
213
|
-
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
|
214
|
-
weekdaysParseExact: true,
|
|
215
|
-
longDateFormat: {
|
|
216
|
-
LT: 'HH:mm',
|
|
217
|
-
LTS: 'HH:mm:ss',
|
|
218
|
-
L: 'DD.MM.YYYY',
|
|
219
|
-
LL: 'D. MMMM YYYY',
|
|
220
|
-
LLL: 'D. MMMM YYYY [kl.] HH:mm',
|
|
221
|
-
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
|
|
222
|
-
},
|
|
223
|
-
calendar: {
|
|
224
|
-
sameDay: '[i dag kl.] LT',
|
|
225
|
-
nextDay: '[i morgen kl.] LT',
|
|
226
|
-
nextWeek: 'dddd [kl.] LT',
|
|
227
|
-
lastDay: '[i går kl.] LT',
|
|
228
|
-
lastWeek: '[forrige] dddd [kl.] LT',
|
|
229
|
-
sameElse: 'L',
|
|
230
|
-
},
|
|
231
|
-
relativeTime: {
|
|
232
|
-
future: 'om %s',
|
|
233
|
-
past: '%s siden',
|
|
234
|
-
s: 'noen sekunder',
|
|
235
|
-
ss: '%d sekunder',
|
|
236
|
-
m: 'ett minutt',
|
|
237
|
-
mm: '%d minutter',
|
|
238
|
-
h: 'en time',
|
|
239
|
-
hh: '%d timer',
|
|
240
|
-
d: 'en dag',
|
|
241
|
-
dd: '%d dager',
|
|
242
|
-
w: 'en uke',
|
|
243
|
-
ww: '%d uker',
|
|
244
|
-
M: 'en måned',
|
|
245
|
-
MM: '%d måneder',
|
|
246
|
-
y: 'ett år',
|
|
247
|
-
yy: '%d år',
|
|
248
|
-
},
|
|
249
|
-
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
250
|
-
ordinal: '%d.',
|
|
251
|
-
week: {
|
|
252
|
-
dow: 1, // Monday is the first day of the week.
|
|
253
|
-
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
254
|
-
},
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
return nb;
|
|
258
|
-
|
|
259
|
-
})));
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
263
|
-
(function (global, factory) {
|
|
264
|
-
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
265
|
-
factory(global.moment);
|
|
266
|
-
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
267
|
-
//! moment.js locale configuration
|
|
268
|
-
|
|
269
|
-
var sv = moment.defineLocale('sv', {
|
|
270
|
-
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
|
|
271
|
-
'_'
|
|
272
|
-
),
|
|
273
|
-
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
|
274
|
-
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
|
275
|
-
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
|
|
276
|
-
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
|
|
277
|
-
longDateFormat: {
|
|
278
|
-
LT: 'HH:mm',
|
|
279
|
-
LTS: 'HH:mm:ss',
|
|
280
|
-
L: 'YYYY-MM-DD',
|
|
281
|
-
LL: 'D MMMM YYYY',
|
|
282
|
-
LLL: 'D MMMM YYYY [kl.] HH:mm',
|
|
283
|
-
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
|
|
284
|
-
lll: 'D MMM YYYY HH:mm',
|
|
285
|
-
llll: 'ddd D MMM YYYY HH:mm',
|
|
286
|
-
},
|
|
287
|
-
calendar: {
|
|
288
|
-
sameDay: '[Idag] LT',
|
|
289
|
-
nextDay: '[Imorgon] LT',
|
|
290
|
-
lastDay: '[Igår] LT',
|
|
291
|
-
nextWeek: '[På] dddd LT',
|
|
292
|
-
lastWeek: '[I] dddd[s] LT',
|
|
293
|
-
sameElse: 'L',
|
|
294
|
-
},
|
|
295
|
-
relativeTime: {
|
|
296
|
-
future: 'om %s',
|
|
297
|
-
past: 'för %s sedan',
|
|
298
|
-
s: 'några sekunder',
|
|
299
|
-
ss: '%d sekunder',
|
|
300
|
-
m: 'en minut',
|
|
301
|
-
mm: '%d minuter',
|
|
302
|
-
h: 'en timme',
|
|
303
|
-
hh: '%d timmar',
|
|
304
|
-
d: 'en dag',
|
|
305
|
-
dd: '%d dagar',
|
|
306
|
-
M: 'en månad',
|
|
307
|
-
MM: '%d månader',
|
|
308
|
-
y: 'ett år',
|
|
309
|
-
yy: '%d år',
|
|
310
|
-
},
|
|
311
|
-
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
|
|
312
|
-
ordinal: function (number) {
|
|
313
|
-
var b = number % 10,
|
|
314
|
-
output =
|
|
315
|
-
~~((number % 100) / 10) === 1
|
|
316
|
-
? ':e'
|
|
317
|
-
: b === 1
|
|
318
|
-
? ':a'
|
|
319
|
-
: b === 2
|
|
320
|
-
? ':a'
|
|
321
|
-
: b === 3
|
|
322
|
-
? ':e'
|
|
323
|
-
: ':e';
|
|
324
|
-
return number + output;
|
|
325
|
-
},
|
|
326
|
-
week: {
|
|
327
|
-
dow: 1, // Monday is the first day of the week.
|
|
328
|
-
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
329
|
-
},
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
return sv;
|
|
333
|
-
|
|
334
|
-
})));
|
|
335
|
-
});
|
|
336
|
-
|
|
337
280
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
338
281
|
(function (global, factory) {
|
|
339
282
|
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
@@ -449,6 +392,71 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
449
392
|
})));
|
|
450
393
|
});
|
|
451
394
|
|
|
395
|
+
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
396
|
+
(function (global, factory) {
|
|
397
|
+
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
398
|
+
factory(global.moment);
|
|
399
|
+
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
400
|
+
//! moment.js locale configuration
|
|
401
|
+
|
|
402
|
+
var nb = moment.defineLocale('nb', {
|
|
403
|
+
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
|
|
404
|
+
'_'
|
|
405
|
+
),
|
|
406
|
+
monthsShort:
|
|
407
|
+
'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
|
408
|
+
monthsParseExact: true,
|
|
409
|
+
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
|
410
|
+
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
|
411
|
+
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
|
412
|
+
weekdaysParseExact: true,
|
|
413
|
+
longDateFormat: {
|
|
414
|
+
LT: 'HH:mm',
|
|
415
|
+
LTS: 'HH:mm:ss',
|
|
416
|
+
L: 'DD.MM.YYYY',
|
|
417
|
+
LL: 'D. MMMM YYYY',
|
|
418
|
+
LLL: 'D. MMMM YYYY [kl.] HH:mm',
|
|
419
|
+
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
|
|
420
|
+
},
|
|
421
|
+
calendar: {
|
|
422
|
+
sameDay: '[i dag kl.] LT',
|
|
423
|
+
nextDay: '[i morgen kl.] LT',
|
|
424
|
+
nextWeek: 'dddd [kl.] LT',
|
|
425
|
+
lastDay: '[i går kl.] LT',
|
|
426
|
+
lastWeek: '[forrige] dddd [kl.] LT',
|
|
427
|
+
sameElse: 'L',
|
|
428
|
+
},
|
|
429
|
+
relativeTime: {
|
|
430
|
+
future: 'om %s',
|
|
431
|
+
past: '%s siden',
|
|
432
|
+
s: 'noen sekunder',
|
|
433
|
+
ss: '%d sekunder',
|
|
434
|
+
m: 'ett minutt',
|
|
435
|
+
mm: '%d minutter',
|
|
436
|
+
h: 'en time',
|
|
437
|
+
hh: '%d timer',
|
|
438
|
+
d: 'en dag',
|
|
439
|
+
dd: '%d dager',
|
|
440
|
+
w: 'en uke',
|
|
441
|
+
ww: '%d uker',
|
|
442
|
+
M: 'en måned',
|
|
443
|
+
MM: '%d måneder',
|
|
444
|
+
y: 'ett år',
|
|
445
|
+
yy: '%d år',
|
|
446
|
+
},
|
|
447
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
448
|
+
ordinal: '%d.',
|
|
449
|
+
week: {
|
|
450
|
+
dow: 1, // Monday is the first day of the week.
|
|
451
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
452
|
+
},
|
|
453
|
+
});
|
|
454
|
+
|
|
455
|
+
return nb;
|
|
456
|
+
|
|
457
|
+
})));
|
|
458
|
+
});
|
|
459
|
+
|
|
452
460
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
453
461
|
(function (global, factory) {
|
|
454
462
|
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
@@ -559,36 +567,77 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
559
567
|
})));
|
|
560
568
|
});
|
|
561
569
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
570
|
+
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
571
|
+
(function (global, factory) {
|
|
572
|
+
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
573
|
+
factory(global.moment);
|
|
574
|
+
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
575
|
+
//! moment.js locale configuration
|
|
576
|
+
|
|
577
|
+
var sv = moment.defineLocale('sv', {
|
|
578
|
+
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
|
|
579
|
+
'_'
|
|
580
|
+
),
|
|
581
|
+
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
|
582
|
+
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
|
583
|
+
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
|
|
584
|
+
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
|
|
585
|
+
longDateFormat: {
|
|
586
|
+
LT: 'HH:mm',
|
|
587
|
+
LTS: 'HH:mm:ss',
|
|
588
|
+
L: 'YYYY-MM-DD',
|
|
589
|
+
LL: 'D MMMM YYYY',
|
|
590
|
+
LLL: 'D MMMM YYYY [kl.] HH:mm',
|
|
591
|
+
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
|
|
592
|
+
lll: 'D MMM YYYY HH:mm',
|
|
593
|
+
llll: 'ddd D MMM YYYY HH:mm',
|
|
594
|
+
},
|
|
595
|
+
calendar: {
|
|
596
|
+
sameDay: '[Idag] LT',
|
|
597
|
+
nextDay: '[Imorgon] LT',
|
|
598
|
+
lastDay: '[Igår] LT',
|
|
599
|
+
nextWeek: '[På] dddd LT',
|
|
600
|
+
lastWeek: '[I] dddd[s] LT',
|
|
601
|
+
sameElse: 'L',
|
|
602
|
+
},
|
|
603
|
+
relativeTime: {
|
|
604
|
+
future: 'om %s',
|
|
605
|
+
past: 'för %s sedan',
|
|
606
|
+
s: 'några sekunder',
|
|
607
|
+
ss: '%d sekunder',
|
|
608
|
+
m: 'en minut',
|
|
609
|
+
mm: '%d minuter',
|
|
610
|
+
h: 'en timme',
|
|
611
|
+
hh: '%d timmar',
|
|
612
|
+
d: 'en dag',
|
|
613
|
+
dd: '%d dagar',
|
|
614
|
+
M: 'en månad',
|
|
615
|
+
MM: '%d månader',
|
|
616
|
+
y: 'ett år',
|
|
617
|
+
yy: '%d år',
|
|
618
|
+
},
|
|
619
|
+
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
|
|
620
|
+
ordinal: function (number) {
|
|
621
|
+
var b = number % 10,
|
|
622
|
+
output =
|
|
623
|
+
~~((number % 100) / 10) === 1
|
|
624
|
+
? ':e'
|
|
625
|
+
: b === 1
|
|
626
|
+
? ':a'
|
|
627
|
+
: b === 2
|
|
628
|
+
? ':a'
|
|
629
|
+
: b === 3
|
|
630
|
+
? ':e'
|
|
631
|
+
: ':e';
|
|
632
|
+
return number + output;
|
|
633
|
+
},
|
|
634
|
+
week: {
|
|
635
|
+
dow: 1, // Monday is the first day of the week.
|
|
636
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
637
|
+
},
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
return sv;
|
|
641
|
+
|
|
642
|
+
})));
|
|
643
|
+
});
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const da = {
|
|
4
|
+
'callout.note': 'Bemærk',
|
|
5
|
+
'callout.important': 'Vigtig',
|
|
6
|
+
'callout.tip': 'Tip',
|
|
7
|
+
'callout.caution': 'Advarsel',
|
|
8
|
+
'callout.warning': 'Advarsel',
|
|
4
9
|
'date-picker.today': 'Idag',
|
|
5
10
|
'date-picker.month.heading': 'Måned',
|
|
6
11
|
'date-picker.quarter.heading': 'Kvartal',
|
|
@@ -10,6 +15,11 @@ const da = {
|
|
|
10
15
|
};
|
|
11
16
|
|
|
12
17
|
const en = {
|
|
18
|
+
'callout.note': 'Note',
|
|
19
|
+
'callout.important': 'Important',
|
|
20
|
+
'callout.tip': 'Tip',
|
|
21
|
+
'callout.caution': 'Caution',
|
|
22
|
+
'callout.warning': 'Warning',
|
|
13
23
|
'date-picker.today': 'Today',
|
|
14
24
|
'date-picker.month.heading': 'Month',
|
|
15
25
|
'date-picker.quarter.heading': 'Quarter',
|
|
@@ -21,6 +31,11 @@ const en = {
|
|
|
21
31
|
};
|
|
22
32
|
|
|
23
33
|
const fi = {
|
|
34
|
+
'callout.note': 'Huomio',
|
|
35
|
+
'callout.important': 'Tärkeää',
|
|
36
|
+
'callout.tip': 'Vinkki',
|
|
37
|
+
'callout.caution': 'Varoitus',
|
|
38
|
+
'callout.warning': 'Varoitus',
|
|
24
39
|
'date-picker.today': 'Tänään',
|
|
25
40
|
'date-picker.month.heading': 'Kuukausi',
|
|
26
41
|
'date-picker.quarter.heading': 'Vuosineljännes',
|
|
@@ -30,6 +45,11 @@ const fi = {
|
|
|
30
45
|
};
|
|
31
46
|
|
|
32
47
|
const nl = {
|
|
48
|
+
'callout.note': 'Opmerking',
|
|
49
|
+
'callout.important': 'Belangrijk',
|
|
50
|
+
'callout.tip': 'Tip',
|
|
51
|
+
'callout.caution': 'Waarschuwing',
|
|
52
|
+
'callout.warning': 'Waarschuwing',
|
|
33
53
|
'date-picker.today': 'Vandaag',
|
|
34
54
|
'date-picker.month.heading': 'Maand',
|
|
35
55
|
'date-picker.quarter.heading': 'Kwartaal',
|
|
@@ -39,6 +59,11 @@ const nl = {
|
|
|
39
59
|
};
|
|
40
60
|
|
|
41
61
|
const no = {
|
|
62
|
+
'callout.note': 'Note',
|
|
63
|
+
'callout.important': 'Viktig',
|
|
64
|
+
'callout.tip': 'Tip',
|
|
65
|
+
'callout.caution': 'Advarsel',
|
|
66
|
+
'callout.warning': 'Advarsel',
|
|
42
67
|
'date-picker.today': 'I dag',
|
|
43
68
|
'date-picker.month.heading': 'Måned',
|
|
44
69
|
'date-picker.quarter.heading': 'Kvartal',
|
|
@@ -48,6 +73,11 @@ const no = {
|
|
|
48
73
|
};
|
|
49
74
|
|
|
50
75
|
const sv = {
|
|
76
|
+
'callout.note': 'Obs',
|
|
77
|
+
'callout.important': 'Viktigt',
|
|
78
|
+
'callout.tip': 'Tips',
|
|
79
|
+
'callout.caution': 'Varning',
|
|
80
|
+
'callout.warning': 'Varning',
|
|
51
81
|
'date-picker.today': 'Idag',
|
|
52
82
|
'date-picker.month.heading': 'Månad',
|
|
53
83
|
'date-picker.quarter.heading': 'Kvartal',
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"./components/banner/banner.js",
|
|
5
5
|
"./components/button/button.js",
|
|
6
6
|
"./components/button-group/button-group.js",
|
|
7
|
+
"./components/callout/callout.js",
|
|
7
8
|
"./components/checkbox/checkbox.js",
|
|
8
9
|
"./components/chip-set/chip-set.js",
|
|
9
10
|
"./components/circular-progress/circular-progress.js",
|
|
@@ -64,6 +64,14 @@
|
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Note! This file is exported to `dist/scss/` in the published
|
|
69
|
+
* node module, for consumer projects to import.
|
|
70
|
+
* That means this file cannot import from any file that isn't
|
|
71
|
+
* also exported, keeping the same relative path.
|
|
72
|
+
*
|
|
73
|
+
* Or, just don't import anything, that works too.
|
|
74
|
+
*/
|
|
67
75
|
/**
|
|
68
76
|
* @prop --badge-background-color: badge background color
|
|
69
77
|
* @prop --badge-text-color: badge text color
|
|
@@ -72,7 +80,17 @@
|
|
|
72
80
|
display: none;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
|
-
:host {
|
|
83
|
+
:host(limel-badge) {
|
|
84
|
+
--limel-min-badge-size: 1rem;
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
align-items: center;
|
|
88
|
+
flex-shrink: 0;
|
|
89
|
+
min-height: var(--limel-min-badge-size);
|
|
90
|
+
min-width: var(--limel-min-badge-size);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
span {
|
|
76
94
|
-moz-osx-font-smoothing: grayscale;
|
|
77
95
|
-webkit-font-smoothing: antialiased;
|
|
78
96
|
font-family: Roboto, sans-serif;
|
|
@@ -80,28 +98,25 @@
|
|
|
80
98
|
font-family: var(--mdc-typography-font-family, Roboto, sans-serif);
|
|
81
99
|
cursor: default;
|
|
82
100
|
box-sizing: border-box;
|
|
83
|
-
display: flex;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
flex-shrink: 0;
|
|
87
|
-
font-size: 0.6875rem;
|
|
88
|
-
height: 1.25rem;
|
|
89
|
-
line-height: 1;
|
|
90
|
-
min-width: 1.25rem;
|
|
91
|
-
padding: 0 0.3125rem;
|
|
92
|
-
border-radius: 1.25rem;
|
|
93
|
-
background-color: var(--badge-background-color, rgb(var(--contrast-500)));
|
|
94
|
-
color: var(--badge-text-color, rgb(var(--contrast-1200)));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
span {
|
|
98
101
|
overflow: hidden;
|
|
99
102
|
white-space: nowrap;
|
|
100
103
|
text-overflow: ellipsis;
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
text-align: center;
|
|
105
|
+
font-size: 0.6875rem;
|
|
106
|
+
line-height: var(--limel-min-badge-size);
|
|
107
|
+
color: var(--badge-text-color, rgb(var(--contrast-1200)));
|
|
108
|
+
border-radius: var(--limel-min-badge-size);
|
|
109
|
+
max-height: var(--limel-min-badge-size);
|
|
110
|
+
min-width: 0.5rem;
|
|
111
|
+
min-height: 0.5rem;
|
|
112
|
+
background-color: var(--badge-background-color, rgb(var(--contrast-500)));
|
|
113
|
+
}
|
|
114
|
+
span:not(:empty) {
|
|
115
|
+
min-width: var(--limel-min-badge-size);
|
|
116
|
+
max-width: 2.75rem;
|
|
117
|
+
padding: 0 0.28125rem;
|
|
103
118
|
}
|
|
104
119
|
|
|
105
|
-
:host(.has-large-label) {
|
|
120
|
+
:host(.has-large-label) span {
|
|
106
121
|
cursor: help;
|
|
107
122
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { abbreviate } from './format';
|
|
3
3
|
/**
|
|
4
|
-
* The Badge component can
|
|
4
|
+
* The Badge component can be used to display a notification badge,
|
|
5
|
+
* optionally with a number or a text label.
|
|
5
6
|
*
|
|
7
|
+
* @exampleComponent limel-example-badge
|
|
6
8
|
* @exampleComponent limel-example-badge-number
|
|
7
9
|
* @exampleComponent limel-example-badge-string
|
|
8
10
|
*/
|
|
@@ -13,15 +15,13 @@ export class Badge {
|
|
|
13
15
|
render() {
|
|
14
16
|
return (h(Host, { title: this.labelIsLarge() ? this.label : '', class: {
|
|
15
17
|
'has-large-label': this.labelIsLarge(),
|
|
16
|
-
} }, this.renderLabel()));
|
|
18
|
+
} }, h("span", null, this.renderLabel())));
|
|
17
19
|
}
|
|
18
20
|
renderLabel() {
|
|
19
21
|
if (typeof this.label === 'number') {
|
|
20
|
-
return
|
|
21
|
-
}
|
|
22
|
-
else if (typeof this.label === 'string') {
|
|
23
|
-
return h("span", null, this.label);
|
|
22
|
+
return abbreviate(this.label);
|
|
24
23
|
}
|
|
24
|
+
return this.label;
|
|
25
25
|
}
|
|
26
26
|
labelIsLarge() {
|
|
27
27
|
const largeNumericLabel = 999;
|
|
@@ -56,7 +56,7 @@ export class Badge {
|
|
|
56
56
|
"references": {}
|
|
57
57
|
},
|
|
58
58
|
"required": false,
|
|
59
|
-
"optional":
|
|
59
|
+
"optional": true,
|
|
60
60
|
"docs": {
|
|
61
61
|
"tags": [],
|
|
62
62
|
"text": "Label to display in the badge.\nNumeric labels larger than 999 will be rounded and abbreviated.\nString labels get truncated if their length is longer than\nsix characters."
|
|
@@ -69,8 +69,7 @@
|
|
|
69
69
|
*
|
|
70
70
|
* Nothing in this file may output any CSS
|
|
71
71
|
* without being explicitly used by outside code.
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
72
|
+
*/ /**
|
|
74
73
|
* @prop --banner-icon-fill-color: Color of the banner icon.
|
|
75
74
|
* @prop --banner-icon-background-color: Background color of the banner icon.
|
|
76
75
|
*/
|