@sme.up/ketchup 11.0.0-SNAPSHOT-20241112150912 → 11.0.0-SNAPSHOT-20241113131013
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/cjs/kup-input-panel.cjs.entry.js +39 -19
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +67 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +42 -21
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/components/kup-input-panel.js +40 -20
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/esm/kup-input-panel.entry.js +40 -20
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-5e28d846.entry.js +2 -0
- package/dist/ketchup/p-5e28d846.entry.js.map +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +8 -5
- package/package.json +1 -1
- package/dist/ketchup/p-88590f1c.entry.js +0 -2
- package/dist/ketchup/p-88590f1c.entry.js.map +0 -1
|
@@ -1536,7 +1536,7 @@ describe('kup-input-panel', () => {
|
|
|
1536
1536
|
const classKupDanger = await page.find('kup-input-panel >>> form.input-panel-form >>> #kup-component f-button.kup-danger');
|
|
1537
1537
|
expect(classKupDanger).not.toBeNull();
|
|
1538
1538
|
});
|
|
1539
|
-
it('render inputpanel with commands', async () => {
|
|
1539
|
+
it('render inputpanel with commands buttons', async () => {
|
|
1540
1540
|
const page = await newE2EPage();
|
|
1541
1541
|
await page.setContent('<kup-input-panel></kup-input-panel>');
|
|
1542
1542
|
const inputPanel = await page.find('kup-input-panel');
|
|
@@ -1553,14 +1553,13 @@ describe('kup-input-panel', () => {
|
|
|
1553
1553
|
commands: [
|
|
1554
1554
|
{
|
|
1555
1555
|
children: [],
|
|
1556
|
+
value: 'Clear (F5)',
|
|
1557
|
+
icon: 'close',
|
|
1558
|
+
data: {
|
|
1559
|
+
keyShortcut: 'f5',
|
|
1560
|
+
},
|
|
1561
|
+
obj: { t: 'J1', p: 'KEY', k: 'CLEAR' },
|
|
1556
1562
|
cells: {
|
|
1557
|
-
CLEAR: {
|
|
1558
|
-
value: 'Clear (F5)',
|
|
1559
|
-
icon: 'close',
|
|
1560
|
-
data: {
|
|
1561
|
-
keyShortcut: 'f5',
|
|
1562
|
-
},
|
|
1563
|
-
},
|
|
1564
1563
|
TST: {
|
|
1565
1564
|
value: 'TST',
|
|
1566
1565
|
icon: 'save',
|
|
@@ -1568,6 +1567,13 @@ describe('kup-input-panel', () => {
|
|
|
1568
1567
|
},
|
|
1569
1568
|
forcedLeaf: false,
|
|
1570
1569
|
},
|
|
1570
|
+
{
|
|
1571
|
+
children: [],
|
|
1572
|
+
value: 'TST',
|
|
1573
|
+
obj: { t: 'J1', p: 'KEY', k: 'TST' },
|
|
1574
|
+
cells: {},
|
|
1575
|
+
forcedLeaf: false,
|
|
1576
|
+
},
|
|
1571
1577
|
],
|
|
1572
1578
|
},
|
|
1573
1579
|
};
|
|
@@ -1580,5 +1586,58 @@ describe('kup-input-panel', () => {
|
|
|
1580
1586
|
const buttons = await commands.findAll('div.f-button.form__submit');
|
|
1581
1587
|
expect(buttons.length).toBe(2 + 1);
|
|
1582
1588
|
});
|
|
1589
|
+
it('render inputpanel with commands dropdown-button', async () => {
|
|
1590
|
+
const page = await newE2EPage();
|
|
1591
|
+
await page.setContent('<kup-input-panel></kup-input-panel>');
|
|
1592
|
+
const inputPanel = await page.find('kup-input-panel');
|
|
1593
|
+
const data = {
|
|
1594
|
+
type: 'SmeupDataTable',
|
|
1595
|
+
columns: [],
|
|
1596
|
+
rows: [
|
|
1597
|
+
{
|
|
1598
|
+
cells: {},
|
|
1599
|
+
},
|
|
1600
|
+
],
|
|
1601
|
+
setup: {
|
|
1602
|
+
components: {},
|
|
1603
|
+
commands: [
|
|
1604
|
+
{
|
|
1605
|
+
children: [
|
|
1606
|
+
{
|
|
1607
|
+
children: [],
|
|
1608
|
+
value: 'CLEAR',
|
|
1609
|
+
obj: { t: 'J1', p: 'KEY', k: 'CLEAR' },
|
|
1610
|
+
cells: {},
|
|
1611
|
+
data: {
|
|
1612
|
+
keyShortcut: 'f5',
|
|
1613
|
+
},
|
|
1614
|
+
forcedLeaf: false,
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
children: [],
|
|
1618
|
+
value: 'TST',
|
|
1619
|
+
obj: { t: 'J1', p: 'KEY', k: 'TST' },
|
|
1620
|
+
cell: {},
|
|
1621
|
+
forcedLeaf: false,
|
|
1622
|
+
},
|
|
1623
|
+
],
|
|
1624
|
+
value: 'DDB',
|
|
1625
|
+
data: {
|
|
1626
|
+
icon: 'save',
|
|
1627
|
+
},
|
|
1628
|
+
forcedLeaf: false,
|
|
1629
|
+
},
|
|
1630
|
+
],
|
|
1631
|
+
},
|
|
1632
|
+
};
|
|
1633
|
+
inputPanel.setProperty('data', data);
|
|
1634
|
+
await page.waitForChanges();
|
|
1635
|
+
const form = await page.find('kup-input-panel >>> form.input-panel-form');
|
|
1636
|
+
expect(form).not.toBeNull();
|
|
1637
|
+
const commands = await form.find('div.input-panel__commands');
|
|
1638
|
+
expect(commands).not.toBeNull();
|
|
1639
|
+
const buttons = await commands.findAll('kup-dropdown-button');
|
|
1640
|
+
expect(buttons.length).toBe(1);
|
|
1641
|
+
});
|
|
1583
1642
|
});
|
|
1584
1643
|
//# sourceMappingURL=kup-input-panel.e2e.js.map
|