timered-counter 0.1.1 → 1.0.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.
@@ -5400,6 +5400,118 @@
5400
5400
  }
5401
5401
  ]
5402
5402
  },
5403
+ {
5404
+ "kind": "javascript-module",
5405
+ "path": "src/number-adapter/build-in-bigint.ts",
5406
+ "declarations": [
5407
+ {
5408
+ "kind": "function",
5409
+ "name": "BuildInBigintAdapter",
5410
+ "deprecated": "true"
5411
+ }
5412
+ ],
5413
+ "exports": [
5414
+ {
5415
+ "kind": "js",
5416
+ "name": "BuildInBigintAdapter",
5417
+ "declaration": {
5418
+ "name": "BuildInBigintAdapter",
5419
+ "module": "src/number-adapter/build-in-bigint.ts"
5420
+ }
5421
+ }
5422
+ ]
5423
+ },
5424
+ {
5425
+ "kind": "javascript-module",
5426
+ "path": "src/number-adapter/build-in-number.ts",
5427
+ "declarations": [
5428
+ {
5429
+ "kind": "function",
5430
+ "name": "BuildInNumberAdapter"
5431
+ }
5432
+ ],
5433
+ "exports": [
5434
+ {
5435
+ "kind": "js",
5436
+ "name": "BuildInNumberAdapter",
5437
+ "declaration": {
5438
+ "name": "BuildInNumberAdapter",
5439
+ "module": "src/number-adapter/build-in-number.ts"
5440
+ }
5441
+ }
5442
+ ]
5443
+ },
5444
+ {
5445
+ "kind": "javascript-module",
5446
+ "path": "src/number-adapter/decimal-js.ts",
5447
+ "declarations": [
5448
+ {
5449
+ "kind": "function",
5450
+ "name": "DecimalJsAdapter",
5451
+ "parameters": [
5452
+ {
5453
+ "name": "config",
5454
+ "default": "{ precision: 1e3 }"
5455
+ }
5456
+ ]
5457
+ }
5458
+ ],
5459
+ "exports": [
5460
+ {
5461
+ "kind": "js",
5462
+ "name": "DecimalJsAdapter",
5463
+ "declaration": {
5464
+ "name": "DecimalJsAdapter",
5465
+ "module": "src/number-adapter/decimal-js.ts"
5466
+ }
5467
+ }
5468
+ ]
5469
+ },
5470
+ {
5471
+ "kind": "javascript-module",
5472
+ "path": "src/number-adapter/index.ts",
5473
+ "declarations": [],
5474
+ "exports": [
5475
+ {
5476
+ "kind": "js",
5477
+ "name": "*",
5478
+ "declaration": {
5479
+ "name": "*",
5480
+ "package": "\"./types.js\""
5481
+ }
5482
+ },
5483
+ {
5484
+ "kind": "js",
5485
+ "name": "*",
5486
+ "declaration": {
5487
+ "name": "*",
5488
+ "package": "\"./build-in-number.js\""
5489
+ }
5490
+ },
5491
+ {
5492
+ "kind": "js",
5493
+ "name": "*",
5494
+ "declaration": {
5495
+ "name": "*",
5496
+ "package": "\"./build-in-bigint.js\""
5497
+ }
5498
+ },
5499
+ {
5500
+ "kind": "js",
5501
+ "name": "*",
5502
+ "declaration": {
5503
+ "name": "*",
5504
+ "package": "\"./decimal-js.js\""
5505
+ }
5506
+ }
5507
+ ]
5508
+ },
5509
+ {
5510
+ "kind": "javascript-module",
5511
+ "path": "src/number-adapter/types.ts",
5512
+ "declarations": [],
5513
+ "exports": []
5514
+ },
5403
5515
  {
5404
5516
  "kind": "javascript-module",
5405
5517
  "path": "src/string-adapter/build-in-intl-segmenter.ts",
@@ -5669,168 +5781,167 @@
5669
5781
  },
5670
5782
  {
5671
5783
  "kind": "javascript-module",
5672
- "path": "src/number-adapter/build-in-bigint.ts",
5673
- "declarations": [
5674
- {
5675
- "kind": "function",
5676
- "name": "BuildInBigintAdapter",
5677
- "deprecated": "true"
5678
- }
5679
- ],
5680
- "exports": [
5681
- {
5682
- "kind": "js",
5683
- "name": "BuildInBigintAdapter",
5684
- "declaration": {
5685
- "name": "BuildInBigintAdapter",
5686
- "module": "src/number-adapter/build-in-bigint.ts"
5687
- }
5688
- }
5689
- ]
5690
- },
5691
- {
5692
- "kind": "javascript-module",
5693
- "path": "src/number-adapter/build-in-number.ts",
5694
- "declarations": [
5695
- {
5696
- "kind": "function",
5697
- "name": "BuildInNumberAdapter"
5698
- }
5699
- ],
5700
- "exports": [
5701
- {
5702
- "kind": "js",
5703
- "name": "BuildInNumberAdapter",
5704
- "declaration": {
5705
- "name": "BuildInNumberAdapter",
5706
- "module": "src/number-adapter/build-in-number.ts"
5707
- }
5708
- }
5709
- ]
5710
- },
5711
- {
5712
- "kind": "javascript-module",
5713
- "path": "src/number-adapter/decimal-js.ts",
5784
+ "path": "src/utils/any-base.ts",
5714
5785
  "declarations": [
5715
5786
  {
5716
5787
  "kind": "function",
5717
- "name": "DecimalJsAdapter",
5788
+ "name": "anyBase",
5718
5789
  "parameters": [
5719
5790
  {
5720
- "name": "config",
5721
- "default": "{ precision: 1e3 }"
5791
+ "name": "sa",
5792
+ "type": {
5793
+ "text": "StringAdapter"
5794
+ }
5795
+ },
5796
+ {
5797
+ "name": "srcAlphabet",
5798
+ "type": {
5799
+ "text": "string"
5800
+ }
5801
+ },
5802
+ {
5803
+ "name": "dstAlphabet",
5804
+ "type": {
5805
+ "text": "string"
5806
+ }
5722
5807
  }
5723
5808
  ]
5809
+ },
5810
+ {
5811
+ "kind": "variable",
5812
+ "name": "BIN",
5813
+ "type": {
5814
+ "text": "string"
5815
+ },
5816
+ "default": "'01'"
5817
+ },
5818
+ {
5819
+ "kind": "variable",
5820
+ "name": "OCT",
5821
+ "type": {
5822
+ "text": "string"
5823
+ },
5824
+ "default": "'01234567'"
5825
+ },
5826
+ {
5827
+ "kind": "variable",
5828
+ "name": "DEC",
5829
+ "type": {
5830
+ "text": "string"
5831
+ },
5832
+ "default": "'0123456789'"
5833
+ },
5834
+ {
5835
+ "kind": "variable",
5836
+ "name": "HEX",
5837
+ "type": {
5838
+ "text": "string"
5839
+ },
5840
+ "default": "'0123456789abcdef'"
5724
5841
  }
5725
5842
  ],
5726
5843
  "exports": [
5727
5844
  {
5728
5845
  "kind": "js",
5729
- "name": "DecimalJsAdapter",
5846
+ "name": "anyBase",
5730
5847
  "declaration": {
5731
- "name": "DecimalJsAdapter",
5732
- "module": "src/number-adapter/decimal-js.ts"
5848
+ "name": "anyBase",
5849
+ "module": "src/utils/any-base.ts"
5733
5850
  }
5734
- }
5735
- ]
5736
- },
5737
- {
5738
- "kind": "javascript-module",
5739
- "path": "src/number-adapter/index.ts",
5740
- "declarations": [],
5741
- "exports": [
5851
+ },
5742
5852
  {
5743
5853
  "kind": "js",
5744
- "name": "*",
5854
+ "name": "BIN",
5745
5855
  "declaration": {
5746
- "name": "*",
5747
- "package": "\"./types.js\""
5856
+ "name": "BIN",
5857
+ "module": "src/utils/any-base.ts"
5748
5858
  }
5749
5859
  },
5750
5860
  {
5751
5861
  "kind": "js",
5752
- "name": "*",
5862
+ "name": "OCT",
5753
5863
  "declaration": {
5754
- "name": "*",
5755
- "package": "\"./build-in-number.js\""
5864
+ "name": "OCT",
5865
+ "module": "src/utils/any-base.ts"
5756
5866
  }
5757
5867
  },
5758
5868
  {
5759
5869
  "kind": "js",
5760
- "name": "*",
5870
+ "name": "DEC",
5761
5871
  "declaration": {
5762
- "name": "*",
5763
- "package": "\"./build-in-bigint.js\""
5872
+ "name": "DEC",
5873
+ "module": "src/utils/any-base.ts"
5764
5874
  }
5765
5875
  },
5766
5876
  {
5767
5877
  "kind": "js",
5768
- "name": "*",
5878
+ "name": "HEX",
5769
5879
  "declaration": {
5770
- "name": "*",
5771
- "package": "\"./decimal-js.js\""
5880
+ "name": "HEX",
5881
+ "module": "src/utils/any-base.ts"
5772
5882
  }
5773
5883
  }
5774
5884
  ]
