@daikin-oss/design-system-web-components 2.0.1-next.1 → 2.1.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/custom-elements.json +229 -42
  3. package/dist/cjs/base/dds-element.cjs +1 -1
  4. package/dist/cjs/components/carousel/daikin-carousel.cjs +298 -57
  5. package/dist/cjs/components/carousel/daikin-carousel.d.cts +50 -7
  6. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +18 -2
  7. package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +1 -5
  8. package/dist/cjs/components/chip/daikin-chip.cjs +24 -6
  9. package/dist/cjs/components/chip/daikin-chip.d.cts +2 -0
  10. package/dist/cjs/components/combobox/daikin-combobox.cjs +14 -4
  11. package/dist/cjs/components/combobox/daikin-combobox.d.cts +8 -0
  12. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +42 -7
  13. package/dist/cjs/components/tag/daikin-tag.cjs +3 -1
  14. package/dist/cjs/components/text-field/daikin-text-field.cjs +12 -12
  15. package/dist/cjs/controllers/click-outside.cjs +5 -7
  16. package/dist/cjs/controllers/click-outside.d.cts +3 -3
  17. package/dist/cjs/tailwind.css.cjs +1 -1
  18. package/dist/cjs-dev/base/dds-element.cjs +1 -1
  19. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +300 -59
  20. package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +50 -7
  21. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +18 -2
  22. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +1 -5
  23. package/dist/cjs-dev/components/chip/daikin-chip.cjs +24 -6
  24. package/dist/cjs-dev/components/chip/daikin-chip.d.cts +2 -0
  25. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +14 -4
  26. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +8 -0
  27. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +42 -7
  28. package/dist/cjs-dev/components/tag/daikin-tag.cjs +3 -1
  29. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +12 -12
  30. package/dist/cjs-dev/controllers/click-outside.cjs +5 -7
  31. package/dist/cjs-dev/controllers/click-outside.d.cts +3 -3
  32. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  33. package/dist/es/base/dds-element.js +1 -1
  34. package/dist/es/components/carousel/daikin-carousel.d.ts +50 -7
  35. package/dist/es/components/carousel/daikin-carousel.js +297 -58
  36. package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +1 -5
  37. package/dist/es/components/carousel-item/daikin-carousel-item.js +18 -2
  38. package/dist/es/components/chip/daikin-chip.d.ts +2 -0
  39. package/dist/es/components/chip/daikin-chip.js +25 -7
  40. package/dist/es/components/combobox/daikin-combobox.d.ts +8 -0
  41. package/dist/es/components/combobox/daikin-combobox.js +14 -4
  42. package/dist/es/components/icon-button/daikin-icon-button.js +42 -7
  43. package/dist/es/components/tag/daikin-tag.js +3 -1
  44. package/dist/es/components/text-field/daikin-text-field.js +12 -12
  45. package/dist/es/controllers/click-outside.d.ts +3 -3
  46. package/dist/es/controllers/click-outside.js +5 -7
  47. package/dist/es/tailwind.css.js +1 -1
  48. package/dist/es-dev/base/dds-element.js +1 -1
  49. package/dist/es-dev/components/carousel/daikin-carousel.d.ts +50 -7
  50. package/dist/es-dev/components/carousel/daikin-carousel.js +299 -60
  51. package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +1 -5
  52. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +18 -2
  53. package/dist/es-dev/components/chip/daikin-chip.d.ts +2 -0
  54. package/dist/es-dev/components/chip/daikin-chip.js +25 -7
  55. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +8 -0
  56. package/dist/es-dev/components/combobox/daikin-combobox.js +14 -4
  57. package/dist/es-dev/components/icon-button/daikin-icon-button.js +42 -7
  58. package/dist/es-dev/components/tag/daikin-tag.js +3 -1
  59. package/dist/es-dev/components/text-field/daikin-text-field.js +12 -12
  60. package/dist/es-dev/controllers/click-outside.d.ts +3 -3
  61. package/dist/es-dev/controllers/click-outside.js +5 -7
  62. package/dist/es-dev/tailwind.css.js +1 -1
  63. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @daikin-oss/design-system-web-components
