@prolibu-suite/cobalt-core 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +21351 -7087
- package/dist/cjs/co-accordion.cjs.entry.js +19 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +54 -6
- package/dist/cjs/co-avatar-group.cjs.entry.js +77 -0
- package/dist/cjs/co-avatar.cjs.entry.js +42 -7
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +325 -0
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +12 -7
- package/dist/cjs/co-calendar-month.cjs.entry.js +381 -0
- package/dist/cjs/co-calendar_3.cjs.entry.js +692 -0
- package/dist/cjs/co-card.cjs.entry.js +21 -4
- package/dist/cjs/co-checkbox-group.cjs.entry.js +7 -5
- package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/co-chip.cjs.entry.js +11 -8
- package/dist/cjs/co-color-picker.cjs.entry.js +111 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +443 -0
- package/dist/cjs/co-combobox.cjs.entry.js +51 -15
- package/dist/cjs/co-command-search.cjs.entry.js +159 -13
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +38 -12
- package/dist/cjs/co-date-picker.cjs.entry.js +177 -0
- package/dist/cjs/co-date-range-picker.cjs.entry.js +378 -0
- package/dist/cjs/co-date-range.cjs.entry.js +13 -259
- package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/co-event-calendar.cjs.entry.js +318 -0
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +498 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +6 -6
- package/dist/cjs/co-icon.cjs.entry.js +36 -25
- package/dist/cjs/co-input.cjs.entry.js +13 -8
- package/dist/cjs/co-json-field.cjs.entry.js +113 -0
- package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
- package/dist/cjs/co-list-footer.cjs.entry.js +25 -0
- package/dist/cjs/co-list-item.cjs.entry.js +70 -4
- package/dist/cjs/co-loader_2.cjs.entry.js +293 -0
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +17 -10
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +25 -3
- package/dist/cjs/co-navbar.cjs.entry.js +4 -4
- package/dist/cjs/co-number-field.cjs.entry.js +60 -12
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +378 -0
- package/dist/cjs/co-popover.cjs.entry.js +46 -15
- package/dist/cjs/co-progress-bar.cjs.entry.js +8 -4
- package/dist/cjs/co-progress-circle.cjs.entry.js +38 -0
- package/dist/cjs/co-radio-group.cjs.entry.js +7 -5
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +214 -21
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +2081 -0
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +1108 -0
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +118 -0
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +119 -18
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +55 -10
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +9 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +211 -0
- package/dist/cjs/co-textarea.cjs.entry.js +96 -0
- package/dist/cjs/co-toast.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +7 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/co-tooltip.cjs.entry.js +56 -15
- package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
- package/dist/cjs/co-video.cjs.entry.js +839 -0
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/dateI18n-BdiNAl0_.js +106 -0
- package/dist/cjs/dates-D8D-aS5d.js +432 -0
- package/dist/cjs/fieldChip-CDIMz_Y6.js +7 -0
- package/dist/cjs/index-5NdsiFjZ.js +35405 -0
- package/dist/cjs/{index-BEovErzl.js → index-BumlM92r.js} +115 -23
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
- package/dist/cjs/overlayAfterClose-BdeXrhVY.js +12 -0
- package/dist/cjs/overlayScroll-ifzDNeyb.js +25 -0
- package/dist/cjs/overlayscrollbars-BlBHo2Xx.js +2842 -0
- package/dist/cjs/{positioning-DozpXyBd.js → positioning-DwHW399W.js} +40 -25
- package/dist/cjs/purify.es-DX41ZWS2.js +1776 -0
- package/dist/cjs/requiredMark-CqMGt1H1.js +16 -0
- package/dist/cjs/richTextI18n-B7ktXg3M.js +382 -0
- package/dist/cjs/toolbar-config-3PlT-3zm.js +216 -0
- package/dist/cjs/tz-Dgom0W69.js +127 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-0a506c9d.entry.js +1 -0
- package/dist/cobalt/p-0bb55163.entry.js +1 -0
- package/dist/cobalt/{p-fb047df8.entry.js → p-0e8c0d87.entry.js} +1 -1
- package/dist/cobalt/p-12e2c2c4.entry.js +1 -0
- package/dist/cobalt/p-136ad468.entry.js +1 -0
- package/dist/cobalt/p-14b59277.entry.js +1 -0
- package/dist/cobalt/p-1531d3c9.entry.js +1 -0
- package/dist/cobalt/p-1774d211.entry.js +1 -0
- package/dist/cobalt/{p-c7517f86.entry.js → p-180e1106.entry.js} +1 -1
- package/dist/cobalt/p-1a07c23c.entry.js +1 -0
- package/dist/cobalt/p-1dc9c49e.entry.js +1 -0
- package/dist/cobalt/p-1f747e45.entry.js +1 -0
- package/dist/cobalt/{p-d29c77cb.entry.js → p-201eaf35.entry.js} +1 -1
- package/dist/cobalt/p-260101ab.entry.js +1 -0
- package/dist/cobalt/p-279bf91c.entry.js +1 -0
- package/dist/cobalt/p-29be61a9.entry.js +1 -0
- package/dist/cobalt/p-2d2ce434.entry.js +1 -0
- package/dist/cobalt/{p-416bb5ae.entry.js → p-2f86e1e0.entry.js} +1 -1
- package/dist/cobalt/{p-4cf6d1f4.entry.js → p-31ab9a46.entry.js} +1 -1
- package/dist/cobalt/{p-319937c3.entry.js → p-37595103.entry.js} +1 -1
- package/dist/cobalt/p-377c2ccc.entry.js +1 -0
- package/dist/cobalt/p-3863ea91.entry.js +1 -0
- package/dist/cobalt/p-3a257cb0.entry.js +1 -0
- package/dist/cobalt/p-3e187456.entry.js +1 -0
- package/dist/cobalt/p-4431faac.entry.js +1 -0
- package/dist/cobalt/{p-4d8ff00a.entry.js → p-4504f7b0.entry.js} +1 -1
- package/dist/cobalt/p-456fa86f.entry.js +1 -0
- package/dist/cobalt/p-4871690e.entry.js +1 -0
- package/dist/cobalt/p-4c01d984.entry.js +1 -0
- package/dist/cobalt/p-51a53177.entry.js +1 -0
- package/dist/cobalt/p-52de17da.entry.js +1 -0
- package/dist/cobalt/p-5890e4d1.entry.js +1 -0
- package/dist/cobalt/{p-e50c4c6f.entry.js → p-58a53421.entry.js} +1 -1
- package/dist/cobalt/p-62274eba.entry.js +1 -0
- package/dist/cobalt/p-635b03d5.entry.js +1 -0
- package/dist/cobalt/p-64ddee92.entry.js +1 -0
- package/dist/cobalt/p-65af5017.entry.js +1 -0
- package/dist/cobalt/p-69d4c0c8.entry.js +1 -0
- package/dist/cobalt/p-6c480916.entry.js +1 -0
- package/dist/cobalt/p-6d1217c3.entry.js +1 -0
- package/dist/cobalt/p-6e808b3a.entry.js +1 -0
- package/dist/cobalt/{p-697df797.entry.js → p-70b14b05.entry.js} +1 -1
- package/dist/cobalt/{p-1d7da33f.entry.js → p-790d384e.entry.js} +1 -1
- package/dist/cobalt/p-8012e152.entry.js +1 -0
- package/dist/cobalt/p-80b27203.entry.js +1 -0
- package/dist/cobalt/p-867c1465.entry.js +1 -0
- package/dist/cobalt/p-86a143d7.entry.js +1 -0
- package/dist/cobalt/{p-3b2f7959.entry.js → p-8d59f5ad.entry.js} +1 -1
- package/dist/cobalt/p-8d7fdb9d.entry.js +1 -0
- package/dist/cobalt/p-8dc1dab8.entry.js +1 -0
- package/dist/cobalt/p-8e1dc062.entry.js +1 -0
- package/dist/cobalt/p-929e647f.entry.js +1 -0
- package/dist/cobalt/p-92bd9b29.entry.js +1 -0
- package/dist/cobalt/p-93046365.entry.js +1 -0
- package/dist/cobalt/p-98ab5f3f.entry.js +1 -0
- package/dist/cobalt/p-9a04ca90.entry.js +1 -0
- package/dist/cobalt/{p-ebd1555e.entry.js → p-9a088515.entry.js} +1 -1
- package/dist/cobalt/p-9abbd436.entry.js +1 -0
- package/dist/cobalt/p-9d69c067.entry.js +1 -0
- package/dist/cobalt/p-B-ckjCUA.js +1 -0
- package/dist/cobalt/p-B2QLgWrz.js +2 -0
- package/dist/cobalt/p-B6JZk8fL.js +1 -0
- package/dist/cobalt/p-BZJ7NCm5.js +1 -0
- package/dist/cobalt/p-C1DCLOEl.js +1 -0
- package/dist/cobalt/p-C2mZ7x_Y.js +1 -0
- package/dist/cobalt/p-CQY6Ul7q.js +1 -0
- package/dist/cobalt/p-CYsftTKf.js +2 -0
- package/dist/cobalt/p-CegCk7FL.js +1 -0
- package/dist/cobalt/p-Ch1jfwZ2.js +1 -0
- package/dist/cobalt/p-ChibIpZv.js +1 -0
- package/dist/cobalt/p-DqyWGweA.js +1 -0
- package/dist/cobalt/p-afb7e19e.entry.js +1 -0
- package/dist/cobalt/p-b6f20268.entry.js +1 -0
- package/dist/cobalt/p-ba90e871.entry.js +1 -0
- package/dist/cobalt/p-c10697e1.entry.js +1 -0
- package/dist/cobalt/p-c4f59532.entry.js +1 -0
- package/dist/cobalt/{p-1b5c723a.entry.js → p-cb235aa7.entry.js} +1 -1
- package/dist/cobalt/p-cfb36943.entry.js +1 -0
- package/dist/cobalt/p-d809bd44.entry.js +1 -0
- package/dist/cobalt/p-e53861e4.entry.js +1 -0
- package/dist/cobalt/p-e54dd404.entry.js +1 -0
- package/dist/cobalt/{p-1021f612.entry.js → p-eb18fdbf.entry.js} +1 -1
- package/dist/cobalt/{p-a7fa4484.entry.js → p-eb73052a.entry.js} +1 -1
- package/dist/cobalt/p-ef7d4ae3.entry.js +1 -0
- package/dist/cobalt/p-f4063c41.entry.js +1 -0
- package/dist/cobalt/p-oImf-7fN.js +1 -0
- package/dist/cobalt/p-ox7HzCZn.js +10 -0
- package/dist/cobalt/p-tPYikBRJ.js +1 -0
- package/dist/collection/collection-manifest.json +27 -4
- package/dist/collection/components/co-accordion/co-accordion.css +19 -1
- package/dist/collection/components/co-accordion/co-accordion.js +46 -4
- package/dist/collection/components/co-app-shell/co-app-shell.css +79 -6
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +753 -8
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +111 -4
- package/dist/collection/components/co-avatar/co-avatar.css +45 -1
- package/dist/collection/components/co-avatar/co-avatar.js +56 -6
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +86 -0
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +224 -0
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +136 -0
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +507 -0
- package/dist/collection/components/co-button/co-button.css +48 -12
- package/dist/collection/components/co-button/co-button.js +70 -8
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.css +236 -0
- package/dist/collection/components/co-calendar/co-calendar.js +728 -0
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +231 -0
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +594 -0
- package/dist/collection/components/co-card/co-card.css +28 -5
- package/dist/collection/components/co-card/co-card.js +47 -4
- package/dist/collection/components/co-checkbox/co-checkbox.css +7 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +33 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
- package/dist/collection/components/co-chip/co-chip.css +27 -7
- package/dist/collection/components/co-chip/co-chip.js +52 -10
- package/dist/collection/components/co-color-picker/co-color-picker.css +258 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +355 -0
- package/dist/collection/components/co-color-picker/presets.js +19 -0
- package/dist/collection/components/co-column-picker/co-column-picker.css +490 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +675 -0
- package/dist/collection/components/co-column-picker/column-picker-node.js +34 -0
- package/dist/collection/components/co-column-picker/utils/column-picker-tree.js +221 -0
- package/dist/collection/components/co-combobox/co-combobox.css +778 -51
- package/dist/collection/components/co-combobox/co-combobox.js +130 -15
- package/dist/collection/components/co-command-search/co-command-search.css +167 -1
- package/dist/collection/components/co-command-search/co-command-search.js +362 -14
- package/dist/collection/components/co-command-search/commandSearchGroup.js +17 -0
- package/dist/collection/components/co-command-search/commandSearchLogic.js +27 -0
- package/dist/collection/components/co-data-table/co-data-table.css +37 -1
- package/dist/collection/components/co-data-table/co-data-table.js +38 -12
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +245 -0
- package/dist/collection/components/co-date-field/co-date-field.js +746 -0
- package/dist/collection/components/co-date-picker/co-date-picker.css +112 -0
- package/dist/collection/components/co-date-picker/co-date-picker.js +801 -0
- package/dist/collection/components/co-date-range/co-date-range.css +3 -254
- package/dist/collection/components/co-date-range/co-date-range.js +29 -433
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +257 -0
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +1142 -0
- package/dist/collection/components/co-drawer/co-drawer.css +20 -0
- package/dist/collection/components/co-drawer/co-drawer.js +46 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
- package/dist/collection/components/co-event-calendar/co-event-calendar.css +146 -0
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +620 -0
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +395 -0
- package/dist/collection/components/co-file-field/co-file-field.js +841 -0
- package/dist/collection/components/co-file-field/co-file-field.utils.js +47 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +7 -34
- package/dist/collection/components/co-icon/iconLoader.js +39 -0
- package/dist/collection/components/co-icon-button/co-icon-button.css +27 -6
- package/dist/collection/components/co-icon-button/co-icon-button.js +26 -7
- package/dist/collection/components/co-input/co-input.css +63 -11
- package/dist/collection/components/co-input/co-input.js +34 -9
- package/dist/collection/components/co-json-field/co-json-field.css +193 -0
- package/dist/collection/components/co-json-field/co-json-field.js +477 -0
- package/dist/collection/components/co-lightbox/co-lightbox.css +164 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +451 -0
- package/dist/collection/components/co-list-footer/co-list-footer.css +50 -0
- package/dist/collection/components/co-list-footer/co-list-footer.js +149 -0
- package/dist/collection/components/co-list-item/co-list-item.css +12 -0
- package/dist/collection/components/co-list-item/co-list-item.js +75 -2
- package/dist/collection/components/co-loader/co-loader.css +9 -0
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +18 -0
- package/dist/collection/components/co-menu-item/co-menu-item.js +15 -8
- package/dist/collection/components/co-modal/co-modal.css +59 -5
- package/dist/collection/components/co-modal/co-modal.js +91 -1
- package/dist/collection/components/co-navbar/co-navbar.css +1 -1
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +89 -1
- package/dist/collection/components/co-number-field/co-number-field.js +175 -14
- package/dist/collection/components/co-overlay/co-overlay.css +15 -1
- package/dist/collection/components/co-overlay/co-overlay.js +266 -1
- package/dist/collection/components/co-overlay/focusTrap.js +53 -0
- package/dist/collection/components/co-overlay/overlayAfterClose.js +8 -0
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +293 -0
- package/dist/collection/components/co-phone-field/co-phone-field.js +414 -0
- package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
- package/dist/collection/components/co-popover/co-popover.css +9 -0
- package/dist/collection/components/co-popover/co-popover.js +43 -12
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +22 -0
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +26 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.css +50 -0
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +148 -0
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +26 -0
- package/dist/collection/components/co-radio-group/co-radio-group.js +25 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +876 -56
- package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +1322 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2823 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +837 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +1289 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +156 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +237 -0
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +852 -8
- package/dist/collection/components/co-select/co-select.js +240 -17
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +99 -12
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +54 -9
- package/dist/collection/components/co-skeleton/co-skeleton.css +28 -0
- package/dist/collection/components/co-skeleton/co-skeleton.js +97 -0
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +26 -1
- package/dist/collection/components/co-switch/co-switch.js +27 -4
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
- package/dist/collection/components/co-tags-field/co-tags-field.css +310 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +616 -0
- package/dist/collection/components/co-textarea/co-textarea.css +286 -0
- package/dist/collection/components/co-textarea/co-textarea.js +508 -0
- package/dist/collection/components/co-toast/co-toast.js +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +30 -6
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +3 -3
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +32 -12
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +24 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +73 -12
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +683 -7
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +17 -4
- package/dist/collection/components/co-video/co-video.css +497 -0
- package/dist/collection/components/co-video/co-video.js +1772 -0
- package/dist/collection/utils/dateI18n.js +101 -0
- package/dist/collection/utils/fieldChip.js +2 -0
- package/dist/collection/utils/fileI18n.js +76 -0
- package/dist/collection/utils/icon-config.js +34 -0
- package/dist/collection/utils/lightboxI18n.js +42 -0
- package/dist/collection/utils/normalizeText.js +94 -0
- package/dist/collection/utils/overlayScroll.js +20 -0
- package/dist/collection/utils/positioning.js +40 -25
- package/dist/collection/utils/requiredMark.js +11 -0
- package/dist/collection/utils/richTextI18n.js +378 -0
- package/dist/collection/utils/sheetGesture.js +53 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.d.ts +11 -0
- package/dist/components/co-avatar-group.js +1 -0
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.d.ts +11 -0
- package/dist/components/co-bottom-sheet.js +1 -0
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.d.ts +11 -0
- package/dist/components/co-calendar-month.js +1 -0
- package/dist/components/co-calendar.d.ts +11 -0
- package/dist/components/co-calendar.js +1 -0
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-picker.d.ts +11 -0
- package/dist/components/co-color-picker.js +1 -0
- package/dist/components/co-column-picker.d.ts +11 -0
- package/dist/components/co-column-picker.js +1 -0
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.d.ts +11 -0
- package/dist/components/co-date-field.js +1 -0
- package/dist/components/co-date-picker.d.ts +11 -0
- package/dist/components/co-date-picker.js +1 -0
- package/dist/components/co-date-range-picker.d.ts +11 -0
- package/dist/components/co-date-range-picker.js +1 -0
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.d.ts +11 -0
- package/dist/components/co-event-calendar.js +1 -0
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.d.ts +11 -0
- package/dist/components/co-file-field.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.d.ts +11 -0
- package/dist/components/co-json-field.js +1 -0
- package/dist/components/co-lightbox.d.ts +11 -0
- package/dist/components/co-lightbox.js +1 -0
- package/dist/components/co-list-footer.d.ts +11 -0
- package/dist/components/co-list-footer.js +1 -0
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-loader.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.d.ts +11 -0
- package/dist/components/co-phone-field.js +1 -0
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.d.ts +11 -0
- package/dist/components/co-progress-circle.js +1 -0
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.d.ts +11 -0
- package/dist/components/co-rich-text-editor.js +1 -0
- package/dist/components/co-rich-text-toolbar.d.ts +11 -0
- package/dist/components/co-rich-text-toolbar.js +1 -0
- package/dist/components/co-rich-text-viewer.d.ts +11 -0
- package/dist/components/co-rich-text-viewer.js +1 -0
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.d.ts +11 -0
- package/dist/components/co-skeleton.js +1 -0
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.d.ts +11 -0
- package/dist/components/co-tags-field.js +1 -0
- package/dist/components/co-textarea.d.ts +11 -0
- package/dist/components/co-textarea.js +1 -0
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-video.d.ts +11 -0
- package/dist/components/co-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-B2QLgWrz.js +2 -0
- package/dist/components/p-B7vGYFbO.js +1 -0
- package/dist/components/p-BB2OaYKF.js +1 -0
- package/dist/components/p-BFeE_fiq.js +1 -0
- package/dist/components/p-BNKz39GA.js +1 -0
- package/dist/components/p-Ba4v1NXo.js +1 -0
- package/dist/components/p-C1DCLOEl.js +1 -0
- package/dist/components/p-C2mZ7x_Y.js +1 -0
- package/dist/components/p-CQY6Ul7q.js +1 -0
- package/dist/components/p-CWneqh4n.js +1 -0
- package/dist/components/p-C_ULDaks.js +1 -0
- package/dist/components/p-CegCk7FL.js +1 -0
- package/dist/components/p-ChibIpZv.js +1 -0
- package/dist/components/p-CyYF8IJE.js +1 -0
- package/dist/components/p-D3Y_ti3Q.js +1 -0
- package/dist/components/p-DKh8ZK4U.js +1 -0
- package/dist/components/p-DeZxp9vb.js +1 -0
- package/dist/components/p-DqyWGweA.js +1 -0
- package/dist/components/p-DvhR3H61.js +1 -0
- package/dist/components/p-DxCFMMfY.js +1 -0
- package/dist/components/{p-OGpfa9Yd.js → p-DzoNGEDU.js} +1 -1
- package/dist/components/p-EPZfLt5l.js +1 -0
- package/dist/components/p-FMnqPWcM.js +1 -0
- package/dist/components/p-Hzh9U2cM.js +1 -0
- package/dist/components/p-WZ06pT2Y.js +1 -0
- package/dist/components/p-ox7HzCZn.js +10 -0
- package/dist/components/p-tloAgDin.js +1 -0
- package/dist/esm/co-accordion.entry.js +19 -4
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +54 -6
- package/dist/esm/co-avatar-group.entry.js +75 -0
- package/dist/esm/co-avatar.entry.js +41 -6
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +323 -0
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +12 -7
- package/dist/esm/co-calendar-month.entry.js +379 -0
- package/dist/esm/co-calendar_3.entry.js +688 -0
- package/dist/esm/co-card.entry.js +21 -4
- package/dist/esm/co-checkbox-group.entry.js +7 -5
- package/dist/esm/co-checkbox.entry.js +5 -5
- package/dist/esm/co-chip.entry.js +11 -8
- package/dist/esm/co-color-picker.entry.js +109 -0
- package/dist/esm/co-column-picker.entry.js +441 -0
- package/dist/esm/co-combobox.entry.js +51 -15
- package/dist/esm/co-command-search.entry.js +159 -13
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +38 -12
- package/dist/esm/co-date-picker.entry.js +175 -0
- package/dist/esm/co-date-range-picker.entry.js +376 -0
- package/dist/esm/co-date-range.entry.js +13 -259
- package/dist/esm/co-empty-state.entry.js +2 -2
- package/dist/esm/co-event-calendar.entry.js +316 -0
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +496 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +6 -6
- package/dist/esm/co-icon.entry.js +36 -25
- package/dist/esm/co-input.entry.js +13 -8
- package/dist/esm/co-json-field.entry.js +111 -0
- package/dist/esm/co-lightbox.entry.js +342 -0
- package/dist/esm/co-list-footer.entry.js +23 -0
- package/dist/esm/co-list-item.entry.js +70 -4
- package/dist/esm/co-loader_2.entry.js +290 -0
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +17 -10
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +25 -3
- package/dist/esm/co-navbar.entry.js +4 -4
- package/dist/esm/co-number-field.entry.js +60 -12
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +376 -0
- package/dist/esm/co-popover.entry.js +46 -15
- package/dist/esm/co-progress-bar.entry.js +8 -4
- package/dist/esm/co-progress-circle.entry.js +36 -0
- package/dist/esm/co-radio-group.entry.js +7 -5
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +214 -21
- package/dist/esm/co-rich-text-editor.entry.js +2079 -0
- package/dist/esm/co-rich-text-toolbar.entry.js +1106 -0
- package/dist/esm/co-rich-text-viewer.entry.js +116 -0
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-select.entry.js +119 -18
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +55 -10
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +24 -0
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +9 -6
- package/dist/esm/co-tab-group.entry.js +2 -2
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +209 -0
- package/dist/esm/co-textarea.entry.js +94 -0
- package/dist/esm/co-toast.entry.js +2 -2
- package/dist/esm/co-toggle-button-group.entry.js +7 -4
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/co-tooltip.entry.js +56 -15
- package/dist/esm/co-transfer-list.entry.js +20 -6
- package/dist/esm/co-video.entry.js +837 -0
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
- package/dist/esm/dates-tPYikBRJ.js +416 -0
- package/dist/esm/fieldChip-GPikjpYw.js +5 -0
- package/dist/esm/{index-B0lqrhFo.js → index-CYsftTKf.js} +115 -23
- package/dist/esm/index-w_Wxgclf.js +35403 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
- package/dist/esm/overlayAfterClose-Ch1jfwZ2.js +10 -0
- package/dist/esm/overlayScroll-Bpv882_z.js +23 -0
- package/dist/esm/overlayscrollbars-ox7HzCZn.js +2840 -0
- package/dist/esm/{positioning-Am-OlB8h.js → positioning-C2mZ7x_Y.js} +40 -25
- package/dist/esm/purify.es-B2QLgWrz.js +1774 -0
- package/dist/esm/requiredMark-CEbXKHcU.js +14 -0
- package/dist/esm/richTextI18n-B-ckjCUA.js +380 -0
- package/dist/esm/toolbar-config-ChibIpZv.js +212 -0
- package/dist/esm/tz-B6JZk8fL.js +119 -0
- package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +13 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +8 -2
- package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +33 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +81 -0
- package/dist/types/components/co-button/co-button.d.ts +7 -1
- package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
- package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +83 -0
- package/dist/types/components/co-card/co-card.d.ts +10 -2
- package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +2 -0
- package/dist/types/components/co-chip/co-chip.d.ts +7 -2
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +50 -0
- package/dist/types/components/co-color-picker/presets.d.ts +10 -0
- package/dist/types/components/co-column-picker/co-column-picker.d.ts +60 -0
- package/dist/types/components/co-column-picker/column-picker-node.d.ts +18 -0
- package/dist/types/components/co-column-picker/utils/column-picker-tree.d.ts +37 -0
- package/dist/types/components/co-combobox/co-combobox.d.ts +14 -1
- package/dist/types/components/co-command-search/co-command-search.d.ts +41 -6
- package/dist/types/components/co-command-search/commandSearchGroup.d.ts +20 -0
- package/dist/types/components/co-command-search/commandSearchLogic.d.ts +17 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +3 -1
- package/dist/types/components/co-date-field/co-date-field.d.ts +96 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +92 -0
- package/dist/types/components/co-date-range/co-date-range.d.ts +12 -50
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +112 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +4 -0
- package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +110 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +146 -0
- package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -0
- package/dist/types/components/co-icon/co-icon.d.ts +1 -1
- package/dist/types/components/co-icon/iconLoader.d.ts +6 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +3 -1
- package/dist/types/components/co-input/co-input.d.ts +4 -1
- package/dist/types/components/co-json-field/co-json-field.d.ts +69 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
- package/dist/types/components/co-list-footer/co-list-footer.d.ts +26 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +12 -0
- package/dist/types/components/co-modal/co-modal.d.ts +10 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +29 -2
- package/dist/types/components/co-overlay/co-overlay.d.ts +45 -0
- package/dist/types/components/co-overlay/focusTrap.d.ts +20 -0
- package/dist/types/components/co-overlay/overlayAfterClose.d.ts +5 -0
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +58 -0
- package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
- package/dist/types/components/co-popover/co-popover.d.ts +9 -0
- package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +2 -0
- package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +16 -0
- package/dist/types/components/co-radio-group/co-radio-group.d.ts +2 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +69 -1
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +246 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +148 -0
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +19 -0
- package/dist/types/components/co-select/co-select.d.ts +31 -1
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +13 -0
- package/dist/types/components/co-switch/co-switch.d.ts +2 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +84 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +68 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
- package/dist/types/components/co-video/co-video.d.ts +203 -0
- package/dist/types/components.d.ts +5422 -391
- package/dist/types/utils/dateI18n.d.ts +39 -0
- package/dist/types/utils/fieldChip.d.ts +37 -0
- package/dist/types/utils/fileI18n.d.ts +34 -0
- package/dist/types/utils/icon-config.d.ts +31 -0
- package/dist/types/utils/lightboxI18n.d.ts +12 -0
- package/dist/types/utils/normalizeText.d.ts +41 -0
- package/dist/types/utils/overlayScroll.d.ts +17 -0
- package/dist/types/utils/positioning.d.ts +7 -14
- package/dist/types/utils/requiredMark.d.ts +13 -0
- package/dist/types/utils/richTextI18n.d.ts +130 -0
- package/dist/types/utils/sheetGesture.d.ts +31 -0
- package/package.json +10 -1
- package/dist/cjs/co-drawer.cjs.entry.js +0 -75
- package/dist/cjs/co-loader.cjs.entry.js +0 -34
- package/dist/cjs/co-overlay.cjs.entry.js +0 -23
- package/dist/cjs/color-YhUkm10t.js +0 -32
- package/dist/cobalt/p-08afdc51.entry.js +0 -1
- package/dist/cobalt/p-1b7d6808.entry.js +0 -1
- package/dist/cobalt/p-1d3338b6.entry.js +0 -1
- package/dist/cobalt/p-1d91ec93.entry.js +0 -1
- package/dist/cobalt/p-230a23f3.entry.js +0 -1
- package/dist/cobalt/p-31bc842d.entry.js +0 -1
- package/dist/cobalt/p-37c1f700.entry.js +0 -1
- package/dist/cobalt/p-4905b51d.entry.js +0 -1
- package/dist/cobalt/p-4dd7499c.entry.js +0 -1
- package/dist/cobalt/p-4e7ce8ee.entry.js +0 -1
- package/dist/cobalt/p-4ffba5a3.entry.js +0 -1
- package/dist/cobalt/p-5a13e3a0.entry.js +0 -1
- package/dist/cobalt/p-6793c51e.entry.js +0 -1
- package/dist/cobalt/p-689e38b3.entry.js +0 -1
- package/dist/cobalt/p-7028880b.entry.js +0 -1
- package/dist/cobalt/p-72113ec2.entry.js +0 -1
- package/dist/cobalt/p-8e54e74d.entry.js +0 -1
- package/dist/cobalt/p-92c39eed.entry.js +0 -1
- package/dist/cobalt/p-9887b828.entry.js +0 -1
- package/dist/cobalt/p-9a5c6600.entry.js +0 -1
- package/dist/cobalt/p-Am-OlB8h.js +0 -1
- package/dist/cobalt/p-B0lqrhFo.js +0 -2
- package/dist/cobalt/p-BG4WRR22.js +0 -1
- package/dist/cobalt/p-a1b248ad.entry.js +0 -1
- package/dist/cobalt/p-a470b764.entry.js +0 -1
- package/dist/cobalt/p-a4d55b1a.entry.js +0 -1
- package/dist/cobalt/p-b6840df4.entry.js +0 -1
- package/dist/cobalt/p-b89d54d9.entry.js +0 -1
- package/dist/cobalt/p-ba84631a.entry.js +0 -1
- package/dist/cobalt/p-c9b0e73f.entry.js +0 -1
- package/dist/cobalt/p-ca41eec2.entry.js +0 -1
- package/dist/cobalt/p-cc93ab05.entry.js +0 -1
- package/dist/cobalt/p-d9d8b10e.entry.js +0 -1
- package/dist/cobalt/p-da55678f.entry.js +0 -1
- package/dist/cobalt/p-dc5598d1.entry.js +0 -1
- package/dist/cobalt/p-e2c9cb00.entry.js +0 -1
- package/dist/cobalt/p-e808916c.entry.js +0 -1
- package/dist/cobalt/p-ebd68f56.entry.js +0 -1
- package/dist/cobalt/p-f051f44d.entry.js +0 -1
- package/dist/cobalt/p-fe1447a3.entry.js +0 -1
- package/dist/cobalt/p-ff6a647c.entry.js +0 -1
- package/dist/components/p-Am-OlB8h.js +0 -1
- package/dist/components/p-B18FTYLq.js +0 -1
- package/dist/components/p-BG4WRR22.js +0 -1
- package/dist/components/p-Cr8Yc0zj.js +0 -1
- package/dist/components/p-FBICWTuN.js +0 -1
- package/dist/components/p-cpdUXBiS.js +0 -1
- package/dist/components/p-wwWquAtm.js +0 -1
- package/dist/esm/co-drawer.entry.js +0 -73
- package/dist/esm/co-loader.entry.js +0 -32
- package/dist/esm/co-overlay.entry.js +0 -21
- package/dist/esm/color-BG4WRR22.js +0 -30
|
@@ -0,0 +1,1142 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { RequiredMark } from "../../utils/requiredMark";
|
|
3
|
+
import { addDays, addMonths, compareYMD, formatDisplay, isValidYMD, parseISO, startOfMonth, toLocalDate, todayYMD, } from "@prolibu-suite/cobalt-date-utils";
|
|
4
|
+
import { getDateStrings } from "../../utils/dateI18n";
|
|
5
|
+
/**
|
|
6
|
+
* Date range picker: two manual date fields (Desde/Hasta) + a range calendar +
|
|
7
|
+
* quick presets, inside a popover with a Cancel/Clear/Apply footer.
|
|
8
|
+
*
|
|
9
|
+
* Value is a JSON string `{"from":"YYYY-MM-DD","to":"YYYY-MM-DD"}` (or '' when
|
|
10
|
+
* unset) so it survives JSX attribute serialization. The trigger shows the
|
|
11
|
+
* COMMITTED range; the popover edits a draft that only commits on Apply (or, if
|
|
12
|
+
* `applyOnSelect`, debounced once both ends are chosen — for table filters).
|
|
13
|
+
*/
|
|
14
|
+
export class CoDateRangePicker {
|
|
15
|
+
constructor() {
|
|
16
|
+
/** JSON `{from,to}` or '' (empty). */
|
|
17
|
+
this.value = '';
|
|
18
|
+
this.locale = 'es-CO';
|
|
19
|
+
this.displayFormat = 'd MMM yyyy';
|
|
20
|
+
this.firstDayOfWeek = 1;
|
|
21
|
+
/** Show the quick-preset column. */
|
|
22
|
+
this.presets = true;
|
|
23
|
+
/** Allow from === to. */
|
|
24
|
+
this.allowSameDay = true;
|
|
25
|
+
this.clearable = true;
|
|
26
|
+
/** Commit (emit coApply) as soon as a full valid range is picked, debounced. */
|
|
27
|
+
this.applyOnSelect = false;
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
this.readonly = false;
|
|
30
|
+
this.invalid = false;
|
|
31
|
+
/** Whether the field is required (renders a required marker on the label). */
|
|
32
|
+
this.required = false;
|
|
33
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
34
|
+
this.layout = 'vertical';
|
|
35
|
+
/** Trigger size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48. */
|
|
36
|
+
this.size = 'md';
|
|
37
|
+
this.placement = 'bottom-start';
|
|
38
|
+
this.open = false;
|
|
39
|
+
/** Max viewport width (px) that renders the picker as a bottom sheet. */
|
|
40
|
+
this.mobileBreakpoint = 600;
|
|
41
|
+
/** Working range while the popover is open (commits on Apply). */
|
|
42
|
+
this.draftFrom = null;
|
|
43
|
+
this.draftTo = null;
|
|
44
|
+
/** True when the viewport is at/under `mobileBreakpoint`. */
|
|
45
|
+
this.isMobile = false;
|
|
46
|
+
this.mqlHandler = (e) => {
|
|
47
|
+
this.isMobile = e.matches;
|
|
48
|
+
};
|
|
49
|
+
this.onPopoverOpen = () => {
|
|
50
|
+
if (!this.open) {
|
|
51
|
+
this.open = true;
|
|
52
|
+
this.coOpen.emit();
|
|
53
|
+
}
|
|
54
|
+
this.syncDraftFromValue();
|
|
55
|
+
};
|
|
56
|
+
this.onPopoverClose = () => {
|
|
57
|
+
if (this.open) {
|
|
58
|
+
this.open = false;
|
|
59
|
+
this.coClose.emit();
|
|
60
|
+
}
|
|
61
|
+
// Revert the draft to the committed value. After Apply/Clear the committed
|
|
62
|
+
// value already equals the draft, so this is a no-op there; for outside
|
|
63
|
+
// click / Cancel / Escape it discards the in-progress edit.
|
|
64
|
+
this.syncDraftFromValue();
|
|
65
|
+
};
|
|
66
|
+
this.onRootKeyDown = (e) => {
|
|
67
|
+
if (e.key === 'Escape' && this.open) {
|
|
68
|
+
e.stopPropagation();
|
|
69
|
+
this.handleCancel();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
this.onCalendarRange = (e) => {
|
|
73
|
+
this.updateDraft(e.detail.start, e.detail.end);
|
|
74
|
+
};
|
|
75
|
+
this.onFromChange = (e) => {
|
|
76
|
+
this.updateDraft(e.detail, this.draftTo);
|
|
77
|
+
};
|
|
78
|
+
this.onToChange = (e) => {
|
|
79
|
+
this.updateDraft(this.draftFrom, e.detail);
|
|
80
|
+
};
|
|
81
|
+
/** Open the mobile bottom sheet (desktop opens via co-popover's trigger click). */
|
|
82
|
+
this.openSheet = () => {
|
|
83
|
+
if (this.disabled || this.open)
|
|
84
|
+
return;
|
|
85
|
+
this.syncDraftFromValue();
|
|
86
|
+
this.open = true;
|
|
87
|
+
this.coOpen.emit();
|
|
88
|
+
};
|
|
89
|
+
// ── Footer actions ─────────────────────────────────────────
|
|
90
|
+
this.handleApply = () => {
|
|
91
|
+
if (!this.canApply)
|
|
92
|
+
return;
|
|
93
|
+
this.value = JSON.stringify({ from: this.draftFrom, to: this.draftTo });
|
|
94
|
+
this.coApply.emit({ from: this.draftFrom, to: this.draftTo });
|
|
95
|
+
this.open = false; // → onPopoverClose (draft already == committed)
|
|
96
|
+
};
|
|
97
|
+
this.handleCancel = () => {
|
|
98
|
+
this.coCancel.emit();
|
|
99
|
+
this.syncDraftFromValue(); // revert (covers the mobile drawer path too)
|
|
100
|
+
this.open = false;
|
|
101
|
+
};
|
|
102
|
+
this.handleClear = () => {
|
|
103
|
+
this.value = '';
|
|
104
|
+
this.draftFrom = null;
|
|
105
|
+
this.draftTo = null;
|
|
106
|
+
this.coClear.emit();
|
|
107
|
+
this.coRangeChange.emit({ from: null, to: null });
|
|
108
|
+
this.open = false;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
componentWillLoad() {
|
|
112
|
+
const v = this.parseValue();
|
|
113
|
+
this.draftFrom = v.from;
|
|
114
|
+
this.draftTo = v.to;
|
|
115
|
+
}
|
|
116
|
+
connectedCallback() {
|
|
117
|
+
this.mql = window.matchMedia(`(max-width: ${this.mobileBreakpoint}px)`);
|
|
118
|
+
this.isMobile = this.mql.matches;
|
|
119
|
+
this.mql.addEventListener('change', this.mqlHandler);
|
|
120
|
+
}
|
|
121
|
+
disconnectedCallback() {
|
|
122
|
+
var _a;
|
|
123
|
+
(_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener('change', this.mqlHandler);
|
|
124
|
+
}
|
|
125
|
+
onValueChange() {
|
|
126
|
+
const v = this.parseValue();
|
|
127
|
+
this.draftFrom = v.from;
|
|
128
|
+
this.draftTo = v.to;
|
|
129
|
+
}
|
|
130
|
+
parseValue() {
|
|
131
|
+
if (!this.value)
|
|
132
|
+
return { from: null, to: null };
|
|
133
|
+
try {
|
|
134
|
+
const v = JSON.parse(this.value);
|
|
135
|
+
return {
|
|
136
|
+
from: isValidYMD(v.from) ? v.from : null,
|
|
137
|
+
to: isValidYMD(v.to) ? v.to : null,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
catch (_a) {
|
|
141
|
+
return { from: null, to: null };
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
get committed() {
|
|
145
|
+
return this.parseValue();
|
|
146
|
+
}
|
|
147
|
+
inclusiveDays(from, to) {
|
|
148
|
+
const ms = toLocalDate(parseISO(to)).getTime() - toLocalDate(parseISO(from)).getTime();
|
|
149
|
+
return Math.round(ms / 86400000) + 1;
|
|
150
|
+
}
|
|
151
|
+
get canApply() {
|
|
152
|
+
const f = this.draftFrom;
|
|
153
|
+
const t = this.draftTo;
|
|
154
|
+
if (!f || !t)
|
|
155
|
+
return false;
|
|
156
|
+
if (compareYMD(f, t) > 0)
|
|
157
|
+
return false;
|
|
158
|
+
if (!this.allowSameDay && compareYMD(f, t) === 0)
|
|
159
|
+
return false;
|
|
160
|
+
const days = this.inclusiveDays(f, t);
|
|
161
|
+
if (this.minRangeDays && days < this.minRangeDays)
|
|
162
|
+
return false;
|
|
163
|
+
if (this.maxRangeDays && days > this.maxRangeDays)
|
|
164
|
+
return false;
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
// ── Open / close + draft lifecycle ─────────────────────────
|
|
168
|
+
syncDraftFromValue() {
|
|
169
|
+
const v = this.parseValue();
|
|
170
|
+
this.draftFrom = v.from;
|
|
171
|
+
this.draftTo = v.to;
|
|
172
|
+
}
|
|
173
|
+
// ── Draft edits ────────────────────────────────────────────
|
|
174
|
+
updateDraft(from, to) {
|
|
175
|
+
const prevFrom = this.draftFrom;
|
|
176
|
+
const prevTo = this.draftTo;
|
|
177
|
+
this.draftFrom = from;
|
|
178
|
+
this.draftTo = to;
|
|
179
|
+
if (from !== prevFrom)
|
|
180
|
+
this.coRangeStartChange.emit(from);
|
|
181
|
+
if (to !== prevTo)
|
|
182
|
+
this.coRangeEndChange.emit(to);
|
|
183
|
+
this.coRangeChange.emit({ from, to });
|
|
184
|
+
if (this.applyOnSelect && this.canApply)
|
|
185
|
+
this.scheduleApply();
|
|
186
|
+
}
|
|
187
|
+
scheduleApply() {
|
|
188
|
+
clearTimeout(this.applyTimer);
|
|
189
|
+
this.applyTimer = setTimeout(() => {
|
|
190
|
+
if (this.canApply)
|
|
191
|
+
this.handleApply();
|
|
192
|
+
}, 250);
|
|
193
|
+
}
|
|
194
|
+
// ── Presets ────────────────────────────────────────────────
|
|
195
|
+
applyPreset(id) {
|
|
196
|
+
const today = todayYMD();
|
|
197
|
+
let from = null;
|
|
198
|
+
let to = null;
|
|
199
|
+
switch (id) {
|
|
200
|
+
case 'today':
|
|
201
|
+
from = today;
|
|
202
|
+
to = today;
|
|
203
|
+
break;
|
|
204
|
+
case 'yesterday':
|
|
205
|
+
from = addDays(today, -1);
|
|
206
|
+
to = from;
|
|
207
|
+
break;
|
|
208
|
+
case 'last7Days':
|
|
209
|
+
to = today;
|
|
210
|
+
from = addDays(today, -6);
|
|
211
|
+
break;
|
|
212
|
+
case 'last14Days':
|
|
213
|
+
to = today;
|
|
214
|
+
from = addDays(today, -13);
|
|
215
|
+
break;
|
|
216
|
+
case 'last30Days':
|
|
217
|
+
to = today;
|
|
218
|
+
from = addDays(today, -29);
|
|
219
|
+
break;
|
|
220
|
+
case 'last90Days':
|
|
221
|
+
to = today;
|
|
222
|
+
from = addDays(today, -89);
|
|
223
|
+
break;
|
|
224
|
+
case 'thisWeek':
|
|
225
|
+
from = startOfWeek(today, this.firstDayOfWeek);
|
|
226
|
+
to = addDays(from, 6);
|
|
227
|
+
break;
|
|
228
|
+
case 'thisMonth':
|
|
229
|
+
from = startOfMonth(today);
|
|
230
|
+
to = endOfMonth(today);
|
|
231
|
+
break;
|
|
232
|
+
case 'lastMonth': {
|
|
233
|
+
const lm = addMonths(today, -1);
|
|
234
|
+
from = startOfMonth(lm);
|
|
235
|
+
to = endOfMonth(lm);
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
case 'thisYear': {
|
|
239
|
+
const y = parseISO(today).year;
|
|
240
|
+
from = `${y}-01-01`;
|
|
241
|
+
to = `${y}-12-31`;
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
case 'lastYear': {
|
|
245
|
+
const y = parseISO(today).year - 1;
|
|
246
|
+
from = `${y}-01-01`;
|
|
247
|
+
to = `${y}-12-31`;
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
case 'custom':
|
|
251
|
+
from = null;
|
|
252
|
+
to = null;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
this.updateDraft(from, to);
|
|
256
|
+
}
|
|
257
|
+
get hasCommitted() {
|
|
258
|
+
const c = this.committed;
|
|
259
|
+
return !!(c.from || c.to);
|
|
260
|
+
}
|
|
261
|
+
triggerText(t) {
|
|
262
|
+
const c = this.committed;
|
|
263
|
+
const f = c.from ? formatDisplay(c.from, this.displayFormat, this.locale) : null;
|
|
264
|
+
const to = c.to ? formatDisplay(c.to, this.displayFormat, this.locale) : null;
|
|
265
|
+
if (f && to)
|
|
266
|
+
return `${f} → ${to}`;
|
|
267
|
+
if (f)
|
|
268
|
+
return `${f} → …`;
|
|
269
|
+
return this.placeholder || t.setDate; // `||`: empty string → localized default
|
|
270
|
+
}
|
|
271
|
+
presetItems(t) {
|
|
272
|
+
const DEFAULT_PRESETS = [
|
|
273
|
+
'today',
|
|
274
|
+
'yesterday',
|
|
275
|
+
'last7Days',
|
|
276
|
+
'last30Days',
|
|
277
|
+
'thisWeek',
|
|
278
|
+
'thisMonth',
|
|
279
|
+
'lastMonth',
|
|
280
|
+
'custom',
|
|
281
|
+
];
|
|
282
|
+
const ids = normalizeStringArray(this.presetIds);
|
|
283
|
+
return (ids.length ? ids : DEFAULT_PRESETS).map((id) => {
|
|
284
|
+
var _a;
|
|
285
|
+
return ({
|
|
286
|
+
id,
|
|
287
|
+
label: (_a = t[id]) !== null && _a !== void 0 ? _a : id,
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
renderTriggerChildren(t, showClear) {
|
|
292
|
+
var _a;
|
|
293
|
+
return [
|
|
294
|
+
h("co-icon", { name: "calendar", size: 16, class: "co-date-range-picker__icon" }),
|
|
295
|
+
h("span", { class: {
|
|
296
|
+
'co-date-range-picker__trigger-text': true,
|
|
297
|
+
'co-date-range-picker__trigger-text--placeholder': !this.hasCommitted,
|
|
298
|
+
} }, this.triggerText(t)),
|
|
299
|
+
showClear && (h("button", { class: "co-date-range-picker__clear", type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault(), onClick: (e) => {
|
|
300
|
+
e.stopPropagation();
|
|
301
|
+
this.handleClear();
|
|
302
|
+
}, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clear }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))),
|
|
303
|
+
h("co-icon", { name: "caret-down", size: 14, class: "co-date-range-picker__caret" }),
|
|
304
|
+
];
|
|
305
|
+
}
|
|
306
|
+
renderPanel(t, touch) {
|
|
307
|
+
var _a, _b, _c, _d, _e, _f;
|
|
308
|
+
return (h("div", { class: "co-date-range-picker__panel" }, h("div", { class: "co-date-range-picker__fields" }, h("co-date-field", { class: "co-date-range-picker__field", label: (_a = this.fromLabel) !== null && _a !== void 0 ? _a : t.from, value: this.draftFrom, min: this.min, max: (_b = this.draftTo) !== null && _b !== void 0 ? _b : this.max, locale: this.locale, displayFormat: this.displayFormat, clearable: false, onCoChange: this.onFromChange }), h("co-date-field", { class: "co-date-range-picker__field", label: (_c = this.toLabel) !== null && _c !== void 0 ? _c : t.to, value: this.draftTo, min: (_d = this.draftFrom) !== null && _d !== void 0 ? _d : this.min, max: this.max, locale: this.locale, displayFormat: this.displayFormat, clearable: false, onCoChange: this.onToChange })), h("div", { class: { 'co-date-range-picker__body': true, 'co-date-range-picker__body--touch': touch } }, this.presets && (h("div", { class: "co-date-range-picker__presets" }, this.presetItems(t).map((p) => (h("button", { key: p.id, type: "button", class: "co-date-range-picker__preset", onClick: () => this.applyPreset(p.id) }, p.label))))), h("co-calendar", { mode: "range", "data-touch": touch ? '' : undefined, rangeStart: this.draftFrom, rangeEnd: this.draftTo, min: this.min, max: this.max, locale: this.locale, firstDayOfWeek: this.firstDayOfWeek, onCoRangeSelect: this.onCalendarRange })), h("div", { class: "co-date-range-picker__footer" }, h("button", { type: "button", class: "co-date-range-picker__btn co-date-range-picker__btn--ghost", onClick: this.handleCancel }, (_e = this.cancelLabel) !== null && _e !== void 0 ? _e : t.cancel), h("button", { type: "button", class: "co-date-range-picker__btn co-date-range-picker__btn--primary", disabled: !this.canApply, onClick: this.handleApply }, (_f = this.applyLabel) !== null && _f !== void 0 ? _f : t.apply))));
|
|
309
|
+
}
|
|
310
|
+
renderHelper(isInvalid, helper) {
|
|
311
|
+
if (!helper)
|
|
312
|
+
return null;
|
|
313
|
+
return (h("div", { class: {
|
|
314
|
+
'co-date-range-picker__helper': true,
|
|
315
|
+
'co-date-range-picker__helper--error': isInvalid,
|
|
316
|
+
}, part: "helper" }, isInvalid && h("co-icon", { name: "warning-circle", size: 14 }), h("span", null, helper)));
|
|
317
|
+
}
|
|
318
|
+
render() {
|
|
319
|
+
const t = getDateStrings(this.locale);
|
|
320
|
+
const isInvalid = this.invalid;
|
|
321
|
+
const helper = isInvalid ? this.errorMessage : this.helperText;
|
|
322
|
+
const showClear = this.clearable && this.hasCommitted && !this.disabled && !this.readonly;
|
|
323
|
+
const triggerClasses = {
|
|
324
|
+
'co-date-range-picker__trigger': true,
|
|
325
|
+
'co-date-range-picker__trigger--open': this.open,
|
|
326
|
+
'co-date-range-picker__trigger--disabled': this.disabled,
|
|
327
|
+
};
|
|
328
|
+
if (this.isMobile) {
|
|
329
|
+
return (h("div", { class: { 'co-date-range-picker': true, 'co-date-range-picker--invalid': isInvalid, [`co-date-range-picker--${this.size}`]: true }, onKeyDown: this.onRootKeyDown }, this.label && h("label", { class: "co-date-range-picker__label", part: "label" }, this.label, h(RequiredMark, { required: this.required })), h("div", { class: triggerClasses, part: "trigger", role: "button", tabIndex: this.disabled ? -1 : 0, "aria-haspopup": "dialog", "aria-expanded": this.open ? 'true' : 'false', onClick: this.openSheet }, this.renderTriggerChildren(t, showClear)), h("co-drawer", { position: "bottom", open: this.open, heading: t.selectDate, onCoClose: this.handleCancel }, this.renderPanel(t, true)), this.renderHelper(isInvalid, helper)));
|
|
330
|
+
}
|
|
331
|
+
return (h("div", { class: { 'co-date-range-picker': true, 'co-date-range-picker--invalid': isInvalid, [`co-date-range-picker--${this.size}`]: true }, onKeyDown: this.onRootKeyDown }, this.label && h("label", { class: "co-date-range-picker__label", part: "label" }, this.label, h(RequiredMark, { required: this.required })), h("co-popover", { open: this.open, placement: this.placement, offset: 4, closeOnEscape: false, onCoOpen: this.onPopoverOpen, onCoClose: this.onPopoverClose }, h("div", { slot: "trigger", class: triggerClasses, part: "trigger", role: "button", tabIndex: this.disabled ? -1 : 0, "aria-haspopup": "dialog", "aria-expanded": this.open ? 'true' : 'false' }, this.renderTriggerChildren(t, showClear)), this.open && this.renderPanel(t, false)), this.renderHelper(isInvalid, helper)));
|
|
332
|
+
}
|
|
333
|
+
static get is() { return "co-date-range-picker"; }
|
|
334
|
+
static get encapsulation() { return "shadow"; }
|
|
335
|
+
static get originalStyleUrls() {
|
|
336
|
+
return {
|
|
337
|
+
"$": ["co-date-range-picker.css"]
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
static get styleUrls() {
|
|
341
|
+
return {
|
|
342
|
+
"$": ["co-date-range-picker.css"]
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
static get properties() {
|
|
346
|
+
return {
|
|
347
|
+
"value": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"mutable": true,
|
|
350
|
+
"complexType": {
|
|
351
|
+
"original": "string",
|
|
352
|
+
"resolved": "string",
|
|
353
|
+
"references": {}
|
|
354
|
+
},
|
|
355
|
+
"required": false,
|
|
356
|
+
"optional": false,
|
|
357
|
+
"docs": {
|
|
358
|
+
"tags": [],
|
|
359
|
+
"text": "JSON `{from,to}` or '' (empty)."
|
|
360
|
+
},
|
|
361
|
+
"getter": false,
|
|
362
|
+
"setter": false,
|
|
363
|
+
"reflect": false,
|
|
364
|
+
"attribute": "value",
|
|
365
|
+
"defaultValue": "''"
|
|
366
|
+
},
|
|
367
|
+
"min": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"mutable": false,
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "string",
|
|
372
|
+
"resolved": "string | undefined",
|
|
373
|
+
"references": {}
|
|
374
|
+
},
|
|
375
|
+
"required": false,
|
|
376
|
+
"optional": true,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [],
|
|
379
|
+
"text": ""
|
|
380
|
+
},
|
|
381
|
+
"getter": false,
|
|
382
|
+
"setter": false,
|
|
383
|
+
"reflect": false,
|
|
384
|
+
"attribute": "min"
|
|
385
|
+
},
|
|
386
|
+
"max": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string | undefined",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": true,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": ""
|
|
399
|
+
},
|
|
400
|
+
"getter": false,
|
|
401
|
+
"setter": false,
|
|
402
|
+
"reflect": false,
|
|
403
|
+
"attribute": "max"
|
|
404
|
+
},
|
|
405
|
+
"locale": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"mutable": false,
|
|
408
|
+
"complexType": {
|
|
409
|
+
"original": "string",
|
|
410
|
+
"resolved": "string",
|
|
411
|
+
"references": {}
|
|
412
|
+
},
|
|
413
|
+
"required": false,
|
|
414
|
+
"optional": false,
|
|
415
|
+
"docs": {
|
|
416
|
+
"tags": [],
|
|
417
|
+
"text": ""
|
|
418
|
+
},
|
|
419
|
+
"getter": false,
|
|
420
|
+
"setter": false,
|
|
421
|
+
"reflect": false,
|
|
422
|
+
"attribute": "locale",
|
|
423
|
+
"defaultValue": "'es-CO'"
|
|
424
|
+
},
|
|
425
|
+
"displayFormat": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "string",
|
|
430
|
+
"resolved": "string",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": false,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": ""
|
|
438
|
+
},
|
|
439
|
+
"getter": false,
|
|
440
|
+
"setter": false,
|
|
441
|
+
"reflect": false,
|
|
442
|
+
"attribute": "display-format",
|
|
443
|
+
"defaultValue": "'d MMM yyyy'"
|
|
444
|
+
},
|
|
445
|
+
"firstDayOfWeek": {
|
|
446
|
+
"type": "number",
|
|
447
|
+
"mutable": false,
|
|
448
|
+
"complexType": {
|
|
449
|
+
"original": "number",
|
|
450
|
+
"resolved": "number",
|
|
451
|
+
"references": {}
|
|
452
|
+
},
|
|
453
|
+
"required": false,
|
|
454
|
+
"optional": false,
|
|
455
|
+
"docs": {
|
|
456
|
+
"tags": [],
|
|
457
|
+
"text": ""
|
|
458
|
+
},
|
|
459
|
+
"getter": false,
|
|
460
|
+
"setter": false,
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"attribute": "first-day-of-week",
|
|
463
|
+
"defaultValue": "1"
|
|
464
|
+
},
|
|
465
|
+
"presets": {
|
|
466
|
+
"type": "boolean",
|
|
467
|
+
"mutable": false,
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "boolean",
|
|
470
|
+
"resolved": "boolean",
|
|
471
|
+
"references": {}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": false,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": "Show the quick-preset column."
|
|
478
|
+
},
|
|
479
|
+
"getter": false,
|
|
480
|
+
"setter": false,
|
|
481
|
+
"reflect": false,
|
|
482
|
+
"attribute": "presets",
|
|
483
|
+
"defaultValue": "true"
|
|
484
|
+
},
|
|
485
|
+
"presetIds": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"mutable": false,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "string[] | string",
|
|
490
|
+
"resolved": "string | string[] | undefined",
|
|
491
|
+
"references": {}
|
|
492
|
+
},
|
|
493
|
+
"required": false,
|
|
494
|
+
"optional": true,
|
|
495
|
+
"docs": {
|
|
496
|
+
"tags": [],
|
|
497
|
+
"text": "Which presets to show, from the built-in catalog: today, yesterday,\nlast7Days, last14Days, last30Days, last90Days, thisWeek, thisMonth,\nlastMonth, thisYear, lastYear, custom. Labels come from `locale`; dates are\ncomputed tz-safe. Accepts a string[] or JSON/comma string. Defaults to a\nsensible set when omitted."
|
|
498
|
+
},
|
|
499
|
+
"getter": false,
|
|
500
|
+
"setter": false,
|
|
501
|
+
"reflect": false,
|
|
502
|
+
"attribute": "preset-ids"
|
|
503
|
+
},
|
|
504
|
+
"allowSameDay": {
|
|
505
|
+
"type": "boolean",
|
|
506
|
+
"mutable": false,
|
|
507
|
+
"complexType": {
|
|
508
|
+
"original": "boolean",
|
|
509
|
+
"resolved": "boolean",
|
|
510
|
+
"references": {}
|
|
511
|
+
},
|
|
512
|
+
"required": false,
|
|
513
|
+
"optional": false,
|
|
514
|
+
"docs": {
|
|
515
|
+
"tags": [],
|
|
516
|
+
"text": "Allow from === to."
|
|
517
|
+
},
|
|
518
|
+
"getter": false,
|
|
519
|
+
"setter": false,
|
|
520
|
+
"reflect": false,
|
|
521
|
+
"attribute": "allow-same-day",
|
|
522
|
+
"defaultValue": "true"
|
|
523
|
+
},
|
|
524
|
+
"minRangeDays": {
|
|
525
|
+
"type": "number",
|
|
526
|
+
"mutable": false,
|
|
527
|
+
"complexType": {
|
|
528
|
+
"original": "number",
|
|
529
|
+
"resolved": "number | undefined",
|
|
530
|
+
"references": {}
|
|
531
|
+
},
|
|
532
|
+
"required": false,
|
|
533
|
+
"optional": true,
|
|
534
|
+
"docs": {
|
|
535
|
+
"tags": [],
|
|
536
|
+
"text": "Minimum span (inclusive days)."
|
|
537
|
+
},
|
|
538
|
+
"getter": false,
|
|
539
|
+
"setter": false,
|
|
540
|
+
"reflect": false,
|
|
541
|
+
"attribute": "min-range-days"
|
|
542
|
+
},
|
|
543
|
+
"maxRangeDays": {
|
|
544
|
+
"type": "number",
|
|
545
|
+
"mutable": false,
|
|
546
|
+
"complexType": {
|
|
547
|
+
"original": "number",
|
|
548
|
+
"resolved": "number | undefined",
|
|
549
|
+
"references": {}
|
|
550
|
+
},
|
|
551
|
+
"required": false,
|
|
552
|
+
"optional": true,
|
|
553
|
+
"docs": {
|
|
554
|
+
"tags": [],
|
|
555
|
+
"text": "Maximum span (inclusive days)."
|
|
556
|
+
},
|
|
557
|
+
"getter": false,
|
|
558
|
+
"setter": false,
|
|
559
|
+
"reflect": false,
|
|
560
|
+
"attribute": "max-range-days"
|
|
561
|
+
},
|
|
562
|
+
"clearable": {
|
|
563
|
+
"type": "boolean",
|
|
564
|
+
"mutable": false,
|
|
565
|
+
"complexType": {
|
|
566
|
+
"original": "boolean",
|
|
567
|
+
"resolved": "boolean",
|
|
568
|
+
"references": {}
|
|
569
|
+
},
|
|
570
|
+
"required": false,
|
|
571
|
+
"optional": false,
|
|
572
|
+
"docs": {
|
|
573
|
+
"tags": [],
|
|
574
|
+
"text": ""
|
|
575
|
+
},
|
|
576
|
+
"getter": false,
|
|
577
|
+
"setter": false,
|
|
578
|
+
"reflect": false,
|
|
579
|
+
"attribute": "clearable",
|
|
580
|
+
"defaultValue": "true"
|
|
581
|
+
},
|
|
582
|
+
"applyOnSelect": {
|
|
583
|
+
"type": "boolean",
|
|
584
|
+
"mutable": false,
|
|
585
|
+
"complexType": {
|
|
586
|
+
"original": "boolean",
|
|
587
|
+
"resolved": "boolean",
|
|
588
|
+
"references": {}
|
|
589
|
+
},
|
|
590
|
+
"required": false,
|
|
591
|
+
"optional": false,
|
|
592
|
+
"docs": {
|
|
593
|
+
"tags": [],
|
|
594
|
+
"text": "Commit (emit coApply) as soon as a full valid range is picked, debounced."
|
|
595
|
+
},
|
|
596
|
+
"getter": false,
|
|
597
|
+
"setter": false,
|
|
598
|
+
"reflect": false,
|
|
599
|
+
"attribute": "apply-on-select",
|
|
600
|
+
"defaultValue": "false"
|
|
601
|
+
},
|
|
602
|
+
"disabled": {
|
|
603
|
+
"type": "boolean",
|
|
604
|
+
"mutable": false,
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "boolean",
|
|
607
|
+
"resolved": "boolean",
|
|
608
|
+
"references": {}
|
|
609
|
+
},
|
|
610
|
+
"required": false,
|
|
611
|
+
"optional": false,
|
|
612
|
+
"docs": {
|
|
613
|
+
"tags": [],
|
|
614
|
+
"text": ""
|
|
615
|
+
},
|
|
616
|
+
"getter": false,
|
|
617
|
+
"setter": false,
|
|
618
|
+
"reflect": false,
|
|
619
|
+
"attribute": "disabled",
|
|
620
|
+
"defaultValue": "false"
|
|
621
|
+
},
|
|
622
|
+
"readonly": {
|
|
623
|
+
"type": "boolean",
|
|
624
|
+
"mutable": false,
|
|
625
|
+
"complexType": {
|
|
626
|
+
"original": "boolean",
|
|
627
|
+
"resolved": "boolean",
|
|
628
|
+
"references": {}
|
|
629
|
+
},
|
|
630
|
+
"required": false,
|
|
631
|
+
"optional": false,
|
|
632
|
+
"docs": {
|
|
633
|
+
"tags": [],
|
|
634
|
+
"text": ""
|
|
635
|
+
},
|
|
636
|
+
"getter": false,
|
|
637
|
+
"setter": false,
|
|
638
|
+
"reflect": false,
|
|
639
|
+
"attribute": "readonly",
|
|
640
|
+
"defaultValue": "false"
|
|
641
|
+
},
|
|
642
|
+
"invalid": {
|
|
643
|
+
"type": "boolean",
|
|
644
|
+
"mutable": false,
|
|
645
|
+
"complexType": {
|
|
646
|
+
"original": "boolean",
|
|
647
|
+
"resolved": "boolean",
|
|
648
|
+
"references": {}
|
|
649
|
+
},
|
|
650
|
+
"required": false,
|
|
651
|
+
"optional": false,
|
|
652
|
+
"docs": {
|
|
653
|
+
"tags": [],
|
|
654
|
+
"text": ""
|
|
655
|
+
},
|
|
656
|
+
"getter": false,
|
|
657
|
+
"setter": false,
|
|
658
|
+
"reflect": false,
|
|
659
|
+
"attribute": "invalid",
|
|
660
|
+
"defaultValue": "false"
|
|
661
|
+
},
|
|
662
|
+
"errorMessage": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"mutable": false,
|
|
665
|
+
"complexType": {
|
|
666
|
+
"original": "string",
|
|
667
|
+
"resolved": "string | undefined",
|
|
668
|
+
"references": {}
|
|
669
|
+
},
|
|
670
|
+
"required": false,
|
|
671
|
+
"optional": true,
|
|
672
|
+
"docs": {
|
|
673
|
+
"tags": [],
|
|
674
|
+
"text": ""
|
|
675
|
+
},
|
|
676
|
+
"getter": false,
|
|
677
|
+
"setter": false,
|
|
678
|
+
"reflect": false,
|
|
679
|
+
"attribute": "error-message"
|
|
680
|
+
},
|
|
681
|
+
"helperText": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"mutable": false,
|
|
684
|
+
"complexType": {
|
|
685
|
+
"original": "string",
|
|
686
|
+
"resolved": "string | undefined",
|
|
687
|
+
"references": {}
|
|
688
|
+
},
|
|
689
|
+
"required": false,
|
|
690
|
+
"optional": true,
|
|
691
|
+
"docs": {
|
|
692
|
+
"tags": [],
|
|
693
|
+
"text": ""
|
|
694
|
+
},
|
|
695
|
+
"getter": false,
|
|
696
|
+
"setter": false,
|
|
697
|
+
"reflect": false,
|
|
698
|
+
"attribute": "helper-text"
|
|
699
|
+
},
|
|
700
|
+
"label": {
|
|
701
|
+
"type": "string",
|
|
702
|
+
"mutable": false,
|
|
703
|
+
"complexType": {
|
|
704
|
+
"original": "string",
|
|
705
|
+
"resolved": "string | undefined",
|
|
706
|
+
"references": {}
|
|
707
|
+
},
|
|
708
|
+
"required": false,
|
|
709
|
+
"optional": true,
|
|
710
|
+
"docs": {
|
|
711
|
+
"tags": [],
|
|
712
|
+
"text": ""
|
|
713
|
+
},
|
|
714
|
+
"getter": false,
|
|
715
|
+
"setter": false,
|
|
716
|
+
"reflect": false,
|
|
717
|
+
"attribute": "label"
|
|
718
|
+
},
|
|
719
|
+
"required": {
|
|
720
|
+
"type": "boolean",
|
|
721
|
+
"mutable": false,
|
|
722
|
+
"complexType": {
|
|
723
|
+
"original": "boolean",
|
|
724
|
+
"resolved": "boolean",
|
|
725
|
+
"references": {}
|
|
726
|
+
},
|
|
727
|
+
"required": false,
|
|
728
|
+
"optional": false,
|
|
729
|
+
"docs": {
|
|
730
|
+
"tags": [],
|
|
731
|
+
"text": "Whether the field is required (renders a required marker on the label)."
|
|
732
|
+
},
|
|
733
|
+
"getter": false,
|
|
734
|
+
"setter": false,
|
|
735
|
+
"reflect": false,
|
|
736
|
+
"attribute": "required",
|
|
737
|
+
"defaultValue": "false"
|
|
738
|
+
},
|
|
739
|
+
"placeholder": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"mutable": false,
|
|
742
|
+
"complexType": {
|
|
743
|
+
"original": "string",
|
|
744
|
+
"resolved": "string | undefined",
|
|
745
|
+
"references": {}
|
|
746
|
+
},
|
|
747
|
+
"required": false,
|
|
748
|
+
"optional": true,
|
|
749
|
+
"docs": {
|
|
750
|
+
"tags": [],
|
|
751
|
+
"text": ""
|
|
752
|
+
},
|
|
753
|
+
"getter": false,
|
|
754
|
+
"setter": false,
|
|
755
|
+
"reflect": false,
|
|
756
|
+
"attribute": "placeholder"
|
|
757
|
+
},
|
|
758
|
+
"layout": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"mutable": false,
|
|
761
|
+
"complexType": {
|
|
762
|
+
"original": "'vertical' | 'horizontal'",
|
|
763
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
764
|
+
"references": {}
|
|
765
|
+
},
|
|
766
|
+
"required": false,
|
|
767
|
+
"optional": false,
|
|
768
|
+
"docs": {
|
|
769
|
+
"tags": [],
|
|
770
|
+
"text": "Label layout: vertical (label above) or horizontal (label beside)"
|
|
771
|
+
},
|
|
772
|
+
"getter": false,
|
|
773
|
+
"setter": false,
|
|
774
|
+
"reflect": true,
|
|
775
|
+
"attribute": "layout",
|
|
776
|
+
"defaultValue": "'vertical'"
|
|
777
|
+
},
|
|
778
|
+
"size": {
|
|
779
|
+
"type": "string",
|
|
780
|
+
"mutable": false,
|
|
781
|
+
"complexType": {
|
|
782
|
+
"original": "'s' | 'sm' | 'md' | 'lg'",
|
|
783
|
+
"resolved": "\"lg\" | \"md\" | \"s\" | \"sm\"",
|
|
784
|
+
"references": {}
|
|
785
|
+
},
|
|
786
|
+
"required": false,
|
|
787
|
+
"optional": false,
|
|
788
|
+
"docs": {
|
|
789
|
+
"tags": [],
|
|
790
|
+
"text": "Trigger size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48."
|
|
791
|
+
},
|
|
792
|
+
"getter": false,
|
|
793
|
+
"setter": false,
|
|
794
|
+
"reflect": true,
|
|
795
|
+
"attribute": "size",
|
|
796
|
+
"defaultValue": "'md'"
|
|
797
|
+
},
|
|
798
|
+
"placement": {
|
|
799
|
+
"type": "string",
|
|
800
|
+
"mutable": false,
|
|
801
|
+
"complexType": {
|
|
802
|
+
"original": "Placement",
|
|
803
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
804
|
+
"references": {
|
|
805
|
+
"Placement": {
|
|
806
|
+
"location": "import",
|
|
807
|
+
"path": "../../utils/positioning",
|
|
808
|
+
"id": "src/utils/positioning.ts::Placement",
|
|
809
|
+
"referenceLocation": "Placement"
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"required": false,
|
|
814
|
+
"optional": false,
|
|
815
|
+
"docs": {
|
|
816
|
+
"tags": [],
|
|
817
|
+
"text": ""
|
|
818
|
+
},
|
|
819
|
+
"getter": false,
|
|
820
|
+
"setter": false,
|
|
821
|
+
"reflect": false,
|
|
822
|
+
"attribute": "placement",
|
|
823
|
+
"defaultValue": "'bottom-start'"
|
|
824
|
+
},
|
|
825
|
+
"open": {
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"mutable": true,
|
|
828
|
+
"complexType": {
|
|
829
|
+
"original": "boolean",
|
|
830
|
+
"resolved": "boolean",
|
|
831
|
+
"references": {}
|
|
832
|
+
},
|
|
833
|
+
"required": false,
|
|
834
|
+
"optional": false,
|
|
835
|
+
"docs": {
|
|
836
|
+
"tags": [],
|
|
837
|
+
"text": ""
|
|
838
|
+
},
|
|
839
|
+
"getter": false,
|
|
840
|
+
"setter": false,
|
|
841
|
+
"reflect": true,
|
|
842
|
+
"attribute": "open",
|
|
843
|
+
"defaultValue": "false"
|
|
844
|
+
},
|
|
845
|
+
"applyLabel": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"mutable": false,
|
|
848
|
+
"complexType": {
|
|
849
|
+
"original": "string",
|
|
850
|
+
"resolved": "string | undefined",
|
|
851
|
+
"references": {}
|
|
852
|
+
},
|
|
853
|
+
"required": false,
|
|
854
|
+
"optional": true,
|
|
855
|
+
"docs": {
|
|
856
|
+
"tags": [],
|
|
857
|
+
"text": ""
|
|
858
|
+
},
|
|
859
|
+
"getter": false,
|
|
860
|
+
"setter": false,
|
|
861
|
+
"reflect": false,
|
|
862
|
+
"attribute": "apply-label"
|
|
863
|
+
},
|
|
864
|
+
"cancelLabel": {
|
|
865
|
+
"type": "string",
|
|
866
|
+
"mutable": false,
|
|
867
|
+
"complexType": {
|
|
868
|
+
"original": "string",
|
|
869
|
+
"resolved": "string | undefined",
|
|
870
|
+
"references": {}
|
|
871
|
+
},
|
|
872
|
+
"required": false,
|
|
873
|
+
"optional": true,
|
|
874
|
+
"docs": {
|
|
875
|
+
"tags": [],
|
|
876
|
+
"text": ""
|
|
877
|
+
},
|
|
878
|
+
"getter": false,
|
|
879
|
+
"setter": false,
|
|
880
|
+
"reflect": false,
|
|
881
|
+
"attribute": "cancel-label"
|
|
882
|
+
},
|
|
883
|
+
"clearLabel": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"mutable": false,
|
|
886
|
+
"complexType": {
|
|
887
|
+
"original": "string",
|
|
888
|
+
"resolved": "string | undefined",
|
|
889
|
+
"references": {}
|
|
890
|
+
},
|
|
891
|
+
"required": false,
|
|
892
|
+
"optional": true,
|
|
893
|
+
"docs": {
|
|
894
|
+
"tags": [],
|
|
895
|
+
"text": ""
|
|
896
|
+
},
|
|
897
|
+
"getter": false,
|
|
898
|
+
"setter": false,
|
|
899
|
+
"reflect": false,
|
|
900
|
+
"attribute": "clear-label"
|
|
901
|
+
},
|
|
902
|
+
"fromLabel": {
|
|
903
|
+
"type": "string",
|
|
904
|
+
"mutable": false,
|
|
905
|
+
"complexType": {
|
|
906
|
+
"original": "string",
|
|
907
|
+
"resolved": "string | undefined",
|
|
908
|
+
"references": {}
|
|
909
|
+
},
|
|
910
|
+
"required": false,
|
|
911
|
+
"optional": true,
|
|
912
|
+
"docs": {
|
|
913
|
+
"tags": [],
|
|
914
|
+
"text": ""
|
|
915
|
+
},
|
|
916
|
+
"getter": false,
|
|
917
|
+
"setter": false,
|
|
918
|
+
"reflect": false,
|
|
919
|
+
"attribute": "from-label"
|
|
920
|
+
},
|
|
921
|
+
"toLabel": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"mutable": false,
|
|
924
|
+
"complexType": {
|
|
925
|
+
"original": "string",
|
|
926
|
+
"resolved": "string | undefined",
|
|
927
|
+
"references": {}
|
|
928
|
+
},
|
|
929
|
+
"required": false,
|
|
930
|
+
"optional": true,
|
|
931
|
+
"docs": {
|
|
932
|
+
"tags": [],
|
|
933
|
+
"text": ""
|
|
934
|
+
},
|
|
935
|
+
"getter": false,
|
|
936
|
+
"setter": false,
|
|
937
|
+
"reflect": false,
|
|
938
|
+
"attribute": "to-label"
|
|
939
|
+
},
|
|
940
|
+
"mobileBreakpoint": {
|
|
941
|
+
"type": "number",
|
|
942
|
+
"mutable": false,
|
|
943
|
+
"complexType": {
|
|
944
|
+
"original": "number",
|
|
945
|
+
"resolved": "number",
|
|
946
|
+
"references": {}
|
|
947
|
+
},
|
|
948
|
+
"required": false,
|
|
949
|
+
"optional": false,
|
|
950
|
+
"docs": {
|
|
951
|
+
"tags": [],
|
|
952
|
+
"text": "Max viewport width (px) that renders the picker as a bottom sheet."
|
|
953
|
+
},
|
|
954
|
+
"getter": false,
|
|
955
|
+
"setter": false,
|
|
956
|
+
"reflect": false,
|
|
957
|
+
"attribute": "mobile-breakpoint",
|
|
958
|
+
"defaultValue": "600"
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
static get states() {
|
|
963
|
+
return {
|
|
964
|
+
"draftFrom": {},
|
|
965
|
+
"draftTo": {},
|
|
966
|
+
"isMobile": {}
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
static get events() {
|
|
970
|
+
return [{
|
|
971
|
+
"method": "coRangeStartChange",
|
|
972
|
+
"name": "coRangeStartChange",
|
|
973
|
+
"bubbles": true,
|
|
974
|
+
"cancelable": true,
|
|
975
|
+
"composed": true,
|
|
976
|
+
"docs": {
|
|
977
|
+
"tags": [],
|
|
978
|
+
"text": ""
|
|
979
|
+
},
|
|
980
|
+
"complexType": {
|
|
981
|
+
"original": "string | null",
|
|
982
|
+
"resolved": "null | string",
|
|
983
|
+
"references": {}
|
|
984
|
+
}
|
|
985
|
+
}, {
|
|
986
|
+
"method": "coRangeEndChange",
|
|
987
|
+
"name": "coRangeEndChange",
|
|
988
|
+
"bubbles": true,
|
|
989
|
+
"cancelable": true,
|
|
990
|
+
"composed": true,
|
|
991
|
+
"docs": {
|
|
992
|
+
"tags": [],
|
|
993
|
+
"text": ""
|
|
994
|
+
},
|
|
995
|
+
"complexType": {
|
|
996
|
+
"original": "string | null",
|
|
997
|
+
"resolved": "null | string",
|
|
998
|
+
"references": {}
|
|
999
|
+
}
|
|
1000
|
+
}, {
|
|
1001
|
+
"method": "coRangeChange",
|
|
1002
|
+
"name": "coRangeChange",
|
|
1003
|
+
"bubbles": true,
|
|
1004
|
+
"cancelable": true,
|
|
1005
|
+
"composed": true,
|
|
1006
|
+
"docs": {
|
|
1007
|
+
"tags": [],
|
|
1008
|
+
"text": ""
|
|
1009
|
+
},
|
|
1010
|
+
"complexType": {
|
|
1011
|
+
"original": "DateRangeValue",
|
|
1012
|
+
"resolved": "DateRangeValue",
|
|
1013
|
+
"references": {
|
|
1014
|
+
"DateRangeValue": {
|
|
1015
|
+
"location": "local",
|
|
1016
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
1017
|
+
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}, {
|
|
1022
|
+
"method": "coApply",
|
|
1023
|
+
"name": "coApply",
|
|
1024
|
+
"bubbles": true,
|
|
1025
|
+
"cancelable": true,
|
|
1026
|
+
"composed": true,
|
|
1027
|
+
"docs": {
|
|
1028
|
+
"tags": [],
|
|
1029
|
+
"text": ""
|
|
1030
|
+
},
|
|
1031
|
+
"complexType": {
|
|
1032
|
+
"original": "DateRangeValue",
|
|
1033
|
+
"resolved": "DateRangeValue",
|
|
1034
|
+
"references": {
|
|
1035
|
+
"DateRangeValue": {
|
|
1036
|
+
"location": "local",
|
|
1037
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
1038
|
+
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}, {
|
|
1043
|
+
"method": "coCancel",
|
|
1044
|
+
"name": "coCancel",
|
|
1045
|
+
"bubbles": true,
|
|
1046
|
+
"cancelable": true,
|
|
1047
|
+
"composed": true,
|
|
1048
|
+
"docs": {
|
|
1049
|
+
"tags": [],
|
|
1050
|
+
"text": ""
|
|
1051
|
+
},
|
|
1052
|
+
"complexType": {
|
|
1053
|
+
"original": "void",
|
|
1054
|
+
"resolved": "void",
|
|
1055
|
+
"references": {}
|
|
1056
|
+
}
|
|
1057
|
+
}, {
|
|
1058
|
+
"method": "coClear",
|
|
1059
|
+
"name": "coClear",
|
|
1060
|
+
"bubbles": true,
|
|
1061
|
+
"cancelable": true,
|
|
1062
|
+
"composed": true,
|
|
1063
|
+
"docs": {
|
|
1064
|
+
"tags": [],
|
|
1065
|
+
"text": ""
|
|
1066
|
+
},
|
|
1067
|
+
"complexType": {
|
|
1068
|
+
"original": "void",
|
|
1069
|
+
"resolved": "void",
|
|
1070
|
+
"references": {}
|
|
1071
|
+
}
|
|
1072
|
+
}, {
|
|
1073
|
+
"method": "coOpen",
|
|
1074
|
+
"name": "coOpen",
|
|
1075
|
+
"bubbles": false,
|
|
1076
|
+
"cancelable": true,
|
|
1077
|
+
"composed": true,
|
|
1078
|
+
"docs": {
|
|
1079
|
+
"tags": [],
|
|
1080
|
+
"text": ""
|
|
1081
|
+
},
|
|
1082
|
+
"complexType": {
|
|
1083
|
+
"original": "void",
|
|
1084
|
+
"resolved": "void",
|
|
1085
|
+
"references": {}
|
|
1086
|
+
}
|
|
1087
|
+
}, {
|
|
1088
|
+
"method": "coClose",
|
|
1089
|
+
"name": "coClose",
|
|
1090
|
+
"bubbles": false,
|
|
1091
|
+
"cancelable": true,
|
|
1092
|
+
"composed": true,
|
|
1093
|
+
"docs": {
|
|
1094
|
+
"tags": [],
|
|
1095
|
+
"text": ""
|
|
1096
|
+
},
|
|
1097
|
+
"complexType": {
|
|
1098
|
+
"original": "void",
|
|
1099
|
+
"resolved": "void",
|
|
1100
|
+
"references": {}
|
|
1101
|
+
}
|
|
1102
|
+
}];
|
|
1103
|
+
}
|
|
1104
|
+
static get elementRef() { return "el"; }
|
|
1105
|
+
static get watchers() {
|
|
1106
|
+
return [{
|
|
1107
|
+
"propName": "value",
|
|
1108
|
+
"methodName": "onValueChange"
|
|
1109
|
+
}];
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
/** Start-of-week for a date (local, tz-safe). */
|
|
1113
|
+
function startOfWeek(value, firstDayOfWeek) {
|
|
1114
|
+
const ymd = parseISO(value);
|
|
1115
|
+
if (!ymd)
|
|
1116
|
+
return value;
|
|
1117
|
+
const dow = toLocalDate(ymd).getDay();
|
|
1118
|
+
const back = (dow - firstDayOfWeek + 7) % 7;
|
|
1119
|
+
return addDays(value, -back);
|
|
1120
|
+
}
|
|
1121
|
+
/** Last day of the month for a date. */
|
|
1122
|
+
function endOfMonth(value) {
|
|
1123
|
+
return addDays(startOfMonth(addMonths(value, 1)), -1);
|
|
1124
|
+
}
|
|
1125
|
+
/** Accept a string[] or JSON/comma string (for raw-HTML attribute usage). */
|
|
1126
|
+
function normalizeStringArray(v) {
|
|
1127
|
+
if (Array.isArray(v))
|
|
1128
|
+
return v;
|
|
1129
|
+
if (typeof v === 'string' && v.trim()) {
|
|
1130
|
+
const t = v.trim();
|
|
1131
|
+
try {
|
|
1132
|
+
const parsed = JSON.parse(t);
|
|
1133
|
+
if (Array.isArray(parsed))
|
|
1134
|
+
return parsed.map(String);
|
|
1135
|
+
}
|
|
1136
|
+
catch (_a) {
|
|
1137
|
+
/* not JSON — fall back to comma-split */
|
|
1138
|
+
}
|
|
1139
|
+
return t.split(',').map((s) => s.trim()).filter(Boolean);
|
|
1140
|
+
}
|
|
1141
|
+
return [];
|
|
1142
|
+
}
|