@dso-toolkit/core 53.0.0 → 53.1.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/dist/cjs/dso-accordion-section.cjs.entry.js +39 -1404
- package/dist/cjs/dso-action-list-item.cjs.entry.js +27 -0
- package/dist/cjs/dso-action-list.cjs.entry.js +20 -0
- package/dist/cjs/dso-annotation-output.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +18 -3
- package/dist/cjs/dso-expandable-heading.cjs.entry.js +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js +1433 -2
- package/dist/cjs/dso-header.cjs.entry.js +16 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- package/dist/cjs/dso-image-overlay.cjs.entry.js +2 -2
- package/dist/cjs/dso-info_2.cjs.entry.js +3 -2
- package/dist/cjs/dso-list-button.cjs.entry.js +3 -3
- package/dist/cjs/dso-modal.cjs.entry.js +2 -2
- package/dist/cjs/dso-ozon-content.cjs.entry.js +1 -1
- package/dist/cjs/dso-table.cjs.entry.js +2 -2
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
- package/dist/cjs/expandable.interfaces-19b608b9.js +7 -0
- package/dist/cjs/{focus-trap.esm-c501d382.js → focus-trap.esm-a5b7273f.js} +134 -51
- package/dist/cjs/{has-overflow-b1b4f3f3.js → has-overflow-dd552ec8.js} +3 -4
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/{index.esm-03a9e0b4.js → index.esm-0e935715.js} +97 -17
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +60 -10
- package/dist/collection/components/accordion/components/accordion-section.js +41 -100
- package/dist/collection/components/action-list/action-list.css +25 -0
- package/dist/collection/components/action-list/action-list.js +42 -0
- package/dist/collection/components/action-list/components/action-list-item.css +81 -0
- package/dist/collection/components/action-list/components/action-list-item.js +120 -0
- package/dist/collection/components/annotation-output/annotation-output.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +36 -1
- package/dist/collection/components/expandable/expandable.css +12 -1
- package/dist/collection/components/expandable/expandable.interfaces.js +3 -0
- package/dist/collection/components/expandable/expandable.js +246 -2
- package/dist/collection/components/expandable-heading/expandable-heading.js +1 -1
- package/dist/collection/components/header/header.js +18 -2
- package/dist/collection/components/list-button/list-button.css +2 -2
- package/dist/collection/components/selectable/selectable.css +22 -9
- package/dist/collection/components/selectable/selectable.js +2 -1
- package/dist/collection/index.js +1 -0
- package/dist/components/dropdown-menu.js +17 -1
- package/dist/components/dso-accordion-section.js +52 -1407
- package/dist/components/dso-action-list-item.d.ts +11 -0
- package/dist/components/dso-action-list-item.js +53 -0
- package/dist/components/dso-action-list.d.ts +11 -0
- package/dist/components/dso-action-list.js +36 -0
- package/dist/components/dso-annotation-output.js +1 -1
- package/dist/components/dso-date-picker.js +2 -2
- package/dist/components/dso-expandable-heading.js +1 -1
- package/dist/components/dso-header.js +18 -2
- package/dist/components/dso-list-button.js +1 -1
- package/dist/components/expandable.js +1440 -4
- package/dist/components/focus-trap.esm.js +133 -50
- package/dist/components/has-overflow.js +3 -4
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.esm.js +97 -17
- package/dist/components/index.js +3 -1
- package/dist/components/selectable.js +3 -2
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/index.esm.js +1 -1
- package/dist/dso-toolkit/{p-e4f667b3.entry.js → p-0b6fa7d3.entry.js} +1 -1
- package/dist/dso-toolkit/p-36224d6f.entry.js +1 -0
- package/dist/dso-toolkit/{p-9b07b034.entry.js → p-398a8e0b.entry.js} +1 -1
- package/dist/dso-toolkit/{p-d2805c02.entry.js → p-3b91c3e9.entry.js} +1 -1
- package/dist/dso-toolkit/p-452b1234.js +1 -0
- package/dist/dso-toolkit/p-5950644a.js +5 -0
- package/dist/dso-toolkit/{p-b3f4645f.entry.js → p-5de8b79a.entry.js} +1 -1
- package/dist/dso-toolkit/p-5e50b616.entry.js +1 -0
- package/dist/dso-toolkit/p-6a99d7f8.entry.js +1 -0
- package/dist/dso-toolkit/p-91963e3d.js +5 -0
- package/dist/dso-toolkit/p-96f44d35.entry.js +1 -0
- package/dist/dso-toolkit/p-975c172a.entry.js +1 -0
- package/dist/dso-toolkit/{p-092dde2f.entry.js → p-a1616935.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ba330644.entry.js → p-bb90ea4c.entry.js} +1 -1
- package/dist/dso-toolkit/p-bf750b97.js +1 -0
- package/dist/dso-toolkit/{p-aab458c4.entry.js → p-c86a5bcb.entry.js} +1 -1
- package/dist/dso-toolkit/{p-f2b76233.entry.js → p-cf9b79df.entry.js} +1 -1
- package/dist/dso-toolkit/{p-43f3d736.entry.js → p-d10ec2b3.entry.js} +1 -1
- package/dist/dso-toolkit/p-e8a6ccf5.entry.js +1 -0
- package/dist/dso-toolkit/p-eaae698e.entry.js +1 -0
- package/dist/dso-toolkit/p-fa2f1a1c.entry.js +1 -0
- package/dist/dso-toolkit/p-fe7ca25f.entry.js +1 -0
- package/dist/esm/dso-accordion-section.entry.js +39 -1404
- package/dist/esm/dso-action-list-item.entry.js +23 -0
- package/dist/esm/dso-action-list.entry.js +16 -0
- package/dist/esm/dso-annotation-output.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +18 -3
- package/dist/esm/dso-expandable-heading.entry.js +1 -1
- package/dist/esm/dso-expandable.entry.js +1434 -3
- package/dist/esm/dso-header.entry.js +16 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
- package/dist/esm/dso-image-overlay.entry.js +2 -2
- package/dist/esm/dso-info_2.entry.js +3 -2
- package/dist/esm/dso-list-button.entry.js +3 -3
- package/dist/esm/dso-modal.entry.js +2 -2
- package/dist/esm/dso-ozon-content.entry.js +1 -1
- package/dist/esm/dso-table.entry.js +2 -2
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tooltip.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +2 -2
- package/dist/esm/expandable.interfaces-9b1afbe8.js +5 -0
- package/dist/esm/{focus-trap.esm-94794d92.js → focus-trap.esm-2a49a38f.js} +134 -51
- package/dist/esm/{has-overflow-c44a8a0a.js → has-overflow-fdc85d8f.js} +3 -4
- package/dist/esm/{index.esm-8fc07ad8.js → index.esm-3d6c8190.js} +97 -17
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/accordion/accordion.interfaces.d.ts +1 -1
- package/dist/types/components/accordion/components/accordion-section.d.ts +4 -8
- package/dist/types/components/action-list/action-list.d.ts +5 -0
- package/dist/types/components/action-list/components/action-list-item.d.ts +15 -0
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +5 -0
- package/dist/types/components/expandable/expandable.d.ts +25 -1
- package/dist/types/components/expandable/expandable.interfaces.d.ts +10 -0
- package/dist/types/components/header/header.d.ts +3 -0
- package/dist/types/components/modal/modal.controller.d.ts +2 -3
- package/dist/types/components/modal/modal.interfaces.d.ts +11 -0
- package/dist/types/components.d.ts +77 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +11 -11
- package/dist/dso-toolkit/p-147ec7bd.entry.js +0 -1
- package/dist/dso-toolkit/p-3635427a.js +0 -5
- package/dist/dso-toolkit/p-452c7fbb.entry.js +0 -1
- package/dist/dso-toolkit/p-460e6134.entry.js +0 -1
- package/dist/dso-toolkit/p-4ae40ddc.entry.js +0 -1
- package/dist/dso-toolkit/p-4c8426b7.entry.js +0 -1
- package/dist/dso-toolkit/p-57ceabab.js +0 -5
- package/dist/dso-toolkit/p-d3ed00f6.js +0 -1
- package/dist/dso-toolkit/p-e3bd7689.entry.js +0 -1
- package/dist/dso-toolkit/p-f3f0d6c9.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["dso-icon.cjs",[[1,"dso-icon",{"icon":[1]}]]],["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"group":[1],"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"group":[1],"overlays":[16]}]]],["dso-annotation-output.cjs",[[4,"dso-annotation-output",{"identifier":[1],"annotationPrefix":[1,"annotation-prefix"],"toggleAnnotation":[64]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-expandable-heading.cjs",[[1,"dso-expandable-heading",{"open":[4],"heading":[1],"color":[1],"editAction":[1,"edit-action"]}]]],["dso-header.cjs",[[6,"dso-header",{"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"authStatus":[1,"auth-status"],"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"truncate":[4],"removeHover":[32],"removeFocus":[32],"textHover":[32],"textFocus":[32],"isTruncated":[32],"labelText":[32],"truncateLabel":[64],"syncLabelText":[64]}]]],["dso-pagination.cjs",[[1,"dso-pagination",{"totalPages":[2,"total-pages"],"currentPage":[2,"current-page"],"formatHref":[16],"availablePositions":[32]},[[0,"dsoSizeChange","sizeChangeHandler"]]]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16],"focusItem":[64]}]]],["dso-
|
|
17
|
+
return index.bootstrapLazy([["dso-icon.cjs",[[1,"dso-icon",{"icon":[1]}]]],["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"group":[1],"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"group":[1],"overlays":[16]}]]],["dso-annotation-output.cjs",[[4,"dso-annotation-output",{"identifier":[1],"annotationPrefix":[1,"annotation-prefix"],"toggleAnnotation":[64]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-accordion-section.cjs",[[1,"dso-accordion-section",{"handleTitle":[1,"handle-title"],"heading":[1],"handleUrl":[1,"handle-url"],"state":[1],"attachmentCount":[2,"attachment-count"],"icon":[1],"status":[1],"open":[1540],"hasNestedSection":[32],"hover":[32],"toggleSection":[64],"scrollSectionIntoView":[64]}]]],["dso-expandable-heading.cjs",[[1,"dso-expandable-heading",{"open":[4],"heading":[1],"color":[1],"editAction":[1,"edit-action"]}]]],["dso-header.cjs",[[6,"dso-header",{"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"authStatus":[1,"auth-status"],"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32],"dropdownOptionsOffset":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"truncate":[4],"removeHover":[32],"removeFocus":[32],"textHover":[32],"textFocus":[32],"isTruncated":[32],"labelText":[32],"truncateLabel":[64],"syncLabelText":[64]}]]],["dso-pagination.cjs",[[1,"dso-pagination",{"totalPages":[2,"total-pages"],"currentPage":[2,"current-page"],"formatHref":[16],"availablePositions":[32]},[[0,"dsoSizeChange","sizeChangeHandler"]]]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16],"focusItem":[64]}]]],["dso-action-list-item.cjs",[[1,"dso-action-list-item",{"step":[2],"itemTitle":[1,"item-title"],"flowLine":[4,"flow-line"],"warning":[4],"divider":[4]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-annotation-button.cjs",[[0,"dso-annotation-button",{"identifier":[1]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"suggestions":[16],"loading":[4],"loadingLabel":[1,"loading-label"],"loadingDelayed":[2,"loading-delayed"],"notFoundLabel":[1,"not-found-label"],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32],"notFound":[32],"showLoading":[32]},[[4,"click","onDocumentClick"]]]]],["dso-date-picker.cjs",[[2,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"invalid":[516],"dsoAutofocus":[4,"dso-autofocus"],"value":[1537],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]},[[8,"keydown","keyDownListener"]]]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"zoomable":[32]},[[2,"load","loadListener"]]]]],["dso-list-button.cjs",[[1,"dso-list-button",{"label":[1],"sublabel":[1],"subcontent":[1],"count":[2],"min":[8],"max":[8],"checked":[516],"disabled":[516],"manualInputWrapperElement":[32],"manualCount":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32],"toggleVisibility":[64]}]]],["dso-modal.cjs",[[1,"dso-modal",{"modalTitle":[1,"modal-title"],"role":[1],"showCloseButton":[4,"show-close-button"],"initialFocus":[1,"initial-focus"],"ariaId":[32],"hasFooter":[32]}]]],["dso-table.cjs",[[1,"dso-table",{"noModal":[516,"no-modal"],"isResponsive":[516,"is-responsive"],"modalActive":[32],"placeholderHeight":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"initialMainSize":[1,"initial-main-size"],"mainSize":[32]}]]],["dso-accordion.cjs",[[1,"dso-accordion",{"variant":[513],"reverseAlign":[516,"reverse-align"],"allowMultipleOpen":[516,"allow-multiple-open"],"getState":[64],"toggleSection":[64],"animationEnd":[64],"closeOpenSections":[64]}]]],["dso-action-list.cjs",[[1,"dso-action-list",{"listTitle":[1,"list-title"]}]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[513]}]]],["dso-card.cjs",[[1,"dso-card",{"isSelectable":[516,"is-selectable"],"hasImage":[516,"has-image"],"clickable":[4],"imageShape":[513,"image-shape"]}]]],["dso-card-container.cjs",[[1,"dso-card-container",{"mode":[513]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[6,"dso-ozon-content",{"content":[1],"inline":[516],"deleted":[516],"interactive":[520],"state":[32]}]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-slide-toggle.cjs",[[4,"dso-slide-toggle",{"checked":[4],"disabled":[4],"accessibleLabel":[1,"accessible-label"],"labelledbyId":[1,"labelledby-id"],"identifier":[1],"hasVisibleLabel":[32]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"dropdownOptionsOffset":[2,"dropdown-options-offset"],"checkable":[4],"boundary":[1],"strategy":[1]}]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[513],"block":[4]}]]],["dso-responsive-element.cjs",[[1,"dso-responsive-element",{"sizeAlias":[32],"sizeWidth":[32],"getSize":[64]}]]],["dso-tooltip.cjs",[[1,"dso-tooltip",{"descriptive":[516],"position":[1],"strategy":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-expandable.cjs",[[1,"dso-expandable",{"open":[516],"enableAnimation":[4,"enable-animation"],"minimumHeight":[2,"minimum-height"],"animationReady":[32],"getAnimeInstance":[64],"getBodyHeight":[64]}]]],["dso-info-button.cjs",[[1,"dso-info-button",{"active":[1540],"secondary":[4],"label":[1],"hover":[32],"setFocus":[64]}]]],["dso-info_2.cjs",[[6,"dso-selectable",{"type":[1],"identifier":[1],"name":[1],"value":[1],"invalid":[4],"describedById":[1,"described-by-id"],"labelledById":[1,"labelled-by-id"],"disabled":[4],"required":[4],"checked":[4],"indeterminate":[4],"infoFixed":[4,"info-fixed"],"infoActive":[32],"toggleInfo":[64]}],[1,"dso-info",{"fixed":[516],"active":[516]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"entries": [
|
|
3
3
|
"./components/accordion/accordion.js",
|
|
4
4
|
"./components/accordion/components/accordion-section.js",
|
|
5
|
+
"./components/action-list/action-list.js",
|
|
6
|
+
"./components/action-list/components/action-list-item.js",
|
|
5
7
|
"./components/alert/alert.js",
|
|
6
8
|
"./components/annotation-button/annotation-button.js",
|
|
7
9
|
"./components/annotation-output/annotation-output.js",
|
|
@@ -129,7 +129,7 @@ export class Accordion {
|
|
|
129
129
|
"mutable": false,
|
|
130
130
|
"complexType": {
|
|
131
131
|
"original": "AccordionVariant",
|
|
132
|
-
"resolved": "\"compact\" | \"conclusion\" | \"default\" | undefined",
|
|
132
|
+
"resolved": "\"compact\" | \"conclusion\" | \"default\" | \"neutral\" | undefined",
|
|
133
133
|
"references": {
|
|
134
134
|
"AccordionVariant": {
|
|
135
135
|
"location": "import",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
:host .dso-section-handle > button,
|
|
45
45
|
:host .dso-section-handle > a {
|
|
46
|
-
align-items:
|
|
46
|
+
align-items: flex-start;
|
|
47
47
|
background-color: transparent;
|
|
48
48
|
border: 0;
|
|
49
49
|
cursor: pointer;
|
|
@@ -88,10 +88,6 @@
|
|
|
88
88
|
margin-left: 16px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
:host([open]) .dso-section-body {
|
|
92
|
-
position: inherit;
|
|
93
|
-
visibility: inherit;
|
|
94
|
-
}
|
|
95
91
|
:host([open]) .dso-section-handle > button .dso-section-handle-chevron:first-child,
|
|
96
92
|
:host([open]) .dso-section-handle > a .dso-section-handle-chevron:first-child {
|
|
97
93
|
transform: rotate(90deg);
|
|
@@ -105,11 +101,6 @@
|
|
|
105
101
|
background-color: #fff;
|
|
106
102
|
border-top: 0;
|
|
107
103
|
margin-top: -4px;
|
|
108
|
-
overflow-y: hidden;
|
|
109
|
-
}
|
|
110
|
-
.dso-section-body:not(.dso-animate-ready) {
|
|
111
|
-
position: absolute;
|
|
112
|
-
visibility: hidden;
|
|
113
104
|
}
|
|
114
105
|
.dso-section-body .dso-section-body-content {
|
|
115
106
|
padding: 20px 16px 16px;
|
|
@@ -245,4 +236,63 @@
|
|
|
245
236
|
|
|
246
237
|
:host(.dso-accordion-conclusion.dso-nested-accordion[open]) {
|
|
247
238
|
background-color: #fff;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:host(.dso-accordion-neutral) .dso-section-handle {
|
|
242
|
+
background-color: transparent;
|
|
243
|
+
border: none;
|
|
244
|
+
border-radius: 4px;
|
|
245
|
+
margin-block-end: 2px;
|
|
246
|
+
}
|
|
247
|
+
:host(.dso-accordion-neutral) .dso-section-handle a,
|
|
248
|
+
:host(.dso-accordion-neutral) .dso-section-handle button {
|
|
249
|
+
color: #000;
|
|
250
|
+
padding: 5px 16px 5px 0;
|
|
251
|
+
}
|
|
252
|
+
:host(.dso-accordion-neutral) .dso-section-handle a:hover, :host(.dso-accordion-neutral) .dso-section-handle a:active, :host(.dso-accordion-neutral) .dso-section-handle a.active,
|
|
253
|
+
:host(.dso-accordion-neutral) .dso-section-handle button:hover,
|
|
254
|
+
:host(.dso-accordion-neutral) .dso-section-handle button:active,
|
|
255
|
+
:host(.dso-accordion-neutral) .dso-section-handle button.active {
|
|
256
|
+
color: #000;
|
|
257
|
+
}
|
|
258
|
+
:host(.dso-accordion-neutral) .dso-section-handle a .info-icon,
|
|
259
|
+
:host(.dso-accordion-neutral) .dso-section-handle button .info-icon {
|
|
260
|
+
color: #39870c;
|
|
261
|
+
margin-inline-start: 8px;
|
|
262
|
+
}
|
|
263
|
+
:host(.dso-accordion-neutral) .dso-section-body {
|
|
264
|
+
background-color: transparent;
|
|
265
|
+
border: 1px solid #275937;
|
|
266
|
+
box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.5);
|
|
267
|
+
margin-block: 0;
|
|
268
|
+
}
|
|
269
|
+
:host(.dso-accordion-neutral) .dso-section-body.dso-animate-ready {
|
|
270
|
+
transition: margin-block 260ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
271
|
+
}
|
|
272
|
+
:host(.dso-accordion-neutral) .dso-section-body .dso-section-body-content {
|
|
273
|
+
padding: 16px 32px 24px 32px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:host(.dso-accordion-neutral[open]) > .dso-section-handle {
|
|
277
|
+
background-color: transparant;
|
|
278
|
+
border-radius: 0;
|
|
279
|
+
border-top-left-radius: 4px;
|
|
280
|
+
border-top-right-radius: 4px;
|
|
281
|
+
}
|
|
282
|
+
:host(.dso-accordion-neutral[open]) > .dso-section-handle a,
|
|
283
|
+
:host(.dso-accordion-neutral[open]) > .dso-section-handle button {
|
|
284
|
+
color: #000;
|
|
285
|
+
}
|
|
286
|
+
:host(.dso-accordion-neutral[open]) > .dso-section-handle a dso-attachments-counter,
|
|
287
|
+
:host(.dso-accordion-neutral[open]) > .dso-section-handle button dso-attachments-counter {
|
|
288
|
+
--dso-attachments-counter-color: #fff;
|
|
289
|
+
--dso-icon: var(--di-paperclip-wit);
|
|
290
|
+
}
|
|
291
|
+
:host(.dso-accordion-neutral[open]) .dso-section-body {
|
|
292
|
+
margin-block-end: 16px;
|
|
293
|
+
margin-block-start: 2px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
:host(.dso-accordion-neutral.dso-nested-accordion[open]) .dso-section-body {
|
|
297
|
+
background-color: #e5e5e5;
|
|
248
298
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h, forceUpdate, Fragment, Host, } from "@stencil/core";
|
|
2
|
-
import
|
|
3
|
-
import debounce from "debounce";
|
|
2
|
+
import { isExpandable } from "../../expandable/expandable.interfaces";
|
|
4
3
|
import { stateMap } from "./accordion-section.interfaces";
|
|
5
4
|
import { Handle, HandleElement, HandleIcon } from "./handles";
|
|
6
5
|
export class AccordionSection {
|
|
@@ -14,9 +13,7 @@ export class AccordionSection {
|
|
|
14
13
|
this.status = undefined;
|
|
15
14
|
this.open = false;
|
|
16
15
|
this.hasNestedSection = false;
|
|
17
|
-
|
|
18
|
-
toggleOpen() {
|
|
19
|
-
this.activateAnimation();
|
|
16
|
+
this.hover = false;
|
|
20
17
|
}
|
|
21
18
|
componentWillLoad() {
|
|
22
19
|
const accordion = this.host.parentElement;
|
|
@@ -28,18 +25,6 @@ export class AccordionSection {
|
|
|
28
25
|
forceUpdate(this.host);
|
|
29
26
|
});
|
|
30
27
|
}
|
|
31
|
-
this.prepareAnimationResizeObserver();
|
|
32
|
-
}
|
|
33
|
-
componentDidLoad() {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
const bodyContentElement = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dso-section-body-content");
|
|
36
|
-
if (bodyContentElement) {
|
|
37
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(bodyContentElement);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
disconnectedCallback() {
|
|
41
|
-
var _a;
|
|
42
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
43
28
|
}
|
|
44
29
|
/** Toggle this section.
|
|
45
30
|
* @param scrollIntoView boolean - defaults to true
|
|
@@ -56,6 +41,10 @@ export class AccordionSection {
|
|
|
56
41
|
async scrollSectionIntoView() {
|
|
57
42
|
await this.scrollIntoViewWhenNeeded(false);
|
|
58
43
|
}
|
|
44
|
+
get isNeutral() {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = this.accordionState) === null || _a === void 0 ? void 0 : _a.variant) === "neutral";
|
|
47
|
+
}
|
|
59
48
|
async scrollIntoViewWhenNeeded(sectionToggled) {
|
|
60
49
|
var _a, _b, _c;
|
|
61
50
|
AccordionSection.scrollCandidate = undefined;
|
|
@@ -64,12 +53,13 @@ export class AccordionSection {
|
|
|
64
53
|
if (!bodyClientRect || !headingClientRect || !this.accordionState) {
|
|
65
54
|
return;
|
|
66
55
|
}
|
|
67
|
-
const waitForAnimationBeforeScrolling = (state) => {
|
|
68
|
-
var _a;
|
|
69
|
-
|
|
56
|
+
const waitForAnimationBeforeScrolling = async (state) => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
this.bodyHeight = await ((_a = this.expandable) === null || _a === void 0 ? void 0 : _a.getBodyHeight());
|
|
59
|
+
const sectionBottomOffsetTop = this.host.offsetTop + headingClientRect.height + (this.open ? (_b = this.bodyHeight) !== null && _b !== void 0 ? _b : 0 : 0);
|
|
70
60
|
return (sectionToggled && (sectionBottomOffsetTop > document.documentElement.scrollHeight || state.allowMultipleOpen));
|
|
71
61
|
};
|
|
72
|
-
if (waitForAnimationBeforeScrolling(this.accordionState)) {
|
|
62
|
+
if (await waitForAnimationBeforeScrolling(this.accordionState)) {
|
|
73
63
|
AccordionSection.scrollCandidate = this.host;
|
|
74
64
|
return;
|
|
75
65
|
}
|
|
@@ -92,6 +82,33 @@ export class AccordionSection {
|
|
|
92
82
|
});
|
|
93
83
|
}
|
|
94
84
|
}
|
|
85
|
+
setAnimationBehaviour(event, section) {
|
|
86
|
+
const expandableElement = event.target;
|
|
87
|
+
if (!(expandableElement instanceof HTMLElement)) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (isExpandable(expandableElement)) {
|
|
91
|
+
this.expandable = expandableElement;
|
|
92
|
+
this.expandable.getAnimeInstance().then((animeInstance) => {
|
|
93
|
+
if (animeInstance) {
|
|
94
|
+
animeInstance.update;
|
|
95
|
+
animeInstance.changeComplete = async () => {
|
|
96
|
+
if (!section) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const accordion = section.parentElement;
|
|
100
|
+
if (isAccordion(accordion)) {
|
|
101
|
+
accordion === null || accordion === void 0 ? void 0 : accordion.animationEnd(section);
|
|
102
|
+
}
|
|
103
|
+
if (AccordionSection.scrollCandidate === this.host) {
|
|
104
|
+
AccordionSection.scrollCandidate = undefined;
|
|
105
|
+
await this.scrollSectionIntoView();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
95
112
|
async toggle(e) {
|
|
96
113
|
var _a;
|
|
97
114
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
@@ -110,78 +127,7 @@ export class AccordionSection {
|
|
|
110
127
|
["dso-accordion-" + variant]: true,
|
|
111
128
|
"dso-nested-accordion": this.hasNestedSection,
|
|
112
129
|
"dso-accordion-reverse-align": reverseAlign !== null && reverseAlign !== void 0 ? reverseAlign : false,
|
|
113
|
-
}, hidden: !variant }, h(Handle, { heading: this.heading, ref: (element) => (this.sectionHeading = element) }, h(HandleElement, { handleUrl: this.handleUrl, onClick: async (event) => await this.toggle(event), open: this.open }, reverseAlign ? (h(Fragment, null, hasAddons && (h("div", { class: "dso-section-handle-addons" }, h(HandleIcon, { icon: this.icon }))), h("span", null, this.handleTitle), h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-down" }))) : (h(Fragment, null, h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-right" }), this.state && h("span", { class: "sr-only" }, stateMap[this.state]), h("span", null, this.handleTitle), hasAddons && (h("div", { class: "dso-section-handle-addons" }, this.status && h("span", { class: "dso-status" }, this.status), h(HandleIcon, { state: this.state, icon: this.icon, attachmentCount: this.attachmentCount }))))))), h("
|
|
114
|
-
}
|
|
115
|
-
prepareAnimationResizeObserver() {
|
|
116
|
-
this.resizeObserver = new ResizeObserver(debounce(([entry]) => {
|
|
117
|
-
// entry.contentRect does not include padding, so we use getBoundingClientRect.
|
|
118
|
-
const height = entry.target.getBoundingClientRect().height;
|
|
119
|
-
if (this.bodyHeight !== height) {
|
|
120
|
-
this.bodyHeight = height;
|
|
121
|
-
this.instantiateAnimation();
|
|
122
|
-
}
|
|
123
|
-
}, 150));
|
|
124
|
-
}
|
|
125
|
-
instantiateAnimation() {
|
|
126
|
-
this.animeInstance = anime({
|
|
127
|
-
targets: this.sectionBody,
|
|
128
|
-
height: 4,
|
|
129
|
-
easing: "cubicBezier(0.4, 0, 0.2, 1)",
|
|
130
|
-
duration: 260,
|
|
131
|
-
autoplay: false,
|
|
132
|
-
direction: "normal",
|
|
133
|
-
changeComplete: async () => {
|
|
134
|
-
var _a;
|
|
135
|
-
(_a = this.accordion) === null || _a === void 0 ? void 0 : _a.animationEnd(this.host);
|
|
136
|
-
if (AccordionSection.scrollCandidate === this.host) {
|
|
137
|
-
AccordionSection.scrollCandidate = undefined;
|
|
138
|
-
await this.scrollSectionIntoView();
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
begin: () => {
|
|
142
|
-
if (this.sectionBody) {
|
|
143
|
-
if (this.open) {
|
|
144
|
-
this.sectionBody.style.visibility = "";
|
|
145
|
-
this.sectionBody.style.position = "";
|
|
146
|
-
this.sectionBody.style.bottom = "";
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
complete: () => {
|
|
151
|
-
if (this.sectionBody) {
|
|
152
|
-
this.sectionBody.style.height = "";
|
|
153
|
-
if (!this.open) {
|
|
154
|
-
this.sectionBody.style.visibility = "hidden";
|
|
155
|
-
this.sectionBody.style.position = "absolute";
|
|
156
|
-
this.sectionBody.style.bottom = "100%";
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
});
|
|
161
|
-
if (!this.open) {
|
|
162
|
-
this.animeInstance.reverse();
|
|
163
|
-
this.animeInstance.play();
|
|
164
|
-
}
|
|
165
|
-
if (this.sectionBody) {
|
|
166
|
-
this.sectionBody.style.height = "";
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
activateAnimation() {
|
|
170
|
-
if (this.animeInstance) {
|
|
171
|
-
if (this.animeInstance.progress > 0 && this.animeInstance.progress < 100) {
|
|
172
|
-
this.animeInstance.reverse();
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
if (this.open) {
|
|
176
|
-
this.animeInstance.direction = "reverse";
|
|
177
|
-
this.animeInstance.play();
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
this.animeInstance.direction = "normal";
|
|
181
|
-
this.animeInstance.play();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
130
|
+
}, hidden: !variant, onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h(Handle, { heading: this.heading, ref: (element) => (this.sectionHeading = element) }, h(HandleElement, { handleUrl: this.handleUrl, onClick: async (event) => await this.toggle(event), open: this.open }, reverseAlign ? (h(Fragment, null, hasAddons && (h("div", { class: "dso-section-handle-addons" }, h(HandleIcon, { icon: this.icon }))), h("span", null, this.handleTitle), h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-down" }))) : (h(Fragment, null, h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-right" }), this.state && h("span", { class: "sr-only" }, stateMap[this.state]), h("span", null, this.handleTitle, this.isNeutral && (h("dso-icon", { class: "info-icon", icon: this.open || this.hover ? "info-active" : "info" }))), hasAddons && (h("div", { class: "dso-section-handle-addons" }, this.status && h("span", { class: "dso-status" }, this.status), h(HandleIcon, { state: this.state, icon: this.icon, attachmentCount: this.attachmentCount }))))))), h("dso-expandable", { class: "dso-section-body", open: this.open, enableAnimation: true, minimumHeight: this.isNeutral ? 0 : 4, onAnimationInstantiated: (e) => this.setAnimationBehaviour(e, this.host) }, h("div", { slot: "expandable-content", class: "dso-section-body-content", ref: (element) => (this.sectionBody = element) }, h("slot", null)))));
|
|
185
131
|
}
|
|
186
132
|
static get is() { return "dso-accordion-section"; }
|
|
187
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -349,7 +295,8 @@ export class AccordionSection {
|
|
|
349
295
|
}
|
|
350
296
|
static get states() {
|
|
351
297
|
return {
|
|
352
|
-
"hasNestedSection": {}
|
|
298
|
+
"hasNestedSection": {},
|
|
299
|
+
"hover": {}
|
|
353
300
|
};
|
|
354
301
|
}
|
|
355
302
|
static get methods() {
|
|
@@ -398,12 +345,6 @@ export class AccordionSection {
|
|
|
398
345
|
};
|
|
399
346
|
}
|
|
400
347
|
static get elementRef() { return "host"; }
|
|
401
|
-
static get watchers() {
|
|
402
|
-
return [{
|
|
403
|
-
"propName": "open",
|
|
404
|
-
"methodName": "toggleOpen"
|
|
405
|
-
}];
|
|
406
|
-
}
|
|
407
348
|
}
|
|
408
349
|
function isAccordion(element) {
|
|
409
350
|
return element instanceof HTMLElement && "getState" in element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
background-color: #e1ecf7;
|
|
3
|
+
display: block;
|
|
4
|
+
padding-block: 16px;
|
|
5
|
+
padding-inline-start: 16px;
|
|
6
|
+
padding-inline-end: 96px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*,
|
|
10
|
+
*::after,
|
|
11
|
+
*::before {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h2 {
|
|
16
|
+
color: #275937;
|
|
17
|
+
color: #275937;
|
|
18
|
+
font-size: 1.5rem;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
margin-block: 0 16px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dso-action-list-content {
|
|
24
|
+
padding-inline-start: 80px;
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class ActionList {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.listTitle = undefined;
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return (h(Host, null, h("h2", null, this.listTitle), h("div", { class: "dso-action-list-content" }, h("slot", null))));
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "dso-action-list"; }
|
|
10
|
+
static get encapsulation() { return "shadow"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["action-list.scss"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["action-list.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"listTitle": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "string",
|
|
28
|
+
"resolved": "string",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": true,
|
|
32
|
+
"optional": false,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [],
|
|
35
|
+
"text": ""
|
|
36
|
+
},
|
|
37
|
+
"attribute": "list-title",
|
|
38
|
+
"reflect": false
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
padding-block: 16px;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
:host.dso-has-counter {
|
|
13
|
+
padding-top: 2.5rem;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
:host .dso-step-counter {
|
|
17
|
+
background-color: #275937;
|
|
18
|
+
border: 8px solid #79b929;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
box-sizing: content-box;
|
|
21
|
+
color: #fff;
|
|
22
|
+
font-size: 1.25rem;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
height: 2rem;
|
|
25
|
+
left: 16px;
|
|
26
|
+
line-height: 2rem;
|
|
27
|
+
position: absolute;
|
|
28
|
+
text-align: center;
|
|
29
|
+
top: -1.5rem;
|
|
30
|
+
width: 2rem;
|
|
31
|
+
}
|
|
32
|
+
:host .dso-step-counter svg.di {
|
|
33
|
+
height: 1.5rem;
|
|
34
|
+
margin-top: 0.25rem;
|
|
35
|
+
width: 1.5rem;
|
|
36
|
+
}
|
|
37
|
+
:host > dso-icon {
|
|
38
|
+
vertical-align: text-top;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(.divider) .dso-action-list-item::after {
|
|
42
|
+
border-bottom: 0.25rem dashed #6ca4d9;
|
|
43
|
+
bottom: 0;
|
|
44
|
+
content: "";
|
|
45
|
+
display: block;
|
|
46
|
+
height: 24px;
|
|
47
|
+
left: 80px;
|
|
48
|
+
position: absolute;
|
|
49
|
+
width: calc(100% + 16px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
h3 {
|
|
53
|
+
color: #275937;
|
|
54
|
+
color: #275937;
|
|
55
|
+
font-size: 1.25rem;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
margin-block-end: 16px;
|
|
58
|
+
margin-block-start: 0;
|
|
59
|
+
min-height: 48px;
|
|
60
|
+
padding-block-start: 9px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.dso-action-list-item {
|
|
64
|
+
display: grid;
|
|
65
|
+
grid-template-columns: 80px 1fr;
|
|
66
|
+
}
|
|
67
|
+
.dso-action-list-item .dso-step-counter {
|
|
68
|
+
position: unset;
|
|
69
|
+
}
|
|
70
|
+
.dso-action-list-item .dso-step-counter,
|
|
71
|
+
.dso-action-list-item dso-icon {
|
|
72
|
+
margin-inline-start: 8px;
|
|
73
|
+
}
|
|
74
|
+
.dso-action-list-item .action-list-item-content {
|
|
75
|
+
grid-column: 2/2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
dso-icon {
|
|
79
|
+
height: 48px;
|
|
80
|
+
width: 48px;
|
|
81
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class ActionListItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.step = undefined;
|
|
5
|
+
this.itemTitle = undefined;
|
|
6
|
+
this.flowLine = false;
|
|
7
|
+
this.warning = false;
|
|
8
|
+
this.divider = false;
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, { class: {
|
|
12
|
+
divider: this.divider,
|
|
13
|
+
"flow-line": this.flowLine,
|
|
14
|
+
} }, h("div", { class: "dso-action-list-item" }, this.warning ? h("dso-icon", { icon: "status-warning" }) : h("div", { class: "dso-step-counter" }, this.step), h("div", { class: "action-list-item-content" }, this.itemTitle && h("h3", null, this.itemTitle), h("slot", null)))));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "dso-action-list-item"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["action-list-item.scss"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["action-list-item.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"step": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "number",
|
|
35
|
+
"resolved": "number",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": true,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"attribute": "step",
|
|
45
|
+
"reflect": false
|
|
46
|
+
},
|
|
47
|
+
"itemTitle": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string | undefined",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": true,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "item-title",
|
|
62
|
+
"reflect": false
|
|
63
|
+
},
|
|
64
|
+
"flowLine": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "boolean",
|
|
69
|
+
"resolved": "boolean",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "Show flow line to next step"
|
|
77
|
+
},
|
|
78
|
+
"attribute": "flow-line",
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"defaultValue": "false"
|
|
81
|
+
},
|
|
82
|
+
"warning": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "boolean",
|
|
87
|
+
"resolved": "boolean",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"attribute": "warning",
|
|
97
|
+
"reflect": false,
|
|
98
|
+
"defaultValue": "false"
|
|
99
|
+
},
|
|
100
|
+
"divider": {
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "boolean",
|
|
105
|
+
"resolved": "boolean",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "Places a dashed line at the bottom of the item."
|
|
113
|
+
},
|
|
114
|
+
"attribute": "divider",
|
|
115
|
+
"reflect": false,
|
|
116
|
+
"defaultValue": "false"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -17,7 +17,7 @@ export class AnnotationOutput {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const expandableProperties = AnnotationService.state[this.identifier] ? { open: true } : {};
|
|
20
|
-
return (h("dso-responsive-element", null, h("dso-expandable", Object.assign({ id: this.identifier }, expandableProperties), this.annotationPrefix && h("span", { class: "dso-annotation-prefix" }, this.annotationPrefix), h("div", { class: "dso-annotation-header" }, h("slot", { name: "title" }), h("slot", { name: "addons" }), h("button", { type: "button", class: "dso-tertiary dso-annotation-close-button", onClick: (e) => this.toggleHandler(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Toelichting sluiten"))), h("div", { class: "dso-annotation-content" }, h("slot", null)))));
|
|
20
|
+
return (h("dso-responsive-element", null, h("dso-expandable", Object.assign({ id: this.identifier }, expandableProperties), h("div", { slot: "expandable-content" }, this.annotationPrefix && h("span", { class: "dso-annotation-prefix" }, this.annotationPrefix), h("div", { class: "dso-annotation-header" }, h("slot", { name: "title" }), h("slot", { name: "addons" }), h("button", { type: "button", class: "dso-tertiary dso-annotation-close-button", onClick: (e) => this.toggleHandler(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Toelichting sluiten"))), h("div", { class: "dso-annotation-content" }, h("slot", null))))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "dso-annotation-output"; }
|
|
23
23
|
static get originalStyleUrls() {
|