5775
5885
  },
5776
5886
  {
5777
5887
  "kind": "javascript-module",
5778
- "path": "src/number-adapter/types.ts",
5779
- "declarations": [],
5780
- "exports": []
5781
- },
5782
- {
5783
- "kind": "javascript-module",
5784
- "path": "stories/story-parts/animation-events.ts",
5888
+ "path": "src/utils/duration.ts",
5785
5889
  "declarations": [
5786
5890
  {
5787
5891
  "kind": "function",
5788
- "name": "animationEvents",
5789
- "parameters": [
5892
+ "name": "durationObject",
5893
+ "return": {
5894
+ "type": {
5895
+ "text": "{ [key in DurationPartType]?: number }"
5896
+ }
5897
+ },
5898
+ "parameters": [
5790
5899
  {
5791
- "name": "context",
5900
+ "name": "start",
5792
5901
  "type": {
5793
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5902
+ "text": "Date"
5794
5903
  }
5795
5904
  },
5796
5905
  {
5797
- "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
5906
+ "name": "end",
5798
5907
  "type": {
5799
- "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n equal?: (counter: TimeredCounter, a: any, b: any) => Promise<void>;\n }"
5908
+ "text": "Date"
5909
+ }
5910
+ },
5911
+ {
5912
+ "name": "parts",
5913
+ "type": {
5914
+ "text": "DurationPartType[]"
5800
5915
  }
5801
5916
  }
5802
- ]
5803
- }
5804
- ],
5805
- "exports": [
5806
- {
5807
- "kind": "js",
5808
- "name": "animationEvents",
5809
- "declaration": {
5810
- "name": "animationEvents",
5811
- "module": "stories/story-parts/animation-events.ts"
5812
- }
5813
- }
5814
- ]
5815
- },
5816
- {
5817
- "kind": "javascript-module",
5818
- "path": "stories/story-parts/animation-options.ts",
5819
- "declarations": [
5917
+ ],
5918
+ "description": "计算两个日期之间的时间间隔. 返回一个数组, 包含 parts 每个部分的值."
5919
+ },
5820
5920
  {
5821
5921
  "kind": "function",
5822
- "name": "animationOptions",
5922
+ "name": "duration",
5923
+ "return": {
5924
+ "type": {
5925
+ "text": "number[]"
5926
+ }
5927
+ },
5823
5928
  "parameters": [
5824
5929
  {
5825
- "name": "context",
5930
+ "name": "start",
5826
5931
  "type": {
5827
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5932
+ "text": "Date"
5828
5933
  }
5829
5934
  },
5830
5935
  {
5831
- "name": "{\n counter,\n list = [114514] as T[],\n setBy,\n }",
5936
+ "name": "end",
5832
5937
  "type": {
5833
- "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
5938
+ "text": "Date"
5939
+ }
5940
+ },
5941
+ {
5942
+ "name": "parts",
5943
+ "type": {
5944
+ "text": "DurationPartType[]"
5834
5945
  }
5835
5946
  }
5836
5947
  ]
@@ -5839,248 +5950,192 @@
5839
5950
  "exports": [
5840
5951
  {
5841
5952
  "kind": "js",
5842
- "name": "animationOptions",
5953
+ "name": "durationObject",
5843
5954
  "declaration": {
5844
- "name": "animationOptions",
5845
- "module": "stories/story-parts/animation-options.ts"
5955
+ "name": "durationObject",
5956
+ "module": "src/utils/duration.ts"
5957
+ }
5958
+ },
5959
+ {
5960
+ "kind": "js",
5961
+ "name": "duration",
5962
+ "declaration": {
5963
+ "name": "duration",
5964
+ "module": "src/utils/duration.ts"
5846
5965
  }
5847
5966
  }
5848
5967
  ]
5849
5968
  },
5850
5969
  {
5851
5970
  "kind": "javascript-module",
5852
- "path": "stories/story-parts/big-number.ts",
5971
+ "path": "src/utils/extract-group-option.ts",
5853
5972
  "declarations": [
5854
5973
  {
5855
5974
  "kind": "function",
5856
- "name": "bigNumber",
5975
+ "name": "extractGroupOption",
5857
5976
  "parameters": [
5858
5977
  {
5859
- "name": "context",
5978
+ "name": "option",
5860
5979
  "type": {
5861
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5980
+ "text": "P"
5862
5981
  }
5863
5982
  },
5864
5983
  {
5865
- "name": "{\n counter,\n setBy,\n equal = _equal,\n }",
5984
+ "name": "getterOptions",
5866
5985
  "type": {
5867
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n equal?: (counter: TimeredCounter, a: any, b: any) => Promise<void>;\n }"
5986
+ "text": "GroupGetterOptions"
5868
5987
  }
5869
5988
  }
5870
5989
  ]
5871
- }
5872
- ],
5873
- "exports": [
5874
- {
5875
- "kind": "js",
5876
- "name": "bigNumber",
5877
- "declaration": {
5878
- "name": "bigNumber",
5879
- "module": "stories/story-parts/big-number.ts"
5880
- }
5881
- }
5882
- ]
5883
- },
5884
- {
5885
- "kind": "javascript-module",
5886
- "path": "stories/story-parts/datetime-locale.ts",
5887
- "declarations": [
5990
+ },
5888
5991
  {
5889
5992
  "kind": "function",
5890
- "name": "datetimeLocale",
5993
+ "name": "extractPartOption",
5891
5994
  "parameters": [
5892
5995
  {
5893
- "name": "context",
5996
+ "name": "option",
5894
5997
  "type": {
5895
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5998
+ "text": "P"
5896
5999
  }
5897
6000
  },
5898
6001
  {
5899
- "name": "{\n counter,\n setBy,\n }",
6002
+ "name": "getterOptions",
5900
6003
  "type": {
5901
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: Date[] | string) => void;\n equal: (counter: TimeredCounter, a: any, b: Date[]) => Promise<void>;\n }"
6004
+ "text": "GroupGetterOptions"
5902
6005
  }
5903
6006
  }
5904
6007
  ]
5905
- }
5906
- ],
5907
- "exports": [
5908
- {
5909
- "kind": "js",
5910
- "name": "datetimeLocale",
5911
- "declaration": {
5912
- "name": "datetimeLocale",
5913
- "module": "stories/story-parts/datetime-locale.ts"
5914
- }
5915
- }
5916
- ]
5917
- },
5918
- {
5919
- "kind": "javascript-module",
5920
- "path": "stories/story-parts/datetime-precision.ts",
5921
- "declarations": [
6008
+ },
5922
6009
  {
5923
6010
  "kind": "function",
5924
- "name": "datetimePrecision",
6011
+ "name": "extractPartDigitOption",
5925
6012
  "parameters": [
5926
6013
  {
5927
- "name": "context",
6014
+ "name": "option",
5928
6015
  "type": {
5929
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6016
+ "text": "P"
5930
6017
  }
5931
6018
  },
5932
6019
  {
5933
- "name": "{\n counter,\n setBy,\n }",
6020
+ "name": "getterOptions",
5934
6021
  "type": {
5935
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: Date[] | string) => void;\n equal: (counter: TimeredCounter, a: any, b: Date[]) => Promise<void>;\n }"
6022
+ "text": "GroupGetterOptions"
5936
6023
  }
5937
6024
  }
5938
6025
  ]
