@citizenplane/pimp 8.23.1 → 8.25.1

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 (75) hide show
  1. package/dist/{IconAccompaniedMinorEach-BELsBJAA.js → IconAccompaniedMinorEach-8lBl9wqk.js} +1 -1
  2. package/dist/{IconAccompaniedMinorNone-B55gmNIs.js → IconAccompaniedMinorNone-Btfy_0Jq.js} +1 -1
  3. package/dist/{IconAccompaniedMinorOne-CuZH-Uoj.js → IconAccompaniedMinorOne-BmRhTNVm.js} +1 -1
  4. package/dist/{IconAddReceipt-chTEnPzA.js → IconAddReceipt-C0HHYqDP.js} +1 -1
  5. package/dist/{IconAirportTerminal-CLcg4rVw.js → IconAirportTerminal-DnNiru5n.js} +1 -1
  6. package/dist/{IconArrival-DrBGRnD6.js → IconArrival-C9IDQcmi.js} +1 -1
  7. package/dist/{IconBroadcast-a6rKq8z4.js → IconBroadcast-CziwV-Z8.js} +1 -1
  8. package/dist/{IconCabinBag-DSa8pX5b.js → IconCabinBag-CcYYMmrl.js} +1 -1
  9. package/dist/{IconCheckedBaggage-2YqzTXY7.js → IconCheckedBaggage-zuBZUoym.js} +1 -1
  10. package/dist/{IconCheckedBaggage20-CKhkn1aT.js → IconCheckedBaggage20-C6dHAD3j.js} +1 -1
  11. package/dist/{IconCheckedBaggage30-BpUlFJHv.js → IconCheckedBaggage30-D77SJ0DR.js} +1 -1
  12. package/dist/{IconChild-DeB0UUM8.js → IconChild-CUmMsi_F.js} +1 -1
  13. package/dist/{IconContact-DZp6vSjU.js → IconContact-C2ogfRY6.js} +1 -1
  14. package/dist/{IconDeparture-CQOGey2m.js → IconDeparture-B1KOq49K.js} +1 -1
  15. package/dist/{IconDistribution-uXQmHNE5.js → IconDistribution-E5wp6XjH.js} +1 -1
  16. package/dist/{IconDistributionClosed-CNL9Ca1c.js → IconDistributionClosed-CM0iTher.js} +1 -1
  17. package/dist/{IconDistributionExclusivePair-gD30YmGV.js → IconDistributionExclusivePair-BR_aO--y.js} +1 -1
  18. package/dist/{IconDistributionSided-BoerBpdU.js → IconDistributionSided-DUujczp7.js} +1 -1
  19. package/dist/{IconDistributionSupplySided-C9M8k-ag.js → IconDistributionSupplySided-CeTT5Vvf.js} +1 -1
  20. package/dist/{IconDynamicContent-DDXQuCXZ.js → IconDynamicContent-2WOChDhd.js} +1 -1
  21. package/dist/{IconFares-D2J35zKW.js → IconFares-DXiZH8od.js} +1 -1
  22. package/dist/{IconFaresOutlined-DvwGZ54W.js → IconFaresOutlined-CgBDCxUx.js} +1 -1
  23. package/dist/{IconFemale-8Feo-ZbL.js → IconFemale-bgOlcyIc.js} +1 -1
  24. package/dist/{IconFindConversation-q68nIAf4.js → IconFindConversation-BoiSxUXw.js} +1 -1
  25. package/dist/{IconFire-C_zc55kT.js → IconFire-C_HBf77y.js} +1 -1
  26. package/dist/{IconFlight-CYwhmf5A.js → IconFlight-DlNoqKaN.js} +1 -1
  27. package/dist/{IconFlightReturn-Cdzy6WX8.js → IconFlightReturn-B79LZm_a.js} +1 -1
  28. package/dist/{IconHandHeart-CC4bxoCM.js → IconHandHeart-BHb27Vkc.js} +1 -1
  29. package/dist/{IconHistory-DoWlMxrP.js → IconHistory-BCYE6UlB.js} +1 -1
  30. package/dist/{IconHourGlass-AHUuzz2r.js → IconHourGlass-BRdYa9do.js} +1 -1
  31. package/dist/{IconIdCard-KSBgSPeJ.js → IconIdCard-DKWQoi85.js} +1 -1
  32. package/dist/{IconInfant-BeaFioB2.js → IconInfant-BAHOdZjA.js} +1 -1
  33. package/dist/{IconItinerary-CFj-6b5Q.js → IconItinerary-CZr4zX6y.js} +1 -1
  34. package/dist/{IconLeave-CywEsLcw.js → IconLeave-CgwE4pub.js} +1 -1
  35. package/dist/{IconMale-BEKZycPr.js → IconMale-7fstmMkE.js} +1 -1
  36. package/dist/{IconMultiSegments-Dn2EH-Md.js → IconMultiSegments-CRuRt5B2.js} +1 -1
  37. package/dist/{IconNoPassport-DrmjbxJD.js → IconNoPassport-C6x5h3tv.js} +1 -1
  38. package/dist/{IconNoRefund-ArIPLIjM.js → IconNoRefund-C15ObaDW.js} +1 -1
  39. package/dist/{IconNotion-D7Dh8ajc.js → IconNotion-wCN4IjqD.js} +1 -1
  40. package/dist/{IconOffline-BUJEYKmj.js → IconOffline-BZpGcHSD.js} +1 -1
  41. package/dist/{IconOneWay-DKN_eckI.js → IconOneWay-C7y1B7aW.js} +1 -1
  42. package/dist/{IconPaid-BEw_R6DH.js → IconPaid-BfjNZI_5.js} +1 -1
  43. package/dist/{IconPassport-dH3GzIR9.js → IconPassport-DIQofTDP.js} +1 -1
  44. package/dist/{IconPayout-BOTWwPoR.js → IconPayout-DSIyFm4E.js} +1 -1
  45. package/dist/{IconReceipt-MoL2346d.js → IconReceipt-BetyzPxj.js} +1 -1
  46. package/dist/{IconRecurrence-TvqFhOBh.js → IconRecurrence-FY5Px3Ht.js} +1 -1
  47. package/dist/{IconRefund-CaTBeKJS.js → IconRefund-mydyuS6E.js} +1 -1
  48. package/dist/{IconRoundTrip-DRsx92WJ.js → IconRoundTrip-Cz8i89I_.js} +1 -1
  49. package/dist/{IconRouteNoStop-c_j4fcq7.js → IconRouteNoStop-CWtHaWVR.js} +1 -1
  50. package/dist/{IconRouteOneStop-enbNaG1p.js → IconRouteOneStop-Bui1-3PM.js} +1 -1
  51. package/dist/{IconScheduleChange-D3aH6iCp.js → IconScheduleChange-RtEDR-Wu.js} +1 -1
  52. package/dist/{IconSeatEmpty-BNJbTjjk.js → IconSeatEmpty-B5rrtpIV.js} +1 -1
  53. package/dist/{IconSeatSold-DB8Y9qBr.js → IconSeatSold-BEGX0FWj.js} +1 -1
  54. package/dist/{IconSeatTotal-BK4rmwfJ.js → IconSeatTotal-CMxSblRL.js} +1 -1
  55. package/dist/{IconSemiMoon-CnO_tWYz.js → IconSemiMoon-_sOwbh09.js} +1 -1
  56. package/dist/{IconTemplate-pqHRwkap.js → IconTemplate-B-V-ezP2.js} +1 -1
  57. package/dist/{IconTicket-oPHpGyYt.js → IconTicket-D9UU4KLA.js} +1 -1
  58. package/dist/{IconTimer-DCvoAyOE.js → IconTimer-BWYFiJJ0.js} +1 -1
  59. package/dist/{IconTrafficControl-9QNWcYF5.js → IconTrafficControl-CSDlgdDW.js} +1 -1
  60. package/dist/{IconWithPassport-BztuFvAs.js → IconWithPassport-CXZi9_3r.js} +1 -1
  61. package/dist/{index-CoogODBx.js → index-CUYuZ08n.js} +10387 -4699
  62. package/dist/pimp.es.js +1 -1
  63. package/dist/pimp.umd.js +691 -3
  64. package/dist/style.css +1 -1
  65. package/package.json +2 -1
  66. package/src/assets/styles/helpers/_mixins.scss +37 -1
  67. package/src/assets/styles/utilities/_index.scss +14 -0
  68. package/src/components/core/BaseInputLabel.vue +6 -0
  69. package/src/components/core/BaseSelectClearButton.vue +36 -0
  70. package/src/components/index.ts +5 -0
  71. package/src/components/lists-and-table/CpTable.vue +89 -39
  72. package/src/components/selects/CpMultiselect.vue +426 -0
  73. package/src/helpers/object.js +9 -0
  74. package/src/stories/CpMultiselect.stories.ts +237 -0
  75. package/src/stories/CpTable.stories.ts +32 -22
