timered-counter 0.0.4 → 0.0.5

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.
@@ -5502,90 +5502,6 @@
5502
5502
  "declarations": [],
5503
5503
  "exports": []
5504
5504
  },
5505
- {
5506
- "kind": "javascript-module",
5507
- "path": "src/styles/timered-counter-datetime-styles.ts",
5508
- "declarations": [
5509
- {
5510
- "kind": "variable",
5511
- "name": "timeredCounterDatetimeStyles",
5512
- "default": "css` ::part(part-suffix) { font-size: 0.4em; line-height: 1; } `"
5513
- }
5514
- ],
5515
- "exports": [
5516
- {
5517
- "kind": "js",
5518
- "name": "timeredCounterDatetimeStyles",
5519
- "declaration": {
5520
- "name": "timeredCounterDatetimeStyles",
5521
- "module": "src/styles/timered-counter-datetime-styles.ts"
5522
- }
5523
- }
5524
- ]
5525
- },
5526
- {
5527
- "kind": "javascript-module",
5528
- "path": "src/styles/timered-counter-number-styles.ts",
5529
- "declarations": [
5530
- {
5531
- "kind": "variable",
5532
- "name": "timeredCounterNumberStyles",
5533
- "default": "css``"
5534
- }
5535
- ],
5536
- "exports": [
5537
- {
5538
- "kind": "js",
5539
- "name": "timeredCounterNumberStyles",
5540
- "declaration": {
5541
- "name": "timeredCounterNumberStyles",
5542
- "module": "src/styles/timered-counter-number-styles.ts"
5543
- }
5544
- }
5545
- ]
5546
- },
5547
- {
5548
- "kind": "javascript-module",
5549
- "path": "src/styles/timered-counter-string-styles.ts",
5550
- "declarations": [
5551
- {
5552
- "kind": "variable",
5553
- "name": "timeredCounterStringStyles",
5554
- "default": "css``"
5555
- }
5556
- ],
5557
- "exports": [
5558
- {
5559
- "kind": "js",
5560
- "name": "timeredCounterStringStyles",
5561
- "declaration": {
5562
- "name": "timeredCounterStringStyles",
5563
- "module": "src/styles/timered-counter-string-styles.ts"
5564
- }
5565
- }
5566
- ]
5567
- },
5568
- {
5569
- "kind": "javascript-module",
5570
- "path": "src/styles/timered-counter-styles.ts",
5571
- "declarations": [
5572
- {
5573
- "kind": "variable",
5574
- "name": "timeredCounterStyles",
5575
- "default": "css` :host { position: relative; white-space: nowrap; display: inline-block; } //.timered-counter { // position: relative; // display: inline-flex; // overflow: hidden; // // /** // inline-block 和 overflow-hidden 同时存在会使得基线为下边缘. 手动设置 align-bottom 以修正这个问题. // @see https://stackoverflow.com/questions/22421782/css-overflow-hidden-increases-height-of-container // @see https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align // */ // vertical-align: bottom; //} .timered-counter.debug { overflow: visible; } //.timered-counter-datetime-duration .duration-unit { // font-size: 0.4em; // line-height: 1; //} `"
5576
- }
5577
- ],
5578
- "exports": [
5579
- {
5580
- "kind": "js",
5581
- "name": "timeredCounterStyles",
5582
- "declaration": {
5583
- "name": "timeredCounterStyles",
5584
- "module": "src/styles/timered-counter-styles.ts"
5585
- }
5586
- }
5587
- ]
5588
- },
5589
5505
  {
5590
5506
  "kind": "javascript-module",
5591
5507
  "path": "src/string-adapter/build-in-intl-segmenter.ts",
@@ -5771,167 +5687,140 @@
5771
5687
  },
5772
5688
  {
5773
5689
  "kind": "javascript-module",
5774
- "path": "src/utils/any-base.ts",
5690
+ "path": "src/styles/timered-counter-datetime-styles.ts",
5775
5691
  "declarations": [
5776
- {
5777
- "kind": "function",
5778
- "name": "anyBase",
5779
- "parameters": [
5780
- {
5781
- "name": "sa",
5782
- "type": {
5783
- "text": "StringAdapter"
5784
- }
5785
- },
5786
- {
5787
- "name": "srcAlphabet",
5788
- "type": {
5789
- "text": "string"
5790
- }
5791
- },
5792
- {
5793
- "name": "dstAlphabet",
5794
- "type": {
5795
- "text": "string"
5796
- }
5797
- }
5798
- ]
5799
- },
5800
- {
5801
- "kind": "variable",
5802
- "name": "BIN",
5803
- "type": {
5804
- "text": "string"
5805
- },
5806
- "default": "'01'"
5807
- },
5808
- {
5809
- "kind": "variable",
5810
- "name": "OCT",
5811
- "type": {
5812
- "text": "string"
5813
- },
5814
- "default": "'01234567'"
5815
- },
5816
- {
5817
- "kind": "variable",
5818
- "name": "DEC",
5819
- "type": {
5820
- "text": "string"
5821
- },
5822
- "default": "'0123456789'"
5823
- },
5824
5692
  {
5825
5693
  "kind": "variable",
5826
- "name": "HEX",
5827
- "type": {
5828
- "text": "string"
5829
- },
5830
- "default": "'0123456789abcdef'"
5694
+ "name": "timeredCounterDatetimeStyles",
5695
+ "default": "css` ::part(part-suffix) { font-size: 0.4em; line-height: 1; } `"
5831
5696
  }
5832
5697
  ],
5833
5698
  "exports": [
5834
5699
  {
5835
5700
  "kind": "js",
5836
- "name": "anyBase",
5701
+ "name": "timeredCounterDatetimeStyles",
5837
5702
  "declaration": {
5838
- "name": "anyBase",
5839
- "module": "src/utils/any-base.ts"
5703
+ "name": "timeredCounterDatetimeStyles",
5704
+ "module": "src/styles/timered-counter-datetime-styles.ts"
5840
5705
  }
5841
- },
5706
+ }
5707
+ ]
5708
+ },
5709
+ {
5710
+ "kind": "javascript-module",
5711
+ "path": "src/styles/timered-counter-number-styles.ts",
5712
+ "declarations": [
5842
5713
  {
5843
- "kind": "js",
5844
- "name": "BIN",
5845
- "declaration": {
5846
- "name": "BIN",
5847
- "module": "src/utils/any-base.ts"
5848
- }
5849
- },
5714
+ "kind": "variable",
5715
+ "name": "timeredCounterNumberStyles",
5716
+ "default": "css``"
5717
+ }
5718
+ ],
5719
+ "exports": [
5850
5720
  {
5851
5721
  "kind": "js",
5852
- "name": "OCT",
5722
+ "name": "timeredCounterNumberStyles",
5853
5723
  "declaration": {
5854
- "name": "OCT",
5855
- "module": "src/utils/any-base.ts"
5724
+ "name": "timeredCounterNumberStyles",
5725
+ "module": "src/styles/timered-counter-number-styles.ts"
5856
5726
  }
5857
- },
5727
+ }
5728
+ ]
5729
+ },
5730
+ {
5731
+ "kind": "javascript-module",
5732
+ "path": "src/styles/timered-counter-string-styles.ts",
5733
+ "declarations": [
5734
+ {
5735
+ "kind": "variable",
5736
+ "name": "timeredCounterStringStyles",
5737
+ "default": "css``"
5738
+ }
5739
+ ],
5740
+ "exports": [
5858
5741
  {
5859
5742
  "kind": "js",
5860
- "name": "DEC",
5743
+ "name": "timeredCounterStringStyles",
5861
5744
  "declaration": {
5862
- "name": "DEC",
5863
- "module": "src/utils/any-base.ts"
5745
+ "name": "timeredCounterStringStyles",
5746
+ "module": "src/styles/timered-counter-string-styles.ts"
5864
5747
  }
5865
- },
5748
+ }
5749
+ ]
5750
+ },
5751
+ {
5752
+ "kind": "javascript-module",
5753
+ "path": "src/styles/timered-counter-styles.ts",
5754
+ "declarations": [
5755
+ {
5756
+ "kind": "variable",
5757
+ "name": "timeredCounterStyles",
5758
+ "default": "css` :host { position: relative; white-space: nowrap; display: inline-block; } //.timered-counter { // position: relative; // display: inline-flex; // overflow: hidden; // // /** // inline-block 和 overflow-hidden 同时存在会使得基线为下边缘. 手动设置 align-bottom 以修正这个问题. // @see https://stackoverflow.com/questions/22421782/css-overflow-hidden-increases-height-of-container // @see https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align // */ // vertical-align: bottom; //} .timered-counter.debug { overflow: visible; } //.timered-counter-datetime-duration .duration-unit { // font-size: 0.4em; // line-height: 1; //} `"
5759
+ }
5760
+ ],
5761
+ "exports": [
5866
5762
  {
5867
5763
  "kind": "js",
5868
- "name": "HEX",
5764
+ "name": "timeredCounterStyles",
5869
5765
  "declaration": {
5870
- "name": "HEX",
5871
- "module": "src/utils/any-base.ts"
5766
+ "name": "timeredCounterStyles",
5767
+ "module": "src/styles/timered-counter-styles.ts"
5872
5768
  }
5873
5769
  }
5874
5770
  ]
5875
5771
  },
