@f-ewald/components 1.29.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5162,6 +5162,800 @@
5162
5162
  }
5163
5163
  ]
5164
5164
  },
5165
+ {
5166
+ "kind": "javascript-module",
5167
+ "path": "src/countdown-timer.ts",
5168
+ "declarations": [
5169
+ {
5170
+ "kind": "class",
5171
+ "description": "Per-second ticking count-down timer, e.g. a live \"Retrying in 3 seconds\"\nindicator while waiting to retry a failed request. Renders nothing while\n`until` is unset or unparseable. Remaining time is clamped to zero — it\nnever goes negative once the target instant has passed.",
5172
+ "name": "CountdownTimer",
5173
+ "members": [
5174
+ {
5175
+ "kind": "field",
5176
+ "name": "until",
5177
+ "type": {
5178
+ "text": "string | null"
5179
+ },
5180
+ "default": "null",
5181
+ "description": "ISO-8601 target instant; remaining time is measured until here.",
5182
+ "attribute": "until"
5183
+ },
5184
+ {
5185
+ "kind": "field",
5186
+ "name": "format",
5187
+ "type": {
5188
+ "text": "DurationFormat"
5189
+ },
5190
+ "default": "\"seconds\"",
5191
+ "description": "`\"seconds\"` -> \"1 second\", \"12 seconds\"; `\"compact\"` -> \"12s\", \"3m 12s\", \"1h 03m 12s\".",
5192
+ "attribute": "format"
5193
+ },
5194
+ {
5195
+ "kind": "field",
5196
+ "name": "prefix",
5197
+ "type": {
5198
+ "text": "string"
5199
+ },
5200
+ "default": "\"\"",
5201
+ "description": "Text rendered before the formatted value.",
5202
+ "attribute": "prefix"
5203
+ },
5204
+ {
5205
+ "kind": "field",
5206
+ "name": "suffix",
5207
+ "type": {
5208
+ "text": "string"
5209
+ },
5210
+ "default": "\"\"",
5211
+ "description": "Text rendered after the formatted value.",
5212
+ "attribute": "suffix"
5213
+ },
5214
+ {
5215
+ "kind": "field",
5216
+ "name": "_now",
5217
+ "privacy": "private"
5218
+ },
5219
+ {
5220
+ "kind": "field",
5221
+ "name": "_timer",
5222
+ "type": {
5223
+ "text": "ReturnType<typeof setInterval> | null"
5224
+ },
5225
+ "privacy": "private",
5226
+ "default": "null"
5227
+ }
5228
+ ],
5229
+ "attributes": [
5230
+ {
5231
+ "name": "until",
5232
+ "type": {
5233
+ "text": "string | null"
5234
+ },
5235
+ "default": "null",
5236
+ "description": "ISO-8601 target instant; remaining time is measured until here.",
5237
+ "fieldName": "until"
5238
+ },
5239
+ {
5240
+ "name": "format",
5241
+ "type": {
5242
+ "text": "DurationFormat"
5243
+ },
5244
+ "default": "\"seconds\"",
5245
+ "description": "`\"seconds\"` -> \"1 second\", \"12 seconds\"; `\"compact\"` -> \"12s\", \"3m 12s\", \"1h 03m 12s\".",
5246
+ "fieldName": "format"
5247
+ },
5248
+ {
5249
+ "name": "prefix",
5250
+ "type": {
5251
+ "text": "string"
5252
+ },
5253
+ "default": "\"\"",
5254
+ "description": "Text rendered before the formatted value.",
5255
+ "fieldName": "prefix"
5256
+ },
5257
+ {
5258
+ "name": "suffix",
5259
+ "type": {
5260
+ "text": "string"
5261
+ },
5262
+ "default": "\"\"",
5263
+ "description": "Text rendered after the formatted value.",
5264
+ "fieldName": "suffix"
5265
+ }
5266
+ ],
5267
+ "superclass": {
5268
+ "name": "LitElement",
5269
+ "package": "lit"
5270
+ },
5271
+ "tagName": "countdown-timer",
5272
+ "customElement": true
5273
+ }
5274
+ ],
5275
+ "exports": [
5276
+ {
5277
+ "kind": "js",
5278
+ "name": "CountdownTimer",
5279
+ "declaration": {
5280
+ "name": "CountdownTimer",
5281
+ "module": "src/countdown-timer.ts"
5282
+ }
5283
+ },
5284
+ {
5285
+ "kind": "custom-element-definition",
5286
+ "name": "countdown-timer",
5287
+ "declaration": {
5288
+ "name": "CountdownTimer",
5289
+ "module": "src/countdown-timer.ts"
5290
+ }
5291
+ }
5292
+ ]
5293
+ },
5294
+ {
5295
+ "kind": "javascript-module",
5296
+ "path": "src/cron-schedule.ts",
5297
+ "declarations": [
5298
+ {
5299
+ "kind": "class",
5300
+ "description": "Repeat-schedule picker that reads and writes a standard 5-field cron\nexpression. The collapsed trigger shows a compact English description of\nthe current schedule (\"Every hour\", \"10:17 every Monday\"); clicking it\nopens an anchored panel with the schedule form.\n\nThe panel offers frequency presets (every N minutes, hourly, daily, weekly,\nmonthly, yearly) plus an `Advanced` mode that edits each cron field as a\nlist of terms, so any valid expression — including compound fields that mix\nranges, steps, and single values — is reachable. Edits apply immediately:\neach change updates `value` and fires `change`; closing the panel only\ndismisses it.\n\nAn unparseable `value` (e.g. `@reboot`, which has no five-field form) is\npreserved verbatim and shown as-is on the trigger; the panel then starts\nfrom the default hourly schedule.\n\nThe host is `display: block` with a full-width trigger, matching the other\nvalue-entry fields. To shrink an instance to its content, constrain the\nhost: `cron-schedule { display: inline-block; }`.",
5301
+ "name": "CronSchedule",
5302
+ "members": [
5303
+ {
5304
+ "kind": "field",
5305
+ "name": "value",
5306
+ "default": "\"0 * * * *\"",
5307
+ "description": "The cron expression, e.g. `\"0 * * * *\"`.",
5308
+ "attribute": "value",
5309
+ "type": {
5310
+ "text": "string"
5311
+ }
5312
+ },
5313
+ {
5314
+ "kind": "field",
5315
+ "name": "label",
5316
+ "type": {
5317
+ "text": "string"
5318
+ },
5319
+ "default": "\"\"",
5320
+ "description": "Accessible label for the trigger.",
5321
+ "attribute": "label"
5322
+ },
5323
+ {
5324
+ "kind": "field",
5325
+ "name": "disabled",
5326
+ "type": {
5327
+ "text": "boolean"
5328
+ },
5329
+ "default": "false",
5330
+ "description": "Whether the picker is disabled.",
5331
+ "attribute": "disabled"
5332
+ },
5333
+ {
5334
+ "kind": "field",
5335
+ "name": "open",
5336
+ "type": {
5337
+ "text": "boolean"
5338
+ },
5339
+ "default": "false",
5340
+ "description": "Whether the schedule panel is open.",
5341
+ "attribute": "open",
5342
+ "reflects": true
5343
+ },
5344
+ {
5345
+ "kind": "field",
5346
+ "name": "_mode",
5347
+ "type": {
5348
+ "text": "CronFrequency"
5349
+ },
5350
+ "privacy": "private",
5351
+ "default": "\"hourly\""
5352
+ },
5353
+ {
5354
+ "kind": "field",
5355
+ "name": "#panelId",
5356
+ "privacy": "private",
5357
+ "readonly": true,
5358
+ "default": "`cron-schedule-panel-${++instanceCount}`"
5359
+ },
5360
+ {
5361
+ "kind": "field",
5362
+ "name": "#valueIsInternal",
5363
+ "privacy": "private",
5364
+ "type": {
5365
+ "text": "boolean"
5366
+ },
5367
+ "default": "false"
5368
+ },
5369
+ {
5370
+ "kind": "field",
5371
+ "name": "description",
5372
+ "type": {
5373
+ "text": "string"
5374
+ },
5375
+ "description": "The compact English description of the current expression.",
5376
+ "readonly": true
5377
+ },
5378
+ {
5379
+ "kind": "method",
5380
+ "name": "#teardownPanel",
5381
+ "privacy": "private",
5382
+ "return": {
5383
+ "type": {
5384
+ "text": "void"
5385
+ }
5386
+ }
5387
+ },
5388
+ {
5389
+ "kind": "field",
5390
+ "name": "#onWindowMousedown",
5391
+ "privacy": "private"
5392
+ },
5393
+ {
5394
+ "kind": "field",
5395
+ "name": "#onWindowKeydown",
5396
+ "privacy": "private"
5397
+ },
5398
+ {
5399
+ "kind": "method",
5400
+ "name": "#toggle",
5401
+ "privacy": "private",
5402
+ "return": {
5403
+ "type": {
5404
+ "text": "void"
5405
+ }
5406
+ }
5407
+ },
5408
+ {
5409
+ "kind": "method",
5410
+ "name": "#close",
5411
+ "privacy": "private",
5412
+ "return": {
5413
+ "type": {
5414
+ "text": "void"
5415
+ }
5416
+ },
5417
+ "parameters": [
5418
+ {
5419
+ "name": "restoreFocus",
5420
+ "default": "true"
5421
+ }
5422
+ ]
5423
+ },
5424
+ {
5425
+ "kind": "method",
5426
+ "name": "#expression",
5427
+ "privacy": "private",
5428
+ "return": {
5429
+ "type": {
5430
+ "text": "CronExpression"
5431
+ }
5432
+ },
5433
+ "description": "The current expression, falling back to the default when unparseable."
5434
+ },
5435
+ {
5436
+ "kind": "method",
5437
+ "name": "#commit",
5438
+ "privacy": "private",
5439
+ "return": {
5440
+ "type": {
5441
+ "text": "void"
5442
+ }
5443
+ },
5444
+ "parameters": [
5445
+ {
5446
+ "name": "expression",
5447
+ "type": {
5448
+ "text": "CronExpression"
5449
+ }
5450
+ }
5451
+ ]
5452
+ },
5453
+ {
5454
+ "kind": "method",
5455
+ "name": "#patch",
5456
+ "privacy": "private",
5457
+ "return": {
5458
+ "type": {
5459
+ "text": "void"
5460
+ }
5461
+ },
5462
+ "parameters": [
5463
+ {
5464
+ "name": "patch",
5465
+ "type": {
5466
+ "text": "Partial<CronExpression>"
5467
+ }
5468
+ }
5469
+ ]
5470
+ },
5471
+ {
5472
+ "kind": "method",
5473
+ "name": "#single",
5474
+ "privacy": "private",
5475
+ "return": {
5476
+ "type": {
5477
+ "text": "number"
5478
+ }
5479
+ },
5480
+ "parameters": [
5481
+ {
5482
+ "name": "name",
5483
+ "type": {
5484
+ "text": "CronFieldName"
5485
+ }
5486
+ },
5487
+ {
5488
+ "name": "fallback",
5489
+ "type": {
5490
+ "text": "number"
5491
+ }
5492
+ }
5493
+ ],
5494
+ "description": "Single value a field selects, or `fallback` when it selects none or many."
5495
+ },
5496
+ {
5497
+ "kind": "method",
5498
+ "name": "#selected",
5499
+ "privacy": "private",
5500
+ "return": {
5501
+ "type": {
5502
+ "text": "number[]"
5503
+ }
5504
+ },
5505
+ "parameters": [
5506
+ {
5507
+ "name": "name",
5508
+ "type": {
5509
+ "text": "CronFieldName"
5510
+ }
5511
+ }
5512
+ ]
5513
+ },
5514
+ {
5515
+ "kind": "method",
5516
+ "name": "#onFrequencyChange",
5517
+ "privacy": "private",
5518
+ "return": {
5519
+ "type": {
5520
+ "text": "void"
5521
+ }
5522
+ },
5523
+ "parameters": [
5524
+ {
5525
+ "name": "mode",
5526
+ "type": {
5527
+ "text": "CronFrequency"
5528
+ }
5529
+ }
5530
+ ]
5531
+ },
5532
+ {
5533
+ "kind": "method",
5534
+ "name": "#onTimeChange",
5535
+ "privacy": "private",
5536
+ "return": {
5537
+ "type": {
5538
+ "text": "void"
5539
+ }
5540
+ },
5541
+ "parameters": [
5542
+ {
5543
+ "name": "name",
5544
+ "type": {
5545
+ "text": "\"hour\" | \"minute\""
5546
+ }
5547
+ },
5548
+ {
5549
+ "name": "raw",
5550
+ "type": {
5551
+ "text": "string"
5552
+ }
5553
+ }
5554
+ ]
5555
+ },
5556
+ {
5557
+ "kind": "method",
5558
+ "name": "#onToggleValue",
5559
+ "privacy": "private",
5560
+ "return": {
5561
+ "type": {
5562
+ "text": "void"
5563
+ }
5564
+ },
5565
+ "parameters": [
5566
+ {
5567
+ "name": "name",
5568
+ "type": {
5569
+ "text": "CronFieldName"
5570
+ }
5571
+ },
5572
+ {
5573
+ "name": "value",
5574
+ "type": {
5575
+ "text": "number"
5576
+ }
5577
+ },
5578
+ {
5579
+ "name": "checked",
5580
+ "type": {
5581
+ "text": "boolean"
5582
+ }
5583
+ }
5584
+ ],
5585
+ "description": "Toggles one value in a checkbox-backed field."
5586
+ },
5587
+ {
5588
+ "kind": "method",
5589
+ "name": "#onTermChange",
5590
+ "privacy": "private",
5591
+ "return": {
5592
+ "type": {
5593
+ "text": "void"
5594
+ }
5595
+ },
5596
+ "parameters": [
5597
+ {
5598
+ "name": "name",
5599
+ "type": {
5600
+ "text": "CronFieldName"
5601
+ }
5602
+ },
5603
+ {
5604
+ "name": "index",
5605
+ "type": {
5606
+ "text": "number"
5607
+ }
5608
+ },
5609
+ {
5610
+ "name": "term",
5611
+ "type": {
5612
+ "text": "CronTerm"
5613
+ }
5614
+ }
5615
+ ]
5616
+ },
5617
+ {
5618
+ "kind": "method",
5619
+ "name": "#onAddTerm",
5620
+ "privacy": "private",
5621
+ "return": {
5622
+ "type": {
5623
+ "text": "void"
5624
+ }
5625
+ },
5626
+ "parameters": [
5627
+ {
5628
+ "name": "name",
5629
+ "type": {
5630
+ "text": "CronFieldName"
5631
+ }
5632
+ }
5633
+ ]
5634
+ },
5635
+ {
5636
+ "kind": "method",
5637
+ "name": "#onRemoveTerm",
5638
+ "privacy": "private",
5639
+ "return": {
5640
+ "type": {
5641
+ "text": "void"
5642
+ }
5643
+ },
5644
+ "parameters": [
5645
+ {
5646
+ "name": "name",
5647
+ "type": {
5648
+ "text": "CronFieldName"
5649
+ }
5650
+ },
5651
+ {
5652
+ "name": "index",
5653
+ "type": {
5654
+ "text": "number"
5655
+ }
5656
+ }
5657
+ ]
5658
+ },
5659
+ {
5660
+ "kind": "method",
5661
+ "name": "#renderSelect",
5662
+ "privacy": "private",
5663
+ "return": {
5664
+ "type": {
5665
+ "text": "TemplateResult"
5666
+ }
5667
+ },
5668
+ "parameters": [
5669
+ {
5670
+ "name": "label",
5671
+ "type": {
5672
+ "text": "string"
5673
+ }
5674
+ },
5675
+ {
5676
+ "name": "options",
5677
+ "type": {
5678
+ "text": "SelectOption[]"
5679
+ }
5680
+ },
5681
+ {
5682
+ "name": "value",
5683
+ "type": {
5684
+ "text": "number"
5685
+ }
5686
+ },
5687
+ {
5688
+ "name": "onChange",
5689
+ "type": {
5690
+ "text": "(raw: string) => void"
5691
+ }
5692
+ },
5693
+ {
5694
+ "name": "narrow",
5695
+ "default": "false"
5696
+ }
5697
+ ]
5698
+ },
5699
+ {
5700
+ "kind": "method",
5701
+ "name": "#renderTime",
5702
+ "privacy": "private",
5703
+ "return": {
5704
+ "type": {
5705
+ "text": "TemplateResult"
5706
+ }
5707
+ }
5708
+ },
5709
+ {
5710
+ "kind": "method",
5711
+ "name": "#renderCheckboxGrid",
5712
+ "privacy": "private",
5713
+ "return": {
5714
+ "type": {
5715
+ "text": "TemplateResult"
5716
+ }
5717
+ },
5718
+ "parameters": [
5719
+ {
5720
+ "name": "name",
5721
+ "type": {
5722
+ "text": "CronFieldName"
5723
+ }
5724
+ },
5725
+ {
5726
+ "name": "legend",
5727
+ "type": {
5728
+ "text": "string"
5729
+ }
5730
+ },
5731
+ {
5732
+ "name": "gridClass",
5733
+ "type": {
5734
+ "text": "string"
5735
+ }
5736
+ },
5737
+ {
5738
+ "name": "entries",
5739
+ "type": {
5740
+ "text": "{ value: number; label: string }[]"
5741
+ }
5742
+ }
5743
+ ]
5744
+ },
5745
+ {
5746
+ "kind": "method",
5747
+ "name": "#renderMinuteMode",
5748
+ "privacy": "private",
5749
+ "return": {
5750
+ "type": {
5751
+ "text": "TemplateResult"
5752
+ }
5753
+ }
5754
+ },
5755
+ {
5756
+ "kind": "method",
5757
+ "name": "#renderHourlyMode",
5758
+ "privacy": "private",
5759
+ "return": {
5760
+ "type": {
5761
+ "text": "TemplateResult"
5762
+ }
5763
+ }
5764
+ },
5765
+ {
5766
+ "kind": "method",
5767
+ "name": "#renderWeeklyMode",
5768
+ "privacy": "private",
5769
+ "return": {
5770
+ "type": {
5771
+ "text": "TemplateResult"
5772
+ }
5773
+ }
5774
+ },
5775
+ {
5776
+ "kind": "method",
5777
+ "name": "#renderMonthDays",
5778
+ "privacy": "private",
5779
+ "return": {
5780
+ "type": {
5781
+ "text": "TemplateResult"
5782
+ }
5783
+ }
5784
+ },
5785
+ {
5786
+ "kind": "method",
5787
+ "name": "#renderMonths",
5788
+ "privacy": "private",
5789
+ "return": {
5790
+ "type": {
5791
+ "text": "TemplateResult"
5792
+ }
5793
+ }
5794
+ },
5795
+ {
5796
+ "kind": "method",
5797
+ "name": "#renderTermInputs",
5798
+ "privacy": "private",
5799
+ "return": {
5800
+ "type": {
5801
+ "text": "TemplateResult | typeof nothing"
5802
+ }
5803
+ },
5804
+ "parameters": [
5805
+ {
5806
+ "name": "name",
5807
+ "type": {
5808
+ "text": "CronFieldName"
5809
+ }
5810
+ },
5811
+ {
5812
+ "name": "index",
5813
+ "type": {
5814
+ "text": "number"
5815
+ }
5816
+ },
5817
+ {
5818
+ "name": "term",
5819
+ "type": {
5820
+ "text": "CronTerm"
5821
+ }
5822
+ }
5823
+ ]
5824
+ },
5825
+ {
5826
+ "kind": "method",
5827
+ "name": "#renderFieldEditor",
5828
+ "privacy": "private",
5829
+ "return": {
5830
+ "type": {
5831
+ "text": "TemplateResult"
5832
+ }
5833
+ },
5834
+ "parameters": [
5835
+ {
5836
+ "name": "name",
5837
+ "type": {
5838
+ "text": "CronFieldName"
5839
+ }
5840
+ }
5841
+ ]
5842
+ },
5843
+ {
5844
+ "kind": "method",
5845
+ "name": "#defaultTerm",
5846
+ "privacy": "private",
5847
+ "return": {
5848
+ "type": {
5849
+ "text": "CronTerm"
5850
+ }
5851
+ },
5852
+ "parameters": [
5853
+ {
5854
+ "name": "name",
5855
+ "type": {
5856
+ "text": "CronFieldName"
5857
+ }
5858
+ },
5859
+ {
5860
+ "name": "kind",
5861
+ "type": {
5862
+ "text": "string"
5863
+ }
5864
+ }
5865
+ ]
5866
+ },
5867
+ {
5868
+ "kind": "method",
5869
+ "name": "#renderModeBody",
5870
+ "privacy": "private",
5871
+ "return": {
5872
+ "type": {
5873
+ "text": "TemplateResult"
5874
+ }
5875
+ }
5876
+ },
5877
+ {
5878
+ "kind": "method",
5879
+ "name": "#renderPanel",
5880
+ "privacy": "private",
5881
+ "return": {
5882
+ "type": {
5883
+ "text": "TemplateResult"
5884
+ }
5885
+ }
5886
+ }
5887
+ ],
5888
+ "events": [
5889
+ {
5890
+ "name": "change",
5891
+ "type": {
5892
+ "text": "CustomEvent"
5893
+ },
5894
+ "description": "Fired with `{ value: string }` whenever the expression changes."
5895
+ }
5896
+ ],
5897
+ "attributes": [
5898
+ {
5899
+ "name": "value",
5900
+ "default": "DEFAULT_EXPRESSION",
5901
+ "description": "The cron expression, e.g. `\"0 * * * *\"`.",
5902
+ "fieldName": "value"
5903
+ },
5904
+ {
5905
+ "name": "label",
5906
+ "type": {
5907
+ "text": "string"
5908
+ },
5909
+ "default": "\"\"",
5910
+ "description": "Accessible label for the trigger.",
5911
+ "fieldName": "label"
5912
+ },
5913
+ {
5914
+ "name": "disabled",
5915
+ "type": {
5916
+ "text": "boolean"
5917
+ },
5918
+ "default": "false",
5919
+ "description": "Whether the picker is disabled.",
5920
+ "fieldName": "disabled"
5921
+ },
5922
+ {
5923
+ "name": "open",
5924
+ "type": {
5925
+ "text": "boolean"
5926
+ },
5927
+ "default": "false",
5928
+ "description": "Whether the schedule panel is open.",
5929
+ "fieldName": "open"
5930
+ }
5931
+ ],
5932
+ "superclass": {
5933
+ "name": "LitElement",
5934
+ "package": "lit"
5935
+ },
5936
+ "tagName": "cron-schedule",
5937
+ "customElement": true
5938
+ }
5939
+ ],
5940
+ "exports": [
5941
+ {
5942
+ "kind": "js",
5943
+ "name": "CronSchedule",
5944
+ "declaration": {
5945
+ "name": "CronSchedule",
5946
+ "module": "src/cron-schedule.ts"
5947
+ }
5948
+ },
5949
+ {
5950
+ "kind": "custom-element-definition",
5951
+ "name": "cron-schedule",
5952
+ "declaration": {
5953
+ "name": "CronSchedule",
5954
+ "module": "src/cron-schedule.ts"
5955
+ }
5956
+ }
5957
+ ]
5958
+ },
5165
5959
  {
5166
5960
  "kind": "javascript-module",
5167
5961
  "path": "src/data-table.ts",
@@ -9328,6 +10122,14 @@
9328
10122
  "module": "./live-timer.js"
9329
10123
  }
