@sme.up/ketchup 4.0.0 → 4.2.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/README.md +3 -3
- package/dist/cjs/cell-utils-dc0884a3.js +168 -0
- package/dist/cjs/f-button-2ba74fb5.js +105 -0
- package/dist/cjs/f-cell-fe60a08d.js +731 -0
- package/dist/cjs/f-chip-90d95d22.js +141 -0
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-d3bd4e08.js} +4 -5
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +6 -8
- package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_28.cjs.entry.js} +2580 -3060
- package/dist/cjs/kup-calendar.cjs.entry.js +30 -30
- package/dist/cjs/kup-cell.cjs.entry.js +201 -0
- package/dist/cjs/kup-dash-list.cjs.entry.js +15 -7
- package/dist/cjs/kup-dash_2.cjs.entry.js +104 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -6
- package/dist/cjs/kup-field.cjs.entry.js +3 -5
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -6
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -31
- package/dist/cjs/kup-manager-1a2688ca.js +5813 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -4
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +152 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-0cc466b9.js} +17 -83
- package/dist/collection/assets/cell.js +51 -0
- package/dist/collection/assets/data-table.js +518 -1
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/snackbar.js +32 -0
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -213
- package/dist/collection/components/kup-accordion/kup-accordion.js +15 -16
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +5 -2381
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +83 -111
- package/dist/collection/components/kup-badge/kup-badge.css +1 -35
- package/dist/collection/components/kup-badge/kup-badge.js +13 -14
- package/dist/collection/components/kup-box/kup-box.css +47 -780
- package/dist/collection/components/kup-box/kup-box.js +240 -366
- package/dist/collection/components/kup-button/kup-button.css +0 -333
- package/dist/collection/components/kup-button/kup-button.js +27 -28
- package/dist/collection/components/kup-button-list/kup-button-list.css +0 -332
- package/dist/collection/components/kup-button-list/kup-button-list.js +19 -20
- package/dist/collection/components/kup-calendar/kup-calendar.css +0 -517
- package/dist/collection/components/kup-calendar/kup-calendar.js +47 -45
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
- package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +18 -0
- package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
- package/dist/collection/components/kup-card/kup-card.css +615 -185
- package/dist/collection/components/kup-card/kup-card.js +94 -34
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
- package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
- package/dist/collection/components/kup-cell/kup-cell.css +20 -0
- package/dist/collection/components/kup-cell/kup-cell.js +413 -0
- package/dist/collection/components/kup-chart/kup-chart.js +41 -42
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
- package/dist/collection/components/kup-chip/kup-chip.css +0 -217
- package/dist/collection/components/kup-chip/kup-chip.js +15 -16
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
- package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
- package/dist/collection/components/kup-data-table/kup-data-table.css +118 -3232
- package/dist/collection/components/kup-data-table/kup-data-table.js +589 -1089
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +1 -85
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +92 -395
- package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
- package/dist/collection/components/kup-field/kup-field.js +21 -22
- package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +13 -14
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
- package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
- package/dist/collection/components/kup-image/kup-image.css +0 -32
- package/dist/collection/components/kup-image/kup-image.js +25 -26
- package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -260
- package/dist/collection/components/kup-list/kup-list.js +39 -49
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
- package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
- package/dist/collection/components/kup-probe/kup-probe.js +9 -9
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
- package/dist/collection/components/kup-radio/kup-radio.js +17 -18
- package/dist/collection/components/kup-rating/kup-rating.js +15 -16
- package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
- package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
- package/dist/collection/components/kup-switch/kup-switch.css +0 -156
- package/dist/collection/components/kup-switch/kup-switch.js +17 -18
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.css +4 -2371
- package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +7 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +97 -317
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
- package/dist/collection/components/kup-tree/kup-tree.css +27 -371
- package/dist/collection/components/kup-tree/kup-tree.js +163 -383
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
- package/dist/collection/f-components/f-cell/f-cell.js +471 -0
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-chip/f-chip.js +2 -2
- package/dist/collection/f-components/f-image/f-image.js +2 -3
- package/dist/collection/f-components/f-switch/f-switch.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
- package/dist/collection/utils/cell-utils.js +18 -222
- package/dist/collection/utils/filters/filters.js +31 -37
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
- package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
- package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
- package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/utils/kup-language/kup-language.js +1 -1
- package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
- package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
- package/dist/collection/utils/kup-search/kup-search.js +75 -0
- package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/collection/utils/utils.js +15 -23
- package/dist/esm/cell-utils-8f512ea9.js +160 -0
- package/dist/esm/f-button-30dbcaa9.js +103 -0
- package/dist/esm/f-cell-95c186c6.js +727 -0
- package/dist/esm/f-chip-c0e9c0ff.js +139 -0
- package/dist/esm/{f-image-68b34fab.js → f-image-3bc8b24f.js} +4 -5
- package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +6 -8
- package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +2379 -2858
- package/dist/esm/kup-calendar.entry.js +10 -10
- package/dist/esm/kup-cell.entry.js +197 -0
- package/dist/esm/kup-dash-list.entry.js +15 -7
- package/dist/esm/kup-dash_2.entry.js +104 -62
- package/dist/esm/kup-drawer.entry.js +4 -6
- package/dist/esm/kup-field.entry.js +3 -5
- package/dist/esm/kup-iframe.entry.js +3 -4
- package/dist/esm/kup-lazy.entry.js +4 -6
- package/dist/esm/kup-magic-box.entry.js +21 -31
- package/dist/esm/kup-manager-7fc234da.js +5800 -0
- package/dist/esm/kup-nav-bar.entry.js +4 -6
- package/dist/esm/kup-probe.entry.js +3 -4
- package/dist/esm/kup-qlik.entry.js +2 -3
- package/dist/esm/kup-snackbar.entry.js +148 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-6c73709d.js} +15 -78
- package/dist/ketchup/assets/svg/ketchup.svg +74 -0
- package/dist/ketchup/assets/svg/smeup.svg +59 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-15321eae.js +1 -0
- package/dist/ketchup/p-1baf1205.entry.js +1 -0
- package/dist/ketchup/p-1c6178e4.entry.js +1 -0
- package/dist/ketchup/p-44375e49.js +1 -0
- package/dist/ketchup/p-4dcdbd31.entry.js +45 -0
- package/dist/ketchup/p-5a5f2a53.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-61faaa38.js} +2 -2
- package/dist/ketchup/p-62816d0b.entry.js +1 -0
- package/dist/ketchup/p-65adc15b.entry.js +1 -0
- package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
- package/dist/ketchup/p-a378ba56.entry.js +1 -0
- package/dist/ketchup/p-a878016f.entry.js +1 -0
- package/dist/ketchup/p-a96e6e32.entry.js +1 -0
- package/dist/ketchup/p-ad32821e.entry.js +1 -0
- package/dist/ketchup/p-af4a6191.entry.js +1 -0
- package/dist/ketchup/p-c18c7bb0.entry.js +27 -0
- package/dist/ketchup/p-ca0ca27f.entry.js +1 -0
- package/dist/ketchup/p-cb5f4994.js +1 -0
- package/dist/ketchup/p-ccda584a.entry.js +1 -0
- package/dist/ketchup/p-d4aa4922.js +1 -0
- package/dist/ketchup/p-dbb6998b.entry.js +1 -0
- package/dist/ketchup/p-de83f2f6.js +1 -0
- package/dist/ketchup/p-ec3a3db9.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
- package/dist/types/components/kup-box/kup-box.d.ts +13 -6
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
- package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
- package/dist/types/components/kup-card/kup-card.d.ts +12 -3
- package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
- package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
- package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +20 -36
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +33 -83
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -23
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
- package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
- package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +10 -20
- package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
- package/dist/types/components.d.ts +348 -176
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
- package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
- package/dist/types/utils/cell-utils.d.ts +0 -19
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
- package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
- package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
- package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
- package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
- package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
- package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
- package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/package.json +4 -6
- package/dist/cjs/cell-utils-1f89a299.js +0 -1527
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/f-chip-2d58c8f7.js +0 -239
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
- package/dist/cjs/kup-objects-59ea949c.js +0 -717
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-editor/kup-editor.css +0 -5
- package/dist/collection/components/kup-editor/kup-editor.js +0 -59
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/cell-utils-cb612463.js +0 -1510
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/f-chip-125d5dd6.js +0 -236
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/esm/kup-manager-e7d7b353.js +0 -4842
- package/dist/esm/kup-objects-d38d2fa2.js +0 -711
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-0320e24e.entry.js +0 -1
- package/dist/ketchup/p-08c7a092.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-64ea7e37.entry.js +0 -1
- package/dist/ketchup/p-7896031c.entry.js +0 -1
- package/dist/ketchup/p-876da4c2.entry.js +0 -1
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-940ab57a.entry.js +0 -1
- package/dist/ketchup/p-9c858a38.entry.js +0 -1
- package/dist/ketchup/p-a12a5690.entry.js +0 -1
- package/dist/ketchup/p-a5424073.js +0 -1
- package/dist/ketchup/p-b0724035.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-ee89966f.entry.js +0 -27
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
|
|
2
|
+
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
3
|
+
import { getProps, setProps } from '../../utils/utils';
|
|
4
|
+
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
5
|
+
import { KupSnackbarProps, snackbarClass } from './kup-snackbar-declarations';
|
|
6
|
+
import { FButton } from '../../f-components/f-button/f-button';
|
|
7
|
+
export class KupSnackbar {
|
|
8
|
+
constructor() {
|
|
9
|
+
/*-------------------------------------------------*/
|
|
10
|
+
/* S t a t e s */
|
|
11
|
+
/*-------------------------------------------------*/
|
|
12
|
+
/**
|
|
13
|
+
* The value of the component.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
this.visible = false;
|
|
17
|
+
/*-------------------------------------------------*/
|
|
18
|
+
/* P r o p s */
|
|
19
|
+
/*-------------------------------------------------*/
|
|
20
|
+
/**
|
|
21
|
+
* Set of FButton props to set the action button.
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
this.actionButton = null;
|
|
25
|
+
/**
|
|
26
|
+
* When true, the hide button will be displayed.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
this.closeButton = true;
|
|
30
|
+
/**
|
|
31
|
+
* Custom style of the component.
|
|
32
|
+
* @default ""
|
|
33
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
34
|
+
*/
|
|
35
|
+
this.customStyle = '';
|
|
36
|
+
/**
|
|
37
|
+
* Sets the textual content of the snackbar.
|
|
38
|
+
* @default ''
|
|
39
|
+
*/
|
|
40
|
+
this.text = '';
|
|
41
|
+
/**
|
|
42
|
+
* Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds.
|
|
43
|
+
* @default null
|
|
44
|
+
*/
|
|
45
|
+
this.timeout = null;
|
|
46
|
+
/*-------------------------------------------------*/
|
|
47
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
48
|
+
/*-------------------------------------------------*/
|
|
49
|
+
/**
|
|
50
|
+
* Instance of the KupManager class.
|
|
51
|
+
*/
|
|
52
|
+
this.kupManager = kupManagerInstance();
|
|
53
|
+
}
|
|
54
|
+
onKupActionClick() {
|
|
55
|
+
this.hide();
|
|
56
|
+
this.kupActionClick.emit({
|
|
57
|
+
comp: this,
|
|
58
|
+
id: this.rootElement.id,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/*-------------------------------------------------*/
|
|
62
|
+
/* P u b l i c M e t h o d s */
|
|
63
|
+
/*-------------------------------------------------*/
|
|
64
|
+
/**
|
|
65
|
+
* Used to retrieve component's props values.
|
|
66
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
67
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
68
|
+
*/
|
|
69
|
+
async getProps(descriptions) {
|
|
70
|
+
return getProps(this, KupSnackbarProps, descriptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Hides the snackbar.
|
|
74
|
+
*/
|
|
75
|
+
async hide() {
|
|
76
|
+
this.visible = false;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* This method is used to trigger a new render of the component.
|
|
80
|
+
*/
|
|
81
|
+
async refresh() {
|
|
82
|
+
forceUpdate(this);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Sets the props to the component.
|
|
86
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
87
|
+
*/
|
|
88
|
+
async setProps(props) {
|
|
89
|
+
setProps(this, KupSnackbarProps, props);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Displays the snackbar.
|
|
93
|
+
*/
|
|
94
|
+
async show() {
|
|
95
|
+
this.visible = true;
|
|
96
|
+
}
|
|
97
|
+
/*-------------------------------------------------*/
|
|
98
|
+
/* L i f e c y c l e H o o k s */
|
|
99
|
+
/*-------------------------------------------------*/
|
|
100
|
+
componentWillLoad() {
|
|
101
|
+
this.kupManager.debug.logLoad(this, false);
|
|
102
|
+
this.kupManager.theme.register(this);
|
|
103
|
+
}
|
|
104
|
+
componentDidLoad() {
|
|
105
|
+
this.kupManager.debug.logLoad(this, true);
|
|
106
|
+
}
|
|
107
|
+
componentWillRender() {
|
|
108
|
+
this.kupManager.debug.logRender(this, false);
|
|
109
|
+
}
|
|
110
|
+
componentDidRender() {
|
|
111
|
+
if (this.timeout && this.visible) {
|
|
112
|
+
setTimeout(() => {
|
|
113
|
+
this.hide();
|
|
114
|
+
}, this.timeout);
|
|
115
|
+
}
|
|
116
|
+
this.kupManager.debug.logRender(this, true);
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
return (h(Host, { "kup-visible": this.visible },
|
|
120
|
+
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
121
|
+
h("div", { id: componentWrapperId },
|
|
122
|
+
h("div", { class: snackbarClass },
|
|
123
|
+
h("div", { class: `${snackbarClass}__text` }, this.text),
|
|
124
|
+
this.actionButton || this.closeButton ? (h("div", { class: `${snackbarClass}__buttons` },
|
|
125
|
+
this.actionButton ? (h("div", { class: `${snackbarClass}__action` },
|
|
126
|
+
h(FButton, Object.assign({}, this.actionButton, { onClick: () => this.onKupActionClick() })))) : null,
|
|
127
|
+
this.closeButton ? (h("div", { class: `${snackbarClass}__close` },
|
|
128
|
+
h(FButton, { icon: "close", onClick: () => this.hide() }))) : null)) : null))));
|
|
129
|
+
}
|
|
130
|
+
disconnectedCallback() {
|
|
131
|
+
this.kupManager.theme.unregister(this);
|
|
132
|
+
}
|
|
133
|
+
static get is() { return "kup-snackbar"; }
|
|
134
|
+
static get encapsulation() { return "shadow"; }
|
|
135
|
+
static get originalStyleUrls() { return {
|
|
136
|
+
"$": ["kup-snackbar.scss"]
|
|
137
|
+
}; }
|
|
138
|
+
static get styleUrls() { return {
|
|
139
|
+
"$": ["kup-snackbar.css"]
|
|
140
|
+
}; }
|
|
141
|
+
static get properties() { return {
|
|
142
|
+
"actionButton": {
|
|
143
|
+
"type": "unknown",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "FButtonProps",
|
|
147
|
+
"resolved": "FButtonProps",
|
|
148
|
+
"references": {
|
|
149
|
+
"FButtonProps": {
|
|
150
|
+
"location": "import",
|
|
151
|
+
"path": "../../f-components/f-button/f-button-declarations"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [{
|
|
159
|
+
"name": "default",
|
|
160
|
+
"text": "null"
|
|
161
|
+
}],
|
|
162
|
+
"text": "Set of FButton props to set the action button."
|
|
163
|
+
},
|
|
164
|
+
"defaultValue": "null"
|
|
165
|
+
},
|
|
166
|
+
"closeButton": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "boolean",
|
|
171
|
+
"resolved": "boolean",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [{
|
|
178
|
+
"name": "default",
|
|
179
|
+
"text": "true"
|
|
180
|
+
}],
|
|
181
|
+
"text": "When true, the hide button will be displayed."
|
|
182
|
+
},
|
|
183
|
+
"attribute": "close-button",
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"defaultValue": "true"
|
|
186
|
+
},
|
|
187
|
+
"customStyle": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [{
|
|
199
|
+
"name": "default",
|
|
200
|
+
"text": "\"\""
|
|
201
|
+
}, {
|
|
202
|
+
"name": "see",
|
|
203
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
204
|
+
}],
|
|
205
|
+
"text": "Custom style of the component."
|
|
206
|
+
},
|
|
207
|
+
"attribute": "custom-style",
|
|
208
|
+
"reflect": false,
|
|
209
|
+
"defaultValue": "''"
|
|
210
|
+
},
|
|
211
|
+
"text": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "string",
|
|
216
|
+
"resolved": "string",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [{
|
|
223
|
+
"name": "default",
|
|
224
|
+
"text": "''"
|
|
225
|
+
}],
|
|
226
|
+
"text": "Sets the textual content of the snackbar."
|
|
227
|
+
},
|
|
228
|
+
"attribute": "text",
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"defaultValue": "''"
|
|
231
|
+
},
|
|
232
|
+
"timeout": {
|
|
233
|
+
"type": "number",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "number",
|
|
237
|
+
"resolved": "number",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": false,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [{
|
|
244
|
+
"name": "default",
|
|
245
|
+
"text": "null"
|
|
246
|
+
}],
|
|
247
|
+
"text": "Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."
|
|
248
|
+
},
|
|
249
|
+
"attribute": "timeout",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "null"
|
|
252
|
+
}
|
|
253
|
+
}; }
|
|
254
|
+
static get states() { return {
|
|
255
|
+
"visible": {}
|
|
256
|
+
}; }
|
|
257
|
+
static get events() { return [{
|
|
258
|
+
"method": "kupActionClick",
|
|
259
|
+
"name": "kup-snackbar-actionclick",
|
|
260
|
+
"bubbles": true,
|
|
261
|
+
"cancelable": false,
|
|
262
|
+
"composed": true,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "Triggered when action button is clicked."
|
|
266
|
+
},
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "KupEventPayload",
|
|
269
|
+
"resolved": "KupEventPayload",
|
|
270
|
+
"references": {
|
|
271
|
+
"KupEventPayload": {
|
|
272
|
+
"location": "import",
|
|
273
|
+
"path": "../../types/GenericTypes"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}]; }
|
|
278
|
+
static get methods() { return {
|
|
279
|
+
"getProps": {
|
|
280
|
+
"complexType": {
|
|
281
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
282
|
+
"parameters": [{
|
|
283
|
+
"tags": [{
|
|
284
|
+
"name": "param",
|
|
285
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
286
|
+
}],
|
|
287
|
+
"text": "- When provided and true, the result will be the list of props with their description."
|
|
288
|
+
}],
|
|
289
|
+
"references": {
|
|
290
|
+
"Promise": {
|
|
291
|
+
"location": "global"
|
|
292
|
+
},
|
|
293
|
+
"GenericObject": {
|
|
294
|
+
"location": "import",
|
|
295
|
+
"path": "../../types/GenericTypes"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"return": "Promise<GenericObject>"
|
|
299
|
+
},
|
|
300
|
+
"docs": {
|
|
301
|
+
"text": "Used to retrieve component's props values.",
|
|
302
|
+
"tags": [{
|
|
303
|
+
"name": "param",
|
|
304
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
305
|
+
}, {
|
|
306
|
+
"name": "returns",
|
|
307
|
+
"text": "List of props as object, each key will be a prop."
|
|
308
|
+
}]
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"hide": {
|
|
312
|
+
"complexType": {
|
|
313
|
+
"signature": "() => Promise<void>",
|
|
314
|
+
"parameters": [],
|
|
315
|
+
"references": {
|
|
316
|
+
"Promise": {
|
|
317
|
+
"location": "global"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"return": "Promise<void>"
|
|
321
|
+
},
|
|
322
|
+
"docs": {
|
|
323
|
+
"text": "Hides the snackbar.",
|
|
324
|
+
"tags": []
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"refresh": {
|
|
328
|
+
"complexType": {
|
|
329
|
+
"signature": "() => Promise<void>",
|
|
330
|
+
"parameters": [],
|
|
331
|
+
"references": {
|
|
332
|
+
"Promise": {
|
|
333
|
+
"location": "global"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"return": "Promise<void>"
|
|
337
|
+
},
|
|
338
|
+
"docs": {
|
|
339
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
340
|
+
"tags": []
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"setProps": {
|
|
344
|
+
"complexType": {
|
|
345
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
346
|
+
"parameters": [{
|
|
347
|
+
"tags": [{
|
|
348
|
+
"name": "param",
|
|
349
|
+
"text": "props - Object containing props that will be set to the component."
|
|
350
|
+
}],
|
|
351
|
+
"text": "- Object containing props that will be set to the component."
|
|
352
|
+
}],
|
|
353
|
+
"references": {
|
|
354
|
+
"Promise": {
|
|
355
|
+
"location": "global"
|
|
356
|
+
},
|
|
357
|
+
"GenericObject": {
|
|
358
|
+
"location": "import",
|
|
359
|
+
"path": "../../types/GenericTypes"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"return": "Promise<void>"
|
|
363
|
+
},
|
|
364
|
+
"docs": {
|
|
365
|
+
"text": "Sets the props to the component.",
|
|
366
|
+
"tags": [{
|
|
367
|
+
"name": "param",
|
|
368
|
+
"text": "props - Object containing props that will be set to the component."
|
|
369
|
+
}]
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"show": {
|
|
373
|
+
"complexType": {
|
|
374
|
+
"signature": "() => Promise<void>",
|
|
375
|
+
"parameters": [],
|
|
376
|
+
"references": {
|
|
377
|
+
"Promise": {
|
|
378
|
+
"location": "global"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"return": "Promise<void>"
|
|
382
|
+
},
|
|
383
|
+
"docs": {
|
|
384
|
+
"text": "Displays the snackbar.",
|
|
385
|
+
"tags": []
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}; }
|
|
389
|
+
static get elementRef() { return "rootElement"; }
|
|
390
|
+
}
|
|
@@ -203,9 +203,8 @@ export class KupSpinner {
|
|
|
203
203
|
else {
|
|
204
204
|
elStyle = Object.assign(Object.assign({}, elStyle), { fontSize: '3px' });
|
|
205
205
|
}
|
|
206
|
-
const customStyle = this.kupManager.theme.setCustomStyle(this.rootElement);
|
|
207
206
|
return (h(Host, { style: elStyle },
|
|
208
|
-
|
|
207
|
+
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
209
208
|
h("div", { id: componentWrapperId, style: elStyle },
|
|
210
209
|
h("div", { id: "loading-wrapper-master", class: masterClass, style: elStyle },
|
|
211
210
|
h("div", { id: wrapperClass, style: elStyle },
|
|
@@ -236,8 +235,8 @@ export class KupSpinner {
|
|
|
236
235
|
"optional": false,
|
|
237
236
|
"docs": {
|
|
238
237
|
"tags": [{
|
|
239
|
-
"
|
|
240
|
-
"
|
|
238
|
+
"name": "default",
|
|
239
|
+
"text": "false"
|
|
241
240
|
}],
|
|
242
241
|
"text": "When set to true the spinner is animating."
|
|
243
242
|
},
|
|
@@ -257,8 +256,8 @@ export class KupSpinner {
|
|
|
257
256
|
"optional": false,
|
|
258
257
|
"docs": {
|
|
259
258
|
"tags": [{
|
|
260
|
-
"
|
|
261
|
-
"
|
|
259
|
+
"name": "default",
|
|
260
|
+
"text": "false"
|
|
262
261
|
}],
|
|
263
262
|
"text": "Decides whether the component is a bar or a spinner."
|
|
264
263
|
},
|
|
@@ -278,11 +277,11 @@ export class KupSpinner {
|
|
|
278
277
|
"optional": false,
|
|
279
278
|
"docs": {
|
|
280
279
|
"tags": [{
|
|
281
|
-
"
|
|
282
|
-
"
|
|
280
|
+
"name": "default",
|
|
281
|
+
"text": "\"\""
|
|
283
282
|
}, {
|
|
284
|
-
"
|
|
285
|
-
"
|
|
283
|
+
"name": "see",
|
|
284
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
286
285
|
}],
|
|
287
286
|
"text": "Custom style of the component."
|
|
288
287
|
},
|
|
@@ -302,8 +301,8 @@ export class KupSpinner {
|
|
|
302
301
|
"optional": false,
|
|
303
302
|
"docs": {
|
|
304
303
|
"tags": [{
|
|
305
|
-
"
|
|
306
|
-
"
|
|
304
|
+
"name": "default",
|
|
305
|
+
"text": "false"
|
|
307
306
|
}],
|
|
308
307
|
"text": "Width and height of the spinner. For the bar variant, only height."
|
|
309
308
|
},
|
|
@@ -323,8 +322,8 @@ export class KupSpinner {
|
|
|
323
322
|
"optional": false,
|
|
324
323
|
"docs": {
|
|
325
324
|
"tags": [{
|
|
326
|
-
"
|
|
327
|
-
"
|
|
325
|
+
"name": "default",
|
|
326
|
+
"text": "false"
|
|
328
327
|
}],
|
|
329
328
|
"text": "Places a blend modal over the wrapper to darken the view (or lighten, when the theme is dark)."
|
|
330
329
|
},
|
|
@@ -344,8 +343,8 @@ export class KupSpinner {
|
|
|
344
343
|
"optional": false,
|
|
345
344
|
"docs": {
|
|
346
345
|
"tags": [{
|
|
347
|
-
"
|
|
348
|
-
"
|
|
346
|
+
"name": "default",
|
|
347
|
+
"text": "3500"
|
|
349
348
|
}],
|
|
350
349
|
"text": "The time required for the \"fader\" to trigger."
|
|
351
350
|
},
|
|
@@ -365,8 +364,8 @@ export class KupSpinner {
|
|
|
365
364
|
"optional": false,
|
|
366
365
|
"docs": {
|
|
367
366
|
"tags": [{
|
|
368
|
-
"
|
|
369
|
-
"
|
|
367
|
+
"name": "default",
|
|
368
|
+
"text": "false"
|
|
370
369
|
}],
|
|
371
370
|
"text": "When set to true the component will fill the whole viewport."
|
|
372
371
|
},
|
|
@@ -386,8 +385,8 @@ export class KupSpinner {
|
|
|
386
385
|
"optional": false,
|
|
387
386
|
"docs": {
|
|
388
387
|
"tags": [{
|
|
389
|
-
"
|
|
390
|
-
"
|
|
388
|
+
"name": "default",
|
|
389
|
+
"text": "1"
|
|
391
390
|
}],
|
|
392
391
|
"text": "Sets the layout of the spinner."
|
|
393
392
|
},
|
|
@@ -423,8 +422,8 @@ export class KupSpinner {
|
|
|
423
422
|
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
424
423
|
"parameters": [{
|
|
425
424
|
"tags": [{
|
|
426
|
-
"
|
|
427
|
-
"
|
|
425
|
+
"name": "param",
|
|
426
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
428
427
|
}],
|
|
429
428
|
"text": "- When provided and true, the result will be the list of props with their description."
|
|
430
429
|
}],
|
|
@@ -471,8 +470,8 @@ export class KupSpinner {
|
|
|
471
470
|
"signature": "(props: GenericObject) => Promise<void>",
|
|
472
471
|
"parameters": [{
|
|
473
472
|
"tags": [{
|
|
474
|
-
"
|
|
475
|
-
"
|
|
473
|
+
"name": "param",
|
|
474
|
+
"text": "props - Object containing props that will be set to the component."
|
|
476
475
|
}],
|
|
477
476
|
"text": "- Object containing props that will be set to the component."
|
|
478
477
|
}],
|
|
@@ -1,159 +1,3 @@
|
|
|
1
|
-
.f-switch--wrapper {
|
|
2
|
-
--kup_switch_font_family: var(
|
|
3
|
-
--kup-switch-font-family,
|
|
4
|
-
var(--kup-font-family)
|
|
5
|
-
);
|
|
6
|
-
--kup_switch_font_size: var(--kup-switch-font-size, var(--kup-font-size));
|
|
7
|
-
--kup_switch_font_weight: var(--kup-switch-font-weight, 400);
|
|
8
|
-
--kup_switch_label_color: var(
|
|
9
|
-
--kup-switch-label-color,
|
|
10
|
-
var(--kup-text-color)
|
|
11
|
-
);
|
|
12
|
-
--kup_switch_primary_color: var(
|
|
13
|
-
--kup-switch-primary-color,
|
|
14
|
-
var(--kup-primary-color)
|
|
15
|
-
);
|
|
16
|
-
--kup_switch_primary_color_rgb: var(
|
|
17
|
-
--kup-switch-primary-color-rgb,
|
|
18
|
-
var(--kup-primary-color-rgb)
|
|
19
|
-
);
|
|
20
|
-
--kup_switch_thumb_color: var(
|
|
21
|
-
--kup-switch-thumb-color,
|
|
22
|
-
var(--kup-border-color)
|
|
23
|
-
);
|
|
24
|
-
font-family: var(--kup_switch_font_family);
|
|
25
|
-
font-size: var(--kup_switch_font_size);
|
|
26
|
-
}
|
|
27
|
-
.f-switch--wrapper .form-field {
|
|
28
|
-
-moz-osx-font-smoothing: grayscale;
|
|
29
|
-
-webkit-font-smoothing: antialiased;
|
|
30
|
-
font-size: 0.875em;
|
|
31
|
-
line-height: 2em;
|
|
32
|
-
font-weight: var(--kup_switch_font_weight);
|
|
33
|
-
letter-spacing: 0.0178571429em;
|
|
34
|
-
color: var(--kup_switch_label_color);
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
vertical-align: middle;
|
|
38
|
-
}
|
|
39
|
-
.f-switch--wrapper .form-field.form-field--align-end > label {
|
|
40
|
-
margin-left: auto;
|
|
41
|
-
margin-right: 0px;
|
|
42
|
-
padding-left: 0px;
|
|
43
|
-
padding-right: 4px;
|
|
44
|
-
order: -1 !important;
|
|
45
|
-
}
|
|
46
|
-
.f-switch--wrapper .form-field > label {
|
|
47
|
-
color: var(--kup_switch_label_color);
|
|
48
|
-
font-family: var(--kup-font-family);
|
|
49
|
-
margin-left: 0px;
|
|
50
|
-
margin-right: auto;
|
|
51
|
-
padding-left: 4px;
|
|
52
|
-
padding-right: 0px;
|
|
53
|
-
order: 0;
|
|
54
|
-
}
|
|
55
|
-
.f-switch--wrapper .form-field .switch {
|
|
56
|
-
display: inline-block;
|
|
57
|
-
position: relative;
|
|
58
|
-
outline: none;
|
|
59
|
-
user-select: none;
|
|
60
|
-
margin: 0 0.75em;
|
|
61
|
-
}
|
|
62
|
-
.f-switch--wrapper .form-field .switch .switch__track {
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
width: 36px;
|
|
65
|
-
height: 14px;
|
|
66
|
-
border: 1px solid transparent;
|
|
67
|
-
border-radius: 7px;
|
|
68
|
-
opacity: 0.38;
|
|
69
|
-
transition: opacity 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
70
|
-
}
|
|
71
|
-
.f-switch--wrapper .form-field .switch .switch__thumb-underlay {
|
|
72
|
-
border-radius: 50%;
|
|
73
|
-
display: flex;
|
|
74
|
-
position: absolute;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
transform: translateX(0);
|
|
78
|
-
transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
79
|
-
left: -14px;
|
|
80
|
-
right: initial;
|
|
81
|
-
top: -16px;
|
|
82
|
-
width: 48px;
|
|
83
|
-
height: 48px;
|
|
84
|
-
}
|
|
85
|
-
.f-switch--wrapper .form-field .switch .switch__thumb-underlay:hover {
|
|
86
|
-
background-color: rgba(var(--kup_switch_primary_color_rgb), 0.125);
|
|
87
|
-
}
|
|
88
|
-
.f-switch--wrapper .form-field .switch .switch__thumb-underlay .switch__thumb {
|
|
89
|
-
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
90
|
-
box-sizing: border-box;
|
|
91
|
-
width: 20px;
|
|
92
|
-
height: 20px;
|
|
93
|
-
border: 10px solid;
|
|
94
|
-
border-radius: 50%;
|
|
95
|
-
z-index: 1;
|
|
96
|
-
transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
97
|
-
}
|
|
98
|
-
.f-switch--wrapper .form-field .switch .switch__thumb-underlay .switch__thumb .switch__native-control {
|
|
99
|
-
left: 0;
|
|
100
|
-
right: initial;
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: 0;
|
|
103
|
-
margin: 0;
|
|
104
|
-
opacity: 0;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
107
|
-
width: 64px;
|
|
108
|
-
height: 48px;
|
|
109
|
-
}
|
|
110
|
-
.f-switch--wrapper .form-field .switch:not(.switch--checked) .switch__track {
|
|
111
|
-
background-color: var(--kup_switch_label_color);
|
|
112
|
-
}
|
|
113
|
-
.f-switch--wrapper .form-field .switch:not(.switch--checked) .switch__thumb {
|
|
114
|
-
background-color: var(--kup_switch_thumb_color);
|
|
115
|
-
border-color: var(--kup_switch_thumb_color);
|
|
116
|
-
}
|
|
117
|
-
.f-switch--wrapper .form-field .switch.switch--disabled {
|
|
118
|
-
cursor: auto;
|
|
119
|
-
opacity: 0.5;
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
}
|
|
122
|
-
.f-switch--wrapper .form-field .switch.switch--checked .switch__track {
|
|
123
|
-
background-color: var(--kup_switch_primary_color);
|
|
124
|
-
opacity: 0.54;
|
|
125
|
-
}
|
|
126
|
-
.f-switch--wrapper .form-field .switch.switch--checked .switch__thumb-underlay {
|
|
127
|
-
transform: translateX(16px);
|
|
128
|
-
}
|
|
129
|
-
.f-switch--wrapper .form-field .switch.switch--checked .switch__thumb {
|
|
130
|
-
background-color: var(--kup_switch_primary_color);
|
|
131
|
-
border-color: var(--kup_switch_primary_color);
|
|
132
|
-
}
|
|
133
|
-
.f-switch--wrapper .form-field .switch.switch--checked .switch__thumb .switch__native-control {
|
|
134
|
-
transform: translateX(-16px);
|
|
135
|
-
}
|
|
136
|
-
.f-switch--wrapper.kup-danger {
|
|
137
|
-
--kup-switch-primary-color: var(--kup-danger-color);
|
|
138
|
-
--kup-switch-primary-color-rgb: var(--kup-danger-color-rgb);
|
|
139
|
-
}
|
|
140
|
-
.f-switch--wrapper.kup-info {
|
|
141
|
-
--kup-switch-primary-color: var(--kup-info-color);
|
|
142
|
-
--kup-switch-primary-color-rgb: var(--kup-info-color-rgb);
|
|
143
|
-
}
|
|
144
|
-
.f-switch--wrapper.kup-secondary {
|
|
145
|
-
--kup-switch-primary-color: var(--kup-secondary-color);
|
|
146
|
-
--kup-switch-primary-color-rgb: var(--kup-secondary-color-rgb);
|
|
147
|
-
}
|
|
148
|
-
.f-switch--wrapper.kup-success {
|
|
149
|
-
--kup-switch-primary-color: var(--kup-success-color);
|
|
150
|
-
--kup-switch-primary-color-rgb: var(--kup-success-color-rgb);
|
|
151
|
-
}
|
|
152
|
-
.f-switch--wrapper.kup-warning {
|
|
153
|
-
--kup-switch-primary-color: var(--kup-warning-color);
|
|
154
|
-
--kup-switch-primary-color-rgb: var(--kup-warning-color-rgb);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
1
|
/**
|
|
158
2
|
* NOTE: These variables are used in the related f-component.
|
|
159
3
|
*
|