2
2
 
3
+ ## 2.1.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - [#521](https://github.com/dsv-rp/DDS/pull/521) [`f325ee5`](https://github.com/dsv-rp/DDS/commit/f325ee548b94fa1422c6c56e6e8d0367d949fe16) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Carousel: Add swipe gestures and loop support to carousel. (DDS-3044 DDS-3358)
8
+
9
+ ### Patch Changes
10
+
11
+ - [#528](https://github.com/dsv-rp/DDS/pull/528) [`25d444f`](https://github.com/dsv-rp/DDS/commit/25d444ff8b3a161503cf5e827566321414c2f08d) Thanks [@dk-wei](https://github.com/dk-wei)! - Modal Footer: Fix modal footer doc page.
12
+
13
+ - [#531](https://github.com/dsv-rp/DDS/pull/531) [`0118f75`](https://github.com/dsv-rp/DDS/commit/0118f75abe5409189651098defd5deb93513c980) Thanks [@dk-wei](https://github.com/dk-wei)! - Combobox: Fix combobox click event issue.(DDS-3258)
14
+
15
+ - [#530](https://github.com/dsv-rp/DDS/pull/530) [`4cbe49f`](https://github.com/dsv-rp/DDS/commit/4cbe49f5b9245b9e98c1f9281065f031ea199d66) Thanks [@dk-wei](https://github.com/dk-wei)! - Chip: Add min width and min height to fix rendering issue. (DDS-3334)
16
+ Tag: Add min width and min height to fix rendering issue. (DDS-3334)
17
+
18
+ - [#522](https://github.com/dsv-rp/DDS/pull/522) [`1d186a6`](https://github.com/dsv-rp/DDS/commit/1d186a60b6a34f661470b14c65b1637edbf62e74) Thanks [@dk-wei](https://github.com/dk-wei)! - Date Range Picker and Date Time Range Picker: Fix viewport and breakpoint issue. (DDS-3378)
19
+
20
+ - [#532](https://github.com/dsv-rp/DDS/pull/532) [`4937fcc`](https://github.com/dsv-rp/DDS/commit/4937fcc26703a406ff0c0cab3d23ed528bb3f468) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Text Field: Fixed an issue where the 'show password' button on the right side of the password field was hidden when set to readonly. (DDS-3336)
21
+
22
+ - [#534](https://github.com/dsv-rp/DDS/pull/534) [`1099bfb`](https://github.com/dsv-rp/DDS/commit/1099bfbfedecb31fcfdf97e48a50111934d15e32) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Dropdown: Fixed an issue where focus remained on the dropdown after clicking outside of it.
23
+
3
24
  ## 2.0.1-next.1
4
25
 
5
26
  ### Patch Changes
@@ -1171,30 +1171,6 @@
1171
1171
  }
1172
1172
  ]
1173
1173
  },
1174
- {
1175
- "kind": "javascript-module",
1176
- "path": "dist/es/constants/events.js",
1177
- "declarations": [
1178
- {
1179
- "kind": "variable",
1180
- "name": "EVENT_CLOSE",
1181
- "type": {
1182
- "text": "string"
1183
- },
1184
- "default": "\"close\""
1185
- }
1186
- ],
1187
- "exports": [
1188
- {
1189
- "kind": "js",
1190
- "name": "EVENT_CLOSE",
1191
- "declaration": {
1192
- "name": "EVENT_CLOSE",
1193
- "module": "src/constants/events.ts"
1194
- }
1195
- }
1196
- ]
1197
- },
1198
1174
  {
1199
1175
  "kind": "javascript-module",
1200
1176
  "path": "dist/es/components/index.js",
@@ -1762,6 +1738,30 @@
1762
1738
  }
1763
1739
  ]
1764
1740
  },
1741
+ {
1742
+ "kind": "javascript-module",
1743
+ "path": "dist/es/constants/events.js",
1744
+ "declarations": [
1745
+ {
1746
+ "kind": "variable",
1747
+ "name": "EVENT_CLOSE",
1748
+ "type": {
1749
+ "text": "string"
1750
+ },
1751
+ "default": "\"close\""
1752
+ }
1753
+ ],
1754
+ "exports": [
1755
+ {
1756
+ "kind": "js",
1757
+ "name": "EVENT_CLOSE",
1758
+ "declaration": {
1759
+ "name": "EVENT_CLOSE",
1760
+ "module": "src/constants/events.ts"
1761
+ }
1762
+ }
1763
+ ]
1764
+ },
1765
1765
  {
1766
1766
  "kind": "javascript-module",
1767
1767
  "path": "dist/es/controllers/block-scroll.js",
@@ -6276,13 +6276,33 @@
6276
6276
  "declarations": [
6277
6277
  {
6278
6278
  "kind": "class",
6279
- "description": "A carousel is a component that displays multiple pieces of information by sliding left and right within a fixed height area.\n\nThe carousel component can be operated in several ways (Control, Indicator, and Swipe), but it is not possible to hide all of these, as this would prevent the user from being able to operate the carousel component.\n\nHierarchy:\n- `daikin-carousel` > `daikin-carousel-item`",
6279
+ "description": "A carousel is a component that displays multiple pieces of information by sliding left and right within a fixed height area.\n\nPowered by embla-carousel for smooth, native-feeling interactions and infinite loops.\n\nHierarchy:\n- `daikin-carousel` > `daikin-carousel-item`",
6280
6280
  "name": "DaikinCarousel",
6281
6281
  "cssProperties": [
6282
6282
  {
6283
- "description": "Specify the interval for the slide animation.",
6283
+ "description": "Legacy transition duration in milliseconds. **Warning:** Mapped to Embla's duration option using 600ms = 25. This property may be removed in a future release; gradually migrate to the `duration` property instead.",
6284
6284
  "name": "--ddc-transition-duration",
6285
6285
  "default": "600ms"
6286
+ },
6287
+ {
6288
+ "description": "The aspect ratio of every carousel item's media container.",
6289
+ "name": "--ddc-item-aspect-ratio",
6290
+ "default": "16/9"
6291
+ },
6292
+ {
6293
+ "description": "How image/video content fits inside every carousel item's media container.",
6294
+ "name": "--ddc-item-object-fit",
6295
+ "default": "contain"
6296
+ },
6297
+ {
6298
+ "description": "The default background color for the carousel items.",
6299
+ "name": "--ddc-item-background-color",
6300
+ "default": "var(--dds-color-common-surface-secondary)"
6301
+ },
6302
+ {
6303
+ "description": "The gap between carousel items.",
6304
+ "name": "--ddc-item-gap",
6305
+ "default": "var(--dds-space-100)"
6286
6306
  }
6287
6307
  ],
6288
6308
  "slots": [
@@ -6299,10 +6319,42 @@
6299
6319
  "text": "number"
6300
6320
  },
6301
6321
  "default": "0",
6302
- "description": "The index number of the content currently being displayed.\nWhen controlling this property externally, listen to the `select` event and read the updated `currentIndex` from the component to keep your state in sync.",
6322
+ "description": "The index number of the content currently being displayed.",
6303
6323
  "attribute": "current-index",
6304
6324
  "reflects": true
6305
6325
  },
6326
+ {
6327
+ "kind": "field",
6328
+ "name": "loop",
6329
+ "type": {
6330
+ "text": "boolean"
6331
+ },
6332
+ "default": "false",
6333
+ "description": "Whether the carousel should loop back to the first item when the last item is reached.",
6334
+ "attribute": "loop"
6335
+ },
6336
+ {
6337
+ "kind": "field",
6338
+ "name": "arrows",
6339
+ "type": {
6340
+ "text": "\"outside\" | \"inside\""
6341
+ },
6342
+ "description": "The position of the navigation arrows. Can be either \"outside\" or \"inside\".\n- \"outside\": Arrows are placed outside the carousel viewport.\n- \"inside\": Arrows are placed inside the carousel viewport.\nThe inside option is useful for carousels with a smaller width, where the arrows can be placed over the content without taking up additional space.\nWhen the width of viewport is smaller than mobile breakpoint (768px), the arrows will always be placed inside regardless of this property.",
6343
+ "default": "\"outside\"",
6344
+ "attribute": "arrows",
6345
+ "reflects": true
6346
+ },
6347
+ {
6348
+ "kind": "field",
6349
+ "name": "duration",
6350
+ "type": {
6351
+ "text": "number"
6352
+ },
6353
+ "description": "The higher this value, the slower the image scrolling animation. However, this value does not affect the sliding speed when the user is dragging the image, as that depends on the user's dragging speed.",
6354
+ "default": "25",
6355
+ "attribute": "duration",
6356
+ "reflects": true
6357
+ },
6306
6358
  {
6307
6359
  "kind": "field",
6308
6360
  "name": "_items",
@@ -6319,16 +6371,23 @@
6319
6371
  "text": "number"
6320
6372
  },
6321
6373
  "privacy": "private",
6322
- "default": "0"
6374
+ "default": "0",
6375
+ "description": "Keeps track of the total number of slotted carousel items."
6323
6376
  },
6324
6377
  {
6325
6378
  "kind": "field",
6326
- "name": "_prevButton",
6379
+ "name": "_emblaApi",
6380
+ "type": {
6381
+ "text": "EmblaCarouselType | undefined | undefined"
6382
+ },
6327
6383
  "privacy": "private"
6328
6384
  },
6329
6385
  {
6330
6386
  "kind": "field",
6331
- "name": "_nextButton",
6387
+ "name": "_mediaResizeObserver",
6388
+ "type": {
6389
+ "text": "ResizeObserver | undefined"
6390
+ },
6332
6391
  "privacy": "private"
6333
6392
  },
6334
6393
  {
@@ -6336,6 +6395,43 @@
6336
6395
  "name": "_indicatorButtonsContainer",
6337
6396
  "privacy": "private"
6338
6397
  },
6398
+ {
6399
+ "kind": "field",
6400
+ "name": "_viewport",
6401
+ "privacy": "private"
6402
+ },
6403
+ {
6404
+ "kind": "field",
6405
+ "name": "_track",
6406
+ "privacy": "private"
6407
+ },
6408
+ {
6409
+ "kind": "field",
6410
+ "name": "_pendingOperation",
6411
+ "type": {
6412
+ "text": "\"prev\" | \"next\" | \"indicator\" | undefined"
6413
+ },
6414
+ "privacy": "private"
6415
+ },
6416
+ {
6417
+ "kind": "field",
6418
+ "name": "_isDragging",
6419
+ "type": {
6420
+ "text": "boolean"
6421
+ },
6422
+ "privacy": "private",
6423
+ "default": "false"
6424
+ },
6425
+ {
6426
+ "kind": "method",
6427
+ "name": "_getEmblaDuration",
6428
+ "privacy": "private",
6429
+ "return": {
6430
+ "type": {
6431
+ "text": "number"
6432
+ }
6433
+ }
6434
+ },
6339
6435
  {
6340
6436
  "kind": "method",
6341
6437
  "name": "_emitSelect",
@@ -6344,7 +6440,7 @@
6344
6440
  {
6345
6441
  "name": "operation",
6346
6442
  "type": {
6347
- "text": "\"prev\" | \"next\" | \"indicator\""
6443
+ "text": "\"prev\" | \"next\" | \"indicator\" | \"swipe\""
6348
6444
  }
6349
6445
  },
6350
6446
  {
@@ -6355,6 +6451,28 @@
6355
6451
  }
6356
6452
  ]
6357
6453
  },
6454
+ {
6455
+ "kind": "method",
6456
+ "name": "_initEmbla",
6457
+ "privacy": "private",
6458
+ "description": "Initializes or re-initializes the Embla instance when properties or slots change."
6459
+ },
6460
+ {
6461
+ "kind": "field",
6462
+ "name": "_onEmblaPointerDown",
6463
+ "privacy": "private"
6464
+ },
6465
+ {
6466
+ "kind": "field",
6467
+ "name": "_onEmblaSettle",
6468
+ "privacy": "private"
6469
+ },
6470
+ {
6471
+ "kind": "field",
6472
+ "name": "_onEmblaSelect",
6473
+ "privacy": "private",
6474
+ "description": "Embla event listener that synchronizes internal state when the user swipes or slides."
6475
+ },
6358
6476
  {
6359
6477
  "kind": "method",
6360
6478
  "name": "_handleClickIndicator",
@@ -6386,24 +6504,24 @@
6386
6504
  }
6387
6505
  ]
