@designsystem-se/af 34.0.1-beta.0 → 34.0.2
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/components/digi-bar-chart.js +2 -2
- package/components/digi-button.js +1 -1
- package/components/digi-calendar-week-view.js +2 -2
- package/components/digi-card.js +1 -1
- package/components/digi-chart-line.js +2 -2
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +2 -2
- package/components/digi-context-menu.js +1 -1
- package/components/digi-dialog.js +2 -2
- package/components/digi-expandable-accordion.js +2 -2
- package/components/digi-expandable-faq-item.js +1 -1
- package/components/digi-footer.js +1 -1
- package/components/digi-form-category-filter.js +1 -1
- package/components/digi-form-error-list.js +4 -4
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-input-search.js +1 -1
- package/components/digi-form-select-filter.js +8 -30
- package/components/digi-header-navigation.js +1 -1
- package/components/digi-header.js +2 -2
- package/components/digi-info-card-multi.js +1 -1
- package/components/digi-info-card.js +1 -1
- package/components/digi-layout-media-object.js +1 -1
- package/components/digi-link-button.js +1 -1
- package/components/digi-list.js +12 -9
- package/components/digi-navigation-breadcrumbs.js +1 -1
- package/components/digi-navigation-context-menu.js +1 -1
- package/components/digi-navigation-pagination.js +2 -2
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +1 -1
- package/components/digi-progress-indicator.js +1 -1
- package/components/digi-progress-list.js +1 -1
- package/components/digi-quote.js +1 -1
- package/components/digi-tablist.js +23 -6
- package/components/digi-tag.js +2 -2
- package/components/digi-tools-feedback-rating.js +1 -1
- package/components/digi-tools-feedback.js +1 -1
- package/components/digi-tools-languagepicker.js +2 -2
- package/components/digi-typography.js +1 -1
- package/components/{p-5e487ed4.js → p-10503e1d.js} +2 -2
- package/components/{p-09e0586b.js → p-68dbf3ef.js} +2 -2
- package/components/{p-8a1aaa8e.js → p-9f5ead44.js} +1 -1
- package/components/{p-f6347f75.js → p-a92aa84e.js} +3 -3
- package/components/{p-aa59e5c0.js → p-afc595b8.js} +1 -1
- package/components/{p-7f5a8dd1.js → p-dc9fbc23.js} +1 -1
- package/components/{p-acb38ff0.js → p-f6ca68ba.js} +1 -1
- package/custom-elements.json +1 -1
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/{digi-button_4.cjs.entry.js → digi-button.cjs.entry.js} +2 -84
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/digi-code-block_3.cjs.entry.js +2 -2
- package/dist/cjs/digi-dialog.cjs.entry.js +2 -2
- package/dist/cjs/digi-expandable-accordion.cjs.entry.js +2 -2
- package/dist/cjs/digi-footer.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +2 -2
- package/dist/cjs/{digi-form-label_5.cjs.entry.js → digi-form-label_3.cjs.entry.js} +0 -46
- package/dist/cjs/digi-form-receipt.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +9 -31
- package/dist/cjs/digi-header-navigation.cjs.entry.js +2 -2
- package/dist/cjs/digi-header.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-check_6.cjs.entry.js +286 -0
- package/dist/cjs/digi-icon-notification-error_5.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
- package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
- package/dist/cjs/digi-list.cjs.entry.js +11 -8
- package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-alert.cjs.entry.js +2 -2
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +2 -2
- package/dist/cjs/digi-tablist.cjs.entry.js +23 -6
- package/dist/cjs/digi-tag.cjs.entry.js +42 -0
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +2 -2
- package/dist/cjs/index-cfa8e9be.js +12 -12
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tag-size.enum-0a6be639.js +8 -0
- package/dist/cjs/{progress-indicator-variation.enum-7cf8e0e4.js → typography-variation.enum-252bed2e.js} +6 -0
- package/dist/collection/components/_button/button/button.js +5 -2
- package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -29
- package/dist/collection/components/_layout/layout-media-object/layout-media-object.js +2 -1
- package/dist/collection/components/_link/link-button/link-button.js +6 -3
- package/dist/collection/components/_list/list/list.css +7 -19
- package/dist/collection/components/_list/list/list.js +10 -7
- package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.css +2 -0
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +23 -6
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +15 -2
- package/dist/collection/components/_tag/tag/tag.js +4 -1
- package/dist/collection/components/_typography/typography/typography.css +12 -3
- package/dist/collection/components/_typography/typography/typography.js +4 -1
- package/dist/collection/design-tokens/components/_list.variables.scss +1 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_list.variables.scss +1 -2
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-00d6ab21.js +1 -0
- package/dist/digi-arbetsformedlingen/p-03c74be2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-83ed81f6.entry.js → p-04162d84.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-04e1b953.entry.js → p-2eb2de93.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-38ac4375.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-02a9c10c.entry.js → p-4771449c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b258acf.entry.js → p-48d8109b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4e311538.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4e9cd0cd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-83621ca7.entry.js → p-4f4113d7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-68306648.entry.js → p-525bd193.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1235e21c.entry.js → p-551f6906.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fcb4e37b.entry.js → p-5a7db717.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fd42009d.entry.js → p-6492e062.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-71613ea0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-20e04419.entry.js → p-766df2e4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7f1574ff.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-db5cbe34.entry.js → p-80fce66a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a0607d6f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-0a97b588.entry.js → p-bc37453e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-afe213a1.entry.js → p-c7fd83fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c8110048.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-6a09632d.entry.js → p-d13c7e47.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-521b26de.entry.js → p-edf6fbd2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-921b40e3.entry.js → p-f3b56695.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-fa7824e9.entry.js +1 -0
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/{digi-button_4.entry.js → digi-button.entry.js} +3 -82
- package/dist/esm/digi-calendar-datepicker.entry.js +2 -2
- package/dist/esm/digi-code-block_3.entry.js +2 -2
- package/dist/esm/digi-dialog.entry.js +2 -2
- package/dist/esm/digi-expandable-accordion.entry.js +2 -2
- package/dist/esm/digi-footer.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +2 -2
- package/dist/esm/{digi-form-label_5.entry.js → digi-form-label_3.entry.js} +1 -45
- package/dist/esm/digi-form-receipt.entry.js +2 -2
- package/dist/esm/digi-form-select-filter.entry.js +9 -31
- package/dist/esm/digi-header-navigation.entry.js +2 -2
- package/dist/esm/digi-header.entry.js +2 -2
- package/dist/esm/digi-icon-check_6.entry.js +277 -0
- package/dist/esm/digi-icon-notification-error_5.entry.js +1 -1
- package/dist/esm/digi-icon-x.entry.js +26 -0
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-list.entry.js +11 -8
- package/dist/esm/digi-navigation-breadcrumbs.entry.js +1 -1
- package/dist/esm/digi-navigation-pagination.entry.js +2 -2
- package/dist/esm/digi-notification-alert.entry.js +2 -2
- package/dist/esm/digi-notification-error-page.entry.js +2 -2
- package/dist/esm/digi-tablist.entry.js +23 -6
- package/dist/esm/digi-tag.entry.js +38 -0
- package/dist/esm/digi-tools-feedback.entry.js +2 -2
- package/dist/esm/index-8e318bb2.js +12 -12
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tag-size.enum-1e1bcf94.js +8 -0
- package/dist/esm/{progress-indicator-variation.enum-b12ba50a.js → typography-variation.enum-d5ac8594.js} +7 -1
- package/dist/types/components/_button/button/button.d.ts +1 -0
- package/dist/types/components/_form/form-select-filter/form-select-filter.d.ts +0 -2
- package/dist/types/components/_layout/layout-media-object/layout-media-object.d.ts +1 -0
- package/dist/types/components/_link/link-button/link-button.d.ts +3 -2
- package/dist/types/components/_list/list/list.d.ts +0 -1
- package/dist/types/components/_tag/tag/tag.d.ts +1 -0
- package/dist/types/components/_typography/typography/typography.d.ts +1 -0
- package/dist/types/components.d.ts +16 -4
- package/hydrate/index.js +51 -52
- package/hydrate/index.mjs +51 -52
- package/package.json +1 -1
- package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
- package/dist/cjs/typography-variation.enum-bba759ae.js +0 -14
- package/dist/digi-arbetsformedlingen/p-4d48c55a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-614a1149.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-642eaeed.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6fcac607.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a29a52f3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-de4c4238.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ece582a3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f84d9dea.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fe5da310.js +0 -1
- package/dist/esm/digi-icon-check.entry.js +0 -26
- package/dist/esm/digi-progress-indicator.entry.js +0 -133
- package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
- package/dist/esm/typography-variation.enum-850aad78.js +0 -14
|
@@ -42,14 +42,14 @@ require('./navigation-context-menu-item-type.enum-9b8142ad.js');
|
|
|
42
42
|
require('./navigation-context-menu-horizontal-position.enum-71b76501.js');
|
|
43
43
|
require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
44
44
|
require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
45
|
-
require('./
|
|
45
|
+
const typographyVariation_enum = require('./typography-variation.enum-252bed2e.js');
|
|
46
46
|
require('./progress-list-item-variation.enum-90e4c874.js');
|
|
47
47
|
require('./progress-list-variation.enum-06d5ce27.js');
|
|
48
48
|
require('./progressbar-variation.enum-aff9fa80.js');
|
|
49
49
|
require('./quote-image-inner-position.enum-e64e7a6d.js');
|
|
50
50
|
require('./table-variation.enum-25df2ad7.js');
|
|
51
51
|
require('./tag-media-icon.enum-372563c5.js');
|
|
52
|
-
|
|
52
|
+
require('./tag-size.enum-0a6be639.js');
|
|
53
53
|
require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
54
54
|
require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
55
55
|
require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
@@ -42,14 +42,14 @@ require('./navigation-context-menu-item-type.enum-9b8142ad.js');
|
|
|
42
42
|
require('./navigation-context-menu-horizontal-position.enum-71b76501.js');
|
|
43
43
|
require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
44
44
|
require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
45
|
-
require('./
|
|
45
|
+
require('./typography-variation.enum-252bed2e.js');
|
|
46
46
|
require('./progress-list-item-variation.enum-90e4c874.js');
|
|
47
47
|
require('./progress-list-variation.enum-06d5ce27.js');
|
|
48
48
|
require('./progressbar-variation.enum-aff9fa80.js');
|
|
49
49
|
require('./quote-image-inner-position.enum-e64e7a6d.js');
|
|
50
50
|
require('./table-variation.enum-25df2ad7.js');
|
|
51
51
|
require('./tag-media-icon.enum-372563c5.js');
|
|
52
|
-
require('./
|
|
52
|
+
require('./tag-size.enum-0a6be639.js');
|
|
53
53
|
require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
54
54
|
require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
55
55
|
require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
@@ -33,6 +33,11 @@ const NavigationTablist = class {
|
|
|
33
33
|
// How many whole tabs fit? Nudge by tolerance to avoid off-by-one at zoom edges
|
|
34
34
|
const tabsPerWindow = Math.floor((containerWidth + tolerance) / avgTabWidth);
|
|
35
35
|
this.tabsPerWindow = Math.max(1, Math.min(tabsPerWindow, tabsCount));
|
|
36
|
+
// Ensure windowTab stays within valid bounds after resize
|
|
37
|
+
const maxValidWindowTab = Math.max(0, tabsCount - this.tabsPerWindow);
|
|
38
|
+
if (this.windowTab > maxValidWindowTab) {
|
|
39
|
+
this.windowTab = maxValidWindowTab;
|
|
40
|
+
}
|
|
36
41
|
// Overflow check with tolerance
|
|
37
42
|
this.listOverflows = contentWidth - containerWidth > tolerance;
|
|
38
43
|
// (Optional) if you have left/right “handles”, compute visibility too:
|
|
@@ -174,7 +179,19 @@ const NavigationTablist = class {
|
|
|
174
179
|
this.afTabChange.emit(tab);
|
|
175
180
|
}
|
|
176
181
|
handleTabControl(direction) {
|
|
177
|
-
|
|
182
|
+
// Calculate the current window group
|
|
183
|
+
const currentGroup = Math.floor(this.windowTab / this.tabsPerWindow);
|
|
184
|
+
const totalGroups = Math.ceil(this.tabs.length / this.tabsPerWindow);
|
|
185
|
+
let newGroup;
|
|
186
|
+
if (direction === navigationTablist_types.Direction.Next) {
|
|
187
|
+
newGroup = Math.min(currentGroup + 1, totalGroups - 1);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
newGroup = Math.max(currentGroup - 1, 0);
|
|
191
|
+
}
|
|
192
|
+
// Move to the first tab of the target group
|
|
193
|
+
const newWindowTab = newGroup * this.tabsPerWindow;
|
|
194
|
+
this.moveWindow(newWindowTab);
|
|
178
195
|
}
|
|
179
196
|
setActiveTabAndFocus(tabIdx) {
|
|
180
197
|
this.activeTab = tabIdx;
|
|
@@ -228,14 +245,14 @@ const NavigationTablist = class {
|
|
|
228
245
|
cancelAnimationFrame(this._requestAnimationFrame);
|
|
229
246
|
}
|
|
230
247
|
render() {
|
|
231
|
-
return (index.h(index.Host, { key: '
|
|
248
|
+
return (index.h(index.Host, { key: 'aa87d470a00824859deb1e9305497f0001339c6a' }, index.h("div", { key: 'd2ea6128277f7aa604f8fab19828e5aabca636b3', class: {
|
|
232
249
|
'digi-tablist': true,
|
|
233
250
|
'digi-tablist--overflow-scroll': this.afOverflowMode === navigationTablist_types.OverflowMode.Scroll,
|
|
234
251
|
'digi-tablist--overflow-controls': this.afOverflowMode === navigationTablist_types.OverflowMode.Controls
|
|
235
|
-
} }, index.h("div", { key: '
|
|
252
|
+
} }, index.h("div", { key: '70f11f894aebe7b07ba8242e77415269b4993d3b', class: "control-wrapper", style: {
|
|
236
253
|
left: '0',
|
|
237
254
|
visibility: this.showPrev ? 'visible' : 'hidden'
|
|
238
|
-
} }, index.h("button", { key: '
|
|
255
|
+
} }, index.h("button", { key: 'e3f12c0df8027fb68d0dc2a3959e3eb381c32cc0', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(navigationTablist_types.Direction.Previous) }, index.h("digi-icon-chevron-left", { key: '5c38bf4c6a812b8a3037ac56f157fcca621aeeb0' }))), index.h("div", { key: '64a663ca0549924b09ac5c8e2baf3068ddcd31f5', role: "tablist", ref: (ref) => (this.tablistRef = ref), "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel }, this.tabs.map((tab) => {
|
|
239
256
|
const focusable = tab.id === this.tabs[this.selectedTab].id;
|
|
240
257
|
const isActive = tab.id === this.tabs[this.activeTab].id;
|
|
241
258
|
const Icon = `digi-icon-${tab.icon}`;
|
|
@@ -244,10 +261,10 @@ const NavigationTablist = class {
|
|
|
244
261
|
'digi-tab': true,
|
|
245
262
|
'is-active': isActive
|
|
246
263
|
}, id: `tab-${tab.id}`, role: "tab", type: "button", tabindex: focusable ? '0' : '-1', "aria-label": tab.ariaLabel, "aria-selected": isActive.toString(), "aria-controls": `tabpanel-${tab.id}`, onClick: () => this.handleTabChange(tab) }, index.h("div", { class: "content-wrapper" }, index.h("span", { class: "tablist-content" }, tab.icon && index.h(Icon, { "aria-hidden": "true" }), index.h("span", { class: "title", "data-text": tab.title }, tab.title), tab.badgeValue && (index.h("digi-badge-notification", { afValue: badgeValue, "aria-hidden": "true" }))), index.h("div", { class: "indicator" }))));
|
|
247
|
-
})), index.h("div", { key: '
|
|
264
|
+
})), index.h("div", { key: '0b1a044dee5a083e591c432eb3f581e3b55d8194', class: "control-wrapper", style: {
|
|
248
265
|
right: '0',
|
|
249
266
|
visibility: this.showNext ? 'visible' : 'hidden'
|
|
250
|
-
} }, index.h("button", { key: '
|
|
267
|
+
} }, index.h("button", { key: '1a7cae20dc4c7e642d42e387ef8943a7b50fcede', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(navigationTablist_types.Direction.Next) }, index.h("digi-icon-chevron-right", { key: '4a5b8f1777c8dda09b6ff6dbbcd56cf86cac1d95' })))), index.h("div", { key: '91aaa4dedab1a063461b6c15e030bd5a29259c9b', ref: (ref) => (this.panelsRef = ref), role: "presentation" }, index.h("slot", { key: 'fac2b5dacfc27c2cc51166d4841f122f5b496506' }))));
|
|
251
268
|
}
|
|
252
269
|
static get watchers() { return {
|
|
253
270
|
"activeTab": ["syncPanels"],
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-cfa8e9be.js');
|
|
6
|
+
const tagSize_enum = require('./tag-size.enum-0a6be639.js');
|
|
7
|
+
const text = require('./text-ca7e238b.js');
|
|
8
|
+
|
|
9
|
+
const tagCss = ".sc-digi-tag-h{--digi--tag--display:inline-block;--digi--tag--margin-bottom:var(--digi--gutter--smaller)}.sc-digi-tag-h .digi-tag.sc-digi-tag{display:var(--digi--tag--display);margin-bottom:var(--digi--tag--margin-bottom)}.sc-digi-tag-h .digi-tag__text.sc-digi-tag{display:inline-block;max-width:100%;white-space:normal}.sc-digi-tag-h .digi-tag__text--break.sc-digi-tag{overflow-wrap:anywhere;word-break:break-word;hyphens:auto}";
|
|
10
|
+
const DigiTagStyle0 = tagCss;
|
|
11
|
+
|
|
12
|
+
const Tag = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.afOnClick = index.createEvent(this, "afOnClick", 7);
|
|
16
|
+
this.afText = undefined;
|
|
17
|
+
this.afNoIcon = false;
|
|
18
|
+
this.afAriaLabel = undefined;
|
|
19
|
+
this.afSize = tagSize_enum.TagSize.SMALL;
|
|
20
|
+
this.afBreakWords = false;
|
|
21
|
+
}
|
|
22
|
+
clickHandler(e) {
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
this.afOnClick.emit(e);
|
|
25
|
+
}
|
|
26
|
+
get ariaLabel() {
|
|
27
|
+
const showIcon = !this.afNoIcon;
|
|
28
|
+
if (this.afAriaLabel) {
|
|
29
|
+
return this.afAriaLabel;
|
|
30
|
+
}
|
|
31
|
+
else if (showIcon) {
|
|
32
|
+
return text._t.removeItem(this.afText);
|
|
33
|
+
}
|
|
34
|
+
return this.afText;
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (index.h("digi-button", { key: '25fdc1c2823e98fde25fcfa24be67d47a4fef609', onAfOnClick: (e) => this.clickHandler(e), "af-variation": "secondary", "af-size": this.afSize, class: "digi-tag", "af-aria-label": this.ariaLabel }, this.afText, !this.afNoIcon && index.h("digi-icon-x", { key: '2b23fc2ea9682c42f9e0e791499eee1ee377a457', slot: "icon-secondary" })));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
Tag.style = DigiTagStyle0;
|
|
41
|
+
|
|
42
|
+
exports.digi_tag = Tag;
|
|
@@ -42,14 +42,14 @@ require('./navigation-context-menu-item-type.enum-9b8142ad.js');
|
|
|
42
42
|
require('./navigation-context-menu-horizontal-position.enum-71b76501.js');
|
|
43
43
|
require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
44
44
|
require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
45
|
-
require('./
|
|
45
|
+
require('./typography-variation.enum-252bed2e.js');
|
|
46
46
|
require('./progress-list-item-variation.enum-90e4c874.js');
|
|
47
47
|
require('./progress-list-variation.enum-06d5ce27.js');
|
|
48
48
|
require('./progressbar-variation.enum-aff9fa80.js');
|
|
49
49
|
require('./quote-image-inner-position.enum-e64e7a6d.js');
|
|
50
50
|
require('./table-variation.enum-25df2ad7.js');
|
|
51
51
|
require('./tag-media-icon.enum-372563c5.js');
|
|
52
|
-
require('./
|
|
52
|
+
require('./tag-size.enum-0a6be639.js');
|
|
53
53
|
require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
54
54
|
require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
55
55
|
require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
@@ -74,10 +74,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
74
74
|
}
|
|
75
75
|
switch(bundleId) {
|
|
76
76
|
|
|
77
|
-
case 'digi-
|
|
77
|
+
case 'digi-icon-check_6.cjs':
|
|
78
78
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
79
79
|
/* webpackMode: "lazy" */
|
|
80
|
-
'./digi-
|
|
80
|
+
'./digi-icon-check_6.cjs.entry.js')); }).then(processMod, consoleError);
|
|
81
81
|
case 'digi-badge-status.cjs':
|
|
82
82
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
83
83
|
/* webpackMode: "lazy" */
|
|
@@ -870,10 +870,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
870
870
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
871
871
|
/* webpackMode: "lazy" */
|
|
872
872
|
'./digi-progress-circle.cjs.entry.js')); }).then(processMod, consoleError);
|
|
873
|
-
case 'digi-progress-indicator.cjs':
|
|
874
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
875
|
-
/* webpackMode: "lazy" */
|
|
876
|
-
'./digi-progress-indicator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
877
873
|
case 'digi-progress-list.cjs':
|
|
878
874
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
879
875
|
/* webpackMode: "lazy" */
|
|
@@ -902,6 +898,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
902
898
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
903
899
|
/* webpackMode: "lazy" */
|
|
904
900
|
'./digi-tablist-panel.cjs.entry.js')); }).then(processMod, consoleError);
|
|
901
|
+
case 'digi-tag.cjs':
|
|
902
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
903
|
+
/* webpackMode: "lazy" */
|
|
904
|
+
'./digi-tag.cjs.entry.js')); }).then(processMod, consoleError);
|
|
905
905
|
case 'digi-tools-feedback.cjs':
|
|
906
906
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
907
907
|
/* webpackMode: "lazy" */
|
|
@@ -1070,14 +1070,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1070
1070
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1071
1071
|
/* webpackMode: "lazy" */
|
|
1072
1072
|
'./digi-util-breakpoint-observer.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1073
|
-
case 'digi-
|
|
1073
|
+
case 'digi-form-label_3.cjs':
|
|
1074
1074
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1075
1075
|
/* webpackMode: "lazy" */
|
|
1076
|
-
'./digi-
|
|
1077
|
-
case 'digi-
|
|
1076
|
+
'./digi-form-label_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1077
|
+
case 'digi-icon-x.cjs':
|
|
1078
1078
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1079
1079
|
/* webpackMode: "lazy" */
|
|
1080
|
-
'./digi-
|
|
1080
|
+
'./digi-icon-x.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1081
1081
|
case 'digi-util-keydown-handler.cjs':
|
|
1082
1082
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1083
1083
|
/* webpackMode: "lazy" */
|
|
@@ -1090,10 +1090,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1090
1090
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1091
1091
|
/* webpackMode: "lazy" */
|
|
1092
1092
|
'./digi-icon-chevron-right.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1093
|
-
case 'digi-
|
|
1093
|
+
case 'digi-button.cjs':
|
|
1094
1094
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1095
1095
|
/* webpackMode: "lazy" */
|
|
1096
|
-
'./digi-
|
|
1096
|
+
'./digi-button.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -40,14 +40,14 @@ const navigationContextMenuItemType_enum = require('./navigation-context-menu-it
|
|
|
40
40
|
const navigationContextMenuHorizontalPosition_enum = require('./navigation-context-menu-horizontal-position.enum-71b76501.js');
|
|
41
41
|
const navigationSidebarVariation_enum = require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
42
42
|
const navigationVerticalMenuVariation_enum = require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
43
|
-
const
|
|
43
|
+
const typographyVariation_enum = require('./typography-variation.enum-252bed2e.js');
|
|
44
44
|
const progressListItemVariation_enum = require('./progress-list-item-variation.enum-90e4c874.js');
|
|
45
45
|
const progressListVariation_enum = require('./progress-list-variation.enum-06d5ce27.js');
|
|
46
46
|
const progressbarVariation_enum = require('./progressbar-variation.enum-aff9fa80.js');
|
|
47
47
|
const quoteImageInnerPosition_enum = require('./quote-image-inner-position.enum-e64e7a6d.js');
|
|
48
48
|
const tableVariation_enum = require('./table-variation.enum-25df2ad7.js');
|
|
49
49
|
const tagMediaIcon_enum = require('./tag-media-icon.enum-372563c5.js');
|
|
50
|
-
const
|
|
50
|
+
const tagSize_enum = require('./tag-size.enum-0a6be639.js');
|
|
51
51
|
const toolsFeedbackBannerType_enum = require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
52
52
|
const toolsFeedbackRatingVariation_enum = require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
53
53
|
const typographyHeadingJumboVariation_enum = require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
@@ -675,13 +675,19 @@ Object.defineProperty(exports, 'NavigationVerticalMenuVariation', {
|
|
|
675
675
|
Object.defineProperty(exports, 'ProgressIndicatorRole', {
|
|
676
676
|
enumerable: true,
|
|
677
677
|
get: function () {
|
|
678
|
-
return
|
|
678
|
+
return typographyVariation_enum.ProgressIndicatorRole;
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
681
|
Object.defineProperty(exports, 'ProgressIndicatorVariation', {
|
|
682
682
|
enumerable: true,
|
|
683
683
|
get: function () {
|
|
684
|
-
return
|
|
684
|
+
return typographyVariation_enum.ProgressIndicatorVariation;
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
Object.defineProperty(exports, 'TypographyVariation', {
|
|
688
|
+
enumerable: true,
|
|
689
|
+
get: function () {
|
|
690
|
+
return typographyVariation_enum.TypographyVariation;
|
|
685
691
|
}
|
|
686
692
|
});
|
|
687
693
|
Object.defineProperty(exports, 'ProgressListItemHeadingLevel', {
|
|
@@ -789,13 +795,7 @@ Object.defineProperty(exports, 'TagMediaIcon', {
|
|
|
789
795
|
Object.defineProperty(exports, 'TagSize', {
|
|
790
796
|
enumerable: true,
|
|
791
797
|
get: function () {
|
|
792
|
-
return
|
|
793
|
-
}
|
|
794
|
-
});
|
|
795
|
-
Object.defineProperty(exports, 'TypographyVariation', {
|
|
796
|
-
enumerable: true,
|
|
797
|
-
get: function () {
|
|
798
|
-
return typographyVariation_enum.TypographyVariation;
|
|
798
|
+
return tagSize_enum.TagSize;
|
|
799
799
|
}
|
|
800
800
|
});
|
|
801
801
|
Object.defineProperty(exports, 'ToolsFeedbackBannerHeadingLevel', {
|