5876
5772
  {
5877
5773
  "kind": "javascript-module",
5878
- "path": "src/utils/duration.ts",
5774
+ "path": "stories/story-parts/animation-events.ts",
5879
5775
  "declarations": [
5880
5776
  {
5881
5777
  "kind": "function",
5882
- "name": "durationObject",
5883
- "return": {
5884
- "type": {
5885
- "text": "{ [key in DurationPartType]?: number }"
5886
- }
5887
- },
5778
+ "name": "animationEvents",
5888
5779
  "parameters": [
5889
5780
  {
5890
- "name": "start",
5891
- "type": {
5892
- "text": "Date"
5893
- }
5894
- },
5895
- {
5896
- "name": "end",
5781
+ "name": "context",
5897
5782
  "type": {
5898
- "text": "Date"
5783
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5899
5784
  }
5900
5785
  },
5901
5786
  {
5902
- "name": "parts",
5787
+ "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
5903
5788
  "type": {
5904
- "text": "DurationPartType[]"
5789
+ "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 }"
5905
5790
  }
5906
5791
  }
5907
- ],
5908
- "description": "计算两个日期之间的时间间隔. 返回一个数组, 包含 parts 每个部分的值."
5909
- },
5792
+ ]
5793
+ }
5794
+ ],
5795
+ "exports": [
5910
5796
  {
5911
- "kind": "function",
5912
- "name": "duration",
5913
- "return": {
5914
- "type": {
5915
- "text": "number[]"
5916
- }
5917
- },
5918
- "parameters": [
5919
- {
5920
- "name": "start",
5921
- "type": {
5922
- "text": "Date"
5923
- }
5924
- },
5797
+ "kind": "js",
5798
+ "name": "animationEvents",
5799
+ "declaration": {
5800
+ "name": "animationEvents",
5801
+ "module": "stories/story-parts/animation-events.ts"
5802
+ }
5803
+ }
5804
+ ]
5805
+ },
5806
+ {
5807
+ "kind": "javascript-module",
5808
+ "path": "stories/story-parts/animation-options.ts",
5809
+ "declarations": [
5810
+ {
5811
+ "kind": "function",
5812
+ "name": "animationOptions",
5813
+ "parameters": [
5925
5814
  {
5926
- "name": "end",
5815
+ "name": "context",
5927
5816
  "type": {
5928
- "text": "Date"
5817
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5929
5818
  }
5930
5819
  },
5931
5820
  {
5932
- "name": "parts",
5821
+ "name": "{\n counter,\n list = [114514] as T[],\n setBy,\n }",
5933
5822
  "type": {
5934
- "text": "DurationPartType[]"
5823
+ "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
5935
5824
  }
5936
5825
  }
5937
5826
  ]
@@ -5940,192 +5829,248 @@
5940
5829
  "exports": [
5941
5830
  {
5942
5831
  "kind": "js",
5943
- "name": "durationObject",
5944
- "declaration": {
5945
- "name": "durationObject",
5946
- "module": "src/utils/duration.ts"
5947
- }
5948
- },
5949
- {
5950
- "kind": "js",
5951
- "name": "duration",
5832
+ "name": "animationOptions",
5952
5833
  "declaration": {
5953
- "name": "duration",
5954
- "module": "src/utils/duration.ts"
5834
+ "name": "animationOptions",
5835
+ "module": "stories/story-parts/animation-options.ts"
5955
5836
  }
5956
5837
  }
5957
5838
  ]
5958
5839
  },
5959
5840
  {
5960
5841
  "kind": "javascript-module",
5961
- "path": "src/utils/extract-group-option.ts",
5842
+ "path": "stories/story-parts/big-number.ts",
5962
5843
  "declarations": [
5963
5844
  {
5964
5845
  "kind": "function",
5965
- "name": "extractGroupOption",
5846
+ "name": "bigNumber",
5966
5847
  "parameters": [
5967
5848
  {
5968
- "name": "option",
5849
+ "name": "context",
5969
5850
  "type": {
5970
- "text": "P"
5851
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5971
5852
  }
5972
5853
  },
5973
5854
  {
5974
- "name": "getterOptions",
5855
+ "name": "{\n counter,\n setBy,\n equal = _equal,\n }",
5975
5856
  "type": {
5976
- "text": "GroupGetterOptions"
5857
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n equal?: (counter: TimeredCounter, a: any, b: any) => Promise<void>;\n }"
5977
5858
  }
5978
5859
  }
5979
5860
  ]
5980
- },
5861
+ }
5862
+ ],
5863
+ "exports": [
5864
+ {
5865
+ "kind": "js",
5866
+ "name": "bigNumber",
5867
+ "declaration": {
5868
+ "name": "bigNumber",
5869
+ "module": "stories/story-parts/big-number.ts"
5870
+ }
5871
+ }
5872
+ ]
5873
+ },
5874
+ {
5875
+ "kind": "javascript-module",
5876
+ "path": "stories/story-parts/datetime-locale.ts",
5877
+ "declarations": [
5981
5878
  {
5982
5879
  "kind": "function",
5983
- "name": "extractPartOption",
5880
+ "name": "datetimeLocale",
5984
5881
  "parameters": [
5985
5882
  {
5986
- "name": "option",
5883
+ "name": "context",
5987
5884
  "type": {
5988
- "text": "P"
5885
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
5989
5886
  }
5990
5887
  },
5991
5888
  {
5992
- "name": "getterOptions",
5889
+ "name": "{\n counter,\n setBy,\n }",
5993
5890
  "type": {
5994
- "text": "GroupGetterOptions"
5891
+ "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 }"
5995
5892
  }
5996
5893
  }
5997
5894
  ]
5998
- },
5895
+ }
5896
+ ],
5897
+ "exports": [
5898
+ {
5899
+ "kind": "js",
5900
+ "name": "datetimeLocale",
5901
+ "declaration": {
5902
+ "name": "datetimeLocale",
5903
+ "module": "stories/story-parts/datetime-locale.ts"
5904
+ }
5905
+ }
5906
+ ]
5907
+ },
5908
+ {
5909
+ "kind": "javascript-module",
5910
+ "path": "stories/story-parts/datetime-precision.ts",
5911
+ "declarations": [
5999
5912
  {
6000
5913
  "kind": "function",
6001
- "name": "extractPartDigitOption",
5914
+ "name": "datetimePrecision",
6002
5915
  "parameters": [
6003
5916
  {
6004
- "name": "option",
5917
+ "name": "context",
6005
5918
  "type": {
6006
- "text": "P"
5919
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6007
5920
  }
6008
5921
  },
6009
5922
  {
6010
- "name": "getterOptions",
5923
+ "name": "{\n counter,\n setBy,\n }",
6011
5924
  "type": {
6012
- "text": "GroupGetterOptions"
5925
+ "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 }"
6013
5926
  }
6014
5927
  }
6015
5928
  ]
6016
- },
5929
+ }
5930
+ ],
5931
+ "exports": [
5932
+ {
5933
+ "kind": "js",
5934
+ "name": "datetimePrecision",
5935
+ "declaration": {
5936
+ "name": "datetimePrecision",
5937
+ "module": "stories/story-parts/datetime-precision.ts"
5938
+ }
5939
+ }
5940
+ ]
5941
+ },
5942
+ {
5943
+ "kind": "javascript-module",
5944
+ "path": "stories/story-parts/edge-case.ts",
5945
+ "declarations": [
6017
5946
  {
6018
5947
  "kind": "function",
6019
- "name": "extractPartDigitCellOption",
5948
+ "name": "edgeCase",
6020
5949
  "parameters": [
6021
5950
  {
6022
- "name": "option",
5951
+ "name": "context",
6023
5952
  "type": {
6024
- "text": "P"
5953
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6025
5954
  }
6026
5955
  },
6027
5956
  {
6028
- "name": "getterOptions",
5957
+ "name": "{\n counter,\n list,\n setBy,\n }",
6029
5958
  "type": {
6030
- "text": "GroupGetterOptions"
5959
+ "text": "{\n counter: TC;\n list: [label: string, value: T, expectedValue: T][];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
6031
5960
  }
6032
5961
  }
6033
5962
  ]
6034
- },
5963
+ }
5964
+ ],
5965
+ "exports": [
5966
+ {
5967
+ "kind": "js",
5968
+ "name": "edgeCase",
5969
+ "declaration": {
5970
+ "name": "edgeCase",
5971
+ "module": "stories/story-parts/edge-case.ts"
5972
+ }
5973
+ }
5974
+ ]
5975
+ },
5976
+ {
5977
+ "kind": "javascript-module",
5978
+ "path": "stories/story-parts/emoji.ts",
5979
+ "declarations": [
6035
5980
  {
6036
5981
  "kind": "function",
6037
- "name": "mergeGroupOption",
6038
- "return": {
6039
- "type": {
6040
- "text": "Result"
6041
- }
6042
- },
5982
+ "name": "emoji",
6043
5983
  "parameters": [
6044
5984
  {
6045
- "name": "data",
5985
+ "name": "context",
6046
5986
  "type": {
6047
- "text": "Result"
5987
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6048
5988
  }
6049
5989
  },
6050
5990
  {
6051
- "name": "source",
5991
+ "name": "{\n counter,\n setBy,\n list,\n }",
6052
5992
  "type": {
6053
- "text": "Result"
5993
+ "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 }"
6054
5994
  }
6055
5995
  }
6056
5996
  ]
6057
- },
5997
+ }
5998
+ ],
5999
+ "exports": [
6000
+ {
6001
+ "kind": "js",
6002
+ "name": "emoji",
6003
+ "declaration": {
6004
+ "name": "emoji",
6005
+ "module": "stories/story-parts/emoji.ts"
6006
+ }
6007
+ }
6008
+ ]
6009
+ },
6010
+ {
6011
+ "kind": "javascript-module",
6012
+ "path": "stories/story-parts/locale-number.ts",
6013
+ "declarations": [
6058
6014
  {
6059
6015
  "kind": "function",
6060
- "name": "mergePartOption",
6061
- "return": {
6062
- "type": {
6063
- "text": "Result[]"
6064
- }
6065
- },
6016
+ "name": "localeNumber",
6066
6017
  "parameters": [
6067
6018
  {
6068
- "name": "data",
6069
- "default": "[]",
6019
+ "name": "context",
6070
6020
  "type": {
6071
- "text": "Result[]"
6021
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6072
6022
  }
6073
6023
  },
6074
6024
  {
6075
- "name": "source",
6076
- "default": "[]",
6025
+ "name": "{\n counter,\n setBy,\n }",
6077
6026
  "type": {
6078
- "text": "Result[]"
6027
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6079
6028
  }
6080
6029
  }
6081
6030
  ]
6082
- },
6031
+ }
6032
+ ],
6033
+ "exports": [
6034
+ {
6035
+ "kind": "js",
6036
+ "name": "localeNumber",
6037
+ "declaration": {
6038
+ "name": "localeNumber",
6039
+ "module": "stories/story-parts/locale-number.ts"
6040
+ }
6041
+ }
6042
+ ]
6043
+ },
6044
+ {
6045
+ "kind": "javascript-module",
6046
+ "path": "stories/story-parts/slots.ts",
6047
+ "declarations": [
6083
6048
  {
6084
6049
  "kind": "function",
6085
- "name": "mergePartDigitOption",
6086
- "return": {
6087
- "type": {
6088
- "text": "Result[][]"
6089
- }
6090
- },
6050
+ "name": "render",
6091
6051
  "parameters": [
6092
6052
  {
6093
- "name": "data",
6094
- "default": "[]",
6095
- "type": {
6096
- "text": "Result[][]"
6097
- }
6098
- },
6099
- {
6100
- "name": "source",
6101
- "default": "[]",
6053
+ "name": "args",
6102
6054
  "type": {
6103
- "text": "Result[][]"
6055
+ "text": "any"
6104
6056
  }
6105
6057
  }
6106
6058
  ]
6107
6059
  },
6108
6060
  {
6109
6061
  "kind": "function",
6110
- "name": "mergePartDigitCellOption",
6111
- "return": {
6112
- "type": {
6113
- "text": "Result[][][]"
6114
- }
6115
- },
6062
+ "name": "slots",
6116
6063
  "parameters": [
6117
6064
  {
6118
- "name": "data",
6119
- "default": "[]",
6065
+ "name": "context",
6120
6066
  "type": {
6121
- "text": "Result[][][]"
6067
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6122
6068
  }
6123
6069
  },
6124
6070
  {
6125
- "name": "source",
6126
- "default": "[]",
6071
+ "name": "{\n counter,\n }",
6127
6072
  "type": {
6128
- "text": "Result[][][]"
6073
+ "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 }"
6129
6074
  }
6130
6075
  }
6131
6076
  ]
@@ -6134,238 +6079,437 @@
6134
6079
  "exports": [
6135
6080
  {
6136
6081
  "kind": "js",
6137
- "name": "extractGroupOption",
6082
+ "name": "render",
6138
6083
  "declaration": {
6139
- "name": "extractGroupOption",
6140
- "module": "src/utils/extract-group-option.ts"
6084
+ "name": "render",
6085
+ "module": "stories/story-parts/slots.ts"
6141
6086
  }
6142
6087
  },
6143
6088
  {
6144
6089
  "kind": "js",
6145
- "name": "extractPartOption",
6090
+ "name": "slots",
6146
6091
  "declaration": {
6147
- "name": "extractPartOption",
6148
- "module": "src/utils/extract-group-option.ts"
6092
+ "name": "slots",
6093
+ "module": "stories/story-parts/slots.ts"
6149
6094
  }
6150
- },
6095
+ }
6096
+ ]
6097
+ },
6098
+ {
6099
+ "kind": "javascript-module",
6100
+ "path": "stories/story-parts/styles.ts",
6101
+ "declarations": [
6102
+ {
6103
+ "kind": "function",
6104
+ "name": "styles",
6105
+ "parameters": [
6106
+ {
6107
+ "name": "context",
6108
+ "type": {
6109
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6110
+ }
6111
+ },
6112
+ {
6113
+ "name": "{\n counter,\n setBy,\n }",
6114
+ "type": {
6115
+ "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6116
+ }
6117
+ }
6118
+ ]
6119
+ }
6120
+ ],
6121
+ "exports": [
6151
6122
  {
6152
6123
  "kind": "js",
6153
- "name": "extractPartDigitOption",
6124
+ "name": "styles",
6154
6125
  "declaration": {
6155
- "name": "extractPartDigitOption",
6156
- "module": "src/utils/extract-group-option.ts"
6126
+ "name": "styles",
6127
+ "module": "stories/story-parts/styles.ts"
6157
6128
  }
6129
+ }
6130
+ ]
6131
+ },
6132
+ {
6133
+ "kind": "javascript-module",
6134
+ "path": "stories/story-parts/value-change.ts",
6135
+ "declarations": [
6136
+ {
6137
+ "kind": "function",
6138
+ "name": "valueChange",
6139
+ "parameters": [
6140
+ {
6141
+ "name": "context",
6142
+ "type": {
6143
+ "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6144
+ }
6145
+ },
6146
+ {
6147
+ "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
6148
+ "type": {
6149
+ "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 }"
6150
+ }
6151
+ }
6152
+ ]
6153
+ }
6154
+ ],
6155
+ "exports": [
6156
+ {
6157
+ "kind": "js",
6158
+ "name": "valueChange",
6159
+ "declaration": {
6160
+ "name": "valueChange",
6161
+ "module": "stories/story-parts/value-change.ts"
6162
+ }
6163
+ }
6164
+ ]
6165
+ },
6166
+ {
6167
+ "kind": "javascript-module",
6168
+ "path": "stories/timered-counter/decimaljs.stories.ts",
6169
+ "declarations": [
6170
+ {
6171
+ "kind": "variable",
6172
+ "name": "meta",
6173
+ "type": {
6174
+ "text": "Meta"
6175
+ },
6176
+ "default": "{ title: 'TimeredCounter/with decimal.js', component: 'timered-counter', tags: ['autodocs', 'timered-counter'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); }, }"
6158
6177
  },
6178
+ {
6179
+ "kind": "variable",
6180
+ "name": "BigNumber",
6181
+ "type": {
6182
+ "text": "StoryObj<TimeredCounter>"
6183
+ },
6184
+ "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => bigNumber(context, { counter, setBy: setByAttr }), ); await step('Testing with property', async () => bigNumber(context, { counter, setBy: setByProp }), ); }, }"
6185
+ }
6186
+ ],
6187
+ "exports": [
6159
6188
  {
6160
6189
  "kind": "js",
6161
- "name": "extractPartDigitCellOption",
6190
+ "name": "default",
6162
6191
  "declaration": {
6163
- "name": "extractPartDigitCellOption",
6164
- "module": "src/utils/extract-group-option.ts"
6192
+ "name": "meta",
6193
+ "module": "stories/timered-counter/decimaljs.stories.ts"
6165
6194
  }
6166
6195
  },
6167
6196
  {
6168
6197
  "kind": "js",
6169
- "name": "mergeGroupOption",
6198
+ "name": "Basic",
6170
6199
  "declaration": {
6171
- "name": "mergeGroupOption",
6172
- "module": "src/utils/extract-group-option.ts"
6200
+ "name": "Basic",
6201
+ "module": "./index.stories.js"
6173
6202
  }
6174
6203
  },
6175
6204
  {
6176
6205
  "kind": "js",
6177
- "name": "mergePartOption",
6206
+ "name": "Events",
6178
6207
  "declaration": {
6179
- "name": "mergePartOption",
6180
- "module": "src/utils/extract-group-option.ts"
6208
+ "name": "Events",
6209
+ "module": "./index.stories.js"
6181
6210
  }
6182
6211
  },
6183
6212
  {
6184
6213
  "kind": "js",
6185
- "name": "mergePartDigitOption",
6214
+ "name": "AnimationOptions",
6186
6215
  "declaration": {
6187
- "name": "mergePartDigitOption",
6188
- "module": "src/utils/extract-group-option.ts"
6216
+ "name": "AnimationOptions",
6217
+ "module": "./index.stories.js"
6189
6218
  }
6190
6219
  },
6191
6220
  {
6192
6221
  "kind": "js",
6193
- "name": "mergePartDigitCellOption",
6222
+ "name": "Slots",
6194
6223
  "declaration": {
6195
- "name": "mergePartDigitCellOption",
6196
- "module": "src/utils/extract-group-option.ts"
6224
+ "name": "Slots",
6225
+ "module": "./index.stories.js"
6197
6226
  }
6198
- }
6199
- ]
6200
- },
6201
- {
6202
- "kind": "javascript-module",
6203
- "path": "src/utils/iso8601-duration.ts",
6204
- "declarations": [
6227
+ },
6205
6228
  {
6206
- "kind": "function",
6207
- "name": "iso8601Duration",
6208
- "return": {
6209
- "type": {
6210
- "text": "string"
6211
- }
6212
- },
6213
- "parameters": [
6214
- {
6215
- "name": "duration",
6216
- "type": {
6217
- "text": "{\n [key in DurationPartType]?: number;\n}"
6218
- }
6219
- }
6220
- ]
6221
- }
6222
- ],
6223
- "exports": [
6229
+ "kind": "js",
6230
+ "name": "Styles",
6231
+ "declaration": {
6232
+ "name": "Styles",
6233
+ "module": "./index.stories.js"
6234
+ }
6235
+ },
6224
6236
  {
6225
6237
  "kind": "js",
6226
- "name": "iso8601Duration",
6238
+ "name": "BigNumber",
6227
6239
  "declaration": {
6228
- "name": "iso8601Duration",
6229
- "module": "src/utils/iso8601-duration.ts"
6240
+ "name": "BigNumber",
6241
+ "module": "stories/timered-counter/decimaljs.stories.ts"
6230
6242
  }
6231
6243
  }
6232
6244
  ]