9330
10124
  },
10125
+ {
10126
+ "kind": "js",
10127
+ "name": "CountdownTimer",
10128
+ "declaration": {
10129
+ "name": "CountdownTimer",
10130
+ "module": "./countdown-timer.js"
10131
+ }
10132
+ },
9331
10133
  {
9332
10134
  "kind": "js",
9333
10135
  "name": "LoadMore",
@@ -9810,74 +10612,242 @@
9810
10612
  },
9811
10613
  {
9812
10614
  "kind": "js",
9813
- "name": "parseFrontMatter",
10615
+ "name": "parseFrontMatter",
10616
+ "declaration": {
10617
+ "name": "parseFrontMatter",
10618
+ "module": "./utils/front-matter.js"
10619
+ }
10620
+ },
10621
+ {
10622
+ "kind": "js",
10623
+ "name": "formatFrontMatterValue",
10624
+ "declaration": {
10625
+ "name": "formatFrontMatterValue",
10626
+ "module": "./utils/front-matter.js"
10627
+ }
10628
+ },
10629
+ {
10630
+ "kind": "js",
10631
+ "name": "FrontMatterResult",
10632
+ "declaration": {
10633
+ "name": "FrontMatterResult",
10634
+ "module": "./utils/front-matter.js"
10635
+ }
10636
+ },
10637
+ {
10638
+ "kind": "js",
10639
+ "name": "formatDuration",
10640
+ "declaration": {
10641
+ "name": "formatDuration",
10642
+ "module": "./utils/duration.js"
10643
+ }
10644
+ },
10645
+ {
10646
+ "kind": "js",
10647
+ "name": "formatClockDuration",
10648
+ "declaration": {
10649
+ "name": "formatClockDuration",
10650
+ "module": "./utils/duration.js"
10651
+ }
10652
+ },
10653
+ {
10654
+ "kind": "js",
10655
+ "name": "DurationFormat",
10656
+ "declaration": {
10657
+ "name": "DurationFormat",
10658
+ "module": "./utils/duration.js"
10659
+ }
10660
+ },
10661
+ {
10662
+ "kind": "js",
10663
+ "name": "AudioPlayer",
10664
+ "declaration": {
10665
+ "name": "AudioPlayer",
10666
+ "module": "./audio-player.js"
10667
+ }
10668
+ },
10669
+ {
10670
+ "kind": "js",
10671
+ "name": "VideoPlayer",
10672
+ "declaration": {
10673
+ "name": "VideoPlayer",
10674
+ "module": "./video-player.js"
10675
+ }
10676
+ },
10677
+ {
10678
+ "kind": "js",
10679
+ "name": "CommentComposer",
10680
+ "declaration": {
10681
+ "name": "CommentComposer",
10682
+ "module": "./comment-composer.js"
10683
+ }
10684
+ },
10685
+ {
10686
+ "kind": "js",
10687
+ "name": "CronSchedule",
10688
+ "declaration": {
10689
+ "name": "CronSchedule",
10690
+ "module": "./cron-schedule.js"
10691
+ }
10692
+ },
10693
+ {
10694
+ "kind": "js",
10695
+ "name": "CRON_ALIASES",
10696
+ "declaration": {
10697
+ "name": "CRON_ALIASES",
10698
+ "module": "./utils/cron.js"
10699
+ }
10700
+ },
10701
+ {
10702
+ "kind": "js",
10703
+ "name": "CRON_FIELD_BOUNDS",
10704
+ "declaration": {
10705
+ "name": "CRON_FIELD_BOUNDS",
10706
+ "module": "./utils/cron.js"
10707
+ }
10708
+ },
10709
+ {
10710
+ "kind": "js",
10711
+ "name": "CRON_FIELD_LABELS",
10712
+ "declaration": {
10713
+ "name": "CRON_FIELD_LABELS",
10714
+ "module": "./utils/cron.js"
10715
+ }
10716
+ },
10717
+ {
10718
+ "kind": "js",
10719
+ "name": "CRON_FIELD_NAMES",
10720
+ "declaration": {
10721
+ "name": "CRON_FIELD_NAMES",
10722
+ "module": "./utils/cron.js"
10723
+ }
10724
+ },
10725
+ {
10726
+ "kind": "js",
10727
+ "name": "MONTH_ABBREVIATIONS",
10728
+ "declaration": {
10729
+ "name": "MONTH_ABBREVIATIONS",
10730
+ "module": "./utils/cron.js"
10731
+ }
10732
+ },
10733
+ {
10734
+ "kind": "js",
10735
+ "name": "MONTH_NAMES",
10736
+ "declaration": {
10737
+ "name": "MONTH_NAMES",
10738
+ "module": "./utils/cron.js"
10739
+ }
10740
+ },
10741
+ {
10742
+ "kind": "js",
10743
+ "name": "WEEKDAY_ABBREVIATIONS",
10744
+ "declaration": {
10745
+ "name": "WEEKDAY_ABBREVIATIONS",
10746
+ "module": "./utils/cron.js"
10747
+ }
10748
+ },
10749
+ {
10750
+ "kind": "js",
10751
+ "name": "WEEKDAY_NAMES",
10752
+ "declaration": {
10753
+ "name": "WEEKDAY_NAMES",
10754
+ "module": "./utils/cron.js"
10755
+ }
10756
+ },
10757
+ {
10758
+ "kind": "js",
10759
+ "name": "describeCron",
10760
+ "declaration": {
10761
+ "name": "describeCron",
10762
+ "module": "./utils/cron.js"
10763
+ }
10764
+ },
10765
+ {
10766
+ "kind": "js",
10767
+ "name": "detectFrequency",
10768
+ "declaration": {
10769
+ "name": "detectFrequency",
10770
+ "module": "./utils/cron.js"
10771
+ }
10772
+ },
10773
+ {
10774
+ "kind": "js",
10775
+ "name": "expandField",
10776
+ "declaration": {
10777
+ "name": "expandField",
10778
+ "module": "./utils/cron.js"
10779
+ }
10780
+ },
10781
+ {
10782
+ "kind": "js",
10783
+ "name": "fieldFromValues",
9814
10784
  "declaration": {
9815
- "name": "parseFrontMatter",
9816
- "module": "./utils/front-matter.js"
10785
+ "name": "fieldFromValues",
10786
+ "module": "./utils/cron.js"
9817
10787
  }
9818
10788
  },
