@dso-toolkit/core 51.4.1 → 52.0.1
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-card.cjs.entry.js +1 -0
- package/dist/cjs/dso-date-picker.cjs.entry.js +6 -7
- package/dist/cjs/dso-expandable-heading.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-label.cjs.entry.js +35 -13
- package/dist/cjs/dso-ozon-content.cjs.entry.js +30 -5
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/card/card.js +24 -0
- package/dist/collection/components/date-picker/date-picker-day.js +2 -4
- package/dist/collection/components/date-picker/date-picker.css +7 -12
- package/dist/collection/components/date-picker/date-picker.js +20 -2
- package/dist/collection/components/expandable-heading/expandable-heading.css +15 -1
- package/dist/collection/components/label/label.js +49 -13
- package/dist/collection/components/label/mutation-observer.js +11 -0
- package/dist/collection/components/label/resize-observer.js +11 -0
- package/dist/collection/components/ozon-content/nodes/lijst.node.js +2 -2
- package/dist/collection/components/ozon-content/nodes/nieuwe-tekst.node.js +9 -0
- package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +7 -2
- package/dist/collection/components/ozon-content/nodes/verwijderde-tekst.node.js +9 -0
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +4 -0
- package/dist/collection/components/ozon-content/ozon-content.css +17 -0
- package/dist/collection/components/selectable/selectable.css +5 -0
- package/dist/collection/components/viewer-grid/viewer-grid.css +9 -1
- package/dist/components/dso-card.js +3 -1
- package/dist/components/dso-date-picker.js +7 -7
- package/dist/components/dso-expandable-heading.js +1 -1
- package/dist/components/dso-label.js +38 -14
- package/dist/components/dso-ozon-content.js +30 -5
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/selectable.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-0f37693a.entry.js +1 -0
- package/dist/dso-toolkit/p-4ae40ddc.entry.js +1 -0
- package/dist/dso-toolkit/{p-e00a3019.entry.js → p-4d70d9c0.entry.js} +1 -1
- package/dist/dso-toolkit/p-61ac8d40.entry.js +1 -0
- package/dist/dso-toolkit/p-9984079e.entry.js +1 -0
- package/dist/dso-toolkit/p-d05ea304.entry.js +1 -0
- package/dist/dso-toolkit/p-e6e9f613.entry.js +1 -0
- package/dist/esm/dso-card.entry.js +1 -0
- package/dist/esm/dso-date-picker.entry.js +6 -7
- package/dist/esm/dso-expandable-heading.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +1 -1
- package/dist/esm/dso-label.entry.js +35 -13
- package/dist/esm/dso-ozon-content.entry.js +30 -5
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/card/card.d.ts +7 -1
- package/dist/types/components/card/card.interfaces.d.ts +1 -0
- package/dist/types/components/date-picker/date-picker.d.ts +4 -0
- package/dist/types/components/label/label.d.ts +2 -3
- package/dist/types/components/label/mutation-observer.d.ts +1 -0
- package/dist/types/components/label/resize-observer.d.ts +1 -0
- package/dist/types/components/ozon-content/nodes/nieuwe-tekst.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/verwijderde-tekst.node.d.ts +6 -0
- package/dist/types/components.d.ts +19 -1
- package/package.json +2 -2
- package/dist/dso-toolkit/p-1aef13ee.entry.js +0 -1
- package/dist/dso-toolkit/p-30df5586.entry.js +0 -1
- package/dist/dso-toolkit/p-67df25a7.entry.js +0 -1
- package/dist/dso-toolkit/p-6cdc1acd.entry.js +0 -1
- package/dist/dso-toolkit/p-c16ce11e.entry.js +0 -1
- package/dist/dso-toolkit/p-f53860da.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]}]]],["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],"truncatedContent":[32],"labelText":[32]}]]],["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-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],"toggleSection":[64],"scrollSectionIntoView":[64]}]]],["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],"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-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]}]]],["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"],"checkable":[4],"boundary":[1],"strategy":[1]}]]],["dso-expandable.cjs",[[1,"dso-expandable",{"open":[516]}]]],["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-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);
|
|
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]}]]],["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],"truncatedContent":[32],"labelText":[32],"truncateLabel":[64],"updateTooltipText":[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-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],"toggleSection":[64],"scrollSectionIntoView":[64]}]]],["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":[4],"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-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"],"checkable":[4],"boundary":[1],"strategy":[1]}]]],["dso-expandable.cjs",[[1,"dso-expandable",{"open":[516]}]]],["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-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
|
|
|
@@ -7,6 +7,7 @@ export class Card {
|
|
|
7
7
|
this.isSelectable = false;
|
|
8
8
|
this.hasImage = false;
|
|
9
9
|
this.clickable = true;
|
|
10
|
+
this.imageShape = "normal";
|
|
10
11
|
}
|
|
11
12
|
clickEventHandler(e) {
|
|
12
13
|
if (!(e.target instanceof HTMLElement) || !this.clickable) {
|
|
@@ -100,6 +101,29 @@ export class Card {
|
|
|
100
101
|
"attribute": "clickable",
|
|
101
102
|
"reflect": false,
|
|
102
103
|
"defaultValue": "true"
|
|
104
|
+
},
|
|
105
|
+
"imageShape": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "ImageShape",
|
|
110
|
+
"resolved": "\"normal\" | \"wide\"",
|
|
111
|
+
"references": {
|
|
112
|
+
"ImageShape": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "./card.interfaces"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Presentation of image in header.\r\n - \"normal\" (\"24 x 24\").\r\n - \"wide\" (\"30 x 26\")"
|
|
123
|
+
},
|
|
124
|
+
"attribute": "image-shape",
|
|
125
|
+
"reflect": true,
|
|
126
|
+
"defaultValue": "\"normal\""
|
|
103
127
|
}
|
|
104
128
|
};
|
|
105
129
|
}
|
|
@@ -3,17 +3,15 @@ import { isEqual, printDutchDate } from "./date-utils";
|
|
|
3
3
|
export const DatePickerDay = ({ focusedDay, today, day, onDaySelect, onKeyboardNavigation, focusedDayRef, inRange, }) => {
|
|
4
4
|
const isToday = isEqual(day, today);
|
|
5
5
|
const isFocused = isEqual(day, focusedDay);
|
|
6
|
-
const
|
|
6
|
+
const notCurrentMonth = day.getMonth() !== focusedDay.getMonth();
|
|
7
7
|
const isOutsideRange = !inRange;
|
|
8
8
|
function handleClick(e) {
|
|
9
9
|
onDaySelect(e, day);
|
|
10
10
|
}
|
|
11
11
|
return (h("button", { class: {
|
|
12
12
|
"dso-date__day": true,
|
|
13
|
-
"is-outside": isOutsideRange,
|
|
14
|
-
"is-disabled": isDisabled,
|
|
15
13
|
"is-today": isToday,
|
|
16
|
-
}, tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, disabled: isOutsideRange ||
|
|
14
|
+
}, tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, disabled: isOutsideRange || notCurrentMonth, type: "button", ref: (el) => {
|
|
17
15
|
if (isFocused && el && focusedDayRef) {
|
|
18
16
|
focusedDayRef(el);
|
|
19
17
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
3
|
}
|
|
4
|
+
:host[invalid] .dso-date__input {
|
|
5
|
+
border-color: #ce3f51;
|
|
6
|
+
}
|
|
4
7
|
|
|
5
8
|
.dso-date *,
|
|
6
9
|
.dso-date *::before,
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
}
|
|
104
107
|
.dso-date__toggle:disabled {
|
|
105
108
|
color: #afcf9d;
|
|
106
|
-
cursor:
|
|
109
|
+
cursor: default;
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
.dso-date__dialog {
|
|
@@ -204,6 +207,7 @@
|
|
|
204
207
|
font-weight: 600;
|
|
205
208
|
height: 36px;
|
|
206
209
|
line-height: 36px;
|
|
210
|
+
text-align: center;
|
|
207
211
|
text-decoration: none;
|
|
208
212
|
text-transform: uppercase;
|
|
209
213
|
}
|
|
@@ -268,20 +272,11 @@
|
|
|
268
272
|
border: 1px solid #fff;
|
|
269
273
|
line-height: 32px;
|
|
270
274
|
}
|
|
271
|
-
.dso-date__day
|
|
272
|
-
background: #f2f2f2;
|
|
273
|
-
box-shadow: none;
|
|
274
|
-
color: #666;
|
|
275
|
-
cursor: default;
|
|
276
|
-
pointer-events: none;
|
|
277
|
-
}
|
|
278
|
-
.dso-date__day.is-disabled {
|
|
275
|
+
.dso-date__day:disabled {
|
|
279
276
|
background: #fff;
|
|
277
|
+
color: #ccc;
|
|
280
278
|
cursor: default;
|
|
281
279
|
}
|
|
282
|
-
.dso-date__day.is-disabled:hover {
|
|
283
|
-
color: #666;
|
|
284
|
-
}
|
|
285
280
|
.dso-date__day span[aria-hidden=true] {
|
|
286
281
|
border-radius: 50%;
|
|
287
282
|
display: inline-block;
|
|
@@ -271,6 +271,7 @@ export class DsoDatePicker {
|
|
|
271
271
|
this.role = null;
|
|
272
272
|
this.direction = "right";
|
|
273
273
|
this.required = false;
|
|
274
|
+
this.invalid = undefined;
|
|
274
275
|
this.dsoAutofocus = false;
|
|
275
276
|
this.value = "";
|
|
276
277
|
this.min = undefined;
|
|
@@ -388,7 +389,7 @@ export class DsoDatePicker {
|
|
|
388
389
|
* Always the last one in the class.
|
|
389
390
|
*/
|
|
390
391
|
render() {
|
|
391
|
-
var _a;
|
|
392
|
+
var _a, _b;
|
|
392
393
|
const valueAsDate = parseDutchDate(this.value);
|
|
393
394
|
const formattedDate = valueAsDate && printDutchDate(valueAsDate);
|
|
394
395
|
const selectedYear = (valueAsDate || this.focusedDay).getFullYear();
|
|
@@ -406,7 +407,7 @@ export class DsoDatePicker {
|
|
|
406
407
|
if (maxDate) {
|
|
407
408
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
408
409
|
}
|
|
409
|
-
return (h(Host, null, h("div", { class: { "dso-date": true, "dso-visible": this.visible } }, h("div", { class: "dso-date__input-wrapper" }, h("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: (_a = this.role) !== null && _a !== void 0 ? _a : undefined, required: this.required ? true : undefined, "aria-autocomplete": "none", onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: (element) => (this.datePickerInput = element) }), h("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: (element) => (this.datePickerButton = element) }, h("span", { class: "dso-date__toggle-icon" }, h("dso-icon", { icon: "calendar" })), h("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (h("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), h("div", { class: {
|
|
410
|
+
return (h(Host, null, h("div", { class: { "dso-date": true, "dso-visible": this.visible } }, h("div", { class: "dso-date__input-wrapper" }, h("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: (_a = this.role) !== null && _a !== void 0 ? _a : undefined, required: this.required ? true : undefined, "aria-autocomplete": "none", "aria-invalid": (_b = this.invalid) === null || _b === void 0 ? void 0 : _b.toString(), onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: (element) => (this.datePickerInput = element) }), h("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: (element) => (this.datePickerButton = element) }, h("span", { class: "dso-date__toggle-icon" }, h("dso-icon", { icon: "calendar" })), h("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (h("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), h("div", { class: {
|
|
410
411
|
"dso-date__dialog": true,
|
|
411
412
|
"is-left": this.direction === "left",
|
|
412
413
|
"is-active": this.open,
|
|
@@ -538,6 +539,23 @@ export class DsoDatePicker {
|
|
|
538
539
|
"reflect": false,
|
|
539
540
|
"defaultValue": "false"
|
|
540
541
|
},
|
|
542
|
+
"invalid": {
|
|
543
|
+
"type": "boolean",
|
|
544
|
+
"mutable": false,
|
|
545
|
+
"complexType": {
|
|
546
|
+
"original": "boolean",
|
|
547
|
+
"resolved": "boolean | undefined",
|
|
548
|
+
"references": {}
|
|
549
|
+
},
|
|
550
|
+
"required": false,
|
|
551
|
+
"optional": true,
|
|
552
|
+
"docs": {
|
|
553
|
+
"tags": [],
|
|
554
|
+
"text": "Is input invalid?"
|
|
555
|
+
},
|
|
556
|
+
"attribute": "invalid",
|
|
557
|
+
"reflect": false
|
|
558
|
+
},
|
|
541
559
|
"dsoAutofocus": {
|
|
542
560
|
"type": "boolean",
|
|
543
561
|
"mutable": false,
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
.h1,
|
|
3
|
+
h2,
|
|
4
|
+
.h2,
|
|
5
|
+
h3,
|
|
6
|
+
.h3,
|
|
7
|
+
h4,
|
|
8
|
+
.h4,
|
|
9
|
+
h5,
|
|
10
|
+
.h5,
|
|
11
|
+
h6,
|
|
12
|
+
.h6 {
|
|
13
|
+
color: #275937;
|
|
14
|
+
}
|
|
15
|
+
|
|
1
16
|
h1,
|
|
2
17
|
.h1,
|
|
3
18
|
h2,
|
|
@@ -14,7 +29,6 @@ h1,
|
|
|
14
29
|
}
|
|
15
30
|
|
|
16
31
|
h1 {
|
|
17
|
-
color: #275937;
|
|
18
32
|
font-size: 2rem;
|
|
19
33
|
font-weight: 700;
|
|
20
34
|
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
+
import { mutationObserver } from "./mutation-observer";
|
|
4
|
+
import { resizeObserver } from "./resize-observer";
|
|
3
5
|
function hasEllipses(el) {
|
|
4
6
|
return el.scrollWidth > el.clientWidth;
|
|
5
7
|
}
|
|
6
8
|
export class Label {
|
|
7
9
|
constructor() {
|
|
8
|
-
this.mutationObserver = new MutationObserver(() => {
|
|
9
|
-
this.labelText = this.host.innerText;
|
|
10
|
-
if (this.truncate) {
|
|
11
|
-
this.truncateLabel();
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
this.resizeObserver = new ResizeObserver(() => this.truncateLabel());
|
|
15
10
|
this.keydownListenerActive = false;
|
|
16
11
|
this.keyDownListener = (event) => {
|
|
17
12
|
if (event.key === "Escape") {
|
|
@@ -48,16 +43,22 @@ export class Label {
|
|
|
48
43
|
this.keydownListenerActive = false;
|
|
49
44
|
}
|
|
50
45
|
}
|
|
51
|
-
truncateLabel() {
|
|
46
|
+
async truncateLabel() {
|
|
52
47
|
setTimeout(() => {
|
|
53
48
|
if (this.labelContent) {
|
|
54
49
|
this.truncatedContent = hasEllipses(this.labelContent) ? this.host.innerText : undefined;
|
|
55
50
|
}
|
|
56
51
|
});
|
|
57
52
|
}
|
|
53
|
+
async updateTooltipText() {
|
|
54
|
+
this.labelText = this.host.innerText;
|
|
55
|
+
if (this.truncate) {
|
|
56
|
+
this.truncateLabel();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
58
59
|
componentDidLoad() {
|
|
59
60
|
this.labelText = this.host.innerText;
|
|
60
|
-
|
|
61
|
+
mutationObserver.observe(this.host, {
|
|
61
62
|
attributes: true,
|
|
62
63
|
subtree: true,
|
|
63
64
|
});
|
|
@@ -66,17 +67,16 @@ export class Label {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
disconnectedCallback() {
|
|
69
|
-
|
|
70
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
70
|
+
mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.disconnect();
|
|
71
71
|
this.stopTruncate();
|
|
72
72
|
}
|
|
73
73
|
startTruncate() {
|
|
74
|
-
|
|
74
|
+
resizeObserver.observe(this.host);
|
|
75
75
|
this.truncateLabel();
|
|
76
76
|
}
|
|
77
77
|
stopTruncate() {
|
|
78
78
|
document.removeEventListener("keydown", this.keyDownListener);
|
|
79
|
-
|
|
79
|
+
resizeObserver.unobserve(this.host);
|
|
80
80
|
this.truncatedContent = undefined;
|
|
81
81
|
this.keydownListenerActive = false;
|
|
82
82
|
}
|
|
@@ -208,6 +208,42 @@ export class Label {
|
|
|
208
208
|
}
|
|
209
209
|
}];
|
|
210
210
|
}
|
|
211
|
+
static get methods() {
|
|
212
|
+
return {
|
|
213
|
+
"truncateLabel": {
|
|
214
|
+
"complexType": {
|
|
215
|
+
"signature": "() => Promise<void>",
|
|
216
|
+
"parameters": [],
|
|
217
|
+
"references": {
|
|
218
|
+
"Promise": {
|
|
219
|
+
"location": "global"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"return": "Promise<void>"
|
|
223
|
+
},
|
|
224
|
+
"docs": {
|
|
225
|
+
"text": "",
|
|
226
|
+
"tags": []
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"updateTooltipText": {
|
|
230
|
+
"complexType": {
|
|
231
|
+
"signature": "() => Promise<void>",
|
|
232
|
+
"parameters": [],
|
|
233
|
+
"references": {
|
|
234
|
+
"Promise": {
|
|
235
|
+
"location": "global"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"return": "Promise<void>"
|
|
239
|
+
},
|
|
240
|
+
"docs": {
|
|
241
|
+
"text": "",
|
|
242
|
+
"tags": []
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
211
247
|
static get elementRef() { return "host"; }
|
|
212
248
|
static get watchers() {
|
|
213
249
|
return [{
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const mutationObserver = new MutationObserver((entries) => {
|
|
2
|
+
entries.forEach((entry) => {
|
|
3
|
+
const component = entry.target;
|
|
4
|
+
if (isDsoLabelComponent(component)) {
|
|
5
|
+
component.updateTooltipText();
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
function isDsoLabelComponent(element) {
|
|
10
|
+
return element.updateTooltipText !== undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resizeObserver = new ResizeObserver((entries) => {
|
|
2
|
+
entries.forEach((entry) => {
|
|
3
|
+
const component = entry.target;
|
|
4
|
+
if (isDsoLabelComponent(component)) {
|
|
5
|
+
component.truncateLabel();
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
function isDsoLabelComponent(element) {
|
|
10
|
+
return element.truncateLabel !== undefined;
|
|
11
|
+
}
|
|
@@ -13,8 +13,8 @@ export class OzonContentLijstNode {
|
|
|
13
13
|
return (h("div", { class: "dso-ozon-lijst od-Lijst" }, aanhef && mapNodeToJsx(aanhef), h("ul", { class: (_a = node.getAttribute("type")) !== null && _a !== void 0 ? _a : "" }, listItems.map((item) => {
|
|
14
14
|
var _a;
|
|
15
15
|
const itemNodes = Array.from(item.childNodes);
|
|
16
|
-
const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.
|
|
17
|
-
return (h("li", { class: "od-Li" }, liNummer && h("span", { class: "od-LiNummer" }, liNummer), mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
|
|
16
|
+
const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.childNodes;
|
|
17
|
+
return (h("li", { class: "od-Li" }, liNummer && h("span", { class: "od-LiNummer" }, mapNodeToJsx(liNummer)), mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
|
|
18
18
|
})), sluiting && mapNodeToJsx(sluiting)));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import { v4 as uuidv4 } from "uuid";
|
|
3
4
|
import { getNodeName } from "../../get-node-name.function";
|
|
4
5
|
import { mapColspecs } from "./colspec/colspec-mapper";
|
|
@@ -14,6 +15,7 @@ function mapData(node) {
|
|
|
14
15
|
colspecs: tgroup && columnCount ? mapColspecs(columnCount, tgroup.querySelectorAll(":scope > colspec")) : undefined,
|
|
15
16
|
headRows: Array.from(node.querySelectorAll(":scope > tgroup > thead > row")),
|
|
16
17
|
bodyRows: Array.from(node.querySelectorAll(":scope > tgroup > tbody > row")),
|
|
18
|
+
editAction: node.getAttribute("wijzigactie"),
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
export class OzonContentTableNode {
|
|
@@ -23,8 +25,11 @@ export class OzonContentTableNode {
|
|
|
23
25
|
this.id = uuidv4();
|
|
24
26
|
}
|
|
25
27
|
render(node, context) {
|
|
26
|
-
const { caption, colspecs, headRows, bodyRows } = mapData(node);
|
|
28
|
+
const { caption, colspecs, headRows, bodyRows, editAction } = mapData(node);
|
|
27
29
|
const bron = Array.from(node.childNodes).find((n) => getNodeName(n) === "Bron");
|
|
28
|
-
return (h("dso-table", null, h("table", Object.assign({ class: "table dso-table-vertical-lines"
|
|
30
|
+
return (h("dso-table", null, h("table", Object.assign({ class: clsx("table dso-table-vertical-lines", {
|
|
31
|
+
"dso-del": editAction === "verwijder",
|
|
32
|
+
"dso-ins": editAction === "voegtoe",
|
|
33
|
+
}) }, (bron ? { "aria-describedby": this.id } : {})), caption && h("caption", null, caption), colspecs && h(Colgroup, { colspecs: colspecs }), headRows.length > 0 && (h("thead", null, h(Rows, { rows: headRows, colspecs: colspecs, context: context }))), bodyRows.length > 0 && (h("tbody", null, h(Rows, { rows: bodyRows, colspecs: colspecs, context: context })))), bron && h("div", { id: this.id }, context.mapNodeToJsx(bron))));
|
|
29
34
|
}
|
|
30
35
|
}
|
|
@@ -12,10 +12,12 @@ import { OzonContentInlineNodes } from "./nodes/inline.nodes";
|
|
|
12
12
|
import { OzonContentIntIoRefNode } from "./nodes/int-io-ref.node";
|
|
13
13
|
import { OzonContentIntRefNode } from "./nodes/int-ref.node";
|
|
14
14
|
import { OzonContentLijstNode } from "./nodes/lijst.node";
|
|
15
|
+
import { OzonContentNieuweTekstNode } from "./nodes/nieuwe-tekst.node";
|
|
15
16
|
import { OzonContentNootNode } from "./nodes/noot.node";
|
|
16
17
|
import { OzonContentOpschriftNode } from "./nodes/opschrift.node";
|
|
17
18
|
import { OzonContentTableNode } from "./nodes/table.node";
|
|
18
19
|
import { OzonContentTextNode } from "./nodes/text.node";
|
|
20
|
+
import { OzonContentVerwijderdeTekstNode } from "./nodes/verwijderde-tekst.node";
|
|
19
21
|
export class Mapper {
|
|
20
22
|
constructor() {
|
|
21
23
|
this.mappers = [
|
|
@@ -34,6 +36,8 @@ export class Mapper {
|
|
|
34
36
|
new OzonContentFiguurNode(),
|
|
35
37
|
new OzonContentLijstNode(),
|
|
36
38
|
new OzonContentBronNode(),
|
|
39
|
+
new OzonContentNieuweTekstNode(),
|
|
40
|
+
new OzonContentVerwijderdeTekstNode(),
|
|
37
41
|
];
|
|
38
42
|
this.skip = this.mappers.reduce((t, m) => {
|
|
39
43
|
if (m.handles) {
|
|
@@ -219,4 +219,21 @@ span[role=paragraph] {
|
|
|
219
219
|
border: 1px solid #e5e5e5;
|
|
220
220
|
margin-bottom: 1rem;
|
|
221
221
|
padding: 1rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.dso-del {
|
|
225
|
+
background-color: #f5d8dc;
|
|
226
|
+
color: #000;
|
|
227
|
+
text-decoration: line-through;
|
|
228
|
+
}
|
|
229
|
+
.dso-del a {
|
|
230
|
+
color: #000;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.dso-ins {
|
|
234
|
+
background-color: #e4f1d4;
|
|
235
|
+
color: #000;
|
|
236
|
+
}
|
|
237
|
+
.dso-ins a {
|
|
238
|
+
color: #000;
|
|
222
239
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: block;
|
|
3
|
+
padding-left: 32px;
|
|
3
4
|
position: relative;
|
|
4
5
|
}
|
|
5
6
|
:host .dso-selectable-options {
|
|
@@ -137,6 +138,9 @@
|
|
|
137
138
|
margin: 8px 16px 0 -32px;
|
|
138
139
|
width: calc(100% + 32px);
|
|
139
140
|
}
|
|
141
|
+
:host[invalid] {
|
|
142
|
+
--dso-selectable-color: #ce3f51;
|
|
143
|
+
}
|
|
140
144
|
|
|
141
145
|
:host(:not(:last-child)) {
|
|
142
146
|
margin-bottom: 8px;
|
|
@@ -150,6 +154,7 @@
|
|
|
150
154
|
|
|
151
155
|
.dso-selectable-input-wrapper {
|
|
152
156
|
display: inline-block;
|
|
157
|
+
margin-left: -32px;
|
|
153
158
|
min-height: 24px;
|
|
154
159
|
padding-left: 32px;
|
|
155
160
|
}
|
|
@@ -438,7 +438,7 @@ button::-moz-focus-inner {
|
|
|
438
438
|
|
|
439
439
|
.filterpanel {
|
|
440
440
|
box-shadow: 2px 0 5px #666;
|
|
441
|
-
padding:
|
|
441
|
+
padding: 8px 16px;
|
|
442
442
|
left: 0;
|
|
443
443
|
max-width: 896px;
|
|
444
444
|
width: calc(100vw - 40px);
|
|
@@ -451,6 +451,14 @@ button::-moz-focus-inner {
|
|
|
451
451
|
display: none !important;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
+
.filterpanel h2 {
|
|
455
|
+
color: #275937;
|
|
456
|
+
margin-bottom: 16px;
|
|
457
|
+
margin-top: 24px;
|
|
458
|
+
color: #275937;
|
|
459
|
+
font-size: 1.5rem;
|
|
460
|
+
font-weight: 700;
|
|
461
|
+
}
|
|
454
462
|
.filterpanel::before {
|
|
455
463
|
content: "";
|
|
456
464
|
display: block;
|
|
@@ -20,6 +20,7 @@ const Card = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
20
20
|
this.isSelectable = false;
|
|
21
21
|
this.hasImage = false;
|
|
22
22
|
this.clickable = true;
|
|
23
|
+
this.imageShape = "normal";
|
|
23
24
|
}
|
|
24
25
|
clickEventHandler(e) {
|
|
25
26
|
if (!(e.target instanceof HTMLElement) || !this.clickable) {
|
|
@@ -51,7 +52,8 @@ const Card = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
51
52
|
}, [1, "dso-card", {
|
|
52
53
|
"isSelectable": [516, "is-selectable"],
|
|
53
54
|
"hasImage": [516, "has-image"],
|
|
54
|
-
"clickable": [4]
|
|
55
|
+
"clickable": [4],
|
|
56
|
+
"imageShape": [513, "image-shape"]
|
|
55
57
|
}]);
|
|
56
58
|
function defineCustomElement$1() {
|
|
57
59
|
if (typeof customElements === "undefined") {
|