5939
- }
5940
- ],
5941
- "exports": [
5942
- {
5943
- "kind": "js",
5944
- "name": "datetimePrecision",
5945
- "declaration": {
5946
- "name": "datetimePrecision",
5947
- "module": "stories/story-parts/datetime-precision.ts"
5948
- }
5949
- }
5950
- ]
5951
- },
5952
- {
5953
- "kind": "javascript-module",
5954
- "path": "stories/story-parts/edge-case.ts",
5955
- "declarations": [
6026
+ },
5956
6027
  {
5957
6028
  "kind": "function",
5958
- "name": "edgeCase",
6029
+ "name": "extractPartDigitCellOption",
5959
6030
  "parameters": [
5960
6031
  {
5961
- "name": "context",
6032
+ "name": "option",
5962
6033
  "type": {
5963
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6034
+ "text": "P"
5964
6035
  }
5965
6036
  },
5966
6037
  {
5967
- "name": "{\n counter,\n list,\n setBy,\n }",
6038
+ "name": "getterOptions",
5968
6039
  "type": {
5969
- "text": "{\n counter: TC;\n list: [label: string, value: T, expectedValue: T][];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
6040
+ "text": "GroupGetterOptions"
5970
6041
  }
5971
6042
  }
5972
6043
  ]
5973
- }
5974
- ],
5975
- "exports": [
5976
- {
5977
- "kind": "js",
5978
- "name": "edgeCase",
5979
- "declaration": {
5980
- "name": "edgeCase",
5981
- "module": "stories/story-parts/edge-case.ts"
5982
- }
5983
- }
5984
- ]
5985
- },
5986
- {
5987
- "kind": "javascript-module",
5988
- "path": "stories/story-parts/emoji.ts",
5989
- "declarations": [
6044
+ },
5990
6045
  {
5991
6046
  "kind": "function",
5992
- "name": "emoji",
6047
+ "name": "mergeGroupOption",
6048
+ "return": {
6049
+ "type": {
6050
+ "text": "Result"
6051
+ }
6052
+ },
5993
6053
  "parameters": [
5994
6054
  {
5995
- "name": "context",
6055
+ "name": "data",
5996
6056
  "type": {
5997
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6057
+ "text": "Result"
5998
6058
  }
5999
6059
  },
6000
6060
  {
6001
- "name": "{\n counter,\n setBy,\n list,\n }",
6061
+ "name": "source",
6002
6062
  "type": {
6003
- "text": "{\n counter: TC;\n list: string[];\n setBy: (counter: TC, key: string, value: string) => void;\n equal?: (counter: TimeredCounter, a: any, b: string) => Promise<void>;\n }"
6063
+ "text": "Result"
6004
6064
  }
6005
6065
  }
6006
6066
  ]
6007
- }
6008
- ],
6009
- "exports": [
6010
- {
6011
- "kind": "js",
6012
- "name": "emoji",
6013
- "declaration": {
6014
- "name": "emoji",
6015
- "module": "stories/story-parts/emoji.ts"
6016
- }
6017
- }
6018
- ]
6019
- },
6020
- {
6021
- "kind": "javascript-module",
6022
- "path": "stories/story-parts/locale-number.ts",
6023
- "declarations": [
6067
+ },
6024
6068
  {
6025
6069
  "kind": "function",
6026
- "name": "localeNumber",
6070
+ "name": "mergePartOption",
6071
+ "return": {
6072
+ "type": {
6073
+ "text": "Result[]"
6074
+ }
6075
+ },
6027
6076
  "parameters": [
6028
6077
  {
6029
- "name": "context",
6078
+ "name": "data",
6079
+ "default": "[]",
6030
6080
  "type": {
6031
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6081
+ "text": "Result[]"
6032
6082
  }
6033
6083
  },
6034
6084
  {
6035
- "name": "{\n counter,\n setBy,\n }",
6085
+ "name": "source",
6086
+ "default": "[]",
6036
6087
  "type": {
6037
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6088
+ "text": "Result[]"
6038
6089
  }
6039
6090
  }
6040
6091
  ]
6041
- }
6042
- ],
6043
- "exports": [
6044
- {
6045
- "kind": "js",
6046
- "name": "localeNumber",
6047
- "declaration": {
6048
- "name": "localeNumber",
6049
- "module": "stories/story-parts/locale-number.ts"
6050
- }
6051
- }
6052
- ]
6053
- },
6054
- {
6055
- "kind": "javascript-module",
6056
- "path": "stories/story-parts/slots.ts",
6057
- "declarations": [
6092
+ },
6058
6093
  {
6059
6094
  "kind": "function",
6060
- "name": "render",
6095
+ "name": "mergePartDigitOption",
6096
+ "return": {
6097
+ "type": {
6098
+ "text": "Result[][]"
6099
+ }
6100
+ },
6061
6101
  "parameters": [
6062
6102
  {
6063
- "name": "args",
6103
+ "name": "data",
6104
+ "default": "[]",
6064
6105
  "type": {
6065
- "text": "any"
6106
+ "text": "Result[][]"
6107
+ }
6108
+ },
6109
+ {
6110
+ "name": "source",
6111
+ "default": "[]",
6112
+ "type": {
6113
+ "text": "Result[][]"
6066
6114
  }
6067
6115
  }
6068
6116
  ]
6069
6117
  },
6070
6118
  {
6071
6119
  "kind": "function",
6072
- "name": "slots",
6120
+ "name": "mergePartDigitCellOption",
6121
+ "return": {
6122
+ "type": {
6123
+ "text": "Result[][][]"
6124
+ }
6125
+ },
6073
6126
  "parameters": [
6074
6127
  {
6075
- "name": "context",
6128
+ "name": "data",
6129
+ "default": "[]",
6076
6130
  "type": {
6077
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6131
+ "text": "Result[][][]"
6078
6132
  }
6079
6133
  },
6080
6134
  {
6081
- "name": "{\n counter,\n }",
6135
+ "name": "source",
6136
+ "default": "[]",
6082
6137
  "type": {
6083
- "text": "{\n counter: TC;\n list?: T[];\n setBy?: (counter: TC, key: string, value: T) => void;\n equal?: (counter: TimeredCounter, a: any, b: T) => Promise<void>;\n }"
6138
+ "text": "Result[][][]"
6084
6139
  }
6085
6140
  }
6086
6141
  ]
@@ -6089,40 +6144,87 @@
6089
6144
  "exports": [
6090
6145
  {
6091
6146
  "kind": "js",
6092
- "name": "render",
6147
+ "name": "extractGroupOption",
6093
6148
  "declaration": {
6094
- "name": "render",
6095
- "module": "stories/story-parts/slots.ts"
6149
+ "name": "extractGroupOption",
6150
+ "module": "src/utils/extract-group-option.ts"
6096
6151
  }
6097
6152
  },
6098
6153
  {
6099
6154
  "kind": "js",
6100
- "name": "slots",
6155
+ "name": "extractPartOption",
6101
6156
  "declaration": {
6102
- "name": "slots",
6103
- "module": "stories/story-parts/slots.ts"
6157
+ "name": "extractPartOption",
6158
+ "module": "src/utils/extract-group-option.ts"
6159
+ }
6160
+ },
6161
+ {
6162
+ "kind": "js",
6163
+ "name": "extractPartDigitOption",
6164
+ "declaration": {
6165
+ "name": "extractPartDigitOption",
6166
+ "module": "src/utils/extract-group-option.ts"
6167
+ }
6168
+ },
6169
+ {
6170
+ "kind": "js",
6171
+ "name": "extractPartDigitCellOption",
6172
+ "declaration": {
6173
+ "name": "extractPartDigitCellOption",
6174
+ "module": "src/utils/extract-group-option.ts"
6175
+ }
6176
+ },
6177
+ {
6178
+ "kind": "js",
6179
+ "name": "mergeGroupOption",
6180
+ "declaration": {
6181
+ "name": "mergeGroupOption",
6182
+ "module": "src/utils/extract-group-option.ts"
6183
+ }
6184
+ },
6185
+ {
6186
+ "kind": "js",
6187
+ "name": "mergePartOption",
6188
+ "declaration": {
6189
+ "name": "mergePartOption",
6190
+ "module": "src/utils/extract-group-option.ts"
6191
+ }
6192
+ },
6193
+ {
6194
+ "kind": "js",
6195
+ "name": "mergePartDigitOption",
6196
+ "declaration": {
6197
+ "name": "mergePartDigitOption",
6198
+ "module": "src/utils/extract-group-option.ts"
6199
+ }
6200
+ },
6201
+ {
6202
+ "kind": "js",
6203
+ "name": "mergePartDigitCellOption",
6204
+ "declaration": {
6205
+ "name": "mergePartDigitCellOption",
6206
+ "module": "src/utils/extract-group-option.ts"
6104
6207
  }
6105
6208
  }
6106
6209
  ]
6107
6210
  },
6108
6211
  {
6109
6212
  "kind": "javascript-module",
6110
- "path": "stories/story-parts/styles.ts",
6213
+ "path": "src/utils/iso8601-duration.ts",
6111
6214
  "declarations": [
6112
6215
  {
6113
6216
  "kind": "function",
6114
- "name": "styles",
6217
+ "name": "iso8601Duration",
6218
+ "return": {
6219
+ "type": {
6220
+ "text": "string"
6221
+ }
6222
+ },
6115
6223
  "parameters": [
6116
6224
  {
6117
- "name": "context",
6118
- "type": {
6119
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6120
- }
6121
- },
6122
- {
6123
- "name": "{\n counter,\n setBy,\n }",
6225
+ "name": "duration",
6124
6226
  "type": {
6125
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6227
+ "text": "{\n [key in DurationPartType]?: number;\n}"
6126
6228
  }
6127
6229
  }
6128
6230
  ]
@@ -6131,32 +6233,34 @@
6131
6233
  "exports": [
6132
6234
  {
6133
6235
  "kind": "js",
6134
- "name": "styles",
6236
+ "name": "iso8601Duration",
6135
6237
  "declaration": {
6136
- "name": "styles",
6137
- "module": "stories/story-parts/styles.ts"
6238
+ "name": "iso8601Duration",
6239
+ "module": "src/utils/iso8601-duration.ts"
6138
6240
  }
6139
6241
  }
6140
6242
  ]
6141
6243
  },
6142
6244
  {
6143
6245
  "kind": "javascript-module",
6144
- "path": "stories/story-parts/value-change.ts",
6246
+ "path": "src/utils/localized-date-time-fields.ts",
6145
6247
  "declarations": [
6248
+ {
6249
+ "kind": "variable",
6250
+ "name": "DateTimeFields",
6251
+ "type": {
6252
+ "text": "[\n \"era\",\n \"year\",\n \"quarter\",\n \"month\",\n \"weekOfYear\",\n \"weekday\",\n \"day\",\n \"dayPeriod\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n]"
6253
+ },
6254
+ "default": "[ \"era\", \"year\", \"quarter\", \"month\", \"weekOfYear\", \"weekday\", \"day\", \"dayPeriod\", \"hour\", \"minute\", \"second\", \"timeZoneName\", ]"
6255
+ },
6146
6256
  {
6147
6257
  "kind": "function",
6148
- "name": "valueChange",
6258
+ "name": "getLocalizedDateTimeFields",
6149
6259
  "parameters": [
6150
6260
  {
6151
- "name": "context",
6152
- "type": {
6153
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6154
- }
6155
- },
6156
- {
6157
- "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
6261
+ "name": "locale",
6158
6262
  "type": {
6159
- "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n equal?: (counter: TimeredCounter, a: any, b: T) => Promise<void>;\n }"
6263
+ "text": "Intl.Locale"
6160
6264
  }
6161
6265
  }
6162
6266
  ]
@@ -6165,177 +6269,67 @@
6165
6269
  "exports": [
6166
6270
  {
6167
6271
  "kind": "js",
6168
- "name": "valueChange",
6272
+ "name": "DateTimeFields",
6169
6273
  "declaration": {
6170
- "name": "valueChange",
6171
- "module": "stories/story-parts/value-change.ts"
6274
+ "name": "DateTimeFields",
6275
+ "module": "src/utils/localized-date-time-fields.ts"
6276
+ }
6277
+ },
6278
+ {
6279
+ "kind": "js",
6280
+ "name": "getLocalizedDateTimeFields",
6281
+ "declaration": {
6282
+ "name": "getLocalizedDateTimeFields",
6283
+ "module": "src/utils/localized-date-time-fields.ts"
6172
6284
  }
6173
6285
  }
6174
6286
  ]
6175
6287
  },
6176
6288
  {
6177
6289
  "kind": "javascript-module",
6178
- "path": "src/utils/any-base.ts",
6290
+ "path": "src/utils/parse-json-string.ts",
6179
6291
  "declarations": [
6180
6292
  {
6181
6293
  "kind": "function",
6182
- "name": "anyBase",
6294
+ "name": "parseJsonString",
6183
6295
  "parameters": [
6184
6296
  {
6185
- "name": "sa",
6186
- "type": {
6187
- "text": "StringAdapter"
6188
- }
6189
- },
6190
- {
6191
- "name": "srcAlphabet",
6192
- "type": {
6193
- "text": "string"
6194
- }
6195
- },
6196
- {
6197
- "name": "dstAlphabet",
6297
+ "name": "value",
6198
6298
  "type": {
6199
6299
  "text": "string"
6200
6300
  }
6201
6301
  }
6202
6302
  ]
6203
- },
6204
- {
6205
- "kind": "variable",
6206
- "name": "BIN",
6207
- "type": {
6208
- "text": "string"
6209
- },
6210
- "default": "'01'"
6211
- },
6212
- {
6213
- "kind": "variable",
6214
- "name": "OCT",
6215
- "type": {
6216
- "text": "string"
6217
- },
6218
- "default": "'01234567'"
6219
- },
6220
- {
6221
- "kind": "variable",
6222
- "name": "DEC",
6223
- "type": {
6224
- "text": "string"
6225
- },
6226
- "default": "'0123456789'"
6227
- },
6228
- {
6229
- "kind": "variable",
6230
- "name": "HEX",
6231
- "type": {
6232
- "text": "string"
6233
- },
6234
- "default": "'0123456789abcdef'"
6235
6303
  }
6236
6304
  ],
6237
6305
  "exports": [
6238
6306
  {
6239
6307
  "kind": "js",
6240
- "name": "anyBase",
6241
- "declaration": {
6242
- "name": "anyBase",
6243
- "module": "src/utils/any-base.ts"
6244
- }
6245
- },
6246
- {
6247
- "kind": "js",
6248
- "name": "BIN",
6249
- "declaration": {
6250
- "name": "BIN",
6251
- "module": "src/utils/any-base.ts"
6252
- }
6253
- },
6254
- {
6255
- "kind": "js",
6256
- "name": "OCT",
6257
- "declaration": {
6258
- "name": "OCT",
6259
- "module": "src/utils/any-base.ts"
6260
- }
6261
- },
6262
- {
6263
- "kind": "js",
6264
- "name": "DEC",
6265
- "declaration": {
6266
- "name": "DEC",
6267
- "module": "src/utils/any-base.ts"
6268
- }
6269
- },
6270
- {
6271
- "kind": "js",
6272
- "name": "HEX",
6308
+ "name": "parseJsonString",
6273
6309
  "declaration": {
6274
- "name": "HEX",
6275
- "module": "src/utils/any-base.ts"
6310
+ "name": "parseJsonString",
6311
+ "module": "src/utils/parse-json-string.ts"
6276
6312
  }
6277
6313
  }
6278
6314
  ]
6279
6315
  },
6280
6316
  {
6281
6317
  "kind": "javascript-module",
6282
- "path": "src/utils/duration.ts",
6318
+ "path": "src/utils/polyfill-keyframes.ts",
6283
6319
  "declarations": [
6284
6320
  {
6285
6321
  "kind": "function",
6286
- "name": "durationObject",
6287
- "return": {
6288
- "type": {
6289
- "text": "{ [key in DurationPartType]?: number }"
6290
- }
6291
- },
6292
- "parameters": [
6293
- {
6294
- "name": "start",
6295
- "type": {
6296
- "text": "Date"
6297
- }
6298
- },
6299
- {
6300
- "name": "end",
6301
- "type": {
6302
- "text": "Date"
6303
- }
6304
- },
6305
- {
6306
- "name": "parts",
6307
- "type": {
6308
- "text": "DurationPartType[]"
6309
- }
6310
- }
6311
- ],
6312
- "description": "计算两个日期之间的时间间隔. 返回一个数组, 包含 parts 每个部分的值."
6313
- },
6314
- {
6315
- "kind": "function",
6316
- "name": "duration",
6322
+ "name": "polyfillKeyframes",
6317
6323
  "return": {
6318
6324
  "type": {
6319
- "text": "number[]"
6325
+ "text": "Keyframe[]"
6320
6326
  }
6321
6327
  },
6322
6328
  "parameters": [
6323
6329
  {
6324
- "name": "start",
6325
- "type": {
6326
- "text": "Date"
6327
- }
6328
- },
6329
- {
6330
- "name": "end",
6331
- "type": {
6332
- "text": "Date"
6333
- }
6334
- },
6335
- {
6336
- "name": "parts",
6330
+ "name": "keyframes",
6337
6331
  "type": {
6338
- "text": "DurationPartType[]"
6332
+ "text": "Keyframe[] | PropertyIndexedKeyframes"
6339
6333
  }
6340
6334
  }
6341
6335
  ]
@@ -6344,192 +6338,246 @@
6344
6338
  "exports": [
6345
6339
  {
6346
6340
  "kind": "js",
6347
- "name": "durationObject",
6348
- "declaration": {
6349
- "name": "durationObject",
6350
- "module": "src/utils/duration.ts"
6351
- }
6352
- },
6353
- {
6354
- "kind": "js",
6355
- "name": "duration",
6341
+ "name": "polyfillKeyframes",
6356
6342
  "declaration": {
6357
- "name": "duration",
6358
- "module": "src/utils/duration.ts"
6343
+ "name": "polyfillKeyframes",
6344
+ "module": "src/utils/polyfill-keyframes.ts"
6359
6345
  }
6360
6346
  }
6361
6347
  ]
6362
6348
  },
6363
6349
  {
6364
6350
  "kind": "javascript-module",
6365
- "path": "src/utils/extract-group-option.ts",
6351
+ "path": "src/utils/preprocess-part-data.ts",
6366
6352
  "declarations": [
6367
6353
  {
6368
6354
  "kind": "function",
6369
- "name": "extractGroupOption",
6355
+ "name": "preprocessPartData",
6370
6356
  "parameters": [
6371
6357
  {
6372
- "name": "option",
6358
+ "name": "newDirection",
6373
6359
  "type": {
6374
- "text": "P"
6360
+ "text": "'up' | 'down'"
6375
6361
  }
6376
6362
  },
6377
6363
  {
6378
- "name": "getterOptions",
6364
+ "name": "newData",
6379
6365
  "type": {
6380
- "text": "GroupGetterOptions"
6366
+ "text": "PartData[]"
6381
6367
  }
6382
- }
6383
- ]
6384
- },
6385
- {
6386
- "kind": "function",
6387
- "name": "extractPartOption",
6388
- "parameters": [
6368
+ },
6389
6369
  {
6390
- "name": "option",
6370
+ "name": "oldDirection",
6391
6371
  "type": {
6392
- "text": "P"
6372
+ "text": "'up' | 'down'"
6393
6373
  }
6394
6374
  },
6395
6375
  {
6396
- "name": "getterOptions",
6376
+ "name": "oldData",
6397
6377
  "type": {
6398
- "text": "GroupGetterOptions"
6378
+ "text": "PartData[]"
6399
6379
  }
6400
6380
  }
6401
6381
  ]
6402
- },
6382
+ }
6383
+ ],
6384
+ "exports": [
6385
+ {
6386
+ "kind": "js",
6387
+ "name": "preprocessPartData",
6388
+ "declaration": {
6389
+ "name": "preprocessPartData",
6390
+ "module": "src/utils/preprocess-part-data.ts"
6391
+ }
6392
+ }
6393
+ ]
6394
+ },
6395
+ {
6396
+ "kind": "javascript-module",
6397
+ "path": "src/utils/transition-digit.ts",
6398
+ "declarations": [
6403
6399
  {
6404
6400
  "kind": "function",
6405
- "name": "extractPartDigitOption",
6401
+ "name": "transitionDigit",
6406
6402
  "parameters": [
6407
6403
  {
6408
- "name": "option",
6404
+ "name": "na",
6409
6405
  "type": {
6410
- "text": "P"
6406
+ "text": "NS"
6411
6407
  }
6412
6408
  },
6413
6409
  {
6414
- "name": "getterOptions",
6410
+ "name": "from",
6415
6411
  "type": {
6416
- "text": "GroupGetterOptions"
6412
+ "text": "V"
6417
6413
  }
6418
- }
6419
- ]
6420
- },
6421
- {
6422
- "kind": "function",
6423
- "name": "extractPartDigitCellOption",
6424
- "parameters": [
6414
+ },
6425
6415
  {
6426
- "name": "option",
6416
+ "name": "to",
6427
6417
  "type": {
6428
- "text": "P"
6418
+ "text": "V"
6429
6419
  }
6430
6420
  },
6431
6421
  {
6432
- "name": "getterOptions",
6422
+ "name": "count",
6433
6423
  "type": {
6434
- "text": "GroupGetterOptions"
6424
+ "text": "number"
6435
6425
  }
6436
6426
  }
6437
6427
  ]
6438
- },
6428
+ }
6429
+ ],
6430
+ "exports": [
6431
+ {
6432
+ "kind": "js",
6433
+ "name": "transitionDigit",
6434
+ "declaration": {
6435
+ "name": "transitionDigit",
6436
+ "module": "src/utils/transition-digit.ts"
6437
+ }
6438
+ }
6439
+ ]
6440
+ },
6441
+ {
6442
+ "kind": "javascript-module",
6443
+ "path": "src/utils/uuid.ts",
6444
+ "declarations": [
6445
+ {
6446
+ "kind": "function",
6447
+ "name": "uuid"
6448
+ }
6449
+ ],
6450
+ "exports": [
6451
+ {
6452
+ "kind": "js",
6453
+ "name": "uuid",
6454
+ "declaration": {
6455
+ "name": "uuid",
6456
+ "module": "src/utils/uuid.ts"
6457
+ }
6458
+ }
6459
+ ]
6460
+ },
6461
+ {
6462
+ "kind": "javascript-module",
6463
+ "path": "stories/story-parts/animation-events.ts",
6464
+ "declarations": [
6439
6465
  {
6440
6466
  "kind": "function",
6441
- "name": "mergeGroupOption",
6442
- "return": {
6443
- "type": {
6444
- "text": "Result"
6445
- }
6446
- },
6467
+ "name": "animationEvents",
6447
6468
  "parameters": [
6448
6469
  {
6449
- "name": "data",
6470
+ "name": "context",
6450
6471
  "type": {
6451
- "text": "Result"
6472
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6452
6473
  }
6453
6474
  },
6454
6475
  {
6455
- "name": "source",
6476
+ "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
6456
6477
  "type": {
6457
- "text": "Result"
6478
+ "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n equal?: (counter: TimeredCounter, a: any, b: any) => Promise<void>;\n }"
6458
6479
  }
6459
6480
  }
6460
6481
  ]
6461
- },
6482
+ }
6483
+ ],
6484
+ "exports": [
6485
+ {
6486
+ "kind": "js",
6487
+ "name": "animationEvents",
6488
+ "declaration": {
6489
+ "name": "animationEvents",
6490
+ "module": "stories/story-parts/animation-events.ts"
6491
+ }
6492
+ }
6493
+ ]
6494
+ },
6495
+ {
6496
+ "kind": "javascript-module",
6497
+ "path": "stories/story-parts/animation-options.ts",
6498
+ "declarations": [
6462
6499
  {
6463
6500
  "kind": "function",
6464
- "name": "mergePartOption",
6465
- "return": {
6466
- "type": {
6467
- "text": "Result[]"
6468
- }
6469
- },
6501
+ "name": "animationOptions",
6470
6502
  "parameters": [
6471
6503
  {
6472
- "name": "data",
6473
- "default": "[]",
6504
+ "name": "context",
6474
6505
  "type": {
6475
- "text": "Result[]"
6506
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6476
6507
  }
6477
6508
  },
6478
6509
  {
6479
- "name": "source",
6480
- "default": "[]",
6510
+ "name": "{\n counter,\n list = [114514] as T[],\n setBy,\n }",
6481
6511
  "type": {
6482
- "text": "Result[]"
6512
+ "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
6483
6513
  }
6484
6514
  }
6485
6515
  ]
6486
- },
6516
+ }
6517
+ ],
6518
+ "exports": [
6519
+ {
6520
+ "kind": "js",
6521
+ "name": "animationOptions",
6522
+ "declaration": {
6523
+ "name": "animationOptions",
6524
+ "module": "stories/story-parts/animation-options.ts"
6525
+ }
6526
+ }
6527
+ ]
6528
+ },
6529
+ {
6530
+ "kind": "javascript-module",
6531
+ "path": "stories/story-parts/big-number.ts",
6532
+ "declarations": [
6487
6533
  {
6488
6534
  "kind": "function",
6489
- "name": "mergePartDigitOption",
6490
- "return": {
6491
- "type": {
6492
- "text": "Result[][]"
6493
- }
6494
- },
6535
+ "name": "bigNumber",
6495
6536
  "parameters": [
6496
6537
  {
6497
- "name": "data",
6498
- "default": "[]",
6538
+ "name": "context",
6499
6539
  "type": {
6500
- "text": "Result[][]"
6540
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6501
6541
  }
6502
6542
  },
6503
6543
  {
6504
- "name": "source",
6505
- "default": "[]",
6544
+ "name": "{\n counter,\n setBy,\n equal = _equal,\n }",
6506
6545
  "type": {
6507
- "text": "Result[][]"
6546
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n equal?: (counter: TimeredCounter, a: any, b: any) => Promise<void>;\n }"
6508
6547
  }
6509
6548
  }
6510
6549
  ]
6511
- },
6550
+ }
6551
+ ],
6552
+ "exports": [
6553
+ {
6554
+ "kind": "js",
6555
+ "name": "bigNumber",
6556
+ "declaration": {
6557
+ "name": "bigNumber",
6558
+ "module": "stories/story-parts/big-number.ts"
6559
+ }
6560
+ }
6561
+ ]
6562
+ },
6563
+ {
6564
+ "kind": "javascript-module",
6565
+ "path": "stories/story-parts/datetime-locale.ts",
6566
+ "declarations": [
6512
6567
  {
6513
6568
  "kind": "function",
6514
- "name": "mergePartDigitCellOption",
6515
- "return": {
6516
- "type": {
6517
- "text": "Result[][][]"
6518
- }
6519
- },
6569
+ "name": "datetimeLocale",
6520
6570
  "parameters": [
6521
6571
  {
6522
- "name": "data",
6523
- "default": "[]",
6572
+ "name": "context",
6524
6573
  "type": {
6525
- "text": "Result[][][]"
6574
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6526
6575
  }
6527
6576
  },
6528
6577
  {
6529
- "name": "source",
6530
- "default": "[]",
6578
+ "name": "{\n counter,\n setBy,\n }",
6531
6579
  "type": {
6532
- "text": "Result[][][]"
6580
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: Date[] | string) => void;\n equal: (counter: TimeredCounter, a: any, b: Date[]) => Promise<void>;\n }"
6533
6581
  }
6534
6582
  }
6535
6583
  ]
@@ -6538,87 +6586,32 @@
6538
6586
  "exports": [
6539
6587
  {
6540
6588
  "kind": "js",
6541
- "name": "extractGroupOption",
6542
- "declaration": {
6543
- "name": "extractGroupOption",
6544
- "module": "src/utils/extract-group-option.ts"
6545
- }
6546
- },
6547
- {
6548
- "kind": "js",
6549
- "name": "extractPartOption",
6550
- "declaration": {
6551
- "name": "extractPartOption",
6552
- "module": "src/utils/extract-group-option.ts"
6553
- }
6554
- },
6555
- {
6556
- "kind": "js",
6557
- "name": "extractPartDigitOption",
6558
- "declaration": {
6559
- "name": "extractPartDigitOption",
6560
- "module": "src/utils/extract-group-option.ts"
6561
- }
6562
- },
6563
- {
6564
- "kind": "js",
6565
- "name": "extractPartDigitCellOption",
6566
- "declaration": {
6567
- "name": "extractPartDigitCellOption",
6568
- "module": "src/utils/extract-group-option.ts"
6569
- }
6570
- },
6571
- {
6572
- "kind": "js",
6573
- "name": "mergeGroupOption",
6574
- "declaration": {
6575
- "name": "mergeGroupOption",
6576
- "module": "src/utils/extract-group-option.ts"
6577
- }
6578
- },
6579
- {
6580
- "kind": "js",
6581
- "name": "mergePartOption",
6582
- "declaration": {
6583
- "name": "mergePartOption",
6584
- "module": "src/utils/extract-group-option.ts"
6585
- }
6586
- },
6587
- {
6588
- "kind": "js",
6589
- "name": "mergePartDigitOption",
6590
- "declaration": {
6591
- "name": "mergePartDigitOption",
6592
- "module": "src/utils/extract-group-option.ts"
6593
- }
6594
- },
6595
- {
6596
- "kind": "js",
6597
- "name": "mergePartDigitCellOption",
6589
+ "name": "datetimeLocale",
6598
6590
  "declaration": {
6599
- "name": "mergePartDigitCellOption",
6600
- "module": "src/utils/extract-group-option.ts"
6591
+ "name": "datetimeLocale",
6592
+ "module": "stories/story-parts/datetime-locale.ts"
6601
6593
  }
6602
6594
  }
6603
6595
  ]
6604
6596
  },