6388
6506
  },
6389
- {
6390
- "kind": "method",
6391
- "name": "_handleSlotchange",
6392
- "privacy": "private"
6393
- },
6394
6507
  {
6395
6508
  "kind": "method",
6396
6509
  "name": "_moveBy",
6397
6510
  "privacy": "private",
6398
6511
  "parameters": [
6399
6512
  {
6400
- "name": "moveOffset",
6513
+ "name": "offset",
6401
6514
  "type": {
6402
6515
  "text": "1 | -1"
6403
6516
  }
6404
6517
  }
6405
6518
  ]
6406
6519
  },
6520
+ {
6521
+ "kind": "method",
6522
+ "name": "_handleSlotchange",
6523
+ "privacy": "private"
6524
+ },
6407
6525
  {
6408
6526
  "kind": "method",
6409
6527
  "name": "_updateItemActive",
@@ -6496,7 +6614,7 @@
6496
6614
  "type": {
6497
6615
  "text": "CustomEvent"
6498
6616
  },
6499
- "description": "If an item in the carousel is selected in some way, the method used to select it, the index number of the item displayed before it, and the index number of the item currently displayed are passed."
6617
+ "description": "Fired when the carousel index changes. `event.detail` contains the triggering `operation` (`\"prev\"`, `\"next\"`, `\"indicator\"`, or `\"swipe\"`) and `beforeCurrentIndex`; read `currentIndex` for the selected index."
6500
6618
  }