9819
10789
  {
9820
10790
  "kind": "js",
9821
- "name": "formatFrontMatterValue",
10791
+ "name": "formatCron",
9822
10792
  "declaration": {
9823
- "name": "formatFrontMatterValue",
9824
- "module": "./utils/front-matter.js"
10793
+ "name": "formatCron",
10794
+ "module": "./utils/cron.js"
9825
10795
  }
9826
10796
  },
9827
10797
  {
9828
10798
  "kind": "js",
9829
- "name": "FrontMatterResult",
10799
+ "name": "isEveryValue",
9830
10800
  "declaration": {
9831
- "name": "FrontMatterResult",
9832
- "module": "./utils/front-matter.js"
10801
+ "name": "isEveryValue",
10802
+ "module": "./utils/cron.js"
9833
10803
  }
9834
10804
  },
9835
10805
  {
9836
10806
  "kind": "js",
9837
- "name": "formatDuration",
10807
+ "name": "parseCron",
9838
10808
  "declaration": {
9839
- "name": "formatDuration",
9840
- "module": "./utils/duration.js"
10809
+ "name": "parseCron",
10810
+ "module": "./utils/cron.js"
9841
10811
  }
9842
10812
  },
9843
10813
  {
9844
10814
  "kind": "js",
9845
- "name": "formatClockDuration",
10815
+ "name": "CronExpression",
9846
10816
  "declaration": {
9847
- "name": "formatClockDuration",
9848
- "module": "./utils/duration.js"
10817
+ "name": "CronExpression",
10818
+ "module": "./utils/cron.js"
9849
10819
  }
9850
10820
  },