6233
6245
  },
6234
6246
  {
6235
6247
  "kind": "javascript-module",
6236
- "path": "src/utils/localized-date-time-fields.ts",
6248
+ "path": "stories/timered-counter/index.stories.ts",
6237
6249
  "declarations": [
6238
6250
  {
6239
6251
  "kind": "variable",
6240
- "name": "DateTimeFields",
6252
+ "name": "meta",
6241
6253
  "type": {
6242
- "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]"
6254
+ "text": "Meta"
6243
6255
  },
6244
- "default": "[ \"era\", \"year\", \"quarter\", \"month\", \"weekOfYear\", \"weekday\", \"day\", \"dayPeriod\", \"hour\", \"minute\", \"second\", \"timeZoneName\", ]"
6256
+ "default": "{ title: 'TimeredCounter', component: 'timered-counter', tags: ['autodocs', 'timered-counter'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('number'); }, globals: { setByAttr, setByProp, }, }"
6245
6257
  },
6246
6258
  {
6247
- "kind": "function",
6248
- "name": "getLocalizedDateTimeFields",
6249
- "parameters": [
6250
- {
6251
- "name": "locale",
6252
- "type": {
6253
- "text": "Intl.Locale"
6254
- }
6255
- }
6256
- ]
6259
+ "kind": "variable",
6260
+ "name": "Basic",
6261
+ "type": {
6262
+ "text": "StoryObj<TimeredCounter>"
6263
+ },
6264
+ "default": "{ args: { className: 'test-target', // @ts-ignore value: '0', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await valueChange(context, { counter, setBy: setByAttr, }); await step('Edge case', async () => edgeCase(context, { counter, list: [ ['Setting an empty string', '', '0'], ['Setting a non-number', 'a', '0'], ['Setting a decimal number', '1.1', '1.1'], ['Setting a negative number', '-1', '-1'], ['Setting Infinity', 'Infinity', '0'], ['Setting NaN', 'NaN', '0'], ['Setting null', 'null', '0'], ['Setting undefined', 'undefined', '0'], ['Setting true', 'true', '0'], ['Setting false', 'false', '0'], ['Setting an object', '{}', '0'], ['Setting an array', '[]', '0'], ['Setting a function', '() => {}', '0'], ['Setting a Symbol', 'Symbol()', '0'], ['Setting a BigInt', 'BigInt(1)', '0'], ], setBy: setByAttr, }), ); }); await step('Testing with property', async () => { await valueChange(context, { counter, setBy: setByProp }); await step('Edge case', async () => edgeCase(context, { counter, list: [ ['Setting an empty string', '', 0], ['Setting a non-number', 'a', 0], ['Setting a decimal number', '1.1', 1.1], ['Setting a negative number', '-1', -1], ['Setting Infinity', 'Infinity', 0], ['Setting NaN', 'NaN', 0], ['Setting null', 'null', 0], ['Setting undefined', 'undefined', 0], ['Setting true', 'true', 0], ['Setting false', 'false', 0], ['Setting an object', '{}', 0], ['Setting an array', '[]', 0], ['Setting a function', '() => {}', 0], ['Setting a Symbol', 'Symbol()', 0], ['Setting a BigInt', 'BigInt(1)', 0], ], setBy: setByProp, }), ); }); }, }"
6265
+ },
6266
+ {
6267
+ "kind": "variable",
6268
+ "name": "Events",
6269
+ "type": {
6270
+ "text": "StoryObj<TimeredCounter>"
6271
+ },
6272
+ "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await step('Animation events', async () => animationEvents(context, { counter, setBy: setByAttr, }), ); }); await step('Testing with property', async () => { await step('Animation events', async () => animationEvents(context, { counter, setBy: setByProp, }), ); }); }, }"
6273
+ },
6274
+ {
6275
+ "kind": "variable",
6276
+ "name": "AnimationOptions",
6277
+ "type": {
6278
+ "text": "StoryObj<TimeredCounter>"
6279
+ },
6280
+ "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await step('Animation options', async () => animationOptions(context, { counter, setBy: setByAttr, }), ); }); // await step('Testing with property', async () => { // await step('Animation options', async () => // animationOptions(context, { // counter, // list, // setBy: setByProp, // }), // ); // }); }, }"
6281
+ },
6282
+ {
6283
+ "kind": "variable",
6284
+ "name": "Styles",
6285
+ "type": {
6286
+ "text": "StoryObj<TimeredCounter>"
6287
+ },
6288
+ "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await step('Styles', async () => styles(context, { counter, setBy: setByAttr, }), ); }); await step('Testing with property', async () => { await step('Styles', async () => styles(context, { counter, setBy: setByProp, }), ); }); }, }"
6289
+ },
6290
+ {
6291
+ "kind": "variable",
6292
+ "name": "Slots",
6293
+ "type": {
6294
+ "text": "StoryObj<TimeredCounter>"
6295
+ },
6296
+ "default": "{ args: { className: 'test-target', value: 0, }, render: slotsRender, async play(context) { const { canvasElement } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await slots(context, { counter }); }, }"
6257
6297
  }
6258
6298
  ],
6259
6299
  "exports": [
6260
6300
  {
6261
6301
  "kind": "js",
6262
- "name": "DateTimeFields",
6302
+ "name": "default",
6263
6303
  "declaration": {
6264
- "name": "DateTimeFields",
6265
- "module": "src/utils/localized-date-time-fields.ts"
6304
+ "name": "meta",
6305
+ "module": "stories/timered-counter/index.stories.ts"
6266
6306
  }
6267
6307
  },
6268
6308
  {
6269
6309
  "kind": "js",
6270
- "name": "getLocalizedDateTimeFields",
6310
+ "name": "Basic",
6271
6311
  "declaration": {
6272
- "name": "getLocalizedDateTimeFields",
6273
- "module": "src/utils/localized-date-time-fields.ts"
6312
+ "name": "Basic",
6313
+ "module": "stories/timered-counter/index.stories.ts"
6314
+ }
6315
+ },
6316
+ {
6317
+ "kind": "js",
6318
+ "name": "Events",
6319
+ "declaration": {
6320
+ "name": "Events",
6321
+ "module": "stories/timered-counter/index.stories.ts"
6322
+ }
6323
+ },
6324
+ {
6325
+ "kind": "js",
6326
+ "name": "AnimationOptions",
6327
+ "declaration": {
6328
+ "name": "AnimationOptions",
6329
+ "module": "stories/timered-counter/index.stories.ts"
6330
+ }
6331
+ },
6332
+ {
6333
+ "kind": "js",
6334
+ "name": "Styles",
6335
+ "declaration": {
6336
+ "name": "Styles",
6337
+ "module": "stories/timered-counter/index.stories.ts"
6338
+ }
6339
+ },
6340
+ {
6341
+ "kind": "js",
6342
+ "name": "Slots",
6343
+ "declaration": {
6344
+ "name": "Slots",
6345
+ "module": "stories/timered-counter/index.stories.ts"
6274
6346
  }
6275
6347
  }
6276
6348
  ]
6277
6349
  },
