yuyeon 0.2.1-rc.8 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/yuyeon.js +576 -562
  2. package/dist/yuyeon.umd.cjs +2 -2
  3. package/lib/components/chip/YChip.mjs +1 -1
  4. package/lib/components/chip/YChip.mjs.map +1 -1
  5. package/lib/components/date-picker/YDatePicker.mjs +8 -2
  6. package/lib/components/date-picker/YDatePicker.mjs.map +1 -1
  7. package/lib/components/date-picker/YMonthPicker.mjs +8 -1
  8. package/lib/components/date-picker/YMonthPicker.mjs.map +1 -1
  9. package/lib/components/date-picker/YYearPicker.mjs +4 -0
  10. package/lib/components/date-picker/YYearPicker.mjs.map +1 -1
  11. package/lib/components/field-input/YFieldInput.mjs +1 -10
  12. package/lib/components/field-input/YFieldInput.mjs.map +1 -1
  13. package/lib/components/layer/YLayer.mjs +2 -1
  14. package/lib/components/layer/YLayer.mjs.map +1 -1
  15. package/lib/components/table/YDataTableHead.mjs +2 -1
  16. package/lib/components/table/YDataTableHead.mjs.map +1 -1
  17. package/lib/components/table/YDataTableRow.mjs +1 -1
  18. package/lib/components/table/YDataTableRow.mjs.map +1 -1
  19. package/lib/components/table/composibles/items.mjs +6 -1
  20. package/lib/components/table/composibles/items.mjs.map +1 -1
  21. package/lib/components/table/composibles/selection.mjs +1 -1
  22. package/lib/components/table/composibles/selection.mjs.map +1 -1
  23. package/lib/components/table/types/header.mjs.map +1 -1
  24. package/lib/composables/layer-group.mjs +2 -2
  25. package/lib/composables/layer-group.mjs.map +1 -1
  26. package/lib/util/color/const.mjs +1 -1
  27. package/lib/util/color/const.mjs.map +1 -1
  28. package/package.json +1 -1
  29. package/types/components/date-picker/YMonthPicker.d.ts +1 -1
  30. package/types/components/date-picker/YYearPicker.d.ts +1 -1
  31. package/types/components/dialog/YDialog.d.ts +7 -0
  32. package/types/components/dropdown/YDropdown.d.ts +6 -0
  33. package/types/components/layer/YLayer.d.ts +6 -0
  34. package/types/components/menu/YMenu.d.ts +3 -0
  35. package/types/components/select/YSelect.d.ts +31 -0
  36. package/types/components/snackbar/YSnackbar.d.ts +6 -0
  37. package/types/components/table/YDataTable.d.ts +10 -3
  38. package/types/components/table/YDataTableServer.d.ts +10 -3
  39. package/types/components/table/composibles/header.d.ts +8 -0
  40. package/types/components/table/composibles/selection.d.ts +2 -2
  41. package/types/components/table/types/header.d.ts +1 -0
  42. package/types/components/tooltip/YTooltip.d.ts +4 -0
  43. package/types/composables/layer-group.d.ts +1 -1