9851
10821
  {
9852
10822
  "kind": "js",
9853
- "name": "DurationFormat",
10823
+ "name": "CronField",
9854
10824
  "declaration": {
9855
- "name": "DurationFormat",
9856
- "module": "./utils/duration.js"
10825
+ "name": "CronField",
10826
+ "module": "./utils/cron.js"
9857
10827
  }
9858
10828
  },
9859
10829
  {
9860
10830
  "kind": "js",
9861
- "name": "AudioPlayer",
10831
+ "name": "CronFieldName",
9862
10832
  "declaration": {
9863
- "name": "AudioPlayer",
9864
- "module": "./audio-player.js"
10833
+ "name": "CronFieldName",
10834
+ "module": "./utils/cron.js"
9865
10835
  }
9866
10836
  },
9867
10837
  {
9868
10838
  "kind": "js",
9869
- "name": "VideoPlayer",
10839
+ "name": "CronFrequency",
9870
10840
  "declaration": {
9871
- "name": "VideoPlayer",
9872
- "module": "./video-player.js"
10841
+ "name": "CronFrequency",
10842
+ "module": "./utils/cron.js"
9873
10843
  }
9874
10844
  },
9875
10845
  {
9876
10846
  "kind": "js",
9877
- "name": "CommentComposer",
10847
+ "name": "CronTerm",
9878
10848
  "declaration": {
9879
- "name": "CommentComposer",
9880
- "module": "./comment-composer.js"
10849
+ "name": "CronTerm",
10850
+ "module": "./utils/cron.js"
9881
10851
  }
9882
10852
  },
