dso-toolkit 40.0.0 → 41.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/components/Componenten/form-elements/group-search-bar.config.yml +2 -0
- package/components/Componenten/form-elements/group-search-bar.njk +1 -1
- package/components/Voorbeelden/10-Patronen/zoeken-in-lijst-cards.njk +5 -4
- package/dist/library/@dso-toolkit/core/cjs/dso-date-picker.cjs.entry.js +25 -10
- package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-pagination.cjs.entry.js +38 -0
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-tooltip.cjs.entry.js +40 -0
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/date-picker/date-picker.js +25 -10
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +4 -1
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.template.js +3 -3
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.css +68 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.interfaces.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.js +114 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.stories.js +11 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.template.js +11 -0
- package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.js +60 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +104 -14
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-0777c1c4.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-150fe323.entry.js → p-37e12c3c.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-b1dc8d76.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-a8cf15cf.entry.js → p-f1026921.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-date-picker.entry.js +25 -10
- package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/esm/dso-pagination.entry.js +34 -0
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-tooltip.entry.js +40 -0
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.d.ts +22 -0
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.interfaces.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.stories.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.template.d.ts +2 -0
- package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components.d.ts +50 -0
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +2 -2
- package/dist/library/components/detail/form--form-vertical.html +2 -2
- package/dist/library/components/detail/form--header-in-legend.html +1 -1
- package/dist/library/components/detail/form--multi-page.html +1 -1
- package/dist/library/components/detail/form--sections.html +1 -1
- package/dist/library/components/detail/form--simple-form.html +1 -1
- package/dist/library/components/detail/form--single-page.html +1 -1
- package/dist/library/components/detail/form.html +3 -3
- package/dist/library/components/detail/group-search-bar--default.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-allmessages.html +4 -3
- package/dist/library/components/detail/group-search-bar--search-bar-error.html +4 -3
- package/dist/library/components/detail/group-search-bar--search-bar-help.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-infobutton-expanded.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-infobutton.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-static-info.html +2 -2
- package/dist/library/components/detail/group-search-bar.html +12 -10
- package/dist/library/components/detail/zoeken-in-lijst-cards.html +10 -8
- package/dist/library/components/preview/form--form-horizontal.html +2 -2
- package/dist/library/components/preview/form--form-vertical.html +2 -2
- package/dist/library/components/preview/form.html +4 -4
- package/dist/library/components/preview/group-search-bar--default.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-allmessages.html +2 -2
- package/dist/library/components/preview/group-search-bar--search-bar-error.html +2 -2
- package/dist/library/components/preview/group-search-bar--search-bar-help.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-infobutton-expanded.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-infobutton.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-static-info.html +1 -1
- package/dist/library/components/preview/group-search-bar.html +9 -9
- package/dist/library/components/preview/zoeken-in-lijst-cards.html +8 -6
- package/dist/library/components/render/form--form-horizontal.html +1 -1
- package/dist/library/components/render/form--form-vertical.html +1 -1
- package/dist/library/components/render/form.html +2 -2
- package/dist/library/components/render/group-search-bar--default.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-allmessages.html +2 -2
- package/dist/library/components/render/group-search-bar--search-bar-error.html +2 -2
- package/dist/library/components/render/group-search-bar--search-bar-help.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-infobutton-expanded.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-infobutton.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-static-info.html +1 -1
- package/dist/library/components/render/group-search-bar.html +9 -9
- package/dist/library/components/render/zoeken-in-lijst-cards.html +5 -4
- package/dist/library/dso-icons.svg +421 -387
- package/dist/library/styles/dso.css +258 -362
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-0777c1c4.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-150fe323.entry.js → p-37e12c3c.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-b1dc8d76.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-a8cf15cf.entry.js → p-f1026921.entry.js} +1 -1
- package/dist/toolkit/dso-icons.svg +421 -387
- package/dist/toolkit/styles/dso.css +258 -362
- package/hydrate/index.js +112 -12
- package/libs/@dso-toolkit/css/dist/dso-icons.svg +421 -387
- package/libs/@dso-toolkit/css/src/components/form/form-group.scss +22 -13
- package/libs/@dso-toolkit/css/src/components/form/form-groups/search-bar/form-group-search-bar.scss +17 -0
- package/libs/@dso-toolkit/css/src/components/form/form.scss +1 -0
- package/libs/@dso-toolkit/css/src/components/justify-form-groups/justify-form-groups.scss +26 -0
- package/libs/@dso-toolkit/css/src/components/pagination/pagination.scss +1 -93
- package/libs/@dso-toolkit/css/src/components/search-bar/search-bar.scss +5 -0
- package/{src/styles/components/_tabs.scss → libs/@dso-toolkit/css/src/components/tabs/tabs.scss} +69 -5
- package/libs/@dso-toolkit/css/src/dso.scss +2 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/search-bar.content.ts +12 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/search-bar/form-group-search-bar.args.ts +124 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.stories.ts +17 -1
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-search-bar.model.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group.model.ts +13 -1
- package/libs/@dso-toolkit/sources/src/components/form/models/form.model.ts +0 -1
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.args.ts +15 -0
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.content.ts +44 -0
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.models.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.stories.ts +33 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.args.ts +16 -2
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +3 -1
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.args.ts +16 -6
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.models.ts +13 -2
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.scss +101 -0
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.stories.ts +9 -7
- package/libs/@dso-toolkit/sources/src/components/search-bar/search-bar.models.ts +7 -6
- package/libs/@dso-toolkit/sources/src/components/tabs/tabs.args.ts +19 -0
- package/libs/@dso-toolkit/sources/src/components/tabs/tabs.models.ts +9 -0
- package/libs/@dso-toolkit/sources/src/components/tabs/tabs.stories.ts +86 -0
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.args.ts +9 -1
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.models.ts +3 -0
- package/libs/@dso-toolkit/sources/src/components.scss +1 -0
- package/libs/@dso-toolkit/sources/src/index.ts +4 -0
- package/libs/@dso-toolkit/sources/src/styling/global/table.scss +9 -0
- package/libs/@dso-toolkit/sources/src/styling/grid/grid.scss +56 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/colors.scss +3 -0
- package/libs/_bootstrap.scss +2 -2
- package/libs/bootstrap/_forms.scss +0 -1
- package/libs/bootstrap/_variables.scss +3 -7
- package/package.json +2 -2
- package/reference/render/form--form-horizontal.html +1 -1
- package/reference/render/form--form-vertical.html +1 -1
- package/reference/render/group-search-bar--default.html +1 -1
- package/reference/render/group-search-bar--search-bar-allmessages.html +2 -2
- package/reference/render/group-search-bar--search-bar-error.html +2 -2
- package/reference/render/group-search-bar--search-bar-help.html +1 -1
- package/reference/render/group-search-bar--search-bar-infobutton-expanded.html +1 -1
- package/reference/render/group-search-bar--search-bar-infobutton.html +1 -1
- package/reference/render/group-search-bar--search-bar-static-info.html +1 -1
- package/reference/render/zoeken-in-lijst-cards.html +5 -4
- package/src/styles/components/_form.scss +0 -31
- package/src/styles/dso.scss +3 -3
- package/src/styles/mixins/_bootstrap-variables.scss +0 -3
- package/src/styles/mixins/_dso-variables.scss +0 -3
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-7abe091d.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-7abe091d.entry.js +0 -1
- package/libs/bootstrap/_navs.scss +0 -226
- package/libs/bootstrap/mixins/_nav-divider.scss +0 -10
- package/src/styles/components/_search-bar.scss +0 -32
- package/src/styles/mixins/_grid.scss +0 -63
package/hydrate/index.js
CHANGED
|
@@ -6900,6 +6900,22 @@ const keyCode = {
|
|
|
6900
6900
|
};
|
|
6901
6901
|
const DISALLOWED_CHARACTERS = /[^0-9\-]+/g;
|
|
6902
6902
|
const TRANSITION_MS = 300;
|
|
6903
|
+
function cleanValue(input, regex) {
|
|
6904
|
+
const value = input.value;
|
|
6905
|
+
const cursor = input.selectionStart;
|
|
6906
|
+
if (!cursor) {
|
|
6907
|
+
return value;
|
|
6908
|
+
}
|
|
6909
|
+
const beforeCursor = value.slice(0, cursor);
|
|
6910
|
+
const afterCursor = value.slice(cursor, value.length);
|
|
6911
|
+
const filteredBeforeCursor = beforeCursor.replace(regex, "");
|
|
6912
|
+
const filterAfterCursor = afterCursor.replace(regex, "");
|
|
6913
|
+
const newValue = filteredBeforeCursor + filterAfterCursor;
|
|
6914
|
+
const newCursor = filteredBeforeCursor.length;
|
|
6915
|
+
input.value = newValue;
|
|
6916
|
+
input.selectionStart = input.selectionEnd = newCursor;
|
|
6917
|
+
return newValue;
|
|
6918
|
+
}
|
|
6903
6919
|
class DsoDatePicker {
|
|
6904
6920
|
constructor(hostRef) {
|
|
6905
6921
|
registerInstance(this, hostRef);
|
|
@@ -7111,12 +7127,8 @@ class DsoDatePicker {
|
|
|
7111
7127
|
};
|
|
7112
7128
|
this.handleInputChange = (e) => {
|
|
7113
7129
|
const target = e.target;
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
this.handleKeyPress = (e) => {
|
|
7117
|
-
if (e.key.search(DISALLOWED_CHARACTERS) > -1) {
|
|
7118
|
-
e.preventDefault();
|
|
7119
|
-
}
|
|
7130
|
+
const cleanedValue = cleanValue(target, DISALLOWED_CHARACTERS);
|
|
7131
|
+
this.setValue(cleanedValue);
|
|
7120
7132
|
};
|
|
7121
7133
|
this.prepareEvent = (value) => {
|
|
7122
7134
|
var event = {
|
|
@@ -7254,13 +7266,16 @@ class DsoDatePicker {
|
|
|
7254
7266
|
}
|
|
7255
7267
|
setValue(value) {
|
|
7256
7268
|
const event = this.prepareEvent(value);
|
|
7257
|
-
this.value = event.value;
|
|
7258
|
-
this.
|
|
7269
|
+
this.value = typeof value === 'string' ? value : event.value;
|
|
7270
|
+
if (this.value !== this.previousValue) {
|
|
7271
|
+
this.dateChange.emit(event);
|
|
7272
|
+
this.previousValue = this.value;
|
|
7273
|
+
}
|
|
7259
7274
|
}
|
|
7260
7275
|
componentDidLoad() {
|
|
7261
7276
|
const valueAsDate = parseDutchDate(this.value);
|
|
7262
7277
|
if (valueAsDate) {
|
|
7263
|
-
this.value = printDutchDate(valueAsDate);
|
|
7278
|
+
this.previousValue = this.value = printDutchDate(valueAsDate);
|
|
7264
7279
|
}
|
|
7265
7280
|
if (this.dsoAutofocus) {
|
|
7266
7281
|
this.setFocus();
|
|
@@ -7288,7 +7303,7 @@ class DsoDatePicker {
|
|
|
7288
7303
|
if (maxDate) {
|
|
7289
7304
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
7290
7305
|
}
|
|
7291
|
-
return (hAsync(Host, null, hAsync("div", { class: ({ 'dso-date': true, 'dso-visible': this.visible }) }, hAsync("div", { class: "dso-date__input-wrapper" }, hAsync("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: this.role, required: this.required ? true : undefined, "aria-autocomplete": "none",
|
|
7306
|
+
return (hAsync(Host, null, hAsync("div", { class: ({ 'dso-date': true, 'dso-visible': this.visible }) }, hAsync("div", { class: "dso-date__input-wrapper" }, hAsync("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: this.role, 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) }), hAsync("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: element => (this.datePickerButton = element) }, hAsync("span", { class: "dso-date__toggle-icon" }, hAsync("dso-icon", { icon: "calendar" })), hAsync("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (hAsync("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), hAsync("div", { class: {
|
|
7292
7307
|
"dso-date__dialog": true,
|
|
7293
7308
|
"is-left": this.direction === "left",
|
|
7294
7309
|
"is-active": this.open,
|
|
@@ -9573,12 +9588,12 @@ class OzonContent {
|
|
|
9573
9588
|
if (this.deleted) {
|
|
9574
9589
|
return (hAsync("section", null, hAsync("span", { class: "deleted-start" }, "Begin verwijderd element"), transformed, hAsync("span", { class: "deleted-end" }, "Einde verwijderd element")));
|
|
9575
9590
|
}
|
|
9576
|
-
return (hAsync(Host, { onClick: (e) => this.handleHostOnClick(e) }, transformed));
|
|
9591
|
+
return (hAsync(Host, { onClick: (e) => this.handleHostOnClick(e) }, hAsync("slot", { name: "prefix" }), transformed, hAsync("slot", { name: "suffix" })));
|
|
9577
9592
|
}
|
|
9578
9593
|
get host() { return getElement(this); }
|
|
9579
9594
|
static get style() { return ozonContentCss; }
|
|
9580
9595
|
static get cmpMeta() { return {
|
|
9581
|
-
"$flags$":
|
|
9596
|
+
"$flags$": 6,
|
|
9582
9597
|
"$tagName$": "dso-ozon-content",
|
|
9583
9598
|
"$members$": {
|
|
9584
9599
|
"content": [1],
|
|
@@ -9593,6 +9608,49 @@ class OzonContent {
|
|
|
9593
9608
|
}; }
|
|
9594
9609
|
}
|
|
9595
9610
|
|
|
9611
|
+
const paginationCss = "/*!@:host*/.sc-dso-pagination-h{display:block}/*!@*,\n*::after,\n*::before*/*.sc-dso-pagination,*.sc-dso-pagination::after,*.sc-dso-pagination::before{box-sizing:border-box}/*!@.pagination*/.pagination.sc-dso-pagination{text-align:center}/*!@.pagination > li*/.pagination.sc-dso-pagination>li.sc-dso-pagination{display:inline-block;font-weight:bold;line-height:28px;text-align:center;vertical-align:middle}/*!@.pagination > li > a,\n.pagination > li > span*/.pagination.sc-dso-pagination>li.sc-dso-pagination>a.sc-dso-pagination,.pagination.sc-dso-pagination>li.sc-dso-pagination>span.sc-dso-pagination{align-items:center;color:#39870c;display:flex;height:32px;justify-content:center;position:relative;width:32px}/*!@.pagination > li > a:active,\n.pagination > li > span:active*/.pagination.sc-dso-pagination>li.sc-dso-pagination>a.sc-dso-pagination:active,.pagination.sc-dso-pagination>li.sc-dso-pagination>span.sc-dso-pagination:active{background-color:#ebf3e6}/*!@.pagination > li > span*/.pagination.sc-dso-pagination>li.sc-dso-pagination>span.sc-dso-pagination{border:2px solid transparent;border-radius:50%}/*!@.pagination > li a*/.pagination.sc-dso-pagination>li.sc-dso-pagination a.sc-dso-pagination{line-height:32px;text-decoration:none}/*!@.pagination > li a:hover, .pagination > li a:focus*/.pagination.sc-dso-pagination>li.sc-dso-pagination a.sc-dso-pagination:hover,.pagination.sc-dso-pagination>li.sc-dso-pagination a.sc-dso-pagination:focus{text-decoration:none}/*!@.pagination > li a:hover::after, .pagination > li a:focus::after*/.pagination.sc-dso-pagination>li.sc-dso-pagination a.sc-dso-pagination:hover::after,.pagination.sc-dso-pagination>li.sc-dso-pagination a.sc-dso-pagination:focus::after{border-bottom-color:#39870c}/*!@.pagination > li a::after*/.pagination.sc-dso-pagination>li.sc-dso-pagination a.sc-dso-pagination::after{border-bottom:3px solid transparent;bottom:0;content:\"\";display:inline-block;left:0;position:absolute;width:100%}/*!@.pagination > li.active span*/.pagination.sc-dso-pagination>li.active.sc-dso-pagination span.sc-dso-pagination{background-color:#39870c;color:#fff}/*!@.pagination > li + li*/.pagination.sc-dso-pagination>li.sc-dso-pagination+li.sc-dso-pagination{margin-left:8px}/*!@.dso-page-hidden*/.dso-page-hidden.sc-dso-pagination{visibility:hidden}";
|
|
9612
|
+
|
|
9613
|
+
class Pagination {
|
|
9614
|
+
constructor(hostRef) {
|
|
9615
|
+
registerInstance(this, hostRef);
|
|
9616
|
+
this.selectPage = createEvent(this, "selectPage", 7);
|
|
9617
|
+
/**
|
|
9618
|
+
* This function is called to format the href
|
|
9619
|
+
*/
|
|
9620
|
+
this.formatHref = (page) => '#' + page;
|
|
9621
|
+
}
|
|
9622
|
+
clickHandler(e, page) {
|
|
9623
|
+
this.selectPage.emit({
|
|
9624
|
+
originalEvent: e,
|
|
9625
|
+
page,
|
|
9626
|
+
isModifiedEvent: e.button !== 0 || e.ctrlKey || e.shiftKey || e.altKey || e.metaKey,
|
|
9627
|
+
});
|
|
9628
|
+
}
|
|
9629
|
+
;
|
|
9630
|
+
render() {
|
|
9631
|
+
if (!this.totalPages) {
|
|
9632
|
+
return null;
|
|
9633
|
+
}
|
|
9634
|
+
const pages = Array.from({ length: this.totalPages }, (_value, i) => i + 1);
|
|
9635
|
+
return (hAsync("ul", { class: "pagination" }, hAsync("li", { class: this.currentPage === pages[0] ? 'dso-page-hidden' : undefined }, hAsync("a", { href: this.formatHref(pages[0]), "aria-label": "Vorige", onClick: e => this.currentPage && this.clickHandler(e, pages[this.currentPage - 2]) }, hAsync("dso-icon", { icon: "chevron-left" }))), pages.map(page => (hAsync("li", { key: page, class: this.currentPage === page ? 'active' : undefined }, this.currentPage === page
|
|
9636
|
+
? (hAsync("span", { "aria-current": "page" }, page))
|
|
9637
|
+
: (hAsync("a", { href: this.formatHref(page), onClick: e => this.clickHandler(e, page) }, page))))), hAsync("li", { class: this.currentPage === pages[pages.length - 1] ? 'dso-page-hidden' : undefined }, hAsync("a", { href: this.formatHref(pages[pages.length - 1]), "aria-label": "Volgende", onClick: e => this.currentPage && this.clickHandler(e, pages[this.currentPage]) }, hAsync("dso-icon", { icon: "chevron-right" })))));
|
|
9638
|
+
}
|
|
9639
|
+
static get style() { return paginationCss; }
|
|
9640
|
+
static get cmpMeta() { return {
|
|
9641
|
+
"$flags$": 9,
|
|
9642
|
+
"$tagName$": "dso-pagination",
|
|
9643
|
+
"$members$": {
|
|
9644
|
+
"totalPages": [2, "total-pages"],
|
|
9645
|
+
"currentPage": [2, "current-page"],
|
|
9646
|
+
"formatHref": [16]
|
|
9647
|
+
},
|
|
9648
|
+
"$listeners$": undefined,
|
|
9649
|
+
"$lazyBundleId$": "-",
|
|
9650
|
+
"$attrsToReflect$": []
|
|
9651
|
+
}; }
|
|
9652
|
+
}
|
|
9653
|
+
|
|
9596
9654
|
const progressBarCss = "/*!@:host*/.sc-dso-progress-bar-h{display:block}/*!@*,\n*::after,\n*::before*/*.sc-dso-progress-bar,*.sc-dso-progress-bar::after,*.sc-dso-progress-bar::before{box-sizing:border-box}/*!@.sr-only*/.sr-only.sc-dso-progress-bar{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}/*!@.progress*/.progress.sc-dso-progress-bar{background-color:#fff;border:1px solid #39870c;height:16px;margin-bottom:calc(16px + 1em);position:relative}/*!@.progress .progress-bar*/.progress.sc-dso-progress-bar .progress-bar.sc-dso-progress-bar{background-color:#39870c;color:#fff;float:left;font-size:14px;height:100%;line-height:16px;text-align:center;width:0%}/*!@.progress .progress-bar > span:not(.sr-only)*/.progress.sc-dso-progress-bar .progress-bar.sc-dso-progress-bar>span.sc-dso-progress-bar:not(.sr-only){color:#191919;left:0;position:absolute;top:calc(100% + 8px)}";
|
|
9597
9655
|
|
|
9598
9656
|
class ProgressBar {
|
|
@@ -11663,6 +11721,13 @@ const tooltipCss = "/*!@:host(.hidden)*/.hidden.sc-dso-tooltip-h{visibility:hidd
|
|
|
11663
11721
|
|
|
11664
11722
|
// Keep const in sync with $tooltip-transition-duration in @dso-toolkit/sources/tooltip.scss tooltip_root() mixin
|
|
11665
11723
|
const transitionDuration = 150;
|
|
11724
|
+
function hasOverflow(el) {
|
|
11725
|
+
const style = window.getComputedStyle(el);
|
|
11726
|
+
const overflowX = style.getPropertyValue('overflow-x');
|
|
11727
|
+
const overflowY = style.getPropertyValue('overflow-y');
|
|
11728
|
+
const overflowValues = ['hidden', 'clip'];
|
|
11729
|
+
return overflowValues.indexOf(overflowX) != -1 || overflowValues.indexOf(overflowY) != -1;
|
|
11730
|
+
}
|
|
11666
11731
|
class Tooltip {
|
|
11667
11732
|
constructor(hostRef) {
|
|
11668
11733
|
registerInstance(this, hostRef);
|
|
@@ -11674,6 +11739,10 @@ class Tooltip {
|
|
|
11674
11739
|
* Set position of tooltip relative to target
|
|
11675
11740
|
*/
|
|
11676
11741
|
this.position = 'top';
|
|
11742
|
+
/**
|
|
11743
|
+
* Set position strategy of tooltip
|
|
11744
|
+
*/
|
|
11745
|
+
this.strategy = 'auto';
|
|
11677
11746
|
/**
|
|
11678
11747
|
* Set attribute `no-arrow` to hide the arrow
|
|
11679
11748
|
*/
|
|
@@ -11717,6 +11786,33 @@ class Tooltip {
|
|
|
11717
11786
|
placement: this.position
|
|
11718
11787
|
});
|
|
11719
11788
|
}
|
|
11789
|
+
watchStrategy() {
|
|
11790
|
+
this.setStrategy();
|
|
11791
|
+
}
|
|
11792
|
+
setStrategy() {
|
|
11793
|
+
if (!this.popper) {
|
|
11794
|
+
return;
|
|
11795
|
+
}
|
|
11796
|
+
if (this.strategy == 'absolute' || this.strategy == 'fixed') {
|
|
11797
|
+
this.popper.setOptions({
|
|
11798
|
+
strategy: this.strategy,
|
|
11799
|
+
});
|
|
11800
|
+
return;
|
|
11801
|
+
}
|
|
11802
|
+
let element = this.element;
|
|
11803
|
+
while ((element === null || element === void 0 ? void 0 : element.parentNode) != null && element.parentNode != document) {
|
|
11804
|
+
element = element.parentNode instanceof ShadowRoot ? element.parentNode.host : element.parentElement;
|
|
11805
|
+
if (element != null && hasOverflow(element)) {
|
|
11806
|
+
this.popper.setOptions({
|
|
11807
|
+
strategy: 'fixed',
|
|
11808
|
+
});
|
|
11809
|
+
return;
|
|
11810
|
+
}
|
|
11811
|
+
}
|
|
11812
|
+
this.popper.setOptions({
|
|
11813
|
+
strategy: 'absolute',
|
|
11814
|
+
});
|
|
11815
|
+
}
|
|
11720
11816
|
watchActive() {
|
|
11721
11817
|
var _a;
|
|
11722
11818
|
if (this.active) {
|
|
@@ -11781,6 +11877,7 @@ class Tooltip {
|
|
|
11781
11877
|
}
|
|
11782
11878
|
componentDidRender() {
|
|
11783
11879
|
var _a;
|
|
11880
|
+
this.setStrategy();
|
|
11784
11881
|
if (this.active) {
|
|
11785
11882
|
(_a = this.popper) === null || _a === void 0 ? void 0 : _a.update();
|
|
11786
11883
|
}
|
|
@@ -11812,6 +11909,7 @@ class Tooltip {
|
|
|
11812
11909
|
get element() { return getElement(this); }
|
|
11813
11910
|
static get watchers() { return {
|
|
11814
11911
|
"position": ["watchPosition"],
|
|
11912
|
+
"strategy": ["watchStrategy"],
|
|
11815
11913
|
"active": ["watchActive"]
|
|
11816
11914
|
}; }
|
|
11817
11915
|
static get style() { return tooltipCss; }
|
|
@@ -11821,6 +11919,7 @@ class Tooltip {
|
|
|
11821
11919
|
"$members$": {
|
|
11822
11920
|
"descriptive": [516],
|
|
11823
11921
|
"position": [1],
|
|
11922
|
+
"strategy": [1],
|
|
11824
11923
|
"for": [1],
|
|
11825
11924
|
"noArrow": [4, "no-arrow"],
|
|
11826
11925
|
"stateless": [4],
|
|
@@ -12175,6 +12274,7 @@ registerComponents([
|
|
|
12175
12274
|
MapControls,
|
|
12176
12275
|
MapOverlays,
|
|
12177
12276
|
OzonContent,
|
|
12277
|
+
Pagination,
|
|
12178
12278
|
ProgressBar,
|
|
12179
12279
|
Progressindicator,
|
|
12180
12280
|
ResponsiveElement,
|