@dejwcake/craftable 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -8
- package/dist/{buildMatchPatternFn-T5KjFTBQ.cjs → buildMatchPatternFn-BoUDNAZO.cjs} +1 -1
- package/dist/{cs-MAoetkhe.cjs → cs-DHH5l7p2.cjs} +1 -1
- package/dist/{cs-B5QMxFrl.js → cs-ny3teKR0.js} +1 -1
- package/dist/{de-BoVLAn6U.cjs → de-CaI6RCQF.cjs} +1 -1
- package/dist/{de-BlQ2ZKmc.js → de-DRctuPTq.js} +2 -2
- package/dist/{es-DBHDeXHI.cjs → es-Bh6-Auhy.cjs} +1 -1
- package/dist/{es-YEqfkBY2.js → es-BufozPLe.js} +1 -1
- package/dist/{fr-B7MHC2AN.js → fr-C4Eic4QK.js} +1 -1
- package/dist/{fr-DLs3QoNB.cjs → fr-HvCyL10T.cjs} +1 -1
- package/dist/{hu-reoJgNxD.js → hu-Da01tbQE.js} +1 -1
- package/dist/{hu-BKZPI9jH.cjs → hu-Df0BlRqD.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1592 -1107
- package/dist/isSameWeek-B3WWLbDx.cjs +1 -0
- package/dist/{isSameWeek-CC6GX_zp.js → isSameWeek-CIK6QT5b.js} +1 -1
- package/dist/{pl-B5A0Rjp7.js → pl-BvOLP6Vq.js} +2 -2
- package/dist/{pl-BMyrOO-Q.cjs → pl-H11OiJ78.cjs} +1 -1
- package/dist/{sk-Btro3W4S.js → sk-Cee4uHgG.js} +2 -2
- package/dist/{sk-B7JF2MoV.cjs → sk-Cpa7Wj75.cjs} +1 -1
- package/package.json +12 -7
- package/src/components/form/FormTagInput.vue +36 -0
- package/src/index.js +1 -0
- package/src/utils/dateFnsLocale.js +1 -1
- package/dist/en-US-BLvEnhs4.js +0 -443
- package/dist/en-US-Dz8vkDZ_.cjs +0 -1
- package/dist/en-US-X9gX759i.cjs +0 -1
- package/dist/isSameWeek-Mctj6Tdj.cjs +0 -1
- /package/dist/{buildMatchPatternFn-BV4I8r8j.js → buildMatchPatternFn-DQMsT4gp.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=365.2425,t=86400;t*7,t*e/12*3;var n=Symbol.for(`constructDateFrom`);function r(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&n in e?e[n](t):e instanceof Date?new e.constructor(t):new Date(t)}function i(e,...t){let n=r.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var a={};function o(){return a}function s(e,t){return r(t||e,e)}function c(e,t){let n=o(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=s(e,t?.in),a=i.getDay(),c=(a<r?7:0)+a-r;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function l(e,t,n){let[r,a]=i(n?.in,e,t);return+c(r,n)==+c(a,n)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-
|
|
2
|
-
import { t as i } from "./isSameWeek-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-DQMsT4gp.js";
|
|
2
|
+
import { t as i } from "./isSameWeek-CIK6QT5b.js";
|
|
3
3
|
//#region node_modules/date-fns/locale/pl/_lib/formatDistance.js
|
|
4
4
|
var a = {
|
|
5
5
|
lessThanXSeconds: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("./buildMatchPatternFn-BoUDNAZO.cjs"),t=require("./isSameWeek-B3WWLbDx.cjs");var n={lessThanXSeconds:{one:{regular:`mniej niż sekunda`,past:`mniej niż sekundę`,future:`mniej niż sekundę`},twoFour:`mniej niż {{count}} sekundy`,other:`mniej niż {{count}} sekund`},xSeconds:{one:{regular:`sekunda`,past:`sekundę`,future:`sekundę`},twoFour:`{{count}} sekundy`,other:`{{count}} sekund`},halfAMinute:{one:`pół minuty`,twoFour:`pół minuty`,other:`pół minuty`},lessThanXMinutes:{one:{regular:`mniej niż minuta`,past:`mniej niż minutę`,future:`mniej niż minutę`},twoFour:`mniej niż {{count}} minuty`,other:`mniej niż {{count}} minut`},xMinutes:{one:{regular:`minuta`,past:`minutę`,future:`minutę`},twoFour:`{{count}} minuty`,other:`{{count}} minut`},aboutXHours:{one:{regular:`około godziny`,past:`około godziny`,future:`około godzinę`},twoFour:`około {{count}} godziny`,other:`około {{count}} godzin`},xHours:{one:{regular:`godzina`,past:`godzinę`,future:`godzinę`},twoFour:`{{count}} godziny`,other:`{{count}} godzin`},xDays:{one:{regular:`dzień`,past:`dzień`,future:`1 dzień`},twoFour:`{{count}} dni`,other:`{{count}} dni`},aboutXWeeks:{one:`około tygodnia`,twoFour:`około {{count}} tygodni`,other:`około {{count}} tygodni`},xWeeks:{one:`tydzień`,twoFour:`{{count}} tygodnie`,other:`{{count}} tygodni`},aboutXMonths:{one:`około miesiąc`,twoFour:`około {{count}} miesiące`,other:`około {{count}} miesięcy`},xMonths:{one:`miesiąc`,twoFour:`{{count}} miesiące`,other:`{{count}} miesięcy`},aboutXYears:{one:`około rok`,twoFour:`około {{count}} lata`,other:`około {{count}} lat`},xYears:{one:`rok`,twoFour:`{{count}} lata`,other:`{{count}} lat`},overXYears:{one:`ponad rok`,twoFour:`ponad {{count}} lata`,other:`ponad {{count}} lat`},almostXYears:{one:`prawie rok`,twoFour:`prawie {{count}} lata`,other:`prawie {{count}} lat`}};function r(e,t){if(t===1)return e.one;let n=t%100;if(n<=20&&n>10)return e.other;let r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function i(e,t,n){let i=r(e,t);return(typeof i==`string`?i:i[n]).replace(`{{count}}`,String(t))}var a=(e,t,r)=>{let a=n[e];return r?.addSuffix?r.comparison&&r.comparison>0?`za `+i(a,t,`future`):i(a,t,`past`)+` temu`:i(a,t,`regular`)},o={date:e.i({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:e.i({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},s={masculine:`ostatni`,feminine:`ostatnia`},c={masculine:`ten`,feminine:`ta`},l={masculine:`następny`,feminine:`następna`},u={0:`feminine`,1:`masculine`,2:`masculine`,3:`feminine`,4:`masculine`,5:`masculine`,6:`feminine`};function d(e,n,r,i){let a;if(t.t(n,r,i))a=c;else if(e===`lastWeek`)a=s;else if(e===`nextWeek`)a=l;else throw Error(`Cannot determine adjectives for token ${e}`);let o=u[n.getDay()];return`'${a[o]}' eeee 'o' p`}var f={lastWeek:d,yesterday:`'wczoraj o' p`,today:`'dzisiaj o' p`,tomorrow:`'jutro o' p`,nextWeek:d,other:`P`},p={code:`pl`,formatDistance:a,formatLong:o,formatRelative:(e,t,n,r)=>{let i=f[e];return typeof i==`function`?i(e,t,n,r):i},localize:{ordinalNumber:(e,t)=>String(e),era:e.r({values:{narrow:[`p.n.e.`,`n.e.`],abbreviated:[`p.n.e.`,`n.e.`],wide:[`przed naszą erą`,`naszej ery`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I kw.`,`II kw.`,`III kw.`,`IV kw.`],wide:[`I kwartał`,`II kwartał`,`III kwartał`,`IV kwartał`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:e.r({values:{narrow:[`S`,`L`,`M`,`K`,`M`,`C`,`L`,`S`,`W`,`P`,`L`,`G`],abbreviated:[`sty`,`lut`,`mar`,`kwi`,`maj`,`cze`,`lip`,`sie`,`wrz`,`paź`,`lis`,`gru`],wide:[`styczeń`,`luty`,`marzec`,`kwiecień`,`maj`,`czerwiec`,`lipiec`,`sierpień`,`wrzesień`,`październik`,`listopad`,`grudzień`]},defaultWidth:`wide`,formattingValues:{narrow:[`s`,`l`,`m`,`k`,`m`,`c`,`l`,`s`,`w`,`p`,`l`,`g`],abbreviated:[`sty`,`lut`,`mar`,`kwi`,`maj`,`cze`,`lip`,`sie`,`wrz`,`paź`,`lis`,`gru`],wide:[`stycznia`,`lutego`,`marca`,`kwietnia`,`maja`,`czerwca`,`lipca`,`sierpnia`,`września`,`października`,`listopada`,`grudnia`]},defaultFormattingWidth:`wide`}),day:e.r({values:{narrow:[`N`,`P`,`W`,`Ś`,`C`,`P`,`S`],short:[`nie`,`pon`,`wto`,`śro`,`czw`,`pią`,`sob`],abbreviated:[`niedz.`,`pon.`,`wt.`,`śr.`,`czw.`,`pt.`,`sob.`],wide:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},defaultWidth:`wide`,formattingValues:{narrow:[`n`,`p`,`w`,`ś`,`c`,`p`,`s`],short:[`nie`,`pon`,`wto`,`śro`,`czw`,`pią`,`sob`],abbreviated:[`niedz.`,`pon.`,`wt.`,`śr.`,`czw.`,`pt.`,`sob.`],wide:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},defaultFormattingWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`a`,pm:`p`,midnight:`półn.`,noon:`poł`,morning:`rano`,afternoon:`popoł.`,evening:`wiecz.`,night:`noc`},abbreviated:{am:`AM`,pm:`PM`,midnight:`północ`,noon:`południe`,morning:`rano`,afternoon:`popołudnie`,evening:`wieczór`,night:`noc`},wide:{am:`AM`,pm:`PM`,midnight:`północ`,noon:`południe`,morning:`rano`,afternoon:`popołudnie`,evening:`wieczór`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`o półn.`,noon:`w poł.`,morning:`rano`,afternoon:`po poł.`,evening:`wiecz.`,night:`w nocy`},abbreviated:{am:`AM`,pm:`PM`,midnight:`o północy`,noon:`w południe`,morning:`rano`,afternoon:`po południu`,evening:`wieczorem`,night:`w nocy`},wide:{am:`AM`,pm:`PM`,midnight:`o północy`,noon:`w południe`,morning:`rano`,afternoon:`po południu`,evening:`wieczorem`,night:`w nocy`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.n({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};exports.default=p,exports.pl=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-
|
|
2
|
-
import { t as i } from "./isSameWeek-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-DQMsT4gp.js";
|
|
2
|
+
import { t as i } from "./isSameWeek-CIK6QT5b.js";
|
|
3
3
|
//#region node_modules/date-fns/locale/sk/_lib/formatDistance.js
|
|
4
4
|
function a(e, t) {
|
|
5
5
|
return t === 1 && e.one ? e.one : t >= 2 && t <= 4 && e.twoFour ? e.twoFour : e.other;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("./buildMatchPatternFn-BoUDNAZO.cjs"),t=require("./isSameWeek-B3WWLbDx.cjs");function n(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function r(e,t,r){return n(e,t)[r].replace(`{{count}}`,String(t))}function i(e){return[`lessThan`,`about`,`over`,`almost`].filter(function(t){return!!e.match(RegExp(`^`+t))})[0]}function a(e){let t=``;return e===`almost`&&(t=`takmer`),e===`about`&&(t=`približne`),t.length>0?t+` `:``}function o(e){let t=``;return e===`lessThan`&&(t=`menej než`),e===`over`&&(t=`viac než`),t.length>0?t+` `:``}function s(e){return e.charAt(0).toLowerCase()+e.slice(1)}var c={xSeconds:{one:{present:`sekunda`,past:`sekundou`,future:`sekundu`},twoFour:{present:`{{count}} sekundy`,past:`{{count}} sekundami`,future:`{{count}} sekundy`},other:{present:`{{count}} sekúnd`,past:`{{count}} sekundami`,future:`{{count}} sekúnd`}},halfAMinute:{other:{present:`pol minúty`,past:`pol minútou`,future:`pol minúty`}},xMinutes:{one:{present:`minúta`,past:`minútou`,future:`minútu`},twoFour:{present:`{{count}} minúty`,past:`{{count}} minútami`,future:`{{count}} minúty`},other:{present:`{{count}} minút`,past:`{{count}} minútami`,future:`{{count}} minút`}},xHours:{one:{present:`hodina`,past:`hodinou`,future:`hodinu`},twoFour:{present:`{{count}} hodiny`,past:`{{count}} hodinami`,future:`{{count}} hodiny`},other:{present:`{{count}} hodín`,past:`{{count}} hodinami`,future:`{{count}} hodín`}},xDays:{one:{present:`deň`,past:`dňom`,future:`deň`},twoFour:{present:`{{count}} dni`,past:`{{count}} dňami`,future:`{{count}} dni`},other:{present:`{{count}} dní`,past:`{{count}} dňami`,future:`{{count}} dní`}},xWeeks:{one:{present:`týždeň`,past:`týždňom`,future:`týždeň`},twoFour:{present:`{{count}} týždne`,past:`{{count}} týždňami`,future:`{{count}} týždne`},other:{present:`{{count}} týždňov`,past:`{{count}} týždňami`,future:`{{count}} týždňov`}},xMonths:{one:{present:`mesiac`,past:`mesiacom`,future:`mesiac`},twoFour:{present:`{{count}} mesiace`,past:`{{count}} mesiacmi`,future:`{{count}} mesiace`},other:{present:`{{count}} mesiacov`,past:`{{count}} mesiacmi`,future:`{{count}} mesiacov`}},xYears:{one:{present:`rok`,past:`rokom`,future:`rok`},twoFour:{present:`{{count}} roky`,past:`{{count}} rokmi`,future:`{{count}} roky`},other:{present:`{{count}} rokov`,past:`{{count}} rokmi`,future:`{{count}} rokov`}}},l=(e,t,n)=>{let l=i(e)||``,u=c[s(e.substring(l.length))];return n?.addSuffix?n.comparison&&n.comparison>0?a(l)+`o `+o(l)+r(u,t,`future`):a(l)+`pred `+o(l)+r(u,t,`past`):a(l)+o(l)+r(u,t,`present`)},u={date:e.i({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. M. y`,short:`d. M. y`},defaultWidth:`full`}),time:e.i({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}}, {{time}}`,long:`{{date}}, {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d=[`nedeľu`,`pondelok`,`utorok`,`stredu`,`štvrtok`,`piatok`,`sobotu`];function f(e){let t=d[e];switch(e){case 0:case 3:case 6:return`'minulú `+t+` o' p`;default:return`'minulý' eeee 'o' p`}}function p(e){let t=d[e];return e===4?`'vo' eeee 'o' p`:`'v `+t+` o' p`}function m(e){let t=d[e];switch(e){case 0:case 4:case 6:return`'budúcu `+t+` o' p`;default:return`'budúci' eeee 'o' p`}}var h={lastWeek:(e,n,r)=>{let i=e.getDay();return t.t(e,n,r)?p(i):f(i)},yesterday:`'včera o' p`,today:`'dnes o' p`,tomorrow:`'zajtra o' p`,nextWeek:(e,n,r)=>{let i=e.getDay();return t.t(e,n,r)?p(i):m(i)},other:`P`},g={code:`sk`,formatDistance:l,formatLong:u,formatRelative:(e,t,n,r)=>{let i=h[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>Number(e)+`.`,era:e.r({values:{narrow:[`pred Kr.`,`po Kr.`],abbreviated:[`pred Kr.`,`po Kr.`],wide:[`pred Kristom`,`po Kristovi`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. štvrťrok`,`2. štvrťrok`,`3. štvrťrok`,`4. štvrťrok`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:e.r({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`máj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],wide:[`január`,`február`,`marec`,`apríl`,`máj`,`jún`,`júl`,`august`,`september`,`október`,`november`,`december`]},defaultWidth:`wide`,formattingValues:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`máj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],wide:[`januára`,`februára`,`marca`,`apríla`,`mája`,`júna`,`júla`,`augusta`,`septembra`,`októbra`,`novembra`,`decembra`]},defaultFormattingWidth:`wide`}),day:e.r({values:{narrow:[`n`,`p`,`u`,`s`,`š`,`p`,`s`],short:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],abbreviated:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],wide:[`nedeľa`,`pondelok`,`utorok`,`streda`,`štvrtok`,`piatok`,`sobota`]},defaultWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`AM`,pm:`PM`,midnight:`poln.`,noon:`pol.`,morning:`ráno`,afternoon:`pop.`,evening:`več.`,night:`noc`},abbreviated:{am:`AM`,pm:`PM`,midnight:`poln.`,noon:`pol.`,morning:`ráno`,afternoon:`popol.`,evening:`večer`,night:`noc`},wide:{am:`AM`,pm:`PM`,midnight:`polnoc`,noon:`poludnie`,morning:`ráno`,afternoon:`popoludnie`,evening:`večer`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`o poln.`,noon:`nap.`,morning:`ráno`,afternoon:`pop.`,evening:`več.`,night:`v n.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`o poln.`,noon:`napol.`,morning:`ráno`,afternoon:`popol.`,evening:`večer`,night:`v noci`},wide:{am:`AM`,pm:`PM`,midnight:`o polnoci`,noon:`napoludnie`,morning:`ráno`,afternoon:`popoludní`,evening:`večer`,night:`v noci`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.n({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};exports.default=g,exports.sk=g;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dejwcake/craftable",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "This is a frontend dependency for Craftable. Craftable is a Laravel-based open-source toolkit for building administration interfaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@coreui/coreui": "^5.3",
|
|
44
44
|
"@fortawesome/fontawesome-free": "^7.2",
|
|
45
45
|
"@kyvg/vue3-notification": "^3.4",
|
|
46
|
-
"@tiptap/extension-image": "^3.
|
|
47
|
-
"@tiptap/extension-table": "^3.
|
|
48
|
-
"@tiptap/starter-kit": "^3.
|
|
49
|
-
"@tiptap/vue-3": "^3.
|
|
46
|
+
"@tiptap/extension-image": "^3.31.4",
|
|
47
|
+
"@tiptap/extension-table": "^3.31.4",
|
|
48
|
+
"@tiptap/starter-kit": "^3.31.4",
|
|
49
|
+
"@tiptap/vue-3": "^3.31.4",
|
|
50
50
|
"@vee-validate/i18n": "^4.15",
|
|
51
51
|
"@vee-validate/rules": "^4.15",
|
|
52
52
|
"@vuepic/vue-datepicker": "^12.1",
|
|
@@ -63,11 +63,12 @@
|
|
|
63
63
|
"vue3-popper": "^1.5.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
+
"@eslint/js": "^10.0.1",
|
|
66
67
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
67
68
|
"@vitest/coverage-v8": "^4.1.0",
|
|
68
69
|
"@vue/test-utils": "^2.4.6",
|
|
69
70
|
"autoprefixer": "^10.4",
|
|
70
|
-
"eslint": "^
|
|
71
|
+
"eslint": "^10.12.0",
|
|
71
72
|
"eslint-config-prettier": "^10.1.8",
|
|
72
73
|
"eslint-plugin-vue": "^10.8.0",
|
|
73
74
|
"globals": "^17.5.0",
|
|
@@ -88,5 +89,9 @@
|
|
|
88
89
|
"/scss",
|
|
89
90
|
"/scripts",
|
|
90
91
|
"/src"
|
|
91
|
-
]
|
|
92
|
+
],
|
|
93
|
+
"allowScripts": {
|
|
94
|
+
"vue-demi": false,
|
|
95
|
+
"@parcel/watcher": false
|
|
96
|
+
}
|
|
92
97
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="mb-3 row align-items-center">
|
|
3
|
+
<label :for="name" class="col-md-3 col-form-label text-md-end">{{ label }}</label>
|
|
4
|
+
<div class="col-md-9 col-xl-8">
|
|
5
|
+
<Multiselect
|
|
6
|
+
:model-value="modelValue"
|
|
7
|
+
:class="{ 'is-invalid': error }"
|
|
8
|
+
:placeholder="placeholder"
|
|
9
|
+
:options="modelValue"
|
|
10
|
+
:multiple="true"
|
|
11
|
+
:taggable="true"
|
|
12
|
+
:close-on-select="false"
|
|
13
|
+
:tag-placeholder="tagPlaceholder"
|
|
14
|
+
open-direction="bottom"
|
|
15
|
+
@tag="$emit('update:modelValue', [...modelValue, $event])"
|
|
16
|
+
@update:model-value="$emit('update:modelValue', $event)"
|
|
17
|
+
></Multiselect>
|
|
18
|
+
<div v-if="error" class="invalid-feedback d-block form-text">{{ error }}</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup>
|
|
24
|
+
import Multiselect from 'vue-multiselect';
|
|
25
|
+
|
|
26
|
+
defineProps({
|
|
27
|
+
modelValue: { type: Array, default: () => [] },
|
|
28
|
+
name: { type: String, required: true },
|
|
29
|
+
label: { type: String, required: true },
|
|
30
|
+
error: { type: String, default: '' },
|
|
31
|
+
placeholder: { type: String, default: '' },
|
|
32
|
+
tagPlaceholder: { type: String, default: '' },
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
defineEmits(['update:modelValue']);
|
|
36
|
+
</script>
|
package/src/index.js
CHANGED
|
@@ -35,6 +35,7 @@ export { default as FormCheckbox } from './components/form/FormCheckbox.vue';
|
|
|
35
35
|
export { default as FormDatePicker } from './components/form/FormDatePicker.vue';
|
|
36
36
|
export { default as FormWysiwyg } from './components/form/FormWysiwyg.vue';
|
|
37
37
|
export { default as FormMultiSelect } from './components/form/FormMultiSelect.vue';
|
|
38
|
+
export { default as FormTagInput } from './components/form/FormTagInput.vue';
|
|
38
39
|
export { default as FormLocalizedInput } from './components/form/FormLocalizedInput.vue';
|
|
39
40
|
export { default as FormLocalizedWysiwyg } from './components/form/FormLocalizedWysiwyg.vue';
|
|
40
41
|
export { default as FormWysiwygSimple } from './components/form/FormWysiwygSimple.vue';
|
|
@@ -11,7 +11,7 @@ export async function initDateFnsLocale() {
|
|
|
11
11
|
const map = {
|
|
12
12
|
sk: () => import('date-fns/locale/sk'),
|
|
13
13
|
cs: () => import('date-fns/locale/cs'),
|
|
14
|
-
en: () =>
|
|
14
|
+
en: async () => ({ enUS }),
|
|
15
15
|
de: () => import('date-fns/locale/de'),
|
|
16
16
|
fr: () => import('date-fns/locale/fr'),
|
|
17
17
|
es: () => import('date-fns/locale/es'),
|
package/dist/en-US-BLvEnhs4.js
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-BV4I8r8j.js";
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var i = Object.defineProperty, a = (e, t) => {
|
|
4
|
-
let n = {};
|
|
5
|
-
for (var r in e) i(n, r, {
|
|
6
|
-
get: e[r],
|
|
7
|
-
enumerable: !0
|
|
8
|
-
});
|
|
9
|
-
return t || i(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
-
}, o = {
|
|
11
|
-
lessThanXSeconds: {
|
|
12
|
-
one: "less than a second",
|
|
13
|
-
other: "less than {{count}} seconds"
|
|
14
|
-
},
|
|
15
|
-
xSeconds: {
|
|
16
|
-
one: "1 second",
|
|
17
|
-
other: "{{count}} seconds"
|
|
18
|
-
},
|
|
19
|
-
halfAMinute: "half a minute",
|
|
20
|
-
lessThanXMinutes: {
|
|
21
|
-
one: "less than a minute",
|
|
22
|
-
other: "less than {{count}} minutes"
|
|
23
|
-
},
|
|
24
|
-
xMinutes: {
|
|
25
|
-
one: "1 minute",
|
|
26
|
-
other: "{{count}} minutes"
|
|
27
|
-
},
|
|
28
|
-
aboutXHours: {
|
|
29
|
-
one: "about 1 hour",
|
|
30
|
-
other: "about {{count}} hours"
|
|
31
|
-
},
|
|
32
|
-
xHours: {
|
|
33
|
-
one: "1 hour",
|
|
34
|
-
other: "{{count}} hours"
|
|
35
|
-
},
|
|
36
|
-
xDays: {
|
|
37
|
-
one: "1 day",
|
|
38
|
-
other: "{{count}} days"
|
|
39
|
-
},
|
|
40
|
-
aboutXWeeks: {
|
|
41
|
-
one: "about 1 week",
|
|
42
|
-
other: "about {{count}} weeks"
|
|
43
|
-
},
|
|
44
|
-
xWeeks: {
|
|
45
|
-
one: "1 week",
|
|
46
|
-
other: "{{count}} weeks"
|
|
47
|
-
},
|
|
48
|
-
aboutXMonths: {
|
|
49
|
-
one: "about 1 month",
|
|
50
|
-
other: "about {{count}} months"
|
|
51
|
-
},
|
|
52
|
-
xMonths: {
|
|
53
|
-
one: "1 month",
|
|
54
|
-
other: "{{count}} months"
|
|
55
|
-
},
|
|
56
|
-
aboutXYears: {
|
|
57
|
-
one: "about 1 year",
|
|
58
|
-
other: "about {{count}} years"
|
|
59
|
-
},
|
|
60
|
-
xYears: {
|
|
61
|
-
one: "1 year",
|
|
62
|
-
other: "{{count}} years"
|
|
63
|
-
},
|
|
64
|
-
overXYears: {
|
|
65
|
-
one: "over 1 year",
|
|
66
|
-
other: "over {{count}} years"
|
|
67
|
-
},
|
|
68
|
-
almostXYears: {
|
|
69
|
-
one: "almost 1 year",
|
|
70
|
-
other: "almost {{count}} years"
|
|
71
|
-
}
|
|
72
|
-
}, s = (e, t, n) => {
|
|
73
|
-
let r, i = o[e];
|
|
74
|
-
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
75
|
-
}, c = {
|
|
76
|
-
date: e({
|
|
77
|
-
formats: {
|
|
78
|
-
full: "EEEE, MMMM do, y",
|
|
79
|
-
long: "MMMM do, y",
|
|
80
|
-
medium: "MMM d, y",
|
|
81
|
-
short: "MM/dd/yyyy"
|
|
82
|
-
},
|
|
83
|
-
defaultWidth: "full"
|
|
84
|
-
}),
|
|
85
|
-
time: e({
|
|
86
|
-
formats: {
|
|
87
|
-
full: "h:mm:ss a zzzz",
|
|
88
|
-
long: "h:mm:ss a z",
|
|
89
|
-
medium: "h:mm:ss a",
|
|
90
|
-
short: "h:mm a"
|
|
91
|
-
},
|
|
92
|
-
defaultWidth: "full"
|
|
93
|
-
}),
|
|
94
|
-
dateTime: e({
|
|
95
|
-
formats: {
|
|
96
|
-
full: "{{date}} 'at' {{time}}",
|
|
97
|
-
long: "{{date}} 'at' {{time}}",
|
|
98
|
-
medium: "{{date}}, {{time}}",
|
|
99
|
-
short: "{{date}}, {{time}}"
|
|
100
|
-
},
|
|
101
|
-
defaultWidth: "full"
|
|
102
|
-
})
|
|
103
|
-
}, l = {
|
|
104
|
-
lastWeek: "'last' eeee 'at' p",
|
|
105
|
-
yesterday: "'yesterday at' p",
|
|
106
|
-
today: "'today at' p",
|
|
107
|
-
tomorrow: "'tomorrow at' p",
|
|
108
|
-
nextWeek: "eeee 'at' p",
|
|
109
|
-
other: "P"
|
|
110
|
-
}, u = (e, t, n, r) => l[e], d = {
|
|
111
|
-
ordinalNumber: (e, t) => {
|
|
112
|
-
let n = Number(e), r = n % 100;
|
|
113
|
-
if (r > 20 || r < 10) switch (r % 10) {
|
|
114
|
-
case 1: return n + "st";
|
|
115
|
-
case 2: return n + "nd";
|
|
116
|
-
case 3: return n + "rd";
|
|
117
|
-
}
|
|
118
|
-
return n + "th";
|
|
119
|
-
},
|
|
120
|
-
era: n({
|
|
121
|
-
values: {
|
|
122
|
-
narrow: ["B", "A"],
|
|
123
|
-
abbreviated: ["BC", "AD"],
|
|
124
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
125
|
-
},
|
|
126
|
-
defaultWidth: "wide"
|
|
127
|
-
}),
|
|
128
|
-
quarter: n({
|
|
129
|
-
values: {
|
|
130
|
-
narrow: [
|
|
131
|
-
"1",
|
|
132
|
-
"2",
|
|
133
|
-
"3",
|
|
134
|
-
"4"
|
|
135
|
-
],
|
|
136
|
-
abbreviated: [
|
|
137
|
-
"Q1",
|
|
138
|
-
"Q2",
|
|
139
|
-
"Q3",
|
|
140
|
-
"Q4"
|
|
141
|
-
],
|
|
142
|
-
wide: [
|
|
143
|
-
"1st quarter",
|
|
144
|
-
"2nd quarter",
|
|
145
|
-
"3rd quarter",
|
|
146
|
-
"4th quarter"
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
defaultWidth: "wide",
|
|
150
|
-
argumentCallback: (e) => e - 1
|
|
151
|
-
}),
|
|
152
|
-
month: n({
|
|
153
|
-
values: {
|
|
154
|
-
narrow: [
|
|
155
|
-
"J",
|
|
156
|
-
"F",
|
|
157
|
-
"M",
|
|
158
|
-
"A",
|
|
159
|
-
"M",
|
|
160
|
-
"J",
|
|
161
|
-
"J",
|
|
162
|
-
"A",
|
|
163
|
-
"S",
|
|
164
|
-
"O",
|
|
165
|
-
"N",
|
|
166
|
-
"D"
|
|
167
|
-
],
|
|
168
|
-
abbreviated: [
|
|
169
|
-
"Jan",
|
|
170
|
-
"Feb",
|
|
171
|
-
"Mar",
|
|
172
|
-
"Apr",
|
|
173
|
-
"May",
|
|
174
|
-
"Jun",
|
|
175
|
-
"Jul",
|
|
176
|
-
"Aug",
|
|
177
|
-
"Sep",
|
|
178
|
-
"Oct",
|
|
179
|
-
"Nov",
|
|
180
|
-
"Dec"
|
|
181
|
-
],
|
|
182
|
-
wide: [
|
|
183
|
-
"January",
|
|
184
|
-
"February",
|
|
185
|
-
"March",
|
|
186
|
-
"April",
|
|
187
|
-
"May",
|
|
188
|
-
"June",
|
|
189
|
-
"July",
|
|
190
|
-
"August",
|
|
191
|
-
"September",
|
|
192
|
-
"October",
|
|
193
|
-
"November",
|
|
194
|
-
"December"
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
defaultWidth: "wide"
|
|
198
|
-
}),
|
|
199
|
-
day: n({
|
|
200
|
-
values: {
|
|
201
|
-
narrow: [
|
|
202
|
-
"S",
|
|
203
|
-
"M",
|
|
204
|
-
"T",
|
|
205
|
-
"W",
|
|
206
|
-
"T",
|
|
207
|
-
"F",
|
|
208
|
-
"S"
|
|
209
|
-
],
|
|
210
|
-
short: [
|
|
211
|
-
"Su",
|
|
212
|
-
"Mo",
|
|
213
|
-
"Tu",
|
|
214
|
-
"We",
|
|
215
|
-
"Th",
|
|
216
|
-
"Fr",
|
|
217
|
-
"Sa"
|
|
218
|
-
],
|
|
219
|
-
abbreviated: [
|
|
220
|
-
"Sun",
|
|
221
|
-
"Mon",
|
|
222
|
-
"Tue",
|
|
223
|
-
"Wed",
|
|
224
|
-
"Thu",
|
|
225
|
-
"Fri",
|
|
226
|
-
"Sat"
|
|
227
|
-
],
|
|
228
|
-
wide: [
|
|
229
|
-
"Sunday",
|
|
230
|
-
"Monday",
|
|
231
|
-
"Tuesday",
|
|
232
|
-
"Wednesday",
|
|
233
|
-
"Thursday",
|
|
234
|
-
"Friday",
|
|
235
|
-
"Saturday"
|
|
236
|
-
]
|
|
237
|
-
},
|
|
238
|
-
defaultWidth: "wide"
|
|
239
|
-
}),
|
|
240
|
-
dayPeriod: n({
|
|
241
|
-
values: {
|
|
242
|
-
narrow: {
|
|
243
|
-
am: "a",
|
|
244
|
-
pm: "p",
|
|
245
|
-
midnight: "mi",
|
|
246
|
-
noon: "n",
|
|
247
|
-
morning: "morning",
|
|
248
|
-
afternoon: "afternoon",
|
|
249
|
-
evening: "evening",
|
|
250
|
-
night: "night"
|
|
251
|
-
},
|
|
252
|
-
abbreviated: {
|
|
253
|
-
am: "AM",
|
|
254
|
-
pm: "PM",
|
|
255
|
-
midnight: "midnight",
|
|
256
|
-
noon: "noon",
|
|
257
|
-
morning: "morning",
|
|
258
|
-
afternoon: "afternoon",
|
|
259
|
-
evening: "evening",
|
|
260
|
-
night: "night"
|
|
261
|
-
},
|
|
262
|
-
wide: {
|
|
263
|
-
am: "a.m.",
|
|
264
|
-
pm: "p.m.",
|
|
265
|
-
midnight: "midnight",
|
|
266
|
-
noon: "noon",
|
|
267
|
-
morning: "morning",
|
|
268
|
-
afternoon: "afternoon",
|
|
269
|
-
evening: "evening",
|
|
270
|
-
night: "night"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
defaultWidth: "wide",
|
|
274
|
-
formattingValues: {
|
|
275
|
-
narrow: {
|
|
276
|
-
am: "a",
|
|
277
|
-
pm: "p",
|
|
278
|
-
midnight: "mi",
|
|
279
|
-
noon: "n",
|
|
280
|
-
morning: "in the morning",
|
|
281
|
-
afternoon: "in the afternoon",
|
|
282
|
-
evening: "in the evening",
|
|
283
|
-
night: "at night"
|
|
284
|
-
},
|
|
285
|
-
abbreviated: {
|
|
286
|
-
am: "AM",
|
|
287
|
-
pm: "PM",
|
|
288
|
-
midnight: "midnight",
|
|
289
|
-
noon: "noon",
|
|
290
|
-
morning: "in the morning",
|
|
291
|
-
afternoon: "in the afternoon",
|
|
292
|
-
evening: "in the evening",
|
|
293
|
-
night: "at night"
|
|
294
|
-
},
|
|
295
|
-
wide: {
|
|
296
|
-
am: "a.m.",
|
|
297
|
-
pm: "p.m.",
|
|
298
|
-
midnight: "midnight",
|
|
299
|
-
noon: "noon",
|
|
300
|
-
morning: "in the morning",
|
|
301
|
-
afternoon: "in the afternoon",
|
|
302
|
-
evening: "in the evening",
|
|
303
|
-
night: "at night"
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
defaultFormattingWidth: "wide"
|
|
307
|
-
})
|
|
308
|
-
}, f = {
|
|
309
|
-
ordinalNumber: r({
|
|
310
|
-
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
311
|
-
parsePattern: /\d+/i,
|
|
312
|
-
valueCallback: (e) => parseInt(e, 10)
|
|
313
|
-
}),
|
|
314
|
-
era: t({
|
|
315
|
-
matchPatterns: {
|
|
316
|
-
narrow: /^(b|a)/i,
|
|
317
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
318
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
319
|
-
},
|
|
320
|
-
defaultMatchWidth: "wide",
|
|
321
|
-
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
322
|
-
defaultParseWidth: "any"
|
|
323
|
-
}),
|
|
324
|
-
quarter: t({
|
|
325
|
-
matchPatterns: {
|
|
326
|
-
narrow: /^[1234]/i,
|
|
327
|
-
abbreviated: /^q[1234]/i,
|
|
328
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
329
|
-
},
|
|
330
|
-
defaultMatchWidth: "wide",
|
|
331
|
-
parsePatterns: { any: [
|
|
332
|
-
/1/i,
|
|
333
|
-
/2/i,
|
|
334
|
-
/3/i,
|
|
335
|
-
/4/i
|
|
336
|
-
] },
|
|
337
|
-
defaultParseWidth: "any",
|
|
338
|
-
valueCallback: (e) => e + 1
|
|
339
|
-
}),
|
|
340
|
-
month: t({
|
|
341
|
-
matchPatterns: {
|
|
342
|
-
narrow: /^[jfmasond]/i,
|
|
343
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
344
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
345
|
-
},
|
|
346
|
-
defaultMatchWidth: "wide",
|
|
347
|
-
parsePatterns: {
|
|
348
|
-
narrow: [
|
|
349
|
-
/^j/i,
|
|
350
|
-
/^f/i,
|
|
351
|
-
/^m/i,
|
|
352
|
-
/^a/i,
|
|
353
|
-
/^m/i,
|
|
354
|
-
/^j/i,
|
|
355
|
-
/^j/i,
|
|
356
|
-
/^a/i,
|
|
357
|
-
/^s/i,
|
|
358
|
-
/^o/i,
|
|
359
|
-
/^n/i,
|
|
360
|
-
/^d/i
|
|
361
|
-
],
|
|
362
|
-
any: [
|
|
363
|
-
/^ja/i,
|
|
364
|
-
/^f/i,
|
|
365
|
-
/^mar/i,
|
|
366
|
-
/^ap/i,
|
|
367
|
-
/^may/i,
|
|
368
|
-
/^jun/i,
|
|
369
|
-
/^jul/i,
|
|
370
|
-
/^au/i,
|
|
371
|
-
/^s/i,
|
|
372
|
-
/^o/i,
|
|
373
|
-
/^n/i,
|
|
374
|
-
/^d/i
|
|
375
|
-
]
|
|
376
|
-
},
|
|
377
|
-
defaultParseWidth: "any"
|
|
378
|
-
}),
|
|
379
|
-
day: t({
|
|
380
|
-
matchPatterns: {
|
|
381
|
-
narrow: /^[smtwf]/i,
|
|
382
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
383
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
384
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
385
|
-
},
|
|
386
|
-
defaultMatchWidth: "wide",
|
|
387
|
-
parsePatterns: {
|
|
388
|
-
narrow: [
|
|
389
|
-
/^s/i,
|
|
390
|
-
/^m/i,
|
|
391
|
-
/^t/i,
|
|
392
|
-
/^w/i,
|
|
393
|
-
/^t/i,
|
|
394
|
-
/^f/i,
|
|
395
|
-
/^s/i
|
|
396
|
-
],
|
|
397
|
-
any: [
|
|
398
|
-
/^su/i,
|
|
399
|
-
/^m/i,
|
|
400
|
-
/^tu/i,
|
|
401
|
-
/^w/i,
|
|
402
|
-
/^th/i,
|
|
403
|
-
/^f/i,
|
|
404
|
-
/^sa/i
|
|
405
|
-
]
|
|
406
|
-
},
|
|
407
|
-
defaultParseWidth: "any"
|
|
408
|
-
}),
|
|
409
|
-
dayPeriod: t({
|
|
410
|
-
matchPatterns: {
|
|
411
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
412
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
413
|
-
},
|
|
414
|
-
defaultMatchWidth: "any",
|
|
415
|
-
parsePatterns: { any: {
|
|
416
|
-
am: /^a/i,
|
|
417
|
-
pm: /^p/i,
|
|
418
|
-
midnight: /^mi/i,
|
|
419
|
-
noon: /^no/i,
|
|
420
|
-
morning: /morning/i,
|
|
421
|
-
afternoon: /afternoon/i,
|
|
422
|
-
evening: /evening/i,
|
|
423
|
-
night: /night/i
|
|
424
|
-
} },
|
|
425
|
-
defaultParseWidth: "any"
|
|
426
|
-
})
|
|
427
|
-
}, p = /* @__PURE__ */ a({
|
|
428
|
-
default: () => m,
|
|
429
|
-
enUS: () => m
|
|
430
|
-
}), m = {
|
|
431
|
-
code: "en-US",
|
|
432
|
-
formatDistance: s,
|
|
433
|
-
formatLong: c,
|
|
434
|
-
formatRelative: u,
|
|
435
|
-
localize: d,
|
|
436
|
-
match: f,
|
|
437
|
-
options: {
|
|
438
|
-
weekStartsOn: 0,
|
|
439
|
-
firstWeekContainsDate: 1
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
//#endregion
|
|
443
|
-
export { p as n, m as t };
|
package/dist/en-US-Dz8vkDZ_.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./buildMatchPatternFn-T5KjFTBQ.cjs`);var t={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},n=(e,n,r)=>{let i,a=t[e];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?`in `+i:i+` ago`:i},r={date:e.i({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:e.i({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},i={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},a={code:`en-US`,formatDistance:n,formatLong:r,formatRelative:(e,t,n,r)=>i[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:e.r({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:e.r({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:e.r({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.n({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|