6501
6619
  ],
6502
6620
  "attributes": [
@@ -6506,8 +6624,35 @@
6506
6624
  "text": "number"
6507
6625
  },
6508
6626
  "default": "0",
6509
- "description": "The index number of the content currently being displayed.\nWhen controlling this property externally, listen to the `select` event and read the updated `currentIndex` from the component to keep your state in sync.",
6627
+ "description": "The index number of the content currently being displayed.",
6510
6628
  "fieldName": "currentIndex"
6629
+ },
6630
+ {
6631
+ "name": "loop",
6632
+ "type": {
6633
+ "text": "boolean"
6634
+ },
6635
+ "default": "false",
6636
+ "description": "Whether the carousel should loop back to the first item when the last item is reached.",
6637
+ "fieldName": "loop"
6638
+ },
6639
+ {
6640
+ "name": "arrows",
6641
+ "type": {
6642
+ "text": "\"outside\" | \"inside\""
6643
+ },
6644
+ "description": "The position of the navigation arrows. Can be either \"outside\" or \"inside\".\n- \"outside\": Arrows are placed outside the carousel viewport.\n- \"inside\": Arrows are placed inside the carousel viewport.\nThe inside option is useful for carousels with a smaller width, where the arrows can be placed over the content without taking up additional space.\nWhen the width of viewport is smaller than mobile breakpoint (768px), the arrows will always be placed inside regardless of this property.",
6645
+ "default": "\"outside\"",
6646
+ "fieldName": "arrows"
6647
+ },
6648
+ {
6649
+ "name": "duration",
6650
+ "type": {
6651
+ "text": "number"
6652
+ },
6653
+ "description": "The higher this value, the slower the image scrolling animation. However, this value does not affect the sliding speed when the user is dragging the image, as that depends on the user's dragging speed.",
6654
+ "default": "25",
6655
+ "fieldName": "duration"
6511
6656
  }