6605
6597
  {
6606
6598
  "kind": "javascript-module",
6607
- "path": "src/utils/iso8601-duration.ts",
6599
+ "path": "stories/story-parts/datetime-precision.ts",
6608
6600
  "declarations": [
6609
6601
  {
6610
6602
  "kind": "function",
6611
- "name": "iso8601Duration",
6612
- "return": {
6613
- "type": {
6614
- "text": "string"
6615
- }
6616
- },
6603
+ "name": "datetimePrecision",
6617
6604
  "parameters": [
6618
6605
  {
6619
- "name": "duration",
6606
+ "name": "context",
6620
6607
  "type": {
6621
- "text": "{\n [key in DurationPartType]?: number;\n}"
6608
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6609
+ }
6610
+ },
6611
+ {
6612
+ "name": "{\n counter,\n setBy,\n }",
6613
+ "type": {
6614
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: Date[] | string) => void;\n equal: (counter: TimeredCounter, a: any, b: Date[]) => Promise<void>;\n }"
6622
6615
  }
6623
6616
  }
6624
6617
  ]
@@ -6627,34 +6620,32 @@
6627
6620
  "exports": [
6628
6621
  {
6629
6622
  "kind": "js",
6630
- "name": "iso8601Duration",
6623
+ "name": "datetimePrecision",
6631
6624
  "declaration": {
6632
- "name": "iso8601Duration",
6633
- "module": "src/utils/iso8601-duration.ts"
6625
+ "name": "datetimePrecision",
6626
+ "module": "stories/story-parts/datetime-precision.ts"
6634
6627
  }
6635
6628
  }
6636
6629
  ]
6637
6630
  },
