@ai-matrx/records 0.81.1 → 0.81.3
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/CHANGELOG.md +22 -0
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +3 -3
- package/dist/app-table/index.d.ts +3 -3
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-DLIKeBWF.d.cts → client-CesQciPd.d.cts} +1 -1
- package/dist/{client-D1LTezMZ.d.ts → client-TU-nvgcF.d.ts} +1 -1
- package/dist/core/index.cjs +26 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +26 -1
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-02uao-5n.d.cts → declareTable-B9sr2E0h.d.cts} +2 -2
- package/dist/{declareTable-C5FlIS0z.d.ts → declareTable-COXYIOiT.d.ts} +2 -2
- package/dist/index.cjs +26 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -1
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +13 -0
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.d.cts +3 -1
- package/dist/memory/index.d.ts +3 -1
- package/dist/memory/index.js +13 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/react/index.cjs +28 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -19
- package/dist/react/index.d.ts +3 -19
- package/dist/react/index.js +28 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-LodkBhCZ.d.cts → table-kind-B4vIKJVM.d.cts} +3 -19
- package/dist/{table-kind-COmkYYkc.d.ts → table-kind-C5T-DOdc.d.ts} +3 -19
- package/dist/templates/index.cjs +8 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +3 -3
- package/dist/templates/index.d.ts +3 -3
- package/dist/templates/index.js +8 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-yBZLtxrZ.d.cts → types-B4nQMkQT.d.cts} +5 -0
- package/dist/{types-CU_Tn2Np.d.ts → types-BtXYdZGh.d.ts} +5 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-
|
|
1
|
+
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-B4vIKJVM.cjs';
|
|
2
2
|
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-B_WaT-kr.cjs';
|
|
3
3
|
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal } from './field-snQG2jMq.cjs';
|
|
4
4
|
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-1yDCn169.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-
|
|
1
|
+
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-C5T-DOdc.js';
|
|
2
2
|
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-CUok1vAm.js';
|
|
3
3
|
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal } from './field-BIJiFPc0.js';
|
|
4
4
|
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-1yDCn169.js';
|
package/dist/core/index.cjs
CHANGED
|
@@ -893,7 +893,32 @@ function readTypedDate(raw, opts = {}) {
|
|
|
893
893
|
let month = null;
|
|
894
894
|
let day = null;
|
|
895
895
|
const numeric = /^(\d{1,4})[/.\-](\d{1,2})[/.\-](\d{1,4})$/.exec(dateText);
|
|
896
|
-
|
|
896
|
+
const compact = /^(\d{8}|\d{6})$/.exec(dateText);
|
|
897
|
+
if (compact) {
|
|
898
|
+
const digits = compact[1];
|
|
899
|
+
const order = localeDateOrder(opts.locale);
|
|
900
|
+
const first2 = Number(digits.slice(0, 2));
|
|
901
|
+
const mid2 = Number(digits.slice(2, 4));
|
|
902
|
+
if (digits.length === 6) {
|
|
903
|
+
year = twoDigitYear(Number(digits.slice(4)));
|
|
904
|
+
if (order === "dmy") {
|
|
905
|
+
day = first2;
|
|
906
|
+
month = mid2;
|
|
907
|
+
} else {
|
|
908
|
+
month = first2;
|
|
909
|
+
day = mid2;
|
|
910
|
+
}
|
|
911
|
+
} else {
|
|
912
|
+
const yearLast = Number(digits.slice(4));
|
|
913
|
+
const yearFirst = Number(digits.slice(0, 4));
|
|
914
|
+
const localeReading = () => order === "dmy" ? [yearLast, mid2, first2] : [yearLast, first2, mid2];
|
|
915
|
+
const [ly, lm, ld] = localeReading();
|
|
916
|
+
const isoReading = [yearFirst, Number(digits.slice(4, 6)), Number(digits.slice(6))];
|
|
917
|
+
const fits = (y, m, d) => checkDay(y, m, d, raw) === null;
|
|
918
|
+
const useIso = order === "ymd" || !fits(ly, lm, ld) && fits(...isoReading);
|
|
919
|
+
[year, month, day] = useIso ? isoReading : [ly, lm, ld];
|
|
920
|
+
}
|
|
921
|
+
} else if (numeric) {
|
|
897
922
|
const [a, b, c] = [numeric[1], numeric[2], numeric[3]];
|
|
898
923
|
if (a.length === 4) {
|
|
899
924
|
year = Number(a);
|