@beeq/core 1.8.3 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beeq/beeq.esm.js +1 -1
- package/dist/beeq/beeq.esm.js.map +1 -1
- package/dist/beeq/index.esm.js +1 -1
- package/dist/beeq/{p-b69f347d.entry.js → p-0338b2f9.entry.js} +2 -2
- package/dist/beeq/p-0338b2f9.entry.js.map +1 -0
- package/dist/beeq/{p-3806d9e3.entry.js → p-0b0a2c8a.entry.js} +2 -2
- package/dist/beeq/{p-803269b3.entry.js → p-0ee91951.entry.js} +2 -2
- package/dist/beeq/{p-3f654a12.entry.js → p-11f54320.entry.js} +2 -2
- package/dist/beeq/{p-66b6d69a.entry.js → p-1694f242.entry.js} +2 -2
- package/dist/beeq/{p-9a7af424.entry.js → p-21ef028f.entry.js} +2 -2
- package/dist/beeq/{p-7585f825.entry.js → p-226f3647.entry.js} +2 -2
- package/dist/beeq/{p-d7ce7165.js → p-260d4ca0.js} +2 -2
- package/dist/beeq/{p-d7ce7165.js.map → p-260d4ca0.js.map} +1 -1
- package/dist/beeq/{p-c42f9ac5.entry.js → p-2f55e11f.entry.js} +2 -2
- package/dist/beeq/{p-ee1ecb6e.entry.js → p-3ac6d599.entry.js} +2 -2
- package/dist/beeq/{p-a4e11bbc.entry.js → p-402449b6.entry.js} +2 -2
- package/dist/beeq/p-402449b6.entry.js.map +1 -0
- package/dist/beeq/{p-dbac0368.entry.js → p-4757fa1e.entry.js} +2 -2
- package/dist/beeq/p-4757fa1e.entry.js.map +1 -0
- package/dist/beeq/{p-3fe626f1.entry.js → p-49b40ec5.entry.js} +2 -2
- package/dist/beeq/p-49b40ec5.entry.js.map +1 -0
- package/dist/beeq/{p-a8075be3.entry.js → p-4fc0cf41.entry.js} +2 -2
- package/dist/beeq/{p-19f5a833.entry.js → p-5837a0ea.entry.js} +2 -2
- package/dist/beeq/p-5837a0ea.entry.js.map +1 -0
- package/dist/beeq/{p-dafa4162.entry.js → p-5e4edb8a.entry.js} +2 -2
- package/dist/beeq/{p-dafa4162.entry.js.map → p-5e4edb8a.entry.js.map} +1 -1
- package/dist/beeq/{p-7efff703.entry.js → p-5fe65f50.entry.js} +2 -2
- package/dist/beeq/{p-e8f147c2.entry.js → p-68944624.entry.js} +2 -2
- package/dist/beeq/p-68944624.entry.js.map +1 -0
- package/dist/beeq/{p-cb9fa154.entry.js → p-6aaa20c9.entry.js} +2 -2
- package/dist/beeq/p-6aaa20c9.entry.js.map +1 -0
- package/dist/beeq/{p-59a1b546.entry.js → p-6bc7c1e5.entry.js} +2 -2
- package/dist/beeq/p-6bc7c1e5.entry.js.map +1 -0
- package/dist/beeq/{p-bbaad491.entry.js → p-730ed434.entry.js} +2 -2
- package/dist/beeq/{p-4d21a49d.entry.js → p-7af08445.entry.js} +2 -2
- package/dist/beeq/{p-15bf8ffd.entry.js → p-7cfca18b.entry.js} +2 -2
- package/dist/beeq/p-7cfca18b.entry.js.map +1 -0
- package/dist/beeq/{p-ba1f9637.entry.js → p-7d161e60.entry.js} +2 -2
- package/dist/beeq/p-7d161e60.entry.js.map +1 -0
- package/dist/beeq/{p-19ea2c90.entry.js → p-7dda6cb9.entry.js} +2 -2
- package/dist/beeq/p-7dda6cb9.entry.js.map +1 -0
- package/dist/beeq/{p-5546f242.entry.js → p-85d7bc6c.entry.js} +2 -2
- package/dist/beeq/{p-4500ffe5.entry.js → p-93a3bcb5.entry.js} +2 -2
- package/dist/beeq/{p-90165aef.entry.js → p-96684c94.entry.js} +2 -2
- package/dist/beeq/{p-90165aef.entry.js.map → p-96684c94.entry.js.map} +1 -1
- package/dist/beeq/p-9ecdbeec.js +6 -0
- package/dist/beeq/p-a035d288.js +6 -0
- package/dist/beeq/{p-b129db1a.entry.js → p-a0b2db0b.entry.js} +2 -2
- package/dist/beeq/p-a52f0ff0.entry.js +6 -0
- package/dist/beeq/p-a52f0ff0.entry.js.map +1 -0
- package/dist/beeq/{p-f4e8ebd3.entry.js → p-a902a347.entry.js} +2 -2
- package/dist/beeq/{p-70310ac8.entry.js → p-aeb28fb3.entry.js} +2 -2
- package/dist/beeq/p-aeb28fb3.entry.js.map +1 -0
- package/dist/beeq/{p-b0d168c8.entry.js → p-af9c9769.entry.js} +2 -2
- package/dist/beeq/p-af9c9769.entry.js.map +1 -0
- package/dist/beeq/{p-b7b3f7c6.entry.js → p-b4ae4315.entry.js} +2 -2
- package/dist/beeq/p-c05c50bf.js +7 -0
- package/dist/beeq/p-c05c50bf.js.map +1 -0
- package/dist/beeq/{p-e655938a.entry.js → p-d04883ab.entry.js} +2 -2
- package/dist/beeq/{p-a8d64d1b.entry.js → p-d4676bbd.entry.js} +2 -2
- package/dist/beeq/{p-39a80765.entry.js → p-e29c46f5.entry.js} +2 -2
- package/dist/beeq/p-e29c46f5.entry.js.map +1 -0
- package/dist/beeq/{p-8ed41b69.entry.js → p-e827f88d.entry.js} +2 -2
- package/dist/beeq/{p-65d67b85.entry.js → p-f7e3eff3.entry.js} +2 -2
- package/dist/beeq/p-f7e3eff3.entry.js.map +1 -0
- package/dist/beeq/{p-ed569a61.entry.js → p-f85f1705.entry.js} +2 -2
- package/dist/beeq.html-custom-data.json +59 -59
- package/dist/cjs/{assetsPath-32c4030b.js → assetsPath-bff6e1f9.js} +2 -2
- package/dist/cjs/{assetsPath-32c4030b.js.map → assetsPath-bff6e1f9.js.map} +1 -1
- package/dist/cjs/beeq.cjs.js +3 -3
- package/dist/cjs/beeq.cjs.js.map +1 -1
- package/dist/cjs/bq-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js +7 -8
- package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +8 -9
- package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bq-badge.cjs.entry.js +8 -5
- package/dist/cjs/bq-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/bq-breadcrumb.cjs.entry.js +5 -2
- package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +9 -6
- package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-card.cjs.entry.js +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +97 -17
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dialog.cjs.entry.js +8 -9
- package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-divider.cjs.entry.js +2 -2
- package/dist/cjs/bq-drawer.cjs.entry.js +10 -7
- package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/bq-empty-state.cjs.entry.js +10 -9
- package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-input.cjs.entry.js +11 -14
- package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-notification.cjs.entry.js +8 -7
- package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js +8 -5
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option.cjs.entry.js +10 -9
- package/dist/cjs/bq-option.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-page-title.cjs.entry.js +7 -4
- package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-progress.cjs.entry.js +1 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-radio.cjs.entry.js +1 -1
- package/dist/cjs/bq-select.cjs.entry.js +10 -15
- package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/bq-side-menu.cjs.entry.js +1 -1
- package/dist/cjs/bq-slider.cjs.entry.js +1 -1
- package/dist/cjs/bq-spinner.cjs.entry.js +8 -6
- package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-status.cjs.entry.js +1 -1
- package/dist/cjs/bq-step-item.cjs.entry.js +1 -1
- package/dist/cjs/bq-steps.cjs.entry.js +1 -1
- package/dist/cjs/bq-switch.cjs.entry.js +2 -2
- package/dist/cjs/bq-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-tab.cjs.entry.js +7 -4
- package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-textarea.cjs.entry.js +7 -8
- package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-toast.cjs.entry.js +1 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{index-0c8d249a.js → index-6fcc2c3c.js} +56 -20
- package/dist/cjs/index-6fcc2c3c.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{isDefined-5e8aae9d.js → isDefined-237b1214.js} +2 -2
- package/dist/cjs/{isDefined-5e8aae9d.js.map → isDefined-237b1214.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{slot-2fee189a.js → slot-c3eeb29f.js} +3 -1
- package/dist/cjs/slot-c3eeb29f.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/bq-accordion.js +5 -6
- package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
- package/dist/collection/components/alert/bq-alert.js +6 -7
- package/dist/collection/components/alert/bq-alert.js.map +1 -1
- package/dist/collection/components/badge/bq-badge.js +6 -3
- package/dist/collection/components/badge/bq-badge.js.map +1 -1
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js +4 -1
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
- package/dist/collection/components/button/bq-button.js +5 -2
- package/dist/collection/components/button/bq-button.js.map +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.js +27 -14
- package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.types.js.map +1 -1
- package/dist/collection/components/date-picker/helper/callyLibrary.js +73 -0
- package/dist/collection/components/date-picker/helper/callyLibrary.js.map +1 -0
- package/dist/collection/components/dialog/bq-dialog.js +6 -7
- package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
- package/dist/collection/components/drawer/bq-drawer.js +7 -4
- package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
- package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
- package/dist/collection/components/empty-state/bq-empty-state.js +8 -7
- package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
- package/dist/collection/components/input/bq-input.js +8 -11
- package/dist/collection/components/input/bq-input.js.map +1 -1
- package/dist/collection/components/notification/bq-notification.js +6 -5
- package/dist/collection/components/notification/bq-notification.js.map +1 -1
- package/dist/collection/components/option/bq-option.js +8 -7
- package/dist/collection/components/option/bq-option.js.map +1 -1
- package/dist/collection/components/page-title/bq-page-title.js +5 -2
- package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
- package/dist/collection/components/select/bq-select.js +6 -11
- package/dist/collection/components/select/bq-select.js.map +1 -1
- package/dist/collection/components/select/scss/bq-select.css +1 -1
- package/dist/collection/components/spinner/bq-spinner.js +6 -4
- package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
- package/dist/collection/components/tab/bq-tab.js +5 -2
- package/dist/collection/components/tab/bq-tab.js.map +1 -1
- package/dist/collection/components/tag/bq-tag.js +6 -3
- package/dist/collection/components/tag/bq-tag.js.map +1 -1
- package/dist/collection/components/textarea/bq-textarea.js +5 -6
- package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
- package/dist/collection/shared/utils/slot.js +2 -0
- package/dist/collection/shared/utils/slot.js.map +1 -1
- package/dist/components/bq-accordion-group.js +1 -1
- package/dist/components/bq-accordion.js +1 -1
- package/dist/components/bq-accordion.js.map +1 -1
- package/dist/components/bq-alert.js +1 -1
- package/dist/components/bq-alert.js.map +1 -1
- package/dist/components/bq-avatar.js +1 -1
- package/dist/components/bq-badge.js +1 -1
- package/dist/components/bq-breadcrumb-item.js +1 -1
- package/dist/components/bq-breadcrumb.js +1 -1
- package/dist/components/bq-breadcrumb.js.map +1 -1
- package/dist/components/bq-button.js +1 -1
- package/dist/components/bq-card.js +1 -1
- package/dist/components/bq-checkbox.js +1 -1
- package/dist/components/bq-date-picker.js +1 -1
- package/dist/components/bq-date-picker.js.map +1 -1
- package/dist/components/bq-dialog.js +1 -1
- package/dist/components/bq-dialog.js.map +1 -1
- package/dist/components/bq-divider.js +1 -1
- package/dist/components/bq-drawer.js +1 -1
- package/dist/components/bq-drawer.js.map +1 -1
- package/dist/components/bq-dropdown.js +1 -1
- package/dist/components/bq-empty-state.js +1 -1
- package/dist/components/bq-empty-state.js.map +1 -1
- package/dist/components/bq-icon.js +1 -1
- package/dist/components/bq-input.js +1 -1
- package/dist/components/bq-input.js.map +1 -1
- package/dist/components/bq-notification.js +1 -1
- package/dist/components/bq-notification.js.map +1 -1
- package/dist/components/bq-option-group.js +1 -1
- package/dist/components/bq-option-list.js +1 -1
- package/dist/components/bq-option.js +1 -1
- package/dist/components/bq-option.js.map +1 -1
- package/dist/components/bq-page-title.js +1 -1
- package/dist/components/bq-page-title.js.map +1 -1
- package/dist/components/bq-panel.js +1 -1
- package/dist/components/bq-progress.js +1 -1
- package/dist/components/bq-radio-group.js +1 -1
- package/dist/components/bq-radio.js +1 -1
- package/dist/components/bq-select.js +1 -1
- package/dist/components/bq-select.js.map +1 -1
- package/dist/components/bq-side-menu-item.js +1 -1
- package/dist/components/bq-side-menu.js +1 -1
- package/dist/components/bq-slider.js +1 -1
- package/dist/components/bq-spinner.js +1 -1
- package/dist/components/bq-spinner.js.map +1 -1
- package/dist/components/bq-status.js +1 -1
- package/dist/components/bq-step-item.js +1 -1
- package/dist/components/bq-steps.js +1 -1
- package/dist/components/bq-switch.js +1 -1
- package/dist/components/bq-tab-group.js +1 -1
- package/dist/components/bq-tab.js +1 -1
- package/dist/components/bq-tab.js.map +1 -1
- package/dist/components/bq-tag.js +1 -1
- package/dist/components/bq-textarea.js +1 -1
- package/dist/components/bq-textarea.js.map +1 -1
- package/dist/components/bq-toast.js +1 -1
- package/dist/components/bq-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-c58e0d87.js → p-1629a472.js} +2 -2
- package/dist/components/{p-ac26ffcd.js → p-242345e1.js} +2 -2
- package/dist/components/{p-d7ce7165.js → p-260d4ca0.js} +2 -2
- package/dist/components/{p-d7ce7165.js.map → p-260d4ca0.js.map} +1 -1
- package/dist/components/{p-a02c6b73.js → p-2aab0744.js} +2 -2
- package/dist/components/p-2aab0744.js.map +1 -0
- package/dist/components/p-39d794c1.js +6 -0
- package/dist/components/{p-5b34bd04.js → p-51027528.js} +2 -2
- package/dist/components/p-66fcce92.js +6 -0
- package/dist/components/p-66fcce92.js.map +1 -0
- package/dist/components/{p-8d8eeb62.js → p-afef286d.js} +2 -2
- package/dist/components/{p-f5588ccd.js → p-b5306ce3.js} +2 -2
- package/dist/components/p-b5306ce3.js.map +1 -0
- package/dist/components/{p-b50adb19.js → p-dfb2cbb5.js} +2 -2
- package/dist/components/p-f0fcfdea.js +6 -0
- package/dist/components/p-f0fcfdea.js.map +1 -0
- package/dist/components/{p-9a115ee5.js → p-fd965589.js} +2 -2
- package/dist/custom-elements.json +724 -791
- package/dist/esm/{assetsPath-57848212.js → assetsPath-14f18f9a.js} +2 -2
- package/dist/esm/{assetsPath-57848212.js.map → assetsPath-14f18f9a.js.map} +1 -1
- package/dist/esm/beeq.js +4 -4
- package/dist/esm/beeq.js.map +1 -1
- package/dist/esm/bq-accordion-group.entry.js +1 -1
- package/dist/esm/bq-accordion.entry.js +7 -8
- package/dist/esm/bq-accordion.entry.js.map +1 -1
- package/dist/esm/bq-alert.entry.js +8 -9
- package/dist/esm/bq-alert.entry.js.map +1 -1
- package/dist/esm/bq-avatar.entry.js +1 -1
- package/dist/esm/bq-badge.entry.js +8 -5
- package/dist/esm/bq-badge.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb-item.entry.js +2 -2
- package/dist/esm/bq-breadcrumb.entry.js +5 -2
- package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
- package/dist/esm/bq-button_2.entry.js +9 -6
- package/dist/esm/bq-button_2.entry.js.map +1 -1
- package/dist/esm/bq-card.entry.js +1 -1
- package/dist/esm/bq-checkbox.entry.js +1 -1
- package/dist/esm/bq-date-picker.entry.js +97 -17
- package/dist/esm/bq-date-picker.entry.js.map +1 -1
- package/dist/esm/bq-dialog.entry.js +8 -9
- package/dist/esm/bq-dialog.entry.js.map +1 -1
- package/dist/esm/bq-divider.entry.js +2 -2
- package/dist/esm/bq-drawer.entry.js +10 -7
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/bq-dropdown_2.entry.js +1 -1
- package/dist/esm/bq-empty-state.entry.js +10 -9
- package/dist/esm/bq-empty-state.entry.js.map +1 -1
- package/dist/esm/bq-input.entry.js +11 -14
- package/dist/esm/bq-input.entry.js.map +1 -1
- package/dist/esm/bq-notification.entry.js +8 -7
- package/dist/esm/bq-notification.entry.js.map +1 -1
- package/dist/esm/bq-option-group.entry.js +1 -1
- package/dist/esm/bq-option-list_2.entry.js +8 -5
- package/dist/esm/bq-option-list_2.entry.js.map +1 -1
- package/dist/esm/bq-option.entry.js +10 -9
- package/dist/esm/bq-option.entry.js.map +1 -1
- package/dist/esm/bq-page-title.entry.js +7 -4
- package/dist/esm/bq-page-title.entry.js.map +1 -1
- package/dist/esm/bq-progress.entry.js +1 -1
- package/dist/esm/bq-radio-group.entry.js +1 -1
- package/dist/esm/bq-radio.entry.js +1 -1
- package/dist/esm/bq-select.entry.js +10 -15
- package/dist/esm/bq-select.entry.js.map +1 -1
- package/dist/esm/bq-side-menu-item.entry.js +2 -2
- package/dist/esm/bq-side-menu.entry.js +1 -1
- package/dist/esm/bq-slider.entry.js +1 -1
- package/dist/esm/bq-spinner.entry.js +8 -6
- package/dist/esm/bq-spinner.entry.js.map +1 -1
- package/dist/esm/bq-status.entry.js +1 -1
- package/dist/esm/bq-step-item.entry.js +1 -1
- package/dist/esm/bq-steps.entry.js +1 -1
- package/dist/esm/bq-switch.entry.js +2 -2
- package/dist/esm/bq-tab-group.entry.js +1 -1
- package/dist/esm/bq-tab.entry.js +7 -4
- package/dist/esm/bq-tab.entry.js.map +1 -1
- package/dist/esm/bq-textarea.entry.js +7 -8
- package/dist/esm/bq-textarea.entry.js.map +1 -1
- package/dist/esm/bq-toast.entry.js +1 -1
- package/dist/esm/bq-tooltip.entry.js +1 -1
- package/dist/esm/{index-59610291.js → index-4e4c39e8.js} +56 -20
- package/dist/esm/index-4e4c39e8.js.map +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/{isDefined-30b8b652.js → isDefined-7a919d19.js} +2 -2
- package/dist/esm/{isDefined-30b8b652.js.map → isDefined-7a919d19.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{slot-58bfedb5.js → slot-be230a01.js} +3 -1
- package/dist/esm/slot-be230a01.js.map +1 -0
- package/dist/hydrate/index.d.ts +22 -5
- package/dist/hydrate/index.js +674 -1297
- package/dist/hydrate/index.mjs +674 -1297
- package/dist/stencil.config.js +20 -17
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/accordion/bq-accordion.d.ts +1 -2
- package/dist/types/components/alert/bq-alert.d.ts +1 -2
- package/dist/types/components/badge/bq-badge.d.ts +2 -1
- package/dist/types/components/breadcrumb/bq-breadcrumb.d.ts +1 -0
- package/dist/types/components/button/bq-button.d.ts +1 -0
- package/dist/types/components/date-picker/bq-date-picker.d.ts +3 -4
- package/dist/types/components/date-picker/bq-date-picker.types.d.ts +16 -0
- package/dist/types/components/date-picker/helper/callyLibrary.d.ts +11 -0
- package/dist/types/components/dialog/bq-dialog.d.ts +1 -2
- package/dist/types/components/drawer/bq-drawer.d.ts +1 -0
- package/dist/types/components/empty-state/bq-empty-state.d.ts +2 -2
- package/dist/types/components/input/bq-input.d.ts +2 -4
- package/dist/types/components/notification/bq-notification.d.ts +2 -2
- package/dist/types/components/option/bq-option.d.ts +2 -2
- package/dist/types/components/page-title/bq-page-title.d.ts +1 -0
- package/dist/types/components/select/bq-select.d.ts +1 -4
- package/dist/types/components/tab/bq-tab.d.ts +1 -0
- package/dist/types/components/tag/bq-tag.d.ts +1 -0
- package/dist/types/components/textarea/bq-textarea.d.ts +1 -2
- package/dist/types/global.d.ts +0 -10
- package/package.json +2 -3
- package/dist/beeq/p-15bf8ffd.entry.js.map +0 -1
- package/dist/beeq/p-19ea2c90.entry.js.map +0 -1
- package/dist/beeq/p-19f5a833.entry.js.map +0 -1
- package/dist/beeq/p-34611c2f.js +0 -6
- package/dist/beeq/p-34611c2f.js.map +0 -1
- package/dist/beeq/p-39a80765.entry.js.map +0 -1
- package/dist/beeq/p-3fe626f1.entry.js.map +0 -1
- package/dist/beeq/p-4a3784e1.js +0 -7
- package/dist/beeq/p-4a3784e1.js.map +0 -1
- package/dist/beeq/p-59a1b546.entry.js.map +0 -1
- package/dist/beeq/p-65d67b85.entry.js.map +0 -1
- package/dist/beeq/p-6bea33f4.entry.js +0 -6
- package/dist/beeq/p-6bea33f4.entry.js.map +0 -1
- package/dist/beeq/p-70310ac8.entry.js.map +0 -1
- package/dist/beeq/p-a4e11bbc.entry.js.map +0 -1
- package/dist/beeq/p-b0d168c8.entry.js.map +0 -1
- package/dist/beeq/p-b69f347d.entry.js.map +0 -1
- package/dist/beeq/p-ba1f9637.entry.js.map +0 -1
- package/dist/beeq/p-cb9fa154.entry.js.map +0 -1
- package/dist/beeq/p-cf923c68.js +0 -6
- package/dist/beeq/p-dbac0368.entry.js.map +0 -1
- package/dist/beeq/p-e4dd6ff4.js +0 -6
- package/dist/beeq/p-e8f147c2.entry.js.map +0 -1
- package/dist/cjs/cally-1bde2e82.js +0 -1162
- package/dist/cjs/cally-1bde2e82.js.map +0 -1
- package/dist/cjs/index-0c8d249a.js.map +0 -1
- package/dist/cjs/slot-2fee189a.js.map +0 -1
- package/dist/components/p-34611c2f.js +0 -6
- package/dist/components/p-34611c2f.js.map +0 -1
- package/dist/components/p-37483f1c.js +0 -6
- package/dist/components/p-37483f1c.js.map +0 -1
- package/dist/components/p-6e0c7ab4.js +0 -6
- package/dist/components/p-a02c6b73.js.map +0 -1
- package/dist/components/p-d16482dc.js +0 -6
- package/dist/components/p-d16482dc.js.map +0 -1
- package/dist/components/p-f5588ccd.js.map +0 -1
- package/dist/esm/cally-49a83be1.js +0 -1157
- package/dist/esm/cally-49a83be1.js.map +0 -1
- package/dist/esm/index-59610291.js.map +0 -1
- package/dist/esm/slot-58bfedb5.js.map +0 -1
- /package/dist/beeq/{p-3806d9e3.entry.js.map → p-0b0a2c8a.entry.js.map} +0 -0
- /package/dist/beeq/{p-803269b3.entry.js.map → p-0ee91951.entry.js.map} +0 -0
- /package/dist/beeq/{p-3f654a12.entry.js.map → p-11f54320.entry.js.map} +0 -0
- /package/dist/beeq/{p-66b6d69a.entry.js.map → p-1694f242.entry.js.map} +0 -0
- /package/dist/beeq/{p-9a7af424.entry.js.map → p-21ef028f.entry.js.map} +0 -0
- /package/dist/beeq/{p-7585f825.entry.js.map → p-226f3647.entry.js.map} +0 -0
- /package/dist/beeq/{p-c42f9ac5.entry.js.map → p-2f55e11f.entry.js.map} +0 -0
- /package/dist/beeq/{p-ee1ecb6e.entry.js.map → p-3ac6d599.entry.js.map} +0 -0
- /package/dist/beeq/{p-a8075be3.entry.js.map → p-4fc0cf41.entry.js.map} +0 -0
- /package/dist/beeq/{p-7efff703.entry.js.map → p-5fe65f50.entry.js.map} +0 -0
- /package/dist/beeq/{p-bbaad491.entry.js.map → p-730ed434.entry.js.map} +0 -0
- /package/dist/beeq/{p-4d21a49d.entry.js.map → p-7af08445.entry.js.map} +0 -0
- /package/dist/beeq/{p-5546f242.entry.js.map → p-85d7bc6c.entry.js.map} +0 -0
- /package/dist/beeq/{p-4500ffe5.entry.js.map → p-93a3bcb5.entry.js.map} +0 -0
- /package/dist/beeq/{p-e4dd6ff4.js.map → p-9ecdbeec.js.map} +0 -0
- /package/dist/beeq/{p-cf923c68.js.map → p-a035d288.js.map} +0 -0
- /package/dist/beeq/{p-b129db1a.entry.js.map → p-a0b2db0b.entry.js.map} +0 -0
- /package/dist/beeq/{p-f4e8ebd3.entry.js.map → p-a902a347.entry.js.map} +0 -0
- /package/dist/beeq/{p-b7b3f7c6.entry.js.map → p-b4ae4315.entry.js.map} +0 -0
- /package/dist/beeq/{p-e655938a.entry.js.map → p-d04883ab.entry.js.map} +0 -0
- /package/dist/beeq/{p-a8d64d1b.entry.js.map → p-d4676bbd.entry.js.map} +0 -0
- /package/dist/beeq/{p-8ed41b69.entry.js.map → p-e827f88d.entry.js.map} +0 -0
- /package/dist/beeq/{p-ed569a61.entry.js.map → p-f85f1705.entry.js.map} +0 -0
- /package/dist/components/{p-c58e0d87.js.map → p-1629a472.js.map} +0 -0
- /package/dist/components/{p-ac26ffcd.js.map → p-242345e1.js.map} +0 -0
- /package/dist/components/{p-6e0c7ab4.js.map → p-39d794c1.js.map} +0 -0
- /package/dist/components/{p-5b34bd04.js.map → p-51027528.js.map} +0 -0
- /package/dist/components/{p-8d8eeb62.js.map → p-afef286d.js.map} +0 -0
- /package/dist/components/{p-b50adb19.js.map → p-dfb2cbb5.js.map} +0 -0
- /package/dist/components/{p-9a115ee5.js.map → p-fd965589.js.map} +0 -0
|
@@ -1,1157 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by Endavans
|
|
3
|
-
* © https://beeq.design - Apache 2 License.
|
|
4
|
-
*/
|
|
5
|
-
class te {
|
|
6
|
-
/**
|
|
7
|
-
* @type {T}
|
|
8
|
-
*/
|
|
9
|
-
#t;
|
|
10
|
-
#e = /* @__PURE__ */ new Set();
|
|
11
|
-
/**
|
|
12
|
-
* @param {T} current
|
|
13
|
-
*/
|
|
14
|
-
constructor(t) {
|
|
15
|
-
this.#t = t;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @return {T}
|
|
19
|
-
*/
|
|
20
|
-
get current() {
|
|
21
|
-
return this.#t;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @param {T} value
|
|
25
|
-
*/
|
|
26
|
-
set current(t) {
|
|
27
|
-
this.#t != t && (this.#t = t, this.#e.forEach((n) => n(t)));
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @type {import("hooks").Ref["on"]}
|
|
31
|
-
*/
|
|
32
|
-
on(t) {
|
|
33
|
-
return this.#e.add(t), () => this.#e.delete(t);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
const Mt = (e) => new te(e), tt = Symbol.for("atomico.hooks");
|
|
37
|
-
globalThis[tt] = globalThis[tt] || {};
|
|
38
|
-
let k = globalThis[tt];
|
|
39
|
-
const ee = Symbol.for("Atomico.suspense"), At = Symbol.for("Atomico.effect"), ne = Symbol.for("Atomico.layoutEffect"), Ft = Symbol.for("Atomico.insertionEffect"), O = (e, t, n) => {
|
|
40
|
-
const { i: s, hooks: r } = k.c, o = r[s] = r[s] || {};
|
|
41
|
-
return o.value = e(o.value), o.effect = t, o.tag = n, k.c.i++, r[s].value;
|
|
42
|
-
}, se = (e) => O((t = Mt(e)) => t), _ = () => O((e = Mt(k.c.host)) => e), Rt = () => k.c.update, oe = (e, t, n = 0) => {
|
|
43
|
-
let s = {}, r = !1;
|
|
44
|
-
const o = () => r, c = (i, f) => {
|
|
45
|
-
for (const d in s) {
|
|
46
|
-
const l = s[d];
|
|
47
|
-
l.effect && l.tag === i && (l.value = l.effect(l.value, f));
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
return { load: (i) => {
|
|
51
|
-
k.c = { host: t, hooks: s, update: e, i: 0, id: n };
|
|
52
|
-
let f;
|
|
53
|
-
try {
|
|
54
|
-
r = !1, f = i();
|
|
55
|
-
} catch (d) {
|
|
56
|
-
if (d !== ee)
|
|
57
|
-
throw d;
|
|
58
|
-
r = !0;
|
|
59
|
-
} finally {
|
|
60
|
-
k.c = null;
|
|
61
|
-
}
|
|
62
|
-
return f;
|
|
63
|
-
}, cleanEffects: (i) => (c(Ft, i), () => (c(ne, i), () => {
|
|
64
|
-
c(At, i);
|
|
65
|
-
})), isSuspense: o };
|
|
66
|
-
}, M = Symbol.for;
|
|
67
|
-
function It(e, t) {
|
|
68
|
-
const n = e.length;
|
|
69
|
-
if (n !== t.length)
|
|
70
|
-
return !1;
|
|
71
|
-
for (let s = 0; s < n; s++) {
|
|
72
|
-
let r = e[s], o = t[s];
|
|
73
|
-
if (r !== o)
|
|
74
|
-
return !1;
|
|
75
|
-
}
|
|
76
|
-
return !0;
|
|
77
|
-
}
|
|
78
|
-
const w = (e) => typeof e == "function", R = (e) => typeof e == "object", { isArray: re } = Array, et = (e, t) => (t ? e instanceof HTMLStyleElement : !0) && "hydrate" in (e?.dataset || {});
|
|
79
|
-
function Ut(e, t) {
|
|
80
|
-
let n;
|
|
81
|
-
const s = (r) => {
|
|
82
|
-
let { length: o } = r;
|
|
83
|
-
for (let c = 0; c < o; c++) {
|
|
84
|
-
const u = r[c];
|
|
85
|
-
if (u && Array.isArray(u))
|
|
86
|
-
s(u);
|
|
87
|
-
else {
|
|
88
|
-
const a = typeof u;
|
|
89
|
-
if (u == null || a === "function" || a === "boolean")
|
|
90
|
-
continue;
|
|
91
|
-
a === "string" || a === "number" ? (n == null && (n = ""), n += u) : (n != null && (t(n), n = null), t(u));
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
s(e), n != null && t(n);
|
|
96
|
-
}
|
|
97
|
-
const $t = (e, t, n) => (e.addEventListener(t, n), () => e.removeEventListener(t, n));
|
|
98
|
-
class Lt {
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @param {HTMLElement} target
|
|
102
|
-
* @param {string} message
|
|
103
|
-
* @param {string} value
|
|
104
|
-
*/
|
|
105
|
-
constructor(t, n, s) {
|
|
106
|
-
this.message = n, this.target = t, this.value = s;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
class _t extends Lt {
|
|
110
|
-
}
|
|
111
|
-
class ce extends Lt {
|
|
112
|
-
}
|
|
113
|
-
const q = "Custom", ie = null, ae = { true: 1, "": 1, 1: 1 };
|
|
114
|
-
function le(e, t, n, s, r) {
|
|
115
|
-
const {
|
|
116
|
-
type: o,
|
|
117
|
-
reflect: c,
|
|
118
|
-
event: u,
|
|
119
|
-
value: a,
|
|
120
|
-
attr: i = ue(t)
|
|
121
|
-
} = n?.name != q && R(n) && n != ie ? n : { type: n }, f = o?.name === q && o.map, d = a != null ? o == Function || !w(a) ? () => a : a : null;
|
|
122
|
-
Object.defineProperty(e, t, {
|
|
123
|
-
configurable: !0,
|
|
124
|
-
/**
|
|
125
|
-
* @this {import("dom").AtomicoThisInternal}
|
|
126
|
-
* @param {any} newValue
|
|
127
|
-
*/
|
|
128
|
-
set(l) {
|
|
129
|
-
const m = this[t];
|
|
130
|
-
d && o != Boolean && l == null && (l = d());
|
|
131
|
-
const { error: v, value: p } = (f ? he : me)(
|
|
132
|
-
o,
|
|
133
|
-
l
|
|
134
|
-
);
|
|
135
|
-
if (v && p != null)
|
|
136
|
-
throw new _t(
|
|
137
|
-
this,
|
|
138
|
-
`The value defined for prop '${t}' must be of type '${o.name}'`,
|
|
139
|
-
p
|
|
140
|
-
);
|
|
141
|
-
m != p && (this._props[t] = p ?? void 0, this.update(), u && jt(this, u), this.updated.then(() => {
|
|
142
|
-
c && (this._ignoreAttr = i, fe(this, o, i, this[t]), this._ignoreAttr = null);
|
|
143
|
-
}));
|
|
144
|
-
},
|
|
145
|
-
/**
|
|
146
|
-
* @this {import("dom").AtomicoThisInternal}
|
|
147
|
-
*/
|
|
148
|
-
get() {
|
|
149
|
-
return this._props[t];
|
|
150
|
-
}
|
|
151
|
-
}), d && (r[t] = d()), s[i] = { prop: t, type: o };
|
|
152
|
-
}
|
|
153
|
-
const jt = (e, { type: t, base: n = CustomEvent, ...s }) => e.dispatchEvent(new n(t, s)), ue = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase(), fe = (e, t, n, s) => s == null || t == Boolean && !s ? e.removeAttribute(n) : e.setAttribute(
|
|
154
|
-
n,
|
|
155
|
-
t?.name === q && t?.serialize ? t?.serialize(s) : R(s) ? JSON.stringify(s) : t == Boolean ? "" : s
|
|
156
|
-
), de = (e, t) => e == Boolean ? !!ae[t] : e == Number ? Number(t) : e == String ? t : e == Array || e == Object ? JSON.parse(t) : e.name == q ? t : (
|
|
157
|
-
// TODO: If when defining reflect the prop can also be of type string?
|
|
158
|
-
new e(t)
|
|
159
|
-
), he = ({ map: e }, t) => {
|
|
160
|
-
try {
|
|
161
|
-
return { value: e(t), error: !1 };
|
|
162
|
-
} catch {
|
|
163
|
-
return { value: t, error: !0 };
|
|
164
|
-
}
|
|
165
|
-
}, me = (e, t) => e == null || t == null ? { value: t, error: !1 } : e != String && t === "" ? { value: void 0, error: !1 } : e == Object || e == Array || e == Symbol ? {
|
|
166
|
-
value: t,
|
|
167
|
-
error: {}.toString.call(t) !== `[object ${e.name}]`
|
|
168
|
-
} : t instanceof e ? {
|
|
169
|
-
value: t,
|
|
170
|
-
error: e == Number && Number.isNaN(t.valueOf())
|
|
171
|
-
} : e == String || e == Number || e == Boolean ? {
|
|
172
|
-
value: t,
|
|
173
|
-
error: e == Number ? typeof t != "number" ? !0 : Number.isNaN(t) : e == String ? typeof t != "string" : typeof t != "boolean"
|
|
174
|
-
} : { value: t, error: !0 };
|
|
175
|
-
let ye = 0;
|
|
176
|
-
const pe = (e) => {
|
|
177
|
-
const t = (e?.dataset || {})?.hydrate || "";
|
|
178
|
-
return t || "c" + ye++;
|
|
179
|
-
}, j = (e, t = HTMLElement) => {
|
|
180
|
-
const n = {}, s = {}, r = "prototype" in t && t.prototype instanceof Element, o = r ? t : "base" in t ? t.base : HTMLElement, { props: c, styles: u } = r ? e : t;
|
|
181
|
-
class a extends o {
|
|
182
|
-
constructor() {
|
|
183
|
-
super(), this._setup(), this._render = () => e({ ...this._props });
|
|
184
|
-
for (const f in s)
|
|
185
|
-
this[f] = s[f];
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @returns {import("core").Sheets[]}
|
|
189
|
-
*/
|
|
190
|
-
static get styles() {
|
|
191
|
-
return [super.styles, u];
|
|
192
|
-
}
|
|
193
|
-
async _setup() {
|
|
194
|
-
if (this._props)
|
|
195
|
-
return;
|
|
196
|
-
this._props = {};
|
|
197
|
-
let f, d;
|
|
198
|
-
this.mounted = new Promise(
|
|
199
|
-
(h) => this.mount = () => {
|
|
200
|
-
h(), f != this.parentNode && (d != f ? this.unmounted.then(this.update) : this.update()), f = this.parentNode;
|
|
201
|
-
}
|
|
202
|
-
), this.unmounted = new Promise(
|
|
203
|
-
(h) => this.unmount = () => {
|
|
204
|
-
h(), (f != this.parentNode || !this.isConnected) && (l.cleanEffects(!0)()(), d = this.parentNode, f = null);
|
|
205
|
-
}
|
|
206
|
-
), this.symbolId = this.symbolId || Symbol(), this.symbolIdParent = Symbol();
|
|
207
|
-
const l = oe(
|
|
208
|
-
() => this.update(),
|
|
209
|
-
this,
|
|
210
|
-
pe(this)
|
|
211
|
-
);
|
|
212
|
-
let m, v = !0;
|
|
213
|
-
const p = et(this);
|
|
214
|
-
this.update = () => (m || (m = !0, this.updated = (this.updated || this.mounted).then(() => {
|
|
215
|
-
try {
|
|
216
|
-
const h = l.load(this._render), b = l.cleanEffects();
|
|
217
|
-
return h && //@ts-ignore
|
|
218
|
-
h.render(this, this.symbolId, p), m = !1, v && !l.isSuspense() && (v = !1, !p && be(this)), b();
|
|
219
|
-
} finally {
|
|
220
|
-
m = !1;
|
|
221
|
-
}
|
|
222
|
-
}).then(
|
|
223
|
-
/**
|
|
224
|
-
* @param {import("internal/hooks.js").CleanUseEffects} [cleanUseEffect]
|
|
225
|
-
*/
|
|
226
|
-
(h) => {
|
|
227
|
-
h && h();
|
|
228
|
-
}
|
|
229
|
-
)), this.updated), this.update();
|
|
230
|
-
}
|
|
231
|
-
connectedCallback() {
|
|
232
|
-
this.mount(), super.connectedCallback && super.connectedCallback();
|
|
233
|
-
}
|
|
234
|
-
disconnectedCallback() {
|
|
235
|
-
super.disconnectedCallback && super.disconnectedCallback(), this.unmount();
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* @this {import("dom").AtomicoThisInternal}
|
|
239
|
-
* @param {string} attr
|
|
240
|
-
* @param {(string|null)} oldValue
|
|
241
|
-
* @param {(string|null)} value
|
|
242
|
-
*/
|
|
243
|
-
attributeChangedCallback(f, d, l) {
|
|
244
|
-
if (n[f]) {
|
|
245
|
-
if (f === this._ignoreAttr || d === l)
|
|
246
|
-
return;
|
|
247
|
-
const { prop: m, type: v } = n[f];
|
|
248
|
-
try {
|
|
249
|
-
this[m] = de(v, l);
|
|
250
|
-
} catch {
|
|
251
|
-
throw new ce(
|
|
252
|
-
this,
|
|
253
|
-
`The value defined as attr '${f}' cannot be parsed by type '${v.name}'`,
|
|
254
|
-
l
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
} else
|
|
258
|
-
super.attributeChangedCallback(f, d, l);
|
|
259
|
-
}
|
|
260
|
-
static get props() {
|
|
261
|
-
return { ...super.props, ...c };
|
|
262
|
-
}
|
|
263
|
-
static get observedAttributes() {
|
|
264
|
-
const f = super.observedAttributes || [];
|
|
265
|
-
for (const d in c)
|
|
266
|
-
le(this.prototype, d, c[d], n, s);
|
|
267
|
-
return Object.keys(n).concat(f);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
return a;
|
|
271
|
-
};
|
|
272
|
-
function be(e) {
|
|
273
|
-
const { styles: t } = e.constructor, { shadowRoot: n } = e;
|
|
274
|
-
if (n && t.length) {
|
|
275
|
-
const s = [];
|
|
276
|
-
Ut(t, (r) => {
|
|
277
|
-
r && (r instanceof Element ? n.appendChild(r.cloneNode(!0)) : s.push(r));
|
|
278
|
-
}), s.length && (n.adoptedStyleSheets = s);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
const Yt = (e) => (t, n) => {
|
|
282
|
-
O(
|
|
283
|
-
/**
|
|
284
|
-
* Clean the effect hook
|
|
285
|
-
* @type {import("internal/hooks.js").CollectorEffect}
|
|
286
|
-
*/
|
|
287
|
-
([s, r] = []) => ((r || !r) && (r && It(r, n) ? s = s || !0 : (w(s) && s(), s = null)), [s, n]),
|
|
288
|
-
/**
|
|
289
|
-
* @returns {any}
|
|
290
|
-
*/
|
|
291
|
-
([s, r], o) => o ? (w(s) && s(), []) : [s || t(), r],
|
|
292
|
-
e
|
|
293
|
-
);
|
|
294
|
-
}, $ = Yt(At), ge = Yt(Ft);
|
|
295
|
-
class Bt extends Array {
|
|
296
|
-
/**
|
|
297
|
-
*
|
|
298
|
-
* @param {any} initialState
|
|
299
|
-
* @param {(nextState: any, state:any[], mount: boolean )=>void} mapState
|
|
300
|
-
*/
|
|
301
|
-
constructor(t, n) {
|
|
302
|
-
let s = !0;
|
|
303
|
-
const r = (o) => {
|
|
304
|
-
try {
|
|
305
|
-
n(o, this, s);
|
|
306
|
-
} finally {
|
|
307
|
-
s = !1;
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
super(void 0, r, n), r(t);
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* The following code allows a mutable approach to useState
|
|
314
|
-
* and useProp this with the idea of allowing an alternative
|
|
315
|
-
* approach similar to Vue or Qwik of state management
|
|
316
|
-
* @todo pending review with the community
|
|
317
|
-
*/
|
|
318
|
-
// get value() {
|
|
319
|
-
// return this[0];
|
|
320
|
-
// }
|
|
321
|
-
// set value(nextState) {
|
|
322
|
-
// this[2](nextState, this);
|
|
323
|
-
// }
|
|
324
|
-
}
|
|
325
|
-
const rt = (e) => {
|
|
326
|
-
const t = Rt();
|
|
327
|
-
return O(
|
|
328
|
-
(n = new Bt(e, (s, r, o) => {
|
|
329
|
-
s = w(s) ? s(r[0]) : s, s !== r[0] && (r[0] = s, o || t());
|
|
330
|
-
})) => n
|
|
331
|
-
);
|
|
332
|
-
}, T = (e, t) => {
|
|
333
|
-
const [n] = O(([s, r, o = 0] = []) => ((!r || r && !It(r, t)) && (s = e()), [s, t, o]));
|
|
334
|
-
return n;
|
|
335
|
-
}, ct = (e) => {
|
|
336
|
-
const { current: t } = _();
|
|
337
|
-
if (!(e in t))
|
|
338
|
-
throw new _t(
|
|
339
|
-
t,
|
|
340
|
-
`For useProp("${e}"), the prop does not exist on the host.`,
|
|
341
|
-
e
|
|
342
|
-
);
|
|
343
|
-
return O(
|
|
344
|
-
(n = new Bt(t[e], (s, r) => {
|
|
345
|
-
s = w(s) ? s(t[e]) : s, t[e] = s;
|
|
346
|
-
})) => (n[0] = t[e], n)
|
|
347
|
-
);
|
|
348
|
-
}, C = (e, t = {}) => {
|
|
349
|
-
const n = _();
|
|
350
|
-
return n[e] || (n[e] = (s = t.detail) => jt(n.current, {
|
|
351
|
-
type: e,
|
|
352
|
-
...t,
|
|
353
|
-
detail: s
|
|
354
|
-
})), n[e];
|
|
355
|
-
}, nt = M("atomico/options");
|
|
356
|
-
globalThis[nt] = globalThis[nt] || {
|
|
357
|
-
sheet: !!document.adoptedStyleSheets
|
|
358
|
-
};
|
|
359
|
-
const qt = globalThis[nt], Ee = {
|
|
360
|
-
checked: 1,
|
|
361
|
-
value: 1,
|
|
362
|
-
selected: 1
|
|
363
|
-
}, ve = {
|
|
364
|
-
list: 1,
|
|
365
|
-
type: 1,
|
|
366
|
-
size: 1,
|
|
367
|
-
form: 1,
|
|
368
|
-
width: 1,
|
|
369
|
-
height: 1,
|
|
370
|
-
src: 1,
|
|
371
|
-
href: 1,
|
|
372
|
-
slot: 1
|
|
373
|
-
}, De = {
|
|
374
|
-
shadowDom: 1,
|
|
375
|
-
staticNode: 1,
|
|
376
|
-
cloneNode: 1,
|
|
377
|
-
children: 1,
|
|
378
|
-
key: 1
|
|
379
|
-
}, B = {}, st = [];
|
|
380
|
-
class ot extends Text {
|
|
381
|
-
}
|
|
382
|
-
const Se = M("atomico/id"), I = M("atomico/type"), Z = M("atomico/ref"), xt = M("atomico/vnode"), we = () => {
|
|
383
|
-
};
|
|
384
|
-
function Ce(e, t, n) {
|
|
385
|
-
return Ht(this, e, t, n);
|
|
386
|
-
}
|
|
387
|
-
const zt = (e, t, ...n) => {
|
|
388
|
-
const s = t || B;
|
|
389
|
-
let { children: r } = s;
|
|
390
|
-
if (r = r ?? (n.length ? n : st), e === we)
|
|
391
|
-
return r;
|
|
392
|
-
const o = e ? e instanceof Node ? 1 : (
|
|
393
|
-
//@ts-ignore
|
|
394
|
-
e.prototype instanceof HTMLElement && 2
|
|
395
|
-
) : 0;
|
|
396
|
-
if (o === !1 && e instanceof Function)
|
|
397
|
-
return e(
|
|
398
|
-
r != st ? { children: r, ...s } : s
|
|
399
|
-
);
|
|
400
|
-
const c = qt.render || Ce;
|
|
401
|
-
return {
|
|
402
|
-
[I]: xt,
|
|
403
|
-
type: e,
|
|
404
|
-
props: s,
|
|
405
|
-
children: r,
|
|
406
|
-
key: s.key,
|
|
407
|
-
// key for lists by keys
|
|
408
|
-
// define if the node declares its shadowDom
|
|
409
|
-
shadow: s.shadowDom,
|
|
410
|
-
// allows renderings to run only once
|
|
411
|
-
static: s.staticNode,
|
|
412
|
-
// defines whether the type is a childNode `1` or a constructor `2`
|
|
413
|
-
raw: o,
|
|
414
|
-
// defines whether to use the second parameter for document.createElement
|
|
415
|
-
is: s.is,
|
|
416
|
-
// clone the node if it comes from a reference
|
|
417
|
-
clone: s.cloneNode,
|
|
418
|
-
render: c
|
|
419
|
-
};
|
|
420
|
-
};
|
|
421
|
-
function Ht(e, t, n = Se, s, r) {
|
|
422
|
-
let o;
|
|
423
|
-
if (t && t[n] && t[n].vnode == e || e[I] != xt)
|
|
424
|
-
return t;
|
|
425
|
-
(e || !t) && (r = r || e.type == "svg", o = e.type != "host" && (e.raw == 1 ? (t && e.clone ? t[Z] : t) != e.type : e.raw == 2 ? !(t instanceof e.type) : t ? t[Z] || t.localName != e.type : !t), o && e.type != null && (e.raw == 1 && e.clone ? (s = !0, t = e.type.cloneNode(!0), t[Z] = e.type) : t = e.raw == 1 ? e.type : e.raw == 2 ? new e.type() : r ? document.createElementNS(
|
|
426
|
-
"http://www.w3.org/2000/svg",
|
|
427
|
-
e.type
|
|
428
|
-
) : document.createElement(
|
|
429
|
-
e.type,
|
|
430
|
-
e.is ? { is: e.is } : void 0
|
|
431
|
-
)));
|
|
432
|
-
const c = t[n] ? t[n] : B, { vnode: u = B, cycle: a = 0 } = c;
|
|
433
|
-
let { fragment: i, handlers: f } = c;
|
|
434
|
-
const { children: d = st, props: l = B } = u;
|
|
435
|
-
if (f = o ? {} : f || {}, e.static && !o)
|
|
436
|
-
return t;
|
|
437
|
-
if (e.shadow && !t.shadowRoot && // @ts-ignore
|
|
438
|
-
t.attachShadow({ mode: "open", ...e.shadow }), e.props != l && Ne(t, l, e.props, f, r), e.children !== d) {
|
|
439
|
-
const m = e.shadow ? t.shadowRoot : t;
|
|
440
|
-
i = Pe(
|
|
441
|
-
e.children,
|
|
442
|
-
/**
|
|
443
|
-
* @todo for hydration use attribute and send childNodes
|
|
444
|
-
*/
|
|
445
|
-
i,
|
|
446
|
-
m,
|
|
447
|
-
n,
|
|
448
|
-
// add support to foreignObject, children will escape from svg
|
|
449
|
-
!a && s,
|
|
450
|
-
r && e.type == "foreignObject" ? !1 : r
|
|
451
|
-
);
|
|
452
|
-
}
|
|
453
|
-
return t[n] = { vnode: e, handlers: f, fragment: i, cycle: a + 1 }, t;
|
|
454
|
-
}
|
|
455
|
-
function Te(e, t) {
|
|
456
|
-
const n = new ot(""), s = new ot("");
|
|
457
|
-
let r;
|
|
458
|
-
if (e[t ? "prepend" : "append"](n), t) {
|
|
459
|
-
let { lastElementChild: o } = e;
|
|
460
|
-
for (; o; ) {
|
|
461
|
-
const { previousElementSibling: c } = o;
|
|
462
|
-
if (et(o, !0) && !et(c, !0)) {
|
|
463
|
-
r = o;
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
o = c;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
return r ? r.before(s) : e.append(s), {
|
|
470
|
-
markStart: n,
|
|
471
|
-
markEnd: s
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
function Pe(e, t, n, s, r, o) {
|
|
475
|
-
e = e == null ? null : re(e) ? e : [e];
|
|
476
|
-
const c = t || Te(n, r), { markStart: u, markEnd: a, keyes: i } = c;
|
|
477
|
-
let f;
|
|
478
|
-
const d = i && /* @__PURE__ */ new Set();
|
|
479
|
-
let l = u;
|
|
480
|
-
if (e && Ut(e, (m) => {
|
|
481
|
-
if (typeof m == "object" && !m[I])
|
|
482
|
-
return;
|
|
483
|
-
const v = m[I] && m.key, p = i && v != null && i.get(v);
|
|
484
|
-
l != a && l === p ? d.delete(l) : l = l == a ? a : l.nextSibling;
|
|
485
|
-
const h = i ? p : l;
|
|
486
|
-
let b = h;
|
|
487
|
-
if (m[I])
|
|
488
|
-
b = Ht(m, h, s, r, o);
|
|
489
|
-
else {
|
|
490
|
-
const A = m + "";
|
|
491
|
-
!(b instanceof Text) || b instanceof ot ? b = new Text(A) : b.data != A && (b.data = A);
|
|
492
|
-
}
|
|
493
|
-
b != l && (i && d.delete(b), !h || i ? (n.insertBefore(b, l), i && l != a && d.add(l)) : h == a ? n.insertBefore(b, a) : (n.replaceChild(b, h), l = b)), v != null && (f = f || /* @__PURE__ */ new Map(), f.set(v, b));
|
|
494
|
-
}), l = l == a ? a : l.nextSibling, t && l != a)
|
|
495
|
-
for (; l != a; ) {
|
|
496
|
-
const m = l;
|
|
497
|
-
l = l.nextSibling, m.remove();
|
|
498
|
-
}
|
|
499
|
-
return d && d.forEach((m) => m.remove()), c.keyes = f, c;
|
|
500
|
-
}
|
|
501
|
-
function Ne(e, t, n, s, r) {
|
|
502
|
-
for (const o in t)
|
|
503
|
-
!(o in n) && Dt(e, o, t[o], null, r, s);
|
|
504
|
-
for (const o in n)
|
|
505
|
-
Dt(e, o, t[o], n[o], r, s);
|
|
506
|
-
}
|
|
507
|
-
function Dt(e, t, n, s, r, o) {
|
|
508
|
-
if (t = t == "class" && !r ? "className" : t, n = n ?? null, s = s ?? null, t in e && Ee[t] && (n = e[t]), !(s === n || De[t] || t[0] == "_"))
|
|
509
|
-
if (t[0] == "o" && t[1] == "n" && (w(s) || w(n)))
|
|
510
|
-
ke(e, t.slice(2), s, o);
|
|
511
|
-
else if (t == "ref")
|
|
512
|
-
s && (w(s) ? s(e) : s.current = e);
|
|
513
|
-
else if (t == "style") {
|
|
514
|
-
const { style: c } = e;
|
|
515
|
-
n = n || "", s = s || "";
|
|
516
|
-
const u = R(n), a = R(s);
|
|
517
|
-
if (u)
|
|
518
|
-
for (const i in n)
|
|
519
|
-
if (a)
|
|
520
|
-
!(i in s) && St(c, i, null);
|
|
521
|
-
else
|
|
522
|
-
break;
|
|
523
|
-
if (a)
|
|
524
|
-
for (const i in s) {
|
|
525
|
-
const f = s[i];
|
|
526
|
-
u && n[i] === f || St(c, i, f);
|
|
527
|
-
}
|
|
528
|
-
else
|
|
529
|
-
c.cssText = s;
|
|
530
|
-
} else {
|
|
531
|
-
const c = t[0] == "$" ? t.slice(1) : t;
|
|
532
|
-
c === t && (!r && !ve[t] && t in e || w(s) || w(n)) ? e[t] = s ?? "" : s == null ? e.removeAttribute(c) : e.setAttribute(
|
|
533
|
-
c,
|
|
534
|
-
R(s) ? JSON.stringify(s) : s
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function ke(e, t, n, s) {
|
|
539
|
-
if (s.handleEvent || (s.handleEvent = (r) => s[r.type].call(e, r)), n) {
|
|
540
|
-
if (!s[t]) {
|
|
541
|
-
const r = n.capture || n.once || n.passive ? Object.assign({}, n) : null;
|
|
542
|
-
e.addEventListener(t, s, r);
|
|
543
|
-
}
|
|
544
|
-
s[t] = n;
|
|
545
|
-
} else
|
|
546
|
-
s[t] && (e.removeEventListener(t, s), delete s[t]);
|
|
547
|
-
}
|
|
548
|
-
function St(e, t, n) {
|
|
549
|
-
let s = "setProperty";
|
|
550
|
-
n == null && (s = "removeProperty", n = null), ~t.indexOf("-") ? e[s](t, n) : e[t] = n;
|
|
551
|
-
}
|
|
552
|
-
const wt = {};
|
|
553
|
-
function z(e, ...t) {
|
|
554
|
-
const n = (e.raw || e).reduce(
|
|
555
|
-
(s, r, o) => s + r + (t[o] || ""),
|
|
556
|
-
""
|
|
557
|
-
);
|
|
558
|
-
return wt[n] = wt[n] || Oe(n);
|
|
559
|
-
}
|
|
560
|
-
function Oe(e) {
|
|
561
|
-
if (qt.sheet) {
|
|
562
|
-
const t = new CSSStyleSheet();
|
|
563
|
-
return t.replaceSync(e), t;
|
|
564
|
-
} else {
|
|
565
|
-
const t = document.createElement("style");
|
|
566
|
-
return t.textContent = e, t;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
const Me = zt("host", { style: "display: contents" }), W = M("atomico/context"), Ae = (e, t) => {
|
|
570
|
-
const n = _();
|
|
571
|
-
ge(
|
|
572
|
-
() => $t(
|
|
573
|
-
n.current,
|
|
574
|
-
"ConnectContext",
|
|
575
|
-
/**
|
|
576
|
-
* @param {CustomEvent<import("context").DetailConnectContext>} event
|
|
577
|
-
*/
|
|
578
|
-
(s) => {
|
|
579
|
-
e === s.detail.id && (s.stopPropagation(), s.detail.connect(t));
|
|
580
|
-
}
|
|
581
|
-
),
|
|
582
|
-
[e]
|
|
583
|
-
);
|
|
584
|
-
}, Fe = (e) => {
|
|
585
|
-
const t = C("ConnectContext", {
|
|
586
|
-
bubbles: !0,
|
|
587
|
-
composed: !0
|
|
588
|
-
}), n = () => {
|
|
589
|
-
let o;
|
|
590
|
-
return t({
|
|
591
|
-
id: e,
|
|
592
|
-
connect(c) {
|
|
593
|
-
o = c;
|
|
594
|
-
}
|
|
595
|
-
}), o;
|
|
596
|
-
}, [s, r] = rt(
|
|
597
|
-
n
|
|
598
|
-
);
|
|
599
|
-
return $(() => {
|
|
600
|
-
s || (e[W] || (e[W] = customElements.whenDefined(
|
|
601
|
-
new e().localName
|
|
602
|
-
)), e[W].then(
|
|
603
|
-
() => r(n)
|
|
604
|
-
));
|
|
605
|
-
}, [e]), s;
|
|
606
|
-
}, Re = (e) => {
|
|
607
|
-
const t = Fe(e), n = Rt();
|
|
608
|
-
return $(() => {
|
|
609
|
-
if (t)
|
|
610
|
-
return $t(t, "UpdatedValue", n);
|
|
611
|
-
}, [t]), (t || e).value;
|
|
612
|
-
}, Ie = (e) => {
|
|
613
|
-
const t = j(
|
|
614
|
-
() => (Ae(t, _().current), Me),
|
|
615
|
-
{
|
|
616
|
-
props: {
|
|
617
|
-
value: {
|
|
618
|
-
type: Object,
|
|
619
|
-
event: { type: "UpdatedValue" },
|
|
620
|
-
value: () => e
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
);
|
|
625
|
-
return t.value = e, t;
|
|
626
|
-
}, y = (e, t, n) => (t == null ? t = { key: n } : t.key = n, zt(e, t)), U = y, Kt = z`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`, Jt = z`.vh{position:absolute;transform:scale(0)}`;
|
|
627
|
-
function it() {
|
|
628
|
-
const e = /* @__PURE__ */ new Date();
|
|
629
|
-
return new E(e.getFullYear(), e.getMonth() + 1, e.getDate());
|
|
630
|
-
}
|
|
631
|
-
function at(e, t = 0) {
|
|
632
|
-
const n = S(e), s = n.getUTCDay(), r = (s < t ? 7 : 0) + s - t;
|
|
633
|
-
return n.setUTCDate(n.getUTCDate() - r), E.from(n);
|
|
634
|
-
}
|
|
635
|
-
function Zt(e, t = 0) {
|
|
636
|
-
return at(e, t).add({ days: 6 });
|
|
637
|
-
}
|
|
638
|
-
function Wt(e) {
|
|
639
|
-
return E.from(new Date(Date.UTC(e.year, e.month, 0)));
|
|
640
|
-
}
|
|
641
|
-
function H(e, t, n) {
|
|
642
|
-
return t && E.compare(e, t) < 0 ? t : n && E.compare(e, n) > 0 ? n : e;
|
|
643
|
-
}
|
|
644
|
-
const Ue = { days: 1 };
|
|
645
|
-
function $e(e, t = 0) {
|
|
646
|
-
let n = at(e.toPlainDate(), t);
|
|
647
|
-
const s = Zt(Wt(e), t), r = [];
|
|
648
|
-
for (; E.compare(n, s) < 0; ) {
|
|
649
|
-
const o = [];
|
|
650
|
-
for (let c = 0; c < 7; c++)
|
|
651
|
-
o.push(n), n = n.add(Ue);
|
|
652
|
-
r.push(o);
|
|
653
|
-
}
|
|
654
|
-
return r;
|
|
655
|
-
}
|
|
656
|
-
function S(e) {
|
|
657
|
-
return new Date(Date.UTC(e.year, e.month - 1, e.day ?? 1));
|
|
658
|
-
}
|
|
659
|
-
const Le = /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/, X = (e, t) => e.toString().padStart(t, "0");
|
|
660
|
-
class E {
|
|
661
|
-
constructor(t, n, s) {
|
|
662
|
-
this.year = t, this.month = n, this.day = s;
|
|
663
|
-
}
|
|
664
|
-
// this is an incomplete implementation that only handles arithmetic on a single unit at a time.
|
|
665
|
-
// i didn't want to get into more complex arithmetic since it get tricky fast
|
|
666
|
-
// this is enough to serve my needs and will still be a drop-in replacement when actual Temporal API lands
|
|
667
|
-
add(t) {
|
|
668
|
-
const n = S(this);
|
|
669
|
-
if ("days" in t)
|
|
670
|
-
return n.setUTCDate(this.day + t.days), E.from(n);
|
|
671
|
-
let { year: s, month: r } = this;
|
|
672
|
-
"months" in t ? (r = this.month + t.months, n.setUTCMonth(r - 1)) : (s = this.year + t.years, n.setUTCFullYear(s));
|
|
673
|
-
const o = E.from(S({ year: s, month: r, day: 1 }));
|
|
674
|
-
return H(E.from(n), o, Wt(o));
|
|
675
|
-
}
|
|
676
|
-
toString() {
|
|
677
|
-
return `${X(this.year, 4)}-${X(this.month, 2)}-${X(this.day, 2)}`;
|
|
678
|
-
}
|
|
679
|
-
toPlainYearMonth() {
|
|
680
|
-
return new K(this.year, this.month);
|
|
681
|
-
}
|
|
682
|
-
equals(t) {
|
|
683
|
-
return E.compare(this, t) === 0;
|
|
684
|
-
}
|
|
685
|
-
static compare(t, n) {
|
|
686
|
-
return t.year < n.year ? -1 : t.year > n.year ? 1 : t.month < n.month ? -1 : t.month > n.month ? 1 : t.day < n.day ? -1 : t.day > n.day ? 1 : 0;
|
|
687
|
-
}
|
|
688
|
-
static from(t) {
|
|
689
|
-
if (typeof t == "string") {
|
|
690
|
-
const n = t.match(Le);
|
|
691
|
-
if (!n)
|
|
692
|
-
throw new TypeError(t);
|
|
693
|
-
const [, s, r, o] = n;
|
|
694
|
-
return new E(
|
|
695
|
-
parseInt(s, 10),
|
|
696
|
-
parseInt(r, 10),
|
|
697
|
-
parseInt(o, 10)
|
|
698
|
-
);
|
|
699
|
-
}
|
|
700
|
-
return new E(
|
|
701
|
-
t.getUTCFullYear(),
|
|
702
|
-
t.getUTCMonth() + 1,
|
|
703
|
-
t.getUTCDate()
|
|
704
|
-
);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
class K {
|
|
708
|
-
constructor(t, n) {
|
|
709
|
-
this.year = t, this.month = n;
|
|
710
|
-
}
|
|
711
|
-
add(t) {
|
|
712
|
-
const n = S(this), s = (t.months ?? 0) + (t.years ?? 0) * 12;
|
|
713
|
-
return n.setUTCMonth(n.getUTCMonth() + s), new K(n.getUTCFullYear(), n.getUTCMonth() + 1);
|
|
714
|
-
}
|
|
715
|
-
equals(t) {
|
|
716
|
-
return this.year === t.year && this.month === t.month;
|
|
717
|
-
}
|
|
718
|
-
toPlainDate() {
|
|
719
|
-
return new E(this.year, this.month, 1);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
function x(e, t) {
|
|
723
|
-
if (t)
|
|
724
|
-
try {
|
|
725
|
-
return e.from(t);
|
|
726
|
-
} catch {
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
function P(e) {
|
|
730
|
-
const [t, n] = ct(e);
|
|
731
|
-
return [T(() => x(E, t), [t]), (o) => n(o?.toString())];
|
|
732
|
-
}
|
|
733
|
-
function _e(e) {
|
|
734
|
-
const [t = "", n] = ct(e);
|
|
735
|
-
return [T(() => {
|
|
736
|
-
const [o, c] = t.split("/"), u = x(E, o), a = x(E, c);
|
|
737
|
-
return u && a ? [u, a] : [];
|
|
738
|
-
}, [t]), (o) => n(`${o[0]}/${o[1]}`)];
|
|
739
|
-
}
|
|
740
|
-
function je(e) {
|
|
741
|
-
const [t = "", n] = ct(e);
|
|
742
|
-
return [T(() => {
|
|
743
|
-
const o = [];
|
|
744
|
-
for (const c of t.trim().split(/\s+/)) {
|
|
745
|
-
const u = x(E, c);
|
|
746
|
-
u && o.push(u);
|
|
747
|
-
}
|
|
748
|
-
return o;
|
|
749
|
-
}, [t]), (o) => n(o.join(" "))];
|
|
750
|
-
}
|
|
751
|
-
function L(e, t) {
|
|
752
|
-
return T(
|
|
753
|
-
() => new Intl.DateTimeFormat(t, { timeZone: "UTC", ...e }),
|
|
754
|
-
[t, e]
|
|
755
|
-
);
|
|
756
|
-
}
|
|
757
|
-
function Ct(e, t, n) {
|
|
758
|
-
const s = L(e, n);
|
|
759
|
-
return T(() => {
|
|
760
|
-
const r = [], o = /* @__PURE__ */ new Date();
|
|
761
|
-
for (var c = 0; c < 7; c++) {
|
|
762
|
-
const u = (o.getUTCDay() - t + 7) % 7;
|
|
763
|
-
r[u] = s.format(o), o.setUTCDate(o.getUTCDate() + 1);
|
|
764
|
-
}
|
|
765
|
-
return r;
|
|
766
|
-
}, [t, s]);
|
|
767
|
-
}
|
|
768
|
-
const Tt = (e, t, n) => H(e, t, n) === e, Pt = (e) => e.target.matches(":dir(ltr)"), Ye = { month: "long", day: "numeric" }, Be = { month: "long" }, qe = { weekday: "narrow" }, xe = { weekday: "long" }, G = { bubbles: !0 };
|
|
769
|
-
function ze({ props: e, context: t }) {
|
|
770
|
-
const { offset: n } = e, {
|
|
771
|
-
firstDayOfWeek: s,
|
|
772
|
-
isDateDisallowed: r,
|
|
773
|
-
min: o,
|
|
774
|
-
max: c,
|
|
775
|
-
page: u,
|
|
776
|
-
locale: a,
|
|
777
|
-
focusedDate: i
|
|
778
|
-
} = t, f = it(), d = Ct(xe, s, a), l = Ct(qe, s, a), m = L(Ye, a), v = L(Be, a), p = T(
|
|
779
|
-
() => u.start.add({ months: n }),
|
|
780
|
-
[u, n]
|
|
781
|
-
), h = T(
|
|
782
|
-
() => $e(p, s),
|
|
783
|
-
[p, s]
|
|
784
|
-
), b = C("focusday", G), A = C("selectday", G), Xt = C("hoverday", G);
|
|
785
|
-
function mt(g) {
|
|
786
|
-
b(H(g, o, c));
|
|
787
|
-
}
|
|
788
|
-
function Gt(g) {
|
|
789
|
-
let D;
|
|
790
|
-
switch (g.key) {
|
|
791
|
-
case "ArrowRight":
|
|
792
|
-
D = i.add({ days: Pt(g) ? 1 : -1 });
|
|
793
|
-
break;
|
|
794
|
-
case "ArrowLeft":
|
|
795
|
-
D = i.add({ days: Pt(g) ? -1 : 1 });
|
|
796
|
-
break;
|
|
797
|
-
case "ArrowDown":
|
|
798
|
-
D = i.add({ days: 7 });
|
|
799
|
-
break;
|
|
800
|
-
case "ArrowUp":
|
|
801
|
-
D = i.add({ days: -7 });
|
|
802
|
-
break;
|
|
803
|
-
case "PageUp":
|
|
804
|
-
D = i.add(g.shiftKey ? { years: -1 } : { months: -1 });
|
|
805
|
-
break;
|
|
806
|
-
case "PageDown":
|
|
807
|
-
D = i.add(g.shiftKey ? { years: 1 } : { months: 1 });
|
|
808
|
-
break;
|
|
809
|
-
case "Home":
|
|
810
|
-
D = at(i, s);
|
|
811
|
-
break;
|
|
812
|
-
case "End":
|
|
813
|
-
D = Zt(i, s);
|
|
814
|
-
break;
|
|
815
|
-
default:
|
|
816
|
-
return;
|
|
817
|
-
}
|
|
818
|
-
mt(D), g.preventDefault();
|
|
819
|
-
}
|
|
820
|
-
function Qt(g) {
|
|
821
|
-
const D = p.equals(g);
|
|
822
|
-
if (!t.showOutsideDays && !D)
|
|
823
|
-
return;
|
|
824
|
-
const Vt = g.equals(i), yt = g.equals(f), pt = S(g), Y = r?.(pt), bt = !Tt(g, o, c);
|
|
825
|
-
let gt = "", N;
|
|
826
|
-
if (t.type === "range") {
|
|
827
|
-
const [F, J] = t.value, Et = F?.equals(g), vt = J?.equals(g);
|
|
828
|
-
N = F && J && Tt(g, F, J), gt = `${Et ? "range-start" : ""} ${vt ? "range-end" : ""} ${N && !Et && !vt ? "range-inner" : ""}`;
|
|
829
|
-
} else
|
|
830
|
-
t.type === "multi" ? N = t.value.some((F) => F.equals(g)) : N = t.value?.equals(g);
|
|
831
|
-
return {
|
|
832
|
-
part: `${`button day ${// we don't want outside days to ever be shown as selected
|
|
833
|
-
D ? N ? "selected" : "" : "outside"} ${Y ? "disallowed" : ""} ${yt ? "today" : ""}`} ${gt}`,
|
|
834
|
-
tabindex: D && Vt ? 0 : -1,
|
|
835
|
-
disabled: bt,
|
|
836
|
-
"aria-disabled": Y ? "true" : void 0,
|
|
837
|
-
"aria-pressed": D && N,
|
|
838
|
-
"aria-current": yt ? "date" : void 0,
|
|
839
|
-
"aria-label": m.format(pt),
|
|
840
|
-
onkeydown: Gt,
|
|
841
|
-
onclick() {
|
|
842
|
-
Y || A(g), mt(g);
|
|
843
|
-
},
|
|
844
|
-
onmouseover() {
|
|
845
|
-
!Y && !bt && Xt(g);
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
return {
|
|
850
|
-
weeks: h,
|
|
851
|
-
yearMonth: p,
|
|
852
|
-
daysLong: d,
|
|
853
|
-
daysShort: l,
|
|
854
|
-
formatter: v,
|
|
855
|
-
getDayProps: Qt
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
const Q = it(), lt = Ie({
|
|
859
|
-
type: "date",
|
|
860
|
-
firstDayOfWeek: 1,
|
|
861
|
-
isDateDisallowed: () => !1,
|
|
862
|
-
focusedDate: Q,
|
|
863
|
-
page: { start: Q.toPlainYearMonth(), end: Q.toPlainYearMonth() }
|
|
864
|
-
});
|
|
865
|
-
customElements.define("calendar-month-ctx", lt);
|
|
866
|
-
const He = j(
|
|
867
|
-
(e) => {
|
|
868
|
-
const t = Re(lt), n = se(), s = ze({ props: e, context: t });
|
|
869
|
-
function r() {
|
|
870
|
-
n.current.querySelector("button[tabindex='0']")?.focus();
|
|
871
|
-
}
|
|
872
|
-
return /* @__PURE__ */ U("host", { shadowDom: !0, focus: r, children: [
|
|
873
|
-
/* @__PURE__ */ y("div", { id: "h", part: "heading", children: s.formatter.format(S(s.yearMonth)) }),
|
|
874
|
-
/* @__PURE__ */ U("table", { ref: n, "aria-labelledby": "h", part: "table", children: [
|
|
875
|
-
/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { part: "tr head", children: s.daysLong.map((o, c) => /* @__PURE__ */ U("th", { part: "th", scope: "col", children: [
|
|
876
|
-
/* @__PURE__ */ y("span", { class: "vh", children: o }),
|
|
877
|
-
/* @__PURE__ */ y("span", { "aria-hidden": "true", children: s.daysShort[c] })
|
|
878
|
-
] })) }) }),
|
|
879
|
-
/* @__PURE__ */ y("tbody", { children: s.weeks.map((o, c) => /* @__PURE__ */ y("tr", { part: "tr week", children: o.map((u, a) => {
|
|
880
|
-
const i = s.getDayProps(u);
|
|
881
|
-
return /* @__PURE__ */ y("td", { part: "td", children: i && /* @__PURE__ */ y("button", { ...i, children: u.day }) }, a);
|
|
882
|
-
}) }, c)) })
|
|
883
|
-
] })
|
|
884
|
-
] });
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
props: {
|
|
888
|
-
offset: {
|
|
889
|
-
type: Number,
|
|
890
|
-
value: 0
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
styles: [
|
|
894
|
-
Kt,
|
|
895
|
-
Jt,
|
|
896
|
-
z`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`
|
|
897
|
-
]
|
|
898
|
-
}
|
|
899
|
-
);
|
|
900
|
-
customElements.define("calendar-month", He);
|
|
901
|
-
function Nt(e) {
|
|
902
|
-
return /* @__PURE__ */ y(
|
|
903
|
-
"button",
|
|
904
|
-
{
|
|
905
|
-
part: `button ${e.name} ${e.onclick ? "" : "disabled"}`,
|
|
906
|
-
onclick: e.onclick,
|
|
907
|
-
"aria-disabled": e.onclick ? null : "true",
|
|
908
|
-
children: /* @__PURE__ */ y("slot", { name: e.name, children: e.children })
|
|
909
|
-
}
|
|
910
|
-
);
|
|
911
|
-
}
|
|
912
|
-
function ut(e) {
|
|
913
|
-
const t = S(e.page.start), n = S(e.page.end);
|
|
914
|
-
return /* @__PURE__ */ U("div", { role: "group", "aria-labelledby": "h", part: "container", children: [
|
|
915
|
-
/* @__PURE__ */ y("div", { id: "h", class: "vh", "aria-live": "polite", "aria-atomic": "true", children: e.formatVerbose.formatRange(t, n) }),
|
|
916
|
-
/* @__PURE__ */ U("div", { part: "header", children: [
|
|
917
|
-
/* @__PURE__ */ y(Nt, { name: "previous", onclick: e.previous, children: "Previous" }),
|
|
918
|
-
/* @__PURE__ */ y("slot", { part: "heading", name: "heading", children: /* @__PURE__ */ y("div", { "aria-hidden": "true", children: e.format.formatRange(t, n) }) }),
|
|
919
|
-
/* @__PURE__ */ y(Nt, { name: "next", onclick: e.next, children: "Next" })
|
|
920
|
-
] }),
|
|
921
|
-
/* @__PURE__ */ y(
|
|
922
|
-
lt,
|
|
923
|
-
{
|
|
924
|
-
value: e,
|
|
925
|
-
onselectday: e.onSelect,
|
|
926
|
-
onfocusday: e.onFocus,
|
|
927
|
-
onhoverday: e.onHover,
|
|
928
|
-
children: /* @__PURE__ */ y("slot", {})
|
|
929
|
-
}
|
|
930
|
-
)
|
|
931
|
-
] });
|
|
932
|
-
}
|
|
933
|
-
const ft = {
|
|
934
|
-
value: {
|
|
935
|
-
type: String,
|
|
936
|
-
value: ""
|
|
937
|
-
},
|
|
938
|
-
min: {
|
|
939
|
-
type: String,
|
|
940
|
-
value: ""
|
|
941
|
-
},
|
|
942
|
-
max: {
|
|
943
|
-
type: String,
|
|
944
|
-
value: ""
|
|
945
|
-
},
|
|
946
|
-
isDateDisallowed: {
|
|
947
|
-
type: Function,
|
|
948
|
-
value: (e) => !1
|
|
949
|
-
},
|
|
950
|
-
firstDayOfWeek: {
|
|
951
|
-
type: Number,
|
|
952
|
-
value: () => 1
|
|
953
|
-
},
|
|
954
|
-
showOutsideDays: {
|
|
955
|
-
type: Boolean,
|
|
956
|
-
value: !1
|
|
957
|
-
},
|
|
958
|
-
locale: {
|
|
959
|
-
type: String,
|
|
960
|
-
value: () => {
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
|
-
months: {
|
|
964
|
-
type: Number,
|
|
965
|
-
value: 1
|
|
966
|
-
},
|
|
967
|
-
focusedDate: {
|
|
968
|
-
type: String,
|
|
969
|
-
value: () => {
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
pageBy: {
|
|
973
|
-
type: String,
|
|
974
|
-
value: () => "months"
|
|
975
|
-
}
|
|
976
|
-
}, dt = [
|
|
977
|
-
Kt,
|
|
978
|
-
Jt,
|
|
979
|
-
z`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`
|
|
980
|
-
], Ke = { year: "numeric" }, Je = { year: "numeric", month: "long" };
|
|
981
|
-
function V(e, t) {
|
|
982
|
-
return (t.year - e.year) * 12 + t.month - e.month;
|
|
983
|
-
}
|
|
984
|
-
const kt = (e, t) => (e = t === 12 ? new K(e.year, 1) : e, {
|
|
985
|
-
start: e,
|
|
986
|
-
end: e.add({ months: t - 1 })
|
|
987
|
-
});
|
|
988
|
-
function Ze({
|
|
989
|
-
pageBy: e,
|
|
990
|
-
focusedDate: t,
|
|
991
|
-
months: n,
|
|
992
|
-
max: s,
|
|
993
|
-
min: r,
|
|
994
|
-
goto: o
|
|
995
|
-
}) {
|
|
996
|
-
const c = e === "single" ? 1 : n, [u, a] = rt(
|
|
997
|
-
() => kt(t.toPlainYearMonth(), n)
|
|
998
|
-
), i = (d) => a(kt(u.start.add({ months: d }), n)), f = (d) => {
|
|
999
|
-
const l = V(u.start, d.toPlainYearMonth());
|
|
1000
|
-
return l >= 0 && l < n;
|
|
1001
|
-
};
|
|
1002
|
-
return $(() => {
|
|
1003
|
-
if (f(t))
|
|
1004
|
-
return;
|
|
1005
|
-
const d = V(t.toPlainYearMonth(), u.start);
|
|
1006
|
-
o(t.add({ months: d }));
|
|
1007
|
-
}, [u.start]), $(() => {
|
|
1008
|
-
if (f(t))
|
|
1009
|
-
return;
|
|
1010
|
-
const d = V(u.start, t.toPlainYearMonth());
|
|
1011
|
-
i(d === -1 ? -c : d === n ? c : Math.floor(d / n) * n);
|
|
1012
|
-
}, [t, c, n]), {
|
|
1013
|
-
page: u,
|
|
1014
|
-
previous: !r || !f(r) ? () => i(-c) : void 0,
|
|
1015
|
-
next: !s || !f(s) ? () => i(c) : void 0
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
function ht({
|
|
1019
|
-
months: e,
|
|
1020
|
-
pageBy: t,
|
|
1021
|
-
locale: n,
|
|
1022
|
-
focusedDate: s,
|
|
1023
|
-
setFocusedDate: r
|
|
1024
|
-
}) {
|
|
1025
|
-
const [o] = P("min"), [c] = P("max"), u = C("focusday"), a = C("change"), i = T(
|
|
1026
|
-
() => H(s ?? it(), o, c),
|
|
1027
|
-
[s, o, c]
|
|
1028
|
-
);
|
|
1029
|
-
function f(h) {
|
|
1030
|
-
r(h), u(S(h));
|
|
1031
|
-
}
|
|
1032
|
-
const { next: d, previous: l, page: m } = Ze({
|
|
1033
|
-
pageBy: t,
|
|
1034
|
-
focusedDate: i,
|
|
1035
|
-
months: e,
|
|
1036
|
-
min: o,
|
|
1037
|
-
max: c,
|
|
1038
|
-
goto: f
|
|
1039
|
-
}), v = _();
|
|
1040
|
-
function p() {
|
|
1041
|
-
v.current.querySelectorAll("calendar-month").forEach((h) => h.focus());
|
|
1042
|
-
}
|
|
1043
|
-
return {
|
|
1044
|
-
format: L(Ke, n),
|
|
1045
|
-
formatVerbose: L(Je, n),
|
|
1046
|
-
page: m,
|
|
1047
|
-
focusedDate: i,
|
|
1048
|
-
dispatch: a,
|
|
1049
|
-
onFocus(h) {
|
|
1050
|
-
h.stopPropagation(), f(h.detail), setTimeout(p);
|
|
1051
|
-
},
|
|
1052
|
-
min: o,
|
|
1053
|
-
max: c,
|
|
1054
|
-
next: d,
|
|
1055
|
-
previous: l,
|
|
1056
|
-
focus: p
|
|
1057
|
-
};
|
|
1058
|
-
}
|
|
1059
|
-
const We = j(
|
|
1060
|
-
(e) => {
|
|
1061
|
-
const [t, n] = P("value"), [s = t, r] = P("focusedDate"), o = ht({
|
|
1062
|
-
...e,
|
|
1063
|
-
focusedDate: s,
|
|
1064
|
-
setFocusedDate: r
|
|
1065
|
-
});
|
|
1066
|
-
function c(u) {
|
|
1067
|
-
n(u.detail), o.dispatch();
|
|
1068
|
-
}
|
|
1069
|
-
return /* @__PURE__ */ y("host", { shadowDom: !0, focus: o.focus, children: /* @__PURE__ */ y(
|
|
1070
|
-
ut,
|
|
1071
|
-
{
|
|
1072
|
-
...e,
|
|
1073
|
-
...o,
|
|
1074
|
-
type: "date",
|
|
1075
|
-
value: t,
|
|
1076
|
-
onSelect: c
|
|
1077
|
-
}
|
|
1078
|
-
) });
|
|
1079
|
-
},
|
|
1080
|
-
{ props: ft, styles: dt }
|
|
1081
|
-
);
|
|
1082
|
-
customElements.define("calendar-date", We);
|
|
1083
|
-
const Ot = (e, t) => E.compare(e, t) < 0 ? [e, t] : [t, e], Xe = j(
|
|
1084
|
-
(e) => {
|
|
1085
|
-
const [t, n] = _e("value"), [s = t[0], r] = P("focusedDate"), o = ht({
|
|
1086
|
-
...e,
|
|
1087
|
-
focusedDate: s,
|
|
1088
|
-
setFocusedDate: r
|
|
1089
|
-
}), c = C("rangestart"), u = C("rangeend"), [a, i] = P(
|
|
1090
|
-
"tentative"
|
|
1091
|
-
), [f, d] = rt();
|
|
1092
|
-
$(() => d(void 0), [a]);
|
|
1093
|
-
function l(h) {
|
|
1094
|
-
o.onFocus(h), m(h);
|
|
1095
|
-
}
|
|
1096
|
-
function m(h) {
|
|
1097
|
-
h.stopPropagation(), a && d(h.detail);
|
|
1098
|
-
}
|
|
1099
|
-
function v(h) {
|
|
1100
|
-
const b = h.detail;
|
|
1101
|
-
h.stopPropagation(), a ? (n(Ot(a, b)), i(void 0), u(S(b)), o.dispatch()) : (i(b), c(S(b)));
|
|
1102
|
-
}
|
|
1103
|
-
const p = a ? Ot(a, f ?? a) : t;
|
|
1104
|
-
return /* @__PURE__ */ y("host", { shadowDom: !0, focus: o.focus, children: /* @__PURE__ */ y(
|
|
1105
|
-
ut,
|
|
1106
|
-
{
|
|
1107
|
-
...e,
|
|
1108
|
-
...o,
|
|
1109
|
-
type: "range",
|
|
1110
|
-
value: p,
|
|
1111
|
-
onFocus: l,
|
|
1112
|
-
onHover: m,
|
|
1113
|
-
onSelect: v
|
|
1114
|
-
}
|
|
1115
|
-
) });
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
props: {
|
|
1119
|
-
...ft,
|
|
1120
|
-
tentative: {
|
|
1121
|
-
type: String,
|
|
1122
|
-
value: ""
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1125
|
-
styles: dt
|
|
1126
|
-
}
|
|
1127
|
-
);
|
|
1128
|
-
customElements.define("calendar-range", Xe);
|
|
1129
|
-
const Ge = j(
|
|
1130
|
-
(e) => {
|
|
1131
|
-
const [t, n] = je("value"), [s = t[0], r] = P("focusedDate"), o = ht({
|
|
1132
|
-
...e,
|
|
1133
|
-
focusedDate: s,
|
|
1134
|
-
setFocusedDate: r
|
|
1135
|
-
});
|
|
1136
|
-
function c(u) {
|
|
1137
|
-
const a = [...t], i = t.findIndex((f) => f.equals(u.detail));
|
|
1138
|
-
i < 0 ? a.push(u.detail) : a.splice(i, 1), n(a), o.dispatch();
|
|
1139
|
-
}
|
|
1140
|
-
return /* @__PURE__ */ y("host", { shadowDom: !0, focus: o.focus, children: /* @__PURE__ */ y(
|
|
1141
|
-
ut,
|
|
1142
|
-
{
|
|
1143
|
-
...e,
|
|
1144
|
-
...o,
|
|
1145
|
-
type: "multi",
|
|
1146
|
-
value: t,
|
|
1147
|
-
onSelect: c
|
|
1148
|
-
}
|
|
1149
|
-
) });
|
|
1150
|
-
},
|
|
1151
|
-
{ props: ft, styles: dt }
|
|
1152
|
-
);
|
|
1153
|
-
customElements.define("calendar-multi", Ge);
|
|
1154
|
-
|
|
1155
|
-
export { We as CalendarDate, He as CalendarMonth, Ge as CalendarMulti, Xe as CalendarRange };
|
|
1156
|
-
|
|
1157
|
-
//# sourceMappingURL=cally-49a83be1.js.map
|