@blueprintui/cli 0.0.7 → 0.0.10
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/README.md +22 -2
- package/package.json +21 -21
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/.tsbuildinfo +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/alert/element.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/alert/element.js +11 -10
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/breadcrumb/element.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/breadcrumb/element.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/button-icon/element.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/datalist/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/datalist/element.js +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/date/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/date/element.js +1 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/drawer/element.d.ts +1 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/drawer/element.js +4 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/file/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/file/element.js +4 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control/element.d.ts +7 -27
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control/element.js +39 -134
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-group/element.d.ts +5 -17
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-group/element.js +17 -36
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-inline/element.d.ts +0 -9
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-inline/element.js +6 -39
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-label/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-label/element.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-message/element.d.ts +3 -18
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-message/element.js +4 -13
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/form-group/element.d.ts +0 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/form-group/element.js +5 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/context.d.ts +2 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/utils.d.ts +3 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/utils.js +28 -20
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/validate.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/validate.js +19 -17
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/alert.d.ts +7 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/alert.js +7 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/all.d.ts +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/all.js +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-expand.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-expand.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-handle.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-handle.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-icon.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-icon.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-sort.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-sort.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/color.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/color.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/date.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/date.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/drawer.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/drawer.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/file.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/file.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/forms.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/forms.js +5 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/lazy.d.ts +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/lazy.js +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/modal.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/modal.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/month.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/month.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/nav.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/nav.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/pagination.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/pagination.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/password.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/password.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/search.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/search.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/time.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/time.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/{base → components}/button.d.ts +5 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/{base → components}/button.js +5 -9
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-active.controller.d.ts +1 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-active.controller.js +8 -5
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-control.controller.d.ts +17 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-control.controller.js +67 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-disabled.controller.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-pressed.controller.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-readonly.controller.d.ts +12 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-readonly.controller.js +22 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-selected.controller.d.ts +13 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-selected.controller.js +29 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-anchor.controller.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-button.controller.d.ts +10 -5
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-button.controller.js +51 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-closable.controller.d.ts +14 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-closable.controller.js +30 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-dialog.controller.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-form.controller.d.ts +27 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-form.controller.js +34 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-popup.controller.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/index.d.ts +6 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/index.js +6 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/services/global.service.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/services/global.service.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/a11y.d.ts +1 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/a11y.js +7 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/dom.d.ts +1 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/dom.js +8 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/events.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/events.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/month/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/month/element.js +1 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/element.d.ts +28 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/element.js +13 -10
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/item/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/item/element.js +11 -16
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/popup/element.d.ts +4 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/popup/element.js +4 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/element.js +4 -13
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/group/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/group/element.js +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/range/element.d.ts +0 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/range/element.js +0 -15
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/select/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/select/element.js +1 -15
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/test/index.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/test/index.js +6 -36
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/textarea/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/textarea/element.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/time/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/time/element.js +1 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/tooltip/element.js +1 -1
- package/src/index.mjs +31 -1
- package/src/rollup.config.mjs +14 -18
- package/src/utils.mjs +26 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/element.d.ts +0 -35
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/element.js +0 -91
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/index.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/index.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/angle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/angle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/calendar.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/calendar.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/check-circle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/check-circle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/clock.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/clock.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/close.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/close.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/cloud.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/cloud.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/color-picker.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/color-picker.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/drag-handle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/drag-handle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/ellipsis-vertical.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/ellipsis-vertical.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/exclamation-circle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/exclamation-circle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye-hide.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye-hide.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/filter.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/filter.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/folder.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/folder.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/home.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/home.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/icon.service.d.ts +0 -5
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/icon.service.js +0 -17
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/image.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/image.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/index.d.ts +0 -25
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/index.js +0 -25
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/info-circle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/info-circle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/interfaces.d.ts +0 -10
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/interfaces.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/menu.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/menu.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/search.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/search.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/step-forward-two.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/step-forward-two.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/times.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/times.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/unknown.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/unknown.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/user.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/user.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/warning.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/warning.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/icon.d.ts +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/icon.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/link.d.ts +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/link.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/list.d.ts +0 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/list.js +0 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/text.d.ts +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/text.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-submit.controller.d.ts +0 -15
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-submit.controller.js +0 -64
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/element.d.ts +0 -22
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/element.js +0 -40
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/index.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/index.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/element.d.ts +0 -19
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/element.js +0 -32
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/index.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/index.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/item/element.d.ts +0 -18
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/item/element.js +0 -26
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/element.d.ts +0 -25
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/element.js +0 -60
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/index.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/index.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
-
import { getElementUpdates } from '@blueprintui/components/internals';
|
|
3
2
|
import { BpControl, ControlLabelLayout } from '../control/element.js';
|
|
4
3
|
import { getStatusIcon } from '../utils/utils.js';
|
|
5
4
|
import styles from './element.css' assert { type: 'css' };
|
|
@@ -21,57 +20,25 @@ import styles from './element.css' assert { type: 'css' };
|
|
|
21
20
|
* @slot - For projecting inline input and label
|
|
22
21
|
*/
|
|
23
22
|
export class BpInternalControlInline extends BpControl {
|
|
24
|
-
static properties = {
|
|
25
|
-
controlAlign: { type: String, reflect: true, attribute: 'control-align' },
|
|
26
|
-
isControlGroup: { state: true },
|
|
27
|
-
checked: { type: Boolean, reflect: true, attribute: '_checked' },
|
|
28
|
-
indeterminate: { type: Boolean, reflect: true, attribute: '_indeterminate' }
|
|
29
|
-
};
|
|
30
|
-
supportsPrefixSuffixActions = false;
|
|
31
23
|
static get styles() {
|
|
32
24
|
return [...super.styles, styles];
|
|
33
25
|
}
|
|
34
|
-
//__BLANK_LINE_PLACEHOLDER_G1JVXUEBNCL6YN5NFE13MD1PT3H9OIHB__
|
|
35
|
-
constructor() {
|
|
36
|
-
super();
|
|
37
|
-
/** Align the labels of controls within group left or right */
|
|
38
|
-
this.controlAlign = 'left';
|
|
39
|
-
this.checked = false;
|
|
40
|
-
this.indeterminate = false;
|
|
41
|
-
}
|
|
42
26
|
render() {
|
|
43
27
|
return html `
|
|
44
28
|
<div class="private-host">
|
|
45
29
|
<div class="control-inline-label-container">
|
|
46
30
|
<slot name="input"></slot>
|
|
47
31
|
${this.labelLayout !== ControlLabelLayout.ariaLabel ? html `
|
|
48
|
-
<bp-internal-control-label action="secondary"
|
|
49
|
-
<slot name="label"
|
|
32
|
+
<bp-internal-control-label action="secondary">
|
|
33
|
+
<slot name="label"></slot>
|
|
50
34
|
</bp-internal-control-label>` : ''}
|
|
51
35
|
</div>
|
|
52
36
|
${this.messages?.length ? html `
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</div>
|
|
58
|
-
</div>` : ''}
|
|
37
|
+
<div class="control-inline-messages-container">
|
|
38
|
+
${getStatusIcon()}
|
|
39
|
+
<slot name="message"></slot>
|
|
40
|
+
</div>` : ''}
|
|
59
41
|
</div>
|
|
60
42
|
`;
|
|
61
43
|
}
|
|
62
|
-
firstUpdated(props) {
|
|
63
|
-
super.firstUpdated(props);
|
|
64
|
-
this.inputControl.addEventListener('change', () => (this.checked = this.inputControl.checked));
|
|
65
|
-
this.observers.push(getElementUpdates(this.inputControl, 'checked', (value) => (this.checked = value === '' ? true : value)), getElementUpdates(this.inputControl, 'indeterminate', (value) => (this.indeterminate = value === '' ? true : value)));
|
|
66
|
-
}
|
|
67
|
-
updated(props) {
|
|
68
|
-
super.updated(props);
|
|
69
|
-
if (props.has('indeterminate') && props.get('indeterminate') !== this.indeterminate && this.indeterminate) {
|
|
70
|
-
this.checked = false;
|
|
71
|
-
}
|
|
72
|
-
if (props.has('checked') && props.get('checked') !== this.checked && this.checked) {
|
|
73
|
-
this.indeterminate = false;
|
|
74
|
-
this.dispatchEvent(new CustomEvent('checkedChange', { bubbles: !this.isControlGroup, detail: this.checked })); // if not a group then bubble to notify the other associated controls
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
44
|
}
|
|
@@ -17,7 +17,6 @@ import { LitElement } from 'lit';
|
|
|
17
17
|
* @cssprop --label-width
|
|
18
18
|
*/
|
|
19
19
|
export declare class BpInternalControlLabel extends LitElement {
|
|
20
|
-
disabled: boolean;
|
|
21
20
|
action: 'primary' | 'secondary';
|
|
22
21
|
static styles: CSSStyleSheet[];
|
|
23
22
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -20,14 +20,12 @@ import styles from './element.css' assert { type: 'css' };
|
|
|
20
20
|
*/
|
|
21
21
|
export class BpInternalControlLabel extends LitElement {
|
|
22
22
|
static properties = {
|
|
23
|
-
disabled: { type: Boolean, reflect: true },
|
|
24
23
|
action: { type: String, reflect: true }
|
|
25
24
|
};
|
|
26
25
|
static styles = [baseStyles, styles];
|
|
27
26
|
//__BLANK_LINE_PLACEHOLDER_G1JVXUEBNCL6YN5NFE13MD1PT3H9OIHB__
|
|
28
27
|
constructor() {
|
|
29
28
|
super();
|
|
30
|
-
this.disabled = false;
|
|
31
29
|
this.action = 'primary';
|
|
32
30
|
}
|
|
33
31
|
render() {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { ContextConsumer } from '@lit-labs/context';
|
|
3
|
-
import { ControlStatus } from '../utils/interfaces.js';
|
|
4
|
-
import { ValidityStateKey } from '../utils/validate.js';
|
|
5
2
|
/**
|
|
6
3
|
* Control Message
|
|
7
4
|
*
|
|
@@ -26,23 +23,11 @@ import { ValidityStateKey } from '../utils/validate.js';
|
|
|
26
23
|
* @cssprop --min-width
|
|
27
24
|
*/
|
|
28
25
|
export declare class BpControlMessage extends LitElement {
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
* @type {neutral | error | success}
|
|
32
|
-
*/
|
|
33
|
-
status: ControlStatus;
|
|
26
|
+
/** Set the status of form control message validation */
|
|
27
|
+
status: 'neutral' | 'error' | 'success';
|
|
34
28
|
/** HTML5 ValidityState https://developer.mozilla.org/en-US/docs/Web/API/ValidityState */
|
|
35
|
-
error:
|
|
36
|
-
protected disabled: boolean;
|
|
29
|
+
error: keyof ValidityState;
|
|
37
30
|
static styles: CSSStyleSheet[];
|
|
38
|
-
protected controlContext: ContextConsumer<{
|
|
39
|
-
__context__: import("../utils/context.js").FormContext;
|
|
40
|
-
}, this>;
|
|
41
|
-
protected controlGroupContext: ContextConsumer<{
|
|
42
|
-
__context__: import("../utils/context.js").FormContext & {
|
|
43
|
-
isControlGroup?: boolean;
|
|
44
|
-
};
|
|
45
|
-
}, this>;
|
|
46
31
|
render(): import("lit-html").TemplateResult<1>;
|
|
47
32
|
connectedCallback(): void;
|
|
48
33
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { html, LitElement } from 'lit';
|
|
2
|
-
import {
|
|
3
|
-
import { baseStyles, syncUpdatedProps } from '@blueprintui/components/internals';
|
|
2
|
+
import { baseStyles } from '@blueprintui/components/internals';
|
|
4
3
|
import styles from './element.css' assert { type: 'css' };
|
|
5
|
-
import { controlContext, controlGroupContext } from '../utils/context.js';
|
|
6
4
|
/**
|
|
7
5
|
* Control Message
|
|
8
6
|
*
|
|
@@ -28,23 +26,16 @@ import { controlContext, controlGroupContext } from '../utils/context.js';
|
|
|
28
26
|
*/
|
|
29
27
|
export class BpControlMessage extends LitElement {
|
|
30
28
|
static properties = {
|
|
31
|
-
status: { type: String
|
|
32
|
-
error: { type: String, reflect: true }
|
|
33
|
-
disabled: { type: Boolean, reflect: true, attribute: '_disabled' }
|
|
29
|
+
status: { type: String },
|
|
30
|
+
error: { type: String, reflect: true }
|
|
34
31
|
};
|
|
35
32
|
static styles = [baseStyles, styles];
|
|
36
33
|
//__BLANK_LINE_PLACEHOLDER_G1JVXUEBNCL6YN5NFE13MD1PT3H9OIHB__
|
|
37
34
|
constructor() {
|
|
38
35
|
super();
|
|
39
|
-
/**
|
|
40
|
-
* Set the status of form control message validation
|
|
41
|
-
* @type {neutral | error | success}
|
|
42
|
-
*/
|
|
36
|
+
/** Set the status of form control message validation */
|
|
43
37
|
this.status = 'neutral';
|
|
44
|
-
this.disabled = false;
|
|
45
38
|
}
|
|
46
|
-
controlContext = new ContextConsumer(this, controlContext, (value) => syncUpdatedProps(this, value), true);
|
|
47
|
-
controlGroupContext = new ContextConsumer(this, controlGroupContext, (value) => syncUpdatedProps(this, value), true);
|
|
48
39
|
render() {
|
|
49
40
|
return html `
|
|
50
41
|
<div class="private-host">
|
|
@@ -31,9 +31,6 @@ export declare class BpFormGroup extends LitElement {
|
|
|
31
31
|
layout: FormLayout;
|
|
32
32
|
controlWidth: ControlWidth;
|
|
33
33
|
responsive: boolean;
|
|
34
|
-
/** validate attribute to sync with HTML5 native validation https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation */
|
|
35
|
-
validate: boolean;
|
|
36
|
-
protected observers: (MutationObserver | ResizeObserver)[];
|
|
37
34
|
static styles: CSSStyleSheet[];
|
|
38
35
|
render(): import("lit-html").TemplateResult<1>;
|
|
39
36
|
firstUpdated(props: PropertyValues<this>): void;
|
|
@@ -33,8 +33,7 @@ export class BpFormGroup extends LitElement {
|
|
|
33
33
|
static properties = {
|
|
34
34
|
layout: { type: String, reflect: true },
|
|
35
35
|
controlWidth: { type: String, reflect: true, attribute: 'control-width' },
|
|
36
|
-
responsive: { type: Boolean, reflect: true }
|
|
37
|
-
validate: { type: Boolean, reflect: true }
|
|
36
|
+
responsive: { type: Boolean, reflect: true }
|
|
38
37
|
};
|
|
39
38
|
get #controls() {
|
|
40
39
|
return this.querySelectorAll('[bp-control]');
|
|
@@ -42,7 +41,7 @@ export class BpFormGroup extends LitElement {
|
|
|
42
41
|
get #groups() {
|
|
43
42
|
return this.querySelectorAll('[bp-control-group]');
|
|
44
43
|
}
|
|
45
|
-
observers = [];
|
|
44
|
+
#observers = [];
|
|
46
45
|
get #controlsAndGroups() {
|
|
47
46
|
return [...Array.from(this.#groups), ...Array.from(this.#controls)];
|
|
48
47
|
}
|
|
@@ -53,8 +52,6 @@ export class BpFormGroup extends LitElement {
|
|
|
53
52
|
/** @type {horizontal | horizontal-inline | vertical | vertical-inline | compact} */
|
|
54
53
|
this.layout = defaultFormLayout;
|
|
55
54
|
this.responsive = true;
|
|
56
|
-
/** validate attribute to sync with HTML5 native validation https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation */
|
|
57
|
-
this.validate = false;
|
|
58
55
|
}
|
|
59
56
|
render() {
|
|
60
57
|
return html `
|
|
@@ -70,16 +67,16 @@ export class BpFormGroup extends LitElement {
|
|
|
70
67
|
this.#internals.role = 'group';
|
|
71
68
|
this.#syncLayouts();
|
|
72
69
|
this.#setControlLabelWidths();
|
|
73
|
-
this
|
|
70
|
+
this.#observers.push(elementVisible(this, () => this.#setControlLabelWidths()));
|
|
74
71
|
}
|
|
75
72
|
#formContext = new ContextProvider(this, formContext, {});
|
|
76
73
|
updated(props) {
|
|
77
74
|
super.updated(props);
|
|
78
|
-
this.#formContext.setValue({ layout: this.layout, responsive: this.responsive, controlWidth: this.controlWidth
|
|
75
|
+
this.#formContext.setValue({ layout: this.layout, responsive: this.responsive, controlWidth: this.controlWidth });
|
|
79
76
|
}
|
|
80
77
|
disconnectedCallback() {
|
|
81
78
|
super.disconnectedCallback();
|
|
82
|
-
this
|
|
79
|
+
this.#observers.forEach(o => o.disconnect());
|
|
83
80
|
}
|
|
84
81
|
async #setControlLabelWidths() {
|
|
85
82
|
if (this.layout === 'horizontal' || this.layout === 'horizontal-inline' || this.layout === 'compact') {
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ControlWidth, FormLayout } from './interfaces.js';
|
|
2
2
|
export interface FormContext {
|
|
3
3
|
layout?: FormLayout;
|
|
4
4
|
responsive?: boolean;
|
|
5
|
-
status?: ControlStatus;
|
|
6
|
-
disabled?: boolean;
|
|
7
5
|
controlWidth?: ControlWidth;
|
|
8
|
-
validate?: boolean;
|
|
9
6
|
}
|
|
10
7
|
export declare const formContext: {
|
|
11
8
|
__context__: FormContext;
|
|
12
9
|
};
|
|
13
10
|
export declare const controlGroupContext: {
|
|
14
|
-
__context__: FormContext
|
|
15
|
-
isControlGroup?: boolean;
|
|
16
|
-
};
|
|
11
|
+
__context__: FormContext;
|
|
17
12
|
};
|
|
18
13
|
export declare const controlContext: {
|
|
19
14
|
__context__: FormContext;
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { ControlLayout, FormLayout } from './interfaces.js';
|
|
2
2
|
import { BpControl } from '../control/element.js';
|
|
3
|
-
import { BpControlMessage } from '../control-message/element.js';
|
|
4
3
|
import { BpInternalControlGroup } from '../control-group/element.js';
|
|
4
|
+
import { BpControlMessage } from '../control-message/element.js';
|
|
5
5
|
export declare const formLayouts: FormLayout[];
|
|
6
6
|
export declare const defaultFormLayout = "horizontal";
|
|
7
7
|
export declare const defaultControlWidth = "stretch";
|
|
8
8
|
export declare function associateInputAndLabel(input: HTMLInputElement, label: HTMLLabelElement): void;
|
|
9
9
|
export declare function associateInputToDatalist(input: HTMLInputElement, datalist: HTMLDataListElement): void;
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function setupControlMessageStatusUpdates(messages: BpControlMessage[], control: BpControl | BpInternalControlGroup): void;
|
|
11
11
|
export declare const layoutGroupToControlMapper: {
|
|
12
12
|
[key: string]: ControlLayout;
|
|
13
13
|
};
|
|
14
|
-
export declare function getStatusIcon(
|
|
14
|
+
export declare function getStatusIcon(): import("lit-html").TemplateResult<1>;
|
|
15
15
|
export declare function getLargestPrimaryLabelWidth(controls: (BpControl | BpInternalControlGroup)[]): Promise<string>;
|
|
16
16
|
export declare function controlIsWrapped(input: HTMLElement, label: HTMLElement, layout: FormLayout): boolean;
|
|
17
17
|
export declare function inlineControlListIsWrapped(inlineControls: BpControl[], layout: FormLayout): boolean;
|
|
18
18
|
export declare function isVerticalLayout(layout: FormLayout): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Returns updated message status unless hidden then returns 'neutral'
|
|
21
|
-
*/
|
|
22
|
-
export declare function getCurrentMessageStatus(messages: BpControlMessage[]): Promise<import("./interfaces.js").ControlStatus>;
|
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
-
import { createId } from '@blueprintui/components/internals';
|
|
2
|
+
import { createId, listenForAttributeListChange } from '@blueprintui/components/internals';
|
|
3
3
|
export const formLayouts = ['vertical', 'vertical-inline', 'horizontal', 'horizontal-inline', 'compact'];
|
|
4
4
|
export const defaultFormLayout = 'horizontal';
|
|
5
5
|
export const defaultControlWidth = 'stretch';
|
|
6
6
|
export function associateInputAndLabel(input, label) {
|
|
7
7
|
if (input && label) {
|
|
8
|
-
|
|
8
|
+
input.id = input.id?.length ? input.id : createId();
|
|
9
9
|
label.setAttribute('for', input.id);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export function associateInputToDatalist(input, datalist) {
|
|
13
13
|
if (datalist) {
|
|
14
|
-
|
|
14
|
+
input.id = input.id?.length ? input.id : createId();
|
|
15
15
|
datalist.id = `${input.id}-datalist`;
|
|
16
16
|
input.setAttribute('list', datalist.id);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
// todo: test
|
|
20
|
+
export function setupControlMessageStatusUpdates(messages, control) {
|
|
21
|
+
const update = (message) => {
|
|
22
|
+
control._internals.states.delete('--error');
|
|
23
|
+
control._internals.states.delete('--success');
|
|
24
|
+
if (!message.hidden && message.status?.length) {
|
|
25
|
+
control._internals.states.add(`--${message.status}`);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const message = Array.from(messages).find(m => !m.hidden);
|
|
29
|
+
if (message) {
|
|
30
|
+
update(message);
|
|
22
31
|
}
|
|
32
|
+
listenForAttributeListChange(control, ['hidden', 'status'], ({ target }) => {
|
|
33
|
+
if (target.tagName === 'BP-CONTROL-MESSAGE') {
|
|
34
|
+
update(target);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
23
37
|
}
|
|
24
38
|
export const layoutGroupToControlMapper = {
|
|
25
39
|
'horizontal-inline': 'horizontal',
|
|
@@ -28,11 +42,13 @@ export const layoutGroupToControlMapper = {
|
|
|
28
42
|
vertical: 'vertical',
|
|
29
43
|
compact: 'compact',
|
|
30
44
|
};
|
|
31
|
-
export function getStatusIcon(
|
|
32
|
-
return html
|
|
33
|
-
|
|
34
|
-
<bp-icon
|
|
35
|
-
|
|
45
|
+
export function getStatusIcon() {
|
|
46
|
+
return html `
|
|
47
|
+
<bp-button-icon readonly class="status">
|
|
48
|
+
<bp-icon status="danger" shape="exclamation-circle" size="sm" inner-offset="2"></bp-icon>
|
|
49
|
+
<bp-icon status="success" shape="check-circle" size="sm" inner-offset="2"></bp-icon>
|
|
50
|
+
</bp-button-icon>
|
|
51
|
+
`;
|
|
36
52
|
}
|
|
37
53
|
export async function getLargestPrimaryLabelWidth(controls) {
|
|
38
54
|
return Promise.all(controls.map(c => c.updateComplete)).then(() => {
|
|
@@ -43,7 +59,7 @@ export async function getLargestPrimaryLabelWidth(controls) {
|
|
|
43
59
|
export function controlIsWrapped(input, label, layout) {
|
|
44
60
|
return (layout !== 'vertical' &&
|
|
45
61
|
layout !== 'vertical-inline' &&
|
|
46
|
-
input.getBoundingClientRect().top > label?.getBoundingClientRect().top + 12 // 12px buffer for rounding
|
|
62
|
+
input.getBoundingClientRect().top > label?.getBoundingClientRect().top + 12 // 12px buffer for rounding
|
|
47
63
|
);
|
|
48
64
|
}
|
|
49
65
|
export function inlineControlListIsWrapped(inlineControls, layout) {
|
|
@@ -55,11 +71,3 @@ export function inlineControlListIsWrapped(inlineControls, layout) {
|
|
|
55
71
|
export function isVerticalLayout(layout) {
|
|
56
72
|
return layout === 'vertical' || layout === 'vertical-inline';
|
|
57
73
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Returns updated message status unless hidden then returns 'neutral'
|
|
60
|
-
*/
|
|
61
|
-
export async function getCurrentMessageStatus(messages) {
|
|
62
|
-
const message = messages.find(m => m.status !== 'neutral');
|
|
63
|
-
await message?.updateComplete;
|
|
64
|
-
return message && !message.hidden ? message.status : 'neutral';
|
|
65
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { BpControlMessage } from '../control-message/element.js';
|
|
2
2
|
import { BpControl } from '../control/element.js';
|
|
3
|
-
export declare type ValidityStateKey = 'valueMissing' | 'badInput' | 'customError' | 'patternMismatch' | 'rangeOverflow' | 'rangeUnderflow' | 'stepMismatch' | 'tooLong' | 'tooShort' | 'typeMismatch' | 'valid';
|
|
4
3
|
export declare function syncHTML5Validation(control: BpControl, messages: BpControlMessage[]): void;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
export function syncHTML5Validation(control, messages) {
|
|
2
|
-
|
|
3
|
-
.filter(m => m.hasAttribute('error'))
|
|
4
|
-
.forEach(m => {
|
|
5
|
-
m.setAttribute('hidden', '');
|
|
6
|
-
m.status = 'error';
|
|
7
|
-
});
|
|
8
|
-
control.inputControl.addEventListener('blur', () => control.inputControl.checkValidity());
|
|
9
|
-
control.inputControl.addEventListener('invalid', () => {
|
|
10
|
-
messages.forEach(message => message.setAttribute('hidden', ''));
|
|
11
|
-
messages.find(message => control.inputControl.validity[message.error])?.removeAttribute('hidden');
|
|
12
|
-
control.status = 'error';
|
|
13
|
-
});
|
|
14
|
-
control.inputControl.addEventListener('input', () => {
|
|
15
|
-
control.status = control.inputControl.validity.valid ? 'neutral' : control.status;
|
|
2
|
+
if (!control.inputControl?.form?.noValidate) {
|
|
16
3
|
messages
|
|
17
|
-
.filter(m =>
|
|
18
|
-
.forEach(
|
|
19
|
-
|
|
4
|
+
.filter(m => m.hasAttribute('error'))
|
|
5
|
+
.forEach(m => {
|
|
6
|
+
m.setAttribute('hidden', '');
|
|
7
|
+
m.status = 'error';
|
|
8
|
+
});
|
|
9
|
+
control.inputControl.addEventListener('invalid', () => {
|
|
10
|
+
messages.forEach(message => message.setAttribute('hidden', ''));
|
|
11
|
+
messages.find(message => control.inputControl.validity[message.error])?.removeAttribute('hidden');
|
|
12
|
+
});
|
|
13
|
+
control.inputControl.addEventListener('input', () => {
|
|
14
|
+
if (control.inputControl.validity.valid) {
|
|
15
|
+
messages.filter(m => !m.hasAttribute('error')).forEach(m => m.removeAttribute('hidden'));
|
|
16
|
+
}
|
|
17
|
+
messages
|
|
18
|
+
.filter(m => control.inputControl.validity.valid && m.error && !control.inputControl.validity[m.error])
|
|
19
|
+
.forEach(message => message.setAttribute('hidden', ''));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
20
22
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
6
|
-
import '@blueprintui/
|
|
7
|
-
import '@blueprintui/
|
|
8
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/ellipsis-vertical.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/info-circle.js';
|
|
6
|
+
import '@blueprintui/icons/shapes/check-circle.js';
|
|
7
|
+
import '@blueprintui/icons/shapes/warning.js';
|
|
8
|
+
import '@blueprintui/icons/shapes/exclamation-circle.js';
|
|
9
9
|
import { BpAlert, BpAlertGroup } from '@blueprintui/components/alert';
|
|
10
10
|
declare global {
|
|
11
11
|
interface HTMLElementTagNameMap {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
6
|
-
import '@blueprintui/
|
|
7
|
-
import '@blueprintui/
|
|
8
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/ellipsis-vertical.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/info-circle.js';
|
|
6
|
+
import '@blueprintui/icons/shapes/check-circle.js';
|
|
7
|
+
import '@blueprintui/icons/shapes/warning.js';
|
|
8
|
+
import '@blueprintui/icons/shapes/exclamation-circle.js';
|
|
9
9
|
import { BpAlert, BpAlertGroup } from '@blueprintui/components/alert';
|
|
10
10
|
customElements.get('bp-alert') || customElements.define('bp-alert', BpAlert);
|
|
11
11
|
customElements.get('bp-alert-group') || customElements.define('bp-alert-group', BpAlertGroup);
|
|
@@ -19,11 +19,9 @@ import '@blueprintui/components/include/dropdown.js';
|
|
|
19
19
|
import '@blueprintui/components/include/file.js';
|
|
20
20
|
import '@blueprintui/components/include/forms.js';
|
|
21
21
|
import '@blueprintui/components/include/header.js';
|
|
22
|
-
import '@blueprintui/
|
|
22
|
+
import '@blueprintui/icons/include.js';
|
|
23
23
|
import '@blueprintui/components/include/input-group.js';
|
|
24
24
|
import '@blueprintui/components/include/input.js';
|
|
25
|
-
import '@blueprintui/components/include/link.js';
|
|
26
|
-
import '@blueprintui/components/include/list.js';
|
|
27
25
|
import '@blueprintui/components/include/menu.js';
|
|
28
26
|
import '@blueprintui/components/include/modal.js';
|
|
29
27
|
import '@blueprintui/components/include/month.js';
|
|
@@ -40,7 +38,6 @@ import '@blueprintui/components/include/select.js';
|
|
|
40
38
|
import '@blueprintui/components/include/switch.js';
|
|
41
39
|
import '@blueprintui/components/include/tabs.js';
|
|
42
40
|
import '@blueprintui/components/include/tag.js';
|
|
43
|
-
import '@blueprintui/components/include/text.js';
|
|
44
41
|
import '@blueprintui/components/include/textarea.js';
|
|
45
42
|
import '@blueprintui/components/include/time.js';
|
|
46
43
|
import '@blueprintui/components/include/tooltip.js';
|
|
@@ -19,11 +19,9 @@ import '@blueprintui/components/include/dropdown.js';
|
|
|
19
19
|
import '@blueprintui/components/include/file.js';
|
|
20
20
|
import '@blueprintui/components/include/forms.js';
|
|
21
21
|
import '@blueprintui/components/include/header.js';
|
|
22
|
-
import '@blueprintui/
|
|
22
|
+
import '@blueprintui/icons/include.js';
|
|
23
23
|
import '@blueprintui/components/include/input-group.js';
|
|
24
24
|
import '@blueprintui/components/include/input.js';
|
|
25
|
-
import '@blueprintui/components/include/link.js';
|
|
26
|
-
import '@blueprintui/components/include/list.js';
|
|
27
25
|
import '@blueprintui/components/include/menu.js';
|
|
28
26
|
import '@blueprintui/components/include/modal.js';
|
|
29
27
|
import '@blueprintui/components/include/month.js';
|
|
@@ -40,7 +38,6 @@ import '@blueprintui/components/include/select.js';
|
|
|
40
38
|
import '@blueprintui/components/include/switch.js';
|
|
41
39
|
import '@blueprintui/components/include/tabs.js';
|
|
42
40
|
import '@blueprintui/components/include/tag.js';
|
|
43
|
-
import '@blueprintui/components/include/text.js';
|
|
44
41
|
import '@blueprintui/components/include/textarea.js';
|
|
45
42
|
import '@blueprintui/components/include/time.js';
|
|
46
43
|
import '@blueprintui/components/include/tooltip.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
3
3
|
import { BpButtonExpand } from '@blueprintui/components/button-expand';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
3
3
|
import { BpButtonExpand } from '@blueprintui/components/button-expand';
|
|
4
4
|
customElements.get('bp-button-expand') || customElements.define('bp-button-expand', BpButtonExpand);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/drag-handle.js';
|
|
3
3
|
import { BpButtonHandle } from '@blueprintui/components/button-handle';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/drag-handle.js';
|
|
3
3
|
import { BpButtonHandle } from '@blueprintui/components/button-handle';
|
|
4
4
|
customElements.get('bp-button-handle') || customElements.define('bp-button-handle', BpButtonHandle);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/ellipsis-vertical.js';
|
|
3
3
|
import { BpButtonIcon } from '@blueprintui/components/button-icon';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/ellipsis-vertical.js';
|
|
3
3
|
import { BpButtonIcon } from '@blueprintui/components/button-icon';
|
|
4
4
|
customElements.get('bp-button-icon') || customElements.define('bp-button-icon', BpButtonIcon);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
3
3
|
import { BpButtonSort } from '@blueprintui/components/button-sort';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
3
3
|
import { BpButtonSort } from '@blueprintui/components/button-sort';
|
|
4
4
|
customElements.get('bp-button-sort') || customElements.define('bp-button-sort', BpButtonSort);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/color-picker.js';
|
|
3
3
|
import { BpColor } from '@blueprintui/components/color';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/color-picker.js';
|
|
3
3
|
import { BpColor } from '@blueprintui/components/color';
|
|
4
4
|
customElements.get('bp-color') || customElements.define('bp-color', BpColor);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/button-icon.js';
|
|
3
3
|
import '@blueprintui/components/include/dropdown.js';
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
4
|
+
import '@blueprintui/icons/include.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/calendar.js';
|
|
6
6
|
import { BpDate } from '@blueprintui/components/date';
|
|
7
7
|
declare global {
|
|
8
8
|
interface HTMLElementTagNameMap {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/button-icon.js';
|
|
3
3
|
import '@blueprintui/components/include/dropdown.js';
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
4
|
+
import '@blueprintui/icons/include.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/calendar.js';
|
|
6
6
|
import { BpDate } from '@blueprintui/components/date';
|
|
7
7
|
customElements.get('bp-date') || customElements.define('bp-date', BpDate);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
3
3
|
import { BpDrawer } from '@blueprintui/components/drawer';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
3
3
|
import { BpDrawer } from '@blueprintui/components/drawer';
|
|
4
4
|
customElements.get('bp-drawer') || customElements.define('bp-drawer', BpDrawer);
|