@citizenplane/pimp 8.23.0 → 8.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{IconAccompaniedMinorEach-C8c565Zx.js → IconAccompaniedMinorEach-DE6L9BRu.js} +1 -1
- package/dist/{IconAccompaniedMinorNone-DqbXkL7v.js → IconAccompaniedMinorNone-CKwkfQWY.js} +1 -1
- package/dist/{IconAccompaniedMinorOne-BapjPCIa.js → IconAccompaniedMinorOne-CDw9ndVx.js} +1 -1
- package/dist/{IconAddReceipt-Bi-7ht6z.js → IconAddReceipt-C9EJNceo.js} +1 -1
- package/dist/{IconAirportTerminal-Catsq9nD.js → IconAirportTerminal-B3zEFGce.js} +1 -1
- package/dist/{IconArrival-C53ZX2rk.js → IconArrival-aSQX9DwG.js} +1 -1
- package/dist/{IconBroadcast-BZbgYkkg.js → IconBroadcast-B3GbI4O2.js} +1 -1
- package/dist/{IconCabinBag-Cl0Nn-zX.js → IconCabinBag-1gMUAFiJ.js} +1 -1
- package/dist/{IconCheckedBaggage-DUF63wE4.js → IconCheckedBaggage-Hgg2P-La.js} +1 -1
- package/dist/{IconCheckedBaggage20-BiF-S3vL.js → IconCheckedBaggage20-CuRwridK.js} +1 -1
- package/dist/{IconCheckedBaggage30-DQ2rI8o4.js → IconCheckedBaggage30-Bu5mfGrU.js} +1 -1
- package/dist/{IconChild-SAUtUnqM.js → IconChild-DVzPdW18.js} +1 -1
- package/dist/{IconContact-Q9pWr5rJ.js → IconContact-vLLYEtHG.js} +1 -1
- package/dist/{IconDeparture-fmYqHcuO.js → IconDeparture-jDaBhT9y.js} +1 -1
- package/dist/{IconDistribution-CtqZ9mG_.js → IconDistribution-CXcKxl2c.js} +1 -1
- package/dist/{IconDistributionClosed-9g2z3E-4.js → IconDistributionClosed-B5guexCV.js} +1 -1
- package/dist/{IconDistributionExclusivePair-DWK1CFOI.js → IconDistributionExclusivePair-BweDwKkh.js} +1 -1
- package/dist/{IconDistributionSided-ByeDUHKp.js → IconDistributionSided-DE4q1Sve.js} +1 -1
- package/dist/{IconDistributionSupplySided-DfC7EB1B.js → IconDistributionSupplySided-DPgYaUUP.js} +1 -1
- package/dist/{IconDynamicContent-BOrO3jwv.js → IconDynamicContent-Dp7HDol5.js} +1 -1
- package/dist/{IconFares-Bx4Vksmy.js → IconFares-Bi5au_9V.js} +1 -1
- package/dist/{IconFaresOutlined-CqgIK82P.js → IconFaresOutlined-CPgtsOsn.js} +1 -1
- package/dist/{IconFemale-DH_XQ4Oc.js → IconFemale-Zx4vOVnU.js} +1 -1
- package/dist/{IconFindConversation-BzuQxuoR.js → IconFindConversation--2ZwQxMw.js} +1 -1
- package/dist/{IconFire-DsNSDWCN.js → IconFire-Bi__90Xq.js} +1 -1
- package/dist/{IconFlight-DV70waHs.js → IconFlight-DylPPVpp.js} +1 -1
- package/dist/{IconFlightReturn-DcFzNNOY.js → IconFlightReturn-wcvC_zyk.js} +1 -1
- package/dist/{IconHandHeart-DpQJ14fF.js → IconHandHeart-ve95hsD0.js} +1 -1
- package/dist/{IconHistory-BQrjzTdg.js → IconHistory-BhVPp0cQ.js} +1 -1
- package/dist/{IconHourGlass-Bjv1YvkJ.js → IconHourGlass-DV8oqdyg.js} +1 -1
- package/dist/{IconIdCard-DapYTeYh.js → IconIdCard-DwzuzXN2.js} +1 -1
- package/dist/{IconInfant-Bsi3q8-V.js → IconInfant-DT1Nzl0x.js} +1 -1
- package/dist/{IconItinerary-JWcwC5Rx.js → IconItinerary-7Hb9iv3y.js} +1 -1
- package/dist/{IconLeave-B2EUvlZ1.js → IconLeave-dmrPJAf6.js} +1 -1
- package/dist/{IconMale-Bh9rzxW7.js → IconMale-DSjpnm3Q.js} +1 -1
- package/dist/{IconMultiSegments-O9odVBBT.js → IconMultiSegments-X6qnSwUS.js} +1 -1
- package/dist/{IconNoPassport-C7zjNrnl.js → IconNoPassport-C1HJBdD9.js} +1 -1
- package/dist/{IconNoRefund-Ckiq2XVh.js → IconNoRefund-DiJN_FA8.js} +1 -1
- package/dist/{IconNotion-QXFmdREs.js → IconNotion-B-tSrJ4u.js} +1 -1
- package/dist/{IconOffline-BpXc3IWd.js → IconOffline-Ctj066_m.js} +1 -1
- package/dist/{IconOneWay-C326H5R-.js → IconOneWay-BrcB89Tq.js} +1 -1
- package/dist/{IconPaid-Czq9g7gJ.js → IconPaid-BzH5OLQb.js} +1 -1
- package/dist/{IconPassport-D6byDjTx.js → IconPassport-8yGMToG1.js} +1 -1
- package/dist/{IconPayout-DRwx-Pl0.js → IconPayout-CZXb-HTd.js} +1 -1
- package/dist/{IconReceipt-CyLwmE12.js → IconReceipt-JA-M0U3n.js} +1 -1
- package/dist/{IconRecurrence-D0ocn2Rb.js → IconRecurrence-mXMYoI0n.js} +1 -1
- package/dist/{IconRefund-Bfm3LxM5.js → IconRefund-B2L5xKAF.js} +1 -1
- package/dist/{IconRoundTrip-DqoXjtjc.js → IconRoundTrip-COeSvwSW.js} +1 -1
- package/dist/{IconRouteNoStop-CbBJZtDS.js → IconRouteNoStop-BV2sWIsV.js} +1 -1
- package/dist/{IconRouteOneStop-IrSCN2KT.js → IconRouteOneStop-BoxuuMO3.js} +1 -1
- package/dist/{IconScheduleChange-DfnRrHns.js → IconScheduleChange-vtfvtcu7.js} +1 -1
- package/dist/{IconSeatEmpty-DSBHrdCd.js → IconSeatEmpty-CRKjSZ77.js} +1 -1
- package/dist/{IconSeatSold-DhPathcR.js → IconSeatSold-DObYWLgC.js} +1 -1
- package/dist/{IconSeatTotal-DlgE94e2.js → IconSeatTotal-TfNbmsSp.js} +1 -1
- package/dist/{IconSemiMoon-DXeMSaVX.js → IconSemiMoon-2BPnLHjW.js} +1 -1
- package/dist/{IconTemplate-DBKx5Nf3.js → IconTemplate-D6ZRzCiS.js} +1 -1
- package/dist/{IconTicket-g5LBBIcV.js → IconTicket-Cx4JaCEo.js} +1 -1
- package/dist/{IconTimer-CgmTSKbE.js → IconTimer-CdfSGP1v.js} +1 -1
- package/dist/{IconTrafficControl-B8khBxV1.js → IconTrafficControl-B83ebOK1.js} +1 -1
- package/dist/{IconWithPassport-SHoZiugG.js → IconWithPassport-BtjM5pk4.js} +1 -1
- package/dist/{index-8CKHpSv5.js → index-782z9Iy2.js} +10387 -4699
- package/dist/pimp.es.js +1 -1
- package/dist/pimp.umd.js +691 -3
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/src/assets/styles/helpers/_mixins.scss +37 -1
- package/src/assets/styles/utilities/_index.scss +14 -0
- package/src/components/core/BaseInputLabel.vue +6 -0
- package/src/components/core/BaseSelectClearButton.vue +36 -0
- package/src/components/index.ts +5 -0
- package/src/components/lists-and-table/CpTable.vue +89 -39
- package/src/components/selects/CpMultiselect.vue +426 -0
- package/src/constants/src/CpCustomIcons.ts +1 -1
- package/src/helpers/object.js +9 -0
- package/src/stories/CpMultiselect.stories.ts +237 -0
- 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
|
|
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
|
}),
|