@dialpad/dialtone-vue 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FilterPill-DY9T19XB.cjs +2 -0
- package/dist/FilterPill-DY9T19XB.cjs.map +1 -0
- package/dist/FilterPill-IBlswKiK.js +757 -0
- package/dist/FilterPill-IBlswKiK.js.map +1 -0
- package/dist/{ForceLinkify-DuAo3TMB.js → ForceLinkify-53Zegx7z.js} +1 -1
- package/dist/{ForceLinkify-DuAo3TMB.js.map → ForceLinkify-53Zegx7z.js.map} +1 -1
- package/dist/{ForceLinkify-kQ_kWKVm.cjs → ForceLinkify-DhmBEXhe.cjs} +1 -1
- package/dist/{ForceLinkify-kQ_kWKVm.cjs.map → ForceLinkify-DhmBEXhe.cjs.map} +1 -1
- package/dist/{MarkdownRenderer-eMwmPygx.js → MarkdownRenderer-Cnbn7gje.js} +1 -1
- package/dist/{MarkdownRenderer-eMwmPygx.js.map → MarkdownRenderer-Cnbn7gje.js.map} +1 -1
- package/dist/{MarkdownRenderer-C5wdjC5_.cjs → MarkdownRenderer-a12waV7r.cjs} +1 -1
- package/dist/{MarkdownRenderer-C5wdjC5_.cjs.map → MarkdownRenderer-a12waV7r.cjs.map} +1 -1
- package/dist/{Resizable-DBRsEUf3.cjs → Resizable-DdP6uPio.cjs} +2 -2
- package/dist/{Resizable-DBRsEUf3.cjs.map → Resizable-DdP6uPio.cjs.map} +1 -1
- package/dist/{Resizable-EY7mWluI.js → Resizable-Ddsm-H14.js} +3 -3
- package/dist/{Resizable-EY7mWluI.js.map → Resizable-Ddsm-H14.js.map} +1 -1
- package/dist/{ResizableHandle-v-oU-sj-.js → ResizableHandle-DQduVxrG.js} +3 -3
- package/dist/{ResizableHandle-v-oU-sj-.js.map → ResizableHandle-DQduVxrG.js.map} +1 -1
- package/dist/{ResizableHandle-DQG7a5D9.cjs → ResizableHandle-_ldmhyEw.cjs} +2 -2
- package/dist/{ResizableHandle-DQG7a5D9.cjs.map → ResizableHandle-_ldmhyEw.cjs.map} +1 -1
- package/dist/{ResizableUtils-C9qEZRN5.js → ResizableUtils-BIRNCdKB.js} +1 -1
- package/dist/{ResizableUtils-C9qEZRN5.js.map → ResizableUtils-BIRNCdKB.js.map} +1 -1
- package/dist/{ResizableUtils-DMfertP2.cjs → ResizableUtils-BptSHmLg.cjs} +1 -1
- package/dist/{ResizableUtils-DMfertP2.cjs.map → ResizableUtils-BptSHmLg.cjs.map} +1 -1
- package/dist/{RichTextEditor-DMUDJKVn.cjs → RichTextEditor-CjyvDYID.cjs} +2 -2
- package/dist/{RichTextEditor-DMUDJKVn.cjs.map → RichTextEditor-CjyvDYID.cjs.map} +1 -1
- package/dist/{RichTextEditor-D8DfONFm.js → RichTextEditor-DhNhx5AH.js} +4 -4
- package/dist/{RichTextEditor-D8DfONFm.js.map → RichTextEditor-DhNhx5AH.js.map} +1 -1
- package/dist/{Scroller-pAU8UWIH.cjs → Scroller-Bt8TUghI.cjs} +1 -1
- package/dist/{Scroller-pAU8UWIH.cjs.map → Scroller-Bt8TUghI.cjs.map} +1 -1
- package/dist/{Scroller-B1xwv6TG.js → Scroller-D7MjyXun.js} +1 -1
- package/dist/{Scroller-B1xwv6TG.js.map → Scroller-D7MjyXun.js.map} +1 -1
- package/dist/{Slider-D2cDYZcJ.cjs → Slider-CfvbLBv5.cjs} +2 -2
- package/dist/{Slider-D2cDYZcJ.cjs.map → Slider-CfvbLBv5.cjs.map} +1 -1
- package/dist/{Slider-Du45PVLU.js → Slider-Xd5Aj9nS.js} +2 -2
- package/dist/{Slider-Du45PVLU.js.map → Slider-Xd5Aj9nS.js.map} +1 -1
- package/dist/{TextList-7RwngSie.js → TextList-CkY7OAl2.js} +1 -1
- package/dist/{TextList-7RwngSie.js.map → TextList-CkY7OAl2.js.map} +1 -1
- package/dist/{TextList-CLUdOdlp.cjs → TextList-DUL3NwQp.cjs} +1 -1
- package/dist/{TextList-CLUdOdlp.cjs.map → TextList-DUL3NwQp.cjs.map} +1 -1
- package/dist/{TextListItem-B-bhrqik.cjs → TextListItem-BI9M_J8Y.cjs} +1 -1
- package/dist/{TextListItem-B-bhrqik.cjs.map → TextListItem-BI9M_J8Y.cjs.map} +1 -1
- package/dist/{TextListItem-D0UmIR_q.js → TextListItem-D96feMQf.js} +1 -1
- package/dist/{TextListItem-D0UmIR_q.js.map → TextListItem-D96feMQf.js.map} +1 -1
- package/dist/{Toast-57Ts-hX9.cjs → Toast-BXvUrvd_.cjs} +1 -1
- package/dist/{Toast-57Ts-hX9.cjs.map → Toast-BXvUrvd_.cjs.map} +1 -1
- package/dist/{Toast-BNhGD6l8.js → Toast-DmzQrYtG.js} +1 -1
- package/dist/{Toast-BNhGD6l8.js.map → Toast-DmzQrYtG.js.map} +1 -1
- package/dist/{UseResizableCalculations-C6lmroJg.cjs → UseResizableCalculations-BNcxJfef.cjs} +2 -2
- package/dist/{UseResizableCalculations-C6lmroJg.cjs.map → UseResizableCalculations-BNcxJfef.cjs.map} +1 -1
- package/dist/{UseResizableCalculations-BTQ4jiff.js → UseResizableCalculations-k6TSRlpa.js} +2 -2
- package/dist/{UseResizableCalculations-BTQ4jiff.js.map → UseResizableCalculations-k6TSRlpa.js.map} +1 -1
- package/dist/common/phone/index.cjs +2 -0
- package/dist/common/phone/index.cjs.map +1 -0
- package/dist/common/phone/index.d.ts +4 -0
- package/dist/common/phone/index.d.ts.map +1 -0
- package/dist/common/phone/index.js +25 -0
- package/dist/common/phone/index.js.map +1 -0
- package/dist/component-documentation.json +1 -1
- package/dist/components/Combobox/Combobox.vue.d.ts +18 -0
- package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxEmptyList.vue.d.ts +9 -0
- package/dist/components/Combobox/ComboboxEmptyList.vue.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts +9 -0
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +36 -0
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPill.vue.d.ts +71 -3
- package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPillControlled.d.ts +7 -1
- package/dist/components/FilterPill/FilterPillControlled.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPillSelection.d.ts +5 -0
- package/dist/components/FilterPill/FilterPillSelection.d.ts.map +1 -1
- package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts +31 -0
- package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts.map +1 -0
- package/dist/components/ListItem/ListItem.vue.d.ts +9 -0
- package/dist/components/ListItem/ListItem.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelComponent.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Emoji/EmojiSuggestion.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue.d.ts +9 -0
- package/dist/components/RichTextEditor/Extensions/Suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +20 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +3 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Stack/Stack.vue.d.ts +9 -0
- package/dist/components/Stack/Stack.vue.d.ts.map +1 -1
- package/dist/components/Stack/StackConstants.d.ts +2 -0
- package/dist/components/Stack/StackConstants.d.ts.map +1 -1
- package/dist/components/Stack/Utils.d.ts +2 -1
- package/dist/components/Stack/Utils.d.ts.map +1 -1
- package/dist/components/Stack/Validators.d.ts +1 -0
- package/dist/components/Stack/Validators.d.ts.map +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +131 -131
- package/dist/{floating-ui.dom-j5GI2lJG.js → floating-ui.dom-BUeA6pp4.js} +1 -1
- package/dist/{floating-ui.dom-j5GI2lJG.js.map → floating-ui.dom-BUeA6pp4.js.map} +1 -1
- package/dist/{floating-ui.dom-D2zQ_96p.cjs → floating-ui.dom-DF2uE3n8.cjs} +1 -1
- package/dist/{floating-ui.dom-D2zQ_96p.cjs.map → floating-ui.dom-DF2uE3n8.cjs.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +18 -11
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js +4 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill-selection.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-selection.cjs.map +1 -1
- package/dist/lib/filter-pill/filter-pill-selection.js +53 -19
- package/dist/lib/filter-pill/filter-pill-selection.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs +1 -2
- package/dist/lib/filter-pill/filter-pill.js +2 -709
- package/dist/lib/filter-pill/index.cjs +1 -1
- package/dist/lib/filter-pill/index.js +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +14 -3
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.js +3 -3
- package/dist/lib/resizable/resizable-handle.cjs +1 -1
- package/dist/lib/resizable/resizable-handle.js +1 -1
- package/dist/lib/resizable/resizable-panel.cjs +1 -1
- package/dist/lib/resizable/resizable-panel.js +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
- package/dist/lib/rich-text-editor/force-linkify.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.js +1 -1
- package/dist/lib/scroller/scroller.cjs +1 -1
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/slider/index.cjs +1 -1
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/slider/slider.cjs +1 -1
- package/dist/lib/slider/slider.js +1 -1
- package/dist/lib/stack/stack-constants.cjs +1 -1
- package/dist/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/lib/stack/stack-constants.js +5 -4
- package/dist/lib/stack/stack-constants.js.map +1 -1
- package/dist/lib/stack/stack.cjs +1 -1
- package/dist/lib/stack/stack.cjs.map +1 -1
- package/dist/lib/stack/stack.js +26 -18
- package/dist/lib/stack/stack.js.map +1 -1
- package/dist/lib/stack/utils.cjs +1 -1
- package/dist/lib/stack/utils.cjs.map +1 -1
- package/dist/lib/stack/utils.js +44 -36
- package/dist/lib/stack/utils.js.map +1 -1
- package/dist/lib/stack/validators.cjs +1 -1
- package/dist/lib/stack/validators.cjs.map +1 -1
- package/dist/lib/stack/validators.js +16 -13
- package/dist/lib/stack/validators.js.map +1 -1
- package/dist/lib/text-list/index.cjs +1 -1
- package/dist/lib/text-list/index.js +2 -2
- package/dist/lib/text-list/text-list-item.cjs +1 -1
- package/dist/lib/text-list/text-list-item.js +1 -1
- package/dist/lib/text-list/text-list.cjs +1 -1
- package/dist/lib/text-list/text-list.js +1 -1
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.js +1 -1
- package/package.json +4 -3
- package/dist/lib/filter-pill/filter-pill.cjs.map +0 -1
- package/dist/lib/filter-pill/filter-pill.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../FilterPill-DY9T19XB.cjs`);exports.DtFilterPill=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { t as e } from "../../FilterPill-IBlswKiK.js";
|
|
2
2
|
export { e as DtFilterPill };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`./list-item-constants.cjs`),r=require(`../item-layout/item-layout.cjs`);let i=require(`vue`),a=require(`@dialpad/dialtone-icons/vue`);var o={name:`DtListItem`,components:{DtItemLayout:r.default,DtIconCheck:a.DtIconCheck},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return e.default.getUniqueString()}},role:{type:String,default:`listitem`,validator:e=>n.LIST_ITEM_ROLES.includes(e)},elementType:{type:String,default:`li`},type:{type:String,default:n.LIST_ITEM_TYPES.DEFAULT,validator:e=>Object.values(n.LIST_ITEM_TYPES).includes(e)},navigationType:{type:String,default:n.LIST_ITEM_NAVIGATION_TYPES.NONE,validator:e=>Object.values(n.LIST_ITEM_NAVIGATION_TYPES).includes(e)},selected:{type:Boolean,default:!1},wrapperClass:{type:[String,Object,Array],default:``}},emits:[`click`,`keydown`,`mousemove`,`mouseleave`],data(){return{injected:!1,mouseHighlighted:!1}},computed:{isMenuItemRadio(){return this.role===`menuitemradio`},ariaSelected(){return this.role===`listitem`||this.isMenuItemRadio?void 0:this.isHighlighted},isDefaultType(){return this.type===n.LIST_ITEM_TYPES.DEFAULT},listItemListeners(){return{click:e=>{this.onClick(e)},keydown:e=>{[`enter`,`space`].includes(e.code.toLowerCase())&&(this.isMenuItemRadio&&e.preventDefault(),this.onClick(e)),this.$emit(`keydown`,e)},mousemove:e=>{this.onMouseHover(e),this.$emit(`mousemove`,e)},mouseleave:e=>{this.onMouseLeave(e),this.$emit(`mouseleave`,e)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===n.LIST_ITEM_NAVIGATION_TYPES.TAB},isHoverable(){return this.navigationType!==n.LIST_ITEM_NAVIGATION_TYPES.NONE}},methods:{onClick(e){this.$emit(`click`,e)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};function s(e,t,n,r,a,o){let s=(0,i.resolveComponent)(`dt-icon-check`),c=(0,i.resolveComponent)(`dt-item-layout`);return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.elementType),(0,i.mergeProps)({id:n.id,class:[`d-list-item`,{"d-list-item--focusable":o.isFocusable,"d-list-item--highlighted":o.isHighlighted,"d-list-item--static":!o.isHoverable}],tabindex:o.isFocusable?0:-1,role:n.role,"aria-selected":o.ariaSelected,"aria-checked":o.isMenuItemRadio?n.selected:void 0},(0,i.toHandlers)(o.listItemListeners)),{default:(0,i.withCtx)(()=>[o.isDefaultType?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,unstyled:``,class:(0,i.normalizeClass)([`d-list-item__wrapper`,n.wrapperClass]),"start-class":`d-list-item__left`,"content-class":`d-list-item__content`,"title-class":`d-list-item__title`,"subtitle-class":`d-list-item__subtitle`,"block-end-class":`d-list-item__bottom`,"end-class":`d-list-item__right`,"selected-class":`d-list-item__selected`,"data-qa":`dt-list-item-wrapper`},(0,i.createSlots)({_:2},[(0,i.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,n)])})),n.selected?{name:`selected`,fn:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{size:`200`})]),key:`0`}:void 0]),1032,[`class`])):(0,i.renderSlot)(e.$slots,`default`,{key:1})]),_:3},16,[`id`,`class`,`tabindex`,`role`,`aria-selected`,`aria-checked`])}var c=t.t(o,[[`render`,s]]);exports.default=c;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`./list-item-constants.cjs`),r=require(`../item-layout/item-layout.cjs`);let i=require(`vue`),a=require(`@dialpad/dialtone-icons/vue`);var o={name:`DtListItem`,components:{DtItemLayout:r.default,DtIconCheck:a.DtIconCheck},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return e.default.getUniqueString()}},role:{type:String,default:`listitem`,validator:e=>n.LIST_ITEM_ROLES.includes(e)},elementType:{type:String,default:`li`},type:{type:String,default:n.LIST_ITEM_TYPES.DEFAULT,validator:e=>Object.values(n.LIST_ITEM_TYPES).includes(e)},navigationType:{type:String,default:n.LIST_ITEM_NAVIGATION_TYPES.NONE,validator:e=>Object.values(n.LIST_ITEM_NAVIGATION_TYPES).includes(e)},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wrapperClass:{type:[String,Object,Array],default:``}},emits:[`click`,`keydown`,`mousemove`,`mouseleave`],data(){return{injected:!1,mouseHighlighted:!1}},computed:{isMenuItemRadio(){return this.role===`menuitemradio`},ariaSelected(){return this.role===`listitem`||this.isMenuItemRadio?void 0:this.isHighlighted},isDefaultType(){return this.type===n.LIST_ITEM_TYPES.DEFAULT},listItemListeners(){return{click:e=>{this.onClick(e)},keydown:e=>{[`enter`,`space`].includes(e.code.toLowerCase())&&(this.isMenuItemRadio&&e.preventDefault(),this.onClick(e)),this.$emit(`keydown`,e)},mousemove:e=>{this.onMouseHover(e),this.$emit(`mousemove`,e)},mouseleave:e=>{this.onMouseLeave(e),this.$emit(`mouseleave`,e)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===n.LIST_ITEM_NAVIGATION_TYPES.TAB},isHoverable(){return this.navigationType!==n.LIST_ITEM_NAVIGATION_TYPES.NONE}},methods:{onClick(e){if(this.disabled){e.preventDefault();return}this.$emit(`click`,e)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};function s(e,t,n,r,a,o){let s=(0,i.resolveComponent)(`dt-icon-check`),c=(0,i.resolveComponent)(`dt-item-layout`);return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.elementType),(0,i.mergeProps)({id:n.id,class:[`d-list-item`,{"d-list-item--focusable":o.isFocusable,"d-list-item--highlighted":o.isHighlighted,"d-list-item--static":!o.isHoverable,"d-list-item--disabled":n.disabled}],tabindex:o.isFocusable?0:-1,role:n.role,"aria-selected":o.ariaSelected,"aria-checked":o.isMenuItemRadio?n.selected:void 0,"aria-disabled":n.disabled?`true`:void 0},(0,i.toHandlers)(o.listItemListeners)),{default:(0,i.withCtx)(()=>[o.isDefaultType?((0,i.openBlock)(),(0,i.createBlock)(c,{key:0,unstyled:``,class:(0,i.normalizeClass)([`d-list-item__wrapper`,n.wrapperClass]),"start-class":`d-list-item__left`,"content-class":`d-list-item__content`,"title-class":`d-list-item__title`,"subtitle-class":`d-list-item__subtitle`,"block-end-class":`d-list-item__bottom`,"end-class":`d-list-item__right`,"selected-class":`d-list-item__selected`,"data-qa":`dt-list-item-wrapper`},(0,i.createSlots)({_:2},[(0,i.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,n)])})),n.selected?{name:`selected`,fn:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{size:`200`})]),key:`0`}:void 0]),1032,[`class`])):(0,i.renderSlot)(e.$slots,`default`,{key:1})]),_:3},16,[`id`,`class`,`tabindex`,`role`,`aria-selected`,`aria-checked`,`aria-disabled`])}var c=t.t(o,[[`render`,s]]);exports.default=c;
|
|
2
2
|
//# sourceMappingURL=list-item.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.cjs","names":[],"sources":["../../../components/ListItem/ListItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"ariaSelected\"\n :aria-checked=\"isMenuItemRadio ? selected : undefined\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n start-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n block-end-class=\"d-list-item__bottom\"\n end-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"200\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_ROLES,\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './ListItemConstants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue';\nimport { DtItemLayout } from '@/components/ItemLayout';\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Contextual role: listitem for ordinary lists, menuitem for menu actions,\n * menuitemradio for persistent mutually exclusive menu choices, option for listboxes.\n * selected never changes the role automatically.\n * @values listitem, menuitem, option, menuitemradio\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => LIST_ITEM_ROLES.includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Shows a selected checkmark. For menuitemradio, also sets aria-checked independently of highlight.\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isMenuItemRadio () {\n return this.role === 'menuitemradio';\n },\n\n ariaSelected () {\n return this.role === 'listitem' || this.isMenuItemRadio ? undefined : this.isHighlighted;\n },\n\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n if (this.isMenuItemRadio) event.preventDefault();\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n // disabled as we do not want to override native click\n this.$emit('click', e);\n },\n\n onMouseHover () {\n this.mouseHighlighted = true;\n },\n\n onMouseLeave () {\n this.mouseHighlighted = false;\n },\n },\n};\n</script>\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"list-item.cjs","names":[],"sources":["../../../components/ListItem/ListItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n 'd-list-item--disabled': disabled,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"ariaSelected\"\n :aria-checked=\"isMenuItemRadio ? selected : undefined\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n start-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n block-end-class=\"d-list-item__bottom\"\n end-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"200\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_ROLES,\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './ListItemConstants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue';\nimport { DtItemLayout } from '@/components/ItemLayout';\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Contextual role: listitem for ordinary lists, menuitem for menu actions,\n * menuitemradio for persistent mutually exclusive menu choices, option for listboxes.\n * selected never changes the role automatically.\n * @values listitem, menuitem, option, menuitemradio\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => LIST_ITEM_ROLES.includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Shows a selected checkmark. For menuitemradio, also sets aria-checked independently of highlight.\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the item unavailable. Sets aria-disabled=\"true\" and the disabled style, and stops\n * the item from emitting click for pointer, Enter or Space activation. The item stays\n * focusable and reachable by keyboard navigation, and still emits keydown, mousemove and\n * mouseleave. Only the item's own activation is gated: a parent that selects by\n * highlighted index, such as Combobox on Enter, must check availability itself.\n * Don't also set an aria-disabled attribute: it overrides the announced state, while this prop\n * still controls the style and activation.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isMenuItemRadio () {\n return this.role === 'menuitemradio';\n },\n\n ariaSelected () {\n return this.role === 'listitem' || this.isMenuItemRadio ? undefined : this.isHighlighted;\n },\n\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n if (this.isMenuItemRadio) event.preventDefault();\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n if (this.disabled) {\n // Also cancel the native default, such as navigation when element-type is \"a\".\n e.preventDefault();\n return;\n }\n this.$emit('click', e);\n },\n\n onMouseHover () {\n this.mouseHighlighted = true;\n },\n\n onMouseLeave () {\n this.mouseHighlighted = false;\n },\n },\n};\n</script>\n"],"mappings":"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"}
|
|
@@ -42,6 +42,10 @@ var y = {
|
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: !1
|
|
44
44
|
},
|
|
45
|
+
disabled: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
45
49
|
wrapperClass: {
|
|
46
50
|
type: [
|
|
47
51
|
String,
|
|
@@ -101,6 +105,10 @@ var y = {
|
|
|
101
105
|
},
|
|
102
106
|
methods: {
|
|
103
107
|
onClick(e) {
|
|
108
|
+
if (this.disabled) {
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
104
112
|
this.$emit("click", e);
|
|
105
113
|
},
|
|
106
114
|
onMouseHover() {
|
|
@@ -118,12 +126,14 @@ function b(e, t, n, r, i, a) {
|
|
|
118
126
|
class: ["d-list-item", {
|
|
119
127
|
"d-list-item--focusable": a.isFocusable,
|
|
120
128
|
"d-list-item--highlighted": a.isHighlighted,
|
|
121
|
-
"d-list-item--static": !a.isHoverable
|
|
129
|
+
"d-list-item--static": !a.isHoverable,
|
|
130
|
+
"d-list-item--disabled": n.disabled
|
|
122
131
|
}],
|
|
123
132
|
tabindex: a.isFocusable ? 0 : -1,
|
|
124
133
|
role: n.role,
|
|
125
134
|
"aria-selected": a.ariaSelected,
|
|
126
|
-
"aria-checked": a.isMenuItemRadio ? n.selected : void 0
|
|
135
|
+
"aria-checked": a.isMenuItemRadio ? n.selected : void 0,
|
|
136
|
+
"aria-disabled": n.disabled ? "true" : void 0
|
|
127
137
|
}, g(a.listItemListeners)), {
|
|
128
138
|
default: _(() => [a.isDefaultType ? (d(), o(y, {
|
|
129
139
|
key: 0,
|
|
@@ -152,7 +162,8 @@ function b(e, t, n, r, i, a) {
|
|
|
152
162
|
"tabindex",
|
|
153
163
|
"role",
|
|
154
164
|
"aria-selected",
|
|
155
|
-
"aria-checked"
|
|
165
|
+
"aria-checked",
|
|
166
|
+
"aria-disabled"
|
|
156
167
|
]);
|
|
157
168
|
}
|
|
158
169
|
var x = /* @__PURE__ */ t(y, [["render", b]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.js","names":[],"sources":["../../../components/ListItem/ListItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"ariaSelected\"\n :aria-checked=\"isMenuItemRadio ? selected : undefined\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n start-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n block-end-class=\"d-list-item__bottom\"\n end-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"200\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_ROLES,\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './ListItemConstants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue';\nimport { DtItemLayout } from '@/components/ItemLayout';\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Contextual role: listitem for ordinary lists, menuitem for menu actions,\n * menuitemradio for persistent mutually exclusive menu choices, option for listboxes.\n * selected never changes the role automatically.\n * @values listitem, menuitem, option, menuitemradio\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => LIST_ITEM_ROLES.includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Shows a selected checkmark. For menuitemradio, also sets aria-checked independently of highlight.\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isMenuItemRadio () {\n return this.role === 'menuitemradio';\n },\n\n ariaSelected () {\n return this.role === 'listitem' || this.isMenuItemRadio ? undefined : this.isHighlighted;\n },\n\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n if (this.isMenuItemRadio) event.preventDefault();\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n
|
|
1
|
+
{"version":3,"file":"list-item.js","names":[],"sources":["../../../components/ListItem/ListItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"elementType\"\n :id=\"id\"\n :class=\"[\n 'd-list-item',\n {\n 'd-list-item--focusable': isFocusable,\n 'd-list-item--highlighted': isHighlighted,\n 'd-list-item--static': !isHoverable,\n 'd-list-item--disabled': disabled,\n }]\"\n :tabindex=\"isFocusable ? 0 : -1\"\n :role=\"role\"\n :aria-selected=\"ariaSelected\"\n :aria-checked=\"isMenuItemRadio ? selected : undefined\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n v-on=\"listItemListeners\"\n >\n <dt-item-layout\n v-if=\"isDefaultType\"\n unstyled\n :class=\"['d-list-item__wrapper', wrapperClass]\"\n start-class=\"d-list-item__left\"\n content-class=\"d-list-item__content\"\n title-class=\"d-list-item__title\"\n subtitle-class=\"d-list-item__subtitle\"\n block-end-class=\"d-list-item__bottom\"\n end-class=\"d-list-item__right\"\n selected-class=\"d-list-item__selected\"\n data-qa=\"dt-list-item-wrapper\"\n >\n <template\n v-for=\"(_, slotName) in $slots\"\n #[slotName]\n >\n <!-- @slot named slots for custom list items -->\n <slot :name=\"slotName\" />\n </template>\n <template\n v-if=\"selected\"\n #selected\n >\n <dt-icon-check size=\"200\" />\n </template>\n </dt-item-layout>\n <!-- @slot slot for the main content -->\n <slot v-else />\n </component>\n</template>\n\n<script>\nimport {\n LIST_ITEM_ROLES,\n LIST_ITEM_TYPES,\n LIST_ITEM_NAVIGATION_TYPES,\n} from './ListItemConstants';\nimport utils from '@/common/utils';\nimport { DtIconCheck } from '@dialpad/dialtone-icons/vue';\nimport { DtItemLayout } from '@/components/ItemLayout';\n\n/**\n * A list item is an element that can be used to represent individual items in a list.\n * @see https://dialtone.dialpad.com/components/list_item.html\n */\nexport default {\n name: 'DtListItem',\n\n components: {\n DtItemLayout,\n DtIconCheck,\n },\n\n /**\n * Value provided from keyboard_list_navigation.js using id prop.\n */\n inject: {\n highlightId: { default: null },\n },\n\n props: {\n /**\n * Id for the item.\n */\n id: {\n type: String,\n default () { return utils.getUniqueString(); },\n },\n\n /**\n * Contextual role: listitem for ordinary lists, menuitem for menu actions,\n * menuitemradio for persistent mutually exclusive menu choices, option for listboxes.\n * selected never changes the role automatically.\n * @values listitem, menuitem, option, menuitemradio\n */\n role: {\n type: String,\n default: 'listitem',\n validator: (role) => LIST_ITEM_ROLES.includes(role),\n },\n\n /**\n * HTML element type (tag name) of the content wrapper element.\n */\n elementType: {\n type: String,\n default: 'li',\n },\n\n /**\n * The type of child list item to use.\n * @values default, custom\n */\n type: {\n type: String,\n default: LIST_ITEM_TYPES.DEFAULT,\n validator: (t) => Object.values(LIST_ITEM_TYPES).includes(t),\n },\n\n /**\n * The type of navigation that this component should support.\n * - \"arrow-keys\" for items that are navigated with UP/DOWN keys.\n * - \"tab\" for items that are navigated using the TAB key.\n * - \"none\" for static items that are not interactive.\n * @values arrow-keys, tab, none\n */\n navigationType: {\n type: String,\n default: LIST_ITEM_NAVIGATION_TYPES.NONE,\n validator: (t) => Object.values(LIST_ITEM_NAVIGATION_TYPES).includes(t),\n },\n\n /**\n * Shows a selected checkmark. For menuitemradio, also sets aria-checked independently of highlight.\n */\n selected: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the item unavailable. Sets aria-disabled=\"true\" and the disabled style, and stops\n * the item from emitting click for pointer, Enter or Space activation. The item stays\n * focusable and reachable by keyboard navigation, and still emits keydown, mousemove and\n * mouseleave. Only the item's own activation is gated: a parent that selects by\n * highlighted index, such as Combobox on Enter, must check availability itself.\n * Don't also set an aria-disabled attribute: it overrides the announced state, while this prop\n * still controls the style and activation.\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Additional Classes to apply to the wrapper element,\n * note: it only applies on \"default\" type\n * Can accept all of: String, Object, and Array, i.e. has the\n * same api as Vue's built-in handling of the class attribute.\n */\n wrapperClass: {\n type: [String, Object, Array],\n default: '',\n },\n },\n\n emits: [\n /**\n * Native click event\n *\n * @event click\n * @type {PointerEvent | KeyboardEvent}\n */\n 'click',\n\n /**\n * Key down event\n *\n * @event keydown\n * @type {KeyboardEvent}\n */\n 'keydown',\n\n /**\n * Native mouse move event\n *\n * @event mousemove\n * @type {MouseEvent}\n */\n 'mousemove',\n\n /**\n * Native mouse leave event\n *\n * @event mouseleave\n * @type {MouseEvent}\n */\n 'mouseleave',\n ],\n\n data () {\n return {\n injected: false,\n mouseHighlighted: false,\n };\n },\n\n computed: {\n isMenuItemRadio () {\n return this.role === 'menuitemradio';\n },\n\n ariaSelected () {\n return this.role === 'listitem' || this.isMenuItemRadio ? undefined : this.isHighlighted;\n },\n\n isDefaultType () {\n return this.type === LIST_ITEM_TYPES.DEFAULT;\n },\n\n listItemListeners () {\n return {\n click: event => {\n this.onClick(event);\n },\n\n keydown: event => {\n if (['enter', 'space'].includes(event.code.toLowerCase())) {\n if (this.isMenuItemRadio) event.preventDefault();\n this.onClick(event);\n }\n this.$emit('keydown', event);\n },\n\n mousemove: event => {\n this.onMouseHover(event);\n this.$emit('mousemove', event);\n },\n\n mouseleave: event => {\n this.onMouseLeave(event);\n this.$emit('mouseleave', event);\n },\n };\n },\n\n /**\n * For keyboard navigation, whether this item is currently highlighted.\n * An injected highlightId will override the default mouseover highlight.\n */\n isHighlighted () {\n if (this.isHoverable) {\n return this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted;\n }\n return false;\n },\n\n isFocusable () {\n // Navigation type has to be set to \"tab\".\n return this.navigationType === LIST_ITEM_NAVIGATION_TYPES.TAB;\n },\n\n /**\n * Whether to apply hover styles.\n */\n isHoverable () {\n return this.navigationType !== LIST_ITEM_NAVIGATION_TYPES.NONE;\n },\n },\n\n methods: {\n onClick (e) {\n if (this.disabled) {\n // Also cancel the native default, such as navigation when element-type is \"a\".\n e.preventDefault();\n return;\n }\n this.$emit('click', e);\n },\n\n onMouseHover () {\n this.mouseHighlighted = true;\n },\n\n onMouseLeave () {\n this.mouseHighlighted = false;\n },\n },\n};\n</script>\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../ResizableUtils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../ResizableUtils-BptSHmLg.cjs`),t=require(`../../Resizable-DdP6uPio.cjs`),n=require(`../../ResizableHandle-_ldmhyEw.cjs`),r=require(`./resizable-panel.cjs`);exports.DEFAULT_PANEL_SIZE=e.l,exports.DtResizable=t.t,exports.DtResizableHandle=n.t,exports.DtResizablePanel=r.default,exports.MIN_PANEL_SIZE_PX=e.u,exports.RESIZABLE_CONTEXT_KEY=e.d,exports.RESIZABLE_HANDLE_CENTER_OFFSET_PX=e.f,exports.buildHandleId=e.p,exports.hasPercentageMinSize=e.t,exports.invalidateTokenCache=e.n,exports.isCSSValue=e.r,exports.isPercentageValue=e.i,exports.isValidSizing=e.a,exports.parseSizeToPixels=e.o,exports.pixelsToPercentage=e.s,exports.validateContainerSize=e.c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../../ResizableUtils-
|
|
2
|
-
import { t as p } from "../../Resizable-
|
|
3
|
-
import { t as m } from "../../ResizableHandle-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../../ResizableUtils-BIRNCdKB.js";
|
|
2
|
+
import { t as p } from "../../Resizable-Ddsm-H14.js";
|
|
3
|
+
import { t as m } from "../../ResizableHandle-DQduVxrG.js";
|
|
4
4
|
import h from "./resizable-panel.js";
|
|
5
5
|
export { a as DEFAULT_PANEL_SIZE, p as DtResizable, m as DtResizableHandle, h as DtResizablePanel, f as MIN_PANEL_SIZE_PX, n as RESIZABLE_CONTEXT_KEY, r as RESIZABLE_HANDLE_CENTER_OFFSET_PX, c as buildHandleId, d as hasPercentageMinSize, o as invalidateTokenCache, l as isCSSValue, i as isPercentageValue, e as isValidSizing, s as parseSizeToPixels, u as pixelsToPercentage, t as validateContainerSize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../ResizableHandle-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../ResizableHandle-_ldmhyEw.cjs`);exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../ResizableHandle-
|
|
1
|
+
import { t as e } from "../../ResizableHandle-DQduVxrG.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../ResizableUtils-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../ResizableUtils-BptSHmLg.cjs`);let t=require(`vue`);var n=[`id`,`data-panel-id`],r={__name:`ResizablePanel`,props:{id:{type:String,required:!0},initialSize:{type:String,default:void 0},userMinSize:{type:String,default:void 0},userMaxSize:{type:String,default:void 0},systemMinSize:{type:String,default:void 0},systemMaxSize:{type:String,default:void 0},collapseSize:{type:String,default:void 0},resizable:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:``},contentClass:{type:[String,Object,Array],default:``}},setup(r){let i=r,a=[`initialSize`,`userMinSize`,`userMaxSize`,`systemMinSize`,`systemMaxSize`,`collapseSize`];(0,t.watch)(()=>a.map(e=>i[e]),t=>t.forEach((t,n)=>{t!==void 0&&!e.a(t)&&console.error(`[DtResizablePanel] Invalid ${a[n]}: "${t}".`)}),{immediate:!0});let o=(0,t.inject)(e.d,null),s=o?.layout??(0,t.computed)(()=>({panels:new Map,handles:[]})),c=o?.isResizing??(0,t.computed)(()=>!1),l=o?.offsetContentStyles??(0,t.computed)(()=>({})),u=o?.registerPanel??null,d=o?.unregisterPanel??null,f=(0,t.computed)(()=>({id:i.id,initialSize:i.initialSize,userMinSize:i.userMinSize,userMaxSize:i.userMaxSize,systemMinSize:i.systemMinSize,systemMaxSize:i.systemMaxSize,collapseSize:i.collapseSize,resizable:i.resizable??!0,collapsible:i.collapsible??!1,collapsed:i.collapsed??!1}));(0,t.onMounted)(()=>{u&&u(f.value)}),(0,t.onUnmounted)(()=>{d&&d(i.id)}),(0,t.watch)(f,()=>{u&&u(f.value)},{deep:!0});let p=o?.collapsePanel??null,m=o?.isInitializing??(0,t.computed)(()=>!1);(0,t.watch)(()=>i.collapsed,e=>{m.value||p&&e!==void 0&&p(i.id,e)},{immediate:!0});let h=o?.panelMap??(0,t.computed)(()=>new Map),g=(0,t.computed)(()=>h.value.get(i.id)),_=(0,t.computed)(()=>{let e=s.value.panels.get(i.id);return e?e.collapsed?{insetInlineStart:`${e.left}px`,inlineSize:`0px`,overflow:`hidden`,pointerEvents:`none`}:{insetInlineStart:`${e.left}px`,insetInlineEnd:`${e.right}px`}:{insetInlineStart:`0px`,inlineSize:`0px`,pointerEvents:`none`}});return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:`dt-resizable-panel-${i.id}`,class:(0,t.normalizeClass)([`d-resizable-panel`,[i.class,{"d-resizable-panel--collapsed":g.value&&g.value.collapsed===!0,"d-resizable-panel--fixed":g.value&&g.value.resizable===!1}]]),style:(0,t.normalizeStyle)(_.value),"data-panel-id":i.id,"data-qa":`d-resizable-panel`},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`d-resizable-panel__content`,r.contentClass]),style:(0,t.normalizeStyle)((0,t.unref)(l))},[(0,t.renderSlot)(e.$slots,`default`,{panel:g.value,isCollapsed:g.value?.collapsed,isResizing:(0,t.unref)(c)})],6)],14,n))}};exports.default=r;
|
|
2
2
|
//# sourceMappingURL=resizable-panel.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, d as t } from "../../ResizableUtils-
|
|
1
|
+
import { a as e, d as t } from "../../ResizableUtils-BIRNCdKB.js";
|
|
2
2
|
import { computed as n, createElementBlock as r, createElementVNode as i, inject as a, normalizeClass as o, normalizeStyle as s, onMounted as c, onUnmounted as l, openBlock as u, renderSlot as d, unref as f, watch as p } from "vue";
|
|
3
3
|
//#region components/Resizable/ResizablePanel.vue
|
|
4
4
|
var m = ["id", "data-panel-id"], h = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Resizable-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Resizable-DdP6uPio.cjs`);exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Resizable-
|
|
1
|
+
import { t as e } from "../../Resizable-Ddsm-H14.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../ForceLinkify-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../ForceLinkify-DhmBEXhe.cjs`);exports.forceLinkifyPendingText=e.t,exports.isValidLinkStructure=e.n,exports.rangeFullyLinked=e.r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../ForceLinkify-
|
|
1
|
+
import { n as e, r as t, t as n } from "../../ForceLinkify-53Zegx7z.js";
|
|
2
2
|
export { n as forceLinkifyPendingText, e as isValidLinkStructure, t as rangeFullyLinked };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../RichTextEditor-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../RichTextEditor-CjyvDYID.cjs`),t=require(`./rich-text-editor-constants.cjs`);exports.DtRichTextEditor=e.t,exports.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES=t.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,exports.RICH_TEXT_EDITOR_OUTPUT_FORMATS=t.RICH_TEXT_EDITOR_OUTPUT_FORMATS;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "../../RichTextEditor-
|
|
1
|
+
import { t as e } from "../../RichTextEditor-DhNhx5AH.js";
|
|
2
2
|
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as t, RICH_TEXT_EDITOR_OUTPUT_FORMATS as n } from "./rich-text-editor-constants.js";
|
|
3
3
|
export { e as DtRichTextEditor, t as RICH_TEXT_EDITOR_AUTOFOCUS_TYPES, n as RICH_TEXT_EDITOR_OUTPUT_FORMATS };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../MarkdownRenderer-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../MarkdownRenderer-a12waV7r.cjs`);exports.renderEditorToMarkdown=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../MarkdownRenderer-
|
|
1
|
+
import { t as e } from "../../MarkdownRenderer-Cnbn7gje.js";
|
|
2
2
|
export { e as renderEditorToMarkdown };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../RichTextEditor-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../RichTextEditor-CjyvDYID.cjs`);exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../RichTextEditor-
|
|
1
|
+
import { t as e } from "../../RichTextEditor-DhNhx5AH.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Scroller-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Scroller-Bt8TUghI.cjs`);exports.DtScroller=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Scroller-
|
|
1
|
+
import { t as e } from "../../Scroller-D7MjyXun.js";
|
|
2
2
|
export { e as DtScroller };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Scroller-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Scroller-Bt8TUghI.cjs`);exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Scroller-
|
|
1
|
+
import { t as e } from "../../Scroller-D7MjyXun.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Slider-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../Slider-CfvbLBv5.cjs`);exports.DtSlider=e.t,exports.SLIDER_DEFAULT_LARGE_STEP=e.n,exports.SLIDER_EDGE_CLAMP_TOLERANCE_PX=e.r,exports.SLIDER_FILL_ORIGINS=e.i,exports.SLIDER_ORIENTATIONS=e.a,exports.SLIDER_READOUT_EDGE_CLAMP_TOLERANCE_PX=e.o,exports.SLIDER_READOUT_MODES=e.s;
|
package/dist/lib/slider/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../Slider-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../Slider-Xd5Aj9nS.js";
|
|
2
2
|
export { o as DtSlider, n as SLIDER_DEFAULT_LARGE_STEP, i as SLIDER_EDGE_CLAMP_TOLERANCE_PX, t as SLIDER_FILL_ORIGINS, e as SLIDER_ORIENTATIONS, r as SLIDER_READOUT_EDGE_CLAMP_TOLERANCE_PX, a as SLIDER_READOUT_MODES };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Slider-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../Slider-CfvbLBv5.cjs`);exports.default=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Slider-
|
|
1
|
+
import { t as e } from "../../Slider-Xd5Aj9nS.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e={default:`column`,column:`column`,row:`row`,"row-reverse":`row-reverse`,"column-reverse":`column-reverse`},t=[`sm`,`md`,`lg`,`xl`],n=[`0`,`1`,`25`,`50`,`75`,`100`,`125`,`150`,`175`,`200`,`250`,`300`,`350`,`400`,`450`,`500`,`525`,`550`,`600`,`650`,`700`,`750`,`800`],r=[`start`,`center`,`end`,`stretch`,`baseline`],i=[`start`,`center`,`end`,`space-around`,`space-between`,`space-evenly`,`around`,`between`,`evenly`],
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e={default:`column`,column:`column`,row:`row`,"row-reverse":`row-reverse`,"column-reverse":`column-reverse`},t=[`sm`,`md`,`lg`,`xl`],n=[`0`,`1`,`25`,`50`,`75`,`100`,`125`,`150`,`175`,`200`,`250`,`300`,`350`,`400`,`450`,`500`,`525`,`550`,`600`,`650`,`700`,`750`,`800`],r=[`start`,`center`,`end`,`stretch`,`baseline`],i=[...r,`auto`],a=[`start`,`center`,`end`,`space-around`,`space-between`,`space-evenly`,`around`,`between`,`evenly`],o={DT_STACK_DIRECTION:e,DT_STACK_RESPONSIVE_BREAKPOINTS:t,DT_STACK_GAP:n,DT_STACK_ALIGN:r,DT_STACK_ALIGN_SELF:i,DT_STACK_JUSTIFY:a};exports.DT_STACK_ALIGN=r,exports.DT_STACK_ALIGN_SELF=i,exports.DT_STACK_DIRECTION=e,exports.DT_STACK_GAP=n,exports.DT_STACK_JUSTIFY=a,exports.DT_STACK_RESPONSIVE_BREAKPOINTS=t,exports.default=o;
|
|
2
2
|
//# sourceMappingURL=stack-constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack-constants.cjs","names":[],"sources":["../../../components/Stack/StackConstants.js"],"sourcesContent":["/**\n * Direction values for the stack component.\n * Uses object format for historical compatibility - changing to array would be breaking.\n * The object keys are the valid values, and the values are the CSS class suffixes.\n * @type {Object<string, string>}\n */\nexport const DT_STACK_DIRECTION = {\n default: 'column',\n column: 'column',\n row: 'row',\n 'row-reverse': 'row-reverse',\n 'column-reverse': 'column-reverse',\n};\n\n/**\n * Responsive breakpoint names used for all responsive props.\n * @type {string[]}\n */\nexport const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];\n\n/**\n * Gap values for spacing between stack items.\n * Uses array format.\n * @type {string[]}\n */\nexport const DT_STACK_GAP = ['0', '1', '25', '50', '75', '100', '125', '150', '175', '200', '250', '300', '350', '400', '450', '500', '525', '550', '600', '650', '700', '750', '800'];\n\n/**\n * Align values for the stack component (cross-axis alignment).\n * Uses array format - simpler structure for newer props.\n * @type {string[]}\n */\nexport const DT_STACK_ALIGN = ['start', 'center', 'end', 'stretch', 'baseline'];\n\n/**\n * Justify values for the stack component (main-axis distribution).\n * Uses array format - simpler structure for newer props.\n * Primary values align with CSS justify-content values.\n * @type {string[]}\n */\nexport const DT_STACK_JUSTIFY = ['start', 'center', 'end', 'space-around', 'space-between', 'space-evenly', 'around', 'between', 'evenly'];\n\nexport default {\n DT_STACK_DIRECTION,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_GAP,\n DT_STACK_ALIGN,\n DT_STACK_JUSTIFY,\n};\n"],"mappings":"+FAMA,IAAa,EAAqB,CAChC,QAAS,SACT,OAAQ,SACR,IAAK,MACL,cAAe,cACf,iBAAkB,iBACnB,CAMY,EAAkC,CAAC,KAAM,KAAM,KAAM,KAAK,CAO1D,EAAe,CAAC,IAAK,IAAK,KAAM,KAAM,KAAM,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAM,CAOzK,EAAiB,CAAC,QAAS,SAAU,MAAO,UAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"stack-constants.cjs","names":[],"sources":["../../../components/Stack/StackConstants.js"],"sourcesContent":["/**\n * Direction values for the stack component.\n * Uses object format for historical compatibility - changing to array would be breaking.\n * The object keys are the valid values, and the values are the CSS class suffixes.\n * @type {Object<string, string>}\n */\nexport const DT_STACK_DIRECTION = {\n default: 'column',\n column: 'column',\n row: 'row',\n 'row-reverse': 'row-reverse',\n 'column-reverse': 'column-reverse',\n};\n\n/**\n * Responsive breakpoint names used for all responsive props.\n * @type {string[]}\n */\nexport const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];\n\n/**\n * Gap values for spacing between stack items.\n * Uses array format.\n * @type {string[]}\n */\nexport const DT_STACK_GAP = ['0', '1', '25', '50', '75', '100', '125', '150', '175', '200', '250', '300', '350', '400', '450', '500', '525', '550', '600', '650', '700', '750', '800'];\n\n/**\n * Align values for the stack component (cross-axis alignment).\n * Uses array format - simpler structure for newer props.\n * @type {string[]}\n */\nexport const DT_STACK_ALIGN = ['start', 'center', 'end', 'stretch', 'baseline'];\n\n/**\n * Align-self values for the stack component (placement of the stack itself in a flex parent).\n * Same as the align values, plus `auto` to reset the parent's `align-items` at a breakpoint.\n * @type {string[]}\n */\nexport const DT_STACK_ALIGN_SELF = [...DT_STACK_ALIGN, 'auto'];\n\n/**\n * Justify values for the stack component (main-axis distribution).\n * Uses array format - simpler structure for newer props.\n * Primary values align with CSS justify-content values.\n * @type {string[]}\n */\nexport const DT_STACK_JUSTIFY = ['start', 'center', 'end', 'space-around', 'space-between', 'space-evenly', 'around', 'between', 'evenly'];\n\nexport default {\n DT_STACK_DIRECTION,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_GAP,\n DT_STACK_ALIGN,\n DT_STACK_ALIGN_SELF,\n DT_STACK_JUSTIFY,\n};\n"],"mappings":"+FAMA,IAAa,EAAqB,CAChC,QAAS,SACT,OAAQ,SACR,IAAK,MACL,cAAe,cACf,iBAAkB,iBACnB,CAMY,EAAkC,CAAC,KAAM,KAAM,KAAM,KAAK,CAO1D,EAAe,CAAC,IAAK,IAAK,KAAM,KAAM,KAAM,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAM,CAOzK,EAAiB,CAAC,QAAS,SAAU,MAAO,UAAW,WAAW,CAOlE,EAAsB,CAAC,GAAG,EAAgB,OAAO,CAQjD,EAAmB,CAAC,QAAS,SAAU,MAAO,eAAgB,gBAAiB,eAAgB,SAAU,UAAW,SAAS,CAE1I,EAAe,CACb,qBACA,kCACA,eACA,iBACA,sBACA,mBACD"}
|
|
@@ -40,7 +40,7 @@ var e = {
|
|
|
40
40
|
"end",
|
|
41
41
|
"stretch",
|
|
42
42
|
"baseline"
|
|
43
|
-
], i = [
|
|
43
|
+
], i = [...r, "auto"], a = [
|
|
44
44
|
"start",
|
|
45
45
|
"center",
|
|
46
46
|
"end",
|
|
@@ -50,14 +50,15 @@ var e = {
|
|
|
50
50
|
"around",
|
|
51
51
|
"between",
|
|
52
52
|
"evenly"
|
|
53
|
-
],
|
|
53
|
+
], o = {
|
|
54
54
|
DT_STACK_DIRECTION: e,
|
|
55
55
|
DT_STACK_RESPONSIVE_BREAKPOINTS: t,
|
|
56
56
|
DT_STACK_GAP: n,
|
|
57
57
|
DT_STACK_ALIGN: r,
|
|
58
|
-
|
|
58
|
+
DT_STACK_ALIGN_SELF: i,
|
|
59
|
+
DT_STACK_JUSTIFY: a
|
|
59
60
|
};
|
|
60
61
|
//#endregion
|
|
61
|
-
export { r as DT_STACK_ALIGN, e as DT_STACK_DIRECTION, n as DT_STACK_GAP,
|
|
62
|
+
export { r as DT_STACK_ALIGN, i as DT_STACK_ALIGN_SELF, e as DT_STACK_DIRECTION, n as DT_STACK_GAP, a as DT_STACK_JUSTIFY, t as DT_STACK_RESPONSIVE_BREAKPOINTS, o as default };
|
|
62
63
|
|
|
63
64
|
//# sourceMappingURL=stack-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack-constants.js","names":[],"sources":["../../../components/Stack/StackConstants.js"],"sourcesContent":["/**\n * Direction values for the stack component.\n * Uses object format for historical compatibility - changing to array would be breaking.\n * The object keys are the valid values, and the values are the CSS class suffixes.\n * @type {Object<string, string>}\n */\nexport const DT_STACK_DIRECTION = {\n default: 'column',\n column: 'column',\n row: 'row',\n 'row-reverse': 'row-reverse',\n 'column-reverse': 'column-reverse',\n};\n\n/**\n * Responsive breakpoint names used for all responsive props.\n * @type {string[]}\n */\nexport const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];\n\n/**\n * Gap values for spacing between stack items.\n * Uses array format.\n * @type {string[]}\n */\nexport const DT_STACK_GAP = ['0', '1', '25', '50', '75', '100', '125', '150', '175', '200', '250', '300', '350', '400', '450', '500', '525', '550', '600', '650', '700', '750', '800'];\n\n/**\n * Align values for the stack component (cross-axis alignment).\n * Uses array format - simpler structure for newer props.\n * @type {string[]}\n */\nexport const DT_STACK_ALIGN = ['start', 'center', 'end', 'stretch', 'baseline'];\n\n/**\n * Justify values for the stack component (main-axis distribution).\n * Uses array format - simpler structure for newer props.\n * Primary values align with CSS justify-content values.\n * @type {string[]}\n */\nexport const DT_STACK_JUSTIFY = ['start', 'center', 'end', 'space-around', 'space-between', 'space-evenly', 'around', 'between', 'evenly'];\n\nexport default {\n DT_STACK_DIRECTION,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_GAP,\n DT_STACK_ALIGN,\n DT_STACK_JUSTIFY,\n};\n"],"mappings":";AAMA,IAAa,IAAqB;CAChC,SAAS;CACT,QAAQ;CACR,KAAK;CACL,eAAe;CACf,kBAAkB;CACnB,EAMY,IAAkC;CAAC;CAAM;CAAM;CAAM;CAAK,EAO1D,IAAe;CAAC;CAAK;CAAK;CAAM;CAAM;CAAM;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAM,EAOzK,IAAiB;CAAC;CAAS;CAAU;CAAO;CAAW;CAAW,
|
|
1
|
+
{"version":3,"file":"stack-constants.js","names":[],"sources":["../../../components/Stack/StackConstants.js"],"sourcesContent":["/**\n * Direction values for the stack component.\n * Uses object format for historical compatibility - changing to array would be breaking.\n * The object keys are the valid values, and the values are the CSS class suffixes.\n * @type {Object<string, string>}\n */\nexport const DT_STACK_DIRECTION = {\n default: 'column',\n column: 'column',\n row: 'row',\n 'row-reverse': 'row-reverse',\n 'column-reverse': 'column-reverse',\n};\n\n/**\n * Responsive breakpoint names used for all responsive props.\n * @type {string[]}\n */\nexport const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];\n\n/**\n * Gap values for spacing between stack items.\n * Uses array format.\n * @type {string[]}\n */\nexport const DT_STACK_GAP = ['0', '1', '25', '50', '75', '100', '125', '150', '175', '200', '250', '300', '350', '400', '450', '500', '525', '550', '600', '650', '700', '750', '800'];\n\n/**\n * Align values for the stack component (cross-axis alignment).\n * Uses array format - simpler structure for newer props.\n * @type {string[]}\n */\nexport const DT_STACK_ALIGN = ['start', 'center', 'end', 'stretch', 'baseline'];\n\n/**\n * Align-self values for the stack component (placement of the stack itself in a flex parent).\n * Same as the align values, plus `auto` to reset the parent's `align-items` at a breakpoint.\n * @type {string[]}\n */\nexport const DT_STACK_ALIGN_SELF = [...DT_STACK_ALIGN, 'auto'];\n\n/**\n * Justify values for the stack component (main-axis distribution).\n * Uses array format - simpler structure for newer props.\n * Primary values align with CSS justify-content values.\n * @type {string[]}\n */\nexport const DT_STACK_JUSTIFY = ['start', 'center', 'end', 'space-around', 'space-between', 'space-evenly', 'around', 'between', 'evenly'];\n\nexport default {\n DT_STACK_DIRECTION,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_GAP,\n DT_STACK_ALIGN,\n DT_STACK_ALIGN_SELF,\n DT_STACK_JUSTIFY,\n};\n"],"mappings":";AAMA,IAAa,IAAqB;CAChC,SAAS;CACT,QAAQ;CACR,KAAK;CACL,eAAe;CACf,kBAAkB;CACnB,EAMY,IAAkC;CAAC;CAAM;CAAM;CAAM;CAAK,EAO1D,IAAe;CAAC;CAAK;CAAK;CAAM;CAAM;CAAM;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;CAAM,EAOzK,IAAiB;CAAC;CAAS;CAAU;CAAO;CAAW;CAAW,EAOlE,IAAsB,CAAC,GAAG,GAAgB,OAAO,EAQjD,IAAmB;CAAC;CAAS;CAAU;CAAO;CAAgB;CAAiB;CAAgB;CAAU;CAAW;CAAS,EAE1I,IAAe;CACb;CACA;CACA;CACA;CACA;CACA;CACD"}
|
package/dist/lib/stack/stack.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`./stack-constants.cjs`),n=require(`./validators.cjs`),r=require(`./utils.cjs`);let i=require(`vue`);var a={name:`DtStack`,props:{direction:{type:[String,Object],default:`column`,validator:e=>n.directionValidator(e)},as:{type:String,default:`div`},wrap:{type:Boolean,default:!1},gap:{type:[String,Object],default:`0`,validator:e=>n.gapValidator(e)},align:{type:[String,Object],validator:e=>n.alignValidator(e)},justify:{type:[String,Object],default:`start`,validator:e=>n.justifyValidator(e)}},data(){return{DT_STACK_DIRECTION:t.DT_STACK_DIRECTION,DT_STACK_GAP:t.DT_STACK_GAP,DT_STACK_RESPONSIVE_BREAKPOINTS:t.DT_STACK_RESPONSIVE_BREAKPOINTS,DT_STACK_ALIGN:t.DT_STACK_ALIGN,DT_STACK_JUSTIFY:t.DT_STACK_JUSTIFY}},computed:{defaultGap(){return r.getDefaultGapClass(this.gap)},defaultDirection(){return r.getDefaultDirectionClass(this.direction)},defaultAlign(){return r.getDefaultAlignClass(this.align)},defaultJustify(){return r.getDefaultJustifyClass(this.justify)},stackResponsive(){return r.getResponsiveClasses(this.direction,this.gap,this.align,this.justify)}}};function o(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.as),{"data-qa":`dt-stack`,class:(0,i.normalizeClass)([`d-stack`,{"d-stack--wrap":n.wrap},o.defaultDirection,o.defaultGap,o.defaultAlign,o.defaultJustify,o.stackResponsive])},{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])}var s=e.t(a,[[`render`,o]]);exports.default=s;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`./stack-constants.cjs`),n=require(`./validators.cjs`),r=require(`./utils.cjs`);let i=require(`vue`);var a={name:`DtStack`,props:{direction:{type:[String,Object],default:`column`,validator:e=>n.directionValidator(e)},as:{type:String,default:`div`},wrap:{type:Boolean,default:!1},gap:{type:[String,Object],default:`0`,validator:e=>n.gapValidator(e)},align:{type:[String,Object],validator:e=>n.alignValidator(e)},alignSelf:{type:[String,Object],validator:e=>n.alignSelfValidator(e)},justify:{type:[String,Object],default:`start`,validator:e=>n.justifyValidator(e)}},data(){return{DT_STACK_DIRECTION:t.DT_STACK_DIRECTION,DT_STACK_GAP:t.DT_STACK_GAP,DT_STACK_RESPONSIVE_BREAKPOINTS:t.DT_STACK_RESPONSIVE_BREAKPOINTS,DT_STACK_ALIGN:t.DT_STACK_ALIGN,DT_STACK_JUSTIFY:t.DT_STACK_JUSTIFY}},computed:{defaultGap(){return r.getDefaultGapClass(this.gap)},defaultDirection(){return r.getDefaultDirectionClass(this.direction)},defaultAlign(){return r.getDefaultAlignClass(this.align)},defaultJustify(){return r.getDefaultJustifyClass(this.justify)},defaultAlignSelf(){return r.getDefaultAlignSelfClass(this.alignSelf)},stackResponsive(){return r.getResponsiveClasses(this.direction,this.gap,this.align,this.justify,this.alignSelf)}}};function o(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(n.as),{"data-qa":`dt-stack`,class:(0,i.normalizeClass)([`d-stack`,{"d-stack--wrap":n.wrap},o.defaultDirection,o.defaultGap,o.defaultAlign,o.defaultJustify,o.defaultAlignSelf,o.stackResponsive])},{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])}var s=e.t(a,[[`render`,o]]);exports.default=s;
|
|
2
2
|
//# sourceMappingURL=stack.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.cjs","names":[],"sources":["../../../components/Stack/Stack.vue"],"sourcesContent":["<template>\n <component\n :is=\"as\"\n data-qa=\"dt-stack\"\n :class=\"[\n 'd-stack',\n { 'd-stack--wrap': wrap },\n defaultDirection,\n defaultGap,\n defaultAlign,\n defaultJustify,\n stackResponsive,\n ]\"\n >\n <!-- @slot Slot for main content -->\n <slot />\n </component>\n</template>\n\n<script>\nimport { DT_STACK_DIRECTION, DT_STACK_GAP, DT_STACK_RESPONSIVE_BREAKPOINTS, DT_STACK_ALIGN, DT_STACK_JUSTIFY } from './StackConstants';\nimport { directionValidator, gapValidator, alignValidator, justifyValidator } from './Validators';\nimport { getDefaultDirectionClass, getResponsiveClasses, getDefaultGapClass, getDefaultAlignClass, getDefaultJustifyClass } from './Utils';\n\nexport default {\n name: 'DtStack',\n\n props: {\n /**\n * Set this prop to the direction to stack the items.\n * You can override the default direction with 'default' key.\n * All the undefined breakpoints will have 'default' value.\n * By default, for the column direction it will have `justify-content: flex-start`\n * and for the row direction `align-items: center`. This can be overridden\n * using the `align` and `justify` props.\n *\n * @values column, row, row-reverse, column-reverse\n */\n direction: {\n type: [String, Object],\n default: 'column',\n validator: (direction) => directionValidator(direction),\n },\n\n /**\n * Set this prop to render stack as a specific HTML element.\n */\n as: {\n type: String,\n default: 'div',\n },\n\n /**\n * Allow items to wrap onto additional lines when they exceed the available space.\n */\n wrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The gap property controls the spacing between items in the stack.\n * The gap can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default gap with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400, 450, 500, 525, 550, 600, 650, 700, 750, 800\n */\n gap: {\n type: [String, Object],\n default: '0',\n validator: (gap) => gapValidator(gap),\n },\n\n /**\n * The align property controls the alignment of items along the cross axis.\n * The align can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default align with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * If not specified, alignment uses CSS defaults: stretch for column direction,\n * center for row/row-reverse directions (set by CSS).\n * @values start, center, end, stretch, baseline\n */\n align: {\n type: [String, Object],\n validator: (align) => alignValidator(align),\n },\n\n /**\n * The justify property controls the justification of items along the main axis.\n * The justify can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default justify with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * The around, between, and evenly values are deprecated and will ideally be removed in the next major version.\n * Please use space-around, space-between, and space-evenly instead.\n * @values start, center, end, space-around, space-between, space-evenly, around, between, evenly\n */\n justify: {\n type: [String, Object],\n default: 'start',\n validator: (justify) => justifyValidator(justify),\n },\n },\n\n data () {\n return {\n DT_STACK_DIRECTION,\n DT_STACK_GAP,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_ALIGN,\n DT_STACK_JUSTIFY,\n };\n },\n\n computed: {\n defaultGap () {\n return getDefaultGapClass(this.gap);\n },\n\n defaultDirection () {\n return getDefaultDirectionClass(this.direction);\n },\n\n defaultAlign () {\n return getDefaultAlignClass(this.align);\n },\n\n defaultJustify () {\n return getDefaultJustifyClass(this.justify);\n },\n\n stackResponsive () {\n return getResponsiveClasses(this.direction, this.gap, this.align, this.justify);\n },\n },\n};\n</script>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stack.cjs","names":[],"sources":["../../../components/Stack/Stack.vue"],"sourcesContent":["<template>\n <component\n :is=\"as\"\n data-qa=\"dt-stack\"\n :class=\"[\n 'd-stack',\n { 'd-stack--wrap': wrap },\n defaultDirection,\n defaultGap,\n defaultAlign,\n defaultJustify,\n defaultAlignSelf,\n stackResponsive,\n ]\"\n >\n <!-- @slot Slot for main content -->\n <slot />\n </component>\n</template>\n\n<script>\nimport { DT_STACK_DIRECTION, DT_STACK_GAP, DT_STACK_RESPONSIVE_BREAKPOINTS, DT_STACK_ALIGN, DT_STACK_JUSTIFY } from './StackConstants';\nimport { directionValidator, gapValidator, alignValidator, alignSelfValidator, justifyValidator } from './Validators';\nimport { getDefaultDirectionClass, getResponsiveClasses, getDefaultGapClass, getDefaultAlignClass, getDefaultAlignSelfClass, getDefaultJustifyClass } from './Utils';\n\nexport default {\n name: 'DtStack',\n\n props: {\n /**\n * Set this prop to the direction to stack the items.\n * You can override the default direction with 'default' key.\n * All the undefined breakpoints will have 'default' value.\n * By default, for the column direction it will have `justify-content: flex-start`\n * and for the row direction `align-items: center`. This can be overridden\n * using the `align` and `justify` props.\n *\n * @values column, row, row-reverse, column-reverse\n */\n direction: {\n type: [String, Object],\n default: 'column',\n validator: (direction) => directionValidator(direction),\n },\n\n /**\n * Set this prop to render stack as a specific HTML element.\n */\n as: {\n type: String,\n default: 'div',\n },\n\n /**\n * Allow items to wrap onto additional lines when they exceed the available space.\n */\n wrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The gap property controls the spacing between items in the stack.\n * The gap can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default gap with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400, 450, 500, 525, 550, 600, 650, 700, 750, 800\n */\n gap: {\n type: [String, Object],\n default: '0',\n validator: (gap) => gapValidator(gap),\n },\n\n /**\n * The align property controls the alignment of items along the cross axis.\n * The align can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default align with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * If not specified, alignment uses CSS defaults: stretch for column direction,\n * center for row/row-reverse directions (set by CSS).\n * @values start, center, end, stretch, baseline\n */\n align: {\n type: [String, Object],\n validator: (align) => alignValidator(align),\n },\n\n /**\n * The alignSelf property places the stack itself along the cross axis of its flex parent\n * (`align-self`). It does not change how the stack aligns its own children; use `align` for that.\n * The alignSelf can be set to a string, or object with breakpoints.\n * You can set the base value with 'default' key.\n * Each breakpoint value stays active until a later breakpoint value overrides it,\n * so an undefined breakpoint keeps the previous value instead of resetting to 'default'.\n * Use `auto` to reset.\n * In case of string, it will be applied to all the breakpoints.\n * If not specified, the parent's `align-items` applies.\n * @values start, center, end, stretch, baseline, auto\n */\n alignSelf: {\n type: [String, Object],\n validator: (alignSelf) => alignSelfValidator(alignSelf),\n },\n\n /**\n * The justify property controls the justification of items along the main axis.\n * The justify can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default justify with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * The around, between, and evenly values are deprecated and will ideally be removed in the next major version.\n * Please use space-around, space-between, and space-evenly instead.\n * @values start, center, end, space-around, space-between, space-evenly, around, between, evenly\n */\n justify: {\n type: [String, Object],\n default: 'start',\n validator: (justify) => justifyValidator(justify),\n },\n },\n\n data () {\n return {\n DT_STACK_DIRECTION,\n DT_STACK_GAP,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_ALIGN,\n DT_STACK_JUSTIFY,\n };\n },\n\n computed: {\n defaultGap () {\n return getDefaultGapClass(this.gap);\n },\n\n defaultDirection () {\n return getDefaultDirectionClass(this.direction);\n },\n\n defaultAlign () {\n return getDefaultAlignClass(this.align);\n },\n\n defaultJustify () {\n return getDefaultJustifyClass(this.justify);\n },\n\n defaultAlignSelf () {\n return getDefaultAlignSelfClass(this.alignSelf);\n },\n\n stackResponsive () {\n return getResponsiveClasses(this.direction, this.gap, this.align, this.justify, this.alignSelf);\n },\n },\n};\n</script>\n"],"mappings":"kTAyBA,IAAK,EAAU,CACb,KAAM,UAEN,MAAO,CAWL,UAAW,CACT,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,SACT,UAAY,GAAc,EAAA,mBAAmB,EAAU,CACxD,CAKD,GAAI,CACF,KAAM,OACN,QAAS,MACV,CAKD,KAAM,CACJ,KAAM,QACN,QAAS,GACV,CAUD,IAAK,CACH,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,IACT,UAAY,GAAQ,EAAA,aAAa,EAAI,CACtC,CAYD,MAAO,CACL,KAAM,CAAC,OAAQ,OAAO,CACtB,UAAY,GAAU,EAAA,eAAe,EAAM,CAC5C,CAcD,UAAW,CACT,KAAM,CAAC,OAAQ,OAAO,CACtB,UAAY,GAAc,EAAA,mBAAmB,EAAU,CACxD,CAYD,QAAS,CACP,KAAM,CAAC,OAAQ,OAAO,CACtB,QAAS,QACT,UAAY,GAAY,EAAA,iBAAiB,EAAQ,CAClD,CACF,CAED,MAAQ,CACN,MAAO,CACL,mBAAA,EAAA,mBACA,aAAA,EAAA,aACA,gCAAA,EAAA,gCACA,eAAA,EAAA,eACA,iBAAA,EAAA,iBACD,EAGH,SAAU,CACR,YAAc,CACZ,OAAO,EAAA,mBAAmB,KAAK,IAAI,EAGrC,kBAAoB,CAClB,OAAO,EAAA,yBAAyB,KAAK,UAAU,EAGjD,cAAgB,CACd,OAAO,EAAA,qBAAqB,KAAK,MAAM,EAGzC,gBAAkB,CAChB,OAAO,EAAA,uBAAuB,KAAK,QAAQ,EAG7C,kBAAoB,CAClB,OAAO,EAAA,yBAAyB,KAAK,UAAU,EAGjD,iBAAmB,CACjB,OAAO,EAAA,qBAAqB,KAAK,UAAW,KAAK,IAAK,KAAK,MAAO,KAAK,QAAS,KAAK,UAAU,EAElG,CACF,iGA7JQ,EAAA,GAAE,CAAA,CACP,UAAQ,WACP,OAAA,EAAA,EAAA,gBAAK,4BAA8C,EAAA,KAAI,CAAU,EAAA,iBAAwB,EAAA,WAAkB,EAAA,aAAoB,EAAA,eAAsB,EAAA,iBAAwB,EAAA,8CAYtK,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,UAAA,CAAA,CAAA"}
|
package/dist/lib/stack/stack.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as e } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
|
|
2
2
|
import { DT_STACK_ALIGN as t, DT_STACK_DIRECTION as n, DT_STACK_GAP as r, DT_STACK_JUSTIFY as i, DT_STACK_RESPONSIVE_BREAKPOINTS as a } from "./stack-constants.js";
|
|
3
|
-
import {
|
|
4
|
-
import { getDefaultAlignClass as
|
|
5
|
-
import { createBlock as
|
|
3
|
+
import { alignSelfValidator as o, alignValidator as s, directionValidator as c, gapValidator as l, justifyValidator as u } from "./validators.js";
|
|
4
|
+
import { getDefaultAlignClass as d, getDefaultAlignSelfClass as f, getDefaultDirectionClass as p, getDefaultGapClass as m, getDefaultJustifyClass as h, getResponsiveClasses as g } from "./utils.js";
|
|
5
|
+
import { createBlock as _, normalizeClass as v, openBlock as y, renderSlot as b, resolveDynamicComponent as x, withCtx as S } from "vue";
|
|
6
6
|
//#region components/Stack/Stack.vue
|
|
7
|
-
var
|
|
7
|
+
var C = {
|
|
8
8
|
name: "DtStack",
|
|
9
9
|
props: {
|
|
10
10
|
direction: {
|
|
11
11
|
type: [String, Object],
|
|
12
12
|
default: "column",
|
|
13
|
-
validator: (e) =>
|
|
13
|
+
validator: (e) => c(e)
|
|
14
14
|
},
|
|
15
15
|
as: {
|
|
16
16
|
type: String,
|
|
@@ -23,16 +23,20 @@ var x = {
|
|
|
23
23
|
gap: {
|
|
24
24
|
type: [String, Object],
|
|
25
25
|
default: "0",
|
|
26
|
-
validator: (e) =>
|
|
26
|
+
validator: (e) => l(e)
|
|
27
27
|
},
|
|
28
28
|
align: {
|
|
29
|
+
type: [String, Object],
|
|
30
|
+
validator: (e) => s(e)
|
|
31
|
+
},
|
|
32
|
+
alignSelf: {
|
|
29
33
|
type: [String, Object],
|
|
30
34
|
validator: (e) => o(e)
|
|
31
35
|
},
|
|
32
36
|
justify: {
|
|
33
37
|
type: [String, Object],
|
|
34
38
|
default: "start",
|
|
35
|
-
validator: (e) =>
|
|
39
|
+
validator: (e) => u(e)
|
|
36
40
|
}
|
|
37
41
|
},
|
|
38
42
|
data() {
|
|
@@ -46,41 +50,45 @@ var x = {
|
|
|
46
50
|
},
|
|
47
51
|
computed: {
|
|
48
52
|
defaultGap() {
|
|
49
|
-
return
|
|
53
|
+
return m(this.gap);
|
|
50
54
|
},
|
|
51
55
|
defaultDirection() {
|
|
52
|
-
return
|
|
56
|
+
return p(this.direction);
|
|
53
57
|
},
|
|
54
58
|
defaultAlign() {
|
|
55
|
-
return
|
|
59
|
+
return d(this.align);
|
|
56
60
|
},
|
|
57
61
|
defaultJustify() {
|
|
58
|
-
return
|
|
62
|
+
return h(this.justify);
|
|
63
|
+
},
|
|
64
|
+
defaultAlignSelf() {
|
|
65
|
+
return f(this.alignSelf);
|
|
59
66
|
},
|
|
60
67
|
stackResponsive() {
|
|
61
|
-
return
|
|
68
|
+
return g(this.direction, this.gap, this.align, this.justify, this.alignSelf);
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
};
|
|
65
|
-
function
|
|
66
|
-
return
|
|
72
|
+
function w(e, t, n, r, i, a) {
|
|
73
|
+
return y(), _(x(n.as), {
|
|
67
74
|
"data-qa": "dt-stack",
|
|
68
|
-
class:
|
|
75
|
+
class: v([
|
|
69
76
|
"d-stack",
|
|
70
77
|
{ "d-stack--wrap": n.wrap },
|
|
71
78
|
a.defaultDirection,
|
|
72
79
|
a.defaultGap,
|
|
73
80
|
a.defaultAlign,
|
|
74
81
|
a.defaultJustify,
|
|
82
|
+
a.defaultAlignSelf,
|
|
75
83
|
a.stackResponsive
|
|
76
84
|
])
|
|
77
85
|
}, {
|
|
78
|
-
default:
|
|
86
|
+
default: S(() => [b(e.$slots, "default")]),
|
|
79
87
|
_: 3
|
|
80
88
|
}, 8, ["class"]);
|
|
81
89
|
}
|
|
82
|
-
var
|
|
90
|
+
var T = /* @__PURE__ */ e(C, [["render", w]]);
|
|
83
91
|
//#endregion
|
|
84
|
-
export {
|
|
92
|
+
export { T as default };
|
|
85
93
|
|
|
86
94
|
//# sourceMappingURL=stack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.js","names":[],"sources":["../../../components/Stack/Stack.vue"],"sourcesContent":["<template>\n <component\n :is=\"as\"\n data-qa=\"dt-stack\"\n :class=\"[\n 'd-stack',\n { 'd-stack--wrap': wrap },\n defaultDirection,\n defaultGap,\n defaultAlign,\n defaultJustify,\n stackResponsive,\n ]\"\n >\n <!-- @slot Slot for main content -->\n <slot />\n </component>\n</template>\n\n<script>\nimport { DT_STACK_DIRECTION, DT_STACK_GAP, DT_STACK_RESPONSIVE_BREAKPOINTS, DT_STACK_ALIGN, DT_STACK_JUSTIFY } from './StackConstants';\nimport { directionValidator, gapValidator, alignValidator, justifyValidator } from './Validators';\nimport { getDefaultDirectionClass, getResponsiveClasses, getDefaultGapClass, getDefaultAlignClass, getDefaultJustifyClass } from './Utils';\n\nexport default {\n name: 'DtStack',\n\n props: {\n /**\n * Set this prop to the direction to stack the items.\n * You can override the default direction with 'default' key.\n * All the undefined breakpoints will have 'default' value.\n * By default, for the column direction it will have `justify-content: flex-start`\n * and for the row direction `align-items: center`. This can be overridden\n * using the `align` and `justify` props.\n *\n * @values column, row, row-reverse, column-reverse\n */\n direction: {\n type: [String, Object],\n default: 'column',\n validator: (direction) => directionValidator(direction),\n },\n\n /**\n * Set this prop to render stack as a specific HTML element.\n */\n as: {\n type: String,\n default: 'div',\n },\n\n /**\n * Allow items to wrap onto additional lines when they exceed the available space.\n */\n wrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The gap property controls the spacing between items in the stack.\n * The gap can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default gap with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400, 450, 500, 525, 550, 600, 650, 700, 750, 800\n */\n gap: {\n type: [String, Object],\n default: '0',\n validator: (gap) => gapValidator(gap),\n },\n\n /**\n * The align property controls the alignment of items along the cross axis.\n * The align can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default align with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * If not specified, alignment uses CSS defaults: stretch for column direction,\n * center for row/row-reverse directions (set by CSS).\n * @values start, center, end, stretch, baseline\n */\n align: {\n type: [String, Object],\n validator: (align) => alignValidator(align),\n },\n\n /**\n * The justify property controls the justification of items along the main axis.\n * The justify can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default justify with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * The around, between, and evenly values are deprecated and will ideally be removed in the next major version.\n * Please use space-around, space-between, and space-evenly instead.\n * @values start, center, end, space-around, space-between, space-evenly, around, between, evenly\n */\n justify: {\n type: [String, Object],\n default: 'start',\n validator: (justify) => justifyValidator(justify),\n },\n },\n\n data () {\n return {\n DT_STACK_DIRECTION,\n DT_STACK_GAP,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_ALIGN,\n DT_STACK_JUSTIFY,\n };\n },\n\n computed: {\n defaultGap () {\n return getDefaultGapClass(this.gap);\n },\n\n defaultDirection () {\n return getDefaultDirectionClass(this.direction);\n },\n\n defaultAlign () {\n return getDefaultAlignClass(this.align);\n },\n\n defaultJustify () {\n return getDefaultJustifyClass(this.justify);\n },\n\n stackResponsive () {\n return getResponsiveClasses(this.direction, this.gap, this.align, this.justify);\n },\n },\n};\n</script>\n"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"stack.js","names":[],"sources":["../../../components/Stack/Stack.vue"],"sourcesContent":["<template>\n <component\n :is=\"as\"\n data-qa=\"dt-stack\"\n :class=\"[\n 'd-stack',\n { 'd-stack--wrap': wrap },\n defaultDirection,\n defaultGap,\n defaultAlign,\n defaultJustify,\n defaultAlignSelf,\n stackResponsive,\n ]\"\n >\n <!-- @slot Slot for main content -->\n <slot />\n </component>\n</template>\n\n<script>\nimport { DT_STACK_DIRECTION, DT_STACK_GAP, DT_STACK_RESPONSIVE_BREAKPOINTS, DT_STACK_ALIGN, DT_STACK_JUSTIFY } from './StackConstants';\nimport { directionValidator, gapValidator, alignValidator, alignSelfValidator, justifyValidator } from './Validators';\nimport { getDefaultDirectionClass, getResponsiveClasses, getDefaultGapClass, getDefaultAlignClass, getDefaultAlignSelfClass, getDefaultJustifyClass } from './Utils';\n\nexport default {\n name: 'DtStack',\n\n props: {\n /**\n * Set this prop to the direction to stack the items.\n * You can override the default direction with 'default' key.\n * All the undefined breakpoints will have 'default' value.\n * By default, for the column direction it will have `justify-content: flex-start`\n * and for the row direction `align-items: center`. This can be overridden\n * using the `align` and `justify` props.\n *\n * @values column, row, row-reverse, column-reverse\n */\n direction: {\n type: [String, Object],\n default: 'column',\n validator: (direction) => directionValidator(direction),\n },\n\n /**\n * Set this prop to render stack as a specific HTML element.\n */\n as: {\n type: String,\n default: 'div',\n },\n\n /**\n * Allow items to wrap onto additional lines when they exceed the available space.\n */\n wrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The gap property controls the spacing between items in the stack.\n * The gap can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default gap with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * @values 0, 1, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400, 450, 500, 525, 550, 600, 650, 700, 750, 800\n */\n gap: {\n type: [String, Object],\n default: '0',\n validator: (gap) => gapValidator(gap),\n },\n\n /**\n * The align property controls the alignment of items along the cross axis.\n * The align can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default align with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * If not specified, alignment uses CSS defaults: stretch for column direction,\n * center for row/row-reverse directions (set by CSS).\n * @values start, center, end, stretch, baseline\n */\n align: {\n type: [String, Object],\n validator: (align) => alignValidator(align),\n },\n\n /**\n * The alignSelf property places the stack itself along the cross axis of its flex parent\n * (`align-self`). It does not change how the stack aligns its own children; use `align` for that.\n * The alignSelf can be set to a string, or object with breakpoints.\n * You can set the base value with 'default' key.\n * Each breakpoint value stays active until a later breakpoint value overrides it,\n * so an undefined breakpoint keeps the previous value instead of resetting to 'default'.\n * Use `auto` to reset.\n * In case of string, it will be applied to all the breakpoints.\n * If not specified, the parent's `align-items` applies.\n * @values start, center, end, stretch, baseline, auto\n */\n alignSelf: {\n type: [String, Object],\n validator: (alignSelf) => alignSelfValidator(alignSelf),\n },\n\n /**\n * The justify property controls the justification of items along the main axis.\n * The justify can be set to a string, or object with breakpoints.\n * All the undefined breakpoints will have the 'default' value.\n * You can override the default justify with 'default' key.\n * In case of string, it will be applied to all the breakpoints.\n * The around, between, and evenly values are deprecated and will ideally be removed in the next major version.\n * Please use space-around, space-between, and space-evenly instead.\n * @values start, center, end, space-around, space-between, space-evenly, around, between, evenly\n */\n justify: {\n type: [String, Object],\n default: 'start',\n validator: (justify) => justifyValidator(justify),\n },\n },\n\n data () {\n return {\n DT_STACK_DIRECTION,\n DT_STACK_GAP,\n DT_STACK_RESPONSIVE_BREAKPOINTS,\n DT_STACK_ALIGN,\n DT_STACK_JUSTIFY,\n };\n },\n\n computed: {\n defaultGap () {\n return getDefaultGapClass(this.gap);\n },\n\n defaultDirection () {\n return getDefaultDirectionClass(this.direction);\n },\n\n defaultAlign () {\n return getDefaultAlignClass(this.align);\n },\n\n defaultJustify () {\n return getDefaultJustifyClass(this.justify);\n },\n\n defaultAlignSelf () {\n return getDefaultAlignSelfClass(this.alignSelf);\n },\n\n stackResponsive () {\n return getResponsiveClasses(this.direction, this.gap, this.align, this.justify, this.alignSelf);\n },\n },\n};\n</script>\n"],"mappings":";;;;;;AAyBA,IAAK,IAAU;CACb,MAAM;CAEN,OAAO;EAWL,WAAW;GACT,MAAM,CAAC,QAAQ,OAAO;GACtB,SAAS;GACT,YAAY,MAAc,EAAmB,EAAU;GACxD;EAKD,IAAI;GACF,MAAM;GACN,SAAS;GACV;EAKD,MAAM;GACJ,MAAM;GACN,SAAS;GACV;EAUD,KAAK;GACH,MAAM,CAAC,QAAQ,OAAO;GACtB,SAAS;GACT,YAAY,MAAQ,EAAa,EAAI;GACtC;EAYD,OAAO;GACL,MAAM,CAAC,QAAQ,OAAO;GACtB,YAAY,MAAU,EAAe,EAAM;GAC5C;EAcD,WAAW;GACT,MAAM,CAAC,QAAQ,OAAO;GACtB,YAAY,MAAc,EAAmB,EAAU;GACxD;EAYD,SAAS;GACP,MAAM,CAAC,QAAQ,OAAO;GACtB,SAAS;GACT,YAAY,MAAY,EAAiB,EAAQ;GAClD;EACF;CAED,OAAQ;AACN,SAAO;GACL;GACA;GACA;GACA;GACA;GACD;;CAGH,UAAU;EACR,aAAc;AACZ,UAAO,EAAmB,KAAK,IAAI;;EAGrC,mBAAoB;AAClB,UAAO,EAAyB,KAAK,UAAU;;EAGjD,eAAgB;AACd,UAAO,EAAqB,KAAK,MAAM;;EAGzC,iBAAkB;AAChB,UAAO,EAAuB,KAAK,QAAQ;;EAG7C,mBAAoB;AAClB,UAAO,EAAyB,KAAK,UAAU;;EAGjD,kBAAmB;AACjB,UAAO,EAAqB,KAAK,WAAW,KAAK,KAAK,KAAK,OAAO,KAAK,SAAS,KAAK,UAAU;;EAElG;CACF;;aA9JC,EAgBY,EAfL,EAAA,GAAE,EAAA;EACP,WAAQ;EACP,OAAK,EAAA;;sBAA8C,EAAA,MAAI;GAAU,EAAA;GAAwB,EAAA;GAAkB,EAAA;GAAoB,EAAA;GAAsB,EAAA;GAAwB,EAAA;;;mBAYtK,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA"}
|
package/dist/lib/stack/utils.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./stack-constants.cjs`);function t(t){return t===e.DT_STACK_DIRECTION.default}function n(e){return typeof e==`string`?e:typeof e==`object`&&e?e.default:null}function r(n){if(typeof n==`string`)return t(n)?null:e.DT_STACK_DIRECTION[n];if(typeof n==`object`){let{default:r}=n;return t(r)?null:e.DT_STACK_DIRECTION[r]}else return null}function i(t,n,r,i=`d-stack`){return typeof t!=`object`||!t?[]:e.DT_STACK_RESPONSIVE_BREAKPOINTS.map(e=>{let a=t[e];if(!a)return null;let o=Array.isArray(r)?r.includes(a):a in r,s=n===``?`${i}--${e}-${a}`:`${i}--${e}-${n}-${a}`;return o?s:null})}function a(t){return r(t)?`d-stack--${e.DT_STACK_DIRECTION[r(t)]}`:null}function o(t){return i(t,``,e.DT_STACK_DIRECTION)}function s(t){return i(t,`gap`,e.DT_STACK_GAP)}function c(t){return i(t,`align`,e.DT_STACK_ALIGN)}function l(t){return typeof t!=`object`||!t?[]:e.DT_STACK_RESPONSIVE_BREAKPOINTS.map(n=>{let r=t[n];if(!r)return null;let i=e.DT_STACK_JUSTIFY.includes(r),a=
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./stack-constants.cjs`);function t(t){return t===e.DT_STACK_DIRECTION.default}function n(e){return typeof e==`string`?e:typeof e==`object`&&e?e.default:null}function r(n){if(typeof n==`string`)return t(n)?null:e.DT_STACK_DIRECTION[n];if(typeof n==`object`){let{default:r}=n;return t(r)?null:e.DT_STACK_DIRECTION[r]}else return null}function i(t,n,r,i=`d-stack`){return typeof t!=`object`||!t?[]:e.DT_STACK_RESPONSIVE_BREAKPOINTS.map(e=>{let a=t[e];if(!a)return null;let o=Array.isArray(r)?r.includes(a):a in r,s=n===``?`${i}--${e}-${a}`:`${i}--${e}-${n}-${a}`;return o?s:null})}function a(t){return r(t)?`d-stack--${e.DT_STACK_DIRECTION[r(t)]}`:null}function o(t){return i(t,``,e.DT_STACK_DIRECTION)}function s(t){return i(t,`gap`,e.DT_STACK_GAP)}function c(t){return i(t,`align`,e.DT_STACK_ALIGN)}function l(t){return i(t,`align-self`,e.DT_STACK_ALIGN_SELF)}function u(t){return typeof t!=`object`||!t?[]:e.DT_STACK_RESPONSIVE_BREAKPOINTS.map(n=>{let r=t[n];if(!r)return null;let i=e.DT_STACK_JUSTIFY.includes(r),a=h(r);return i?`d-stack--${n}-justify-${a}`:null})}function d(e,t,n,r,i){return[...o(e),...s(t),...c(n),...u(r),...l(i)]}function f(t){let r=n(t);return e.DT_STACK_GAP.includes(r)?`d-stack--gap-${r}`:null}function p(t){let r=n(t);return e.DT_STACK_ALIGN.includes(r)?`d-stack--align-${r}`:null}function m(t){let r=n(t);return e.DT_STACK_ALIGN_SELF.includes(r)?`d-stack--align-self-${r}`:null}function h(e){return{"space-around":`around`,"space-between":`between`,"space-evenly":`evenly`}[e]||e}function g(t){let r=n(t),i=h(r);return e.DT_STACK_JUSTIFY.includes(r)?`d-stack--justify-${i}`:null}exports.getDefaultAlignClass=p,exports.getDefaultAlignSelfClass=m,exports.getDefaultDirectionClass=a,exports.getDefaultGapClass=f,exports.getDefaultJustifyClass=g,exports.getResponsiveClasses=d;
|
|
2
2
|
//# sourceMappingURL=utils.cjs.map
|