diff --git a/src/ctrl/inputs/items/spec.js b/src/ctrl/inputs/items/spec.js index 14b33a7..f827d66 100644 --- a/src/ctrl/inputs/items/spec.js +++ b/src/ctrl/inputs/items/spec.js @@ -244,7 +244,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -257,7 +257,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -283,7 +283,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -296,7 +296,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -448,7 +448,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -460,7 +460,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ div({ class: 'input-group' @@ -498,7 +498,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -510,7 +510,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -534,7 +534,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -546,7 +546,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -570,7 +570,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -582,7 +582,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ div({ class: [ @@ -644,7 +644,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -656,7 +656,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ div({ class: 'input-group' @@ -694,7 +694,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -706,7 +706,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -730,7 +730,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -742,7 +742,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -776,7 +776,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -788,7 +788,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ div({ class: 'input-group' @@ -826,7 +826,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -838,7 +838,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -862,7 +862,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -874,7 +874,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -913,7 +913,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -925,7 +925,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ div({ class: 'input-group' @@ -963,7 +963,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -975,7 +975,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -999,7 +999,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1011,7 +1011,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1035,7 +1035,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1047,7 +1047,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ div({ class: [ diff --git a/src/ctrl/inputs/props/index.js b/src/ctrl/inputs/props/index.js index b29140f..52bc0cd 100644 --- a/src/ctrl/inputs/props/index.js +++ b/src/ctrl/inputs/props/index.js @@ -104,7 +104,7 @@ export default ({ (size == 'lg' ? ' fs-5' : size == 'sm' ? ' small' : '') }, [ !title ? null : div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -121,7 +121,7 @@ export default ({ ...schema, title: schema.properties ? null : k, description: !title || schema.properties ? description : null, - css: !title ? null : 'col-md-9', + css: !title ? null : 'col-sm-9', update: (err, v, label) => { label = typeof label != 'string' ? String(v) : label Data[k] = v diff --git a/src/form/spec.js b/src/form/spec.js index 17bebfd..feb957f 100644 --- a/src/form/spec.js +++ b/src/form/spec.js @@ -1009,7 +1009,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1022,7 +1022,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1049,7 +1049,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1062,7 +1062,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1089,7 +1089,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1102,7 +1102,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1130,7 +1130,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1143,7 +1143,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1186,7 +1186,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1199,7 +1199,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1224,7 +1224,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1237,7 +1237,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ textarea({ class: [ @@ -1400,7 +1400,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1412,7 +1412,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1454,7 +1454,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1466,7 +1466,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1502,7 +1502,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1514,7 +1514,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1620,7 +1620,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1632,7 +1632,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('27') ]) @@ -1645,7 +1645,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1657,7 +1657,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1681,7 +1681,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1693,7 +1693,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1798,7 +1798,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1811,7 +1811,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('27') ]) @@ -1825,7 +1825,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1838,7 +1838,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1864,7 +1864,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1877,7 +1877,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -1984,7 +1984,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -1997,7 +1997,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('27') ]) @@ -2011,7 +2011,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2024,7 +2024,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -2050,7 +2050,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2063,7 +2063,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -2170,7 +2170,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2182,7 +2182,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('27') ]) @@ -2195,7 +2195,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2207,7 +2207,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -2231,7 +2231,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2243,7 +2243,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ input({ class: [ @@ -2414,7 +2414,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2427,7 +2427,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ a({ href: '#/users/1' @@ -2444,7 +2444,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2457,7 +2457,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('Mathews Mcgowan') ]) @@ -2470,7 +2470,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2483,7 +2483,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('24') ]) @@ -2496,7 +2496,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2508,7 +2508,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('3,072.78') ]) @@ -2643,7 +2643,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2656,7 +2656,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ a({ href: '#/users/1' @@ -2673,7 +2673,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2686,7 +2686,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('Mathews Mcgowan') ]) @@ -2699,7 +2699,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2712,7 +2712,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('24') ]) @@ -2725,7 +2725,7 @@ export default ({ ] }, [ div({ - class: 'col-md-3' + class: 'col-sm-3' }, [ label({ class: [ @@ -2737,7 +2737,7 @@ export default ({ ]) ]), div({ - class: 'col-md-9' + class: 'col-sm-9' }, [ text('3,072.78') ]) diff --git a/src/table/index.js b/src/table/index.js index 7512984..22ce66d 100644 --- a/src/table/index.js +++ b/src/table/index.js @@ -288,6 +288,7 @@ export default ({ } }) + x.innerHTML = '' view.forEach(row => { x.appendChild(node(({tr, td, a, text}) => tr({ @@ -356,6 +357,7 @@ export default ({ const v = totals[k] t.textContent = v != null ? v : '' }) + x.innerHTML = '' x.appendChild(node(({tr, td}) => tr({}, [ td({