6638
6631
  {
6639
6632
  "kind": "javascript-module",
6640
- "path": "src/utils/localized-date-time-fields.ts",
6633
+ "path": "stories/story-parts/edge-case.ts",
6641
6634
  "declarations": [
6642
- {
6643
- "kind": "variable",
6644
- "name": "DateTimeFields",
6645
- "type": {
6646
- "text": "[\n \"era\",\n \"year\",\n \"quarter\",\n \"month\",\n \"weekOfYear\",\n \"weekday\",\n \"day\",\n \"dayPeriod\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n]"
6647
- },
6648
- "default": "[ \"era\", \"year\", \"quarter\", \"month\", \"weekOfYear\", \"weekday\", \"day\", \"dayPeriod\", \"hour\", \"minute\", \"second\", \"timeZoneName\", ]"
6649
- },
6650
6635
  {
6651
6636
  "kind": "function",
6652
- "name": "getLocalizedDateTimeFields",
6637
+ "name": "edgeCase",
6653
6638
  "parameters": [
6654
6639
  {
6655
- "name": "locale",
6640
+ "name": "context",
6656
6641
  "type": {
6657
- "text": "Intl.Locale"
6642
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6643
+ }
6644
+ },
6645
+ {
6646
+ "name": "{\n counter,\n list,\n setBy,\n }",
6647
+ "type": {
6648
+ "text": "{\n counter: TC;\n list: [label: string, value: T, expectedValue: T][];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
6658
6649
  }
6659
6650
  }
6660
6651
  ]
@@ -6663,34 +6654,32 @@
6663
6654
  "exports": [
6664
6655
  {
6665
6656
  "kind": "js",
6666
- "name": "DateTimeFields",
6667
- "declaration": {
6668
- "name": "DateTimeFields",
6669
- "module": "src/utils/localized-date-time-fields.ts"
6670
- }
6671
- },
6672
- {
6673
- "kind": "js",
6674
- "name": "getLocalizedDateTimeFields",
6657
+ "name": "edgeCase",
6675
6658
  "declaration": {
6676
- "name": "getLocalizedDateTimeFields",
6677
- "module": "src/utils/localized-date-time-fields.ts"
6659
+ "name": "edgeCase",
6660
+ "module": "stories/story-parts/edge-case.ts"
6678
6661
  }
6679
6662
  }
6680
6663
  ]
6681
6664
  },
6682
6665
  {
6683
6666
  "kind": "javascript-module",
6684
- "path": "src/utils/parse-json-string.ts",
6667
+ "path": "stories/story-parts/emoji.ts",
6685
6668
  "declarations": [
6686
6669
  {
6687
6670
  "kind": "function",
6688
- "name": "parseJsonString",
6671
+ "name": "emoji",
6689
6672
  "parameters": [
6690
6673
  {
6691
- "name": "value",
6674
+ "name": "context",
6675
+ "type": {
6676
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6677
+ }
6678
+ },
6679
+ {
6680
+ "name": "{\n counter,\n setBy,\n list,\n }",
6692
6681
  "type": {
6693
- "text": "string"
6682
+ "text": "{\n counter: TC;\n list: string[];\n setBy: (counter: TC, key: string, value: string) => void;\n equal?: (counter: TimeredCounter, a: any, b: string) => Promise<void>;\n }"
6694
6683
  }
6695
6684
  }
6696
6685
  ]
@@ -6699,31 +6688,32 @@
6699
6688
  "exports": [
6700
6689
  {
6701
6690
  "kind": "js",
6702
- "name": "parseJsonString",
6691
+ "name": "emoji",
6703
6692
  "declaration": {
6704
- "name": "parseJsonString",
6705
- "module": "src/utils/parse-json-string.ts"
6693
+ "name": "emoji",
6694
+ "module": "stories/story-parts/emoji.ts"
6706
6695
  }
6707
6696
  }
6708
6697
  ]
6709
6698
  },
6710
6699
  {
6711
6700
  "kind": "javascript-module",
6712
- "path": "src/utils/polyfill-keyframes.ts",
6701
+ "path": "stories/story-parts/locale-number.ts",
6713
6702
  "declarations": [
6714
6703
  {
6715
6704
  "kind": "function",
6716
- "name": "polyfillKeyframes",
6717
- "return": {
6718
- "type": {
6719
- "text": "Keyframe[]"
6720
- }
6721
- },
6705
+ "name": "localeNumber",
6722
6706
  "parameters": [
6723
6707
  {
6724
- "name": "keyframes",
6708
+ "name": "context",
6725
6709
  "type": {
6726
- "text": "Keyframe[] | PropertyIndexedKeyframes"
6710
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6711
+ }
6712
+ },
6713
+ {
6714
+ "name": "{\n counter,\n setBy,\n }",
6715
+ "type": {
6716
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6727
6717
  }
6728
6718
  }
6729
6719
  ]
@@ -6732,44 +6722,44 @@
6732
6722
  "exports": [
6733
6723
  {
6734
6724
  "kind": "js",
6735
- "name": "polyfillKeyframes",
6725
+ "name": "localeNumber",
6736
6726
  "declaration": {
6737
- "name": "polyfillKeyframes",
6738
- "module": "src/utils/polyfill-keyframes.ts"
6727
+ "name": "localeNumber",
6728
+ "module": "stories/story-parts/locale-number.ts"
6739
6729
  }
6740
6730
  }
6741
6731
  ]
6742
6732
  },
6743
6733
  {
6744
6734
  "kind": "javascript-module",
6745
- "path": "src/utils/preprocess-part-data.ts",
6735
+ "path": "stories/story-parts/slots.ts",
6746
6736
  "declarations": [
6747
6737
  {
6748
6738
  "kind": "function",
6749
- "name": "preprocessPartData",
6739
+ "name": "render",
6750
6740
  "parameters": [
6751
6741
  {
6752
- "name": "newDirection",
6753
- "type": {
6754
- "text": "'up' | 'down'"
6755
- }
6756
- },
6757
- {
6758
- "name": "newData",
6742
+ "name": "args",
6759
6743
  "type": {
6760
- "text": "PartData[]"
6744
+ "text": "any"
6761
6745
  }
6762
- },
6746
+ }
6747
+ ]
6748
+ },
6749
+ {
6750
+ "kind": "function",
6751
+ "name": "slots",
6752
+ "parameters": [
6763
6753
  {
6764
- "name": "oldDirection",
6754
+ "name": "context",
6765
6755
  "type": {
6766
- "text": "'up' | 'down'"
6756
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6767
6757
  }
6768
6758
  },
6769
6759
  {
6770
- "name": "oldData",
6760
+ "name": "{\n counter,\n }",
6771
6761
  "type": {
6772
- "text": "PartData[]"
6762
+ "text": "{\n counter: TC;\n list?: T[];\n setBy?: (counter: TC, key: string, value: T) => void;\n equal?: (counter: TimeredCounter, a: any, b: T) => Promise<void>;\n }"
6773
6763
  }
6774
6764
  }
6775
6765
  ]
@@ -6778,44 +6768,40 @@
6778
6768
  "exports": [
6779
6769
  {
6780
6770
  "kind": "js",
6781
- "name": "preprocessPartData",
6771
+ "name": "render",
6782
6772
  "declaration": {
6783
- "name": "preprocessPartData",
6784
- "module": "src/utils/preprocess-part-data.ts"
6773
+ "name": "render",
6774
+ "module": "stories/story-parts/slots.ts"
6775
+ }
6776
+ },
6777
+ {
6778
+ "kind": "js",
6779
+ "name": "slots",
6780
+ "declaration": {
6781
+ "name": "slots",
6782
+ "module": "stories/story-parts/slots.ts"
6785
6783
  }
6786
6784
  }
6787
6785
  ]
6788
6786
  },
6789
6787
  {
6790
6788
  "kind": "javascript-module",
6791
- "path": "src/utils/transition-digit.ts",
6789
+ "path": "stories/story-parts/styles.ts",
6792
6790
  "declarations": [
6793
6791
  {
6794
6792
  "kind": "function",
6795
- "name": "transitionDigit",
6793
+ "name": "styles",
6796
6794
  "parameters": [
6797
6795
  {
6798
- "name": "na",
6799
- "type": {
6800
- "text": "NS"
6801
- }
6802
- },
6803
- {
6804
- "name": "from",
6805
- "type": {
6806
- "text": "V"
6807
- }
6808
- },
6809
- {
6810
- "name": "to",
6796
+ "name": "context",
6811
6797
  "type": {
6812
- "text": "V"
6798
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6813
6799
  }
6814
6800
  },
6815
6801
  {
6816
- "name": "count",
6802
+ "name": "{\n counter,\n setBy,\n }",
6817
6803
  "type": {
6818
- "text": "number"
6804
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6819
6805
  }
6820
6806
  }
6821
6807
  ]
@@ -6824,30 +6810,44 @@
6824
6810
  "exports": [
6825
6811
  {
6826
6812
  "kind": "js",
6827
- "name": "transitionDigit",
6813
+ "name": "styles",
6828
6814
  "declaration": {
6829
- "name": "transitionDigit",
6830
- "module": "src/utils/transition-digit.ts"
6815
+ "name": "styles",
6816
+ "module": "stories/story-parts/styles.ts"
6831
6817
  }
6832
6818
  }
6833
6819
  ]
6834
6820
  },
6835
6821
  {
6836
6822
  "kind": "javascript-module",
6837
- "path": "src/utils/uuid.ts",
6823
+ "path": "stories/story-parts/value-change.ts",
6838
6824
  "declarations": [
6839
6825
  {
6840
6826
  "kind": "function",
6841
- "name": "uuid"
6827
+ "name": "valueChange",
6828
+ "parameters": [
6829
+ {
6830
+ "name": "context",
6831
+ "type": {
6832
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6833
+ }
6834
+ },
6835
+ {
6836
+ "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
6837
+ "type": {
6838
+ "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n equal?: (counter: TimeredCounter, a: any, b: T) => Promise<void>;\n }"
6839
+ }
6840
+ }
6841
+ ]
6842
6842
  }
6843
6843
  ],
6844
6844
  "exports": [
6845
6845
  {
6846
6846
  "kind": "js",
6847
- "name": "uuid",
6847
+ "name": "valueChange",
6848
6848
  "declaration": {
6849
- "name": "uuid",
6850
- "module": "src/utils/uuid.ts"
6849
+ "name": "valueChange",
6850
+ "module": "stories/story-parts/value-change.ts"
6851
6851
  }
6852
6852
  }
6853
6853
  ]
@@ -7784,104 +7784,6 @@
7784
7784
  }
7785
7785
  ]
7786
7786
  },
7787
- {
7788
- "kind": "javascript-module",
7789
- "path": "storybook-static/sb-manager/globals-module-info.js",
7790
- "declarations": [
7791
- {
7792
- "kind": "variable",
7793
- "name": "S"
7794
- }
7795
- ],
7796
- "exports": [
7797
- {
7798
- "kind": "js",
7799
- "name": "globalsModuleInfoMap",
7800
- "declaration": {
7801
- "name": "S",
7802
- "module": "storybook-static/sb-manager/globals-module-info.js"
7803
- }
7804
- }
7805
- ]
7806
- },
7807
- {
7808
- "kind": "javascript-module",
7809
- "path": "storybook-static/sb-manager/globals-runtime.js",
7810
- "declarations": [],
7811
- "exports": []
7812
- },
7813
- {
7814
- "kind": "javascript-module",
7815
- "path": "storybook-static/sb-manager/globals.js",
7816
- "declarations": [
7817
- {
7818
- "kind": "variable",
7819
- "name": "_",
7820
- "type": {
7821
- "text": "object"
7822
- },
7823
- "default": "{ react: \"__REACT__\", \"react-dom\": \"__REACT_DOM__\", \"react-dom/client\": \"__REACT_DOM_CLIENT__\", \"@storybook/icons\": \"__STORYBOOK_ICONS__\", \"storybook/internal/manager-api\": \"__STORYBOOK_API__\", \"@storybook/manager-api\": \"__STORYBOOK_API__\", \"@storybook/core/manager-api\": \"__STORYBOOK_API__\", \"storybook/internal/components\": \"__STORYBOOK_COMPONENTS__\", \"@storybook/components\": \"__STORYBOOK_COMPONENTS__\", \"@storybook/core/components\": \"__STORYBOOK_COMPONENTS__\", \"storybook/internal/channels\": \"__STORYBOOK_CHANNELS__\", \"@storybook/channels\": \"__STORYBOOK_CHANNELS__\", \"@storybook/core/channels\": \"__STORYBOOK_CHANNELS__\", \"storybook/internal/core-errors\": \"__STORYBOOK_CORE_EVENTS__\", \"@storybook/core-events\": \"__STORYBOOK_CORE_EVENTS__\", \"@storybook/core/core-events\": \"__STORYBOOK_CORE_EVENTS__\", \"storybook/internal/manager-errors\": \"__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__\", \"@storybook/core-events/manager-errors\": \"__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__\", \"@storybook/core/manager-errors\": \"__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__\", \"storybook/internal/router\": \"__STORYBOOK_ROUTER__\", \"@storybook/router\": \"__STORYBOOK_ROUTER__\", \"@storybook/core/router\": \"__STORYBOOK_ROUTER__\", \"storybook/internal/theming\": \"__STORYBOOK_THEMING__\", \"@storybook/theming\": \"__STORYBOOK_THEMING__\", \"@storybook/core/theming\": \"__STORYBOOK_THEMING__\", \"storybook/internal/theming/create\": \"__STORYBOOK_THEMING_CREATE__\", \"@storybook/theming/create\": \"__STORYBOOK_THEMING_CREATE__\", \"@storybook/core/theming/create\": \"__STORYBOOK_THEMING_CREATE__\", \"storybook/internal/client-logger\": \"__STORYBOOK_CLIENT_LOGGER__\", \"@storybook/client-logger\": \"__STORYBOOK_CLIENT_LOGGER__\", \"@storybook/core/client-logger\": \"__STORYBOOK_CLIENT_LOGGER__\", \"storybook/internal/types\": \"__STORYBOOK_TYPES__\", \"@storybook/types\": \"__STORYBOOK_TYPES__\", \"@storybook/core/types\": \"__STORYBOOK_TYPES__\" }"
7824
- },
7825
- {
7826
- "kind": "variable",
7827
- "name": "o"
7828
- }
7829
- ],
7830
- "exports": [
7831
- {
7832
- "kind": "js",
7833
- "name": "globalPackages",
7834
- "declaration": {
7835
- "name": "o",
7836
- "module": "storybook-static/sb-manager/globals.js"
7837
- }
7838
- },
7839
- {
7840
- "kind": "js",
7841
- "name": "globalsNameReferenceMap",
7842
- "declaration": {
7843
- "name": "_",
7844
- "module": "storybook-static/sb-manager/globals.js"
7845
- }
7846
- }
7847
- ]
7848
- },
7849
- {
7850
- "kind": "javascript-module",
7851
- "path": "storybook-static/sb-manager/runtime.js",
7852
- "declarations": [],
7853
- "exports": []
7854
- },
7855
- {
7856
- "kind": "javascript-module",
7857
- "path": "storybook-static/sb-preview/globals.js",
7858
- "declarations": [],
7859
- "exports": []
7860
- },
7861
- {
7862
- "kind": "javascript-module",
7863
- "path": "storybook-static/sb-preview/runtime.js",
7864
- "declarations": [],
7865
- "exports": []
7866
- },
7867
- {
7868
- "kind": "javascript-module",
7869
- "path": "coverage/storybook/lcov-report/block-navigation.js",
7870
- "declarations": [],
7871
- "exports": []
7872
- },
7873
- {
7874
- "kind": "javascript-module",
7875
- "path": "coverage/storybook/lcov-report/prettify.js",
7876
- "declarations": [],
7877
- "exports": []
7878
- },
7879
- {
7880
- "kind": "javascript-module",
7881
- "path": "coverage/storybook/lcov-report/sorter.js",
7882
- "declarations": [],
7883
- "exports": []
7884
- },
7885
7787
  {
7886
7788
  "kind": "javascript-module",
7887
7789
  "path": "src/transitions/roller/index.ts",
@@ -8447,66 +8349,6 @@
8447
8349
  }
8448
8350
  }
8449
8351
  ]
8450
- },
8451
- {
8452
- "kind": "javascript-module",
8453
- "path": "storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js",
8454
- "declarations": [],
8455
- "exports": []
8456
- },
8457
- {
8458
- "kind": "javascript-module",
8459
- "path": "storybook-static/sb-addons/essentials-actions-2/manager-bundle.js",
8460
- "declarations": [],
8461
- "exports": []
8462
- },
8463
- {
8464
- "kind": "javascript-module",
8465
- "path": "storybook-static/sb-addons/essentials-controls-1/manager-bundle.js",
8466
- "declarations": [],
8467
- "exports": []
8468
- },
8469
- {
8470
- "kind": "javascript-module",
8471
- "path": "storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js",
8472
- "declarations": [],
8473
- "exports": []
8474
- },
8475
- {
8476
- "kind": "javascript-module",
8477
- "path": "storybook-static/sb-addons/essentials-docs-3/manager-bundle.js",
8478
- "declarations": [],
8479
- "exports": []
8480
- },
8481
- {
8482
- "kind": "javascript-module",
8483
- "path": "storybook-static/sb-addons/essentials-measure-7/manager-bundle.js",
8484
- "declarations": [],
8485
- "exports": []
8486
- },
8487
- {
8488
- "kind": "javascript-module",
8489
- "path": "storybook-static/sb-addons/essentials-outline-8/manager-bundle.js",
8490
- "declarations": [],
8491
- "exports": []
8492
- },
8493
- {
8494
- "kind": "javascript-module",
8495
- "path": "storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js",
8496
- "declarations": [],
8497
- "exports": []
8498
- },
8499
- {
8500
- "kind": "javascript-module",
8501
- "path": "storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js",
8502
- "declarations": [],
8503
- "exports": []
8504
- },
8505
- {
8506
- "kind": "javascript-module",
8507
- "path": "storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js",
8508
- "declarations": [],
8509
- "exports": []
8510
8352
  }
8511
8353
  ]
8512
8354
  }