6512
6657
  ],
6513
6658
  "superclass": {
@@ -6582,8 +6727,7 @@
6582
6727
  "text": "string"
6583
6728
  },
6584
6729
  "default": "\"\"",
6585
- "description": "_Internal use._\nItem's aria label.\nControlled by `daikin-carousel`.",
6586
- "privacy": "private"
6730
+ "description": "The Aria label for the carousel item."
6587
6731
  },
6588
6732
  {
6589
6733
  "kind": "field",
@@ -7705,6 +7849,33 @@
7705
7849
  },
7706
7850
  "privacy": "private"
7707
7851
  },
7852
+ {
7853
+ "kind": "field",
7854
+ "name": "_hasLeftIcon",
7855
+ "type": {
7856
+ "text": "boolean"
7857
+ },
7858
+ "privacy": "private",
7859
+ "default": "false"
7860
+ },
7861
+ {
7862
+ "kind": "method",
7863
+ "name": "_handleLeftIconSlotChange",
7864
+ "privacy": "private",
7865
+ "return": {
7866
+ "type": {
7867
+ "text": "void"
7868
+ }
7869
+ },
7870
+ "parameters": [
7871
+ {
7872
+ "name": "event",
7873
+ "type": {
7874
+ "text": "Event"
7875
+ }
7876
+ }
7877
+ ]
7878
+ },
7708
7879
  {
7709
7880
  "kind": "method",
7710
7881
  "name": "_handleRemoveClick",
@@ -8224,6 +8395,16 @@
8224
8395
  "name": "_closePopup",
8225
8396
  "privacy": "private"
8226
8397
  },