6278
6350
  {
6279
6351
  "kind": "javascript-module",
6280
- "path": "src/utils/parse-json-string.ts",
6352
+ "path": "src/utils/any-base.ts",
6281
6353
  "declarations": [
6282
6354
  {
6283
6355
  "kind": "function",
6284
- "name": "parseJsonString",
6356
+ "name": "anyBase",
6285
6357
  "parameters": [
6286
6358
  {
6287
- "name": "value",
6359
+ "name": "sa",
6360
+ "type": {
6361
+ "text": "StringAdapter"
6362
+ }
6363
+ },
6364
+ {
6365
+ "name": "srcAlphabet",
6366
+ "type": {
6367
+ "text": "string"
6368
+ }
6369
+ },
6370
+ {
6371
+ "name": "dstAlphabet",
6288
6372
  "type": {
6289
6373
  "text": "string"
6290
6374
  }
6291
6375
  }
6292
6376
  ]
6377
+ },
6378
+ {
6379
+ "kind": "variable",
6380
+ "name": "BIN",
6381
+ "type": {
6382
+ "text": "string"
6383
+ },
6384
+ "default": "'01'"
6385
+ },
6386
+ {
6387
+ "kind": "variable",
6388
+ "name": "OCT",
6389
+ "type": {
6390
+ "text": "string"
6391
+ },
6392
+ "default": "'01234567'"
6393
+ },
6394
+ {
6395
+ "kind": "variable",
6396
+ "name": "DEC",
6397
+ "type": {
6398
+ "text": "string"
6399
+ },
6400
+ "default": "'0123456789'"
6401
+ },
6402
+ {
6403
+ "kind": "variable",
6404
+ "name": "HEX",
6405
+ "type": {
6406
+ "text": "string"
6407
+ },
6408
+ "default": "'0123456789abcdef'"
6293
6409
  }
6294
6410
  ],
6295
6411
  "exports": [
6296
6412
  {
6297
6413
  "kind": "js",
6298
- "name": "parseJsonString",
6414
+ "name": "anyBase",
6415
+ "declaration": {
6416
+ "name": "anyBase",
6417
+ "module": "src/utils/any-base.ts"
6418
+ }
6419
+ },
6420
+ {
6421
+ "kind": "js",
6422
+ "name": "BIN",
6423
+ "declaration": {
6424
+ "name": "BIN",
6425
+ "module": "src/utils/any-base.ts"
6426
+ }
6427
+ },
6428
+ {
6429
+ "kind": "js",
6430
+ "name": "OCT",
6431
+ "declaration": {
6432
+ "name": "OCT",
6433
+ "module": "src/utils/any-base.ts"
6434
+ }
6435
+ },
6436
+ {
6437
+ "kind": "js",
6438
+ "name": "DEC",
6439
+ "declaration": {
6440
+ "name": "DEC",
6441
+ "module": "src/utils/any-base.ts"
6442
+ }
6443
+ },
6444
+ {
6445
+ "kind": "js",
6446
+ "name": "HEX",
6299
6447
  "declaration": {
6300
- "name": "parseJsonString",
6301
- "module": "src/utils/parse-json-string.ts"
6448
+ "name": "HEX",
6449
+ "module": "src/utils/any-base.ts"
6302
6450
  }
6303
6451
  }
6304
6452
  ]
6305
6453
  },