@@ -41,6 +41,14 @@ const meta = {
41
41
  control: 'boolean',
42
42
  description: 'Whether to show row options menu',
43
43
  },
44
+ rowOptions: {
45
+ control: 'array',
46
+ description: 'Array of row options to display',
47
+ },
48
+ quickOptionsLimit: {
49
+ control: 'number',
50
+ description: 'Maximum number of quick options to display before showing the more button',
51
+ },
44
52
  onRowClick: { action: 'row-clicked' },
45
53
  onRowRightClick: { action: 'row-right-clicked' },
46
54
  onNextClick: { action: 'next-clicked' },
@@ -79,6 +87,7 @@ export const Default: Story = {
79
87
  noResultPlaceholder: 'No results found',
80
88
  isLoading: false,
81
89
  enableRowOptions: false,
90
+ quickOptionsLimit: 3,
82
91
  pagination: {
83
92
  enabled: true,
84
93
  },
@@ -175,10 +184,32 @@ export const WithGroupBy: Story = {
175
184
  }),
176
185
  }
177
186
 
178
- export const WithCustomSlots: Story = {
187
+ export const WithCustomRowOptions: Story = {
179
188
  args: {
180
189
  ...Default.args,
181
190
  enableRowOptions: true,
191
+ rowOptions: [
192
+ {
193
+ label: 'see',
194
+ icon: 'eye',
195
+ action: () => console.log('See'),
196
+ },
197
+ {
198
+ label: 'edit',
199
+ icon: 'edit-2',
200
+ action: () => console.log('Edit'),
201
+ },
202
+ {
203
+ label: 'disable',
204
+ icon: 'history',
205
+ action: () => console.log('History'),
206
+ },
207
+ {
208
+ label: 'delete',
209
+ icon: 'trash',
210
+ action: () => console.log('Delete'),
211
+ },
212
+ ],
182
213
  },
183
214
  render: (args) => ({
184
215
  components: { CpTable },
@@ -198,27 +229,6 @@ export const WithCustomSlots: Story = {
198
229
  {{ cell }}
199
230
  </span>
200
231
  </template>
201
- <template #row-quick-actions="{ row }">
202
- <button
203
- type="button"
204
- @click.stop="() => console.log('See', row)"
205
- >
206
- <cp-icon type="eye" />
207
- </button>
208
- <button
209
- type="button"
210
- @click.stop="() => console.log('Edit', row)"
211
- disabled
212
- >
213
- <cp-icon type="edit-2" />
214
- </button>
215
- <button
216
- type="button"
217
- @click.stop="() => console.log('Delete', row)"
218
- >
219
- <cp-icon type="trash" />
220
- </button>
221
- </template>
222
232
  </CpTable>
223
233
  `,
224
234
  }),