@operato/grist-editor 2.0.0-alpha.8 → 2.0.0-alpha.80
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/CHANGELOG.md +362 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/ox-grist-editor-crontab.d.ts +1 -1
- package/dist/src/ox-grist-editor-duration.d.ts +1 -1
- package/dist/src/ox-grist-editor-hashtags.d.ts +1 -1
- package/dist/src/ox-grist-editor-i18n-label.d.ts +13 -0
- package/dist/src/ox-grist-editor-i18n-label.js +85 -0
- package/dist/src/ox-grist-editor-i18n-label.js.map +1 -0
- package/dist/src/ox-grist-editor-parameters.d.ts +1 -1
- package/dist/src/ox-grist-editor-partition-keys.d.ts +1 -1
- package/dist/src/ox-grist-editor-partition-keys.js +1 -1
- package/dist/src/ox-grist-editor-partition-keys.js.map +1 -1
- package/dist/src/ox-grist-editor-quantifier.d.ts +1 -1
- package/dist/src/ox-grist-editor-value-map.d.ts +1 -1
- package/dist/src/ox-grist-editor-value-ranges.d.ts +1 -1
- package/dist/src/ox-grist-renderer-i18n-label.d.ts +2 -0
- package/dist/src/ox-grist-renderer-i18n-label.js +9 -0
- package/dist/src/ox-grist-renderer-i18n-label.js.map +1 -0
- package/dist/src/ox-grist-renderer-partition-keys.d.ts +1 -1
- package/dist/src/ox-grist-renderer-partition-keys.js +4 -4
- package/dist/src/ox-grist-renderer-partition-keys.js.map +1 -1
- package/dist/src/ox-popup-crontab-input.d.ts +2 -1
- package/dist/src/ox-popup-crontab-input.js +5 -2
- package/dist/src/ox-popup-crontab-input.js.map +1 -1
- package/dist/src/ox-popup-duration-input.d.ts +2 -1
- package/dist/src/ox-popup-duration-input.js +5 -2
- package/dist/src/ox-popup-duration-input.js.map +1 -1
- package/dist/src/ox-popup-hashtags-input.d.ts +2 -1
- package/dist/src/ox-popup-hashtags-input.js +5 -2
- package/dist/src/ox-popup-hashtags-input.js.map +1 -1
- package/dist/src/ox-popup-i18n-label-input.d.ts +16 -0
- package/dist/src/ox-popup-i18n-label-input.js +104 -0
- package/dist/src/ox-popup-i18n-label-input.js.map +1 -0
- package/dist/src/ox-popup-parameters-builder.d.ts +2 -1
- package/dist/src/ox-popup-parameters-builder.js +5 -2
- package/dist/src/ox-popup-parameters-builder.js.map +1 -1
- package/dist/src/ox-popup-partition-keys-input.d.ts +2 -1
- package/dist/src/ox-popup-partition-keys-input.js +5 -2
- package/dist/src/ox-popup-partition-keys-input.js.map +1 -1
- package/dist/src/ox-popup-value-map-input.d.ts +2 -1
- package/dist/src/ox-popup-value-map-input.js +5 -2
- package/dist/src/ox-popup-value-map-input.js.map +1 -1
- package/dist/src/ox-popup-value-ranges-input.d.ts +2 -1
- package/dist/src/ox-popup-value-ranges-input.js +3 -2
- package/dist/src/ox-popup-value-ranges-input.js.map +1 -1
- package/dist/stories/ox-grist-editor-crontab.stories.d.ts +1 -1
- package/dist/stories/ox-grist-editor-crontab.stories.js +66 -54
- package/dist/stories/ox-grist-editor-crontab.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +44 -36
- package/src/index.ts +4 -0
- package/src/ox-grist-editor-i18n-label.ts +101 -0
- package/src/ox-grist-editor-partition-keys.ts +1 -1
- package/src/ox-grist-renderer-i18n-label.ts +12 -0
- package/src/ox-grist-renderer-partition-keys.ts +4 -4
- package/src/ox-popup-crontab-input.ts +5 -2
- package/src/ox-popup-duration-input.ts +5 -2
- package/src/ox-popup-hashtags-input.ts +5 -2
- package/src/ox-popup-i18n-label-input.ts +101 -0
- package/src/ox-popup-parameters-builder.ts +5 -2
- package/src/ox-popup-partition-keys-input.ts +5 -2
- package/src/ox-popup-value-map-input.ts +6 -2
- package/src/ox-popup-value-ranges-input.ts +3 -2
- package/stories/ox-grist-editor-crontab.stories.ts +71 -60
- package/themes/grist-theme.css +1 -1
|
@@ -6,7 +6,7 @@ import '@operato/property-editor/ox-properties-dynamic-view.js'
|
|
|
6
6
|
import '@operato/data-grist'
|
|
7
7
|
import '@operato/data-grist/ox-filters-form.js'
|
|
8
8
|
import '@operato/data-grist/ox-sorters-control.js'
|
|
9
|
-
import '@material/
|
|
9
|
+
import '@material/web/icon/icon.js'
|
|
10
10
|
|
|
11
11
|
/* set grist-editors */
|
|
12
12
|
import { css, html, LitElement, TemplateResult } from 'lit'
|
|
@@ -348,9 +348,9 @@ class GristDemo extends LitElement {
|
|
|
348
348
|
|
|
349
349
|
<div slot="headroom" id="headroom">
|
|
350
350
|
<div id="modes">
|
|
351
|
-
<
|
|
352
|
-
<
|
|
353
|
-
<
|
|
351
|
+
<md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>view_list</md-icon>
|
|
352
|
+
<md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>menu</md-icon>
|
|
353
|
+
<md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
|
|
354
354
|
</div>
|
|
355
355
|
</div>
|
|
356
356
|
</ox-grist>
|
|
@@ -374,67 +374,78 @@ interface Story<T> {
|
|
|
374
374
|
|
|
375
375
|
interface ArgTypes {}
|
|
376
376
|
|
|
377
|
-
const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
377
|
+
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
378
|
+
<link
|
|
379
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
380
|
+
rel="stylesheet"
|
|
381
|
+
/>
|
|
382
|
+
<link
|
|
383
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
384
|
+
rel="stylesheet"
|
|
385
|
+
/>
|
|
386
|
+
<link
|
|
387
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
388
|
+
rel="stylesheet"
|
|
389
|
+
/>
|
|
390
|
+
|
|
391
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
392
|
+
<link href="/themes/oops-theme.css" rel="stylesheet" />
|
|
393
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
394
|
+
|
|
395
|
+
<style>
|
|
396
|
+
[slot='headroom'] {
|
|
397
|
+
display: flex;
|
|
398
|
+
flex-direction: row;
|
|
399
|
+
align-items: center;
|
|
400
|
+
padding: var(--padding-default) var(--padding-wide);
|
|
401
|
+
background-color: var(--theme-white-color);
|
|
402
|
+
box-shadow: var(--box-shadow);
|
|
403
|
+
|
|
404
|
+
--md-icon-size: 24px;
|
|
405
|
+
}
|
|
406
|
+
#sorters md-icon,
|
|
407
|
+
#modes md-icon {
|
|
408
|
+
--md-icon-size: 18px;
|
|
409
|
+
}
|
|
410
|
+
#sorters {
|
|
411
|
+
margin-left: auto;
|
|
412
|
+
margin-right: var(--margin-default);
|
|
413
|
+
padding-left: var(--padding-narrow);
|
|
414
|
+
border-bottom: var(--border-dark-color);
|
|
415
|
+
position: relative;
|
|
416
|
+
color: var(--secondary-color);
|
|
417
|
+
font-size: var(--fontsize-default);
|
|
418
|
+
user-select: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
#sorters > * {
|
|
422
|
+
padding: var(--padding-narrow);
|
|
423
|
+
vertical-align: middle;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
#filters {
|
|
427
|
+
display: flex;
|
|
428
|
+
justify-content: center;
|
|
429
|
+
align-items: center;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
#filters * {
|
|
433
|
+
margin-right: var(--margin-default);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
@media only screen and (max-width: 460px) {
|
|
415
437
|
#filters {
|
|
416
|
-
|
|
417
|
-
justify-content: center;
|
|
418
|
-
align-items: center;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
#filters * {
|
|
422
|
-
margin-right: var(--margin-default);
|
|
438
|
+
flex-direction: column;
|
|
423
439
|
}
|
|
424
440
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
flex-direction: column;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
#modes {
|
|
431
|
-
display: none;
|
|
432
|
-
}
|
|
441
|
+
#modes {
|
|
442
|
+
display: none;
|
|
433
443
|
}
|
|
434
|
-
|
|
444
|
+
}
|
|
445
|
+
</style>
|
|
435
446
|
|
|
436
|
-
|
|
437
|
-
|
|
447
|
+
<ox-grist-demo mode="LIST"></ox-grist-demo>
|
|
448
|
+
`
|
|
438
449
|
|
|
439
450
|
export const Regular = Template.bind({})
|
|
440
451
|
Regular.args = {}
|
package/themes/grist-theme.css
CHANGED
|
@@ -37,7 +37,7 @@ body {
|
|
|
37
37
|
|
|
38
38
|
--grid-record-background-color: var(--theme-white-color);
|
|
39
39
|
--grid-record-odd-background-color: #f9f7f5;
|
|
40
|
-
--grid-record-padding:
|
|
40
|
+
--grid-record-padding: 0 5px 0 5px;
|
|
41
41
|
--grid-record-color: var(--secondary-color);
|
|
42
42
|
--grid-record-color-hover: var(--primary-color);
|
|
43
43
|
--grid-record-wide-fontsize: var(--fontsize-small);
|