6306
6454
  {
6307
6455
  "kind": "javascript-module",
6308
- "path": "src/utils/polyfill-keyframes.ts",
6456
+ "path": "src/utils/duration.ts",
6309
6457
  "declarations": [
6310
6458
  {
6311
6459
  "kind": "function",
6312
- "name": "polyfillKeyframes",
6460
+ "name": "durationObject",
6313
6461
  "return": {
6314
6462
  "type": {
6315
- "text": "Keyframe[]"
6463
+ "text": "{ [key in DurationPartType]?: number }"
6316
6464
  }
6317
6465
  },
6318
6466
  "parameters": [
6319
6467
  {
6320
- "name": "keyframes",
6468
+ "name": "start",
6321
6469
  "type": {
6322
- "text": "Keyframe[] | PropertyIndexedKeyframes"
6470
+ "text": "Date"
6323
6471
  }
6324
- }
6325
- ]
6326
- }
6327
- ],
6328
- "exports": [
6329
- {
6330
- "kind": "js",
6331
- "name": "polyfillKeyframes",
6332
- "declaration": {
6333
- "name": "polyfillKeyframes",
6334
- "module": "src/utils/polyfill-keyframes.ts"
6335
- }
6336
- }
6337
- ]
6338
- },
6339
- {
6340
- "kind": "javascript-module",
6341
- "path": "src/utils/preprocess-part-data.ts",
6342
- "declarations": [
6343
- {
6344
- "kind": "function",
6345
- "name": "preprocessPartData",
6346
- "parameters": [
6472
+ },
6347
6473
  {
6348
- "name": "newDirection",
6474
+ "name": "end",
6349
6475
  "type": {
6350
- "text": "'up' | 'down'"
6476
+ "text": "Date"
6351
6477
  }
6352
6478
  },
6353
6479
  {
6354
- "name": "newData",
6480
+ "name": "parts",
6355
6481
  "type": {
6356
- "text": "PartData[]"
6482
+ "text": "DurationPartType[]"
6483
+ }
6484
+ }
6485
+ ],
6486
+ "description": "计算两个日期之间的时间间隔. 返回一个数组, 包含 parts 每个部分的值."
6487
+ },
6488
+ {
6489
+ "kind": "function",
6490
+ "name": "duration",
6491
+ "return": {
6492
+ "type": {
6493
+ "text": "number[]"
6494
+ }
6495
+ },
6496
+ "parameters": [
6497
+ {
6498
+ "name": "start",
6499
+ "type": {
6500
+ "text": "Date"
6357
6501
  }
6358
6502
  },
6359
6503
  {
6360
- "name": "oldDirection",
6504
+ "name": "end",
6361
6505
  "type": {
6362
- "text": "'up' | 'down'"
6506
+ "text": "Date"
6363
6507
  }
6364
6508
  },
6365
6509
  {
6366
- "name": "oldData",
6510
+ "name": "parts",
6367
6511
  "type": {
6368
- "text": "PartData[]"
6512
+ "text": "DurationPartType[]"
6369
6513
  }
6370
6514
  }
6371
6515
  ]
@@ -6374,234 +6518,192 @@
6374
6518
  "exports": [
6375
6519
  {
6376
6520
  "kind": "js",
6377
- "name": "preprocessPartData",
6521
+ "name": "durationObject",
6378
6522
  "declaration": {
6379
- "name": "preprocessPartData",
6380
- "module": "src/utils/preprocess-part-data.ts"
6523
+ "name": "durationObject",
6524
+ "module": "src/utils/duration.ts"
6525
+ }
6526
+ },
6527
+ {
6528
+ "kind": "js",
6529
+ "name": "duration",
6530
+ "declaration": {
6531
+ "name": "duration",
6532
+ "module": "src/utils/duration.ts"
6381
6533
  }
6382
6534
  }
6383
6535
  ]
6384
6536
  },
6385
6537
  {
6386
6538
  "kind": "javascript-module",
6387
- "path": "src/utils/transition-digit.ts",
6539
+ "path": "src/utils/extract-group-option.ts",
6388
6540
  "declarations": [
6389
6541
  {
6390
6542
  "kind": "function",
6391
- "name": "transitionDigit",
6543
+ "name": "extractGroupOption",
6392
6544
  "parameters": [
6393
6545
  {
6394
- "name": "na",
6546
+ "name": "option",
6395
6547
  "type": {
6396
- "text": "NS"
6548
+ "text": "P"
6397
6549
  }
6398
6550
  },
6399
6551
  {
6400
- "name": "from",
6552
+ "name": "getterOptions",
6401
6553
  "type": {
6402
- "text": "V"
6554
+ "text": "GroupGetterOptions"
6403
6555
  }
6404
- },
6556
+ }
6557
+ ]
6558
+ },
6559
+ {
6560
+ "kind": "function",
6561
+ "name": "extractPartOption",
6562
+ "parameters": [
6405
6563
  {
6406
- "name": "to",
6564
+ "name": "option",
6407
6565
  "type": {
6408
- "text": "V"
6566
+ "text": "P"
6409
6567
  }
6410
6568
  },
6411
6569
  {
6412
- "name": "count",
6570
+ "name": "getterOptions",
6413
6571
  "type": {
6414
- "text": "number"
6572
+ "text": "GroupGetterOptions"
6415
6573
  }
6416
6574
  }
6417
6575
  ]
6418
- }
6419
- ],
6420
- "exports": [
6421
- {
6422
- "kind": "js",
6423
- "name": "transitionDigit",
6424
- "declaration": {
6425
- "name": "transitionDigit",
6426
- "module": "src/utils/transition-digit.ts"
6427
- }
6428
- }
6429
- ]
6430
- },
6431
- {
6432
- "kind": "javascript-module",
6433
- "path": "src/utils/uuid.ts",
6434
- "declarations": [
6435
- {
6436
- "kind": "function",
6437
- "name": "uuid"
6438
- }
6439
- ],
6440
- "exports": [
6441
- {
6442
- "kind": "js",
6443
- "name": "uuid",
6444
- "declaration": {
6445
- "name": "uuid",
6446
- "module": "src/utils/uuid.ts"
6447
- }
6448
- }
6449
- ]
6450
- },
6451
- {
6452
- "kind": "javascript-module",
6453
- "path": "stories/story-parts/animation-events.ts",
6454
- "declarations": [
6576
+ },
6455
6577
  {
6456
6578
  "kind": "function",
6457
- "name": "animationEvents",
6579
+ "name": "extractPartDigitOption",
6458
6580
  "parameters": [
6459
6581
  {
6460
- "name": "context",
6582
+ "name": "option",
6461
6583
  "type": {
6462
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6584
+ "text": "P"
6463
6585
  }
6464
6586
  },
6465
6587
  {
6466
- "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
6588
+ "name": "getterOptions",
6467
6589
  "type": {
6468
- "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 }"
6590
+ "text": "GroupGetterOptions"
6469
6591
  }
6470
6592
  }
6471
6593
  ]
6472
- }
6473
- ],
6474
- "exports": [
6475
- {
6476
- "kind": "js",
6477
- "name": "animationEvents",
6478
- "declaration": {
6479
- "name": "animationEvents",
6480
- "module": "stories/story-parts/animation-events.ts"
6481
- }
6482
- }
6483
- ]
6484
- },
6485
- {
6486
- "kind": "javascript-module",
6487
- "path": "stories/story-parts/animation-options.ts",
6488
- "declarations": [
6594
+ },
6489
6595
  {
6490
6596
  "kind": "function",
6491
- "name": "animationOptions",
6597
+ "name": "extractPartDigitCellOption",
6492
6598
  "parameters": [
6493
6599
  {
6494
- "name": "context",
6600
+ "name": "option",
6495
6601
  "type": {
6496
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6602
+ "text": "P"
6497
6603
  }
6498
6604
  },
6499
6605
  {
6500
- "name": "{\n counter,\n list = [114514] as T[],\n setBy,\n }",
6606
+ "name": "getterOptions",
6501
6607
  "type": {
6502
- "text": "{\n counter: TC;\n list?: T[];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
6608
+ "text": "GroupGetterOptions"
6503
6609
  }
6504
6610
  }
6505
6611
  ]
6506
- }
6507
- ],
6508
- "exports": [
6509
- {
6510
- "kind": "js",
6511
- "name": "animationOptions",
6512
- "declaration": {
6513
- "name": "animationOptions",
6514
- "module": "stories/story-parts/animation-options.ts"
6515
- }
6516
- }
6517
- ]
6518
- },
6519
- {
6520
- "kind": "javascript-module",
6521
- "path": "stories/story-parts/big-number.ts",
6522
- "declarations": [
6612
+ },
6523
6613
  {
6524
6614
  "kind": "function",
6525
- "name": "bigNumber",
6615
+ "name": "mergeGroupOption",
6616
+ "return": {
6617
+ "type": {
6618
+ "text": "Result"
6619
+ }
6620
+ },
6526
6621
  "parameters": [
6527
6622
  {
6528
- "name": "context",
6623
+ "name": "data",
6529
6624
  "type": {
6530
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6625
+ "text": "Result"
6531
6626
  }
6532
6627
  },
6533
6628
  {
6534
- "name": "{\n counter,\n setBy,\n equal = _equal,\n }",
6629
+ "name": "source",
6535
6630
  "type": {
6536
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n equal?: (counter: TimeredCounter, a: any, b: any) => Promise<void>;\n }"
6631
+ "text": "Result"
6537
6632
  }
6538
6633
  }
6539
6634
  ]
6540
- }
6541
- ],
6542
- "exports": [
6635
+ },
6543
6636
  {
6544
- "kind": "js",
6545
- "name": "bigNumber",
6546
- "declaration": {
6547
- "name": "bigNumber",
6548
- "module": "stories/story-parts/big-number.ts"
6549
- }
6550
- }
6551
- ]
6552
- },
6553
- {
6554
- "kind": "javascript-module",
6555
- "path": "stories/story-parts/datetime-locale.ts",
6556
- "declarations": [
6637
+ "kind": "function",
6638
+ "name": "mergePartOption",
6639
+ "return": {
6640
+ "type": {
6641
+ "text": "Result[]"
6642
+ }
6643
+ },
6644
+ "parameters": [
6645
+ {
6646
+ "name": "data",
6647
+ "default": "[]",
6648
+ "type": {
6649
+ "text": "Result[]"
6650
+ }
6651
+ },
6652
+ {
6653
+ "name": "source",
6654
+ "default": "[]",
6655
+ "type": {
6656
+ "text": "Result[]"
6657
+ }
6658
+ }
6659
+ ]
6660
+ },
6557
6661
  {
6558
6662
  "kind": "function",
6559
- "name": "datetimeLocale",
6663
+ "name": "mergePartDigitOption",
6664
+ "return": {
6665
+ "type": {
6666
+ "text": "Result[][]"
6667
+ }
6668
+ },
6560
6669
  "parameters": [
6561
6670
  {
6562
- "name": "context",
6671
+ "name": "data",
6672
+ "default": "[]",
6563
6673
  "type": {
6564
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6674
+ "text": "Result[][]"
6565
6675
  }
6566
6676
  },
6567
6677
  {
6568
- "name": "{\n counter,\n setBy,\n }",
6678
+ "name": "source",
6679
+ "default": "[]",
6569
6680
  "type": {
6570
- "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 }"
6681
+ "text": "Result[][]"
6571
6682
  }
6572
6683
  }
6573
6684
  ]
6574
- }
6575
- ],
6576
- "exports": [
6577
- {
6578
- "kind": "js",
6579
- "name": "datetimeLocale",
6580
- "declaration": {
6581
- "name": "datetimeLocale",
6582
- "module": "stories/story-parts/datetime-locale.ts"
6583
- }
6584
- }
6585
- ]
6586
- },
6587
- {
6588
- "kind": "javascript-module",
6589
- "path": "stories/story-parts/datetime-precision.ts",
6590
- "declarations": [
6685
+ },
6591
6686
  {
6592
6687
  "kind": "function",
6593
- "name": "datetimePrecision",
6688
+ "name": "mergePartDigitCellOption",
6689
+ "return": {
6690
+ "type": {
6691
+ "text": "Result[][][]"
6692
+ }
6693
+ },
6594
6694
  "parameters": [
6595
6695
  {
6596
- "name": "context",
6696
+ "name": "data",
6697
+ "default": "[]",
6597
6698
  "type": {
6598
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6699
+ "text": "Result[][][]"
6599
6700
  }
6600
6701
  },
6601
6702
  {
6602
- "name": "{\n counter,\n setBy,\n }",
6703
+ "name": "source",
6704
+ "default": "[]",
6603
6705
  "type": {
6604
- "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 }"
6706
+ "text": "Result[][][]"
6605
6707
  }
6606
6708
  }
6607
6709
  ]
@@ -6610,32 +6712,87 @@
6610
6712
  "exports": [
6611
6713
  {
6612
6714
  "kind": "js",
6613
- "name": "datetimePrecision",
6715
+ "name": "extractGroupOption",
6614
6716
  "declaration": {
6615
- "name": "datetimePrecision",
6616
- "module": "stories/story-parts/datetime-precision.ts"
6717
+ "name": "extractGroupOption",
6718
+ "module": "src/utils/extract-group-option.ts"
6719
+ }
6720
+ },
6721
+ {
6722
+ "kind": "js",
6723
+ "name": "extractPartOption",
6724
+ "declaration": {
6725
+ "name": "extractPartOption",
6726
+ "module": "src/utils/extract-group-option.ts"
6727
+ }
6728
+ },
6729
+ {
6730
+ "kind": "js",
6731
+ "name": "extractPartDigitOption",
6732
+ "declaration": {
6733
+ "name": "extractPartDigitOption",
6734
+ "module": "src/utils/extract-group-option.ts"
6735
+ }
6736
+ },
6737
+ {
6738
+ "kind": "js",
6739
+ "name": "extractPartDigitCellOption",
6740
+ "declaration": {
6741
+ "name": "extractPartDigitCellOption",
6742
+ "module": "src/utils/extract-group-option.ts"
6743
+ }
6744
+ },
6745
+ {
6746
+ "kind": "js",
6747
+ "name": "mergeGroupOption",
6748
+ "declaration": {
6749
+ "name": "mergeGroupOption",
6750
+ "module": "src/utils/extract-group-option.ts"
6751
+ }
6752
+ },
6753
+ {
6754
+ "kind": "js",
6755
+ "name": "mergePartOption",
6756
+ "declaration": {
6757
+ "name": "mergePartOption",
6758
+ "module": "src/utils/extract-group-option.ts"
6759
+ }
6760
+ },
6761
+ {
6762
+ "kind": "js",
6763
+ "name": "mergePartDigitOption",
6764
+ "declaration": {
6765
+ "name": "mergePartDigitOption",
6766
+ "module": "src/utils/extract-group-option.ts"
6767
+ }
6768
+ },
6769
+ {
6770
+ "kind": "js",
6771
+ "name": "mergePartDigitCellOption",
6772
+ "declaration": {
6773
+ "name": "mergePartDigitCellOption",
6774
+ "module": "src/utils/extract-group-option.ts"
6617
6775
  }
6618
6776
  }
6619
6777
  ]
6620
6778
  },
6621
6779
  {
6622
6780
  "kind": "javascript-module",
6623
- "path": "stories/story-parts/edge-case.ts",
6781
+ "path": "src/utils/iso8601-duration.ts",
6624
6782
  "declarations": [
6625
6783
  {
6626
6784
  "kind": "function",
6627
- "name": "edgeCase",
6785
+ "name": "iso8601Duration",
6786
+ "return": {
6787
+ "type": {
6788
+ "text": "string"
6789
+ }
6790
+ },
6628
6791
  "parameters": [
6629
6792
  {
6630
- "name": "context",
6631
- "type": {
6632
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6633
- }
6634
- },
6635
- {
6636
- "name": "{\n counter,\n list,\n setBy,\n }",
6793
+ "name": "duration",
6637
6794
  "type": {
6638
- "text": "{\n counter: TC;\n list: [label: string, value: T, expectedValue: T][];\n setBy: (counter: TC, key: string, value: T) => void;\n }"
6795
+ "text": "{\n [key in DurationPartType]?: number;\n}"
6639
6796
  }
6640
6797
  }
6641
6798
  ]
@@ -6644,32 +6801,34 @@
6644
6801
  "exports": [
6645
6802
  {
6646
6803
  "kind": "js",
6647
- "name": "edgeCase",
6804
+ "name": "iso8601Duration",
6648
6805
  "declaration": {
6649
- "name": "edgeCase",
6650
- "module": "stories/story-parts/edge-case.ts"
6806
+ "name": "iso8601Duration",
6807
+ "module": "src/utils/iso8601-duration.ts"
6651
6808
  }
6652
6809
  }
6653
6810
  ]
6654
6811
  },
6655
6812
  {
6656
6813
  "kind": "javascript-module",
6657
- "path": "stories/story-parts/emoji.ts",
6814
+ "path": "src/utils/localized-date-time-fields.ts",
6658
6815
  "declarations": [
6816
+ {
6817
+ "kind": "variable",
6818
+ "name": "DateTimeFields",
6819
+ "type": {
6820
+ "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]"
6821
+ },
6822
+ "default": "[ \"era\", \"year\", \"quarter\", \"month\", \"weekOfYear\", \"weekday\", \"day\", \"dayPeriod\", \"hour\", \"minute\", \"second\", \"timeZoneName\", ]"
6823
+ },
6659
6824
  {
6660
6825
  "kind": "function",
6661
- "name": "emoji",
6826
+ "name": "getLocalizedDateTimeFields",
6662
6827
  "parameters": [
6663
6828
  {
6664
- "name": "context",
6665
- "type": {
6666
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6667
- }
6668
- },
6669
- {
6670
- "name": "{\n counter,\n setBy,\n list,\n }",
6829
+ "name": "locale",
6671
6830
  "type": {
6672
- "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 }"
6831
+ "text": "Intl.Locale"
6673
6832
  }
6674
6833
  }
6675
6834
  ]
@@ -6678,32 +6837,34 @@
6678
6837
  "exports": [
6679
6838
  {
6680
6839
  "kind": "js",
6681
- "name": "emoji",
6840
+ "name": "DateTimeFields",
6682
6841
  "declaration": {
6683
- "name": "emoji",
6684
- "module": "stories/story-parts/emoji.ts"
6842
+ "name": "DateTimeFields",
6843
+ "module": "src/utils/localized-date-time-fields.ts"
6844
+ }
6845
+ },
6846
+ {
6847
+ "kind": "js",
6848
+ "name": "getLocalizedDateTimeFields",
6849
+ "declaration": {
6850
+ "name": "getLocalizedDateTimeFields",
6851
+ "module": "src/utils/localized-date-time-fields.ts"
6685
6852
  }
6686
6853
  }
6687
6854
  ]
6688
6855
  },
6689
6856
  {
6690
6857
  "kind": "javascript-module",
6691
- "path": "stories/story-parts/locale-number.ts",
6858
+ "path": "src/utils/parse-json-string.ts",
6692
6859
  "declarations": [
6693
6860
  {
6694
6861
  "kind": "function",
6695
- "name": "localeNumber",
6862
+ "name": "parseJsonString",
6696
6863
  "parameters": [
6697
6864
  {
6698
- "name": "context",
6699
- "type": {
6700
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6701
- }
6702
- },
6703
- {
6704
- "name": "{\n counter,\n setBy,\n }",
6865
+ "name": "value",
6705
6866
  "type": {
6706
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6867
+ "text": "string"
6707
6868
  }
6708
6869
  }
6709
6870
  ]
@@ -6712,44 +6873,31 @@
6712
6873
  "exports": [
6713
6874
  {
6714
6875
  "kind": "js",
6715
- "name": "localeNumber",
6876
+ "name": "parseJsonString",
6716
6877
  "declaration": {
6717
- "name": "localeNumber",
6718
- "module": "stories/story-parts/locale-number.ts"
6878
+ "name": "parseJsonString",
6879
+ "module": "src/utils/parse-json-string.ts"
6719
6880
  }
6720
6881
  }
6721
6882
  ]
6722
6883
  },
6723
6884
  {
6724
6885
  "kind": "javascript-module",
6725
- "path": "stories/story-parts/slots.ts",
6886
+ "path": "src/utils/polyfill-keyframes.ts",
6726
6887
  "declarations": [
6727
6888
  {
6728
6889
  "kind": "function",
6729
- "name": "render",
6730
- "parameters": [
6731
- {
6732
- "name": "args",
6733
- "type": {
6734
- "text": "any"
6735
- }
6890
+ "name": "polyfillKeyframes",
6891
+ "return": {
6892
+ "type": {
6893
+ "text": "Keyframe[]"
6736
6894
  }
6737
- ]
6738
- },
6739
- {
6740
- "kind": "function",
6741
- "name": "slots",
6895
+ },
6742
6896
  "parameters": [
6743
6897
  {
6744
- "name": "context",
6745
- "type": {
6746
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6747
- }
6748
- },
6749
- {
6750
- "name": "{\n counter,\n }",
6898
+ "name": "keyframes",
6751
6899
  "type": {
6752
- "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 }"
6900
+ "text": "Keyframe[] | PropertyIndexedKeyframes"
6753
6901
  }
6754
6902
  }
6755
6903
  ]
@@ -6758,40 +6906,44 @@
6758
6906
  "exports": [
6759
6907
  {
6760
6908
  "kind": "js",
6761
- "name": "render",
6762
- "declaration": {
6763
- "name": "render",
6764
- "module": "stories/story-parts/slots.ts"
6765
- }
6766
- },
6767
- {
6768
- "kind": "js",
6769
- "name": "slots",
6909
+ "name": "polyfillKeyframes",
6770
6910
  "declaration": {
6771
- "name": "slots",
6772
- "module": "stories/story-parts/slots.ts"
6911
+ "name": "polyfillKeyframes",
6912
+ "module": "src/utils/polyfill-keyframes.ts"
6773
6913
  }
6774
6914
  }
6775
6915
  ]
6776
6916
  },
6777
6917
  {
6778
6918
  "kind": "javascript-module",
6779
- "path": "stories/story-parts/styles.ts",
6919
+ "path": "src/utils/preprocess-part-data.ts",
6780
6920
  "declarations": [
6781
6921
  {
6782
6922
  "kind": "function",
6783
- "name": "styles",
6923
+ "name": "preprocessPartData",
6784
6924
  "parameters": [
6785
6925
  {
6786
- "name": "context",
6926
+ "name": "newDirection",
6927
+ "type": {
6928
+ "text": "'up' | 'down'"
6929
+ }
6930
+ },
6931
+ {
6932
+ "name": "newData",
6787
6933
  "type": {
6788
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6934
+ "text": "PartData[]"
6789
6935
  }
6790
6936
  },
6791
6937
  {
6792
- "name": "{\n counter,\n setBy,\n }",
6938
+ "name": "oldDirection",
6793
6939
  "type": {
6794
- "text": "{\n counter: TC;\n setBy: (counter: TC, key: string, value: string) => void;\n }"
6940
+ "text": "'up' | 'down'"
6941
+ }
6942
+ },
6943
+ {
6944
+ "name": "oldData",
6945
+ "type": {
6946
+ "text": "PartData[]"
6795
6947
  }
6796
6948
  }
6797
6949
  ]
@@ -6800,32 +6952,44 @@
6800
6952
  "exports": [
6801
6953
  {
6802
6954
  "kind": "js",
6803
- "name": "styles",
6955
+ "name": "preprocessPartData",
6804
6956
  "declaration": {
6805
- "name": "styles",
6806
- "module": "stories/story-parts/styles.ts"
6957
+ "name": "preprocessPartData",
6958
+ "module": "src/utils/preprocess-part-data.ts"
6807
6959
  }
6808
6960
  }
6809
6961
  ]
6810
6962
  },
6811
6963
  {
6812
6964
  "kind": "javascript-module",
6813
- "path": "stories/story-parts/value-change.ts",
6965
+ "path": "src/utils/transition-digit.ts",
6814
6966
  "declarations": [
6815
6967
  {
6816
6968
  "kind": "function",
6817
- "name": "valueChange",
6969
+ "name": "transitionDigit",
6818
6970
  "parameters": [
6819
6971
  {
6820
- "name": "context",
6972
+ "name": "na",
6821
6973
  "type": {
6822
- "text": "Parameters<NoUndefinedField<StoryObj>['play']>[0]"
6974
+ "text": "NS"
6823
6975
  }
6824
6976
  },
6825
6977
  {
6826
- "name": "{\n counter,\n list = range(0, 5).map(v => v * 10) as T[],\n setBy,\n equal = _equal,\n }",
6978
+ "name": "from",
6827
6979
  "type": {
6828
- "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 }"
6980
+ "text": "V"
6981
+ }
6982
+ },
6983
+ {
6984
+ "name": "to",
6985
+ "type": {
6986
+ "text": "V"
6987
+ }
6988
+ },
6989
+ {
6990
+ "name": "count",
6991
+ "type": {
6992
+ "text": "number"
6829
6993
  }
6830
6994
  }
6831
6995
  ]
@@ -6834,194 +6998,30 @@
6834
6998
  "exports": [
6835
6999
  {
6836
7000
  "kind": "js",
6837
- "name": "valueChange",
6838
- "declaration": {
6839
- "name": "valueChange",
6840
- "module": "stories/story-parts/value-change.ts"
6841
- }
6842
- }
6843
- ]
6844
- },
6845
- {
6846
- "kind": "javascript-module",
6847
- "path": "stories/timered-counter/decimaljs.stories.ts",
6848
- "declarations": [
6849
- {
6850
- "kind": "variable",
6851
- "name": "meta",
6852
- "type": {
6853
- "text": "Meta"
6854
- },
6855
- "default": "{ title: 'TimeredCounter/with decimal.js', component: 'timered-counter', tags: ['autodocs', 'timered-counter'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); }, }"
6856
- },
6857
- {
6858
- "kind": "variable",
6859
- "name": "BigNumber",
6860
- "type": {
6861
- "text": "StoryObj<TimeredCounter>"
6862
- },
6863
- "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => bigNumber(context, { counter, setBy: setByAttr }), ); await step('Testing with property', async () => bigNumber(context, { counter, setBy: setByProp }), ); }, }"
6864
- }
6865
- ],
6866
- "exports": [
6867
- {
6868
- "kind": "js",
6869
- "name": "default",
6870
- "declaration": {
6871
- "name": "meta",
6872
- "module": "stories/timered-counter/decimaljs.stories.ts"
6873
- }
6874
- },
6875
- {
6876
- "kind": "js",
6877
- "name": "Basic",
6878
- "declaration": {
6879
- "name": "Basic",
6880
- "module": "./index.stories.js"
6881
- }
6882
- },
6883
- {
6884
- "kind": "js",
6885
- "name": "Events",
6886
- "declaration": {
6887
- "name": "Events",
6888
- "module": "./index.stories.js"
6889
- }
6890
- },
6891
- {
6892
- "kind": "js",
6893
- "name": "AnimationOptions",
6894
- "declaration": {
6895
- "name": "AnimationOptions",
6896
- "module": "./index.stories.js"
6897
- }
6898
- },
6899
- {
6900
- "kind": "js",
6901
- "name": "Slots",
6902
- "declaration": {
6903
- "name": "Slots",
6904
- "module": "./index.stories.js"
6905
- }
6906
- },
6907
- {
6908
- "kind": "js",
6909
- "name": "Styles",
6910
- "declaration": {
6911
- "name": "Styles",
6912
- "module": "./index.stories.js"
6913
- }
6914
- },
6915
- {
6916
- "kind": "js",
6917
- "name": "BigNumber",
7001
+ "name": "transitionDigit",
6918
7002
  "declaration": {
6919
- "name": "BigNumber",
6920
- "module": "stories/timered-counter/decimaljs.stories.ts"
7003
+ "name": "transitionDigit",
7004
+ "module": "src/utils/transition-digit.ts"
6921
7005
  }
6922
7006
  }
6923
7007
  ]
6924
7008
  },
6925
7009
  {
6926
7010
  "kind": "javascript-module",
6927
- "path": "stories/timered-counter/index.stories.ts",
7011
+ "path": "src/utils/uuid.ts",
6928
7012
  "declarations": [
6929
7013
  {
6930
- "kind": "variable",
6931
- "name": "meta",
6932
- "type": {
6933
- "text": "Meta"
6934
- },
6935
- "default": "{ title: 'TimeredCounter', component: 'timered-counter', tags: ['autodocs', 'timered-counter'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('number'); }, globals: { setByAttr, setByProp, }, }"
6936
- },
6937
- {
6938
- "kind": "variable",
6939
- "name": "Basic",
6940
- "type": {
6941
- "text": "StoryObj<TimeredCounter>"
6942
- },
6943
- "default": "{ args: { className: 'test-target', // @ts-ignore value: '0', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await valueChange(context, { counter, setBy: setByAttr, }); await step('Edge case', async () => edgeCase(context, { counter, list: [ ['Setting an empty string', '', '0'], ['Setting a non-number', 'a', '0'], ['Setting a decimal number', '1.1', '1.1'], ['Setting a negative number', '-1', '-1'], ['Setting Infinity', 'Infinity', '0'], ['Setting NaN', 'NaN', '0'], ['Setting null', 'null', '0'], ['Setting undefined', 'undefined', '0'], ['Setting true', 'true', '0'], ['Setting false', 'false', '0'], ['Setting an object', '{}', '0'], ['Setting an array', '[]', '0'], ['Setting a function', '() => {}', '0'], ['Setting a Symbol', 'Symbol()', '0'], ['Setting a BigInt', 'BigInt(1)', '0'], ], setBy: setByAttr, }), ); }); await step('Testing with property', async () => { await valueChange(context, { counter, setBy: setByProp }); await step('Edge case', async () => edgeCase(context, { counter, list: [ ['Setting an empty string', '', 0], ['Setting a non-number', 'a', 0], ['Setting a decimal number', '1.1', 1.1], ['Setting a negative number', '-1', -1], ['Setting Infinity', 'Infinity', 0], ['Setting NaN', 'NaN', 0], ['Setting null', 'null', 0], ['Setting undefined', 'undefined', 0], ['Setting true', 'true', 0], ['Setting false', 'false', 0], ['Setting an object', '{}', 0], ['Setting an array', '[]', 0], ['Setting a function', '() => {}', 0], ['Setting a Symbol', 'Symbol()', 0], ['Setting a BigInt', 'BigInt(1)', 0], ], setBy: setByProp, }), ); }); }, }"
6944
- },
6945
- {
6946
- "kind": "variable",
6947
- "name": "Events",
6948
- "type": {
6949
- "text": "StoryObj<TimeredCounter>"
6950
- },
6951
- "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await step('Animation events', async () => animationEvents(context, { counter, setBy: setByAttr, }), ); }); await step('Testing with property', async () => { await step('Animation events', async () => animationEvents(context, { counter, setBy: setByProp, }), ); }); }, }"
6952
- },
6953
- {
6954
- "kind": "variable",
6955
- "name": "AnimationOptions",
6956
- "type": {
6957
- "text": "StoryObj<TimeredCounter>"
6958
- },
6959
- "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await step('Animation options', async () => animationOptions(context, { counter, setBy: setByAttr, }), ); }); // await step('Testing with property', async () => { // await step('Animation options', async () => // animationOptions(context, { // counter, // list, // setBy: setByProp, // }), // ); // }); }, }"
6960
- },
6961
- {
6962
- "kind": "variable",
6963
- "name": "Styles",
6964
- "type": {
6965
- "text": "StoryObj<TimeredCounter>"
6966
- },
6967
- "default": "{ args: { className: 'test-target', animationOptions: { duration: 100, }, }, async play(context) { const { canvasElement, step } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await step('Testing with attribute', async () => { await step('Styles', async () => styles(context, { counter, setBy: setByAttr, }), ); }); await step('Testing with property', async () => { await step('Styles', async () => styles(context, { counter, setBy: setByProp, }), ); }); }, }"
6968
- },
6969
- {
6970
- "kind": "variable",
6971
- "name": "Slots",
6972
- "type": {
6973
- "text": "StoryObj<TimeredCounter>"
6974
- },
6975
- "default": "{ args: { className: 'test-target', value: 0, }, render: slotsRender, async play(context) { const { canvasElement } = context; const counter = canvasElement.querySelector( '.test-target', ) as TimeredCounter; await slots(context, { counter }); }, }"
7014
+ "kind": "function",
7015
+ "name": "uuid"
6976
7016
  }
6977
7017
  ],
6978
7018
  "exports": [
6979
7019
  {
6980
7020
  "kind": "js",
6981
- "name": "default",
6982
- "declaration": {
6983
- "name": "meta",
6984
- "module": "stories/timered-counter/index.stories.ts"
6985
- }
6986
- },
6987
- {
6988
- "kind": "js",
6989
- "name": "Basic",
6990
- "declaration": {
6991
- "name": "Basic",
6992
- "module": "stories/timered-counter/index.stories.ts"
6993
- }
6994
- },
6995
- {
6996
- "kind": "js",
6997
- "name": "Events",
6998
- "declaration": {
6999
- "name": "Events",
7000
- "module": "stories/timered-counter/index.stories.ts"
7001
- }
7002
- },
7003
- {
7004
- "kind": "js",
7005
- "name": "AnimationOptions",
7006
- "declaration": {
7007
- "name": "AnimationOptions",
7008
- "module": "stories/timered-counter/index.stories.ts"
7009
- }
7010
- },
7011
- {
7012
- "kind": "js",
7013
- "name": "Styles",
7014
- "declaration": {
7015
- "name": "Styles",
7016
- "module": "stories/timered-counter/index.stories.ts"
7017
- }
7018
- },
7019
- {
7020
- "kind": "js",
7021
- "name": "Slots",
7021
+ "name": "uuid",
7022
7022
  "declaration": {
7023
- "name": "Slots",
7024
- "module": "stories/timered-counter/index.stories.ts"
7023
+ "name": "uuid",
7024
+ "module": "src/utils/uuid.ts"
7025
7025
  }
7026
7026
  }
7027
7027
  ]
@@ -7872,18 +7872,6 @@
7872
7872
  "declarations": [],
7873
7873
  "exports": []
7874
7874
  },
7875
- {
7876
- "kind": "javascript-module",
7877
- "path": "storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js",
7878
- "declarations": [],
7879
- "exports": []
7880
- },
7881
- {
7882
- "kind": "javascript-module",
7883
- "path": "storybook-static/sb-addons/essentials-actions-2/manager-bundle.js",
7884
- "declarations": [],
7885
- "exports": []
7886
- },
7887
7875
  {
7888
7876
  "kind": "javascript-module",
7889
7877
  "path": "src/transitions/roller/index.ts",
@@ -8452,7 +8440,13 @@
8452
8440
  },
8453
8441
  {
8454
8442
  "kind": "javascript-module",
8455
- "path": "storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js",
8443
+ "path": "storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js",
8444
+ "declarations": [],
8445
+ "exports": []
8446
+ },
8447
+ {
8448
+ "kind": "javascript-module",
8449
+ "path": "storybook-static/sb-addons/essentials-actions-2/manager-bundle.js",
8456
8450
  "declarations": [],
8457
8451
  "exports": []
8458
8452
  },
@@ -8464,13 +8458,13 @@
8464
8458
  },
8465
8459
  {
8466
8460
  "kind": "javascript-module",
8467
- "path": "storybook-static/sb-addons/essentials-docs-3/manager-bundle.js",
8461
+ "path": "storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js",
8468
8462
  "declarations": [],
8469
8463
  "exports": []
8470
8464
  },
8471
8465
  {
8472
8466
  "kind": "javascript-module",
8473
- "path": "storybook-static/sb-addons/essentials-measure-7/manager-bundle.js",
8467
+ "path": "storybook-static/sb-addons/essentials-docs-3/manager-bundle.js",
8474
8468
  "declarations": [],
8475
8469
  "exports": []
8476
8470
  },
@@ -8486,6 +8480,12 @@
8486
8480
  "declarations": [],
8487
8481
  "exports": []
8488
8482
  },
8483
+ {
8484
+ "kind": "javascript-module",
8485
+ "path": "storybook-static/sb-addons/essentials-measure-7/manager-bundle.js",
8486
+ "declarations": [],
8487
+ "exports": []
8488
+ },
8489
8489
  {
8490
8490
  "kind": "javascript-module",
8491
8491
  "path": "storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js",