@@ -19,7 +19,12 @@ export const pressDataTableItemsProps = propsFactory({
19
19
  export function updateItem(props, item, index, columns) {
20
20
  const key = getPropertyFromItem(item, props.itemKey);
21
21
  const value = props.returnItem ? item : key;
22
- const selectable = getPropertyFromItem(item, props.itemSelectable, true);
22
+ let selectable;
23
+ if (typeof props.itemSelectable === 'function') {
24
+ selectable = !!props.itemSelectable(item);
25
+ } else {
26
+ selectable = getPropertyFromItem(item, props.itemSelectable, true);
27
+ }
23
28
  const itemColumns = columns.reduce((acc, column) => {
24
29
  acc[column.key] = getPropertyFromItem(item, column.value ?? column.key);
25
30
  return acc;
@@ -1 +1 @@
1
- {"version":3,"file":"items.mjs","names":["computed","getPropertyFromItem","propsFactory","pressDataTableItemsProps","items","type","Array","default","itemKey","String","Function","itemSelectable","returnItem","Boolean","updateItem","props","item","index","columns","key","value","selectable","itemColumns","reduce","acc","column","raw","updateItems","map","useItems"],"sources":["../../../../src/components/table/composibles/items.ts"],"sourcesContent":["import { type PropType, type Ref, computed } from 'vue';\n\nimport { getPropertyFromItem } from '@/util/common';\nimport { propsFactory } from '@/util/component';\n\nimport { DataTableItem, InternalDataTableHeader } from '../types';\n\nexport type DataTableItemsProps = {\n items: any[];\n itemKey: any;\n itemSelectable: any;\n returnItem: boolean;\n};\n\nexport const pressDataTableItemsProps = propsFactory(\n {\n items: {\n type: Array as PropType<DataTableItemsProps['items']>,\n default: () => [],\n },\n itemKey: {\n type: [String, Array, Function] as PropType<any>,\n default: 'id',\n },\n itemSelectable: {\n type: [String, Array, Function] as PropType<any>,\n default: null,\n },\n returnItem: Boolean,\n },\n 'YDataTable--items',\n);\n\nexport function updateItem(\n props: Omit<DataTableItemsProps, 'items'>,\n item: any,\n index: number,\n columns: InternalDataTableHeader[],\n): DataTableItem {\n const key = getPropertyFromItem(item, props.itemKey);\n const value = props.returnItem ? item : key;\n const selectable = getPropertyFromItem(item, props.itemSelectable, true);\n const itemColumns = columns.reduce(\n (acc, column) => {\n acc[column.key] = getPropertyFromItem(item, column.value ?? column.key);\n return acc;\n },\n {} as Record<string, unknown>,\n );\n\n return {\n index,\n key,\n value,\n selectable,\n columns: itemColumns,\n raw: item,\n };\n}\n\nexport function updateItems(\n props: Omit<DataTableItemsProps, 'items'>,\n items: DataTableItemsProps['items'],\n columns: InternalDataTableHeader[],\n): DataTableItem[] {\n return items.map((item, index) => updateItem(props, item, index, columns));\n}\n\nexport function useItems(\n props: DataTableItemsProps,\n columns: Ref<InternalDataTableHeader[]>,\n) {\n const items = computed(() => {\n return updateItems(props, props.items, columns.value);\n });\n return { items };\n}\n"],"mappings":"AAAA,SAAkCA,QAAQ,QAAQ,KAAK;AAAC,SAE/CC,mBAAmB;AAAA,SACnBC,YAAY;AAWrB,OAAO,MAAMC,wBAAwB,GAAGD,YAAY,CAClD;EACEE,KAAK,EAAE;IACLC,IAAI,EAAEC,KAA+C;IACrDC,OAAO,EAAEA,CAAA,KAAM;EACjB,CAAC;EACDC,OAAO,EAAE;IACPH,IAAI,EAAE,CAACI,MAAM,EAAEH,KAAK,EAAEI,QAAQ,CAAkB;IAChDH,OAAO,EAAE;EACX,CAAC;EACDI,cAAc,EAAE;IACdN,IAAI,EAAE,CAACI,MAAM,EAAEH,KAAK,EAAEI,QAAQ,CAAkB;IAChDH,OAAO,EAAE;EACX,CAAC;EACDK,UAAU,EAAEC;AACd,CAAC,EACD,mBACF,CAAC;AAED,OAAO,SAASC,UAAUA,CACxBC,KAAyC,EACzCC,IAAS,EACTC,KAAa,EACbC,OAAkC,EACnB;EACf,MAAMC,GAAG,GAAGlB,mBAAmB,CAACe,IAAI,EAAED,KAAK,CAACP,OAAO,CAAC;EACpD,MAAMY,KAAK,GAAGL,KAAK,CAACH,UAAU,GAAGI,IAAI,GAAGG,GAAG;EAC3C,MAAME,UAAU,GAAGpB,mBAAmB,CAACe,IAAI,EAAED,KAAK,CAACJ,cAAc,EAAE,IAAI,CAAC;EACxE,MAAMW,WAAW,GAAGJ,OAAO,CAACK,MAAM,CAChC,CAACC,GAAG,EAAEC,MAAM,KAAK;IACfD,GAAG,CAACC,MAAM,CAACN,GAAG,CAAC,GAAGlB,mBAAmB,CAACe,IAAI,EAAES,MAAM,CAACL,KAAK,IAAIK,MAAM,CAACN,GAAG,CAAC;IACvE,OAAOK,GAAG;EACZ,CAAC,EACD,CAAC,CACH,CAAC;EAED,OAAO;IACLP,KAAK;IACLE,GAAG;IACHC,KAAK;IACLC,UAAU;IACVH,OAAO,EAAEI,WAAW;IACpBI,GAAG,EAAEV;EACP,CAAC;AACH;AAEA,OAAO,SAASW,WAAWA,CACzBZ,KAAyC,EACzCX,KAAmC,EACnCc,OAAkC,EACjB;EACjB,OAAOd,KAAK,CAACwB,GAAG,CAAC,CAACZ,IAAI,EAAEC,KAAK,KAAKH,UAAU,CAACC,KAAK,EAAEC,IAAI,EAAEC,KAAK,EAAEC,OAAO,CAAC,CAAC;AAC5E;AAEA,OAAO,SAASW,QAAQA,CACtBd,KAA0B,EAC1BG,OAAuC,EACvC;EACA,MAAMd,KAAK,GAAGJ,QAAQ,CAAC,MAAM;IAC3B,OAAO2B,WAAW,CAACZ,KAAK,EAAEA,KAAK,CAACX,KAAK,EAAEc,OAAO,CAACE,KAAK,CAAC;EACvD,CAAC,CAAC;EACF,OAAO;IAAEhB;EAAM,CAAC;AAClB"}
1
+ {"version":3,"file":"items.mjs","names":["computed","getPropertyFromItem","propsFactory","pressDataTableItemsProps","items","type","Array","default","itemKey","String","Function","itemSelectable","returnItem","Boolean","updateItem","props","item","index","columns","key","value","selectable","itemColumns","reduce","acc","column","raw","updateItems","map","useItems"],"sources":["../../../../src/components/table/composibles/items.ts"],"sourcesContent":["import { type PropType, type Ref, computed } from 'vue';\n\nimport { getPropertyFromItem } from '@/util/common';\nimport { propsFactory } from '@/util/component';\n\nimport { DataTableItem, InternalDataTableHeader } from '../types';\n\nexport type DataTableItemsProps = {\n items: any[];\n itemKey: any;\n itemSelectable: any;\n returnItem: boolean;\n};\n\nexport const pressDataTableItemsProps = propsFactory(\n {\n items: {\n type: Array as PropType<DataTableItemsProps['items']>,\n default: () => [],\n },\n itemKey: {\n type: [String, Array, Function] as PropType<any>,\n default: 'id',\n },\n itemSelectable: {\n type: [String, Array, Function] as PropType<any>,\n default: null,\n },\n returnItem: Boolean,\n },\n 'YDataTable--items',\n);\n\nexport function updateItem(\n props: Omit<DataTableItemsProps, 'items'>,\n item: any,\n index: number,\n columns: InternalDataTableHeader[],\n): DataTableItem {\n const key = getPropertyFromItem(item, props.itemKey);\n const value = props.returnItem ? item : key;\n let selectable;\n if (typeof props.itemSelectable === 'function') {\n selectable = !!props.itemSelectable(item);\n } else {\n selectable = getPropertyFromItem(item, props.itemSelectable, true);\n }\n\n const itemColumns = columns.reduce(\n (acc, column) => {\n acc[column.key] = getPropertyFromItem(item, column.value ?? column.key);\n return acc;\n },\n {} as Record<string, unknown>,\n );\n\n return {\n index,\n key,\n value,\n selectable,\n columns: itemColumns,\n raw: item,\n };\n}\n\nexport function updateItems(\n props: Omit<DataTableItemsProps, 'items'>,\n items: DataTableItemsProps['items'],\n columns: InternalDataTableHeader[],\n): DataTableItem[] {\n return items.map((item, index) => updateItem(props, item, index, columns));\n}\n\nexport function useItems(\n props: DataTableItemsProps,\n columns: Ref<InternalDataTableHeader[]>,\n) {\n const items = computed(() => {\n return updateItems(props, props.items, columns.value);\n });\n return { items };\n}\n"],"mappings":"AAAA,SAAkCA,QAAQ,QAAQ,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E,GAAG;IACHC,KAAK;IACLC,UAAU;IACVH,OAAO,EAAEI,WAAW;IACpBI,GAAG,EAAEV;EACP,CAAC;AACH;AAEA,OAAO,SAASW,WAAWA,CACzBZ,KAAyC,EACzCX,KAAmC,EACnCc,OAAkC,EACjB;EACjB,OAAOd,KAAK,CAACwB,GAAG,CAAC,CAACZ,IAAI,EAAEC,KAAK,KAAKH,UAAU,CAACC,KAAK,EAAEC,IAAI,EAAEC,KAAK,EAAEC,OAAO,CAAC,CAAC;AAC5E;AAEA,OAAO,SAASW,QAAQA,CACtBd,KAA0B,EAC1BG,OAAuC,EACvC;EACA,MAAMd,KAAK,GAAGJ,QAAQ,CAAC,MAAM;IAC3B,OAAO2B,WAAW,CAACZ,KAAK,EAAEA,KAAK,CAACX,KAAK,EAAEc,OAAO,CAACE,KAAK,CAAC;EACvD,CAAC,CAAC;EACF,OAAO;IAAEhB;EAAM,CAAC;AAClB"}
@@ -15,7 +15,7 @@ export const pressDataTableSelectionProps = propsFactory({
15
15
  },
16
16
  itemComparator: {
17
17
  type: [Function, String],
18
- default: deepEqual
18
+ default: () => deepEqual
19
19
  }
20
20
  }, 'YDataTable--selection');
21
21
  const singleSelectStrategy = {
@@ -1 +1 @@
1
- {"version":3,"file":"selection.mjs","names":["computed","inject","provide","useModelDuplex","wrapInArray","deepEqual","getPropertyFromItem","propsFactory","pressDataTableSelectionProps","enableSelect","Boolean","selectStrategy","type","String","Object","default","modelValue","Array","itemComparator","Function","singleSelectStrategy","showSelectAll","allSelected","select","_ref","items","value","Set","selectAll","_ref2","selected","pageSelectStrategy","_ref3","pageItems","_ref4","item","add","delete","_ref5","allSelectStrategy","_ref6","allItems","_ref7","_ref8","Y_DATA_TABLE_SELECTION_KEY","Symbol","for","provideSelection","props","_ref9","v","map","find","itemKey","key","values","allSelectables","filter","selectable","pageSelectables","isSelected","every","has","isSomeSelected","some","toggleSelect","selectables","someSelected","data","useSelection","Error","description"],"sources":["../../../../src/components/table/composibles/selection.ts"],"sourcesContent":["import {\n type InjectionKey,\n type PropType,\n type Ref,\n computed,\n inject,\n provide,\n} from 'vue';\n\nimport { useModelDuplex } from '@/composables/communication';\nimport { wrapInArray } from '@/util/array';\nimport { deepEqual, getPropertyFromItem } from '@/util/common';\nimport { propsFactory } from '@/util/component';\n\nimport { DataTableProvideSelectionData } from '../types';\nimport { DataTableItemsProps } from './items';\n\nexport interface SelectableItem {\n key: string;\n value: any;\n selectable: boolean;\n}\n\nexport interface DataTableSelectStrategy {\n showSelectAll: boolean;\n allSelected: (data: {\n allItems: SelectableItem[];\n pageItems: SelectableItem[];\n }) => SelectableItem[];\n select: (data: {\n items: SelectableItem[];\n value: boolean;\n selected: Set<unknown>;\n }) => Set<unknown>;\n selectAll: (data: {\n value: boolean;\n allItems: SelectableItem[];\n pageItems: SelectableItem[];\n selected: Set<unknown>;\n }) => Set<unknown>;\n}\n\nexport const pressDataTableSelectionProps = propsFactory(\n {\n enableSelect: Boolean,\n selectStrategy: {\n type: [String, Object] as PropType<'single' | 'page' | 'all'>,\n default: 'page',\n },\n modelValue: {\n type: Array as PropType<readonly any[]>,\n default: () => [],\n },\n itemComparator: {\n type: [Function, String] as PropType<typeof deepEqual | string>,\n default: deepEqual,\n },\n },\n 'YDataTable--selection',\n);\n\ntype DataTableSelectionProps = Pick<DataTableItemsProps, 'itemKey'> & {\n modelValue: readonly any[];\n selectStrategy: 'single' | 'page' | 'all';\n 'onUpdate:modelValue': ((value: any[]) => void) | undefined;\n itemComparator: ((a: any, b: any) => boolean) | string;\n};\n\nconst singleSelectStrategy: DataTableSelectStrategy = {\n showSelectAll: false,\n allSelected: () => [],\n select: ({ items, value }) => {\n return new Set(value ? [items[0]?.value] : []);\n },\n selectAll: ({ selected }) => selected,\n};\n\nconst pageSelectStrategy: DataTableSelectStrategy = {\n showSelectAll: true,\n allSelected: ({ pageItems }) => pageItems,\n select: ({ items, value, selected }) => {\n for (const item of items) {\n if (value) selected.add(item.value);\n else selected.delete(item.value);\n }\n\n return selected;\n },\n selectAll: ({ value, pageItems, selected }) =>\n pageSelectStrategy.select({ items: pageItems, value, selected }),\n};\n\nconst allSelectStrategy: DataTableSelectStrategy = {\n showSelectAll: true,\n allSelected: ({ allItems }) => allItems,\n select: ({ items, value, selected }) => {\n for (const item of items) {\n if (value) selected.add(item.value);\n else selected.delete(item.value);\n }\n\n return selected;\n },\n selectAll: ({ value, allItems, selected }) =>\n allSelectStrategy.select({ items: allItems, value, selected }),\n};\n\nexport const Y_DATA_TABLE_SELECTION_KEY: InjectionKey<\n ReturnType<typeof provideSelection>\n> = Symbol.for('yuyeon.data-table.selection');\n\nexport function provideSelection(\n props: DataTableSelectionProps,\n {\n allItems,\n pageItems,\n }: { allItems: Ref<SelectableItem[]>; pageItems: Ref<SelectableItem[]> },\n) {\n const selected = useModelDuplex(\n props,\n 'modelValue',\n props.modelValue,\n (v) => {\n return new Set(\n wrapInArray(v).map((v) => {\n return (\n allItems.value.find((item) => {\n const { itemComparator } = props;\n if (typeof itemComparator === 'function') {\n itemComparator(v, item.value);\n }\n return getPropertyFromItem(v, props.itemKey) === item.key;\n })?.value ?? v\n );\n }),\n );\n },\n (v) => {\n return [...v.values()];\n },\n );\n\n const allSelectables = computed(() =>\n allItems.value.filter((item) => item.selectable),\n );\n\n const pageSelectables = computed(() =>\n pageItems.value.filter((item) => item.selectable),\n );\n\n const selectStrategy = computed(() => {\n if (typeof props.selectStrategy === 'object') {\n return props.selectStrategy;\n }\n switch (props.selectStrategy) {\n case 'single':\n return singleSelectStrategy;\n case 'all':\n return allSelectStrategy;\n case 'page':\n default:\n return pageSelectStrategy;\n }\n });\n\n function isSelected(items: SelectableItem | SelectableItem[]) {\n return wrapInArray(items).every((item) => selected.value.has(item.value));\n }\n\n function isSomeSelected(items: SelectableItem | SelectableItem[]) {\n return wrapInArray(items).some((item) => selected.value.has(item.value));\n }\n\n function select(items: SelectableItem[], value: boolean) {\n selected.value = selectStrategy.value.select({\n items,\n value,\n selected: new Set(selected.value),\n });\n }\n\n function toggleSelect(item: SelectableItem) {\n select([item], !isSelected([item]));\n }\n\n function selectAll(value: boolean) {\n selected.value = selectStrategy.value.selectAll({\n value,\n allItems: allSelectables.value,\n pageItems: pageSelectables.value,\n selected: new Set(selected.value),\n });\n }\n\n const selectables = computed(() => {\n return selectStrategy.value.allSelected({\n allItems: allSelectables.value,\n pageItems: pageSelectables.value,\n });\n });\n\n const someSelected = computed(() => {\n return isSomeSelected(pageSelectables.value);\n });\n\n const allSelected = computed(() => {\n return isSelected(selectables.value);\n });\n\n const data: DataTableProvideSelectionData = {\n toggleSelect,\n select,\n selectAll,\n isSelected,\n isSomeSelected,\n someSelected,\n allSelected,\n showSelectAll: selectStrategy.value.showSelectAll,\n selectables,\n };\n\n provide(Y_DATA_TABLE_SELECTION_KEY, data);\n\n return data;\n}\n\nexport function useSelection() {\n const data = inject(Y_DATA_TABLE_SELECTION_KEY);\n if (!data) {\n throw new Error(`Not provided: ${Y_DATA_TABLE_SELECTION_KEY.description}`);\n }\n\n return data;\n}\n"],"mappings":"AAAA,SAIEA,QAAQ,EACRC,MAAM,EACNC,OAAO,QACF,KAAK;AAAC,SAEJC,cAAc;AAAA,SACdC,WAAW;AAAA,SACXC,SAAS,EAAEC,mBAAmB;AAAA,SAC9BC,YAAY;AA8BrB,OAAO,MAAMC,4BAA4B,GAAGD,YAAY,CACtD;EACEE,YAAY,EAAEC,OAAO;EACrBC,cAAc,EAAE;IACdC,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAwC;IAC7DC,OAAO,EAAE;EACX,CAAC;EACDC,UAAU,EAAE;IACVJ,IAAI,EAAEK,KAAiC;IACvCF,OAAO,EAAEA,CAAA,KAAM;EACjB,CAAC;EACDG,cAAc,EAAE;IACdN,IAAI,EAAE,CAACO,QAAQ,EAAEN,MAAM,CAAwC;IAC/DE,OAAO,EAAEV;EACX;AACF,CAAC,EACD,uBACF,CAAC;AASD,MAAMe,oBAA6C,GAAG;EACpDC,aAAa,EAAE,KAAK;E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Aa;IACjD6C;EACF,CAAC;EAEDhE,OAAO,CAAC0C,0BAA0B,EAAEwB,IAAI,CAAC;EAEzC,OAAOA,IAAI;AACb;AAEA,OAAO,SAASC,YAAYA,CAAA,EAAG;EAC7B,MAAMD,IAAI,GAAGnE,MAAM,CAAC2C,0BAA0B,CAAC;EAC/C,IAAI,CAACwB,IAAI,EAAE;IACT,MAAM,IAAIE,KAAK,CAAE,iBAAgB1B,0BAA0B,CAAC2B,WAAY,EAAC,CAAC;EAC5E;EAEA,OAAOH,IAAI;AACb"}
1
+ {"version":3,"file":"selection.mjs","names":["computed","inject","provide","useModelDuplex","wrapInArray","deepEqual","getPropertyFromItem","propsFactory","pressDataTableSelectionProps","enableSelect","Boolean","selectStrategy","type","String","Object","default","modelValue","Array","itemComparator","Function","singleSelectStrategy","showSelectAll","allSelected","select","_ref","items","value","Set","selectAll","_ref2","selected","pageSelectStrategy","_ref3","pageItems","_ref4","item","add","delete","_ref5","allSelectStrategy","_ref6","allItems","_ref7","_ref8","Y_DATA_TABLE_SELECTION_KEY","Symbol","for","provideSelection","props","_ref9","v","map","find","itemKey","key","values","allSelectables","filter","selectable","pageSelectables","isSelected","every","has","isSomeSelected","some","toggleSelect","selectables","someSelected","data","useSelection","Error","description"],"sources":["../../../../src/components/table/composibles/selection.ts"],"sourcesContent":["import {\n type InjectionKey,\n type PropType,\n type Ref,\n computed,\n inject,\n provide,\n} from 'vue';\n\nimport { useModelDuplex } from '@/composables/communication';\nimport { wrapInArray } from '@/util/array';\nimport { deepEqual, getPropertyFromItem } from '@/util/common';\nimport { propsFactory } from '@/util/component';\n\nimport { DataTableProvideSelectionData } from '../types';\nimport { DataTableItemsProps } from './items';\n\nexport interface SelectableItem {\n key: string;\n value: any;\n selectable: boolean;\n}\n\nexport interface DataTableSelectStrategy {\n showSelectAll: boolean;\n allSelected: (data: {\n allItems: SelectableItem[];\n pageItems: SelectableItem[];\n }) => SelectableItem[];\n select: (data: {\n items: SelectableItem[];\n value: boolean;\n selected: Set<unknown>;\n }) => Set<unknown>;\n selectAll: (data: {\n value: boolean;\n allItems: SelectableItem[];\n pageItems: SelectableItem[];\n selected: Set<unknown>;\n }) => Set<unknown>;\n}\n\nexport const pressDataTableSelectionProps = propsFactory(\n {\n enableSelect: Boolean,\n selectStrategy: {\n type: [String, Object] as PropType<'single' | 'page' | 'all'>,\n default: 'page',\n },\n modelValue: {\n type: Array as PropType<readonly any[]>,\n default: () => [],\n },\n itemComparator: {\n type: [Function, String] as PropType<typeof deepEqual | string>,\n default: () => deepEqual,\n },\n },\n 'YDataTable--selection',\n);\n\ntype DataTableSelectionProps = Pick<DataTableItemsProps, 'itemKey'> & {\n modelValue: readonly any[];\n selectStrategy: 'single' | 'page' | 'all';\n 'onUpdate:modelValue': ((value: any[]) => void) | undefined;\n itemComparator: ((a: any, b: any) => boolean) | string;\n};\n\nconst singleSelectStrategy: DataTableSelectStrategy = {\n showSelectAll: false,\n allSelected: () => [],\n select: ({ items, value }) => {\n return new Set(value ? [items[0]?.value] : []);\n },\n selectAll: ({ selected }) => selected,\n};\n\nconst pageSelectStrategy: DataTableSelectStrategy = {\n showSelectAll: true,\n allSelected: ({ pageItems }) => pageItems,\n select: ({ items, value, selected }) => {\n for (const item of items) {\n if (value) selected.add(item.value);\n else selected.delete(item.value);\n }\n\n return selected;\n },\n selectAll: ({ value, pageItems, selected }) =>\n pageSelectStrategy.select({ items: pageItems, value, selected }),\n};\n\nconst allSelectStrategy: DataTableSelectStrategy = {\n showSelectAll: true,\n allSelected: ({ allItems }) => allItems,\n select: ({ items, value, selected }) => {\n for (const item of items) {\n if (value) selected.add(item.value);\n else selected.delete(item.value);\n }\n\n return selected;\n },\n selectAll: ({ value, allItems, selected }) =>\n allSelectStrategy.select({ items: allItems, value, selected }),\n};\n\nexport const Y_DATA_TABLE_SELECTION_KEY: InjectionKey<\n ReturnType<typeof provideSelection>\n> = Symbol.for('yuyeon.data-table.selection');\n\nexport function provideSelection(\n props: DataTableSelectionProps,\n {\n allItems,\n pageItems,\n }: { allItems: Ref<SelectableItem[]>; pageItems: Ref<SelectableItem[]> },\n) {\n const selected = useModelDuplex(\n props,\n 'modelValue',\n props.modelValue,\n (v) => {\n return new Set(\n wrapInArray(v).map((v) => {\n return (\n allItems.value.find((item) => {\n const { itemComparator } = props;\n if (typeof itemComparator === 'function') {\n itemComparator(v, item.value);\n }\n return getPropertyFromItem(v, props.itemKey) === item.key;\n })?.value ?? v\n );\n }),\n );\n },\n (v) => {\n return [...v.values()];\n },\n );\n\n const allSelectables = computed(() =>\n allItems.value.filter((item) => item.selectable),\n );\n\n const pageSelectables = computed(() =>\n pageItems.value.filter((item) => item.selectable),\n );\n\n const selectStrategy = computed(() => {\n if (typeof props.selectStrategy === 'object') {\n return props.selectStrategy;\n }\n switch (props.selectStrategy) {\n case 'single':\n return singleSelectStrategy;\n case 'all':\n return allSelectStrategy;\n case 'page':\n default:\n return pageSelectStrategy;\n }\n });\n\n function isSelected(items: SelectableItem | SelectableItem[]) {\n return wrapInArray(items).every((item) => selected.value.has(item.value));\n }\n\n function isSomeSelected(items: SelectableItem | SelectableItem[]) {\n return wrapInArray(items).some((item) => selected.value.has(item.value));\n }\n\n function select(items: SelectableItem[], value: boolean) {\n selected.value = selectStrategy.value.select({\n items,\n value,\n selected: new Set(selected.value),\n });\n }\n\n function toggleSelect(item: SelectableItem) {\n select([item], !isSelected([item]));\n }\n\n function selectAll(value: boolean) {\n selected.value = selectStrategy.value.selectAll({\n value,\n allItems: allSelectables.value,\n pageItems: pageSelectables.value,\n selected: new Set(selected.value),\n });\n }\n\n const selectables = computed(() => {\n return selectStrategy.value.allSelected({\n allItems: allSelectables.value,\n pageItems: pageSelectables.value,\n });\n });\n\n const someSelected = computed(() => {\n return isSomeSelected(pageSelectables.value);\n });\n\n const allSelected = computed(() => {\n return isSelected(selectables.value);\n });\n\n const data: DataTableProvideSelectionData = {\n toggleSelect,\n select,\n selectAll,\n isSelected,\n isSomeSelected,\n someSelected,\n allSelected,\n showSelectAll: selectStrategy.value.showSelectAll,\n selectables,\n };\n\n provide(Y_DATA_TABLE_SELECTION_KEY, data);\n\n return data;\n}\n\nexport function useSelection() {\n const data = inject(Y_DATA_TABLE_SELECTION_KEY);\n if (!data) {\n throw new Error(`Not provided: ${Y_DATA_TABLE_SELECTION_KEY.description}`);\n }\n\n return data;\n}\n"],"mappings":"AAAA,SAIEA,QAAQ,EACRC,MAAM,EACNC,OAAO,QACF,KAAK;AAAC,SAEJC,cAAc;AAAA,SACdC,WAAW;AAAA,SACXC,SAAS,EAAEC,mBAAmB;AAAA,SAC9BC,YAAY;AA8BrB,OAAO,MAAMC,4BAA4B,GAAGD,YAAY,CACtD;EACEE,YAAY,EAAEC,OAAO;EACrBC,cAAc,EAAE;IACdC,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAwC;IAC7DC,OAAO,EAAE;EACX,CAAC;EACDC,UAAU,EAAE;IACVJ,IAAI,EAAEK,KAAiC;IACvCF,OAAO,EAAEA,CAAA,KAAM;EACjB,CAAC;EACDG,cAAc,EAAE;IACdN,IAAI,EAAE,CAACO,QAAQ,EAAEN,MAAM,CAAwC;IAC/DE,OAAO,EAAEA,CAAA,KAAMV;EACjB;AACF,CAAC,EACD,uBACF,CAAC;AASD,MAAMe,oBAA6C,GAAG;EACpDC,aAAa,EAAE,KAAK;EACpBC,WAAW,EAAEA,CAAA,KAAM,EAAE;EACrBC,MAAM,EAAEC,IAAA,IAAsB;IAAA,IAArB;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAAF,IAAA;IACvB,OAAO,IAAIG,GAAG,CAACD,KAAK,GAAG,CAACD,KAAK,CAAC,CAAC,CAAC,EAAEC,KAAK,CAAC,GAAG,EAAE,CAAC;EAChD,CAAC;EACDE,SAAS,EAAEC,KAAA;IAAA,IAAC;MAAEC;IAAS,CAAC,GAAAD,KAAA;IAAA,OAAKC,QAAQ;EAAA;AACvC,CAAC;AAED,MAAMC,kBAA2C,GAAG;EAClDV,aAAa,EAAE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"],"sourcesContent":["import { type DataTableCellClassesFn, type DataTableCompareFn } from './common';\n\nexport type DataTableHeader = {\n key: string;\n text: string;\n value?: any;\n\n colspan?: number;\n rowspan?: number;\n fixed?: boolean;\n\n classes?: string | string[] | DataTableCellClassesFn;\n align?: 'start' | 'end' | 'center';\n width?: number | string;\n minWidth?: string;\n maxWidth?: string;\n sortable?: boolean;\n sort?: DataTableCompareFn;\n mustSort?: boolean;\n};\n\nexport type InternalDataTableHeader = DataTableHeader & {\n sortable: boolean;\n fixedOffset?: number;\n lastFixed?: boolean;\n};\n"],"mappings":""}
1
+ {"version":3,"file":"header.mjs","names":[],"sources":["../../../../src/components/table/types/header.ts"],"sourcesContent":["import { type DataTableCellClassesFn, type DataTableCompareFn } from './common';\n\nexport type DataTableHeader = {\n key: string;\n text: string;\n value?: any;\n\n colspan?: number;\n rowspan?: number;\n fixed?: boolean;\n\n classes?: string | string[] | DataTableCellClassesFn;\n headerClasses?: string | string[];\n align?: 'start' | 'end' | 'center';\n width?: number | string;\n minWidth?: string;\n maxWidth?: string;\n sortable?: boolean;\n sort?: DataTableCompareFn;\n mustSort?: boolean;\n};\n\nexport type InternalDataTableHeader = DataTableHeader & {\n sortable: boolean;\n fixedOffset?: number;\n lastFixed?: boolean;\n};\n"],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { computed, getCurrentInstance, onBeforeUnmount, watch } from 'vue';
1
+ import { computed, getCurrentInstance, onBeforeUnmount, unref, watch } from 'vue';
2
2
  import { useYuyeon } from "./../index.mjs";
3
3
  export const Y_LAYER_GROUP_CLASS_NAME = 'y-layer-group';
4
4
  const layerGroupState = new WeakMap();
@@ -6,12 +6,12 @@ export function useLayerGroup(target) {
6
6
  const vm = getCurrentInstance();
7
7
  const yuyeon = useYuyeon();
8
8
  const layerGroup = computed(() => {
9
- const refTarget = target?.value;
10
9
  let targetEl = document.body;
11
10
  const rootEl = yuyeon.root;
12
11
  if (rootEl) {
13
12
  targetEl = rootEl;
14
13
  }
14
+ const refTarget = unref(target);
15
15
  if (typeof refTarget === 'string') {
16
16
  const el = document.querySelector(refTarget);
17
17
  if (el) {
@@ -1 +1 @@
1
- {"version":3,"file":"layer-group.mjs","names":["computed","getCurrentInstance","onBeforeUnmount","watch","useYuyeon","Y_LAYER_GROUP_CLASS_NAME","layerGroupState","WeakMap","useLayerGroup","target","vm","yuyeon","layerGroup","refTarget","value","targetEl","document","body","rootEl","root","el","querySelector","nodeType","layerEl","createElement","className","appendChild","neo","old","has","get","delete","set","Set","add","immediate","getActiveLayers","activeLayers","currentGroup","forEach","ctx","active","isUnmounted","push","unregister"],"sources":["../../src/composables/layer-group.ts"],"sourcesContent":["import { computed, getCurrentInstance, onBeforeUnmount, watch } from 'vue';\nimport type { ComponentInternalInstance, Ref } from 'vue';\n\nimport { useYuyeon } from '@/index';\n\nexport const Y_LAYER_GROUP_CLASS_NAME = 'y-layer-group';\n\nconst layerGroupState = new WeakMap<HTMLElement, Set<any>>();\n\nexport function useLayerGroup(target?: Ref<string | Element>) {\n const vm = getCurrentInstance()!;\n const yuyeon = useYuyeon();\n\n const layerGroup = computed<HTMLElement>(() => {\n const refTarget = target?.value;\n let targetEl: Element = document.body;\n\n const rootEl = yuyeon.root;\n if (rootEl) {\n targetEl = rootEl;\n }\n\n if (typeof refTarget === 'string') {\n const el = document.querySelector(refTarget);\n if (el) {\n targetEl = el;\n }\n }\n if (refTarget && (refTarget as Element).nodeType === 1) {\n targetEl = refTarget as Element;\n }\n //\n let layerEl = targetEl.querySelector(`.${Y_LAYER_GROUP_CLASS_NAME}`);\n if (!layerEl) {\n layerEl = document.createElement('div');\n layerEl.className = Y_LAYER_GROUP_CLASS_NAME;\n targetEl.appendChild(layerEl);\n }\n return layerEl as HTMLElement;\n });\n\n watch(\n layerGroup,\n (neo, old) => {\n if (old && layerGroupState.has(old)) {\n layerGroupState.get(old)?.delete(vm);\n }\n if (!(layerGroupState.has(neo) && layerGroupState.get(neo))) {\n layerGroupState.set(neo, new Set());\n }\n layerGroupState.get(neo)?.add(vm);\n },\n { immediate: true },\n );\n\n function getActiveLayers() {\n const activeLayers: ComponentInternalInstance[] = [];\n const currentGroup = layerGroupState.get(layerGroup.value);\n currentGroup?.forEach((value) => {\n if (value?.ctx?.active && !value?.isUnmounted) {\n activeLayers.push(value);\n }\n });\n return activeLayers;\n }\n\n function unregister() {\n layerGroupState.get(layerGroup.value)?.delete(vm);\n }\n\n onBeforeUnmount(() => {\n unregister();\n });\n\n return { layerGroup, layerGroupState, getActiveLayers };\n}\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,kBAAkB,EAAEC,eAAe,EAAEC,KAAK,QAAQ,KAAK;AAAC,SAGlEC,SAAS;AAElB,OAAO,MAAMC,wBAAwB,GAAG,eAAe;AAEvD,MAAMC,eAAe,GAAG,IAAIC,OAAO,CAAwB,CAAC;AAE5D,OAAO,SAASC,aAAaA,CAACC,MAA8B,EAAE;EAC5D,MAAMC,EAAE,GAAGT,kBAAkB,CAAC,CAAE;EAChC,MAAMU,MAAM,GAAGP,SAAS,CAAC,CAAC;EAE1B,MAAMQ,UAAU,GAAGZ,QAAQ,CAAc,MAAM;IAC7C,MAAMa,SAAS,GAAGJ,MAAM,EAAEK,KAAK;IAC/B,IAAIC,QAAiB,GAAGC,QAAQ,CAACC,IAAI;IAErC,MAAMC,MAAM,GAAGP,MAAM,CAACQ,IAAI;IAC1B,IAAID,MAAM,EAAE;MACVH,QAAQ,GAAGG,MAAM;IACnB;IAEA,IAAI,OAAOL,SAAS,KAAK,QAAQ,EAAE;MACjC,MAAMO,EAAE,GAAGJ,QAAQ,CAACK,aAAa,CAACR,SAAS,CAAC;MAC5C,IAAIO,EAAE,EAAE;QACNL,QAAQ,GAAGK,EAAE;MACf;IACF;IACA,IAAIP,SAAS,IAAKA,SAAS,CAAaS,QAAQ,KAAK,CAAC,EAAE;MACtDP,QAAQ,GAAGF,SAAoB;IACjC;IACA;IACA,IAAIU,OAAO,GAAGR,QAAQ,CAACM,aAAa,CAAE,IA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AClB,UAAU,CAACE,KAAK,CAAC,EAAEiB,MAAM,CAACrB,EAAE,CAAC;EACnD;EAEAR,eAAe,CAAC,MAAM;IACpB0C,UAAU,CAAC,CAAC;EACd,CAAC,CAAC;EAEF,OAAO;IAAEhC,UAAU;IAAEN,eAAe;IAAE8B;EAAgB,CAAC;AACzD"}
1
+ {"version":3,"file":"layer-group.mjs","names":["computed","getCurrentInstance","onBeforeUnmount","unref","watch","useYuyeon","Y_LAYER_GROUP_CLASS_NAME","layerGroupState","WeakMap","useLayerGroup","target","vm","yuyeon","layerGroup","targetEl","document","body","rootEl","root","refTarget","el","querySelector","nodeType","layerEl","createElement","className","appendChild","neo","old","has","get","delete","set","Set","add","immediate","getActiveLayers","activeLayers","currentGroup","value","forEach","ctx","active","isUnmounted","push","unregister"],"sources":["../../src/composables/layer-group.ts"],"sourcesContent":["import { computed, getCurrentInstance, onBeforeUnmount, unref, watch } from 'vue';\nimport type { ComponentInternalInstance, Ref } from 'vue';\n\nimport { useYuyeon } from '@/index';\n\nexport const Y_LAYER_GROUP_CLASS_NAME = 'y-layer-group';\n\nconst layerGroupState = new WeakMap<HTMLElement, Set<any>>();\n\nexport function useLayerGroup(target?: Ref<string | Element | undefined>) {\n const vm = getCurrentInstance()!;\n const yuyeon = useYuyeon();\n\n const layerGroup = computed<HTMLElement>(() => {\n let targetEl: Element = document.body;\n const rootEl = yuyeon.root;\n if (rootEl) {\n targetEl = rootEl;\n }\n const refTarget = unref(target);\n if (typeof refTarget === 'string') {\n const el = document.querySelector(refTarget);\n if (el) {\n targetEl = el;\n }\n }\n if (refTarget && (refTarget as Element).nodeType === 1) {\n targetEl = refTarget as Element;\n }\n //\n let layerEl = targetEl.querySelector(`.${Y_LAYER_GROUP_CLASS_NAME}`);\n if (!layerEl) {\n layerEl = document.createElement('div');\n layerEl.className = Y_LAYER_GROUP_CLASS_NAME;\n targetEl.appendChild(layerEl);\n }\n return layerEl as HTMLElement;\n });\n\n watch(\n layerGroup,\n (neo, old) => {\n if (old && layerGroupState.has(old)) {\n layerGroupState.get(old)?.delete(vm);\n }\n if (!(layerGroupState.has(neo) && layerGroupState.get(neo))) {\n layerGroupState.set(neo, new Set());\n }\n layerGroupState.get(neo)?.add(vm);\n },\n { immediate: true },\n );\n\n function getActiveLayers() {\n const activeLayers: ComponentInternalInstance[] = [];\n const currentGroup = layerGroupState.get(layerGroup.value);\n currentGroup?.forEach((value) => {\n if (value?.ctx?.active && !value?.isUnmounted) {\n activeLayers.push(value);\n }\n });\n return activeLayers;\n }\n\n function unregister() {\n layerGroupState.get(layerGroup.value)?.delete(vm);\n }\n\n onBeforeUnmount(() => {\n unregister();\n });\n\n return { layerGroup, layerGroupState, getActiveLayers };\n}\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,kBAAkB,EAAEC,eAAe,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAC,SAGzEC,SAAS;AAElB,OAAO,MAAMC,wBAAwB,GAAG,eAAe;AAEvD,MAAMC,eAAe,GAAG,IAAIC,OAAO,CAAwB,CAAC;AAE5D,OAAO,SAASC,aAAaA,CAACC,MAA0C,EAAE;EACxE,MAAMC,EAAE,GAAGV,kBAAkB,CAAC,CAAE;EAChC,MAAMW,MAAM,GAAGP,SAAS,CAAC,CAAC;EAE1B,MAAMQ,UAAU,GAAGb,QAAQ,CAAc,MAAM;IAC7C,IAAIc,QAAiB,GAAGC,QAAQ,CAACC,IAAI;IACrC,MAAMC,MAAM,GAAGL,MAAM,CAACM,IAAI;IAC1B,IAAID,MAAM,EAAE;MACVH,QAAQ,GAAGG,MAAM;IACnB;IACA,MAAME,SAAS,GAAGhB,KAAK,CAACO,MAAM,CAAC;IAC/B,IAAI,OAAOS,SAAS,KAAK,QAAQ,EAAE;MACjC,MAAMC,EAAE,GAAGL,QAAQ,CAACM,aAAa,CAACF,SAAS,CAAC;MAC5C,IAAIC,EAAE,EAAE;QACNN,QAAQ,GAAGM,EAAE;MACf;IACF;IACA,IAAID,SAAS,IAA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,KAAK,CAAC;MAC1B;IACF,CAAC,CAAC;IACF,OAAOF,YAAY;EACrB;EAEA,SAASQ,UAAUA,CAAA,EAAG;IACpBtC,eAAe,CAACuB,GAAG,CAACjB,UAAU,CAAC0B,KAAK,CAAC,EAAER,MAAM,CAACpB,EAAE,CAAC;EACnD;EAEAT,eAAe,CAAC,MAAM;IACpB2C,UAAU,CAAC,CAAC;EACd,CAAC,CAAC;EAEF,OAAO;IAAEhC,UAAU;IAAEN,eAAe;IAAE6B;EAAgB,CAAC;AACzD"}
@@ -1,5 +1,5 @@
1
1
  export const RGBA_REGEX = /rgb(a?)\((?<v>.*)\)/;
2
- export const HEX_COLOR_REGEX = /#([0-9a-fA-F]{3,6,8})/;
2
+ export const HEX_COLOR_REGEX = /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/;
3
3
  export const SRGB_TO_XYZ = [[0.41233895, 0.35762064, 0.18051042], [0.2126, 0.7152, 0.0722], [0.01932141, 0.11916382, 0.95034478]];
4
4
  export const XYZ_TO_SRGB = [[3.2413774792388685, -1.5376652402851851, -0.49885366846268053], [-0.9691452513005321, 1.8758853451067872, 0.04156585616912061], [0.05562093689691305, -0.20395524564742123, 1.0571799111220335]];
5
5
  export const WHITE_POINT_D65 = [95.047, 100.0, 108.883];
@@ -1 +1 @@
1
- {"version":3,"file":"const.mjs","names":["RGBA_REGEX","HEX_COLOR_REGEX","SRGB_TO_XYZ","XYZ_TO_SRGB","WHITE_POINT_D65"],"sources":["../../../src/util/color/const.ts"],"sourcesContent":["export const RGBA_REGEX = /rgb(a?)\\((?<v>.*)\\)/;\r\nexport const HEX_COLOR_REGEX = /#([0-9a-fA-F]{3,6,8})/;\r\n\r\nexport const SRGB_TO_XYZ = [\r\n [0.41233895, 0.35762064, 0.18051042],\r\n [0.2126, 0.7152, 0.0722],\r\n [0.01932141, 0.11916382, 0.95034478],\r\n];\r\n\r\nexport const XYZ_TO_SRGB = [\r\n [\r\n 3.2413774792388685,\r\n -1.5376652402851851,\r\n -0.49885366846268053,\r\n ],\r\n [\r\n -0.9691452513005321,\r\n 1.8758853451067872,\r\n 0.04156585616912061,\r\n ],\r\n [\r\n 0.05562093689691305,\r\n -0.20395524564742123,\r\n 1.0571799111220335,\r\n ],\r\n];\r\n\r\nexport const WHITE_POINT_D65 = [95.047, 100.0, 108.883];\r\n"],"mappings":"AAAA,OAAO,MAAMA,UAAU,GAAG,qBAAqB;AAC/C,OAAO,MAAMC,eAAe,GAAG,uBAAuB;AAEtD,OAAO,MAAMC,WAAW,GAAG,CACzB,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,EACpC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxB,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CACrC;AAED,OAAO,MAAMC,WAAW,GAAG,CACzB,CACE,kBAAkB,EAClB,CAAC,kBAAkB,EACnB,CAAC,mBAAmB,CACrB,EACD,CACE,CAAC,kBAAkB,EACnB,kBAAkB,EAClB,mBAAmB,CACpB,EACD,CACE,mBAAmB,EACnB,CAAC,mBAAmB,EACpB,kBAAkB,CACnB,CACF;AAED,OAAO,MAAMC,eAAe,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC"}
1
+ {"version":3,"file":"const.mjs","names":["RGBA_REGEX","HEX_COLOR_REGEX","SRGB_TO_XYZ","XYZ_TO_SRGB","WHITE_POINT_D65"],"sources":["../../../src/util/color/const.ts"],"sourcesContent":["export const RGBA_REGEX = /rgb(a?)\\((?<v>.*)\\)/;\r\nexport const HEX_COLOR_REGEX = /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/;\r\n\r\nexport const SRGB_TO_XYZ = [\r\n [0.41233895, 0.35762064, 0.18051042],\r\n [0.2126, 0.7152, 0.0722],\r\n [0.01932141, 0.11916382, 0.95034478],\r\n];\r\n\r\nexport const XYZ_TO_SRGB = [\r\n [\r\n 3.2413774792388685,\r\n -1.5376652402851851,\r\n -0.49885366846268053,\r\n ],\r\n [\r\n -0.9691452513005321,\r\n 1.8758853451067872,\r\n 0.04156585616912061,\r\n ],\r\n [\r\n 0.05562093689691305,\r\n -0.20395524564742123,\r\n 1.0571799111220335,\r\n ],\r\n];\r\n\r\nexport const WHITE_POINT_D65 = [95.047, 100.0, 108.883];\r\n"],"mappings":"AAAA,OAAO,MAAMA,UAAU,GAAG,qBAAqB;AAC/C,OAAO,MAAMC,eAAe,GAAG,mDAAmD;AAElF,OAAO,MAAMC,WAAW,GAAG,CACzB,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,EACpC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxB,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CACrC;AAED,OAAO,MAAMC,WAAW,GAAG,CACzB,CACE,kBAAkB,EAClB,CAAC,kBAAkB,EACnB,CAAC,mBAAmB,CACrB,EACD,CACE,CAAC,kBAAkB,EACnB,kBAAkB,EAClB,mBAAmB,CACpB,EACD,CACE,mBAAmB,EACnB,CAAC,mBAAmB,EACpB,kBAAkB,CACnB,CACF;AAED,OAAO,MAAMC,eAAe,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuyeon",
3
- "version": "0.2.1-rc.8",
3
+ "version": "0.2.1",
4
4
  "keywords": [
5
5
  "UI Library",
6
6
  "Vue"
@@ -21,5 +21,5 @@ export declare const YMonthPicker: import('vue').DefineComponent<{
21
21
  modelValue: NumberConstructor;
22
22
  color: StringConstructor;
23
23
  height: (NumberConstructor | StringConstructor)[];
24
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string>;
24
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "mode"[], "mode">;
25
25
  export type YMonthPicker = InstanceType<typeof YMonthPicker>;
@@ -34,5 +34,5 @@ export declare const YYearPicker: import('vue').DefineComponent<{
34
34
  height: (NumberConstructor | StringConstructor)[];
35
35
  min: PropType<unknown>;
36
36
  max: PropType<unknown>;
37
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string>;
37
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "mode"[], "mode">;
38
38
  export type YYearPicker = InstanceType<typeof YYearPicker>;
@@ -30,6 +30,7 @@ export declare const pressYDialogPropsOptions: <Defaults extends {
30
30
  contentStyles?: unknown;
31
31
  openOnHover?: unknown;
32
32
  contained?: unknown;
33
+ layerGroup?: unknown;
33
34
  persistent?: unknown;
34
35
  dialogClasses?: unknown;
35
36
  maximized?: unknown;
@@ -278,6 +279,10 @@ export declare const pressYDialogPropsOptions: <Defaults extends {
278
279
  type: PropType<unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"]>;
279
280
  default: unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"];
280
281
  };
282
+ layerGroup: unknown extends Defaults["layerGroup"] ? PropType<string | Element> : {
283
+ type: PropType<unknown extends Defaults["layerGroup"] ? string | Element : NonNullable<string | Element> | Defaults["layerGroup"]>;
284
+ default: unknown extends Defaults["layerGroup"] ? string | Element : NonNullable<string | Element> | Defaults["layerGroup"];
285
+ };
281
286
  persistent: unknown extends Defaults["persistent"] ? {
282
287
  type: PropType<boolean>;
283
288
  default: boolean;
@@ -408,6 +413,7 @@ export declare const YDialog: import('vue').DefineComponent<{
408
413
  default: boolean;
409
414
  };
410
415
  contained: BooleanConstructor;
416
+ layerGroup: PropType<string | Element>;
411
417
  persistent: {
412
418
  type: PropType<boolean>;
413
419
  default: boolean;
@@ -519,6 +525,7 @@ export declare const YDialog: import('vue').DefineComponent<{
519
525
  default: number;
520
526
  };
521
527
  contained: BooleanConstructor;
528
+ layerGroup: PropType<string | Element>;
522
529
  modal: PropType<boolean>;
523
530
  }, {
524
531
  complementClickOption: {
@@ -39,6 +39,7 @@ export declare const pressYDropdownPropsOptions: <Defaults extends {
39
39
  contentStyles?: unknown;
40
40
  openOnHover?: unknown;
41
41
  contained?: unknown;
42
+ layerGroup?: unknown;
42
43
  preventClip?: unknown;
43
44
  preventCloseBubble?: unknown;
44
45
  menuClasses?: unknown;
@@ -367,6 +368,10 @@ export declare const pressYDropdownPropsOptions: <Defaults extends {
367
368
  type: PropType<unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"]>;
368
369
  default: unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"];
369
370
  };
371
+ layerGroup: unknown extends Defaults["layerGroup"] ? PropType<string | Element> : {
372
+ type: PropType<unknown extends Defaults["layerGroup"] ? string | Element : NonNullable<string | Element> | Defaults["layerGroup"]>;
373
+ default: unknown extends Defaults["layerGroup"] ? string | Element : NonNullable<string | Element> | Defaults["layerGroup"];
374
+ };
370
375
  preventClip: unknown extends Defaults["preventClip"] ? {
371
376
  type: PropType<boolean>;
372
377
  default: boolean;
@@ -531,6 +536,7 @@ export declare const YDropdown: import('vue').DefineComponent<{
531
536
  default: boolean;
532
537
  };
533
538
  contained: BooleanConstructor;
539
+ layerGroup: PropType<string | Element>;
534
540
  preventClip: {
535
541
  type: PropType<boolean>;
536
542
  default: boolean;
@@ -32,6 +32,7 @@ export declare const pressYLayerProps: <Defaults extends {
32
32
  closeDelay?: unknown;
33
33
  zIndex?: unknown;
34
34
  contained?: unknown;
35
+ layerGroup?: unknown;
35
36
  } = {}>(defaults?: Defaults | undefined) => {
36
37
  minWidth: unknown extends Defaults["minWidth"] ? PropType<string | number> : {
37
38
  type: PropType<unknown extends Defaults["minWidth"] ? string | number : NonNullable<string | number> | Defaults["minWidth"]>;
@@ -285,6 +286,10 @@ export declare const pressYLayerProps: <Defaults extends {
285
286
  type: PropType<unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"]>;
286
287
  default: unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"];
287
288
  };
289
+ layerGroup: unknown extends Defaults["layerGroup"] ? PropType<string | Element> : {
290
+ type: PropType<unknown extends Defaults["layerGroup"] ? string | Element : Defaults["layerGroup"] | NonNullable<string | Element>>;
291
+ default: unknown extends Defaults["layerGroup"] ? string | Element : Defaults["layerGroup"] | NonNullable<string | Element>;
292
+ };
288
293
  };
289
294
  export declare const YLayer: import('vue').DefineComponent<{
290
295
  minWidth: PropType<string | number>;
@@ -378,6 +383,7 @@ export declare const YLayer: import('vue').DefineComponent<{
378
383
  default: number;
379
384
  };
380
385
  contained: BooleanConstructor;
386
+ layerGroup: PropType<string | Element>;
381
387
  modal: PropType<boolean>;
382
388
  }, {
383
389
  complementClickOption: {
@@ -99,6 +99,7 @@ export declare const YMenuPropOptions: {
99
99
  default: number;
100
100
  };
101
101
  contained: BooleanConstructor;
102
+ layerGroup: PropType<string | Element>;
102
103
  menuClasses: {
103
104
  type: PropType<string | string[] | Record<string, any>>;
104
105
  };
@@ -224,6 +225,7 @@ export declare const YMenu: import('vue').DefineComponent<{
224
225
  default: number;
225
226
  };
226
227
  contained: BooleanConstructor;
228
+ layerGroup: PropType<string | Element>;
227
229
  menuClasses: {
228
230
  type: PropType<string | string[] | Record<string, any>>;
229
231
  };
@@ -332,6 +334,7 @@ export declare const YMenu: import('vue').DefineComponent<{
332
334
  default: number;
333
335
  };
334
336
  contained: BooleanConstructor;
337
+ layerGroup: PropType<string | Element>;
335
338
  modal: PropType<boolean>;
336
339
  }, {
337
340
  complementClickOption: {
@@ -151,6 +151,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
151
151
  readonly eager?: boolean | undefined;
152
152
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
153
153
  readonly closeClickScrim?: boolean | undefined;
154
+ readonly layerGroup?: string | Element | undefined;
154
155
  readonly preventCloseBubble?: boolean | undefined;
155
156
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
156
157
  readonly closeCondition?: boolean | Function | undefined;
@@ -263,6 +264,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
263
264
  default: number;
264
265
  };
265
266
  contained: BooleanConstructor;
267
+ layerGroup: PropType<string | Element>;
266
268
  menuClasses: {
267
269
  type: PropType<string | string[] | Record<string, any>>;
268
270
  };
@@ -340,6 +342,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
340
342
  readonly eager?: boolean | undefined;
341
343
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
342
344
  readonly closeClickScrim?: boolean | undefined;
345
+ readonly layerGroup?: string | Element | undefined;
343
346
  readonly preventCloseBubble?: boolean | undefined;
344
347
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
345
348
  readonly closeCondition?: boolean | Function | undefined;
@@ -452,6 +455,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
452
455
  default: number;
453
456
  };
454
457
  contained: BooleanConstructor;
458
+ layerGroup: PropType<string | Element>;
455
459
  menuClasses: {
456
460
  type: PropType<string | string[] | Record<string, any>>;
457
461
  };
@@ -529,6 +533,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
529
533
  readonly eager?: boolean | undefined;
530
534
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
531
535
  readonly closeClickScrim?: boolean | undefined;
536
+ readonly layerGroup?: string | Element | undefined;
532
537
  readonly preventCloseBubble?: boolean | undefined;
533
538
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
534
539
  readonly closeCondition?: boolean | Function | undefined;
@@ -641,6 +646,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
641
646
  default: number;
642
647
  };
643
648
  contained: BooleanConstructor;
649
+ layerGroup: PropType<string | Element>;
644
650
  menuClasses: {
645
651
  type: PropType<string | string[] | Record<string, any>>;
646
652
  };
@@ -716,6 +722,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
716
722
  readonly eager?: boolean | undefined;
717
723
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
718
724
  readonly closeClickScrim?: boolean | undefined;
725
+ readonly layerGroup?: string | Element | undefined;
719
726
  readonly preventCloseBubble?: boolean | undefined;
720
727
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
721
728
  readonly closeCondition?: boolean | Function | undefined;
@@ -828,6 +835,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
828
835
  default: number;
829
836
  };
830
837
  contained: BooleanConstructor;
838
+ layerGroup: PropType<string | Element>;
831
839
  menuClasses: {
832
840
  type: PropType<string | string[] | Record<string, any>>;
833
841
  };
@@ -904,6 +912,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
904
912
  readonly eager?: boolean | undefined;
905
913
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
906
914
  readonly closeClickScrim?: boolean | undefined;
915
+ readonly layerGroup?: string | Element | undefined;
907
916
  readonly preventCloseBubble?: boolean | undefined;
908
917
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
909
918
  readonly closeCondition?: boolean | Function | undefined;
@@ -1016,6 +1025,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
1016
1025
  default: number;
1017
1026
  };
1018
1027
  contained: BooleanConstructor;
1028
+ layerGroup: PropType<string | Element>;
1019
1029
  menuClasses: {
1020
1030
  type: PropType<string | string[] | Record<string, any>>;
1021
1031
  };
@@ -1091,6 +1101,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
1091
1101
  readonly eager?: boolean | undefined;
1092
1102
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
1093
1103
  readonly closeClickScrim?: boolean | undefined;
1104
+ readonly layerGroup?: string | Element | undefined;
1094
1105
  readonly preventCloseBubble?: boolean | undefined;
1095
1106
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
1096
1107
  readonly closeCondition?: boolean | Function | undefined;
@@ -1203,6 +1214,7 @@ export declare const pressSelectPropsOptions: <Defaults extends {
1203
1214
  default: number;
1204
1215
  };
1205
1216
  contained: BooleanConstructor;
1217
+ layerGroup: PropType<string | Element>;
1206
1218
  menuClasses: {
1207
1219
  type: PropType<string | string[] | Record<string, any>>;
1208
1220
  };
@@ -1666,6 +1678,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
1666
1678
  readonly eager?: boolean | undefined;
1667
1679
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
1668
1680
  readonly closeClickScrim?: boolean | undefined;
1681
+ readonly layerGroup?: string | Element | undefined;
1669
1682
  readonly preventCloseBubble?: boolean | undefined;
1670
1683
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
1671
1684
  readonly closeCondition?: boolean | Function | undefined;
@@ -1778,6 +1791,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
1778
1791
  default: number;
1779
1792
  };
1780
1793
  contained: BooleanConstructor;
1794
+ layerGroup: PropType<string | Element>;
1781
1795
  menuClasses: {
1782
1796
  type: PropType<string | string[] | Record<string, any>>;
1783
1797
  };
@@ -1855,6 +1869,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
1855
1869
  readonly eager?: boolean | undefined;
1856
1870
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
1857
1871
  readonly closeClickScrim?: boolean | undefined;
1872
+ readonly layerGroup?: string | Element | undefined;
1858
1873
  readonly preventCloseBubble?: boolean | undefined;
1859
1874
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
1860
1875
  readonly closeCondition?: boolean | Function | undefined;
@@ -1967,6 +1982,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
1967
1982
  default: number;
1968
1983
  };
1969
1984
  contained: BooleanConstructor;
1985
+ layerGroup: PropType<string | Element>;
1970
1986
  menuClasses: {
1971
1987
  type: PropType<string | string[] | Record<string, any>>;
1972
1988
  };
@@ -2044,6 +2060,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2044
2060
  readonly eager?: boolean | undefined;
2045
2061
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
2046
2062
  readonly closeClickScrim?: boolean | undefined;
2063
+ readonly layerGroup?: string | Element | undefined;
2047
2064
  readonly preventCloseBubble?: boolean | undefined;
2048
2065
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
2049
2066
  readonly closeCondition?: boolean | Function | undefined;
@@ -2156,6 +2173,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2156
2173
  default: number;
2157
2174
  };
2158
2175
  contained: BooleanConstructor;
2176
+ layerGroup: PropType<string | Element>;
2159
2177
  menuClasses: {
2160
2178
  type: PropType<string | string[] | Record<string, any>>;
2161
2179
  };
@@ -2231,6 +2249,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2231
2249
  readonly eager?: boolean | undefined;
2232
2250
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
2233
2251
  readonly closeClickScrim?: boolean | undefined;
2252
+ readonly layerGroup?: string | Element | undefined;
2234
2253
  readonly preventCloseBubble?: boolean | undefined;
2235
2254
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
2236
2255
  readonly closeCondition?: boolean | Function | undefined;
@@ -2343,6 +2362,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2343
2362
  default: number;
2344
2363
  };
2345
2364
  contained: BooleanConstructor;
2365
+ layerGroup: PropType<string | Element>;
2346
2366
  menuClasses: {
2347
2367
  type: PropType<string | string[] | Record<string, any>>;
2348
2368
  };
@@ -2419,6 +2439,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2419
2439
  readonly eager?: boolean | undefined;
2420
2440
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
2421
2441
  readonly closeClickScrim?: boolean | undefined;
2442
+ readonly layerGroup?: string | Element | undefined;
2422
2443
  readonly preventCloseBubble?: boolean | undefined;
2423
2444
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
2424
2445
  readonly closeCondition?: boolean | Function | undefined;
@@ -2531,6 +2552,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2531
2552
  default: number;
2532
2553
  };
2533
2554
  contained: BooleanConstructor;
2555
+ layerGroup: PropType<string | Element>;
2534
2556
  menuClasses: {
2535
2557
  type: PropType<string | string[] | Record<string, any>>;
2536
2558
  };
@@ -2606,6 +2628,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2606
2628
  readonly eager?: boolean | undefined;
2607
2629
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
2608
2630
  readonly closeClickScrim?: boolean | undefined;
2631
+ readonly layerGroup?: string | Element | undefined;
2609
2632
  readonly preventCloseBubble?: boolean | undefined;
2610
2633
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
2611
2634
  readonly closeCondition?: boolean | Function | undefined;
@@ -2718,6 +2741,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
2718
2741
  default: number;
2719
2742
  };
2720
2743
  contained: BooleanConstructor;
2744
+ layerGroup: PropType<string | Element>;
2721
2745
  menuClasses: {
2722
2746
  type: PropType<string | string[] | Record<string, any>>;
2723
2747
  };
@@ -2956,6 +2980,7 @@ export declare const YSelect: import('vue').DefineComponent<{
2956
2980
  readonly eager?: boolean | undefined;
2957
2981
  readonly contentClasses?: string | string[] | Record<string, any> | undefined;
2958
2982
  readonly closeClickScrim?: boolean | undefined;
2983
+ readonly layerGroup?: string | Element | undefined;
2959
2984
  readonly preventCloseBubble?: boolean | undefined;
2960
2985
  readonly menuClasses?: string | string[] | Record<string, any> | undefined;
2961
2986
  readonly closeCondition?: boolean | Function | undefined;
@@ -3068,6 +3093,7 @@ export declare const YSelect: import('vue').DefineComponent<{
3068
3093
  default: number;
3069
3094
  };
3070
3095
  contained: BooleanConstructor;
3096
+ layerGroup: PropType<string | Element>;
3071
3097
  menuClasses: {
3072
3098
  type: PropType<string | string[] | Record<string, any>>;
3073
3099
  };
@@ -3218,6 +3244,7 @@ export declare const YSelect: import('vue').DefineComponent<{
3218
3244
  default: number;
3219
3245
  };
3220
3246
  contained: BooleanConstructor;
3247
+ layerGroup: PropType<string | Element>;
3221
3248
  menuClasses: {
3222
3249
  type: PropType<string | string[] | Record<string, any>>;
3223
3250
  };
@@ -3330,6 +3357,7 @@ export declare const YSelect: import('vue').DefineComponent<{
3330
3357
  default: number;
3331
3358
  };
3332
3359
  contained: BooleanConstructor;
3360
+ layerGroup: PropType<string | Element>;
3333
3361
  modal: PropType<boolean>;
3334
3362
  }, {
3335
3363
  complementClickOption: {
@@ -5069,6 +5097,7 @@ export declare const YSelect: import('vue').DefineComponent<{
5069
5097
  default: number;
5070
5098
  };
5071
5099
  contained: BooleanConstructor;
5100
+ layerGroup: PropType<string | Element>;
5072
5101
  menuClasses: {
5073
5102
  type: PropType<string | string[] | Record<string, any>>;
5074
5103
  };
@@ -5221,6 +5250,7 @@ export declare const YSelect: import('vue').DefineComponent<{
5221
5250
  default: number;
5222
5251
  };
5223
5252
  contained: BooleanConstructor;
5253
+ layerGroup: PropType<string | Element>;
5224
5254
  menuClasses: {
5225
5255
  type: PropType<string | string[] | Record<string, any>>;
5226
5256
  };
@@ -5333,6 +5363,7 @@ export declare const YSelect: import('vue').DefineComponent<{
5333
5363
  default: number;
5334
5364
  };
5335
5365
  contained: BooleanConstructor;
5366
+ layerGroup: PropType<string | Element>;
5336
5367
  modal: PropType<boolean>;
5337
5368
  }, {
5338
5369
  complementClickOption: {
@@ -33,6 +33,7 @@ export declare const pressYSnackbarPropsOptions: <Defaults extends {
33
33
  closeDelay?: unknown;
34
34
  zIndex?: unknown;
35
35
  contained?: unknown;
36
+ layerGroup?: unknown;
36
37
  } = {}>(defaults?: Defaults | undefined) => {
37
38
  modelValue: unknown extends Defaults["modelValue"] ? {
38
39
  type: PropType<boolean>;
@@ -306,6 +307,10 @@ export declare const pressYSnackbarPropsOptions: <Defaults extends {
306
307
  type: PropType<unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"]>;
307
308
  default: unknown extends Defaults["contained"] ? boolean : boolean | Defaults["contained"];
308
309
  };
310
+ layerGroup: unknown extends Defaults["layerGroup"] ? PropType<string | Element> : {
311
+ type: PropType<unknown extends Defaults["layerGroup"] ? string | Element : NonNullable<string | Element> | Defaults["layerGroup"]>;
312
+ default: unknown extends Defaults["layerGroup"] ? string | Element : NonNullable<string | Element> | Defaults["layerGroup"];
313
+ };
309
314
  };
310
315
  export declare const YSnackbar: import('vue').DefineComponent<{
311
316
  modelValue: {
@@ -412,6 +417,7 @@ export declare const YSnackbar: import('vue').DefineComponent<{
412
417
  default: number;
413
418
  };
414
419
  contained: BooleanConstructor;
420
+ layerGroup: PropType<string | Element>;
415
421
  }, {
416
422
  active: import('vue').Ref<any> & {
417
423
  readonly rxValue: any;