8398
+ {
8399
+ "kind": "field",
8400
+ "name": "_shouldRestoreFocusOnClose",
8401
+ "type": {
8402
+ "text": "boolean"
8403
+ },
8404
+ "privacy": "private",
8405
+ "default": "false",
8406
+ "description": "Whether focus should be restored to the input the next time the popup closes.\nThis is only `true` right before selecting an option, where hiding the popover blurs the\nclicked option button to `document.body`. It must stay `false` for closes caused by the\nfocus/click moving to something else (outside click, focusout), otherwise we would steal\nfocus back from whatever the user actually clicked."
8407
+ },
8227
8408
  {
8228
8409
  "kind": "method",
8229
8410
  "name": "_handleLeftIconSlotChange",
@@ -8268,7 +8449,13 @@
8268
8449
  "type": {
8269
8450
  "text": "void"
8270
8451
  }
8271
- }
8452
+ },
8453
+ "parameters": [
8454
+ {
8455
+ "name": "shouldFocusInput",
8456
+ "default": "false"
8457
+ }
8458
+ ]
8272
8459
  },
8273
8460
  {
8274
8461
  "kind": "method",
@@ -42,7 +42,7 @@ function ensureGlobalKeyIndex(name) {
42
42
  */
43
43
  var DDSElement = class extends lit.LitElement {
44
44
  static {
45
- this.version = "2.0.1-next.1";
45
+ this.version = "2.1.0-next.2";
46
46
  }
47
47
  /**
48
48
  * Override of LitElement's getPropertyDescriptor to add support for fallback values