9883
10853
  {
@@ -19744,6 +20714,338 @@
19744
20714
  }
19745
20715
  ]
19746
20716
  },
20717
+ {
20718
+ "kind": "javascript-module",
20719
+ "path": "src/utils/cron.ts",
20720
+ "declarations": [
20721
+ {
20722
+ "kind": "variable",
20723
+ "name": "CRON_FIELD_NAMES",
20724
+ "type": {
20725
+ "text": "[\n \"minute\",\n \"hour\",\n \"dayOfMonth\",\n \"month\",\n \"dayOfWeek\",\n]"
20726
+ },
20727
+ "default": "[ \"minute\", \"hour\", \"dayOfMonth\", \"month\", \"dayOfWeek\", ]",
20728
+ "description": "The five cron field names, in expression order."
20729
+ },
20730
+ {
20731
+ "kind": "variable",
20732
+ "name": "CRON_FIELD_BOUNDS",
20733
+ "type": {
20734
+ "text": "Record<CronFieldName, [number, number]>"
20735
+ },
20736
+ "default": "{ minute: [0, 59], hour: [0, 23], dayOfMonth: [1, 31], month: [1, 12], dayOfWeek: [0, 6], }",
20737
+ "description": "Inclusive `[min, max]` value bounds for each cron field."
20738
+ },
20739
+ {
20740
+ "kind": "variable",
20741
+ "name": "CRON_FIELD_LABELS",
20742
+ "type": {
20743
+ "text": "Record<CronFieldName, string>"
20744
+ },
20745
+ "default": "{ minute: \"Minute\", hour: \"Hour\", dayOfMonth: \"Day of month\", month: \"Month\", dayOfWeek: \"Day of week\", }",
20746
+ "description": "Human-readable labels for each cron field."
20747
+ },
20748
+ {
20749
+ "kind": "variable",
20750
+ "name": "WEEKDAY_NAMES",
20751
+ "type": {
20752
+ "text": "array"
20753
+ },
20754
+ "default": "[ \"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", ]",
20755
+ "description": "Full weekday names indexed by cron day-of-week value (0 = Sunday)."
20756
+ },
20757
+ {
20758
+ "kind": "variable",
20759
+ "name": "WEEKDAY_ABBREVIATIONS",
20760
+ "type": {
20761
+ "text": "array"
20762
+ },
20763
+ "default": "[\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"]",
20764
+ "description": "Three-letter weekday abbreviations indexed by cron value (0 = Sun)."
20765
+ },
20766
+ {
20767
+ "kind": "variable",
20768
+ "name": "MONTH_NAMES",
20769
+ "type": {
20770
+ "text": "array"
20771
+ },
20772
+ "default": "[ \"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\", ]",
20773
+ "description": "Full month names indexed from 0, so month `n` is `MONTH_NAMES[n - 1]`."
20774
+ },
20775
+ {
20776
+ "kind": "variable",
20777
+ "name": "MONTH_ABBREVIATIONS",
20778
+ "type": {
20779
+ "text": "array"
20780
+ },
20781
+ "default": "[ \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\", ]",
20782
+ "description": "Three-letter month abbreviations indexed from 0 (`Jan` is month 1)."
20783
+ },
20784
+ {
20785
+ "kind": "variable",
20786
+ "name": "CRON_ALIASES",
20787
+ "type": {
20788
+ "text": "Record<string, string>"
20789
+ },
20790
+ "default": "{ \"@yearly\": \"0 0 1 1 *\", \"@annually\": \"0 0 1 1 *\", \"@monthly\": \"0 0 1 * *\", \"@weekly\": \"0 0 * * 0\", \"@daily\": \"0 0 * * *\", \"@midnight\": \"0 0 * * *\", \"@hourly\": \"0 * * * *\", }",
20791
+ "description": "Supported `@`-shorthands mapped to their five-field equivalents."
20792
+ },
20793
+ {
20794
+ "kind": "function",
20795
+ "name": "parseCron",
20796
+ "return": {
20797
+ "type": {
20798
+ "text": "CronExpression | null"
20799
+ }
20800
+ },
20801
+ "parameters": [
20802
+ {
20803
+ "name": "expression",
20804
+ "type": {
20805
+ "text": "string"
20806
+ }
20807
+ }
20808
+ ],
20809
+ "description": "Parses a cron expression, expanding any supported `@`-shorthand first.\nReturns `null` when the input is not a valid supported expression."
20810
+ },
20811
+ {
20812
+ "kind": "function",
20813
+ "name": "formatCron",
20814
+ "return": {
20815
+ "type": {
20816
+ "text": "string"
20817
+ }
20818
+ },
20819
+ "parameters": [
20820
+ {
20821
+ "name": "expression",
20822
+ "type": {
20823
+ "text": "CronExpression"
20824
+ }
20825
+ }
20826
+ ],
20827
+ "description": "Serializes an expression canonically: numeric values, `*` for unconstrained fields."
20828
+ },
20829
+ {
20830
+ "kind": "function",
20831
+ "name": "fieldFromValues",
20832
+ "return": {
20833
+ "type": {
20834
+ "text": "CronField"
20835
+ }
20836
+ },
20837
+ "parameters": [
20838
+ {
20839
+ "name": "values",
20840
+ "type": {
20841
+ "text": "number[]"
20842
+ }
20843
+ }
20844
+ ],
20845
+ "description": "Builds a field from an explicit list of values, or `[{ kind: \"all\" }]` when empty."
20846
+ },
20847
+ {
20848
+ "kind": "function",
20849
+ "name": "expandField",
20850
+ "return": {
20851
+ "type": {
20852
+ "text": "number[]"
20853
+ }
20854
+ },
20855
+ "parameters": [
20856
+ {
20857
+ "name": "field",
20858
+ "type": {
20859
+ "text": "CronField"
20860
+ }
20861
+ },
20862
+ {
20863
+ "name": "name",
20864
+ "type": {
20865
+ "text": "CronFieldName"
20866
+ }
20867
+ }
20868
+ ],
20869
+ "description": "Every value a field matches, ascending and de-duplicated."
20870
+ },
20871
+ {
20872
+ "kind": "function",
20873
+ "name": "isEveryValue",
20874
+ "return": {
20875
+ "type": {
20876
+ "text": "boolean"
20877
+ }
20878
+ },
20879
+ "parameters": [
20880
+ {
20881
+ "name": "field",
20882
+ "type": {
20883
+ "text": "CronField"
20884
+ }
20885
+ }
20886
+ ],
20887
+ "description": "Whether a field is unconstrained (`*`, possibly among redundant terms)."
20888
+ },
20889
+ {
20890
+ "kind": "function",
20891
+ "name": "detectFrequency",
20892
+ "return": {
20893
+ "type": {
20894
+ "text": "CronFrequency"
20895
+ }
20896
+ },
20897
+ "parameters": [
20898
+ {
20899
+ "name": "expression",
20900
+ "type": {
20901
+ "text": "CronExpression"
20902
+ }
20903
+ }
20904
+ ],
20905
+ "description": "The preset form mode whose controls can reproduce `expression` exactly,\nor `\"advanced\"` when only the per-field editor can."
20906
+ },
20907
+ {
20908
+ "kind": "function",
20909
+ "name": "describeCron",
20910
+ "return": {
20911
+ "type": {
20912
+ "text": "string"
20913
+ }
20914
+ },
20915
+ "parameters": [
20916
+ {
20917
+ "name": "expression",
20918
+ "type": {
20919
+ "text": "string | CronExpression"
20920
+ }
20921
+ }
20922
+ ],
20923
+ "description": "A compact English description of an expression, e.g. `\"Every hour\"`,\n`\"10:17 every Monday\"`, `\"09:00 on day 1 of every month\"`. Returns the raw\ninput unchanged when it cannot be parsed."
20924
+ }
20925
+ ],
20926
+ "exports": [
20927
+ {
20928
+ "kind": "js",
20929
+ "name": "CRON_FIELD_NAMES",
20930
+ "declaration": {
20931
+ "name": "CRON_FIELD_NAMES",
20932
+ "module": "src/utils/cron.ts"
20933
+ }
20934
+ },
20935
+ {
20936
+ "kind": "js",
20937
+ "name": "CRON_FIELD_BOUNDS",
20938
+ "declaration": {
20939
+ "name": "CRON_FIELD_BOUNDS",
20940
+ "module": "src/utils/cron.ts"
20941
+ }
20942
+ },
20943
+ {
20944
+ "kind": "js",
20945
+ "name": "CRON_FIELD_LABELS",
20946
+ "declaration": {
20947
+ "name": "CRON_FIELD_LABELS",
20948
+ "module": "src/utils/cron.ts"
20949
+ }
20950
+ },
20951
+ {
20952
+ "kind": "js",
20953
+ "name": "WEEKDAY_NAMES",
20954
+ "declaration": {
20955
+ "name": "WEEKDAY_NAMES",
20956
+ "module": "src/utils/cron.ts"
20957
+ }
20958
+ },
20959
+ {
20960
+ "kind": "js",
20961
+ "name": "WEEKDAY_ABBREVIATIONS",
20962
+ "declaration": {
20963
+ "name": "WEEKDAY_ABBREVIATIONS",
20964
+ "module": "src/utils/cron.ts"
20965
+ }
20966
+ },
20967
+ {
20968
+ "kind": "js",
20969
+ "name": "MONTH_NAMES",
20970
+ "declaration": {
20971
+ "name": "MONTH_NAMES",
20972
+ "module": "src/utils/cron.ts"
20973
+ }
20974
+ },
20975
+ {
20976
+ "kind": "js",
20977
+ "name": "MONTH_ABBREVIATIONS",
20978
+ "declaration": {
20979
+ "name": "MONTH_ABBREVIATIONS",
20980
+ "module": "src/utils/cron.ts"
20981
+ }
20982
+ },
20983
+ {
20984
+ "kind": "js",
20985
+ "name": "CRON_ALIASES",
20986
+ "declaration": {
20987
+ "name": "CRON_ALIASES",
20988
+ "module": "src/utils/cron.ts"
20989
+ }
20990
+ },
20991
+ {
20992
+ "kind": "js",
20993
+ "name": "parseCron",
20994
+ "declaration": {
20995
+ "name": "parseCron",
20996
+ "module": "src/utils/cron.ts"
20997
+ }
20998
+ },
20999
+ {
21000
+ "kind": "js",
21001
+ "name": "formatCron",
21002
+ "declaration": {
21003
+ "name": "formatCron",
21004
+ "module": "src/utils/cron.ts"
21005
+ }
21006
+ },
21007
+ {
21008
+ "kind": "js",
21009
+ "name": "fieldFromValues",
21010
+ "declaration": {
21011
+ "name": "fieldFromValues",
21012
+ "module": "src/utils/cron.ts"
21013
+ }
21014
+ },
21015
+ {
21016
+ "kind": "js",
21017
+ "name": "expandField",
21018
+ "declaration": {
21019
+ "name": "expandField",
21020
+ "module": "src/utils/cron.ts"
21021
+ }
21022
+ },
21023
+ {
21024
+ "kind": "js",
21025
+ "name": "isEveryValue",
21026
+ "declaration": {
21027
+ "name": "isEveryValue",
21028
+ "module": "src/utils/cron.ts"
21029
+ }
21030
+ },
21031
+ {
21032
+ "kind": "js",
21033
+ "name": "detectFrequency",
21034
+ "declaration": {
21035
+ "name": "detectFrequency",
21036
+ "module": "src/utils/cron.ts"
21037
+ }
21038
+ },
21039
+ {
21040
+ "kind": "js",
21041
+ "name": "describeCron",
21042
+ "declaration": {
21043
+ "name": "describeCron",
21044
+ "module": "src/utils/cron.ts"
21045
+ }
21046
+ }
21047
+ ]
21048
+ },
19747
21049
  {
19748
21050
  "kind": "javascript-module",
19749
21051
  "path": "src/utils/distance.ts",