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C,OAAO,qCAAe,CAAC,IAAI;IAC7B;AACF","sources":["packages/@internationalized/date/src/calendars/JapaneseCalendar.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// Portions of the code in this file are based on code from the TC39 Temporal proposal.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\nimport {AnyCalendarDate, CalendarIdentifier} from '../types';\nimport {CalendarDate} from '../CalendarDate';\nimport {GregorianCalendar} from './GregorianCalendar';\nimport {Mutable} from '../utils';\n\nconst ERA_START_DATES = [\n [1868, 9, 8],\n [1912, 7, 30],\n [1926, 12, 25],\n [1989, 1, 8],\n [2019, 5, 1]\n];\nconst ERA_END_DATES = [\n [1912, 7, 29],\n [1926, 12, 24],\n [1989, 1, 7],\n [2019, 4, 30]\n];\nconst ERA_ADDENDS = [1867, 1911, 1925, 1988, 2018];\nconst ERA_NAMES = ['meiji', 'taisho', 'showa', 'heisei', 'reiwa'];\n\nfunction findEraFromGregorianDate(date: AnyCalendarDate) {\n const idx = ERA_START_DATES.findIndex(([year, month, day]) => {\n if (date.year < year) {\n return true;\n }\n\n if (date.year === year && date.month < month) {\n return true;\n }\n\n if (date.year === year && date.month === month && date.day < day) {\n return true;\n }\n\n return false;\n });\n\n if (idx === -1) {\n return ERALine truncated
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import { n as bundledThemes, r as bundledThemesInfo, t as BundledTheme } from "./themes-BKdFAJ1v.mjs";
|
||||
export { BundledTheme, bundledThemes, bundledThemesInfo };
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"store.cjs","names":["createAtom","toObserver"],"sources":["../src/store.ts"],"sourcesContent":["import { createAtom, toObserver } from './atom'\nimport type { Atom, Observer, Subscription } from './types'\n\nexport type StoreAction = (...args: Array<any>) => any\n\nexport type StoreActionMap = Record<string, StoreAction>\n\nexport type StoreActionsFactory<T, TActions extends StoreActionMap> = (store: {\n setState: Store<T>['setState']\n get: Store<T>['get']\n}) => TActions\n\ntype NonFunction<T> = T extends (...args: Array<any>) => any ? never : T\n\nexport class Store<T, TActions extends StoreActionMap = never> {\n private atom: Atom<T>\n public readonly actions!: TActions\n constructor(getValue: (prev?: NoInfer<T>) => T)\n constructor(initialValue: T)\n constructor(\n initialValue: NonFunction<T>,\n actionsFactory: StoreActionsFactory<T, TActions>,\n )\n constructor(\n valueOrFn: T | ((prev?: T) => T),\n actionsFactory?: StoreActionsFactory<T, TActions>,\n ) {\n // createAtom has overloads that return ReadonlyAtom<T> for functions and Atom<T> for values\n // Store always needs Atom<T> for setState, so we assert the return type\n this.atom = createAtom(\n valueOrFn as T | ((prev?: NoInfer<T>) => T),\n ) as Atom<T>\n\n // bind for safe destructuring\n this.get = this.get.bind(this)\n this.setState = this.setState.bind(this)\n this.subscribe = this.subscribe.bind(this)\n\n if (actionsFactory) {\n this.actions = actionsFactory(this)\n }\n }\n public setState(updater: (prev: T) => T) {\n this.atom.set(updater)\n }\n public get state() {\n return this.atom.get()\n }\n public get() {\n return this.state\n }\n public subscribe(\n observerOrFn: Observer<T> | ((value: T) => void),\n ): Subscription {\n return this.atom.subscribe(toObserver(observerOrFn))\n }\n}\n\nexport class ReadonlyStore<T> implements Omit<\n Store<T>,\n 'setState' | 'actions'\n> {\n private atom: Atom<T>\n constructor(getValue: (prev?: NoInfer<T>) => T)\n constructor(initialValue: T)\n constructor(valueOrFn: T | ((prev?: T) => T)) {\n // createAtom has overloads that return ReadonlyAtom<T> for functions and Atom<T> for values\n // Store always needs Atom<T> for setState, so we assert the return type\n this.atom = createAtom(\n valueOrFn as T | ((prev?: NoInfer<T>) => T),\n ) as Atom<T>\n }\n public get state() {\n return this.atom.get()\n }\n public get() {\n return this.state\n }\n public subscribe(\n observerOrFn: Observer<T> | ((value: T) => void),\n ): Subscription {\n return this.atom.subscribe(toObserver(observerOrFn))\n }\n}\n\nexport function createStore<T>(\n getValue: (prev?: NoInfer<T>) => T,\n): ReadonlyStore<T>\nexport function createStore<T>(initialValue: T): Store<T>\nexport function createStore<T, TActions extends StoreActionMap>(\n initialValue: NonFunction<T>,\n actions: StoreActionsFactory<T, TActions>,\n): Store<T, TActions>\nexport function createStore<T, TActions extends StoreActionMap>(\n valueOrFn: T | ((prev?: T) => T),\n actions?: StoreActionsFactory<T, TActions>,\n): Store<T, TActions> | Store<T> | ReadonlyStore<T> {\n if (typeof valueOrFn === 'function') {\n return new ReadonlyStore(valueOrFn as (prev?: NoInfer<T>) => T)\n }\n if (actions) {\n return new Store(valueOrFn as NonFunction<T>, actions)\n }\n return new Store(valueOrFn)\n}\n"],"mappings":";;;AAcA,IAAa,QAAb,MAA+D;CAS7D,YACE,WACA,gBACA;AAGA,OAAK,OAAOA,wBACV,UACD;AAGD,OAAK,MAAM,KAAK,IAAI,KAAK,KAAK;AAC9B,OAAK,WAAW,KAAK,SAAS,KAAK,KAAK;AACxC,OAAK,YAAY,KAAK,UAAU,KAAK,KAAK;AAE1C,MAAI,eACF,MAAK,UAAU,eAAe,KAAK;;CAGvC,AAAO,SAAS,SAAyB;AACvC,OAAK,KAAK,IAAI,QAAQ;;CAExB,IAAW,QAAQ;AACjB,SAAO,KAAK,KAAK,KAAK;;CAExB,AAAO,MAAM;AACX,SAAO,KAAK;;CAEd,AAAO,UACL,cACc;AACd,SAAO,KAAK,KAAK,UAAUC,wBAAW,aAAa,CAAC;;;AAIxD,IAAa,gBAAb,MAGE;CAIA,YAAY,WAAkC;AAG5C,OAAK,OAAOD,wBACV,UACD;;CAEH,IAAW,QAAQ;AACjB,SAAO,KAAK,KAAK,KAAK;;CAExB,AAAO,MAAM;AACX,SAAO,KAAK;;CAEd,AAAO,UACL,cACc;AACd,SAAO,KAAK,KAAK,UAAUC,wBAAW,aAAa,CAAC;;;AAYxD,SAAgB,YACd,WACA,SACkD;AAClD,KAAI,OAAO,cAAc,WACvB,QAAO,IAAI,cAAc,UAAsC;AAEjE,KAAI,QACF,QAAO,IAAI,MAAM,WAA6B,QAAQ;AAExD,QAAO,IAAI,MAAM,UAAU"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"clock-arrow-right.mjs","sources":["../../../src/icons/clock-arrow-right.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'clock-arrow-right',\n size: 24,\n node: [\n ['path', { d: 'M12 6v6l2 1', key: '19cm8n' }],\n ['path', { d: 'M13.5 21.885A10 10 0 1 1 22 12', key: 'xgp8as' }],\n ['path', { d: 'M14 18h8', key: '1le3fr' }],\n ['path', { d: 'm18 22 4-4-4-4', key: 'mordo3' }],\n ],\n};\n\n/**\n * @component @name ClockArrowRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/clock-arrow-right\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst ClockArrowRight: LucideIcon = createLucideIcon(__iconData);\n\nexport default ClockArrowRight;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,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AA,CAAA,GAAU;AAAA,CAAA,CAAA;AAEnD,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA8B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "circle-dollar-sign",
|
||||
size: 24,
|
||||
node: [
|
||||
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
||||
["path", { d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8", key: "1h4pet" }],
|
||||
["path", { d: "M12 18V6", key: "zqpxq5" }]
|
||||
]
|
||||
};
|
||||
const CircleDollarSign = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, CircleDollarSign as default };
|
||||
//# sourceMappingURL=circle-dollar-sign.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"TabsIndicator.js","names":[],"sources":["../../src/Tabs/TabsIndicator.vue","../../src/Tabs/TabsIndicator.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;EAaA,MAAM,QAAQ;EACd,MAAM,UAAU,uBAAsB;AACtC,WAAa,EACX,qBACD,EAAA;AACD,oBAAiB;EAEjB,MAAM,YAAY,YAAW;EAO7B,MAAM,iBAAiB,IAAoB;GACzC,MAAM;GACN,WAAW;GACX,UAAU;EACX,EAAA;EACD,MAAM,OAAO,IAAwB,CAAE,EAAA;AAEvC,QAAM,MAAM,CAAC,QAAQ,WAAW,OAAO,SAAS,IAAI,KAAM,GAAE,MAAM;AAChE,yBAAqB;EACtB,GAAE;GAAE,WAAW;GAAM,OAAO;EAAQ,EAAA;AAErC,kBAAgB,MAAM;AACpB,QAAK,QAAQ,MAAM,KAAK,QAAQ,SAAS,OAAO,iBAA8B,iBAAe,IAAI,CAAE,EAAA;EACpG,EAAA;AAED,oBAAkB,SAAS,MAAM,CAAC,QAAQ,SAAS,OAAO,GAAG,KAAK,KAAM,EAAC,EAAE,qBAAoB;EAE/F,SAAS,uBAAuB;GAC9B,MAAM,YAAY,QAAQ,SAAS,OAAO,cAAiC,wCAAmC;AAE9G,QAAK,UACH;AAEF,OAAI,QAAQ,YAAY,UAAU,aAChC,gBAAe,QAAQ;IACrB,MAAM,UAAU;IAChB,WAAW,UAAU;IACrB,UAAU,UAAU;GACtB;OAGA,gBAAe,QAAQ;IACrB,MAAM,UAAU;IAChB,WAAW,UAAU;IACrB,UAAU,UAAU;GACtB;EAEJ;;UAKU,MAAA,UAAS,WAAW,eAAA,MAAe,SAAI,yBAD/C,YAUY,MAAA,UAAA,EAVZ,WAUY,EAAA,KAAA,EAAA,GARF,OAAK,EACZ,OAAK;qCAA2C,eAAA,MAAe,KAAI,EAAA,CAAA;0CAAkD,eAAA,MAAe,UAAS,EAAA,CAAA;yCAAiD,eAAA,MAAe,SAAQ,EAAA,CAAA;;qBAMtN,MAAQ,CAAR,WAAQ,KAAA,QAAA,UAAA"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"blocks.mjs","sources":["../../../src/icons/blocks.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'blocks',\n size: 24,\n node: [\n [\n 'path',\n {\n d: 'M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2',\n key: '1ah6g2',\n },\n ],\n ['rect', { x: '14', y: '2', width: '8', height: '8', rx: '1', key: '88lufb' }],\n ],\n};\n\n/**\n * @component @name Blocks\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/blocks\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Blocks: LucideIcon = createLucideIcon(__iconData);\n\nexport default Blocks;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA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icons/undo.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'undo',\n size: 24,\n node: [\n ['path', { d: 'M3 7v6h6', key: '1v2h90' }],\n ['path', { d: 'M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13', key: '1r6uu6' }],\n ],\n};\n\n/**\n * @component @name Undo\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/undo\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Undo: LucideIcon = createLucideIcon(__iconData);\n\nexport default Undo;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6C,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU;AAAA,CAAA,CAAA;AAE9E,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"clock-4.mjs","sources":["../../../src/icons/clock-4.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'clock-4',\n size: 24,\n node: [\n ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],\n ['path', { d: 'M12 6v6l4 2', key: 'mmk7yg' }],\n ],\n};\n\n/**\n * @component @name Clock4\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/clock-4\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Clock4: LucideIcon = createLucideIcon(__iconData);\n\nexport default Clock4;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ,CAAC,QAAA,CAAA,CAAU,CAAA,CAAE,EAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAI,IAAA,CAAA,CAAM,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACzD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU;AAAA,CAAA,CAAA;AAEhD,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// These are typically used in conjunction with noevent to ensure that we can
|
||||
// preventDefault on the event.
|
||||
export const nonpassive = {passive: false};
|
||||
export const nonpassivecapture = {capture: true, passive: false};
|
||||
|
||||
export function nopropagation(event) {
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
export default function(event) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
import { AnyFunction } from "@tanstack/pacer/types";
|
||||
|
||||
//#region src/lite-throttler.d.ts
|
||||
|
||||
/**
|
||||
* Options for configuring a lite throttled function
|
||||
*/
|
||||
interface LiteThrottlerOptions<TFn extends AnyFunction = AnyFunction> {
|
||||
/**
|
||||
* Whether to execute on the leading edge of the timeout.
|
||||
* Defaults to true.
|
||||
*/
|
||||
leading?: boolean;
|
||||
/**
|
||||
* Callback function that is called after the function is executed
|
||||
*/
|
||||
onExecute?: (args: Parameters<TFn>, throttler: LiteThrottler<TFn>) => void;
|
||||
/**
|
||||
* Whether to execute on the trailing edge of the timeout.
|
||||
* Defaults to true.
|
||||
*/
|
||||
trailing?: boolean;
|
||||
/**
|
||||
* Time window in milliseconds during which the function can only be executed once.
|
||||
*/
|
||||
wait: number;
|
||||
}
|
||||
/**
|
||||
* A lightweight class that creates a throttled function.
|
||||
*
|
||||
* This is an alternative to the Throttler in the core @tanstack/pacer package, but is more
|
||||
* suitable for libraries and npm packages that need minimal overhead. Unlike the core Throttler,
|
||||
* this version does not use TanStack Store for state management, has no devtools integration,
|
||||
* and provides only essential throttling functionality.
|
||||
*
|
||||
* Throttling ensures a function is called at most once within a specified time window.
|
||||
* Unlike debouncing which waits for a pause in calls, throttling guarantees consistent
|
||||
* execution timing regardless of call frequency.
|
||||
*
|
||||
* Supports both leading and trailing edge execution:
|
||||
* - Leading: Execute immediately on first call (default: true)
|
||||
* - Trailing: Execute after wait period if called during throttle (default: true)
|
||||
*
|
||||
* Features:
|
||||
* - Zero dependencies - no external libraries required
|
||||
* - Minimal API surface - only essential methods (maybeExecute, flush, cancel)
|
||||
* - Simple state management - uses basic private properties instead of reactive stores
|
||||
* - Callback support for monitoring execution events
|
||||
* - Lightweight - designed for use in npm packages where bundle size matters
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const throttler = new LiteThrottler((scrollY: number) => {
|
||||
* updateScrollPosition(scrollY);
|
||||
* }, {
|
||||
* wait: 100,
|
||||
* onExecute: (args, throttler) => {
|
||||
* console.log('Updated scroll position:', args[0]);
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* // Will execute at most once per 100ms
|
||||
* window.addEventListener('scroll', () => {
|
||||
* throttler.maybeExecute(window.scrollY);
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
declare class LiteThrottler<TFn extends AnyFunction> {
|
||||
fn: TFn;
|
||||
options: LiteThrottlerOptions<TFn>;
|
||||
private timeoutId;
|
||||
private lastArgs;
|
||||
private lastExecutionTime;
|
||||
private isPending;
|
||||
constructor(fn: TFn, options: LiteThrottlerOptions<TFn>);
|
||||
/**
|
||||
* Attempts to execute the throttled function. The execution behavior depends on the throttler options:
|
||||
*
|
||||
* - If enough time has passed since the last execution (>= wait period):
|
||||
* - With leading=true: Executes immediately
|
||||
* - With leading=false: Waits for the next trailing execution
|
||||
*
|
||||
* - If within the wait period:
|
||||
* - With trailing=true: Schedules execution for end of wait period
|
||||
* - With trailing=false: Drops the execution
|
||||
*/
|
||||
maybeExecute: (...args: Parameters<TFn>) => void;
|
||||
private execute;
|
||||
/**
|
||||
* Processes the current pending execution immediately.
|
||||
* If there's a pending execution, it will be executed right away
|
||||
* and the timeout will be cleared.
|
||||
*/
|
||||
flush: () => void;
|
||||
/**
|
||||
* Cancels any pending trailing execution and clears internal state.
|
||||
* If a trailing execution is scheduled, this will prevent that execution from occurring.
|
||||
*/
|
||||
cancel: () => void;
|
||||
private clearTimeout;
|
||||
}
|
||||
/**
|
||||
* Creates a lightweight throttled function that limits how often the provided function can execute.
|
||||
*
|
||||
* This is an alternative to the throttle function in the core @tanstack/pacer package, but is more
|
||||
* suitable for libraries and npm packages that need minimal overhead. Unlike the core version,
|
||||
* this function creates a throttler with no external dependencies, devtools integration, or reactive state.
|
||||
*
|
||||
* Throttling ensures a function executes at most once within a specified time window,
|
||||
* regardless of how many times it is called. This is useful for rate-limiting
|
||||
* expensive operations or UI updates.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const throttledScroll = liteThrottle(() => {
|
||||
* updateScrollIndicator();
|
||||
* }, { wait: 100 });
|
||||
*
|
||||
* // Will execute at most once per 100ms
|
||||
* window.addEventListener('scroll', throttledScroll);
|
||||
* ```
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* // Leading edge execution - fires immediately then throttles
|
||||
* const throttledResize = liteThrottle(() => {
|
||||
* recalculateLayout();
|
||||
* }, { wait: 250, leading: true, trailing: false });
|
||||
* ```
|
||||
*/
|
||||
declare function liteThrottle<TFn extends AnyFunction>(fn: TFn, options: LiteThrottlerOptions<TFn>): (...args: Parameters<TFn>) => void;
|
||||
//#endregion
|
||||
export { LiteThrottler, LiteThrottlerOptions, liteThrottle };
|
||||
//# sourceMappingURL=lite-throttler.d.ts.map
|
||||
+514
@@ -0,0 +1,514 @@
|
||||
import { AccordionTrigger, AccordionRoot, AccordionItem, AccordionHeader, AccordionContent, AlertDialogAction, AlertDialogDescription, AlertDialogTitle, AlertDialogCancel, AlertDialogOverlay, AlertDialogContent, AlertDialogPortal, AlertDialogTrigger, AlertDialogRoot, AutocompletePortal, AutocompleteArrow, AutocompleteSeparator, AutocompleteItemIndicator, AutocompleteItem, AutocompleteVirtualizer, AutocompleteViewport, AutocompleteContent, AutocompleteLabel, AutocompleteGroup, AutocompleteCancel, AutocompleteTrigger, AutocompleteEmpty, AutocompleteAnchor, AutocompleteInput, AutocompleteRoot, AvatarImage, AvatarFallback, AvatarRoot, CalendarCellTrigger, CalendarGridRow, CalendarGridBody, CalendarGridHead, CalendarPrev, CalendarNext, CalendarHeadCell, CalendarCell, CalendarGrid, CalendarHeading, CalendarHeader, CalendarRoot, CheckboxIndicator, CheckboxRoot, CheckboxGroupRoot, CollapsibleContent, CollapsibleTrigger, CollapsibleRoot, ColorAreaThumb, ColorAreaArea, ColorAreaRoot, ColorFieldInput, ColorFieldRoot, ColorSliderThumb, ColorSliderTrack, ColorSliderRoot, ColorSwatchPickerItemIndicator, ColorSwatchPickerItemSwatch, ColorSwatchPickerItem, ColorSwatchPickerRoot, ComboboxPortal, ComboboxArrow, ComboboxSeparator, ComboboxItemIndicator, ComboboxItem, ComboboxVirtualizer, ComboboxViewport, ComboboxContent, ComboboxLabel, ComboboxGroup, ComboboxCancel, ComboboxTrigger, ComboboxEmpty, ComboboxAnchor, ComboboxInput, ComboboxRoot, ContextMenuSubTrigger, ContextMenuSubContent, ContextMenuSub, ContextMenuRadioItem, ContextMenuRadioGroup, ContextMenuLabel, ContextMenuItemIndicator, ContextMenuCheckboxItem, ContextMenuSeparator, ContextMenuGroup, ContextMenuItem, ContextMenuArrow, ContextMenuContent, ContextMenuPortal, ContextMenuTrigger, ContextMenuRoot, DateFieldInput, DateFieldRoot, DatePickerContent, DatePickerTrigger, DatePickerClose, DatePickerArrow, DatePickerAnchor, DatePickerField, DatePickerCalendar, DatePickerInput, DatePickerCellTrigger, DatePickerGridRow, DatePickerGridBody, DatePickerGridHead, DatePickerPrev, DatePickerNext, DatePickerHeadCell, DatePickerCell, DatePickerGrid, DatePickerHeading, DatePickerHeader, DatePickerRoot, DateRangeFieldInput, DateRangeFieldRoot, DateRangePickerContent, DateRangePickerTrigger, DateRangePickerClose, DateRangePickerArrow, DateRangePickerAnchor, DateRangePickerField, DateRangePickerCalendar, DateRangePickerInput, DateRangePickerCellTrigger, DateRangePickerGridRow, DateRangePickerGridBody, DateRangePickerGridHead, DateRangePickerPrev, DateRangePickerNext, DateRangePickerHeadCell, DateRangePickerCell, DateRangePickerGrid, DateRangePickerHeading, DateRangePickerHeader, DateRangePickerRoot, DialogDescription, DialogTitle, DialogClose, DialogOverlay, DialogContent, DialogPortal, DialogTrigger, DialogRoot, DrawerIndentBackground, DrawerIndent, DrawerVirtualKeyboardProvider, DrawerViewport, DrawerSwipeArea, DrawerHandle, DrawerDescription, DrawerTitle, DrawerClose, DrawerContent, DrawerOverlay, DrawerPortal, DrawerTrigger, DrawerRoot, DropdownMenuFilter, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuSub, DropdownMenuRadioItem, DropdownMenuRadioGroup, DropdownMenuLabel, DropdownMenuItemIndicator, DropdownMenuCheckboxItem, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuItem, DropdownMenuArrow, DropdownMenuContent, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuRoot, EditableEditTrigger, EditableCancelTrigger, EditableSubmitTrigger, EditablePreview, EditableInput, EditableArea, EditableRoot, FieldValidity, FieldError, FieldDescription, FieldControl, FieldLabel, FieldRoot, FormRoot, HoverCardArrow, HoverCardContent, HoverCardPortal, HoverCardTrigger, HoverCardRoot, ListboxGroupLabel, ListboxGroup, ListboxVirtualizer, ListboxItemIndicator, ListboxItem, ListboxFilter, ListboxContent, ListboxRoot, MenubarMenu, MenubarSubTrigger, MenubarSubContent, MenubarSub, MenubarRadioItem, MenubarRadioGroup, MenubarLabel, MenubarItemIndicator, MenubarCheckboxItem, MenubarSeparator, MenubarGroup, MenubarItem, MenubarArrow, MenubarContent, MenubarPortal, MenubarTrigger, MenubarRoot, MonthPickerCellTrigger, MonthPickerGridRow, MonthPickerGridBody, MonthPickerPrev, MonthPickerNext, MonthPickerCell, MonthPickerGrid, MonthPickerHeading, MonthPickerHeader, MonthPickerRoot, MonthRangePickerCellTrigger, MonthRangePickerGridRow, MonthRangePickerGridBody, MonthRangePickerPrev, MonthRangePickerNext, MonthRangePickerCell, MonthRangePickerGrid, MonthRangePickerHeading, MonthRangePickerHeader, MonthRangePickerRoot, NavigationMenuViewport, NavigationMenuTrigger, NavigationMenuSub, NavigationMenuList, NavigationMenuLink, NavigationMenuItem, NavigationMenuIndicator, NavigationMenuContent, NavigationMenuRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, NumberFieldRoot, PaginationPrev, PaginationNext, PaginationListItem, PaginationList, PaginationLast, PaginationFirst, PaginationEllipsis, PaginationRoot, PinInputInput, PinInputRoot, PopoverAnchor, PopoverClose, PopoverALine truncated
|
||||
export { AspectRatio, ColorSwatch, FocusScope, Label, Presence, Separator, Toggle, Viewport } from 'reka-ui';
|
||||
|
||||
const Accordion = {
|
||||
Content: AccordionContent,
|
||||
Header: AccordionHeader,
|
||||
Item: AccordionItem,
|
||||
Root: AccordionRoot,
|
||||
Trigger: AccordionTrigger
|
||||
};
|
||||
const AlertDialog = {
|
||||
Root: AlertDialogRoot,
|
||||
Trigger: AlertDialogTrigger,
|
||||
Portal: AlertDialogPortal,
|
||||
Content: AlertDialogContent,
|
||||
Overlay: AlertDialogOverlay,
|
||||
Cancel: AlertDialogCancel,
|
||||
Title: AlertDialogTitle,
|
||||
Description: AlertDialogDescription,
|
||||
Action: AlertDialogAction
|
||||
};
|
||||
const Autocomplete = {
|
||||
Root: AutocompleteRoot,
|
||||
Input: AutocompleteInput,
|
||||
Anchor: AutocompleteAnchor,
|
||||
Empty: AutocompleteEmpty,
|
||||
Trigger: AutocompleteTrigger,
|
||||
Cancel: AutocompleteCancel,
|
||||
Group: AutocompleteGroup,
|
||||
Label: AutocompleteLabel,
|
||||
Content: AutocompleteContent,
|
||||
Viewport: AutocompleteViewport,
|
||||
Virtualizer: AutocompleteVirtualizer,
|
||||
Item: AutocompleteItem,
|
||||
ItemIndicator: AutocompleteItemIndicator,
|
||||
Separator: AutocompleteSeparator,
|
||||
Arrow: AutocompleteArrow,
|
||||
Portal: AutocompletePortal
|
||||
};
|
||||
const Avatar = {
|
||||
Root: AvatarRoot,
|
||||
Fallback: AvatarFallback,
|
||||
Image: AvatarImage
|
||||
};
|
||||
const Calendar = {
|
||||
Root: CalendarRoot,
|
||||
Header: CalendarHeader,
|
||||
Heading: CalendarHeading,
|
||||
Grid: CalendarGrid,
|
||||
Cell: CalendarCell,
|
||||
HeadCell: CalendarHeadCell,
|
||||
Next: CalendarNext,
|
||||
Prev: CalendarPrev,
|
||||
GridHead: CalendarGridHead,
|
||||
GridBody: CalendarGridBody,
|
||||
GridRow: CalendarGridRow,
|
||||
CellTrigger: CalendarCellTrigger
|
||||
};
|
||||
const Checkbox = {
|
||||
GroupRoot: CheckboxGroupRoot,
|
||||
Root: CheckboxRoot,
|
||||
Indicator: CheckboxIndicator
|
||||
};
|
||||
const Collapsible = {
|
||||
Root: CollapsibleRoot,
|
||||
Trigger: CollapsibleTrigger,
|
||||
Content: CollapsibleContent
|
||||
};
|
||||
const ColorArea = {
|
||||
Root: ColorAreaRoot,
|
||||
Area: ColorAreaArea,
|
||||
Thumb: ColorAreaThumb
|
||||
};
|
||||
const ColorField = {
|
||||
Root: ColorFieldRoot,
|
||||
Input: ColorFieldInput
|
||||
};
|
||||
const ColorSlider = {
|
||||
Root: ColorSliderRoot,
|
||||
Track: ColorSliderTrack,
|
||||
Thumb: ColorSliderThumb
|
||||
};
|
||||
const ColorSwatchPicker = {
|
||||
Root: ColorSwatchPickerRoot,
|
||||
Item: ColorSwatchPickerItem,
|
||||
ItemSwatch: ColorSwatchPickerItemSwatch,
|
||||
ItemIndicator: ColorSwatchPickerItemIndicator
|
||||
};
|
||||
const Combobox = {
|
||||
Root: ComboboxRoot,
|
||||
Input: ComboboxInput,
|
||||
Anchor: ComboboxAnchor,
|
||||
Empty: ComboboxEmpty,
|
||||
Trigger: ComboboxTrigger,
|
||||
Cancel: ComboboxCancel,
|
||||
Group: ComboboxGroup,
|
||||
Label: ComboboxLabel,
|
||||
Content: ComboboxContent,
|
||||
Viewport: ComboboxViewport,
|
||||
Virtualizer: ComboboxVirtualizer,
|
||||
Item: ComboboxItem,
|
||||
ItemIndicator: ComboboxItemIndicator,
|
||||
Separator: ComboboxSeparator,
|
||||
Arrow: ComboboxArrow,
|
||||
Portal: ComboboxPortal
|
||||
};
|
||||
const ContextMenu = {
|
||||
Root: ContextMenuRoot,
|
||||
Trigger: ContextMenuTrigger,
|
||||
Portal: ContextMenuPortal,
|
||||
Content: ContextMenuContent,
|
||||
Arrow: ContextMenuArrow,
|
||||
Item: ContextMenuItem,
|
||||
Group: ContextMenuGroup,
|
||||
Separator: ContextMenuSeparator,
|
||||
CheckboxItem: ContextMenuCheckboxItem,
|
||||
ItemIndicator: ContextMenuItemIndicator,
|
||||
Label: ContextMenuLabel,
|
||||
RadioGroup: ContextMenuRadioGroup,
|
||||
RadioItem: ContextMenuRadioItem,
|
||||
Sub: ContextMenuSub,
|
||||
SubContent: ContextMenuSubContent,
|
||||
SubTrigger: ContextMenuSubTrigger
|
||||
};
|
||||
const DateField = {
|
||||
Root: DateFieldRoot,
|
||||
Input: DateFieldInput
|
||||
};
|
||||
const DatePicker = {
|
||||
Root: DatePickerRoot,
|
||||
Header: DatePickerHeader,
|
||||
Heading: DatePickerHeading,
|
||||
Grid: DatePickerGrid,
|
||||
Cell: DatePickerCell,
|
||||
HeadCell: DatePickerHeadCell,
|
||||
Next: DatePickerNext,
|
||||
Prev: DatePickerPrev,
|
||||
GridHead: DatePickerGridHead,
|
||||
GridBody: DatePickerGridBody,
|
||||
GridRow: DatePickerGridRow,
|
||||
CellTrigger: DatePickerCellTrigger,
|
||||
Input: DatePickerInput,
|
||||
Calendar: DatePickerCalendar,
|
||||
Field: DatePickerField,
|
||||
Anchor: DatePickerAnchor,
|
||||
Arrow: DatePickerArrow,
|
||||
Close: DatePickerClose,
|
||||
Trigger: DatePickerTrigger,
|
||||
Content: DatePickerContent
|
||||
};
|
||||
const DateRangePicker = {
|
||||
Root: DateRangePickerRoot,
|
||||
Header: DateRangePickerHeader,
|
||||
Heading: DateRangePickerHeading,
|
||||
Grid: DateRangePickerGrid,
|
||||
Cell: DateRangePickerCell,
|
||||
HeadCell: DateRangePickerHeadCell,
|
||||
Next: DateRangePickerNext,
|
||||
Prev: DateRangePickerPrev,
|
||||
GridHead: DateRangePickerGridHead,
|
||||
GridBody: DateRangePickerGridBody,
|
||||
GridRow: DateRangePickerGridRow,
|
||||
CellTrigger: DateRangePickerCellTrigger,
|
||||
Input: DateRangePickerInput,
|
||||
Calendar: DateRangePickerCalendar,
|
||||
Field: DateRangePickerField,
|
||||
Anchor: DateRangePickerAnchor,
|
||||
Arrow: DateRangePickerArrow,
|
||||
Close: DateRangePickerClose,
|
||||
Trigger: DateRangePickerTrigger,
|
||||
Content: DateRangePickerContent
|
||||
};
|
||||
const DateRangeField = {
|
||||
Root: DateRangeFieldRoot,
|
||||
Input: DateRangeFieldInput
|
||||
};
|
||||
const Dialog = {
|
||||
Root: DialogRoot,
|
||||
Trigger: DialogTrigger,
|
||||
Portal: DialogPortal,
|
||||
Content: DialogContent,
|
||||
Overlay: DialogOverlay,
|
||||
Close: DialogClose,
|
||||
Title: DialogTitle,
|
||||
Description: DialogDescription
|
||||
};
|
||||
const Drawer = {
|
||||
Root: DrawerRoot,
|
||||
Trigger: DrawerTrigger,
|
||||
Portal: DrawerPortal,
|
||||
Overlay: DrawerOverlay,
|
||||
Content: DrawerContent,
|
||||
Close: DrawerClose,
|
||||
Title: DrawerTitle,
|
||||
Description: DrawerDescription,
|
||||
Handle: DrawerHandle,
|
||||
SwipeArea: DrawerSwipeArea,
|
||||
Viewport: DrawerViewport,
|
||||
VirtualKeyboardProvider: DrawerVirtualKeyboardProvider,
|
||||
Indent: DrawerIndent,
|
||||
IndentBackground: DrawerIndentBackground
|
||||
};
|
||||
const DropdownMenu = {
|
||||
Root: DropdownMenuRoot,
|
||||
Trigger: DropdownMenuTrigger,
|
||||
Portal: DropdownMenuPortal,
|
||||
Content: DropdownMenuContent,
|
||||
Arrow: DropdownMenuArrow,
|
||||
Item: DropdownMenuItem,
|
||||
Group: DropdownMenuGroup,
|
||||
Separator: DropdownMenuSeparator,
|
||||
CheckboxItem: DropdownMenuCheckboxItem,
|
||||
ItemIndicator: DropdownMenuItemIndicator,
|
||||
Label: DropdownMenuLabel,
|
||||
RadioGroup: DropdownMenuRadioGroup,
|
||||
RadioItem: DropdownMenuRadioItem,
|
||||
Sub: DropdownMenuSub,
|
||||
SubContent: DropdownMenuSubContent,
|
||||
SubTrigger: DropdownMenuSubTrigger,
|
||||
Filter: DropdownMenuFilter
|
||||
};
|
||||
const Editable = {
|
||||
Root: EditableRoot,
|
||||
Area: EditableArea,
|
||||
Input: EditableInput,
|
||||
Preview: EditablePreview,
|
||||
SubmitTrigger: EditableSubmitTrigger,
|
||||
CancelTrigger: EditableCancelTrigger,
|
||||
EditTrigger: EditableEditTrigger
|
||||
};
|
||||
const Field = {
|
||||
Root: FieldRoot,
|
||||
Label: FieldLabel,
|
||||
Control: FieldControl,
|
||||
Description: FieldDescription,
|
||||
Error: FieldError,
|
||||
Validity: FieldValidity
|
||||
};
|
||||
const Form = {
|
||||
Root: FormRoot
|
||||
};
|
||||
const HoverCard = {
|
||||
Root: HoverCardRoot,
|
||||
Trigger: HoverCardTrigger,
|
||||
Portal: HoverCardPortal,
|
||||
Content: HoverCardContent,
|
||||
Arrow: HoverCardArrow
|
||||
};
|
||||
const Listbox = {
|
||||
Root: ListboxRoot,
|
||||
Content: ListboxContent,
|
||||
Filter: ListboxFilter,
|
||||
Item: ListboxItem,
|
||||
ItemIndicator: ListboxItemIndicator,
|
||||
Virtualizer: ListboxVirtualizer,
|
||||
Group: ListboxGroup,
|
||||
GroupLabel: ListboxGroupLabel
|
||||
};
|
||||
const Menubar = {
|
||||
Root: MenubarRoot,
|
||||
Trigger: MenubarTrigger,
|
||||
Portal: MenubarPortal,
|
||||
Content: MenubarContent,
|
||||
Arrow: MenubarArrow,
|
||||
Item: MenubarItem,
|
||||
Group: MenubarGroup,
|
||||
Separator: MenubarSeparator,
|
||||
CheckboxItem: MenubarCheckboxItem,
|
||||
ItemIndicator: MenubarItemIndicator,
|
||||
Label: MenubarLabel,
|
||||
RadioGroup: MenubarRadioGroup,
|
||||
RadioItem: MenubarRadioItem,
|
||||
Sub: MenubarSub,
|
||||
SubContent: MenubarSubContent,
|
||||
SubTrigger: MenubarSubTrigger,
|
||||
Menu: MenubarMenu
|
||||
};
|
||||
const MonthPicker = {
|
||||
Root: MonthPickerRoot,
|
||||
Header: MonthPickerHeader,
|
||||
Heading: MonthPickerHeading,
|
||||
Grid: MonthPickerGrid,
|
||||
Cell: MonthPickerCell,
|
||||
Next: MonthPickerNext,
|
||||
Prev: MonthPickerPrev,
|
||||
GridBody: MonthPickerGridBody,
|
||||
GridRow: MonthPickerGridRow,
|
||||
CellTrigger: MonthPickerCellTrigger
|
||||
};
|
||||
const MonthRangePicker = {
|
||||
Root: MonthRangePickerRoot,
|
||||
Header: MonthRangePickerHeader,
|
||||
Heading: MonthRangePickerHeading,
|
||||
Grid: MonthRangePickerGrid,
|
||||
Cell: MonthRangePickerCell,
|
||||
Next: MonthRangePickerNext,
|
||||
Prev: MonthRangePickerPrev,
|
||||
GridBody: MonthRangePickerGridBody,
|
||||
GridRow: MonthRangePickerGridRow,
|
||||
CellTrigger: MonthRangePickerCellTrigger
|
||||
};
|
||||
const NavigationMenu = {
|
||||
Root: NavigationMenuRoot,
|
||||
Content: NavigationMenuContent,
|
||||
Indicator: NavigationMenuIndicator,
|
||||
Item: NavigationMenuItem,
|
||||
Link: NavigationMenuLink,
|
||||
List: NavigationMenuList,
|
||||
Sub: NavigationMenuSub,
|
||||
Trigger: NavigationMenuTrigger,
|
||||
Viewport: NavigationMenuViewport
|
||||
};
|
||||
const NumberField = {
|
||||
Root: NumberFieldRoot,
|
||||
Input: NumberFieldInput,
|
||||
Increment: NumberFieldIncrement,
|
||||
Decrement: NumberFieldDecrement
|
||||
};
|
||||
const Pagination = {
|
||||
Root: PaginationRoot,
|
||||
Ellipsis: PaginationEllipsis,
|
||||
First: PaginationFirst,
|
||||
Last: PaginationLast,
|
||||
List: PaginationList,
|
||||
ListItem: PaginationListItem,
|
||||
Next: PaginationNext,
|
||||
Prev: PaginationPrev
|
||||
};
|
||||
const PinInput = {
|
||||
Root: PinInputRoot,
|
||||
Input: PinInputInput
|
||||
};
|
||||
const Popover = {
|
||||
Root: PopoverRoot,
|
||||
Trigger: PopoverTrigger,
|
||||
Portal: PopoverPortal,
|
||||
Content: PopoverContent,
|
||||
Arrow: PopoverArrow,
|
||||
Close: PopoverClose,
|
||||
Anchor: PopoverAnchor
|
||||
};
|
||||
const Progress = {
|
||||
Root: ProgressRoot,
|
||||
Indicator: ProgressIndicator
|
||||
};
|
||||
const RadioGroup = {
|
||||
Root: RadioGroupRoot,
|
||||
Item: RadioGroupItem,
|
||||
Indicator: RadioGroupIndicator
|
||||
};
|
||||
const RangeCalendar = {
|
||||
Root: RangeCalendarRoot,
|
||||
Header: RangeCalendarHeader,
|
||||
Heading: RangeCalendarHeading,
|
||||
Grid: RangeCalendarGrid,
|
||||
Cell: RangeCalendarCell,
|
||||
HeadCell: RangeCalendarHeadCell,
|
||||
Next: RangeCalendarNext,
|
||||
Prev: RangeCalendarPrev,
|
||||
GridHead: RangeCalendarGridHead,
|
||||
GridBody: RangeCalendarGridBody,
|
||||
GridRow: RangeCalendarGridRow,
|
||||
CellTrigger: RangeCalendarCellTrigger
|
||||
};
|
||||
const Rating = {
|
||||
Root: RatingRoot,
|
||||
Item: RatingItem,
|
||||
ItemIndicator: RatingItemIndicator
|
||||
};
|
||||
const ScrollArea = {
|
||||
Root: ScrollAreaRoot,
|
||||
Viewport: ScrollAreaViewport,
|
||||
Scrollbar: ScrollAreaScrollbar,
|
||||
Thumb: ScrollAreaThumb,
|
||||
Corner: ScrollAreaCorner
|
||||
};
|
||||
const Select = {
|
||||
Root: SelectRoot,
|
||||
Trigger: SelectTrigger,
|
||||
Portal: SelectPortal,
|
||||
Content: SelectContent,
|
||||
Arrow: SelectArrow,
|
||||
Separator: SelectSeparator,
|
||||
ItemIndicator: SelectItemIndicator,
|
||||
Label: SelectLabel,
|
||||
Group: SelectGroup,
|
||||
Item: SelectItem,
|
||||
ItemText: SelectItemText,
|
||||
Viewport: SelectViewport,
|
||||
ScrollUpButton: SelectScrollUpButton,
|
||||
ScrollDownButton: SelectScrollDownButton,
|
||||
Value: SelectValue,
|
||||
Icon: SelectIcon
|
||||
};
|
||||
const Slider = {
|
||||
Root: SliderRoot,
|
||||
Thumb: SliderThumb,
|
||||
Track: SliderTrack,
|
||||
Range: SliderRange
|
||||
};
|
||||
const Splitter = {
|
||||
Group: SplitterGroup,
|
||||
Panel: SplitterPanel,
|
||||
ResizeHandle: SplitterResizeHandle
|
||||
};
|
||||
const Stepper = {
|
||||
Root: StepperRoot,
|
||||
Item: StepperItem,
|
||||
Trigger: StepperTrigger,
|
||||
Description: StepperDescription,
|
||||
Title: StepperTitle,
|
||||
Indicator: StepperIndicator,
|
||||
Separator: StepperSeparator
|
||||
};
|
||||
const Switch = {
|
||||
Root: SwitchRoot,
|
||||
Thumb: SwitchThumb
|
||||
};
|
||||
const Tabs = {
|
||||
Root: TabsRoot,
|
||||
List: TabsList,
|
||||
Content: TabsContent,
|
||||
Trigger: TabsTrigger,
|
||||
Indicator: TabsIndicator
|
||||
};
|
||||
const TagGroup = {
|
||||
Root: TagGroupRoot,
|
||||
Item: TagGroupItem,
|
||||
ItemText: TagGroupItemText,
|
||||
ItemDelete: TagGroupItemDelete
|
||||
};
|
||||
const TagsInput = {
|
||||
Root: TagsInputRoot,
|
||||
Input: TagsInputInput,
|
||||
Item: TagsInputItem,
|
||||
ItemText: TagsInputItemText,
|
||||
ItemDelete: TagsInputItemDelete,
|
||||
Clear: TagsInputClear
|
||||
};
|
||||
const TimeField = {
|
||||
Input: TimeFieldInput,
|
||||
Root: TimeFieldRoot
|
||||
};
|
||||
const TimeRangeField = {
|
||||
Root: TimeRangeFieldRoot,
|
||||
Input: TimeRangeFieldInput
|
||||
};
|
||||
const Toast = {
|
||||
Provider: ToastProvider,
|
||||
Root: ToastRoot,
|
||||
Portal: ToastPortal,
|
||||
Action: ToastAction,
|
||||
Close: ToastClose,
|
||||
Viewport: ToastViewport,
|
||||
Title: ToastTitle,
|
||||
Description: ToastDescription,
|
||||
Positioner: ToastPositioner,
|
||||
Arrow: ToastArrow
|
||||
};
|
||||
const ToggleGroup = {
|
||||
Root: ToggleGroupRoot,
|
||||
Item: ToggleGroupItem
|
||||
};
|
||||
const Toolbar = {
|
||||
Root: ToolbarRoot,
|
||||
Button: ToolbarButton,
|
||||
Link: ToolbarLink,
|
||||
ToggleGroup: ToolbarToggleGroup,
|
||||
ToggleItem: ToolbarToggleItem,
|
||||
Separator: ToolbarSeparator
|
||||
};
|
||||
const Tooltip = {
|
||||
Root: TooltipRoot,
|
||||
Trigger: TooltipTrigger,
|
||||
Content: TooltipContent,
|
||||
Arrow: TooltipArrow,
|
||||
Portal: TooltipPortal,
|
||||
Provider: TooltipProvider
|
||||
};
|
||||
const Tree = {
|
||||
Root: TreeRoot,
|
||||
Item: TreeItem,
|
||||
Virtualizer: TreeVirtualizer
|
||||
};
|
||||
const YearPicker = {
|
||||
Root: YearPickerRoot,
|
||||
Header: YearPickerHeader,
|
||||
Heading: YearPickerHeading,
|
||||
Grid: YearPickerGrid,
|
||||
Cell: YearPickerCell,
|
||||
Next: YearPickerNext,
|
||||
Prev: YearPickerPrev,
|
||||
GridBody: YearPickerGridBody,
|
||||
GridRow: YearPickerGridRow,
|
||||
CellTrigger: YearPickerCellTrigger
|
||||
};
|
||||
const YearRangePicker = {
|
||||
Root: YearRangePickerRoot,
|
||||
Header: YearRangePickerHeader,
|
||||
Heading: YearRangePickerHeading,
|
||||
Grid: YearRangePickerGrid,
|
||||
Cell: YearRangePickerCell,
|
||||
Next: YearRangePickerNext,
|
||||
Prev: YearRangePickerPrev,
|
||||
GridBody: YearRangePickerGridBody,
|
||||
GridRow: YearRangePickerGridRow,
|
||||
CellTrigger: YearRangePickerCellTrigger
|
||||
};
|
||||
const RovingFocus = {
|
||||
Group: RovingFocusGroup,
|
||||
Item: RovingFocusItem
|
||||
};
|
||||
|
||||
export { Accordion, AlertDialog, Autocomplete, Avatar, Calendar, Checkbox, Collapsible, ColorArea, ColorField, ColorSlider, ColorSwatchPicker, Combobox, ContextMenu, DateField, DatePicker, DateRangeField, DateRangePicker, Dialog, Drawer, DropdownMenu, Editable, Field, Form, HoverCard, Listbox, Menubar, MonthPicker, MonthRangePicker, NavigationMenu, NumberField, Pagination, PinInput, Popover, Progress, RadioGroup, RangeCalendar, Rating, RovingFocus, ScrollArea, Select, Slider, Splitter, Stepper, Switch, Tabs, TagGroup, TagsInput, TimeField, TimeRangeField, Toast, ToggleGroup, Toolbar, Tooltip, Tree, YearPicker, YearRangePicker };
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
const require_rolldown_runtime = require('../rolldown-runtime.cjs');
|
||||
const require_Primitive_Primitive = require('../Primitive/Primitive.cjs');
|
||||
const require_MonthRangePicker_MonthRangePickerRoot = require('./MonthRangePickerRoot.cjs');
|
||||
const vue = require_rolldown_runtime.__toESM(require("vue"));
|
||||
|
||||
//#region src/MonthRangePicker/MonthRangePickerGrid.vue?vue&type=script&setup=true&lang.ts
|
||||
var MonthRangePickerGrid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
||||
__name: "MonthRangePickerGrid",
|
||||
props: {
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false,
|
||||
default: "table"
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const rootContext = require_MonthRangePicker_MonthRangePickerRoot.injectMonthRangePickerRootContext();
|
||||
const disabled = (0, vue.computed)(() => rootContext.disabled.value ? true : void 0);
|
||||
const readonly = (0, vue.computed)(() => rootContext.readonly.value ? true : void 0);
|
||||
return (_ctx, _cache) => {
|
||||
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive_Primitive.Primitive), (0, vue.mergeProps)(props, {
|
||||
tabindex: "-1",
|
||||
role: "application",
|
||||
"aria-labelledby": (0, vue.unref)(rootContext).headingId,
|
||||
"aria-readonly": readonly.value,
|
||||
"aria-disabled": disabled.value,
|
||||
"data-readonly": readonly.value && "",
|
||||
"data-disabled": disabled.value && ""
|
||||
}), {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16, [
|
||||
"aria-labelledby",
|
||||
"aria-readonly",
|
||||
"aria-disabled",
|
||||
"data-readonly",
|
||||
"data-disabled"
|
||||
]);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/MonthRangePicker/MonthRangePickerGrid.vue
|
||||
var MonthRangePickerGrid_default = MonthRangePickerGrid_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
Object.defineProperty(exports, 'MonthRangePickerGrid_default', {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return MonthRangePickerGrid_default;
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=MonthRangePickerGrid.cjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"unwrap-useless-classes.d.ts","sourceRoot":"","sources":["../../../src/optimizer/transforms/unwrap-useless-classes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6BAA6B,CAAC;AAEzD;;;EAGE;AACF,QAAA,MAAM,oBAAoB,EAAE,OAe3B,CAAC;AAEF,OAAO,EACL,oBAAoB,GACrB,CAAC"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { _ as default } from "../esm/_ts_param.js";
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "badge-swiss-franc",
|
||||
size: 24,
|
||||
node: [
|
||||
[
|
||||
"path",
|
||||
{
|
||||
d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",
|
||||
key: "3c2336"
|
||||
}
|
||||
],
|
||||
["path", { d: "M11 17V8h4", key: "1bfq6y" }],
|
||||
["path", { d: "M11 12h3", key: "2eqnfz" }],
|
||||
["path", { d: "M9 16h4", key: "1skf3a" }]
|
||||
]
|
||||
};
|
||||
const BadgeSwissFranc = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, BadgeSwissFranc as default };
|
||||
//# sourceMappingURL=badge-swiss-franc.mjs.map
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { Scalar } from '../nodes/Scalar';
|
||||
import type { StringifyContext } from './stringify';
|
||||
interface StringifyScalar {
|
||||
value: string;
|
||||
comment?: string | null;
|
||||
type?: string;
|
||||
}
|
||||
export declare function stringifyString(item: Scalar | StringifyScalar, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
|
||||
export {};
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "pizza",
|
||||
size: 24,
|
||||
node: [
|
||||
["path", { d: "m12 14-1 1", key: "11onhr" }],
|
||||
["path", { d: "m13.75 18.25-1.25 1.42", key: "1yisr3" }],
|
||||
["path", { d: "M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12", key: "1qtqk6" }],
|
||||
["path", { d: "M18.8 9.3a1 1 0 0 0 2.1 7.7", key: "fbbbr2" }],
|
||||
[
|
||||
"path",
|
||||
{
|
||||
d: "M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",
|
||||
key: "1hyfdd"
|
||||
}
|
||||
]
|
||||
]
|
||||
};
|
||||
const Pizza = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, Pizza as default };
|
||||
//# sourceMappingURL=pizza.mjs.map
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
import { createContext } from "../shared/createContext.js";
|
||||
import { useDirection } from "../shared/useDirection.js";
|
||||
import { useForwardExpose } from "../shared/useForwardExpose.js";
|
||||
import { Primitive } from "../Primitive/Primitive.js";
|
||||
import { computed, createBlock, createElementVNode, defineComponent, nextTick, openBlock, ref, renderSlot, toDisplayString, toRefs, unref, watch, withCtx } from "vue";
|
||||
import { useVModel } from "@vueuse/core";
|
||||
|
||||
//#region src/Stepper/StepperRoot.vue?vue&type=script&setup=true&lang.ts
|
||||
const _hoisted_1 = {
|
||||
"aria-live": "polite",
|
||||
"aria-atomic": "true",
|
||||
role: "status",
|
||||
style: {
|
||||
transform: "translateX(-100%)",
|
||||
position: "absolute",
|
||||
pointerEvents: "none",
|
||||
opacity: 0,
|
||||
margin: 0
|
||||
}
|
||||
};
|
||||
const [injectStepperRootContext, provideStepperRootContext] = /*#__PURE__*/ createContext("StepperRoot");
|
||||
var StepperRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
__name: "StepperRoot",
|
||||
props: {
|
||||
defaultValue: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 1
|
||||
},
|
||||
orientation: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: "horizontal"
|
||||
},
|
||||
dir: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
modelValue: {
|
||||
type: Number,
|
||||
required: false
|
||||
},
|
||||
linear: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
emits: ["update:modelValue"],
|
||||
setup(__props, { expose: __expose, emit: __emit }) {
|
||||
const props = __props;
|
||||
const emits = __emit;
|
||||
const { dir: propDir, orientation: propOrientation, linear } = toRefs(props);
|
||||
const dir = useDirection(propDir);
|
||||
const totalStepperItems = ref(/* @__PURE__ */ new Set());
|
||||
const modelValue = useVModel(props, "modelValue", emits, {
|
||||
defaultValue: props.defaultValue,
|
||||
passive: props.modelValue === void 0
|
||||
});
|
||||
const totalStepperItemsArray = computed(() => Array.from(totalStepperItems.value));
|
||||
const isFirstStep = computed(() => modelValue.value === 1);
|
||||
const isLastStep = computed(() => modelValue.value === totalStepperItemsArray.value.length);
|
||||
const totalSteps = computed(() => totalStepperItems.value.size);
|
||||
function goToStep(step) {
|
||||
if (step > totalSteps.value) return;
|
||||
if (step < 1) return;
|
||||
if (totalStepperItems.value.size && !!totalStepperItemsArray.value[step] && !!totalStepperItemsArray.value[step].getAttribute("disabled")) return;
|
||||
if (linear.value) {
|
||||
if (step > (modelValue.value ?? 1) + 1) return;
|
||||
}
|
||||
modelValue.value = step;
|
||||
}
|
||||
function nextStep() {
|
||||
goToStep((modelValue.value ?? 1) + 1);
|
||||
}
|
||||
function prevStep() {
|
||||
goToStep((modelValue.value ?? 1) - 1);
|
||||
}
|
||||
function hasNext() {
|
||||
return (modelValue.value ?? 1) < totalSteps.value;
|
||||
}
|
||||
function hasPrev() {
|
||||
return (modelValue.value ?? 1) > 1;
|
||||
}
|
||||
const nextStepperItem = ref(null);
|
||||
const prevStepperItem = ref(null);
|
||||
const isNextDisabled = computed(() => nextStepperItem.value ? nextStepperItem.value.getAttribute("disabled") === "" : true);
|
||||
const isPrevDisabled = computed(() => prevStepperItem.value ? prevStepperItem.value.getAttribute("disabled") === "" : true);
|
||||
watch(modelValue, async () => {
|
||||
await nextTick(() => {
|
||||
nextStepperItem.value = totalStepperItemsArray.value.length && modelValue.value < totalStepperItemsArray.value.length ? totalStepperItemsArray.value[modelValue.value] : null;
|
||||
prevStepperItem.value = totalStepperItemsArray.value.length && modelValue.value > 1 ? totalStepperItemsArray.value[modelValue.value - 2] : null;
|
||||
});
|
||||
});
|
||||
watch(totalStepperItemsArray, async () => {
|
||||
await nextTick(() => {
|
||||
nextStepperItem.value = totalStepperItemsArray.value.length && modelValue.value < totalStepperItemsArray.value.length ? totalStepperItemsArray.value[modelValue.value] : null;
|
||||
prevStepperItem.value = totalStepperItemsArray.value.length && modelValue.value > 1 ? totalStepperItemsArray.value[modelValue.value - 2] : null;
|
||||
});
|
||||
});
|
||||
provideStepperRootContext({
|
||||
modelValue,
|
||||
changeModelValue: (value) => {
|
||||
modelValue.value = value;
|
||||
},
|
||||
orientation: propOrientation,
|
||||
dir,
|
||||
linear,
|
||||
totalStepperItems
|
||||
});
|
||||
__expose({
|
||||
goToStep,
|
||||
nextStep,
|
||||
prevStep,
|
||||
modelValue,
|
||||
totalSteps,
|
||||
isNextDisabled,
|
||||
isPrevDisabled,
|
||||
isFirstStep,
|
||||
isLastStep,
|
||||
hasNext,
|
||||
hasPrev
|
||||
});
|
||||
useForwardExpose();
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(Primitive), {
|
||||
role: "group",
|
||||
"aria-label": "progress",
|
||||
as: __props.as,
|
||||
"as-child": __props.asChild,
|
||||
"data-linear": unref(linear) ? "" : void 0,
|
||||
"data-orientation": __props.orientation
|
||||
}, {
|
||||
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
||||
modelValue: unref(modelValue),
|
||||
totalSteps: totalStepperItems.value.size,
|
||||
isNextDisabled: isNextDisabled.value,
|
||||
isPrevDisabled: isPrevDisabled.value,
|
||||
isFirstStep: isFirstStep.value,
|
||||
isLastStep: isLastStep.value,
|
||||
goToStep,
|
||||
nextStep,
|
||||
prevStep,
|
||||
hasNext,
|
||||
hasPrev
|
||||
}), createElementVNode("div", _hoisted_1, " Step " + toDisplayString(unref(modelValue)) + " of " + toDisplayString(totalStepperItems.value.size), 1)]),
|
||||
_: 3
|
||||
}, 8, [
|
||||
"as",
|
||||
"as-child",
|
||||
"data-linear",
|
||||
"data-orientation"
|
||||
]);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/Stepper/StepperRoot.vue
|
||||
var StepperRoot_default = StepperRoot_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { StepperRoot_default, injectStepperRootContext };
|
||||
//# sourceMappingURL=StepperRoot.js.map
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
import { PopoverClose_default } from "../Popover/PopoverClose.js";
|
||||
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
||||
|
||||
//#region src/DateRangePicker/DateRangePickerClose.vue?vue&type=script&setup=true&lang.ts
|
||||
var DateRangePickerClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
__name: "DateRangePickerClose",
|
||||
props: {
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(PopoverClose_default), normalizeProps(guardReactiveProps(props)), {
|
||||
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/DateRangePicker/DateRangePickerClose.vue
|
||||
var DateRangePickerClose_default = DateRangePickerClose_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { DateRangePickerClose_default };
|
||||
//# sourceMappingURL=DateRangePickerClose.js.map
|
||||
+761
@@ -0,0 +1,761 @@
|
||||
import { snapValueToStep } from "../shared/clamp.js";
|
||||
import { getActiveElement } from "../shared/getActiveElement.js";
|
||||
import { getDaysInMonth, toDate } from "./comparators.js";
|
||||
import { useKbd } from "../shared/useKbd.js";
|
||||
import { isAcceptableSegmentKey, isNumberString, isSegmentNavigationKey } from "./segment.js";
|
||||
import { computed } from "vue";
|
||||
import { DateFormatter } from "@internationalized/date";
|
||||
|
||||
//#region src/shared/date/useDateField.ts
|
||||
const DIGIT_REG = /^\d$/;
|
||||
function commonSegmentAttrs(props) {
|
||||
return {
|
||||
role: "spinbutton",
|
||||
contenteditable: true,
|
||||
tabindex: props.disabled ? void 0 : 0,
|
||||
spellcheck: false,
|
||||
inputmode: "numeric",
|
||||
autocorrect: "off",
|
||||
enterkeyhint: "next",
|
||||
style: "caret-color: transparent;"
|
||||
};
|
||||
}
|
||||
function daySegmentAttrs(props) {
|
||||
const { segmentValues, placeholder } = props;
|
||||
const isEmpty = segmentValues.day === null;
|
||||
const dateFields = {};
|
||||
if (segmentValues.day) dateFields.day = segmentValues.day;
|
||||
if (segmentValues.month) dateFields.month = segmentValues.month;
|
||||
const date = Object.keys(dateFields).length > 0 ? placeholder.set(dateFields) : placeholder;
|
||||
const valueNow = date.day;
|
||||
const valueMin = 1;
|
||||
const valueMax = getDaysInMonth(date);
|
||||
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "day,",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText,
|
||||
"data-placeholder": isEmpty ? "" : void 0
|
||||
};
|
||||
}
|
||||
function monthSegmentAttrs(props) {
|
||||
const { segmentValues, placeholder, formatter } = props;
|
||||
const isEmpty = segmentValues.month === null;
|
||||
const date = segmentValues.month ? placeholder.set({ month: segmentValues.month }) : placeholder;
|
||||
const valueNow = date.month;
|
||||
const valueMin = 1;
|
||||
const valueMax = 12;
|
||||
const valueText = isEmpty ? "Empty" : `${valueNow} - ${formatter.fullMonth(toDate(date))}`;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "month, ",
|
||||
"contenteditable": true,
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText,
|
||||
"data-placeholder": isEmpty ? "" : void 0
|
||||
};
|
||||
}
|
||||
function yearSegmentAttrs(props) {
|
||||
const { segmentValues, placeholder } = props;
|
||||
const isEmpty = segmentValues.year === null;
|
||||
const date = segmentValues.year ? placeholder.set({ year: segmentValues.year }) : placeholder;
|
||||
const valueMin = 1;
|
||||
const valueMax = 9999;
|
||||
const valueNow = date.year;
|
||||
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "year, ",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText,
|
||||
"data-placeholder": isEmpty ? "" : void 0
|
||||
};
|
||||
}
|
||||
function hourSegmentAttrs(props) {
|
||||
const { segmentValues, hourCycle, placeholder } = props;
|
||||
if (!("hour" in segmentValues) || !("hour" in placeholder)) return {};
|
||||
const isEmpty = segmentValues.hour === null;
|
||||
const date = segmentValues.hour ? placeholder.set({ hour: segmentValues.hour }) : placeholder;
|
||||
const valueMin = hourCycle === 12 ? 1 : 0;
|
||||
const valueMax = hourCycle === 12 ? 12 : 23;
|
||||
const valueNow = date.hour;
|
||||
const valueText = isEmpty ? "Empty" : `${valueNow} ${segmentValues.dayPeriod ?? ""}`;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "hour, ",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText,
|
||||
"data-placeholder": isEmpty ? "" : void 0
|
||||
};
|
||||
}
|
||||
function minuteSegmentAttrs(props) {
|
||||
const { segmentValues, placeholder } = props;
|
||||
if (!("minute" in segmentValues) || !("minute" in placeholder)) return {};
|
||||
const isEmpty = segmentValues.minute === null;
|
||||
const date = segmentValues.minute ? placeholder.set({ minute: segmentValues.minute }) : placeholder;
|
||||
const valueNow = date.minute;
|
||||
const valueMin = 0;
|
||||
const valueMax = 59;
|
||||
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "minute, ",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText,
|
||||
"data-placeholder": isEmpty ? "" : void 0
|
||||
};
|
||||
}
|
||||
function secondSegmentAttrs(props) {
|
||||
const { segmentValues, placeholder } = props;
|
||||
if (!("second" in segmentValues) || !("second" in placeholder)) return {};
|
||||
const isEmpty = segmentValues.second === null;
|
||||
const date = segmentValues.second ? placeholder.set({ second: segmentValues.second }) : placeholder;
|
||||
const valueNow = date.second;
|
||||
const valueMin = 0;
|
||||
const valueMax = 59;
|
||||
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "second, ",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText,
|
||||
"data-placeholder": isEmpty ? "" : void 0
|
||||
};
|
||||
}
|
||||
function dayPeriodSegmentAttrs(props) {
|
||||
const { segmentValues } = props;
|
||||
if (!("dayPeriod" in segmentValues)) return {};
|
||||
const valueMin = 0;
|
||||
const valueMax = 12;
|
||||
const valueNow = segmentValues.hour ? segmentValues.hour > 12 ? segmentValues.hour - 12 : segmentValues.hour : 0;
|
||||
const valueText = segmentValues.dayPeriod ?? "AM";
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"inputmode": "text",
|
||||
"aria-label": "AM/PM",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText
|
||||
};
|
||||
}
|
||||
function literalSegmentAttrs(_props) {
|
||||
return {
|
||||
"aria-hidden": true,
|
||||
"data-segment": "literal"
|
||||
};
|
||||
}
|
||||
function timeZoneSegmentAttrs(props) {
|
||||
return {
|
||||
"role": "textbox",
|
||||
"aria-label": "timezone, ",
|
||||
"data-readonly": true,
|
||||
"data-segment": "timeZoneName",
|
||||
"tabindex": props.disabled ? void 0 : 0,
|
||||
"style": "caret-color: transparent;"
|
||||
};
|
||||
}
|
||||
function eraSegmentAttrs(props) {
|
||||
const { segmentValues, placeholder } = props;
|
||||
const valueMin = 0;
|
||||
const valueMax = 0;
|
||||
const valueNow = 0;
|
||||
const valueText = "era" in segmentValues ? segmentValues.era : placeholder.era;
|
||||
return {
|
||||
...commonSegmentAttrs(props),
|
||||
"aria-label": "era",
|
||||
"aria-valuemin": valueMin,
|
||||
"aria-valuemax": valueMax,
|
||||
"aria-valuenow": valueNow,
|
||||
"aria-valuetext": valueText
|
||||
};
|
||||
}
|
||||
const segmentBuilders = {
|
||||
day: { attrs: daySegmentAttrs },
|
||||
month: { attrs: monthSegmentAttrs },
|
||||
year: { attrs: yearSegmentAttrs },
|
||||
hour: { attrs: hourSegmentAttrs },
|
||||
minute: { attrs: minuteSegmentAttrs },
|
||||
second: { attrs: secondSegmentAttrs },
|
||||
dayPeriod: { attrs: dayPeriodSegmentAttrs },
|
||||
literal: { attrs: literalSegmentAttrs },
|
||||
timeZoneName: { attrs: timeZoneSegmentAttrs },
|
||||
era: { attrs: eraSegmentAttrs }
|
||||
};
|
||||
function useDateField(props) {
|
||||
const kbd = useKbd();
|
||||
function minuteSecondIncrementation({ e, part, dateRef, prevValue }) {
|
||||
const step = props.step.value[part] ?? 1;
|
||||
const sign = e.key === kbd.ARROW_UP ? step : -step;
|
||||
const min = 0;
|
||||
const max = 59;
|
||||
if (prevValue === null) return sign > 0 ? min : max;
|
||||
const cycleArgs = [part, sign];
|
||||
return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];
|
||||
}
|
||||
function deleteValue(prevValue) {
|
||||
props.hasLeftFocus.value = false;
|
||||
if (prevValue === null) return prevValue;
|
||||
const str = prevValue.toString();
|
||||
if (str.length === 1) {
|
||||
props.modelValue.value = void 0;
|
||||
return null;
|
||||
}
|
||||
return Number.parseInt(str.slice(0, -1));
|
||||
}
|
||||
function dateTimeValueIncrementation({ e, part, dateRef, prevValue }) {
|
||||
const step = props.step.value[part] ?? 1;
|
||||
const sign = e.key === kbd.ARROW_UP ? step : -step;
|
||||
if (prevValue === null) return dateRef[part];
|
||||
if (part === "hour" && "hour" in dateRef) {
|
||||
const cycleArgs$1 = [part, sign];
|
||||
return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs$1)[part];
|
||||
}
|
||||
const cycleArgs = [part, sign];
|
||||
if (part === "day") return dateRef.set({
|
||||
[part]: prevValue,
|
||||
month: props.segmentValues.value.month ?? 1
|
||||
}).cycle(...cycleArgs)[part];
|
||||
return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];
|
||||
}
|
||||
function updateDayOrMonth(max, num, prev) {
|
||||
let moveToNext = false;
|
||||
const maxStart = Math.floor(max / 10);
|
||||
/**
|
||||
* If the user has left the segment, we want to reset the
|
||||
* `prev` value so that we can start the segment over again
|
||||
* when the user types a number.
|
||||
*/
|
||||
if (props.hasLeftFocus.value) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.lastKeyZero.value = false;
|
||||
prev = null;
|
||||
}
|
||||
if (prev === null) {
|
||||
/**
|
||||
* If the user types a 0 as the first number, we want
|
||||
* to keep track of that so that when they type the next
|
||||
* number, we can move to the next segment.
|
||||
*/
|
||||
if (num === 0) {
|
||||
props.lastKeyZero.value = true;
|
||||
return {
|
||||
value: null,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
/**
|
||||
* If the last key was a 0, or if the first number is
|
||||
* greater than the max start digit (0-3 in most cases), then
|
||||
* we want to move to the next segment, since it's not possible
|
||||
* to continue typing a valid number in this segment.
|
||||
*/
|
||||
if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
|
||||
props.lastKeyZero.value = false;
|
||||
/**
|
||||
* If none of the above conditions are met, then we can just
|
||||
* return the number as the segment value and continue typing
|
||||
* in this segment.
|
||||
*/
|
||||
return {
|
||||
value: num,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
/**
|
||||
* If the number of digits is 2, or if the total with the existing digit
|
||||
* and the pressed digit is greater than the maximum value for this
|
||||
* month, then we will reset the segment as if the user had pressed the
|
||||
* backspace key and then typed the number.
|
||||
*/
|
||||
const digits = prev.toString().length;
|
||||
const total = Number.parseInt(prev.toString() + num.toString());
|
||||
/**
|
||||
* If the number of digits is 2, or if the total with the existing digit
|
||||
* and the pressed digit is greater than the maximum value for this
|
||||
* month, then we will reset the segment as if the user had pressed the
|
||||
* backspace key and then typed the number.
|
||||
*/
|
||||
if (digits === 2 || total > max) {
|
||||
/**
|
||||
* As we're doing elsewhere, we're checking if the number is greater
|
||||
* than the max start digit (0-3 in most months), and if so, we're
|
||||
* going to move to the next segment.
|
||||
*/
|
||||
if (num > maxStart || total > max) moveToNext = true;
|
||||
return {
|
||||
value: num,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
moveToNext = true;
|
||||
return {
|
||||
value: total,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
function updateMinuteOrSecond(num, prev) {
|
||||
const max = 59;
|
||||
let moveToNext = false;
|
||||
const maxStart = Math.floor(max / 10);
|
||||
/**
|
||||
* If the user has left the segment, we want to reset the
|
||||
* `prev` value so that we can start the segment over again
|
||||
* when the user types a number.
|
||||
*/
|
||||
if (props.hasLeftFocus.value) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.lastKeyZero.value = false;
|
||||
prev = null;
|
||||
}
|
||||
if (prev === null) {
|
||||
/**
|
||||
* If the user types a 0 as the first number, we want
|
||||
* to keep track of that so that when they type the next
|
||||
* number, we can move to the next segment.
|
||||
*/
|
||||
if (num === 0) {
|
||||
props.lastKeyZero.value = true;
|
||||
return {
|
||||
value: 0,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
/**
|
||||
* If the last key was a 0, or if the first number is
|
||||
* greater than the max start digit (0-3 in most cases), then
|
||||
* we want to move to the next segment, since it's not possible
|
||||
* to continue typing a valid number in this segment.
|
||||
*/
|
||||
if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
|
||||
props.lastKeyZero.value = false;
|
||||
/**
|
||||
* If none of the above conditions are met, then we can just
|
||||
* return the number as the segment value and continue typing
|
||||
* in this segment.
|
||||
*/
|
||||
return {
|
||||
value: num,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
/**
|
||||
* If the number of digits is 2, or if the total with the existing digit
|
||||
* and the pressed digit is greater than the maximum value for this
|
||||
* month, then we will reset the segment as if the user had pressed the
|
||||
* backspace key and then typed the number.
|
||||
*/
|
||||
const digits = prev.toString().length;
|
||||
const total = Number.parseInt(prev.toString() + num.toString());
|
||||
/**
|
||||
* If the number of digits is 2, or if the total with the existing digit
|
||||
* and the pressed digit is greater than the maximum value for this
|
||||
* month, then we will reset the segment as if the user had pressed the
|
||||
* backspace key and then typed the number.
|
||||
*/
|
||||
if (digits === 2 || total > max) {
|
||||
/**
|
||||
* As we're doing elsewhere, we're checking if the number is greater
|
||||
* than the max start digit (0-3 in most months), and if so, we're
|
||||
* going to move to the next segment.
|
||||
*/
|
||||
if (num > maxStart) moveToNext = true;
|
||||
return {
|
||||
value: num,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
moveToNext = true;
|
||||
return {
|
||||
value: total,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
function updateHour(max, num, prev) {
|
||||
let moveToNext = false;
|
||||
const maxStart = Math.floor(max / 10);
|
||||
/**
|
||||
* If the user has left the segment, we want to reset the
|
||||
* `prev` value so that we can start the segment over again
|
||||
* when the user types a number.
|
||||
*/
|
||||
if (props.hasLeftFocus.value) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.lastKeyZero.value = false;
|
||||
prev = null;
|
||||
}
|
||||
if (prev === null) {
|
||||
/**
|
||||
* If the user types a 0 as the first number, we want
|
||||
* to keep track of that so that when they type the next
|
||||
* number, we can move to the next segment.
|
||||
*/
|
||||
if (num === 0) {
|
||||
props.lastKeyZero.value = true;
|
||||
return {
|
||||
value: 0,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
/**
|
||||
* If the last key was a 0, or if the first number is
|
||||
* greater than the max start digit (0-3 in most cases), then
|
||||
* we want to move to the next segment, since it's not possible
|
||||
* to continue typing a valid number in this segment.
|
||||
*/
|
||||
if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
|
||||
props.lastKeyZero.value = false;
|
||||
/**
|
||||
* If none of the above conditions are met, then we can just
|
||||
* return the number as the segment value and continue typing
|
||||
* in this segment.
|
||||
*/
|
||||
return {
|
||||
value: num,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
/**
|
||||
* If the number of digits is 2, or if the total with the existing digit
|
||||
* and the pressed digit is greater than the maximum value for this
|
||||
* month, then we will reset the segment as if the user had pressed the
|
||||
* backspace key and then typed the number.
|
||||
*/
|
||||
const digits = prev.toString().length;
|
||||
const total = Number.parseInt(prev.toString() + num.toString());
|
||||
/**
|
||||
* If the number of digits is 2, or if the total with the existing digit
|
||||
* and the pressed digit is greater than the maximum value for this
|
||||
* month, then we will reset the segment as if the user had pressed the
|
||||
* backspace key and then typed the number.
|
||||
*/
|
||||
if (digits === 2 || total > max) {
|
||||
/**
|
||||
* As we're doing elsewhere, we're checking if the number is greater
|
||||
* than the max start digit (0-3 in most months), and if so, we're
|
||||
* going to move to the next segment.
|
||||
*/
|
||||
if (num > maxStart) moveToNext = true;
|
||||
return {
|
||||
value: num,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
moveToNext = true;
|
||||
return {
|
||||
value: total,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
function updateYear(num, prev) {
|
||||
let moveToNext = false;
|
||||
/**
|
||||
* If the user has left the segment, we want to reset the
|
||||
* `prev` value so that we can start the segment over again
|
||||
* when the user types a number.
|
||||
*/
|
||||
if (props.hasLeftFocus.value) {
|
||||
props.hasLeftFocus.value = false;
|
||||
prev = null;
|
||||
}
|
||||
if (prev === null) return {
|
||||
value: num === 0 ? 1 : num,
|
||||
moveToNext
|
||||
};
|
||||
const str = prev.toString() + num.toString();
|
||||
if (str.length > 4) return {
|
||||
value: num === 0 ? 1 : num,
|
||||
moveToNext
|
||||
};
|
||||
if (str.length === 4) moveToNext = true;
|
||||
const int = Number.parseInt(str);
|
||||
return {
|
||||
value: int,
|
||||
moveToNext
|
||||
};
|
||||
}
|
||||
const attributes = computed(() => segmentBuilders[props.part]?.attrs({
|
||||
disabled: props.disabled.value,
|
||||
placeholder: props.placeholder.value,
|
||||
hourCycle: props.hourCycle,
|
||||
segmentValues: props.segmentValues.value,
|
||||
formatter: props.formatter
|
||||
}) ?? {});
|
||||
function handleDaySegmentKeydown(e) {
|
||||
if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;
|
||||
const prevValue = props.segmentValues.value.day;
|
||||
if (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {
|
||||
props.segmentValues.value.day = dateTimeValueIncrementation({
|
||||
e,
|
||||
part: "day",
|
||||
dateRef: props.placeholder.value,
|
||||
prevValue
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isNumberString(e.key)) {
|
||||
const num = Number.parseInt(e.key);
|
||||
const segmentMonthValue = props.segmentValues.value.month;
|
||||
const daysInMonth = segmentMonthValue ? getDaysInMonth(props.placeholder.value.set({ month: segmentMonthValue })) : 31;
|
||||
const { value, moveToNext } = updateDayOrMonth(daysInMonth, num, prevValue);
|
||||
props.segmentValues.value.day = value;
|
||||
if (moveToNext) props.focusNext();
|
||||
}
|
||||
if (e.key === kbd.BACKSPACE) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.segmentValues.value.day = deleteValue(prevValue);
|
||||
}
|
||||
}
|
||||
function handleMonthSegmentKeydown(e) {
|
||||
if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;
|
||||
const prevValue = props.segmentValues.value.month;
|
||||
if (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {
|
||||
props.segmentValues.value.month = dateTimeValueIncrementation({
|
||||
e,
|
||||
part: "month",
|
||||
dateRef: props.placeholder.value,
|
||||
prevValue
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isNumberString(e.key)) {
|
||||
const num = Number.parseInt(e.key);
|
||||
const { value, moveToNext } = updateDayOrMonth(12, num, prevValue);
|
||||
props.segmentValues.value.month = value;
|
||||
if (moveToNext) props.focusNext();
|
||||
}
|
||||
if (e.key === kbd.BACKSPACE) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.segmentValues.value.month = deleteValue(prevValue);
|
||||
}
|
||||
}
|
||||
function handleYearSegmentKeydown(e) {
|
||||
if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;
|
||||
const prevValue = props.segmentValues.value.year;
|
||||
if (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {
|
||||
props.segmentValues.value.year = dateTimeValueIncrementation({
|
||||
e,
|
||||
part: "year",
|
||||
dateRef: props.placeholder.value,
|
||||
prevValue
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isNumberString(e.key)) {
|
||||
const num = Number.parseInt(e.key);
|
||||
const { value, moveToNext } = updateYear(num, prevValue);
|
||||
props.segmentValues.value.year = value;
|
||||
if (moveToNext) props.focusNext();
|
||||
}
|
||||
if (e.key === kbd.BACKSPACE) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.segmentValues.value.year = deleteValue(prevValue);
|
||||
}
|
||||
}
|
||||
function uses12HourFormat(locale) {
|
||||
const hourCycle = new DateFormatter(locale, { hour: "numeric" }).resolvedOptions().hourCycle;
|
||||
return hourCycle === "h11" || hourCycle === "h12";
|
||||
}
|
||||
function handleHourSegmentKeydown(e) {
|
||||
const dateRef = props.placeholder.value;
|
||||
if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !("hour" in dateRef) || !("hour" in props.segmentValues.value)) return;
|
||||
const prevValue = props.segmentValues.value.hour;
|
||||
if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) {
|
||||
const newHour = dateTimeValueIncrementation({
|
||||
e,
|
||||
part: "hour",
|
||||
dateRef: props.placeholder.value,
|
||||
prevValue
|
||||
});
|
||||
props.segmentValues.value.hour = newHour;
|
||||
if ("dayPeriod" in props.segmentValues.value && newHour !== null) props.segmentValues.value.dayPeriod = newHour >= 12 ? "PM" : "AM";
|
||||
return;
|
||||
}
|
||||
if (isNumberString(e.key)) {
|
||||
const num = Number.parseInt(e.key);
|
||||
const is12Hour = props.hourCycle !== void 0 ? props.hourCycle === 12 : uses12HourFormat(props.formatter.getLocale());
|
||||
const max = is12Hour ? 12 : 24;
|
||||
let displayPrev = prevValue;
|
||||
if (is12Hour && prevValue !== null) displayPrev = prevValue % 12 === 0 ? 0 : prevValue > 12 ? prevValue - 12 : prevValue;
|
||||
const { value, moveToNext } = updateHour(max, num, displayPrev);
|
||||
let internalValue = value;
|
||||
if (is12Hour && value !== null) {
|
||||
const period = props.segmentValues.value.dayPeriod || "AM";
|
||||
if (value === 12) internalValue = period === "AM" ? 0 : 12;
|
||||
else internalValue = period === "PM" ? value + 12 : value;
|
||||
}
|
||||
props.segmentValues.value.hour = internalValue;
|
||||
if (moveToNext) props.focusNext();
|
||||
}
|
||||
if (e.key === kbd.BACKSPACE) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.segmentValues.value.hour = deleteValue(prevValue);
|
||||
}
|
||||
}
|
||||
function handleMinuteSegmentKeydown(e) {
|
||||
const dateRef = props.placeholder.value;
|
||||
if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !("minute" in dateRef) || !("minute" in props.segmentValues.value)) return;
|
||||
const prevValue = props.segmentValues.value.minute;
|
||||
if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) props.segmentValues.value.minute = minuteSecondIncrementation({
|
||||
e,
|
||||
part: "minute",
|
||||
dateRef: props.placeholder.value,
|
||||
prevValue
|
||||
});
|
||||
if (isNumberString(e.key)) {
|
||||
const num = Number.parseInt(e.key);
|
||||
const { value, moveToNext } = updateMinuteOrSecond(num, prevValue);
|
||||
props.segmentValues.value.minute = value;
|
||||
if (moveToNext) props.focusNext();
|
||||
}
|
||||
if (e.key === kbd.BACKSPACE) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.segmentValues.value.minute = deleteValue(prevValue);
|
||||
}
|
||||
}
|
||||
function handleSecondSegmentKeydown(e) {
|
||||
const dateRef = props.placeholder.value;
|
||||
if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !("second" in dateRef) || !("second" in props.segmentValues.value)) return;
|
||||
const prevValue = props.segmentValues.value.second;
|
||||
if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) props.segmentValues.value.second = minuteSecondIncrementation({
|
||||
e,
|
||||
part: "second",
|
||||
dateRef: props.placeholder.value,
|
||||
prevValue
|
||||
});
|
||||
if (isNumberString(e.key)) {
|
||||
const num = Number.parseInt(e.key);
|
||||
const { value, moveToNext } = updateMinuteOrSecond(num, prevValue);
|
||||
props.segmentValues.value.second = value;
|
||||
if (moveToNext) props.focusNext();
|
||||
}
|
||||
if (e.key === kbd.BACKSPACE) {
|
||||
props.hasLeftFocus.value = false;
|
||||
props.segmentValues.value.second = deleteValue(prevValue);
|
||||
}
|
||||
}
|
||||
function handleDayPeriodSegmentKeydown(e) {
|
||||
if ((!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) && e.key !== "a" && e.key !== "p" || !("hour" in props.placeholder.value) || !("dayPeriod" in props.segmentValues.value)) return;
|
||||
if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) {
|
||||
if (props.segmentValues.value.dayPeriod === "AM") {
|
||||
props.segmentValues.value.dayPeriod = "PM";
|
||||
props.segmentValues.value.hour = props.segmentValues.value.hour + 12;
|
||||
return;
|
||||
}
|
||||
props.segmentValues.value.dayPeriod = "AM";
|
||||
props.segmentValues.value.hour = props.segmentValues.value.hour - 12;
|
||||
return;
|
||||
}
|
||||
if (["a", "A"].includes(e.key) && props.segmentValues.value.dayPeriod !== "AM") {
|
||||
props.segmentValues.value.dayPeriod = "AM";
|
||||
props.segmentValues.value.hour = props.segmentValues.value.hour - 12;
|
||||
return;
|
||||
}
|
||||
if (["p", "P"].includes(e.key) && props.segmentValues.value.dayPeriod !== "PM") {
|
||||
props.segmentValues.value.dayPeriod = "PM";
|
||||
props.segmentValues.value.hour = props.segmentValues.value.hour + 12;
|
||||
}
|
||||
}
|
||||
function handleSegmentClick(e) {
|
||||
const disabled = props.disabled.value;
|
||||
if (disabled) e.preventDefault();
|
||||
}
|
||||
function handleSegmentKeydown(e) {
|
||||
if (e.isComposing || e.key === "Process") return;
|
||||
const disabled = props.disabled.value;
|
||||
const readonly = props.readonly.value;
|
||||
if (disabled || readonly) return;
|
||||
if (e.key !== kbd.TAB) e.preventDefault();
|
||||
const segmentKeydownHandlers = {
|
||||
day: handleDaySegmentKeydown,
|
||||
month: handleMonthSegmentKeydown,
|
||||
year: handleYearSegmentKeydown,
|
||||
hour: handleHourSegmentKeydown,
|
||||
minute: handleMinuteSegmentKeydown,
|
||||
second: handleSecondSegmentKeydown,
|
||||
dayPeriod: handleDayPeriodSegmentKeydown,
|
||||
timeZoneName: () => {}
|
||||
};
|
||||
segmentKeydownHandlers[props.part](e);
|
||||
if (![kbd.ARROW_LEFT, kbd.ARROW_RIGHT].includes(e.key) && e.key !== kbd.TAB && e.key !== kbd.SHIFT && isAcceptableSegmentKey(e.key)) {
|
||||
if (Object.values(props.segmentValues.value).every((item) => item !== null)) {
|
||||
const updateObject = { ...props.segmentValues.value };
|
||||
const dateRef = props.placeholder.value.set(updateObject);
|
||||
props.modelValue.value = dateRef.copy();
|
||||
}
|
||||
}
|
||||
}
|
||||
function handleSegmentFocusOut() {
|
||||
if (!props.stepSnapping?.value) return;
|
||||
if (props.part === "hour" && "hour" in props.segmentValues.value && props.segmentValues.value.hour !== null && props.step.value.hour && props.step.value.hour > 1) {
|
||||
props.segmentValues.value.hour = snapValueToStep(props.segmentValues.value.hour, 0, 23, props.step.value.hour);
|
||||
if ("dayPeriod" in props.segmentValues.value) {
|
||||
if (props.segmentValues.value.hour < 12) props.segmentValues.value.dayPeriod = "AM";
|
||||
else if (props.segmentValues.value.hour) props.segmentValues.value.dayPeriod = "PM";
|
||||
}
|
||||
} else if (props.part === "minute" && "minute" in props.segmentValues.value && props.segmentValues.value.minute !== null && props.step.value.minute && props.step.value.minute > 1) props.segmentValues.value.minute = snapValueToStep(props.segmentValues.value.minute, 0, 59, props.step.value.minute);
|
||||
else if (props.part === "second" && "second" in props.segmentValues.value && props.segmentValues.value.second !== null && props.step.value.second && props.step.value.second > 1) props.segmentValues.value.second = snapValueToStep(props.segmentValues.value.second, 0, 59, props.step.value.second);
|
||||
if (Object.values(props.segmentValues.value).every((item) => item !== null)) {
|
||||
const dateRef = props.placeholder.value.set({ ...props.segmentValues.value });
|
||||
props.modelValue.value = dateRef.copy();
|
||||
}
|
||||
}
|
||||
let preCompositionNodes = null;
|
||||
function handleSegmentBeforeInput(e) {
|
||||
if (!e.isComposing) e.preventDefault();
|
||||
}
|
||||
function handleSegmentCompositionStart(e) {
|
||||
const el = e.target;
|
||||
preCompositionNodes = Array.from(el.childNodes, (node) => ({
|
||||
node,
|
||||
value: node.nodeValue
|
||||
}));
|
||||
}
|
||||
function handleSegmentCompositionEnd(e) {
|
||||
const el = e.target;
|
||||
const original = preCompositionNodes;
|
||||
preCompositionNodes = null;
|
||||
if (original) {
|
||||
for (const { node, value } of original) node.nodeValue = value;
|
||||
el.replaceChildren(...original.map((o) => o.node));
|
||||
}
|
||||
const data = e.data;
|
||||
if (!data) return;
|
||||
for (const char of data) {
|
||||
if (!DIGIT_REG.test(char)) continue;
|
||||
const target = getActiveElement();
|
||||
if (!(target instanceof HTMLElement)) break;
|
||||
target.dispatchEvent(new KeyboardEvent("keydown", {
|
||||
key: char,
|
||||
bubbles: true,
|
||||
cancelable: true
|
||||
}));
|
||||
}
|
||||
}
|
||||
return {
|
||||
handleSegmentClick,
|
||||
handleSegmentKeydown,
|
||||
handleSegmentBeforeInput,
|
||||
handleSegmentCompositionStart,
|
||||
handleSegmentCompositionEnd,
|
||||
handleSegmentFocusOut,
|
||||
attributes
|
||||
};
|
||||
}
|
||||
|
||||
//#endregion
|
||||
export { useDateField };
|
||||
//# sourceMappingURL=useDateField.js.map
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "../../cjs/_async_to_generator.cjs",
|
||||
"module": "../../esm/_async_to_generator.js"
|
||||
}
|
||||
+314
@@ -0,0 +1,314 @@
|
||||
<script lang="ts">
|
||||
import type { DateValue } from '@internationalized/date'
|
||||
import type { PrimitiveProps } from '@/Primitive'
|
||||
import { endOfYear, getLocalTimeZone, startOfYear, toCalendar, today } from '@internationalized/date'
|
||||
import { computed, nextTick } from 'vue'
|
||||
import { isSameYear, isYearBetweenInclusive, toDate } from '@/date'
|
||||
import { useKbd } from '@/shared'
|
||||
|
||||
export interface YearRangePickerCellTriggerProps extends PrimitiveProps {
|
||||
/** The date value provided to the cell trigger */
|
||||
year: DateValue
|
||||
}
|
||||
|
||||
export interface YearRangePickerCellTriggerSlot {
|
||||
default?: (props: {
|
||||
/** Current year value */
|
||||
yearValue: string
|
||||
/** Current disable state */
|
||||
disabled: boolean
|
||||
/** Current selected state */
|
||||
selected: boolean
|
||||
/** Current year is today's year state */
|
||||
today: boolean
|
||||
/** Current unavailable state */
|
||||
unavailable: boolean
|
||||
/** Current highlighted state */
|
||||
highlighted: boolean
|
||||
/** Current highlighted start state */
|
||||
highlightedStart: boolean
|
||||
/** Current highlighted end state */
|
||||
highlightedEnd: boolean
|
||||
/** Current selection start state */
|
||||
selectionStart: boolean
|
||||
/** Current selection end state */
|
||||
selectionEnd: boolean
|
||||
}) => any
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Primitive, usePrimitiveElement } from '@/Primitive'
|
||||
import { injectYearRangePickerRootContext } from './YearRangePickerRoot.vue'
|
||||
|
||||
const props = withDefaults(defineProps<YearRangePickerCellTriggerProps>(), { as: 'div' })
|
||||
|
||||
defineSlots<YearRangePickerCellTriggerSlot>()
|
||||
|
||||
const kbd = useKbd()
|
||||
const rootContext = injectYearRangePickerRootContext()
|
||||
|
||||
const { primitiveElement } = usePrimitiveElement()
|
||||
|
||||
const yearValue = computed(() => {
|
||||
rootContext.locale.value
|
||||
return rootContext.formatter.fullYear(toDate(props.year))
|
||||
})
|
||||
|
||||
const labelText = computed(() => {
|
||||
rootContext.locale.value
|
||||
return rootContext.formatter.custom(toDate(props.year), { year: 'numeric' })
|
||||
})
|
||||
|
||||
const isUnavailable = computed(() => rootContext.isYearUnavailable?.(props.year) ?? false)
|
||||
|
||||
const isCurrentYear = computed(() => {
|
||||
const todayDate = toCalendar(today(getLocalTimeZone()), props.year.calendar)
|
||||
return isSameYear(props.year, todayDate)
|
||||
})
|
||||
|
||||
const isDisabled = computed(() => rootContext.isYearDisabled(props.year))
|
||||
|
||||
const isFocusedYear = computed(() => {
|
||||
return !rootContext.disabled.value && isSameYear(props.year, rootContext.placeholder.value)
|
||||
})
|
||||
|
||||
const isSelectedYear = computed(() => rootContext.isSelected(props.year))
|
||||
const isSelectionStart = computed(() => rootContext.isSelectionStart(props.year))
|
||||
const isSelectionEnd = computed(() => rootContext.isSelectionEnd(props.year))
|
||||
const isHighlightStart = computed(() => rootContext.isHighlightedStart(props.year))
|
||||
const isHighlightEnd = computed(() => rootContext.isHighlightedEnd(props.year))
|
||||
const isHighlighted = computed(() => rootContext.highlightedRange.value
|
||||
? isYearBetweenInclusive(props.year, rootContext.highlightedRange.value.start, rootContext.highlightedRange.value.end)
|
||||
: false)
|
||||
const allowNonContiguousRanges = computed(() => rootContext.allowNonContiguousRanges.value)
|
||||
|
||||
function changeYear(e: MouseEvent | KeyboardEvent, date: DateValue) {
|
||||
if (rootContext.readonly.value)
|
||||
return
|
||||
if (rootContext.isYearDisabled(date) || rootContext.isYearUnavailable?.(date))
|
||||
return
|
||||
|
||||
if (rootContext.startValue.value && rootContext.highlightedRange.value === null) {
|
||||
if (isSameYear(date, rootContext.startValue.value) && !rootContext.preventDeselect.value && !rootContext.endValue.value) {
|
||||
rootContext.startValue.value = undefined
|
||||
rootContext.onPlaceholderChange(date)
|
||||
rootContext.lastPressedDateValue.value = date.copy()
|
||||
return
|
||||
}
|
||||
else if (!rootContext.endValue.value) {
|
||||
e.preventDefault()
|
||||
if (rootContext.lastPressedDateValue.value && isSameYear(rootContext.lastPressedDateValue.value, date))
|
||||
rootContext.startValue.value = date.copy()
|
||||
rootContext.lastPressedDateValue.value = date.copy()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
rootContext.lastPressedDateValue.value = date.copy()
|
||||
|
||||
if (
|
||||
rootContext.startValue.value
|
||||
&& rootContext.endValue.value
|
||||
&& isSameYear(rootContext.startValue.value, rootContext.endValue.value)
|
||||
&& isSameYear(rootContext.startValue.value, date)
|
||||
&& !rootContext.preventDeselect.value
|
||||
) {
|
||||
rootContext.startValue.value = undefined
|
||||
rootContext.endValue.value = undefined
|
||||
rootContext.onPlaceholderChange(date)
|
||||
return
|
||||
}
|
||||
|
||||
if (!rootContext.startValue.value) {
|
||||
rootContext.startValue.value = date.copy()
|
||||
}
|
||||
else if (!rootContext.endValue.value) {
|
||||
rootContext.endValue.value = date.copy()
|
||||
}
|
||||
else if (rootContext.endValue.value && rootContext.startValue.value) {
|
||||
if (!rootContext.fixedDate.value) {
|
||||
rootContext.endValue.value = undefined
|
||||
rootContext.startValue.value = date.copy()
|
||||
}
|
||||
else if (rootContext.fixedDate.value === 'start') {
|
||||
if (date.compare(rootContext.startValue.value) < 0) {
|
||||
rootContext.startValue.value = date.copy()
|
||||
}
|
||||
else {
|
||||
rootContext.endValue.value = date.copy()
|
||||
}
|
||||
}
|
||||
else if (rootContext.fixedDate.value === 'end') {
|
||||
if (date.compare(rootContext.endValue.value) > 0) {
|
||||
rootContext.endValue.value = date.copy()
|
||||
}
|
||||
else {
|
||||
rootContext.startValue.value = date.copy()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleClick(e: MouseEvent) {
|
||||
if (isDisabled.value)
|
||||
return
|
||||
changeYear(e, props.year)
|
||||
}
|
||||
|
||||
function handleFocus() {
|
||||
if (isDisabled.value || rootContext.isYearUnavailable?.(props.year))
|
||||
return
|
||||
rootContext.focusedValue.value = props.year.copy()
|
||||
}
|
||||
|
||||
function handleArrowKey(e: KeyboardEvent) {
|
||||
if (isDisabled.value)
|
||||
return
|
||||
// Modifier combos on Enter/Space (e.g. Ctrl+Enter) are not handled by the cell —
|
||||
// let them bubble so parent listeners can react (e.g. submit a form).
|
||||
if ((e.code === kbd.ENTER || e.code === kbd.SPACE_CODE) && (e.ctrlKey || e.metaKey || e.altKey))
|
||||
return
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
const parentElement = rootContext.parentElement.value!
|
||||
const sign = rootContext.dir.value === 'rtl' ? -1 : 1
|
||||
|
||||
switch (e.code) {
|
||||
case kbd.ARROW_RIGHT:
|
||||
shiftFocus(props.year, sign)
|
||||
break
|
||||
case kbd.ARROW_LEFT:
|
||||
shiftFocus(props.year, -sign)
|
||||
break
|
||||
case kbd.ARROW_UP:
|
||||
shiftFocus(props.year, -4)
|
||||
break
|
||||
case kbd.ARROW_DOWN:
|
||||
shiftFocus(props.year, 4)
|
||||
break
|
||||
case kbd.PAGE_UP:
|
||||
shiftFocusPage(-1)
|
||||
break
|
||||
case kbd.PAGE_DOWN:
|
||||
shiftFocusPage(1)
|
||||
break
|
||||
case kbd.ENTER:
|
||||
case kbd.SPACE_CODE:
|
||||
changeYear(e, props.year)
|
||||
}
|
||||
|
||||
function shiftFocus(currentYear: DateValue, add: number, depth = 0) {
|
||||
if (depth > 48)
|
||||
return
|
||||
const candidateYearValue = currentYear.add({ years: add })
|
||||
|
||||
if ((rootContext.minValue.value && endOfYear(candidateYearValue).compare(rootContext.minValue.value) < 0)
|
||||
|| (rootContext.maxValue.value && startOfYear(candidateYearValue).compare(rootContext.maxValue.value) > 0)) {
|
||||
return
|
||||
}
|
||||
|
||||
const candidateYear = parentElement.querySelector<HTMLElement>(`[data-value='${candidateYearValue.toString()}']`)
|
||||
|
||||
if (!candidateYear) {
|
||||
if (add > 0) {
|
||||
if (rootContext.isNextButtonDisabled())
|
||||
return
|
||||
rootContext.nextPage()
|
||||
}
|
||||
else {
|
||||
if (rootContext.isPrevButtonDisabled())
|
||||
return
|
||||
rootContext.prevPage()
|
||||
}
|
||||
nextTick(() => {
|
||||
shiftFocus(currentYear, add, depth + 1)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (candidateYear && candidateYear.hasAttribute('data-disabled'))
|
||||
return shiftFocus(candidateYearValue, add, depth + 1)
|
||||
|
||||
rootContext.onPlaceholderChange(candidateYearValue)
|
||||
candidateYear?.focus()
|
||||
}
|
||||
|
||||
function shiftFocusPage(direction: number) {
|
||||
const yearsPerPage = rootContext.yearsPerPage.value
|
||||
const candidateYearValue = props.year.add({ years: direction * yearsPerPage })
|
||||
|
||||
if ((rootContext.minValue.value && endOfYear(candidateYearValue).compare(rootContext.minValue.value) < 0)
|
||||
|| (rootContext.maxValue.value && startOfYear(candidateYearValue).compare(rootContext.maxValue.value) > 0)) {
|
||||
return
|
||||
}
|
||||
|
||||
if (direction > 0) {
|
||||
if (rootContext.isNextButtonDisabled())
|
||||
return
|
||||
rootContext.nextPage()
|
||||
}
|
||||
else {
|
||||
if (rootContext.isPrevButtonDisabled())
|
||||
return
|
||||
rootContext.prevPage()
|
||||
}
|
||||
|
||||
nextTick(() => {
|
||||
const candidateYear = parentElement.querySelector<HTMLElement>(`[data-value='${candidateYearValue.toString()}']`)
|
||||
if (candidateYear && !candidateYear.hasAttribute('data-disabled')) {
|
||||
rootContext.onPlaceholderChange(candidateYearValue)
|
||||
candidateYear?.focus()
|
||||
return
|
||||
}
|
||||
|
||||
if (!candidateYear || candidateYear.hasAttribute('data-disabled'))
|
||||
shiftFocus(candidateYearValue, direction > 0 ? 1 : -1, 1)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive
|
||||
ref="primitiveElement"
|
||||
:as="props.as"
|
||||
:as-child="props.asChild"
|
||||
role="button"
|
||||
:aria-label="labelText"
|
||||
data-reka-year-range-picker-cell-trigger
|
||||
:aria-pressed="isSelectedYear && (allowNonContiguousRanges || !isUnavailable) ? true : undefined"
|
||||
:aria-disabled="isDisabled || isUnavailable ? true : undefined"
|
||||
:data-highlighted="isHighlighted && (allowNonContiguousRanges || !isUnavailable) ? '' : undefined"
|
||||
:data-selection-start="isSelectionStart ? true : undefined"
|
||||
:data-selection-end="isSelectionEnd ? true : undefined"
|
||||
:data-highlighted-start="isHighlightStart ? true : undefined"
|
||||
:data-highlighted-end="isHighlightEnd ? true : undefined"
|
||||
:data-selected="isSelectedYear && (allowNonContiguousRanges || !isUnavailable) ? true : undefined"
|
||||
:data-value="year.toString()"
|
||||
:data-disabled="isDisabled ? '' : undefined"
|
||||
:data-unavailable="isUnavailable ? '' : undefined"
|
||||
:data-today="isCurrentYear ? '' : undefined"
|
||||
:data-focused="isFocusedYear ? '' : undefined"
|
||||
:tabindex="isFocusedYear ? 0 : isDisabled ? undefined : -1"
|
||||
@click="handleClick"
|
||||
@focusin="handleFocus"
|
||||
@mouseenter="handleFocus"
|
||||
@keydown.up.down.left.right.space.enter.page-up.page-down="handleArrowKey"
|
||||
>
|
||||
<slot
|
||||
:year-value="yearValue"
|
||||
:disabled="isDisabled"
|
||||
:today="isCurrentYear"
|
||||
:selected="isSelectedYear"
|
||||
:unavailable="isUnavailable"
|
||||
:highlighted="isHighlighted && (allowNonContiguousRanges || !isUnavailable)"
|
||||
:highlighted-start="isHighlightStart"
|
||||
:highlighted-end="isHighlightEnd"
|
||||
:selection-start="isSelectionStart"
|
||||
:selection-end="isSelectionEnd"
|
||||
>
|
||||
{{ yearValue }}
|
||||
</slot>
|
||||
</Primitive>
|
||||
</template>
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABILITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
interface RegExpMatchArray {
|
||||
indices?: RegExpIndicesArray;
|
||||
}
|
||||
|
||||
interface RegExpExecArray {
|
||||
indices?: RegExpIndicesArray;
|
||||
}
|
||||
|
||||
interface RegExpIndicesArray extends Array<[number, number] | undefined> {
|
||||
groups?: {
|
||||
[key: string]: [number, number];
|
||||
};
|
||||
}
|
||||
|
||||
interface RegExp {
|
||||
/**
|
||||
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.
|
||||
* Default is false. Read-only.
|
||||
*/
|
||||
readonly hasIndices: boolean;
|
||||
}
|
||||
+632
@@ -0,0 +1,632 @@
|
||||
import { watch as fs_watch, unwatchFile, watchFile } from 'node:fs';
|
||||
import { realpath as fsrealpath, lstat, open, stat } from 'node:fs/promises';
|
||||
import { type as osType } from 'node:os';
|
||||
import * as sp from 'node:path';
|
||||
export const STR_DATA = 'data';
|
||||
export const STR_END = 'end';
|
||||
export const STR_CLOSE = 'close';
|
||||
export const EMPTY_FN = () => { };
|
||||
export const IDENTITY_FN = (val) => val;
|
||||
const pl = process.platform;
|
||||
export const isWindows = pl === 'win32';
|
||||
export const isMacos = pl === 'darwin';
|
||||
export const isLinux = pl === 'linux';
|
||||
export const isFreeBSD = pl === 'freebsd';
|
||||
export const isIBMi = osType() === 'OS400';
|
||||
export const EVENTS = {
|
||||
ALL: 'all',
|
||||
READY: 'ready',
|
||||
ADD: 'add',
|
||||
CHANGE: 'change',
|
||||
ADD_DIR: 'addDir',
|
||||
UNLINK: 'unlink',
|
||||
UNLINK_DIR: 'unlinkDir',
|
||||
RAW: 'raw',
|
||||
ERROR: 'error',
|
||||
};
|
||||
const EV = EVENTS;
|
||||
const THROTTLE_MODE_WATCH = 'watch';
|
||||
const statMethods = { lstat, stat };
|
||||
const KEY_LISTENERS = 'listeners';
|
||||
const KEY_ERR = 'errHandlers';
|
||||
const KEY_RAW = 'rawEmitters';
|
||||
const HANDLER_KEYS = [KEY_LISTENERS, KEY_ERR, KEY_RAW];
|
||||
// prettier-ignore
|
||||
const binaryExtensions = new Set([
|
||||
'3dm', '3ds', '3g2', '3gp', '7z', 'a', 'aac', 'adp', 'afdesign', 'afphoto', 'afpub', 'ai',
|
||||
'aif', 'aiff', 'alz', 'ape', 'apk', 'appimage', 'ar', 'arj', 'asf', 'au', 'avi',
|
||||
'bak', 'baml', 'bh', 'bin', 'bk', 'bmp', 'btif', 'bz2', 'bzip2',
|
||||
'cab', 'caf', 'cgm', 'class', 'cmx', 'cpio', 'cr2', 'cur', 'dat', 'dcm', 'deb', 'dex', 'djvu',
|
||||
'dll', 'dmg', 'dng', 'doc', 'docm', 'docx', 'dot', 'dotm', 'dra', 'DS_Store', 'dsk', 'dts',
|
||||
'dtshd', 'dvb', 'dwg', 'dxf',
|
||||
'ecelp4800', 'ecelp7470', 'ecelp9600', 'egg', 'eol', 'eot', 'epub', 'exe',
|
||||
'f4v', 'fbs', 'fh', 'fla', 'flac', 'flatpak', 'fli', 'flv', 'fpx', 'fst', 'fvt',
|
||||
'g3', 'gh', 'gif', 'graffle', 'gz', 'gzip',
|
||||
'h261', 'h263', 'h264', 'icns', 'ico', 'ief', 'img', 'ipa', 'iso',
|
||||
'jar', 'jpeg', 'jpg', 'jpgv', 'jpm', 'jxr', 'key', 'ktx',
|
||||
'lha', 'lib', 'lvp', 'lz', 'lzh', 'lzma', 'lzo',
|
||||
'm3u', 'm4a', 'm4v', 'mar', 'mdi', 'mht', 'mid', 'midi', 'mj2', 'mka', 'mkv', 'mmr', 'mng',
|
||||
'mobi', 'mov', 'movie', 'mp3',
|
||||
'mp4', 'mp4a', 'mpeg', 'mpg', 'mpga', 'mxu',
|
||||
'nef', 'npx', 'numbers', 'nupkg',
|
||||
'o', 'odp', 'ods', 'odt', 'oga', 'ogg', 'ogv', 'otf', 'ott',
|
||||
'pages', 'pbm', 'pcx', 'pdb', 'pdf', 'pea', 'pgm', 'pic', 'png', 'pnm', 'pot', 'potm',
|
||||
'potx', 'ppa', 'ppam',
|
||||
'ppm', 'pps', 'ppsm', 'ppsx', 'ppt', 'pptm', 'pptx', 'psd', 'pya', 'pyc', 'pyo', 'pyv',
|
||||
'qt',
|
||||
'rar', 'ras', 'raw', 'resources', 'rgb', 'rip', 'rlc', 'rmf', 'rmvb', 'rpm', 'rtf', 'rz',
|
||||
's3m', 's7z', 'scpt', 'sgi', 'shar', 'snap', 'sil', 'sketch', 'slk', 'smv', 'snk', 'so',
|
||||
'stl', 'suo', 'sub', 'swf',
|
||||
'tar', 'tbz', 'tbz2', 'tga', 'tgz', 'thmx', 'tif', 'tiff', 'tlz', 'ttc', 'ttf', 'txz',
|
||||
'udf', 'uvh', 'uvi', 'uvm', 'uvp', 'uvs', 'uvu',
|
||||
'viv', 'vob',
|
||||
'war', 'wav', 'wax', 'wbmp', 'wdp', 'weba', 'webm', 'webp', 'whl', 'wim', 'wm', 'wma',
|
||||
'wmv', 'wmx', 'woff', 'woff2', 'wrm', 'wvx',
|
||||
'xbm', 'xif', 'xla', 'xlam', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlt', 'xltm', 'xltx', 'xm',
|
||||
'xmind', 'xpi', 'xpm', 'xwd', 'xz',
|
||||
'z', 'zip', 'zipx',
|
||||
]);
|
||||
const isBinaryPath = (filePath) => binaryExtensions.has(sp.extname(filePath).slice(1).toLowerCase());
|
||||
// TODO: emit errors properly. Example: EMFILE on Macos.
|
||||
const foreach = (val, fn) => {
|
||||
if (val instanceof Set) {
|
||||
val.forEach(fn);
|
||||
}
|
||||
else {
|
||||
fn(val);
|
||||
}
|
||||
};
|
||||
const addAndConvert = (main, prop, item) => {
|
||||
let container = main[prop];
|
||||
if (!(container instanceof Set)) {
|
||||
main[prop] = container = new Set([container]);
|
||||
}
|
||||
container.add(item);
|
||||
};
|
||||
const clearItem = (cont) => (key) => {
|
||||
const set = cont[key];
|
||||
if (set instanceof Set) {
|
||||
set.clear();
|
||||
}
|
||||
else {
|
||||
delete cont[key];
|
||||
}
|
||||
};
|
||||
const delFromSet = (main, prop, item) => {
|
||||
const container = main[prop];
|
||||
if (container instanceof Set) {
|
||||
container.delete(item);
|
||||
}
|
||||
else if (container === item) {
|
||||
delete main[prop];
|
||||
}
|
||||
};
|
||||
const isEmptySet = (val) => (val instanceof Set ? val.size === 0 : !val);
|
||||
const FsWatchInstances = new Map();
|
||||
/**
|
||||
* Instantiates the fs_watch interface
|
||||
* @param path to be watched
|
||||
* @param options to be passed to fs_watch
|
||||
* @param listener main event handler
|
||||
* @param errHandler emits info about errors
|
||||
* @param emitRaw emits raw event data
|
||||
* @returns {NativeFsWatcher}
|
||||
*/
|
||||
function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
|
||||
const handleEvent = (rawEvent, evPath) => {
|
||||
listener(path);
|
||||
emitRaw(rawEvent, evPath, { watchedPath: path });
|
||||
// emit based on events occurring for files from a directory's watcher in
|
||||
// case the file's watcher misses it (and rely on throttling to de-dupe)
|
||||
if (evPath && path !== evPath) {
|
||||
fsWatchBroadcast(sp.resolve(path, evPath), KEY_LISTENERS, sp.join(path, evPath));
|
||||
}
|
||||
};
|
||||
try {
|
||||
return fs_watch(path, {
|
||||
persistent: options.persistent,
|
||||
}, handleEvent);
|
||||
}
|
||||
catch (error) {
|
||||
errHandler(error);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Helper for passing fs_watch event data to a collection of listeners
|
||||
* @param fullPath absolute path bound to fs_watch instance
|
||||
*/
|
||||
const fsWatchBroadcast = (fullPath, listenerType, val1, val2, val3) => {
|
||||
const cont = FsWatchInstances.get(fullPath);
|
||||
if (!cont)
|
||||
return;
|
||||
foreach(cont[listenerType], (listener) => {
|
||||
listener(val1, val2, val3);
|
||||
});
|
||||
};
|
||||
/**
|
||||
* Instantiates the fs_watch interface or binds listeners
|
||||
* to an existing one covering the same file system entry
|
||||
* @param path
|
||||
* @param fullPath absolute path
|
||||
* @param options to be passed to fs_watch
|
||||
* @param handlers container for event listener functions
|
||||
*/
|
||||
const setFsWatchListener = (path, fullPath, options, handlers) => {
|
||||
const { listener, errHandler, rawEmitter } = handlers;
|
||||
let cont = FsWatchInstances.get(fullPath);
|
||||
let watcher;
|
||||
if (!options.persistent) {
|
||||
watcher = createFsWatchInstance(path, options, listener, errHandler, rawEmitter);
|
||||
if (!watcher)
|
||||
return;
|
||||
return watcher.close.bind(watcher);
|
||||
}
|
||||
if (cont) {
|
||||
addAndConvert(cont, KEY_LISTENERS, listener);
|
||||
addAndConvert(cont, KEY_ERR, errHandler);
|
||||
addAndConvert(cont, KEY_RAW, rawEmitter);
|
||||
}
|
||||
else {
|
||||
watcher = createFsWatchInstance(path, options, fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), errHandler, // no need to use broadcast here
|
||||
fsWatchBroadcast.bind(null, fullPath, KEY_RAW));
|
||||
if (!watcher)
|
||||
return;
|
||||
watcher.on(EV.ERROR, async (error) => {
|
||||
const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
|
||||
if (cont)
|
||||
cont.watcherUnusable = true; // documented since Node 10.4.1
|
||||
// Workaround for https://github.com/joyent/node/issues/4337
|
||||
if (isWindows && error.code === 'EPERM') {
|
||||
try {
|
||||
const fd = await open(path, 'r');
|
||||
await fd.close();
|
||||
broadcastErr(error);
|
||||
}
|
||||
catch (err) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
else {
|
||||
broadcastErr(error);
|
||||
}
|
||||
});
|
||||
cont = {
|
||||
listeners: listener,
|
||||
errHandlers: errHandler,
|
||||
rawEmitters: rawEmitter,
|
||||
watcher,
|
||||
};
|
||||
FsWatchInstances.set(fullPath, cont);
|
||||
}
|
||||
// const index = cont.listeners.indexOf(listener);
|
||||
// removes this instance's listeners and closes the underlying fs_watch
|
||||
// instance if there are no more listeners left
|
||||
return () => {
|
||||
delFromSet(cont, KEY_LISTENERS, listener);
|
||||
delFromSet(cont, KEY_ERR, errHandler);
|
||||
delFromSet(cont, KEY_RAW, rawEmitter);
|
||||
if (isEmptySet(cont.listeners)) {
|
||||
// Check to protect against issue gh-730.
|
||||
// if (cont.watcherUnusable) {
|
||||
cont.watcher.close();
|
||||
// }
|
||||
FsWatchInstances.delete(fullPath);
|
||||
HANDLER_KEYS.forEach(clearItem(cont));
|
||||
// @ts-ignore
|
||||
cont.watcher = undefined;
|
||||
Object.freeze(cont);
|
||||
}
|
||||
};
|
||||
};
|
||||
// fs_watchFile helpers
|
||||
// object to hold per-process fs_watchFile instances
|
||||
// (may be shared across chokidar FSWatcher instances)
|
||||
const FsWatchFileInstances = new Map();
|
||||
/**
|
||||
* Instantiates the fs_watchFile interface or binds listeners
|
||||
* to an existing one covering the same file system entry
|
||||
* @param path to be watched
|
||||
* @param fullPath absolute path
|
||||
* @param options options to be passed to fs_watchFile
|
||||
* @param handlers container for event listener functions
|
||||
* @returns closer
|
||||
*/
|
||||
const setFsWatchFileListener = (path, fullPath, options, handlers) => {
|
||||
const { listener, rawEmitter } = handlers;
|
||||
let cont = FsWatchFileInstances.get(fullPath);
|
||||
// let listeners = new Set();
|
||||
// let rawEmitters = new Set();
|
||||
const copts = cont && cont.options;
|
||||
if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
|
||||
// "Upgrade" the watcher to persistence or a quicker interval.
|
||||
// This creates some unlikely edge case issues if the user mixes
|
||||
// settings in a very weird way, but solving for those cases
|
||||
// doesn't seem worthwhile for the added complexity.
|
||||
// listeners = cont.listeners;
|
||||
// rawEmitters = cont.rawEmitters;
|
||||
unwatchFile(fullPath);
|
||||
cont = undefined;
|
||||
}
|
||||
if (cont) {
|
||||
addAndConvert(cont, KEY_LISTENERS, listener);
|
||||
addAndConvert(cont, KEY_RAW, rawEmitter);
|
||||
}
|
||||
else {
|
||||
// TODO
|
||||
// listeners.add(listener);
|
||||
// rawEmitters.add(rawEmitter);
|
||||
cont = {
|
||||
listeners: listener,
|
||||
rawEmitters: rawEmitter,
|
||||
options,
|
||||
watcher: watchFile(fullPath, options, (curr, prev) => {
|
||||
foreach(cont.rawEmitters, (rawEmitter) => {
|
||||
rawEmitter(EV.CHANGE, fullPath, { curr, prev });
|
||||
});
|
||||
const currmtime = curr.mtimeMs;
|
||||
if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
|
||||
foreach(cont.listeners, (listener) => listener(path, curr));
|
||||
}
|
||||
}),
|
||||
};
|
||||
FsWatchFileInstances.set(fullPath, cont);
|
||||
}
|
||||
// const index = cont.listeners.indexOf(listener);
|
||||
// Removes this instance's listeners and closes the underlying fs_watchFile
|
||||
// instance if there are no more listeners left.
|
||||
return () => {
|
||||
delFromSet(cont, KEY_LISTENERS, listener);
|
||||
delFromSet(cont, KEY_RAW, rawEmitter);
|
||||
if (isEmptySet(cont.listeners)) {
|
||||
FsWatchFileInstances.delete(fullPath);
|
||||
unwatchFile(fullPath);
|
||||
cont.options = cont.watcher = undefined;
|
||||
Object.freeze(cont);
|
||||
}
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @mixin
|
||||
*/
|
||||
export class NodeFsHandler {
|
||||
fsw;
|
||||
_boundHandleError;
|
||||
constructor(fsW) {
|
||||
this.fsw = fsW;
|
||||
this._boundHandleError = (error) => fsW._handleError(error);
|
||||
}
|
||||
/**
|
||||
* Watch file for changes with fs_watchFile or fs_watch.
|
||||
* @param path to file or dir
|
||||
* @param listener on fs change
|
||||
* @returns closer for the watcher instance
|
||||
*/
|
||||
_watchWithNodeFs(path, listener) {
|
||||
const opts = this.fsw.options;
|
||||
const directory = sp.dirname(path);
|
||||
const basename = sp.basename(path);
|
||||
const parent = this.fsw._getWatchedDir(directory);
|
||||
parent.add(basename);
|
||||
const absolutePath = sp.resolve(path);
|
||||
const options = {
|
||||
persistent: opts.persistent,
|
||||
};
|
||||
if (!listener)
|
||||
listener = EMPTY_FN;
|
||||
let closer;
|
||||
if (opts.usePolling) {
|
||||
const enableBin = opts.interval !== opts.binaryInterval;
|
||||
options.interval = enableBin && isBinaryPath(basename) ? opts.binaryInterval : opts.interval;
|
||||
closer = setFsWatchFileListener(path, absolutePath, options, {
|
||||
listener,
|
||||
rawEmitter: this.fsw._emitRaw,
|
||||
});
|
||||
}
|
||||
else {
|
||||
closer = setFsWatchListener(path, absolutePath, options, {
|
||||
listener,
|
||||
errHandler: this._boundHandleError,
|
||||
rawEmitter: this.fsw._emitRaw,
|
||||
});
|
||||
}
|
||||
return closer;
|
||||
}
|
||||
/**
|
||||
* Watch a file and emit add event if warranted.
|
||||
* @returns closer for the watcher instance
|
||||
*/
|
||||
_handleFile(file, stats, initialAdd) {
|
||||
if (this.fsw.closed) {
|
||||
return;
|
||||
}
|
||||
const dirname = sp.dirname(file);
|
||||
const basename = sp.basename(file);
|
||||
const parent = this.fsw._getWatchedDir(dirname);
|
||||
// stats is always present
|
||||
let prevStats = stats;
|
||||
// if the file is already being watched, do nothing
|
||||
if (parent.has(basename))
|
||||
return;
|
||||
const listener = async (path, newStats) => {
|
||||
if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
|
||||
return;
|
||||
if (!newStats || newStats.mtimeMs === 0) {
|
||||
try {
|
||||
const newStats = await stat(file);
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
// Check that change event was not fired because of changed only accessTime.
|
||||
const at = newStats.atimeMs;
|
||||
const mt = newStats.mtimeMs;
|
||||
if (!at || at <= mt || mt !== prevStats.mtimeMs) {
|
||||
this.fsw._emit(EV.CHANGE, file, newStats);
|
||||
}
|
||||
if ((isMacos || isLinux || isFreeBSD) && prevStats.ino !== newStats.ino) {
|
||||
this.fsw._closeFile(path);
|
||||
prevStats = newStats;
|
||||
const closer = this._watchWithNodeFs(file, listener);
|
||||
if (closer)
|
||||
this.fsw._addPathCloser(path, closer);
|
||||
}
|
||||
else {
|
||||
prevStats = newStats;
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
// Fix issues where mtime is null but file is still present
|
||||
this.fsw._remove(dirname, basename);
|
||||
}
|
||||
// add is about to be emitted if file not already tracked in parent
|
||||
}
|
||||
else if (parent.has(basename)) {
|
||||
// Check that change event was not fired because of changed only accessTime.
|
||||
const at = newStats.atimeMs;
|
||||
const mt = newStats.mtimeMs;
|
||||
if (!at || at <= mt || mt !== prevStats.mtimeMs) {
|
||||
this.fsw._emit(EV.CHANGE, file, newStats);
|
||||
}
|
||||
prevStats = newStats;
|
||||
}
|
||||
};
|
||||
// kick off the watcher
|
||||
const closer = this._watchWithNodeFs(file, listener);
|
||||
// emit an add event if we're supposed to
|
||||
if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
|
||||
if (!this.fsw._throttle(EV.ADD, file, 0))
|
||||
return;
|
||||
this.fsw._emit(EV.ADD, file, stats);
|
||||
}
|
||||
return closer;
|
||||
}
|
||||
/**
|
||||
* Handle symlinks encountered while reading a dir.
|
||||
* @param entry returned by readdirp
|
||||
* @param directory path of dir being read
|
||||
* @param path of this item
|
||||
* @param item basename of this item
|
||||
* @returns true if no more processing is needed for this entry.
|
||||
*/
|
||||
async _handleSymlink(entry, directory, path, item) {
|
||||
if (this.fsw.closed) {
|
||||
return;
|
||||
}
|
||||
const full = entry.fullPath;
|
||||
const dir = this.fsw._getWatchedDir(directory);
|
||||
if (!this.fsw.options.followSymlinks) {
|
||||
// watch symlink directly (don't follow) and detect changes
|
||||
this.fsw._incrReadyCount();
|
||||
let linkPath;
|
||||
try {
|
||||
linkPath = await fsrealpath(path);
|
||||
}
|
||||
catch (e) {
|
||||
this.fsw._emitReady();
|
||||
return true;
|
||||
}
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
if (dir.has(item)) {
|
||||
if (this.fsw._symlinkPaths.get(full) !== linkPath) {
|
||||
this.fsw._symlinkPaths.set(full, linkPath);
|
||||
this.fsw._emit(EV.CHANGE, path, entry.stats);
|
||||
}
|
||||
}
|
||||
else {
|
||||
dir.add(item);
|
||||
this.fsw._symlinkPaths.set(full, linkPath);
|
||||
this.fsw._emit(EV.ADD, path, entry.stats);
|
||||
}
|
||||
this.fsw._emitReady();
|
||||
return true;
|
||||
}
|
||||
// don't follow the same symlink more than once
|
||||
if (this.fsw._symlinkPaths.has(full)) {
|
||||
return true;
|
||||
}
|
||||
this.fsw._symlinkPaths.set(full, true);
|
||||
}
|
||||
_handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
|
||||
// Normalize the directory name on Windows
|
||||
directory = sp.join(directory, '');
|
||||
const throttleKey = target ? `${directory}:${target}` : directory;
|
||||
throttler = this.fsw._throttle('readdir', throttleKey, 1000);
|
||||
if (!throttler)
|
||||
return;
|
||||
const previous = this.fsw._getWatchedDir(wh.path);
|
||||
const current = new Set();
|
||||
let stream = this.fsw._readdirp(directory, {
|
||||
fileFilter: (entry) => wh.filterPath(entry),
|
||||
directoryFilter: (entry) => wh.filterDir(entry),
|
||||
});
|
||||
if (!stream)
|
||||
return;
|
||||
stream
|
||||
.on(STR_DATA, async (entry) => {
|
||||
if (this.fsw.closed) {
|
||||
stream = undefined;
|
||||
return;
|
||||
}
|
||||
const item = entry.path;
|
||||
let path = sp.join(directory, item);
|
||||
current.add(item);
|
||||
if (entry.stats.isSymbolicLink() &&
|
||||
(await this._handleSymlink(entry, directory, path, item))) {
|
||||
return;
|
||||
}
|
||||
if (this.fsw.closed) {
|
||||
stream = undefined;
|
||||
return;
|
||||
}
|
||||
// Files that present in current directory snapshot
|
||||
// but absent in previous are added to watch list and
|
||||
// emit `add` event.
|
||||
if (item === target || (!target && !previous.has(item))) {
|
||||
this.fsw._incrReadyCount();
|
||||
// ensure relativeness of path is preserved in case of watcher reuse
|
||||
path = sp.join(dir, sp.relative(dir, path));
|
||||
this._addToNodeFs(path, initialAdd, wh, depth + 1);
|
||||
}
|
||||
})
|
||||
.on(EV.ERROR, this._boundHandleError);
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!stream)
|
||||
return reject();
|
||||
stream.once(STR_END, () => {
|
||||
if (this.fsw.closed) {
|
||||
stream = undefined;
|
||||
return;
|
||||
}
|
||||
const wasThrottled = throttler ? throttler.clear() : false;
|
||||
resolve(undefined);
|
||||
// Files that absent in current directory snapshot
|
||||
// but present in previous emit `remove` event
|
||||
// and are removed from @watched[directory].
|
||||
previous
|
||||
.getChildren()
|
||||
.filter((item) => {
|
||||
return item !== directory && !current.has(item);
|
||||
})
|
||||
.forEach((item) => {
|
||||
this.fsw._remove(directory, item);
|
||||
});
|
||||
stream = undefined;
|
||||
// one more time for any missed in case changes came in extremely quickly
|
||||
if (wasThrottled)
|
||||
this._handleRead(directory, false, wh, target, dir, depth, throttler);
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Read directory to add / remove files from `@watched` list and re-read it on change.
|
||||
* @param dir fs path
|
||||
* @param stats
|
||||
* @param initialAdd
|
||||
* @param depth relative to user-supplied path
|
||||
* @param target child path targeted for watch
|
||||
* @param wh Common watch helpers for this path
|
||||
* @param realpath
|
||||
* @returns closer for the watcher instance.
|
||||
*/
|
||||
async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
|
||||
const parentDir = this.fsw._getWatchedDir(sp.dirname(dir));
|
||||
const tracked = parentDir.has(sp.basename(dir));
|
||||
if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
|
||||
this.fsw._emit(EV.ADD_DIR, dir, stats);
|
||||
}
|
||||
// ensure dir is tracked (harmless if redundant)
|
||||
parentDir.add(sp.basename(dir));
|
||||
this.fsw._getWatchedDir(dir);
|
||||
let throttler;
|
||||
let closer;
|
||||
const oDepth = this.fsw.options.depth;
|
||||
if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) {
|
||||
if (!target) {
|
||||
await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
}
|
||||
closer = this._watchWithNodeFs(dir, (dirPath, stats) => {
|
||||
// if current directory is removed, do nothing
|
||||
if (stats && stats.mtimeMs === 0)
|
||||
return;
|
||||
this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
|
||||
});
|
||||
}
|
||||
return closer;
|
||||
}
|
||||
/**
|
||||
* Handle added file, directory, or glob pattern.
|
||||
* Delegates call to _handleFile / _handleDir after checks.
|
||||
* @param path to file or ir
|
||||
* @param initialAdd was the file added at watch instantiation?
|
||||
* @param priorWh depth relative to user-supplied path
|
||||
* @param depth Child path actually targeted for watch
|
||||
* @param target Child path actually targeted for watch
|
||||
*/
|
||||
async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
|
||||
const ready = this.fsw._emitReady;
|
||||
if (this.fsw._isIgnored(path) || this.fsw.closed) {
|
||||
ready();
|
||||
return false;
|
||||
}
|
||||
const wh = this.fsw._getWatchHelpers(path);
|
||||
if (priorWh) {
|
||||
wh.filterPath = (entry) => priorWh.filterPath(entry);
|
||||
wh.filterDir = (entry) => priorWh.filterDir(entry);
|
||||
}
|
||||
// evaluate what is at the path we're being asked to watch
|
||||
try {
|
||||
const stats = await statMethods[wh.statMethod](wh.watchPath);
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
if (this.fsw._isIgnored(wh.watchPath, stats)) {
|
||||
ready();
|
||||
return false;
|
||||
}
|
||||
const follow = this.fsw.options.followSymlinks;
|
||||
let closer;
|
||||
if (stats.isDirectory()) {
|
||||
const absPath = sp.resolve(path);
|
||||
const targetPath = follow ? await fsrealpath(path) : path;
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
// preserve this symlink's target path
|
||||
if (absPath !== targetPath && targetPath !== undefined) {
|
||||
this.fsw._symlinkPaths.set(absPath, targetPath);
|
||||
}
|
||||
}
|
||||
else if (stats.isSymbolicLink()) {
|
||||
const targetPath = follow ? await fsrealpath(path) : path;
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
const parent = sp.dirname(wh.watchPath);
|
||||
this.fsw._getWatchedDir(parent).add(wh.watchPath);
|
||||
this.fsw._emit(EV.ADD, wh.watchPath, stats);
|
||||
closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
|
||||
if (this.fsw.closed)
|
||||
return;
|
||||
// preserve this symlink's target path
|
||||
if (targetPath !== undefined) {
|
||||
this.fsw._symlinkPaths.set(sp.resolve(path), targetPath);
|
||||
}
|
||||
}
|
||||
else {
|
||||
closer = this._handleFile(wh.watchPath, stats, initialAdd);
|
||||
}
|
||||
ready();
|
||||
if (closer)
|
||||
this.fsw._addPathCloser(path, closer);
|
||||
return false;
|
||||
}
|
||||
catch (error) {
|
||||
if (this.fsw._handleError(error)) {
|
||||
ready();
|
||||
return path;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
<script lang="ts">
|
||||
import type { DateRangeType } from '@/DateRangeField/DateRangeFieldRoot.vue'
|
||||
import type { PrimitiveProps } from '@/Primitive'
|
||||
import type { SegmentPart } from '@/shared/date'
|
||||
import { computed, ref } from 'vue'
|
||||
import { Primitive } from '@/Primitive'
|
||||
import { useDateField } from '@/shared/date/useDateField'
|
||||
import { injectTimeRangeFieldRootContext } from './TimeRangeFieldRoot.vue'
|
||||
|
||||
export interface TimeRangeFieldInputProps extends PrimitiveProps {
|
||||
/** The part of the date to render */
|
||||
part: SegmentPart
|
||||
/** The type of field to render (start or end) */
|
||||
type: DateRangeType
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
const props = defineProps<TimeRangeFieldInputProps>()
|
||||
|
||||
const rootContext = injectTimeRangeFieldRootContext()
|
||||
|
||||
const hasLeftFocus = ref(true)
|
||||
const lastKeyZero = ref(false)
|
||||
|
||||
const {
|
||||
handleSegmentClick,
|
||||
handleSegmentKeydown,
|
||||
handleSegmentBeforeInput,
|
||||
handleSegmentCompositionStart,
|
||||
handleSegmentCompositionEnd,
|
||||
attributes,
|
||||
} = useDateField({
|
||||
hasLeftFocus,
|
||||
lastKeyZero,
|
||||
placeholder: rootContext.placeholder,
|
||||
hourCycle: rootContext.hourCycle,
|
||||
step: rootContext.step,
|
||||
segmentValues: rootContext.segmentValues[props.type],
|
||||
formatter: rootContext.formatter,
|
||||
part: props.part,
|
||||
disabled: rootContext.disabled,
|
||||
readonly: rootContext.readonly,
|
||||
focusNext: rootContext.focusNext,
|
||||
modelValue: props.type === 'start' ? rootContext.startValue : rootContext.endValue,
|
||||
})
|
||||
|
||||
const disabled = computed(() => rootContext.disabled.value)
|
||||
const readonly = computed(() => rootContext.readonly.value)
|
||||
const isInvalid = computed(() => rootContext.isInvalid.value)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive
|
||||
:as="as"
|
||||
:as-child="asChild"
|
||||
v-bind="attributes"
|
||||
:contenteditable="disabled || readonly ? false : part !== 'literal'"
|
||||
:data-reka-time-field-segment="part"
|
||||
:data-reka-time-range-field-segment-type="type"
|
||||
:aria-disabled="disabled ? true : undefined"
|
||||
:aria-readonly="readonly ? true : undefined"
|
||||
:data-disabled="disabled ? '' : undefined"
|
||||
:data-invalid="isInvalid ? '' : undefined"
|
||||
:aria-invalid="isInvalid ? true : undefined"
|
||||
v-on="part !== 'literal' ? {
|
||||
mousedown: handleSegmentClick,
|
||||
keydown: handleSegmentKeydown,
|
||||
beforeinput: handleSegmentBeforeInput,
|
||||
compositionstart: handleSegmentCompositionStart,
|
||||
compositionend: handleSegmentCompositionEnd,
|
||||
focusout: () => { hasLeftFocus = true },
|
||||
focusin: (e: FocusEvent) => {
|
||||
rootContext.setFocusedElement(e.target as HTMLElement)
|
||||
},
|
||||
} : {}"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
import { useForwardExpose } from "../shared/useForwardExpose.js";
|
||||
import { useForwardPropsEmits } from "../shared/useForwardPropsEmits.js";
|
||||
import { useId } from "../shared/useId.js";
|
||||
import { omitEntryFocusListener } from "../Menu/utils.js";
|
||||
import { MenuContent_default } from "../Menu/MenuContent.js";
|
||||
import { injectDropdownMenuRootContext } from "./DropdownMenuRoot.js";
|
||||
import { createBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
||||
|
||||
//#region src/DropdownMenu/DropdownMenuContent.vue?vue&type=script&setup=true&lang.ts
|
||||
var DropdownMenuContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
inheritAttrs: false,
|
||||
__name: "DropdownMenuContent",
|
||||
props: {
|
||||
forceMount: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
loop: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
memoDependencies: {
|
||||
type: Array,
|
||||
required: false
|
||||
},
|
||||
side: {
|
||||
type: null,
|
||||
required: false
|
||||
},
|
||||
sideOffset: {
|
||||
type: Number,
|
||||
required: false
|
||||
},
|
||||
sideFlip: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
align: {
|
||||
type: null,
|
||||
required: false
|
||||
},
|
||||
alignOffset: {
|
||||
type: Number,
|
||||
required: false
|
||||
},
|
||||
alignFlip: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
avoidCollisions: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
collisionBoundary: {
|
||||
type: null,
|
||||
required: false
|
||||
},
|
||||
collisionPadding: {
|
||||
type: [Number, Object],
|
||||
required: false
|
||||
},
|
||||
arrowPadding: {
|
||||
type: Number,
|
||||
required: false
|
||||
},
|
||||
hideShiftedArrow: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
sticky: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
hideWhenDetached: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
positionStrategy: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
updatePositionStrategy: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
disableUpdateOnLayoutShift: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
prioritizePosition: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
reference: {
|
||||
type: null,
|
||||
required: false
|
||||
},
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
emits: [
|
||||
"escapeKeyDown",
|
||||
"pointerDownOutside",
|
||||
"focusOutside",
|
||||
"interactOutside",
|
||||
"openAutoFocus",
|
||||
"closeAutoFocus"
|
||||
],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const emits = __emit;
|
||||
const forwarded = useForwardPropsEmits(props, emits);
|
||||
useForwardExpose();
|
||||
const rootContext = injectDropdownMenuRootContext();
|
||||
const hasInteractedOutsideRef = ref(false);
|
||||
function handleCloseAutoFocus(event) {
|
||||
if (event.defaultPrevented) return;
|
||||
if (!hasInteractedOutsideRef.value) setTimeout(() => {
|
||||
rootContext.triggerElement.value?.focus();
|
||||
}, 0);
|
||||
hasInteractedOutsideRef.value = false;
|
||||
event.preventDefault();
|
||||
}
|
||||
rootContext.contentId ||= useId(void 0, "reka-dropdown-menu-content");
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(MenuContent_default), mergeProps({
|
||||
id: unref(rootContext).contentId,
|
||||
"aria-labelledby": unref(rootContext)?.triggerId,
|
||||
style: {
|
||||
"--reka-dropdown-menu-content-transform-origin": "var(--reka-popper-transform-origin)",
|
||||
"--reka-dropdown-menu-content-available-width": "var(--reka-popper-available-width)",
|
||||
"--reka-dropdown-menu-content-available-height": "var(--reka-popper-available-height)",
|
||||
"--reka-dropdown-menu-trigger-width": "var(--reka-popper-anchor-width)",
|
||||
"--reka-dropdown-menu-trigger-height": "var(--reka-popper-anchor-height)"
|
||||
}
|
||||
}, {
|
||||
...unref(forwarded),
|
||||
...unref(omitEntryFocusListener)(_ctx.$attrs)
|
||||
}, {
|
||||
onCloseAutoFocus: handleCloseAutoFocus,
|
||||
onInteractOutside: _cache[0] || (_cache[0] = (event) => {
|
||||
if (event.defaultPrevented) return;
|
||||
const originalEvent = event.detail.originalEvent;
|
||||
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
||||
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
||||
if (!unref(rootContext).modal.value || isRightClick) hasInteractedOutsideRef.value = true;
|
||||
if (unref(rootContext).triggerElement.value?.contains(event.target)) event.preventDefault();
|
||||
})
|
||||
}), {
|
||||
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16, ["id", "aria-labelledby"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/DropdownMenu/DropdownMenuContent.vue
|
||||
var DropdownMenuContent_default = DropdownMenuContent_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { DropdownMenuContent_default };
|
||||
//# sourceMappingURL=DropdownMenuContent.js.map
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "panel-bottom-open",
|
||||
size: 24,
|
||||
node: [
|
||||
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
||||
["path", { d: "M3 15h18", key: "5xshup" }],
|
||||
["path", { d: "m9 10 3-3 3 3", key: "11gsxs" }]
|
||||
]
|
||||
};
|
||||
const PanelBottomOpen = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, PanelBottomOpen as default };
|
||||
//# sourceMappingURL=panel-bottom-open.mjs.map
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "bike",
|
||||
size: 24,
|
||||
node: [
|
||||
["circle", { cx: "18.5", cy: "17.5", r: "3.5", key: "15x4ox" }],
|
||||
["circle", { cx: "5.5", cy: "17.5", r: "3.5", key: "1noe27" }],
|
||||
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
||||
["path", { d: "M12 17.5V14l-3-3 4-3 2 3h2", key: "1npguv" }]
|
||||
]
|
||||
};
|
||||
const Bike = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, Bike as default };
|
||||
//# sourceMappingURL=bike.mjs.map
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
<script lang="ts">
|
||||
import type { PrimitiveProps } from '@/Primitive'
|
||||
import { Primitive, usePrimitiveElement } from '@/Primitive'
|
||||
|
||||
export interface EditableInputProps extends PrimitiveProps {
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, nextTick, onMounted, watch } from 'vue'
|
||||
import { useKbd } from '@/shared'
|
||||
import { injectEditableRootContext } from './EditableRoot.vue'
|
||||
|
||||
const props = withDefaults(defineProps<EditableInputProps>(), {
|
||||
as: 'input',
|
||||
})
|
||||
|
||||
const kbd = useKbd()
|
||||
|
||||
const context = injectEditableRootContext()
|
||||
|
||||
const disabled = computed(() => context.disabled.value)
|
||||
|
||||
const placeholder = computed(() => context.placeholder.value?.edit)
|
||||
|
||||
const { primitiveElement, currentElement: inputRef } = usePrimitiveElement()
|
||||
|
||||
onMounted(() => {
|
||||
context.inputRef.value = inputRef.value as HTMLInputElement
|
||||
if (context.startWithEditMode.value) {
|
||||
context.inputRef.value?.focus({ preventScroll: true })
|
||||
if (context.selectOnFocus.value)
|
||||
context.inputRef.value?.select()
|
||||
}
|
||||
})
|
||||
|
||||
watch(context.isEditing, (value) => {
|
||||
if (value) {
|
||||
nextTick(() => {
|
||||
context.inputRef.value?.focus({ preventScroll: true })
|
||||
if (context.selectOnFocus.value)
|
||||
context.inputRef.value?.select()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
function handleSubmitKeyDown(event: KeyboardEvent) {
|
||||
if ((context.submitMode.value === 'enter' || context.submitMode.value === 'both') && event.key === kbd.ENTER && !event.shiftKey && !event.metaKey && !event.isComposing)
|
||||
context.submit()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive
|
||||
ref="primitiveElement"
|
||||
v-bind="props"
|
||||
:value="context.inputValue.value"
|
||||
:placeholder="placeholder"
|
||||
:disabled="disabled"
|
||||
:maxlength="context.maxLength.value"
|
||||
:data-disabled="disabled ? '' : undefined"
|
||||
:data-readonly="context.readonly.value ? '' : undefined"
|
||||
:readonly="context.readonly.value"
|
||||
aria-label="editable input"
|
||||
:hidden="context.autoResize.value ? undefined : !context.isEditing.value"
|
||||
:style="context.autoResize.value ? { all: 'unset', gridArea: '1 / 1 / auto / auto', visibility: !context.isEditing.value ? 'hidden' : undefined } : undefined"
|
||||
@input="context.inputValue.value = $event.target.value"
|
||||
@keydown.enter.space="handleSubmitKeyDown"
|
||||
@keydown.esc="context.cancel"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
module.exports.isClean = Symbol('isClean')
|
||||
|
||||
module.exports.my = Symbol('my')
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
import { Directives } from '../doc/directives';
|
||||
import { Document } from '../doc/Document';
|
||||
import type { ErrorCode } from '../errors';
|
||||
import { YAMLParseError, YAMLWarning } from '../errors';
|
||||
import type { ParsedNode, Range } from '../nodes/Node';
|
||||
import type { DocumentOptions, ParseOptions, SchemaOptions } from '../options';
|
||||
import type { Token } from '../parse/cst';
|
||||
type ErrorSource = number | [number, number] | Range | {
|
||||
offset: number;
|
||||
source?: string;
|
||||
};
|
||||
export type ComposeErrorHandler = (source: ErrorSource, code: ErrorCode, message: string, warning?: boolean) => void;
|
||||
/**
|
||||
* Compose a stream of CST nodes into a stream of YAML Documents.
|
||||
*
|
||||
* ```ts
|
||||
* import { Composer, Parser } from 'yaml'
|
||||
*
|
||||
* const src: string = ...
|
||||
* const tokens = new Parser().parse(src)
|
||||
* const docs = new Composer().compose(tokens)
|
||||
* ```
|
||||
*/
|
||||
export declare class Composer<Contents extends ParsedNode = ParsedNode, Strict extends boolean = true> {
|
||||
private directives;
|
||||
private doc;
|
||||
private options;
|
||||
private atDirectives;
|
||||
private prelude;
|
||||
private errors;
|
||||
private warnings;
|
||||
constructor(options?: ParseOptions & DocumentOptions & SchemaOptions);
|
||||
private onError;
|
||||
private decorate;
|
||||
/**
|
||||
* Current stream status information.
|
||||
*
|
||||
* Mostly useful at the end of input for an empty stream.
|
||||
*/
|
||||
streamInfo(): {
|
||||
comment: string;
|
||||
directives: Directives;
|
||||
errors: YAMLParseError[];
|
||||
warnings: YAMLWarning[];
|
||||
};
|
||||
/**
|
||||
* Compose tokens into documents.
|
||||
*
|
||||
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
|
||||
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
||||
*/
|
||||
compose(tokens: Iterable<Token>, forceDoc?: boolean, endOffset?: number): Generator<Document.Parsed<Contents, Strict>, void, unknown>;
|
||||
/** Advance the composer by one CST token. */
|
||||
next(token: Token): Generator<Document.Parsed<Contents, Strict>, void, unknown>;
|
||||
/**
|
||||
* Call at end of input to yield any remaining document.
|
||||
*
|
||||
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
|
||||
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
||||
*/
|
||||
end(forceDoc?: boolean, endOffset?: number): Generator<Document.Parsed<Contents, Strict>, void, unknown>;
|
||||
}
|
||||
export {};
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"fish-symbol.mjs","sources":["../../../src/icons/fish-symbol.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'fish-symbol',\n size: 24,\n node: [['path', { d: 'M2 16s9-15 20-4C11 23 2 8 2 8', key: 'h4oh4o' }]],\n};\n\n/**\n * @component @name FishSymbol\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/fish-symbol\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst FishSymbol: LucideIcon = createLucideIcon(__iconData);\n\nexport default FishSymbol;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,MAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,+BAAA,CAAA,CAAiC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAC;AACxE,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# @shikijs/types
|
||||
|
||||
Types for Shiki.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Color a string.
|
||||
*
|
||||
* @param {string} d
|
||||
* Value.
|
||||
* @returns {string}
|
||||
* Colored value.
|
||||
*/
|
||||
export function color(d) {
|
||||
return d
|
||||
}
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
import type { AnyFn } from '@vueuse/shared'
|
||||
import { camelize, getCurrentInstance, toHandlerKey } from 'vue'
|
||||
|
||||
// Vue doesn't have emits forwarding, in order to bind the emits we have to convert events into `onXXX` handlers
|
||||
// issue: https://github.com/vuejs/core/issues/5917
|
||||
/**
|
||||
* The `useEmitAsProps` function is a TypeScript utility that converts emitted events into props for a
|
||||
* Vue component.
|
||||
*
|
||||
* @template Name - The event name string union type.
|
||||
* @template Fn - The emit function type.
|
||||
*
|
||||
* @param emit - The `emit` parameter is a function that is used to emit events from a component. It
|
||||
*
|
||||
* takes two parameters: `name` which is the name of the event to be emitted, and `...args` which are
|
||||
* the arguments to be passed along with the event.
|
||||
* @returns The function `useEmitAsProps` returns an object that maps event names to functions that
|
||||
* call the `emit` function with the corresponding event name and arguments.
|
||||
*/
|
||||
export function useEmitAsProps<Name extends string, Fn extends AnyFn = AnyFn>(emit: Emit<Name, Fn>) {
|
||||
const vm = getCurrentInstance()
|
||||
|
||||
const events = vm?.type.emits as Name[]
|
||||
const result: Record<string, any> = {}
|
||||
|
||||
if (!events?.length) {
|
||||
console.warn(
|
||||
`No emitted event found. Please check component: ${vm?.type.__name}`,
|
||||
)
|
||||
}
|
||||
|
||||
events?.forEach((ev) => {
|
||||
result[toHandlerKey(camelize(ev))] = (...arg: any) => emit(ev, ...arg)
|
||||
})
|
||||
|
||||
return result as EmitAsProps<Fn>
|
||||
}
|
||||
|
||||
export type EmitAsProps<T extends AnyFn> = Expand<Partial<MergeUnion<EmitUnion<OverloadUnion<T>>>>>
|
||||
|
||||
export type Emit<Name extends string, Fn extends AnyFn> = IsEmit<Name, Fn> extends true ? Fn : never
|
||||
|
||||
type IsEmit<Name extends string, Fn extends AnyFn>
|
||||
= OverloadUnion<Fn> extends infer T extends AnyFn
|
||||
? Parameters<T> extends [name: Name, ...args: any[]]
|
||||
? [ReturnType<T>] extends [void]
|
||||
? true
|
||||
: false
|
||||
: false
|
||||
: false
|
||||
|
||||
type Expand<T> = {
|
||||
[K in keyof T]: T[K]
|
||||
} & {}
|
||||
|
||||
type MergeUnion<T> = {
|
||||
[K in T extends any ? keyof T : never]: T extends { [P in K]: any } ? T[K] : never;
|
||||
}
|
||||
|
||||
type EmitUnion<Fn extends AnyFn>
|
||||
= Fn extends (name: infer Name extends string, ...args: infer Args) => infer Return
|
||||
? { [K in HandlerKey<Name>]: (...args: Args) => Return }
|
||||
: unknown
|
||||
|
||||
// Types for prop keys
|
||||
|
||||
type WordChar
|
||||
= | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm'
|
||||
| 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z'
|
||||
| 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M'
|
||||
| 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z'
|
||||
| '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
||||
| '_'
|
||||
|
||||
/**
|
||||
* Type-safe converter for camelize(string) from Vue package
|
||||
*/
|
||||
export type Camelize<S extends string>
|
||||
= S extends `${infer Prefix}-${infer Rest}`
|
||||
? Rest extends `${infer Char}${infer After}`
|
||||
? Char extends WordChar
|
||||
? `${Camelize<Prefix>}${Uppercase<Char>}${Camelize<After>}`
|
||||
: `${Camelize<Prefix>}-${Camelize<Rest>}`
|
||||
: S
|
||||
: S
|
||||
|
||||
type HandlerKey<Name extends string> = Camelize<`on-${Name}`>
|
||||
|
||||
// Overload-walking types, adapted from the package-private helpers in @vue/shared
|
||||
|
||||
type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>
|
||||
|
||||
type Signature<TArgs extends any[], TReturn> = (...args: TArgs) => TReturn
|
||||
|
||||
type IsEqual<A, B>
|
||||
= (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? true : false
|
||||
|
||||
/**
|
||||
* `Required<T>` strips `void` together with `undefined` from formerly-optional elements,
|
||||
* leaving `never`; those elements originated from `void` parameters, so restore them.
|
||||
*/
|
||||
type RequiredVoidArgs<TArgs extends any[]> = {
|
||||
[K in keyof TArgs]: [TArgs[K]] extends [never] ? void : TArgs[K]
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether intersecting `TSignature` in front of `TOverload` removes the last signature of `TOverload`.
|
||||
* TypeScript de-duplicates identical call signatures in an intersection, so when the last signature
|
||||
* is still the one described by `TArgs`/`TReturn` the reconstruction was not identical to it.
|
||||
*/
|
||||
type RemovesLastSignature<TOverload, TSignature extends AnyFn, TArgs extends any[], TReturn>
|
||||
= (TSignature & TOverload) extends (...args: infer TNextArgs) => infer TNextReturn
|
||||
? IsEqual<[TNextArgs, TNextReturn], [TArgs, TReturn]> extends true ? false : true
|
||||
: false
|
||||
|
||||
/**
|
||||
* Rebuilds the last signature of `TOverload` (inferred as `TArgs`/`TReturn`) so that TypeScript
|
||||
* recognises it as identical to the original and drops it from `TPartialOverload & TOverload`.
|
||||
*
|
||||
* Trailing `void` parameters are inferred as optional (`args_0?: void | undefined`), which is no
|
||||
* longer identical to the declared `(event: 'foo', args_0: void)` signature produced by
|
||||
* `defineEmits<{ foo: [void] }>()`. Without special handling the same signature would be inferred
|
||||
* forever and TypeScript reports "Type instantiation is excessively deep and possibly infinite".
|
||||
* Resolves to `never` when no reconstruction matches.
|
||||
*/
|
||||
type LastSignature<TOverload, TArgs extends any[], TReturn>
|
||||
= RemovesLastSignature<TOverload, Signature<TArgs, TReturn>, TArgs, TReturn> extends true
|
||||
? Signature<TArgs, TReturn>
|
||||
: RemovesLastSignature<TOverload, Signature<RequiredVoidArgs<Required<TArgs>>, TReturn>, TArgs, TReturn> extends true
|
||||
? Signature<RequiredVoidArgs<Required<TArgs>>, TReturn>
|
||||
: never
|
||||
|
||||
type OverloadUnionRecursive<
|
||||
TOverload,
|
||||
TPartialOverload = unknown,
|
||||
> = TOverload extends (...args: infer TArgs) => infer TReturn
|
||||
? TPartialOverload extends TOverload
|
||||
? never
|
||||
: LastSignature<TOverload, TArgs, TReturn> extends infer TSignature extends AnyFn
|
||||
? [TSignature] extends [never]
|
||||
// The last signature cannot be removed: stop instead of recursing forever and fall back to a loose signature.
|
||||
? (name: string, ...args: any[]) => void
|
||||
: | OverloadUnionRecursive<
|
||||
TPartialOverload & TOverload,
|
||||
TPartialOverload & TSignature & OverloadProps<TOverload>
|
||||
>
|
||||
| TSignature
|
||||
: never
|
||||
: never
|
||||
|
||||
type OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<
|
||||
OverloadUnionRecursive<(() => never) & TOverload>,
|
||||
TOverload extends () => never ? never : () => never
|
||||
>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "keyboard-music",
|
||||
size: 24,
|
||||
node: [
|
||||
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
||||
["path", { d: "M6 8h4", key: "utf9t1" }],
|
||||
["path", { d: "M14 8h.01", key: "1primd" }],
|
||||
["path", { d: "M18 8h.01", key: "emo2bl" }],
|
||||
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
||||
["path", { d: "M6 12v4", key: "dy92yo" }],
|
||||
["path", { d: "M10 12v4", key: "1fxnav" }],
|
||||
["path", { d: "M14 12v4", key: "1hft58" }],
|
||||
["path", { d: "M18 12v4", key: "tjjnbz" }]
|
||||
]
|
||||
};
|
||||
const KeyboardMusic = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, KeyboardMusic as default };
|
||||
//# sourceMappingURL=keyboard-music.mjs.map
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "message-square-diff",
|
||||
size: 24,
|
||||
node: [
|
||||
[
|
||||
"path",
|
||||
{
|
||||
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
||||
key: "18887p"
|
||||
}
|
||||
],
|
||||
["path", { d: "M10 15h4", key: "192ueg" }],
|
||||
["path", { d: "M10 9h4", key: "u4k05v" }],
|
||||
["path", { d: "M12 7v4", key: "xawao1" }]
|
||||
]
|
||||
};
|
||||
const MessageSquareDiff = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, MessageSquareDiff as default };
|
||||
//# sourceMappingURL=message-square-diff.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"SelectGroup.cjs","names":[],"sources":["../../src/Select/SelectGroup.vue","../../src/Select/SelectGroup.vue"],"sourcesContent":[],"mappings":";;;;;;;AAUA,MAAa,CAAC,0BAA0B,0BAAyB,GAC7D,2CAAkC,cAAa;;;;;;;;;;;;;;EAMnD,MAAM,QAAQ;EAEd,MAAM,KAAK,mCAAiB,oBAAmB;AAC/C,4BAA0B,EAAE,GAAI,EAAA;;gCAI9B,qBAMY,eAAA,sCAAA,EANZ,oBAMY,EALV,MAAK,QAAO,GACJ,OAAK,EACZ,mBAAiB,eAAA,GAAE,CAAA,EAAA,EAAA;8BAEpB,MAAQ,CAAR,oBAAQ,KAAA,QAAA,UAAA"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "../../cjs/_set_prototype_of.cjs",
|
||||
"module": "../../esm/_set_prototype_of.js"
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
import { createContext } from "../shared/createContext.js";
|
||||
import { useDirection } from "../shared/useDirection.js";
|
||||
import { useForwardExpose } from "../shared/useForwardExpose.js";
|
||||
import { Primitive } from "../Primitive/Primitive.js";
|
||||
import { RovingFocusGroup_default } from "../RovingFocus/RovingFocusGroup.js";
|
||||
import { createBlock, createVNode, defineComponent, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
||||
|
||||
//#region src/Toolbar/ToolbarRoot.vue?vue&type=script&setup=true&lang.ts
|
||||
const [injectToolbarRootContext, provideToolbarRootContext] = /*#__PURE__*/ createContext("ToolbarRoot");
|
||||
var ToolbarRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
__name: "ToolbarRoot",
|
||||
props: {
|
||||
orientation: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: "horizontal"
|
||||
},
|
||||
dir: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
loop: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const { orientation, dir: propDir } = toRefs(props);
|
||||
const dir = useDirection(propDir);
|
||||
const { forwardRef } = useForwardExpose();
|
||||
provideToolbarRootContext({
|
||||
orientation,
|
||||
dir
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(RovingFocusGroup_default), {
|
||||
"as-child": "",
|
||||
orientation: unref(orientation),
|
||||
dir: unref(dir),
|
||||
loop: __props.loop
|
||||
}, {
|
||||
default: withCtx(() => [createVNode(unref(Primitive), {
|
||||
ref: unref(forwardRef),
|
||||
role: "toolbar",
|
||||
"aria-orientation": unref(orientation),
|
||||
"as-child": __props.asChild,
|
||||
as: __props.as
|
||||
}, {
|
||||
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 8, [
|
||||
"aria-orientation",
|
||||
"as-child",
|
||||
"as"
|
||||
])]),
|
||||
_: 3
|
||||
}, 8, [
|
||||
"orientation",
|
||||
"dir",
|
||||
"loop"
|
||||
]);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/Toolbar/ToolbarRoot.vue
|
||||
var ToolbarRoot_default = ToolbarRoot_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { ToolbarRoot_default, injectToolbarRootContext };
|
||||
//# sourceMappingURL=ToolbarRoot.js.map
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
import {CalendarDate as $9a4e222e1bd2b190$export$99faa760c7908e4f} from "../CalendarDate.js";
|
||||
import {fromExtendedYear as $f25df78da1f6b40f$export$4475b7e617eb123c, getExtendedYear as $f25df78da1f6b40f$export$c36e0ecb2d4fa69d, GregorianCalendar as $f25df78da1f6b40f$export$80ee6245ec4f29ec} from "./GregorianCalendar.js";
|
||||
|
||||
/*
|
||||
* Copyright 2020 Adobe. All rights reserved.
|
||||
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
||||
* OF ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/ // Portions of the code in this file are based on code from ICU.
|
||||
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
|
||||
|
||||
|
||||
const $0e7b6ab888014459$var$TAIWAN_ERA_START = 1911;
|
||||
function $0e7b6ab888014459$var$gregorianYear(date) {
|
||||
return date.era === 'minguo' ? date.year + $0e7b6ab888014459$var$TAIWAN_ERA_START : 1 - date.year + $0e7b6ab888014459$var$TAIWAN_ERA_START;
|
||||
}
|
||||
function $0e7b6ab888014459$var$gregorianToTaiwan(year) {
|
||||
let y = year - $0e7b6ab888014459$var$TAIWAN_ERA_START;
|
||||
if (y > 0) return [
|
||||
'minguo',
|
||||
y
|
||||
];
|
||||
else return [
|
||||
'before_minguo',
|
||||
1 - y
|
||||
];
|
||||
}
|
||||
class $0e7b6ab888014459$export$65e01080afcb0799 extends (0, $f25df78da1f6b40f$export$80ee6245ec4f29ec) {
|
||||
fromJulianDay(jd) {
|
||||
let date = super.fromJulianDay(jd);
|
||||
let extendedYear = (0, $f25df78da1f6b40f$export$c36e0ecb2d4fa69d)(date.era, date.year);
|
||||
let [era, year] = $0e7b6ab888014459$var$gregorianToTaiwan(extendedYear);
|
||||
return new (0, $9a4e222e1bd2b190$export$99faa760c7908e4f)(this, era, year, date.month, date.day);
|
||||
}
|
||||
toJulianDay(date) {
|
||||
return super.toJulianDay($0e7b6ab888014459$var$toGregorian(date));
|
||||
}
|
||||
getEras() {
|
||||
return [
|
||||
'before_minguo',
|
||||
'minguo'
|
||||
];
|
||||
}
|
||||
balanceDate(date) {
|
||||
let [era, year] = $0e7b6ab888014459$var$gregorianToTaiwan($0e7b6ab888014459$var$gregorianYear(date));
|
||||
date.era = era;
|
||||
date.year = year;
|
||||
}
|
||||
isInverseEra(date) {
|
||||
return date.era === 'before_minguo';
|
||||
}
|
||||
getDaysInMonth(date) {
|
||||
return super.getDaysInMonth($0e7b6ab888014459$var$toGregorian(date));
|
||||
}
|
||||
getYearsInEra(date) {
|
||||
return date.era === 'before_minguo' ? 9999 : 9999 - $0e7b6ab888014459$var$TAIWAN_ERA_START;
|
||||
}
|
||||
constructor(...args){
|
||||
super(...args), this.identifier = 'roc' // Republic of China
|
||||
;
|
||||
}
|
||||
}
|
||||
function $0e7b6ab888014459$var$toGregorian(date) {
|
||||
let [era, year] = (0, $f25df78da1f6b40f$export$4475b7e617eb123c)($0e7b6ab888014459$var$gregorianYear(date));
|
||||
return new (0, $9a4e222e1bd2b190$export$99faa760c7908e4f)(era, year, date.month, date.day);
|
||||
}
|
||||
|
||||
|
||||
export {$0e7b6ab888014459$export$65e01080afcb0799 as TaiwanCalendar};
|
||||
//# sourceMappingURL=TaiwanCalendar.js.map
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "arrow-left-to-line",
|
||||
size: 24,
|
||||
node: [
|
||||
["path", { d: "M3 19V5", key: "rwsyhb" }],
|
||||
["path", { d: "m13 6-6 6 6 6", key: "1yhaz7" }],
|
||||
["path", { d: "M7 12h14", key: "uoisry" }]
|
||||
]
|
||||
};
|
||||
const ArrowLeftToLine = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, ArrowLeftToLine as default };
|
||||
//# sourceMappingURL=arrow-left-to-line.mjs.map
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
const require_rolldown_runtime = require('../rolldown-runtime.cjs');
|
||||
const require_Popover_PopoverAnchor = require('../Popover/PopoverAnchor.cjs');
|
||||
const vue = require_rolldown_runtime.__toESM(require("vue"));
|
||||
|
||||
//#region src/DatePicker/DatePickerAnchor.vue?vue&type=script&setup=true&lang.ts
|
||||
var DatePickerAnchor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
||||
__name: "DatePickerAnchor",
|
||||
props: {
|
||||
reference: {
|
||||
type: null,
|
||||
required: false
|
||||
},
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
return (_ctx, _cache) => {
|
||||
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Popover_PopoverAnchor.PopoverAnchor_default), (0, vue.normalizeProps)((0, vue.guardReactiveProps)(props)), {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/DatePicker/DatePickerAnchor.vue
|
||||
var DatePickerAnchor_default = DatePickerAnchor_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
Object.defineProperty(exports, 'DatePickerAnchor_default', {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return DatePickerAnchor_default;
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=DatePickerAnchor.cjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MenubarSeparator.cjs","names":[],"sources":["../../src/Menubar/MenubarSeparator.vue","../../src/Menubar/MenubarSeparator.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;EAUA,MAAM,QAAQ;AACd,oDAAiB;;gCAIf,qBAEgB,eAAA,iDAAA,EAAA,wBAAA,4BAFO,MAAK,CAAA,EAAA;8BAC1B,MAAQ,CAAR,oBAAQ,KAAA,QAAA,UAAA"}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "clock-arrow-right",
|
||||
size: 24,
|
||||
node: [
|
||||
["path", { d: "M12 6v6l2 1", key: "19cm8n" }],
|
||||
["path", { d: "M13.5 21.885A10 10 0 1 1 22 12", key: "xgp8as" }],
|
||||
["path", { d: "M14 18h8", key: "1le3fr" }],
|
||||
["path", { d: "m18 22 4-4-4-4", key: "mordo3" }]
|
||||
]
|
||||
};
|
||||
const ClockArrowRight = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, ClockArrowRight as default };
|
||||
//# sourceMappingURL=clock-arrow-right.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"paper-bag.mjs","sources":["../../../src/icons/paper-bag.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'paper-bag',\n size: 24,\n node: [\n [\n 'path',\n {\n d: 'M5.364 3.848C4 6 3 9.652 3 12.652V19a2 2 0 002 2h14a2 2 0 002-2v-5c0-2.334-1.816-4.668-2.622-7.002',\n key: 'vlsvfu',\n },\n ],\n [\n 'path',\n {\n d: 'M7 3h11.379a2 2 0 011.789 1.106l.723 1.447A1 1 0 0119.997 7h-8.525a2 2 0 01-1.789-1.106L8.79 4.105a2 2 0 10-3.579 1.789l2.261 4.522A5 5 0 018 12.652V21',\n key: '12exh5',\n },\n ],\n ],\n};\n\n/**\n * @component @name PaperBag\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/paper-bag\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst PaperBag: LucideIcon = createLucideIcon(__iconData);\n\nexport default PaperBag;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACH,GAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACP,CAAA,CAAA,CAAA,CAAA;AACF,CAAA,CAAA;AAEJ,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "../../cjs/_create_super.cjs",
|
||||
"module": "../../esm/_create_super.js"
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import Dispatcher from './dispatcher'
|
||||
|
||||
export default Dispatcher1Wrapper
|
||||
|
||||
declare class Dispatcher1Wrapper extends Dispatcher {
|
||||
constructor (dispatcher: Dispatcher)
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
//#region src/shared/color/utils.ts
|
||||
/**
|
||||
* Converts a hex color string to RGB (Red, Green, Blue).
|
||||
* @param hex Hex color string (e.g., "#ff5733" or "#f53")
|
||||
* @returns An object containing red, green, and blue values (0-255).
|
||||
*/
|
||||
const HASH_PREFIX_RE = /^#/;
|
||||
const HEX6_RE = /^[0-9A-F]{6}$/i;
|
||||
const HEX3_RE = /^[0-9A-F]{3}$/i;
|
||||
function hexToRGB(hex) {
|
||||
hex = hex.replace(HASH_PREFIX_RE, "");
|
||||
if (!HEX6_RE.test(hex) && !HEX3_RE.test(hex)) throw new Error(`Invalid hex color: ${hex}. Expected format: #RGB or #RRGGBB`);
|
||||
if (hex.length === 3) hex = hex.split("").map((c) => c + c).join("");
|
||||
const bigint = parseInt(hex, 16);
|
||||
const r = bigint >> 16 & 255;
|
||||
const g = bigint >> 8 & 255;
|
||||
const b = bigint & 255;
|
||||
return {
|
||||
r,
|
||||
g,
|
||||
b
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Converts a hex color string to HSL (Hue, Saturation, Lightness).
|
||||
* @param hex Hex color string (e.g., "#ff5733")
|
||||
* @returns An object containing hue (0-360), saturation (0-100), and lightness (0-100) values.
|
||||
*/
|
||||
function hexToHSL(hex) {
|
||||
let { r, g, b } = hexToRGB(hex);
|
||||
r /= 255;
|
||||
g /= 255;
|
||||
b /= 255;
|
||||
const max = Math.max(r, g, b);
|
||||
const min = Math.min(r, g, b);
|
||||
let h;
|
||||
let s;
|
||||
let l = (max + min) / 2;
|
||||
if (max === min) {
|
||||
h = s = 0;
|
||||
l *= 100;
|
||||
} else {
|
||||
const d = max - min;
|
||||
s = l > .5 ? d / (2 - max - min) : d / (max + min);
|
||||
if (max === r) h = (g - b) / d + (g < b ? 6 : 0);
|
||||
else if (max === g) h = (b - r) / d + 2;
|
||||
else h = (r - g) / d + 4;
|
||||
h /= 6;
|
||||
h *= 360;
|
||||
s *= 100;
|
||||
l *= 100;
|
||||
}
|
||||
return {
|
||||
h,
|
||||
s,
|
||||
l
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Converts a hex color string to a human-readable color name.
|
||||
* @param hex Hex color string (e.g., "#ff5733")
|
||||
* @returns A human-readable color name based on the hue, saturation, and lightness.
|
||||
*/
|
||||
function getColorName(hex) {
|
||||
const { h, s, l } = hexToHSL(hex);
|
||||
if (s < 10) {
|
||||
if (l < 10) return "black";
|
||||
if (l > 95) return "white";
|
||||
if (l < 20) return "very dark gray";
|
||||
if (l < 35) return "dark gray";
|
||||
if (l < 65) return "gray";
|
||||
if (l < 80) return "light gray";
|
||||
return "very light gray";
|
||||
}
|
||||
let baseName;
|
||||
if (h < 15 || h >= 345) baseName = "red";
|
||||
else if (h < 45) baseName = "orange";
|
||||
else if (h < 75) baseName = "yellow";
|
||||
else if (h < 105) baseName = "yellow-green";
|
||||
else if (h < 135) baseName = "green";
|
||||
else if (h < 165) baseName = "green-cyan";
|
||||
else if (h < 195) baseName = "cyan";
|
||||
else if (h < 225) baseName = "blue";
|
||||
else if (h < 255) baseName = "blue-violet";
|
||||
else if (h < 285) baseName = "violet";
|
||||
else if (h < 315) baseName = "magenta";
|
||||
else baseName = "red-magenta";
|
||||
const descriptors = [];
|
||||
if (s > 80) descriptors.push("vibrant");
|
||||
else if (s < 30) descriptors.push("muted");
|
||||
if (l > 80) descriptors.push("light");
|
||||
else if (l < 30) descriptors.push("dark");
|
||||
return descriptors.length > 0 ? `${descriptors.join(" ")} ${baseName}` : baseName;
|
||||
}
|
||||
function getColorContrast(hex) {
|
||||
const { r, g, b } = hexToRGB(hex);
|
||||
const luminance = (.299 * r + .587 * g + .114 * b) / 255;
|
||||
return luminance > .5 ? "dark" : "light";
|
||||
}
|
||||
|
||||
//#endregion
|
||||
export { getColorContrast, getColorName };
|
||||
//# sourceMappingURL=utils.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { default } from '@shikijs/langs/gjs'
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import css from './css.mjs'
|
||||
import scss from './scss.mjs'
|
||||
import less from './less.mjs'
|
||||
import stylus from './stylus.mjs'
|
||||
import postcss from './postcss.mjs'
|
||||
import javascript from './javascript.mjs'
|
||||
|
||||
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Vue Vine\",\"name\":\"vue-vine\",\"patterns\":[{\"include\":\"#directives\"},{\"include\":\"#statements\"},{\"include\":\"#shebang\"}],\"repository\":{\"access-modifier\":{\"match\":\"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\",\"name\":\"storage.modifier.vue-vine\"},\"after-operator-block-as-object-literal\":{\"begin\":\"(?<!\\\\+\\\\+|--)(?<=[!(+,:=>?\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.vue-vine\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.vue-vine\"}},\"name\":\"meta.objectliteral.vue-vine\",\"patterns\":[{\"include\":\"#object-member\"}]},\"array-binding-pattern\":{\"begin\":\"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.rest.vue-vine\"},\"2\":{\"name\":\"punctuation.definition.binding-pattern.array.vue-vine\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.binding-pattern.array.vue-vine\"}},\"patterns\":[{\"include\":\"#binding-element\"},{\"include\":\"#punctuation-comma\"}]},\"array-binding-pattern-const\":{\"begin\":\"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.rest.vue-vine\"},\"2\":{\"name\":\"punctuation.definition.binding-pattern.array.vue-vine\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.binding-pattern.array.vue-vine\"}},\"patterns\":[{\"include\":\"#binding-element-const\"},{\"include\":\"#punctuation-comma\"}]},\"array-literal\":{\"begin\":\"\\\\s*(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"meta.brace.square.vue-vine\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.vue-vine\"}},\"name\":\"meta.array.literal.vue-vine\",\"patterns\":[{\"include\":\"#expression\"},{\"include\":\"#punctuation-comma\"}]},\"arrow-function\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"storage.modifier.async.vue-vine\"},\"2\":{\"name\":\"variable.parameter.vue-vine\"}},\"match\":\"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)\",\"name\":\"meta.arrow.vue-vine\"},{\"begin\":\"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async))?((?<![]!)}])\\\\s*(?=((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\\"'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\\"([^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.async.vue-vine\"}},\"end\":\"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))\",\"name\":\"meta.arrow.vue-vine\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#type-parameters\"},{\"include\":\"#function-parameters\"},{\"include\":\"#arrow-return-type\"},{\"include\":\"#pLine truncated
|
||||
|
||||
export default [
|
||||
...css,
|
||||
...scss,
|
||||
...less,
|
||||
...stylus,
|
||||
...postcss,
|
||||
...javascript,
|
||||
lang
|
||||
]
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sailboat.mjs","sources":["../../../src/icons/sailboat.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'sailboat',\n size: 24,\n node: [\n ['path', { d: 'M10 2v15', key: '1qf71f' }],\n [\n 'path',\n { d: 'M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z', key: '1pxcvx' },\n ],\n [\n 'path',\n {\n d: 'M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z',\n key: '5oog16',\n },\n ],\n ],\n};\n\n/**\n * @component @name Sailboat\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/sailboat\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Sailboat: LucideIcon = createLucideIcon(__iconData);\n\nexport default Sailboat;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACzC;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA,EAAE,CAAA,CAAA,CAAG,mEAAA,CAAA,CAAqE,CAAA,CAAA,CAAA,EAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAS,CAAA,CAAA,CAAA,CAAA,C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@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "mail-dot",
|
||||
size: 24,
|
||||
node: [
|
||||
[
|
||||
"path",
|
||||
{ d: "M12.674 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4.675", key: "p1lhjt" }
|
||||
],
|
||||
["path", { d: "m2 7 9 5.701a2 2 0 0 0 2 0l1.084-.686", key: "1fjuug" }],
|
||||
["circle", { cx: "19", cy: "7", r: "3", key: "4p623i" }]
|
||||
]
|
||||
};
|
||||
const MailDot = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, MailDot as default };
|
||||
//# sourceMappingURL=mail-dot.mjs.map
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "dice-5",
|
||||
size: 24,
|
||||
node: [
|
||||
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
||||
["path", { d: "M16 8h.01", key: "cr5u4v" }],
|
||||
["path", { d: "M8 8h.01", key: "1e4136" }],
|
||||
["path", { d: "M8 16h.01", key: "18s6g9" }],
|
||||
["path", { d: "M16 16h.01", key: "1f9h7w" }],
|
||||
["path", { d: "M12 12h.01", key: "1mp3jc" }]
|
||||
]
|
||||
};
|
||||
const Dice5 = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, Dice5 as default };
|
||||
//# sourceMappingURL=dice-5.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bomb.mjs","sources":["../../../src/icons/bomb.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'bomb',\n size: 24,\n node: [\n ['circle', { cx: '11', cy: '13', r: '9', key: 'hd149' }],\n [\n 'path',\n {\n d: 'M14.35 4.65 16.3 2.7a2.41 2.41 0 0 1 3.4 0l1.6 1.6a2.4 2.4 0 0 1 0 3.4l-1.95 1.95',\n key: 'jp4j1b',\n },\n ],\n ['path', { d: 'm22 2-1.5 1.5', key: 'ay92ug' }],\n ],\n};\n\n/**\n * @component @name Bomb\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/bomb\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Bomb: LucideIcon = createLucideIcon(__iconData);\n\nexport default Bomb;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ,CAAC,QAAA,CAAA,CAAU,CAAA,CAAE,EAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAI,IAAA,CAAA,CAAM,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAK,GAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAS,CAAA;AAAA,CAAA,CAAA,CAAA,CACvD;AAAA,CAAA,CAAA,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,CAAA,CAAA,CAAmB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment.mts';
|
||||
export type Source = ReverseSegment[][];
|
||||
export default function buildBySources(decoded: readonly SourceMapSegment[][], memos: unknown[]): Source[];
|
||||
//# sourceMappingURL=by-source.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"strikethrough.mjs","sources":["../../../src/icons/strikethrough.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'strikethrough',\n size: 24,\n node: [\n ['path', { d: 'M16 4H9a3 3 0 0 0-2.83 4', key: '43sutm' }],\n ['path', { d: 'M14 12a4 4 0 0 1 0 8H6', key: 'nlfj13' }],\n ['line', { x1: '4', x2: '20', y1: '12', y2: '12', key: '1e0a9i' }],\n ],\n};\n\n/**\n * @component @name Strikethrough\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/strikethrough\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Strikethrough: LucideIcon = createLucideIcon(__iconData);\n\nexport default Strikethrough;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAA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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
export {};
|
||||
|
||||
import { webcrypto } from "crypto";
|
||||
|
||||
type _Crypto = typeof globalThis extends { onmessage: any } ? {} : webcrypto.Crypto;
|
||||
type _CryptoKey = typeof globalThis extends { onmessage: any } ? {} : webcrypto.CryptoKey;
|
||||
type _SubtleCrypto = typeof globalThis extends { onmessage: any } ? {} : webcrypto.SubtleCrypto;
|
||||
|
||||
declare global {
|
||||
interface Crypto extends _Crypto {}
|
||||
var Crypto: typeof globalThis extends { onmessage: any; Crypto: infer T } ? T : {
|
||||
prototype: webcrypto.Crypto;
|
||||
new(): webcrypto.Crypto;
|
||||
};
|
||||
|
||||
interface CryptoKey extends _CryptoKey {}
|
||||
var CryptoKey: typeof globalThis extends { onmessage: any; CryptoKey: infer T } ? T : {
|
||||
prototype: webcrypto.CryptoKey;
|
||||
new(): webcrypto.CryptoKey;
|
||||
};
|
||||
|
||||
interface SubtleCrypto extends _SubtleCrypto {}
|
||||
var SubtleCrypto: typeof globalThis extends { onmessage: any; SubtleCrypto: infer T } ? T : {
|
||||
prototype: webcrypto.SubtleCrypto;
|
||||
new(): webcrypto.SubtleCrypto;
|
||||
supports(
|
||||
operation: string,
|
||||
algorithm: webcrypto.AlgorithmIdentifier,
|
||||
length?: number,
|
||||
): boolean;
|
||||
supports(
|
||||
operation: string,
|
||||
algorithm: webcrypto.AlgorithmIdentifier,
|
||||
additionalAlgorithm: webcrypto.AlgorithmIdentifier,
|
||||
): boolean;
|
||||
};
|
||||
|
||||
var crypto: typeof globalThis extends { onmessage: any; crypto: infer T } ? T : webcrypto.Crypto;
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
<script lang="ts">
|
||||
import type { DateValue } from '@internationalized/date'
|
||||
import type { PrimitiveProps } from '@/Primitive'
|
||||
|
||||
export interface RangeCalendarPrevProps extends PrimitiveProps {
|
||||
/** The function to be used for the prev page. Overwrites the `prevPage` function set on the `RangeCalendarRoot`. */
|
||||
prevPage?: (placeholder: DateValue) => DateValue
|
||||
}
|
||||
|
||||
export interface RangeCalendarPrevSlot {
|
||||
default?: (props: {
|
||||
/** Current disable state */
|
||||
disabled: boolean
|
||||
}) => any
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { Primitive } from '@/Primitive'
|
||||
import { injectRangeCalendarRootContext } from './RangeCalendarRoot.vue'
|
||||
|
||||
const props = withDefaults(defineProps<RangeCalendarPrevProps>(), { as: 'button' })
|
||||
defineSlots<RangeCalendarPrevSlot>()
|
||||
|
||||
const disabled = computed(() => rootContext.disabled.value || rootContext.isPrevButtonDisabled(props.prevPage))
|
||||
|
||||
const rootContext = injectRangeCalendarRootContext()
|
||||
|
||||
function handleClick() {
|
||||
if (disabled.value)
|
||||
return
|
||||
rootContext.prevPage(props.prevPage)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive
|
||||
:as="props.as"
|
||||
:as-child="props.asChild"
|
||||
aria-label="Previous page"
|
||||
:type="props.as === 'button' ? 'button' : undefined"
|
||||
:aria-disabled="disabled || undefined"
|
||||
:data-disabled="disabled || undefined"
|
||||
:disabled="disabled"
|
||||
@click="handleClick"
|
||||
>
|
||||
<slot :disabled>
|
||||
Prev page
|
||||
</slot>
|
||||
</Primitive>
|
||||
</template>
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PinInputInput.js","names":[],"sources":["../../src/PinInput/PinInputInput.vue","../../src/PinInput/PinInputInput.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;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QAAO,CAAC,YAAY,QAAK;IACxC,cAAU,CAAA,UAAA,EAAe,QAAA,QAAK,EAAA,IAAA,EAAW,cAAA,MAAc,QAAM;IAC7D,SAAK,OAAA,OAAA,OAAA,KAAA,CAAA,WAAE,YAAY,OAAM;IACzB,WAAO;cAA8B,eAAa;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA,EAAA;cAC/B,iBAAe,CAAA,WAAA,EAAA;cAClB,cAAY,CAAA,QAAA,EAAA;;IAC5B,aAAW;IACX,SAAO;IACP,QAAM;IACN,SAAO;IACP,oBAAkB,MAAA,uBAAsB;IACxC,kBAAgB,MAAA,qBAAoB;;qBAErC,MAAQ,CAAR,WAAQ,KAAA,QAAA,UAAA"}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import r from './r.mjs'
|
||||
|
||||
const lang = Object.freeze(JSON.parse("{\"displayName\":\"TeX\",\"name\":\"tex\",\"patterns\":[{\"include\":\"#iffalse-block\"},{\"include\":\"#macro-control\"},{\"include\":\"#catcode\"},{\"include\":\"#comment\"},{\"match\":\"[]\\\\[]\",\"name\":\"punctuation.definition.brackets.tex\"},{\"include\":\"#dollar-math\"},{\"match\":\"\\\\\\\\\\\\\\\\\",\"name\":\"keyword.control.newline.tex\"},{\"include\":\"#ifnextchar\"},{\"include\":\"#macro-general\"}],\"repository\":{\"braces\":{\"begin\":\"(?<!\\\\\\\\)\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.group.begin.tex\"}},\"end\":\"(?<!\\\\\\\\)}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.group.end.tex\"}},\"name\":\"meta.group.braces.tex\",\"patterns\":[{\"include\":\"#braces\"}]},\"catcode\":{\"captures\":{\"1\":{\"name\":\"keyword.control.catcode.tex\"},\"2\":{\"name\":\"punctuation.definition.keyword.tex\"},\"3\":{\"name\":\"punctuation.separator.key-value.tex\"},\"4\":{\"name\":\"constant.numeric.category.tex\"}},\"match\":\"((\\\\\\\\)catcode)`\\\\\\\\?.(=)(\\\\d+)\",\"name\":\"meta.catcode.tex\"},\"comment\":{\"begin\":\"(^[\\\\t ]+)?(?=%)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.tex\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"%:?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.tex\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.percentage.tex\"},{\"begin\":\"^(%!TEX) (\\\\S*) =\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.tex\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.percentage.directive.tex\"}]},\"conditionals\":{\"begin\":\"(?<=^\\\\s*)\\\\\\\\if(?!f\\\\b)[a-z]*\",\"end\":\"(?<=^\\\\s*)\\\\\\\\fi\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#conditionals\"}]},\"dollar-math\":{\"begin\":\"(\\\\$\\\\$?)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.tex\"}},\"end\":\"(\\\\1)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.tex\"}},\"name\":\"meta.math.block.tex support.class.math.block.tex\",\"patterns\":[{\"match\":\"\\\\\\\\\\\\$\",\"name\":\"constant.character.escape.tex\"},{\"include\":\"#math-content\"},{\"include\":\"$self\"}]},\"iffalse-block\":{\"begin\":\"(?<=^\\\\s*)((\\\\\\\\)iffalse)(?!\\\\s*[{}]\\\\s*\\\\\\\\fi\\\\b)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.tex\"},\"2\":{\"name\":\"punctuation.definition.keyword.tex\"}},\"contentName\":\"comment.line.percentage.tex\",\"end\":\"((\\\\\\\\)(?:else|fi))\\\\b\",\"endCaptures\":{\"1\":{\"name\":\"keyword.control.tex\"},\"2\":{\"name\":\"punctuation.definition.keyword.tex\"}},\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#braces\"},{\"include\":\"#conditionals\"}]},\"ifnextchar\":{\"match\":\"\\\\\\\\@ifnextchar[(\\\\[{]\",\"name\":\"keyword.control.ifnextchar.tex\"},\"macro-control\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.keyword.tex\"}},\"match\":\"(\\\\\\\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)(?![@-Za-z])\",\"name\":\"keyword.control.tex\"},\"macro-general\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.function.tex\"}},\"match\":\"(\\\\\\\\)_*[@\\\\p{Alphabetic}]+(?:_[@\\\\p{Alphabetic}]+)*:[DFNTVcefnopvwx]*\",\"name\":\"support.class.general.latex3.tex\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.function.tex\"}},\"match\":\"(\\\\.)[@\\\\p{Alphabetic}]+(?:_[@\\\\p{Alphabetic}]+)*:[DFNTVcefnopvwx]*\",\"name\":\"support.class.general.latex3.tex\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.function.tex\"}},\"match\":\"(\\\\\\\\)(?:[,;]|[@\\\\p{Alphabetic}]+)\",\"name\":\"support.function.general.tex\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.keyword.tex\"}},\"match\":\"(\\\\\\\\)[^@-Za-z]\",\"name\":\"constant.character.escape.tex\"}]},\"math-content\":{\"patterns\":[{\"begin\":\"((\\\\\\\\)(?:text|mbox))(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.math.tex\"},\"2\":{\"name\":\"punctuation.definition.function.tex\"},\"3\":{\"name\":\"punctuation.definition.arguments.begin.tex meta.text.normal.tex\"}},\"contentName\":\"meta.text.normal.tex\",\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.arguments.end.tex meta.text.normal.tex\"}},\"patterns\":[{\"include\":\"#math-content\"},{\"include\":\"$self\"}]},{\"match\":\"\\\\\\\\[{}]\",\"name\":\"punctuation.math.bracket.pair.tex\"},{\"match\":\"\\\\\\\\(left|right|((bigg??|Bigg??)[lr]?))([]().<>\\\\[|]|\\\\\\\\[{|}]|\\\\\\\\[lr]?[Vv]ert|\\\\\\\\[lr]angle)\",\"name\":\"punctuation.math.bracket.pair.big.tex\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.constant.math.tex\"}},\"match\":\"(\\\\\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|Line truncated
|
||||
|
||||
export default [
|
||||
...r,
|
||||
lang
|
||||
]
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/* Alias cts for typescript */
|
||||
export { default } from './typescript.mjs'
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
type Key = string | number | symbol;
|
||||
/**
|
||||
* SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the
|
||||
* index of the `key` in the backing array.
|
||||
*
|
||||
* This is designed to allow synchronizing a second array with the contents of the backing array,
|
||||
* like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,
|
||||
* and there are never duplicates.
|
||||
*/
|
||||
export declare class SetArray<T extends Key = Key> {
|
||||
private _indexes;
|
||||
array: readonly T[];
|
||||
constructor();
|
||||
}
|
||||
/**
|
||||
* Gets the index associated with `key` in the backing array, if it is already present.
|
||||
*/
|
||||
export declare function get<T extends Key>(setarr: SetArray<T>, key: T): number | undefined;
|
||||
/**
|
||||
* Puts `key` into the backing array, if it is not already present. Returns
|
||||
* the index of the `key` in the backing array.
|
||||
*/
|
||||
export declare function put<T extends Key>(setarr: SetArray<T>, key: T): number;
|
||||
/**
|
||||
* Pops the last added item out of the SetArray.
|
||||
*/
|
||||
export declare function pop<T extends Key>(setarr: SetArray<T>): void;
|
||||
/**
|
||||
* Removes the key, if it exists in the set.
|
||||
*/
|
||||
export declare function remove<T extends Key>(setarr: SetArray<T>, key: T): void;
|
||||
export {};
|
||||
//# sourceMappingURL=set-array.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { default } from '@shikijs/themes/plastic'
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "../../cjs/_class_check_private_static_field_descriptor.cjs",
|
||||
"module": "../../esm/_class_check_private_static_field_descriptor.js"
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ambulance.mjs","sources":["../../../src/icons/ambulance.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'ambulance',\n size: 24,\n node: [\n ['path', { d: 'M10 10H6', key: '1bsnug' }],\n ['path', { d: 'M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2', key: 'wrbu53' }],\n [\n 'path',\n {\n d: 'M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14',\n key: 'lrkjwd',\n },\n ],\n ['path', { d: 'M8 8v4', key: '1fwk8c' }],\n ['path', { d: 'M9 18h6', key: 'x1upvd' }],\n ['circle', { cx: '17', cy: '18', r: '2', key: '332jqn' }],\n ['circle', { cx: '7', cy: '18', r: '2', key: '19iecd' }],\n ],\n};\n\n/**\n * @component @name Ambulance\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/ambulance\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst Ambulance: LucideIcon = createLucideIcon(__iconData);\n\nexport default Ambulance;\n"],"names":[],"mappings":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AA,CAAA,CAAA,CACvC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACxC,CAAC,QAAA,CAAA,CAAU,CAAA,CAAE,EAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAI,IAAA,CAAA,CAAM,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAK,GAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAE,CAAA,CAAA,CAAA,CAAI,GAAA,CAAA,CAAK,CAAA,CAAA,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,EAAK,CAAA,CAAA,CAAA,CAAA,CAAK,QAAA,CAAA,CAAU;AAAA,CAAA,CAAA;AAE3D,CAAA;AAaA,CAAA,CAAA,CAAA,CAAALine truncated
|
||||
+759
@@ -0,0 +1,759 @@
|
||||
import { IfAny } from '@vue/shared';
|
||||
|
||||
export declare enum TrackOpTypes {
|
||||
GET = "get",
|
||||
HAS = "has",
|
||||
ITERATE = "iterate"
|
||||
}
|
||||
export declare enum TriggerOpTypes {
|
||||
SET = "set",
|
||||
ADD = "add",
|
||||
DELETE = "delete",
|
||||
CLEAR = "clear"
|
||||
}
|
||||
export declare enum ReactiveFlags {
|
||||
SKIP = "__v_skip",
|
||||
IS_REACTIVE = "__v_isReactive",
|
||||
IS_READONLY = "__v_isReadonly",
|
||||
IS_SHALLOW = "__v_isShallow",
|
||||
RAW = "__v_raw",
|
||||
IS_REF = "__v_isRef"
|
||||
}
|
||||
|
||||
export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
|
||||
declare const ReactiveMarkerSymbol: unique symbol;
|
||||
export interface ReactiveMarker {
|
||||
[ReactiveMarkerSymbol]?: void;
|
||||
}
|
||||
export type Reactive<T> = UnwrapNestedRefs<T> & (T extends readonly any[] ? ReactiveMarker : {});
|
||||
/**
|
||||
* Returns a reactive proxy of the object.
|
||||
*
|
||||
* The reactive conversion is "deep": it affects all nested properties. A
|
||||
* reactive object also deeply unwraps any properties that are refs while
|
||||
* maintaining reactivity.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const obj = reactive({ count: 0 })
|
||||
* ```
|
||||
*
|
||||
* @param target - The source object.
|
||||
* @see {@link https://vuejs.org/api/reactivity-core.html#reactive}
|
||||
*/
|
||||
export declare function reactive<T extends object>(target: T): Reactive<T>;
|
||||
declare class ShallowReactiveBrandClass {
|
||||
private __shallowReactiveBrand?;
|
||||
}
|
||||
type ShallowReactiveBrand = ShallowReactiveBrandClass;
|
||||
export type ShallowReactive<T> = T & ShallowReactiveBrand;
|
||||
/**
|
||||
* Shallow version of {@link reactive}.
|
||||
*
|
||||
* Unlike {@link reactive}, there is no deep conversion: only root-level
|
||||
* properties are reactive for a shallow reactive object. Property values are
|
||||
* stored and exposed as-is - this also means properties with ref values will
|
||||
* not be automatically unwrapped.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const state = shallowReactive({
|
||||
* foo: 1,
|
||||
* nested: {
|
||||
* bar: 2
|
||||
* }
|
||||
* })
|
||||
*
|
||||
* // mutating state's own properties is reactive
|
||||
* state.foo++
|
||||
*
|
||||
* // ...but does not convert nested objects
|
||||
* isReactive(state.nested) // false
|
||||
*
|
||||
* // NOT reactive
|
||||
* state.nested.bar++
|
||||
* ```
|
||||
*
|
||||
* @param target - The source object.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowreactive}
|
||||
*/
|
||||
export declare function shallowReactive<T extends object>(target: T): ShallowReactive<T>;
|
||||
type Primitive = string | number | boolean | bigint | symbol | undefined | null;
|
||||
type Builtin = Primitive | Function | Date | Error | RegExp;
|
||||
export type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends Ref<infer U, unknown> ? Readonly<Ref<DeepReadonly<U>>> : T extends {} ? {
|
||||
readonly [K in keyof T]: DeepReadonly<T[K]>;
|
||||
} : Readonly<T>;
|
||||
/**
|
||||
* Takes an object (reactive or plain) or a ref and returns a readonly proxy to
|
||||
* the original.
|
||||
*
|
||||
* A readonly proxy is deep: any nested property accessed will be readonly as
|
||||
* well. It also has the same ref-unwrapping behavior as {@link reactive},
|
||||
* except the unwrapped values will also be made readonly.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const original = reactive({ count: 0 })
|
||||
*
|
||||
* const copy = readonly(original)
|
||||
*
|
||||
* watchEffect(() => {
|
||||
* // works for reactivity tracking
|
||||
* console.log(copy.count)
|
||||
* })
|
||||
*
|
||||
* // mutating original will trigger watchers relying on the copy
|
||||
* original.count++
|
||||
*
|
||||
* // mutating the copy will fail and result in a warning
|
||||
* copy.count++ // warning!
|
||||
* ```
|
||||
*
|
||||
* @param target - The source object.
|
||||
* @see {@link https://vuejs.org/api/reactivity-core.html#readonly}
|
||||
*/
|
||||
export declare function readonly<T extends object>(target: T): DeepReadonly<UnwrapNestedRefs<T>>;
|
||||
/**
|
||||
* Shallow version of {@link readonly}.
|
||||
*
|
||||
* Unlike {@link readonly}, there is no deep conversion: only root-level
|
||||
* properties are made readonly. Property values are stored and exposed as-is -
|
||||
* this also means properties with ref values will not be automatically
|
||||
* unwrapped.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const state = shallowReadonly({
|
||||
* foo: 1,
|
||||
* nested: {
|
||||
* bar: 2
|
||||
* }
|
||||
* })
|
||||
*
|
||||
* // mutating state's own properties will fail
|
||||
* state.foo++
|
||||
*
|
||||
* // ...but works on nested objects
|
||||
* isReadonly(state.nested) // false
|
||||
*
|
||||
* // works
|
||||
* state.nested.bar++
|
||||
* ```
|
||||
*
|
||||
* @param target - The source object.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowreadonly}
|
||||
*/
|
||||
export declare function shallowReadonly<T extends object>(target: T): Readonly<T>;
|
||||
/**
|
||||
* Checks if an object is a proxy created by {@link reactive} or
|
||||
* {@link shallowReactive} (or {@link ref} in some cases).
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* isReactive(reactive({})) // => true
|
||||
* isReactive(readonly(reactive({}))) // => true
|
||||
* isReactive(ref({}).value) // => true
|
||||
* isReactive(readonly(ref({})).value) // => true
|
||||
* isReactive(ref(true)) // => false
|
||||
* isReactive(shallowRef({}).value) // => false
|
||||
* isReactive(shallowReactive({})) // => true
|
||||
* ```
|
||||
*
|
||||
* @param value - The value to check.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isreactive}
|
||||
*/
|
||||
export declare function isReactive(value: unknown): boolean;
|
||||
/**
|
||||
* Checks whether the passed value is a readonly object. The properties of a
|
||||
* readonly object can change, but they can't be assigned directly via the
|
||||
* passed object.
|
||||
*
|
||||
* The proxies created by {@link readonly} and {@link shallowReadonly} are
|
||||
* both considered readonly, as is a computed ref without a set function.
|
||||
*
|
||||
* @param value - The value to check.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isreadonly}
|
||||
*/
|
||||
export declare function isReadonly(value: unknown): boolean;
|
||||
export declare function isShallow(value: unknown): boolean;
|
||||
/**
|
||||
* Checks if an object is a proxy created by {@link reactive},
|
||||
* {@link readonly}, {@link shallowReactive} or {@link shallowReadonly}.
|
||||
*
|
||||
* @param value - The value to check.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
|
||||
*/
|
||||
export declare function isProxy(value: any): boolean;
|
||||
/**
|
||||
* Returns the raw, original object of a Vue-created proxy.
|
||||
*
|
||||
* `toRaw()` can return the original object from proxies created by
|
||||
* {@link reactive}, {@link readonly}, {@link shallowReactive} or
|
||||
* {@link shallowReadonly}.
|
||||
*
|
||||
* This is an escape hatch that can be used to temporarily read without
|
||||
* incurring proxy access / tracking overhead or write without triggering
|
||||
* changes. It is **not** recommended to hold a persistent reference to the
|
||||
* original object. Use with caution.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const foo = {}
|
||||
* const reactiveFoo = reactive(foo)
|
||||
*
|
||||
* console.log(toRaw(reactiveFoo) === foo) // true
|
||||
* ```
|
||||
*
|
||||
* @param observed - The object for which the "raw" value is requested.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#toraw}
|
||||
*/
|
||||
export declare function toRaw<T>(observed: T): T;
|
||||
export type Raw<T> = T & {
|
||||
[RawSymbol]?: true;
|
||||
};
|
||||
/**
|
||||
* Marks an object so that it will never be converted to a proxy. Returns the
|
||||
* object itself.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const foo = markRaw({})
|
||||
* console.log(isReactive(reactive(foo))) // false
|
||||
*
|
||||
* // also works when nested inside other reactive objects
|
||||
* const bar = reactive({ foo })
|
||||
* console.log(isReactive(bar.foo)) // false
|
||||
* ```
|
||||
*
|
||||
* **Warning:** `markRaw()` together with the shallow APIs such as
|
||||
* {@link shallowReactive} allow you to selectively opt-out of the default
|
||||
* deep reactive/readonly conversion and embed raw, non-proxied objects in your
|
||||
* state graph.
|
||||
*
|
||||
* @param value - The object to be marked as "raw".
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#markraw}
|
||||
*/
|
||||
export declare function markRaw<T extends object>(value: T): Raw<T>;
|
||||
/**
|
||||
* Returns a reactive proxy of the given value (if possible).
|
||||
*
|
||||
* If the given value is not an object, the original value itself is returned.
|
||||
*
|
||||
* @param value - The value for which a reactive proxy shall be created.
|
||||
*/
|
||||
export declare const toReactive: <T extends unknown>(value: T) => T;
|
||||
/**
|
||||
* Returns a readonly proxy of the given value (if possible).
|
||||
*
|
||||
* If the given value is not an object, the original value itself is returned.
|
||||
*
|
||||
* @param value - The value for which a readonly proxy shall be created.
|
||||
*/
|
||||
export declare const toReadonly: <T extends unknown>(value: T) => DeepReadonly<T>;
|
||||
|
||||
export type EffectScheduler = (...args: any[]) => any;
|
||||
export type DebuggerEvent = {
|
||||
effect: Subscriber;
|
||||
} & DebuggerEventExtraInfo;
|
||||
export type DebuggerEventExtraInfo = {
|
||||
target: object;
|
||||
type: TrackOpTypes | TriggerOpTypes;
|
||||
key: any;
|
||||
newValue?: any;
|
||||
oldValue?: any;
|
||||
oldTarget?: Map<any, any> | Set<any>;
|
||||
};
|
||||
export interface DebuggerOptions {
|
||||
onTrack?: (event: DebuggerEvent) => void;
|
||||
onTrigger?: (event: DebuggerEvent) => void;
|
||||
}
|
||||
export interface ReactiveEffectOptions extends DebuggerOptions {
|
||||
scheduler?: EffectScheduler;
|
||||
allowRecurse?: boolean;
|
||||
onStop?: () => void;
|
||||
}
|
||||
export interface ReactiveEffectRunner<T = any> {
|
||||
(): T;
|
||||
effect: ReactiveEffect;
|
||||
}
|
||||
export declare enum EffectFlags {
|
||||
/**
|
||||
* ReactiveEffect only
|
||||
*/
|
||||
ACTIVE = 1,
|
||||
RUNNING = 2,
|
||||
TRACKING = 4,
|
||||
NOTIFIED = 8,
|
||||
DIRTY = 16,
|
||||
ALLOW_RECURSE = 32,
|
||||
PAUSED = 64,
|
||||
EVALUATED = 128
|
||||
}
|
||||
/**
|
||||
* Subscriber is a type that tracks (or subscribes to) a list of deps.
|
||||
*/
|
||||
interface Subscriber extends DebuggerOptions {
|
||||
}
|
||||
export declare class ReactiveEffect<T = any> implements Subscriber, ReactiveEffectOptions {
|
||||
fn: () => T;
|
||||
scheduler?: EffectScheduler;
|
||||
onStop?: () => void;
|
||||
onTrack?: (event: DebuggerEvent) => void;
|
||||
onTrigger?: (event: DebuggerEvent) => void;
|
||||
constructor(fn: () => T);
|
||||
pause(): void;
|
||||
resume(): void;
|
||||
run(): T;
|
||||
stop(): void;
|
||||
trigger(): void;
|
||||
get dirty(): boolean;
|
||||
}
|
||||
export declare function effect<T = any>(fn: () => T, options?: ReactiveEffectOptions): ReactiveEffectRunner<T>;
|
||||
/**
|
||||
* Stops the effect associated with the given runner.
|
||||
*
|
||||
* @param runner - Association with the effect to stop tracking.
|
||||
*/
|
||||
export declare function stop(runner: ReactiveEffectRunner): void;
|
||||
/**
|
||||
* Temporarily pauses tracking.
|
||||
*/
|
||||
export declare function pauseTracking(): void;
|
||||
/**
|
||||
* Re-enables effect tracking (if it was paused).
|
||||
*/
|
||||
export declare function enableTracking(): void;
|
||||
/**
|
||||
* Resets the previous global effect tracking state.
|
||||
*/
|
||||
export declare function resetTracking(): void;
|
||||
/**
|
||||
* Registers a cleanup function for the current active effect.
|
||||
* The cleanup function is called right before the next effect run, or when the
|
||||
* effect is stopped.
|
||||
*
|
||||
* Throws a warning if there is no current active effect. The warning can be
|
||||
* suppressed by passing `true` to the second argument.
|
||||
*
|
||||
* @param fn - the cleanup function to be registered
|
||||
* @param failSilently - if `true`, will not throw warning when called without
|
||||
* an active effect.
|
||||
*/
|
||||
export declare function onEffectCleanup(fn: () => void, failSilently?: boolean): void;
|
||||
|
||||
declare const ComputedRefSymbol: unique symbol;
|
||||
declare const WritableComputedRefSymbol: unique symbol;
|
||||
interface BaseComputedRef<T, S = T> extends Ref<T, S> {
|
||||
[ComputedRefSymbol]: true;
|
||||
/**
|
||||
* @deprecated computed no longer uses effect
|
||||
*/
|
||||
effect: ComputedRefImpl;
|
||||
}
|
||||
export interface ComputedRef<T = any> extends BaseComputedRef<T> {
|
||||
readonly value: T;
|
||||
}
|
||||
export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
|
||||
[WritableComputedRefSymbol]: true;
|
||||
}
|
||||
export type ComputedGetter<T> = (oldValue?: T) => T;
|
||||
export type ComputedSetter<T> = (newValue: T) => void;
|
||||
export interface WritableComputedOptions<T, S = T> {
|
||||
get: ComputedGetter<T>;
|
||||
set: ComputedSetter<S>;
|
||||
}
|
||||
/**
|
||||
* @private exported by @vue/reactivity for Vue core use, but not exported from
|
||||
* the main vue package
|
||||
*/
|
||||
export declare class ComputedRefImpl<T = any> implements Subscriber {
|
||||
fn: ComputedGetter<T>;
|
||||
private readonly setter;
|
||||
effect: this;
|
||||
onTrack?: (event: DebuggerEvent) => void;
|
||||
onTrigger?: (event: DebuggerEvent) => void;
|
||||
constructor(fn: ComputedGetter<T>, setter: ComputedSetter<T> | undefined, isSSR: boolean);
|
||||
get value(): T;
|
||||
set value(newValue: T);
|
||||
}
|
||||
/**
|
||||
* Takes a getter function and returns a readonly reactive ref object for the
|
||||
* returned value from the getter. It can also take an object with get and set
|
||||
* functions to create a writable ref object.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* // Creating a readonly computed ref:
|
||||
* const count = ref(1)
|
||||
* const plusOne = computed(() => count.value + 1)
|
||||
*
|
||||
* console.log(plusOne.value) // 2
|
||||
* plusOne.value++ // error
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* // Creating a writable computed ref:
|
||||
* const count = ref(1)
|
||||
* const plusOne = computed({
|
||||
* get: () => count.value + 1,
|
||||
* set: (val) => {
|
||||
* count.value = val - 1
|
||||
* }
|
||||
* })
|
||||
*
|
||||
* plusOne.value = 1
|
||||
* console.log(count.value) // 0
|
||||
* ```
|
||||
*
|
||||
* @param getter - Function that produces the next value.
|
||||
* @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
|
||||
* @see {@link https://vuejs.org/api/reactivity-core.html#computed}
|
||||
*/
|
||||
export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
|
||||
export declare function computed<T, S = T>(options: WritableComputedOptions<T, S>, debugOptions?: DebuggerOptions): WritableComputedRef<T, S>;
|
||||
|
||||
declare const RefSymbol: unique symbol;
|
||||
declare const RawSymbol: unique symbol;
|
||||
export interface Ref<T = any, S = T> {
|
||||
get value(): T;
|
||||
set value(_: S);
|
||||
/**
|
||||
* Type differentiator only.
|
||||
* We need this to be in public d.ts but don't want it to show up in IDE
|
||||
* autocomplete, so we use a private Symbol instead.
|
||||
*/
|
||||
[RefSymbol]: true;
|
||||
}
|
||||
/**
|
||||
* Checks if a value is a ref object.
|
||||
*
|
||||
* @param r - The value to inspect.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isref}
|
||||
*/
|
||||
export declare function isRef<T>(r: Ref<T> | unknown): r is Ref<T>;
|
||||
/**
|
||||
* Takes an inner value and returns a reactive and mutable ref object, which
|
||||
* has a single property `.value` that points to the inner value.
|
||||
*
|
||||
* @param value - The object to wrap in the ref.
|
||||
* @see {@link https://vuejs.org/api/reactivity-core.html#ref}
|
||||
*/
|
||||
export declare function ref<T>(value: T): [T] extends [Ref] ? IfAny<T, Ref<T>, T> : Ref<UnwrapRef<T>, UnwrapRef<T> | T>;
|
||||
export declare function ref<T = any>(): Ref<T | undefined>;
|
||||
declare const ShallowRefMarker: unique symbol;
|
||||
export type ShallowRef<T = any, S = T> = Ref<T, S> & {
|
||||
[ShallowRefMarker]?: true;
|
||||
};
|
||||
/**
|
||||
* Shallow version of {@link ref}.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const state = shallowRef({ count: 1 })
|
||||
*
|
||||
* // does NOT trigger change
|
||||
* state.value.count = 2
|
||||
*
|
||||
* // does trigger change
|
||||
* state.value = { count: 2 }
|
||||
* ```
|
||||
*
|
||||
* @param value - The "inner value" for the shallow ref.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowref}
|
||||
*/
|
||||
export declare function shallowRef<T>(value: T): Ref extends T ? T extends Ref ? IfAny<T, ShallowRef<T>, T> : ShallowRef<T> : ShallowRef<T>;
|
||||
export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
|
||||
/**
|
||||
* Force trigger effects that depends on a shallow ref. This is typically used
|
||||
* after making deep mutations to the inner value of a shallow ref.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const shallow = shallowRef({
|
||||
* greet: 'Hello, world'
|
||||
* })
|
||||
*
|
||||
* // Logs "Hello, world" once for the first run-through
|
||||
* watchEffect(() => {
|
||||
* console.log(shallow.value.greet)
|
||||
* })
|
||||
*
|
||||
* // This won't trigger the effect because the ref is shallow
|
||||
* shallow.value.greet = 'Hello, universe'
|
||||
*
|
||||
* // Logs "Hello, universe"
|
||||
* triggerRef(shallow)
|
||||
* ```
|
||||
*
|
||||
* @param ref - The ref whose tied effects shall be executed.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#triggerref}
|
||||
*/
|
||||
export declare function triggerRef(ref: Ref): void;
|
||||
export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
|
||||
export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
|
||||
/**
|
||||
* Returns the inner value if the argument is a ref, otherwise return the
|
||||
* argument itself. This is a sugar function for
|
||||
* `val = isRef(val) ? val.value : val`.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* function useFoo(x: number | Ref<number>) {
|
||||
* const unwrapped = unref(x)
|
||||
* // unwrapped is guaranteed to be number now
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @param ref - Ref or plain value to be converted into the plain value.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
|
||||
*/
|
||||
export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T;
|
||||
/**
|
||||
* Normalizes values / refs / getters to values.
|
||||
* This is similar to {@link unref}, except that it also normalizes getters.
|
||||
* If the argument is a getter, it will be invoked and its return value will
|
||||
* be returned.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* toValue(1) // 1
|
||||
* toValue(ref(1)) // 1
|
||||
* toValue(() => 1) // 1
|
||||
* ```
|
||||
*
|
||||
* @param source - A getter, an existing ref, or a non-function value.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#tovalue}
|
||||
*/
|
||||
export declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
|
||||
/**
|
||||
* Returns a proxy for the given object that shallowly unwraps properties that
|
||||
* are refs. If the object already is reactive, it's returned as-is. If not, a
|
||||
* new reactive proxy is created.
|
||||
*
|
||||
* @param objectWithRefs - Either an already-reactive object or a simple object
|
||||
* that contains refs.
|
||||
*/
|
||||
export declare function proxyRefs<T extends object>(objectWithRefs: T): ShallowUnwrapRef<T>;
|
||||
export type CustomRefFactory<T, S = T> = (track: () => void, trigger: () => void) => {
|
||||
get: () => T;
|
||||
set: (value: S) => void;
|
||||
};
|
||||
/**
|
||||
* Creates a customized ref with explicit control over its dependency tracking
|
||||
* and updates triggering.
|
||||
*
|
||||
* @param factory - The function that receives the `track` and `trigger` callbacks.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#customref}
|
||||
*/
|
||||
export declare function customRef<T, S = T>(factory: CustomRefFactory<T, S>): Ref<T, S>;
|
||||
export type ToRefs<T = any> = {
|
||||
[K in keyof T]: ToRef<T[K]>;
|
||||
};
|
||||
type ArrayStringKey<T> = T extends readonly any[] ? number extends T['length'] ? `${number}` : never : never;
|
||||
type ToRefKey<T> = keyof T | ArrayStringKey<T>;
|
||||
type ToRefValue<T extends object, K extends ToRefKey<T>> = K extends keyof T ? T[K] : T extends readonly (infer V)[] ? K extends ArrayStringKey<T> ? V : never : never;
|
||||
/**
|
||||
* Converts a reactive object to a plain object where each property of the
|
||||
* resulting object is a ref pointing to the corresponding property of the
|
||||
* original object. Each individual ref is created using {@link toRef}.
|
||||
*
|
||||
* @param object - Reactive object to be made into an object of linked refs.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#torefs}
|
||||
*/
|
||||
export declare function toRefs<T extends object>(object: T): ToRefs<T>;
|
||||
export type ToRef<T> = IfAny<T, Ref<T>, [T] extends [Ref] ? T : Ref<T>>;
|
||||
/**
|
||||
* Used to normalize values / refs / getters into refs.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* // returns existing refs as-is
|
||||
* toRef(existingRef)
|
||||
*
|
||||
* // creates a ref that calls the getter on .value access
|
||||
* toRef(() => props.foo)
|
||||
*
|
||||
* // creates normal refs from non-function values
|
||||
* // equivalent to ref(1)
|
||||
* toRef(1)
|
||||
* ```
|
||||
*
|
||||
* Can also be used to create a ref for a property on a source reactive object.
|
||||
* The created ref is synced with its source property: mutating the source
|
||||
* property will update the ref, and vice-versa.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const state = reactive({
|
||||
* foo: 1,
|
||||
* bar: 2
|
||||
* })
|
||||
*
|
||||
* const fooRef = toRef(state, 'foo')
|
||||
*
|
||||
* // mutating the ref updates the original
|
||||
* fooRef.value++
|
||||
* console.log(state.foo) // 2
|
||||
*
|
||||
* // mutating the original also updates the ref
|
||||
* state.foo++
|
||||
* console.log(fooRef.value) // 3
|
||||
* ```
|
||||
*
|
||||
* @param source - A getter, an existing ref, a non-function value, or a
|
||||
* reactive object to create a property ref from.
|
||||
* @param [key] - (optional) Name of the property in the reactive object.
|
||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#toref}
|
||||
*/
|
||||
export declare function toRef<T>(value: T): T extends () => infer R ? Readonly<Ref<R>> : T extends Ref ? T : Ref<UnwrapRef<T>>;
|
||||
export declare function toRef<T extends object, K extends ToRefKey<T>>(object: T, key: K): ToRef<ToRefValue<T, K>>;
|
||||
export declare function toRef<T extends object, K extends ToRefKey<T>>(object: T, key: K, defaultValue: ToRefValue<T, K>): ToRef<Exclude<ToRefValue<T, K>, undefined>>;
|
||||
/**
|
||||
* This is a special exported interface for other packages to declare
|
||||
* additional types that should bail out for ref unwrapping. For example
|
||||
* \@vue/runtime-dom can declare it like so in its d.ts:
|
||||
*
|
||||
* ``` ts
|
||||
* declare module '@vue/reactivity' {
|
||||
* export interface RefUnwrapBailTypes {
|
||||
* runtimeDOMBailTypes: Node | Window
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export interface RefUnwrapBailTypes {
|
||||
}
|
||||
export type ShallowUnwrapRef<T> = T extends ShallowReactiveBrand ? T : {
|
||||
[K in keyof T]: DistributeRef<T[K]>;
|
||||
};
|
||||
type DistributeRef<T> = T extends Ref<infer V, unknown> ? V : T;
|
||||
export type UnwrapRef<T> = T extends ShallowRef<infer V, unknown> ? V : T extends Ref<infer V, unknown> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
|
||||
type UnwrapRefSimple<T> = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
|
||||
[RawSymbol]?: true;
|
||||
} ? T : T extends ShallowReactiveBrand ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? {
|
||||
[K in keyof T]: UnwrapRefSimple<T[K]>;
|
||||
} : T extends object ? {
|
||||
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>;
|
||||
} : T;
|
||||
|
||||
export declare const ITERATE_KEY: unique symbol;
|
||||
export declare const MAP_KEY_ITERATE_KEY: unique symbol;
|
||||
export declare const ARRAY_ITERATE_KEY: unique symbol;
|
||||
/**
|
||||
* Tracks access to a reactive property.
|
||||
*
|
||||
* This will check which effect is running at the moment and record it as dep
|
||||
* which records all effects that depend on the reactive property.
|
||||
*
|
||||
* @param target - Object holding the reactive property.
|
||||
* @param type - Defines the type of access to the reactive property.
|
||||
* @param key - Identifier of the reactive property to track.
|
||||
*/
|
||||
export declare function track(target: object, type: TrackOpTypes, key: unknown): void;
|
||||
/**
|
||||
* Finds all deps associated with the target (or a specific property) and
|
||||
* triggers the effects stored within.
|
||||
*
|
||||
* @param target - The reactive object.
|
||||
* @param type - Defines the type of the operation that needs to trigger effects.
|
||||
* @param key - Can be used to target a specific reactive property in the target object.
|
||||
*/
|
||||
export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>): void;
|
||||
|
||||
export declare class EffectScope {
|
||||
detached: boolean;
|
||||
private _isPaused;
|
||||
private _warnOnRun;
|
||||
readonly __v_skip = true;
|
||||
constructor(detached?: boolean);
|
||||
get active(): boolean;
|
||||
pause(): void;
|
||||
/**
|
||||
* Resumes the effect scope, including all child scopes and effects.
|
||||
*/
|
||||
resume(): void;
|
||||
run<T>(fn: () => T): T | undefined;
|
||||
prevScope: EffectScope | undefined;
|
||||
stop(fromParent?: boolean): void;
|
||||
}
|
||||
/**
|
||||
* Creates an effect scope object which can capture the reactive effects (i.e.
|
||||
* computed and watchers) created within it so that these effects can be
|
||||
* disposed together. For detailed use cases of this API, please consult its
|
||||
* corresponding {@link https://github.com/vuejs/rfcs/blob/master/active-rfcs/0041-reactivity-effect-scope.md | RFC}.
|
||||
*
|
||||
* @param detached - Can be used to create a "detached" effect scope.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#effectscope}
|
||||
*/
|
||||
export declare function effectScope(detached?: boolean): EffectScope;
|
||||
/**
|
||||
* Returns the current active effect scope if there is one.
|
||||
*
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#getcurrentscope}
|
||||
*/
|
||||
export declare function getCurrentScope(): EffectScope | undefined;
|
||||
/**
|
||||
* Registers a dispose callback on the current active effect scope. The
|
||||
* callback will be invoked when the associated effect scope is stopped.
|
||||
*
|
||||
* @param fn - The callback function to attach to the scope's cleanup.
|
||||
* @see {@link https://vuejs.org/api/reactivity-advanced.html#onscopedispose}
|
||||
*/
|
||||
export declare function onScopeDispose(fn: () => void, failSilently?: boolean): void;
|
||||
|
||||
/**
|
||||
* Track array iteration and return:
|
||||
* - if input is reactive: a cloned raw array with reactive values
|
||||
* - if input is readonly: a cloned raw array with readonly values, preserving
|
||||
* reactivity
|
||||
* - if input is raw or shallow: the original raw array
|
||||
*/
|
||||
export declare function reactiveReadArray<T>(array: T[]): T[];
|
||||
/**
|
||||
* Track array iteration and return raw array
|
||||
*/
|
||||
export declare function shallowReadArray<T>(arr: T[]): T[];
|
||||
|
||||
export declare enum WatchErrorCodes {
|
||||
WATCH_GETTER = 2,
|
||||
WATCH_CALLBACK = 3,
|
||||
WATCH_CLEANUP = 4
|
||||
}
|
||||
export type WatchEffect = (onCleanup: OnCleanup) => void;
|
||||
export type WatchSource<T = any> = Ref<T, any> | ComputedRef<T> | (() => T);
|
||||
export type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
||||
export type OnCleanup = (cleanupFn: () => void) => void;
|
||||
export interface WatchOptions<Immediate = boolean> extends DebuggerOptions {
|
||||
immediate?: Immediate;
|
||||
deep?: boolean | number;
|
||||
once?: boolean;
|
||||
scheduler?: WatchScheduler;
|
||||
onWarn?: (msg: string, ...args: any[]) => void;
|
||||
}
|
||||
export type WatchStopHandle = () => void;
|
||||
export interface WatchHandle extends WatchStopHandle {
|
||||
pause: () => void;
|
||||
resume: () => void;
|
||||
stop: () => void;
|
||||
}
|
||||
export type WatchScheduler = (job: () => void, isFirstRun: boolean) => void;
|
||||
/**
|
||||
* Returns the current active effect if there is one.
|
||||
*/
|
||||
export declare function getCurrentWatcher(): ReactiveEffect<any> | undefined;
|
||||
/**
|
||||
* Registers a cleanup callback on the current active effect. This
|
||||
* registered cleanup callback will be invoked right before the
|
||||
* associated effect re-runs.
|
||||
*
|
||||
* @param cleanupFn - The callback function to attach to the effect's cleanup.
|
||||
* @param failSilently - if `true`, will not throw warning when called without
|
||||
* an active effect.
|
||||
* @param owner - The effect that this cleanup function should be attached to.
|
||||
* By default, the current active effect.
|
||||
*/
|
||||
export declare function onWatcherCleanup(cleanupFn: () => void, failSilently?: boolean, owner?: ReactiveEffect | undefined): void;
|
||||
export declare function watch(source: WatchSource | WatchSource[] | WatchEffect | object, cb?: WatchCallback | null, options?: WatchOptions): WatchHandle;
|
||||
export declare function traverse(value: unknown, depth?: number, seen?: Map<unknown, number>): unknown;
|
||||
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import index from './index.js';
|
||||
|
||||
const { transform, transformStyleAttribute, bundle, bundleAsync, browserslistToTargets, composeVisitors, Features } = index;
|
||||
export { transform, transformStyleAttribute, bundle, bundleAsync, browserslistToTargets, composeVisitors, Features };
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./dist/vue-router.prod.cjs')
|
||||
} else {
|
||||
module.exports = require('./dist/vue-router.cjs')
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MenubarSubContent.js","names":[],"sources":["../../src/Menubar/MenubarSubContent.vue","../../src/Menubar/MenubarSubContent.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,MAAM,QAAQ;EACd,MAAM,QAAQ;EACd,MAAM,YAAY,qBAAqB,OAAO,MAAK;AACnD,oBAAiB;EAEjB,MAAM,EAAE,UAAU,GAAG,cAAc,EAAE,KAAK,UAAW,EAAA;EAErD,MAAM,cAAc,0BAAyB;EAC7C,MAAM,cAAc,0BAAyB;EAE7C,SAAS,sBAAsB,OAAsB;GACnD,MAAM,SAAS,MAAM;GACrB,MAAM,qBAAqB,OAAO,aAChC,+BACF;AAGA,OAAI,mBACF;GAEF,IAAI,kBAAkB,UAAU,CAAC,OAAO,OAAK,EAAE,IAAI,QAAQ,aAAa,GAAG,CAAC,IAAI,OAAK,EAAE,IAAI,QAAQ,MAAK;GACxG,MAAM,eAAe,gBAAgB,QAAQ,YAAY,MAAK;AAE9D,qBAAkB,YAAY,KAAK,QAC/B,UAAU,iBAAiB,eAAe,EAAC,GAC3C,gBAAgB,MAAM,eAAe,EAAC;GAE1C,MAAM,CAAC,UAAU,GAAG;AACpB,OAAI,UACF,aAAY,WAAW,UAAS;EACpC;;uBAIE,YAgBiB,MAAA,uBAAA,EAhBjB,WACU,MAeO,UAfE,EAAA;IACjB,6BAA0B;IACzB,OAAO;;;;;;IASP;IACA,WAAO,SAAc,uBAAqB,CAAA,aAAA,EAAA;;qBAE3C,MAAQ,CAAR,WAAQ,KAAA,QAAA,UAAA"}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
import { injectDatePickerRootContext } from "./DatePickerRoot.js";
|
||||
import { PopoverTrigger_default } from "../Popover/PopoverTrigger.js";
|
||||
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
||||
|
||||
//#region src/DatePicker/DatePickerTrigger.vue?vue&type=script&setup=true&lang.ts
|
||||
var DatePickerTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
__name: "DatePickerTrigger",
|
||||
props: {
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const rootContext = injectDatePickerRootContext();
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(PopoverTrigger_default), mergeProps({ "data-reka-date-field-segment": "trigger" }, props, {
|
||||
disabled: unref(rootContext).disabled.value,
|
||||
onFocusin: _cache[0] || (_cache[0] = (e) => {
|
||||
unref(rootContext).dateFieldRef.value?.setFocusedElement(e.target);
|
||||
})
|
||||
}), {
|
||||
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16, ["disabled"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/DatePicker/DatePickerTrigger.vue
|
||||
var DatePickerTrigger_default = DatePickerTrigger_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { DatePickerTrigger_default };
|
||||
//# sourceMappingURL=DatePickerTrigger.js.map
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
import { stringifyNumber } from '../../stringify/stringifyNumber.js';
|
||||
|
||||
const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
|
||||
function intResolve(str, offset, radix, { intAsBigInt }) {
|
||||
const sign = str[0];
|
||||
if (sign === '-' || sign === '+')
|
||||
offset += 1;
|
||||
str = str.substring(offset).replace(/_/g, '');
|
||||
if (intAsBigInt) {
|
||||
switch (radix) {
|
||||
case 2:
|
||||
str = `0b${str}`;
|
||||
break;
|
||||
case 8:
|
||||
str = `0o${str}`;
|
||||
break;
|
||||
case 16:
|
||||
str = `0x${str}`;
|
||||
break;
|
||||
}
|
||||
const n = BigInt(str);
|
||||
return sign === '-' ? BigInt(-1) * n : n;
|
||||
}
|
||||
const n = parseInt(str, radix);
|
||||
return sign === '-' ? -1 * n : n;
|
||||
}
|
||||
function intStringify(node, radix, prefix) {
|
||||
const { value } = node;
|
||||
if (intIdentify(value)) {
|
||||
const str = value.toString(radix);
|
||||
return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
|
||||
}
|
||||
return stringifyNumber(node);
|
||||
}
|
||||
const intBin = {
|
||||
identify: intIdentify,
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:int',
|
||||
format: 'BIN',
|
||||
test: /^[-+]?0b[0-1_]+$/,
|
||||
resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt),
|
||||
stringify: node => intStringify(node, 2, '0b')
|
||||
};
|
||||
const intOct = {
|
||||
identify: intIdentify,
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:int',
|
||||
format: 'OCT',
|
||||
test: /^[-+]?0[0-7_]+$/,
|
||||
resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt),
|
||||
stringify: node => intStringify(node, 8, '0')
|
||||
};
|
||||
const int = {
|
||||
identify: intIdentify,
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:int',
|
||||
test: /^[-+]?[0-9][0-9_]*$/,
|
||||
resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
|
||||
stringify: stringifyNumber
|
||||
};
|
||||
const intHex = {
|
||||
identify: intIdentify,
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:int',
|
||||
format: 'HEX',
|
||||
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
||||
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
||||
stringify: node => intStringify(node, 16, '0x')
|
||||
};
|
||||
|
||||
export { int, intBin, intHex, intOct };
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gallery-thumbnails.mjs","sources":["../../../src/icons/gallery-thumbnails.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'gallery-thumbnails',\n size: 24,\n node: [\n ['rect', { width: '18', height: '14', x: '3', y: '3', rx: '2', key: '74y24f' }],\n ['path', { d: 'M4 21h1', key: '16zlid' }],\n ['path', { d: 'M9 21h1', key: '15o7lz' }],\n ['path', { d: 'M14 21h1', key: 'v9vybs' }],\n ['path', { d: 'M19 21h1', key: 'edywat' }],\n ],\n};\n\n/**\n * @component @name GalleryThumbnails\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/gallery-thumbnails\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst GalleryThumbnails: LucideIcon = createLucideIcon(__iconData);\n\nexport default GalleryThumbnails;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,GAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,C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,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Stringifies a comment.
|
||||
*
|
||||
* Empty comment lines are left empty,
|
||||
* lines consisting of a single space are replaced by `#`,
|
||||
* and all other lines are prefixed with a `#`.
|
||||
*/
|
||||
const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, '#');
|
||||
function indentComment(comment, indent) {
|
||||
if (/^\n+$/.test(comment))
|
||||
return comment.substring(1);
|
||||
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
||||
}
|
||||
const lineComment = (str, indent, comment) => str.endsWith('\n')
|
||||
? indentComment(comment, indent)
|
||||
: comment.includes('\n')
|
||||
? '\n' + indentComment(comment, indent)
|
||||
: (str.endsWith(' ') ? '' : ' ') + comment;
|
||||
|
||||
export { indentComment, lineComment, stringifyComment };
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
const require_rolldown_runtime = require('../rolldown-runtime.cjs');
|
||||
const require_RangeCalendar_RangeCalendarGrid = require('../RangeCalendar/RangeCalendarGrid.cjs');
|
||||
const vue = require_rolldown_runtime.__toESM(require("vue"));
|
||||
|
||||
//#region src/DateRangePicker/DateRangePickerGrid.vue?vue&type=script&setup=true&lang.ts
|
||||
var DateRangePickerGrid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
||||
__name: "DateRangePickerGrid",
|
||||
props: {
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
return (_ctx, _cache) => {
|
||||
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_RangeCalendar_RangeCalendarGrid.RangeCalendarGrid_default), (0, vue.normalizeProps)((0, vue.guardReactiveProps)(props)), {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/DateRangePicker/DateRangePickerGrid.vue
|
||||
var DateRangePickerGrid_default = DateRangePickerGrid_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
Object.defineProperty(exports, 'DateRangePickerGrid_default', {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return DateRangePickerGrid_default;
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=DateRangePickerGrid.cjs.map
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
||||
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
||||
|
||||
return privateMap.get(receiver);
|
||||
}
|
||||
exports._ = _class_extract_field_descriptor;
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
import { createContext } from "../shared/createContext.js";
|
||||
import { getActiveElement } from "../shared/getActiveElement.js";
|
||||
import { useForwardExpose } from "../shared/useForwardExpose.js";
|
||||
import { useId } from "../shared/useId.js";
|
||||
import { Primitive } from "../Primitive/Primitive.js";
|
||||
import { RovingFocusItem_default } from "../RovingFocus/RovingFocusItem.js";
|
||||
import { injectTagGroupRootContext } from "./TagGroupRoot.js";
|
||||
import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, onBeforeUnmount, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
||||
|
||||
//#region src/TagGroup/TagGroupItem.vue?vue&type=script&setup=true&lang.ts
|
||||
const _hoisted_1 = {
|
||||
key: 1,
|
||||
role: "gridcell",
|
||||
style: { "display": "contents" }
|
||||
};
|
||||
const [injectTagGroupItemContext, provideTagGroupItemContext] = /*#__PURE__*/ createContext("TagGroupItem");
|
||||
var TagGroupItem_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
__name: "TagGroupItem",
|
||||
props: {
|
||||
value: {
|
||||
type: null,
|
||||
required: true
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
textValue: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
asChild: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
},
|
||||
as: {
|
||||
type: null,
|
||||
required: false,
|
||||
default: "div"
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const rootContext = injectTagGroupRootContext();
|
||||
const { forwardRef, currentElement } = useForwardExpose();
|
||||
const id = useId(void 0, "reka-tag-group-item");
|
||||
const textElement = ref();
|
||||
const disabled = computed(() => rootContext.disabled.value || props.disabled);
|
||||
const isSelected = computed(() => rootContext.isSelected(props.value));
|
||||
const isTabStop = computed(() => rootContext.currentTabStopId.value === id);
|
||||
function getTextValue() {
|
||||
return props.textValue ?? textElement.value?.textContent?.trim() ?? currentElement.value?.textContent?.trim() ?? "";
|
||||
}
|
||||
function remove() {
|
||||
if (!disabled.value) rootContext.removeTags(props.value, false);
|
||||
}
|
||||
function handleKeydown(event) {
|
||||
if (event.target !== event.currentTarget || disabled.value) return;
|
||||
switch (event.key) {
|
||||
case "Delete":
|
||||
case "Backspace":
|
||||
if (!rootContext.allowsRemoving()) return;
|
||||
event.preventDefault();
|
||||
rootContext.removeTags(props.value, true);
|
||||
return;
|
||||
case "Enter":
|
||||
case " ":
|
||||
if (rootContext.selectionMode.value === "none") return;
|
||||
event.preventDefault();
|
||||
rootContext.toggleSelection(props.value);
|
||||
return;
|
||||
}
|
||||
if (event.key.length === 1 && event.key !== " " && !event.ctrlKey && !event.metaKey && !event.altKey) rootContext.handleTypeahead(event.key);
|
||||
}
|
||||
const unregister = rootContext.registerItem({
|
||||
value: () => props.value,
|
||||
element: () => currentElement.value,
|
||||
disabled: () => disabled.value,
|
||||
textValue: getTextValue
|
||||
});
|
||||
onBeforeUnmount(() => {
|
||||
const element = currentElement.value;
|
||||
if (element?.contains(getActiveElement())) rootContext.onFocusedItemUnmount(element);
|
||||
unregister();
|
||||
});
|
||||
provideTagGroupItemContext({
|
||||
id,
|
||||
disabled,
|
||||
isTabStop,
|
||||
textElement,
|
||||
remove
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(unref(RovingFocusItem_default), {
|
||||
"as-child": "",
|
||||
"tab-stop-id": unref(id),
|
||||
focusable: !disabled.value
|
||||
}, {
|
||||
default: withCtx(() => [createVNode(unref(Primitive), {
|
||||
id: unref(id),
|
||||
ref: unref(forwardRef),
|
||||
as: __props.as,
|
||||
"as-child": __props.asChild,
|
||||
role: "row",
|
||||
"aria-label": __props.textValue,
|
||||
"aria-selected": unref(rootContext).selectionMode.value !== "none" ? isSelected.value : void 0,
|
||||
"aria-disabled": disabled.value || void 0,
|
||||
"data-state": unref(rootContext).selectionMode.value !== "none" ? isSelected.value ? "checked" : "unchecked" : void 0,
|
||||
"data-disabled": disabled.value ? "" : void 0,
|
||||
onClick: _cache[0] || (_cache[0] = ($event) => !disabled.value && unref(rootContext).toggleSelection(__props.value)),
|
||||
onKeydown: handleKeydown
|
||||
}, {
|
||||
default: withCtx(() => [__props.asChild ? renderSlot(_ctx.$slots, "default", {
|
||||
selected: isSelected.value,
|
||||
disabled: disabled.value
|
||||
}, void 0, void 0, 0) : (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default", {
|
||||
selected: isSelected.value,
|
||||
disabled: disabled.value
|
||||
})]))]),
|
||||
_: 3
|
||||
}, 8, [
|
||||
"id",
|
||||
"as",
|
||||
"as-child",
|
||||
"aria-label",
|
||||
"aria-selected",
|
||||
"aria-disabled",
|
||||
"data-state",
|
||||
"data-disabled"
|
||||
])]),
|
||||
_: 3
|
||||
}, 8, ["tab-stop-id", "focusable"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
//#region src/TagGroup/TagGroupItem.vue
|
||||
var TagGroupItem_default = TagGroupItem_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { TagGroupItem_default, injectTagGroupItemContext };
|
||||
//# sourceMappingURL=TagGroupItem.js.map
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
import { Scalar } from '../../nodes/Scalar.js';
|
||||
import { stringifyNumber } from '../../stringify/stringifyNumber.js';
|
||||
|
||||
const floatNaN = {
|
||||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:float',
|
||||
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
||||
resolve: str => str.slice(-3).toLowerCase() === 'nan'
|
||||
? NaN
|
||||
: str[0] === '-'
|
||||
? Number.NEGATIVE_INFINITY
|
||||
: Number.POSITIVE_INFINITY,
|
||||
stringify: stringifyNumber
|
||||
};
|
||||
const floatExp = {
|
||||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:float',
|
||||
format: 'EXP',
|
||||
test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
|
||||
resolve: str => parseFloat(str),
|
||||
stringify(node) {
|
||||
const num = Number(node.value);
|
||||
return isFinite(num) ? num.toExponential() : stringifyNumber(node);
|
||||
}
|
||||
};
|
||||
const float = {
|
||||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
tag: 'tag:yaml.org,2002:float',
|
||||
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
||||
resolve(str) {
|
||||
const node = new Scalar(parseFloat(str));
|
||||
const dot = str.indexOf('.');
|
||||
if (dot !== -1 && str[str.length - 1] === '0')
|
||||
node.minFractionDigits = str.length - dot - 1;
|
||||
return node;
|
||||
},
|
||||
stringify: stringifyNumber
|
||||
};
|
||||
|
||||
export { float, floatExp, floatNaN };
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "panels-top-left",
|
||||
size: 24,
|
||||
node: [
|
||||
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
||||
["path", { d: "M3 9h18", key: "1pudct" }],
|
||||
["path", { d: "M9 21V9", key: "1oto5p" }]
|
||||
],
|
||||
aliases: ["layout"]
|
||||
};
|
||||
const PanelsTopLeft = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, PanelsTopLeft as default };
|
||||
//# sourceMappingURL=panels-top-left.mjs.map
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "circle-check-big",
|
||||
size: 24,
|
||||
node: [
|
||||
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
||||
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
||||
],
|
||||
aliases: ["check-circle"]
|
||||
};
|
||||
const CircleCheckBig = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, CircleCheckBig as default };
|
||||
//# sourceMappingURL=circle-check-big.mjs.map
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "space",
|
||||
size: 24,
|
||||
node: [["path", { d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1", key: "lt2kga" }]]
|
||||
};
|
||||
const Space = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, Space as default };
|
||||
//# sourceMappingURL=space.mjs.map
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@types/estree",
|
||||
"version": "1.0.9",
|
||||
"description": "TypeScript definitions for estree",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "RReverser",
|
||||
"githubUsername": "RReverser",
|
||||
"url": "https://github.com/RReverser"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/estree"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "db16da859cb0bee641414117047a4becba2e9f39d3e14a6745f887c47ef68482",
|
||||
"typeScriptVersion": "5.3",
|
||||
"nonNpm": true
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Desktop\",\"name\":\"desktop\",\"patterns\":[{\"include\":\"#layout\"},{\"include\":\"#keywords\"},{\"include\":\"#values\"},{\"include\":\"#inCommands\"},{\"include\":\"#inCategories\"}],\"repository\":{\"inCategories\":{\"patterns\":[{\"match\":\"(?<=^Categories.*)AudioVideo|(?<=^Categories.*)Audio|(?<=^Categories.*)Video|(?<=^Categories.*)Development|(?<=^Categories.*)Education|(?<=^Categories.*)Game|(?<=^Categories.*)Graphics|(?<=^Categories.*)Network|(?<=^Categories.*)Office|(?<=^Categories.*)Science|(?<=^Categories.*)Settings|(?<=^Categories.*)System|(?<=^Categories.*)Utility\",\"name\":\"markup.bold\"}]},\"inCommands\":{\"patterns\":[{\"match\":\"(?<=^Exec.*\\\\s)-+\\\\S+\",\"name\":\"variable.parameter\"},{\"match\":\"(?<=^Exec.*)\\\\s%[FUcfiku]\\\\s\",\"name\":\"variable.language\"},{\"match\":\"\\\".*\\\"\",\"name\":\"string\"}]},\"keywords\":{\"patterns\":[{\"match\":\"^(?:Type|Version|Name|GenericName|NoDisplay|Comment|Icon|Hidden|OnlyShowIn|NotShowIn|DBusActivatable|TryExec|Exec|Path|Terminal|Actions|MimeType|Categories|Implements|Keywords|StartupNotify|StartupWMClass|URL|PrefersNonDefaultGPU|Encoding)\\\\b\",\"name\":\"keyword\"},{\"match\":\"^X-[- 0-9A-z]*\",\"name\":\"keyword.other\"},{\"match\":\"(?<!^)\\\\[.+]\",\"name\":\"constant.language\"},{\"match\":\"^(?:GtkTheme|MetacityTheme|IconTheme|CursorTheme|ButtonLayout|ApplicationFont)\\\\b\",\"name\":\"keyword\"}]},\"layout\":{\"patterns\":[{\"begin\":\"^\\\\[Desktop\",\"end\":\"]\",\"name\":\"markup.heading\"},{\"begin\":\"^\\\\[X-\\\\w*\",\"end\":\"]\",\"name\":\"markup.heading\"},{\"match\":\"^\\\\s*#.*\",\"name\":\"comment\"},{\"match\":\";\",\"name\":\"strong\"}]},\"values\":{\"patterns\":[{\"match\":\"(?<=^\\\\S+)=\",\"name\":\"keyword.operator\"},{\"match\":\"\\\\b(?:tru|fals)e\\\\b\",\"name\":\"variable.other\"},{\"match\":\"(?<=^Version.*)\\\\d+(\\\\.?\\\\d*)\",\"name\":\"variable.other\"}]}},\"scopeName\":\"source.desktop\"}"))
|
||||
|
||||
export default [
|
||||
lang
|
||||
]
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Java\",\"name\":\"java\",\"patterns\":[{\"begin\":\"\\\\b(package)\\\\b\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.package.java\"}},\"contentName\":\"storage.modifier.package.java\",\"end\":\"\\\\s*(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.java\"}},\"name\":\"meta.package.java\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"(?<!_)_(?=\\\\s*([.;]))|\\\\b\\\\d+|-+\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"[A-Z]+\",\"name\":\"invalid.deprecated.package_name_not_lowercase.java\"},{\"match\":\"\\\\b(?<!\\\\$)(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|non-sealed|package|permits|private|protected|public|return|sealed|short|static|strictfp|super|switch|syncronized|this|throws??|transient|try|void|volatile|while|yield|true|false|null)\\\\b\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"\\\\.\",\"name\":\"punctuation.separator.java\"}]},{\"begin\":\"\\\\b(import)\\\\b\\\\s*\\\\b(static)?\\\\b\\\\s\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.import.java\"},\"2\":{\"name\":\"storage.modifier.java\"}},\"contentName\":\"storage.modifier.import.java\",\"end\":\"\\\\s*(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.java\"}},\"name\":\"meta.import.java\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"(?<!\\\\.)\\\\s*\\\\*\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"(?<!_)_(?=\\\\s*([.;]))|\\\\b\\\\d+|-+\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"\\\\b(?<!\\\\$)(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|non-sealed|package|permits|private|protected|public|return|sealed|short|static|strictfp|super|switch|syncronized|this|throws??|transient|try|void|volatile|while|yield|true|false|null)\\\\b\",\"name\":\"invalid.illegal.character_not_allowed_here.java\"},{\"match\":\"\\\\.\",\"name\":\"punctuation.separator.java\"},{\"match\":\"\\\\*\",\"name\":\"variable.language.wildcard.java\"}]},{\"include\":\"#comments-javadoc\"},{\"include\":\"#code\"},{\"include\":\"#module\"}],\"repository\":{\"all-types\":{\"patterns\":[{\"include\":\"#primitive-arrays\"},{\"include\":\"#primitive-types\"},{\"include\":\"#object-types\"}]},\"annotations\":{\"patterns\":[{\"begin\":\"((@)\\\\s*([^(\\\\s]+))(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"punctuation.definition.annotation.java\"},\"3\":{\"name\":\"storage.type.annotation.java\"},\"4\":{\"name\":\"punctuation.definition.annotation-arguments.begin.bracket.round.java\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.annotation-arguments.end.bracket.round.java\"}},\"name\":\"meta.declaration.annotation.java\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.other.key.java\"},\"2\":{\"name\":\"keyword.operator.assignment.java\"}},\"match\":\"(\\\\w*)\\\\s*(=)\"},{\"include\":\"#code\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.annotation.java\"},\"2\":{\"name\":\"storage.modifier.java\"},\"3\":{\"name\":\"storage.type.annotation.java\"},\"5\":{\"name\":\"punctuation.definition.annotation.java\"},\"6\":{\"name\":\"storage.type.annotation.java\"}},\"match\":\"(@)(interface)\\\\s+(\\\\w*)|((@)\\\\s*(\\\\w+))\",\"name\":\"meta.declaration.annotation.java\"}]},\"anonymous-block-and-instance-initializer\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.bracket.curly.java\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.java\"}},\"patterns\":[{\"include\":\"#code\"}]},\"anonymous-classes-and-new\":{\"begin\":\"\\\\bnew\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.new.java\"}},\"end\":\"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#function-call\"},{\"include\":\"#all-types\"},{\"begin\":\"(?<=\\\\))\",\"end\":\"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.inner-class.begin.bracket.curly.java\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.inner-class.end.bracket.curly.java\"}},\"name\":\"meta.inner-class.java\",\"patterns\":[{\"include\":\"#class-body\"}]}]},{\"begin\":\"(?<=])\",\"end\":\"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])\",\"patterns\":[{\"include\":\Line truncated
|
||||
|
||||
export default [
|
||||
lang
|
||||
]
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
import { IAttributeData, ICircularList, IBufferLine, ICellData, IMarker, ICharset, IDisposable } from 'common/Types';
|
||||
import type { Event } from 'vs/base/common/event';
|
||||
|
||||
// BufferIndex denotes a position in the buffer: [rowIndex, colIndex]
|
||||
export type BufferIndex = [number, number];
|
||||
|
||||
export interface IBuffer {
|
||||
readonly lines: ICircularList<IBufferLine>;
|
||||
ydisp: number;
|
||||
ybase: number;
|
||||
y: number;
|
||||
x: number;
|
||||
tabs: any;
|
||||
scrollBottom: number;
|
||||
scrollTop: number;
|
||||
hasScrollback: boolean;
|
||||
savedY: number;
|
||||
savedX: number;
|
||||
savedCharset: ICharset | undefined;
|
||||
savedCurAttrData: IAttributeData;
|
||||
isCursorInViewport: boolean;
|
||||
markers: IMarker[];
|
||||
translateBufferLineToString(lineIndex: number, trimRight: boolean, startCol?: number, endCol?: number): string;
|
||||
getWrappedRangeForLine(y: number): { first: number, last: number };
|
||||
nextStop(x?: number): number;
|
||||
prevStop(x?: number): number;
|
||||
getBlankLine(attr: IAttributeData, isWrapped?: boolean): IBufferLine;
|
||||
getNullCell(attr?: IAttributeData): ICellData;
|
||||
getWhitespaceCell(attr?: IAttributeData): ICellData;
|
||||
addMarker(y: number): IMarker;
|
||||
clearMarkers(y: number): void;
|
||||
clearAllMarkers(): void;
|
||||
}
|
||||
|
||||
export interface IBufferSet extends IDisposable {
|
||||
alt: IBuffer;
|
||||
normal: IBuffer;
|
||||
active: IBuffer;
|
||||
|
||||
onBufferActivate: Event<{ activeBuffer: IBuffer, inactiveBuffer: IBuffer }>;
|
||||
|
||||
activateNormalBuffer(): void;
|
||||
activateAltBuffer(fillAttr?: IAttributeData): void;
|
||||
reset(): void;
|
||||
resize(newCols: number, newRows: number): void;
|
||||
setupTabStops(i?: number): void;
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "wallet-minimal",
|
||||
size: 24,
|
||||
node: [
|
||||
["path", { d: "M17 14h.01", key: "7oqj8z" }],
|
||||
[
|
||||
"path",
|
||||
{
|
||||
d: "M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14",
|
||||
key: "u1rqew"
|
||||
}
|
||||
]
|
||||
],
|
||||
aliases: ["wallet-2"]
|
||||
};
|
||||
const WalletMinimal = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, WalletMinimal as default };
|
||||
//# sourceMappingURL=wallet-minimal.mjs.map
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/** @inline */
|
||||
type LogLevel = "info" | "debug" | "warn";
|
||||
/** @inline */
|
||||
type LogLevelOption = LogLevel | "silent";
|
||||
/** @inline */
|
||||
type LogLevelWithError = LogLevel | "error";
|
||||
interface RolldownLog {
|
||||
binding?: string;
|
||||
cause?: unknown;
|
||||
/**
|
||||
* The log code for this log object.
|
||||
* @example 'PLUGIN_ERROR'
|
||||
*/
|
||||
code?: string;
|
||||
exporter?: string;
|
||||
frame?: string;
|
||||
hook?: string;
|
||||
id?: string;
|
||||
ids?: string[];
|
||||
loc?: {
|
||||
column: number;
|
||||
file?: string;
|
||||
line: number;
|
||||
};
|
||||
/**
|
||||
* The message for this log object.
|
||||
* @example 'The "transform" hook used by the output plugin "rolldown-plugin-foo" is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.'
|
||||
*/
|
||||
message: string;
|
||||
meta?: any;
|
||||
names?: string[];
|
||||
plugin?: string;
|
||||
pluginCode?: unknown;
|
||||
pos?: number;
|
||||
reexporter?: string;
|
||||
stack?: string;
|
||||
url?: string;
|
||||
}
|
||||
/** @inline */
|
||||
type RolldownLogWithString = RolldownLog | string;
|
||||
/** @category Plugin APIs */
|
||||
interface RolldownError extends RolldownLog {
|
||||
name?: string;
|
||||
stack?: string;
|
||||
watchFiles?: string[];
|
||||
}
|
||||
type LogOrStringHandler = (level: LogLevelWithError, log: RolldownLogWithString) => void;
|
||||
export { RolldownLog as a, RolldownError as i, LogLevelOption as n, RolldownLogWithString as o, LogOrStringHandler as r, LogLevel as t };
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
/* ibm-plex-mono-cyrillic-500-italic */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Mono';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 500;
|
||||
src: url(./files/ibm-plex-mono-cyrillic-500-italic.woff2) format('woff2'), url(./files/ibm-plex-mono-cyrillic-500-italic.woff) format('woff');
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { Language } from '@volar/language-core';
|
||||
import type * as ts from 'typescript';
|
||||
export declare function decorateLanguageServiceHost(ts: typeof import('typescript'), language: Language<string>, languageServiceHost: ts.LanguageServiceHost): void;
|
||||
export declare function searchExternalFiles(ts: typeof import('typescript'), project: ts.server.Project, exts: string[]): string[];
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
function contextListener(listener) {
|
||||
return function(event) {
|
||||
listener.call(this, event, this.__data__);
|
||||
};
|
||||
}
|
||||
|
||||
function parseTypenames(typenames) {
|
||||
return typenames.trim().split(/^|\s+/).map(function(t) {
|
||||
var name = "", i = t.indexOf(".");
|
||||
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
||||
return {type: t, name: name};
|
||||
});
|
||||
}
|
||||
|
||||
function onRemove(typename) {
|
||||
return function() {
|
||||
var on = this.__on;
|
||||
if (!on) return;
|
||||
for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
|
||||
if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
|
||||
this.removeEventListener(o.type, o.listener, o.options);
|
||||
} else {
|
||||
on[++i] = o;
|
||||
}
|
||||
}
|
||||
if (++i) on.length = i;
|
||||
else delete this.__on;
|
||||
};
|
||||
}
|
||||
|
||||
function onAdd(typename, value, options) {
|
||||
return function() {
|
||||
var on = this.__on, o, listener = contextListener(value);
|
||||
if (on) for (var j = 0, m = on.length; j < m; ++j) {
|
||||
if ((o = on[j]).type === typename.type && o.name === typename.name) {
|
||||
this.removeEventListener(o.type, o.listener, o.options);
|
||||
this.addEventListener(o.type, o.listener = listener, o.options = options);
|
||||
o.value = value;
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.addEventListener(typename.type, listener, options);
|
||||
o = {type: typename.type, name: typename.name, value: value, listener: listener, options: options};
|
||||
if (!on) this.__on = [o];
|
||||
else on.push(o);
|
||||
};
|
||||
}
|
||||
|
||||
export default function(typename, value, options) {
|
||||
var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
|
||||
|
||||
if (arguments.length < 2) {
|
||||
var on = this.node().__on;
|
||||
if (on) for (var j = 0, m = on.length, o; j < m; ++j) {
|
||||
for (i = 0, o = on[j]; i < n; ++i) {
|
||||
if ((t = typenames[i]).type === o.type && t.name === o.name) {
|
||||
return o.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
on = value ? onAdd : onRemove;
|
||||
for (i = 0; i < n; ++i) this.each(on(typenames[i], value, options));
|
||||
return this;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ethernet-port.mjs","sources":["../../../src/icons/ethernet-port.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'ethernet-port',\n size: 24,\n node: [\n ['path', { d: 'M10 8v1', key: '1talb4' }],\n ['path', { d: 'M14 8v1', key: '1rsfgr' }],\n ['path', { d: 'M18 8v1', key: 'gnkwox' }],\n [\n 'path',\n {\n d: 'M19 17a2 2 0 00-1.765 1.059l-.47.882A2 2 0 0115 20H9a2 2 0 01-1.765-1.059l-.47-.882A2 2 0 005 17H4a2 2 0 01-2-2V6a2 2 0 012-2h16a2 2 0 012 2v9a2 2 0 01-2 2z',\n key: 'v5qa57',\n },\n ],\n ['path', { d: 'M6 8v1', key: '1636ez' }],\n ],\n};\n\n/**\n * @component @name EthernetPort\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/ethernet-port\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst EthernetPort: LucideIcon = createLucideIcon(__iconData);\n\nexport default EthernetPort;\n"],"names":[],"mapp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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU;AAAA,CAAA,CAAA;AAE3C,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+2584
File diff suppressed because it is too large.
Load diff
+2
@@ -0,0 +1,2 @@
|
||||
/* Theme: aurora-x */
|
||||
export default Object.freeze(JSON.parse("{\"colors\":{\"activityBar.background\":\"#07090F\",\"activityBar.foreground\":\"#86A5FF\",\"activityBar.inactiveForeground\":\"#576dafc5\",\"activityBarBadge.background\":\"#86A5FF\",\"activityBarBadge.foreground\":\"#07090F\",\"badge.background\":\"#86A5FF\",\"badge.foreground\":\"#07090F\",\"breadcrumb.activeSelectionForeground\":\"#86A5FF\",\"breadcrumb.focusForeground\":\"#576daf\",\"breadcrumb.foreground\":\"#576dafa6\",\"breadcrumbPicker.background\":\"#07090F\",\"button.background\":\"#86A5FF\",\"button.foreground\":\"#07090F\",\"button.hoverBackground\":\"#A8BEFF\",\"descriptionForeground\":\"#576daf79\",\"diffEditor.diagonalFill\":\"#15182B\",\"diffEditor.insertedTextBackground\":\"#64d3892c\",\"diffEditor.removedTextBackground\":\"#dd50742c\",\"dropdown.background\":\"#15182B\",\"dropdown.foreground\":\"#c7d5ff99\",\"editor.background\":\"#07090F\",\"editor.findMatchBackground\":\"#576daf\",\"editor.findMatchHighlightBackground\":\"#262E47\",\"editor.inactiveSelectionBackground\":\"#262e47be\",\"editor.selectionBackground\":\"#262E47\",\"editor.selectionHighlightBackground\":\"#262E47\",\"editor.wordHighlightBackground\":\"#262E47\",\"editor.wordHighlightStrongBackground\":\"#262E47\",\"editorCodeLens.foreground\":\"#262E47\",\"editorCursor.background\":\"#01030b\",\"editorCursor.foreground\":\"#86A5FF\",\"editorGroup.background\":\"#07090F\",\"editorGroup.border\":\"#15182B\",\"editorGroup.dropBackground\":\"#0C0E19\",\"editorGroup.emptyBackground\":\"#07090F\",\"editorGroupHeader.tabsBackground\":\"#07090F\",\"editorLineNumber.activeForeground\":\"#576dafd8\",\"editorLineNumber.foreground\":\"#262e47bb\",\"editorWidget.background\":\"#15182B\",\"editorWidget.border\":\"#576daf\",\"extensionButton.prominentBackground\":\"#C7D5FF\",\"extensionButton.prominentForeground\":\"#07090F\",\"focusBorder\":\"#262E47\",\"foreground\":\"#576daf\",\"gitDecoration.addedResourceForeground\":\"#64d389fd\",\"gitDecoration.deletedResourceForeground\":\"#dd5074\",\"gitDecoration.ignoredResourceForeground\":\"#576daf90\",\"gitDecoration.modifiedResourceForeground\":\"#c778db\",\"gitDecoration.untrackedResourceForeground\":\"#576daf90\",\"icon.foreground\":\"#576daf\",\"input.background\":\"#15182B\",\"input.foreground\":\"#86A5FF\",\"inputOption.activeForeground\":\"#86A5FF\",\"inputValidation.errorBackground\":\"#dd5073\",\"inputValidation.errorBorder\":\"#dd5073\",\"inputValidation.errorForeground\":\"#07090F\",\"list.activeSelectionBackground\":\"#000000\",\"list.activeSelectionForeground\":\"#86A5FF\",\"list.dropBackground\":\"#000000\",\"list.errorForeground\":\"#dd5074\",\"list.focusBackground\":\"#01030b\",\"list.focusForeground\":\"#86A5FF\",\"list.highlightForeground\":\"#A8BEFF\",\"list.hoverBackground\":\"#000000\",\"list.hoverForeground\":\"#A8BEFF\",\"list.inactiveFocusBackground\":\"#01030b\",\"list.inactiveSelectionBackground\":\"#000000\",\"list.inactiveSelectionForeground\":\"#86A5FF\",\"list.warningForeground\":\"#e6db7f\",\"notificationCenterHeader.background\":\"#15182B\",\"notifications.background\":\"#15182B\",\"panel.border\":\"#15182B\",\"panelTitle.activeBorder\":\"#86A5FF\",\"panelTitle.activeForeground\":\"#C7D5FF\",\"panelTitle.inactiveForeground\":\"#576daf\",\"peekViewTitle.background\":\"#262E47\",\"quickInput.background\":\"#0C0E19\",\"scrollbar.shadow\":\"#01030b\",\"scrollbarSlider.activeBackground\":\"#576daf\",\"scrollbarSlider.background\":\"#262E47\",\"scrollbarSlider.hoverBackground\":\"#576daf\",\"selection.background\":\"#01030b\",\"sideBar.background\":\"#07090F\",\"sideBar.border\":\"#15182B\",\"sideBarSectionHeader.background\":\"#07090F\",\"sideBarSectionHeader.foreground\":\"#86A5FF\",\"statusBar.background\":\"#86A5FF\",\"statusBar.debuggingBackground\":\"#c778db\",\"statusBar.foreground\":\"#07090F\",\"tab.activeBackground\":\"#07090F\",\"tab.activeBorder\":\"#86A5FF\",\"tab.activeForeground\":\"#C7D5FF\",\"tab.border\":\"#07090F\",\"tab.inactiveBackground\":\"#07090F\",\"tab.inactiveForeground\":\"#576dafd8\",\"terminal.ansiBrightRed\":\"#dd5073\",\"terminal.ansiGreen\":\"#63eb90\",\"terminal.ansiRed\":\"#dd5073\",\"terminal.foreground\":\"#A8BEFF\",\"textLink.foreground\":\"#86A5FF\",\"titleBar.activeBackground\":\"#07090F\",\"titleBar.activeForeground\":\"#86A5FF\",\"titleBar.inactiveBackground\":\"#07090F\",\"tree.indentGuidesStroke\":\"#576daf\",\"widget.shadow\":\"#01030b\"},\"displayName\":\"Aurora X\",\"name\":\"aurora-x\",\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\"],\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#546E7A\"}},{\"scope\":[\"variable\",\"string constant.other.placeholder\"],\"settings\":{\"foreground\":\"#EEFFFF\"}},{\"scope\":[\"constant.other.color\"],\"settings\":{\"foreground\":\"#ffffff\"}},{\"scope\":[\"invalid\",\"invalid.illegal\"],\"settings\":{\"foreground\":\"#FF5370\"}},{\"scope\":[\"keyword\",\"storage.type\",\"storage.modifier\"],\"settings\":{\"foreLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { default } from '@shikijs/langs/elixir'
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
import { anchorIsValid } from '../doc/anchors.js';
|
||||
import { visit } from '../visit.js';
|
||||
import { ALIAS, isAlias, isCollection, isPair, hasAnchor } from './identity.js';
|
||||
import { NodeBase } from './Node.js';
|
||||
import { toJS } from './toJS.js';
|
||||
|
||||
class Alias extends NodeBase {
|
||||
constructor(source) {
|
||||
super(ALIAS);
|
||||
this.source = source;
|
||||
Object.defineProperty(this, 'tag', {
|
||||
set() {
|
||||
throw new Error('Alias nodes cannot have tags');
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Resolve the value of this alias within `doc`, finding the last
|
||||
* instance of the `source` anchor before this node.
|
||||
*/
|
||||
resolve(doc, ctx) {
|
||||
if (ctx?.maxAliasCount === 0)
|
||||
throw new ReferenceError('Alias resolution is disabled');
|
||||
let nodes;
|
||||
if (ctx?.aliasResolveCache) {
|
||||
nodes = ctx.aliasResolveCache;
|
||||
}
|
||||
else {
|
||||
nodes = [];
|
||||
visit(doc, {
|
||||
Node: (_key, node) => {
|
||||
if (isAlias(node) || hasAnchor(node))
|
||||
nodes.push(node);
|
||||
}
|
||||
});
|
||||
if (ctx)
|
||||
ctx.aliasResolveCache = nodes;
|
||||
}
|
||||
let found = undefined;
|
||||
for (const node of nodes) {
|
||||
if (node === this)
|
||||
break;
|
||||
if (node.anchor === this.source)
|
||||
found = node;
|
||||
}
|
||||
if (found && ctx) {
|
||||
const { anchors, doc, maxAliasCount } = ctx;
|
||||
let data = anchors.get(found);
|
||||
if (!data) {
|
||||
// Resolve anchors for Node.prototype.toJS()
|
||||
toJS(found, null, ctx);
|
||||
data = anchors.get(found);
|
||||
}
|
||||
/* istanbul ignore if */
|
||||
if (data?.res === undefined) {
|
||||
const msg = 'This should not happen: Alias anchor was not resolved?';
|
||||
throw new ReferenceError(msg);
|
||||
}
|
||||
if (maxAliasCount >= 0) {
|
||||
data.count += 1;
|
||||
if (data.aliasCount === 0)
|
||||
data.aliasCount = getAliasCount(doc, found, anchors);
|
||||
if (data.count * data.aliasCount > maxAliasCount) {
|
||||
const msg = 'Excessive alias count indicates a resource exhaustion attack';
|
||||
throw new ReferenceError(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
return found;
|
||||
}
|
||||
toJSON(_arg, ctx) {
|
||||
if (!ctx)
|
||||
return { source: this.source };
|
||||
const source = this.resolve(ctx.doc, ctx);
|
||||
if (!source) {
|
||||
const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
||||
throw new ReferenceError(msg);
|
||||
}
|
||||
return ctx.anchors.get(source).res;
|
||||
}
|
||||
toString(ctx, _onComment, _onChompKeep) {
|
||||
const src = `*${this.source}`;
|
||||
if (ctx) {
|
||||
anchorIsValid(this.source);
|
||||
if (ctx.options.verifyAliasOrder && !ctx.anchors.has(this.source)) {
|
||||
const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
||||
throw new Error(msg);
|
||||
}
|
||||
if (ctx.implicitKey)
|
||||
return `${src} `;
|
||||
}
|
||||
return src;
|
||||
}
|
||||
}
|
||||
function getAliasCount(doc, node, anchors) {
|
||||
if (isAlias(node)) {
|
||||
const source = node.resolve(doc);
|
||||
const anchor = anchors && source && anchors.get(source);
|
||||
return anchor ? anchor.count * anchor.aliasCount : 0;
|
||||
}
|
||||
else if (isCollection(node)) {
|
||||
let count = 0;
|
||||
for (const item of node.items) {
|
||||
const c = getAliasCount(doc, item, anchors);
|
||||
if (c > count)
|
||||
count = c;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
else if (isPair(node)) {
|
||||
const kc = getAliasCount(doc, node.key, anchors);
|
||||
const vc = getAliasCount(doc, node.value, anchors);
|
||||
return Math.max(kc, vc);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
export { Alias };
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @license @lucide/vue v1.61.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import createLucideIcon from '../createLucideIcon.mjs';
|
||||
|
||||
const __iconData = {
|
||||
name: "mouth",
|
||||
size: 24,
|
||||
node: [
|
||||
["path", { d: "M2 12a50.5 50.5 0 0020 0 1 1 0 00-1-1", key: "18uu27" }],
|
||||
[
|
||||
"path",
|
||||
{
|
||||
d: "M2.457 11.159a1 1 0 00-.307 1.369 11.59 11.59 0 0019.7 0 1 1 0 00-.308-1.368c-2.426-1.568-3.65-2.284-5.479-3.644a2.6 2.6 0 00-3.373.208 1 1 0 01-1.38 0 2.62 2.62 0 00-3.373-.208c-1.83 1.36-3.053 2.076-5.48 3.643",
|
||||
key: "9k55ex"
|
||||
}
|
||||
]
|
||||
]
|
||||
};
|
||||
const Mouth = createLucideIcon(__iconData);
|
||||
|
||||
export { __iconData, Mouth as default };
|
||||
//# sourceMappingURL=mouth.mjs.map
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "ccount",
|
||||
"version": "2.0.1",
|
||||
"description": "Count how often a character (or substring) is used in a string",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"character",
|
||||
"count",
|
||||
"char"
|
||||
],
|
||||
"repository": "wooorm/ccount",
|
||||
"bugs": "https://github.com/wooorm/ccount/issues",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/wooorm"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/tape": "^4.0.0",
|
||||
"c8": "^7.0.0",
|
||||
"prettier": "^2.0.0",
|
||||
"remark-cli": "^10.0.0",
|
||||
"remark-preset-wooorm": "^9.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"tape": "^5.0.0",
|
||||
"type-coverage": "^2.0.0",
|
||||
"typescript": "^4.0.0",
|
||||
"xo": "^0.46.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run build && npm run format",
|
||||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
|
||||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
||||
"test-api": "node --conditions development test.js",
|
||||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
|
||||
"test": "npm run build && npm run format && npm run test-coverage"
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"preset-wooorm"
|
||||
]
|
||||
},
|
||||
"typeCoverage": {
|
||||
"atLeast": 100,
|
||||
"detail": true,
|
||||
"strict": true,
|
||||
"ignoreCatch": true
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map-pin-search.mjs","sources":["../../../src/icons/map-pin-search.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'map-pin-search',\n size: 24,\n node: [\n [\n 'path',\n {\n d: 'M 12.248 21.969 a 1 1 0 0 1 -0.849 -0.17 C 9.539 20.193 4 14.993 4 10 a 8 8 0 0 1 16 0 C 20 10.42 19.961 10.841 19.888 11.262',\n key: '1jho5b',\n },\n ],\n ['path', { d: 'm22 22-1.88-1.88', key: '1bgjp0' }],\n ['circle', { cx: '12', cy: '10', r: '3', key: 'ilqhr7' }],\n ['circle', { cx: '18', cy: '18', r: '3', key: '1xkwt0' }],\n ],\n};\n\n/**\n * @component @name MapPinSearch\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/map-pin-search\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst MapPinSearch: LucideIcon = createLucideIcon(__iconData);\n\nexport default MapPinSearch;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA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CAAA,CAAA,CAAA,CAAA,CAAK,GAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAE,CAAA,CAAA,CAAA,CAAI,IAAA,CAAA,CAAM,CAAA,CAAA,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,EAAK,CAAA,CAAA,CAAA,CAAA,CAAK,QAAA,CAAA,CAAU;AAAA,CAAA,CAAA;AAE5D,CAAA;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"globe-code.mjs","sources":["../../../src/icons/globe-code.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\nimport type { LucideIcon, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'globe-code',\n size: 24,\n node: [\n ['path', { d: 'M15.5 10 13 7.5 15.5 5', key: '1sohav' }],\n [\n 'path',\n {\n d: 'M15.861 14A14.5 14.5 0 0112 22a14.48 14.48 0 010-20 10 10 0 109.888 11.5',\n key: 'zybipq',\n },\n ],\n ['path', { d: 'M19.5 5 22 7.5 19.5 10', key: 'hhg2en' }],\n ['path', { d: 'M2 12h8.5', key: 'ovaggd' }],\n ],\n};\n\n/**\n * @component @name GlobeCode\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/globe-code\n * @see https://lucide.dev/guide/packages/lucide-vue-next - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Vue component\n *\n */\nconst GlobeCode: LucideIcon = createLucideIcon(__iconData);\n\nexport default GlobeCode;\n"],"names":[],"mappings":";;;;;;;;;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAA,CAAA,CAAA,CAA6B;AAAA,CAAA,CACxC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACN,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA;AAAA,CAAA,CACN,IAAA,CAAA,CAAM;AAAA,CAAA,CAAA,CAAA,CACJ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACvD;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CAAA,EAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;"}
|
||||
Loaded 100 of 12598 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user